From patchwork Fri Mar 13 02:19:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ryazanov X-Patchwork-Id: 449746 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.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CDBBC1400F1 for ; Fri, 13 Mar 2015 13:25:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=pFOxO/VP; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D691728C1B1; Fri, 13 Mar 2015 03:22:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id B85A528BE95 for ; Fri, 13 Mar 2015 03:19:26 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 13 Mar 2015 03:19:20 +0100 (CET) Received: by labgm9 with SMTP id gm9so19748868lab.13 for ; Thu, 12 Mar 2015 19:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=ZvHLuXb8YLa7LC1JmP4l9eZbTGB7x9nFtOlnhrE0v8o=; b=pFOxO/VP2+McoHmzo22PDXt1zEp8VbN6RFSucPgWcVlWh7mkSBj1EtUkPvf1KWQZmW 2p2DLM66CdoijB40a29TnfONoVFpgqGGHzwNytNPch0/S8+pJX4z95EaEaODN3pbGZXy GNi+ZYl9cG0Mr9mxt2MV1bIVmRL+xllzxbp5roNNRw1rdXyd9PtoC3r9P8h0xFiVMM3k 9TkB7fouLShoo4XE4+lMAv/zKzPsCGDD62tUzxrMUtibUq0XtfPTyEE32B4RGpQg83OO A7G98kFpMJV1XZZLAi8uU0oBT+GGITpv6AXLJxwfKqU7FkjmyBVj8TdTbW8rGAfp/NbD RVpQ== X-Received: by 10.112.139.136 with SMTP id qy8mr41467553lbb.38.1426213182138; Thu, 12 Mar 2015 19:19:42 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by mx.google.com with ESMTPSA id ao5sm107290lac.48.2015.03.12.19.19.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 19:19:41 -0700 (PDT) From: Sergey Ryazanov To: OpenWrt Development List Date: Fri, 13 Mar 2015 05:19:08 +0300 Message-Id: <1426213178-5239-4-git-send-email-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1426213178-5239-1-git-send-email-ryazanov.s.a@gmail.com> References: <1426213178-5239-1-git-send-email-ryazanov.s.a@gmail.com> Subject: [OpenWrt-Devel] [PATCH 03/33] atheros: v3.18: rename kernel platform to ath25 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Rename platform source directory and asm includes directory. No functional changes. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.18/100-board.patch | 116 ++++++++++----------- .../patches-3.18/101-early-printk-support.patch | 10 +- .../atheros/patches-3.18/102-ar5312_gpio.patch | 8 +- .../atheros/patches-3.18/103-ar2315_gpio.patch | 8 +- .../atheros/patches-3.18/105-ar2315_pci.patch | 8 +- .../atheros/patches-3.18/210-reset_button.patch | 6 +- 6 files changed, 78 insertions(+), 78 deletions(-) diff --git a/target/linux/atheros/patches-3.18/100-board.patch b/target/linux/atheros/patches-3.18/100-board.patch index b7a5f2d..5ecc37c 100644 --- a/target/linux/atheros/patches-3.18/100-board.patch +++ b/target/linux/atheros/patches-3.18/100-board.patch @@ -24,31 +24,31 @@ endchoice -+source "arch/mips/ar231x/Kconfig" ++source "arch/mips/ath25/Kconfig" source "arch/mips/alchemy/Kconfig" source "arch/mips/ath79/Kconfig" source "arch/mips/bcm47xx/Kconfig" --- a/arch/mips/Kbuild.platforms +++ b/arch/mips/Kbuild.platforms -@@ -6,6 +6,7 @@ platforms += ath79 +@@ -2,6 +2,7 @@ + + platforms += alchemy + platforms += ar7 ++platforms += ath25 + platforms += ath79 platforms += bcm47xx platforms += bcm63xx - platforms += cavium-octeon -+platforms += ar231x - platforms += cobalt - platforms += dec - platforms += emma --- /dev/null -+++ b/arch/mips/ar231x/Platform ++++ b/arch/mips/ath25/Platform @@ -0,0 +1,6 @@ +# +# Atheros AR531X/AR231X WiSoC +# -+platform-$(CONFIG_ATH25) += ar231x/ -+cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/include/asm/mach-ar231x ++platform-$(CONFIG_ATH25) += ath25/ ++cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/include/asm/mach-ath25 +load-$(CONFIG_ATH25) += 0xffffffff80041000 --- /dev/null -+++ b/arch/mips/ar231x/Kconfig ++++ b/arch/mips/ath25/Kconfig @@ -0,0 +1,9 @@ +config SOC_AR5312 + bool "Atheros 5312/2312+ support" @@ -60,7 +60,7 @@ + depends on ATH25 + default y --- /dev/null -+++ b/arch/mips/ar231x/Makefile ++++ b/arch/mips/ath25/Makefile @@ -0,0 +1,13 @@ +# +# This file is subject to the terms and conditions of the GNU General Public @@ -76,7 +76,7 @@ +obj-$(CONFIG_SOC_AR5312) += ar5312.o +obj-$(CONFIG_SOC_AR2315) += ar2315.o --- /dev/null -+++ b/arch/mips/ar231x/board.c ++++ b/arch/mips/ath25/board.c @@ -0,0 +1,229 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -308,7 +308,7 @@ +} + --- /dev/null -+++ b/arch/mips/ar231x/prom.c ++++ b/arch/mips/ath25/prom.c @@ -0,0 +1,37 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -348,10 +348,10 @@ +{ +} --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/ar231x_platform.h ++++ b/arch/mips/include/asm/mach-ath25/ar231x_platform.h @@ -0,0 +1,85 @@ -+#ifndef __ASM_MACH_AR231X_PLATFORM_H -+#define __ASM_MACH_AR231X_PLATFORM_H ++#ifndef __ASM_MACH_ATH25_PLATFORM_H ++#define __ASM_MACH_ATH25_PLATFORM_H + +#include + @@ -434,9 +434,9 @@ + char *macaddr; +}; + -+#endif /* __ASM_MACH_AR231X_PLATFORM_H */ ++#endif /* __ASM_MACH_ATH25_PLATFORM_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/cpu-feature-overrides.h ++++ b/arch/mips/include/asm/mach-ath25/cpu-feature-overrides.h @@ -0,0 +1,84 @@ +/* + * Atheros AR231x/AR531x SoC specific CPU feature overrides @@ -452,8 +452,8 @@ + * by the Free Software Foundation. + * + */ -+#ifndef __ASM_MACH_AR231X_CPU_FEATURE_OVERRIDES_H -+#define __ASM_MACH_AR231X_CPU_FEATURE_OVERRIDES_H ++#ifndef __ASM_MACH_ATH25_CPU_FEATURE_OVERRIDES_H ++#define __ASM_MACH_ATH25_CPU_FEATURE_OVERRIDES_H + +/* + * The Atheros AR531x/AR231x SoCs have MIPS 4Kc/4KEc core. @@ -521,9 +521,9 @@ +/* #define cpu_dcache_line_size() ? */ +/* #define cpu_icache_line_size() ? */ + -+#endif /* __ASM_MACH_AR231X_CPU_FEATURE_OVERRIDES_H */ ++#endif /* __ASM_MACH_ATH25_CPU_FEATURE_OVERRIDES_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/dma-coherence.h ++++ b/arch/mips/include/asm/mach-ath25/dma-coherence.h @@ -0,0 +1,76 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -534,8 +534,8 @@ + * Copyright (C) 2007 Felix Fietkau + * + */ -+#ifndef __ASM_MACH_AR231X_DMA_COHERENCE_H -+#define __ASM_MACH_AR231X_DMA_COHERENCE_H ++#ifndef __ASM_MACH_ATH25_DMA_COHERENCE_H ++#define __ASM_MACH_ATH25_DMA_COHERENCE_H + +#include +#include @@ -600,12 +600,12 @@ +#endif +} + -+#endif /* __ASM_MACH_AR231X_DMA_COHERENCE_H */ ++#endif /* __ASM_MACH_ATH25_DMA_COHERENCE_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/gpio.h ++++ b/arch/mips/include/asm/mach-ath25/gpio.h @@ -0,0 +1,16 @@ -+#ifndef __ASM_MACH_AR231X_GPIO_H -+#define __ASM_MACH_AR231X_GPIO_H ++#ifndef __ASM_MACH_ATH25_GPIO_H ++#define __ASM_MACH_ATH25_GPIO_H + +#include + @@ -619,18 +619,18 @@ + return -EINVAL; +} + -+#endif /* __ASM_MACH_AR231X_GPIO_H */ ++#endif /* __ASM_MACH_ATH25_GPIO_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/reset.h ++++ b/arch/mips/include/asm/mach-ath25/reset.h @@ -0,0 +1,6 @@ -+#ifndef __ASM_MACH_AR231X_RESET_H -+#define __ASM_MACH_AR231X_RESET_H ++#ifndef __ASM_MACH_ATH25_RESET_H ++#define __ASM_MACH_ATH25_RESET_H + +void ar231x_disable_reset_button(void); + -+#endif /* __ASM_MACH_AR231X_RESET_H */ ++#endif /* __ASM_MACH_ATH25_RESET_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/war.h ++++ b/arch/mips/include/asm/mach-ath25/war.h @@ -0,0 +1,25 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -639,8 +639,8 @@ + * + * Copyright (C) 2008 Felix Fietkau + */ -+#ifndef __ASM_MACH_AR231X_WAR_H -+#define __ASM_MACH_AR231X_WAR_H ++#ifndef __ASM_MACH_ATH25_WAR_H ++#define __ASM_MACH_ATH25_WAR_H + +#define R4600_V1_INDEX_ICACHEOP_WAR 0 +#define R4600_V1_HIT_CACHEOP_WAR 0 @@ -656,9 +656,9 @@ +#define R10000_LLSC_WAR 0 +#define MIPS34K_MISSED_ITLB_WAR 0 + -+#endif /* __ASM_MACH_AR231X_WAR_H */ ++#endif /* __ASM_MACH_ATH25_WAR_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/ar2315_regs.h ++++ b/arch/mips/include/asm/mach-ath25/ar2315_regs.h @@ -0,0 +1,608 @@ +/* + * Register definitions for AR2315+ @@ -673,8 +673,8 @@ + * Copyright (C) 2006-2008 Felix Fietkau + */ + -+#ifndef __ASM_MACH_AR231X_AR2315_REGS_H -+#define __ASM_MACH_AR231X_AR2315_REGS_H ++#ifndef __ASM_MACH_ATH25_AR2315_REGS_H ++#define __ASM_MACH_ATH25_AR2315_REGS_H + +/* + * IRQs @@ -1267,9 +1267,9 @@ +/* ??? access BAR */ +#define AR2315_PCI_HOST_MBAR2 0x30000000 + -+#endif /* __ASM_MACH_AR231X_AR2315_REGS_H */ ++#endif /* __ASM_MACH_ATH25_AR2315_REGS_H */ --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/ar5312_regs.h ++++ b/arch/mips/include/asm/mach-ath25/ar5312_regs.h @@ -0,0 +1,235 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -1281,8 +1281,8 @@ + * Copyright (C) 2006 Felix Fietkau + */ + -+#ifndef __ASM_MACH_AR231X_AR5312_REGS_H -+#define __ASM_MACH_AR231X_AR5312_REGS_H ++#ifndef __ASM_MACH_ATH25_AR5312_REGS_H ++#define __ASM_MACH_ATH25_AR5312_REGS_H + +#include + @@ -1505,9 +1505,9 @@ + +#define AR5312_GPIO (AR5312_APBBASE + 0x2000) + -+#endif /* __ASM_MACH_AR231X_AR5312_REGS_H */ ++#endif /* __ASM_MACH_ATH25_AR5312_REGS_H */ --- /dev/null -+++ b/arch/mips/ar231x/ar5312.c ++++ b/arch/mips/ath25/ar5312.c @@ -0,0 +1,476 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -1986,7 +1986,7 @@ +} + --- /dev/null -+++ b/arch/mips/ar231x/ar2315.c ++++ b/arch/mips/ath25/ar2315.c @@ -0,0 +1,431 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -2420,7 +2420,7 @@ + ar2315_apb_frequency()); +} --- /dev/null -+++ b/arch/mips/ar231x/ar2315.h ++++ b/arch/mips/ath25/ar2315.h @@ -0,0 +1,37 @@ +#ifndef __AR2315_H +#define __AR2315_H @@ -2460,7 +2460,7 @@ + +#endif --- /dev/null -+++ b/arch/mips/ar231x/ar5312.h ++++ b/arch/mips/ath25/ar5312.h @@ -0,0 +1,37 @@ +#ifndef __AR5312_H +#define __AR5312_H @@ -2500,10 +2500,10 @@ + +#endif --- /dev/null -+++ b/arch/mips/include/asm/mach-ar231x/ar231x.h ++++ b/arch/mips/include/asm/mach-ath25/ar231x.h @@ -0,0 +1,38 @@ -+#ifndef __ASM_MACH_AR231X_H -+#define __ASM_MACH_AR231X_H ++#ifndef __ASM_MACH_ATH25_AR231X_H ++#define __ASM_MACH_ATH25_AR231X_H + +#include +#include @@ -2539,12 +2539,12 @@ + return ret; +} + -+#endif /* __ASM_MACH_AR231X_H */ ++#endif /* __ASM_MACH_ATH25_AR231X_H */ --- /dev/null -+++ b/arch/mips/ar231x/devices.h ++++ b/arch/mips/ath25/devices.h @@ -0,0 +1,39 @@ -+#ifndef __AR231X_DEVICES_H -+#define __AR231X_DEVICES_H ++#ifndef __ATH25_DEVICES_H ++#define __ATH25_DEVICES_H + +enum { + /* handled by ar5312.c */ @@ -2583,7 +2583,7 @@ + +#endif --- /dev/null -+++ b/arch/mips/ar231x/devices.c ++++ b/arch/mips/ath25/devices.c @@ -0,0 +1,181 @@ +#include +#include diff --git a/target/linux/atheros/patches-3.18/101-early-printk-support.patch b/target/linux/atheros/patches-3.18/101-early-printk-support.patch index 38560dd..54446a4 100644 --- a/target/linux/atheros/patches-3.18/101-early-printk-support.patch +++ b/target/linux/atheros/patches-3.18/101-early-printk-support.patch @@ -1,5 +1,5 @@ --- /dev/null -+++ b/arch/mips/ar231x/early_printk.c ++++ b/arch/mips/ath25/early_printk.c @@ -0,0 +1,46 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public @@ -14,8 +14,8 @@ +#include +#include + -+#include -+#include ++#include ++#include +#include "devices.h" + +static inline void prom_uart_wr(void __iomem *base, unsigned reg, @@ -47,8 +47,8 @@ + ; +} + ---- a/arch/mips/ar231x/Makefile -+++ b/arch/mips/ar231x/Makefile +--- a/arch/mips/ath25/Makefile ++++ b/arch/mips/ath25/Makefile @@ -9,5 +9,8 @@ # diff --git a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch index 09a2acb..2860c54 100644 --- a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch +++ b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch @@ -1,5 +1,5 @@ ---- a/arch/mips/ar231x/Kconfig -+++ b/arch/mips/ar231x/Kconfig +--- a/arch/mips/ath25/Kconfig ++++ b/arch/mips/ath25/Kconfig @@ -1,6 +1,7 @@ config SOC_AR5312 bool "Atheros 5312/2312+ support" @@ -8,8 +8,8 @@ default y config SOC_AR2315 ---- a/arch/mips/ar231x/ar5312.c -+++ b/arch/mips/ar231x/ar5312.c +--- a/arch/mips/ath25/ar5312.c ++++ b/arch/mips/ath25/ar5312.c @@ -192,6 +192,22 @@ static struct platform_device ar5312_phy .num_resources = 1, }; diff --git a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch index 33594e6..cd3baf5 100644 --- a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch +++ b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch @@ -1,13 +1,13 @@ ---- a/arch/mips/ar231x/Kconfig -+++ b/arch/mips/ar231x/Kconfig +--- a/arch/mips/ath25/Kconfig ++++ b/arch/mips/ath25/Kconfig @@ -7,4 +7,5 @@ config SOC_AR5312 config SOC_AR2315 bool "Atheros 2315+ support" depends on ATH25 + select GPIO_AR2315 default y ---- a/arch/mips/ar231x/ar2315.c -+++ b/arch/mips/ar231x/ar2315.c +--- a/arch/mips/ath25/ar2315.c ++++ b/arch/mips/ath25/ar2315.c @@ -212,6 +212,34 @@ static struct platform_device ar2315_wdt .num_resources = ARRAY_SIZE(ar2315_wdt_res) }; diff --git a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch index 6835255..e5a8a52 100644 --- a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch @@ -356,8 +356,8 @@ +{ + return 0; +} ---- a/arch/mips/ar231x/Kconfig -+++ b/arch/mips/ar231x/Kconfig +--- a/arch/mips/ath25/Kconfig ++++ b/arch/mips/ath25/Kconfig @@ -9,3 +9,10 @@ config SOC_AR2315 depends on ATH25 select GPIO_AR2315 @@ -369,8 +369,8 @@ + select HW_HAS_PCI + select PCI + default y ---- a/arch/mips/ar231x/ar2315.c -+++ b/arch/mips/ar231x/ar2315.c +--- a/arch/mips/ath25/ar2315.c ++++ b/arch/mips/ath25/ar2315.c @@ -77,6 +77,10 @@ ar2315_irq_dispatch(void) do_IRQ(AR2315_IRQ_WLAN0_INTRS); else if (pending & CAUSEF_IP4) diff --git a/target/linux/atheros/patches-3.18/210-reset_button.patch b/target/linux/atheros/patches-3.18/210-reset_button.patch index 8007ed4..7eee86a 100644 --- a/target/linux/atheros/patches-3.18/210-reset_button.patch +++ b/target/linux/atheros/patches-3.18/210-reset_button.patch @@ -1,5 +1,5 @@ ---- a/arch/mips/ar231x/Makefile -+++ b/arch/mips/ar231x/Makefile +--- a/arch/mips/ath25/Makefile ++++ b/arch/mips/ath25/Makefile @@ -8,7 +8,7 @@ # Copyright (C) 2006-2009 Felix Fietkau # @@ -10,7 +10,7 @@ obj-$(CONFIG_EARLY_PRINTK) += early_printk.o --- /dev/null -+++ b/arch/mips/ar231x/reset.c ++++ b/arch/mips/ath25/reset.c @@ -0,0 +1,58 @@ +#include +#include