Commit 7e2225d8 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus

* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (54 commits)
  [MIPS] Remove mips_machtype for LASAT machines
  [MIPS] Remove mips_machtype from EMMA2RH machines
  [MIPS] Remove mips_machtype from ARC based machines
  [MIPS] MTX-1 flash partition setup move to platform devices registration
  [MIPS] TXx9: cleanup and fix some sparse warnings
  [MIPS] TXx9: rename asm-mips/mach-jmr3927 to asm-mips/mach-tx39xx
  [MIPS] remove machtype for group Toshiba
  [MIPS] separate rbtx4927_time_init() and rbtx4937_time_init()
  [MIPS] separate rbtx4927_arch_init() and rbtx4937_arch_init()
  [MIPS] txx9_cpu_clock setup move to rbtx4927_time_init()
  [MIPS] txx9_board_vec set directly without mips_machtype
  [MIPS] IP22: Add platform device for Indy volume buttons
  [MIPS] cmbvr4133: Remove support
  [MIPS] remove wrppmc_machine_power_off()
  [MIPS] replace inline assembler to cpu_wait()
  [MIPS] IP22/28: Add platform devices for HAL2
  [MIPS] TXx9: Update and merge defconfigs
  [MIPS] TXx9: Make single kernel can support multiple boards
  [MIPS] TXx9: Update defconfigs
  [MIPS] TXx9: Reorganize PCI code
  ...
