diff options
Diffstat (limited to 'board/freescale/p1_p2_rdb_pc')
-rw-r--r-- | board/freescale/p1_p2_rdb_pc/Kconfig | 15 | ||||
-rw-r--r-- | board/freescale/p1_p2_rdb_pc/MAINTAINERS | 51 | ||||
-rw-r--r-- | board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 12 |
3 files changed, 75 insertions, 3 deletions
diff --git a/board/freescale/p1_p2_rdb_pc/Kconfig b/board/freescale/p1_p2_rdb_pc/Kconfig new file mode 100644 index 0000000000..01b89fa048 --- /dev/null +++ b/board/freescale/p1_p2_rdb_pc/Kconfig @@ -0,0 +1,15 @@ +if TARGET_P1_P2_RDB_PC + +config SYS_BOARD + string + default "p1_p2_rdb_pc" + +config SYS_VENDOR + string + default "freescale" + +config SYS_CONFIG_NAME + string + default "p1_p2_rdb_pc" + +endif diff --git a/board/freescale/p1_p2_rdb_pc/MAINTAINERS b/board/freescale/p1_p2_rdb_pc/MAINTAINERS new file mode 100644 index 0000000000..4d429fe9cf --- /dev/null +++ b/board/freescale/p1_p2_rdb_pc/MAINTAINERS @@ -0,0 +1,51 @@ +P1_P2_RDB_PC BOARD +M: - +S: Maintained +F: board/freescale/p1_p2_rdb_pc/ +F: include/configs/p1_p2_rdb_pc.h +F: configs/P1020MBG-PC_defconfig +F: configs/P1020MBG-PC_36BIT_defconfig +F: configs/P1020MBG-PC_36BIT_SDCARD_defconfig +F: configs/P1020MBG-PC_SDCARD_defconfig +F: configs/P1020RDB-PC_defconfig +F: configs/P1020RDB-PC_36BIT_defconfig +F: configs/P1020RDB-PC_36BIT_NAND_defconfig +F: configs/P1020RDB-PC_36BIT_SDCARD_defconfig +F: configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +F: configs/P1020RDB-PC_NAND_defconfig +F: configs/P1020RDB-PC_SDCARD_defconfig +F: configs/P1020RDB-PC_SPIFLASH_defconfig +F: configs/P1020RDB-PD_defconfig +F: configs/P1020RDB-PD_NAND_defconfig +F: configs/P1020RDB-PD_SDCARD_defconfig +F: configs/P1020RDB-PD_SPIFLASH_defconfig +F: configs/P1020UTM-PC_defconfig +F: configs/P1020UTM-PC_36BIT_defconfig +F: configs/P1020UTM-PC_36BIT_SDCARD_defconfig +F: configs/P1020UTM-PC_SDCARD_defconfig +F: configs/P1021RDB-PC_defconfig +F: configs/P1021RDB-PC_36BIT_defconfig +F: configs/P1021RDB-PC_36BIT_NAND_defconfig +F: configs/P1021RDB-PC_36BIT_SDCARD_defconfig +F: configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig +F: configs/P1021RDB-PC_NAND_defconfig +F: configs/P1021RDB-PC_SDCARD_defconfig +F: configs/P1021RDB-PC_SPIFLASH_defconfig +F: configs/P1024RDB_defconfig +F: configs/P1024RDB_36BIT_defconfig +F: configs/P1024RDB_NAND_defconfig +F: configs/P1024RDB_SDCARD_defconfig +F: configs/P1024RDB_SPIFLASH_defconfig +F: configs/P1025RDB_defconfig +F: configs/P1025RDB_36BIT_defconfig +F: configs/P1025RDB_NAND_defconfig +F: configs/P1025RDB_SDCARD_defconfig +F: configs/P1025RDB_SPIFLASH_defconfig +F: configs/P2020RDB-PC_defconfig +F: configs/P2020RDB-PC_36BIT_defconfig +F: configs/P2020RDB-PC_36BIT_NAND_defconfig +F: configs/P2020RDB-PC_36BIT_SDCARD_defconfig +F: configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +F: configs/P2020RDB-PC_NAND_defconfig +F: configs/P2020RDB-PC_SDCARD_defconfig +F: configs/P2020RDB-PC_SPIFLASH_defconfig diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 5f3d6fd28b..a6756c68f4 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -288,7 +288,7 @@ void pci_init_board(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 region to caching-inhibited @@ -299,8 +299,14 @@ int board_early_init_r(void) flush_dcache(); invalidate_icache(); - /* invalidate existing TLB entry for flash */ - 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 */ + disable_tlb(flash_esel); + } set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS, /* tlb, epn, rpn */ MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,/* perms, wimge */ |