diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-11-26 20:18:29 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-01-13 12:48:28 -0500 |
commit | ff0fa48f8196775a055751a115fac45996115467 (patch) | |
tree | de4171282bf8a65b4dff06f7a15898ec81b2df26 /drivers/mmc | |
parent | 67debea34484f1f8ca4189ffd953ce317d979504 (diff) |
mmc: sdhi: Enable driver compilation with COMPILE_TEST
This helps increasing build testing coverage.
The driver doesn't compile on (at least) x86 due (possibly among others)
to missing readsw/writesw I/O accessors, restrict compilation to SUPERH
or ARM.
Whether the CTL_DMA_ENABLE register is part of the standard TMIO
controller or is Renesas-specific is unknown and impossible to test as
we have no current or planned TMIO DMA users other than SUPERH and
ARCH_SHMOBILE. Writing to the register is thus conditionally compiled
for SUPERH and ARCH_SHMOBILE only. Adding ARCH_SHMOBILE_MULTI to the
list would extend this to multiarch kernels, but would break the driver
for non-shmobile platforms if the register is Renesas-specific. We can
thus get rid of the conditional compilation completely without
introducing any further issue, and let future non-Renesas users deal
with the situation if it turns out to be a the problem.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 7fc5099e44b2..ca1315e4d726 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig | |||
@@ -479,7 +479,8 @@ config MMC_TMIO | |||
479 | 479 | ||
480 | config MMC_SDHI | 480 | config MMC_SDHI |
481 | tristate "SH-Mobile SDHI SD/SDIO controller support" | 481 | tristate "SH-Mobile SDHI SD/SDIO controller support" |
482 | depends on SUPERH || ARCH_SHMOBILE | 482 | depends on SUPERH || ARM |
483 | depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST | ||
483 | select MMC_TMIO_CORE | 484 | select MMC_TMIO_CORE |
484 | help | 485 | help |
485 | This provides support for the SDHI SD/SDIO controller found in | 486 | This provides support for the SDHI SD/SDIO controller found in |