Commit 8d8921a2 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: fix bug: kernel crash when enable SDIO host driver

update bfin-sdh platform data to fix this issue.
Pointed-out-by: default avatarDominik Herwald <d.herwald@dsh-elektronik.de>
Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent b339dc79
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <asm/gpio.h> #include <asm/gpio.h>
#include <asm/nand.h> #include <asm/nand.h>
#include <asm/portmux.h> #include <asm/portmux.h>
#include <asm/bfin_sdh.h>
#include <mach/bf54x_keys.h> #include <mach/bf54x_keys.h>
#include <asm/dpmc.h> #include <asm/dpmc.h>
#include <linux/input.h> #include <linux/input.h>
...@@ -449,9 +450,18 @@ static struct platform_device bf5xx_nand_device = { ...@@ -449,9 +450,18 @@ static struct platform_device bf5xx_nand_device = {
#endif #endif
#if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
static struct bfin_sd_host bfin_sdh_data = {
.dma_chan = CH_SDH,
.irq_int0 = IRQ_SDH_MASK0,
.pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0},
};
static struct platform_device bf54x_sdh_device = { static struct platform_device bf54x_sdh_device = {
.name = "bfin-sdh", .name = "bfin-sdh",
.id = 0, .id = 0,
.dev = {
.platform_data = &bfin_sdh_data,
},
}; };
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment