mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
dm: Add a test for of-platdata parent information
Add a simple test that we can obtain the correct parent for an I2C device. This requires updating the driver names to match the compatible strings, adding them to the devicetree and enabling a few options. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -92,8 +92,8 @@ static const struct udevice_id sandbox_rtc_ids[] = {
|
||||
{ }
|
||||
};
|
||||
|
||||
U_BOOT_DRIVER(rtc_sandbox) = {
|
||||
.name = "rtc-sandbox",
|
||||
U_BOOT_DRIVER(sandbox_rtc) = {
|
||||
.name = "sandbox_rtc",
|
||||
.id = UCLASS_RTC,
|
||||
.of_match = sandbox_rtc_ids,
|
||||
.ops = &sandbox_rtc_ops,
|
||||
|
||||
Reference in New Issue
Block a user