Skip to content

Commit

Permalink
ARM: 5957/1: ARM: RealView SD/MMC Card detection and write-protect us…
Browse files Browse the repository at this point in the history
…ing GPIOLIB

The switch to using GPIOLIB broke the sd/mmc card detection on the
RealView development boards if GPIO_PL061 was not selected.
This patch selects GPIO_PL061 if GPIOLIB is selected.
The sense of the return value from mmc_status has also changed
and is corrected.

Signed-off-by: Colin Tuckley <colin.tuckley@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Colin Tuckley authored and Russell King committed Apr 28, 2010
1 parent 0ad7074 commit b56ba8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Expand Up @@ -253,6 +253,7 @@ config ARCH_REALVIEW
select GENERIC_TIME
select GENERIC_CLOCKEVENTS
select ARCH_WANT_OPTIONAL_GPIOLIB
select GPIO_PL061 if GPIOLIB
help
This enables support for ARM Ltd RealView boards.

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-realview/core.c
Expand Up @@ -254,7 +254,7 @@ static unsigned int realview_mmc_status(struct device *dev)
else
mask = 2;

return readl(REALVIEW_SYSMCI) & mask;
return !(readl(REALVIEW_SYSMCI) & mask);
}

struct mmci_platform_data realview_mmc0_plat_data = {
Expand Down

0 comments on commit b56ba8a

Please sign in to comment.