From: Stefan Roese Date: Wed, 15 Sep 2010 14:58:04 +0200 Subject: [U-Boot] [PATCH] ppc4xx: Don't fixup NOR flash node size on Ebony Message-ID: <1284555484-27269-1-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Detlev Zundel --- 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