I am looking at the exynos4_bus.c driver that is used with devfreq power management to try to develop a similar driver for a peripheral on the a Zynq SoC. The method I'm concerned about is this one:
static int exynos4210_set_busclk(struct busfreq_data *data, struct opp *opp)
{
...
__raw_writel(tmp, EXYNOS4_CLKDIV_DMC0);
...
}
It seems to me that raw_writel
is writing to the Exynos clock register the frequency that it should run at. This register is defined in arch/arm/mach-exynos/include/mach/regs-clock.h
. I am now looking at arch\arm\mach-zynq\include\mach\zynq_soc.h
to try to find something equivalent for the Zynq setup, but there are quite a few clocks that are being defined, so I'm not sure which is the one I should be setting. Can anyone help?