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 <s...@denx.de>
Cc: Detlev Zundel <d...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to