summaryrefslogtreecommitdiff
path: root/board/freescale/t4rdb/tlb.c
diff options
context:
space:
mode:
authorChunhe Lan <Chunhe.Lan@freescale.com>2014-09-12 14:47:09 +0800
committerYork Sun <yorksun@freescale.com>2014-11-14 11:12:14 -0800
commitab06b236f76cfa42f264ee161be190b3e479298f (patch)
tree2adc913e66d4c8b1857406d6a8f4142293da5acd /board/freescale/t4rdb/tlb.c
parenta53dd530013bba81ad6ba87a661ff19b12977c23 (diff)
downloadu-boot-imx-ab06b236f76cfa42f264ee161be190b3e479298f.zip
u-boot-imx-ab06b236f76cfa42f264ee161be190b3e479298f.tar.gz
u-boot-imx-ab06b236f76cfa42f264ee161be190b3e479298f.tar.bz2
powerpc/t4rdb: Add support of CPLD
This support of CPLD includes - Files and register definitions - Command to switch alternate bank - Command to switch default bank Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/t4rdb/tlb.c')
-rw-r--r--board/freescale/t4rdb/tlb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/t4rdb/tlb.c b/board/freescale/t4rdb/tlb.c
index 4b50bcd..474301e 100644
--- a/board/freescale/t4rdb/tlb.c
+++ b/board/freescale/t4rdb/tlb.c
@@ -106,6 +106,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
0, 16, BOOKE_PAGESZ_64K, 1),
#endif
+#ifdef CONFIG_SYS_CPLD_BASE
+ SET_TLB_ENTRY(1, CONFIG_SYS_CPLD_BASE, CONFIG_SYS_CPLD_BASE_PHYS,
+ MAS3_SW|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+ 0, 17, BOOKE_PAGESZ_4K, 1),
+#endif
};
int num_tlb_entries = ARRAY_SIZE(tlb_table);