Commit fe57c7d4 authored by Andre Przywara's avatar Andre Przywara
Browse files

allwinner: Pass SoC ID to sunxi_pmic_setup()



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: default avatarAndre Przywara <andre.przywara@arm.com>
parent 123bcb3f
......@@ -93,7 +93,7 @@ void bl31_platform_setup(void)
sunxi_security_setup();
sunxi_pmic_setup();
sunxi_pmic_setup(soc_id);
INFO("BL31: Platform setup done\n");
}
......
......@@ -14,7 +14,7 @@ void sunxi_disable_secondary_cpus(unsigned int primary_cpu);
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);
......
......@@ -8,7 +8,7 @@
#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");
......
......@@ -96,7 +96,7 @@ static int axp805_probe(void)
return 0;
}
int sunxi_pmic_setup(void)
int sunxi_pmic_setup(uint16_t socid)
{
int ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment