diff options
author | Jason Jin <Jason.Jin@freescale.com> | 2008-10-31 05:07:04 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2008-10-31 13:14:31 -0500 |
commit | c57fc28947e248fb03c49a28b467686299895055 (patch) | |
tree | 49ae1e8c6cf330dfc82849c066ee17ef658aa121 /board/freescale/mpc8536ds/tlb.c | |
parent | 6fc110bd8a8d642b8f7b0653bd9a08a0b7c3d50b (diff) | |
download | u-boot-imx-c57fc28947e248fb03c49a28b467686299895055.zip u-boot-imx-c57fc28947e248fb03c49a28b467686299895055.tar.gz u-boot-imx-c57fc28947e248fb03c49a28b467686299895055.tar.bz2 |
NAND: Add NAND support for MPC8536DS board
This patch defines 1M TLB&LAW size for NAND on MPC8536DS, assigns 0xffa00000
for CONFIG_SYS_NAND_BASE and adds other NAND supports in config file.
It also moves environment(CONFIG_ENV_ADDR) outside of u-boot image.
Singed-off-by: Jason Jin <Jason.Jin@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8536ds/tlb.c')
-rw-r--r-- | board/freescale/mpc8536ds/tlb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/mpc8536ds/tlb.c b/board/freescale/mpc8536ds/tlb.c index ebf41ce..c81a959 100644 --- a/board/freescale/mpc8536ds/tlb.c +++ b/board/freescale/mpc8536ds/tlb.c @@ -66,6 +66,11 @@ struct fsl_e_tlb_entry tlb_table[] = { SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_IO_PHYS, CONFIG_SYS_PCI1_IO_PHYS, MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, 3, BOOKE_PAGESZ_256K, 1), + + /* *I*G - NAND */ + SET_TLB_ENTRY(1, CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_BASE_PHYS, + MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, + 0, 4, BOOKE_PAGESZ_1M, 1), }; int num_tlb_entries = ARRAY_SIZE(tlb_table); |