Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 385cfc84 authored by Iuliana Prodan's avatar Iuliana Prodan Committed by Herbert Xu
Browse files

crypto: caam - disable some clock checks for iMX7ULP



Disabled the check and set of 'mem' and 'emi_slow'
clocks, since these are not available for iMX7ULP.

Signed-off-by: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ed527b13
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -540,7 +540,8 @@ static int caam_probe(struct platform_device *pdev)
	ctrlpriv->caam_ipg = clk;

	if (!of_machine_is_compatible("fsl,imx7d") &&
	    !of_machine_is_compatible("fsl,imx7s")) {
	    !of_machine_is_compatible("fsl,imx7s") &&
	    !of_machine_is_compatible("fsl,imx7ulp")) {
		clk = caam_drv_identify_clk(&pdev->dev, "mem");
		if (IS_ERR(clk)) {
			ret = PTR_ERR(clk);
@@ -562,7 +563,8 @@ static int caam_probe(struct platform_device *pdev)

	if (!of_machine_is_compatible("fsl,imx6ul") &&
	    !of_machine_is_compatible("fsl,imx7d") &&
	    !of_machine_is_compatible("fsl,imx7s")) {
	    !of_machine_is_compatible("fsl,imx7s") &&
	    !of_machine_is_compatible("fsl,imx7ulp")) {
		clk = caam_drv_identify_clk(&pdev->dev, "emi_slow");
		if (IS_ERR(clk)) {
			ret = PTR_ERR(clk);