Lines Matching refs:pin
840 rk3588_iomux_pinname(int pin)
844 int bank = pin / 32;
845 int group = (pin / 8) & 3;
846 int idx = pin & 7;
848 pin, bank, 'A' + group, idx);
854 rk3588_iomux_set_bias(struct rk3588_iomux_softc *sc, int pin, int bias)
872 bus_size_t reg = rk3588_pull_regmap[pin].reg;
873 uint32_t mask = rk3588_pull_regmap[pin].mask;
879 printf("%s: pin=%s bias %s (reg:%08lx -> %08x)\n", __func__,
880 rk3588_iomux_pinname(pin), (bias == 0) ? "Z" :
887 rk3588_iomux_set_drive_strength(struct rk3588_iomux_softc *sc, int pin, int drv)
893 bus_size_t reg = rk3588_drive_regmap[pin].reg;
894 uint32_t mask = rk3588_drive_regmap[pin].mask;
900 printf("%s: pin=%s strength %d (reg:%08lx -> %08x)\n", __func__,
901 rk3588_iomux_pinname(pin), drv, reg, val);
906 rk3588_iomux_set_mux(struct rk3588_iomux_softc *sc, int pin, u_int mux)
908 bus_size_t reg = rk3588_iomux_regmap[pin].reg;
909 bus_size_t reg0 = rk3588_iomux_regmap[pin].reg0;
910 uint32_t mask = rk3588_iomux_regmap[pin].mask;
922 printf("%s: pin=%s mux %d (reg:%08lx -> %08x)\n", __func__,
923 rk3588_iomux_pinname(pin), mux, reg, val);
928 rk3588_iomux_set_direction(struct rk3588_iomux_softc *sc, int pin, int dir,
932 panic("%s:%d: pin=%d, dir=%d: not supported\n", __func__, __LINE__, pin, dir);
935 printf("%s: pin=%s dir %d, value %08x\n", __func__,
936 rk3588_iomux_pinname(pin), dir, value);
944 const int pin = PIN(bank, idx);
946 if (pin < 0 || pin >= NPINS)
951 rk3588_iomux_set_bias(sc, pin, bias);
955 rk3588_iomux_set_drive_strength(sc, pin, drv);
960 rk3588_iomux_set_direction(sc, pin, dir, output_value);
962 rk3588_iomux_set_mux(sc, pin, mux);