Home
last modified time | relevance | path

Searched refs:GPIO_NUM (Results 1 – 4 of 4) sorted by relevance

/external/u-boot/drivers/ddr/marvell/a38x/
Dmv_ddr_sys_env_lib.h23 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument
24 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument
25 (MPP_REG_NUM(GPIO_NUM) * 8)));
26 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument
27 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
/external/u-boot/arch/arm/mach-mvebu/serdes/a38x/
Dsys_env_lib.h245 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument
246 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument
247 (MPP_REG_NUM(GPIO_NUM) * 8)));
248 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument
249 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
/external/u-boot/drivers/gpio/
Dsunxi_gpio.c36 u32 num = GPIO_NUM(pin); in sunxi_gpio_output()
54 u32 num = GPIO_NUM(pin); in sunxi_gpio_input()
172 u32 num = GPIO_NUM(offset); in sunxi_gpio_direction_output()
183 u32 num = GPIO_NUM(offset); in sunxi_gpio_get_value()
196 u32 num = GPIO_NUM(offset); in sunxi_gpio_set_value()
/external/u-boot/arch/arm/include/asm/arch-sunxi/
Dgpio.h81 #define GPIO_NUM(pin) ((pin) & 0x1f) macro