Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a3d45391
Commit
a3d45391
authored
Jun 22, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Early printk for IP27.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
73f40352
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
27 deletions
+25
-27
arch/mips/Kconfig
arch/mips/Kconfig
+1
-0
arch/mips/sgi-ip27/Makefile
arch/mips/sgi-ip27/Makefile
+6
-5
arch/mips/sgi-ip27/ip27-console.c
arch/mips/sgi-ip27/ip27-console.c
+18
-22
No files found.
arch/mips/Kconfig
View file @
a3d45391
...
@@ -606,6 +606,7 @@ config SGI_IP27
...
@@ -606,6 +606,7 @@ config SGI_IP27
select ARC64
select ARC64
select BOOT_ELF64
select BOOT_ELF64
select DMA_IP27
select DMA_IP27
select EARLY_PRINTK
select HW_HAS_PCI
select HW_HAS_PCI
select PCI_DOMAINS
select PCI_DOMAINS
select SYS_HAS_CPU_R10000
select SYS_HAS_CPU_R10000
...
...
arch/mips/sgi-ip27/Makefile
View file @
a3d45391
...
@@ -2,10 +2,11 @@
...
@@ -2,10 +2,11 @@
# Makefile for the IP27 specific kernel interface routines under Linux.
# Makefile for the IP27 specific kernel interface routines under Linux.
#
#
obj-y
:=
ip27-berr.o ip27-
console.o ip27-irq.o ip27-init
.o
\
obj-y
:=
ip27-berr.o ip27-
irq.o ip27-init.o ip27-klconfig.o ip27-klnuma
.o
\
ip27-
klconfig.o ip27-klnuma.o ip27-memory.o ip27-nmi.o ip27-reset
.o
\
ip27-
memory.o ip27-nmi.o ip27-reset.o ip27-timer.o ip27-hubio
.o
\
ip27-
timer.o ip27-hubio.o ip27-
xtalk.o
ip27-xtalk.o
obj-$(CONFIG_EARLY_PRINTK)
+=
ip27-console.o
obj-$(CONFIG_KGDB)
+=
ip27-dbgio.o
obj-$(CONFIG_KGDB)
+=
ip27-dbgio.o
obj-$(CONFIG_SMP)
+=
ip27-smp.o
obj-$(CONFIG_SMP)
+=
ip27-smp.o
...
...
arch/mips/sgi-ip27/ip27-console.c
View file @
a3d45391
...
@@ -46,33 +46,29 @@ void prom_putchar(char c)
...
@@ -46,33 +46,29 @@ void prom_putchar(char c)
uart
->
iu_thr
=
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
)
static
struct
console
ioc3_console
=
{
{
.
name
=
"ioc3"
,
struct
uart_port
up
;
.
write
=
ioc3_console_write
,
.
flags
=
CON_PRINTBUFFER
|
CON_BOOT
,
/*
.
index
=
-
1
* 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
;
if
(
early_serial_setup
(
&
up
))
__init
void
ip27_setup_console
(
void
)
printk
(
KERN_ERR
"Early serial init of port 0 failed
\n
"
);
{
register_console
(
&
ioc3_console
);
}
}
__init
void
ip27_setup_console
(
void
)
void
__init
disable_early_printk
(
void
)
{
{
ioc3_console_probe
(
);
unregister_console
(
&
ioc3_console
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment