diff options
author | Keerthy <j-keerthy@ti.com> | 2017-08-21 12:50:54 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-11 16:19:40 -0400 |
commit | c247605510b9b27a73c6a166de8a46869b1b1222 (patch) | |
tree | c41c945e46abeafbfc4032910c840bafe589a88e /arch/arm/mach-omap2/omap5 | |
parent | c8c04eca30fa0d513885c6c07f3d2137b59ba121 (diff) | |
download | u-boot-c247605510b9b27a73c6a166de8a46869b1b1222.tar.gz u-boot-c247605510b9b27a73c6a166de8a46869b1b1222.tar.bz2 u-boot-c247605510b9b27a73c6a166de8a46869b1b1222.zip |
board: ti: dra76-evm: Add the pmic data
dra76-evm uses lp8736 and tps65917 pmic for powering on
various peripherals. Add data for these pmics and register
for dra76-evm.
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap5')
-rw-r--r-- | arch/arm/mach-omap2/omap5/hw_data.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap5/hw_data.c b/arch/arm/mach-omap2/omap5/hw_data.c index 19a8d10cef..7aaf379357 100644 --- a/arch/arm/mach-omap2/omap5/hw_data.c +++ b/arch/arm/mach-omap2/omap5/hw_data.c @@ -306,6 +306,22 @@ struct pmic_data tps659038 = { .gpio_en = 0, }; +/* The LP87565*/ +struct pmic_data lp87565 = { + .base_offset = LP873X_BUCK_BASE_VOLT_UV, + .step = 5000, /* 5 mV represented in uV */ + /* + * Offset codes 0 - 0x13 Invalid. + * Offset codes 0x14 0x17 give 10mV steps + * Offset codes 0x17 through 0x9D give 5mV steps + * So let us start with our operating range from .73V + */ + .start_code = 0x17, + .i2c_slave_addr = 0x60, + .pmic_bus_init = gpi2c_init, + .pmic_write = palmas_i2c_write_u8, +}; + /* The LP8732 and LP8733 are software-compatible, use common struct */ struct pmic_data lp8733 = { .base_offset = LP873X_BUCK_BASE_VOLT_UV, |