All of lore.kernel.org
 help / color / mirror / Atom feed
From: Valentine Barshak <valentine.barshak@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 2/2] arm: shmobile: koelsch: Add SATA support
Date: Thu, 19 Dec 2013 17:59:05 +0000	[thread overview]
Message-ID: <1387475945-25995-3-git-send-email-valentine.barshak@cogentembedded.com> (raw)
In-Reply-To: <201310310219.58963.sergei.shtylyov@cogentembedded.com>

This adds SATA support to Koelsch board. Only SATA0 port is available.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
---
 arch/arm/mach-shmobile/board-koelsch.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index de7cc64..2ab5c75 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -148,6 +148,21 @@ static const struct gpio_keys_platform_data koelsch_keys_pdata __initconst = {
 	.nbuttons	= ARRAY_SIZE(gpio_buttons),
 };
 
+/* SATA0 */
+static const struct resource sata0_resources[] __initconst = {
+	DEFINE_RES_MEM(0xee300000, 0x2000),
+	DEFINE_RES_IRQ(gic_spi(105)),
+};
+
+static const struct platform_device_info sata0_info __initconst = {
+	.parent		= &platform_bus,
+	.name		= "sata-r8a7791",
+	.id		= 0,
+	.res		= sata0_resources,
+	.num_res	= ARRAY_SIZE(sata0_resources),
+	.dma_mask	= DMA_BIT_MASK(32),
+};
+
 static const struct pinctrl_map koelsch_pinctrl_map[] = {
 	/* DU */
 	PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791",
@@ -192,6 +207,8 @@ static void __init koelsch_add_standard_devices(void)
 				      sizeof(koelsch_keys_pdata));
 
 	koelsch_add_du_device();
+
+	platform_device_register_full(&sata0_info);
 }
 
 /*
-- 
1.8.3.1


  parent reply	other threads:[~2013-12-19 17:59 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30 22:16 [PATCH 0/2] Add Ether support for R8A7791/Koelsch board Sergei Shtylyov
2013-10-30 23:16 ` Sergei Shtylyov
2013-10-30 22:18 ` [PATCH 1/2] ARM: shmobile: r8a7791: add Ether clock Sergei Shtylyov
2013-10-30 23:18   ` Sergei Shtylyov
2013-10-31  6:06   ` Simon Horman
2013-10-31  6:06     ` Simon Horman
2013-10-31 20:50     ` Sergei Shtylyov
2013-10-31 21:50       ` Sergei Shtylyov
2013-11-01  6:29       ` Simon Horman
2013-11-01  6:29         ` Simon Horman
2013-12-19 17:59   ` [PATCH 1/2] arm: shmobile: r8a7791: Add SATA clocks Valentine Barshak
2014-01-09  8:25   ` Simon Horman
2014-02-06 21:12   ` [PATCH 1/2] ARM: shmobile: r8a7791: add Ether DT support Sergei Shtylyov
2014-02-06 22:12     ` Sergei Shtylyov
2014-02-06 22:12     ` Sergei Shtylyov
2014-02-10 12:54     ` Ben Dooks
2014-02-10 12:54       ` Ben Dooks
2014-02-10 12:54       ` Ben Dooks
2014-02-10 13:24       ` Sergei Shtylyov
2014-02-10 13:24         ` Sergei Shtylyov
2014-02-10 13:24         ` Sergei Shtylyov
2014-05-29 11:05   ` [PATCH 1/2] arm: shmobile: r8a7791: add USB3.0 clocks to device tree Yoshihiro Shimoda
2014-05-29 11:05     ` Yoshihiro Shimoda
2014-05-29 11:05     ` Yoshihiro Shimoda
2013-10-30 22:20 ` [PATCH 2/2] ARM: shmobile: Koelsch: add Ether support Sergei Shtylyov
2013-10-30 23:19   ` Sergei Shtylyov
2013-10-31  5:02   ` Simon Horman
2013-10-31  5:02     ` Simon Horman
2013-10-31 20:25     ` Sergei Shtylyov
2013-10-31 21:24       ` Sergei Shtylyov
2013-10-31  8:06   ` Magnus Damm
2013-10-31  8:06     ` Magnus Damm
2013-10-31 18:03     ` Sergei Shtylyov
2013-10-31 19:03       ` Sergei Shtylyov
2013-12-09 18:58       ` Sergei Shtylyov
2013-12-09 19:57         ` Sergei Shtylyov
2013-12-09 21:14         ` Sergei Shtylyov
2013-12-09 22:14           ` Sergei Shtylyov
2013-12-18 20:23         ` Sergei Shtylyov
2013-12-18 21:23           ` Sergei Shtylyov
2013-10-31  8:10   ` Magnus Damm
2013-10-31  8:10     ` Magnus Damm
2013-10-31 18:47     ` Sergei Shtylyov
2013-10-31 19:46       ` Sergei Shtylyov
2013-12-19 17:59   ` Valentine Barshak [this message]
2014-11-11  4:37   ` [PATCH 2/2] ARM: shmobile: koelsch: add Volume Ramp usage on comment Kuninori Morimoto

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=1387475945-25995-3-git-send-email-valentine.barshak@cogentembedded.com \
    --to=valentine.barshak@cogentembedded.com \
    --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.