![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * TI DaVinci platform support for power management. 0004 * 0005 * Copyright (C) 2009 Texas Instruments, Inc. https://www.ti.com/ 0006 */ 0007 #ifndef _MACH_DAVINCI_PM_H 0008 #define _MACH_DAVINCI_PM_H 0009 0010 /* 0011 * Caution: Assembly code in sleep.S makes assumtion on the order 0012 * of the members of this structure. 0013 */ 0014 struct davinci_pm_config { 0015 void __iomem *ddr2_ctlr_base; 0016 void __iomem *ddrpsc_reg_base; 0017 int ddrpsc_num; 0018 void __iomem *ddrpll_reg_base; 0019 void __iomem *deepsleep_reg; 0020 void __iomem *cpupll_reg_base; 0021 /* 0022 * Note on SLEEPCOUNT: 0023 * The SLEEPCOUNT feature is mainly intended for cases in which 0024 * the internal oscillator is used. The internal oscillator is 0025 * fully disabled in deep sleep mode. When you exist deep sleep 0026 * mode, the oscillator will be turned on and will generate very 0027 * small oscillations which will not be detected by the deep sleep 0028 * counter. Eventually those oscillations will grow to an amplitude 0029 * large enough to start incrementing the deep sleep counter. 0030 * In this case recommendation from hardware engineers is that the 0031 * SLEEPCOUNT be set to 4096. This means that 4096 valid clock cycles 0032 * must be detected before the clock is passed to the rest of the 0033 * system. 0034 * In the case that the internal oscillator is not used and the 0035 * clock is generated externally, the SLEEPCOUNT value can be very 0036 * small since the clock input is assumed to be stable before SoC 0037 * is taken out of deepsleep mode. A value of 128 would be more than 0038 * adequate. 0039 */ 0040 int sleepcount; 0041 }; 0042 0043 extern unsigned int davinci_cpu_suspend_sz; 0044 extern void davinci_cpu_suspend(struct davinci_pm_config *); 0045 0046 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |