]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mx3: make ioremap quirk ready for multi-SoC kernels
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 1 Apr 2011 22:15:49 +0000 (00:15 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 19 May 2011 11:11:32 +0000 (13:11 +0200)
commit873c78e8f603c6b9e07f5eae93177a4c98293d95
tree14ab77f7d3a85ff9f397153e58c3cc90405d60ba
parent9affb2b0ce13891740ff9854fa094a3fa634c44b
ARM: mx3: make ioremap quirk ready for multi-SoC kernels

To be able to compile e.g. i.MX31 and i.MX51 in a single kernel image
the ioremap quirk needs a runtime check.

While touching this code make the comment more understandable by adding
a sentence from the commit log that introduced it
(e219d1e ([ARM] MX3: Use ioremap wrapper to map SoC devices nonshared)).

As mach/io.h now uses cpu_is_ some header reshuffling in mach/hardware.h
was necessary. (mach/mx27.h and mach/mx31.h #include <linux/io.h> which
#includes <mach/io.h>. So mach/mxc.h which provides the cpu_is_ macros
needs to be included before mach/mx27.h and mach/mx31.h.)

LAKML-Reference: 1302464943-20721-5-git-send-email-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/include/mach/hardware.h
arch/arm/plat-mxc/include/mach/io.h