From 7cb5b54352c882007461e2c9798411c298980ea8 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 20 Apr 2012 15:25:00 +0000 Subject: cns21xx: remove 3.2 support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31381 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-3.2/102-cns21xx-gpiolib-support.patch | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 target/linux/cns21xx/patches-3.2/102-cns21xx-gpiolib-support.patch (limited to 'target/linux/cns21xx/patches-3.2/102-cns21xx-gpiolib-support.patch') diff --git a/target/linux/cns21xx/patches-3.2/102-cns21xx-gpiolib-support.patch b/target/linux/cns21xx/patches-3.2/102-cns21xx-gpiolib-support.patch deleted file mode 100644 index 0f7dce81f..000000000 --- a/target/linux/cns21xx/patches-3.2/102-cns21xx-gpiolib-support.patch +++ /dev/null @@ -1,85 +0,0 @@ ---- a/arch/arm/Kconfig -+++ b/arch/arm/Kconfig -@@ -360,6 +360,8 @@ config ARCH_CNS21XX - select CPU_FA526 - select PLAT_FA - select PLAT_FA_TIME -+ select PLAT_FA_GPIO -+ select ARCH_REQUIRE_GPIOLIB - select ARM_L1_CACHE_SHIFT_4 - help - Support for Cavium Networks CNS21xx family. ---- a/arch/arm/mach-cns21xx/common.h -+++ b/arch/arm/mach-cns21xx/common.h -@@ -12,6 +12,7 @@ - - void __init cns21xx_map_io(void); - void __init cns21xx_init_irq(void); -+void __init cns21xx_gpio_init(void); - - extern struct sys_timer cns21xx_timer; - ---- /dev/null -+++ b/arch/arm/mach-cns21xx/gpio.c -@@ -0,0 +1,45 @@ -+/* -+ * Copyright (c) 2010 Gabor Juhos -+ * -+ * This file 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. -+ */ -+ -+#include -+ -+#include -+#include -+ -+static struct fa_gpio_chip cns21xx_gpio_chips[] = { -+ { -+ .gpio_chip = { -+ .label = "GPIOA", -+ .base = 0, -+ .ngpio = 32, -+ }, -+ -+ .map_base = CNS21XX_GPIOA_BASE, -+ .irq_base = CNS21XX_GPIO_IRQ_BASE, -+ }, { -+ .gpio_chip = { -+ .label = "GPIOB", -+ .base = 32, -+ .ngpio = 32, -+ }, -+ -+ .map_base = CNS21XX_GPIOB_BASE, -+ .irq_base = CNS21XX_GPIO_IRQ_BASE + 32, -+ } -+}; -+ -+static struct fa_gpio_data cns21xx_gpio_data = { -+ .chips = cns21xx_gpio_chips, -+ .nchips = ARRAY_SIZE(cns21xx_gpio_chips), -+ .irq = CNS21XX_IRQ_GPIO, -+}; -+ -+void __init cns21xx_gpio_init(void) -+{ -+ fa_gpio_init(&cns21xx_gpio_data); -+} ---- /dev/null -+++ b/arch/arm/mach-cns21xx/include/mach/gpio.h -@@ -0,0 +1,2 @@ -+/* empty */ -+ ---- a/arch/arm/mach-cns21xx/Makefile -+++ b/arch/arm/mach-cns21xx/Makefile -@@ -4,7 +4,7 @@ - - # Object file lists. - --obj-y := core.o devices.o irq.o mm.o time.o -+obj-y := core.o devices.o gpio.o irq.o mm.o time.o - - # machine specific files - -- cgit v1.2.3