From patchwork Tue Jul 29 14:05:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 34474 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 45F76202E4 for ; Tue, 29 Jul 2014 14:06:25 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id e131sf47397692oig.10 for ; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=84ZHzr5JJ/8uzLKAo4s/ibiXPcuTPcKcUU5jzBzKhn8=; b=MgRnvAC777+O7xOWTqVTzFkYfbnntkJ6b6VeAdOh8juajvWD6jYCbw3Tvb3F88WEKP 4czhSLBvJAzEZ4/fv6PQPT2WktVloKjlR0EG79+2hjB0xFbOX+Lsd917efkXZUCElROv C6Xo8TCHewF9o0CyaPFjF8u930kkWCspqXZH2mtmyqpcdoN5rnKic/IQc6v0cxGQwOZF cH7hLFnuSySlTDVNWS73FJWXQmIAeZYlLa3z7mTAZ9AMPkImMJPaWLzrH0kxcRbWR4/v Ki7/zG2SlMT1PqTrd19MD4TJAOCyHuiOsUE+dvs99WQ5fUfR8HQWr6hxdslLwcgGOC3G hLkw== X-Gm-Message-State: ALoCoQn/RjwTSNA6HW+sGKsUy9jiAeTvqCQpFdixr4q5Tk7IgxCBBBNq3083uA0LopqySkP3vk9w X-Received: by 10.182.148.1 with SMTP id to1mr749079obb.50.1406642784849; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.244 with SMTP id c107ls119839qgd.39.gmail; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-Received: by 10.220.119.8 with SMTP id x8mr1313219vcq.62.1406642784707; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id hk8si14588398vdb.79.2014.07.29.07.06.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 07:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so13534076vcb.38 for ; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr1943472vcq.50.1406642784556; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp246769vcb; Tue, 29 Jul 2014 07:06:24 -0700 (PDT) X-Received: by 10.70.22.232 with SMTP id h8mr2313521pdf.156.1406642783757; Tue, 29 Jul 2014 07:06:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh2si10633941pdb.343.2014.07.29.07.06.23 for ; Tue, 29 Jul 2014 07:06:23 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753768AbaG2OGC (ORCPT + 26 others); Tue, 29 Jul 2014 10:06:02 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:33382 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713AbaG2OF7 (ORCPT ); Tue, 29 Jul 2014 10:05:59 -0400 Received: by mail-ie0-f170.google.com with SMTP id rl12so8853125iec.1 for ; Tue, 29 Jul 2014 07:05:59 -0700 (PDT) X-Received: by 10.43.84.65 with SMTP id aj1mr5851287icc.5.1406642759253; Tue, 29 Jul 2014 07:05:59 -0700 (PDT) Received: from localhost.localdomain (host109-148-232-149.range109-148.btcentralplus.com. [109.148.232.149]) by mx.google.com with ESMTPSA id vl4sm37473793igb.3.2014.07.29.07.05.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Jul 2014 07:05:58 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, tglx@linutronix.de, jason@lakedaemon.net, devicetree@vger.kernel.org Subject: [PATCH 1/6] dt: bindings: Supply shared ST IRQ defines Date: Tue, 29 Jul 2014 15:05:39 +0100 Message-Id: <1406642744-22589-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406642744-22589-1-git-send-email-lee.jones@linaro.org> References: <1406642744-22589-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , These defines are used to allow values used for configuration to be easily human readable and will lessen the chance of logical mistakes. Signed-off-by: Lee Jones --- include/dt-bindings/interrupt-controller/irq-st.h | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/irq-st.h diff --git a/include/dt-bindings/interrupt-controller/irq-st.h b/include/dt-bindings/interrupt-controller/irq-st.h new file mode 100644 index 0000000..4c59ace --- /dev/null +++ b/include/dt-bindings/interrupt-controller/irq-st.h @@ -0,0 +1,30 @@ +/* + * include/linux/irqchip/irq-st.h + * + * Copyright (C) 2014 STMicroelectronics – All Rights Reserved + * + * Author: Lee Jones + * + * 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_INTERRUPT_CONTROLLER_ST_H +#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ST_H + +#define ST_IRQ_SYSCFG_EXT_0 0 +#define ST_IRQ_SYSCFG_EXT_1 1 +#define ST_IRQ_SYSCFG_EXT_2 2 +#define ST_IRQ_SYSCFG_CTI_0 3 +#define ST_IRQ_SYSCFG_CTI_1 4 +#define ST_IRQ_SYSCFG_PMU_0 5 +#define ST_IRQ_SYSCFG_PMU_1 6 +#define ST_IRQ_SYSCFG_pl310_L2 7 +#define ST_IRQ_SYSCFG_DISABLED 0xFFFFFFFF + +#define ST_IRQ_SYSCFG_EXT_1_INV 0x1 +#define ST_IRQ_SYSCFG_EXT_2_INV 0x2 +#define ST_IRQ_SYSCFG_EXT_3_INV 0x4 + +#endif