diff options
Diffstat (limited to 'board/freescale/t1040qds')
-rw-r--r-- | board/freescale/t1040qds/Kconfig | 15 | ||||
-rw-r--r-- | board/freescale/t1040qds/MAINTAINERS | 12 | ||||
-rw-r--r-- | board/freescale/t1040qds/eth.c | 4 | ||||
-rw-r--r-- | board/freescale/t1040qds/t1040qds.c | 12 | ||||
-rw-r--r-- | board/freescale/t1040qds/t1040qds_qixis.h | 4 |
5 files changed, 43 insertions, 4 deletions
diff --git a/board/freescale/t1040qds/Kconfig b/board/freescale/t1040qds/Kconfig new file mode 100644 index 0000000..c1c96f0 --- /dev/null +++ b/board/freescale/t1040qds/Kconfig @@ -0,0 +1,15 @@ +if TARGET_T1040QDS + +config SYS_BOARD + string + default "t1040qds" + +config SYS_VENDOR + string + default "freescale" + +config SYS_CONFIG_NAME + string + default "T1040QDS" + +endif diff --git a/board/freescale/t1040qds/MAINTAINERS b/board/freescale/t1040qds/MAINTAINERS new file mode 100644 index 0000000..83f6b3c --- /dev/null +++ b/board/freescale/t1040qds/MAINTAINERS @@ -0,0 +1,12 @@ +T1040QDS BOARD +M: Poonam Aggrwal <poonam.aggrwal@freescale.com> +S: Maintained +F: board/freescale/t1040qds/ +F: include/configs/T1040QDS.h +F: configs/T1040QDS_defconfig +F: configs/T1040QDS_D4_defconfig + +T1040QDS_SECURE_BOOT BOARD +M: Aneesh Bansal <aneesh.bansal@freescale.com> +S: Maintained +F: configs/T1040QDS_SECURE_BOOT_defconfig diff --git a/board/freescale/t1040qds/eth.c b/board/freescale/t1040qds/eth.c index 3077b4a..1929bba 100644 --- a/board/freescale/t1040qds/eth.c +++ b/board/freescale/t1040qds/eth.c @@ -355,7 +355,9 @@ static void set_brdcfg9_for_gtx_clk(void) { u8 brdcfg9; brdcfg9 = QIXIS_READ(brdcfg[9]); - brdcfg9 |= (1 << 5); +/* Initializing EPHY2 clock to RGMII mode */ + brdcfg9 &= ~(BRDCFG9_EPHY2_MASK); + brdcfg9 |= (BRDCFG9_EPHY2_VAL); QIXIS_WRITE(brdcfg[9], brdcfg9); } diff --git a/board/freescale/t1040qds/t1040qds.c b/board/freescale/t1040qds/t1040qds.c index 0e83d17..19af46e 100644 --- a/board/freescale/t1040qds/t1040qds.c +++ b/board/freescale/t1040qds/t1040qds.c @@ -119,7 +119,7 @@ int board_early_init_r(void) { #ifdef CONFIG_SYS_FLASH_BASE 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 @@ -130,8 +130,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, diff --git a/board/freescale/t1040qds/t1040qds_qixis.h b/board/freescale/t1040qds/t1040qds_qixis.h index 98d2d39..cef8ad0 100644 --- a/board/freescale/t1040qds/t1040qds_qixis.h +++ b/board/freescale/t1040qds/t1040qds_qixis.h @@ -17,6 +17,10 @@ #define BRDCFG5_IMX_MASK 0xC0 #define BRDCFG5_IMX_DIU 0x80 +/* BRDCFG9[2] controls EPHY2 Clock */ +#define BRDCFG9_EPHY2_MASK 0x20 +#define BRDCFG9_EPHY2_VAL 0x00 + /* BRDCFG15[3] controls LCD Panel Powerdown*/ #define BRDCFG15_LCDPD_MASK 0x10 #define BRDCFG15_LCDPD_ENABLED 0x00 |