parents 3a628b0f b27418aa
...@@ -181,38 +181,6 @@ config LEMOTE_FULONG ...@@ -181,38 +181,6 @@ config LEMOTE_FULONG
Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and
an FPGA northbridge an FPGA northbridge
config MIPS_ATLAS
bool "MIPS Atlas board"
select BOOT_ELF32
select BOOT_RAW
select CEVT_R4K
select CSRC_R4K
select DMA_NONCOHERENT
select SYS_HAS_EARLY_PRINTK
select IRQ_CPU
select HW_HAS_PCI
select MIPS_BOARDS_GEN
select MIPS_BONITO64
select PCI_GT64XXX_PCI0
select MIPS_MSC
select RM7000_CPU_SCACHE
select SWAP_IO_SPACE
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_HAS_CPU_MIPS64_R1
select SYS_HAS_CPU_NEVADA
select SYS_HAS_CPU_RM7000
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_64BIT_KERNEL
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_MULTITHREADING if EXPERIMENTAL
select SYS_SUPPORTS_SMARTMIPS
select GENERIC_HARDIRQS_NO__DO_IRQ
help
This enables support for the MIPS Technologies Atlas evaluation
board.
config MIPS_MALTA config MIPS_MALTA
bool "MIPS Malta board" bool "MIPS Malta board"
select ARCH_MAY_HAVE_PC_FDC select ARCH_MAY_HAVE_PC_FDC
...@@ -249,26 +217,6 @@ config MIPS_MALTA ...@@ -249,26 +217,6 @@ config MIPS_MALTA
This enables support for the MIPS Technologies Malta evaluation This enables support for the MIPS Technologies Malta evaluation
board. board.
config MIPS_SEAD
bool "MIPS SEAD board"
select CEVT_R4K
select CSRC_R4K
select IRQ_CPU
select DMA_NONCOHERENT
select SYS_HAS_EARLY_PRINTK
select MIPS_BOARDS_GEN
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_HAS_CPU_MIPS64_R1
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_SMARTMIPS
help
This enables support for the MIPS Technologies SEAD evaluation
board.
config MIPS_SIM config MIPS_SIM
bool 'MIPS simulator (MIPSsim)' bool 'MIPS simulator (MIPSsim)'
select CEVT_R4K select CEVT_R4K
...@@ -437,6 +385,8 @@ config SGI_IP28 ...@@ -437,6 +385,8 @@ config SGI_IP28
select SGI_HAS_DS1286 select SGI_HAS_DS1286
select SGI_HAS_I8042 select SGI_HAS_I8042
select SGI_HAS_INDYDOG select SGI_HAS_INDYDOG
select SGI_HAS_HAL2
select SGI_HAS_HAL2
select SGI_HAS_SEEQ select SGI_HAS_SEEQ
select SGI_HAS_WD93 select SGI_HAS_WD93
select SGI_HAS_ZILOG select SGI_HAS_ZILOG
...@@ -602,65 +552,11 @@ config SNI_RM ...@@ -602,65 +552,11 @@ config SNI_RM
Technology and now in turn merged with Fujitsu. Say Y here to Technology and now in turn merged with Fujitsu. Say Y here to
support this machine type. support this machine type.
config TOSHIBA_JMR3927 config MACH_TX39XX
bool "Toshiba JMR-TX3927 board" bool "Toshiba TX39 series based machines"
select CEVT_TXX9
select DMA_NONCOHERENT
select HW_HAS_PCI
select MIPS_TX3927
select IRQ_TXX9
select SWAP_IO_SPACE
select SYS_HAS_CPU_TX39XX
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_BIG_ENDIAN
select GENERIC_HARDIRQS_NO__DO_IRQ
select GPIO_TXX9
config TOSHIBA_RBTX4927 config MACH_TX49XX
bool "Toshiba RBTX49[23]7 board" bool "Toshiba TX49 series based machines"
select CEVT_R4K
select CSRC_R4K
select CEVT_TXX9
select DMA_NONCOHERENT
select HAS_TXX9_SERIAL
select HW_HAS_PCI
select IRQ_CPU
select IRQ_TXX9
select I8259 if TOSHIBA_FPCIB0
select SWAP_IO_SPACE
select SYS_HAS_CPU_TX49XX
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_64BIT_KERNEL
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_KGDB
select GENERIC_HARDIRQS_NO__DO_IRQ
help
This Toshiba board is based on the TX4927 processor. Say Y here to
support this machine type
config TOSHIBA_RBTX4938
bool "Toshiba RBTX4938 board"
select CEVT_R4K
select CSRC_R4K
select CEVT_TXX9
select DMA_NONCOHERENT
select HAS_TXX9_SERIAL
select HW_HAS_PCI
select IRQ_CPU
select IRQ_TXX9
select SWAP_IO_SPACE
select SYS_HAS_CPU_TX49XX
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_KGDB
select GENERIC_HARDIRQS_NO__DO_IRQ
select GPIO_TXX9
help
This Toshiba board is based on the TX4938 processor. Say Y here to
support this machine type
config WR_PPMC config WR_PPMC
bool "Wind River PPMC board" bool "Wind River PPMC board"
...@@ -694,8 +590,7 @@ source "arch/mips/lasat/Kconfig" ...@@ -694,8 +590,7 @@ source "arch/mips/lasat/Kconfig"
source "arch/mips/pmc-sierra/Kconfig" source "arch/mips/pmc-sierra/Kconfig"
source "arch/mips/sgi-ip27/Kconfig" source "arch/mips/sgi-ip27/Kconfig"
source "arch/mips/sibyte/Kconfig" source "arch/mips/sibyte/Kconfig"
source "arch/mips/tx4927/Kconfig" source "arch/mips/txx9/Kconfig"
source "arch/mips/tx4938/Kconfig"
source "arch/mips/vr41xx/Kconfig" source "arch/mips/vr41xx/Kconfig"
endmenu endmenu
...@@ -939,10 +834,6 @@ config PCI_GT64XXX_PCI0 ...@@ -939,10 +834,6 @@ config PCI_GT64XXX_PCI0
config NO_EXCEPT_FILL config NO_EXCEPT_FILL
bool bool
config MIPS_TX3927
bool
select HAS_TXX9_SERIAL
config MIPS_RM9122 config MIPS_RM9122
bool bool
select SERIAL_RM9000 select SERIAL_RM9000
...@@ -979,6 +870,9 @@ config SGI_HAS_DS1286 ...@@ -979,6 +870,9 @@ config SGI_HAS_DS1286
config SGI_HAS_INDYDOG config SGI_HAS_INDYDOG
bool bool
config SGI_HAS_HAL2
bool
config SGI_HAS_SEEQ config SGI_HAS_SEEQ
bool bool
...@@ -2065,10 +1959,6 @@ source "fs/Kconfig.binfmt" ...@@ -2065,10 +1959,6 @@ source "fs/Kconfig.binfmt"
config TRAD_SIGNALS config TRAD_SIGNALS
bool bool
config BINFMT_IRIX
bool "Include IRIX binary compatibility"
depends on CPU_BIG_ENDIAN && 32BIT && BROKEN
config MIPS32_COMPAT config MIPS32_COMPAT
bool "Kernel support for Linux/MIPS 32-bit binary compatibility" bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
depends on 64BIT depends on 64BIT
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
KBUILD_DEFCONFIG := ip22_defconfig KBUILD_DEFCONFIG := ip22_defconfig
cflags-y := cflags-y := -ffunction-sections
# #
# Select the object file format to substitute into the linker script. # Select the object file format to substitute into the linker script.
...@@ -304,36 +304,14 @@ core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/ ...@@ -304,36 +304,14 @@ core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/
load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000 load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000
cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
#
# For all MIPS, Inc. eval boards
#
core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/
#
# MIPS Atlas board
#
core-$(CONFIG_MIPS_ATLAS) += arch/mips/mips-boards/atlas/
cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-atlas
cflags-$(CONFIG_MIPS_ATLAS) += -Iinclude/asm-mips/mach-mips
load-$(CONFIG_MIPS_ATLAS) += 0xffffffff80100000
all-$(CONFIG_MIPS_ATLAS) := vmlinux.bin
# #
# MIPS Malta board # MIPS Malta board
# #
core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/
cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-mips cflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-malta
load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000
all-$(CONFIG_MIPS_MALTA) := vmlinux.bin all-$(CONFIG_MIPS_MALTA) := vmlinux.bin
#
# MIPS SEAD board
#
core-$(CONFIG_MIPS_SEAD) += arch/mips/mips-boards/sead/
cflags-$(CONFIG_MIPS_SEAD) += -Iinclude/asm-mips/mach-mips
load-$(CONFIG_MIPS_SEAD) += 0xffffffff80100000
all-$(CONFIG_MIPS_SEAD) := vmlinux.srec
# #
# MIPS SIM # MIPS SIM
# #
...@@ -376,12 +354,6 @@ load-$(CONFIG_LASAT) += 0xffffffff80000000 ...@@ -376,12 +354,6 @@ load-$(CONFIG_LASAT) += 0xffffffff80000000
core-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/ core-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/
cflags-$(CONFIG_MACH_VR41XX) += -Iinclude/asm-mips/mach-vr41xx cflags-$(CONFIG_MACH_VR41XX) += -Iinclude/asm-mips/mach-vr41xx
#
# NEC VR4133
#
core-$(CONFIG_NEC_CMBVR4133) += arch/mips/vr41xx/nec-cmbvr4133/
load-$(CONFIG_NEC_CMBVR4133) += 0xffffffff80100000
# #
# ZAO Networks Capcella (VR4131) # ZAO Networks Capcella (VR4131)
# #
...@@ -572,30 +544,31 @@ load-$(CONFIG_SNI_RM) += 0xffffffff80030000 ...@@ -572,30 +544,31 @@ load-$(CONFIG_SNI_RM) += 0xffffffff80030000
endif endif
all-$(CONFIG_SNI_RM) := vmlinux.ecoff all-$(CONFIG_SNI_RM) := vmlinux.ecoff
#
# Common TXx9
#
core-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/
cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-tx39xx
load-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000
core-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/
cflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx
load-$(CONFIG_MACH_TX49XX) += 0xffffffff80100000
# #
# Toshiba JMR-TX3927 board # Toshiba JMR-TX3927 board
# #
core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/jmr3927/rbhma3100/ \ core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/txx9/jmr3927/
arch/mips/jmr3927/common/
cflags-$(CONFIG_TOSHIBA_JMR3927) += -Iinclude/asm-mips/mach-jmr3927
load-$(CONFIG_TOSHIBA_JMR3927) += 0xffffffff80050000
# #
# Toshiba RBTX4927 board or # Toshiba RBTX4927 board or
# Toshiba RBTX4937 board # Toshiba RBTX4937 board
# #
core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/ core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/txx9/rbtx4927/
core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/
cflags-$(CONFIG_TOSHIBA_RBTX4927) += -Iinclude/asm-mips/mach-tx49xx
load-$(CONFIG_TOSHIBA_RBTX4927) += 0xffffffff80020000
# #
# Toshiba RBTX4938 board # Toshiba RBTX4938 board
# #
core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/toshiba_rbtx4938/ core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/rbtx4938/
core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/common/
cflags-$(CONFIG_TOSHIBA_RBTX4938) += -Iinclude/asm-mips/mach-tx49xx
load-$(CONFIG_TOSHIBA_RBTX4938) += 0xffffffff80100000
cflags-y += -Iinclude/asm-mips/mach-generic cflags-y += -Iinclude/asm-mips/mach-generic
drivers-$(CONFIG_PCI) += arch/mips/pci/ drivers-$(CONFIG_PCI) += arch/mips/pci/
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* warranty of any kind, whether express or implied. * warranty of any kind, whether express or implied.
*/ */
#include <linux/dma-mapping.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/serial_8250.h> #include <linux/serial_8250.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -77,14 +78,14 @@ static struct resource au1xxx_usb_ohci_resources[] = { ...@@ -77,14 +78,14 @@ static struct resource au1xxx_usb_ohci_resources[] = {
}; };
/* The dmamask must be set for OHCI to work */ /* The dmamask must be set for OHCI to work */
static u64 ohci_dmamask = ~(u32)0; static u64 ohci_dmamask = DMA_32BIT_MASK;
static struct platform_device au1xxx_usb_ohci_device = { static struct platform_device au1xxx_usb_ohci_device = {
.name = "au1xxx-ohci", .name = "au1xxx-ohci",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &ohci_dmamask, .dma_mask = &ohci_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1xxx_usb_ohci_resources), .num_resources = ARRAY_SIZE(au1xxx_usb_ohci_resources),
.resource = au1xxx_usb_ohci_resources, .resource = au1xxx_usb_ohci_resources,
...@@ -106,14 +107,14 @@ static struct resource au1100_lcd_resources[] = { ...@@ -106,14 +107,14 @@ static struct resource au1100_lcd_resources[] = {
} }
}; };
static u64 au1100_lcd_dmamask = ~(u32)0; static u64 au1100_lcd_dmamask = DMA_32BIT_MASK;
static struct platform_device au1100_lcd_device = { static struct platform_device au1100_lcd_device = {
.name = "au1100-lcd", .name = "au1100-lcd",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &au1100_lcd_dmamask, .dma_mask = &au1100_lcd_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1100_lcd_resources), .num_resources = ARRAY_SIZE(au1100_lcd_resources),
.resource = au1100_lcd_resources, .resource = au1100_lcd_resources,
...@@ -135,14 +136,14 @@ static struct resource au1xxx_usb_ehci_resources[] = { ...@@ -135,14 +136,14 @@ static struct resource au1xxx_usb_ehci_resources[] = {
}, },
}; };
static u64 ehci_dmamask = ~(u32)0; static u64 ehci_dmamask = DMA_32BIT_MASK;
static struct platform_device au1xxx_usb_ehci_device = { static struct platform_device au1xxx_usb_ehci_device = {
.name = "au1xxx-ehci", .name = "au1xxx-ehci",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &ehci_dmamask, .dma_mask = &ehci_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1xxx_usb_ehci_resources), .num_resources = ARRAY_SIZE(au1xxx_usb_ehci_resources),
.resource = au1xxx_usb_ehci_resources, .resource = au1xxx_usb_ehci_resources,
...@@ -180,14 +181,14 @@ static struct resource au1xxx_mmc_resources[] = { ...@@ -180,14 +181,14 @@ static struct resource au1xxx_mmc_resources[] = {
} }
}; };
static u64 udc_dmamask = ~(u32)0; static u64 udc_dmamask = DMA_32BIT_MASK;
static struct platform_device au1xxx_usb_gdt_device = { static struct platform_device au1xxx_usb_gdt_device = {
.name = "au1xxx-udc", .name = "au1xxx-udc",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &udc_dmamask, .dma_mask = &udc_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1xxx_usb_gdt_resources), .num_resources = ARRAY_SIZE(au1xxx_usb_gdt_resources),
.resource = au1xxx_usb_gdt_resources, .resource = au1xxx_usb_gdt_resources,
...@@ -207,14 +208,14 @@ static struct resource au1xxx_usb_otg_resources[] = { ...@@ -207,14 +208,14 @@ static struct resource au1xxx_usb_otg_resources[] = {
}, },
}; };
static u64 uoc_dmamask = ~(u32)0; static u64 uoc_dmamask = DMA_32BIT_MASK;
static struct platform_device au1xxx_usb_otg_device = { static struct platform_device au1xxx_usb_otg_device = {
.name = "au1xxx-uoc", .name = "au1xxx-uoc",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &uoc_dmamask, .dma_mask = &uoc_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1xxx_usb_otg_resources), .num_resources = ARRAY_SIZE(au1xxx_usb_otg_resources),
.resource = au1xxx_usb_otg_resources, .resource = au1xxx_usb_otg_resources,
...@@ -233,27 +234,27 @@ static struct resource au1200_lcd_resources[] = { ...@@ -233,27 +234,27 @@ static struct resource au1200_lcd_resources[] = {
} }
}; };
static u64 au1200_lcd_dmamask = ~(u32)0; static u64 au1200_lcd_dmamask = DMA_32BIT_MASK;
static struct platform_device au1200_lcd_device = { static struct platform_device au1200_lcd_device = {
.name = "au1200-lcd", .name = "au1200-lcd",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &au1200_lcd_dmamask, .dma_mask = &au1200_lcd_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1200_lcd_resources), .num_resources = ARRAY_SIZE(au1200_lcd_resources),
.resource = au1200_lcd_resources, .resource = au1200_lcd_resources,
}; };
static u64 au1xxx_mmc_dmamask = ~(u32)0; static u64 au1xxx_mmc_dmamask = DMA_32BIT_MASK;
static struct platform_device au1xxx_mmc_device = { static struct platform_device au1xxx_mmc_device = {
.name = "au1xxx-mmc", .name = "au1xxx-mmc",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &au1xxx_mmc_dmamask, .dma_mask = &au1xxx_mmc_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(au1xxx_mmc_resources), .num_resources = ARRAY_SIZE(au1xxx_mmc_resources),
.resource = au1xxx_mmc_resources, .resource = au1xxx_mmc_resources,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/gpio_keys.h> #include <linux/gpio_keys.h>
#include <linux/input.h> #include <linux/input.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <mtd/mtd-abi.h>
static struct gpio_keys_button mtx1_gpio_button[] = { static struct gpio_keys_button mtx1_gpio_button[] = {
{ {
...@@ -85,10 +88,56 @@ static struct platform_device mtx1_gpio_leds = { ...@@ -85,10 +88,56 @@ static struct platform_device mtx1_gpio_leds = {
} }
}; };
static struct mtd_partition mtx1_mtd_partitions[] = {
{
.name = "filesystem",
.size = 0x01C00000,
.offset = 0,
},
{
.name = "yamon",
.size = 0x00100000,
.offset = MTDPART_OFS_APPEND,
.mask_flags = MTD_WRITEABLE,
},
{
.name = "kernel",
.size = 0x002c0000,
.offset = MTDPART_OFS_APPEND,
},
{
.name = "yamon env",
.size = 0x00040000,
.offset = MTDPART_OFS_APPEND,
},
};
static struct physmap_flash_data mtx1_flash_data = {
.width = 4,
.nr_parts = 4,
.parts = mtx1_mtd_partitions,
};
static struct resource mtx1_mtd_resource = {
.start = 0x1e000000,
.end = 0x1fffffff,
.flags = IORESOURCE_MEM,
};
static struct platform_device mtx1_mtd = {
.name = "physmap-flash",
.dev = {
.platform_data = &mtx1_flash_data,
},
.num_resources = 1,
.resource = &mtx1_mtd_resource,
};
static struct __initdata platform_device * mtx1_devs[] = { static struct __initdata platform_device * mtx1_devs[] = {
&mtx1_gpio_leds, &mtx1_gpio_leds,
&mtx1_wdt, &mtx1_wdt,
&mtx1_button &mtx1_button,
&mtx1_mtd,
}; };
static int __init mtx1_register_devices(void) static int __init mtx1_register_devices(void)
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <linux/dma-mapping.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
...@@ -36,14 +37,14 @@ static struct resource ide_resources[] = { ...@@ -36,14 +37,14 @@ static struct resource ide_resources[] = {
} }
}; };
static u64 ide_dmamask = ~(u32)0; static u64 ide_dmamask = DMA_32BIT_MASK;
static struct platform_device ide_device = { static struct platform_device ide_device = {
.name = "au1200-ide", .name = "au1200-ide",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &ide_dmamask, .dma_mask = &ide_dmamask,
.coherent_dma_mask = 0xffffffff, .coherent_dma_mask = DMA_32BIT_MASK,
}, },
.num_resources = ARRAY_SIZE(ide_resources), .num_resources = ARRAY_SIZE(ide_resources),
.resource = ide_resources .resource = ide_resources
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Makefile for the Cobalt micro systems family specific parts of the kernel # Makefile for the Cobalt micro systems family specific parts of the kernel
# #
obj-y := buttons.o irq.o led.o reset.o rtc.o serial.o setup.o time.o obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o
obj-$(CONFIG_PCI) += pci.o obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_EARLY_PRINTK) += console.o obj-$(CONFIG_EARLY_PRINTK) += console.o
......
/*
* Registration of Cobalt LCD platform device.
*
* Copyright (C) 2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
static struct resource cobalt_lcd_resource __initdata = {
.start = 0x1f000000,
.end = 0x1f00001f,
.flags = IORESOURCE_MEM,
};
static __init int cobalt_lcd_add(void)
{
struct platform_device *pdev;
int retval;
pdev = platform_device_alloc("cobalt-lcd", -1);
if (!pdev)
return -ENOMEM;
retval = platform_device_add_resources(pdev, &cobalt_lcd_resource, 1);
if (retval)
goto err_free_device;
retval = platform_device_add(pdev);
if (retval)
goto err_free_device;
return 0;
err_free_device:
platform_device_put(pdev);
return retval;
}
device_initcall(cobalt_lcd_add);
This diff is collapsed.
...@@ -16,9 +16,7 @@ CONFIG_BCM47XX=y ...@@ -16,9 +16,7 @@ CONFIG_BCM47XX=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
This diff is collapsed.
...@@ -14,9 +14,7 @@ CONFIG_MIPS=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -14,9 +14,7 @@ CONFIG_MIPS_COBALT=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS_COBALT=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1000=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1000=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1100=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1100=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1200=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1200=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1500=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1500=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1550=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_DB1550=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
CONFIG_MACH_DECSTATION=y CONFIG_MACH_DECSTATION=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -14,9 +14,7 @@ CONFIG_MIPS=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_BASLER_EXCITE=y ...@@ -27,9 +27,7 @@ CONFIG_BASLER_EXCITE=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -14,9 +14,7 @@ CONFIG_LEMOTE_FULONG=y ...@@ -14,9 +14,7 @@ CONFIG_LEMOTE_FULONG=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_PNX8550_JBS is not set # CONFIG_PNX8550_JBS is not set
......
...@@ -15,9 +15,7 @@ CONFIG_ZONE_DMA=y ...@@ -15,9 +15,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -14,9 +14,7 @@ CONFIG_MIPS=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
CONFIG_MACH_JAZZ=y CONFIG_MACH_JAZZ=y
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
This diff is collapsed.
...@@ -15,9 +15,7 @@ CONFIG_MIPS=y ...@@ -15,9 +15,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
CONFIG_LASAT=y CONFIG_LASAT=y
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -15,9 +15,7 @@ CONFIG_ZONE_DMA=y ...@@ -15,9 +15,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
CONFIG_MIPS_MALTA=y CONFIG_MIPS_MALTA=y
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
...@@ -68,7 +66,6 @@ CONFIG_CPU_LITTLE_ENDIAN=y ...@@ -68,7 +66,6 @@ CONFIG_CPU_LITTLE_ENDIAN=y
CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
CONFIG_IRQ_CPU=y CONFIG_IRQ_CPU=y
CONFIG_MIPS_BOARDS_GEN=y
CONFIG_PCI_GT64XXX_PCI0=y CONFIG_PCI_GT64XXX_PCI0=y
CONFIG_SWAP_IO_SPACE=y CONFIG_SWAP_IO_SPACE=y
CONFIG_BOOT_ELF32=y CONFIG_BOOT_ELF32=y
......
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
CONFIG_MIPS_SIM=y CONFIG_MIPS_SIM=y
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -14,9 +14,7 @@ CONFIG_MIPS=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -14,9 +14,7 @@ CONFIG_MACH_ALCHEMY=y ...@@ -14,9 +14,7 @@ CONFIG_MACH_ALCHEMY=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1100=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1100=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1500=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1500=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1550=y ...@@ -27,9 +27,7 @@ CONFIG_MIPS_PB1550=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
This diff is collapsed.
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set # CONFIG_MACH_VR41XX is not set
......
This diff is collapsed.
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -16,9 +16,7 @@ CONFIG_MIPS=y ...@@ -16,9 +16,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LASAT is not set # CONFIG_LASAT is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -14,9 +14,7 @@ CONFIG_MIPS=y ...@@ -14,9 +14,7 @@ CONFIG_MIPS=y
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_LEMOTE_FULONG is not set # CONFIG_LEMOTE_FULONG is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MARKEINS is not set # CONFIG_MARKEINS is not set
CONFIG_MACH_VR41XX=y CONFIG_MACH_VR41XX=y
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
CONFIG_WR_PPMC=y CONFIG_WR_PPMC=y
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y ...@@ -26,9 +26,7 @@ CONFIG_ZONE_DMA=y
# CONFIG_MIPS_COBALT is not set # CONFIG_MIPS_COBALT is not set
# CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_DECSTATION is not set
# CONFIG_MACH_JAZZ is not set # CONFIG_MACH_JAZZ is not set
# CONFIG_MIPS_ATLAS is not set
# CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SEAD is not set
# CONFIG_WR_PPMC is not set # CONFIG_WR_PPMC is not set
# CONFIG_MIPS_SIM is not set # CONFIG_MIPS_SIM is not set
# CONFIG_MOMENCO_JAGUAR_ATX is not set # CONFIG_MOMENCO_JAGUAR_ATX is not set
......
...@@ -34,12 +34,11 @@ ...@@ -34,12 +34,11 @@
const char *get_system_type(void) const char *get_system_type(void)
{ {
switch (mips_machtype) { #if defined(CONFIG_MARKEINS)
case MACH_NEC_MARKEINS: return "NEC EMMA2RH Mark-eins";
return "NEC EMMA2RH Mark-eins"; #else
default: #error Unknown NEC board
return "Unknown NEC board"; #endif
}
} }
/* [jsun@junsun.net] PMON passes arguments in C main() style */ /* [jsun@junsun.net] PMON passes arguments in C main() style */
...@@ -63,10 +62,10 @@ void __init prom_init(void) ...@@ -63,10 +62,10 @@ void __init prom_init(void)
} }
#if defined(CONFIG_MARKEINS) #if defined(CONFIG_MARKEINS)
mips_machtype = MACH_NEC_MARKEINS;
add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM);
#else
#error Unknown NEC board
#endif #endif
} }
void __init prom_free_prom_memory(void) void __init prom_free_prom_memory(void)
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
struct smatch { struct smatch {
char *arcname; char *arcname;
char *liname; char *liname;
int type;
int flags; int flags;
}; };
...@@ -30,47 +29,38 @@ static struct smatch mach_table[] = { ...@@ -30,47 +29,38 @@ static struct smatch mach_table[] = {
{ {
.arcname = "SGI-IP22", .arcname = "SGI-IP22",
.liname = "SGI Indy", .liname = "SGI Indy",
.type = MACH_SGI_IP22,
.flags = PROM_FLAG_ARCS, .flags = PROM_FLAG_ARCS,
}, { }, {
.arcname = "SGI-IP27", .arcname = "SGI-IP27",
.liname = "SGI Origin", .liname = "SGI Origin",
.type = MACH_SGI_IP27,
.flags = PROM_FLAG_ARCS, .flags = PROM_FLAG_ARCS,
}, { }, {
.arcname = "SGI-IP28", .arcname = "SGI-IP28",
.liname = "SGI IP28", .liname = "SGI IP28",
.type = MACH_SGI_IP28,
.flags = PROM_FLAG_ARCS, .flags = PROM_FLAG_ARCS,
}, { }, {
.arcname = "SGI-IP30", .arcname = "SGI-IP30",
.liname = "SGI Octane", .liname = "SGI Octane",
.type = MACH_SGI_IP30,
.flags = PROM_FLAG_ARCS, .flags = PROM_FLAG_ARCS,
}, { }, {
.arcname = "SGI-IP32", .arcname = "SGI-IP32",
.liname = "SGI O2", .liname = "SGI O2",
.type = MACH_SGI_IP32,
.flags = PROM_FLAG_ARCS, .flags = PROM_FLAG_ARCS,
}, { }, {
.arcname = "Microsoft-Jazz", .arcname = "Microsoft-Jazz",
.liname = "Jazz MIPS_Magnum_4000", .liname = "Jazz MIPS_Magnum_4000",
.type = MACH_MIPS_MAGNUM_4000,
.flags = 0, .flags = 0,
}, { }, {
.arcname = "PICA-61", .arcname = "PICA-61",
.liname = "Jazz Acer_PICA_61", .liname = "Jazz Acer_PICA_61",
.type = MACH_ACER_PICA_61,
.flags = 0, .flags = 0,
}, { }, {
.arcname = "RM200PCI", .arcname = "RM200PCI",
.liname = "SNI RM200_PCI", .liname = "SNI RM200_PCI",
.type = MACH_SNI_RM200_PCI,
.flags = PROM_FLAG_DONT_FREE_TEMP, .flags = PROM_FLAG_DONT_FREE_TEMP,
}, { }, {
.arcname = "RM200PCI-R5K", .arcname = "RM200PCI-R5K",
.liname = "SNI RM200_PCI-R5K", .liname = "SNI RM200_PCI-R5K",
.type = MACH_SNI_RM200_PCI,
.flags = PROM_FLAG_DONT_FREE_TEMP, .flags = PROM_FLAG_DONT_FREE_TEMP,
} }
}; };
...@@ -121,6 +111,5 @@ void __init prom_identify_arch(void) ...@@ -121,6 +111,5 @@ void __init prom_identify_arch(void)
mach = string_to_mach(iname); mach = string_to_mach(iname);
system_type = mach->liname; system_type = mach->liname;
mips_machtype = mach->type;
prom_flags = mach->flags; prom_flags = mach->flags;
} }
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
* *
* Copyright (C) 1997 Ralf Baechle * Copyright (C) 1997 Ralf Baechle
*/ */
#include <linux/irqflags.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
#include <asm/processor.h>
void wrppmc_machine_restart(char *command) void wrppmc_machine_restart(char *command)
{ {
...@@ -32,15 +34,7 @@ void wrppmc_machine_halt(void) ...@@ -32,15 +34,7 @@ void wrppmc_machine_halt(void)
printk(KERN_NOTICE "You can safely turn off the power\n"); printk(KERN_NOTICE "You can safely turn off the power\n");
while (1) { while (1) {
__asm__( if (cpu_wait)
".set\tmips3\n\t" cpu_wait();
"wait\n\t"
".set\tmips0"
);
} }
} }
void wrppmc_machine_power_off(void)
{
wrppmc_machine_halt();
}
...@@ -98,11 +98,10 @@ void __init plat_mem_setup(void) ...@@ -98,11 +98,10 @@ void __init plat_mem_setup(void)
{ {
extern void wrppmc_machine_restart(char *command); extern void wrppmc_machine_restart(char *command);
extern void wrppmc_machine_halt(void); extern void wrppmc_machine_halt(void);
extern void wrppmc_machine_power_off(void);
_machine_restart = wrppmc_machine_restart; _machine_restart = wrppmc_machine_restart;
_machine_halt = wrppmc_machine_halt; _machine_halt = wrppmc_machine_halt;
pm_power_off = wrppmc_machine_power_off; pm_power_off = wrppmc_machine_halt;
/* This makes the operations of 'in/out[bwl]' to the /* This makes the operations of 'in/out[bwl]' to the
* physical address ( < KSEG0) can work via KSEG1 * physical address ( < KSEG0) can work via KSEG1
......
...@@ -76,10 +76,8 @@ void __init plat_mem_setup(void) ...@@ -76,10 +76,8 @@ void __init plat_mem_setup(void)
set_io_port_base(JAZZ_PORT_BASE); set_io_port_base(JAZZ_PORT_BASE);
#ifdef CONFIG_EISA #ifdef CONFIG_EISA
if (mips_machtype == MACH_MIPS_MAGNUM_4000) EISA_bus = 1;
EISA_bus = 1;
#endif #endif
isa_slot_offset = 0xe3000000;
/* request I/O space for devices used on all i[345]86 PCs */ /* request I/O space for devices used on all i[345]86 PCs */
for (i = 0; i < ARRAY_SIZE(jazz_io_resources); i++) for (i = 0; i < ARRAY_SIZE(jazz_io_resources); i++)
......
#
# Makefile for the common code of TOSHIBA JMR-TX3927 board
#
obj-y += prom.o puts.o
EXTRA_CFLAGS += -Werror
/*
*
* BRIEF MODULE DESCRIPTION
* Low level uart routines to directly access a TX[34]927 SIO.
*
* Copyright 2001 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* ahennessy@mvista.com or source@mvista.com
*
* Copyright (C) 2000-2001 Toshiba Corporation
*
* Based on arch/mips/au1000/common/puts.c
*
* 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.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <asm/jmr3927/tx3927.h>
#define TIMEOUT 0xffffff
void
prom_putchar(char c)
{
int i = 0;
do {
i++;
if (i>TIMEOUT)
break;
} while (!(tx3927_sioptr(1)->cisr & TXx927_SICISR_TXALS));
tx3927_sioptr(1)->tfifo = c;
return;
}
void
puts(const char *cp)
{
while (*cp)
prom_putchar(*cp++);
prom_putchar('\r');
prom_putchar('\n');
}
/*
* Copyright 2001 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* ahennessy@mvista.com
*
* arch/mips/jmr3927/common/init.c
*
* Copyright (C) 2000-2001 Toshiba Corporation
*
* 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.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/init.h>
#include <asm/bootinfo.h>
#include <asm/jmr3927/jmr3927.h>
extern void __init prom_init_cmdline(void);
const char *get_system_type(void)
{
return "Toshiba"
#ifdef CONFIG_TOSHIBA_JMR3927
" JMR_TX3927"
#endif
;
}
extern void puts(const char *cp);
void __init prom_init(void)
{
#ifdef CONFIG_TOSHIBA_JMR3927
/* CCFG */
if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0)
puts("Warning: TX3927 TLB off\n");
#endif
prom_init_cmdline();
add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM);
}
...@@ -20,9 +20,6 @@ obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o ...@@ -20,9 +20,6 @@ obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o
obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o
obj-$(CONFIG_SYNC_R4K) += sync-r4k.o obj-$(CONFIG_SYNC_R4K) += sync-r4k.o
binfmt_irix-objs := irixelf.o irixinv.o irixioctl.o irixsig.o \
irix5sys.o sysirix.o
obj-$(CONFIG_STACKTRACE) += stacktrace.o obj-$(CONFIG_STACKTRACE) += stacktrace.o
obj-$(CONFIG_MODULES) += mips_ksyms.o module.o obj-$(CONFIG_MODULES) += mips_ksyms.o module.o
...@@ -63,14 +60,13 @@ obj-$(CONFIG_I8259) += i8259.o ...@@ -63,14 +60,13 @@ obj-$(CONFIG_I8259) += i8259.o
obj-$(CONFIG_IRQ_CPU) += irq_cpu.o obj-$(CONFIG_IRQ_CPU) += irq_cpu.o
obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
obj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o obj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o
obj-$(CONFIG_MIPS_BOARDS_GEN) += irq-msc01.o obj-$(CONFIG_MIPS_MSC) += irq-msc01.o
obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o
obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o
obj-$(CONFIG_IRQ_GIC) += irq-gic.o obj-$(CONFIG_IRQ_GIC) += irq-gic.o
obj-$(CONFIG_32BIT) += scall32-o32.o obj-$(CONFIG_32BIT) += scall32-o32.o
obj-$(CONFIG_64BIT) += scall64-64.o obj-$(CONFIG_64BIT) += scall64-64.o
obj-$(CONFIG_BINFMT_IRIX) += binfmt_irix.o
obj-$(CONFIG_MIPS32_COMPAT) += linux32.o ptrace32.o signal32.o obj-$(CONFIG_MIPS32_COMPAT) += linux32.o ptrace32.o signal32.o
obj-$(CONFIG_MIPS32_N32) += binfmt_elfn32.o scall64-n32.o signal_n32.o obj-$(CONFIG_MIPS32_N32) += binfmt_elfn32.o scall64-n32.o signal_n32.o
obj-$(CONFIG_MIPS32_O32) += binfmt_elfo32.o scall64-o32.o obj-$(CONFIG_MIPS32_O32) += binfmt_elfo32.o scall64-o32.o
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include <linux/console.h> #include <linux/console.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/setup.h>
extern void prom_putchar(char); extern void prom_putchar(char);
static void __init static void __init
......
...@@ -47,23 +47,25 @@ static void txx9_gpio_set(struct gpio_chip *chip, unsigned int offset, ...@@ -47,23 +47,25 @@ static void txx9_gpio_set(struct gpio_chip *chip, unsigned int offset,
static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset) static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset)
{ {
spin_lock_irq(&txx9_gpio_lock); unsigned long flags;
spin_lock_irqsave(&txx9_gpio_lock, flags);
__raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset),
&txx9_pioptr->dir); &txx9_pioptr->dir);
mmiowb(); mmiowb();
spin_unlock_irq(&txx9_gpio_lock); spin_unlock_irqrestore(&txx9_gpio_lock, flags);
return 0; return 0;
} }
static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset, static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset,
int value) int value)
{ {
spin_lock_irq(&txx9_gpio_lock); unsigned long flags;
spin_lock_irqsave(&txx9_gpio_lock, flags);
txx9_gpio_set_raw(offset, value); txx9_gpio_set_raw(offset, value);
__raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset), __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset),
&txx9_pioptr->dir); &txx9_pioptr->dir);
mmiowb(); mmiowb();
spin_unlock_irq(&txx9_gpio_lock); spin_unlock_irqrestore(&txx9_gpio_lock, flags);
return 0; return 0;
} }
......
...@@ -80,7 +80,7 @@ static int pit_next_event(unsigned long delta, struct clock_event_device *evt) ...@@ -80,7 +80,7 @@ static int pit_next_event(unsigned long delta, struct clock_event_device *evt)
* registered. This mechanism replaces the previous #ifdef LOCAL_APIC - * registered. This mechanism replaces the previous #ifdef LOCAL_APIC -
* !using_apic_timer decisions in do_timer_interrupt_hook() * !using_apic_timer decisions in do_timer_interrupt_hook()
*/ */
struct clock_event_device pit_clockevent = { static struct clock_event_device pit_clockevent = {
.name = "pit", .name = "pit",
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
.set_mode = init_pit_timer, .set_mode = init_pit_timer,
......
This diff is collapsed.
This diff is collapsed.
/*
* Support the inventory interface for IRIX binaries
* This is invoked before the mm layer is working, so we do not
* use the linked lists for the inventory yet.
*
* Miguel de Icaza, 1997.
*/
#include <linux/mm.h>
#include <asm/inventory.h>
#include <asm/uaccess.h>
#define MAX_INVENTORY 50
int inventory_items = 0;
static inventory_t inventory [MAX_INVENTORY];
void add_to_inventory(int class, int type, int controller, int unit, int state)
{
inventory_t *ni = &inventory [inventory_items];
if (inventory_items == MAX_INVENTORY)
return;
ni->inv_class = class;
ni->inv_type = type;
ni->inv_controller = controller;
ni->inv_unit = unit;
ni->inv_state = state;
ni->inv_next = ni;
inventory_items++;
}
int dump_inventory_to_user(void __user *userbuf, int size)
{
inventory_t *inv = &inventory [0];
inventory_t __user *user = userbuf;
int v;
if (!access_ok(VERIFY_WRITE, userbuf, size))
return -EFAULT;
for (v = 0; v < inventory_items; v++){
inv = &inventory [v];
if (copy_to_user (user, inv, sizeof (inventory_t)))
return -EFAULT;
user++;
}
return inventory_items * sizeof(inventory_t);
}
int __init init_inventory(void)
{
/*
* gross hack while we put the right bits all over the kernel
* most likely this will not let just anyone run the X server
* until we put the right values all over the place
*/
add_to_inventory(10, 3, 0, 0, 16400);
add_to_inventory(1, 1, 150, -1, 12);
add_to_inventory(1, 3, 0, 0, 8976);
add_to_inventory(1, 2, 0, 0, 8976);
add_to_inventory(4, 8, 0, 0, 2);
add_to_inventory(5, 5, 0, 0, 1);
add_to_inventory(3, 3, 0, 0, 32768);
add_to_inventory(3, 4, 0, 0, 32768);
add_to_inventory(3, 8, 0, 0, 524288);
add_to_inventory(3, 9, 0, 0, 64);
add_to_inventory(3, 1, 0, 0, 67108864);
add_to_inventory(12, 3, 0, 0, 16);
add_to_inventory(8, 7, 17, 0, 16777472);
add_to_inventory(8, 0, 0, 0, 1);
add_to_inventory(2, 1, 0, 13, 2);
add_to_inventory(2, 2, 0, 2, 0);
add_to_inventory(2, 2, 0, 1, 0);
add_to_inventory(7, 14, 0, 0, 6);
return 0;
}
This diff is collapsed.
This diff is collapsed.
...@@ -44,8 +44,6 @@ int allocate_irqno(void) ...@@ -44,8 +44,6 @@ int allocate_irqno(void)
return irq; return irq;
} }
EXPORT_SYMBOL_GPL(allocate_irqno);
/* /*
* Allocate the 16 legacy interrupts for i8259 devices. This happens early * Allocate the 16 legacy interrupts for i8259 devices. This happens early
* in the kernel initialization so treating allocation failure as BUG() is * in the kernel initialization so treating allocation failure as BUG() is
...@@ -66,8 +64,6 @@ void free_irqno(unsigned int irq) ...@@ -66,8 +64,6 @@ void free_irqno(unsigned int irq)
smp_mb__after_clear_bit(); smp_mb__after_clear_bit();
} }
EXPORT_SYMBOL_GPL(free_irqno);
/* /*
* 'what should we do if we get a hw irq event on an illegal vector'. * 'what should we do if we get a hw irq event on an illegal vector'.
* each architecture has to answer this themselves. * each architecture has to answer this themselves.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
*/ */
#include <linux/device.h> #include <linux/device.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -84,9 +83,9 @@ void mips_mt_regdump(unsigned long mvpctl) ...@@ -84,9 +83,9 @@ void mips_mt_regdump(unsigned long mvpctl)
read_vpe_c0_vpeconf0()); read_vpe_c0_vpeconf0());
printk(" VPE%d.Status : %08lx\n", printk(" VPE%d.Status : %08lx\n",
i, read_vpe_c0_status()); i, read_vpe_c0_status());
printk(" VPE%d.EPC : %08lx ", printk(" VPE%d.EPC : %08lx %pS\n",
i, read_vpe_c0_epc()); i, read_vpe_c0_epc(),
print_symbol("%s\n", read_vpe_c0_epc()); (void *) read_vpe_c0_epc());
printk(" VPE%d.Cause : %08lx\n", printk(" VPE%d.Cause : %08lx\n",
i, read_vpe_c0_cause()); i, read_vpe_c0_cause());
printk(" VPE%d.Config7 : %08lx\n", printk(" VPE%d.Config7 : %08lx\n",
...@@ -111,8 +110,8 @@ void mips_mt_regdump(unsigned long mvpctl) ...@@ -111,8 +110,8 @@ void mips_mt_regdump(unsigned long mvpctl)
} }
printk(" TCStatus : %08lx\n", tcstatval); printk(" TCStatus : %08lx\n", tcstatval);
printk(" TCBind : %08lx\n", read_tc_c0_tcbind()); printk(" TCBind : %08lx\n", read_tc_c0_tcbind());
printk(" TCRestart : %08lx ", read_tc_c0_tcrestart()); printk(" TCRestart : %08lx %pS\n",
print_symbol("%s\n", read_tc_c0_tcrestart()); read_tc_c0_tcrestart(), (void *) read_tc_c0_tcrestart());
printk(" TCHalt : %08lx\n", haltval); printk(" TCHalt : %08lx\n", haltval);
printk(" TCContext : %08lx\n", read_tc_c0_tccontext()); printk(" TCContext : %08lx\n", read_tc_c0_tccontext());
if (!haltval) if (!haltval)
......
...@@ -125,13 +125,6 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, ...@@ -125,13 +125,6 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
*childregs = *regs; *childregs = *regs;
childregs->regs[7] = 0; /* Clear error flag */ childregs->regs[7] = 0; /* Clear error flag */
#if defined(CONFIG_BINFMT_IRIX)
if (current->personality != PER_LINUX) {
/* Under IRIX things are a little different. */
childregs->regs[3] = 1;
regs->regs[3] = 0;
}
#endif
childregs->regs[2] = 0; /* Child gets zero as return value */ childregs->regs[2] = 0; /* Child gets zero as return value */
regs->regs[2] = p->pid; regs->regs[2] = p->pid;
......
This diff is collapsed.
...@@ -68,13 +68,6 @@ static char command_line[CL_SIZE]; ...@@ -68,13 +68,6 @@ static char command_line[CL_SIZE];
const unsigned long mips_io_port_base __read_mostly = -1; const unsigned long mips_io_port_base __read_mostly = -1;
EXPORT_SYMBOL(mips_io_port_base); EXPORT_SYMBOL(mips_io_port_base);
/*
* isa_slot_offset is the address where E(ISA) busaddress 0 is mapped
* for the processor.
*/
unsigned long isa_slot_offset;
EXPORT_SYMBOL(isa_slot_offset);
static struct resource code_resource = { .name = "Kernel code", }; static struct resource code_resource = { .name = "Kernel code", };
static struct resource data_resource = { .name = "Kernel data", }; static struct resource data_resource = { .name = "Kernel data", };
...@@ -557,11 +550,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -557,11 +550,7 @@ void __init setup_arch(char **cmdline_p)
prom_init(); prom_init();
#ifdef CONFIG_EARLY_PRINTK #ifdef CONFIG_EARLY_PRINTK
{ setup_early_printk();
extern void setup_early_printk(void);
setup_early_printk();
}
#endif #endif
cpu_report(); cpu_report();
check_bugs_early(); check_bugs_early();
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <asm/bootinfo.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include "at93c.h" #include "at93c.h"
/* New model description table */ /* New model description table */
...@@ -66,7 +65,7 @@ static void init_flash_sizes(void) ...@@ -66,7 +65,7 @@ static void init_flash_sizes(void)
ls[LASAT_MTD_SERVICE] = 0xC0000; ls[LASAT_MTD_SERVICE] = 0xC0000;
ls[LASAT_MTD_NORMAL] = 0x100000; ls[LASAT_MTD_NORMAL] = 0x100000;
if (mips_machtype == MACH_LASAT_100) { if (!IS_LASAT_200()) {
lasat_board_info.li_flash_base = 0x1e000000; lasat_board_info.li_flash_base = 0x1e000000;
lb[LASAT_MTD_BOOTLOADER] = 0x1e400000; lb[LASAT_MTD_BOOTLOADER] = 0x1e400000;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment