]> git.dujemihanovic.xyz Git - u-boot.git/commit
syscon: dm: Add a new method to get a regmap from DTS
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 29 Nov 2018 09:57:37 +0000 (10:57 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 7 Dec 2018 15:31:45 +0000 (16:31 +0100)
commit6c3af1f24e4b8ccbef20bc00b9529f4a325583f2
tree534081dec42ca033d3e9737965804d6d1ebe02e4
parent4d3825c1915e1649c4be0320e74be158e4698655
syscon: dm: Add a new method to get a regmap from DTS

syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon
device from a reference in the DTS. It operates similarly to the linux
version of the namesake function.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
drivers/core/syscon-uclass.c
include/syscon.h
test/dm/syscon.c