Skip to contentSkip to conversation

Remove Momentum Jaguar and Ocelot G board supports [take #2]

RFC In review Franck Bui-Huu 2 participants 8 messages May 7, 2007 – May 9, 2007 MIPS

lore
Share & tools
lore
#3 lore raw

PATCH 2/3 Remove Momenco Jaguar ATX support

In reply to Franck Bui-Huu

From: Franck Bui-Huu <[email protected]>

Jaguar ATX support is deprecated and scheduled for removal since June 2006.

It has some hackish code and it odd DMA results in the need to support old feature in kernel code.

---
 arch/mips/Kconfig                                |   23 -
 arch/mips/Makefile                               |   11 -
 arch/mips/configs/jaguar-atx_defconfig           |  897 ----------------------
 arch/mips/momentum/Kconfig                       |    6 -
 arch/mips/momentum/jaguar_atx/Makefile           |   12 -
 arch/mips/momentum/jaguar_atx/dbg_io.c           |  125 ---
 arch/mips/momentum/jaguar_atx/irq.c              |   94 ---
 arch/mips/momentum/jaguar_atx/ja-console.c       |  101 ---
 arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h  |   54 --
 arch/mips/momentum/jaguar_atx/platform.c         |  208 -----
 arch/mips/momentum/jaguar_atx/prom.c             |  210 -----
 arch/mips/momentum/jaguar_atx/reset.c            |   56 --
 arch/mips/momentum/jaguar_atx/setup.c            |  475 ------------
 arch/mips/pci/Makefile                           |    1 -
 arch/mips/pci/fixup-jaguar.c                     |   43 -
 include/asm-mips/bootinfo.h                      |    2 +-
 include/asm-mips/mach-ja/cpu-feature-overrides.h |   45 --
 include/asm-mips/mach-ja/spaces.h                |   20 -
 include/asm-mips/serial.h                        |   19 -
 19 files changed, 1 insertions(+), 2401 deletions(-)
 delete mode 100644 arch/mips/configs/jaguar-atx_defconfig
 delete mode 100644 arch/mips/momentum/Kconfig
 delete mode 100644 arch/mips/momentum/jaguar_atx/Makefile
 delete mode 100644 arch/mips/momentum/jaguar_atx/dbg_io.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/irq.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/ja-console.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
 delete mode 100644 arch/mips/momentum/jaguar_atx/platform.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/prom.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/reset.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/setup.c
 delete mode 100644 arch/mips/pci/fixup-jaguar.c
 delete mode 100644 include/asm-mips/mach-ja/cpu-feature-overrides.h
 delete mode 100644 include/asm-mips/mach-ja/spaces.h
arch/mips/Kconfig +0 -23
index ab79b98..28caf80 100644
@@ -369,28 +369,6 @@ config MIPS_SIM
 	  This option enables support for MIPS Technologies MIPSsim software
 	  emulator.
 
-config MOMENCO_JAGUAR_ATX
-	bool "Momentum Jaguar board"
-	select BOOT_ELF32
-	select DMA_NONCOHERENT
-	select HW_HAS_PCI
-	select IRQ_CPU
-	select IRQ_CPU_RM7K
-	select IRQ_MV64340
-	select LIMITED_DMA
-	select PCI_MARVELL
-	select RM7000_CPU_SCACHE
-	select SWAP_IO_SPACE
-	select SYS_HAS_CPU_RM9000
-	select SYS_HAS_EARLY_PRINTK
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select SYS_SUPPORTS_64BIT_KERNEL
-	select SYS_SUPPORTS_BIG_ENDIAN
-	select SYS_SUPPORTS_KGDB
-	help
-	  The Jaguar ATX is a MIPS-based Single Board Computer (SBC) made by
-	  Momentum Computer <http://www.momenco.com/>.
-
 config MOMENCO_OCELOT
 	bool "Momentum Ocelot board"
 	select DMA_NONCOHERENT
@@ -808,7 +786,6 @@ source "arch/mips/ddb5xxx/Kconfig"
 source "arch/mips/gt64120/ev64120/Kconfig"
 source "arch/mips/jazz/Kconfig"
 source "arch/mips/lasat/Kconfig"
-source "arch/mips/momentum/Kconfig"
 source "arch/mips/pmc-sierra/Kconfig"
 source "arch/mips/sgi-ip27/Kconfig"
 source "arch/mips/sibyte/Kconfig"
arch/mips/Makefile +0 -11
index 3e8a777..38817f5 100644
@@ -379,17 +379,6 @@ cflags-$(CONFIG_BASLER_EXCITE)	+= -Iinclude/asm-mips/mach-excite
 load-$(CONFIG_BASLER_EXCITE)	+= 0x80100000
 
 #
-# Momentum Jaguar ATX
-#
-core-$(CONFIG_MOMENCO_JAGUAR_ATX)	+= arch/mips/momentum/jaguar_atx/
-cflags-$(CONFIG_MOMENCO_JAGUAR_ATX)	+= -Iinclude/asm-mips/mach-ja
-#ifdef CONFIG_JAGUAR_DMALOW
-#load-$(CONFIG_MOMENCO_JAGUAR_ATX)	+= 0xffffffff88000000
-#else
-load-$(CONFIG_MOMENCO_JAGUAR_ATX)	+= 0xffffffff80100000
-#endif
-
-#
 # NEC DDB
 #
 core-$(CONFIG_DDB5XXX_COMMON)	+= arch/mips/ddb5xxx/common/
arch/mips/configs/jaguar-atx_defconfig deleted +0 -897

897 lines not on this page · raw message

arch/mips/momentum/Kconfig deleted +0 -6
deleted file mode 100644
index 70a61cf..0000000
@@ -1,6 +0,0 @@
-config JAGUAR_DMALOW
-	bool "Low DMA Mode"
-	depends on MOMENCO_JAGUAR_ATX
-	help
-	  Select to Y if jump JP5 is set on your board, N otherwise.  Normally
-	  the jumper is set, so if you feel unsafe, just say Y.
arch/mips/momentum/jaguar_atx/Makefile deleted +0 -12
deleted file mode 100644
index 2e8cebd..0000000
@@ -1,12 +0,0 @@
-#
-# Makefile for Momentum Computer's Jaguar-ATX board.
-#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-
-obj-y += irq.o platform.o prom.o reset.o setup.o
-
-obj-$(CONFIG_SERIAL_8250_CONSOLE) += ja-console.o
-obj-$(CONFIG_REMOTE_DEBUG) += dbg_io.o
arch/mips/momentum/jaguar_atx/dbg_io.c deleted +0 -125

125 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/irq.c deleted +0 -94

94 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/ja-console.c deleted +0 -101

101 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h deleted +0 -54

54 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/platform.c deleted +0 -208

208 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/prom.c deleted +0 -210

210 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/reset.c deleted +0 -56

56 lines not on this page · raw message

arch/mips/momentum/jaguar_atx/setup.c deleted +0 -475

475 lines not on this page · raw message

arch/mips/pci/Makefile +0 -1
index 30a1c79..aba3dbf 100644
@@ -30,7 +30,6 @@ obj-$(CONFIG_SOC_AU1500)	+= fixup-au1000.o ops-au1000.o
 obj-$(CONFIG_SOC_AU1550)	+= fixup-au1000.o ops-au1000.o
 obj-$(CONFIG_SOC_PNX8550)	+= fixup-pnx8550.o ops-pnx8550.o
 obj-$(CONFIG_MIPS_MALTA)	+= fixup-malta.o
-obj-$(CONFIG_MOMENCO_JAGUAR_ATX)+= fixup-jaguar.o
 obj-$(CONFIG_MOMENCO_OCELOT)	+= fixup-ocelot.o pci-ocelot.o
 obj-$(CONFIG_MOMENCO_OCELOT_3)	+= fixup-ocelot3.o
 obj-$(CONFIG_MOMENCO_OCELOT_C)	+= fixup-ocelot-c.o pci-ocelot-c.o
arch/mips/pci/fixup-jaguar.c deleted +0 -43

43 lines not on this page · raw message

include/asm-mips/bootinfo.h +1 -1
index 05fc263..a66e49a 100644
@@ -121,7 +121,7 @@
 #define  MACH_MOMENCO_OCELOT	0
 #define  MACH_MOMENCO_OCELOT_G	1	/* no more supported (may 2007) */
 #define  MACH_MOMENCO_OCELOT_C	2
-#define  MACH_MOMENCO_JAGUAR_ATX 3
+#define  MACH_MOMENCO_JAGUAR_ATX 3	/* no more supported (may 2007) */
 #define  MACH_MOMENCO_OCELOT_3	4
 
 /*
include/asm-mips/mach-ja/cpu-feature-overrides.h deleted +0 -45

45 lines not on this page · raw message

include/asm-mips/mach-ja/spaces.h deleted +0 -20
deleted file mode 100644
index 8466a0e..0000000
@@ -1,20 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1994 - 1999, 2000, 03, 04 Ralf Baechle
- * Copyright (C) 2000, 2002  Maciej W. Rozycki
- * Copyright (C) 1990, 1999, 2000 Silicon Graphics, Inc.
- */
-#ifndef __ASM_MACH_JA_SPACES_H
-#define __ASM_MACH_JA_SPACES_H
-
-/*
- * Memory above this physical address will be considered highmem.
- */
-#define HIGHMEM_START		0x08000000UL
-
-#include_next <spaces.h>
-
-#endif /* __ASM_MACH_JA_SPACES_H */
include/asm-mips/serial.h +0 -19
index 5e0da6e..ce51213 100644
@@ -81,25 +81,6 @@
 #define STD_SERIAL_PORT_DEFNS
 #endif /* CONFIG_HAVE_STD_PC_SERIAL_PORTS */
 
-#ifdef CONFIG_MOMENCO_JAGUAR_ATX
-/* Ordinary NS16552 duart with a 20MHz crystal.  */
-#define JAGUAR_ATX_UART_CLK	20000000
-#define JAGUAR_ATX_BASE_BAUD	(JAGUAR_ATX_UART_CLK / 16)
-
-#define JAGUAR_ATX_SERIAL1_IRQ	6
-#define JAGUAR_ATX_SERIAL1_BASE	0xfd000023L
-
-#define _JAGUAR_ATX_SERIAL_INIT(int, base)				\
-	{ .baud_base = JAGUAR_ATX_BASE_BAUD, irq: int,			\
-	  .flags = (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST),		\
-	  .iomem_base = (u8 *) base, iomem_reg_shift: 2,			\
-	  io_type: SERIAL_IO_MEM }
-#define MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS				\
-	_JAGUAR_ATX_SERIAL_INIT(JAGUAR_ATX_SERIAL1_IRQ, JAGUAR_ATX_SERIAL1_BASE)
-#else
-#define MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS
-#endif
-
 #ifdef CONFIG_MOMENCO_OCELOT_3
 #define OCELOT_3_BASE_BAUD	( 20000000 / 16 )
 #define OCELOT_3_SERIAL_IRQ	6
Signature · 1 line
1.5.1.3
#1 lore raw

PATCH 1/3 Remove Momenco Ocelot G support

In reply to Franck Bui-Huu

From: Franck Bui-Huu <[email protected]>

---
 arch/mips/Kconfig                        |   23 +-
 arch/mips/Makefile                       |    9 -
 arch/mips/configs/ocelot_g_defconfig     |  981 ------------------------------
 arch/mips/momentum/ocelot_g/Makefile     |    6 -
 arch/mips/momentum/ocelot_g/dbg_io.c     |  121 ----
 arch/mips/momentum/ocelot_g/gt-irq.c     |  212 -------
 arch/mips/momentum/ocelot_g/irq.c        |  101 ---
 arch/mips/momentum/ocelot_g/ocelot_pld.h |   30 -
 arch/mips/momentum/ocelot_g/prom.c       |   84 ---
 arch/mips/momentum/ocelot_g/reset.c      |   47 --
 arch/mips/momentum/ocelot_g/setup.c      |  267 --------
 arch/mips/pci/Makefile                   |    1 -
 arch/mips/pci/fixup-ocelot-g.c           |   37 --
 arch/mips/pci/pci-ocelot-g.c             |   97 ---
 include/asm-mips/bootinfo.h              |    2 +-
 include/asm-mips/serial.h                |   22 -
 16 files changed, 4 insertions(+), 2036 deletions(-)
 delete mode 100644 arch/mips/configs/ocelot_g_defconfig
 delete mode 100644 arch/mips/momentum/ocelot_g/Makefile
 delete mode 100644 arch/mips/momentum/ocelot_g/dbg_io.c
 delete mode 100644 arch/mips/momentum/ocelot_g/gt-irq.c
 delete mode 100644 arch/mips/momentum/ocelot_g/irq.c
 delete mode 100644 arch/mips/momentum/ocelot_g/ocelot_pld.h
 delete mode 100644 arch/mips/momentum/ocelot_g/prom.c
 delete mode 100644 arch/mips/momentum/ocelot_g/reset.c
 delete mode 100644 arch/mips/momentum/ocelot_g/setup.c
 delete mode 100644 arch/mips/pci/fixup-ocelot-g.c
 delete mode 100644 arch/mips/pci/pci-ocelot-g.c
arch/mips/Kconfig +3 -20
index 130d825..ab79b98 100644
@@ -446,23 +446,6 @@ config MOMENCO_OCELOT_C
 	  The Ocelot is a MIPS-based Single Board Computer (SBC) made by
 	  Momentum Computer <http://www.momenco.com/>.
 
-config MOMENCO_OCELOT_G
-	bool "Momentum Ocelot-G board"
-	select DMA_NONCOHERENT
-	select HW_HAS_PCI
-	select IRQ_CPU
-	select IRQ_CPU_RM7K
-	select PCI_MARVELL
-	select RM7000_CPU_SCACHE
-	select SWAP_IO_SPACE
-	select SYS_HAS_CPU_RM7000
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select SYS_SUPPORTS_64BIT_KERNEL if BROKEN
-	select SYS_SUPPORTS_BIG_ENDIAN
-	help
-	  The Ocelot is a MIPS-based Single Board Computer (SBC) made by
-	  Momentum Computer <http://www.momenco.com/>.
-
 config MIPS_XXS1500
 	bool "MyCable XXS1500 board"
 	select DMA_NONCOHERENT
@@ -1080,9 +1063,9 @@ config WDT_RM9000
 choice
 	prompt "Galileo Chip Clock"
 	#default SYSCLK_83 if MIPS_EV64120
-	depends on MIPS_EV64120 || MOMENCO_OCELOT || MOMENCO_OCELOT_G
+	depends on MIPS_EV64120 || MOMENCO_OCELOT
 	default SYSCLK_83 if MIPS_EV64120
-	default SYSCLK_100 if MOMENCO_OCELOT || MOMENCO_OCELOT_G
+	default SYSCLK_100 if MOMENCO_OCELOT
 
 config SYSCLK_75
 	bool "75" if MIPS_EV64120
@@ -1091,7 +1074,7 @@ config SYSCLK_83
 	bool "83.3" if MIPS_EV64120
 
 config SYSCLK_100
-	bool "100" if MIPS_EV64120 || MOMENCO_OCELOT || MOMENCO_OCELOT_G
+	bool "100" if MIPS_EV64120 || MOMENCO_OCELOT
 
 endchoice
 
arch/mips/Makefile +0 -9
index f2f742d..3e8a777 100644
@@ -343,15 +343,6 @@ cflags-$(CONFIG_MOMENCO_OCELOT)	+= -Iinclude/asm-mips/mach-ocelot
 load-$(CONFIG_MOMENCO_OCELOT)	+= 0xffffffff80100000
 
 #
-# Momentum Ocelot-G board
-#
-# The Ocelot-G setup.o must be linked early - it does the ioremap() for the
-# mips_io_port_base.
-#
-core-$(CONFIG_MOMENCO_OCELOT_G)	+= arch/mips/momentum/ocelot_g/
-load-$(CONFIG_MOMENCO_OCELOT_G)	+= 0xffffffff80100000
-
-#
 # Momentum Ocelot-C and -CS boards
 #
 # The Ocelot-C[S] setup.o must be linked early - it does the ioremap() for the
arch/mips/configs/ocelot_g_defconfig deleted +0 -981

981 lines not on this page · raw message

arch/mips/momentum/ocelot_g/Makefile deleted +0 -6
deleted file mode 100644
index c0a0030..0000000
@@ -1,6 +0,0 @@
-#
-# Makefile for Momentum Computer's Ocelot-G board.
-#
-
-obj-y	 		+= irq.o gt-irq.o prom.o reset.o setup.o
-obj-$(CONFIG_KGDB)	+= dbg_io.o
arch/mips/momentum/ocelot_g/dbg_io.c deleted +0 -121

121 lines not on this page · raw message

arch/mips/momentum/ocelot_g/gt-irq.c deleted +0 -212

212 lines not on this page · raw message

arch/mips/momentum/ocelot_g/irq.c deleted +0 -101

101 lines not on this page · raw message

arch/mips/momentum/ocelot_g/ocelot_pld.h deleted +0 -30
deleted file mode 100644
index 95e0534..0000000
@@ -1,30 +0,0 @@
-/*
- * Ocelot Board Register Definitions
- *
- * (C) 2001 Red Hat, Inc.
- *
- * GPL'd
- */
-#ifndef __MOMENCO_OCELOT_PLD_H__
-#define __MOMENCO_OCELOT_PLD_H__
-
-#define OCELOT_CS0_ADDR (0xfc000000)
-
-#define OCELOT_REG_BOARDREV (0)
-#define OCELOT_REG_PLD1_ID (1)
-#define OCELOT_REG_PLD2_ID (2)
-#define OCELOT_REG_RESET_STATUS (3)
-#define OCELOT_REG_BOARD_STATUS (4)
-#define OCELOT_REG_CPCI_ID (5)
-#define OCELOT_REG_I2C_CTRL (8)
-#define OCELOT_REG_EEPROM_MODE (9)
-#define OCELOT_REG_INTMASK (10)
-#define OCELOT_REG_INTSTATUS (11)
-#define OCELOT_REG_INTSET (12)
-#define OCELOT_REG_INTCLR (13)
-
-#define __PLD_REG_TO_ADDR(reg) ((void *) OCELOT_CS0_ADDR + OCELOT_REG_##reg)
-#define OCELOT_PLD_WRITE(x, reg) writeb(x, __PLD_REG_TO_ADDR(reg))
-#define OCELOT_PLD_READ(reg) readb(__PLD_REG_TO_ADDR(reg))
-
-#endif /* __MOMENCO_OCELOT_PLD_H__ */
arch/mips/momentum/ocelot_g/prom.c deleted +0 -84

84 lines not on this page · raw message

arch/mips/momentum/ocelot_g/reset.c deleted +0 -47

47 lines not on this page · raw message

arch/mips/momentum/ocelot_g/setup.c deleted +0 -267

267 lines not on this page · raw message

arch/mips/pci/Makefile +0 -1
index df487c0..30a1c79 100644
@@ -34,7 +34,6 @@ obj-$(CONFIG_MOMENCO_JAGUAR_ATX)+= fixup-jaguar.o
 obj-$(CONFIG_MOMENCO_OCELOT)	+= fixup-ocelot.o pci-ocelot.o
 obj-$(CONFIG_MOMENCO_OCELOT_3)	+= fixup-ocelot3.o
 obj-$(CONFIG_MOMENCO_OCELOT_C)	+= fixup-ocelot-c.o pci-ocelot-c.o
-obj-$(CONFIG_MOMENCO_OCELOT_G)	+= fixup-ocelot-g.o pci-ocelot-g.o
 obj-$(CONFIG_PMC_YOSEMITE)	+= fixup-yosemite.o ops-titan.o ops-titan-ht.o \
 				   pci-yosemite.o
 obj-$(CONFIG_SGI_IP27)		+= ops-bridge.o pci-ip27.o
arch/mips/pci/fixup-ocelot-g.c deleted +0 -37
deleted file mode 100644
index d7a652e..0000000
@@ -1,37 +0,0 @@
-/*
- * 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.
- *
- * Copyright (C) 2004 Ralf Baechle ([email protected])
- */
-#include <linux/types.h>
-#include <linux/pci.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-
-int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
-{
-	int bus = dev->bus->number;
-
-	if (bus == 0 && slot == 1)	/* Intel 82543 Gigabit MAC */
-		return 2;		/* irq_nr is 2 for INT0 */
-
-	if (bus == 0 && slot == 2)	/* Intel 82543 Gigabit MAC */
-		return 3;		/* irq_nr is 3 for INT1 */
-
-	if (bus == 1 && slot == 3)	/* Intel 21555 bridge */
-		return 5;		/* irq_nr is 8 for INT6 */
-
-	if (bus == 1 && slot == 4)	/* PMC Slot */
-		return 9;		/* irq_nr is 9 for INT7 */
-
-	return -1;
-}
-
-/* Do platform specific device initialization at pci_enable_device() time */
-int pcibios_plat_dev_init(struct pci_dev *dev)
-{
-	return 0;
-}
arch/mips/pci/pci-ocelot-g.c deleted +0 -97

97 lines not on this page · raw message

include/asm-mips/bootinfo.h +1 -1
index c7c945b..05fc263 100644
@@ -119,7 +119,7 @@
  */
 #define MACH_GROUP_MOMENCO	12	/* Momentum Boards		*/
 #define  MACH_MOMENCO_OCELOT	0
-#define  MACH_MOMENCO_OCELOT_G	1
+#define  MACH_MOMENCO_OCELOT_G	1	/* no more supported (may 2007) */
 #define  MACH_MOMENCO_OCELOT_C	2
 #define  MACH_MOMENCO_JAGUAR_ATX 3
 #define  MACH_MOMENCO_OCELOT_3	4
include/asm-mips/serial.h +0 -22
index d7a6513..5e0da6e 100644
@@ -134,27 +134,6 @@
 #define MOMENCO_OCELOT_SERIAL_PORT_DEFNS
 #endif
 
-#ifdef CONFIG_MOMENCO_OCELOT_G
-/* Ordinary NS16552 duart with a 20MHz crystal.  */
-#define OCELOT_G_BASE_BAUD ( 20000000 / 16 )
-
-#define OCELOT_G_SERIAL1_IRQ	4
-#if 0
-#define OCELOT_G_SERIAL1_BASE	0xe0001020
-#else
-#define OCELOT_G_SERIAL1_BASE	0xfd000020
-#endif
-
-#define _OCELOT_G_SERIAL_INIT(int, base)				\
-	{ .baud_base = OCELOT_G_BASE_BAUD, .irq = int, .flags = STD_COM_FLAGS,\
-	  .iomem_base = (u8 *) base, .iomem_reg_shift = 2,			\
-	  .io_type = SERIAL_IO_MEM }
-#define MOMENCO_OCELOT_G_SERIAL_PORT_DEFNS				\
-	_OCELOT_G_SERIAL_INIT(OCELOT_G_SERIAL1_IRQ, OCELOT_G_SERIAL1_BASE)
-#else
-#define MOMENCO_OCELOT_G_SERIAL_PORT_DEFNS
-#endif
-
 #ifdef CONFIG_MOMENCO_OCELOT_C
 /* Ordinary NS16552 duart with a 20MHz crystal.  */
 #define OCELOT_C_BASE_BAUD ( 20000000 / 16 )
@@ -210,7 +189,6 @@
 	IP32_SERIAL_PORT_DEFNS                          \
 	JAZZ_SERIAL_PORT_DEFNS				\
 	STD_SERIAL_PORT_DEFNS				\
-	MOMENCO_OCELOT_G_SERIAL_PORT_DEFNS		\
 	MOMENCO_OCELOT_C_SERIAL_PORT_DEFNS		\
 	MOMENCO_OCELOT_SERIAL_PORT_DEFNS		\
 	MOMENCO_OCELOT_3_SERIAL_PORT_DEFNS
Signature · 1 line
1.5.1.3
#0 lore raw

cover Remove Momentum Jaguar and Ocelot G board supports [take #2]

Hi all,

These 2 boards have several hacks that make them annoying to support. Specially when improving generic MIPS code.

Since they're scheduled for removal since June 2006, it should be high time to get rid of them.

Take #2 has removed and fixed some header files as suggested by Atsushi.

Please consider,

Franck

---

 arch/mips/Kconfig                                |   51 +--
 arch/mips/Makefile                               |   20 -
 arch/mips/configs/jaguar-atx_defconfig           |  897 --------------------
 arch/mips/configs/ocelot_g_defconfig             |  981 ----------------------
 arch/mips/mm/highmem.c                           |    2 -
 arch/mips/mm/init.c                              |    3 -
 arch/mips/momentum/Kconfig                       |    6 -
 arch/mips/momentum/jaguar_atx/Makefile           |   12 -
 arch/mips/momentum/jaguar_atx/dbg_io.c           |  125 ---
 arch/mips/momentum/jaguar_atx/irq.c              |   94 --
 arch/mips/momentum/jaguar_atx/ja-console.c       |  101 ---
 arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h  |   54 --
 arch/mips/momentum/jaguar_atx/platform.c         |  208 -----
 arch/mips/momentum/jaguar_atx/prom.c             |  210 -----
 arch/mips/momentum/jaguar_atx/reset.c            |   56 --
 arch/mips/momentum/jaguar_atx/setup.c            |  475 -----------
 arch/mips/momentum/ocelot_g/Makefile             |    6 -
 arch/mips/momentum/ocelot_g/dbg_io.c             |  121 ---
 arch/mips/momentum/ocelot_g/gt-irq.c             |  212 -----
 arch/mips/momentum/ocelot_g/irq.c                |  101 ---
 arch/mips/momentum/ocelot_g/ocelot_pld.h         |   30 -
 arch/mips/momentum/ocelot_g/prom.c               |   84 --
 arch/mips/momentum/ocelot_g/reset.c              |   47 -
 arch/mips/momentum/ocelot_g/setup.c              |  267 ------
 arch/mips/pci/Makefile                           |    2 -
 arch/mips/pci/fixup-jaguar.c                     |   43 -
 arch/mips/pci/fixup-ocelot-g.c                   |   37 -
 arch/mips/pci/pci-ocelot-g.c                     |   97 ---
 include/asm-mips/bootinfo.h                      |    4 +-
 include/asm-mips/highmem.h                       |   42 -
 include/asm-mips/mach-ja/cpu-feature-overrides.h |   45 -
 include/asm-mips/mach-ja/spaces.h                |   20 -
 include/asm-mips/page.h                          |    4 -
 include/asm-mips/serial.h                        |   41 -
 34 files changed, 5 insertions(+), 4493 deletions(-)
 delete mode 100644 arch/mips/configs/jaguar-atx_defconfig
 delete mode 100644 arch/mips/configs/ocelot_g_defconfig
 delete mode 100644 arch/mips/momentum/Kconfig
 delete mode 100644 arch/mips/momentum/jaguar_atx/Makefile
 delete mode 100644 arch/mips/momentum/jaguar_atx/dbg_io.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/irq.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/ja-console.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
 delete mode 100644 arch/mips/momentum/jaguar_atx/platform.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/prom.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/reset.c
 delete mode 100644 arch/mips/momentum/jaguar_atx/setup.c
 delete mode 100644 arch/mips/momentum/ocelot_g/Makefile
 delete mode 100644 arch/mips/momentum/ocelot_g/dbg_io.c
 delete mode 100644 arch/mips/momentum/ocelot_g/gt-irq.c
 delete mode 100644 arch/mips/momentum/ocelot_g/irq.c
 delete mode 100644 arch/mips/momentum/ocelot_g/ocelot_pld.h
 delete mode 100644 arch/mips/momentum/ocelot_g/prom.c
 delete mode 100644 arch/mips/momentum/ocelot_g/reset.c
 delete mode 100644 arch/mips/momentum/ocelot_g/setup.c
 delete mode 100644 arch/mips/pci/fixup-jaguar.c
 delete mode 100644 arch/mips/pci/fixup-ocelot-g.c
 delete mode 100644 arch/mips/pci/pci-ocelot-g.c
 delete mode 100644 include/asm-mips/mach-ja/cpu-feature-overrides.h
 delete mode 100644 include/asm-mips/mach-ja/spaces.h
#5 lore raw

PATCH 3/3 Remove LIMITED_DMA support

From: Franck Bui-Huu <[email protected]>

This code was needed only by Jaguar ATX.

---
 arch/mips/Kconfig          |    5 -----
 arch/mips/mm/highmem.c     |    2 --
 arch/mips/mm/init.c        |    3 ---
 include/asm-mips/highmem.h |   42 ------------------------------------------
 include/asm-mips/page.h    |    4 ----
 5 files changed, 0 insertions(+), 56 deletions(-)
arch/mips/Kconfig +0 -5
index 28caf80..77a1ef0 100644
@@ -885,11 +885,6 @@ config GENERIC_ISA_DMA
 config I8259
 	bool
 
-config LIMITED_DMA
-	bool
-	select HIGHMEM
-	select SYS_SUPPORTS_HIGHMEM
-
 config MIPS_BONITO64
 	bool
 
arch/mips/mm/highmem.c +0 -2
index 675502a..10dd2af 100644
@@ -80,7 +80,6 @@ void __kunmap_atomic(void *kvaddr, enum km_type type)
 	pagefault_enable();
 }
 
-#ifndef CONFIG_LIMITED_DMA
 /*
  * This is the same as kmap_atomic() but can map memory that doesn't
  * have a struct page associated with it.
@@ -99,7 +98,6 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type)
 
 	return (void*) vaddr;
 }
-#endif /* CONFIG_LIMITED_DMA */
 
 struct page *__kmap_atomic_to_page(void *ptr)
 {
arch/mips/mm/init.c +0 -3
index 2d1c2c0..4c80528 100644
@@ -424,9 +424,6 @@ void __init mem_init(void)
 			continue;
 		}
 		ClearPageReserved(page);
-#ifdef CONFIG_LIMITED_DMA
-		set_page_address(page, lowmem_page_address(page));
-#endif
 		init_page_count(page);
 		__free_page(page);
 		totalhigh_pages++;
include/asm-mips/highmem.h +0 -42

54 lines not on this page · raw message

include/asm-mips/page.h +0 -4
index d3fbd83..5c3239d 100644
@@ -190,10 +190,6 @@ typedef struct { unsigned long pgprot; } pgprot_t;
 #define UNCAC_ADDR(addr)	((addr) - PAGE_OFFSET + UNCAC_BASE)
 #define CAC_ADDR(addr)		((addr) - UNCAC_BASE + PAGE_OFFSET)
 
-#ifdef CONFIG_LIMITED_DMA
-#define WANT_PAGE_VIRTUAL
-#endif
-
 #include <asm-generic/memory_model.h>
 #include <asm-generic/page.h>
 
Signature · 1 line
1.5.1.3
#6 lore raw

Re: [PATCH 3/3] Remove LIMITED_DMA support

In reply to Franck Bui-Huu
Quoted 1 line · Franck Bui-Huu

Subject: [PATCH 3/3] Remove LIMITED_DMA support

Pleased to say goodbye to this one also,

Ralf

#7 lore raw

Re: [PATCH 3/3] Remove LIMITED_DMA support

Quoted 6 lines · Ralf Baechle
Quoted 1 line · Franck Bui-Huu

Subject: [PATCH 3/3] Remove LIMITED_DMA support

Pleased to say goodbye to this one also,

Thanks !

Signature · 1 line
              Franck