mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
dm: syscon: Provide a generic syscon driver
Provide a trivial syscon driver matching the generic "syscon" compatible string, allowing for simple system controllers to be used without a custom driver just as in Linux. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
ce70172159
commit
8291bc8747
@@ -95,3 +95,14 @@ UCLASS_DRIVER(syscon) = {
|
|||||||
.per_device_auto_alloc_size = sizeof(struct syscon_uc_info),
|
.per_device_auto_alloc_size = sizeof(struct syscon_uc_info),
|
||||||
.pre_probe = syscon_pre_probe,
|
.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,
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user