diff options
Diffstat (limited to 'board/freescale/t4rdb')
-rw-r--r-- | board/freescale/t4rdb/Kconfig | 15 | ||||
-rw-r--r-- | board/freescale/t4rdb/MAINTAINERS | 7 | ||||
-rw-r--r-- | board/freescale/t4rdb/t4240rdb.c | 12 |
3 files changed, 31 insertions, 3 deletions
diff --git a/board/freescale/t4rdb/Kconfig b/board/freescale/t4rdb/Kconfig new file mode 100644 index 0000000000..07e3c0df0e --- /dev/null +++ b/board/freescale/t4rdb/Kconfig @@ -0,0 +1,15 @@ +if TARGET_T4240RDB + +config SYS_BOARD + string + default "t4rdb" + +config SYS_VENDOR + string + default "freescale" + +config SYS_CONFIG_NAME + string + default "T4240RDB" + +endif diff --git a/board/freescale/t4rdb/MAINTAINERS b/board/freescale/t4rdb/MAINTAINERS new file mode 100644 index 0000000000..845c1b6d66 --- /dev/null +++ b/board/freescale/t4rdb/MAINTAINERS @@ -0,0 +1,7 @@ +T4RDB BOARD +M: Chunhe Lan <Chunhe.Lan@freescale.com> +S: Maintained +F: board/freescale/t4rdb/ +F: include/configs/T4240RDB.h +F: configs/T4160RDB_defconfig +F: configs/T4240RDB_defconfig diff --git a/board/freescale/t4rdb/t4240rdb.c b/board/freescale/t4rdb/t4240rdb.c index 5448c86c48..afef7e93d0 100644 --- a/board/freescale/t4rdb/t4240rdb.c +++ b/board/freescale/t4rdb/t4240rdb.c @@ -39,7 +39,7 @@ int checkboard(void) int board_early_init_r(void) { const unsigned int flashbase = CONFIG_SYS_FLASH_BASE; - const u8 flash_esel = find_tlb_idx((void *)flashbase, 1); + int flash_esel = find_tlb_idx((void *)flashbase, 1); /* * Remap Boot flash + PROMJET region to caching-inhibited @@ -50,8 +50,14 @@ int board_early_init_r(void) flush_dcache(); invalidate_icache(); - /* invalidate existing TLB entry for flash + promjet */ - disable_tlb(flash_esel); + if (flash_esel == -1) { + /* very unlikely unless something is messed up */ + puts("Error: Could not find TLB for FLASH BASE\n"); + flash_esel = 2; /* give our best effort to continue */ + } else { + /* invalidate existing TLB entry for flash + promjet */ + disable_tlb(flash_esel); + } set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS, MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, |