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:
parent
123bcb3f38
commit
fe57c7d477
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue