
30 Mar
2018
30 Mar
'18
10:41 a.m.
Hi Jean-Jacques,
On 26 March 2018 at 21:50, Jean-Jacques Hiblot jjhiblot@ti.com wrote:
syscon_regmap_lookup_by_phandle() can be used to the regmap of a syscon
used to ... the
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
Changes in v3:
- in syscon_regmap_lookup_by_phandle(), use dev_dbg() instead of printf()
- added unit test for syscon_regmap_lookup_by_phandle()
Changes in v2: None
arch/sandbox/dts/test.dts | 6 ++++-- drivers/core/syscon-uclass.c | 23 +++++++++++++++++++++++ include/syscon.h | 13 +++++++++++++ test/dm/syscon.c | 29 +++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org