diff options
author | Tom Rini <trini@ti.com> | 2012-11-05 07:42:00 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-11-05 07:42:00 -0700 |
commit | 6acc7c3cbc05873d62118640cf964e9c9665804c (patch) | |
tree | 448da0bf67e0c4fa2ff033a67036ef96c7530697 /board/ti/am335x/board.c | |
parent | a6e8dcaf350fe8e780e29c57ececfece039725c7 (diff) | |
parent | 46d626d3926cf6b9f9c477782c5a0ee620a424cd (diff) | |
download | u-boot-imx-6acc7c3cbc05873d62118640cf964e9c9665804c.zip u-boot-imx-6acc7c3cbc05873d62118640cf964e9c9665804c.tar.gz u-boot-imx-6acc7c3cbc05873d62118640cf964e9c9665804c.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r-- | board/ti/am335x/board.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 1f0b1a7..b56a801 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. */ @@ -242,7 +247,24 @@ void s_init(void) /* UART softreset */ u32 regVal; +#ifdef CONFIG_SERIAL1 enable_uart0_pin_mux(); +#endif /* CONFIG_SERIAL1 */ +#ifdef CONFIG_SERIAL2 + enable_uart1_pin_mux(); +#endif /* CONFIG_SERIAL2 */ +#ifdef CONFIG_SERIAL3 + enable_uart2_pin_mux(); +#endif /* CONFIG_SERIAL3 */ +#ifdef CONFIG_SERIAL4 + enable_uart3_pin_mux(); +#endif /* CONFIG_SERIAL4 */ +#ifdef CONFIG_SERIAL5 + enable_uart4_pin_mux(); +#endif /* CONFIG_SERIAL5 */ +#ifdef CONFIG_SERIAL6 + enable_uart5_pin_mux(); +#endif /* CONFIG_SERIAL6 */ regVal = readl(&uart_base->uartsyscfg); regVal |= UART_RESET; @@ -381,7 +403,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; |