Other Parts Discussed in Thread: AM3703
Dear,
Here I get an issue to enable clock output from sys_clkout2 on a customerized AM3703 module.
The operation system is WINCE6.
First I change the pad configuration on bsp_padcfg.h, and use this configuration in eboot.
PAD_ENTRY(SYS_CLKOUT2, INPUT_DISABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) /* GPIO 186 : sys_clkout2*/ \
Then the procedure below has been implemented in eboot
OMAP_PRCM_CLOCK_CONTROL_CM_REGS* pCmRegs = OALPAtoUA(OMAP_PRCM_CLOCK_CONTROL_CM_REGS_PA);
OMAP_PRCM_GLOBAL_CM_REGS* pPolRegs = OALPAtoUA(OMAP_PRCM_GLOBAL_CM_REGS_PA);
REG32 cmreg = INREG32(&pCmRegs->CM_CLKOUT_CTRL);
cmreg &= ~(1<<7); //mask CLKOUT2_EN
cmreg &= ~(3<<0); //mask CLKOUT2SOURCE
cmreg |= (1<<0); //enable sys_clkout2 output
cmreg |= (1<<7); //use cm_sys_clk as clock source
SETREG32(&pCmRegs->CM_CLKOUT_CTRL, cmreg);
SETREG32(&pPolRegs->CM_POLCTRL, 1); //gated high when inactive
I don't see clock output after the setting is applied.
Is anything procedure I have missed?
Thanks in advance.
Angus