diff options
author | Sergiu Moga <sergiu.moga@microchip.com> | 2023-01-04 16:03:18 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2023-01-05 10:06:35 +0200 |
commit | 61040097a9d1c8022bae7936c52b729ff1adb163 (patch) | |
tree | 79ba79f0da31d918405bda66d05050646b5f2b47 /drivers/sysreset | |
parent | 11c037ab920c0cdd1d9c8316a08c939b4253aefe (diff) | |
download | u-boot-61040097a9d1c8022bae7936c52b729ff1adb163.tar.gz |
reset: at91: Add reset driver for basic assert/deassert operations
Add support for at91 reset controller's basic assert/deassert
operations. Since this driver conflicts with the
SYSRESET driver because they both bind to the same RSTC node,
implement a custom bind hook that would manually bind the
sysreset driver, if enabled, to the same RSTC DT node.
Furthermore, delete the no longer needed compatibles from the
SYSRESET driver and rename it to make sure than any possible
conflicts are avoided.
Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Tested-by: Mihai Sain <mihai.sain@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Diffstat (limited to 'drivers/sysreset')
-rw-r--r-- | drivers/sysreset/sysreset_at91.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/sysreset/sysreset_at91.c b/drivers/sysreset/sysreset_at91.c index 6119a29927f..fc85f31ebf0 100644 --- a/drivers/sysreset/sysreset_at91.c +++ b/drivers/sysreset/sysreset_at91.c @@ -56,17 +56,9 @@ static struct sysreset_ops at91_sysreset = { .request = at91_sysreset_request, }; -static const struct udevice_id a91_sysreset_ids[] = { - { .compatible = "atmel,sama5d3-rstc" }, - { .compatible = "microchip,sam9x60-rstc" }, - { .compatible = "microchip,sama7g5-rstc" }, - { } -}; - U_BOOT_DRIVER(sysreset_at91) = { .id = UCLASS_SYSRESET, - .name = "at91_reset", + .name = "at91_sysreset", .ops = &at91_sysreset, .probe = at91_sysreset_probe, - .of_match = a91_sysreset_ids, }; |