u-boot-brain/include/dm
Przemyslaw Marczak 754e71e850 dm: test: Add tests for device's uclass platform data
This test introduces new test structure type:dm_test_perdev_uc_pdata.
The structure consists of three int values only. For the test purposes,
three pattern values are defined by enum, starting with TEST_UC_PDATA_INTVAL1.

This commit adds two test cases for uclass platform data:
- Test: dm_test_autobind_uclass_pdata_alloc - this tests if:
  * uclass driver sets: .per_device_platdata_auto_alloc_size field
  * the devices's: dev->uclass_platdata is non-NULL

- Test: dm_test_autobind_uclass_pdata_valid - this tests:
  * if the devices's: dev->uclass_platdata is non-NULL
  * the structure of type 'dm_test_perdev_uc_pdata' allocated at address
    pointed by dev->uclass_platdata. Each structure field, should be equal
    to proper pattern data, starting from .intval1 == TEST_UC_PDATA_INTVAL1.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
2015-04-22 11:03:14 -06:00
..
platform_data dm: sh: serial: Add support driver model 2015-02-12 15:17:17 -07:00
device-internal.h dm: core: Convert driver_bind() to use const 2015-04-18 11:11:19 -06:00
device.h dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
lists.h dm: Add a function to bind a device by driver name 2014-11-22 10:16:47 +01:00
platdata.h dm: core: Allow a list of devices to be declared in one step 2014-10-22 10:36:54 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
test.h dm: test: Add tests for device's uclass platform data 2015-04-22 11:03:14 -06:00
uclass-id.h dm: usb: sandbox: Add an emulator for USB flash devices 2015-04-18 11:11:26 -06:00
uclass-internal.h dm: core: add internal functions for getting the device without probe 2015-04-22 11:03:14 -06:00
uclass.h dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
ut.h dm: i2c: Add tests for I2C 2014-12-11 13:18:43 -07:00
util.h dm: Disable dm_warn() in SPL 2014-11-21 08:13:17 +01:00