OpenCloudOS-Kernel/arch/m68k/platform/coldfire
Steven King eac5794994 m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips.
If we're not connecting external GPIO extenders via i2c or spi or whatever, we
probably don't need GPIOLIB.  If we provide an alternate implementation of
the GPIOLIB functions to use when only on-chip GPIO is needed, we can change
ARCH_REQUIRE_GPIOLIB to ARCH_WANTS_OPTIONAL_GPIOLIB so that GPIOLIB becomes
optional.

The downside is that in the GPIOLIB=n case, we lose all error checking done by
gpiolib, ie multiply allocating the gpio, free'ing gpio etc., so that the
only checking that can be done is if we reference a gpio on an external part.
Targets that need the extra error checking can still select GPIOLIB=y.

For the case where GPIOLIB=y, we can simplify the table of gpio chips to use a
single chip, eliminating the tables of chips in the 5xxx.c files.  The
original motivation for the definition of multiple chips was to match the way
many of the Coldfire variants defined their gpio as a spare array in memory.
However, all this really gains us is some error checking when we request a
gpio, gpiolib can check that it doesn't fall in one of the holes.  If thats
important, I think we can still come up with a better way of accomplishing
that.

Also in this patch is some general cleanup and reorganizing of the gpio header
files (I'm sure I must have had a reason why I sometimes used a prefix of
mcf_gpio and other times mcfgpio but for the life of me I can't think of it
now).

Signed-off-by: Steven King <sfking@fdwdc.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
2012-07-16 09:59:21 +10:00
..
Makefile m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
cache.c Fix common misspellings 2011-03-31 11:26:23 -03:00
clk.c m68knommu: define a local devm_clk_get() function 2012-06-25 09:17:20 +10:00
device.c m68knommu: enable qspi support when SPI_COLDFIRE_QSPI = m 2012-05-08 13:06:51 +10:00
dma.c m68knommu: remove un-needed exporting of COLDFIRE symbols 2011-05-24 10:03:51 +10:00
dma_timer.c clocksource: m86k: Convert to clocksource_register_hz/khz 2011-12-24 21:47:56 +10:00
entry.S m68k: add TIF_NOTIFY_RESUME and handle it. 2012-05-21 23:59:47 -04:00
firebee.c m68knommu: move the 54xx platform code into the common ColdFire code directory 2012-05-20 21:22:07 +10:00
gpio.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
head.S m68knommu: hard set the ColdFire MBAR register on startup 2012-03-05 09:43:03 +10:00
intc-2.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
intc-5249.c m68knommu: move the 5249 platform code into the common ColdFire code directory 2012-05-20 21:22:01 +10:00
intc-5272.c m68knommu: move the 5272 platform code into the common ColdFire code directory 2012-05-20 21:22:02 +10:00
intc-simr.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
intc.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
m54xx.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m520x.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m523x.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m527x.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m528x.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m532x.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m5206.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m5249.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m5272.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m5307.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
m5407.c m68knommu: refactor Coldfire GPIO not to require GPIOLIB, eliminate mcf_gpio_chips. 2012-07-16 09:59:21 +10:00
nettel.c m68knommu: move the 5307 platform code into the common ColdFire code directory 2012-05-20 21:22:04 +10:00
pit.c m68knommu: modify timer init code to make it consistent with m68k code 2012-03-05 09:43:04 +10:00
reset.c m68knommu: factor more common ColdFire cpu reset code 2012-03-05 10:42:28 +10:00
sltimers.c m68knommu: modify timer init code to make it consistent with m68k code 2012-03-05 09:43:04 +10:00
timers.c m68knommu: move old ColdFire timers init from CPU init to timers code 2012-03-05 09:43:10 +10:00
vectors.c m68knommu: remove reduntant definitions of _ramvec 2012-03-05 09:43:03 +10:00