LASAT updates - now it boots- whoohoo
Subsystems (2)
PATCH 1/1 LASAT updates - now it boots- whoohoo
Hi Ralf,
this patch gets the code into the shape where I get up into
userspace - on the boards with flash I can login and the system mostly works. On the boards with disks I cant login and I get a lot of exceptions on startup but it looks close to working. The pcnet32 patch is necessary for LASAT and I have not been able to get a response from anyone with network code responsibility to even comment the patch. Surely this patch which is necessary for a platform can be accepted via linux-mips (you) when you merge with Linus?
/Brian
Index: arch/mips/Kconfig-shared
===================================================================
RCS file: /cvs/linux/arch/mips/Kconfig-shared,v
retrieving revision 1.55
mips/Kconfig-shared +0 -8
@@ -107,14 +107,6 @@ config LASAT bool "Support for LASAT Networks platforms" -config LASAT_100 - bool "Support for LASAT Networks 100 series" - depends on LASAT - -config LASAT_200 - bool "Support for LASAT Networks 200 series" - depends on LASAT - config PICVUE tristate "PICVUE LCD display driver" depends on LASAT
Index: arch/mips/lasat/prom.c
===================================================================
RCS file: /cvs/linux/arch/mips/lasat/prom.c,v
retrieving revision 1.4
mips/lasat/prom.c +1 -1
@@ -76,7 +76,7 @@ {u32 version = *(u32 *)(RESET_VECTOR +0x90 ); -if (version ==306 ) { +if (version >=307 ) { prom_display = (void *)PROM_DISPLAY_ADDR ; prom_putc = (void *)PROM_PUTC_ADDR ; prom_printf = real_prom_printf;
Index: arch/mips/lasat/setup.c
===================================================================
RCS file: /cvs/linux/arch/mips/lasat/setup.c,v
retrieving revision 1.7
mips/lasat/setup.c +13 -11
@@ -36,7 +36,9 @@#include <asm/irq.h> #include <asm/lasat/lasat.h> +#include <linux/tty.h> #include <linux/serial.h> +#include <linux/serial_core.h> #include <asm/serial.h> #include <asm/lasat/serial.h>
@@ -150,28 +152,28 @@ll_timer_interrupt (MIPS_CPU_TIMER_IRQ , regs); } -//#define DYNAMIC_SERIAL_INIT +#define DYNAMIC_SERIAL_INIT #ifdef DYNAMIC_SERIAL_INIT void __init serial_init (void ) { -#ifdef CONFIG_SERIAL -struct serial_struct s; +#ifdef CONFIG_SERIAL_8250 +struct uart_port s;memset (&s,0 ,sizeof (s)); - s.flags =STD_COM_FLAGS ; - s.io_type =SERIAL_IO_MEM ; + s.flags =STD_COM_FLAGS |UPF_RESOURCES ; + s.iotype =SERIAL_IO_MEM ;if (mips_machtype ==MACH_LASAT_100 ) { - s.baud_base =LASAT_BASE_BAUD_100 ; + s.uartclk =LASAT_BASE_BAUD_100 *16 ; s.irq =LASATINT_UART_100 ; - s.iomem_reg_shift =LASAT_UART_REGS_SHIFT_100 ; - s.iomem_base = (u8 *)KSEG1ADDR (LASAT_UART_REGS_BASE_100 ); + s.regshift =LASAT_UART_REGS_SHIFT_100 ; + s.membase = (char *)KSEG1ADDR (LASAT_UART_REGS_BASE_100 ); }else { - s.baud_base =LASAT_BASE_BAUD_200 ; + s.uartclk =LASAT_BASE_BAUD_200 *16 ; s.irq =LASATINT_UART_200 ; - s.iomem_reg_shift =LASAT_UART_REGS_SHIFT_200 ; - s.iomem_base = (u8 *)KSEG1ADDR (LASAT_UART_REGS_BASE_200 ); + s.regshift =LASAT_UART_REGS_SHIFT_200 ; + s.membase = (char *)KSEG1ADDR (LASAT_UART_REGS_BASE_200 ); }if (early_serial_setup (&s) !=0 )
Index: arch/mips/pci/Makefile
===================================================================
RCS file: /cvs/linux/arch/mips/pci/Makefile,v
retrieving revision 1.1
mips/pci/Makefile +1 -1
@@ -12,7 +12,7 @@ obj-$(CONFIG_DDB5477) += pci-ddb5477.o ops-ddb5477.o obj-$(CONFIG_HP_LASERJET) += pci-hplj.o obj-$(CONFIG_ITE_BOARD_GEN) += ops-it8172.o -obj-$(CONFIG_LASAT) += pci-lasat.o +obj-$(CONFIG_LASAT) += pci-lasat.o common.o obj-$(CONFIG_MIPS_BOARDS_GEN) += pci-mips.o obj-$(CONFIG_MIPS_COBALT) += pci-cobalt.o obj-$(CONFIG_MIPS_EV64120) += ops-ev64120.o
Index: arch/mips/pci/common.c
===================================================================
RCS file: /cvs/linux/arch/mips/pci/common.c,v
retrieving revision 1.2
mips/pci/common.c +4 -1
@@ -1,6 +1,9 @@ +#include <linux/config.h> +#include <linux/init.h> +#include <linux/pci.h> +void __init pcibios_fixup_bus (struct pci_bus *b) { -Dprintk ("pcibios_fixup_bus()\n" ); }static int pcibios_enable_resources (struct pci_dev *dev,int mask)
Index: arch/mips/pci/pci-lasat.c
===================================================================
RCS file: /cvs/linux/arch/mips/pci/pci-lasat.c,v
retrieving revision 1.3
mips/pci/pci-lasat.c +1 -4
@@ -239,7 +239,4 @@return 0 ; } -unsigned __init int pcibios_assign_all_busses (void ) -{ -return 1 ; -} +subsys_initcall (pcibios_init);
Index: drivers/net/pcnet32.c
===================================================================
RCS file: /cvs/linux/drivers/net/pcnet32.c,v
retrieving revision 1.51
net/pcnet32.c +5 -1
@@ -769,9 +769,12 @@if (irq_line) { dev->irq = irq_line; } - + +#ifndef CONFIG_LASAT if (dev->irq >= 2) +#endif printk(" assigned IRQ %d.\n", dev->irq); +#ifndef CONFIG_LASAT else { unsigned long irq_mask = probe_irq_on();
@@ -794,6 +797,7 @@ return -ENODEV; } } +#endif /* Set the mii phy_id so that we can query the link state */ if (lp->mii)
Index: include/asm-mips/serial.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/serial.h,v
retrieving revision 1.39
asm-mips/serial.h +5 -7
@@ -156,13 +156,11 @@#endif #ifdef CONFIG_LASAT -#include <asm/lasat/serial.h> -#define LASAT_SERIAL_PORT_DEFNS \ - { .baud_base = LASAT_BASE_BAUD, .irq = LASATINT_UART, \ - .flags = STD_COM_FLAGS, \ - .port = LASAT_UART_REGS_BASE, /* Only for display */ \ - .iomem_base = (u8 *)KSEG1ADDR(LASAT_UART_REGS_BASE), \ - .iomem_reg_shift = LASAT_UART_REGS_SHIFT, .io_type = SERIAL_IO_MEM }, +/* This dummy definition allocates one element in the SERIAL_PORT_DFNS +* list below. This element is filled out by the the code in serial_init() +* in arch/mips/lasat/setup.c which autoselects the configuration based +* on machine type. */ +#define LASAT_SERIAL_PORT_DEFNS { },#else #define LASAT_SERIAL_PORT_DEFNS #endif
Index: include/asm-mips/lasat/serial.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/lasat/serial.h,v retrieving revision 1.2
asm-mips/lasat/serial.h +0 -15
@@ -11,18 +11,3 @@#define LASAT_UART_REGS_BASE_200 (Vrc5074_PHYS_BASE + 0x0300)#define LASAT_UART_REGS_SHIFT_200 3#define LASATINT_UART_200 13 - -#if defined(CONFIG_LASAT_100 ) -#define LASAT_BASE_BAUD LASAT_BASE_BAUD_200 -#define LASAT_UART_REGS_BASE LASAT_UART_REGS_BASE_200 -#define LASAT_UART_REGS_SHIFT LASAT_UART_REGS_SHIFT_200 -#define LASATINT_UART LASAT_UART_REGS_SHIFT_200 -#elif defined(CONFIG_LASAT_200 ) -#define LASAT_BASE_BAUD LASAT_BASE_BAUD_200 -#define LASAT_UART_REGS_BASE LASAT_UART_REGS_BASE_200 -#define LASAT_UART_REGS_SHIFT LASAT_UART_REGS_SHIFT_200 -#define LASATINT_UART LASAT_UART_REGS_SHIFT_200 -#else -#error Select a Lasat board in the configuration menu -#endif -