]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/dt-bindings/pinctrl/stm32-pinfunc.h
1 #ifndef _DT_BINDINGS_STM32_PINFUNC_H
2 #define _DT_BINDINGS_STM32_PINFUNC_H
24 /* define Pins number*/
25 #define PIN_NO(port, line) (((port) - 'A') * 0x10 + (line))
27 #define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode))
29 #endif /* _DT_BINDINGS_STM32_PINFUNC_H */