OpenCloudOS-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 m68k: add Sysam stmark2 open board support 2017-11-07 13:27:38 +10:00
amcore.c m68k: add Sysam AMCORE open board support 2016-12-05 08:53:27 +10:00
cache.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dma_timer.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
entry.S m68k/coldfire: Use CONFIG_PREEMPTION 2019-11-11 10:54:40 +10:00
firebee.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gpio.c m68k: coldfire: Include the GPIO driver header 2019-09-09 09:32:32 +10:00
head.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
intc-2.c
intc-525x.c
intc-5249.c
intc-5272.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
intc-simr.c m68k: coldfire: move inline before return type 2017-07-12 16:26:04 -07:00
intc.c
m53xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
m54xx.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
m520x.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m523x.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m525x.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m527x.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m528x.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m5206.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m5249.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m5272.c net: phy: fixed-phy: Drop GPIO from fixed_phy_add() 2019-02-04 18:33:36 -08:00
m5307.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m5407.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
m5441x.c m68k: coldfire/clk.c: move m5441x specific code 2020-05-28 11:22:16 +02:00
mcf8390.c
nettel.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci.c m68k/PCI: Fix a memory leak in an error handling path 2020-05-25 10:32:20 +10:00
pit.c m68k: Replace setup_irq() by request_irq() 2020-03-23 12:01:19 +10:00
reset.c
sltimers.c m68k: Replace setup_irq() by request_irq() 2020-03-23 12:01:19 +10:00
stmark2.c m68k: stmark2: enable edma support for dspi 2020-07-27 12:32:00 +10:00
timers.c m68k: Replace setup_irq() by request_irq() 2020-03-23 12:01:19 +10:00
vectors.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00