mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
This commit is contained in:
commit
8968b914be
48 changed files with 631 additions and 152 deletions
4
Makefile
4
Makefile
|
|
@ -736,8 +736,12 @@ ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
|
||||||
ifeq ($(CONFIG_SPL_FSL_PBL),y)
|
ifeq ($(CONFIG_SPL_FSL_PBL),y)
|
||||||
ALL-$(CONFIG_RAMBOOT_PBL) += u-boot-with-spl-pbl.bin
|
ALL-$(CONFIG_RAMBOOT_PBL) += u-boot-with-spl-pbl.bin
|
||||||
else
|
else
|
||||||
|
ifneq ($(CONFIG_SECURE_BOOT), y)
|
||||||
|
# For Secure Boot The Image needs to be signed and Header must also
|
||||||
|
# be included. So The image has to be built explicitly
|
||||||
ALL-$(CONFIG_RAMBOOT_PBL) += u-boot.pbl
|
ALL-$(CONFIG_RAMBOOT_PBL) += u-boot.pbl
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin
|
ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin
|
||||||
ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img
|
ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img
|
||||||
ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin
|
ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin
|
||||||
|
|
|
||||||
|
|
@ -1052,6 +1052,17 @@ create_init_ram_area:
|
||||||
CONFIG_SYS_MONITOR_BASE & 0xfff00000, MAS2_I|MAS2_G, \
|
CONFIG_SYS_MONITOR_BASE & 0xfff00000, MAS2_I|MAS2_G, \
|
||||||
CONFIG_SYS_PBI_FLASH_WINDOW & 0xfff00000, MAS3_SX|MAS3_SW|MAS3_SR, \
|
CONFIG_SYS_PBI_FLASH_WINDOW & 0xfff00000, MAS3_SX|MAS3_SW|MAS3_SR, \
|
||||||
0, r6
|
0, r6
|
||||||
|
|
||||||
|
#elif defined(CONFIG_RAMBOOT_PBL) && defined(CONFIG_SECURE_BOOT)
|
||||||
|
/* create a temp mapping in AS = 1 for mapping CONFIG_SYS_MONITOR_BASE
|
||||||
|
* to L3 Address configured by PBL for ISBC code
|
||||||
|
*/
|
||||||
|
create_tlb1_entry 15, \
|
||||||
|
1, BOOKE_PAGESZ_1M, \
|
||||||
|
CONFIG_SYS_MONITOR_BASE & 0xfff00000, MAS2_I|MAS2_G, \
|
||||||
|
CONFIG_SYS_INIT_L3_ADDR & 0xfff00000, MAS3_SX|MAS3_SW|MAS3_SR, \
|
||||||
|
0, r6
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* create a temp mapping in AS=1 to the 1M CONFIG_SYS_MONITOR_BASE space, the main
|
* create a temp mapping in AS=1 to the 1M CONFIG_SYS_MONITOR_BASE space, the main
|
||||||
|
|
|
||||||
|
|
@ -51,11 +51,10 @@ int liodn_tbl_sz = ARRAY_SIZE(liodn_tbl);
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_DPAA_FMAN
|
#ifdef CONFIG_SYS_DPAA_FMAN
|
||||||
struct liodn_id_table fman1_liodn_tbl[] = {
|
struct liodn_id_table fman1_liodn_tbl[] = {
|
||||||
SET_FMAN_RX_1G_LIODN(1, 0, 88),
|
SET_FMAN_RX_10G_TYPE2_LIODN(1, 0, 88),
|
||||||
SET_FMAN_RX_1G_LIODN(1, 1, 89),
|
SET_FMAN_RX_1G_LIODN(1, 1, 89),
|
||||||
SET_FMAN_RX_1G_LIODN(1, 2, 90),
|
SET_FMAN_RX_1G_LIODN(1, 2, 90),
|
||||||
SET_FMAN_RX_1G_LIODN(1, 3, 91),
|
SET_FMAN_RX_1G_LIODN(1, 3, 91),
|
||||||
SET_FMAN_RX_10G_LIODN(1, 0, 94),
|
|
||||||
};
|
};
|
||||||
int fman1_liodn_tbl_sz = ARRAY_SIZE(fman1_liodn_tbl);
|
int fman1_liodn_tbl_sz = ARRAY_SIZE(fman1_liodn_tbl);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -214,8 +214,8 @@ static const struct serdes_config serdes3_cfg_tbl[] = {
|
||||||
{4, {PCIE1, PCIE1, PCIE1, PCIE1, PCIE2, PCIE2, PCIE2, PCIE2}},
|
{4, {PCIE1, PCIE1, PCIE1, PCIE1, PCIE2, PCIE2, PCIE2, PCIE2}},
|
||||||
{5, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
{5, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{6, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1}},
|
{6, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1}},
|
||||||
{7, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, NONE, NONE, NONE} },
|
{7, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{8, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, NONE, NONE, NONE}},
|
{8, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{9, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{9, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN}},
|
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN}},
|
||||||
{10, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{10, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
|
|
@ -266,37 +266,30 @@ static const struct serdes_config serdes4_cfg_tbl[] = {
|
||||||
#elif defined(CONFIG_PPC_T4160) || defined(CONFIG_PPC_T4080)
|
#elif defined(CONFIG_PPC_T4160) || defined(CONFIG_PPC_T4080)
|
||||||
static const struct serdes_config serdes1_cfg_tbl[] = {
|
static const struct serdes_config serdes1_cfg_tbl[] = {
|
||||||
/* SerDes 1 */
|
/* SerDes 1 */
|
||||||
{1, {XAUI_FM1_MAC9, XAUI_FM1_MAC9,
|
{1, {NONE, NONE, NONE, NONE,
|
||||||
XAUI_FM1_MAC9, XAUI_FM1_MAC9,
|
|
||||||
XAUI_FM1_MAC10, XAUI_FM1_MAC10,
|
XAUI_FM1_MAC10, XAUI_FM1_MAC10,
|
||||||
XAUI_FM1_MAC10, XAUI_FM1_MAC10} },
|
XAUI_FM1_MAC10, XAUI_FM1_MAC10} },
|
||||||
{2, {HIGIG_FM1_MAC9, HIGIG_FM1_MAC9,
|
{2, {NONE, NONE, NONE, NONE,
|
||||||
HIGIG_FM1_MAC9, HIGIG_FM1_MAC9,
|
|
||||||
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10,
|
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10,
|
||||||
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10} },
|
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10} },
|
||||||
{4, {HIGIG_FM1_MAC9, HIGIG_FM1_MAC9,
|
{4, {NONE, NONE, NONE, NONE,
|
||||||
HIGIG_FM1_MAC9, HIGIG_FM1_MAC9,
|
|
||||||
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10,
|
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10,
|
||||||
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10} },
|
HIGIG_FM1_MAC10, HIGIG_FM1_MAC10} },
|
||||||
{27, {SGMII_FM1_DTSEC5, SGMII_FM1_DTSEC6,
|
{27, {NONE, NONE, NONE, NONE,
|
||||||
SGMII_FM1_DTSEC10, SGMII_FM1_DTSEC9,
|
|
||||||
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
||||||
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
||||||
{28, {SGMII_FM1_DTSEC5, SGMII_FM1_DTSEC6,
|
{28, {NONE, NONE, NONE, NONE,
|
||||||
SGMII_FM1_DTSEC10, SGMII_FM1_DTSEC9,
|
|
||||||
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
||||||
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
||||||
{35, {SGMII_FM1_DTSEC5, SGMII_FM1_DTSEC6,
|
{35, {NONE, NONE, NONE, NONE,
|
||||||
SGMII_FM1_DTSEC10, SGMII_FM1_DTSEC9,
|
|
||||||
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
||||||
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
||||||
{36, {SGMII_FM1_DTSEC5, SGMII_FM1_DTSEC6,
|
{36, {NONE, NONE, NONE, NONE,
|
||||||
SGMII_FM1_DTSEC10, SGMII_FM1_DTSEC9,
|
|
||||||
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
SGMII_FM1_DTSEC1, SGMII_FM1_DTSEC2,
|
||||||
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
SGMII_FM1_DTSEC3, SGMII_FM1_DTSEC4} },
|
||||||
{37, {NONE, NONE, QSGMII_FM1_B, NONE,
|
{37, {NONE, NONE, NONE, NONE,
|
||||||
NONE, NONE, QSGMII_FM1_A, NONE} },
|
NONE, NONE, QSGMII_FM1_A, NONE} },
|
||||||
{38, {NONE, NONE, QSGMII_FM1_B, NONE,
|
{38, {NONE, NONE, NONE, NONE,
|
||||||
NONE, NONE, QSGMII_FM1_A, NONE} },
|
NONE, NONE, QSGMII_FM1_A, NONE} },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
@ -363,45 +356,45 @@ static const struct serdes_config serdes2_cfg_tbl[] = {
|
||||||
SGMII_FM2_DTSEC1, SGMII_FM2_DTSEC2,
|
SGMII_FM2_DTSEC1, SGMII_FM2_DTSEC2,
|
||||||
SGMII_FM2_DTSEC3, SGMII_FM2_DTSEC4} },
|
SGMII_FM2_DTSEC3, SGMII_FM2_DTSEC4} },
|
||||||
{37, {NONE, NONE, QSGMII_FM2_B, NONE,
|
{37, {NONE, NONE, QSGMII_FM2_B, NONE,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{38, {NONE, NONE, QSGMII_FM2_B, NONE,
|
{38, {NONE, NONE, QSGMII_FM2_B, NONE,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{39, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{39, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{40, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{40, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{45, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{45, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{46, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{46, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{47, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{47, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{48, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
{48, {SGMII_FM2_DTSEC5, SGMII_FM2_DTSEC6,
|
||||||
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
SGMII_FM2_DTSEC10, SGMII_FM2_DTSEC9,
|
||||||
NONE, QSGMII_FM1_A, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{49, {XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
{49, {XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
||||||
XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{50, {XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
{50, {XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
||||||
XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
XAUI_FM2_MAC9, XAUI_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{51, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
{51, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{52, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
{52, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{53, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
{53, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{54, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
{54, {HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
HIGIG_FM2_MAC9, HIGIG_FM2_MAC9,
|
||||||
NONE, NONE, NONE, NONE} },
|
NONE, NONE, QSGMII_FM2_A, NONE} },
|
||||||
{55, {NONE, XFI_FM1_MAC10,
|
{55, {NONE, XFI_FM1_MAC10,
|
||||||
XFI_FM2_MAC10, NONE,
|
XFI_FM2_MAC10, NONE,
|
||||||
SGMII_FM2_DTSEC1, SGMII_FM2_DTSEC2,
|
SGMII_FM2_DTSEC1, SGMII_FM2_DTSEC2,
|
||||||
|
|
@ -424,51 +417,51 @@ static const struct serdes_config serdes3_cfg_tbl[] = {
|
||||||
{4, {PCIE1, PCIE1, PCIE1, PCIE1, PCIE2, PCIE2, PCIE2, PCIE2} },
|
{4, {PCIE1, PCIE1, PCIE1, PCIE1, PCIE2, PCIE2, PCIE2, PCIE2} },
|
||||||
{5, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
{5, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{6, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
{6, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{7, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, NONE, NONE, NONE} },
|
{7, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{8, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, NONE, NONE, NONE} },
|
{8, {PCIE1, PCIE1, PCIE1, PCIE1, SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{9, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{9, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN} },
|
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN} },
|
||||||
{10, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{10, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN} },
|
INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN} },
|
||||||
{11, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{11, {NONE, NONE, NONE, NONE,
|
||||||
PCIE2, PCIE2, PCIE2, PCIE2} },
|
PCIE2, PCIE2, PCIE2, PCIE2} },
|
||||||
{12, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{12, {NONE, NONE, NONE, NONE,
|
||||||
PCIE2, PCIE2, PCIE2, PCIE2} },
|
PCIE2, PCIE2, PCIE2, PCIE2} },
|
||||||
{13, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{13, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
PCIE2, PCIE2, PCIE2, PCIE2} },
|
PCIE2, PCIE2, PCIE2, PCIE2} },
|
||||||
{14, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{14, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
PCIE2, PCIE2, PCIE2, PCIE2} },
|
PCIE2, PCIE2, PCIE2, PCIE2} },
|
||||||
{15, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{15, {NONE, NONE, NONE, NONE,
|
||||||
SRIO1, SRIO1, SRIO1, SRIO1} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{16, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{16, {NONE, NONE, NONE, NONE,
|
||||||
SRIO1, SRIO1, SRIO1, SRIO1} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{17, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{17, {NONE, NONE, NONE, NONE,
|
||||||
SRIO1, SRIO1, SRIO1, SRIO1} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{18, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{18, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
SRIO1, SRIO1, SRIO1, SRIO1} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{19, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{19, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
SRIO1, SRIO1, SRIO1, SRIO1} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{20, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
{20, {INTERLAKEN, INTERLAKEN, INTERLAKEN, INTERLAKEN,
|
||||||
NONE, NONE, NONE, NONE} },
|
SRIO1, SRIO1, SRIO1, SRIO1} },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
static const struct serdes_config serdes4_cfg_tbl[] = {
|
static const struct serdes_config serdes4_cfg_tbl[] = {
|
||||||
/* SerDes 4 */
|
/* SerDes 4 */
|
||||||
{3, {PCIE3, PCIE3, PCIE3, PCIE3, PCIE4, PCIE4, PCIE4, PCIE4} },
|
{3, {NONE, NONE, NONE, NONE, PCIE4, PCIE4, PCIE4, PCIE4} },
|
||||||
{4, {PCIE3, PCIE3, PCIE3, PCIE3, PCIE4, PCIE4, PCIE4, PCIE4} },
|
{4, {NONE, NONE, NONE, NONE, PCIE4, PCIE4, PCIE4, PCIE4} },
|
||||||
{5, {SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{5, {NONE, NONE, NONE, NONE, SRIO2, SRIO2, SRIO2, SRIO2} },
|
||||||
{6, {SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{6, {NONE, NONE, NONE, NONE, SRIO2, SRIO2, SRIO2, SRIO2} },
|
||||||
{7, {SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{7, {NONE, NONE, NONE, NONE, SRIO2, SRIO2, SRIO2, SRIO2} },
|
||||||
{8, {SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{8, {NONE, NONE, NONE, NONE, SRIO2, SRIO2, SRIO2, SRIO2} },
|
||||||
{9, {PCIE3, PCIE3, PCIE3, PCIE3, SATA1, SATA1, SATA2, SATA2} },
|
{9, {NONE, NONE, NONE, NONE, PCIE4, PCIE4, SATA1, SATA2} },
|
||||||
{10, {PCIE3, PCIE3, PCIE3, PCIE3, SATA1, SATA1, SATA2, SATA2} },
|
{10, {NONE, NONE, NONE, NONE, PCIE4, PCIE4, SATA1, SATA2} },
|
||||||
{11, {AURORA, AURORA, AURORA, AURORA, SATA1, SATA1, SATA2, SATA2} },
|
{11, {NONE, NONE, NONE, NONE, AURORA, AURORA, SATA1, SATA2} },
|
||||||
{12, {AURORA, AURORA, AURORA, AURORA, SATA1, SATA1, SATA2, SATA2} },
|
{12, {NONE, NONE, NONE, NONE, AURORA, AURORA, SATA1, SATA2} },
|
||||||
{13, {AURORA, AURORA, AURORA, AURORA, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{13, {NONE, NONE, NONE, NONE, AURORA, AURORA, SRIO2, SRIO2} },
|
||||||
{14, {AURORA, AURORA, AURORA, AURORA, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{14, {NONE, NONE, NONE, NONE, AURORA, AURORA, SRIO2, SRIO2} },
|
||||||
{15, {AURORA, AURORA, AURORA, AURORA, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{15, {NONE, NONE, NONE, NONE, AURORA, AURORA, SRIO2, SRIO2} },
|
||||||
{16, {AURORA, AURORA, AURORA, AURORA, SRIO2, SRIO2, SRIO2, SRIO2} },
|
{16, {NONE, NONE, NONE, NONE, AURORA, AURORA, SRIO2, SRIO2} },
|
||||||
{18, {AURORA, AURORA, AURORA, AURORA, AURORA, AURORA, AURORA, AURORA} },
|
{18, {NONE, NONE, NONE, NONE, AURORA, AURORA, AURORA, AURORA} },
|
||||||
{}
|
{}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@
|
||||||
#elif defined(CONFIG_P1025)
|
#elif defined(CONFIG_P1025)
|
||||||
#define CONFIG_MAX_CPUS 2
|
#define CONFIG_MAX_CPUS 2
|
||||||
#define CONFIG_SYS_FSL_NUM_LAWS 12
|
#define CONFIG_SYS_FSL_NUM_LAWS 12
|
||||||
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
|
||||||
#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
|
#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
|
||||||
#define CONFIG_TSECV2
|
#define CONFIG_TSECV2
|
||||||
#define CONFIG_FSL_PCIE_DISABLE_ASPM
|
#define CONFIG_FSL_PCIE_DISABLE_ASPM
|
||||||
|
|
@ -806,6 +806,7 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
|
||||||
#define QE_MURAM_SIZE 0x6000UL
|
#define QE_MURAM_SIZE 0x6000UL
|
||||||
#define MAX_QE_RISC 1
|
#define MAX_QE_RISC 1
|
||||||
#define QE_NUM_OF_SNUM 28
|
#define QE_NUM_OF_SNUM 28
|
||||||
|
#define CONFIG_SYS_FSL_SFP_VER_3_0
|
||||||
|
|
||||||
#elif defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) ||\
|
#elif defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) ||\
|
||||||
defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
|
defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,12 @@ extern void fdt_fixup_liodn(void *blob);
|
||||||
FM_PPID_RX_PORT_OFFSET(fmNum, enetNum + 16), \
|
FM_PPID_RX_PORT_OFFSET(fmNum, enetNum + 16), \
|
||||||
CONFIG_SYS_FSL_FM##fmNum##_RX##enetNum##_10G_OFFSET) \
|
CONFIG_SYS_FSL_FM##fmNum##_RX##enetNum##_10G_OFFSET) \
|
||||||
|
|
||||||
|
/* enetNum is 0, 1, 2... so we + 8 for type-2 10g to get to HW Port ID */
|
||||||
|
#define SET_FMAN_RX_10G_TYPE2_LIODN(fmNum, enetNum, liodn) \
|
||||||
|
SET_LIODN_ENTRY_1("fsl,fman-port-10g-rx", liodn, \
|
||||||
|
FM_PPID_RX_PORT_OFFSET(fmNum, enetNum + 8), \
|
||||||
|
CONFIG_SYS_FSL_FM##fmNum##_RX##enetNum##_1G_OFFSET) \
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* handle both old and new versioned SEC properties:
|
* handle both old and new versioned SEC properties:
|
||||||
* "fsl,secX.Y" became "fsl,sec-vX.Y" during development
|
* "fsl,secX.Y" became "fsl,sec-vX.Y" during development
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,9 @@
|
||||||
defined(CONFIG_T2080QDS) || \
|
defined(CONFIG_T2080QDS) || \
|
||||||
defined(CONFIG_T2080RDB) || \
|
defined(CONFIG_T2080RDB) || \
|
||||||
defined(CONFIG_T1040QDS) || \
|
defined(CONFIG_T1040QDS) || \
|
||||||
|
defined(CONFIG_T104xD4QDS) || \
|
||||||
defined(CONFIG_T104xRDB) || \
|
defined(CONFIG_T104xRDB) || \
|
||||||
|
defined(CONFIG_T104xD4RDB) || \
|
||||||
defined(CONFIG_PPC_T1023) || \
|
defined(CONFIG_PPC_T1023) || \
|
||||||
defined(CONFIG_PPC_T1024)
|
defined(CONFIG_PPC_T1024)
|
||||||
#define CONFIG_SYS_CPC_REINIT_F
|
#define CONFIG_SYS_CPC_REINIT_F
|
||||||
|
|
@ -46,6 +48,11 @@
|
||||||
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
|
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_RAMBOOT_PBL)
|
||||||
|
#undef CONFIG_SYS_INIT_L3_ADDR
|
||||||
|
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_C29XPCIE)
|
#if defined(CONFIG_C29XPCIE)
|
||||||
#define CONFIG_KEY_REVOCATION
|
#define CONFIG_KEY_REVOCATION
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -68,6 +75,18 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_FIT_SIGNATURE
|
#ifndef CONFIG_FIT_SIGNATURE
|
||||||
|
/* If Boot Script is not on NOR and is required to be copied on RAM */
|
||||||
|
#ifdef CONFIG_BOOTSCRIPT_COPY_RAM
|
||||||
|
#define CONFIG_BS_HDR_ADDR_RAM 0x00010000
|
||||||
|
#define CONFIG_BS_HDR_ADDR_FLASH 0x00800000
|
||||||
|
#define CONFIG_BS_HDR_SIZE 0x00002000
|
||||||
|
#define CONFIG_BS_ADDR_RAM 0x00012000
|
||||||
|
#define CONFIG_BS_ADDR_FLASH 0x00802000
|
||||||
|
#define CONFIG_BS_SIZE 0x00001000
|
||||||
|
|
||||||
|
#define CONFIG_BOOTSCRIPT_HDR_ADDR CONFIG_BS_HDR_ADDR_RAM
|
||||||
|
#else
|
||||||
|
|
||||||
/* The bootscript header address is different for B4860 because the NOR
|
/* The bootscript header address is different for B4860 because the NOR
|
||||||
* mapping is different on B4 due to reduced NOR size.
|
* mapping is different on B4 due to reduced NOR size.
|
||||||
*/
|
*/
|
||||||
|
|
@ -83,6 +102,8 @@
|
||||||
#define CONFIG_BOOTSCRIPT_HDR_ADDR 0xee020000
|
#define CONFIG_BOOTSCRIPT_HDR_ADDR 0xee020000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <config_fsl_secboot.h>
|
#include <config_fsl_secboot.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
|
||||||
/* TLB 1 */
|
/* TLB 1 */
|
||||||
/* *I*** - Covers boot page */
|
/* *I*** - Covers boot page */
|
||||||
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L3_ADDR)
|
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L3_ADDR)
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SECURE_BOOT)
|
||||||
/*
|
/*
|
||||||
* *I*G - L3SRAM. When L3 is used as 1M SRAM, the address of the
|
* *I*G - L3SRAM. When L3 is used as 1M SRAM, the address of the
|
||||||
* SRAM is at 0xfff00000, it covered the 0xfffff000.
|
* SRAM is at 0xfff00000, it covered the 0xfffff000.
|
||||||
|
|
@ -50,6 +52,19 @@ struct fsl_e_tlb_entry tlb_table[] = {
|
||||||
SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L3_ADDR, CONFIG_SYS_INIT_L3_ADDR,
|
SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L3_ADDR, CONFIG_SYS_INIT_L3_ADDR,
|
||||||
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
|
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
|
||||||
0, 0, BOOKE_PAGESZ_1M, 1),
|
0, 0, BOOKE_PAGESZ_1M, 1),
|
||||||
|
#else
|
||||||
|
/*
|
||||||
|
* *I*G - L3SRAM. When L3 is used as 1M SRAM, in case of Secure Boot
|
||||||
|
* the physical address of the SRAM is at CONFIG_SYS_INIT_L3_ADDR,
|
||||||
|
* and virtual address is CONFIG_SYS_MONITOR_BASE
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET_TLB_ENTRY(1, CONFIG_SYS_MONITOR_BASE & 0xfff00000,
|
||||||
|
CONFIG_SYS_INIT_L3_ADDR & 0xfff00000,
|
||||||
|
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
|
||||||
|
0, 0, BOOKE_PAGESZ_1M, 1),
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
#elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
|
||||||
/*
|
/*
|
||||||
* SRIO_PCIE_BOOT-SLAVE. When slave boot, the address of the
|
* SRIO_PCIE_BOOT-SLAVE. When slave boot, the address of the
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,10 @@ F: configs/P5040DS_NAND_defconfig
|
||||||
F: configs/P5040DS_SDCARD_defconfig
|
F: configs/P5040DS_SDCARD_defconfig
|
||||||
F: configs/P5040DS_SPIFLASH_defconfig
|
F: configs/P5040DS_SPIFLASH_defconfig
|
||||||
F: configs/P5040DS_SECURE_BOOT_defconfig
|
F: configs/P5040DS_SECURE_BOOT_defconfig
|
||||||
|
|
||||||
|
CORENET_DS_SECURE_BOOT BOARD
|
||||||
|
M: Aneesh Bansal <aneesh.bansal@freescale.com>
|
||||||
|
S: Maintained
|
||||||
|
F: configs/P3041DS_NAND_SECURE_BOOT_defconfig
|
||||||
|
F: configs/P5020DS_NAND_SECURE_BOOT_defconfig
|
||||||
|
F: configs/P5040DS_NAND_SECURE_BOOT_defconfig
|
||||||
|
|
|
||||||
|
|
@ -428,8 +428,13 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||||
{
|
{
|
||||||
phys_addr_t base;
|
phys_addr_t base;
|
||||||
phys_size_t size;
|
phys_size_t size;
|
||||||
|
#if defined(CONFIG_P1020RDB_PD) || defined(CONFIG_P1020RDB_PC)
|
||||||
const char *soc_usb_compat = "fsl-usb2-dr";
|
const char *soc_usb_compat = "fsl-usb2-dr";
|
||||||
int err, usb1_off, usb2_off;
|
int usb_err, usb1_off, usb2_off;
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_SDCARD) || defined(CONFIG_SPIFLASH)
|
||||||
|
int err;
|
||||||
|
#endif
|
||||||
|
|
||||||
ft_cpu_setup(blob, bd);
|
ft_cpu_setup(blob, bd);
|
||||||
|
|
||||||
|
|
@ -473,6 +478,7 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_P1020RDB_PD) || defined(CONFIG_P1020RDB_PC)
|
||||||
/* Delete USB2 node as it is muxed with eLBC */
|
/* Delete USB2 node as it is muxed with eLBC */
|
||||||
usb1_off = fdt_node_offset_by_compatible(blob, -1,
|
usb1_off = fdt_node_offset_by_compatible(blob, -1,
|
||||||
soc_usb_compat);
|
soc_usb_compat);
|
||||||
|
|
@ -488,11 +494,12 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||||
soc_usb_compat);
|
soc_usb_compat);
|
||||||
return usb2_off;
|
return usb2_off;
|
||||||
}
|
}
|
||||||
err = fdt_del_node(blob, usb2_off);
|
usb_err = fdt_del_node(blob, usb2_off);
|
||||||
if (err < 0) {
|
if (usb_err < 0) {
|
||||||
printf("WARNING: could not remove %s\n", soc_usb_compat);
|
printf("WARNING: could not remove %s\n", soc_usb_compat);
|
||||||
return err;
|
return usb_err;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#Configure CPC1 as 256KB SRAM
|
#Configure CPC1 as 256KB SRAM
|
||||||
09010100 00000000
|
09010100 00000000
|
||||||
09010104 fffc0007
|
09010104 fffc0007
|
||||||
09010f00 08000000
|
09010f00 081e000d
|
||||||
09010000 80000000
|
09010000 80000000
|
||||||
#Configure LAW for CPC1
|
#Configure LAW for CPC1
|
||||||
09000cd0 00000000
|
09000cd0 00000000
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ Deep Sleep: yes no
|
||||||
I2C controller: 4 3
|
I2C controller: 4 3
|
||||||
DDR: 64-bit 32-bit
|
DDR: 64-bit 32-bit
|
||||||
IFC: 32-bit 28-bit
|
IFC: 32-bit 28-bit
|
||||||
|
Package: 23x23 19x19
|
||||||
|
|
||||||
|
|
||||||
T1024RDB board Overview
|
T1024RDB board Overview
|
||||||
|
|
@ -192,7 +193,7 @@ Software configurations and board settings
|
||||||
on T1024RDB:
|
on T1024RDB:
|
||||||
set SW1[1:8] = '00010011', SW2[1] = '1', SW3[4] = '0' for NOR boot
|
set SW1[1:8] = '00010011', SW2[1] = '1', SW3[4] = '0' for NOR boot
|
||||||
on T1023RDB:
|
on T1023RDB:
|
||||||
set SW1[1:8] = '00010110', SW2[1] = '0', SW3[4] = '0' for NOR boot
|
set SW1[1:8] = '00010111', SW2[1] = '1', SW3[4] = '0' for NOR boot
|
||||||
|
|
||||||
Switching between default bank0 and alternate bank4 on NOR flash
|
Switching between default bank0 and alternate bank4 on NOR flash
|
||||||
To change boot source to vbank4:
|
To change boot source to vbank4:
|
||||||
|
|
@ -200,7 +201,7 @@ Software configurations and board settings
|
||||||
via software: run command 'cpld reset altbank' in u-boot.
|
via software: run command 'cpld reset altbank' in u-boot.
|
||||||
via DIP-switch: set SW3[5:7] = '100'
|
via DIP-switch: set SW3[5:7] = '100'
|
||||||
on T1023RDB:
|
on T1023RDB:
|
||||||
via software: run command 'gpio vbank4' in u-boot.
|
via software: run command 'switch bank4' in u-boot.
|
||||||
via DIP-switch: set SW3[5:7] = '100'
|
via DIP-switch: set SW3[5:7] = '100'
|
||||||
|
|
||||||
To change boot source to vbank0:
|
To change boot source to vbank0:
|
||||||
|
|
@ -208,7 +209,7 @@ Software configurations and board settings
|
||||||
via software: run command 'cpld reset' in u-boot.
|
via software: run command 'cpld reset' in u-boot.
|
||||||
via DIP-Switch: set SW3[5:7] = '000'
|
via DIP-Switch: set SW3[5:7] = '000'
|
||||||
on T1023RDB:
|
on T1023RDB:
|
||||||
via software: run command 'gpio vbank0' in u-boot.
|
via software: run command 'switch bank0' in u-boot.
|
||||||
via DIP-switch: set SW3[5:7] = '000'
|
via DIP-switch: set SW3[5:7] = '000'
|
||||||
|
|
||||||
2. NAND Boot:
|
2. NAND Boot:
|
||||||
|
|
@ -219,7 +220,7 @@ Software configurations and board settings
|
||||||
=> tftp 1000000 u-boot-with-spl-pbl.bin
|
=> tftp 1000000 u-boot-with-spl-pbl.bin
|
||||||
=> nand erase 0 $filesize
|
=> nand erase 0 $filesize
|
||||||
=> nand write 1000000 0 $filesize
|
=> nand write 1000000 0 $filesize
|
||||||
set SW1[1:8] = '10001000', SW2[1] = '1', SW3[4] = '1' for NAND boot
|
set SW1[1:8] = '10000010', SW2[1] = '1', SW3[4] = '1' for NAND boot
|
||||||
|
|
||||||
3. SPI Boot:
|
3. SPI Boot:
|
||||||
a. build PBL image for SPI boot
|
a. build PBL image for SPI boot
|
||||||
|
|
@ -241,11 +242,14 @@ Software configurations and board settings
|
||||||
$ make
|
$ make
|
||||||
b. program u-boot-with-spl-pbl.bin to SD/MMC card
|
b. program u-boot-with-spl-pbl.bin to SD/MMC card
|
||||||
=> tftp 1000000 u-boot-with-spl-pbl.bin
|
=> tftp 1000000 u-boot-with-spl-pbl.bin
|
||||||
=> mmc write 1000000 8 0x800
|
=> mmc write 1000000 8 0x7f0
|
||||||
=> tftp 1000000 fsl_fman_ucode_t1024_xx.bin
|
=> tftp 1000000 fsl_fman_ucode_t1024_xx.bin
|
||||||
=> mmc write 1000000 0x820 80
|
=> mmc write 1000000 0x820 80
|
||||||
set SW1[1:8] = '00100000', SW2[1] = '0' for SD boot
|
set SW1[1:8] = '00100000', SW2[1] = '0' for SD boot
|
||||||
|
|
||||||
|
SW3[3] = '1' for SD card(or 'switch sd' by software)
|
||||||
|
SW3[3] = '0' for eMMC (or 'switch emmc' by software)
|
||||||
|
|
||||||
|
|
||||||
2-stage NAND/SPI/SD boot loader
|
2-stage NAND/SPI/SD boot loader
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
@ -292,7 +296,7 @@ Start End Definition Size
|
||||||
0x160000 0x17FFFF FMAN Ucode 128KB
|
0x160000 0x17FFFF FMAN Ucode 128KB
|
||||||
|
|
||||||
|
|
||||||
SD Card memory Map on T1024RDB
|
SD Card memory Map on T102xRDB
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
Block #blocks Definition Size
|
Block #blocks Definition Size
|
||||||
0x008 2048 u-boot img 1MB
|
0x008 2048 u-boot img 1MB
|
||||||
|
|
@ -313,5 +317,5 @@ Start End Definition Size
|
||||||
0xa00000 0x3FFFFFF rootfs 54MB
|
0xa00000 0x3FFFFFF rootfs 54MB
|
||||||
|
|
||||||
|
|
||||||
For more details, please refer to T1024RDB Reference Manual
|
For more details, please refer to T1024RDB/T1023RDB User Guide
|
||||||
and Freescale QorIQ SDK Infocenter document.
|
and Freescale QorIQ SDK Infocenter document.
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,30 @@ unsigned long get_board_ddr_clk(void)
|
||||||
return CONFIG_DDR_CLK_FREQ;
|
return CONFIG_DDR_CLK_FREQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_SPL_MMC_BOOT)
|
||||||
|
#define GPIO1_SD_SEL 0x00020000
|
||||||
|
int board_mmc_getcd(struct mmc *mmc)
|
||||||
|
{
|
||||||
|
ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
||||||
|
u32 val = in_be32(&pgpio->gpdat);
|
||||||
|
|
||||||
|
/* GPIO1_14, 0: eMMC, 1: SD */
|
||||||
|
val &= GPIO1_SD_SEL;
|
||||||
|
|
||||||
|
return val ? -1 : 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_mmc_getwp(struct mmc *mmc)
|
||||||
|
{
|
||||||
|
ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
||||||
|
u32 val = in_be32(&pgpio->gpdat);
|
||||||
|
|
||||||
|
val &= GPIO1_SD_SEL;
|
||||||
|
|
||||||
|
return val ? -1 : 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void board_init_f(ulong bootflag)
|
void board_init_f(ulong bootflag)
|
||||||
{
|
{
|
||||||
u32 plat_ratio, sys_clk, ccb_clk;
|
u32 plat_ratio, sys_clk, ccb_clk;
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,5 @@ aa55aa55 010e0100
|
||||||
#Core/DDR: 1400Mhz/1600MT/s with single source clock
|
#Core/DDR: 1400Mhz/1600MT/s with single source clock
|
||||||
0810000e 00000000 00000000 00000000
|
0810000e 00000000 00000000 00000000
|
||||||
3b800003 00000012 e8104000 21000000
|
3b800003 00000012 e8104000 21000000
|
||||||
00000000 00000000 00000000 00020800
|
00000000 00000000 00000000 00022800
|
||||||
00000130 04020200 00000000 00000006
|
00000130 04020200 00000000 00000006
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#Configure CPC1 as 256KB SRAM
|
#Configure CPC1 as 256KB SRAM
|
||||||
09010100 00000000
|
09010100 00000000
|
||||||
09010104 fffc0007
|
09010104 fffc0007
|
||||||
09010f00 08000000
|
09010f00 081e000d
|
||||||
09010000 80000000
|
09010000 80000000
|
||||||
#Configure LAW for CPC1
|
#Configure LAW for CPC1
|
||||||
09000cd0 00000000
|
09000cd0 00000000
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@
|
||||||
#include "t102xrdb.h"
|
#include "t102xrdb.h"
|
||||||
#ifdef CONFIG_T1024RDB
|
#ifdef CONFIG_T1024RDB
|
||||||
#include "cpld.h"
|
#include "cpld.h"
|
||||||
|
#elif defined(CONFIG_T1023RDB)
|
||||||
|
#include <i2c.h>
|
||||||
|
#include <mmc.h>
|
||||||
#endif
|
#endif
|
||||||
#include "../common/sleep.h"
|
#include "../common/sleep.h"
|
||||||
|
|
||||||
|
|
@ -27,13 +30,14 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifdef CONFIG_T1023RDB
|
#ifdef CONFIG_T1023RDB
|
||||||
enum {
|
enum {
|
||||||
GPIO1_SD_SEL = 0x00020000, /* GPIO1_14, 0: EMMC, 1:SD/MMC */
|
GPIO1_SD_SEL = 0x00020000, /* GPIO1_14, 0: eMMC, 1:SD/MMC */
|
||||||
GPIO1_EMMC_SEL,
|
GPIO1_EMMC_SEL,
|
||||||
GPIO1_VBANK0,
|
GPIO3_GET_VERSION, /* GPIO3_4/5, 00:RevB, 01: RevC */
|
||||||
GPIO1_VBANK4 = 0x00008000, /* GPIO1_16/20/22, 100:vBank4 */
|
GPIO3_BRD_VER_MASK = 0x0c000000,
|
||||||
GPIO1_VBANK_MASK = 0x00008a00,
|
GPIO3_OFFSET = 0x2000,
|
||||||
GPIO1_DIR_OUTPUT = 0x00028a00,
|
I2C_GET_BANK,
|
||||||
GPIO1_GET_VAL,
|
I2C_SET_BANK0,
|
||||||
|
I2C_SET_BANK4,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -48,9 +52,11 @@ int checkboard(void)
|
||||||
srds_s1 >>= FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT;
|
srds_s1 >>= FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT;
|
||||||
|
|
||||||
printf("Board: %sRDB, ", cpu->name);
|
printf("Board: %sRDB, ", cpu->name);
|
||||||
#ifdef CONFIG_T1024RDB
|
#if defined(CONFIG_T1024RDB)
|
||||||
printf("Board rev: 0x%02x CPLD ver: 0x%02x, ",
|
printf("Board rev: 0x%02x CPLD ver: 0x%02x, ",
|
||||||
CPLD_READ(hw_ver), CPLD_READ(sw_ver));
|
CPLD_READ(hw_ver), CPLD_READ(sw_ver));
|
||||||
|
#elif defined(CONFIG_T1023RDB)
|
||||||
|
printf("Rev%c, ", t1023rdb_ctrl(GPIO3_GET_VERSION) + 'B');
|
||||||
#endif
|
#endif
|
||||||
printf("boot from ");
|
printf("boot from ");
|
||||||
|
|
||||||
|
|
@ -73,8 +79,7 @@ int checkboard(void)
|
||||||
#ifdef CONFIG_NAND
|
#ifdef CONFIG_NAND
|
||||||
puts("NAND\n");
|
puts("NAND\n");
|
||||||
#else
|
#else
|
||||||
printf("NOR vBank%d\n", (t1023rdb_gpio_ctrl(GPIO1_GET_VAL) &
|
printf("NOR vBank%d\n", t1023rdb_ctrl(I2C_GET_BANK));
|
||||||
GPIO1_VBANK4) >> 15 ? 4 : 0);
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -196,64 +201,126 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||||
fdt_fixup_board_enet(blob);
|
fdt_fixup_board_enet(blob);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_T1023RDB
|
||||||
|
if (t1023rdb_ctrl(GPIO3_GET_VERSION) > 0)
|
||||||
|
fdt_enable_nor(blob);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_T1023RDB
|
#ifdef CONFIG_T1023RDB
|
||||||
static u32 t1023rdb_gpio_ctrl(u32 ctrl_type)
|
/* Enable NOR flash for RevC */
|
||||||
|
static void fdt_enable_nor(void *blob)
|
||||||
{
|
{
|
||||||
ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
int nodeoff = fdt_node_offset_by_compatible(blob, 0, "cfi-flash");
|
||||||
u32 gpioval;
|
|
||||||
|
|
||||||
setbits_be32(&pgpio->gpdir, GPIO1_DIR_OUTPUT);
|
if (nodeoff >= 0)
|
||||||
gpioval = in_be32(&pgpio->gpdat);
|
fdt_status_okay(blob, nodeoff);
|
||||||
|
else
|
||||||
|
printf("WARNING unable to set status for NOR\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_mmc_getcd(struct mmc *mmc)
|
||||||
|
{
|
||||||
|
ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
||||||
|
u32 val = in_be32(&pgpio->gpdat);
|
||||||
|
|
||||||
|
/* GPIO1_14, 0: eMMC, 1: SD/MMC */
|
||||||
|
val &= GPIO1_SD_SEL;
|
||||||
|
|
||||||
|
return val ? -1 : 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_mmc_getwp(struct mmc *mmc)
|
||||||
|
{
|
||||||
|
ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
||||||
|
u32 val = in_be32(&pgpio->gpdat);
|
||||||
|
|
||||||
|
val &= GPIO1_SD_SEL;
|
||||||
|
|
||||||
|
return val ? -1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static u32 t1023rdb_ctrl(u32 ctrl_type)
|
||||||
|
{
|
||||||
|
ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
|
||||||
|
ccsr_gur_t __iomem *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
|
||||||
|
u32 val, orig_bus = i2c_get_bus_num();
|
||||||
|
u8 tmp;
|
||||||
|
|
||||||
switch (ctrl_type) {
|
switch (ctrl_type) {
|
||||||
case GPIO1_SD_SEL:
|
case GPIO1_SD_SEL:
|
||||||
gpioval |= GPIO1_SD_SEL;
|
val = in_be32(&pgpio->gpdat);
|
||||||
|
val |= GPIO1_SD_SEL;
|
||||||
|
out_be32(&pgpio->gpdat, val);
|
||||||
|
setbits_be32(&pgpio->gpdir, GPIO1_SD_SEL);
|
||||||
break;
|
break;
|
||||||
case GPIO1_EMMC_SEL:
|
case GPIO1_EMMC_SEL:
|
||||||
gpioval &= ~GPIO1_SD_SEL;
|
val = in_be32(&pgpio->gpdat);
|
||||||
|
val &= ~GPIO1_SD_SEL;
|
||||||
|
out_be32(&pgpio->gpdat, val);
|
||||||
|
setbits_be32(&pgpio->gpdir, GPIO1_SD_SEL);
|
||||||
break;
|
break;
|
||||||
case GPIO1_VBANK0:
|
case GPIO3_GET_VERSION:
|
||||||
gpioval &= ~GPIO1_VBANK_MASK;
|
pgpio = (ccsr_gpio_t *)(CONFIG_SYS_MPC85xx_GPIO_ADDR
|
||||||
|
+ GPIO3_OFFSET);
|
||||||
|
val = in_be32(&pgpio->gpdat);
|
||||||
|
val = ((val & GPIO3_BRD_VER_MASK) >> 26) & 0x3;
|
||||||
|
if (val == 0x3) /* GPIO3_4/5 not used on RevB */
|
||||||
|
val = 0;
|
||||||
|
return val;
|
||||||
|
case I2C_GET_BANK:
|
||||||
|
i2c_set_bus_num(I2C_PCA6408_BUS_NUM);
|
||||||
|
i2c_read(I2C_PCA6408_ADDR, 0, 1, &tmp, 1);
|
||||||
|
tmp &= 0x7;
|
||||||
|
tmp = ((tmp & 1) << 2) | (tmp & 2) | ((tmp & 4) >> 2);
|
||||||
|
i2c_set_bus_num(orig_bus);
|
||||||
|
return tmp;
|
||||||
|
case I2C_SET_BANK0:
|
||||||
|
i2c_set_bus_num(I2C_PCA6408_BUS_NUM);
|
||||||
|
tmp = 0x0;
|
||||||
|
i2c_write(I2C_PCA6408_ADDR, 1, 1, &tmp, 1);
|
||||||
|
tmp = 0xf8;
|
||||||
|
i2c_write(I2C_PCA6408_ADDR, 3, 1, &tmp, 1);
|
||||||
|
/* asserting HRESET_REQ */
|
||||||
|
out_be32(&gur->rstcr, 0x2);
|
||||||
break;
|
break;
|
||||||
case GPIO1_VBANK4:
|
case I2C_SET_BANK4:
|
||||||
gpioval &= ~GPIO1_VBANK_MASK;
|
i2c_set_bus_num(I2C_PCA6408_BUS_NUM);
|
||||||
gpioval |= GPIO1_VBANK4;
|
tmp = 0x1;
|
||||||
|
i2c_write(I2C_PCA6408_ADDR, 1, 1, &tmp, 1);
|
||||||
|
tmp = 0xf8;
|
||||||
|
i2c_write(I2C_PCA6408_ADDR, 3, 1, &tmp, 1);
|
||||||
|
out_be32(&gur->rstcr, 0x2);
|
||||||
break;
|
break;
|
||||||
case GPIO1_GET_VAL:
|
|
||||||
return gpioval;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
out_be32(&pgpio->gpdat, gpioval);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gpio_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
static int switch_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||||
char * const argv[])
|
char * const argv[])
|
||||||
{
|
{
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
if (!strcmp(argv[1], "vbank0"))
|
if (!strcmp(argv[1], "bank0"))
|
||||||
t1023rdb_gpio_ctrl(GPIO1_VBANK0);
|
t1023rdb_ctrl(I2C_SET_BANK0);
|
||||||
else if (!strcmp(argv[1], "vbank4"))
|
else if (!strcmp(argv[1], "bank4") || !strcmp(argv[1], "altbank"))
|
||||||
t1023rdb_gpio_ctrl(GPIO1_VBANK4);
|
t1023rdb_ctrl(I2C_SET_BANK4);
|
||||||
else if (!strcmp(argv[1], "sd"))
|
else if (!strcmp(argv[1], "sd"))
|
||||||
t1023rdb_gpio_ctrl(GPIO1_SD_SEL);
|
t1023rdb_ctrl(GPIO1_SD_SEL);
|
||||||
else if (!strcmp(argv[1], "EMMC"))
|
else if (!strcmp(argv[1], "emmc"))
|
||||||
t1023rdb_gpio_ctrl(GPIO1_EMMC_SEL);
|
t1023rdb_ctrl(GPIO1_EMMC_SEL);
|
||||||
else
|
else
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
U_BOOT_CMD(
|
U_BOOT_CMD(
|
||||||
gpio, 2, 0, gpio_cmd,
|
switch, 2, 0, switch_cmd,
|
||||||
"for vbank0/vbank4/SD/eMMC switch control in runtime",
|
"for bank0/bank4/sd/emmc switch control in runtime",
|
||||||
"command (e.g. gpio vbank4)"
|
"command (e.g. switch bank4)"
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
void fdt_fixup_board_enet(void *blob);
|
void fdt_fixup_board_enet(void *blob);
|
||||||
void pci_of_setup(void *blob, bd_t *bd);
|
void pci_of_setup(void *blob, bd_t *bd);
|
||||||
#ifdef CONFIG_T1023RDB
|
#ifdef CONFIG_T1023RDB
|
||||||
static u32 t1023rdb_gpio_ctrl(u32 ctrl_type);
|
static u32 t1023rdb_ctrl(u32 ctrl_type);
|
||||||
|
static void fdt_enable_nor(void *blob);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#Configure CPC1 as 256KB SRAM
|
#Configure CPC1 as 256KB SRAM
|
||||||
09010100 00000000
|
09010100 00000000
|
||||||
09010104 fffc0007
|
09010104 fffc0007
|
||||||
09010f00 08000000
|
09010f00 081e000d
|
||||||
09010000 80000000
|
09010000 80000000
|
||||||
#Configure LAW for CPC1
|
#Configure LAW for CPC1
|
||||||
09000cf0 00000000
|
09000cf0 00000000
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,13 @@ F: include/configs/T104xRDB.h
|
||||||
F: configs/T1040RDB_defconfig
|
F: configs/T1040RDB_defconfig
|
||||||
F: configs/T1040RDB_NAND_defconfig
|
F: configs/T1040RDB_NAND_defconfig
|
||||||
F: configs/T1040RDB_SPIFLASH_defconfig
|
F: configs/T1040RDB_SPIFLASH_defconfig
|
||||||
|
F: configs/T1040D4RDB_defconfig
|
||||||
|
F: configs/T1040D4RDB_NAND_defconfig
|
||||||
|
F: configs/T1040D4RDB_SPIFLASH_defconfig
|
||||||
F: configs/T1042RDB_defconfig
|
F: configs/T1042RDB_defconfig
|
||||||
|
F: configs/T1042D4RDB_defconfig
|
||||||
|
F: configs/T1042D4RDB_NAND_defconfig
|
||||||
|
F: configs/T1042D4RDB_SPIFLASH_defconfig
|
||||||
F: configs/T1042RDB_PI_defconfig
|
F: configs/T1042RDB_PI_defconfig
|
||||||
F: configs/T1042RDB_PI_NAND_defconfig
|
F: configs/T1042RDB_PI_NAND_defconfig
|
||||||
F: configs/T1042RDB_PI_SPIFLASH_defconfig
|
F: configs/T1042RDB_PI_SPIFLASH_defconfig
|
||||||
|
|
@ -15,10 +21,14 @@ T1040RDB_SDCARD BOARD
|
||||||
#M: -
|
#M: -
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: configs/T1040RDB_SDCARD_defconfig
|
F: configs/T1040RDB_SDCARD_defconfig
|
||||||
|
F: configs/T1040D4RDB_SDCARD_defconfig
|
||||||
|
F: configs/T1042D4RDB_SDCARD_defconfig
|
||||||
F: configs/T1042RDB_PI_SDCARD_defconfig
|
F: configs/T1042RDB_PI_SDCARD_defconfig
|
||||||
|
|
||||||
T1040RDB_SECURE_BOOT BOARD
|
T1040RDB_SECURE_BOOT BOARD
|
||||||
M: Aneesh Bansal <aneesh.bansal@freescale.com>
|
M: Aneesh Bansal <aneesh.bansal@freescale.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: configs/T1040RDB_SECURE_BOOT_defconfig
|
F: configs/T1040RDB_SECURE_BOOT_defconfig
|
||||||
|
F: configs/T1040D4RDB_SECURE_BOOT_defconfig
|
||||||
F: configs/T1042RDB_SECURE_BOOT_defconfig
|
F: configs/T1042RDB_SECURE_BOOT_defconfig
|
||||||
|
F: configs/T1042D4RDB_SECURE_BOOT_defconfig
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,17 @@ The T1042RDB_PI is a Freescale reference board that hosts the T1042 SoC.
|
||||||
(a personality of T1040 SoC). The board is similar to T1040RDB but is
|
(a personality of T1040 SoC). The board is similar to T1040RDB but is
|
||||||
designed specially with low power features targeted for Printing Image Market.
|
designed specially with low power features targeted for Printing Image Market.
|
||||||
|
|
||||||
|
The T1040D4RDB is a Freescale reference board that hosts the T1040 SoC.
|
||||||
|
The board is re-designed T1040RDB board with following changes :
|
||||||
|
- Support of DDR4 memory and some enhancements
|
||||||
|
|
||||||
|
The T1042D4RDB is a Freescale reference board that hosts the T1042 SoC.
|
||||||
|
The board is re-designed T1040RDB board with following changes :
|
||||||
|
- Support of DDR4 memory
|
||||||
|
- Support for 0x86 serdes protocol which can support following interfaces
|
||||||
|
- 2 RGMII's on DTSEC4, DTSEC5
|
||||||
|
- 3 SGMII on DTSEC1, DTSEC2 & DTSEC3
|
||||||
|
|
||||||
Basic difference's among T1040RDB, T1042RDB_PI, T1042RDB
|
Basic difference's among T1040RDB, T1042RDB_PI, T1042RDB
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
Board Si Protocol Targeted Market
|
Board Si Protocol Targeted Market
|
||||||
|
|
@ -19,6 +30,8 @@ Board Si Protocol Targeted Market
|
||||||
T1040RDB T1040 0x66 Networking
|
T1040RDB T1040 0x66 Networking
|
||||||
T1040RDB T1042 0x86 Networking
|
T1040RDB T1042 0x86 Networking
|
||||||
T1042RDB_PI T1042 0x06 Printing & Imaging
|
T1042RDB_PI T1042 0x06 Printing & Imaging
|
||||||
|
T1040D4RDB T1040 0x66 Networking
|
||||||
|
T1042D4RDB T1042 0x86 Networking
|
||||||
|
|
||||||
|
|
||||||
T1040 SoC Overview
|
T1040 SoC Overview
|
||||||
|
|
@ -70,7 +83,6 @@ The T1040/T1042 SoC includes the following function and features:
|
||||||
|
|
||||||
T1040 SoC Personalities
|
T1040 SoC Personalities
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
T1022 Personality:
|
T1022 Personality:
|
||||||
T1022 is a reduced personality of T1040 with less core/clusters.
|
T1022 is a reduced personality of T1040 with less core/clusters.
|
||||||
|
|
||||||
|
|
@ -268,8 +280,13 @@ SPI Flash memory Map on T104xRDB
|
||||||
Please note QE Firmware is only valid for T1040RDB
|
Please note QE Firmware is only valid for T1040RDB
|
||||||
|
|
||||||
|
|
||||||
Switch Settings: (ON is 0, OFF is 1)
|
Switch Settings for T104xRDB boards: (ON is 0, OFF is 1)
|
||||||
===============
|
==========================================================
|
||||||
|
NOR boot SW setting:
|
||||||
|
SW1: 00010011
|
||||||
|
SW2: 10111011
|
||||||
|
SW3: 11100001
|
||||||
|
|
||||||
NAND boot SW setting:
|
NAND boot SW setting:
|
||||||
SW1: 10001000
|
SW1: 10001000
|
||||||
SW2: 00111011
|
SW2: 00111011
|
||||||
|
|
@ -284,3 +301,67 @@ SD boot SW setting:
|
||||||
SW1: 00100000
|
SW1: 00100000
|
||||||
SW2: 00111011
|
SW2: 00111011
|
||||||
SW3: 11100001
|
SW3: 11100001
|
||||||
|
|
||||||
|
Switch Settings for T104xD4RDB boards: (ON is 0, OFF is 1)
|
||||||
|
=============================================================
|
||||||
|
NOR boot SW setting:
|
||||||
|
SW1: 00010011
|
||||||
|
SW2: 10111001
|
||||||
|
SW3: 11100001
|
||||||
|
|
||||||
|
NAND boot SW setting:
|
||||||
|
SW1: 10001000
|
||||||
|
SW2: 00111001
|
||||||
|
SW3: 11110001
|
||||||
|
|
||||||
|
SPI boot SW setting:
|
||||||
|
SW1: 00100010
|
||||||
|
SW2: 10111001
|
||||||
|
SW3: 11100001
|
||||||
|
|
||||||
|
SD boot SW setting:
|
||||||
|
SW1: 00100000
|
||||||
|
SW2: 00111001
|
||||||
|
SW3: 11100001
|
||||||
|
|
||||||
|
PBL-based image generation
|
||||||
|
==========================
|
||||||
|
Changes only the required register bit in in PBI commands.
|
||||||
|
|
||||||
|
Provides reference code which might needs some
|
||||||
|
modification as per requirement.
|
||||||
|
example:
|
||||||
|
By default PBI_SRC=14 (which is for IFC-NAND/NOR) in rcw.cfg file
|
||||||
|
which needs to be changed for SPI and SD.
|
||||||
|
|
||||||
|
For SD-boot
|
||||||
|
==============
|
||||||
|
1. Set RCW[192:195], PBI_SRC bits as 6 in RCW file (t1040d4_rcw.cfg type files)
|
||||||
|
|
||||||
|
example:
|
||||||
|
RCW file: board/freescale/t104xrdb/t1040d4_rcw.cfg
|
||||||
|
|
||||||
|
Change
|
||||||
|
66000002 40000002 ec027000 01000000
|
||||||
|
to
|
||||||
|
66000002 40000002 6c027000 01000000
|
||||||
|
|
||||||
|
2. SD does not support flush so remove flush from pbl, make changes in
|
||||||
|
tools/pblimage.c file, Update value of pbl_end_cmd[0] = 0x09138000
|
||||||
|
with 0x091380c0
|
||||||
|
|
||||||
|
For SPI-boot
|
||||||
|
==============
|
||||||
|
1. Set RCW[192:195], PBI_SRC bits as 5 in RCW file (t1040d4_rcw.cfg type files)
|
||||||
|
|
||||||
|
example:
|
||||||
|
RCW file: board/freescale/t104xrdb/t1040d4_rcw.cfg
|
||||||
|
|
||||||
|
Change
|
||||||
|
66000002 40000002 ec027000 01000000
|
||||||
|
to
|
||||||
|
66000002 40000002 5c027000 01000000
|
||||||
|
|
||||||
|
2. SPI does not support flush so remove flush from pbl, make changes in
|
||||||
|
tools/pblimage.c file, Update value of pbl_end_cmd[0] = 0x09138000
|
||||||
|
with 0x091380c0
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,11 @@ static void cpld_dump_regs(void)
|
||||||
printf("int_status = 0x%02x\n", CPLD_READ(int_status));
|
printf("int_status = 0x%02x\n", CPLD_READ(int_status));
|
||||||
printf("flash_ctl_status = 0x%02x\n", CPLD_READ(flash_ctl_status));
|
printf("flash_ctl_status = 0x%02x\n", CPLD_READ(flash_ctl_status));
|
||||||
printf("fan_ctl_status = 0x%02x\n", CPLD_READ(fan_ctl_status));
|
printf("fan_ctl_status = 0x%02x\n", CPLD_READ(fan_ctl_status));
|
||||||
|
#if defined(CONFIG_T104XD4RDB)
|
||||||
|
printf("int_mask = 0x%02x\n", CPLD_READ(int_mask));
|
||||||
|
#else
|
||||||
printf("led_ctl_status = 0x%02x\n", CPLD_READ(led_ctl_status));
|
printf("led_ctl_status = 0x%02x\n", CPLD_READ(led_ctl_status));
|
||||||
|
#endif
|
||||||
printf("sfp_ctl_status = 0x%02x\n", CPLD_READ(sfp_ctl_status));
|
printf("sfp_ctl_status = 0x%02x\n", CPLD_READ(sfp_ctl_status));
|
||||||
printf("misc_ctl_status = 0x%02x\n", CPLD_READ(misc_ctl_status));
|
printf("misc_ctl_status = 0x%02x\n", CPLD_READ(misc_ctl_status));
|
||||||
printf("boot_override = 0x%02x\n", CPLD_READ(boot_override));
|
printf("boot_override = 0x%02x\n", CPLD_READ(boot_override));
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,11 @@ struct cpld_data {
|
||||||
u8 int_status; /* 0x12 - Interrupt status Register */
|
u8 int_status; /* 0x12 - Interrupt status Register */
|
||||||
u8 flash_ctl_status; /* 0x13 - Flash control and status register */
|
u8 flash_ctl_status; /* 0x13 - Flash control and status register */
|
||||||
u8 fan_ctl_status; /* 0x14 - Fan control and status register */
|
u8 fan_ctl_status; /* 0x14 - Fan control and status register */
|
||||||
|
#if defined(CONFIG_T104XD4RDB)
|
||||||
|
u8 int_mask; /* 0x15 - Interrupt mask Register */
|
||||||
|
#else
|
||||||
u8 led_ctl_status; /* 0x15 - LED control and status register */
|
u8 led_ctl_status; /* 0x15 - LED control and status register */
|
||||||
|
#endif
|
||||||
u8 sfp_ctl_status; /* 0x16 - SFP control and status register */
|
u8 sfp_ctl_status; /* 0x16 - SFP control and status register */
|
||||||
u8 misc_ctl_status; /* 0x17 - Miscellanies ctrl & status register*/
|
u8 misc_ctl_status; /* 0x17 - Miscellanies ctrl & status register*/
|
||||||
u8 boot_override; /* 0x18 - Boot override register */
|
u8 boot_override; /* 0x18 - Boot override register */
|
||||||
|
|
@ -38,3 +42,5 @@ void cpld_write(unsigned int reg, u8 value);
|
||||||
#define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
|
#define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
|
||||||
#define CPLD_WRITE(reg, value)\
|
#define CPLD_WRITE(reg, value)\
|
||||||
cpld_write(offsetof(struct cpld_data, reg), value)
|
cpld_write(offsetof(struct cpld_data, reg), value)
|
||||||
|
#define MISC_CTL_SG_SEL 0x80
|
||||||
|
#define MISC_CTL_AURORA_SEL 0x02
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,11 @@ found:
|
||||||
* Factors to consider for half-strength driver enable:
|
* Factors to consider for half-strength driver enable:
|
||||||
* - number of DIMMs installed
|
* - number of DIMMs installed
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_SYS_FSL_DDR4
|
||||||
|
popts->half_strength_driver_enable = 1;
|
||||||
|
#else
|
||||||
popts->half_strength_driver_enable = 0;
|
popts->half_strength_driver_enable = 0;
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* Write leveling override
|
* Write leveling override
|
||||||
*/
|
*/
|
||||||
|
|
@ -91,8 +95,14 @@ found:
|
||||||
popts->zq_en = 1;
|
popts->zq_en = 1;
|
||||||
|
|
||||||
/* DHC_EN =1, ODT = 75 Ohm */
|
/* DHC_EN =1, ODT = 75 Ohm */
|
||||||
|
#ifdef CONFIG_SYS_FSL_DDR4
|
||||||
|
popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_120OHM);
|
||||||
|
popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_120OHM) |
|
||||||
|
DDR_CDR2_VREF_OVRD(70); /* Vref = 70% */
|
||||||
|
#else
|
||||||
popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm);
|
popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm);
|
||||||
popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm);
|
popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_DEEP_SLEEP)
|
#if defined(CONFIG_DEEP_SLEEP)
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@ static const struct board_specific_parameters udimm0[] = {
|
||||||
* num| hi| rank| clk| wrlvl | wrlvl
|
* num| hi| rank| clk| wrlvl | wrlvl
|
||||||
* ranks| mhz| GB |adjst| start | ctl2
|
* ranks| mhz| GB |adjst| start | ctl2
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_SYS_FSL_DDR4
|
||||||
|
{2, 1600, 4, 4, 6, 0x07090A0c, 0x0e0f100a},
|
||||||
|
#elif defined(CONFIG_SYS_FSL_DDR3)
|
||||||
{2, 833, 4, 4, 6, 0x06060607, 0x08080807},
|
{2, 833, 4, 4, 6, 0x06060607, 0x08080807},
|
||||||
{2, 833, 0, 4, 6, 0x06060607, 0x08080807},
|
{2, 833, 0, 4, 6, 0x06060607, 0x08080807},
|
||||||
{2, 1350, 4, 4, 7, 0x0708080A, 0x0A0B0C09},
|
{2, 1350, 4, 4, 7, 0x0708080A, 0x0A0B0C09},
|
||||||
|
|
@ -40,10 +43,14 @@ static const struct board_specific_parameters udimm0[] = {
|
||||||
{1, 1350, 0, 4, 7, 0x0708080A, 0x0A0B0C09},
|
{1, 1350, 0, 4, 7, 0x0708080A, 0x0A0B0C09},
|
||||||
{1, 1666, 4, 4, 7, 0x0808090B, 0x0C0D0E0A},
|
{1, 1666, 4, 4, 7, 0x0808090B, 0x0C0D0E0A},
|
||||||
{1, 1666, 0, 4, 7, 0x0808090B, 0x0C0D0E0A},
|
{1, 1666, 0, 4, 7, 0x0808090B, 0x0C0D0E0A},
|
||||||
|
#else
|
||||||
|
#error DDR type not defined
|
||||||
|
#endif
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static const struct board_specific_parameters *udimms[] = {
|
static const struct board_specific_parameters *udimms[] = {
|
||||||
udimm0,
|
udimm0,
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,11 @@ int board_eth_init(bd_t *bis)
|
||||||
int idx = i - FM1_DTSEC1;
|
int idx = i - FM1_DTSEC1;
|
||||||
|
|
||||||
switch (fm_info_get_enet_if(i)) {
|
switch (fm_info_get_enet_if(i)) {
|
||||||
#ifdef CONFIG_T1040RDB
|
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1040D4RDB)
|
||||||
case PHY_INTERFACE_MODE_SGMII:
|
case PHY_INTERFACE_MODE_SGMII:
|
||||||
/* T1040RDB only supports SGMII on DTSEC3 */
|
/* T1040RDB & T1040D4RDB only supports SGMII on
|
||||||
|
* DTSEC3
|
||||||
|
*/
|
||||||
fm_info_set_phy_address(FM1_DTSEC3,
|
fm_info_set_phy_address(FM1_DTSEC3,
|
||||||
CONFIG_SYS_SGMII1_PHY_ADDR);
|
CONFIG_SYS_SGMII1_PHY_ADDR);
|
||||||
break;
|
break;
|
||||||
|
|
@ -59,6 +61,20 @@ int board_eth_init(bd_t *bis)
|
||||||
fm_info_set_phy_address(FM1_DTSEC3,
|
fm_info_set_phy_address(FM1_DTSEC3,
|
||||||
CONFIG_SYS_SGMII1_PHY_ADDR);
|
CONFIG_SYS_SGMII1_PHY_ADDR);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_T1042D4RDB
|
||||||
|
case PHY_INTERFACE_MODE_SGMII:
|
||||||
|
/* T1042D4RDB supports SGMII on DTSEC1, DTSEC2
|
||||||
|
* & DTSEC3
|
||||||
|
*/
|
||||||
|
if (FM1_DTSEC1 == i)
|
||||||
|
phy_addr = CONFIG_SYS_SGMII1_PHY_ADDR;
|
||||||
|
if (FM1_DTSEC2 == i)
|
||||||
|
phy_addr = CONFIG_SYS_SGMII2_PHY_ADDR;
|
||||||
|
if (FM1_DTSEC3 == i)
|
||||||
|
phy_addr = CONFIG_SYS_SGMII3_PHY_ADDR;
|
||||||
|
fm_info_set_phy_address(i, phy_addr);
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
case PHY_INTERFACE_MODE_RGMII:
|
case PHY_INTERFACE_MODE_RGMII:
|
||||||
if (FM1_DTSEC4 == i)
|
if (FM1_DTSEC4 == i)
|
||||||
|
|
|
||||||
7
board/freescale/t104xrdb/t1040d4_rcw.cfg
Normal file
7
board/freescale/t104xrdb/t1040d4_rcw.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#PBL preamble and RCW header
|
||||||
|
aa55aa55 010e0100
|
||||||
|
# serdes protocol 0x66
|
||||||
|
0c18000e 0e000000 00000000 00000000
|
||||||
|
66000002 40000002 ec027000 01000000
|
||||||
|
00000000 00000000 00000000 00030810
|
||||||
|
00000000 0342580f 00000000 00000000
|
||||||
7
board/freescale/t104xrdb/t1042d4_rcw.cfg
Normal file
7
board/freescale/t104xrdb/t1042d4_rcw.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#PBL preamble and RCW header
|
||||||
|
aa55aa55 010e0100
|
||||||
|
# serdes protocol 0x86
|
||||||
|
0c18000e 0e000000 00000000 00000000
|
||||||
|
86000002 40000002 ec027000 01000000
|
||||||
|
00000000 00000000 00000000 00030810
|
||||||
|
00000000 0342500f 00000000 00000000
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
#Configure CPC1 as 256KB SRAM
|
#Configure CPC1 as 256KB SRAM
|
||||||
09010100 00000000
|
09010100 00000000
|
||||||
09010104 fffc0007
|
09010104 fffc0007
|
||||||
09010f00 08000000
|
09010f00 081e000d
|
||||||
09010000 80000000
|
09010000 80000000
|
||||||
#Configure LAW for CPC1
|
#Configure LAW for CPC1
|
||||||
09000cd0 00000000
|
09000cd0 00000000
|
||||||
|
|
|
||||||
|
|
@ -28,17 +28,18 @@ int checkboard(void)
|
||||||
struct cpu_type *cpu = gd->arch.cpu;
|
struct cpu_type *cpu = gd->arch.cpu;
|
||||||
u8 sw;
|
u8 sw;
|
||||||
|
|
||||||
|
#ifdef CONFIG_T104XD4RDB
|
||||||
|
printf("Board: %sD4RDB\n", cpu->name);
|
||||||
|
#else
|
||||||
printf("Board: %sRDB\n", cpu->name);
|
printf("Board: %sRDB\n", cpu->name);
|
||||||
|
#endif
|
||||||
printf("Board rev: 0x%02x CPLD ver: 0x%02x, ",
|
printf("Board rev: 0x%02x CPLD ver: 0x%02x, ",
|
||||||
CPLD_READ(hw_ver), CPLD_READ(sw_ver));
|
CPLD_READ(hw_ver), CPLD_READ(sw_ver));
|
||||||
|
|
||||||
sw = CPLD_READ(flash_ctl_status);
|
sw = CPLD_READ(flash_ctl_status);
|
||||||
sw = ((sw & CPLD_LBMAP_MASK) >> CPLD_LBMAP_SHIFT);
|
sw = ((sw & CPLD_LBMAP_MASK) >> CPLD_LBMAP_SHIFT);
|
||||||
|
|
||||||
if (sw <= 7)
|
printf("vBank: %d\n", sw);
|
||||||
printf("vBank: %d\n", sw);
|
|
||||||
else
|
|
||||||
printf("Unsupported Bank=%x\n", sw);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -91,6 +92,34 @@ int board_early_init_r(void)
|
||||||
|
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
|
ccsr_gur_t __iomem *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
|
||||||
|
u32 srds_s1;
|
||||||
|
|
||||||
|
srds_s1 = in_be32(&gur->rcwsr[4]) >> 24;
|
||||||
|
|
||||||
|
printf("SERDES Reference : 0x%X\n", srds_s1);
|
||||||
|
|
||||||
|
/* select SGMII*/
|
||||||
|
if (srds_s1 == 0x86)
|
||||||
|
CPLD_WRITE(misc_ctl_status, CPLD_READ(misc_ctl_status) |
|
||||||
|
MISC_CTL_SG_SEL);
|
||||||
|
|
||||||
|
/* select SGMII and Aurora*/
|
||||||
|
if (srds_s1 == 0x8E)
|
||||||
|
CPLD_WRITE(misc_ctl_status, CPLD_READ(misc_ctl_status) |
|
||||||
|
MISC_CTL_SG_SEL | MISC_CTL_AURORA_SEL);
|
||||||
|
|
||||||
|
#if defined(CONFIG_T1040D4RDB)
|
||||||
|
/* Mask all CPLD interrupt sources, except QSGMII interrupts */
|
||||||
|
if (CPLD_READ(sw_ver) < 0x03) {
|
||||||
|
debug("CPLD SW version 0x%02x doesn't support int_mask\n",
|
||||||
|
CPLD_READ(sw_ver));
|
||||||
|
} else {
|
||||||
|
CPLD_WRITE(int_mask, CPLD_INT_MASK_ALL &
|
||||||
|
~(CPLD_INT_MASK_QSGMII1 | CPLD_INT_MASK_QSGMII2));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,14 +47,8 @@ void cpld_set_altbank(void)
|
||||||
|
|
||||||
switch (curbank) {
|
switch (curbank) {
|
||||||
case CPLD_SELECT_BANK0:
|
case CPLD_SELECT_BANK0:
|
||||||
altbank = CPLD_SELECT_BANK4;
|
|
||||||
CPLD_WRITE(vbank, altbank);
|
|
||||||
override = CPLD_READ(software_on);
|
|
||||||
CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN);
|
|
||||||
CPLD_WRITE(sys_reset, CPLD_SYSTEM_RESET);
|
|
||||||
break;
|
|
||||||
case CPLD_SELECT_BANK4:
|
case CPLD_SELECT_BANK4:
|
||||||
altbank = CPLD_SELECT_BANK0;
|
altbank = CPLD_SELECT_BANK4;
|
||||||
CPLD_WRITE(vbank, altbank);
|
CPLD_WRITE(vbank, altbank);
|
||||||
override = CPLD_READ(software_on);
|
override = CPLD_READ(software_on);
|
||||||
CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN);
|
CPLD_WRITE(software_on, override | CPLD_BANK_SEL_EN);
|
||||||
|
|
|
||||||
5
configs/P3041DS_NAND_SECURE_BOOT_defconfig
Normal file
5
configs/P3041DS_NAND_SECURE_BOOT_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,NAND,SECURE_BOOT,SYS_TEXT_BASE=0xFFF40000"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_P3041DS=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/P5020DS_NAND_SECURE_BOOT_defconfig
Normal file
5
configs/P5020DS_NAND_SECURE_BOOT_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,NAND,SECURE_BOOT,SYS_TEXT_BASE=0xFFF40000"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_P5020DS=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/P5040DS_NAND_SECURE_BOOT_defconfig
Normal file
5
configs/P5040DS_NAND_SECURE_BOOT_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,NAND,SECURE_BOOT,SYS_TEXT_BASE=0xFFF40000"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_P5040DS=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1040D4RDB_NAND_defconfig
Normal file
6
configs/T1040D4RDB_NAND_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1040,T1040D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1040D4RDB_SDCARD_defconfig
Normal file
6
configs/T1040D4RDB_SDCARD_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1040,T1040D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,SDCARD,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/T1040D4RDB_SECURE_BOOT_defconfig
Normal file
5
configs/T1040D4RDB_SECURE_BOOT_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1040,T1040D4RDB,T104XD4RDB,SYS_FSL_DDR4,SECURE_BOOT"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1040D4RDB_SPIFLASH_defconfig
Normal file
6
configs/T1040D4RDB_SPIFLASH_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1040,T1040D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,SPIFLASH,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/T1040D4RDB_defconfig
Normal file
5
configs/T1040D4RDB_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1040,T1040D4RDB,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1042D4RDB_NAND_defconfig
Normal file
6
configs/T1042D4RDB_NAND_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1042D4RDB_SDCARD_defconfig
Normal file
6
configs/T1042D4RDB_SDCARD_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,SDCARD,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/T1042D4RDB_SECURE_BOOT_defconfig
Normal file
5
configs/T1042D4RDB_SECURE_BOOT_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042D4RDB,T104XD4RDB,SYS_FSL_DDR4,SECURE_BOOT"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
6
configs/T1042D4RDB_SPIFLASH_defconfig
Normal file
6
configs/T1042D4RDB_SPIFLASH_defconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042D4RDB,RAMBOOT_PBL,SPL_FSL_PBL,SPIFLASH,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
5
configs/T1042D4RDB_defconfig
Normal file
5
configs/T1042D4RDB_defconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042D4RDB,T104XD4RDB,SYS_FSL_DDR4"
|
||||||
|
CONFIG_PPC=y
|
||||||
|
CONFIG_MPC85xx=y
|
||||||
|
CONFIG_TARGET_T104XRDB=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
|
|
@ -119,7 +119,7 @@ B4860QDS Default Settings
|
||||||
Switch Settings
|
Switch Settings
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
SW1 OFF [0] OFF [1] OFF [1] OFF [0] OFF [1] OFF [0] OFF [1] OFF [1]
|
SW1 OFF [0] OFF [0] OFF [0] OFF [0] OFF [0] OFF [0] OFF [0] OFF [0]
|
||||||
SW2 ON ON ON ON ON ON OFF OFF
|
SW2 ON ON ON ON ON ON OFF OFF
|
||||||
SW3 OFF OFF OFF ON OFF OFF ON OFF
|
SW3 OFF OFF OFF ON OFF OFF ON OFF
|
||||||
SW5 OFF OFF OFF OFF OFF OFF ON ON
|
SW5 OFF OFF OFF OFF OFF OFF ON ON
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,22 @@
|
||||||
|
|
||||||
/* For secure boot flow, default environment used will be used */
|
/* For secure boot flow, default environment used will be used */
|
||||||
#if defined(CONFIG_SYS_RAMBOOT)
|
#if defined(CONFIG_SYS_RAMBOOT)
|
||||||
|
#ifdef CONFIG_BOOTSCRIPT_COPY_RAM
|
||||||
|
#define CONFIG_BS_COPY_ENV \
|
||||||
|
"setenv bs_hdr_ram " __stringify(CONFIG_BS_HDR_ADDR_RAM)";" \
|
||||||
|
"setenv bs_hdr_flash " __stringify(CONFIG_BS_HDR_ADDR_FLASH)";" \
|
||||||
|
"setenv bs_hdr_size " __stringify(CONFIG_BS_HDR_SIZE)";" \
|
||||||
|
"setenv bs_ram " __stringify(CONFIG_BS_ADDR_RAM)";" \
|
||||||
|
"setenv bs_flash " __stringify(CONFIG_BS_ADDR_FLASH)";" \
|
||||||
|
"setenv bs_size " __stringify(CONFIG_BS_SIZE)";"
|
||||||
|
|
||||||
|
#if defined(CONFIG_RAMBOOT_NAND)
|
||||||
|
#define CONFIG_BS_COPY_CMD \
|
||||||
|
"nand read $bs_hdr_ram $bs_hdr_flash $bs_hdr_size ;" \
|
||||||
|
"nand read $bs_ram $bs_flash $bs_size ;"
|
||||||
|
#endif /* CONFIG_RAMBOOT_NAND */
|
||||||
|
#endif /* CONFIG_BOOTSCRIPT_COPY_RAM */
|
||||||
|
|
||||||
#if defined(CONFIG_RAMBOOT_SPIFLASH)
|
#if defined(CONFIG_RAMBOOT_SPIFLASH)
|
||||||
#undef CONFIG_ENV_IS_IN_SPI_FLASH
|
#undef CONFIG_ENV_IS_IN_SPI_FLASH
|
||||||
#elif defined(CONFIG_RAMBOOT_NAND)
|
#elif defined(CONFIG_RAMBOOT_NAND)
|
||||||
|
|
@ -68,6 +84,17 @@
|
||||||
|
|
||||||
#define CONFIG_ENV_IS_NOWHERE
|
#define CONFIG_ENV_IS_NOWHERE
|
||||||
|
|
||||||
|
#ifndef CONFIG_BS_COPY_ENV
|
||||||
|
#define CONFIG_BS_COPY_ENV
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_BS_COPY_CMD
|
||||||
|
#define CONFIG_BS_COPY_CMD
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CONFIG_SECBOOT_CMD CONFIG_BS_COPY_ENV \
|
||||||
|
CONFIG_BS_COPY_CMD \
|
||||||
|
CONFIG_SECBOOT
|
||||||
/*
|
/*
|
||||||
* We don't want boot delay for secure boot flow
|
* We don't want boot delay for secure boot flow
|
||||||
* before autoboot starts
|
* before autoboot starts
|
||||||
|
|
@ -75,7 +102,7 @@
|
||||||
#undef CONFIG_BOOTDELAY
|
#undef CONFIG_BOOTDELAY
|
||||||
#define CONFIG_BOOTDELAY 0
|
#define CONFIG_BOOTDELAY 0
|
||||||
#undef CONFIG_BOOTCOMMAND
|
#undef CONFIG_BOOTCOMMAND
|
||||||
#define CONFIG_BOOTCOMMAND CONFIG_SECBOOT
|
#define CONFIG_BOOTCOMMAND CONFIG_SECBOOT_CMD
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CONFIG_ZERO_BOOTDELAY_CHECK should not be defined for
|
* CONFIG_ZERO_BOOTDELAY_CHECK should not be defined for
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,6 @@
|
||||||
#ifndef __T1024RDB_H
|
#ifndef __T1024RDB_H
|
||||||
#define __T1024RDB_H
|
#define __T1024RDB_H
|
||||||
|
|
||||||
#if defined(CONFIG_T1023RDB)
|
|
||||||
#ifdef CONFIG_SPL
|
|
||||||
#define CONFIG_SYS_NO_FLASH
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* High Level Configuration Options */
|
/* High Level Configuration Options */
|
||||||
#define CONFIG_SYS_GENERIC_BOARD
|
#define CONFIG_SYS_GENERIC_BOARD
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
|
|
@ -320,7 +314,7 @@ unsigned long get_board_ddr_clk(void);
|
||||||
#if defined(CONFIG_T1024RDB)
|
#if defined(CONFIG_T1024RDB)
|
||||||
#define CONFIG_SYS_NOR_CSOR CSOR_NAND_TRHZ_80
|
#define CONFIG_SYS_NOR_CSOR CSOR_NAND_TRHZ_80
|
||||||
#elif defined(CONFIG_T1023RDB)
|
#elif defined(CONFIG_T1023RDB)
|
||||||
#define CONFIG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
|
#define CONFIG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(0) | \
|
||||||
CSOR_NAND_TRHZ_80 | CSOR_NOR_ADM_SHFT_MODE_EN)
|
CSOR_NAND_TRHZ_80 | CSOR_NOR_ADM_SHFT_MODE_EN)
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \
|
#define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \
|
||||||
|
|
@ -395,7 +389,9 @@ unsigned long get_board_ddr_clk(void);
|
||||||
| CSOR_NAND_PB(64)) /*Pages Per Block = 64*/
|
| CSOR_NAND_PB(64)) /*Pages Per Block = 64*/
|
||||||
#define CONFIG_SYS_NAND_BLOCK_SIZE (512 * 1024)
|
#define CONFIG_SYS_NAND_BLOCK_SIZE (512 * 1024)
|
||||||
#elif defined(CONFIG_T1023RDB)
|
#elif defined(CONFIG_T1023RDB)
|
||||||
#define CONFIG_SYS_NAND_CSOR (CSOR_NAND_RAL_3 /* RAL 3Bytes */ \
|
#define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \
|
||||||
|
| CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \
|
||||||
|
| CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \
|
||||||
| CSOR_NAND_RAL_3 /* RAL 3Bytes */ \
|
| CSOR_NAND_RAL_3 /* RAL 3Bytes */ \
|
||||||
| CSOR_NAND_PGS_2K /* Page Size = 2K */ \
|
| CSOR_NAND_PGS_2K /* Page Size = 2K */ \
|
||||||
| CSOR_NAND_SPRZ_128 /* Spare size = 128 */ \
|
| CSOR_NAND_SPRZ_128 /* Spare size = 128 */ \
|
||||||
|
|
@ -557,9 +553,8 @@ unsigned long get_board_ddr_clk(void);
|
||||||
#define CONFIG_SYS_FSL_I2C_OFFSET 0x118000
|
#define CONFIG_SYS_FSL_I2C_OFFSET 0x118000
|
||||||
#define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100
|
#define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100
|
||||||
|
|
||||||
#define I2C_MUX_PCA_ADDR 0x77
|
#define I2C_PCA6408_BUS_NUM 1
|
||||||
#define I2C_MUX_PCA_ADDR_PRI 0x77 /* Primary Mux*/
|
#define I2C_PCA6408_ADDR 0x20
|
||||||
|
|
||||||
|
|
||||||
/* I2C bus multiplexer */
|
/* I2C bus multiplexer */
|
||||||
#define I2C_MUX_CH_DEFAULT 0x8
|
#define I2C_MUX_CH_DEFAULT 0x8
|
||||||
|
|
@ -757,8 +752,10 @@ unsigned long get_board_ddr_clk(void);
|
||||||
|
|
||||||
#define CONFIG_SYS_DPAA_FMAN
|
#define CONFIG_SYS_DPAA_FMAN
|
||||||
|
|
||||||
|
#ifdef CONFIG_T1024RDB
|
||||||
#define CONFIG_QE
|
#define CONFIG_QE
|
||||||
#define CONFIG_U_QE
|
#define CONFIG_U_QE
|
||||||
|
#endif
|
||||||
/* Default address of microcode for the Linux FMan driver */
|
/* Default address of microcode for the Linux FMan driver */
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,14 @@
|
||||||
#ifdef CONFIG_T1042RDB
|
#ifdef CONFIG_T1042RDB
|
||||||
#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t104xrdb/t1042_rcw.cfg
|
#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t104xrdb/t1042_rcw.cfg
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_T1040D4RDB
|
||||||
|
#define CONFIG_SYS_FSL_PBL_RCW \
|
||||||
|
$(SRCTREE)/board/freescale/t104xrdb/t1040d4_rcw.cfg
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_T1042D4RDB
|
||||||
|
#define CONFIG_SYS_FSL_PBL_RCW \
|
||||||
|
$(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
|
#define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
|
||||||
#define CONFIG_SPL_ENV_SUPPORT
|
#define CONFIG_SPL_ENV_SUPPORT
|
||||||
|
|
@ -220,7 +228,9 @@
|
||||||
#define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR)
|
#define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR)
|
||||||
|
|
||||||
#define CONFIG_DDR_SPD
|
#define CONFIG_DDR_SPD
|
||||||
|
#ifndef CONFIG_SYS_FSL_DDR4
|
||||||
#define CONFIG_SYS_FSL_DDR3
|
#define CONFIG_SYS_FSL_DDR3
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_SPD_BUS_NUM 0
|
#define CONFIG_SYS_SPD_BUS_NUM 0
|
||||||
#define SPD_EEPROM_ADDRESS 0x51
|
#define SPD_EEPROM_ADDRESS 0x51
|
||||||
|
|
@ -278,8 +288,23 @@
|
||||||
#define CPLD_LBMAP_DFLTBANK 0x40 /* BANK OR | BANK0 */
|
#define CPLD_LBMAP_DFLTBANK 0x40 /* BANK OR | BANK0 */
|
||||||
#define CPLD_LBMAP_RESET 0xFF
|
#define CPLD_LBMAP_RESET 0xFF
|
||||||
#define CPLD_LBMAP_SHIFT 0x03
|
#define CPLD_LBMAP_SHIFT 0x03
|
||||||
#ifdef CONFIG_T1042RDB_PI
|
|
||||||
|
#if defined(CONFIG_T1042RDB_PI)
|
||||||
#define CPLD_DIU_SEL_DFP 0x80
|
#define CPLD_DIU_SEL_DFP 0x80
|
||||||
|
#elif defined(CONFIG_T1042D4RDB)
|
||||||
|
#define CPLD_DIU_SEL_DFP 0xc0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_T1040D4RDB)
|
||||||
|
#define CPLD_INT_MASK_ALL 0xFF
|
||||||
|
#define CPLD_INT_MASK_THERM 0x80
|
||||||
|
#define CPLD_INT_MASK_DVI_DFP 0x40
|
||||||
|
#define CPLD_INT_MASK_QSGMII1 0x20
|
||||||
|
#define CPLD_INT_MASK_QSGMII2 0x10
|
||||||
|
#define CPLD_INT_MASK_SGMI1 0x08
|
||||||
|
#define CPLD_INT_MASK_SGMI2 0x04
|
||||||
|
#define CPLD_INT_MASK_TDMR1 0x02
|
||||||
|
#define CPLD_INT_MASK_TDMR2 0x01
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_CPLD_BASE 0xffdf0000
|
#define CONFIG_SYS_CPLD_BASE 0xffdf0000
|
||||||
|
|
@ -447,7 +472,7 @@
|
||||||
#define CONFIG_SYS_HUSH_PARSER
|
#define CONFIG_SYS_HUSH_PARSER
|
||||||
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
|
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
|
||||||
|
|
||||||
#ifdef CONFIG_T1042RDB_PI
|
#if defined(CONFIG_T1042RDB_PI) || defined(CONFIG_T1042D4RDB)
|
||||||
/* Video */
|
/* Video */
|
||||||
#define CONFIG_FSL_DIU_FB
|
#define CONFIG_FSL_DIU_FB
|
||||||
|
|
||||||
|
|
@ -492,11 +517,11 @@
|
||||||
|
|
||||||
/* I2C bus multiplexer */
|
/* I2C bus multiplexer */
|
||||||
#define I2C_MUX_PCA_ADDR 0x70
|
#define I2C_MUX_PCA_ADDR 0x70
|
||||||
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1042RDB)
|
#if defined(CONFIG_T104xRDB) || defined(CONFIG_T104XD4RDB)
|
||||||
#define I2C_MUX_CH_DEFAULT 0x8
|
#define I2C_MUX_CH_DEFAULT 0x8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_T1042RDB_PI
|
#if defined(CONFIG_T1042RDB_PI) || defined(CONFIG_T104XD4RDB)
|
||||||
/* LDI/DVI Encoder for display */
|
/* LDI/DVI Encoder for display */
|
||||||
#define CONFIG_SYS_I2C_LDI_ADDR 0x38
|
#define CONFIG_SYS_I2C_LDI_ADDR 0x38
|
||||||
#define CONFIG_SYS_I2C_DVI_ADDR 0x75
|
#define CONFIG_SYS_I2C_DVI_ADDR 0x75
|
||||||
|
|
@ -664,7 +689,7 @@
|
||||||
#define CONFIG_SYS_DPAA_FMAN
|
#define CONFIG_SYS_DPAA_FMAN
|
||||||
#define CONFIG_SYS_DPAA_PME
|
#define CONFIG_SYS_DPAA_PME
|
||||||
|
|
||||||
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1042RDB)
|
#if defined(CONFIG_T104xRDB) || defined(CONFIG_T104XD4RDB)
|
||||||
#define CONFIG_QE
|
#define CONFIG_QE
|
||||||
#define CONFIG_U_QE
|
#define CONFIG_U_QE
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -693,7 +718,7 @@
|
||||||
#define CONFIG_SYS_FMAN_FW_ADDR 0xEFF00000
|
#define CONFIG_SYS_FMAN_FW_ADDR 0xEFF00000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1042RDB)
|
#if defined(CONFIG_T104xRDB) || defined(CONFIG_T104XD4RDB)
|
||||||
#if defined(CONFIG_SPIFLASH)
|
#if defined(CONFIG_SPIFLASH)
|
||||||
#define CONFIG_SYS_QE_FW_ADDR 0x130000
|
#define CONFIG_SYS_QE_FW_ADDR 0x130000
|
||||||
#elif defined(CONFIG_SDCARD)
|
#elif defined(CONFIG_SDCARD)
|
||||||
|
|
@ -718,17 +743,32 @@
|
||||||
|
|
||||||
#ifdef CONFIG_FMAN_ENET
|
#ifdef CONFIG_FMAN_ENET
|
||||||
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1042RDB)
|
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1042RDB)
|
||||||
#define CONFIG_SYS_SGMII1_PHY_ADDR 0x03
|
#define CONFIG_SYS_SGMII1_PHY_ADDR 0x03
|
||||||
|
#elif defined(CONFIG_T1040D4RDB) || defined(CONFIG_T1042D4RDB)
|
||||||
|
#define CONFIG_SYS_SGMII1_PHY_ADDR 0x02
|
||||||
|
#define CONFIG_SYS_SGMII2_PHY_ADDR 0x03
|
||||||
|
#define CONFIG_SYS_SGMII3_PHY_ADDR 0x01
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_T104XD4RDB
|
||||||
|
#define CONFIG_SYS_RGMII1_PHY_ADDR 0x04
|
||||||
|
#define CONFIG_SYS_RGMII2_PHY_ADDR 0x05
|
||||||
|
#else
|
||||||
|
#define CONFIG_SYS_RGMII1_PHY_ADDR 0x01
|
||||||
|
#define CONFIG_SYS_RGMII2_PHY_ADDR 0x02
|
||||||
#endif
|
#endif
|
||||||
#define CONFIG_SYS_RGMII1_PHY_ADDR 0x01
|
|
||||||
#define CONFIG_SYS_RGMII2_PHY_ADDR 0x02
|
|
||||||
|
|
||||||
/* Enable VSC9953 L2 Switch driver on T1040 SoC */
|
/* Enable VSC9953 L2 Switch driver on T1040 SoC */
|
||||||
#ifdef CONFIG_T1040RDB
|
#if defined(CONFIG_T1040RDB) || defined(CONFIG_T1040D4RDB)
|
||||||
#define CONFIG_VSC9953
|
#define CONFIG_VSC9953
|
||||||
#define CONFIG_VSC9953_CMD
|
#define CONFIG_VSC9953_CMD
|
||||||
|
#ifdef CONFIG_T1040RDB
|
||||||
#define CONFIG_SYS_FM1_QSGMII11_PHY_ADDR 0x04
|
#define CONFIG_SYS_FM1_QSGMII11_PHY_ADDR 0x04
|
||||||
#define CONFIG_SYS_FM1_QSGMII21_PHY_ADDR 0x08
|
#define CONFIG_SYS_FM1_QSGMII21_PHY_ADDR 0x08
|
||||||
|
#else
|
||||||
|
#define CONFIG_SYS_FM1_QSGMII11_PHY_ADDR 0x08
|
||||||
|
#define CONFIG_SYS_FM1_QSGMII21_PHY_ADDR 0x0c
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_MII /* MII PHY management */
|
#define CONFIG_MII /* MII PHY management */
|
||||||
|
|
@ -836,6 +876,10 @@
|
||||||
#define FDTFILE "t1042rdb_pi/t1042rdb_pi.dtb"
|
#define FDTFILE "t1042rdb_pi/t1042rdb_pi.dtb"
|
||||||
#elif defined(CONFIG_T1042RDB)
|
#elif defined(CONFIG_T1042RDB)
|
||||||
#define FDTFILE "t1042rdb/t1042rdb.dtb"
|
#define FDTFILE "t1042rdb/t1042rdb.dtb"
|
||||||
|
#elif defined(CONFIG_T1040D4RDB)
|
||||||
|
#define FDTFILE "t1042rdb/t1040d4rdb.dtb"
|
||||||
|
#elif defined(CONFIG_T1042D4RDB)
|
||||||
|
#define FDTFILE "t1042rdb/t1042d4rdb.dtb"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FSL_DIU_FB
|
#ifdef CONFIG_FSL_DIU_FB
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,14 @@
|
||||||
#include "../board/freescale/common/ics307_clk.h"
|
#include "../board/freescale/common/ics307_clk.h"
|
||||||
|
|
||||||
#ifdef CONFIG_RAMBOOT_PBL
|
#ifdef CONFIG_RAMBOOT_PBL
|
||||||
|
#ifdef CONFIG_SECURE_BOOT
|
||||||
|
#define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE
|
||||||
|
#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
|
||||||
|
#ifdef CONFIG_NAND
|
||||||
|
#define CONFIG_RAMBOOT_NAND
|
||||||
|
#endif
|
||||||
|
#define CONFIG_BOOTSCRIPT_COPY_RAM
|
||||||
|
#else
|
||||||
#define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE
|
#define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE
|
||||||
#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
|
#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
|
||||||
#define CONFIG_SYS_FSL_PBL_PBI board/freescale/corenet_ds/pbi.cfg
|
#define CONFIG_SYS_FSL_PBL_PBI board/freescale/corenet_ds/pbi.cfg
|
||||||
|
|
@ -29,6 +37,7 @@
|
||||||
#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p5040ds.cfg
|
#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p5040ds.cfg
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
|
#ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
|
||||||
/* Set 1M boot space */
|
/* Set 1M boot space */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue