acrn-kernel/arch/m68k/coldfire
Greg Ungerer 322c512f47 m68knommu: include SDHC support only when hardware has it
The mere fact that the kernel has the MMC subsystem enabled (CONFIG_MMC
enabled) does not mean that the underlying hardware platform has the
SDHC hardware present. Within the ColdFire hardware defines that is
signified by MCFSDHC_BASE being defined with an address.

The platform data for the ColdFire parts is including the SDHC hardware
if CONFIG_MMC is enabled, instead of MCFSDHC_BASE. This means that if
you are compiling for a ColdFire target that does not support SDHC but
enable CONFIG_MMC you will fail to compile with errors like this:

    arch/m68k/coldfire/device.c:565:12: error: ‘MCFSDHC_BASE’ undeclared here (not in a function)
       .start = MCFSDHC_BASE,
            ^
    arch/m68k/coldfire/device.c:566:25: error: ‘MCFSDHC_SIZE’ undeclared here (not in a function)
       .end = MCFSDHC_BASE + MCFSDHC_SIZE - 1,
                         ^
    arch/m68k/coldfire/device.c:569:12: error: ‘MCF_IRQ_SDHC’ undeclared here (not in a function)
       .start = MCF_IRQ_SDHC,
            ^

Make the SDHC platform support depend on MCFSDHC_BASE, that is only
include it if the specific ColdFire SoC has that hardware module.

Fixes: 991f5c4dd2 ("m68k: mcf5441x: add support for esdhc mmc controller")
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Tested-by: Angelo Dureghello <angelo.dureghello@timesys.com>
2020-10-05 21:51:31 +10:00
..
Makefile
amcore.c
cache.c
clk.c m68k: coldfire/clk.c: move m5441x specific code 2020-05-28 11:22:16 +02:00
device.c m68knommu: include SDHC support only when hardware has it 2020-10-05 21:51:31 +10:00
dma.c
dma_timer.c
entry.S
firebee.c
gpio.c
head.S
intc-2.c
intc-525x.c
intc-5249.c
intc-5272.c
intc-simr.c
intc.c
m53xx.c
m54xx.c
m520x.c
m523x.c
m525x.c
m527x.c
m528x.c
m5206.c
m5249.c
m5272.c
m5307.c
m5407.c
m5441x.c m68k: coldfire/clk.c: move m5441x specific code 2020-05-28 11:22:16 +02:00
mcf8390.c
nettel.c
pci.c
pit.c
reset.c
sltimers.c
stmark2.c m68k: stmark2: enable edma support for dspi 2020-07-27 12:32:00 +10:00
timers.c
vectors.c