X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fdt-bindings%2Fpinctrl%2Fam43xx.h;h=344bd1eb3386bad14425861485a66dc25927cd54;hb=391f2a16b74b95da2f05a607f53213fc8ed24b8e;hp=774dc1e843c5b649a48aebe1cb9476678c495c97;hpb=84a73014d86fd660822a20c032625e3afe99ca58;p=karo-tx-linux.git diff --git a/include/dt-bindings/pinctrl/am43xx.h b/include/dt-bindings/pinctrl/am43xx.h index 774dc1e843c5..344bd1eb3386 100644 --- a/include/dt-bindings/pinctrl/am43xx.h +++ b/include/dt-bindings/pinctrl/am43xx.h @@ -31,5 +31,11 @@ #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP) #define PIN_INPUT_PULLDOWN (INPUT_EN) +/* + * Macro to allow using the absolute physical address instead of the + * padconf registers instead of the offset from padconf base. + */ +#define AM4372_IOPAD(pa, val) (((pa) & 0xffff) - 0x0800) (val) + #endif