mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 16:39:35 +00:00
e8f339e0e8
This change adds new file to sandbox driver model test environment. The file is: test/dm/power.c, and it includes tests for PMIC framework, which includes PMIC uclass and REGULATOR uclass. All tests are based od Sandbox PMIC emulated device. Some test constants for this device are defined in the header: include/power/sandbox_pmic.h PMIC tests includes: - pmic get - tests, that pmic_get() returns the requested device - pmic I/O - tests I/O by writing and reading some values to PMIC's registers and then compares, that the write/read values are equal. The regulator tests includes: - Regulator get by devname/platname - Voltage set/get - Current set/get - Enable set/get - Mode set/get - Autoset - List autoset For the regulator 'get' test, the returned device pointers are compared, and their names are also compared to the requested one. Every other test, first sets the given attribute and next try to get it. The test pass, when the set/get values are equal. 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> |
||
---|---|---|
.. | ||
as3722.h | ||
battery.h | ||
fg_battery_cell_params.h | ||
ltc3676_pmic.h | ||
max8997_muic.h | ||
max8997_pmic.h | ||
max8998_pmic.h | ||
max17042_fg.h | ||
max77686_pmic.h | ||
max77693_fg.h | ||
max77693_muic.h | ||
max77693_pmic.h | ||
pfuze100_pmic.h | ||
pmic.h | ||
power_chrg.h | ||
regulator.h | ||
sandbox_pmic.h | ||
tps62362.h | ||
tps65090_pmic.h | ||
tps65217.h | ||
tps65218.h | ||
tps65910.h |