Commit 3eace37e5098c7f020a45a3672c062cd4ea199a0
Committed by
Tom Rini
1 parent
6bacc73621
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
arm: freescale: Rename initdram() to fsl_initdram()
This function name shadows a global name but is in fact different. This is very confusing. Rename it to help with the following refactoring. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 13 changed files with 24 additions and 12 deletions Side-by-side Diff
- arch/arm/cpu/armv8/fsl-layerscape/cpu.c
- board/freescale/ls1021aqds/ddr.c
- board/freescale/ls1021aqds/ls1021aqds.c
- board/freescale/ls1043aqds/ddr.c
- board/freescale/ls1043aqds/ls1043aqds.c
- board/freescale/ls1043ardb/ddr.c
- board/freescale/ls1046aqds/ddr.c
- board/freescale/ls1046aqds/ls1046aqds.c
- board/freescale/ls1046ardb/ddr.c
- board/freescale/ls2080a/ddr.c
- board/freescale/ls2080aqds/ddr.c
- board/freescale/ls2080ardb/ddr.c
- include/fsl_ddr_sdram.h
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | */ |
6 | 6 | |
7 | 7 | #include <common.h> |
8 | +#include <fsl_ddr_sdram.h> | |
8 | 9 | #include <asm/io.h> |
9 | 10 | #include <linux/errno.h> |
10 | 11 | #include <asm/system.h> |
... | ... | @@ -876,7 +877,7 @@ |
876 | 877 | |
877 | 878 | __weak int dram_init(void) |
878 | 879 | { |
879 | - initdram(); | |
880 | + fsl_initdram(); | |
880 | 881 | #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD) |
881 | 882 | /* This will break-before-make MMU for DDR */ |
882 | 883 | update_early_mmu_table(); |
board/freescale/ls1021aqds/ddr.c
board/freescale/ls1021aqds/ls1021aqds.c
board/freescale/ls1043aqds/ddr.c
board/freescale/ls1043aqds/ls1043aqds.c
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | #include <common.h> |
8 | 8 | #include <i2c.h> |
9 | 9 | #include <fdt_support.h> |
10 | +#include <fsl_ddr_sdram.h> | |
10 | 11 | #include <asm/io.h> |
11 | 12 | #include <asm/arch/clock.h> |
12 | 13 | #include <asm/arch/fsl_serdes.h> |
... | ... | @@ -153,7 +154,7 @@ |
153 | 154 | * before accessing DDR SPD. |
154 | 155 | */ |
155 | 156 | select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT); |
156 | - initdram(); | |
157 | + fsl_initdram(); | |
157 | 158 | #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD) |
158 | 159 | /* This will break-before-make MMU for DDR */ |
159 | 160 | update_early_mmu_table(); |
board/freescale/ls1043ardb/ddr.c
board/freescale/ls1046aqds/ddr.c
board/freescale/ls1046aqds/ls1046aqds.c
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | #include <common.h> |
8 | 8 | #include <i2c.h> |
9 | 9 | #include <fdt_support.h> |
10 | +#include <fsl_ddr_sdram.h> | |
10 | 11 | #include <asm/io.h> |
11 | 12 | #include <asm/arch/clock.h> |
12 | 13 | #include <asm/arch/fsl_serdes.h> |
... | ... | @@ -149,7 +150,7 @@ |
149 | 150 | * before accessing DDR SPD. |
150 | 151 | */ |
151 | 152 | select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT); |
152 | - initdram(); | |
153 | + fsl_initdram(); | |
153 | 154 | #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD) |
154 | 155 | /* This will break-before-make MMU for DDR */ |
155 | 156 | update_early_mmu_table(); |
board/freescale/ls1046ardb/ddr.c
board/freescale/ls2080a/ddr.c
board/freescale/ls2080aqds/ddr.c
board/freescale/ls2080ardb/ddr.c
include/fsl_ddr_sdram.h