diff options
author | Francois Retief <fgretief@spaceteq.co.za> | 2015-10-29 10:58:52 (GMT) |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-12-03 11:15:49 (GMT) |
commit | 574be25ea1b88ff1b7d213584b04b754f187e25d (patch) | |
tree | 76c23cbd1d3b383378b463b4df888e7208cf5ba3 /arch/sparc/cpu/leon3/cpu_init.c | |
parent | d67269ba70f471a33ea64fcddc698cacce14e14a (diff) | |
download | u-boot-574be25ea1b88ff1b7d213584b04b754f187e25d.tar.xz |
sparc: leon3: Move ambapp_bus_init() call to arch_cpu_init() function
Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
Diffstat (limited to 'arch/sparc/cpu/leon3/cpu_init.c')
-rw-r--r-- | arch/sparc/cpu/leon3/cpu_init.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/sparc/cpu/leon3/cpu_init.c b/arch/sparc/cpu/leon3/cpu_init.c index 421859e..20a6a25 100644 --- a/arch/sparc/cpu/leon3/cpu_init.c +++ b/arch/sparc/cpu/leon3/cpu_init.c @@ -56,10 +56,6 @@ void cpu_init_f(void) */ void cpu_init_f2(void) { - /* Initialize the AMBA Plug & Play bus structure, the bus - * structure represents the AMBA bus that the CPU is located at. - */ - ambapp_bus_init(CONFIG_AMBAPP_IOAREA, CONFIG_SYS_CLK_FREQ, &ambapp_plb); } /* If cache snooping is available in hardware the result will be set @@ -80,6 +76,11 @@ int arch_cpu_init(void) gd->arch.snooping_available = snoop_detect(); + /* Initialize the AMBA Plug & Play bus structure, the bus + * structure represents the AMBA bus that the CPU is located at. + */ + ambapp_bus_init(CONFIG_AMBAPP_IOAREA, CONFIG_SYS_CLK_FREQ, &ambapp_plb); + return 0; } |