Lines Matching +full:sun6i +full:- +full:a31 +full:- +full:ahb1 +full:- +full:reset
1 /*-
27 * Allwinner module software reset registers
51 { "allwinner,sun6i-a31-ahb1-reset", 1 },
52 { "allwinner,sun6i-a31-clock-reset", 1 },
63 { -1, 0 }
66 #define RESET_READ(sc, reg) bus_read_4((sc)->res, (reg))
67 #define RESET_WRITE(sc, reg, val) bus_write_4((sc)->res, (reg), (val))
70 aw_reset_assert(device_t dev, intptr_t id, bool reset) in aw_reset_assert() argument
77 mtx_lock(&sc->mtx); in aw_reset_assert()
79 if (reset) in aw_reset_assert()
84 mtx_unlock(&sc->mtx); in aw_reset_assert()
90 aw_reset_is_asserted(device_t dev, intptr_t id, bool *reset) in aw_reset_is_asserted() argument
97 mtx_lock(&sc->mtx); in aw_reset_is_asserted()
99 mtx_unlock(&sc->mtx); in aw_reset_is_asserted()
101 *reset = (reg_value & (1 << RESET_SHIFT(id))) != 0 ? false : true; in aw_reset_is_asserted()
112 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in aw_reset_probe()
126 if (bus_alloc_resources(dev, aw_reset_spec, &sc->res) != 0) { in aw_reset_attach()
131 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); in aw_reset_attach()
143 /* Reset interface */