u-boot/include/power
Przemyslaw Marczak e8f339e0e8 test: dm: add sandbox PMIC framework tests
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>
2015-05-14 19:58:34 -06:00
..
as3722.h power: Export register access functions from as3722 2015-05-13 09:24:07 -07:00
battery.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fg_battery_cell_params.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ltc3676_pmic.h power: Add support for LTC3676 PMIC 2014-05-09 14:38:23 +02:00
max8997_muic.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
max8997_pmic.h power: Add PMIC_ prefix to CHARGER_EN/DISABLE 2014-05-28 10:58:18 +09:00
max8998_pmic.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
max17042_fg.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
max77686_pmic.h dm: regulator: add max77686 regulator driver 2015-05-14 18:49:38 -06:00
max77693_fg.h drivers:power:max77693: add support for new multi function pmic max77693 2013-09-25 10:52:27 +09:00
max77693_muic.h drivers:power:max77693: add support for new multi function pmic max77693 2013-09-25 10:52:27 +09:00
max77693_pmic.h power: Add PMIC_ prefix to CHARGER_EN/DISABLE 2014-05-28 10:58:18 +09:00
pfuze100_pmic.h power: pfuze100: fix LDO_EN bit value 2015-04-22 14:41:08 +02:00
pmic.h dm: pmic: code cleanup of PMIC uclass driver 2015-05-14 19:58:34 -06:00
power_chrg.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
regulator.h dm: regulator: uclass driver code cleanup 2015-05-14 19:58:34 -06:00
sandbox_pmic.h test: dm: add sandbox PMIC framework tests 2015-05-14 19:58:34 -06:00
tps62362.h pmic: add tps62362 simple wrapper code 2015-01-13 15:26:10 -05:00
tps65090_pmic.h power: Add support for TPS65090 PMU chip. 2014-05-28 10:58:19 +09:00
tps65217.h board/BuR/common: Take usage of am335x LCD-Display 2015-03-05 20:13:16 -05:00
tps65218.h power: tps65218: define all valid VDD_MPU voltages 2015-01-13 11:53:39 -05:00
tps65910.h drivers/power/pmic: Add tps65910 driver 2013-09-20 11:01:26 -04:00