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)
#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; }