Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/arch/arm/mach-mvebu/serdes/a38x/
H A Dsys_env_lib.h246 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument
247 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument
248 (MPP_REG_NUM(GPIO_NUM) * 8)));
249 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument
250 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
/rk3399_rockchip-uboot/drivers/gpio/
H A Dsunxi_gpio.c39 u32 num = GPIO_NUM(pin); in sunxi_gpio_output()
57 u32 num = GPIO_NUM(pin); in sunxi_gpio_input()
175 u32 num = GPIO_NUM(offset); in sunxi_gpio_direction_output()
186 u32 num = GPIO_NUM(offset); in sunxi_gpio_get_value()
199 u32 num = GPIO_NUM(offset); in sunxi_gpio_set_value()
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-sunxi/
H A Dgpio.h82 #define GPIO_NUM(pin) ((pin) & 0x1f) macro