From b998d4fa51609b2b1e3a91deb118918c301dd7e8 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 20 Dec 2007 22:29:45 +0000 Subject: move danube folder to ifxmips, to allow future integration of the other chips SVN-Revision: 9815 --- target/linux/ifxmips/patches/100-board.patch | 66 ++++++++++++++++++ target/linux/ifxmips/patches/110-drivers.patch | 93 +++++++++++++++++++++++++ target/linux/ifxmips/patches/160-cfi-swap.patch | 15 ++++ 3 files changed, 174 insertions(+) create mode 100644 target/linux/ifxmips/patches/100-board.patch create mode 100644 target/linux/ifxmips/patches/110-drivers.patch create mode 100644 target/linux/ifxmips/patches/160-cfi-swap.patch (limited to 'target/linux/ifxmips/patches') diff --git a/target/linux/ifxmips/patches/100-board.patch b/target/linux/ifxmips/patches/100-board.patch new file mode 100644 index 0000000000..c73c4e7fdc --- /dev/null +++ b/target/linux/ifxmips/patches/100-board.patch @@ -0,0 +1,66 @@ +Index: linux-2.6.23/arch/mips/Kconfig +=================================================================== +--- linux-2.6.23.orig/arch/mips/Kconfig 2007-10-16 22:12:19.000000000 +0200 ++++ linux-2.6.23/arch/mips/Kconfig 2007-10-16 22:12:21.000000000 +0200 +@@ -58,6 +58,17 @@ + select SYS_SUPPORTS_LITTLE_ENDIAN + select GENERIC_HARDIRQS_NO__DO_IRQ + ++config DANUBE ++ bool "Danube support" ++ select DMA_NONCOHERENT ++ select IRQ_CPU ++ select SYS_HAS_CPU_MIPS32_R1 ++ select HAVE_STD_PC_SERIAL_PORT ++ select SYS_SUPPORTS_BIG_ENDIAN ++ select SYS_SUPPORTS_32BIT_KERNEL ++ select SYS_HAS_EARLY_PRINTK ++ select HW_HAS_PCI ++ + config MACH_DECSTATION + bool "DECstations" + select BOOT_ELF32 +@@ -605,6 +615,7 @@ + source "arch/mips/tx4927/Kconfig" + source "arch/mips/tx4938/Kconfig" + source "arch/mips/vr41xx/Kconfig" ++source "arch/mips/danube/Kconfig" + + endmenu + +Index: linux-2.6.23/arch/mips/Makefile +=================================================================== +--- linux-2.6.23.orig/arch/mips/Makefile 2007-10-16 22:12:21.000000000 +0200 ++++ linux-2.6.23/arch/mips/Makefile 2007-10-16 22:12:21.000000000 +0200 +@@ -276,6 +276,13 @@ + cflags-$(CONFIG_MIPS_COBALT) += -Iinclude/asm-mips/mach-cobalt + load-$(CONFIG_MIPS_COBALT) += 0xffffffff80080000 + ++# ++# Infineon DANUBE ++# ++core-$(CONFIG_DANUBE) += arch/mips/danube/ ++cflags-$(CONFIG_DANUBE) += -Iinclude/asm-mips/mach-danube ++load-$(CONFIG_DANUBE) += 0xffffffff80002000 ++ + # + # DECstation family + # +Index: linux-2.6.23/include/asm-mips/bootinfo.h +=================================================================== +--- linux-2.6.23.orig/include/asm-mips/bootinfo.h 2007-10-16 22:12:19.000000000 +0200 ++++ linux-2.6.23/include/asm-mips/bootinfo.h 2007-10-16 22:12:21.000000000 +0200 +@@ -208,6 +208,13 @@ + #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */ + #define MACH_WRPPMC 1 + ++/* ++ * Valid machtype for group ATHEROS ++ */ ++#define MACH_GROUP_DANUBE 29 ++#define MACH_INFINEON_DANUBE 0 ++ ++ + #define CL_SIZE COMMAND_LINE_SIZE + + const char *get_system_type(void); diff --git a/target/linux/ifxmips/patches/110-drivers.patch b/target/linux/ifxmips/patches/110-drivers.patch new file mode 100644 index 0000000000..35a2024bb6 --- /dev/null +++ b/target/linux/ifxmips/patches/110-drivers.patch @@ -0,0 +1,93 @@ +Index: linux-2.6.23/drivers/serial/Kconfig +=================================================================== +--- linux-2.6.23.orig/drivers/serial/Kconfig 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/serial/Kconfig 2007-12-13 20:41:57.000000000 +0100 +@@ -1259,4 +1259,10 @@ + Currently, only 8250 compatible ports are supported, but + others can easily be added. + ++config SERIAL_DANUBE ++ bool "Danube serial driver" ++ depends on DANUBE ++ help ++ Driver for the danubes built in ASC hardware ++ + endmenu +Index: linux-2.6.23/drivers/serial/Makefile +=================================================================== +--- linux-2.6.23.orig/drivers/serial/Makefile 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/serial/Makefile 2007-12-13 20:41:57.000000000 +0100 +@@ -64,3 +64,4 @@ + obj-$(CONFIG_SERIAL_NETX) += netx-serial.o + obj-$(CONFIG_SERIAL_OF_PLATFORM) += of_serial.o + obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o ++obj-$(CONFIG_SERIAL_DANUBE) += danube_asc.o +Index: linux-2.6.23/drivers/mtd/maps/Makefile +=================================================================== +--- linux-2.6.23.orig/drivers/mtd/maps/Makefile 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/mtd/maps/Makefile 2007-12-13 20:41:57.000000000 +0100 +@@ -71,3 +71,4 @@ + obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o + obj-$(CONFIG_MTD_MTX1) += mtx-1_flash.o + obj-$(CONFIG_MTD_TQM834x) += tqm834x.o ++obj-$(CONFIG_MTD_DANUBE) += danube.o +Index: linux-2.6.23/drivers/net/Kconfig +=================================================================== +--- linux-2.6.23.orig/drivers/net/Kconfig 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/net/Kconfig 2007-12-13 20:41:57.000000000 +0100 +@@ -339,6 +339,18 @@ + + source "drivers/net/arm/Kconfig" + ++config DANUBE_MII0 ++ tristate "Infineon Danube eth0 driver" ++ depends on DANUBE ++ help ++ Support for the MII0 inside the Danube SOC ++ ++config DANUBE_MII1 ++ tristate "Infineon Danube eth1 driver" ++ depends on DANUBE ++ help ++ Support for the MII1 inside the Danube SOC ++ + config AX88796 + tristate "ASIX AX88796 NE2000 clone support" + depends on ARM || MIPS +Index: linux-2.6.23/drivers/net/Makefile +=================================================================== +--- linux-2.6.23.orig/drivers/net/Makefile 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/net/Makefile 2007-12-13 20:41:57.000000000 +0100 +@@ -208,6 +208,7 @@ + obj-$(CONFIG_FEC_8XX) += fec_8xx/ + obj-$(CONFIG_PASEMI_MAC) += pasemi_mac.o + obj-$(CONFIG_MLX4_CORE) += mlx4/ ++obj-$(CONFIG_DANUBE_MII0) += danube_mii0.o + + obj-$(CONFIG_MACB) += macb.o + +Index: linux-2.6.23/drivers/char/watchdog/Makefile +=================================================================== +--- linux-2.6.23.orig/drivers/char/watchdog/Makefile 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/char/watchdog/Makefile 2007-12-13 20:41:57.000000000 +0100 +@@ -90,6 +90,7 @@ + obj-$(CONFIG_INDYDOG) += indydog.o + obj-$(CONFIG_WDT_MTX1) += mtx-1_wdt.o + obj-$(CONFIG_WDT_RM9K_GPI) += rm9k_wdt.o ++obj-$(CONFIG_DANUBE_WDT) += danube_wdt.o + + # PARISC Architecture + +Index: linux-2.6.23/drivers/char/Makefile +=================================================================== +--- linux-2.6.23.orig/drivers/char/Makefile 2007-12-13 20:41:42.000000000 +0100 ++++ linux-2.6.23/drivers/char/Makefile 2007-12-14 22:41:07.000000000 +0100 +@@ -135,3 +135,8 @@ + rm $@.tmp + + endif ++ ++obj-$(CONFIG_DANUBE_LED) += danube_led.o ++obj-$(CONFIG_DANUBE_GPIO) += danube_gpio.o ++obj-$(CONFIG_DANUBE_SSC) += danube_ssc.o ++obj-$(CONFIG_DANUBE_EEPROM) += danube_eeprom.o diff --git a/target/linux/ifxmips/patches/160-cfi-swap.patch b/target/linux/ifxmips/patches/160-cfi-swap.patch new file mode 100644 index 0000000000..ca70928713 --- /dev/null +++ b/target/linux/ifxmips/patches/160-cfi-swap.patch @@ -0,0 +1,15 @@ +Index: linux-2.6.23/drivers/mtd/chips/cfi_cmdset_0002.c +=================================================================== +--- linux-2.6.23.orig/drivers/mtd/chips/cfi_cmdset_0002.c 2007-11-02 23:02:29.000000000 +0100 ++++ linux-2.6.23/drivers/mtd/chips/cfi_cmdset_0002.c 2007-11-02 23:07:15.000000000 +0100 +@@ -1007,7 +1007,9 @@ + int ret = 0; + map_word oldd; + int retry_cnt = 0; +- ++#ifdef CONFIG_DANUBE ++ adr ^= 2; ++#endif + adr += chip->start; + + spin_lock(chip->mutex); -- cgit v1.2.3