Home
last modified time | relevance | path

Searched refs:padcfg (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/pinctrl/starfive/
Dpinctrl-starfive-jh7110.c335 static u32 jh7110_padcfg_ds_to_mA(u32 padcfg) in jh7110_padcfg_ds_to_mA() argument
337 return jh7110_drive_strength_mA[(padcfg >> 1) & 3U]; in jh7110_padcfg_ds_to_mA()
381 u32 padcfg, arg; in jh7110_pinconf_get() local
392 padcfg = readl_relaxed(sfp->base + padcfg_base + 4 * pin); in jh7110_pinconf_get()
395 enabled = !(padcfg & JH7110_PADCFG_BIAS); in jh7110_pinconf_get()
399 enabled = padcfg & JH7110_PADCFG_PD; in jh7110_pinconf_get()
403 enabled = padcfg & JH7110_PADCFG_PU; in jh7110_pinconf_get()
408 arg = jh7110_padcfg_ds_to_mA(padcfg); in jh7110_pinconf_get()
411 enabled = padcfg & JH7110_PADCFG_IE; in jh7110_pinconf_get()
415 enabled = padcfg & JH7110_PADCFG_SMT; in jh7110_pinconf_get()
[all …]
/Linux-v6.6/drivers/pinctrl/intel/
Dpinctrl-intel.c310 void __iomem *padcfg; in intel_pin_dbg_show() local
332 padcfg = intel_get_padcfg(pctrl, pin, PADCFG2); in intel_pin_dbg_show()
333 if (padcfg) in intel_pin_dbg_show()
334 seq_printf(s, " 0x%08x", readl(padcfg)); in intel_pin_dbg_show()
1773 void __iomem *padcfg; in intel_pinctrl_suspend_noirq() local
1784 padcfg = intel_get_padcfg(pctrl, desc->number, PADCFG2); in intel_pinctrl_suspend_noirq()
1785 if (padcfg) in intel_pinctrl_suspend_noirq()
1786 pads[i].padcfg2 = readl(padcfg); in intel_pinctrl_suspend_noirq()
1861 void __iomem *padcfg; in intel_restore_padcfg() local
1863 padcfg = intel_get_padcfg(pctrl, pin, reg); in intel_restore_padcfg()
[all …]