protocol communication with a SCMI server.
config RESET_ZYNQMP
- bool "Reset Driver for Xilinx ZynqMP SoC's"
+ bool "Reset Driver for Xilinx ZynqMP & Versal SoC's"
depends on DM_RESET && ZYNQMP_FIRMWARE
help
- Support for reset controller on Xilinx ZynqMP SoC. Driver is only
- passing request via Xilinx firmware interface to TF-A and PMU
+ Support for reset controller on Xilinx ZynqMP & Versal SoC's. Driver
+ is only passing request via Xilinx firmware interface to TF-A and PMU
firmware.
config RESET_DRA7
dev_dbg(rst->dev, "%s(rst=%p) (id=%lu) (nr_reset=%d)\n", __func__,
rst, rst->id, priv->nr_reset);
- if (rst->id > priv->nr_reset)
+ if (priv->nr_reset && rst->id > priv->nr_reset)
return -EINVAL;
return 0;
{
struct zynqmp_reset_priv *priv = dev_get_priv(dev);
- priv->reset_id = ZYNQMP_RESET_ID;
- priv->nr_reset = ZYNQMP_NR_RESETS;
+ if (device_is_compatible(dev, "xlnx,zynqmp-reset")) {
+ priv->reset_id = ZYNQMP_RESET_ID;
+ priv->nr_reset = ZYNQMP_NR_RESETS;
+ }
+
return 0;
}
static const struct udevice_id zynqmp_reset_ids[] = {
{ .compatible = "xlnx,zynqmp-reset" },
+ { .compatible = "xlnx,versal-reset" },
{ }
};