Commit af3f1afa authored by Jolly Shah's avatar Jolly Shah Committed by Michal Simek

firmware: xilinx: Add support for versal soc

Versal is xilinx's next generation soc. This patch adds
driver support required to be compatible with versal device.
Signed-off-by: default avatarJolly Shah <jolly.shah@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 856c78c6
...@@ -711,8 +711,11 @@ static int zynqmp_firmware_probe(struct platform_device *pdev) ...@@ -711,8 +711,11 @@ static int zynqmp_firmware_probe(struct platform_device *pdev)
int ret; int ret;
np = of_find_compatible_node(NULL, NULL, "xlnx,zynqmp"); np = of_find_compatible_node(NULL, NULL, "xlnx,zynqmp");
if (!np) if (!np) {
return 0; np = of_find_compatible_node(NULL, NULL, "xlnx,versal");
if (!np)
return 0;
}
of_node_put(np); of_node_put(np);
ret = get_set_conduit_method(dev->of_node); ret = get_set_conduit_method(dev->of_node);
...@@ -770,6 +773,7 @@ static int zynqmp_firmware_remove(struct platform_device *pdev) ...@@ -770,6 +773,7 @@ static int zynqmp_firmware_remove(struct platform_device *pdev)
static const struct of_device_id zynqmp_firmware_of_match[] = { static const struct of_device_id zynqmp_firmware_of_match[] = {
{.compatible = "xlnx,zynqmp-firmware"}, {.compatible = "xlnx,zynqmp-firmware"},
{.compatible = "xlnx,versal-firmware"},
{}, {},
}; };
MODULE_DEVICE_TABLE(of, zynqmp_firmware_of_match); MODULE_DEVICE_TABLE(of, zynqmp_firmware_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment