Home
last modified time | relevance | path

Searched refs:pin_num (Results 1 – 16 of 16) sorted by relevance

/u-boot/drivers/pinctrl/rockchip/
A Dpinctrl-rv1108.c111 int pin_num, struct regmap **regmap, in rv1108_calc_pull_reg_and_bit() argument
134 int pin_num, int pull) in rv1108_set_pull() argument
145 type = bank->pull_type[pin_num / 8]; in rv1108_set_pull()
165 int pin_num, struct regmap **regmap, in rv1108_calc_drv_reg_and_bit() argument
184 *bit = pin_num % ROCKCHIP_DRV_PINS_PER_REG; in rv1108_calc_drv_reg_and_bit()
189 int pin_num, int strength) in rv1108_set_drive() argument
195 int type = bank->drv[pin_num / 8].drv_type; in rv1108_set_drive()
219 int pin_num, in rv1108_calc_schmitt_reg_and_bit() argument
236 *reg += ((pin_num / pins_per_reg) * 4); in rv1108_calc_schmitt_reg_and_bit()
237 *bit = pin_num % pins_per_reg; in rv1108_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3368.c43 int pin_num, struct regmap **regmap, in rk3368_calc_pull_reg_and_bit() argument
61 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3368_calc_pull_reg_and_bit()
63 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3368_calc_pull_reg_and_bit()
68 int pin_num, int pull) in rk3368_set_pull() argument
78 rk3368_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3368_set_pull()
79 type = bank->pull_type[pin_num / 8]; in rk3368_set_pull()
98 int pin_num, struct regmap **regmap, in rk3368_calc_drv_reg_and_bit() argument
116 *reg += ((pin_num / ROCKCHIP_DRV_PINS_PER_REG) * 4); in rk3368_calc_drv_reg_and_bit()
117 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3368_calc_drv_reg_and_bit()
122 int pin_num, int strength) in rk3368_set_drive() argument
[all …]
A Dpinctrl-rk3188.c43 int pin_num, struct regmap **regmap, in rk3188_calc_pull_reg_and_bit() argument
49 if (bank->bank_num == 0 && pin_num < 12) { in rk3188_calc_pull_reg_and_bit()
53 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3188_calc_pull_reg_and_bit()
54 *bit = pin_num % ROCKCHIP_PULL_PINS_PER_REG; in rk3188_calc_pull_reg_and_bit()
63 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3188_calc_pull_reg_and_bit()
70 *bit = 7 - (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3188_calc_pull_reg_and_bit()
76 int pin_num, int pull) in rk3188_set_pull() argument
86 rk3188_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3188_set_pull()
87 type = bank->pull_type[pin_num / 8]; in rk3188_set_pull()
A Dpinctrl-rk3328.c165 int pin_num, struct regmap **regmap, in rk3328_calc_pull_reg_and_bit() argument
175 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3328_calc_pull_reg_and_bit()
180 int pin_num, int pull) in rk3328_set_pull() argument
191 type = bank->pull_type[pin_num / 8]; in rk3328_set_pull()
209 int pin_num, struct regmap **regmap, in rk3328_calc_drv_reg_and_bit() argument
219 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3328_calc_drv_reg_and_bit()
224 int pin_num, int strength) in rk3328_set_drive() argument
230 int type = bank->drv[pin_num / 8].drv_type; in rk3328_set_drive()
253 int pin_num, in rk3328_calc_schmitt_reg_and_bit() argument
264 *bit = pin_num % RK3328_SCHMITT_PINS_PER_REG; in rk3328_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-px30.c116 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument
135 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit()
140 int pin_num, int pull) in px30_set_pull() argument
151 type = bank->pull_type[pin_num / 8]; in px30_set_pull()
173 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument
192 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit()
197 int pin_num, int strength) in px30_set_drive() argument
276 int pin_num, in px30_calc_schmitt_reg_and_bit() argument
293 *reg += ((pin_num / pins_per_reg) * 4); in px30_calc_schmitt_reg_and_bit()
294 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3288.c78 int pin_num, struct regmap **regmap, in rk3288_calc_pull_reg_and_bit() argument
96 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3288_calc_pull_reg_and_bit()
98 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3288_calc_pull_reg_and_bit()
103 int pin_num, int pull) in rk3288_set_pull() argument
113 rk3288_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3288_set_pull()
114 type = bank->pull_type[pin_num / 8]; in rk3288_set_pull()
140 int pin_num, struct regmap **regmap, in rk3288_calc_drv_reg_and_bit() argument
158 *reg += ((pin_num / ROCKCHIP_DRV_PINS_PER_REG) * 4); in rk3288_calc_drv_reg_and_bit()
159 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3288_calc_drv_reg_and_bit()
164 int pin_num, int strength) in rk3288_set_drive() argument
[all …]
A Dpinctrl-rk3308.c293 int pin_num, struct regmap **regmap, in rk3308_calc_pull_reg_and_bit() argument
303 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3308_calc_pull_reg_and_bit()
308 int pin_num, int pull) in rk3308_set_pull() argument
319 type = bank->pull_type[pin_num / 8]; in rk3308_set_pull()
338 int pin_num, struct regmap **regmap, in rk3308_calc_drv_reg_and_bit() argument
348 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3308_calc_drv_reg_and_bit()
353 int pin_num, int strength) in rk3308_set_drive() argument
359 int type = bank->drv[pin_num / 8].drv_type; in rk3308_set_drive()
380 int pin_num, in rk3308_calc_schmitt_reg_and_bit() argument
391 *bit = pin_num % RK3308_SCHMITT_PINS_PER_REG; in rk3308_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3399.c92 int pin_num, struct regmap **regmap, in rk3399_calc_pull_reg_and_bit() argument
112 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3399_calc_pull_reg_and_bit()
114 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3399_calc_pull_reg_and_bit()
119 int pin_num, int pull) in rk3399_set_pull() argument
130 type = bank->pull_type[pin_num / 8]; in rk3399_set_pull()
146 int pin_num, struct regmap **regmap, in rk3399_calc_drv_reg_and_bit() argument
150 int drv_num = (pin_num / 8); in rk3399_calc_drv_reg_and_bit()
161 *bit = (pin_num % 8) * 3; in rk3399_calc_drv_reg_and_bit()
163 *bit = (pin_num % 8) * 2; in rk3399_calc_drv_reg_and_bit()
167 int pin_num, int strength) in rk3399_set_drive() argument
[all …]
A Dpinctrl-rk322x.c182 int pin_num, struct regmap **regmap, in rk3228_calc_pull_reg_and_bit() argument
190 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3228_calc_pull_reg_and_bit()
192 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3228_calc_pull_reg_and_bit()
197 int pin_num, int pull) in rk3228_set_pull() argument
208 type = bank->pull_type[pin_num / 8]; in rk3228_set_pull()
226 int pin_num, struct regmap **regmap, in rk3228_calc_drv_reg_and_bit() argument
234 *reg += ((pin_num / ROCKCHIP_DRV_PINS_PER_REG) * 4); in rk3228_calc_drv_reg_and_bit()
236 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3228_calc_drv_reg_and_bit()
241 int pin_num, int strength) in rk3228_set_drive() argument
247 int type = bank->drv[pin_num / 8].drv_type; in rk3228_set_drive()
[all …]
A Dpinctrl-rk3036.c44 int pin_num, struct regmap **regmap, in rk3036_calc_pull_reg_and_bit() argument
52 *reg += (pin_num / RK3036_PULL_PINS_PER_REG) * 4; in rk3036_calc_pull_reg_and_bit()
54 *bit = pin_num % RK3036_PULL_PINS_PER_REG; in rk3036_calc_pull_reg_and_bit()
58 int pin_num, int pull) in rk3036_set_pull() argument
69 rk3036_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3036_set_pull()
A Dpinctrl-rk3128.c143 int pin_num, struct regmap **regmap, in rk3128_calc_pull_reg_and_bit() argument
151 *reg += ((pin_num / RK3128_PULL_PINS_PER_REG) * 4); in rk3128_calc_pull_reg_and_bit()
153 *bit = pin_num % RK3128_PULL_PINS_PER_REG; in rk3128_calc_pull_reg_and_bit()
157 int pin_num, int pull) in rk3128_set_pull() argument
168 rk3128_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3128_set_pull()
A Dpinctrl-rockchip-core.c248 int pin_num, int strength) in rockchip_set_drive_perpin() argument
254 pin_num, strength); in rockchip_set_drive_perpin()
259 return ctrl->set_drive(bank, pin_num, strength); in rockchip_set_drive_perpin()
294 int pin_num, int pull) in rockchip_set_pull() argument
300 pin_num, pull); in rockchip_set_pull()
305 return ctrl->set_pull(bank, pin_num, pull); in rockchip_set_pull()
309 int pin_num, int enable) in rockchip_set_schmitt() argument
315 pin_num, enable); in rockchip_set_schmitt()
320 return ctrl->set_schmitt(bank, pin_num, enable); in rockchip_set_schmitt()
A Dpinctrl-rockchip.h273 int pin_num, int pull);
275 int pin_num, int strength);
277 int pin_num, int enable);
/u-boot/drivers/pinctrl/exynos/
A Dpinctrl-exynos.c74 unsigned int count, idx, pin_num; in exynos_pinctrl_set_state() local
95 reg = pin_to_bank_base(dev, name, &pin_num); in exynos_pinctrl_set_state()
99 value &= ~(0xf << (pin_num << 2)); in exynos_pinctrl_set_state()
100 value |= (pinfunc << (pin_num << 2)); in exynos_pinctrl_set_state()
106 value &= ~(0x3 << (pin_num << 1)); in exynos_pinctrl_set_state()
107 value |= (pinpud << (pin_num << 1)); in exynos_pinctrl_set_state()
113 value &= ~(0x3 << (pin_num << 1)); in exynos_pinctrl_set_state()
114 value |= (pindrv << (pin_num << 1)); in exynos_pinctrl_set_state()
/u-boot/drivers/gpio/
A Dxilinx_gpio.c42 u32 pin_num = offset; in xilinx_gpio_get_bank_pin() local
46 if (pin_num < max_pins) { in xilinx_gpio_get_bank_pin()
48 bank, pin_num); in xilinx_gpio_get_bank_pin()
50 *bank_pin_num = pin_num; in xilinx_gpio_get_bank_pin()
53 pin_num -= max_pins; in xilinx_gpio_get_bank_pin()
A Dzynq_gpio.c191 static inline void zynq_gpio_get_bank_pin(unsigned int pin_num, in zynq_gpio_get_bank_pin() argument
200 if (pin_num >= plat->p_data->bank_min[bank] && in zynq_gpio_get_bank_pin()
201 pin_num <= plat->p_data->bank_max[bank]) { in zynq_gpio_get_bank_pin()
203 *bank_pin_num = pin_num - in zynq_gpio_get_bank_pin()

Completed in 18 milliseconds