From patchwork Tue Nov 17 03:18:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7632181 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CE73C9F2EC for ; Tue, 17 Nov 2015 03:20:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E91A420527 for ; Tue, 17 Nov 2015 03:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 00A4F20525 for ; Tue, 17 Nov 2015 03:20:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752224AbbKQDSL (ORCPT ); Mon, 16 Nov 2015 22:18:11 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33056 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752161AbbKQDRp (ORCPT ); Mon, 16 Nov 2015 22:17:45 -0500 Received: by pabfh17 with SMTP id fh17so199092711pab.0; Mon, 16 Nov 2015 19:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=ODOx2HGY0Uq6YgPG4Osb4z01OSZYxfTTvuykDlqhgeg=; b=KKGWXGAoNg/1j8IlEjSvF5cswkaeCy7UcmNWJZf/27IKgPkg5kMm+mDi8SiYBRk+kI QDO89snQZWSVT+x7cgUDS5ZhqPIH8yqs74DaMcISSzRl9F+Mt/uTWOxYPH7v1FPX3Dnt cGCEq3x73tNJWpnJp6F1npBLXjHDlTpJJIdC0Frda5I4fGuFbpM96pl53/vAzWoPUzh7 o8kFriYe0nCiewPJyC4QOZJON+d4LTo9GrC5Hsrq/+7hSed4k1zNyxcceFZkHluZY8Ju +FHdmoD+c3LfK6mtv1jR7VaYprnO0bpgAd2qxVICPSFKDwd7nBNgFl2yY9Uh+VqSb24Z b/Mw== X-Received: by 10.68.237.41 with SMTP id uz9mr20349606pbc.165.1447730264899; Mon, 16 Nov 2015 19:17:44 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id fn4sm30342442pab.46.2015.11.16.19.17.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 19:17:42 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: linus.walleij@linaro.org, linux-kernel@vger.kernel.org, koji.matsuoka.xm@renesas.com, linux-gpio@vger.kernel.org, horms@verge.net.au, geert@glider.be, laurent.pinchart@ideasonboard.com, Magnus Damm Date: Tue, 17 Nov 2015 12:18:51 +0900 Message-Id: <20151117031851.24924.18884.sendpatchset@little-apple> In-Reply-To: <20151117031832.24924.60685.sendpatchset@little-apple> References: <20151117031832.24924.60685.sendpatchset@little-apple> Subject: [PATCH 02/04] pinctrl: sh-pfc: r8a7794: Separate DU CDE and DISP Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Separate DU CDE and DISP signals to let the r8a7794 ALT board that lacks CDE handle the DISP signal by itself. The groups "du0_cde_disp" and "du1_cde_disp" are replaced by "du0_cde", "du1_cde", "du0_disp" and "du1_disp". Signed-off-by: Magnus Damm --- drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 50 +++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 16 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0008/drivers/pinctrl/sh-pfc/pfc-r8a7794.c +++ work/drivers/pinctrl/sh-pfc/pfc-r8a7794.c 2015-11-16 15:04:00.760513000 +0900 @@ -1616,19 +1616,33 @@ static const unsigned int du1_sync_mux[] DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK }; -static const unsigned int du0_cde_disp_pins[] = { - /* CDE DISP */ - RCAR_GP_PIN(2, 31), RCAR_GP_PIN(2, 30), -}; -static const unsigned int du0_cde_disp_mux[] = { - DU0_CDE_MARK, DU0_DISP_MARK -}; -static const unsigned int du1_cde_disp_pins[] = { - /* CDE DISP */ - RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 30), +static const unsigned int du0_cde_pins[] = { + /* CDE */ + RCAR_GP_PIN(2, 31), }; -static const unsigned int du1_cde_disp_mux[] = { - DU1_CDE_MARK, DU1_DISP_MARK +static const unsigned int du0_cde_mux[] = { + DU0_CDE_MARK, +}; +static const unsigned int du1_cde_pins[] = { + /* CDE */ + RCAR_GP_PIN(4, 31), +}; +static const unsigned int du1_cde_mux[] = { + DU1_CDE_MARK +}; +static const unsigned int du0_disp_pins[] = { + /* DISP */ + RCAR_GP_PIN(2, 30), +}; +static const unsigned int du0_disp_mux[] = { + DU0_DISP_MARK +}; +static const unsigned int du1_disp_pins[] = { + /* DISP */ + RCAR_GP_PIN(4, 30), +}; +static const unsigned int du1_disp_mux[] = { + DU1_DISP_MARK }; static const unsigned int du0_clk_in_pins[] = { /* CLKIN */ @@ -2932,8 +2946,10 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(du1_clk_out), SH_PFC_PIN_GROUP(du0_sync), SH_PFC_PIN_GROUP(du1_sync), - SH_PFC_PIN_GROUP(du0_cde_disp), - SH_PFC_PIN_GROUP(du1_cde_disp), + SH_PFC_PIN_GROUP(du0_cde), + SH_PFC_PIN_GROUP(du1_cde), + SH_PFC_PIN_GROUP(du0_disp), + SH_PFC_PIN_GROUP(du1_disp), SH_PFC_PIN_GROUP(du0_clk_in), SH_PFC_PIN_GROUP(du1_clk_in), SH_PFC_PIN_GROUP(eth_link), @@ -3122,8 +3138,10 @@ static const char * const du_groups[] = "du1_clk_out", "du0_sync", "du1_sync", - "du0_cde_disp", - "du1_cde_disp", + "du0_cde", + "du1_cde", + "du0_disp", + "du1_disp", }; static const char * const du0_groups[] = {