diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-05-09 13:15:42 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-05-28 17:35:39 +0200 |
commit | 66ca09fc41040c9a74a3ca7d9455542467ec7e3e (patch) | |
tree | 54a5129a758fbc858119ffbf04004300030ea952 /include | |
parent | 186feb0b4d92b1201694f43fe605fdb305523893 (diff) | |
download | u-boot-imx-66ca09fc41040c9a74a3ca7d9455542467ec7e3e.zip u-boot-imx-66ca09fc41040c9a74a3ca7d9455542467ec7e3e.tar.gz u-boot-imx-66ca09fc41040c9a74a3ca7d9455542467ec7e3e.tar.bz2 |
mx6sabred: Add PFUZE100 PMIC support
mx6sabresd boards have a PFUZE100 PMIC connected to I2C2 bus.
Add support for it
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6sabresd.h | 12 | ||||
-rw-r--r-- | include/power/pfuze100_pmic.h | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h index 0fa6573..e666ebb 100644 --- a/include/configs/mx6sabresd.h +++ b/include/configs/mx6sabresd.h @@ -59,4 +59,16 @@ #define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(3, 19) #endif +/* I2C Configs */ +#define CONFIG_CMD_I2C +#define CONFIG_SYS_I2C +#define CONFIG_SYS_I2C_MXC +#define CONFIG_SYS_I2C_SPEED 100000 + +/* PMIC */ +#define CONFIG_POWER +#define CONFIG_POWER_I2C +#define CONFIG_POWER_PFUZE100 +#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 + #endif /* __MX6QSABRESD_CONFIG_H */ diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h index 444aba6..0002f1e 100644 --- a/include/power/pfuze100_pmic.h +++ b/include/power/pfuze100_pmic.h @@ -15,7 +15,11 @@ enum { PFUZE100_FABID = 0x04, PFUZE100_SW1ABVOL = 0x20, + PFUZE100_SW1ABSTBY = 0x21, + PUZE_100_SW1ABCONF = 0x24, PFUZE100_SW1CVOL = 0x2e, + PFUZE100_SW1CSTBY = 0x2f, + PFUZE100_SW1CCONF = 0x32, PFUZE100_SW2VOL = 0x35, PFUZE100_SW3AVOL = 0x3c, PFUZE100_SW3BVOL = 0x43, |