From patchwork Thu Sep 29 22:17:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9357193 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8EA99600C8 for ; Thu, 29 Sep 2016 22:17:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EB3128B95 for ; Thu, 29 Sep 2016 22:17:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7306429C68; Thu, 29 Sep 2016 22:17:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CFF128B95 for ; Thu, 29 Sep 2016 22:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934401AbcI2WRw (ORCPT ); Thu, 29 Sep 2016 18:17:52 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:36036 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932838AbcI2WRv (ORCPT ); Thu, 29 Sep 2016 18:17:51 -0400 Received: by mail-lf0-f41.google.com with SMTP id g62so91647916lfe.3 for ; Thu, 29 Sep 2016 15:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=YrpY5LorAg2sK0Ia/hFj5UYkESKZBJ1ynOVOOyLBnl0=; b=UHyKf0zcOmOClUkmBqQUF7FLKkTspcNzMmy1nzzRgrtzQnrqvGmV/LWQAtT1dhB2w5 5nVnADp9VkzMq+QzJGpggrDapaLyDWz1eEAAVm3ZR/agNhvmjHIRUdnGxhltgrAlToZu ifRv9/8mjU1b3Qtt438emMYbQ139k7HCeQhl3nO/1MpTUkzoRSUBbtuGS0xf1eWIJ7h9 FMCK8yirA4c+e86niWr6td9EgLcdHTAngsl1TueJRCLy2HIt4EzL57rjYKMoCybR9LuY qUJtU5Y44Aew5QwGggFIK3xUUQPZfkjUIb0P0606lP9k1dBNAEvb6qlOSKjE11RiM8Q7 E+TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=YrpY5LorAg2sK0Ia/hFj5UYkESKZBJ1ynOVOOyLBnl0=; b=TYpeFfLfK9rSZjw62uyBAy9tSbtOt4yQFkfUmZ2XdgjSL+z/1kjn9sDf5QPjb2MGvZ leo3QvFy7jAUY9wmGOjrRp2RZmLrTmIQiWb38QPxosmqjGq+j7VgmcGipz9NPH/wu2OA mq4oKo1nHIc9zfx32T8XHT7J1g2HJlrEcxzI9GQAyt0epTOFi4hUcQXyCgxLnRAKKNkp /eak/S+LBtAjPPFgoV9CzZNlGjGqSOT/r3mWnN771BArMNfrPBfjtHB59cyBF52XUjUQ FB5RZCCEU8CkwhrNIRN4E839z1voqyBjmC+9MNvWTAGKmMoxlKgAE37SmCX0Oe2Sc/69 uu/g== X-Gm-Message-State: AA6/9RnEWgEY6G9CzjFc+fplU866sQxsle1pb5GR9T+kvqzodIiFZyA2zN/5QmOOfWXW7w== X-Received: by 10.46.32.205 with SMTP id g74mr1522772lji.1.1475187469374; Thu, 29 Sep 2016 15:17:49 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.95]) by smtp.gmail.com with ESMTPSA id d130sm2470151lfd.12.2016.09.29.15.17.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2016 15:17:48 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH RFC v2 2/12] ARM: shmobile: r8a7743: add power domain index macros Date: Fri, 30 Sep 2016 01:17:47 +0300 Message-ID: <10048005.ZebNI1l2xW@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.4-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <1987532.PE2ex6PrJ5@wasted.cogentembedded.com> References: <1987532.PE2ex6PrJ5@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add macros usable by the device tree sources to reference R8A7743 SYSC power domains by index. Based on the original (and large) patch by Dmitry Shifrin . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 2: - added Geert's tag. include/dt-bindings/power/r8a7743-sysc.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Index: renesas/include/dt-bindings/power/r8a7743-sysc.h =================================================================== --- /dev/null +++ renesas/include/dt-bindings/power/r8a7743-sysc.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2016 Cogent Embedded Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __DT_BINDINGS_POWER_R8A7743_SYSC_H__ +#define __DT_BINDINGS_POWER_R8A7743_SYSC_H__ + +/* + * These power domain indices match the numbers of the interrupt bits + * representing the power areas in the various Interrupt Registers + * (e.g. SYSCISR, Interrupt Status Register) + */ + +#define R8A7743_PD_CA15_CPU0 0 +#define R8A7743_PD_CA15_CPU1 1 +#define R8A7743_PD_CA15_SCU 12 +#define R8A7743_PD_SGX 20 + +/* Always-on power area */ +#define R8A7743_PD_ALWAYS_ON 32 + +#endif /* __DT_BINDINGS_POWER_R8A7743_SYSC_H__ */