Lines Matching +full:sys +full:- +full:syscon
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
28 #include <sys/param.h>
29 #include <sys/systm.h>
30 #include <sys/bus.h>
32 #include <sys/kernel.h>
33 #include <sys/module.h>
34 #include <sys/rman.h>
35 #include <sys/lock.h>
36 #include <sys/mutex.h>
43 #include <dev/syscon/syscon.h>
52 .clkdef.name = "ap806-cpu-cluster-0",
58 .clkdef.name = "ap806-cpu-cluster-1",
64 .clkdef.name = "ap806-fixed",
70 static const char *mss_parents[] = {"ap806-fixed"};
73 .clkdef.name = "ap806-mss",
80 static const char *sdio_parents[] = {"ap806-fixed"};
83 .clkdef.name = "ap806-sdio",
92 struct syscon *syscon; member
96 {"marvell,ap806-clock", 1},
100 #define RD4(sc, reg) SYSCON_READ_4((sc)->syscon, (reg))
101 #define WR4(sc, reg, val) SYSCON_WRITE_4((sc)->syscon, (reg), (val))
110 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in mv_ap806_clock_probe()
126 sc->dev = dev; in mv_ap806_clock_attach()
128 if (SYSCON_GET_HANDLE(sc->dev, &sc->syscon) != 0 || in mv_ap806_clock_attach()
129 sc->syscon == NULL) { in mv_ap806_clock_attach()
130 device_printf(dev, "cannot get syscon for device\n"); in mv_ap806_clock_attach()