]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/power/palmas.c
serial: zynq: Use global baudrate instead of hardcoded one
[karo-tx-uboot.git] / drivers / power / palmas.c
index c7b0cbe8b598d8c750b62db10da91e04002bc901..6430fe004d57af8509538f6fec9713f0c8e3ee4a 100644 (file)
@@ -27,7 +27,7 @@ int palmas_mmc1_poweron_ldo(void)
 {
        u8 val = 0;
 
-#if defined(CONFIG_DRA7XX)
+#if defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)
        /*
         * Currently valid for the dra7xx_evm board:
         * Set TPS659038 LDO1 to 3.0 V
@@ -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.