summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boards
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2013-07-31 10:43:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-05 12:09:22 +0200
commit89cdacb0cbd0a5914d8e3e1fa00cfdf85f83ef1d (patch)
treecb4b36b51a7720739fbdf52a6467816ed3263a02 /arch/ppc/boards
parent2fbd8f1ade7f2321c6a9c31799fbced4c77f796b (diff)
downloadbarebox-89cdacb0cbd0a5914d8e3e1fa00cfdf85f83ef1d.tar.gz
barebox-89cdacb0cbd0a5914d8e3e1fa00cfdf85f83ef1d.tar.xz
P2020RDB: map boot flash.
The chip select 0 (boot flash) registers are updated by the board specific code as it is not done by the cpu early initialisation any more. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards')
-rw-r--r--arch/ppc/boards/freescale-p2020rdb/config.h4
-rw-r--r--arch/ppc/boards/freescale-p2020rdb/p2020rdb.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/boards/freescale-p2020rdb/config.h b/arch/ppc/boards/freescale-p2020rdb/config.h
index 3b2bb5ed04..c6d32161cf 100644
--- a/arch/ppc/boards/freescale-p2020rdb/config.h
+++ b/arch/ppc/boards/freescale-p2020rdb/config.h
@@ -87,8 +87,4 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
/* Leave 256 bytes for global data */
#define CFG_INIT_SP_OFFSET (0x00004000 - 256)
-#define CFG_BR0_PRELIM (BR_PHYS_ADDR(CFG_FLASH_BASE_PHYS) | \
- BR_PS_16 | BR_V) /* NOR Base Address */
-#define CFG_OR0_PRELIM 0xff000ff7 /* NOR Options */
-
#endif /* __CONFIG_H */
diff --git a/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c b/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c
index 6426bd3c7e..537565da6b 100644
--- a/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c
+++ b/arch/ppc/boards/freescale-p2020rdb/p2020rdb.c
@@ -235,6 +235,10 @@ static int board_init_r(void)
checkboard();
+ /* Map the whole boot flash */
+ fsl_set_lbc_br(0, BR_PHYS_ADDR(CFG_FLASH_BASE_PHYS) | BR_PS_16 | BR_V);
+ fsl_set_lbc_or(0, 0xff000ff7);
+
/* Flush d-cache and invalidate i-cache of any FLASH data */
flush_dcache();
invalidate_icache();