diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-11-10 00:05:16 +0000 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2016-11-10 00:09:52 +0000 |
commit | 687e191047228f37bd5118b2f6614f13eb4c7474 (patch) | |
tree | 41fe83f6dd493d5234a5aae15ecb687d4a21b969 | |
parent | 64536e6028348c20cc5bb4491a9ee8bc267f1d47 (diff) |
sunxi: add most basic H5 support
The Allwinner H5 SoC is quite close to the A64, but will mostly paired
with simple I2C voltage controllers in contrast to the complex PMIC A64
boards use these days.
Read the SoC ID and only initialize the PMIC when an A64 is detected.
Just print the SoC name if it is an H5, the regulator does not need to
be setup initially (though we may need it later).
-rw-r--r-- | plat/sun50iw1p1/bl31_sunxi_setup.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plat/sun50iw1p1/bl31_sunxi_setup.c b/plat/sun50iw1p1/bl31_sunxi_setup.c index 473438a..607bce0 100644 --- a/plat/sun50iw1p1/bl31_sunxi_setup.c +++ b/plat/sun50iw1p1/bl31_sunxi_setup.c @@ -165,6 +165,9 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2, case 0x1689: soc_name = "A64/H64"; break; + case 0x1718: + soc_name = "H5"; + break; } NOTICE("BL3-1: Running on %s (%x) in %s (@0x%lx)\n", @@ -240,7 +243,14 @@ void bl31_platform_setup(void) plat_setup_topology(); sunxi_setup_clocks(); - sunxi_pmic_setup(); + + switch (sunxi_get_socid()) { + case 0x1689: + sunxi_pmic_setup(); + break; + case 0x1718: + break; + } } /******************************************************************************* |