We are proposed to use 25MHz xstal with AM335x instead of 24Mhz.
Is there any necessary modification in linux BSP (AM335x EVM) ?
Or any thing I should take care?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We are proposed to use 25MHz xstal with AM335x instead of 24Mhz.
Is there any necessary modification in linux BSP (AM335x EVM) ?
Or any thing I should take care?
Thanks.
In u-boot, you have to modify include/configs/am335x_evm.h and change
#define V_OSCK 24000000 /* Clock output from T2 */
to
#define V_OSCK 25000000 /* Clock output from T2 */
Steve K.
OK, I see.
But is there any modification in Linux kernel setting with am335x_evm?
e.g., :in cm-regbits-33xx.h
#define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_SHIFT 4
Or just change the u-boot setting?
Thank you.
That #define is for a Peripheral clock
/* Used by CM_PER_CLK_24MHZ_CLKSTCTRL */
#define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_SHIFT 4
#define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_MASK (1 << 4)
So you do not need to modify that code. I think you might need to modify arch/arm/mach-omap2/clock33xx_data.c
/* sys_clk_in */
static struct clk sys_clkin_ck = {
.name = "sys_clkin_ck",
.parent = &virt_24m_ck,
.init = &omap2_init_clksel_parent,
.clksel_reg = AM33XX_CTRL_REGADDR(0x40), /* CONTROL_STATUS * /
.clksel_mask = (0x3 << 22),
.clksel = sys_clkin_sel,
.ops = &clkops_null,
.recalc = &omap2_clksel_recalc,
};
Change the 24 to a 25.
Steve K.
Hi Steve,
Thanks for your reply.
As your mentioned, there is *only one* modification with 25MHz xstal.
I'll try for this.