In the BL31 platform setup we read the Allwinner SoC ID to identify the
chip and print its name.
In addition to that we will need to differentiate the power setup
between the SoCs, to pass on the SoC ID to the PMIC setup routine.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
sunxi_security_setup();
- sunxi_pmic_setup();
+ sunxi_pmic_setup(soc_id);
INFO("BL31: Platform setup done\n");
}
uint16_t sunxi_read_soc_id(void);
-void sunxi_pmic_setup(void);
+void sunxi_pmic_setup(uint16_t socid);
void sunxi_security_setup(void);
void __dead2 sunxi_power_down(void);
#include <arch_helpers.h>
#include <debug.h>
-int sunxi_pmic_setup(void)
+int sunxi_pmic_setup(uint16_t socid)
{
/* STUB */
NOTICE("BL31: STUB PMIC setup code called\n");
return 0;
}
-int sunxi_pmic_setup(void)
+int sunxi_pmic_setup(uint16_t socid)
{
int ret;