Path: blob/master/arch/arm/mach-davinci/include/mach/pm.h
17621 views
/*1* TI DaVinci platform support for power management.2*3* Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License as7* published by the Free Software Foundation version 2.8*9* This program is distributed "as is" WITHOUT ANY WARRANTY of any10* kind, whether express or implied; without even the implied warranty11* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*/14#ifndef _MACH_DAVINCI_PM_H15#define _MACH_DAVINCI_PM_H1617/*18* Caution: Assembly code in sleep.S makes assumtion on the order19* of the members of this structure.20*/21struct davinci_pm_config {22void __iomem *ddr2_ctlr_base;23void __iomem *ddrpsc_reg_base;24int ddrpsc_num;25void __iomem *ddrpll_reg_base;26void __iomem *deepsleep_reg;27void __iomem *cpupll_reg_base;28/*29* Note on SLEEPCOUNT:30* The SLEEPCOUNT feature is mainly intended for cases in which31* the internal oscillator is used. The internal oscillator is32* fully disabled in deep sleep mode. When you exist deep sleep33* mode, the oscillator will be turned on and will generate very34* small oscillations which will not be detected by the deep sleep35* counter. Eventually those oscillations will grow to an amplitude36* large enough to start incrementing the deep sleep counter.37* In this case recommendation from hardware engineers is that the38* SLEEPCOUNT be set to 4096. This means that 4096 valid clock cycles39* must be detected before the clock is passed to the rest of the40* system.41* In the case that the internal oscillator is not used and the42* clock is generated externally, the SLEEPCOUNT value can be very43* small since the clock input is assumed to be stable before SoC44* is taken out of deepsleep mode. A value of 128 would be more than45* adequate.46*/47int sleepcount;48};4950extern unsigned int davinci_cpu_suspend_sz;51extern void davinci_cpu_suspend(struct davinci_pm_config *);5253#endif545556