Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/5] MIPS: fix cobalt I/O resource range
@ 2006-12-01 13:12 Yoichi Yuasa
  2006-12-01 13:16 ` [PATCH 2/5] MIPS: remove unused resources for cobalt Yoichi Yuasa
  2006-12-04 14:10 ` [PATCH 1/5] MIPS: fix cobalt I/O resource range Ralf Baechle
  0 siblings, 2 replies; 9+ messages in thread
From: Yoichi Yuasa @ 2006-12-01 13:12 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips

Hi Ralf,

This patch has fixed cobalt I/O reource range.
The cobalt real I/O resource range from 0x0 to 0xffff.

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/cobalt/setup.c mips/arch/mips/cobalt/setup.c
--- mips-orig/arch/mips/cobalt/setup.c	2006-10-12 01:03:18.055569000 +0900
+++ mips/arch/mips/cobalt/setup.c	2006-10-12 01:01:59.973744750 +0900
@@ -130,8 +130,7 @@ void __init plat_mem_setup(void)
 
 	set_io_port_base(CKSEG1ADDR(GT_DEF_PCI0_IO_BASE));
 
-	/* I/O port resource must include UART and LCD/buttons */
-	ioport_resource.end = 0x0fffffff;
+	ioport_resource.end = 0xffff;
 
 	/* request I/O space for devices used on all i[345]86 PCs */
 	for (i = 0; i < COBALT_IO_RESOURCES; i++)
@@ -149,24 +148,24 @@ void __init plat_mem_setup(void)
 	register_pci_controller(&cobalt_pci_controller);
 #endif
 
-#ifdef CONFIG_SERIAL_8250
 	if (cobalt_board_id > COBALT_BRD_ID_RAQ1) {
-
 #ifdef CONFIG_EARLY_PRINTK
 		cobalt_early_console();
 #endif
 
+#ifdef CONFIG_SERIAL_8250
 		uart.line	= 0;
 		uart.type	= PORT_UNKNOWN;
 		uart.uartclk	= 18432000;
 		uart.irq	= COBALT_SERIAL_IRQ;
-		uart.flags	= UPF_BOOT_AUTOCONF | UPF_SKIP_TEST;
-		uart.iobase	= 0xc800000;
-		uart.iotype	= UPIO_PORT;
+		uart.flags	= UPF_IOREMAP | UPF_BOOT_AUTOCONF |
+				  UPF_SKIP_TEST;
+		uart.iotype	= UPIO_MEM;
+		uart.mapbase	= 0x1c800000;
 
 		early_serial_setup(&uart);
-	}
 #endif
+	}
 }
 
 /*

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-12-06  0:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-01 13:12 [PATCH 1/5] MIPS: fix cobalt I/O resource range Yoichi Yuasa
2006-12-01 13:16 ` [PATCH 2/5] MIPS: remove unused resources for cobalt Yoichi Yuasa
2006-12-01 13:17   ` [PATCH 3/5] MIPS: separate cobalt PCI codes from setup.c Yoichi Yuasa
2006-12-01 13:19     ` [PATCH 4/5] MIPS: update reset operations for cobalt Yoichi Yuasa
2006-12-01 13:20       ` [PATCH 5/5] MIPS: clean up include files " Yoichi Yuasa
2006-12-04 14:13     ` [PATCH 3/5] MIPS: separate cobalt PCI codes from setup.c Ralf Baechle
2006-12-04 14:12   ` [PATCH 2/5] MIPS: remove unused resources for cobalt Ralf Baechle
2006-12-04 14:10 ` [PATCH 1/5] MIPS: fix cobalt I/O resource range Ralf Baechle
2006-12-06  0:40   ` Yoichi Yuasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox