Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274253
b: refs/heads/master
c: 4e92794
h: refs/heads/master
i:
  274251: fa95e07
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Aug 29, 2011
1 parent f2db63a commit d4f30ac
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae6e70831805c1d3bb4cdb87a29877b9846d3c15
refs/heads/master: 4e9279452502c043469cf34cd813db83ae87c7d3
49 changes: 49 additions & 0 deletions trunk/arch/arm/mach-shmobile/board-kota2.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <linux/input/sh_keysc.h>
#include <linux/gpio_keys.h>
#include <linux/leds.h>
#include <linux/mmc/host.h>
#include <linux/mmc/sh_mmcif.h>
#include <mach/hardware.h>
#include <mach/sh73a0.h>
#include <mach/common.h>
Expand Down Expand Up @@ -171,11 +173,44 @@ static struct platform_device gpio_leds_device = {
},
};

static struct resource mmcif_resources[] = {
[0] = {
.name = "MMCIF",
.start = 0xe6bd0000,
.end = 0xe6bd00ff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = gic_spi(140),
.flags = IORESOURCE_IRQ,
},
[2] = {
.start = gic_spi(141),
.flags = IORESOURCE_IRQ,
},
};

static struct sh_mmcif_plat_data mmcif_info = {
.ocr = MMC_VDD_165_195,
.caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
};

static struct platform_device mmcif_device = {
.name = "sh_mmcif",
.id = 0,
.dev = {
.platform_data = &mmcif_info,
},
.num_resources = ARRAY_SIZE(mmcif_resources),
.resource = mmcif_resources,
};

static struct platform_device *kota2_devices[] __initdata = {
&eth_device,
&keysc_device,
&gpio_keys_device,
&gpio_leds_device,
&mmcif_device,
};

static struct map_desc kota2_io_desc[] __initdata = {
Expand Down Expand Up @@ -264,6 +299,20 @@ static void __init kota2_init(void)
gpio_request(GPIO_FN_PORT58_KEYOUT7, NULL);
gpio_request(GPIO_FN_KEYOUT8, NULL);

/* MMCIF */
gpio_request(GPIO_FN_MMCCLK0, NULL);
gpio_request(GPIO_FN_MMCD0_0, NULL);
gpio_request(GPIO_FN_MMCD0_1, NULL);
gpio_request(GPIO_FN_MMCD0_2, NULL);
gpio_request(GPIO_FN_MMCD0_3, NULL);
gpio_request(GPIO_FN_MMCD0_4, NULL);
gpio_request(GPIO_FN_MMCD0_5, NULL);
gpio_request(GPIO_FN_MMCD0_6, NULL);
gpio_request(GPIO_FN_MMCD0_7, NULL);
gpio_request(GPIO_FN_MMCCMD0, NULL);
gpio_request(GPIO_PORT208, NULL); /* Reset */
gpio_direction_output(GPIO_PORT208, 1);

#ifdef CONFIG_CACHE_L2X0
/* Early BRESP enable, Shared attribute override enable, 64K*8way */
l2x0_init(__io(0xf0100000), 0x40460000, 0x82000fff);
Expand Down

0 comments on commit d4f30ac

Please sign in to comment.