]> git.baikalelectronics.ru Git - uboot.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)
commit310778fea7d86f83c270b516db388c9411b437a0
tree534081dec42ca033d3e9737965804d6d1ebe02e4
parentcd7c77195ee97d37f6945de27992c82fbda7f3ea
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