diff options
author | Juan Gutierrez <juan.gutierrez@nxp.com> | 2017-01-31 10:32:19 -0600 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:47 +0800 |
commit | 39564133ecb45392f00a7c4849aa81f2f0261095 (patch) | |
tree | cd79c6a5806bd24038da1ebc88e6f7315ce79944 /arch/arm/mach-imx/common.h | |
parent | dda4f222934be33807b84b0f4db7897f231cb7a6 (diff) |
MXSCM-243-1 arm: imx: get the mmdc 2ch-mode api for lpddr2
To configure the suspend settings for lpddr2 systems is necessary
to know if mmdc is operating on 1ch-mode or 2ch-mode.
Here, the imx_get_lpddr2_2ch_mode api is introduced to get this info
when needed and decide accordingly.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r-- | arch/arm/mach-imx/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 224273315fda..154cd0b286e8 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -169,8 +169,10 @@ void imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat); int imx7ulp_set_lpm(enum imx7ulp_cpu_pwr_mode mode); #ifdef CONFIG_HAVE_IMX_MMDC int imx_mmdc_get_ddr_type(void); +int imx_mmdc_get_lpddr2_2ch_mode(void); #else static inline int imx_mmdc_get_ddr_type(void) { return 0; } +static inline int imx_mmdc_get_lpddr2_2ch_mode(void) { return 0; } #endif #ifdef CONFIG_HAVE_IMX_DDRC int imx_ddrc_get_ddr_type(void); |