Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin arch: add SDIO host driver platform data

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>

authored by

Cliff Cai and committed by
Bryan Wu
501674a5 e062ceab

+52
+19
arch/blackfin/include/asm/bfin_sdh.h
··· 1 + /* 2 + * bfin_sdh.h - Blackfin SDH definitions 3 + * 4 + * Copyright 2008 Analog Devices Inc. 5 + * 6 + * Licensed under the GPL-2 or later. 7 + */ 8 + 9 + #ifndef __BFIN_SDH_H__ 10 + #define __BFIN_SDH_H__ 11 + 12 + struct bfin_sd_host { 13 + int dma_chan; 14 + int irq_int0; 15 + int irq_int1; 16 + u16 pin_req[7]; 17 + }; 18 + 19 + #endif
+22
arch/blackfin/mach-bf518/boards/ezbrd.c
··· 44 44 #include <asm/reboot.h> 45 45 #include <asm/portmux.h> 46 46 #include <asm/dpmc.h> 47 + #include <asm/bfin_sdh.h> 47 48 #include <linux/spi/ad7877.h> 48 49 49 50 /* ··· 523 522 }; 524 523 #endif 525 524 525 + #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 526 + 527 + static struct bfin_sd_host bfin_sdh_data = { 528 + .dma_chan = CH_RSI, 529 + .irq_int0 = IRQ_RSI_INT0, 530 + .pin_req = {P_RSI_DATA0, P_RSI_DATA1, P_RSI_DATA2, P_RSI_DATA3, P_RSI_CMD, P_RSI_CLK, 0}, 531 + }; 532 + 533 + static struct platform_device bf51x_sdh_device = { 534 + .name = "bfin-sdh", 535 + .id = 0, 536 + .dev = { 537 + .platform_data = &bfin_sdh_data, 538 + }, 539 + }; 540 + #endif 541 + 526 542 static struct resource bfin_gpios_resources = { 527 543 .start = 0, 528 544 .end = MAX_BLACKFIN_GPIOS - 1, ··· 616 598 617 599 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 618 600 &bfin_device_gpiokeys, 601 + #endif 602 + 603 + #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 604 + &bf51x_sdh_device, 619 605 #endif 620 606 621 607 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
+11
arch/blackfin/mach-bf548/boards/ezkit.c
··· 45 45 #include <asm/nand.h> 46 46 #include <asm/dpmc.h> 47 47 #include <asm/portmux.h> 48 + #include <asm/bfin_sdh.h> 48 49 #include <mach/bf54x_keys.h> 49 50 #include <linux/input.h> 50 51 #include <linux/spi/ad7877.h> ··· 505 504 #endif 506 505 507 506 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 507 + 508 + static struct bfin_sd_host bfin_sdh_data = { 509 + .dma_chan = CH_SDH, 510 + .irq_int0 = IRQ_SDH_MASK0, 511 + .pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0}, 512 + }; 513 + 508 514 static struct platform_device bf54x_sdh_device = { 509 515 .name = "bfin-sdh", 510 516 .id = 0, 517 + .dev = { 518 + .platform_data = &bfin_sdh_data, 519 + }, 511 520 }; 512 521 #endif 513 522