diff options
author | Anson Huang <b20788@freescale.com> | 2015-08-20 18:27:56 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:01:41 -0600 |
commit | fe42c755539326a69f0f0b397bb1daa23dd24480 (patch) | |
tree | 2f7574d3cdfdf6b898674879c97f2c84aa2514c7 /arch | |
parent | ea101fc542262b5a4206d7bbc7fd2ec53502a056 (diff) |
MLK-11387-2 ARM: imx: add imx7d lpddr2 support
i.MX7D LPDDR2 board has same flow of suspend/resume
and busfreq with LPDDR3, the only difference is the
DRAM init script which is done in u-boot.
This patch adds suspend/resume and busfreq support
for i.MX7D LPDDR2, tested on i.MX7D 19x19 LPDDR2 board.
Signed-off-by: Anson Huang <b20788@freescale.com>
Conflicts:
arch/arm/mach-imx/busfreq_ddr3.c
arch/arm/mach-imx/pm-imx7.c
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/busfreq_ddr3.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-imx/pm-imx7.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/busfreq_ddr3.c b/arch/arm/mach-imx/busfreq_ddr3.c index 0f058f914958..e3d4bee86219 100644 --- a/arch/arm/mach-imx/busfreq_ddr3.c +++ b/arch/arm/mach-imx/busfreq_ddr3.c @@ -477,7 +477,8 @@ int init_ddrc_ddr_settings(struct platform_device *busfreq_pdev) (void *)ddr_freq_change_iram_base + SMP_WFE_CODE_SIZE, &imx7d_ddr3_freq_change, MX7_BUSFREQ_OCRAM_SIZE - SMP_WFE_CODE_SIZE); - else if (ddr_type == IMX_DDR_TYPE_LPDDR3) + else if (ddr_type == IMX_DDR_TYPE_LPDDR3 + || ddr_type == IMX_DDR_TYPE_LPDDR2) imx7d_change_ddr_freq = (void *)fncpy( (void *)ddr_freq_change_iram_base + SMP_WFE_CODE_SIZE, diff --git a/arch/arm/mach-imx/pm-imx7.c b/arch/arm/mach-imx/pm-imx7.c index 02d167849e60..45c03d60619e 100644 --- a/arch/arm/mach-imx/pm-imx7.c +++ b/arch/arm/mach-imx/pm-imx7.c @@ -606,7 +606,8 @@ void __init imx7d_pm_init(void) struct device_node *np; struct resource res; - if (imx_ddrc_get_ddr_type() == IMX_DDR_TYPE_LPDDR3) + if (imx_ddrc_get_ddr_type() == IMX_DDR_TYPE_LPDDR3 + || imx_ddrc_get_ddr_type() == IMX_DDR_TYPE_LPDDR2) imx7_pm_common_init(&imx7d_pm_data_lpddr3); else if (imx_ddrc_get_ddr_type() == IMX_DDR_TYPE_DDR3) imx7_pm_common_init(&imx7d_pm_data_ddr3); |