X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=arch%2Farm%2Fcpu%2Farmv7%2Fmx6%2Fsoc.c;h=c45c2f9d03f09896f8a367c95c4611507eab65c8;hp=eefb58ed7c74ed600279830226cae5eed093d050;hb=2e62c0bab7fe68ba2ab3baf6777537267a26ac02;hpb=b21a8dc446db69848aea810385e09020359de1d9 diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index eefb58ed7c..c45c2f9d03 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -394,11 +394,11 @@ int read_cpu_temperature(void) struct mx6_ocotp_regs *const ocotp_regs = (void *)OCOTP_BASE_ADDR; if (!thermal_calib) { - ocotp_clk_enable(); + enable_ocotp_clk(1); writel(1, &ocotp_regs->hw_ocotp_read_ctrl); thermal_calib = readl(&ocotp_regs->hw_ocotp_ana1); writel(0, &ocotp_regs->hw_ocotp_read_ctrl); - ocotp_clk_disable(); + enable_ocotp_clk(0); } if (thermal_calib == 0 || thermal_calib == 0xffffffff)