I need to put my camera system in shutdown mode with few Timers, interrupts & I2C2 controller alone in ON state and rest all in OFF state. Can we can put the MPU, NEON, IVA2,SGX, DSS, CAM, USBHOST Power Domains in OFF state & PER,WKUP, CORE Power Domains in ON state [some modules in CORE,WKUP,PER will also be in OFF state] in OMAP 3525?
here is my firmware for this configuration, can you tell whether this method could be done or not?
BOOL PM_OM_Camera_ShutDwn ( void )
{
// DeActivated Modules - Completely OFF state
PM_PWSTCTRL_MPU &= 0xFFFFFFFE; // Power State Control - OFF state[bit1:0]
PM_PWSTCTRL_NEON &= 0xFFFFFFFE; //
PM_PWSTCTRL_IVA2 &= 0xFFFFFFFE; //
PM_PWSTCTRL_SGX &= 0xFFFFFFFE; //
PM_PWSTCTRL_DSS &= 0xFFFFFFFE; //
PM_PWSTCTRL_CAM &= 0xFFFFFFFE; //
PM_PWSTCTRL_USBHOST &= 0xFFFFFFFE; // Power State Control - OFF state[bit1:0]
// DeActivated Modules - Interface Clock/Functional Clock Disabled
CM_FCLKEN1_CORE &= 0x00811800; // MMC[1,2,3],McBSP[1,5],McSPI[1,2,3,4],UART[1,2],
// I2C[1,3],HDQ FCLK, except I2C2 - used for battery monitor
CM_FCLKEN3_CORE &= 0xFFFFFFFB; // USB TLL FCLK disabled
CM_ICLKEN1_CORE &= 0xFFFFFF42; // MailBox, HS OTG USB ICLK disabled
CM_ICLKEN2_CORE &= 0xFFFFFFFF; // No bits requried disabled
CM_ICLKEN3_CORE &= 0xFFFFFFFF; // No bits required disabled
return (TRUE);
} // end of function