Lines Matching full:rsel

698 	const struct mtk_pin_rsel *rsel;  in mtk_hw_pin_rsel_lookup()  local
702 rsel = hw->soc->pin_rsel; in mtk_hw_pin_rsel_lookup()
705 if (desc->number >= rsel[check].s_pin && in mtk_hw_pin_rsel_lookup()
706 desc->number <= rsel[check].e_pin) { in mtk_hw_pin_rsel_lookup()
708 if (rsel[check].up_rsel == arg) { in mtk_hw_pin_rsel_lookup()
710 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
714 if (rsel[check].down_rsel == arg) { in mtk_hw_pin_rsel_lookup()
716 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
724 dev_err(hw->dev, "Not support rsel value %d Ohm for pin = %d (%s)\n", in mtk_hw_pin_rsel_lookup()
820 const struct mtk_pin_rsel *rsel; in mtk_rsel_get_si_unit() local
823 rsel = hw->soc->pin_rsel; in mtk_rsel_get_si_unit()
826 if (desc->number >= rsel[check].s_pin && in mtk_rsel_get_si_unit()
827 desc->number <= rsel[check].e_pin) { in mtk_rsel_get_si_unit()
828 if (rsel_val == rsel[check].rsel_index) { in mtk_rsel_get_si_unit()
830 *si_unit = rsel[check].up_rsel; in mtk_rsel_get_si_unit()
832 *si_unit = rsel[check].down_rsel; in mtk_rsel_get_si_unit()
845 int pu, pd, rsel, err; in mtk_pinconf_bias_get_pu_pd_rsel() local
847 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_RSEL, &rsel); in mtk_pinconf_bias_get_pu_pd_rsel()
865 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_pu_pd_rsel()
867 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_pu_pd_rsel()
871 mtk_rsel_get_si_unit(hw, desc, *pullup, rsel, enable); in mtk_pinconf_bias_get_pu_pd_rsel()
873 *enable = rsel + MTK_PULL_SET_RSEL_000; in mtk_pinconf_bias_get_pu_pd_rsel()