From patchwork Tue May 31 22:11:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9145731 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 1AD4C60761 for ; Tue, 31 May 2016 22:11:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E842263DC for ; Tue, 31 May 2016 22:11:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02F89265D7; Tue, 31 May 2016 22:11:45 +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 7963C263DC for ; Tue, 31 May 2016 22:11:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752788AbcEaWLo (ORCPT ); Tue, 31 May 2016 18:11:44 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:34576 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbcEaWLo (ORCPT ); Tue, 31 May 2016 18:11:44 -0400 Received: by mail-lf0-f49.google.com with SMTP id k98so815127lfi.1 for ; Tue, 31 May 2016 15:11:43 -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=JTl71vteCZ9R3xDT6tJJxHW85nVbm4P9+TzLfNwcx3g=; b=LM0kVZq59C0ucasCLSxcBQ6UxhEato0WXE4kDj8c4YWz0C00fEZqh3TINfcRoPuaXP watxqCL2Qc3t+UTkvmhUGgKrpdn7z6iCBE32G+5JCImx4+RmkZMlu/hreik8UyHhOtLU HSrUUpqtMQX53WE3i/iqnyobtILlSs88b9hTdtG/p5G69UCXOQ1t7UkfpUevi1dAlTc8 nJ3jjg9x4nvk0pG7e5Nvqo/bD9sH9jbJnX0RPul9ELQ5u23+i7tyA7xYPCZUpUZ91KsM chh0ltm7ocbFvBTcrJNrXu1x3LWaehdi4wTGMVz6hCRw8MH+WNZOOUFwZvifh7pi6uxG 2eVg== 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=JTl71vteCZ9R3xDT6tJJxHW85nVbm4P9+TzLfNwcx3g=; b=l1yfQfjEmM0OX9Xc1/LQaXqJfuq8czXzYPVqFBaOHkn8SmvuIBZRxKfpuQsrV/2PQJ ZIAVcoKZWsYBMCBqOLTl403GSyGPwOSxdqGaxF1BJSfXhFZOzsUkuofjhDRrDJ/JQSyi 8vQWnsVBCyat+Eas35Ql4ZTvKnVid5NJqHVGVLW3LOjIGys4ZQ3Y2yr7UHQ4XV4y/AQC ZoxstJTXbma4APqSk6US9C4EWzOVaZCaqboxqSNNrZtkX9DT1nmIDUPiLMDSBRKE9mk6 KebpDwyY3gDGgW+yLORGWLZA5EFNSAqIhBuFR7X9tCwriopAMjbFyGYyYxQsqyO6+JID OBVg== X-Gm-Message-State: ALyK8tLSQ3QMRcmgo9wP+/VWGg9GdTR4KgC4tv8cR0dgWwBO0xtXlRzrLHj3z9Sur5usCw== X-Received: by 10.46.33.90 with SMTP id h87mr315337ljh.47.1464732702291; Tue, 31 May 2016 15:11:42 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.80.163]) by smtp.gmail.com with ESMTPSA id qv4sm488826lbb.12.2016.05.31.15.11.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2016 15:11:41 -0700 (PDT) From: Sergei Shtylyov To: linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH 02/13] ARM: shmobile: r8a7792: add power domain index macros Date: Wed, 01 Jun 2016 01:11:40 +0300 Message-ID: <2701785.yYTs7puE3Y@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.10-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <13205049.n7pM8utpHF@wasted.cogentembedded.com> References: <13205049.n7pM8utpHF@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 R8A7792 SYSC power domains by index. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- include/dt-bindings/power/r8a7792-sysc.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Index: renesas/include/dt-bindings/power/r8a7792-sysc.h =================================================================== --- /dev/null +++ renesas/include/dt-bindings/power/r8a7792-sysc.h @@ -0,0 +1,26 @@ +/* + * 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 as published by + * the Free Software Foundation; version 2 of the License. + */ +#ifndef __DT_BINDINGS_POWER_R8A7792_SYSC_H__ +#define __DT_BINDINGS_POWER_R8A7792_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 R8A7792_PD_CA15_CPU0 0 +#define R8A7792_PD_CA15_CPU1 1 +#define R8A7792_PD_CA15_SCU 12 +#define R8A7792_PD_SGX 20 +#define R8A7792_PD_IMP 24 + +/* Always-on power area */ +#define R8A7792_PD_ALWAYS_ON 32 + +#endif /* __DT_BINDINGS_POWER_R8A7792_SYSC_H__ */