Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
673a5bd7
Commit
673a5bd7
authored
Jul 21, 2002
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Change some instances of CONFIG_SERIAL_CONSOLE to CONFIG_SERIAL_8250_CONSOLE.
parent
6d5d05d6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
arch/ppc/boot/common/misc-common.c
arch/ppc/boot/common/misc-common.c
+8
-8
arch/ppc/boot/prep/Makefile
arch/ppc/boot/prep/Makefile
+1
-1
arch/ppc/boot/prep/misc.c
arch/ppc/boot/prep/misc.c
+4
-4
arch/ppc/boot/simple/Makefile
arch/ppc/boot/simple/Makefile
+2
-2
arch/ppc/boot/simple/misc-spruce.c
arch/ppc/boot/simple/misc-spruce.c
+1
-1
No files found.
arch/ppc/boot/common/misc-common.c
View file @
673a5bd7
...
...
@@ -75,7 +75,7 @@ static int _cvt(unsigned long val, char *buf, long radix, char *digits);
void
_vprintk
(
void
(
*
putc
)(
const
char
),
const
char
*
fmt0
,
va_list
ap
);
unsigned
char
*
ISA_io
=
NULL
;
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_CONSOLE)
|| defined(CONFIG_SERIAL_8250_CONSOLE)
extern
unsigned
long
com_port
;
extern
int
serial_tstc
(
unsigned
long
com_port
);
...
...
@@ -96,7 +96,7 @@ void exit(void)
int
tstc
(
void
)
{
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_CONSOLE)
|| defined(CONFIG_SERIAL_8250_CONSOLE)
if
(
keyb_present
)
return
(
CRT_tstc
()
||
serial_tstc
(
com_port
));
else
...
...
@@ -109,10 +109,10 @@ int tstc(void)
int
getc
(
void
)
{
while
(
1
)
{
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_CONSOLE)
|| defined(CONFIG_SERIAL_8250_CONSOLE)
if
(
serial_tstc
(
com_port
))
return
(
serial_getc
(
com_port
));
#endif
/*
CONFIG_SERIAL_CONSOLE
*/
#endif
/*
serial console
*/
if
(
keyb_present
)
if
(
CRT_tstc
())
return
(
CRT_getc
());
...
...
@@ -124,11 +124,11 @@ putc(const char c)
{
int
x
,
y
;
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_CONSOLE)
|| defined(CONFIG_SERIAL_8250_CONSOLE)
serial_putc
(
com_port
,
c
);
if
(
c
==
'\n'
)
serial_putc
(
com_port
,
'\r'
);
#endif
/*
CONFIG_SERIAL_CONSOLE
*/
#endif
/*
serial console
*/
x
=
orig_x
;
y
=
orig_y
;
...
...
@@ -171,10 +171,10 @@ void puts(const char *s)
y
=
orig_y
;
while
(
(
c
=
*
s
++
)
!=
'\0'
)
{
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_CONSOLE)
|| defined(CONFIG_SERIAL_8250_CONSOLE)
serial_putc
(
com_port
,
c
);
if
(
c
==
'\n'
)
serial_putc
(
com_port
,
'\r'
);
#endif
/*
CONFIG_SERIAL_CONSOLE
*/
#endif
/*
serial console
*/
if
(
c
==
'\n'
)
{
x
=
0
;
...
...
arch/ppc/boot/prep/Makefile
View file @
673a5bd7
...
...
@@ -27,7 +27,7 @@ boot-y := head.o ../simple/legacy.o misc.o of1275.o \
OBJCOPY_ARGS
=
-O
elf32-powerpc
LIBS
=
../lib/zlib.a
boot-$(
CONFIG_SERIAL_CONSOLE)
+=
../common/ns16550.o
boot-$(
$CONFIG_SERIAL_8250_CONSOLE)
+=
../common/ns16550.o
boot-$(CONFIG_VGA_CONSOLE)
+=
vreset.o kbd.o
EXTRA_TARGETS
:=
$
(
boot-y
)
...
...
arch/ppc/boot/prep/misc.c
View file @
673a5bd7
...
...
@@ -56,9 +56,9 @@ unsigned long orig_MSR;
char
*
zimage_start
;
int
zimage_size
;
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_
8250_
CONSOLE)
unsigned
long
com_port
;
#endif
/* CONFIG_SERIAL_CONSOLE */
#endif
/* CONFIG_SERIAL_
8250_
CONSOLE */
#ifdef CONFIG_VGA_CONSOLE
char
*
vidmem
=
(
char
*
)
0xC00B8000
;
int
lines
=
25
,
cols
=
80
;
...
...
@@ -135,9 +135,9 @@ decompress_kernel(unsigned long load_addr, int num_words, unsigned long cksum,
unsigned
int
pci_viddid
,
pci_did
,
tulip_pci_base
,
tulip_base
;
serial_fixups
();
#if defined(CONFIG_SERIAL_CONSOLE)
#if defined(CONFIG_SERIAL_
8250_
CONSOLE)
com_port
=
serial_init
(
0
,
NULL
);
#endif
/* CONFIG_SERIAL_CONSOLE */
#endif
/* CONFIG_SERIAL_
8250_
CONSOLE */
#if defined(CONFIG_VGA_CONSOLE)
vga_init
((
unsigned
char
*
)
0xC0000000
);
#endif
/* CONFIG_VGA_CONSOLE */
...
...
arch/ppc/boot/simple/Makefile
View file @
673a5bd7
...
...
@@ -136,9 +136,9 @@ boot-$(CONFIG_RPXLITE) += iic.o
ifeq
($(CONFIG_SERIAL_CONSOLE),y)
boot-$(CONFIG_8xx)
+=
m8xx_tty.o
boot-$(CONFIG_8260)
+=
m8260_tty.o
boot-$(CONFIG_GT64260_CONSOLE)
+=
gt64260_tty.o
boot-$(CONFIG_SERIAL)
+=
../common/ns16550.o
boot-$(CONFIG_GT64260_CONSOLE)
+=
gt64260_tty.o
endif
boot-$(CONFIG_SERIAL_8250_CONSOLE)
+=
../common/ns16550.o
EXTRA_TARGETS
:=
$
(
boot-y
)
LIBS
:=
../lib/zlib.a
...
...
arch/ppc/boot/simple/misc-spruce.c
View file @
673a5bd7
...
...
@@ -189,7 +189,7 @@ decompress_kernel(unsigned long load_addr, int num_words, unsigned long cksum)
unsigned
char
header_type
;
unsigned
int
bar0
;
#ifdef CONFIG_SERIAL_CONSOLE
#ifdef CONFIG_SERIAL_
8250_
CONSOLE
/* Initialize the serial console port */
com_port
=
serial_init
(
0
,
NULL
);
#endif
...
...
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