From patchwork Sun Jan 22 12:23:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 718169 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v5tty0830z9s2Q for ; Sun, 22 Jan 2017 23:25:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="G8hJNdrn"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id BDFD7B911CC; Sun, 22 Jan 2017 13:23:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Sun, 22 Jan 2017 13:23:50 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E9499B911C6 for ; Sun, 22 Jan 2017 13:23:48 +0100 (CET) X-policyd-weight: using cached result; rate: -7 Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 22 Jan 2017 13:23:48 +0100 (CET) Received: by mail-lf0-f53.google.com with SMTP id n124so80510318lfd.2 for ; Sun, 22 Jan 2017 04:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SGsPboU6+1TsgRBSJAmsW9KXBtB4Pw6AN8AFJfOgVYA=; b=G8hJNdrnmCGm6xfdD/6MbMQcCxvmRDWkkMta6qOj5KvrCSEX6fNRYbhBfDhYinGkIw oahoyZq+oHghgXKHCYrcxK8gaNWPGcej0ozTe+4hvffkyXjp7yI38QfVzSgE1o31oLYG nySdjgrQJrEcgF6sjH3jk4YvBzawcb4l/NOkE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SGsPboU6+1TsgRBSJAmsW9KXBtB4Pw6AN8AFJfOgVYA=; b=j5C2i5t3zFwQZNGtfDlhtSKtwtGiWTYZTo4ReIdyuvI1iBrbNgTkJ6wwrYRymTTxDt FFg0eHKcaDkBBJfwuEgroE2s1DF6Qwz9OgZXIjR5qyD2B0ki/tYm3MNV1yCTZUyE/Deu zhFn5ANjbx1i1rQVt/W0Tfcsv315+JxCY1TBnUAnu1g1r53iod1F36LSjUzxyM+93r/8 7/FQD3MnYxprJzi3R0FmVT4sFDI8LmldEDZqXzAIpqPp845vO7GDmRpnPYliLENgj4hH 0VBo/AzWqre/rEzgUBjlY8fg0tfaa2pLClPs9+JScD1HCfP61+y+QbV2YgCfcWgaVaiW M7WQ== X-Gm-Message-State: AIkVDXI8WgXD22RV4IleQSLYXnJokVb8578JhvJxFi9FUTWelBJRdOnkaT7pWpHRGYPor1RV X-Received: by 10.25.18.102 with SMTP id h99mr6522781lfi.63.1485087828386; Sun, 22 Jan 2017 04:23:48 -0800 (PST) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id 25sm5383459ljt.11.2017.01.22.04.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:23:47 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sun, 22 Jan 2017 13:23:43 +0100 Message-Id: <20170122122343.11010-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [OpenWrt-Devel] [PATCH 19/22] ARM: gemini: switch to sparse IRQs X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@openwrt.org, Paulius Zaleckas , Arnd Bergmann , linux-kernel@vger.kernel.org, Janos Laube MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" There is no boardfiles or anything else using the fixed IRQs anymore, switch the platform to use sparse IRQs and delete the header. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- arch/arm/Kconfig | 1 + arch/arm/mach-gemini/include/mach/irqs.h | 53 -------------------------------- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 arch/arm/mach-gemini/include/mach/irqs.h diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1b01eb5e2cea..2c448dc49467 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -367,6 +367,7 @@ config ARCH_GEMINI select POWER_RESET select POWER_RESET_SYSCON select SERIAL_OF_PLATFORM + select SPARSE_IRQ select USE_OF help Support for the Cortina Systems Gemini family SoCs diff --git a/arch/arm/mach-gemini/include/mach/irqs.h b/arch/arm/mach-gemini/include/mach/irqs.h deleted file mode 100644 index 06bc47e77e8b..000000000000 --- a/arch/arm/mach-gemini/include/mach/irqs.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2001-2006 Storlink, Corp. - * Copyright (C) 2008-2009 Paulius Zaleckas - * - * 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; either version 2 of the License, or - * (at your option) any later version. - */ - -#ifndef __MACH_IRQS_H__ -#define __MACH_IRQS_H__ - -#define IRQ_SERIRQ1 31 -#define IRQ_SERIRQ0 30 -#define IRQ_PCID 29 -#define IRQ_PCIC 28 -#define IRQ_PCIB 27 -#define IRQ_PWR 26 -#define IRQ_CIR 25 -#define IRQ_GPIO(x) (22 + (x)) -#define IRQ_SSP 21 -#define IRQ_LPC 20 -#define IRQ_LCD 19 -#define IRQ_UART 18 -#define IRQ_RTC 17 -#define IRQ_TIMER3 16 -#define IRQ_TIMER2 15 -#define IRQ_TIMER1 14 -#define IRQ_FLASH 12 -#define IRQ_USB1 11 -#define IRQ_USB0 10 -#define IRQ_DMA 9 -#define IRQ_PCI 8 -#define IRQ_IPSEC 7 -#define IRQ_RAID 6 -#define IRQ_IDE1 5 -#define IRQ_IDE0 4 -#define IRQ_WATCHDOG 3 -#define IRQ_GMAC1 2 -#define IRQ_GMAC0 1 -#define IRQ_IPI 0 - -#define NORMAL_IRQ_NUM 32 - -#define GPIO_IRQ_BASE NORMAL_IRQ_NUM -#define GPIO_IRQ_NUM (3 * 32) - -#define ARCH_TIMER_IRQ IRQ_TIMER2 - -#define NR_IRQS (NORMAL_IRQ_NUM + GPIO_IRQ_NUM) - -#endif /* __MACH_IRQS_H__ */