I don't know if anyone is still interested in this thread? If so, have a look at the link below. The poster modified an older kernel but the config settings will be of use to implement in a more recent kernel.
Hi, Yongcai Huang
I found clock configuration in cpu_op-mx6.c
void mx6_cpu_op_init(void)
{
unsigned int reg;
void __iomem *base;
if (!cpu_is_mx6sl()) {
/*read fuse bit to know the max cpu freq : offset 0x440
* bit[17:16]:SPEED_GRADING[1:0],for mx6dq/dl*/
base = IO_ADDRESS(OCOTP_BASE_ADDR);
reg = __raw_readl(base + 0x440);
reg &= (0x3 << OCOTP_SPEED_BIT_OFFSET);
reg >>= OCOTP_SPEED_BIT_OFFSET;
/*choose the little value to run lower max cpufreq*/
arm_max_freq = CPU_AT_1_2GHz; // Modify 1.2 GHz
}
Then, I run a my camera preview application.
but, my application went down.
Is a max frequency unstable?