ARM: mxs: detect SoC by checking CHIPID register
authorShawn Guo <shawn.guo@linaro.org>
Fri, 6 Jan 2012 01:11:40 +0000 (09:11 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 27 Jan 2012 03:47:37 +0000 (11:47 +0800)
commit845da6bf65b1ebff700c1e9a8c17f5df303792c1
tree6609fb85408765cb22965738b2a5706f8ce4b24d
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
ARM: mxs: detect SoC by checking CHIPID register

Both imx23 and imx28 have CHIPID register at address 0x8001c310, which
can be used to identify the SoC.  This patch changes cpu_is_xxx and
__arch_decomp_setup to use this CHIPID register than machine type to
detect the chip between imx23 and imx28, so that we do not need to
change these functions whenever a new board/machine gets added.

Suggested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
arch/arm/mach-mxs/include/mach/digctl.h
arch/arm/mach-mxs/include/mach/mxs.h
arch/arm/mach-mxs/include/mach/uncompress.h