mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 14:14:32 +00:00
6fdbd2b093
TI J7200 EVM has lp876441 pmic that is similar to tps65941. Add support for same with existing driver with new compatible. Signed-off-by: Gowtham Tammana <g-tammana@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Link: https://lore.kernel.org/r/20210714205300.17424-2-g-tammana@ti.com
27 lines
787 B
C
27 lines
787 B
C
#define TPS659411 0x0
|
|
#define TPS659412 0x1
|
|
#define TPS659413 0x2
|
|
#define TPS659414 0x3
|
|
#define LP876441 0x4
|
|
|
|
/* I2C device address for pmic tps65941 */
|
|
#define TPS65941_I2C_ADDR (0x12 >> 1)
|
|
#define TPS65941_LDO_NUM 4
|
|
#define TPS65941_BUCK_NUM 5
|
|
|
|
/* Drivers name */
|
|
#define TPS65941_LDO_DRIVER "tps65941_ldo"
|
|
#define TPS65941_BUCK_DRIVER "tps65941_buck"
|
|
|
|
#define TPS65941_BUCK_VOLT_MASK 0xFF
|
|
#define TPS65941_BUCK_VOLT_MAX_HEX 0xFF
|
|
#define TPS65941_BUCK_VOLT_MAX 3340000
|
|
#define TPS65941_BUCK_MODE_MASK 0x1
|
|
|
|
#define TPS65941_LDO_VOLT_MASK 0x3E
|
|
#define TPS65941_LDO_VOLT_MAX_HEX 0x3A
|
|
#define TPS65941_LDO_VOLT_MIN_HEX 0x4
|
|
#define TPS65941_LDO_VOLT_MAX 3300000
|
|
#define TPS65941_LDO_MODE_MASK 0x1
|
|
#define TPS65941_LDO_BYPASS_EN 0x80
|
|
#define TP65941_BUCK_CONF_SLEW_MASK 0x7
|