Set DCDC1 (DDR3) to 1.35V for Beaglebone Black.
authorVagrant Cascadian <vagrant@debian.org>
Tue, 30 Sep 2014 17:20:26 +0000 (10:20 -0700)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 7 Apr 2015 20:42:30 +0000 (20:42 +0000)
Based on Patch by Robert Nelson <robertcnelson@gmail.com>:

  https://github.com/RobertCNelson/Bootloader-Builder/raw/master/patches/v2014.10-rc2/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch

Gbp-Pq: Name 0001-Set-DCDC1-DDR3-to-1.35V-for-Beaglebone-Black.patch

board/ti/am335x/board.c
include/power/tps65217.h

index 0739e6021a21e71d7d0f5c840b793ce7fdf98fae..6b6dea05cee0912f1775ef6be14be184dfc65673 100644 (file)
@@ -300,6 +300,15 @@ void am33xx_spl_board_init(void)
                        return;
                }
 
+               /* Set DCDC1 (DDR3) to 1.35V for Beaglebone Black. */
+               if (board_is_bone_lt(&header)) {
+                       if (tps65217_voltage_update(TPS65217_DEFDCDC1,
+                                                   TPS65217_DCDC_VOLT_SEL_1350MV)) {
+                               puts("tps65217_voltage_update failure\n");
+                               return;
+                       }
+               }
+
                /*
                 * Set LDO3, LDO4 output voltage to 3.3V for Beaglebone.
                 * Set LDO3 to 1.8V and LDO4 to 3.3V for Beaglebone Black.
index 297c4cbd99ab2909cd11472b168623de8c2ee38e..008fd6d3d905cfee63d2a8e53e8f5360873a0ee2 100644 (file)
@@ -68,6 +68,7 @@ enum {
 #define TPS65217_DCDC_VOLT_SEL_1125MV          0x09
 #define TPS65217_DCDC_VOLT_SEL_1275MV          0x0F
 #define TPS65217_DCDC_VOLT_SEL_1325MV          0x11
+#define TPS65217_DCDC_VOLT_SEL_1350MV          0x12
 
 #define TPS65217_LDO_MASK                      0x1F
 #define TPS65217_LDO_VOLTAGE_OUT_1_8           0x06