* [U-Boot] [PATCH] fsl_ddr: Make SR_IE configurable.
@ 2015-10-14 14:32 Joakim Tjernlund
2015-10-30 16:20 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Joakim Tjernlund @ 2015-10-14 14:32 UTC (permalink / raw)
To: u-boot
SR_IE(Self-refresh interrupt enable) is needed for
Hardware Based Self-Refresh. Make it configurable and let
board code handle the rest.
Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
---
drivers/ddr/fsl/ctrl_regs.c | 2 +-
include/fsl_ddr_sdram.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c
index 8367c95..8543679 100644
--- a/drivers/ddr/fsl/ctrl_regs.c
+++ b/drivers/ddr/fsl/ctrl_regs.c
@@ -858,7 +858,7 @@ static void set_ddr_sdram_cfg_2(const unsigned int ctrl_num,
break;
}
}
-
+ sr_ie = popts->self_refresh_interrupt_en;
num_pr = 1; /* Make this configurable */
/*
diff --git a/include/fsl_ddr_sdram.h b/include/fsl_ddr_sdram.h
index e5b6e03..c79fce0 100644
--- a/include/fsl_ddr_sdram.h
+++ b/include/fsl_ddr_sdram.h
@@ -324,6 +324,8 @@ typedef struct memctl_options_s {
unsigned int dqs_config; /* Use DQS? maybe only with DDR2? */
/* SREN - self-refresh during sleep */
unsigned int self_refresh_in_sleep;
+ /* SR_IE - Self-refresh interrupt enable */
+ unsigned int self_refresh_interrupt_en;
unsigned int dynamic_power; /* DYN_PWR */
/* memory data width to use (16-bit, 32-bit, 64-bit) */
unsigned int data_bus_width;
--
2.4.9
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] fsl_ddr: Make SR_IE configurable.
2015-10-14 14:32 [U-Boot] [PATCH] fsl_ddr: Make SR_IE configurable Joakim Tjernlund
@ 2015-10-30 16:20 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-10-30 16:20 UTC (permalink / raw)
To: u-boot
On 10/14/2015 07:32 AM, Joakim Tjernlund wrote:
> SR_IE(Self-refresh interrupt enable) is needed for
> Hardware Based Self-Refresh. Make it configurable and let
> board code handle the rest.
>
> Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
> ---
Removed "." from subject.
Applied to u-boot-fsl-qoriq. Awaiting upstream. Thanks.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-30 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 14:32 [U-Boot] [PATCH] fsl_ddr: Make SR_IE configurable Joakim Tjernlund
2015-10-30 16:20 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox