Skip to contentSkip to conversation

am33xx: Enable DDR3 for DDR3 version of beaglebone

PATCH New Joel A Fernandes 3 participants 3 messages Sep 25, 2012 – Oct 17, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/cpu/armv7/am33xx/board.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/am33xx/board.c +7 -2
index ecc2671..13615cd 100644
@@ -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;
@@ -283,7 +288,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;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 am33xx: Enable DDR3 for DDR3 version of beaglebone

Quoted 5 lines · Joel A Fernandes

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.

Quoted 45 lines
---
 arch/arm/cpu/armv7/am33xx/board.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/am33xx/board.c +7 -3
index ecc2671..13615cd 100644
@@ -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;
@@ -283,7 +288,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;
--

1.7.9.5

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw

PATCH 1/1 am33xx: Enable DDR3 for DDR3 version of beaglebone

In reply to Joel A Fernandes
Quoted 5 lines · Joel A Fernandes

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.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121017/159fded4/attachment.pgp>