summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf609/pm.c
Commit message (Collapse)AuthorAgeFilesLines
* pm: bf609: cleanup smc nor flashSteven Miao2014-07-261-2/+2
| | | | | | | drop smc pin state change code, pin state will be saved in pinctrl-adi2 driver cleanup nor flash init/exit for pm suspend/resume Signed-off-by: Steven Miao <realmz6@gmail.com>
* blackfin: bf60x: fix typo "CONFIG_PM_BFIN_WAKE_PA15_POL"Paul Bolle2014-04-111-1/+1
| | | | | Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Steven Miao <realmz6@gmail.com>
* blackfin: SEC: clean up SEC interrupt initializationSonic Zhang2012-12-141-2/+1Star
| | | | | | | | | Append the SEC IRQ after the IVG6, which is consistent to BF5xx SIC. Exclude SIC irqchip fucntions from SEC code. Call handle_fasteoi_irq in SEC error and fault handler. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* bf60x: fix build warningBob Liu2012-07-241-6/+3Star
| | | | | | Fix several build warning while using bf609-ezkit_defconfig. Signed-off-by: Bob Liu <lliubbo@gmail.com>
* bf60x: pm: add pint suspend and resume supportSteven Miao2012-07-241-3/+6
| | | | | | | | | save and restore pint sec CTL save and restore pint registers add pint suspend and resume when suspend to mem Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* bf60x: pm: pass wakeup paramSteven Miao2012-07-241-9/+10
| | | | | | | | Pass wake up source mask and wakeup source polarity to deepsleep and hibernate. Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* bf60x: pm: add smc nor flash syscore opsSteven Miao2012-07-241-1/+22
| | | | | Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* bfin: pm: add deepsleep for bf60xSonic Zhang2012-07-241-51/+29Star
| | | | | | | | | | | | Add add deepsleep for bf60x. 1. Call DMC init functions to enter and exit DDR self refresh mode. 2. Wait till CGU PLL is locked after wake up and exit DDR self refresh mode. 3. Make asessembly function enter_deepsleep comply with C funtion ABI in order to call other C functions. 4. Switch kernel stack by register EX_SCRATCH_REG. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* blackfin: bf60x: Rename the DDR controller macroSonic Zhang2012-05-211-7/+7
| | | | | | | | Rename the DDR controller macro from DDR0 to DMC0 to avoid confustion for bf60x. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* blackfin: mach-bf609: pm: cleanup bfin_deepsleepSteven Miao2012-05-211-8/+7Star
| | | | | | | | In bfin_deepsleep(), using register instead of local variable and remove unused dpmc register read. Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* blackfin: bf60x: pm: Add a debug option to calculate kernel wakeup time.Sonic Zhang2012-05-211-0/+12
| | | | | | | | Display the total time when kernel resumes normal from standby or suspend to mem mode. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* blackfin: bf60x: add wakeup source selectSteven Miao2012-05-211-21/+62
| | | | | | | Support select the wakeup source for power management on bf60x. Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
* blackfin: bf60x: add power management supportSteven Miao2012-05-211-0/+310
Add bf60x cpu pm callbacks and change blackfin pm framework to support bf60x. Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>