Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/allwinner/aw_rtc.c
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | struct aw_rtc_conf h3_conf = { | ||||
.rtc_losc_sta = A31_LOSC_AUTO_SWT_STA, | .rtc_losc_sta = A31_LOSC_AUTO_SWT_STA, | ||||
}; | }; | ||||
static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
{ "allwinner,sun4i-a10-rtc", (uintptr_t) &a10_conf }, | { "allwinner,sun4i-a10-rtc", (uintptr_t) &a10_conf }, | ||||
{ "allwinner,sun7i-a20-rtc", (uintptr_t) &a20_conf }, | { "allwinner,sun7i-a20-rtc", (uintptr_t) &a20_conf }, | ||||
{ "allwinner,sun6i-a31-rtc", (uintptr_t) &a31_conf }, | { "allwinner,sun6i-a31-rtc", (uintptr_t) &a31_conf }, | ||||
{ "allwinner,sun8i-h3-rtc", (uintptr_t) &h3_conf }, | { "allwinner,sun8i-h3-rtc", (uintptr_t) &h3_conf }, | ||||
{ "allwinner,sun50i-h5-rtc", (uintptr_t) &h3_conf }, | |||||
{ NULL, 0 } | { NULL, 0 } | ||||
}; | }; | ||||
struct aw_rtc_softc { | struct aw_rtc_softc { | ||||
struct resource *res; | struct resource *res; | ||||
struct aw_rtc_conf *conf; | struct aw_rtc_conf *conf; | ||||
int type; | int type; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |