2 * Copyright (C) ST-Ericsson SA 2010
4 * Author: Hanumath Prasad <ulf.hansson@stericsson.com>
5 * License terms: GNU General Public License (GPL) version 2
8 #include <linux/amba/mmci.h>
9 #include <linux/mmc/host.h>
10 #include <linux/gpio.h>
12 #include <plat/pincfg.h>
13 #include <mach/db5500-regs.h>
14 #include <plat/ste_dma40.h>
16 #include "pins-db5500.h"
17 #include "devices-db5500.h"
18 #include "ste-dma40-db5500.h"
20 static pin_cfg_t u5500_sdi_pins
[] = {
22 GPIO5_MC0_DAT0
| PIN_DIR_INPUT
| PIN_PULL_UP
,
23 GPIO6_MC0_DAT1
| PIN_DIR_INPUT
| PIN_PULL_UP
,
24 GPIO7_MC0_DAT2
| PIN_DIR_INPUT
| PIN_PULL_UP
,
25 GPIO8_MC0_DAT3
| PIN_DIR_INPUT
| PIN_PULL_UP
,
26 GPIO9_MC0_DAT4
| PIN_DIR_INPUT
| PIN_PULL_UP
,
27 GPIO10_MC0_DAT5
| PIN_DIR_INPUT
| PIN_PULL_UP
,
28 GPIO11_MC0_DAT6
| PIN_DIR_INPUT
| PIN_PULL_UP
,
29 GPIO12_MC0_DAT7
| PIN_DIR_INPUT
| PIN_PULL_UP
,
30 GPIO13_MC0_CMD
| PIN_DIR_INPUT
| PIN_PULL_UP
,
31 GPIO14_MC0_CLK
| PIN_DIR_OUTPUT
| PIN_VAL_LOW
,
34 static struct mmci_platform_data u5500_sdi0_data
= {
35 .ocr_mask
= MMC_VDD_165_195
,
37 .capabilities
= MMC_CAP_4_BIT_DATA
|
39 MMC_CAP_MMC_HIGHSPEED
,
44 void __init
u5500_sdi_init(void)
46 nmk_config_pins(u5500_sdi_pins
, ARRAY_SIZE(u5500_sdi_pins
));
48 db5500_add_sdi0(&u5500_sdi0_data
);