rockchip: clk: rk3399: allow requests for PCLK_EFUSE1024NS
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Apr 2017 15:11:55 +0000 (17:11 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
The (non-secure) efuse node in the DTS requests PCLK_EFUSE1024NS.
To allow us to add a efuse-driver (and more importantly, to allow
probes of such a driver to succeed), we need need to accept requests
for PCLK_EFUSE1024NS and return a non-error result.

As PCLK_EFUSE1024NS is enabled by default (i.e. after reset), we don't
implement any logic to manage this clock gate and simply assume that
the reset-default has not been changed.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/rockchip/clk_rk3399.c

index c378652fb2e9a1595e4e2ebce0dd51b2e995051b..10db46e400b85c623ba41587aa35feb1b4a4a580 100644 (file)
@@ -885,6 +885,8 @@ static ulong rk3399_clk_get_rate(struct clk *clk)
        case DCLK_VOP0:
        case DCLK_VOP1:
                break;
+       case PCLK_EFUSE1024NS:
+               break;
        default:
                return -ENOENT;
        }
@@ -927,6 +929,8 @@ static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate)
        case SCLK_DDRCLK:
                ret = rk3399_ddr_set_clk(priv->cru, rate);
                break;
+       case PCLK_EFUSE1024NS:
+               break;
        default:
                return -ENOENT;
        }