#define CL_DVFS_OUTPUT_LUT 0x200
+#define CL_DVFS_APERTURE 0x400
+
#define IS_I2C_OFFS(offs) \
((((offs) >= CL_DVFS_I2C_CFG) && ((offs) <= CL_DVFS_INTR_EN)) || \
((offs) >= CL_DVFS_I2C_CNTRL))
if (sscanf(buf, "[0x%x] = 0x%x", &offs, &val) != 2)
return -1;
+ if (offs >= CL_DVFS_APERTURE)
+ return -1;
+
clk_enable(cld->soc_clk);
cl_dvfs_writel(cld, val, offs & (~0x3));
clk_disable(cld->soc_clk);