summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/am33xx
diff options
context:
space:
mode:
authorJoel A Fernandes <joelagnel@ti.com>2012-09-25 06:49:47 +0000
committerTom Rini <trini@ti.com>2012-10-23 08:33:17 -0700
commit391a741162861a887fd226e53048aad2daed62fd (patch)
tree6a648188d11ee97fc57e132a159aeb50e43e504a /arch/arm/cpu/armv7/am33xx
parent3f0be8ea9217311ec41156fd89e3e23a0308f3b2 (diff)
downloadu-boot-imx-391a741162861a887fd226e53048aad2daed62fd.zip
u-boot-imx-391a741162861a887fd226e53048aad2daed62fd.tar.gz
u-boot-imx-391a741162861a887fd226e53048aad2daed62fd.tar.bz2
am33xx: Enable DDR3 for DDR3 version of beaglebone
DDR3 support is tested and working with beaglebone hardware. Include a check for this board type and configure DDR3. The timings and other configuration match EVM SK. Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Acked-by: Jason Kridner <jdk@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx')
-rw-r--r--arch/arm/cpu/armv7/am33xx/board.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c
index 978b184..6de03fd 100644
--- a/arch/arm/cpu/armv7/am33xx/board.c
+++ b/arch/arm/cpu/armv7/am33xx/board.c
@@ -64,6 +64,11 @@ static inline int board_is_bone(void)
return !strncmp(header.name, "A335BONE", HDR_NAME_LEN);
}
+static inline int board_is_bone_lt(void)
+{
+ return !strncmp(header.name, "A335BNLT", HDR_NAME_LEN);
+}
+
static inline int board_is_evm_sk(void)
{
return !strncmp("A335X_SK", header.name, HDR_NAME_LEN);
@@ -124,7 +129,7 @@ static int read_eeprom(void)
static short inline board_memory_type(void)
{
/* The following boards are known to use DDR3. */
- if (board_is_evm_sk())
+ if (board_is_evm_sk() || board_is_bone_lt())
return EMIF_REG_SDRAM_TYPE_DDR3;
return EMIF_REG_SDRAM_TYPE_DDR2;
@@ -285,7 +290,7 @@ int board_eth_init(bd_t *bis)
return -1;
}
- if (board_is_bone()) {
+ if (board_is_bone() || board_is_bone_lt()) {
writel(MII_MODE_ENABLE, &cdev->miisel);
cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
PHY_INTERFACE_MODE_MII;