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: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
Andre Przywara 2018-09-08 19:18:37 +01:00
parent 123bcb3f38
commit fe57c7d477
4 changed files with 4 additions and 4 deletions

View File

@ -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");
}

View File

@ -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);

View File

@ -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");

View File

@ -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;