From: ulrich.hecht+renesas@gmail.com (Ulrich Hecht)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] pinctrl: sh-pfc: r8a7795: Add SATA support
Date: Mon, 14 Dec 2015 16:42:36 +0100 [thread overview]
Message-ID: <1450107758-2544-5-git-send-email-ulrich.hecht+renesas@gmail.com> (raw)
In-Reply-To: <1450107758-2544-1-git-send-email-ulrich.hecht+renesas@gmail.com>
From: Takeshi Kihara <takeshi.kihara.df@renesas.com>
This patch adds SATA0 pinmux support to r8a7795 SoC.
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[uli: adjusted for new PFC driver]
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index 35e0172..d036c92 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -2492,6 +2492,22 @@ static const unsigned int msiof3_rxd_d_mux[] = {
MSIOF3_RXD_D_MARK,
};
+/* - SATA --------------------------------------------------------------------*/
+static const unsigned int sata0_devslp_a_pins[] = {
+ /* DEVSLP */
+ RCAR_GP_PIN(6, 16),
+};
+static const unsigned int sata0_devslp_a_mux[] = {
+ SATA_DEVSLP_A_MARK,
+};
+static const unsigned int sata0_devslp_b_pins[] = {
+ /* DEVSLP */
+ RCAR_GP_PIN(4, 6),
+};
+static const unsigned int sata0_devslp_b_mux[] = {
+ SATA_DEVSLP_B_MARK,
+};
+
/* - SCIF0 ------------------------------------------------------------------ */
static const unsigned int scif0_data_pins[] = {
/* RX, TX */
@@ -3020,6 +3036,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(msiof3_ss1_d),
SH_PFC_PIN_GROUP(msiof3_txd_d),
SH_PFC_PIN_GROUP(msiof3_rxd_d),
+ SH_PFC_PIN_GROUP(sata0_devslp_a),
+ SH_PFC_PIN_GROUP(sata0_devslp_b),
SH_PFC_PIN_GROUP(scif0_data),
SH_PFC_PIN_GROUP(scif0_clk),
SH_PFC_PIN_GROUP(scif0_ctrl),
@@ -3267,6 +3285,11 @@ static const char * const msiof3_groups[] = {
"msiof3_rxd_d",
};
+static const char * const sata0_groups[] = {
+ "sata0_devslp_a",
+ "sata0_devslp_b",
+};
+
static const char * const scif0_groups[] = {
"scif0_data",
"scif0_clk",
@@ -3358,6 +3381,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(msiof1),
SH_PFC_FUNCTION(msiof2),
SH_PFC_FUNCTION(msiof3),
+ SH_PFC_FUNCTION(sata0),
SH_PFC_FUNCTION(scif0),
SH_PFC_FUNCTION(scif1),
SH_PFC_FUNCTION(scif2),
--
2.6.3
next prev parent reply other threads:[~2015-12-14 15:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 15:42 [PATCH 0/6] SATA for r8a7795, Salvator-X Ulrich Hecht
2015-12-14 15:42 ` [PATCH 1/6] clk: shmobile: r8a7795: Add SATA0 clock Ulrich Hecht
2015-12-15 10:41 ` Geert Uytterhoeven
2015-12-14 15:42 ` [PATCH 2/6] arm64: dts: r8a7795: Add SATA controller node Ulrich Hecht
2015-12-15 10:44 ` Geert Uytterhoeven
2015-12-15 11:21 ` Ulrich Hecht
2015-12-16 4:39 ` Simon Horman
2015-12-14 15:42 ` [PATCH 3/6] arm64: dts: salvator-x: Enable SATA controller Ulrich Hecht
2015-12-14 15:42 ` Ulrich Hecht [this message]
2015-12-16 9:55 ` [PATCH 4/6] pinctrl: sh-pfc: r8a7795: Add SATA support Geert Uytterhoeven
2015-12-14 15:42 ` [PATCH 5/6] pinctrl: sh-pfc: r8a7795: add SATA0 pin conf to DT Ulrich Hecht
2015-12-16 10:11 ` Geert Uytterhoeven
2015-12-16 10:23 ` Ulrich Hecht
2015-12-14 15:42 ` [PATCH 6/6] arm64: defconfig: Add Renesas R-Car SATA driver for R-Car Gen3 SoCs Ulrich Hecht
2015-12-15 4:22 ` [PATCH 0/6] SATA for r8a7795, Salvator-X Simon Horman
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=1450107758-2544-5-git-send-email-ulrich.hecht+renesas@gmail.com \
--to=ulrich.hecht+renesas@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).