uboot/drivers
Przemyslaw Marczak 5d387d0df9 sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator
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>
2015-05-14 19:58:34 -06:00
..
bios_emulator biosemu: Do not free vga_info->BIOSImage when it is 0xc0000 2015-04-29 18:51:49 -06:00
block ahci: mmio_base is a virtual address 2015-04-18 16:54:29 -04:00
bootcount
core dm: core: Add a function to bind a driver for a device tree node 2015-04-29 21:02:32 -06:00
cpu dm: Implement a CPU uclass 2015-04-29 21:02:33 -06:00
crypto
ddr arm: mvebu: db-mv784mp-gp: Fix ECC I2C address 2015-05-05 14:32:05 +02:00
demo common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
dfu dfu: nand: Verify writes 2015-03-30 23:24:38 -05:00
dma
fpga
gpio dm: gpio: Add error handling and a function to claim vector GPIOs 2015-05-13 09:24:06 -07:00
hwmon dtt: add ds620 support 2015-04-10 14:23:23 +02:00
i2c sandbox: i2c: search child emul dev and check its uclass id 2015-05-14 19:58:34 -06:00
input i8042: Add keyboard enable logic in kbd_reset() 2015-04-18 11:11:16 -06:00
memory
misc sandbox: cros_ec: Support EC_CMD_ENTERING_MODE emulation 2015-05-14 18:49:34 -06:00
mmc Merge git://git.denx.de/u-boot-mpc85xx 2015-05-05 14:57:23 -04:00
mtd sandbox: spi: Add newline to printf() in sandbox_sf_probe 2015-05-14 18:49:35 -06:00
net sandbox: eth: Add a function to skip ping timeouts 2015-05-05 20:58:18 -06:00
pci Merge git://git.denx.de/u-boot-mpc85xx 2015-05-05 14:57:23 -04:00
pcmcia
power sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
pwm
qe QE/DeepSleep: add QE deepsleep support for mpc85xx 2015-04-21 10:19:19 -07:00
rtc dm: rtc: sandbox: Enable real-time clock support 2015-05-05 20:58:40 -06:00
serial Revert "stm32f4: fix serial output" 2015-05-10 16:01:48 -04:00
soc
sound sandbox: exynos: Move CONFIG_SOUND_SANDBOX to Kconfig 2015-04-18 11:11:39 -06:00
spi dm: spi: Avoid setting the speed with every transfer 2015-05-05 20:58:18 -06:00
thermal
tpm tpm: Support using driver model with I2C 2015-05-14 18:49:33 -06:00
twserial
usb usb: ohci: Add support for interrupt queues 2015-05-14 18:49:35 -06:00
video tegra124: video: Add full link training for eDP 2015-05-13 09:24:12 -07:00
watchdog
Kconfig dm: Implement a CPU uclass 2015-04-29 21:02:33 -06:00
Makefile dm: Implement a CPU uclass 2015-04-29 21:02:33 -06:00