]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/twl4030.h
fs: rename fsload command to load
[karo-tx-uboot.git] / include / twl4030.h
index feaec47b36afd512d132bfe68dce84a026d671e5..9cd32ab45a15dcc61ce537bf3316fd45dabd2b81 100644 (file)
 #define TWL4030_PM_RECEIVER_MAINREF_TYPE               0xF0
 #define TWL4030_PM_RECEIVER_MAINREF_REMAP              0xF1
 
+/* Voltage Selection in PM Receiver Module */
+#define TWL4030_PM_RECEIVER_VAUX2_VSEL_18              0x05
+#define TWL4030_PM_RECEIVER_VAUX3_VSEL_28              0x03
+#define TWL4030_PM_RECEIVER_VPLL2_VSEL_18              0x05
+#define TWL4030_PM_RECEIVER_VDAC_VSEL_18               0x03
+#define TWL4030_PM_RECEIVER_VMMC1_VSEL_30              0x02
+#define TWL4030_PM_RECEIVER_VMMC1_VSEL_32              0x03
+
+/* Device Selection in PM Receiver Module */
+#define TWL4030_PM_RECEIVER_DEV_GRP_P1                 0x20
+#define TWL4030_PM_RECEIVER_DEV_GRP_ALL                        0xE0
+
 /* LED */
 #define TWL4030_LED_LEDEN                              0xEE
+#define TWL4030_LED_LEDEN_LEDAON                       (1 << 0)
+#define TWL4030_LED_LEDEN_LEDBON                       (1 << 1)
+#define TWL4030_LED_LEDEN_LEDAPWM                      (1 << 4)
+#define TWL4030_LED_LEDEN_LEDBPWM                      (1 << 5)
 
 /* Keypad */
 #define TWL4030_KEYPAD_KEYP_CTRL_REG                   0xD2
@@ -496,6 +512,9 @@ static inline int twl4030_i2c_read_u8(u8 chip_no, u8 *val, u8 reg)
 
 /* For hardware resetting */
 void twl4030_power_reset_init(void);
+/* For setting device group and voltage */
+void twl4030_pmrecv_vsel_cfg(u8 vsel_reg, u8 vsel_val,
+                            u8 dev_grp, u8 dev_grp_sel);
 /* For initializing power device */
 void twl4030_power_init(void);
 /* For initializing mmc power */
@@ -504,7 +523,7 @@ void twl4030_power_mmc_init(void);
 /*
  * LED
  */
-void twl4030_led_init(void);
+void twl4030_led_init(unsigned char ledon_mask);
 
 /*
  * USB