Commit e368c206 authored by Joakim Tjernlund's avatar Joakim Tjernlund Committed by York Sun

drivers/ddr/fsl_ddr: Make SR_IE configurable

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: default avatarJoakim Tjernlund <joakim.tjernlund@transmode.se>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 4632ad77
......@@ -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 */
/*
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment