From patchwork Sun Jan 18 12:20:01 2015 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: 5653281 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C2FE8C058D for ; Sun, 18 Jan 2015 12:20:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF40120389 for ; Sun, 18 Jan 2015 12:20:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 490EC203A5 for ; Sun, 18 Jan 2015 12:20:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbbARMU3 (ORCPT ); Sun, 18 Jan 2015 07:20:29 -0500 Received: from smtp-4.sys.kth.se ([130.237.48.193]:36512 "EHLO smtp-4.sys.kth.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbbARMU1 (ORCPT ); Sun, 18 Jan 2015 07:20:27 -0500 Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 20EC4577; Sun, 18 Jan 2015 13:20:25 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WkMLvH8bqPRE; Sun, 18 Jan 2015 13:20:24 +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=1421583624; bh=mnfIo4v8xfRJI4b63pOPyR267/BTnB+GVFbCn4WCS8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=n/5pX4ySF6vLqnuIOkQukT3L6w8/E2xiJg3EEksCdgagRVxYJZnpNJZk6Ig5Ww4Jz oHEFfueDUZDoPpu0NE62U9TYpF6XLvd3jEM3GB/4jIuq25W8b2qRr+nP6iTPZCyxAn c7yx8n2eFnkrEa4UgaxdylqpI2MtEPZI5Ed1yz0g= 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-4.sys.kth.se (Postfix) with ESMTPSA id 7785490D; Sun, 18 Jan 2015 13:20:23 +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 v2 1/4] sh-pfc: add macro to define pinmux without function Date: Sun, 18 Jan 2015 13:20:01 +0100 Message-Id: <1421583604-27256-2-git-send-email-niso@kth.se> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1421583604-27256-1-git-send-email-niso@kth.se> References: <1421583604-27256-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 Acked-by: Laurent Pinchart --- 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) \