Allwinner: Add support for H2 Plus SoC
H2+ SoC is a stripped down version of H3 without gigabit ethernet and 4K HDMI. Also add sun8i-h2-plus-orangepi-zero.dts to the build as we run on this board.
This commit is contained in:
parent
2351218ca8
commit
7f61394200
@ -82,6 +82,7 @@ static struct ofw_compat_data compat_data[] = {
|
||||
{ "allwinner,sun50i-a64", CLOCK_CCU },
|
||||
{ "allwinner,sun8i-a33", CLOCK_CCU },
|
||||
{ "allwinner,sun8i-a83t", CLOCK_CCU|CLOCK_PRCM|CLOCK_SYSCTRL },
|
||||
{ "allwinner,sun8i-h2-plus", CLOCK_CCU|CLOCK_PRCM },
|
||||
{ "allwinner,sun8i-h3", CLOCK_CCU|CLOCK_PRCM },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
@ -261,6 +261,21 @@ static platform_method_t a83t_methods[] = {
|
||||
FDT_PLATFORM_DEF(a83t, "a83t", 0, "allwinner,sun8i-a83t", 200);
|
||||
#endif
|
||||
|
||||
#if defined(SOC_ALLWINNER_H2PLUS)
|
||||
static platform_method_t h2_plus_methods[] = {
|
||||
PLATFORMMETHOD(platform_attach, h3_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(h2_plus, "h2_plus", 0, "allwinner,sun8i-h2-plus", 200);
|
||||
#endif
|
||||
|
||||
#if defined(SOC_ALLWINNER_H3)
|
||||
static platform_method_t h3_methods[] = {
|
||||
PLATFORMMETHOD(platform_attach, h3_attach),
|
||||
@ -276,6 +291,8 @@ static platform_method_t h3_methods[] = {
|
||||
FDT_PLATFORM_DEF(h3, "h3", 0, "allwinner,sun8i-h3", 200);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
u_int
|
||||
allwinner_soc_type(void)
|
||||
{
|
||||
|
@ -53,6 +53,7 @@ options SOC_ALLWINNER_A31
|
||||
options SOC_ALLWINNER_A31S
|
||||
options SOC_ALLWINNER_A33
|
||||
options SOC_ALLWINNER_A83T
|
||||
options SOC_ALLWINNER_H2PLUS
|
||||
options SOC_ALLWINNER_H3
|
||||
options SOC_BCM2836
|
||||
options SOC_TI_AM335X
|
||||
|
@ -50,6 +50,7 @@ SOC_ALLWINNER_A31 opt_global.h
|
||||
SOC_ALLWINNER_A31S opt_global.h
|
||||
SOC_ALLWINNER_A33 opt_global.h
|
||||
SOC_ALLWINNER_A83T opt_global.h
|
||||
SOC_ALLWINNER_H2PLUS opt_global.h
|
||||
SOC_ALLWINNER_H3 opt_global.h
|
||||
SOC_ALTERA_ARRIA10 opt_global.h
|
||||
SOC_ALTERA_CYCLONE5 opt_global.h
|
||||
|
@ -13,6 +13,7 @@ DTS= \
|
||||
sun7i-a20-cubieboard2.dts \
|
||||
sun7i-a20-olimex-som-evb.dts \
|
||||
sun7i-a20-pcduino3.dts \
|
||||
sun8i-h2-plus-orangepi-zero.dts \
|
||||
sun8i-h3-orangepi-one.dts
|
||||
|
||||
LINKS= \
|
||||
|
Loading…
Reference in New Issue
Block a user