Searched refs:GPIO_BIT (Results 1 - 7 of 7) sorted by relevance
/u-boot/drivers/gpio/ |
H A D | da8xx_gpio.h | 29 #define GPIO_BIT(gp) ((gp) & 0x1F) macro
|
H A D | tegra_gpio.c | 52 type = (u >> GPIO_BIT(gpio)) & 1; 55 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); 68 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); 72 u |= 1 << GPIO_BIT(gpio); 74 u &= ~(1 << GPIO_BIT(gpio)); 87 dir = (u >> GPIO_BIT(gpio)) & 1; 90 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), dir ? "OUT" : "IN"); 103 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), output ? "OUT" : "IN"); 107 u |= 1 << GPIO_BIT(gpio); 109 u &= ~(1 << GPIO_BIT(gpi [all...] |
H A D | gpio-aspeed.c | 184 #define GPIO_BIT(x) BIT(GPIO_OFFSET(x)) macro 201 dir &= ~GPIO_BIT(offset); 215 dir |= GPIO_BIT(offset); 219 output |= GPIO_BIT(offset); 221 output &= ~GPIO_BIT(offset); 233 return !!(readl(bank_reg(priv, bank, reg_val)) & GPIO_BIT(offset)); 244 data |= GPIO_BIT(offset); 246 data &= ~GPIO_BIT(offset); 258 if (readl(bank_reg(priv, bank, reg_dir)) & GPIO_BIT(offset))
|
H A D | octeon_gpio.c | 23 #define GPIO_BIT(x) BIT_ULL((x) & 0x3f) macro 100 writeq(GPIO_BIT(offset), gpio->base + gpio->data->reg_offs + 117 !!(reg & GPIO_BIT(offset))); 119 return !!(reg & GPIO_BIT(offset)); 128 writeq(GPIO_BIT(offset), gpio->base + gpio->data->reg_offs +
|
H A D | da8xx_gpio.c | 349 setbits_le32(&bank->dir, 1U << GPIO_BIT(gpio)); 356 ip = in_le32(&bank->in_data) & (1U << GPIO_BIT(gpio)); 363 bank->set_data = 1U << GPIO_BIT(gpio); 365 bank->clr_data = 1U << GPIO_BIT(gpio); 372 return in_le32(&bank->dir) & (1U << GPIO_BIT(gpio)); 378 clrbits_le32(&bank->dir, 1U << GPIO_BIT(gpio));
|
/u-boot/arch/arm/include/asm/arch-tegra/ |
H A D | gpio.h | 19 #define GPIO_BIT(x) ((x) & 0x7) macro
|
/u-boot/board/htc/endeavoru/ |
H A D | endeavoru-spl.c | 86 value &= ~(1 << GPIO_BIT(TEGRA_GPIO_PS0)); 91 value |= 1 << GPIO_BIT(TEGRA_GPIO_PS0); 96 value = (value >> GPIO_BIT(TEGRA_GPIO_PS0)) & 1;
|
Completed in 165 milliseconds