summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8536ds/mpc8536ds.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-11-13 09:25:07 -0600
committerKumar Gala <galak@kernel.crashing.org>2010-01-05 13:49:08 -0600
commit5fb6ea3ad3562f78df8693ed8c4ca89654236c4f (patch)
tree1d05605537b06a3b98cfbc7d45f3333ee52cb4cc /board/freescale/mpc8536ds/mpc8536ds.c
parent783852e467f32a3a5568b542379e9fec3d26a173 (diff)
downloadu-boot-imx-5fb6ea3ad3562f78df8693ed8c4ca89654236c4f.zip
u-boot-imx-5fb6ea3ad3562f78df8693ed8c4ca89654236c4f.tar.gz
u-boot-imx-5fb6ea3ad3562f78df8693ed8c4ca89654236c4f.tar.bz2
ppc/85xx: Make flash TLB entry determined at runtime on FSL boards
Rather than hard coding which TLB entry the FLASH is mapped with we can use find_tlb_idx to determine the entry. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8536ds/mpc8536ds.c')
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index ce40cdb..f8292cf 100644
--- a/board/freescale/mpc8536ds/mpc8536ds.c
+++ b/board/freescale/mpc8536ds/mpc8536ds.c
@@ -313,7 +313,7 @@ void pci_init_board(void)
int board_early_init_r(void)
{
const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
- const u8 flash_esel = 1;
+ const u8 flash_esel = find_tlb_idx((void *)flashbase, 1);
/*
* Remap Boot flash + PROMJET region to caching-inhibited