]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: OMAP5: Power: Add new function to turn on SMPS10
authorDan Murphy <dmurphy@ti.com>
Mon, 26 Aug 2013 13:54:49 +0000 (08:54 -0500)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:39 +0000 (23:42 +0200)
Add new functionality to turn on SMPS10 regulator.
This supplies the VBUS to devices connected to the
USB host ports

Signed-off-by: Dan Murphy <dmurphy@ti.com>
drivers/power/palmas.c
include/palmas.h

index c7b0cbe8b598d8c750b62db10da91e04002bc901..cfbc9dc52208c3434f5e062acd9c14d11ecae334 100644 (file)
@@ -127,6 +127,21 @@ int twl603x_audio_power(u8 on)
 }
 #endif
 
+#ifdef CONFIG_PALMAS_USB_SS_PWR
+/**
+ * @brief palmas_enable_ss_ldo - Configure EVM board specific configurations
+ * for the USB Super speed SMPS10 regulator.
+ *
+ * @return 0
+ */
+int palmas_enable_ss_ldo(void)
+{
+       /* Enable smps10 regulator  */
+       return palmas_i2c_write_u8(TWL603X_CHIP_P1, SMPS10_CTRL,
+                               SMPS10_MODE_ACTIVE_D);
+}
+#endif
+
 /*
  * Enable/disable back-up battery (or super cap) charging on TWL6035/37.
  * Please use defined BB_xxx values.
index f74f08e2d86cfffd32905725d767a21474b242ac..eaf367086c437d3d468ebf2dd85fb22f0ae15144 100644 (file)
@@ -31,6 +31,7 @@
 /* LDOUSB control/voltage */
 #define LDOUSB_CTRL            0x64
 #define LDOUSB_VOLTAGE         0x65
+#define LDO_CTRL               0x6a
 
 /* Control of 32 kHz audio clock */
 #define CLK32KGAUDIO_CTRL      0xd5
 #define SMPS9_CTRL             0x38
 #define SMPS9_VOLTAGE          0x3b
 
+/* SMPS10_CTRL */
+#define SMPS10_CTRL            0x3c
+#define SMPS10_MODE_ACTIVE_D   0x0d
+
 /* Bit field definitions for SMPSx_CTRL */
 #define SMPS_MODE_ACT_AUTO     1
 #define SMPS_MODE_ACT_ECO      2
@@ -114,5 +119,6 @@ int palmas_mmc1_poweron_ldo(void);
 int twl603x_mmc1_set_ldo9(u8 vsel);
 int twl603x_audio_power(u8 on);
 int twl603x_enable_bb_charge(u8 bb_fields);
+int palmas_enable_ss_ldo(void);
 
 #endif /* PALMAS_H */