Loading arch/blackfin/include/asm/bfin_sdh.h 0 → 100644 +19 −0 Original line number Diff line number Diff line /* * bfin_sdh.h - Blackfin SDH definitions * * Copyright 2008 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __BFIN_SDH_H__ #define __BFIN_SDH_H__ struct bfin_sd_host { int dma_chan; int irq_int0; int irq_int1; u16 pin_req[7]; }; #endif arch/blackfin/mach-bf518/boards/ezbrd.c +22 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include <asm/reboot.h> #include <asm/portmux.h> #include <asm/dpmc.h> #include <asm/bfin_sdh.h> #include <linux/spi/ad7877.h> /* Loading Loading @@ -522,6 +523,23 @@ static struct platform_device bfin_device_gpiokeys = { }; #endif #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) static struct bfin_sd_host bfin_sdh_data = { .dma_chan = CH_RSI, .irq_int0 = IRQ_RSI_INT0, .pin_req = {P_RSI_DATA0, P_RSI_DATA1, P_RSI_DATA2, P_RSI_DATA3, P_RSI_CMD, P_RSI_CLK, 0}, }; static struct platform_device bf51x_sdh_device = { .name = "bfin-sdh", .id = 0, .dev = { .platform_data = &bfin_sdh_data, }, }; #endif static struct resource bfin_gpios_resources = { .start = 0, .end = MAX_BLACKFIN_GPIOS - 1, Loading Loading @@ -600,6 +618,10 @@ static struct platform_device *stamp_devices[] __initdata = { &bfin_device_gpiokeys, #endif #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) &bf51x_sdh_device, #endif #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) &ezbrd_flash_device, #endif Loading arch/blackfin/mach-bf548/boards/ezkit.c +11 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #include <asm/nand.h> #include <asm/dpmc.h> #include <asm/portmux.h> #include <asm/bfin_sdh.h> #include <mach/bf54x_keys.h> #include <linux/input.h> #include <linux/spi/ad7877.h> Loading Loading @@ -504,9 +505,19 @@ static struct platform_device bf5xx_nand_device = { #endif #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 = { .name = "bfin-sdh", .id = 0, .dev = { .platform_data = &bfin_sdh_data, }, }; #endif Loading Loading
arch/blackfin/include/asm/bfin_sdh.h 0 → 100644 +19 −0 Original line number Diff line number Diff line /* * bfin_sdh.h - Blackfin SDH definitions * * Copyright 2008 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __BFIN_SDH_H__ #define __BFIN_SDH_H__ struct bfin_sd_host { int dma_chan; int irq_int0; int irq_int1; u16 pin_req[7]; }; #endif
arch/blackfin/mach-bf518/boards/ezbrd.c +22 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include <asm/reboot.h> #include <asm/portmux.h> #include <asm/dpmc.h> #include <asm/bfin_sdh.h> #include <linux/spi/ad7877.h> /* Loading Loading @@ -522,6 +523,23 @@ static struct platform_device bfin_device_gpiokeys = { }; #endif #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) static struct bfin_sd_host bfin_sdh_data = { .dma_chan = CH_RSI, .irq_int0 = IRQ_RSI_INT0, .pin_req = {P_RSI_DATA0, P_RSI_DATA1, P_RSI_DATA2, P_RSI_DATA3, P_RSI_CMD, P_RSI_CLK, 0}, }; static struct platform_device bf51x_sdh_device = { .name = "bfin-sdh", .id = 0, .dev = { .platform_data = &bfin_sdh_data, }, }; #endif static struct resource bfin_gpios_resources = { .start = 0, .end = MAX_BLACKFIN_GPIOS - 1, Loading Loading @@ -600,6 +618,10 @@ static struct platform_device *stamp_devices[] __initdata = { &bfin_device_gpiokeys, #endif #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) &bf51x_sdh_device, #endif #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) &ezbrd_flash_device, #endif Loading
arch/blackfin/mach-bf548/boards/ezkit.c +11 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #include <asm/nand.h> #include <asm/dpmc.h> #include <asm/portmux.h> #include <asm/bfin_sdh.h> #include <mach/bf54x_keys.h> #include <linux/input.h> #include <linux/spi/ad7877.h> Loading Loading @@ -504,9 +505,19 @@ static struct platform_device bf5xx_nand_device = { #endif #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 = { .name = "bfin-sdh", .id = 0, .dev = { .platform_data = &bfin_sdh_data, }, }; #endif Loading