mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 02:33:07 +00:00
3f6e4ec7c3
All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500 (Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540 although in practice only AB8500 and AB8505 are relevant since the platforms with AB9540 and AB8540 were cancelled and never used in production. In general, the AB8500 PMIC uses I2C as control interface, where the different register banks are represented as separate I2C devices. However, in practice AB8500 is always connected to a special I2C bus on the DB8500 SoC that is controlled by the power/reset/clock management unit (PRCMU) firmware. Add a simple driver that allows reading/writing registers of the AB8500 PMIC. The driver directly accesses registers from the PRCMU parent device (represented by syscon in U-Boot). Abstracting it further (e.g. with the i2c uclass) would not provide any advantage because the PRCMU I2C bus is always just connected to AB8500 and vice-versa. The ab8500.h header is mostly taken as-is from Linux (with some minor adjustments) to allow using similar code in both Linux and U-Boot. Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> |
||
---|---|---|
.. | ||
ab8500.c | ||
act8846.c | ||
as3722.c | ||
as3722_gpio.c | ||
bd71837.c | ||
da9063.c | ||
fan53555.c | ||
i2c_pmic_emul.c | ||
Kconfig | ||
lp873x.c | ||
lp87565.c | ||
Makefile | ||
max8997.c | ||
max8998.c | ||
max77686.c | ||
mc34708.c | ||
mp5416.c | ||
muic_max8997.c | ||
palmas.c | ||
pca9450.c | ||
pfuze100.c | ||
pm8916.c | ||
pmic-uclass.c | ||
pmic_hi6553.c | ||
pmic_ltc3676.c | ||
pmic_mc34vr500.c | ||
pmic_pca9450.c | ||
pmic_pfuze100.c | ||
pmic_pfuze3000.c | ||
pmic_tps62362.c | ||
pmic_tps65217.c | ||
pmic_tps65218.c | ||
pmic_tps65910.c | ||
pmic_tps65910_dm.c | ||
rk8xx.c | ||
rn5t567.c | ||
s2mps11.c | ||
s5m8767.c | ||
sandbox.c | ||
stpmic1.c | ||
tps65090.c | ||
tps65941.c |