Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31245
b: refs/heads/master
c: a3d4539
h: refs/heads/master
i:
  31243: c7e4c53
v: v3
  • Loading branch information
Ralf Baechle committed Jun 29, 2006
1 parent bd262f0 commit 6d2dd06
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73f403527b9ec5367376076eafb3d2f505d8e2e3
refs/heads/master: a3d45391866d2c244363c3000fc6c1acb3dfcb0b
1 change: 1 addition & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ config SGI_IP27
select ARC64
select BOOT_ELF64
select DMA_IP27
select EARLY_PRINTK
select HW_HAS_PCI
select PCI_DOMAINS
select SYS_HAS_CPU_R10000
Expand Down
11 changes: 6 additions & 5 deletions trunk/arch/mips/sgi-ip27/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# Makefile for the IP27 specific kernel interface routines under Linux.
#

obj-y := ip27-berr.o ip27-console.o ip27-irq.o ip27-init.o \
ip27-klconfig.o ip27-klnuma.o ip27-memory.o ip27-nmi.o ip27-reset.o \
ip27-timer.o ip27-hubio.o ip27-xtalk.o
obj-y := ip27-berr.o ip27-irq.o ip27-init.o ip27-klconfig.o ip27-klnuma.o \
ip27-memory.o ip27-nmi.o ip27-reset.o ip27-timer.o ip27-hubio.o \
ip27-xtalk.o

obj-$(CONFIG_KGDB) += ip27-dbgio.o
obj-$(CONFIG_SMP) += ip27-smp.o
obj-$(CONFIG_EARLY_PRINTK) += ip27-console.o
obj-$(CONFIG_KGDB) += ip27-dbgio.o
obj-$(CONFIG_SMP) += ip27-smp.o

EXTRA_AFLAGS := $(CFLAGS)
40 changes: 18 additions & 22 deletions trunk/arch/mips/sgi-ip27/ip27-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,29 @@ void prom_putchar(char c)
uart->iu_thr = c;
}

char __init prom_getchar(void)
static void ioc3_console_write(struct console *con, const char *s, unsigned n)
{
return 0;
while (n-- && *s) {
if (*s == '\n')
prom_putchar('\r');
prom_putchar(*s);
s++;
}
}

static void inline ioc3_console_probe(void)
{
struct uart_port up;

/*
* Register to interrupt zero because we share the interrupt with
* the serial driver which we don't properly support yet.
*/
memset(&up, 0, sizeof(up));
up.membase = (unsigned char *) console_uart();
up.irq = 0;
up.uartclk = IOC3_CLK;
up.regshift = 0;
up.iotype = UPIO_MEM;
up.flags = IOC3_FLAGS;
up.line = 0;
static struct console ioc3_console = {
.name = "ioc3",
.write = ioc3_console_write,
.flags = CON_PRINTBUFFER | CON_BOOT,
.index = -1
};

if (early_serial_setup(&up))
printk(KERN_ERR "Early serial init of port 0 failed\n");
__init void ip27_setup_console(void)
{
register_console(&ioc3_console);
}

__init void ip27_setup_console(void)
void __init disable_early_printk(void)
{
ioc3_console_probe();
unregister_console(&ioc3_console);
}

0 comments on commit 6d2dd06

Please sign in to comment.