[U-Boot] [PATCH] ppc4xx: Don't fixup NOR flash node size on Ebony
Stefan Roese
sr at denx.de
Wed Sep 15 14:58:04 CEST 2010
Don't update size in "reg" property of NOR FLASH device tree nodes.
This leads to a problem with this NOR flash setup, where
chip-select 0 is connected to 512KiB SRAM *and* 512KiB NOR flash.
And with this fixup-code, the size of the NOR flash node is changed
from 512KiB to 1MiB which leads to a crash in the Linux MTD driver.
Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Detlev Zundel <dzu at denx.de>
---
include/configs/ebony.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/configs/ebony.h b/include/configs/ebony.h
index 10f425d..eb58240 100644
--- a/include/configs/ebony.h
+++ b/include/configs/ebony.h
@@ -117,6 +117,14 @@
#define CONFIG_SYS_FLASH_ADDR0 0x5555
#define CONFIG_SYS_FLASH_ADDR1 0x2aaa
#define CONFIG_SYS_FLASH_WORD_SIZE unsigned char
+/*
+ * Don't update size in "reg" property of NOR FLASH device tree nodes.
+ * This leads to a problem with this NOR flash setup, where
+ * chip-select 0 is connected to 512KiB SRAM *and* 512KiB NOR flash.
+ * And with this fixup-code, the size of the NOR flash node is changed
+ * from 512KiB to 1MiB which leads to a crash in the Linux MTD driver.
+ */
+#undef CONFIG_FDT_FIXUP_NOR_FLASH_SIZE
#ifdef CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */
--
1.7.2.3
More information about the U-Boot
mailing list