]> Git Repo - J-u-boot.git/commit - test/dm/Makefile
sandbox: add ADC unit tests
authorPrzemyslaw Marczak <[email protected]>
Tue, 27 Oct 2015 12:08:07 +0000 (13:08 +0100)
committerMinkyu Kang <[email protected]>
Mon, 2 Nov 2015 01:38:00 +0000 (10:38 +0900)
commitc48cb7ebfb42d997a3f4317a412992f403c717aa
treef92cb87edf0c524e43ee31840a1931fcf727141c
parent08d6300a35bf2eb7915f0fa2fea9fa60b5075b71
sandbox: add ADC unit tests

This commit adds unit tests for ADC uclass's methods using sandbox ADC.

Testing proper ADC binding:
- dm_test_adc_bind()                    - device binding
- dm_test_adc_wrong_channel_selection() - checking wrong channel selection

Testing ADC supply operations:
- dm_test_adc_supply():
  - Vdd/Vss values validating
  - Vdd regulator updated value validating
  - Vdd regulator's auto enable state validating

Testing ADC operations results:
- dm_test_adc_single_channel_conversion() - single channel start/data
- dm_test_adc_single_channel_shot()       - single channel shot
- dm_test_adc_multi_channel_conversion()  - multi channel start/data
- dm_test_adc_multi_channel_shot()        - multi channel single shot

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Simon Glass <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
include/power/sandbox_pmic.h
test/dm/Makefile
test/dm/adc.c [new file with mode: 0644]
This page took 0.033796 seconds and 4 git commands to generate.