]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: Use the poison value of 0xdeadbeef directly in DDR init
authorTom Rini <trini@konsulko.com>
Mon, 27 Jun 2022 17:35:51 +0000 (13:35 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Jul 2022 21:57:34 +0000 (17:57 -0400)
On p1_p2_rdb_pc platforms, we set ddr_data_init to the "poison" value of
0xdeadbeef rather than a real calculated / derived value.  Do this
directly and comment rather than via CONFIG.

Signed-off-by: Tom Rini <trini@konsulko.com>
board/freescale/corenet_ds/p4080ds_ddr.c
board/freescale/p1_p2_rdb_pc/ddr.c
include/configs/P1010RDB.h
include/configs/p1_p2_rdb_pc.h

index 3469064562bdfd818596f2f602340ca82a56ba79..9839eaceaf956ea5be3a11aa74ef6f26a0397cd4 100644 (file)
@@ -62,7 +62,6 @@
 #define CONFIG_SYS_DDR_INIT_ADDR       0x00000000
 #define CONFIG_SYS_DDR_INIT_EXT_ADDR   0x00000000
 #define CONFIG_SYS_DDR_CS1_CONFIG      0x80004202
-#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
 #define CONFIG_SYS_DDR_TIMING_4                0x00000001
 #define CONFIG_SYS_DDR_TIMING_5                0x02401400
 #define CONFIG_SYS_DDR_MODE_CONTROL    0x00000000
index be803ddf9c66f2d81f11ea03486c1356680d5d1d..038e6736acecf724c4a1178d2fee1e2fc6e852ed 100644 (file)
@@ -227,7 +227,7 @@ phys_size_t fixed_sdram(void)
                .ddr_sdram_mode_2 = CONFIG_SYS_DDR_MODE_2,
                .ddr_sdram_md_cntl = CONFIG_SYS_DDR_MODE_CONTROL,
                .ddr_sdram_interval = CONFIG_SYS_DDR_INTERVAL,
-               .ddr_data_init = CONFIG_SYS_DDR_DATA_INIT,
+               .ddr_data_init = 0xdeadbeef, /* Poison value */
                .ddr_sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL,
                .ddr_init_addr = CONFIG_SYS_DDR_INIT_ADDR,
                .ddr_init_ext_addr = CONFIG_SYS_DDR_INIT_EXT_ADDR,
index d263999b5a71ab8ef7f3ac5215c02e6a88d23622..12a78eac17c90e9596205f7fec105635a957b713 100644 (file)
@@ -118,7 +118,6 @@ extern unsigned long get_sdram_size(void);
 #define CONFIG_SYS_DDR_CS0_BNDS                0x0000003f
 #define CONFIG_SYS_DDR_CS0_CONFIG      0x80014302
 #define CONFIG_SYS_DDR_CS0_CONFIG_2    0x00000000
-#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
 #define CONFIG_SYS_DDR_INIT_ADDR       0x00000000
 #define CONFIG_SYS_DDR_INIT_EXT_ADDR   0x00000000
 #define CONFIG_SYS_DDR_MODE_CONTROL    0x00000000
index e9217394e028ea090ca8f340e10ce3cb16313b3c..a0d583040cde84e69910f1f3198832f363661699 100644 (file)
 #define CONFIG_SYS_DDR_CS1_CONFIG      0x80014302
 #define CONFIG_SYS_DDR_CS1_CONFIG_2    0x00000000
 
-#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
 #define CONFIG_SYS_DDR_INIT_ADDR       0x00000000
 #define CONFIG_SYS_DDR_INIT_EXT_ADDR   0x00000000
 #define CONFIG_SYS_DDR_MODE_CONTROL    0x00000000