summaryrefslogtreecommitdiff
path: root/board/ti/am335x/board.c
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd.eu>2012-11-02 03:35:59 +0000
committerTom Rini <trini@ti.com>2012-11-02 10:04:04 -0700
commita956bdcb3ff759f753e3f0c5e40e58f4c3056e22 (patch)
tree0b88c7c065b69d1f8f6705a7a96479c96be2b3fb /board/ti/am335x/board.c
parent57f588be60eac8135cdfb366237fbf6e6dc2d316 (diff)
downloadu-boot-imx-a956bdcb3ff759f753e3f0c5e40e58f4c3056e22.zip
u-boot-imx-a956bdcb3ff759f753e3f0c5e40e58f4c3056e22.tar.gz
u-boot-imx-a956bdcb3ff759f753e3f0c5e40e58f4c3056e22.tar.bz2
am335x: add initial AM335x IDK board support
This patch extends the am335x_evm board for the AM335x IDK. The IDK board uses MII for the ethernet phy (same as Beaglebone board) and MMC0 for storage (but without card detect line). The IDK uses UART3 for console. So u-boot must be build with CONFIG_SERIAL4 and CONFIG_CONS_INDEX=4 or for the am335x_evm_uart3 board configuration as introduced by Andrew Bradfords recent patch series "am33xx: Enable UART {1,2,3,4,5}...". When using the IDK with console on UART0, those patches are not required. In this case the board slightly needs to be modified. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r--board/ti/am335x/board.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 013ad88..e5ad76e 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -68,6 +68,11 @@ static inline int board_is_evm_sk(void)
return !strncmp("A335X_SK", header.name, HDR_NAME_LEN);
}
+static inline int board_is_idk(void)
+{
+ return !strncmp(header.config, "SKU#02", 6);
+}
+
/*
* Read header information from EEPROM into global structure.
*/
@@ -378,7 +383,7 @@ int board_eth_init(bd_t *bis)
return -1;
}
- if (board_is_bone() || board_is_bone_lt()) {
+ if (board_is_bone() || board_is_bone_lt() || board_is_idk()) {
writel(MII_MODE_ENABLE, &cdev->miisel);
cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
PHY_INTERFACE_MODE_MII;