diff options
| author | Tom Rini <[email protected]> | 2016-09-21 14:50:18 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-09-21 14:50:18 -0400 |
| commit | 423620b9d47a704124f9fd624b4de4ed56c600d6 (patch) | |
| tree | 78fbffeb39460482565bd75fd32ad4ae1a9cd135 /drivers/core/syscon-uclass.c | |
| parent | f85fad024f208ceedb3ce0bb1819936e62a0983e (diff) | |
| parent | 31d36f748c52b22833aa946f6c406cc8fb2f1908 (diff) | |
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'drivers/core/syscon-uclass.c')
| -rw-r--r-- | drivers/core/syscon-uclass.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c index 01bd9683a7a..2148469abc1 100644 --- a/drivers/core/syscon-uclass.c +++ b/drivers/core/syscon-uclass.c @@ -95,3 +95,14 @@ UCLASS_DRIVER(syscon) = { .per_device_auto_alloc_size = sizeof(struct syscon_uc_info), .pre_probe = syscon_pre_probe, }; + +static const struct udevice_id generic_syscon_ids[] = { + { .compatible = "syscon" }, + { } +}; + +U_BOOT_DRIVER(generic_syscon) = { + .name = "syscon", + .id = UCLASS_SYSCON, + .of_match = generic_syscon_ids, +}; |
