soc: xilinx: vcu: use vcu-settings syscon registers
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 9 Nov 2020 13:48:17 +0000 (14:48 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 9 Dec 2020 18:36:33 +0000 (19:36 +0100)
commit30b79eb1f92ed5974885d374a4107c94e2dd3e03
treed3f8f8032e566144ac0c156ebcb39053f0883af3
parenta3857f89ddb05097d4cffeb3884d6e26da8a34e2
soc: xilinx: vcu: use vcu-settings syscon registers

Switch the "logicoreip" registers to the new xlnx,vcu-settings binding
to be able to read the settings if the settings are specified in a
separate device tree node that is shared with other drivers.

If the driver is not able to find a node with the new binding, fall back
to check for the logicore register bank to be backwards compatible.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Link: https://lore.kernel.org/r/20201109134818.4159342-4-m.tretter@pengutronix.de
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/soc/xilinx/Kconfig
drivers/soc/xilinx/xlnx_vcu.c
include/linux/mfd/syscon/xlnx-vcu.h [new file with mode: 0644]