Home | History | Annotate | Download | only in rockchip

Lines Matching defs:bank

126 rk3288_iomux_get_reg(struct rk3288_iomux_softc *sc, u_int bank, u_int idx,
129 if (bank >= NBANKS || idx >= NPINSPERBANK) {
133 if (bank == 0) {
141 reg->pull_reg = 0x130 + (bank * 0x10) + (idx / 8) * 4;
143 reg->drv_reg = 0x1b0 + (bank * 0x10) + (idx / 8) * 4;
146 reg->flags = rk3288_iomux_flags[bank][idx / 8];
147 reg->mux_reg = rk3288_iomux_offset[bank][idx / 8];
294 const u_int bank = be32toh(pins[0]);
300 if (rk3288_iomux_get_reg(sc, bank, idx, &regdef)) {
302 printf(" -> gpio%u P%c%u (%u)\n", bank, 'A' + (idx / 8), idx % 8, idx);
306 aprint_error_dev(dev, "unsupported iomux bank %u idx %u\n",
307 bank, mux);