u-boot/include
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
..
andestech
asm-generic dm: gpio: Fix comment typo in GPIOD_IS_IN 2015-05-14 18:49:34 -06:00
bedbug
configs odroid: enable driver model pmic/regulator API and MAX77686 drivers 2015-05-14 19:58:34 -06:00
cramfs
dm dm: regulator: add implementation of driver model regulator uclass 2015-05-14 18:49:37 -06:00
dt-bindings sunxi: dts: Sync all dts files with upstream kernel 2015-05-04 16:51:54 +02:00
faraday
fsl-mc driver/ldpaa: Add support of WRIOP static data structure 2015-04-23 08:55:58 -07:00
jffs2
linux tegra124: video: Add full link training for eDP 2015-05-13 09:24:12 -07:00
lzma
mtd
pcmcia
power test: dm: add sandbox PMIC framework tests 2015-05-14 19:58:34 -06:00
samsung dfu: samsung: move call to set_dfu_alt_info() to dfu common code 2015-02-25 17:47:02 +01:00
synopsys
u-boot rsa: Use checksum algorithms from struct hash_algo 2015-01-29 17:09:59 -07:00
usb
zfs
.gitignore
_exports.h Make export interface support CONFIG_SYS_MALLOC_SIMPLE 2015-03-04 14:55:04 -05:00
aboot.h
ACEX1K.h
addr_map.h
aes.h
ahci.h ahci: mmio_base is a virtual address 2015-04-18 16:54:29 -04:00
ali512x.h
altera.h
ambapp.h
android_image.h
ansi.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atmel_hlcdc.h
atmel_lcd.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
atmel_lcdc.h
atmel_mci.h
autoboot.h
axp152.h sunxi: axp: Move axp gpio code to a separate axpi-gpio driver 2015-05-04 16:51:53 +02:00
axp209.h sunxi: axp: Move axp gpio code to a separate axpi-gpio driver 2015-05-04 16:51:53 +02:00
axp221.h sunxi: axp: Move axp gpio code to a separate axpi-gpio driver 2015-05-04 16:51:53 +02:00
bcd.h dm: Remove unnecessary types in bcd.h 2015-05-05 20:58:20 -06:00
bios_emul.h
bitfield.h
bmp_layout.h
bootcount.h
bootm.h bootm: Export bootm_decomp_image() 2015-01-14 11:35:43 -05:00
bootretry.h
bootstage.h bootstage: Add IDs for SPI flash reading and decompression 2015-05-14 18:49:33 -06:00
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
cli.h
cli_hush.h
clk.h
cmd_spl.h
command.h
common.h Move display_options functions to their own header 2015-04-29 21:02:33 -06:00
common_timing_params.h
commproc.h
compiler.h
config_cmd_all.h
config_cmd_default.h config_cmd_default.h: Add 'env exists' command 2015-03-25 12:15:18 -04:00
config_defaults.h dm: Drop unused driver model config_defaults 2015-02-12 15:17:28 -07:00
config_distro_bootcmd.h config_distro_bootcmd.h: Add shared block definition for the host interface 2015-04-19 14:45:58 -06:00
config_distro_defaults.h config: Add default client arch defines for intel architectures 2015-04-19 14:45:58 -06:00
config_fallbacks.h
config_fsl_secboot.h Add bootscript support to esbc_validate. 2015-04-21 10:19:19 -07:00
config_phylib_all_drivers.h
config_uncmd_spl.h dm: core: Allow sequence alias support to be removed for SPL 2015-04-23 09:05:51 -06:00
cortina.h
cpsw.h
cpu.h dm: Implement a CPU uclass 2015-04-29 21:02:33 -06:00
crc.h
cros_ec.h cros_ec: Remove unused cros_ec_board_init() function 2015-04-18 11:11:16 -06:00
cros_ec_message.h
dataflash.h
ddr_spd.h
debug_uart.h serial: Support an early UART for debugging 2015-02-19 06:20:25 -07:00
dfu.h dfu: samsung: move call to set_dfu_alt_info() to dfu common code 2015-02-25 17:47:02 +01:00
dialog_pmic.h
display_options.h Add print_freq() to display frequencies nicely 2015-04-29 21:02:33 -06:00
displayport.h dm: video: Add a uclass for display port 2015-05-13 09:24:10 -07:00
div64.h
dm-demo.h dm: demo: Add a simple GPIO demonstration 2015-01-29 17:09:51 -07:00
dm.h
dm9000.h
dp83848.h
ds1722.h
ds4510.h
dtt.h dtt: add ds620 support 2015-04-10 14:23:23 +02:00
dwc3-omap-uboot.h usb: dwc3: dwc3-omap: add interrupt status API to check for interrupts 2015-04-14 05:48:10 +02:00
dwc3-uboot.h dwc3: core: added an API to invoke irq handlers 2015-04-14 05:48:10 +02:00
dwmmc.h mmc: exynos_dw_mmc: use the exynos specific data structure 2015-02-23 19:39:51 +02:00
e500.h mmc: fsl_esdhc: Add peripheral clock support 2015-05-04 09:25:39 -07:00
ec_commands.h sandbox: cros_ec: Support EC_CMD_ENTERING_MODE emulation 2015-05-14 18:49:34 -06:00
edid.h edid: Add a function to read detailed monitor timings 2015-05-13 09:24:10 -07:00
elf.h
env_attr.h
env_callback.h
env_default.h
env_flags.h
environment.h
errno.h
exports.h Make export interface support CONFIG_SYS_MALLOC_SIMPLE 2015-03-04 14:55:04 -05:00
ext4fs.h
ext_common.h
exynos_lcd.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
fat.h
fb_mmc.h usb: gadget: fastboot: Add fastboot erase 2015-02-25 17:47:02 +01:00
fdt.h
fdt_simplefb.h lcd: dt: extract simplefb support 2015-02-10 13:31:26 +01:00
fdt_support.h fdt: add new fdt_fixup_display function to configure display 2015-04-22 14:39:06 +02:00
fdtdec.h tegra: video: Support serial output resource (SOR) on tegra124 2015-05-13 09:24:11 -07:00
fis.h
flash.h ARMv7M: Add STM32F4 support 2015-04-22 12:14:55 -04:00
fm_eth.h
fpga.h fpga: Export fpga_get_desc for SPL 2015-01-21 10:25:02 +01:00
fs.h fs: Add command to retrieve the filesystem type 2015-01-29 13:36:54 -05:00
fsl_dcu_fb.h
fsl_ddr.h drivers/ddr/fsl: Update DDR driver for DDR4 2015-04-23 08:55:53 -07:00
fsl_ddr_dimm_params.h driver/ddr/fsl: Add support for multiple DDR clocks 2015-02-24 13:09:18 -08:00
fsl_ddr_sdram.h armv8/ls2085aqds: Add support of LS2085AQDS platform 2015-04-23 08:55:58 -07:00
fsl_ddrc_version.h
fsl_debug_server.h armv8/fsl-lsch3: Add Freescale Debug Server driver 2015-04-21 10:26:29 -07:00
fsl_diu_fb.h
fsl_dspi.h dm: spi: Convert Freescale DSPI driver to driver model 2015-04-18 11:11:18 -06:00
fsl_esdhc.h mmc: fsl_esdhc: Add peripheral clock support 2015-05-04 09:25:39 -07:00
fsl_ifc.h driver/ifc: Add 64KB page support 2015-04-23 16:46:50 -07:00
fsl_immap.h
fsl_mdio.h
fsl_memac.h net/memac_phy: reuse driver for little endian SoCs 2015-04-23 08:55:57 -07:00
fsl_pmic.h
fsl_sec.h fsl_sec.h: Fix thinko 2015-03-05 08:56:39 -05:00
fsl_sec_mon.h fsl_sec_mon: Add driver for Security Monitor block of Freescale 2015-03-05 12:04:59 -08:00
fsl_secboot_err.h SECURE BOOT: Add command for validation of images 2015-03-05 12:04:59 -08:00
fsl_sfp.h fsl_sfp : Move ccsr_sfp_regs definition to common include 2015-03-05 12:04:59 -08:00
fsl_usb.h drivers: usb: fsl: Workaround for Erratum A004477 2015-05-04 09:23:50 -07:00
fsl_validate.h SECURE BOOT: Add command for validation of images 2015-03-05 12:04:59 -08:00
fuse.h
g_dnl.h
gdsys_fpga.h
gt64120.h
hash.h Use hash.c in mkimage 2015-01-29 17:09:59 -07:00
hw_sha.h crypto/fsl - Add progressive hashing support using hardware acceleration. 2015-02-25 13:20:02 -08:00
hwconfig.h
i2c.h dm: i2c: Add a function to find out the chip offset length 2015-05-14 18:49:33 -06:00
i2c_eeprom.h
i2s.h
i8042.h
ide.h
image.h Fix musl build 2015-05-08 17:24:17 -04:00
imx_thermal.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
lcd_console.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
lcdvideo.h
ld9040.h
led-display.h
libata.h
libfdt.h
libfdt_env.h
libtizen.h
linker_lists.h linker_lists: Add a function to access a linker list entry 2015-04-18 11:11:18 -06:00
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h
malloc.h Move initf_malloc() to a common place 2015-04-23 09:05:53 -06:00
mapmem.h common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h mc34704: Add the definition of ONOFFA bit 2015-03-02 09:57:04 +01:00
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h include: Add header file with MIPI DSI constants from linux 3.18 2015-01-22 12:34:56 +01:00
mk48t59.h
mmc.h mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
mpc5xx.h
mpc5xxx.h
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h powerpc/mpc85xx: Don't relocate exception vectors 2015-04-20 10:15:29 -07:00
mpc86xx.h
mpc106.h
mpc823_lcd.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
mpc8260.h
mpc8260_irq.h
msc01.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h gpio: mvmfp: support newer MFP bit definitions 2015-04-23 13:59:18 -04:00
nand.h nand: yaffs: Remove the "nand write.yaffs" command 2015-03-30 23:24:39 -05:00
net.h dm: net: Adjust PHY interface to work with CONFIG_DM_ETH 2015-04-18 11:11:36 -06:00
netdev.h sunxi: emac: Remove non driver-model code 2015-05-04 16:51:54 +02:00
nomadik.h
ns16550.h
ns87308.h
onenand_uboot.h
os.h dm: sandbox: Add os_localtime() to obtain the system time 2015-05-05 20:58:20 -06:00
palmas.h
parade.h
part.h
part_efi.h
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pci.h dm: sandbox: pci: Add a PCI emulation uclass 2015-04-16 19:27:43 -06:00
pci_gt64120.h
pci_ids.h x86: pci: Add PCI IDs for lynxpoint 2015-04-16 19:27:40 -06:00
pci_msc01.h
pci_rom.h x86: video: Allow video ROM execution to fall back to the other method 2015-02-05 22:16:43 -07:00
pcmcia.h
phy.h net/phy: fixup for get_phy_id 2015-04-20 17:57:13 -05:00
phys2bus.h Create API to map between CPU physical and bus addresses 2015-04-14 05:47:59 +02:00
physmem.h
post.h
ppc_asm.tmpl powerpc/mpc85xx: Don't relocate exception vectors 2015-04-20 10:15:29 -07:00
ppc_defs.h
ps2mult.h
pwm.h
pxa_lcd.h common/lcd_console: introduce display/framebuffer rotation 2015-04-18 17:40:37 +02:00
radeon.h
reiserfs.h
rtc.h dm: rtc: Add a uclass for real-time clocks 2015-05-05 20:58:39 -06:00
rtc_def.h dm: rtc: Split structure definition into its own file 2015-05-05 20:58:20 -06:00
s6e63d6.h
s_record.h
SA-1100.h
sandboxblockdev.h
sandboxfs.h
sata.h
scf0403_lcd.h
scsi.h
sdhci.h dm: mmc: Remove use of fdtdec GPIO support 2015-01-29 17:09:52 -07:00
search.h
sed156x.h
sed13806.h
serial.h ARM: remove cm4008 and cm41xx board support 2015-02-24 17:07:11 -05:00
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
sm501.h
smsc_lpc47m.h x86: Set serial port IRQ for SMSC LPC47M 2015-04-29 18:51:48 -06:00
sound.h
sparse_defs.h
sparse_format.h
spartan2.h fpga: xilinx: spartan2: Setup NULL fpga_op without driver 2015-01-21 10:25:02 +01:00
spartan3.h fpga: xilinx: spartan3: Setup NULL fpga_op without driver 2015-01-21 10:25:02 +01:00
spd.h
spd_sdram.h
spi.h dm: spi: Correct the comment on spi_get_ops() 2015-05-05 20:58:19 -06:00
spi_flash.h dm: sf: Save flash flags to struct spi_flash 2015-04-28 13:29:54 +05:30
spl.h
splash.h Merge branch 'master' of git://git.denx.de/u-boot-video 2015-02-10 10:41:54 -05:00
status_led.h cmd_led: Extend led command to support blinking and more leds 2015-04-23 09:43:08 -04:00
stdio_dev.h stdio: extend "name" to 32 symbols 2015-03-05 20:50:29 -05:00
stdlib.h
stratixII.h
sx151x.h
sym53c8xx.h
systemace.h
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h usb: dwc3: TI PHY: PHY driver for dwc3 in TI platforms 2015-04-14 05:48:10 +02:00
timestamp.h
tis.h
tmu.h
tpm.h
tps6586x.h
trace.h
tsec.h
tsi108.h
tsi148.h
twl4030.h
twl6030.h
tws.h
ubi_uboot.h
universe.h
usb.h usb: add device connection/disconnection detection 2015-05-14 18:49:33 -06:00
usb_cdc_acm.h
usb_defs.h dm: usb: Tidy up pipe value decoding 2015-04-18 11:11:29 -06:00
usb_ether.h net: Add ethernet FCS length macro in net.h 2015-03-24 21:22:37 -06:00
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h bios_emulator: Add some VESA interface debugging 2015-01-23 17:24:16 -07:00
version.h
video.h video, lg4573: add support for the lg4573 display 2015-04-20 09:47:28 +02:00
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
virtex2.h fpga: xilinx: virtex2: Fix macro indentation 2015-01-21 10:25:03 +01:00
vsc7385.h
vsc9953.h net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP 2015-01-16 09:32:38 -08:00
vsprintf.h dm: Add a panic_str() function to reduce code size 2015-04-23 09:05:52 -06:00
vxworks.h
w83c553f.h
watchdog.h
xilinx.h
xyzModem.h
zfs_common.h
zynqpl.h fpga: zynqpl: Add support for zc7035 2015-01-21 10:25:53 +01:00