Skip to content
Snippets Groups Projects
Commit 4adcbdc6 authored by Stefan Roese's avatar Stefan Roese
Browse files

ppc4xx: Enable NOR flash support in sequoia_ramboot target


Until now, the Sequoia RAM-booting image disabled NOR flash support
as this image was mainly created for NAND-only boards. This patch
now enables NOR flash support for this RAM-booting version as well.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 834a45d7
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,8 @@ int misc_init_r(void) ...@@ -155,7 +155,8 @@ int misc_init_r(void)
gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize; gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize;
gd->bd->bi_flashoffset = 0; gd->bd->bi_flashoffset = 0;
#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) #if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) || \
defined(CONFIG_SYS_RAMBOOT)
mtdcr(EBC0_CFGADDR, PB3CR); mtdcr(EBC0_CFGADDR, PB3CR);
#else #else
mtdcr(EBC0_CFGADDR, PB0CR); mtdcr(EBC0_CFGADDR, PB0CR);
...@@ -163,7 +164,8 @@ int misc_init_r(void) ...@@ -163,7 +164,8 @@ int misc_init_r(void)
pbcr = mfdcr(EBC0_CFGDATA); pbcr = mfdcr(EBC0_CFGDATA);
size_val = ffs(gd->bd->bi_flashsize) - 21; size_val = ffs(gd->bd->bi_flashsize) - 21;
pbcr = (pbcr & 0x0001ffff) | gd->bd->bi_flashstart | (size_val << 17); pbcr = (pbcr & 0x0001ffff) | gd->bd->bi_flashstart | (size_val << 17);
#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) #if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) || \
defined(CONFIG_SYS_RAMBOOT)
mtdcr(EBC0_CFGADDR, PB3CR); mtdcr(EBC0_CFGADDR, PB3CR);
#else #else
mtdcr(EBC0_CFGADDR, PB0CR); mtdcr(EBC0_CFGADDR, PB0CR);
......
...@@ -81,17 +81,6 @@ ...@@ -81,17 +81,6 @@
#define CONFIG_CMD_PING #define CONFIG_CMD_PING
#define CONFIG_CMD_REGINFO #define CONFIG_CMD_REGINFO
#if defined(CONFIG_SYS_RAMBOOT)
/*
* Disable NOR FLASH commands on RAM-booting version. One main reason for this
* RAM-booting version is boards with NAND and without NOR. This image can
* be used for initial NAND programming.
*/
#define CONFIG_SYS_NO_FLASH
#undef CONFIG_CMD_FLASH
#undef CONFIG_CMD_IMLS
#endif
/* /*
* Miscellaneous configurable options * Miscellaneous configurable options
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment