ARM: EXYNOS4: Fix card insert/removal event detection on smdkv310 board
Subsystems (3)
PATCH 1/1 ARM: EXYNOS4: Fix card insert/removal event detection on smdkv310 board
On SMDKV310 board, a card detect gpio pin is available that is directly connected to the io pad of the sdhci controller. Fix incorrect value of cd_type field in platform data for sdhci instance 0 and 2.
--- arch/arm/mach-exynos4/mach-smdkv310.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
arch/arm/mach-exynos4/mach-smdkv310.c +2 -6
@@ -78,9 +78,7 @@ static struct s3c2410_uartcfg smdkv310_uartcfgs[] __initdata = { };static struct s3c_sdhci_platdata smdkv310_hsmmc0_pdata__initdata = { - .cd_type =S3C_SDHCI_CD_GPIO , - .ext_cd_gpio =EXYNOS4_GPK0 (2 ), - .ext_cd_gpio_invert =1 , + .cd_type =S3C_SDHCI_CD_INTERNAL , .clk_type =S3C_SDHCI_CLK_DIV_EXTERNAL , #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BIT .max_width = 8,
@@ -96,9 +94,7 @@ static struct s3c_sdhci_platdata smdkv310_hsmmc1_pdata __initdata = { };static struct s3c_sdhci_platdata smdkv310_hsmmc2_pdata__initdata = { - .cd_type =S3C_SDHCI_CD_GPIO , - .ext_cd_gpio =EXYNOS4_GPK2 (2 ), - .ext_cd_gpio_invert =1 , + .cd_type =S3C_SDHCI_CD_INTERNAL , .clk_type =S3C_SDHCI_CLK_DIV_EXTERNAL , #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT .max_width = 8,
Signature · 1 line
1.6.6.rc2
Kukjin Kim
Appliedarch/arm/mach-exynos4/mach-smdkv310.c static struct s3c2410_uartcfg smdkv310_uartcfgs[]
Quoted 16 lines · Thomas Abraham
On SMDKV310 board, a card detect gpio pin is available that is directly connected to the io pad of the sdhci controller. Fix incorrect value of
cd_typefield in platform data for sdhci instance 0 and 2.Signed-off-by Thomas Abraham <[email protected]>--- arch/arm/mach-exynos4/mach-smdkv310.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)arch/arm/mach- renamed from arch/arm/mach-exynos4/mach-smdkv310.c +0
-0
exynos4/mach-smdkv310.c
index 1526764..edd8141 100644arch/arm/mach-exynos4/mach-smdkv310.c +0
-0@@ -78,9 +78,7 @@ static struct s3c2410_uartcfg smdkv310_uartcfgs[]
__initdata
Quoted 22 lines
arch/arm/mach-exynos4/mach-smdkv310.c +1
-3= { };static struct s3c_sdhci_platdata smdkv310_hsmmc0_pdata__initdata = { - .cd_type =S3C_SDHCI_CD_GPIO , - .ext_cd_gpio =EXYNOS4_GPK0 (2 ), - .ext_cd_gpio_invert =1 , + .cd_type =S3C_SDHCI_CD_INTERNAL , .clk_type =S3C_SDHCI_CLK_DIV_EXTERNAL , #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BITarch/arm/mach-exynos4/mach-smdkv310.c +1
-3.max_width = 8,@@ -96,9 +94,7 @@ static struct s3c_sdhci_platdata smdkv310_hsmmc1_pdata __initdata = { };static struct s3c_sdhci_platdata smdkv310_hsmmc2_pdata__initdata = { - .cd_type =S3C_SDHCI_CD_GPIO , - .ext_cd_gpio =EXYNOS4_GPK2 (2 ), - .ext_cd_gpio_invert =1 , + .cd_type =S3C_SDHCI_CD_INTERNAL , .clk_type =S3C_SDHCI_CLK_DIV_EXTERNAL , #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT
Quoted 2 lines
.max_width = 8,
--
Applied, thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.