/external/u-boot/board/micronas/vct/ |
D | gpio.c | 41 u32 gpio_base; in vct_gpio_dir() local 43 gpio_base = BASE_ADDR(GPIO_MODULE(pin)); in vct_gpio_dir() 46 clrsetbits(GPIO_SWPORTA_DDR(gpio_base), MASK(pin), 0); in vct_gpio_dir() 48 clrsetbits(GPIO_SWPORTA_DDR(gpio_base), 0, MASK(pin)); in vct_gpio_dir() 55 u32 gpio_base; in vct_gpio_set() local 57 gpio_base = BASE_ADDR(GPIO_MODULE(pin)); in vct_gpio_set() 60 clrsetbits(GPIO_SWPORTA_DR(gpio_base), MASK(pin), 0); in vct_gpio_set() 62 clrsetbits(GPIO_SWPORTA_DR(gpio_base), 0, MASK(pin)); in vct_gpio_set() 67 u32 gpio_base; in vct_gpio_get() local 70 gpio_base = BASE_ADDR(GPIO_MODULE(pin)); in vct_gpio_get() [all …]
|
/external/u-boot/drivers/gpio/ |
D | pm8916_gpio.c | 57 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_set_direction() local 61 ret = pmic_clrsetbits(dev->parent, gpio_base + REG_EN_CTL, in pm8916_gpio_set_direction() 68 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction() 71 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction() 77 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_PULL_CTL, in pm8916_gpio_set_direction() 85 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_VIN_CTL, in pm8916_gpio_set_direction() 91 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_OUT_CTL, in pm8916_gpio_set_direction() 99 return pmic_clrsetbits(dev->parent, gpio_base + REG_EN_CTL, 0, in pm8916_gpio_set_direction() 117 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_get_function() local 121 reg = pmic_reg_read(dev->parent, gpio_base + REG_CTL); in pm8916_gpio_get_function() [all …]
|
D | gpio-uclass.c | 39 if (gpio >= uc_priv->gpio_base && in gpio_to_device() 40 gpio < uc_priv->gpio_base + uc_priv->gpio_count) { in gpio_to_device() 42 desc->offset = gpio - uc_priv->gpio_base; in gpio_to_device() 68 offset = numeric - uc_priv->gpio_base; in dm_gpio_lookup_name() 110 *gpiop = uc_priv->gpio_base + desc.offset; in gpio_lookup_name() 812 uc_priv->gpio_base = base; in gpio_renumber() 829 return uc_priv->gpio_base + desc->offset; in gpio_get_number()
|
/external/u-boot/board/renesas/silk/ |
D | silk_spl.c | 150 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 155 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 156 writel(BIT(23), gpio_base | 0x5020); in spl_init_gpio() 159 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 160 writel(BIT(23), gpio_base | 0x5000); in spl_init_gpio() 163 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 166 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/lager/ |
D | lager_spl.c | 136 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 141 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 144 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 147 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 150 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/gose/ |
D | gose_spl.c | 144 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 149 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 152 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 155 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 158 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/alt/ |
D | alt_spl.c | 150 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 155 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 158 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 161 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 164 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/koelsch/ |
D | koelsch_spl.c | 149 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 154 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 157 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 160 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 163 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/porter/ |
D | porter_spl.c | 148 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 153 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 156 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 159 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 162 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/board/renesas/stout/ |
D | stout_spl.c | 139 static const u32 gpio_base = 0xe6050000; in spl_init_gpio() local 144 writel(0, gpio_base | 0x20 | gpio_offs[i]); in spl_init_gpio() 147 writel(0, gpio_base | 0x00 | gpio_offs[i]); in spl_init_gpio() 150 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 153 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio()
|
/external/u-boot/include/asm-generic/ |
D | gpio.h | 319 unsigned gpio_base; member
|