Added: trunk/arch/blackfin/include/asm/bfin_sdh.h (0 => 5919)
--- trunk/arch/blackfin/include/asm/bfin_sdh.h (rev 0)
+++ trunk/arch/blackfin/include/asm/bfin_sdh.h 2008-12-29 08:06:06 UTC (rev 5919)
@@ -0,0 +1,40 @@
+/*
+ * File: include/asm-blackfin/bfin_sdh.h
+ * Based on:
+ * Author: Cliff Cai ([email protected])
+ *
+ * Created: Mon Dec. 29 2008
+ * Description:
+ *
+ * Modified:
+ * Copyright 2008-2010 Analog Devices Inc.
+ *
+ * Bugs: Enter bugs at http://blackfin.uclinux.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see the file COPYING, or write
+ * to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __BFIN_SDH_H__
+#define __BFIN_SDH_H__
+
+struct bfin_sd_host {
+ int dma_chan;
+ int irq_int0;
+ int irq_int1;
+ u16 pin_req[6];
+};
+
+#endif
Modified: trunk/arch/blackfin/mach-bf518/boards/ezbrd.c (5918 => 5919)
--- trunk/arch/blackfin/mach-bf518/boards/ezbrd.c 2008-12-29 08:05:27 UTC (rev 5918)
+++ trunk/arch/blackfin/mach-bf518/boards/ezbrd.c 2008-12-29 08:06:06 UTC (rev 5919)
@@ -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>
/*
@@ -522,6 +523,23 @@
};
#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},
+};
+
+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,
@@ -600,6 +618,10 @@
&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