summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Liu <daveliu@freescale.com>2008-11-21 16:31:35 +0800
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2009-01-23 17:03:14 -0600
commit22cca7e1cd54590e967c73558b07ffbdccd39504 (patch)
tree4f6322f49d1eef36f8af7e5e19297f1699e5b9a4 /include
parent22ff3d01348e0a2dc369b7efcbac30e4ce86d178 (diff)
downloadtalos-obmc-uboot-22cca7e1cd54590e967c73558b07ffbdccd39504.tar.gz
talos-obmc-uboot-22cca7e1cd54590e967c73558b07ffbdccd39504.zip
fsl-ddr: make the self refresh idle threshold configurable
Some 85xx processors have the advanced power management feature, such as wake up ARP, that needs enable the automatic self refresh. If the DDR controller pass the SR_IT (self refresh idle threshold) idle cycles, it will automatically enter self refresh. However, anytime one transaction is issued to the DDR controller, it will reset the counter and exit self refresh state. Signed-off-by: Dave Liu <daveliu@freescale.com> Acked-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/fsl_ddr_sdram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ppc/fsl_ddr_sdram.h b/include/asm-ppc/fsl_ddr_sdram.h
index 0006c21a02..b213af35ef 100644
--- a/include/asm-ppc/fsl_ddr_sdram.h
+++ b/include/asm-ppc/fsl_ddr_sdram.h
@@ -146,6 +146,10 @@ typedef struct memctl_options_s {
unsigned int bstopre;
unsigned int tCKE_clock_pulse_width_ps; /* tCKE */
unsigned int tFAW_window_four_activates_ps; /* tFAW -- FOUR_ACT */
+
+ /* Automatic self refresh */
+ unsigned int auto_self_refresh_en;
+ unsigned int sr_it;
} memctl_options_t;
extern phys_size_t fsl_ddr_sdram(void);
OpenPOWER on IntegriCloud