summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2014-08-11 10:21:03 +0200
committerStefano Babic <sbabic@denx.de>2014-08-11 10:21:03 +0200
commite82abaeb7f2a0833fccf90460c48b9f2100258f8 (patch)
treede701f5c90b7373966412d566b5c00d3837954bc /board/freescale
parentf93f21906e374d46c6abfbdf4eb9cb1ab51b6384 (diff)
parent1899fac925eda817e12234aef3d01d354788662e (diff)
downloadu-boot-imx-e82abaeb7f2a0833fccf90460c48b9f2100258f8.zip
u-boot-imx-e82abaeb7f2a0833fccf90460c48b9f2100258f8.tar.gz
u-boot-imx-e82abaeb7f2a0833fccf90460c48b9f2100258f8.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-arm
Conflicts: boards.cfg Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/b4860qds/Kconfig15
-rw-r--r--board/freescale/b4860qds/MAINTAINERS17
-rw-r--r--board/freescale/b4860qds/b4860qds.c12
-rw-r--r--board/freescale/bsc9131rdb/Kconfig15
-rw-r--r--board/freescale/bsc9131rdb/MAINTAINERS9
-rw-r--r--board/freescale/bsc9132qds/Kconfig15
-rw-r--r--board/freescale/bsc9132qds/MAINTAINERS25
-rw-r--r--board/freescale/bsc9132qds/bsc9132qds.c12
-rw-r--r--board/freescale/c29xpcie/Kconfig15
-rw-r--r--board/freescale/c29xpcie/MAINTAINERS8
-rw-r--r--board/freescale/c29xpcie/c29xpcie.c12
-rw-r--r--board/freescale/corenet_ds/Kconfig63
-rw-r--r--board/freescale/corenet_ds/MAINTAINERS29
-rw-r--r--board/freescale/corenet_ds/corenet_ds.c12
-rw-r--r--board/freescale/ls2085a/Kconfig47
-rw-r--r--board/freescale/ls2085a/MAINTAINERS9
-rw-r--r--board/freescale/m5208evbe/Kconfig19
-rw-r--r--board/freescale/m5208evbe/MAINTAINERS6
-rw-r--r--board/freescale/m52277evb/Kconfig19
-rw-r--r--board/freescale/m52277evb/MAINTAINERS7
-rw-r--r--board/freescale/m5235evb/Kconfig19
-rw-r--r--board/freescale/m5235evb/MAINTAINERS7
-rw-r--r--board/freescale/m5249evb/Kconfig19
-rw-r--r--board/freescale/m5249evb/MAINTAINERS6
-rw-r--r--board/freescale/m5253demo/Kconfig19
-rw-r--r--board/freescale/m5253demo/MAINTAINERS6
-rw-r--r--board/freescale/m5253evbe/Kconfig19
-rw-r--r--board/freescale/m5253evbe/MAINTAINERS6
-rw-r--r--board/freescale/m5272c3/Kconfig19
-rw-r--r--board/freescale/m5272c3/MAINTAINERS6
-rw-r--r--board/freescale/m5275evb/Kconfig19
-rw-r--r--board/freescale/m5275evb/MAINTAINERS6
-rw-r--r--board/freescale/m5282evb/Kconfig19
-rw-r--r--board/freescale/m5282evb/MAINTAINERS6
-rw-r--r--board/freescale/m53017evb/Kconfig19
-rw-r--r--board/freescale/m53017evb/MAINTAINERS6
-rw-r--r--board/freescale/m5329evb/Kconfig19
-rw-r--r--board/freescale/m5329evb/MAINTAINERS7
-rw-r--r--board/freescale/m5373evb/Kconfig19
-rw-r--r--board/freescale/m5373evb/MAINTAINERS6
-rw-r--r--board/freescale/m54418twr/Kconfig19
-rw-r--r--board/freescale/m54418twr/MAINTAINERS11
-rw-r--r--board/freescale/m54451evb/Kconfig19
-rw-r--r--board/freescale/m54451evb/MAINTAINERS7
-rw-r--r--board/freescale/m54455evb/Kconfig19
-rw-r--r--board/freescale/m54455evb/MAINTAINERS10
-rw-r--r--board/freescale/m547xevb/Kconfig19
-rw-r--r--board/freescale/m547xevb/MAINTAINERS12
-rw-r--r--board/freescale/m548xevb/Kconfig19
-rw-r--r--board/freescale/m548xevb/MAINTAINERS13
-rw-r--r--board/freescale/mpc5121ads/Kconfig15
-rw-r--r--board/freescale/mpc5121ads/MAINTAINERS7
-rw-r--r--board/freescale/mpc7448hpc2/Kconfig15
-rw-r--r--board/freescale/mpc7448hpc2/MAINTAINERS6
-rw-r--r--board/freescale/mpc8266ads/Kconfig15
-rw-r--r--board/freescale/mpc8266ads/MAINTAINERS6
-rw-r--r--board/freescale/mpc8308rdb/Kconfig15
-rw-r--r--board/freescale/mpc8308rdb/MAINTAINERS6
-rw-r--r--board/freescale/mpc8313erdb/Kconfig15
-rw-r--r--board/freescale/mpc8313erdb/MAINTAINERS9
-rw-r--r--board/freescale/mpc8315erdb/Kconfig15
-rw-r--r--board/freescale/mpc8315erdb/MAINTAINERS6
-rw-r--r--board/freescale/mpc8323erdb/Kconfig15
-rw-r--r--board/freescale/mpc8323erdb/MAINTAINERS6
-rw-r--r--board/freescale/mpc832xemds/Kconfig15
-rw-r--r--board/freescale/mpc832xemds/MAINTAINERS10
-rw-r--r--board/freescale/mpc8349emds/Kconfig15
-rw-r--r--board/freescale/mpc8349emds/MAINTAINERS6
-rw-r--r--board/freescale/mpc8349itx/Kconfig15
-rw-r--r--board/freescale/mpc8349itx/MAINTAINERS8
-rw-r--r--board/freescale/mpc8360emds/Kconfig15
-rw-r--r--board/freescale/mpc8360emds/MAINTAINERS15
-rw-r--r--board/freescale/mpc8360erdk/Kconfig15
-rw-r--r--board/freescale/mpc8360erdk/MAINTAINERS7
-rw-r--r--board/freescale/mpc837xemds/Kconfig15
-rw-r--r--board/freescale/mpc837xemds/MAINTAINERS7
-rw-r--r--board/freescale/mpc837xerdb/Kconfig15
-rw-r--r--board/freescale/mpc837xerdb/MAINTAINERS6
-rw-r--r--board/freescale/mpc8536ds/Kconfig15
-rw-r--r--board/freescale/mpc8536ds/MAINTAINERS9
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c12
-rw-r--r--board/freescale/mpc8540ads/Kconfig15
-rw-r--r--board/freescale/mpc8540ads/MAINTAINERS6
-rw-r--r--board/freescale/mpc8541cds/Kconfig15
-rw-r--r--board/freescale/mpc8541cds/MAINTAINERS7
-rw-r--r--board/freescale/mpc8544ds/Kconfig15
-rw-r--r--board/freescale/mpc8544ds/MAINTAINERS6
-rw-r--r--board/freescale/mpc8548cds/Kconfig15
-rw-r--r--board/freescale/mpc8548cds/MAINTAINERS8
-rw-r--r--board/freescale/mpc8555cds/Kconfig15
-rw-r--r--board/freescale/mpc8555cds/MAINTAINERS7
-rw-r--r--board/freescale/mpc8560ads/Kconfig15
-rw-r--r--board/freescale/mpc8560ads/MAINTAINERS6
-rw-r--r--board/freescale/mpc8568mds/Kconfig15
-rw-r--r--board/freescale/mpc8568mds/MAINTAINERS6
-rw-r--r--board/freescale/mpc8569mds/Kconfig15
-rw-r--r--board/freescale/mpc8569mds/MAINTAINERS7
-rw-r--r--board/freescale/mpc8572ds/Kconfig15
-rw-r--r--board/freescale/mpc8572ds/MAINTAINERS7
-rw-r--r--board/freescale/mpc8572ds/mpc8572ds.c12
-rw-r--r--board/freescale/mpc8610hpcd/Kconfig15
-rw-r--r--board/freescale/mpc8610hpcd/MAINTAINERS6
-rw-r--r--board/freescale/mpc8641hpcn/Kconfig15
-rw-r--r--board/freescale/mpc8641hpcn/MAINTAINERS7
-rw-r--r--board/freescale/mx23evk/Kconfig23
-rw-r--r--board/freescale/mx23evk/MAINTAINERS6
-rw-r--r--board/freescale/mx25pdk/Kconfig23
-rw-r--r--board/freescale/mx25pdk/MAINTAINERS6
-rw-r--r--board/freescale/mx28evk/Kconfig23
-rw-r--r--board/freescale/mx28evk/MAINTAINERS9
-rw-r--r--board/freescale/mx31ads/Kconfig23
-rw-r--r--board/freescale/mx31ads/MAINTAINERS6
-rw-r--r--board/freescale/mx31pdk/Kconfig23
-rw-r--r--board/freescale/mx31pdk/MAINTAINERS6
-rw-r--r--board/freescale/mx35pdk/Kconfig23
-rw-r--r--board/freescale/mx35pdk/MAINTAINERS6
-rw-r--r--board/freescale/mx51evk/Kconfig23
-rw-r--r--board/freescale/mx51evk/MAINTAINERS6
-rw-r--r--board/freescale/mx53ard/Kconfig23
-rw-r--r--board/freescale/mx53ard/MAINTAINERS6
-rw-r--r--board/freescale/mx53evk/Kconfig23
-rw-r--r--board/freescale/mx53evk/MAINTAINERS6
-rw-r--r--board/freescale/mx53loco/Kconfig23
-rw-r--r--board/freescale/mx53loco/MAINTAINERS6
-rw-r--r--board/freescale/mx53smd/Kconfig23
-rw-r--r--board/freescale/mx53smd/MAINTAINERS6
-rw-r--r--board/freescale/mx6qarm2/Kconfig23
-rw-r--r--board/freescale/mx6qarm2/MAINTAINERS6
-rw-r--r--board/freescale/mx6qsabreauto/Kconfig23
-rw-r--r--board/freescale/mx6qsabreauto/MAINTAINERS7
-rw-r--r--board/freescale/mx6sabresd/Kconfig23
-rw-r--r--board/freescale/mx6sabresd/MAINTAINERS7
-rw-r--r--board/freescale/mx6slevk/Kconfig23
-rw-r--r--board/freescale/mx6slevk/MAINTAINERS6
-rw-r--r--board/freescale/p1010rdb/Kconfig15
-rw-r--r--board/freescale/p1010rdb/MAINTAINERS33
-rw-r--r--board/freescale/p1010rdb/p1010rdb.c12
-rw-r--r--board/freescale/p1022ds/Kconfig15
-rw-r--r--board/freescale/p1022ds/MAINTAINERS13
-rw-r--r--board/freescale/p1022ds/p1022ds.c12
-rw-r--r--board/freescale/p1023rdb/Kconfig15
-rw-r--r--board/freescale/p1023rdb/MAINTAINERS6
-rw-r--r--board/freescale/p1023rdb/p1023rdb.c12
-rw-r--r--board/freescale/p1023rds/Makefile9
-rw-r--r--board/freescale/p1023rds/README101
-rw-r--r--board/freescale/p1023rds/bcsr.h49
-rw-r--r--board/freescale/p1023rds/law.c19
-rw-r--r--board/freescale/p1023rds/p1023rds.c191
-rw-r--r--board/freescale/p1023rds/tlb.c100
-rw-r--r--board/freescale/p1_p2_rdb/Kconfig15
-rw-r--r--board/freescale/p1_p2_rdb/MAINTAINERS37
-rw-r--r--board/freescale/p1_p2_rdb/p1_p2_rdb.c12
-rw-r--r--board/freescale/p1_p2_rdb_pc/Kconfig15
-rw-r--r--board/freescale/p1_p2_rdb_pc/MAINTAINERS51
-rw-r--r--board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c12
-rw-r--r--board/freescale/p1_twr/Kconfig15
-rw-r--r--board/freescale/p1_twr/MAINTAINERS6
-rw-r--r--board/freescale/p1_twr/p1_twr.c12
-rw-r--r--board/freescale/p2020come/Kconfig15
-rw-r--r--board/freescale/p2020come/MAINTAINERS7
-rw-r--r--board/freescale/p2020ds/Kconfig15
-rw-r--r--board/freescale/p2020ds/MAINTAINERS10
-rw-r--r--board/freescale/p2020ds/p2020ds.c12
-rw-r--r--board/freescale/p2041rdb/Kconfig15
-rw-r--r--board/freescale/p2041rdb/MAINTAINERS11
-rw-r--r--board/freescale/p2041rdb/p2041rdb.c12
-rw-r--r--board/freescale/qemu-ppce500/Kconfig15
-rw-r--r--board/freescale/qemu-ppce500/MAINTAINERS6
-rw-r--r--board/freescale/t1040qds/Kconfig15
-rw-r--r--board/freescale/t1040qds/MAINTAINERS12
-rw-r--r--board/freescale/t1040qds/eth.c4
-rw-r--r--board/freescale/t1040qds/t1040qds.c12
-rw-r--r--board/freescale/t1040qds/t1040qds_qixis.h4
-rw-r--r--board/freescale/t104xrdb/Kconfig15
-rw-r--r--board/freescale/t104xrdb/MAINTAINERS22
-rw-r--r--board/freescale/t104xrdb/t104xrdb.c12
-rw-r--r--board/freescale/t208xqds/Kconfig15
-rw-r--r--board/freescale/t208xqds/MAINTAINERS20
-rw-r--r--board/freescale/t208xqds/t208xqds.c12
-rw-r--r--board/freescale/t208xrdb/Kconfig15
-rw-r--r--board/freescale/t208xrdb/MAINTAINERS15
-rw-r--r--board/freescale/t208xrdb/t208xrdb.c13
-rw-r--r--board/freescale/t4qds/Kconfig31
-rw-r--r--board/freescale/t4qds/MAINTAINERS26
-rw-r--r--board/freescale/t4qds/t4240emu.c12
-rw-r--r--board/freescale/t4qds/t4240qds.c22
-rw-r--r--board/freescale/t4rdb/Kconfig15
-rw-r--r--board/freescale/t4rdb/MAINTAINERS7
-rw-r--r--board/freescale/t4rdb/t4240rdb.c12
-rw-r--r--board/freescale/vf610twr/Kconfig23
-rw-r--r--board/freescale/vf610twr/MAINTAINERS6
191 files changed, 2504 insertions, 538 deletions
diff --git a/board/freescale/b4860qds/Kconfig b/board/freescale/b4860qds/Kconfig
new file mode 100644
index 0000000..c5321d6
--- /dev/null
+++ b/board/freescale/b4860qds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_B4860QDS
+
+config SYS_BOARD
+ string
+ default "b4860qds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "B4860QDS"
+
+endif
diff --git a/board/freescale/b4860qds/MAINTAINERS b/board/freescale/b4860qds/MAINTAINERS
new file mode 100644
index 0000000..9f9a612
--- /dev/null
+++ b/board/freescale/b4860qds/MAINTAINERS
@@ -0,0 +1,17 @@
+B4860QDS BOARD
+M: -
+S: Maintained
+F: board/freescale/b4860qds/
+F: include/configs/B4860QDS.h
+F: configs/B4420QDS_defconfig
+F: configs/B4420QDS_NAND_defconfig
+F: configs/B4420QDS_SPIFLASH_defconfig
+F: configs/B4860QDS_defconfig
+F: configs/B4860QDS_NAND_defconfig
+F: configs/B4860QDS_SPIFLASH_defconfig
+F: configs/B4860QDS_SRIO_PCIE_BOOT_defconfig
+
+B4860QDS_SECURE_BOOT BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/B4860QDS_SECURE_BOOT_defconfig
diff --git a/board/freescale/b4860qds/b4860qds.c b/board/freescale/b4860qds/b4860qds.c
index 9d6b9a7..34d66d5 100644
--- a/board/freescale/b4860qds/b4860qds.c
+++ b/board/freescale/b4860qds/b4860qds.c
@@ -913,7 +913,7 @@ out:
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);
int ret;
/*
@@ -925,8 +925,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/bsc9131rdb/Kconfig b/board/freescale/bsc9131rdb/Kconfig
new file mode 100644
index 0000000..6099d4d
--- /dev/null
+++ b/board/freescale/bsc9131rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_BSC9131RDB
+
+config SYS_BOARD
+ string
+ default "bsc9131rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "BSC9131RDB"
+
+endif
diff --git a/board/freescale/bsc9131rdb/MAINTAINERS b/board/freescale/bsc9131rdb/MAINTAINERS
new file mode 100644
index 0000000..7cd8134
--- /dev/null
+++ b/board/freescale/bsc9131rdb/MAINTAINERS
@@ -0,0 +1,9 @@
+BSC9131RDB BOARD
+M: Poonam Aggrwal <poonam.aggrwal@freescale.com>
+S: Maintained
+F: board/freescale/bsc9131rdb/
+F: include/configs/BSC9131RDB.h
+F: configs/BSC9131RDB_NAND_defconfig
+F: configs/BSC9131RDB_NAND_SYSCLK100_defconfig
+F: configs/BSC9131RDB_SPIFLASH_defconfig
+F: configs/BSC9131RDB_SPIFLASH_SYSCLK100_defconfig
diff --git a/board/freescale/bsc9132qds/Kconfig b/board/freescale/bsc9132qds/Kconfig
new file mode 100644
index 0000000..955069b
--- /dev/null
+++ b/board/freescale/bsc9132qds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_BSC9132QDS
+
+config SYS_BOARD
+ string
+ default "bsc9132qds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "BSC9132QDS"
+
+endif
diff --git a/board/freescale/bsc9132qds/MAINTAINERS b/board/freescale/bsc9132qds/MAINTAINERS
new file mode 100644
index 0000000..3de62d3
--- /dev/null
+++ b/board/freescale/bsc9132qds/MAINTAINERS
@@ -0,0 +1,25 @@
+BSC9132QDS BOARD
+M: Naveen Burmi <NaveenBurmi@freescale.com>
+S: Maintained
+F: board/freescale/bsc9132qds/
+F: include/configs/BSC9132QDS.h
+F: configs/BSC9132QDS_NAND_DDRCLK100_defconfig
+F: configs/BSC9132QDS_NAND_DDRCLK133_defconfig
+F: configs/BSC9132QDS_NOR_DDRCLK100_defconfig
+F: configs/BSC9132QDS_NOR_DDRCLK133_defconfig
+F: configs/BSC9132QDS_SDCARD_DDRCLK100_defconfig
+F: configs/BSC9132QDS_SDCARD_DDRCLK133_defconfig
+F: configs/BSC9132QDS_SPIFLASH_DDRCLK100_defconfig
+F: configs/BSC9132QDS_SPIFLASH_DDRCLK133_defconfig
+
+BSC9132QDS_NAND_DDRCLK100_SECURE BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig
+F: configs/BSC9132QDS_NAND_DDRCLK133_SECURE_defconfig
+F: configs/BSC9132QDS_NOR_DDRCLK100_SECURE_defconfig
+F: configs/BSC9132QDS_NOR_DDRCLK133_SECURE_defconfig
+F: configs/BSC9132QDS_SDCARD_DDRCLK100_SECURE_defconfig
+F: configs/BSC9132QDS_SDCARD_DDRCLK133_SECURE_defconfig
+F: configs/BSC9132QDS_SPIFLASH_DDRCLK100_SECURE_defconfig
+F: configs/BSC9132QDS_SPIFLASH_DDRCLK133_SECURE_defconfig
diff --git a/board/freescale/bsc9132qds/bsc9132qds.c b/board/freescale/bsc9132qds/bsc9132qds.c
index 9377280..10580bc 100644
--- a/board/freescale/bsc9132qds/bsc9132qds.c
+++ b/board/freescale/bsc9132qds/bsc9132qds.c
@@ -150,7 +150,7 @@ int board_early_init_r(void)
{
#ifndef CONFIG_SYS_NO_FLASH
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
@@ -161,8 +161,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,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/c29xpcie/Kconfig b/board/freescale/c29xpcie/Kconfig
new file mode 100644
index 0000000..be9c237
--- /dev/null
+++ b/board/freescale/c29xpcie/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_C29XPCIE
+
+config SYS_BOARD
+ string
+ default "c29xpcie"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "C29XPCIE"
+
+endif
diff --git a/board/freescale/c29xpcie/MAINTAINERS b/board/freescale/c29xpcie/MAINTAINERS
new file mode 100644
index 0000000..db2e5e3
--- /dev/null
+++ b/board/freescale/c29xpcie/MAINTAINERS
@@ -0,0 +1,8 @@
+C29XPCIE BOARD
+M: Po Liu <po.liu@freescale.com>
+S: Maintained
+F: board/freescale/c29xpcie/
+F: include/configs/C29XPCIE.h
+F: configs/C29XPCIE_defconfig
+F: configs/C29XPCIE_NAND_defconfig
+F: configs/C29XPCIE_SPIFLASH_defconfig
diff --git a/board/freescale/c29xpcie/c29xpcie.c b/board/freescale/c29xpcie/c29xpcie.c
index f964d61..534c6d1 100644
--- a/board/freescale/c29xpcie/c29xpcie.c
+++ b/board/freescale/c29xpcie/c29xpcie.c
@@ -49,7 +49,7 @@ int board_early_init_f(void)
int board_early_init_r(void)
{
const unsigned long 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
@@ -60,8 +60,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 = 1; /* 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,
MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/corenet_ds/Kconfig b/board/freescale/corenet_ds/Kconfig
new file mode 100644
index 0000000..8c3bd9c
--- /dev/null
+++ b/board/freescale/corenet_ds/Kconfig
@@ -0,0 +1,63 @@
+if TARGET_P3041DS
+
+config SYS_BOARD
+ string
+ default "corenet_ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P3041DS"
+
+endif
+
+if TARGET_P4080DS
+
+config SYS_BOARD
+ string
+ default "corenet_ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P4080DS"
+
+endif
+
+if TARGET_P5020DS
+
+config SYS_BOARD
+ string
+ default "corenet_ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P5020DS"
+
+endif
+
+if TARGET_P5040DS
+
+config SYS_BOARD
+ string
+ default "corenet_ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P5040DS"
+
+endif
diff --git a/board/freescale/corenet_ds/MAINTAINERS b/board/freescale/corenet_ds/MAINTAINERS
new file mode 100644
index 0000000..841d82f
--- /dev/null
+++ b/board/freescale/corenet_ds/MAINTAINERS
@@ -0,0 +1,29 @@
+CORENET_DS BOARD
+M: -
+S: Maintained
+F: board/freescale/corenet_ds/
+F: include/configs/P3041DS.h
+F: configs/P3041DS_defconfig
+F: configs/P3041DS_NAND_defconfig
+F: configs/P3041DS_SDCARD_defconfig
+F: configs/P3041DS_SECURE_BOOT_defconfig
+F: configs/P3041DS_SPIFLASH_defconfig
+F: configs/P3041DS_SRIO_PCIE_BOOT_defconfig
+F: include/configs/P4080DS.h
+F: configs/P4080DS_defconfig
+F: configs/P4080DS_SDCARD_defconfig
+F: configs/P4080DS_SECURE_BOOT_defconfig
+F: configs/P4080DS_SPIFLASH_defconfig
+F: configs/P4080DS_SRIO_PCIE_BOOT_defconfig
+F: include/configs/P5020DS.h
+F: configs/P5020DS_defconfig
+F: configs/P5020DS_NAND_defconfig
+F: configs/P5020DS_SDCARD_defconfig
+F: configs/P5020DS_SECURE_BOOT_defconfig
+F: configs/P5020DS_SPIFLASH_defconfig
+F: configs/P5020DS_SRIO_PCIE_BOOT_defconfig
+F: include/configs/P5040DS.h
+F: configs/P5040DS_defconfig
+F: configs/P5040DS_NAND_defconfig
+F: configs/P5040DS_SDCARD_defconfig
+F: configs/P5040DS_SPIFLASH_defconfig
diff --git a/board/freescale/corenet_ds/corenet_ds.c b/board/freescale/corenet_ds/corenet_ds.c
index 9212372..65b3867 100644
--- a/board/freescale/corenet_ds/corenet_ds.c
+++ b/board/freescale/corenet_ds/corenet_ds.c
@@ -101,7 +101,7 @@ int board_early_init_f(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
@@ -112,8 +112,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, /* tlb, epn, rpn */
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
diff --git a/board/freescale/ls2085a/Kconfig b/board/freescale/ls2085a/Kconfig
new file mode 100644
index 0000000..5655e18
--- /dev/null
+++ b/board/freescale/ls2085a/Kconfig
@@ -0,0 +1,47 @@
+if TARGET_LS2085A_EMU
+
+config SYS_CPU
+ string
+ default "armv8"
+
+config SYS_BOARD
+ string
+ default "ls2085a"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "fsl-lsch3"
+
+config SYS_CONFIG_NAME
+ string
+ default "ls2085a_emu"
+
+endif
+
+if TARGET_LS2085A_SIMU
+
+config SYS_CPU
+ string
+ default "armv8"
+
+config SYS_BOARD
+ string
+ default "ls2085a"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "fsl-lsch3"
+
+config SYS_CONFIG_NAME
+ string
+ default "ls2085a_simu"
+
+endif
diff --git a/board/freescale/ls2085a/MAINTAINERS b/board/freescale/ls2085a/MAINTAINERS
new file mode 100644
index 0000000..572c4b8
--- /dev/null
+++ b/board/freescale/ls2085a/MAINTAINERS
@@ -0,0 +1,9 @@
+LS2085A BOARD
+M: York Sun <yorksun@freescale.com>
+S: Maintained
+F: board/freescale/ls2085a/
+F: include/configs/ls2085a_emu.h
+F: configs/ls2085a_emu_defconfig
+F: configs/ls2085a_emu_D4_defconfig
+F: include/configs/ls2085a_simu.h
+F: configs/ls2085a_simu_defconfig
diff --git a/board/freescale/m5208evbe/Kconfig b/board/freescale/m5208evbe/Kconfig
new file mode 100644
index 0000000..9b1fa42
--- /dev/null
+++ b/board/freescale/m5208evbe/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5208EVBE
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5208evbe"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5208EVBE"
+
+endif
diff --git a/board/freescale/m5208evbe/MAINTAINERS b/board/freescale/m5208evbe/MAINTAINERS
new file mode 100644
index 0000000..65d04df
--- /dev/null
+++ b/board/freescale/m5208evbe/MAINTAINERS
@@ -0,0 +1,6 @@
+M5208EVBE BOARD
+M: -
+S: Maintained
+F: board/freescale/m5208evbe/
+F: include/configs/M5208EVBE.h
+F: configs/M5208EVBE_defconfig
diff --git a/board/freescale/m52277evb/Kconfig b/board/freescale/m52277evb/Kconfig
new file mode 100644
index 0000000..54a86e4
--- /dev/null
+++ b/board/freescale/m52277evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M52277EVB
+
+config SYS_CPU
+ string
+ default "mcf5227x"
+
+config SYS_BOARD
+ string
+ default "m52277evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M52277EVB"
+
+endif
diff --git a/board/freescale/m52277evb/MAINTAINERS b/board/freescale/m52277evb/MAINTAINERS
new file mode 100644
index 0000000..390f041
--- /dev/null
+++ b/board/freescale/m52277evb/MAINTAINERS
@@ -0,0 +1,7 @@
+M52277EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m52277evb/
+F: include/configs/M52277EVB.h
+F: configs/M52277EVB_defconfig
+F: configs/M52277EVB_stmicro_defconfig
diff --git a/board/freescale/m5235evb/Kconfig b/board/freescale/m5235evb/Kconfig
new file mode 100644
index 0000000..f996ca2
--- /dev/null
+++ b/board/freescale/m5235evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5235EVB
+
+config SYS_CPU
+ string
+ default "mcf523x"
+
+config SYS_BOARD
+ string
+ default "m5235evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5235EVB"
+
+endif
diff --git a/board/freescale/m5235evb/MAINTAINERS b/board/freescale/m5235evb/MAINTAINERS
new file mode 100644
index 0000000..f44422e
--- /dev/null
+++ b/board/freescale/m5235evb/MAINTAINERS
@@ -0,0 +1,7 @@
+M5235EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m5235evb/
+F: include/configs/M5235EVB.h
+F: configs/M5235EVB_defconfig
+F: configs/M5235EVB_Flash32_defconfig
diff --git a/board/freescale/m5249evb/Kconfig b/board/freescale/m5249evb/Kconfig
new file mode 100644
index 0000000..87643e4
--- /dev/null
+++ b/board/freescale/m5249evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5249EVB
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5249evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5249EVB"
+
+endif
diff --git a/board/freescale/m5249evb/MAINTAINERS b/board/freescale/m5249evb/MAINTAINERS
new file mode 100644
index 0000000..22301b7
--- /dev/null
+++ b/board/freescale/m5249evb/MAINTAINERS
@@ -0,0 +1,6 @@
+M5249EVB BOARD
+M: -
+S: Maintained
+F: board/freescale/m5249evb/
+F: include/configs/M5249EVB.h
+F: configs/M5249EVB_defconfig
diff --git a/board/freescale/m5253demo/Kconfig b/board/freescale/m5253demo/Kconfig
new file mode 100644
index 0000000..76197a7
--- /dev/null
+++ b/board/freescale/m5253demo/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5253DEMO
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5253demo"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5253DEMO"
+
+endif
diff --git a/board/freescale/m5253demo/MAINTAINERS b/board/freescale/m5253demo/MAINTAINERS
new file mode 100644
index 0000000..abe065e
--- /dev/null
+++ b/board/freescale/m5253demo/MAINTAINERS
@@ -0,0 +1,6 @@
+M5253DEMO BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m5253demo/
+F: include/configs/M5253DEMO.h
+F: configs/M5253DEMO_defconfig
diff --git a/board/freescale/m5253evbe/Kconfig b/board/freescale/m5253evbe/Kconfig
new file mode 100644
index 0000000..bdc6c27
--- /dev/null
+++ b/board/freescale/m5253evbe/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5253EVBE
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5253evbe"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5253EVBE"
+
+endif
diff --git a/board/freescale/m5253evbe/MAINTAINERS b/board/freescale/m5253evbe/MAINTAINERS
new file mode 100644
index 0000000..1c21b03
--- /dev/null
+++ b/board/freescale/m5253evbe/MAINTAINERS
@@ -0,0 +1,6 @@
+M5253EVBE BOARD
+M: Hayden Fraser <Hayden.Fraser@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/m5253evbe/
+F: include/configs/M5253EVBE.h
+F: configs/M5253EVBE_defconfig
diff --git a/board/freescale/m5272c3/Kconfig b/board/freescale/m5272c3/Kconfig
new file mode 100644
index 0000000..b69c37a
--- /dev/null
+++ b/board/freescale/m5272c3/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5272C3
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5272c3"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5272C3"
+
+endif
diff --git a/board/freescale/m5272c3/MAINTAINERS b/board/freescale/m5272c3/MAINTAINERS
new file mode 100644
index 0000000..aa4739f
--- /dev/null
+++ b/board/freescale/m5272c3/MAINTAINERS
@@ -0,0 +1,6 @@
+M5272C3 BOARD
+M: -
+S: Maintained
+F: board/freescale/m5272c3/
+F: include/configs/M5272C3.h
+F: configs/M5272C3_defconfig
diff --git a/board/freescale/m5275evb/Kconfig b/board/freescale/m5275evb/Kconfig
new file mode 100644
index 0000000..85514b7
--- /dev/null
+++ b/board/freescale/m5275evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5275EVB
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5275evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5275EVB"
+
+endif
diff --git a/board/freescale/m5275evb/MAINTAINERS b/board/freescale/m5275evb/MAINTAINERS
new file mode 100644
index 0000000..b87d52c
--- /dev/null
+++ b/board/freescale/m5275evb/MAINTAINERS
@@ -0,0 +1,6 @@
+M5275EVB BOARD
+M: -
+S: Maintained
+F: board/freescale/m5275evb/
+F: include/configs/M5275EVB.h
+F: configs/M5275EVB_defconfig
diff --git a/board/freescale/m5282evb/Kconfig b/board/freescale/m5282evb/Kconfig
new file mode 100644
index 0000000..33e98a7
--- /dev/null
+++ b/board/freescale/m5282evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5282EVB
+
+config SYS_CPU
+ string
+ default "mcf52x2"
+
+config SYS_BOARD
+ string
+ default "m5282evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5282EVB"
+
+endif
diff --git a/board/freescale/m5282evb/MAINTAINERS b/board/freescale/m5282evb/MAINTAINERS
new file mode 100644
index 0000000..f945ab4
--- /dev/null
+++ b/board/freescale/m5282evb/MAINTAINERS
@@ -0,0 +1,6 @@
+M5282EVB BOARD
+M: -
+S: Maintained
+F: board/freescale/m5282evb/
+F: include/configs/M5282EVB.h
+F: configs/M5282EVB_defconfig
diff --git a/board/freescale/m53017evb/Kconfig b/board/freescale/m53017evb/Kconfig
new file mode 100644
index 0000000..99ffd7d
--- /dev/null
+++ b/board/freescale/m53017evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M53017EVB
+
+config SYS_CPU
+ string
+ default "mcf532x"
+
+config SYS_BOARD
+ string
+ default "m53017evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M53017EVB"
+
+endif
diff --git a/board/freescale/m53017evb/MAINTAINERS b/board/freescale/m53017evb/MAINTAINERS
new file mode 100644
index 0000000..700b6f7
--- /dev/null
+++ b/board/freescale/m53017evb/MAINTAINERS
@@ -0,0 +1,6 @@
+M53017EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m53017evb/
+F: include/configs/M53017EVB.h
+F: configs/M53017EVB_defconfig
diff --git a/board/freescale/m5329evb/Kconfig b/board/freescale/m5329evb/Kconfig
new file mode 100644
index 0000000..c9a621a
--- /dev/null
+++ b/board/freescale/m5329evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5329EVB
+
+config SYS_CPU
+ string
+ default "mcf532x"
+
+config SYS_BOARD
+ string
+ default "m5329evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5329EVB"
+
+endif
diff --git a/board/freescale/m5329evb/MAINTAINERS b/board/freescale/m5329evb/MAINTAINERS
new file mode 100644
index 0000000..f4f103a
--- /dev/null
+++ b/board/freescale/m5329evb/MAINTAINERS
@@ -0,0 +1,7 @@
+M5329EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m5329evb/
+F: include/configs/M5329EVB.h
+F: configs/M5329AFEE_defconfig
+F: configs/M5329BFEE_defconfig
diff --git a/board/freescale/m5373evb/Kconfig b/board/freescale/m5373evb/Kconfig
new file mode 100644
index 0000000..583a4b5
--- /dev/null
+++ b/board/freescale/m5373evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5373EVB
+
+config SYS_CPU
+ string
+ default "mcf532x"
+
+config SYS_BOARD
+ string
+ default "m5373evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5373EVB"
+
+endif
diff --git a/board/freescale/m5373evb/MAINTAINERS b/board/freescale/m5373evb/MAINTAINERS
new file mode 100644
index 0000000..5db0b34
--- /dev/null
+++ b/board/freescale/m5373evb/MAINTAINERS
@@ -0,0 +1,6 @@
+M5373EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m5373evb/
+F: include/configs/M5373EVB.h
+F: configs/M5373EVB_defconfig
diff --git a/board/freescale/m54418twr/Kconfig b/board/freescale/m54418twr/Kconfig
new file mode 100644
index 0000000..7d73b94
--- /dev/null
+++ b/board/freescale/m54418twr/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M54418TWR
+
+config SYS_CPU
+ string
+ default "mcf5445x"
+
+config SYS_BOARD
+ string
+ default "m54418twr"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M54418TWR"
+
+endif
diff --git a/board/freescale/m54418twr/MAINTAINERS b/board/freescale/m54418twr/MAINTAINERS
new file mode 100644
index 0000000..37b24c7
--- /dev/null
+++ b/board/freescale/m54418twr/MAINTAINERS
@@ -0,0 +1,11 @@
+M54418TWR BOARD
+M: -
+S: Maintained
+F: board/freescale/m54418twr/
+F: include/configs/M54418TWR.h
+F: configs/M54418TWR_defconfig
+F: configs/M54418TWR_nand_mii_defconfig
+F: configs/M54418TWR_nand_rmii_defconfig
+F: configs/M54418TWR_nand_rmii_lowfreq_defconfig
+F: configs/M54418TWR_serial_mii_defconfig
+F: configs/M54418TWR_serial_rmii_defconfig
diff --git a/board/freescale/m54451evb/Kconfig b/board/freescale/m54451evb/Kconfig
new file mode 100644
index 0000000..814db72
--- /dev/null
+++ b/board/freescale/m54451evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M54451EVB
+
+config SYS_CPU
+ string
+ default "mcf5445x"
+
+config SYS_BOARD
+ string
+ default "m54451evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M54451EVB"
+
+endif
diff --git a/board/freescale/m54451evb/MAINTAINERS b/board/freescale/m54451evb/MAINTAINERS
new file mode 100644
index 0000000..be14549
--- /dev/null
+++ b/board/freescale/m54451evb/MAINTAINERS
@@ -0,0 +1,7 @@
+M54451EVB BOARD
+M: -
+S: Maintained
+F: board/freescale/m54451evb/
+F: include/configs/M54451EVB.h
+F: configs/M54451EVB_defconfig
+F: configs/M54451EVB_stmicro_defconfig
diff --git a/board/freescale/m54455evb/Kconfig b/board/freescale/m54455evb/Kconfig
new file mode 100644
index 0000000..acdd13f
--- /dev/null
+++ b/board/freescale/m54455evb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M54455EVB
+
+config SYS_CPU
+ string
+ default "mcf5445x"
+
+config SYS_BOARD
+ string
+ default "m54455evb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M54455EVB"
+
+endif
diff --git a/board/freescale/m54455evb/MAINTAINERS b/board/freescale/m54455evb/MAINTAINERS
new file mode 100644
index 0000000..3788f5f
--- /dev/null
+++ b/board/freescale/m54455evb/MAINTAINERS
@@ -0,0 +1,10 @@
+M54455EVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m54455evb/
+F: include/configs/M54455EVB.h
+F: configs/M54455EVB_defconfig
+F: configs/M54455EVB_a66_defconfig
+F: configs/M54455EVB_i66_defconfig
+F: configs/M54455EVB_intel_defconfig
+F: configs/M54455EVB_stm33_defconfig
diff --git a/board/freescale/m547xevb/Kconfig b/board/freescale/m547xevb/Kconfig
new file mode 100644
index 0000000..d21072e
--- /dev/null
+++ b/board/freescale/m547xevb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5475EVB
+
+config SYS_CPU
+ string
+ default "mcf547x_8x"
+
+config SYS_BOARD
+ string
+ default "m547xevb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5475EVB"
+
+endif
diff --git a/board/freescale/m547xevb/MAINTAINERS b/board/freescale/m547xevb/MAINTAINERS
new file mode 100644
index 0000000..9a8408d
--- /dev/null
+++ b/board/freescale/m547xevb/MAINTAINERS
@@ -0,0 +1,12 @@
+M547XEVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m547xevb/
+F: include/configs/M5475EVB.h
+F: configs/M5475AFE_defconfig
+F: configs/M5475BFE_defconfig
+F: configs/M5475CFE_defconfig
+F: configs/M5475DFE_defconfig
+F: configs/M5475EFE_defconfig
+F: configs/M5475FFE_defconfig
+F: configs/M5475GFE_defconfig
diff --git a/board/freescale/m548xevb/Kconfig b/board/freescale/m548xevb/Kconfig
new file mode 100644
index 0000000..2afe11c
--- /dev/null
+++ b/board/freescale/m548xevb/Kconfig
@@ -0,0 +1,19 @@
+if TARGET_M5485EVB
+
+config SYS_CPU
+ string
+ default "mcf547x_8x"
+
+config SYS_BOARD
+ string
+ default "m548xevb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "M5485EVB"
+
+endif
diff --git a/board/freescale/m548xevb/MAINTAINERS b/board/freescale/m548xevb/MAINTAINERS
new file mode 100644
index 0000000..82ad9fd
--- /dev/null
+++ b/board/freescale/m548xevb/MAINTAINERS
@@ -0,0 +1,13 @@
+M548XEVB BOARD
+M: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
+S: Maintained
+F: board/freescale/m548xevb/
+F: include/configs/M5485EVB.h
+F: configs/M5485AFE_defconfig
+F: configs/M5485BFE_defconfig
+F: configs/M5485CFE_defconfig
+F: configs/M5485DFE_defconfig
+F: configs/M5485EFE_defconfig
+F: configs/M5485FFE_defconfig
+F: configs/M5485GFE_defconfig
+F: configs/M5485HFE_defconfig
diff --git a/board/freescale/mpc5121ads/Kconfig b/board/freescale/mpc5121ads/Kconfig
new file mode 100644
index 0000000..9989ccb
--- /dev/null
+++ b/board/freescale/mpc5121ads/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC5121ADS
+
+config SYS_BOARD
+ string
+ default "mpc5121ads"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "mpc5121ads"
+
+endif
diff --git a/board/freescale/mpc5121ads/MAINTAINERS b/board/freescale/mpc5121ads/MAINTAINERS
new file mode 100644
index 0000000..0c7f682
--- /dev/null
+++ b/board/freescale/mpc5121ads/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC5121ADS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc5121ads/
+F: include/configs/mpc5121ads.h
+F: configs/mpc5121ads_defconfig
+F: configs/mpc5121ads_rev2_defconfig
diff --git a/board/freescale/mpc7448hpc2/Kconfig b/board/freescale/mpc7448hpc2/Kconfig
new file mode 100644
index 0000000..0ea712c
--- /dev/null
+++ b/board/freescale/mpc7448hpc2/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC7448HPC2
+
+config SYS_BOARD
+ string
+ default "mpc7448hpc2"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "mpc7448hpc2"
+
+endif
diff --git a/board/freescale/mpc7448hpc2/MAINTAINERS b/board/freescale/mpc7448hpc2/MAINTAINERS
new file mode 100644
index 0000000..9966b55
--- /dev/null
+++ b/board/freescale/mpc7448hpc2/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC7448HPC2 BOARD
+M: Roy Zang <tie-fei.zang@freescale.com>
+S: Maintained
+F: board/freescale/mpc7448hpc2/
+F: include/configs/mpc7448hpc2.h
+F: configs/mpc7448hpc2_defconfig
diff --git a/board/freescale/mpc8266ads/Kconfig b/board/freescale/mpc8266ads/Kconfig
new file mode 100644
index 0000000..7c5a646
--- /dev/null
+++ b/board/freescale/mpc8266ads/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8266ADS
+
+config SYS_BOARD
+ string
+ default "mpc8266ads"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8266ADS"
+
+endif
diff --git a/board/freescale/mpc8266ads/MAINTAINERS b/board/freescale/mpc8266ads/MAINTAINERS
new file mode 100644
index 0000000..bdea02d
--- /dev/null
+++ b/board/freescale/mpc8266ads/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8266ADS BOARD
+M: Rune Torgersen <runet@innovsys.com>
+S: Maintained
+F: board/freescale/mpc8266ads/
+F: include/configs/MPC8266ADS.h
+F: configs/MPC8266ADS_defconfig
diff --git a/board/freescale/mpc8308rdb/Kconfig b/board/freescale/mpc8308rdb/Kconfig
new file mode 100644
index 0000000..b47765a
--- /dev/null
+++ b/board/freescale/mpc8308rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8308RDB
+
+config SYS_BOARD
+ string
+ default "mpc8308rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8308RDB"
+
+endif
diff --git a/board/freescale/mpc8308rdb/MAINTAINERS b/board/freescale/mpc8308rdb/MAINTAINERS
new file mode 100644
index 0000000..07ff2abd
--- /dev/null
+++ b/board/freescale/mpc8308rdb/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8308RDB BOARD
+M: Ilya Yanok <yanok@emcraft.com>
+S: Maintained
+F: board/freescale/mpc8308rdb/
+F: include/configs/MPC8308RDB.h
+F: configs/MPC8308RDB_defconfig
diff --git a/board/freescale/mpc8313erdb/Kconfig b/board/freescale/mpc8313erdb/Kconfig
new file mode 100644
index 0000000..078f437
--- /dev/null
+++ b/board/freescale/mpc8313erdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8313ERDB
+
+config SYS_BOARD
+ string
+ default "mpc8313erdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8313ERDB"
+
+endif
diff --git a/board/freescale/mpc8313erdb/MAINTAINERS b/board/freescale/mpc8313erdb/MAINTAINERS
new file mode 100644
index 0000000..923ba95
--- /dev/null
+++ b/board/freescale/mpc8313erdb/MAINTAINERS
@@ -0,0 +1,9 @@
+MPC8313ERDB BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8313erdb/
+F: include/configs/MPC8313ERDB.h
+F: configs/MPC8313ERDB_33_defconfig
+F: configs/MPC8313ERDB_66_defconfig
+F: configs/MPC8313ERDB_NAND_33_defconfig
+F: configs/MPC8313ERDB_NAND_66_defconfig
diff --git a/board/freescale/mpc8315erdb/Kconfig b/board/freescale/mpc8315erdb/Kconfig
new file mode 100644
index 0000000..46833ca
--- /dev/null
+++ b/board/freescale/mpc8315erdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8315ERDB
+
+config SYS_BOARD
+ string
+ default "mpc8315erdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8315ERDB"
+
+endif
diff --git a/board/freescale/mpc8315erdb/MAINTAINERS b/board/freescale/mpc8315erdb/MAINTAINERS
new file mode 100644
index 0000000..938c152
--- /dev/null
+++ b/board/freescale/mpc8315erdb/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8315ERDB BOARD
+M: Dave Liu <daveliu@freescale.com>
+S: Maintained
+F: board/freescale/mpc8315erdb/
+F: include/configs/MPC8315ERDB.h
+F: configs/MPC8315ERDB_defconfig
diff --git a/board/freescale/mpc8323erdb/Kconfig b/board/freescale/mpc8323erdb/Kconfig
new file mode 100644
index 0000000..a1c0a61
--- /dev/null
+++ b/board/freescale/mpc8323erdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8323ERDB
+
+config SYS_BOARD
+ string
+ default "mpc8323erdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8323ERDB"
+
+endif
diff --git a/board/freescale/mpc8323erdb/MAINTAINERS b/board/freescale/mpc8323erdb/MAINTAINERS
new file mode 100644
index 0000000..05057c0
--- /dev/null
+++ b/board/freescale/mpc8323erdb/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8323ERDB BOARD
+M: Michael Barkowski <michael.barkowski@freescale.com>
+S: Maintained
+F: board/freescale/mpc8323erdb/
+F: include/configs/MPC8323ERDB.h
+F: configs/MPC8323ERDB_defconfig
diff --git a/board/freescale/mpc832xemds/Kconfig b/board/freescale/mpc832xemds/Kconfig
new file mode 100644
index 0000000..83af2c2
--- /dev/null
+++ b/board/freescale/mpc832xemds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC832XEMDS
+
+config SYS_BOARD
+ string
+ default "mpc832xemds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC832XEMDS"
+
+endif
diff --git a/board/freescale/mpc832xemds/MAINTAINERS b/board/freescale/mpc832xemds/MAINTAINERS
new file mode 100644
index 0000000..56d7073
--- /dev/null
+++ b/board/freescale/mpc832xemds/MAINTAINERS
@@ -0,0 +1,10 @@
+MPC832XEMDS BOARD
+M: Dave Liu <daveliu@freescale.com>
+S: Maintained
+F: board/freescale/mpc832xemds/
+F: include/configs/MPC832XEMDS.h
+F: configs/MPC832XEMDS_defconfig
+F: configs/MPC832XEMDS_ATM_defconfig
+F: configs/MPC832XEMDS_HOST_33_defconfig
+F: configs/MPC832XEMDS_HOST_66_defconfig
+F: configs/MPC832XEMDS_SLAVE_defconfig
diff --git a/board/freescale/mpc8349emds/Kconfig b/board/freescale/mpc8349emds/Kconfig
new file mode 100644
index 0000000..8f549dc
--- /dev/null
+++ b/board/freescale/mpc8349emds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8349EMDS
+
+config SYS_BOARD
+ string
+ default "mpc8349emds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8349EMDS"
+
+endif
diff --git a/board/freescale/mpc8349emds/MAINTAINERS b/board/freescale/mpc8349emds/MAINTAINERS
new file mode 100644
index 0000000..141e77a
--- /dev/null
+++ b/board/freescale/mpc8349emds/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8349EMDS BOARD
+M: Kim Phillips <kim.phillips@freescale.com>
+S: Maintained
+F: board/freescale/mpc8349emds/
+F: include/configs/MPC8349EMDS.h
+F: configs/MPC8349EMDS_defconfig
diff --git a/board/freescale/mpc8349itx/Kconfig b/board/freescale/mpc8349itx/Kconfig
new file mode 100644
index 0000000..af3fedd
--- /dev/null
+++ b/board/freescale/mpc8349itx/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8349ITX
+
+config SYS_BOARD
+ string
+ default "mpc8349itx"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8349ITX"
+
+endif
diff --git a/board/freescale/mpc8349itx/MAINTAINERS b/board/freescale/mpc8349itx/MAINTAINERS
new file mode 100644
index 0000000..ed6e4e5
--- /dev/null
+++ b/board/freescale/mpc8349itx/MAINTAINERS
@@ -0,0 +1,8 @@
+MPC8349ITX BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8349itx/
+F: include/configs/MPC8349ITX.h
+F: configs/MPC8349ITX_defconfig
+F: configs/MPC8349ITX_LOWBOOT_defconfig
+F: configs/MPC8349ITXGP_defconfig
diff --git a/board/freescale/mpc8360emds/Kconfig b/board/freescale/mpc8360emds/Kconfig
new file mode 100644
index 0000000..d6e7766
--- /dev/null
+++ b/board/freescale/mpc8360emds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8360EMDS
+
+config SYS_BOARD
+ string
+ default "mpc8360emds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8360EMDS"
+
+endif
diff --git a/board/freescale/mpc8360emds/MAINTAINERS b/board/freescale/mpc8360emds/MAINTAINERS
new file mode 100644
index 0000000..91ff2ef
--- /dev/null
+++ b/board/freescale/mpc8360emds/MAINTAINERS
@@ -0,0 +1,15 @@
+MPC8360EMDS BOARD
+M: Dave Liu <daveliu@freescale.com>
+S: Maintained
+F: board/freescale/mpc8360emds/
+F: include/configs/MPC8360EMDS.h
+F: configs/MPC8360EMDS_33_defconfig
+F: configs/MPC8360EMDS_33_ATM_defconfig
+F: configs/MPC8360EMDS_33_HOST_33_defconfig
+F: configs/MPC8360EMDS_33_HOST_66_defconfig
+F: configs/MPC8360EMDS_33_SLAVE_defconfig
+F: configs/MPC8360EMDS_66_defconfig
+F: configs/MPC8360EMDS_66_ATM_defconfig
+F: configs/MPC8360EMDS_66_HOST_33_defconfig
+F: configs/MPC8360EMDS_66_HOST_66_defconfig
+F: configs/MPC8360EMDS_66_SLAVE_defconfig
diff --git a/board/freescale/mpc8360erdk/Kconfig b/board/freescale/mpc8360erdk/Kconfig
new file mode 100644
index 0000000..bfb3b1f
--- /dev/null
+++ b/board/freescale/mpc8360erdk/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8360ERDK
+
+config SYS_BOARD
+ string
+ default "mpc8360erdk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8360ERDK"
+
+endif
diff --git a/board/freescale/mpc8360erdk/MAINTAINERS b/board/freescale/mpc8360erdk/MAINTAINERS
new file mode 100644
index 0000000..cb075d6
--- /dev/null
+++ b/board/freescale/mpc8360erdk/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8360ERDK BOARD
+M: Anton Vorontsov <avorontsov@ru.mvista.com>
+S: Orphan (since 2014-03)
+F: board/freescale/mpc8360erdk/
+F: include/configs/MPC8360ERDK.h
+F: configs/MPC8360ERDK_defconfig
+F: configs/MPC8360ERDK_33_defconfig
diff --git a/board/freescale/mpc837xemds/Kconfig b/board/freescale/mpc837xemds/Kconfig
new file mode 100644
index 0000000..b0357cb
--- /dev/null
+++ b/board/freescale/mpc837xemds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC837XEMDS
+
+config SYS_BOARD
+ string
+ default "mpc837xemds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC837XEMDS"
+
+endif
diff --git a/board/freescale/mpc837xemds/MAINTAINERS b/board/freescale/mpc837xemds/MAINTAINERS
new file mode 100644
index 0000000..6ff1346
--- /dev/null
+++ b/board/freescale/mpc837xemds/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC837XEMDS BOARD
+M: Dave Liu <daveliu@freescale.com>
+S: Maintained
+F: board/freescale/mpc837xemds/
+F: include/configs/MPC837XEMDS.h
+F: configs/MPC837XEMDS_defconfig
+F: configs/MPC837XEMDS_HOST_defconfig
diff --git a/board/freescale/mpc837xerdb/Kconfig b/board/freescale/mpc837xerdb/Kconfig
new file mode 100644
index 0000000..f8e33e6
--- /dev/null
+++ b/board/freescale/mpc837xerdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC837XERDB
+
+config SYS_BOARD
+ string
+ default "mpc837xerdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC837XERDB"
+
+endif
diff --git a/board/freescale/mpc837xerdb/MAINTAINERS b/board/freescale/mpc837xerdb/MAINTAINERS
new file mode 100644
index 0000000..c216d8d
--- /dev/null
+++ b/board/freescale/mpc837xerdb/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC837XERDB BOARD
+M: Joe D'Abbraccio <ljd015@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc837xerdb/
+F: include/configs/MPC837XERDB.h
+F: configs/MPC837XERDB_defconfig
diff --git a/board/freescale/mpc8536ds/Kconfig b/board/freescale/mpc8536ds/Kconfig
new file mode 100644
index 0000000..c7c818c
--- /dev/null
+++ b/board/freescale/mpc8536ds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8536DS
+
+config SYS_BOARD
+ string
+ default "mpc8536ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8536DS"
+
+endif
diff --git a/board/freescale/mpc8536ds/MAINTAINERS b/board/freescale/mpc8536ds/MAINTAINERS
new file mode 100644
index 0000000..51d7cd7
--- /dev/null
+++ b/board/freescale/mpc8536ds/MAINTAINERS
@@ -0,0 +1,9 @@
+MPC8536DS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8536ds/
+F: include/configs/MPC8536DS.h
+F: configs/MPC8536DS_defconfig
+F: configs/MPC8536DS_36BIT_defconfig
+F: configs/MPC8536DS_SDCARD_defconfig
+F: configs/MPC8536DS_SPIFLASH_defconfig
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index 467f4f2..93eed59 100644
--- a/board/freescale/mpc8536ds/mpc8536ds.c
+++ b/board/freescale/mpc8536ds/mpc8536ds.c
@@ -196,7 +196,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 + PROMJET region to caching-inhibited
@@ -207,8 +207,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 = 1; /* 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, /* tlb, epn, rpn */
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
diff --git a/board/freescale/mpc8540ads/Kconfig b/board/freescale/mpc8540ads/Kconfig
new file mode 100644
index 0000000..2cf252c
--- /dev/null
+++ b/board/freescale/mpc8540ads/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8540ADS
+
+config SYS_BOARD
+ string
+ default "mpc8540ads"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8540ADS"
+
+endif
diff --git a/board/freescale/mpc8540ads/MAINTAINERS b/board/freescale/mpc8540ads/MAINTAINERS
new file mode 100644
index 0000000..41a2191
--- /dev/null
+++ b/board/freescale/mpc8540ads/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8540ADS BOARD
+M: Kumar Gala <kumar.gala@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc8540ads/
+F: include/configs/MPC8540ADS.h
+F: configs/MPC8540ADS_defconfig
diff --git a/board/freescale/mpc8541cds/Kconfig b/board/freescale/mpc8541cds/Kconfig
new file mode 100644
index 0000000..2beefc2
--- /dev/null
+++ b/board/freescale/mpc8541cds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8541CDS
+
+config SYS_BOARD
+ string
+ default "mpc8541cds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8541CDS"
+
+endif
diff --git a/board/freescale/mpc8541cds/MAINTAINERS b/board/freescale/mpc8541cds/MAINTAINERS
new file mode 100644
index 0000000..073210d
--- /dev/null
+++ b/board/freescale/mpc8541cds/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8541CDS BOARD
+M: Kumar Gala <kumar.gala@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc8541cds/
+F: include/configs/MPC8541CDS.h
+F: configs/MPC8541CDS_defconfig
+F: configs/MPC8541CDS_legacy_defconfig
diff --git a/board/freescale/mpc8544ds/Kconfig b/board/freescale/mpc8544ds/Kconfig
new file mode 100644
index 0000000..d55b680
--- /dev/null
+++ b/board/freescale/mpc8544ds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8544DS
+
+config SYS_BOARD
+ string
+ default "mpc8544ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8544DS"
+
+endif
diff --git a/board/freescale/mpc8544ds/MAINTAINERS b/board/freescale/mpc8544ds/MAINTAINERS
new file mode 100644
index 0000000..81b664c
--- /dev/null
+++ b/board/freescale/mpc8544ds/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8544DS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8544ds/
+F: include/configs/MPC8544DS.h
+F: configs/MPC8544DS_defconfig
diff --git a/board/freescale/mpc8548cds/Kconfig b/board/freescale/mpc8548cds/Kconfig
new file mode 100644
index 0000000..69d717e
--- /dev/null
+++ b/board/freescale/mpc8548cds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8548CDS
+
+config SYS_BOARD
+ string
+ default "mpc8548cds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8548CDS"
+
+endif
diff --git a/board/freescale/mpc8548cds/MAINTAINERS b/board/freescale/mpc8548cds/MAINTAINERS
new file mode 100644
index 0000000..89b2425
--- /dev/null
+++ b/board/freescale/mpc8548cds/MAINTAINERS
@@ -0,0 +1,8 @@
+MPC8548CDS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8548cds/
+F: include/configs/MPC8548CDS.h
+F: configs/MPC8548CDS_defconfig
+F: configs/MPC8548CDS_36BIT_defconfig
+F: configs/MPC8548CDS_legacy_defconfig
diff --git a/board/freescale/mpc8555cds/Kconfig b/board/freescale/mpc8555cds/Kconfig
new file mode 100644
index 0000000..5858308
--- /dev/null
+++ b/board/freescale/mpc8555cds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8555CDS
+
+config SYS_BOARD
+ string
+ default "mpc8555cds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8555CDS"
+
+endif
diff --git a/board/freescale/mpc8555cds/MAINTAINERS b/board/freescale/mpc8555cds/MAINTAINERS
new file mode 100644
index 0000000..14470d7
--- /dev/null
+++ b/board/freescale/mpc8555cds/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8555CDS BOARD
+M: Kumar Gala <kumar.gala@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc8555cds/
+F: include/configs/MPC8555CDS.h
+F: configs/MPC8555CDS_defconfig
+F: configs/MPC8555CDS_legacy_defconfig
diff --git a/board/freescale/mpc8560ads/Kconfig b/board/freescale/mpc8560ads/Kconfig
new file mode 100644
index 0000000..55cdb62
--- /dev/null
+++ b/board/freescale/mpc8560ads/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8560ADS
+
+config SYS_BOARD
+ string
+ default "mpc8560ads"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8560ADS"
+
+endif
diff --git a/board/freescale/mpc8560ads/MAINTAINERS b/board/freescale/mpc8560ads/MAINTAINERS
new file mode 100644
index 0000000..836def2
--- /dev/null
+++ b/board/freescale/mpc8560ads/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8560ADS BOARD
+M: Kumar Gala <kumar.gala@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc8560ads/
+F: include/configs/MPC8560ADS.h
+F: configs/MPC8560ADS_defconfig
diff --git a/board/freescale/mpc8568mds/Kconfig b/board/freescale/mpc8568mds/Kconfig
new file mode 100644
index 0000000..b02946b
--- /dev/null
+++ b/board/freescale/mpc8568mds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8568MDS
+
+config SYS_BOARD
+ string
+ default "mpc8568mds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8568MDS"
+
+endif
diff --git a/board/freescale/mpc8568mds/MAINTAINERS b/board/freescale/mpc8568mds/MAINTAINERS
new file mode 100644
index 0000000..72c25f5
--- /dev/null
+++ b/board/freescale/mpc8568mds/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8568MDS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8568mds/
+F: include/configs/MPC8568MDS.h
+F: configs/MPC8568MDS_defconfig
diff --git a/board/freescale/mpc8569mds/Kconfig b/board/freescale/mpc8569mds/Kconfig
new file mode 100644
index 0000000..f13a07e
--- /dev/null
+++ b/board/freescale/mpc8569mds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8569MDS
+
+config SYS_BOARD
+ string
+ default "mpc8569mds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8569MDS"
+
+endif
diff --git a/board/freescale/mpc8569mds/MAINTAINERS b/board/freescale/mpc8569mds/MAINTAINERS
new file mode 100644
index 0000000..b5478db
--- /dev/null
+++ b/board/freescale/mpc8569mds/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8569MDS BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8569mds/
+F: include/configs/MPC8569MDS.h
+F: configs/MPC8569MDS_defconfig
+F: configs/MPC8569MDS_ATM_defconfig
diff --git a/board/freescale/mpc8572ds/Kconfig b/board/freescale/mpc8572ds/Kconfig
new file mode 100644
index 0000000..3794f03
--- /dev/null
+++ b/board/freescale/mpc8572ds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8572DS
+
+config SYS_BOARD
+ string
+ default "mpc8572ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8572DS"
+
+endif
diff --git a/board/freescale/mpc8572ds/MAINTAINERS b/board/freescale/mpc8572ds/MAINTAINERS
new file mode 100644
index 0000000..4c9b968
--- /dev/null
+++ b/board/freescale/mpc8572ds/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8572DS BOARD
+M: York Sun <yorksun@freescale.com>
+S: Maintained
+F: board/freescale/mpc8572ds/
+F: include/configs/MPC8572DS.h
+F: configs/MPC8572DS_defconfig
+F: configs/MPC8572DS_36BIT_defconfig
diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c
index 5686322..1bbf832 100644
--- a/board/freescale/mpc8572ds/mpc8572ds.c
+++ b/board/freescale/mpc8572ds/mpc8572ds.c
@@ -144,7 +144,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 + PROMJET region to caching-inhibited
@@ -155,8 +155,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, /* tlb, epn, rpn */
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
diff --git a/board/freescale/mpc8610hpcd/Kconfig b/board/freescale/mpc8610hpcd/Kconfig
new file mode 100644
index 0000000..463a433
--- /dev/null
+++ b/board/freescale/mpc8610hpcd/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8610HPCD
+
+config SYS_BOARD
+ string
+ default "mpc8610hpcd"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8610HPCD"
+
+endif
diff --git a/board/freescale/mpc8610hpcd/MAINTAINERS b/board/freescale/mpc8610hpcd/MAINTAINERS
new file mode 100644
index 0000000..993c02a
--- /dev/null
+++ b/board/freescale/mpc8610hpcd/MAINTAINERS
@@ -0,0 +1,6 @@
+MPC8610HPCD BOARD
+M: -
+S: Maintained
+F: board/freescale/mpc8610hpcd/
+F: include/configs/MPC8610HPCD.h
+F: configs/MPC8610HPCD_defconfig
diff --git a/board/freescale/mpc8641hpcn/Kconfig b/board/freescale/mpc8641hpcn/Kconfig
new file mode 100644
index 0000000..9fc4241
--- /dev/null
+++ b/board/freescale/mpc8641hpcn/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_MPC8641HPCN
+
+config SYS_BOARD
+ string
+ default "mpc8641hpcn"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "MPC8641HPCN"
+
+endif
diff --git a/board/freescale/mpc8641hpcn/MAINTAINERS b/board/freescale/mpc8641hpcn/MAINTAINERS
new file mode 100644
index 0000000..34bcc6c
--- /dev/null
+++ b/board/freescale/mpc8641hpcn/MAINTAINERS
@@ -0,0 +1,7 @@
+MPC8641HPCN BOARD
+M: Kumar Gala <kumar.gala@freescale.com>
+S: Orphan (since 2014-06)
+F: board/freescale/mpc8641hpcn/
+F: include/configs/MPC8641HPCN.h
+F: configs/MPC8641HPCN_defconfig
+F: configs/MPC8641HPCN_36BIT_defconfig
diff --git a/board/freescale/mx23evk/Kconfig b/board/freescale/mx23evk/Kconfig
new file mode 100644
index 0000000..ee7911c
--- /dev/null
+++ b/board/freescale/mx23evk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX23EVK
+
+config SYS_CPU
+ string
+ default "arm926ejs"
+
+config SYS_BOARD
+ string
+ default "mx23evk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mxs"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx23evk"
+
+endif
diff --git a/board/freescale/mx23evk/MAINTAINERS b/board/freescale/mx23evk/MAINTAINERS
new file mode 100644
index 0000000..b03ad6a
--- /dev/null
+++ b/board/freescale/mx23evk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX23EVK BOARD
+M: Otavio Salvador <otavio@ossystems.com.br>
+S: Maintained
+F: board/freescale/mx23evk/
+F: include/configs/mx23evk.h
+F: configs/mx23evk_defconfig
diff --git a/board/freescale/mx25pdk/Kconfig b/board/freescale/mx25pdk/Kconfig
new file mode 100644
index 0000000..67cb5ec
--- /dev/null
+++ b/board/freescale/mx25pdk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX25PDK
+
+config SYS_CPU
+ string
+ default "arm926ejs"
+
+config SYS_BOARD
+ string
+ default "mx25pdk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx25"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx25pdk"
+
+endif
diff --git a/board/freescale/mx25pdk/MAINTAINERS b/board/freescale/mx25pdk/MAINTAINERS
new file mode 100644
index 0000000..6322176
--- /dev/null
+++ b/board/freescale/mx25pdk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX25PDK BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx25pdk/
+F: include/configs/mx25pdk.h
+F: configs/mx25pdk_defconfig
diff --git a/board/freescale/mx28evk/Kconfig b/board/freescale/mx28evk/Kconfig
new file mode 100644
index 0000000..2fe6f32
--- /dev/null
+++ b/board/freescale/mx28evk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX28EVK
+
+config SYS_CPU
+ string
+ default "arm926ejs"
+
+config SYS_BOARD
+ string
+ default "mx28evk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mxs"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx28evk"
+
+endif
diff --git a/board/freescale/mx28evk/MAINTAINERS b/board/freescale/mx28evk/MAINTAINERS
new file mode 100644
index 0000000..1caf5fb
--- /dev/null
+++ b/board/freescale/mx28evk/MAINTAINERS
@@ -0,0 +1,9 @@
+MX28EVK BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx28evk/
+F: include/configs/mx28evk.h
+F: configs/mx28evk_defconfig
+F: configs/mx28evk_auart_console_defconfig
+F: configs/mx28evk_nand_defconfig
+F: configs/mx28evk_spi_defconfig
diff --git a/board/freescale/mx31ads/Kconfig b/board/freescale/mx31ads/Kconfig
new file mode 100644
index 0000000..96116dd
--- /dev/null
+++ b/board/freescale/mx31ads/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX31ADS
+
+config SYS_CPU
+ string
+ default "arm1136"
+
+config SYS_BOARD
+ string
+ default "mx31ads"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx31"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx31ads"
+
+endif
diff --git a/board/freescale/mx31ads/MAINTAINERS b/board/freescale/mx31ads/MAINTAINERS
new file mode 100644
index 0000000..e9c8fe7
--- /dev/null
+++ b/board/freescale/mx31ads/MAINTAINERS
@@ -0,0 +1,6 @@
+MX31ADS BOARD
+M: (resigned) Guennadi Liakhovetski <g.liakhovetski@gmx.de>
+S: Orphan (since 2013-09)
+F: board/freescale/mx31ads/
+F: include/configs/mx31ads.h
+F: configs/mx31ads_defconfig
diff --git a/board/freescale/mx31pdk/Kconfig b/board/freescale/mx31pdk/Kconfig
new file mode 100644
index 0000000..6ac6a59
--- /dev/null
+++ b/board/freescale/mx31pdk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX31PDK
+
+config SYS_CPU
+ string
+ default "arm1136"
+
+config SYS_BOARD
+ string
+ default "mx31pdk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx31"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx31pdk"
+
+endif
diff --git a/board/freescale/mx31pdk/MAINTAINERS b/board/freescale/mx31pdk/MAINTAINERS
new file mode 100644
index 0000000..2e057db
--- /dev/null
+++ b/board/freescale/mx31pdk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX31PDK BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx31pdk/
+F: include/configs/mx31pdk.h
+F: configs/mx31pdk_defconfig
diff --git a/board/freescale/mx35pdk/Kconfig b/board/freescale/mx35pdk/Kconfig
new file mode 100644
index 0000000..5555b0b
--- /dev/null
+++ b/board/freescale/mx35pdk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX35PDK
+
+config SYS_CPU
+ string
+ default "arm1136"
+
+config SYS_BOARD
+ string
+ default "mx35pdk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx35"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx35pdk"
+
+endif
diff --git a/board/freescale/mx35pdk/MAINTAINERS b/board/freescale/mx35pdk/MAINTAINERS
new file mode 100644
index 0000000..540e943
--- /dev/null
+++ b/board/freescale/mx35pdk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX35PDK BOARD
+M: Stefano Babic <sbabic@denx.de>
+S: Maintained
+F: board/freescale/mx35pdk/
+F: include/configs/mx35pdk.h
+F: configs/mx35pdk_defconfig
diff --git a/board/freescale/mx51evk/Kconfig b/board/freescale/mx51evk/Kconfig
new file mode 100644
index 0000000..a6dbbdd
--- /dev/null
+++ b/board/freescale/mx51evk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX51EVK
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx51evk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx5"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx51evk"
+
+endif
diff --git a/board/freescale/mx51evk/MAINTAINERS b/board/freescale/mx51evk/MAINTAINERS
new file mode 100644
index 0000000..0e5f22c
--- /dev/null
+++ b/board/freescale/mx51evk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX51EVK BOARD
+M: Stefano Babic <sbabic@denx.de>
+S: Maintained
+F: board/freescale/mx51evk/
+F: include/configs/mx51evk.h
+F: configs/mx51evk_defconfig
diff --git a/board/freescale/mx53ard/Kconfig b/board/freescale/mx53ard/Kconfig
new file mode 100644
index 0000000..eaaa1b2
--- /dev/null
+++ b/board/freescale/mx53ard/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX53ARD
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx53ard"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx5"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx53ard"
+
+endif
diff --git a/board/freescale/mx53ard/MAINTAINERS b/board/freescale/mx53ard/MAINTAINERS
new file mode 100644
index 0000000..7cc0e5e
--- /dev/null
+++ b/board/freescale/mx53ard/MAINTAINERS
@@ -0,0 +1,6 @@
+MX53ARD BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx53ard/
+F: include/configs/mx53ard.h
+F: configs/mx53ard_defconfig
diff --git a/board/freescale/mx53evk/Kconfig b/board/freescale/mx53evk/Kconfig
new file mode 100644
index 0000000..dda1ada
--- /dev/null
+++ b/board/freescale/mx53evk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX53EVK
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx53evk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx5"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx53evk"
+
+endif
diff --git a/board/freescale/mx53evk/MAINTAINERS b/board/freescale/mx53evk/MAINTAINERS
new file mode 100644
index 0000000..5c5f747
--- /dev/null
+++ b/board/freescale/mx53evk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX53EVK BOARD
+M: Jason Liu <r64343@freescale.com>
+S: Maintained
+F: board/freescale/mx53evk/
+F: include/configs/mx53evk.h
+F: configs/mx53evk_defconfig
diff --git a/board/freescale/mx53loco/Kconfig b/board/freescale/mx53loco/Kconfig
new file mode 100644
index 0000000..8b285d2
--- /dev/null
+++ b/board/freescale/mx53loco/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX53LOCO
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx53loco"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx5"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx53loco"
+
+endif
diff --git a/board/freescale/mx53loco/MAINTAINERS b/board/freescale/mx53loco/MAINTAINERS
new file mode 100644
index 0000000..73b113e
--- /dev/null
+++ b/board/freescale/mx53loco/MAINTAINERS
@@ -0,0 +1,6 @@
+MX53LOCO BOARD
+M: Jason Liu <r64343@freescale.com>
+S: Maintained
+F: board/freescale/mx53loco/
+F: include/configs/mx53loco.h
+F: configs/mx53loco_defconfig
diff --git a/board/freescale/mx53smd/Kconfig b/board/freescale/mx53smd/Kconfig
new file mode 100644
index 0000000..1f7e42f
--- /dev/null
+++ b/board/freescale/mx53smd/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX53SMD
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx53smd"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx5"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx53smd"
+
+endif
diff --git a/board/freescale/mx53smd/MAINTAINERS b/board/freescale/mx53smd/MAINTAINERS
new file mode 100644
index 0000000..8830321
--- /dev/null
+++ b/board/freescale/mx53smd/MAINTAINERS
@@ -0,0 +1,6 @@
+MX53SMD BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx53smd/
+F: include/configs/mx53smd.h
+F: configs/mx53smd_defconfig
diff --git a/board/freescale/mx6qarm2/Kconfig b/board/freescale/mx6qarm2/Kconfig
new file mode 100644
index 0000000..2c42e9a
--- /dev/null
+++ b/board/freescale/mx6qarm2/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX6QARM2
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx6qarm2"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx6"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx6qarm2"
+
+endif
diff --git a/board/freescale/mx6qarm2/MAINTAINERS b/board/freescale/mx6qarm2/MAINTAINERS
new file mode 100644
index 0000000..42c19d1
--- /dev/null
+++ b/board/freescale/mx6qarm2/MAINTAINERS
@@ -0,0 +1,6 @@
+MX6QARM2 BOARD
+M: Jason Liu <r64343@freescale.com>
+S: Maintained
+F: board/freescale/mx6qarm2/
+F: include/configs/mx6qarm2.h
+F: configs/mx6qarm2_defconfig
diff --git a/board/freescale/mx6qsabreauto/Kconfig b/board/freescale/mx6qsabreauto/Kconfig
new file mode 100644
index 0000000..21fb4fc
--- /dev/null
+++ b/board/freescale/mx6qsabreauto/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX6QSABREAUTO
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx6qsabreauto"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx6"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx6qsabreauto"
+
+endif
diff --git a/board/freescale/mx6qsabreauto/MAINTAINERS b/board/freescale/mx6qsabreauto/MAINTAINERS
new file mode 100644
index 0000000..fb65ce4
--- /dev/null
+++ b/board/freescale/mx6qsabreauto/MAINTAINERS
@@ -0,0 +1,7 @@
+MX6QSABREAUTO BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx6qsabreauto/
+F: include/configs/mx6qsabreauto.h
+F: configs/mx6dlsabreauto_defconfig
+F: configs/mx6qsabreauto_defconfig
diff --git a/board/freescale/mx6sabresd/Kconfig b/board/freescale/mx6sabresd/Kconfig
new file mode 100644
index 0000000..65d6736
--- /dev/null
+++ b/board/freescale/mx6sabresd/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX6SABRESD
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx6sabresd"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx6"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx6sabresd"
+
+endif
diff --git a/board/freescale/mx6sabresd/MAINTAINERS b/board/freescale/mx6sabresd/MAINTAINERS
new file mode 100644
index 0000000..69c0a30
--- /dev/null
+++ b/board/freescale/mx6sabresd/MAINTAINERS
@@ -0,0 +1,7 @@
+MX6SABRESD BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx6sabresd/
+F: include/configs/mx6sabresd.h
+F: configs/mx6dlsabresd_defconfig
+F: configs/mx6qsabresd_defconfig
diff --git a/board/freescale/mx6slevk/Kconfig b/board/freescale/mx6slevk/Kconfig
new file mode 100644
index 0000000..23c3154
--- /dev/null
+++ b/board/freescale/mx6slevk/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_MX6SLEVK
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "mx6slevk"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "mx6"
+
+config SYS_CONFIG_NAME
+ string
+ default "mx6slevk"
+
+endif
diff --git a/board/freescale/mx6slevk/MAINTAINERS b/board/freescale/mx6slevk/MAINTAINERS
new file mode 100644
index 0000000..660af91
--- /dev/null
+++ b/board/freescale/mx6slevk/MAINTAINERS
@@ -0,0 +1,6 @@
+MX6SLEVK BOARD
+M: Fabio Estevam <fabio.estevam@freescale.com>
+S: Maintained
+F: board/freescale/mx6slevk/
+F: include/configs/mx6slevk.h
+F: configs/mx6slevk_defconfig
diff --git a/board/freescale/p1010rdb/Kconfig b/board/freescale/p1010rdb/Kconfig
new file mode 100644
index 0000000..2abe1c0
--- /dev/null
+++ b/board/freescale/p1010rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P1010RDB
+
+config SYS_BOARD
+ string
+ default "p1010rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P1010RDB"
+
+endif
diff --git a/board/freescale/p1010rdb/MAINTAINERS b/board/freescale/p1010rdb/MAINTAINERS
new file mode 100644
index 0000000..579e775
--- /dev/null
+++ b/board/freescale/p1010rdb/MAINTAINERS
@@ -0,0 +1,33 @@
+P1010RDB BOARD
+M: -
+S: Maintained
+F: board/freescale/p1010rdb/
+F: include/configs/P1010RDB.h
+F: configs/P1010RDB-PA_36BIT_NAND_defconfig
+F: configs/P1010RDB-PA_36BIT_NAND_SECBOOT_defconfig
+F: configs/P1010RDB-PA_36BIT_NOR_defconfig
+F: configs/P1010RDB-PA_36BIT_NOR_SECBOOT_defconfig
+F: configs/P1010RDB-PA_36BIT_SDCARD_defconfig
+F: configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig
+F: configs/P1010RDB-PA_36BIT_SPIFLASH_SECBOOT_defconfig
+F: configs/P1010RDB-PA_NAND_defconfig
+F: configs/P1010RDB-PA_NAND_SECBOOT_defconfig
+F: configs/P1010RDB-PA_NOR_defconfig
+F: configs/P1010RDB-PA_NOR_SECBOOT_defconfig
+F: configs/P1010RDB-PA_SDCARD_defconfig
+F: configs/P1010RDB-PA_SPIFLASH_defconfig
+F: configs/P1010RDB-PA_SPIFLASH_SECBOOT_defconfig
+F: configs/P1010RDB-PB_36BIT_NAND_defconfig
+F: configs/P1010RDB-PB_36BIT_NAND_SECBOOT_defconfig
+F: configs/P1010RDB-PB_36BIT_NOR_defconfig
+F: configs/P1010RDB-PB_36BIT_NOR_SECBOOT_defconfig
+F: configs/P1010RDB-PB_36BIT_SDCARD_defconfig
+F: configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig
+F: configs/P1010RDB-PB_36BIT_SPIFLASH_SECBOOT_defconfig
+F: configs/P1010RDB-PB_NAND_defconfig
+F: configs/P1010RDB-PB_NAND_SECBOOT_defconfig
+F: configs/P1010RDB-PB_NOR_defconfig
+F: configs/P1010RDB-PB_NOR_SECBOOT_defconfig
+F: configs/P1010RDB-PB_SDCARD_defconfig
+F: configs/P1010RDB-PB_SPIFLASH_defconfig
+F: configs/P1010RDB-PB_SPIFLASH_SECBOOT_defconfig
diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
index 62caf67..491b576 100644
--- a/board/freescale/p1010rdb/p1010rdb.c
+++ b/board/freescale/p1010rdb/p1010rdb.c
@@ -93,7 +93,7 @@ int board_early_init_f(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
@@ -104,8 +104,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,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/p1022ds/Kconfig b/board/freescale/p1022ds/Kconfig
new file mode 100644
index 0000000..39e37bd
--- /dev/null
+++ b/board/freescale/p1022ds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P1022DS
+
+config SYS_BOARD
+ string
+ default "p1022ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P1022DS"
+
+endif
diff --git a/board/freescale/p1022ds/MAINTAINERS b/board/freescale/p1022ds/MAINTAINERS
new file mode 100644
index 0000000..86aac36
--- /dev/null
+++ b/board/freescale/p1022ds/MAINTAINERS
@@ -0,0 +1,13 @@
+P1022DS BOARD
+M: Timur Tabi <timur@freescale.com>
+S: Maintained
+F: board/freescale/p1022ds/
+F: include/configs/P1022DS.h
+F: configs/P1022DS_defconfig
+F: configs/P1022DS_36BIT_defconfig
+F: configs/P1022DS_36BIT_NAND_defconfig
+F: configs/P1022DS_36BIT_SDCARD_defconfig
+F: configs/P1022DS_36BIT_SPIFLASH_defconfig
+F: configs/P1022DS_NAND_defconfig
+F: configs/P1022DS_SDCARD_defconfig
+F: configs/P1022DS_SPIFLASH_defconfig
diff --git a/board/freescale/p1022ds/p1022ds.c b/board/freescale/p1022ds/p1022ds.c
index ba789a4..f5e1851 100644
--- a/board/freescale/p1022ds/p1022ds.c
+++ b/board/freescale/p1022ds/p1022ds.c
@@ -249,7 +249,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 + PROMJET region to caching-inhibited
@@ -260,8 +260,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/p1023rdb/Kconfig b/board/freescale/p1023rdb/Kconfig
new file mode 100644
index 0000000..95d3295
--- /dev/null
+++ b/board/freescale/p1023rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P1023RDB
+
+config SYS_BOARD
+ string
+ default "p1023rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P1023RDB"
+
+endif
diff --git a/board/freescale/p1023rdb/MAINTAINERS b/board/freescale/p1023rdb/MAINTAINERS
new file mode 100644
index 0000000..81501aa
--- /dev/null
+++ b/board/freescale/p1023rdb/MAINTAINERS
@@ -0,0 +1,6 @@
+P1023RDB BOARD
+M: -
+S: Maintained
+F: board/freescale/p1023rdb/
+F: include/configs/P1023RDB.h
+F: configs/P1023RDB_defconfig
diff --git a/board/freescale/p1023rdb/p1023rdb.c b/board/freescale/p1023rdb/p1023rdb.c
index d2d4f83..d4d277b 100644
--- a/board/freescale/p1023rdb/p1023rdb.c
+++ b/board/freescale/p1023rdb/p1023rdb.c
@@ -57,7 +57,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 + PROMJET region to caching-inhibited
@@ -68,8 +68,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_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/p1023rds/Makefile b/board/freescale/p1023rds/Makefile
deleted file mode 100644
index fdbf365..0000000
--- a/board/freescale/p1023rds/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# Copyright 2010-2011 Freescale Semiconductor, Inc.
-#
-# SPDX-License-Identifier: GPL-2.0+
-#
-
-obj-y += p1023rds.o
-obj-y += law.o
-obj-y += tlb.o
diff --git a/board/freescale/p1023rds/README b/board/freescale/p1023rds/README
deleted file mode 100644
index d382551..0000000
--- a/board/freescale/p1023rds/README
+++ /dev/null
@@ -1,101 +0,0 @@
-Overview
---------
-The P1023 process includes a performance optimized implementation of the
-QorIQ data Path Acceleration Architecture (DPAA). This architecture
-provides the infrastructure to support simplified sharing of networking
-interfaces and accelerators by multiple CPU cores. P1023 is an e500 based
-dual core SOC.
-
-P1023RDS board is a Low End Dual core platform supporting the P1023
-processor of QorIQ series.
-
-Building U-boot
----------------
-To build the u-boot for P1023RDS:
-Configure to NOR boot:
- make P1023RDS_config
-Configure to NAND boot:
- make P1023RDS_NAND_config
-Build:
- make
-
-Board Switches
---------------
-Most switches on the board should not be changed. The most frequent
-user-settable switches on the board are used to configure
-the flash banks.
-
-J4: all open
-
-Default NOR flash boot switch setting:
- Sw3[1:8]: off on on off on on off off
- Sw4[1:8]: off off off on off off off off
- Sw6[1:8]: off on off on off on on off
- Sw7[1:8]: off on off off on off off off
- Sw8[1:8]: on off off off off off off off
-
-For NAND flash boot,set
-Sw4[1:4]: off on on on
-
-The default native ethernet setting is for RGMII mode.
-To use SGMII mode, set
-SW8[1:2]: OFF OFF
-SW7[6:7]: ON ON
-
-Memory Map
-----------
-0x0000_0000 0x7fff_ffff DDR 2G Cacheable
-0x8000_0000 0xbfff_ffff PCI Express Mem 1G non-cacheable
-0xc000_0000 0xdfff_ffff PCI 512M non-cacheable
-0xe100_0000 0xe3ff_ffff PCI IO range 4M non-cacheable
-
-0xe000_0000 0xe003_ffff BCSR 256K BCSR
-0xee00_0000 0xefff_ffff NOR flash 32M NOR flash
-0xff00_0000 0xff3f_ffff DPAA_QBMAN 4M
-0xff60_0000 0xff7f_ffff CCSR 2M non-cacheable
-0xffa0_0000 0xffaf_ffff NAND FLASH 1M non-cacheable
-0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0
-
-Flashing u-boot Images
----------------
-To program the image in the boot flash bank:
-NOR flash boot:
- => tftp 1000000 u-boot.bin
- => protect off all
- => erase eff40000 efffffff
- => cp.b 1000000 eff40000 c0000
-
-NAND flash boot:
- => tftp 1000000 u-boot-nand.bin
- => nand erase 0 80000
- => nand write 1000000 0 80000
-
-Firmware ucode location
----------------------------------
-Microcode(ucode) to FMAN's IRAM is needed to make FMAN Ethernet work.
-u-boot loads ucode FLASH. The location for ucode:
-NOR Flash: 0xfe000000
-NAND Flash: 0x1f00000
-
-Using the Device Tree Source File
----------------------------------
-To create the DTB (Device Tree Binary) image file,
-use a command similar to this:
-
- dtc -b 0 -f -I dts -O dtb p1023rds.dts > p1023rds.dtb
-
-Likely, that .dts file will come from here;
-
- linux-2.6/arch/powerpc/boot/dts/p1023rds.dts
-or
- make p1023rds.dtb ARCH=powerpc
-in linux-2.6 directory.
-
-Booting Linux
--------------
-Place a linux uImage in the TFTP disk area.
-
- tftp 1000000 uImage
- tftp 2000000 rootfs.ext2.gz.uboot
- tftp c00000 p1023rds.dtb
- bootm 1000000 2000000 c00000
diff --git a/board/freescale/p1023rds/bcsr.h b/board/freescale/p1023rds/bcsr.h
deleted file mode 100644
index a9deb72..0000000
--- a/board/freescale/p1023rds/bcsr.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (C) 2011 Freescale Semiconductor, Inc.
- *
- * Authors: Chunhe Lan <b25806@freescale.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#ifndef __BCSR_H_
-#define __BCSR_H_
-
-#include <common.h>
-
-/*
- * BCSR Bit definitions
- * BCSR 15 *
- 0 device insertion oriention
- 1 stack processor present
- 2 power supply shut down/normal operation
- 3 I2C bus0 drive enable
- 4 reserved
- 5:7 I2C bus0 select
- 5 - I2C_BUS_0_SS0
- 6 - I2C_BUS_0_SS1
- 7 - I2C_BUS_0_SS2
-*/
-
-/* BCSR register base address is 0xFX000020 */
-#define BCSR_BASE_REG_OFFSET 0x20
-#define BCSR_ACCESS_REG_ADDR (CONFIG_SYS_BCSR_BASE + BCSR_BASE_REG_OFFSET)
-
-#define BCSR15_DEV_INS_ORI 0x80
-#define BCSR15_STACK_PRO_PRE 0x40
-#define BCSR15_POWER_SUPPLY 0x20
-#define BCSR15_I2C_BUS0_EN 0x10
-#define BCSR15_I2C_BUS0_SEG0 0x00
-#define BCSR15_I2C_BUS0_SEG1 0x04
-#define BCSR15_I2C_BUS0_SEG2 0x02
-#define BCSR15_I2C_BUS0_SEG3 0x06
-#define BCSR15_I2C_BUS0_SEG4 0x01
-#define BCSR15_I2C_BUS0_SEG5 0x05
-#define BCSR15_I2C_BUS0_SEG6 0x03
-#define BCSR15_I2C_BUS0_SEG7 0x07
-#define BCSR15_I2C_BUS0_SEG_CLR 0x07
-#define BCSR19_SGMII_SEL_L 0x01
-
-/*BCSR Utils functions*/
-void fixup_i2c_bus0_sel_seg0(void);
-#endif /* __BCSR_H_ */
diff --git a/board/freescale/p1023rds/law.c b/board/freescale/p1023rds/law.c
deleted file mode 100644
index 92f5a3f..0000000
--- a/board/freescale/p1023rds/law.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright 2010-2011 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <common.h>
-#include <asm/fsl_law.h>
-#include <asm/mmu.h>
-
-struct law_entry law_table[] = {
- SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
- SET_LAW(CONFIG_SYS_QMAN_MEM_PHYS, LAW_SIZE_4M,
- LAW_TRGT_IF_DPAA_SWP_SRAM),
- /* The LAW 0xe0000000 ~ 0xefffffff for BCSR and NOR flash */
- SET_LAW(CONFIG_SYS_BCSR_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-};
-
-int num_law_entries = ARRAY_SIZE(law_table);
diff --git a/board/freescale/p1023rds/p1023rds.c b/board/freescale/p1023rds/p1023rds.c
deleted file mode 100644
index 2b883c7..0000000
--- a/board/freescale/p1023rds/p1023rds.c
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * Copyright 2010-2012 Freescale Semiconductor, Inc.
- *
- * Authors: Roy Zang <tie-fei.zang@freescale.com>
- * Chunhe Lan <b25806@freescale.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <common.h>
-#include <command.h>
-#include <pci.h>
-#include <asm/io.h>
-#include <asm/cache.h>
-#include <asm/processor.h>
-#include <asm/mmu.h>
-#include <asm/immap_85xx.h>
-#include <asm/fsl_pci.h>
-#include <fsl_ddr_sdram.h>
-#include <asm/fsl_portals.h>
-#include <libfdt.h>
-#include <fdt_support.h>
-#include <netdev.h>
-#include <malloc.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <miiphy.h>
-#include <phy.h>
-#include <asm/fsl_dtsec.h>
-
-#include "bcsr.h"
-
-DECLARE_GLOBAL_DATA_PTR;
-
-int board_early_init_f(void)
-{
- fsl_lbc_t *lbc = LBC_BASE_ADDR;
-
- /* Set ABSWP to implement conversion of addresses in the LBC */
- setbits_be32(&lbc->lbcr, CONFIG_SYS_LBC_LBCR);
-
- return 0;
-}
-
-int checkboard(void)
-{
- u8 *bcsr = (u8 *)BCSR_ACCESS_REG_ADDR;
-
- printf("Board: P1023 RDS\n");
-
- clrbits_8(&bcsr[15], BCSR15_I2C_BUS0_SEG_CLR);
- setbits_8(&bcsr[15], BCSR15_I2C_BUS0_SEG0);
-
- return 0;
-}
-
-/* Fixed sdram init -- doesn't use serial presence detect. */
-phys_size_t fixed_sdram(void)
-{
-#ifndef CONFIG_SYS_RAMBOOT
- struct ccsr_ddr __iomem *ddr =
- (struct ccsr_ddr __iomem *)CONFIG_SYS_FSL_DDR_ADDR;
-
- set_next_law(0, LAW_SIZE_2G, LAW_TRGT_IF_DDR_1);
-
- out_be32(&ddr->cs0_bnds, CONFIG_SYS_DDR_CS0_BNDS);
- out_be32(&ddr->cs0_config, CONFIG_SYS_DDR_CS0_CONFIG);
- out_be32(&ddr->cs1_bnds, CONFIG_SYS_DDR_CS1_BNDS);
- out_be32(&ddr->cs1_config, CONFIG_SYS_DDR_CS1_CONFIG);
- out_be32(&ddr->timing_cfg_3, CONFIG_SYS_DDR_TIMING_3);
- out_be32(&ddr->timing_cfg_0, CONFIG_SYS_DDR_TIMING_0);
- out_be32(&ddr->timing_cfg_1, CONFIG_SYS_DDR_TIMING_1);
- out_be32(&ddr->timing_cfg_2, CONFIG_SYS_DDR_TIMING_2);
- out_be32(&ddr->sdram_cfg_2, CONFIG_SYS_DDR_CONTROL2);
- out_be32(&ddr->sdram_mode, CONFIG_SYS_DDR_MODE_1);
- out_be32(&ddr->sdram_mode_2, CONFIG_SYS_DDR_MODE_2);
- out_be32(&ddr->sdram_interval, CONFIG_SYS_DDR_INTERVAL);
- out_be32(&ddr->sdram_data_init, CONFIG_SYS_DDR_DATA_INIT);
- out_be32(&ddr->sdram_clk_cntl, CONFIG_SYS_DDR_CLK_CTRL);
- out_be32(&ddr->timing_cfg_4, CONFIG_SYS_DDR_TIMING_4);
- out_be32(&ddr->timing_cfg_5, CONFIG_SYS_DDR_TIMING_5);
- out_be32(&ddr->ddr_zq_cntl, CONFIG_SYS_DDR_ZQ_CNTL);
- out_be32(&ddr->ddr_wrlvl_cntl, CONFIG_SYS_DDR_WRLVL_CNTL);
- out_be32(&ddr->ddr_cdr1, CONFIG_SYS_DDR_CDR_1);
- out_be32(&ddr->ddr_cdr2, CONFIG_SYS_DDR_CDR_2);
- out_be32(&ddr->sdram_cfg, CONFIG_SYS_DDR_CONTROL);
-#endif
- return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024ul;
-}
-
-#ifdef CONFIG_PCI
-void pci_init_board(void)
-{
- fsl_pcie_init_board(0);
-}
-#endif
-
-int board_early_init_r(void)
-{
- const unsigned int flashbase = CONFIG_SYS_BCSR_BASE;
- const u8 flash_esel = find_tlb_idx((void *)flashbase, 1);
-
- /*
- * Remap Boot flash + BCSR region to caching-inhibited
- * so that flash can be erased properly.
- */
-
- /* Flush d-cache and invalidate i-cache of any FLASH data */
- flush_dcache();
- invalidate_icache();
-
- /* invalidate existing TLB entry for flash + bcsr */
- disable_tlb(flash_esel);
-
- set_tlb(1, flashbase, CONFIG_SYS_BCSR_BASE_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, flash_esel, BOOKE_PAGESZ_256M, 1);
-
- setup_portals();
-
- return 0;
-}
-
-unsigned long get_board_sys_clk(ulong dummy)
-{
- return gd->bus_clk;
-}
-
-unsigned long get_board_ddr_clk(ulong dummy)
-{
- return gd->mem_clk;
-}
-
-int board_eth_init(bd_t *bis)
-{
- u8 *bcsr = (u8 *)BCSR_ACCESS_REG_ADDR;
- ccsr_gur_t *gur = (ccsr_gur_t *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
- struct fsl_pq_mdio_info dtsec_mdio_info;
-
- /*
- * Need to set dTSEC 1 pin multiplexing to TSEC. The default setting
- * is not correct.
- */
- setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_TSEC1_1);
-
- dtsec_mdio_info.regs =
- (struct tsec_mii_mng *)CONFIG_SYS_FM1_DTSEC1_MDIO_ADDR;
- dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME;
-
- /* Register the 1G MDIO bus */
- fsl_pq_mdio_init(bis, &dtsec_mdio_info);
-
- fm_info_set_phy_address(FM1_DTSEC1, CONFIG_SYS_FM1_DTSEC1_PHY_ADDR);
- fm_info_set_phy_address(FM1_DTSEC2, CONFIG_SYS_FM1_DTSEC2_PHY_ADDR);
-
- fm_info_set_mdio(FM1_DTSEC1,
- miiphy_get_dev_by_name(DEFAULT_FM_MDIO_NAME));
- fm_info_set_mdio(FM1_DTSEC2,
- miiphy_get_dev_by_name(DEFAULT_FM_MDIO_NAME));
-
- /* Make SERDES connected to SGMII by cleaing bcsr19[7] */
- if (fm_info_get_enet_if(FM1_DTSEC1) == PHY_INTERFACE_MODE_SGMII)
- clrbits_8(&bcsr[19], BCSR19_SGMII_SEL_L);
-
-#ifdef CONFIG_FMAN_ENET
- cpu_eth_init(bis);
-#endif
-
- return pci_eth_init(bis);
-}
-
-#if defined(CONFIG_OF_BOARD_SETUP)
-void ft_board_setup(void *blob, bd_t *bd)
-{
- phys_addr_t base;
- phys_size_t size;
-
- ft_cpu_setup(blob, bd);
-
- base = getenv_bootm_low();
- size = getenv_bootm_size();
-
- fdt_fixup_memory(blob, (u64)base, (u64)size);
-
-#ifdef CONFIG_HAS_FSL_DR_USB
- fdt_fixup_dr_usb(blob, bd);
-#endif
-
- fdt_fixup_fman_ethernet(blob);
-}
-#endif
diff --git a/board/freescale/p1023rds/tlb.c b/board/freescale/p1023rds/tlb.c
deleted file mode 100644
index 3c92c14..0000000
--- a/board/freescale/p1023rds/tlb.c
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright 2010-2011 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <common.h>
-#include <asm/mmu.h>
-
-struct fsl_e_tlb_entry tlb_table[] = {
- /* TLB 0 - for temp stack in cache */
- SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 0, BOOKE_PAGESZ_4K, 0),
- SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
- CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 0, BOOKE_PAGESZ_4K, 0),
- SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
- CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 0, BOOKE_PAGESZ_4K, 0),
- SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
- CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 0, BOOKE_PAGESZ_4K, 0),
-
- /* TLB 1 */
- /* *I*** - Covers boot page */
- SET_TLB_ENTRY(1, 0xfffff000, 0xfffff000,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I,
- 0, 0, BOOKE_PAGESZ_4K, 1),
-
- /* *I*G* - CCSRBAR */
- SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 1, BOOKE_PAGESZ_4M, 1),
-
- /* *W*G* - BCSR and NOR flash on local bus*/
- /* This will be changed to *I*G* after relocation to RAM. */
- SET_TLB_ENTRY(1, CONFIG_SYS_BCSR_BASE, CONFIG_SYS_BCSR_BASE_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
- 0, 2, BOOKE_PAGESZ_256M, 1),
-
- /* *I*G* - PCI */
- SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT, CONFIG_SYS_PCIE3_MEM_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 3, BOOKE_PAGESZ_1G, 1),
-
- /* *I*G* - PCI */
- SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT + 0x40000000,
- CONFIG_SYS_PCIE3_MEM_PHYS + 0x40000000,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 4, BOOKE_PAGESZ_256M, 1),
-
- SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT + 0x50000000,
- CONFIG_SYS_PCIE3_MEM_PHYS + 0x50000000,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 5, BOOKE_PAGESZ_256M, 1),
-
- /* *I*G* - PCI I/O */
- SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_IO_VIRT, CONFIG_SYS_PCIE3_IO_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 6, BOOKE_PAGESZ_256K, 1),
-
- /* Bman/Qman */
- SET_TLB_ENTRY(1, CONFIG_SYS_BMAN_MEM_BASE, CONFIG_SYS_BMAN_MEM_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 7, BOOKE_PAGESZ_1M, 1),
- SET_TLB_ENTRY(1, CONFIG_SYS_BMAN_MEM_BASE + 0x00100000,
- CONFIG_SYS_BMAN_MEM_PHYS + 0x00100000,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 8, BOOKE_PAGESZ_1M, 1),
- SET_TLB_ENTRY(1, CONFIG_SYS_QMAN_MEM_BASE, CONFIG_SYS_QMAN_MEM_PHYS,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_M,
- 0, 9, BOOKE_PAGESZ_1M, 1),
- SET_TLB_ENTRY(1, CONFIG_SYS_QMAN_MEM_BASE + 0x00100000,
- CONFIG_SYS_QMAN_MEM_PHYS + 0x00100000,
- MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
- 0, 10, BOOKE_PAGESZ_1M, 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, 11, BOOKE_PAGESZ_1M, 1),
-
-#ifdef CONFIG_SYS_RAMBOOT
- SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE,
- CONFIG_SYS_DDR_SDRAM_BASE,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 12, BOOKE_PAGESZ_1G, 1),
-
- SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x40000000,
- CONFIG_SYS_DDR_SDRAM_BASE + 0x40000000,
- MAS3_SX|MAS3_SW|MAS3_SR, 0,
- 0, 13, BOOKE_PAGESZ_1G, 1),
-#endif
-};
-
-int num_tlb_entries = ARRAY_SIZE(tlb_table);
diff --git a/board/freescale/p1_p2_rdb/Kconfig b/board/freescale/p1_p2_rdb/Kconfig
new file mode 100644
index 0000000..6d718b9
--- /dev/null
+++ b/board/freescale/p1_p2_rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P1_P2_RDB
+
+config SYS_BOARD
+ string
+ default "p1_p2_rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P1_P2_RDB"
+
+endif
diff --git a/board/freescale/p1_p2_rdb/MAINTAINERS b/board/freescale/p1_p2_rdb/MAINTAINERS
new file mode 100644
index 0000000..ad0a858
--- /dev/null
+++ b/board/freescale/p1_p2_rdb/MAINTAINERS
@@ -0,0 +1,37 @@
+P1_P2_RDB BOARD
+M: -
+S: Maintained
+F: board/freescale/p1_p2_rdb/
+F: include/configs/P1_P2_RDB.h
+F: configs/P1011RDB_defconfig
+F: configs/P1011RDB_36BIT_defconfig
+F: configs/P1011RDB_36BIT_SDCARD_defconfig
+F: configs/P1011RDB_36BIT_SPIFLASH_defconfig
+F: configs/P1011RDB_NAND_defconfig
+F: configs/P1011RDB_SDCARD_defconfig
+F: configs/P1011RDB_SPIFLASH_defconfig
+F: configs/P1020RDB_defconfig
+F: configs/P1020RDB_36BIT_defconfig
+F: configs/P1020RDB_36BIT_SDCARD_defconfig
+F: configs/P1020RDB_36BIT_SPIFLASH_defconfig
+F: configs/P1020RDB_NAND_defconfig
+F: configs/P1020RDB_SDCARD_defconfig
+F: configs/P1020RDB_SPIFLASH_defconfig
+F: configs/P2010RDB_defconfig
+F: configs/P2010RDB_36BIT_defconfig
+F: configs/P2010RDB_36BIT_SDCARD_defconfig
+F: configs/P2010RDB_36BIT_SPIFLASH_defconfig
+F: configs/P2010RDB_NAND_defconfig
+F: configs/P2010RDB_SDCARD_defconfig
+F: configs/P2010RDB_SPIFLASH_defconfig
+F: configs/P2020RDB_36BIT_defconfig
+F: configs/P2020RDB_36BIT_SDCARD_defconfig
+F: configs/P2020RDB_36BIT_SPIFLASH_defconfig
+F: configs/P2020RDB_NAND_defconfig
+F: configs/P2020RDB_SDCARD_defconfig
+F: configs/P2020RDB_SPIFLASH_defconfig
+
+P2020RDB BOARD
+M: Poonam Aggrwal <poonam.aggrwal@freescale.com>
+S: Maintained
+F: configs/P2020RDB_defconfig
diff --git a/board/freescale/p1_p2_rdb/p1_p2_rdb.c b/board/freescale/p1_p2_rdb/p1_p2_rdb.c
index 3df557d..aba4f53 100644
--- a/board/freescale/p1_p2_rdb/p1_p2_rdb.c
+++ b/board/freescale/p1_p2_rdb/p1_p2_rdb.c
@@ -128,7 +128,7 @@ int misc_init_r(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);
volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
unsigned int orig_bus = i2c_get_bus_num();
u8 i2c_data;
@@ -163,8 +163,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,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/p1_p2_rdb_pc/Kconfig b/board/freescale/p1_p2_rdb_pc/Kconfig
new file mode 100644
index 0000000..01b89fa
--- /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 0000000..4d429fe
--- /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 5f3d6fd..a6756c6 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 */
diff --git a/board/freescale/p1_twr/Kconfig b/board/freescale/p1_twr/Kconfig
new file mode 100644
index 0000000..5fb4705
--- /dev/null
+++ b/board/freescale/p1_twr/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P1_TWR
+
+config SYS_BOARD
+ string
+ default "p1_twr"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "p1_twr"
+
+endif
diff --git a/board/freescale/p1_twr/MAINTAINERS b/board/freescale/p1_twr/MAINTAINERS
new file mode 100644
index 0000000..2d7d7e1
--- /dev/null
+++ b/board/freescale/p1_twr/MAINTAINERS
@@ -0,0 +1,6 @@
+P1_TWR BOARD
+M: -
+S: Maintained
+F: board/freescale/p1_twr/
+F: include/configs/p1_twr.h
+F: configs/TWR-P1025_defconfig
diff --git a/board/freescale/p1_twr/p1_twr.c b/board/freescale/p1_twr/p1_twr.c
index 0e0d058..a0a416b 100644
--- a/board/freescale/p1_twr/p1_twr.c
+++ b/board/freescale/p1_twr/p1_twr.c
@@ -155,7 +155,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
@@ -166,8 +166,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_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
diff --git a/board/freescale/p2020come/Kconfig b/board/freescale/p2020come/Kconfig
new file mode 100644
index 0000000..d4d7e13
--- /dev/null
+++ b/board/freescale/p2020come/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P2020COME
+
+config SYS_BOARD
+ string
+ default "p2020come"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P2020COME"
+
+endif
diff --git a/board/freescale/p2020come/MAINTAINERS b/board/freescale/p2020come/MAINTAINERS
new file mode 100644
index 0000000..ab3ef94
--- /dev/null
+++ b/board/freescale/p2020come/MAINTAINERS
@@ -0,0 +1,7 @@
+P2020COME BOARD
+M: Ira W. Snyder <iws@ovro.caltech.edu>
+S: Maintained
+F: board/freescale/p2020come/
+F: include/configs/P2020COME.h
+F: configs/P2020COME_SDCARD_defconfig
+F: configs/P2020COME_SPIFLASH_defconfig
diff --git a/board/freescale/p2020ds/Kconfig b/board/freescale/p2020ds/Kconfig
new file mode 100644
index 0000000..29031d0
--- /dev/null
+++ b/board/freescale/p2020ds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P2020DS
+
+config SYS_BOARD
+ string
+ default "p2020ds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P2020DS"
+
+endif
diff --git a/board/freescale/p2020ds/MAINTAINERS b/board/freescale/p2020ds/MAINTAINERS
new file mode 100644
index 0000000..42cb18d
--- /dev/null
+++ b/board/freescale/p2020ds/MAINTAINERS
@@ -0,0 +1,10 @@
+P2020DS BOARD
+M: -
+S: Maintained
+F: board/freescale/p2020ds/
+F: include/configs/P2020DS.h
+F: configs/P2020DS_defconfig
+F: configs/P2020DS_36BIT_defconfig
+F: configs/P2020DS_DDR2_defconfig
+F: configs/P2020DS_SDCARD_defconfig
+F: configs/P2020DS_SPIFLASH_defconfig
diff --git a/board/freescale/p2020ds/p2020ds.c b/board/freescale/p2020ds/p2020ds.c
index a0cf927..b72fcff 100644
--- a/board/freescale/p2020ds/p2020ds.c
+++ b/board/freescale/p2020ds/p2020ds.c
@@ -159,7 +159,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 + PROMJET region to caching-inhibited
@@ -170,8 +170,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/p2041rdb/Kconfig b/board/freescale/p2041rdb/Kconfig
new file mode 100644
index 0000000..b086b1b
--- /dev/null
+++ b/board/freescale/p2041rdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_P2041RDB
+
+config SYS_BOARD
+ string
+ default "p2041rdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "P2041RDB"
+
+endif
diff --git a/board/freescale/p2041rdb/MAINTAINERS b/board/freescale/p2041rdb/MAINTAINERS
new file mode 100644
index 0000000..bb5bb83
--- /dev/null
+++ b/board/freescale/p2041rdb/MAINTAINERS
@@ -0,0 +1,11 @@
+P2041RDB BOARD
+M: -
+S: Maintained
+F: board/freescale/p2041rdb/
+F: include/configs/P2041RDB.h
+F: configs/P2041RDB_defconfig
+F: configs/P2041RDB_NAND_defconfig
+F: configs/P2041RDB_SDCARD_defconfig
+F: configs/P2041RDB_SECURE_BOOT_defconfig
+F: configs/P2041RDB_SPIFLASH_defconfig
+F: configs/P2041RDB_SRIO_PCIE_BOOT_defconfig
diff --git a/board/freescale/p2041rdb/p2041rdb.c b/board/freescale/p2041rdb/p2041rdb.c
index 8554512..a14b43b 100644
--- a/board/freescale/p2041rdb/p2041rdb.c
+++ b/board/freescale/p2041rdb/p2041rdb.c
@@ -116,7 +116,7 @@ void board_config_lanes_mux(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
@@ -127,8 +127,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/qemu-ppce500/Kconfig b/board/freescale/qemu-ppce500/Kconfig
new file mode 100644
index 0000000..314f6a1
--- /dev/null
+++ b/board/freescale/qemu-ppce500/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_QEMU_PPCE500
+
+config SYS_BOARD
+ string
+ default "qemu-ppce500"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "qemu-ppce500"
+
+endif
diff --git a/board/freescale/qemu-ppce500/MAINTAINERS b/board/freescale/qemu-ppce500/MAINTAINERS
new file mode 100644
index 0000000..77d0a4a
--- /dev/null
+++ b/board/freescale/qemu-ppce500/MAINTAINERS
@@ -0,0 +1,6 @@
+QEMU-PPCE500 BOARD
+M: Alexander Graf <agraf@suse.de>
+S: Maintained
+F: board/freescale/qemu-ppce500/
+F: include/configs/qemu-ppce500.h
+F: configs/qemu-ppce500_defconfig
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
diff --git a/board/freescale/t104xrdb/Kconfig b/board/freescale/t104xrdb/Kconfig
new file mode 100644
index 0000000..d0fd3de
--- /dev/null
+++ b/board/freescale/t104xrdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_T104XRDB
+
+config SYS_BOARD
+ string
+ default "t104xrdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "T104xRDB"
+
+endif
diff --git a/board/freescale/t104xrdb/MAINTAINERS b/board/freescale/t104xrdb/MAINTAINERS
new file mode 100644
index 0000000..364b0a9
--- /dev/null
+++ b/board/freescale/t104xrdb/MAINTAINERS
@@ -0,0 +1,22 @@
+T104XRDB BOARD
+M: Priyanka Jain <Priyanka.Jain@freescale.com>
+S: Maintained
+F: board/freescale/t104xrdb/
+F: include/configs/T104xRDB.h
+F: configs/T1040RDB_defconfig
+F: configs/T1040RDB_NAND_defconfig
+F: configs/T1040RDB_SPIFLASH_defconfig
+F: configs/T1042RDB_PI_defconfig
+F: configs/T1042RDB_PI_NAND_defconfig
+F: configs/T1042RDB_PI_SPIFLASH_defconfig
+
+T1040RDB_SDCARD BOARD
+M: -
+S: Maintained
+F: configs/T1040RDB_SDCARD_defconfig
+F: configs/T1042RDB_PI_SDCARD_defconfig
+
+T1040RDB_SECURE_BOOT BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/T1040RDB_SECURE_BOOT_defconfig
diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
index a5e5fff..ddb669f 100644
--- a/board/freescale/t104xrdb/t104xrdb.c
+++ b/board/freescale/t104xrdb/t104xrdb.c
@@ -48,7 +48,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 region to caching-inhibited
@@ -59,8 +59,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,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/t208xqds/Kconfig b/board/freescale/t208xqds/Kconfig
new file mode 100644
index 0000000..3d0c6ab
--- /dev/null
+++ b/board/freescale/t208xqds/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_T208XQDS
+
+config SYS_BOARD
+ string
+ default "t208xqds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "T208xQDS"
+
+endif
diff --git a/board/freescale/t208xqds/MAINTAINERS b/board/freescale/t208xqds/MAINTAINERS
new file mode 100644
index 0000000..643926f
--- /dev/null
+++ b/board/freescale/t208xqds/MAINTAINERS
@@ -0,0 +1,20 @@
+T208XQDS BOARD
+M: -
+S: Maintained
+F: board/freescale/t208xqds/
+F: include/configs/T208xQDS.h
+F: configs/T2080QDS_defconfig
+F: configs/T2080QDS_NAND_defconfig
+F: configs/T2080QDS_SDCARD_defconfig
+F: configs/T2080QDS_SPIFLASH_defconfig
+F: configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
+F: configs/T2081QDS_defconfig
+F: configs/T2081QDS_NAND_defconfig
+F: configs/T2081QDS_SDCARD_defconfig
+F: configs/T2081QDS_SPIFLASH_defconfig
+F: configs/T2081QDS_SRIO_PCIE_BOOT_defconfig
+
+T2080QDS_SECURE_BOOT BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/T2080QDS_SECURE_BOOT_defconfig
diff --git a/board/freescale/t208xqds/t208xqds.c b/board/freescale/t208xqds/t208xqds.c
index 1353439..fc6d256 100644
--- a/board/freescale/t208xqds/t208xqds.c
+++ b/board/freescale/t208xqds/t208xqds.c
@@ -326,7 +326,7 @@ int brd_mux_lane_to_slot(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
@@ -337,8 +337,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/t208xrdb/Kconfig b/board/freescale/t208xrdb/Kconfig
new file mode 100644
index 0000000..f8d2c3c
--- /dev/null
+++ b/board/freescale/t208xrdb/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_T208XRDB
+
+config SYS_BOARD
+ string
+ default "t208xrdb"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "T208xRDB"
+
+endif
diff --git a/board/freescale/t208xrdb/MAINTAINERS b/board/freescale/t208xrdb/MAINTAINERS
new file mode 100644
index 0000000..5987143
--- /dev/null
+++ b/board/freescale/t208xrdb/MAINTAINERS
@@ -0,0 +1,15 @@
+T208XRDB BOARD
+M: -
+S: Maintained
+F: board/freescale/t208xrdb/
+F: include/configs/T208xRDB.h
+F: configs/T2080RDB_defconfig
+F: configs/T2080RDB_NAND_defconfig
+F: configs/T2080RDB_SDCARD_defconfig
+F: configs/T2080RDB_SPIFLASH_defconfig
+F: configs/T2080RDB_SRIO_PCIE_BOOT_defconfig
+
+T2080RDB_SECURE_BOOT BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/T2080RDB_SECURE_BOOT_defconfig
diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c
index 265c1f9..be99fb8 100644
--- a/board/freescale/t208xrdb/t208xrdb.c
+++ b/board/freescale/t208xrdb/t208xrdb.c
@@ -58,7 +58,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
* so that flash can be erased properly.
@@ -67,9 +67,14 @@ int board_early_init_r(void)
/* Flush d-cache and invalidate i-cache of any FLASH data */
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/t4qds/Kconfig b/board/freescale/t4qds/Kconfig
new file mode 100644
index 0000000..f4b0ba2
--- /dev/null
+++ b/board/freescale/t4qds/Kconfig
@@ -0,0 +1,31 @@
+if TARGET_T4240EMU
+
+config SYS_BOARD
+ string
+ default "t4qds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "T4240EMU"
+
+endif
+
+if TARGET_T4240QDS
+
+config SYS_BOARD
+ string
+ default "t4qds"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_CONFIG_NAME
+ string
+ default "T4240QDS"
+
+endif
diff --git a/board/freescale/t4qds/MAINTAINERS b/board/freescale/t4qds/MAINTAINERS
new file mode 100644
index 0000000..da796bd
--- /dev/null
+++ b/board/freescale/t4qds/MAINTAINERS
@@ -0,0 +1,26 @@
+T4QDS BOARD
+M: -
+S: Maintained
+F: board/freescale/t4qds/
+F: include/configs/T4240QDS.h
+F: configs/T4160QDS_defconfig
+F: configs/T4160QDS_NAND_defconfig
+F: configs/T4160QDS_SDCARD_defconfig
+F: configs/T4160QDS_SPIFLASH_defconfig
+F: configs/T4240QDS_defconfig
+F: configs/T4240QDS_NAND_defconfig
+F: configs/T4240QDS_SDCARD_defconfig
+F: configs/T4240QDS_SPIFLASH_defconfig
+F: configs/T4240QDS_SRIO_PCIE_BOOT_defconfig
+
+T4160QDS_SECURE_BOOT BOARD
+M: Aneesh Bansal <aneesh.bansal@freescale.com>
+S: Maintained
+F: configs/T4160QDS_SECURE_BOOT_defconfig
+F: configs/T4240QDS_SECURE_BOOT_defconfig
+
+T4240EMU BOARD
+M: York Sun <yorksun@freescale.com>
+S: Maintained
+F: include/configs/T4240EMU.h
+F: configs/T4240EMU_defconfig
diff --git a/board/freescale/t4qds/t4240emu.c b/board/freescale/t4qds/t4240emu.c
index 7a61036..479e124 100644
--- a/board/freescale/t4qds/t4240emu.c
+++ b/board/freescale/t4qds/t4240emu.c
@@ -32,7 +32,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
@@ -43,8 +43,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,
MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
diff --git a/board/freescale/t4qds/t4240qds.c b/board/freescale/t4qds/t4240qds.c
index fe1bc7f..6205fea 100644
--- a/board/freescale/t4qds/t4240qds.c
+++ b/board/freescale/t4qds/t4240qds.c
@@ -528,7 +528,7 @@ int config_backside_crossbar_mux(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
@@ -539,8 +539,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,
@@ -638,9 +644,10 @@ unsigned long get_board_ddr_clk(void)
int misc_init_r(void)
{
u8 sw;
- serdes_corenet_t *srds_regs =
- (void *)CONFIG_SYS_FSL_CORENET_SERDES_ADDR;
+ void *srds_base = (void *)CONFIG_SYS_FSL_CORENET_SERDES_ADDR;
+ serdes_corenet_t *srds_regs;
u32 actual[MAX_SERDES];
+ u32 pllcr0, expected;
unsigned int i;
sw = QIXIS_READ(brdcfg[2]);
@@ -663,8 +670,9 @@ int misc_init_r(void)
}
for (i = 0; i < MAX_SERDES; i++) {
- u32 pllcr0 = srds_regs->bank[i].pllcr0;
- u32 expected = pllcr0 & SRDS_PLLCR0_RFCK_SEL_MASK;
+ srds_regs = srds_base + i * 0x1000;
+ pllcr0 = srds_regs->bank[0].pllcr0;
+ expected = pllcr0 & SRDS_PLLCR0_RFCK_SEL_MASK;
if (expected != actual[i]) {
printf("Warning: SERDES%u expects reference clock %sMHz, but actual is %sMHz\n",
i + 1, serdes_clock_to_string(expected),
diff --git a/board/freescale/t4rdb/Kconfig b/board/freescale/t4rdb/Kconfig
new file mode 100644
index 0000000..07e3c0d
--- /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 0000000..845c1b6
--- /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 5448c86..afef7e9 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,
diff --git a/board/freescale/vf610twr/Kconfig b/board/freescale/vf610twr/Kconfig
new file mode 100644
index 0000000..56bc52a
--- /dev/null
+++ b/board/freescale/vf610twr/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_VF610TWR
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "vf610twr"
+
+config SYS_VENDOR
+ string
+ default "freescale"
+
+config SYS_SOC
+ string
+ default "vf610"
+
+config SYS_CONFIG_NAME
+ string
+ default "vf610twr"
+
+endif
diff --git a/board/freescale/vf610twr/MAINTAINERS b/board/freescale/vf610twr/MAINTAINERS
new file mode 100644
index 0000000..56a09c9
--- /dev/null
+++ b/board/freescale/vf610twr/MAINTAINERS
@@ -0,0 +1,6 @@
+VF610TWR BOARD
+M: Alison Wang <b18965@freescale.com>
+S: Maintained
+F: board/freescale/vf610twr/
+F: include/configs/vf610twr.h
+F: configs/vf610twr_defconfig