From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Cc: akpm@linux-foundation.org, linux-mmc@vger.kernel.org,
ian@mnementh.co.uk, lethal@linux-sh.org,
Magnus Damm <magnus.damm@gmail.com>,
g.liakhovetski@gmx.de
Subject: [PATCH 07/07] sh: SDHI platform data to the kfr2r09 board
Date: Fri, 02 Oct 2009 11:23:19 +0900 [thread overview]
Message-ID: <20091002022319.8215.68511.sendpatchset@rxone.opensource.se> (raw)
In-Reply-To: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se>
From: Magnus Damm <damm@opensource.se>
Add SD Card support to the kfr2r09 board using the
sh_mobile_sdhi driver hooked up to SDHI0 and yc304.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/sh/boards/mach-kfr2r09/setup.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
--- 0001/arch/sh/boards/mach-kfr2r09/setup.c
+++ work/arch/sh/boards/mach-kfr2r09/setup.c 2009-10-01 13:22:17.000000000 +0900
@@ -212,11 +212,34 @@ static struct platform_device kfr2r09_us
.resource = kfr2r09_usb0_gadget_resources,
};
+static struct resource kfr2r09_sh_sdhi0_resources[] = {
+ [0] = {
+ .name = "SDHI0",
+ .start = 0x04ce0000,
+ .end = 0x04ce01ff,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = 101,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device kfr2r09_sh_sdhi0_device = {
+ .name = "sh_mobile_sdhi",
+ .num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources),
+ .resource = kfr2r09_sh_sdhi0_resources,
+ .archdata = {
+ .hwblk_id = HWBLK_SDHI0,
+ },
+};
+
static struct platform_device *kfr2r09_devices[] __initdata = {
&kfr2r09_nor_flash_device,
&kfr2r09_nand_flash_device,
&kfr2r09_sh_keysc_device,
&kfr2r09_sh_lcdc_device,
+ &kfr2r09_sh_sdhi0_device,
};
#define BSC_CS0BCR 0xfec10004
@@ -361,6 +384,16 @@ static int __init kfr2r09_devices_setup(
if (kfr2r09_usb0_gadget_setup() == 0)
platform_device_register(&kfr2r09_usb0_gadget_device);
+ /* SDHI0 connected to yc304 */
+ gpio_request(GPIO_FN_SDHI0CD, NULL);
+ gpio_request(GPIO_FN_SDHI0WP, NULL);
+ gpio_request(GPIO_FN_SDHI0D3, NULL);
+ gpio_request(GPIO_FN_SDHI0D2, NULL);
+ gpio_request(GPIO_FN_SDHI0D1, NULL);
+ gpio_request(GPIO_FN_SDHI0D0, NULL);
+ gpio_request(GPIO_FN_SDHI0CMD, NULL);
+ gpio_request(GPIO_FN_SDHI0CLK, NULL);
+
return platform_add_devices(kfr2r09_devices,
ARRAY_SIZE(kfr2r09_devices));
}
WARNING: multiple messages have this Message-ID (diff)
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Cc: akpm@linux-foundation.org, linux-mmc@vger.kernel.org,
ian@mnementh.co.uk, lethal@linux-sh.org,
Magnus Damm <magnus.damm@gmail.com>,
g.liakhovetski@gmx.de
Subject: [PATCH 07/07] sh: SDHI platform data to the kfr2r09 board
Date: Fri, 02 Oct 2009 02:23:19 +0000 [thread overview]
Message-ID: <20091002022319.8215.68511.sendpatchset@rxone.opensource.se> (raw)
In-Reply-To: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se>
From: Magnus Damm <damm@opensource.se>
Add SD Card support to the kfr2r09 board using the
sh_mobile_sdhi driver hooked up to SDHI0 and yc304.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/sh/boards/mach-kfr2r09/setup.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
--- 0001/arch/sh/boards/mach-kfr2r09/setup.c
+++ work/arch/sh/boards/mach-kfr2r09/setup.c 2009-10-01 13:22:17.000000000 +0900
@@ -212,11 +212,34 @@ static struct platform_device kfr2r09_us
.resource = kfr2r09_usb0_gadget_resources,
};
+static struct resource kfr2r09_sh_sdhi0_resources[] = {
+ [0] = {
+ .name = "SDHI0",
+ .start = 0x04ce0000,
+ .end = 0x04ce01ff,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = 101,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device kfr2r09_sh_sdhi0_device = {
+ .name = "sh_mobile_sdhi",
+ .num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources),
+ .resource = kfr2r09_sh_sdhi0_resources,
+ .archdata = {
+ .hwblk_id = HWBLK_SDHI0,
+ },
+};
+
static struct platform_device *kfr2r09_devices[] __initdata = {
&kfr2r09_nor_flash_device,
&kfr2r09_nand_flash_device,
&kfr2r09_sh_keysc_device,
&kfr2r09_sh_lcdc_device,
+ &kfr2r09_sh_sdhi0_device,
};
#define BSC_CS0BCR 0xfec10004
@@ -361,6 +384,16 @@ static int __init kfr2r09_devices_setup(
if (kfr2r09_usb0_gadget_setup() = 0)
platform_device_register(&kfr2r09_usb0_gadget_device);
+ /* SDHI0 connected to yc304 */
+ gpio_request(GPIO_FN_SDHI0CD, NULL);
+ gpio_request(GPIO_FN_SDHI0WP, NULL);
+ gpio_request(GPIO_FN_SDHI0D3, NULL);
+ gpio_request(GPIO_FN_SDHI0D2, NULL);
+ gpio_request(GPIO_FN_SDHI0D1, NULL);
+ gpio_request(GPIO_FN_SDHI0D0, NULL);
+ gpio_request(GPIO_FN_SDHI0CMD, NULL);
+ gpio_request(GPIO_FN_SDHI0CLK, NULL);
+
return platform_add_devices(kfr2r09_devices,
ARRAY_SIZE(kfr2r09_devices));
}
next prev parent reply other threads:[~2009-10-02 2:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 2:21 [PATCH 00/07] sh: SuperH Mobile SDHI changes Magnus Damm
2009-10-02 2:21 ` Magnus Damm
2009-10-02 2:22 ` [PATCH 01/07] mfd: Add SuperH Mobile SDHI platform driver Magnus Damm
2009-10-02 2:22 ` Magnus Damm
2009-10-02 2:22 ` [PATCH 02/07] mmc: Add SuperH to the tmio-mmc Kconfig Magnus Damm
2009-10-02 2:22 ` Magnus Damm
2009-10-02 2:22 ` [PATCH 03/07] mmc: Remove const from tmio-mmc platform data Magnus Damm
2009-10-02 2:22 ` Magnus Damm
2009-10-02 2:22 ` [PATCH 04/07] sh: SDHI platform data to the Migo-R board Magnus Damm
2009-10-02 2:22 ` Magnus Damm
2009-10-02 2:22 ` [PATCH 05/07] sh: SDHI platform data to the AP325RXA board Magnus Damm
2009-10-02 2:22 ` Magnus Damm
2009-10-02 2:23 ` [PATCH 06/07] sh: SDHI platform data to the SE7724 board Magnus Damm
2009-10-02 2:23 ` Magnus Damm
2009-10-02 2:23 ` Magnus Damm [this message]
2009-10-02 2:23 ` [PATCH 07/07] sh: SDHI platform data to the kfr2r09 board Magnus Damm
2009-10-02 18:23 ` [PATCH 00/07] sh: SuperH Mobile SDHI changes Ian Molton
2009-10-02 18:23 ` Ian Molton
2009-10-08 21:53 ` Andrew Morton
2009-10-08 21:53 ` Andrew Morton
2009-10-05 2:23 ` Paul Mundt
2009-10-05 2:23 ` Paul Mundt
2009-10-05 20:02 ` Ian Molton
2009-10-05 20:02 ` Ian Molton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091002022319.8215.68511.sendpatchset@rxone.opensource.se \
--to=magnus.damm@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=g.liakhovetski@gmx.de \
--cc=ian@mnementh.co.uk \
--cc=lethal@linux-sh.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.