Home
last modified time | relevance | path

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

/external/u-boot/drivers/gpio/
Dtegra_gpio.c51 type = (u >> GPIO_BIT(gpio)) & 1; in get_config()
54 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in get_config()
67 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in set_config()
71 u |= 1 << GPIO_BIT(gpio); in set_config()
73 u &= ~(1 << GPIO_BIT(gpio)); in set_config()
86 dir = (u >> GPIO_BIT(gpio)) & 1; in get_direction()
89 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), dir ? "OUT" : "IN"); in get_direction()
102 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), output ? "OUT" : "IN"); in set_direction()
106 u |= 1 << GPIO_BIT(gpio); in set_direction()
108 u &= ~(1 << GPIO_BIT(gpio)); in set_direction()
[all …]
Dda8xx_gpio.c343 clrbits_le32(&bank->dir, 1U << GPIO_BIT(gpio)); in _gpio_direction_output()
350 setbits_le32(&bank->dir, 1U << GPIO_BIT(gpio)); in _gpio_direction_input()
357 ip = in_le32(&bank->in_data) & (1U << GPIO_BIT(gpio)); in _gpio_get_value()
364 bank->set_data = 1U << GPIO_BIT(gpio); in _gpio_set_value()
366 bank->clr_data = 1U << GPIO_BIT(gpio); in _gpio_set_value()
373 return in_le32(&bank->dir) & (1U << GPIO_BIT(gpio)); in _gpio_get_dir()
/external/u-boot/arch/arm/include/asm/arch-tegra/
Dgpio.h19 #define GPIO_BIT(x) ((x) & 0x7) macro
/external/u-boot/arch/arm/mach-davinci/include/mach/
Dgpio.h64 #define GPIO_BIT(gp) ((gp) & 0x1F) macro