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

allwinner: Pass FDT address to sunxi_pmic_setup()



For Allwinner boards we now use some heuritistics to find a preloaded
.dtb file.

Pass this address on to the PMIC setup routine, so that it can use the
information contained therein to setup some initial power rails.
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent 41538930
...@@ -14,7 +14,7 @@ void sunxi_cpu_off(unsigned int cluster, unsigned int core); ...@@ -14,7 +14,7 @@ void sunxi_cpu_off(unsigned int cluster, unsigned int core);
void sunxi_disable_secondary_cpus(unsigned int primary_cpu); void sunxi_disable_secondary_cpus(unsigned int primary_cpu);
void __dead2 sunxi_power_down(void); void __dead2 sunxi_power_down(void);
int sunxi_pmic_setup(uint16_t socid); int sunxi_pmic_setup(uint16_t socid, const void *fdt);
void sunxi_security_setup(void); void sunxi_security_setup(void);
uint16_t sunxi_read_soc_id(void); uint16_t sunxi_read_soc_id(void);
......
...@@ -148,7 +148,7 @@ void bl31_platform_setup(void) ...@@ -148,7 +148,7 @@ void bl31_platform_setup(void)
sunxi_security_setup(); sunxi_security_setup();
sunxi_pmic_setup(soc_id); sunxi_pmic_setup(soc_id, fdt);
INFO("BL31: Platform setup done\n"); INFO("BL31: Platform setup done\n");
} }
......
...@@ -126,7 +126,7 @@ static int axp_setbits(uint8_t reg, uint8_t set_mask) ...@@ -126,7 +126,7 @@ static int axp_setbits(uint8_t reg, uint8_t set_mask)
return rsb_write(AXP803_RT_ADDR, reg, regval); return rsb_write(AXP803_RT_ADDR, reg, regval);
} }
int sunxi_pmic_setup(uint16_t socid) int sunxi_pmic_setup(uint16_t socid, const void *fdt)
{ {
int ret; int ret;
......
...@@ -68,7 +68,7 @@ static int axp805_probe(void) ...@@ -68,7 +68,7 @@ static int axp805_probe(void)
return 0; return 0;
} }
int sunxi_pmic_setup(uint16_t socid) int sunxi_pmic_setup(uint16_t socid, const void *fdt)
{ {
int ret; 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