Searched refs:spec_pupd (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/pinctrl/mediatek/
H A Dpinctrl-mt8135.c212 static const struct mtk_spec_pull_set spec_pupd[] = { variable in typeref:struct:mtk_spec_pull_set
249 for (i = 0; i < ARRAY_SIZE(spec_pupd); i++) { spec_pull_set()
250 if (pin == spec_pupd[i].pin) { spec_pull_set()
260 reg_pupd = spec_pupd[i].pupd_offset + align; spec_pull_set()
262 reg_pupd = spec_pupd[i].pupd_offset + (align << 1); spec_pull_set()
264 regmap_write(regmap, reg_pupd, spec_pupd[i].pupd_bit); spec_pull_set()
266 reg_set_r0 = spec_pupd[i].r0_offset + align; spec_pull_set()
267 reg_rst_r0 = spec_pupd[i].r0_offset + (align << 1); spec_pull_set()
268 reg_set_r1 = spec_pupd[i].r1_offset + align; spec_pull_set()
269 reg_rst_r1 = spec_pupd[i].r1_offset + (align << 1); spec_pull_set()
273 regmap_write(regmap, reg_rst_r0, spec_pupd[i].r0_bit); spec_pull_set()
274 regmap_write(regmap, reg_rst_r1, spec_pupd[i].r1_bit); spec_pull_set()
277 regmap_write(regmap, reg_set_r0, spec_pupd[i].r0_bit); spec_pull_set()
278 regmap_write(regmap, reg_rst_r1, spec_pupd[i].r1_bit); spec_pull_set()
281 regmap_write(regmap, reg_rst_r0, spec_pupd[i].r0_bit); spec_pull_set()
282 regmap_write(regmap, reg_set_r1, spec_pupd[i].r1_bit); spec_pull_set()
285 regmap_write(regmap, reg_set_r0, spec_pupd[i].r0_bit); spec_pull_set()
286 regmap_write(regmap, reg_set_r1, spec_pupd[i].r1_bit); spec_pull_set()

Completed in 123 milliseconds