]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: reset: Add a managed API to get reset controllers from the DT
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Wed, 9 Sep 2020 10:07:03 +0000 (15:37 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:22 +0000 (11:55 -0400)
commit139e4a1cbe60de96d4febbc6db5882929801ca46
tree042a6deb8830e8877ee4bfe3d6c45112ea25ea5e
parent01114adfc1e0bf3cf5e2f3da858bb2c8e9810c1c
drivers: reset: Add a managed API to get reset controllers from the DT

Add managed functions to get a reset_ctl from the device-tree, based on a
name or an index.
Also add a managed functions to get a reset_ctl_bulk (array of reset_ctl)
from the device-tree.

When the device is unbound, the reset controllers are automatically
released and the data structure is freed.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
drivers/reset/reset-uclass.c
include/reset.h