Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/allwinner_machdep.c
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
a10_attach(platform_t plat) | a10_attach(platform_t plat) | ||||
{ | { | ||||
soc_type = ALLWINNERSOC_A10; | soc_type = ALLWINNERSOC_A10; | ||||
soc_family = ALLWINNERSOC_SUN4I; | soc_family = ALLWINNERSOC_SUN4I; | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
a13_attach(platform_t plat) | |||||
{ | |||||
soc_type = ALLWINNERSOC_A13; | |||||
soc_family = ALLWINNERSOC_SUN5I; | |||||
return (0); | |||||
} | |||||
static int | |||||
a20_attach(platform_t plat) | a20_attach(platform_t plat) | ||||
{ | { | ||||
soc_type = ALLWINNERSOC_A20; | soc_type = ALLWINNERSOC_A20; | ||||
soc_family = ALLWINNERSOC_SUN7I; | soc_family = ALLWINNERSOC_SUN7I; | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
static platform_method_t a10_methods[] = { | static platform_method_t a10_methods[] = { | ||||
PLATFORMMETHOD(platform_attach, a10_attach), | PLATFORMMETHOD(platform_attach, a10_attach), | ||||
PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | ||||
PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | ||||
PLATFORMMETHOD_END, | PLATFORMMETHOD_END, | ||||
}; | }; | ||||
FDT_PLATFORM_DEF(a10, "a10", 0, "allwinner,sun4i-a10", 200); | FDT_PLATFORM_DEF(a10, "a10", 0, "allwinner,sun4i-a10", 200); | ||||
#endif | |||||
#if defined(SOC_ALLWINNER_A13) | |||||
static platform_method_t a13_methods[] = { | |||||
PLATFORMMETHOD(platform_attach, a13_attach), | |||||
PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | |||||
PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | |||||
PLATFORMMETHOD_END, | |||||
}; | |||||
FDT_PLATFORM_DEF(a13, "a13", 0, "allwinner,sun5i-a13", 200); | |||||
#endif | #endif | ||||
#if defined(SOC_ALLWINNER_A20) | #if defined(SOC_ALLWINNER_A20) | ||||
static platform_method_t a20_methods[] = { | static platform_method_t a20_methods[] = { | ||||
PLATFORMMETHOD(platform_attach, a20_attach), | PLATFORMMETHOD(platform_attach, a20_attach), | ||||
PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | PLATFORMMETHOD(platform_lastaddr, allwinner_lastaddr), | ||||
PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |