Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/aw_machdep.c
Context not available. | |||||
static platform_attach_t a31s_attach; | static platform_attach_t a31s_attach; | ||||
static platform_attach_t a83t_attach; | static platform_attach_t a83t_attach; | ||||
static platform_attach_t h3_attach; | static platform_attach_t h3_attach; | ||||
static platform_attach_t h2plus_attach; | |||||
static platform_devmap_init_t allwinner_devmap_init; | static platform_devmap_init_t allwinner_devmap_init; | ||||
static platform_cpu_reset_t allwinner_cpu_reset; | static platform_cpu_reset_t allwinner_cpu_reset; | ||||
Context not available. | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | |||||
h2plus_attach(platform_t plat) | |||||
{ | |||||
soc_type = ALLWINNERSOC_H2PLUS; | |||||
soc_family = ALLWINNERSOC_SUN8I; | |||||
return (0); | |||||
} | |||||
/* | /* | ||||
* Set up static device mappings. | * Set up static device mappings. | ||||
* | * | ||||
Context not available. | |||||
FDT_PLATFORM_DEF(h3, "h3", 0, "allwinner,sun8i-h3", 200); | FDT_PLATFORM_DEF(h3, "h3", 0, "allwinner,sun8i-h3", 200); | ||||
#endif | #endif | ||||
#if defined(SOC_ALLWINNER_H2PLUS) | |||||
static platform_method_t h2plus_methods[] = { | |||||
PLATFORMMETHOD(platform_attach, h2plus_attach), | |||||
PLATFORMMETHOD(platform_devmap_init, allwinner_devmap_init), | |||||
PLATFORMMETHOD(platform_cpu_reset, allwinner_cpu_reset), | |||||
#ifdef SMP | |||||
PLATFORMMETHOD(platform_mp_start_ap, aw_mp_start_ap), | |||||
PLATFORMMETHOD(platform_mp_setmaxid, aw_mp_setmaxid), | |||||
#endif | |||||
PLATFORMMETHOD_END, | |||||
}; | |||||
FDT_PLATFORM_DEF(h2plus, "h2plus", 0, "allwinner,sun8i-h2-plus", 200); | |||||
#endif | |||||
u_int | u_int | ||||
allwinner_soc_type(void) | allwinner_soc_type(void) | ||||
{ | { | ||||
Context not available. |