diff options
author | Bai Ping <b51503@freescale.com> | 2015-12-11 14:59:10 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:24:00 +0800 |
commit | 4e09de525472ff9ae5b7b331208183f255209131 (patch) | |
tree | eed18cfeeeb6d69241e09d830fd8e77f0274aeff /arch/arm/mach-imx/common.h | |
parent | 59f4b6a4d5d0885147c522b12e2d4b3df411f017 (diff) |
MLK-11996 ARM: imx: fix ddr_type config error
The config option for getting DDR type should
be 'HAVE_IMX_MMDC' and 'HAVE_IMX_DDRC'. Otherwise,
get_ddr type will always return 0(DDR3).
Signed-off-by: Bai Ping <b51503@freescale.com>
(cherry picked from commit 6e8048311f854184ae5f16c822e6f6f0fd122e54)
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r-- | arch/arm/mach-imx/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 9229d9812c51..fad8d1a16643 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -147,7 +147,7 @@ int imx_mmdc_get_ddr_type(void); #else static inline int imx_mmdc_get_ddr_type(void) { return 0; } #endif -#ifdef CONFIG_HAVE_DDRC +#ifdef CONFIG_HAVE_IMX_DDRC int imx_ddrc_get_ddr_type(void); #else static inline int imx_ddrc_get_ddr_type(void) { return 0; } |