ARM: imx: replace cpu type check with ddr type check
commitec336b284136610a43c9daac56d66b20d43ddf7b
authorAnson Huang <b20788@freescale.com>
Wed, 17 Sep 2014 03:11:45 +0000 (17 11:11 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 23 Nov 2014 06:56:17 +0000 (23 14:56 +0800)
tree83577860847dac802631c097be8aefdd8b28ac96
parent035d0d7830b180215f0779d1b6dfb210f33a49fe
ARM: imx: replace cpu type check with ddr type check

As the DDR/IO and MMDC setting are different on LPDDR2 and DDR3,
we used cpu type to decide how to do these settings in suspend
before which is NOT flexible, take i.MX6SL for example, although
it has LPDDR2 on EVK board, but users can also use DDR3 on other
boards, so it is better to read the DDR type from MMDC then decide
how to do related settings.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/mach-imx/common.h
arch/arm/mach-imx/mmdc.c
arch/arm/mach-imx/mxc.h
arch/arm/mach-imx/pm-imx6.c
arch/arm/mach-imx/suspend-imx6.S