From patchwork Fri Dec 12 20:01:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 5485471 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EBEF39F1CD for ; Fri, 12 Dec 2014 20:11:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B303201F2 for ; Fri, 12 Dec 2014 20:11:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44F872011D for ; Fri, 12 Dec 2014 20:11:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759340AbaLLUJ6 (ORCPT ); Fri, 12 Dec 2014 15:09:58 -0500 Received: from smtp-3.sys.kth.se ([130.237.48.192]:60850 "EHLO smtp-3.sys.kth.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759297AbaLLUJ4 (ORCPT ); Fri, 12 Dec 2014 15:09:56 -0500 Received: from smtp-3.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-3.sys.kth.se (Postfix) with ESMTP id 85038273C; Fri, 12 Dec 2014 21:02:55 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-3.sys.kth.se ([127.0.0.1]) by smtp-3.sys.kth.se (smtp-3.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kj6OxVzOYZjz; Fri, 12 Dec 2014 21:02:54 +0100 (CET) X-KTH-Auth: niso [89.233.231.155] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1418414574; bh=eYYZbcrWDUsnVmMbwK8HSXG3YRCMvO8IWrU9GoZFx+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=e9DNT74ZGQkWK2PZ2nD9NVrK8yxGbraHE2NXPJ8R8E1mkkxZRc5nc8HXab7GkIvP2 C2h3k0SoNGeEEfq/V3+l2/xwQLF1UNvW+pSZa8a1DMaWCPvG5n4GThY29k3otlbRiA ZF2HiAebEERXRfeXBGFe9OYy+XM7WTiZCRhAZkzw= X-KTH-mail-from: niso@kth.se Received: from Hydra.berto.se (dynamic.0.6.79d1f80.050ba6b6411.cust.bredband2.com [89.233.231.155]) by smtp-3.sys.kth.se (Postfix) with ESMTPSA id A3D9B271C; Fri, 12 Dec 2014 21:02:53 +0100 (CET) From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= To: linux-kernel@vger.kernel.org, laurent.pinchart@ideasonboard.com, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-sh@vger.kernel.org, magnus.damm@gmail.com, =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH 1/4] sh-pfc: add macro to define pinmux without function Date: Fri, 12 Dec 2014 21:01:34 +0100 Message-Id: <1418414497-23741-2-git-send-email-niso@kth.se> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1418414497-23741-1-git-send-email-niso@kth.se> References: <1418414497-23741-1-git-send-email-niso@kth.se> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,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 Used to define pinmux configurations where the pinmux function have no representation in the configuration registers but instead solely depends on a group selection. Signed-off-by: Niklas Söderlund --- drivers/pinctrl/sh-pfc/sh_pfc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index 5b72831..c837286 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -167,6 +167,8 @@ struct sh_pfc_soc_info { PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr) #define PINMUX_IPSR_NOGM(ispr, fn, ms) \ PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ms) +#define PINMUX_IPSR_NOFN(ipsr, fn, ms) \ + PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##ms) #define PINMUX_IPSR_MSEL(ipsr, fn, ms) \ PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr, FN_##ms) #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) \