mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
5d387d0df9
This commit adds emulation of sandbox PMIC device, which includes: - PMIC I2C emulation driver - PMIC I/O driver (UCLASS_PMIC) - PMIC regulator driver (UCLASS_REGULATOR) The sandbox PMIC has 12 significant registers and 4 as padding to 16 bytes, which allows using 'i2c md' command with the default count (16). The sandbox PMIC provides regulators: - 2x BUCK - 2x LDO Each, with adjustable output: - Enable state - Voltage - Current limit (LDO1/BUCK1 only) - Operation mode (different for BUCK and LDO) Each attribute has it's own register, beside the enable state, which depends on operation mode. The header file: sandbox_pmic.h includes PMIC's default register values, which are set on i2c pmic emul driver's probe() method. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Tested on sandbox: Tested-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
i2c_pmic_emul.c | ||
Kconfig | ||
Makefile | ||
max77686.c | ||
muic_max8997.c | ||
pmic-uclass.c | ||
pmic_ltc3676.c | ||
pmic_max8997.c | ||
pmic_max8998.c | ||
pmic_max77686.c | ||
pmic_pfuze100.c | ||
pmic_tps62362.c | ||
pmic_tps65090.c | ||
pmic_tps65090_ec.c | ||
pmic_tps65217.c | ||
pmic_tps65218.c | ||
pmic_tps65910.c | ||
sandbox.c |