You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated vcu init/reset sequence as per design changes.
If VCU reset GPIO is available then do assert and de-assert it before
enabling/disabling gasket isolation.
This GPIO is added because gasket isolation will be removed during startup
that requires access to SLCR register space. Post startup, the ownership of
the register interface lies with logiCORE IP.
Signed-off-by: Rohit Visavalia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
dev_err_probe(&pdev->dev, ret, "failed to get reset gpio for vcu.\n");
687
+
goto error_get_gpio;
688
+
}
689
+
690
+
if (xvcu->reset_gpio) {
691
+
gpiod_set_value(xvcu->reset_gpio, 0);
692
+
/* min 2 clock cycle of vcu pll_ref, slowest freq is 33.33KHz */
693
+
usleep_range(60, 120);
694
+
gpiod_set_value(xvcu->reset_gpio, 1);
695
+
usleep_range(60, 120);
696
+
} else {
697
+
dev_dbg(&pdev->dev, "No reset gpio info found in dts for VCU. This may result in incorrect functionality if VCU isolation is removed after initialization in designs where the VCU reset is driven by gpio.\n");
0 commit comments