syscon
struct syscon *sc_syscon;
uint32_t syscon, lcdcon, depth, width, height, addr;
syscon = bus_space_read_4(sc->sc_iot, sc->sc_ioh, PS711X_SYSCON);
syscon | SYSCON_LCDEN);
reg->syscon = sc->sc_pmu;
reg->syscon = sc->sc_grf;
reg->syscon == sc->sc_pmu ? "pmu" : "grf",
struct syscon *sc_grf;
struct syscon *sc_pmu;
struct syscon *syscon;
syscon_lock((reg)->syscon)
syscon_unlock((reg)->syscon)
syscon_read_4((reg)->syscon, (off))
syscon_write_4((reg)->syscon, (off), (val))
((reg)->syscon == (sc)->sc_pmu)
struct syscon *sc_syscon;
struct syscon *sc_syscon;
struct syscon *sc_syscon[2];
#define LOCK(syscon) \
syscon_lock(syscon)
#define UNLOCK(syscon) \
syscon_unlock(syscon)
#define RD4(syscon, reg) \
syscon_read_4(syscon, (reg))
#define WR4(syscon, reg, val) \
syscon_write_4(syscon, (reg), (val))
struct syscon * const syscon = sc->sc_syscon[banks[bank].regs];
printf("%s: bank %d idx %d flags %#x: %08x -> ", __func__, bank, idx, flags, RD4(syscon, reg));
WR4(syscon, reg, bias_val | bias_mask);
printf("%08x (reg %#lx)\n", RD4(syscon, reg), reg);
struct syscon * const syscon = sc->sc_syscon[banks[bank].regs];
printf("%s: bank %d idx %d val %d: %08x -> ", __func__, bank, idx, val, RD4(syscon, reg));
WR4(syscon, reg, write_val | write_mask);
printf("%08x (reg %#lx)\n", RD4(syscon, reg), reg);
struct syscon * const syscon = sc->sc_syscon[banks[bank].regs];
printf("%s: bank %d idx %d mux %#x: %08x -> ", __func__, bank, idx, mux, RD4(syscon, reg));
WR4(syscon, reg, (mask << 16) | __SHIFTIN(mux, mask));
printf("%08x (reg %#lx)\n", RD4(syscon, reg), reg);
struct syscon * const syscon = sc->sc_syscon[banks[bank].regs];
LOCK(syscon);
UNLOCK(syscon);
struct syscon * const syscon = sc->sc_syscon[RK_IOMUX_REGS_GRF];
LOCK(syscon);
val = RD4(syscon, GRF_GPIO4B_IOMUX);
WR4(syscon, GRF_GPIO4B_IOMUX, val);
val = RD4(syscon, GRF_SOC_CON7);
WR4(syscon, GRF_SOC_CON7, val);
UNLOCK(syscon);
rkpcie_phy_write_conf(struct syscon *rm, uint8_t addr, uint8_t data)
struct syscon *rm;
struct syscon *sc_grf;
struct syscon *sc_grf;
struct syscon *sc_grf;
struct syscon *sc_grf;
struct syscon *sc_syscon;
struct syscon *sc_grf;
struct syscon *sc_php_grf;
struct syscon *sc_syscon;
struct syscon *sc_grf;
struct syscon *sc_grf;
struct syscon *sc_syscon;
struct syscon *sc_syscon;
struct syscon *sc_pmureg;
struct syscon *sc_sysreg;
struct syscon *sc_pmureg;
syscon_write_4(sc->syscon, EMAC_CLK_REG, reg);
syscon_unlock(sc->syscon);
sc->syscon = fdtbus_syscon_acquire(phandle, "syscon");
if (sc->syscon == NULL) {
struct syscon *syscon;
syscon_lock(sc->syscon);
reg = syscon_read_4(sc->syscon, EMAC_CLK_REG);
struct syscon sc_syscon;
struct syscon *syscon = fdtbus_syscon_lookup(OF_parent(phandle));
if (syscon == NULL) {
syscon_lock(syscon);
uint32_t cfgchip_reg3 = syscon_read_4(syscon, AM18XX_ACLK_CFGCHIP3);
syscon_unlock(syscon);
struct syscon *sc_syscon;
struct syscon *sc_syscon;
static struct syscon *ti_opp_syscon;
struct syscon *sc_syscon;
const struct syscon * sc_syscon;
struct syscon sc_syscon;
struct syscon * sc_syscon;
const struct syscon *sc_syscon;
struct syscon *sc_syscon;
struct syscon;
struct syscon *sc_syscon;
struct syscon *syscon)
sc->sc_syscon = syscon;
struct syscon *
struct syscon *
struct syscon;
int fdtbus_register_syscon(device_t, int, struct syscon *);
struct syscon * fdtbus_syscon_acquire(int, const char *);
struct syscon * fdtbus_syscon_lookup(int);
struct syscon sc_syscon;
CFATTACH_DECL_NEW(syscon, sizeof(struct syscon_softc),