sandbox: tests: Add tests for mc34708 PMIC device
authorLukasz Majewski <lukma@denx.de>
Tue, 15 May 2018 14:26:43 +0000 (16:26 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 18 May 2018 06:27:26 +0000 (08:27 +0200)
commit3edf9ebea047d9bb2403dcaea651784608255e0c
tree57b0e0cc61baa9d088bbbe90a88a9aafceb5c9fe
parente4aab0e169a3533350c49dcd8fe84b209658b63d
sandbox: tests: Add tests for mc34708 PMIC device

Following tests has been added for mc34708 device:

- get_test for mc34708 PMIC
- Check if proper number of registers is read
- Check if default (emulated via i2c device) value is properly read
- Check if value write/read operation is correct
- Perform tests to check if pmic_clrsetbits() is working correctly

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/pmic.c