When running in secure mode, accessing many of the clock registers related to security features raises an exception. Signed-off-by: Stuart Menefy <stuart.menefy@xxxxxxxxxxxxxxxx> --- drivers/clk/samsung/clk-exynos5260.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5260.c b/drivers/clk/samsung/clk-exynos5260.c index 2cc2583abd87..9a0024866a36 100644 --- a/drivers/clk/samsung/clk-exynos5260.c +++ b/drivers/clk/samsung/clk-exynos5260.c @@ -1055,17 +1055,8 @@ static const unsigned long mif_clk_regs[] __initconst = { EN_ACLK_MIF_SECURE_DREX0_TZ, EN_ACLK_MIF_SECURE_INTMEM, EN_PCLK_MIF, - EN_PCLK_MIF_SECURE_MONOCNT, - EN_PCLK_MIF_SECURE_RTC_APBIF, - EN_PCLK_MIF_SECURE_DREX1_TZ, - EN_PCLK_MIF_SECURE_DREX0_TZ, EN_SCLK_MIF, EN_IP_MIF, - EN_IP_MIF_SECURE_MONOCNT, - EN_IP_MIF_SECURE_RTC_APBIF, - EN_IP_MIF_SECURE_DREX1_TZ, - EN_IP_MIF_SECURE_DREX0_TZ, - EN_IP_MIF_SECURE_INTEMEM, }; PNAME(mout_mem_pll_p) = {"fin_pll", "fout_mem_pll"}; @@ -1192,21 +1183,10 @@ static const unsigned long peri_clk_regs[] __initconst = { EN_PCLK_PERI2, EN_PCLK_PERI3, EN_PCLK_PERI_SECURE_CHIPID, - EN_PCLK_PERI_SECURE_PROVKEY0, - EN_PCLK_PERI_SECURE_PROVKEY1, - EN_PCLK_PERI_SECURE_SECKEY, - EN_PCLK_PERI_SECURE_ANTIRBKCNT, - EN_PCLK_PERI_SECURE_TOP_RTC, - EN_PCLK_PERI_SECURE_TZPC, - EN_SCLK_PERI, - EN_SCLK_PERI_SECURE_TOP_RTC, EN_IP_PERI0, EN_IP_PERI1, EN_IP_PERI2, EN_IP_PERI_SECURE_CHIPID, - EN_IP_PERI_SECURE_PROVKEY0, - EN_IP_PERI_SECURE_PROVKEY1, - EN_IP_PERI_SECURE_SECKEY, EN_IP_PERI_SECURE_ANTIRBKCNT, EN_IP_PERI_SECURE_TOP_RTC, EN_IP_PERI_SECURE_TZPC, @@ -1330,15 +1310,6 @@ static const struct samsung_gate_clock peri_gate_clks[] __initconst = { GATE(PERI_CLK_CHIPID, "clk_chipid", "dout_aclk_peri_66", EN_IP_PERI_SECURE_CHIPID, 2, 0, 0), - GATE(PERI_CLK_PROVKEY0, "clk_provkey0", "dout_aclk_peri_66", - EN_IP_PERI_SECURE_PROVKEY0, 1, 0, 0), - - GATE(PERI_CLK_PROVKEY1, "clk_provkey1", "dout_aclk_peri_66", - EN_IP_PERI_SECURE_PROVKEY1, 2, 0, 0), - - GATE(PERI_CLK_SECKEY, "clk_seckey", "dout_aclk_peri_66", - EN_IP_PERI_SECURE_SECKEY, 5, 0, 0), - GATE(PERI_CLK_TOP_RTC, "clk_top_rtc", "dout_aclk_peri_66", EN_IP_PERI_SECURE_TOP_RTC, 5, 0, 0), -- 2.13.6