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
Kirill Smelkov
linux
Commits
a832c38b
Commit
a832c38b
authored
Jul 27, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://24.221.152.185/linux-2.5-misc
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
8e70b6f7
cb472547
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
86 additions
and
29 deletions
+86
-29
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
arch/ppc/config.in
arch/ppc/config.in
+4
-0
arch/ppc/kernel/Makefile
arch/ppc/kernel/Makefile
+1
-0
arch/ppc/kernel/prep_nvram.c
arch/ppc/kernel/prep_nvram.c
+7
-2
arch/ppc/platforms/Makefile
arch/ppc/platforms/Makefile
+2
-2
arch/ppc/platforms/cpc700.h
arch/ppc/platforms/cpc700.h
+2
-2
arch/ppc/platforms/cpc700_pic.c
arch/ppc/platforms/cpc700_pic.c
+2
-2
arch/ppc/platforms/lopec_setup.c
arch/ppc/platforms/lopec_setup.c
+30
-0
arch/ppc/platforms/pplus_setup.c
arch/ppc/platforms/pplus_setup.c
+20
-3
arch/ppc/platforms/spruce_setup.c
arch/ppc/platforms/spruce_setup.c
+2
-2
No files found.
arch/ppc/boot/common/misc-common.c
View file @
a832c38b
...
...
@@ -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 @
a832c38b
...
...
@@ -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 @
a832c38b
...
...
@@ -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 @
a832c38b
...
...
@@ -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 @
a832c38b
...
...
@@ -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
...
...
arch/ppc/config.in
View file @
a832c38b
...
...
@@ -365,6 +365,10 @@ if [ "$CONFIG_ALL_PPC" = "y" ]; then
bool 'Support for RTAS (RunTime Abstraction Services) in /proc' CONFIG_PPC_RTAS
bool 'Support for PReP Residual Data' CONFIG_PREP_RESIDUAL
dep_bool ' Support for reading of PReP Residual Data in /proc' CONFIG_PROC_PREPRESIDUAL $CONFIG_PREP_RESIDUAL
define_bool CONFIG_PPCBUG_NVRAM y
fi
if [ "$CONFIG_PPLUS" = "y" -o "$CONFIG_LOPEC" = "y" ]; then
bool 'Enable reading PPCBUG NVRAM during boot' CONFIG_PPCBUG_NVRAM
fi
bool 'Default bootloader kernel arguments' CONFIG_CMDLINE_BOOL
...
...
arch/ppc/kernel/Makefile
View file @
a832c38b
...
...
@@ -35,6 +35,7 @@ obj-$(CONFIG_PCI) += pci.o
ifneq
($(CONFIG_PPC_ISERIES),y)
obj-$(CONFIG_PCI)
+=
pci-dma.o
endif
obj-$(CONFIG_PPCBUG_NVRAM)
+=
prep_nvram.o
obj-$(CONFIG_KGDB)
+=
ppc-stub.o
obj-$(CONFIG_SMP)
+=
smp.o
obj-$(CONFIG_TAU)
+=
temp.o
...
...
arch/ppc/
platforms
/prep_nvram.c
→
arch/ppc/
kernel
/prep_nvram.c
View file @
a832c38b
...
...
@@ -2,9 +2,14 @@
* BK Id: %F% %I% %G% %U% %#%
*/
/*
*
arch/ppc/platforms
/prep_nvram.c
*
arch/ppc/kernel
/prep_nvram.c
*
* Copyright (C) 1998 Corey Minyard
* Copyright (C) 1998 Corey Minyard
*
* This reads the NvRAM on PReP compliant machines (generally from IBM or
* Motorola). Motorola kept the format of NvRAM in their ROM, PPCBUG, the
* same, long after they had stopped producing PReP compliant machines. So
* this code is useful in those cases as well.
*
*/
#include <linux/init.h>
...
...
arch/ppc/platforms/Makefile
View file @
a832c38b
...
...
@@ -32,7 +32,7 @@ endif
obj-$(CONFIG_ALL_PPC)
+=
pmac_pic.o pmac_setup.o pmac_time.o
\
pmac_feature.o pmac_pci.o chrp_setup.o
\
chrp_time.o chrp_pci.o prep_pci.o
\
prep_time.o prep_
nvram.o prep_
setup.o
prep_time.o prep_setup.o
ifeq
($(CONFIG_ALL_PPC),y)
obj-$(CONFIG_NVRAM)
+=
pmac_nvram.o
endif
...
...
@@ -50,7 +50,7 @@ obj-$(CONFIG_MENF1) += menf1_setup.o menf1_pci.o
obj-$(CONFIG_MVME5100)
+=
mvme5100_setup.o mvme5100_pci.o
obj-$(CONFIG_PCORE)
+=
pcore_setup.o pcore_pci.o
obj-$(CONFIG_POWERPMC250)
+=
powerpmc250.o
obj-$(CONFIG_PPLUS)
+=
pplus_pci.o pplus_setup.o
prep_nvram.o
obj-$(CONFIG_PPLUS)
+=
pplus_pci.o pplus_setup.o
obj-$(CONFIG_PRPMC750)
+=
prpmc750_setup.o prpmc750_pci.o
obj-$(CONFIG_PRPMC800)
+=
prpmc800_setup.o prpmc800_pci.o
obj-$(CONFIG_SANDPOINT)
+=
sandpoint_setup.o sandpoint_pci.o
...
...
arch/ppc/platforms/cpc700.h
View file @
a832c38b
...
...
@@ -6,7 +6,7 @@
* Author: Mark A. Greer
* mgreer@mvista.com
*
* Copyright 2000 MontaVista Software Inc.
* Copyright 2000
-2002
MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -101,7 +101,7 @@
* UIC Exports...
*/
extern
struct
hw_interrupt_type
cpc700_pic
;
extern
unsigned
int
cpc700_irq_assigns
[
27
][
2
];
extern
unsigned
int
cpc700_irq_assigns
[
32
][
2
];
extern
void
__init
cpc700_init_IRQ
(
void
);
extern
int
cpc700_get_irq
(
struct
pt_regs
*
);
...
...
arch/ppc/platforms/cpc700_pic.c
View file @
a832c38b
...
...
@@ -8,7 +8,7 @@
* mporter@mvista.com
* jpeters@mvista.com
*
* Copyright 2001 MontaVista Software Inc.
* Copyright 2001
-2002
MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -168,7 +168,7 @@ cpc700_init_IRQ(void)
cpc700_pic_init_irq
(
i
);
}
for
(
i
=
20
;
i
<
27
;
i
++
)
{
for
(
i
=
20
;
i
<
32
;
i
++
)
{
irq_desc
[
i
].
handler
=
&
cpc700_pic
;
cpc700_pic_init_irq
(
i
);
}
...
...
arch/ppc/platforms/lopec_setup.c
View file @
a832c38b
...
...
@@ -33,8 +33,15 @@
#include <asm/bootinfo.h>
#include <asm/mpc10x.h>
#include <asm/hw_irq.h>
#include <asm/prep_nvram.h>
#include <asm/keyboard.h>
extern
char
saved_command_line
[];
extern
void
lopec_find_bridges
(
void
);
extern
int
pckbd_translate
(
unsigned
char
scancode
,
unsigned
char
*
keycode
,
char
raw_mode
);
extern
char
pckbd_unexpected_up
(
unsigned
char
keycode
);
extern
unsigned
char
pckbd_sysrq_xlate
[
128
];
/*
* Define all of the IRQ senses and polarities. Taken from the
...
...
@@ -333,6 +340,21 @@ lopec_setup_arch(void)
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp
=
&
dummy_con
;
#endif
#ifdef CONFIG_PPCBUG_NVRAM
/* Read in NVRAM data */
init_prep_nvram
();
/* if no bootargs, look in NVRAM */
if
(
cmd_line
[
0
]
==
'\0'
)
{
char
*
bootargs
;
bootargs
=
prep_nvram_get_var
(
"bootargs"
);
if
(
bootargs
!=
NULL
)
{
strcpy
(
cmd_line
,
bootargs
);
/* again.. */
strcpy
(
saved_command_line
,
cmd_line
);
}
}
#endif
}
void
__init
...
...
@@ -362,6 +384,14 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md
.
find_end_of_memory
=
lopec_find_end_of_memory
;
ppc_md
.
setup_io_mappings
=
lopec_map_io
;
#ifdef CONFIG_VT
ppc_md
.
kbd_translate
=
pckbd_translate
;
ppc_md
.
kbd_unexpected_up
=
pckbd_unexpected_up
;
#ifdef CONFIG_MAGIC_SYSRQ
ppc_md
.
ppc_kbd_sysrq_xlate
=
pckbd_sysrq_xlate
;
#endif
/* CONFIG_MAGIC_SYSRQ */
#endif
/* CONFIG_VT */
ppc_md
.
time_init
=
todc_time_init
;
ppc_md
.
set_rtc_time
=
todc_set_rtc_time
;
ppc_md
.
get_rtc_time
=
todc_get_rtc_time
;
...
...
arch/ppc/platforms/pplus_setup.c
View file @
a832c38b
...
...
@@ -9,7 +9,7 @@
* Cort Dougan, Johnnie Peters, Matt Porter, and
* Troy Benjegerdes.
*
* Copyright 2001 MontaVista Software Inc.
* Copyright 2001
-2002
MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -76,8 +76,9 @@
TODC_ALLOC
();
extern
void
pplus_setup_hose
(
void
)
;
extern
char
saved_command_line
[]
;
extern
void
pplus_setup_hose
(
void
);
extern
void
pplus_set_VIA_IDE_native
(
void
);
extern
unsigned
long
loops_per_jiffy
;
...
...
@@ -131,7 +132,8 @@ pplus_setup_arch(void)
ROOT_DEV
=
Root_SDA2
;
#endif
printk
(
"PowerPlus port (C) 2001 MontaVista Software, Inc. (source@mvista.com)
\n
"
);
printk
(
KERN_INFO
"Motorola PowerPlus Platform
\n
"
);
printk
(
KERN_INFO
"Port by MontaVista Software, Inc. (source@mvista.com)
\n
"
);
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"pplus_setup_arch: raven_init
\n
"
,
0
);
...
...
@@ -144,6 +146,21 @@ pplus_setup_arch(void)
conswitchp
=
&
vga_con
;
#elif defined(CONFIG_DUMMY_CONSOLE)
conswitchp
=
&
dummy_con
;
#endif
#ifdef CONFIG_PPCBUG_NVRAM
/* Read in NVRAM data */
init_prep_nvram
();
/* if no bootargs, look in NVRAM */
if
(
cmd_line
[
0
]
==
'\0'
)
{
char
*
bootargs
;
bootargs
=
prep_nvram_get_var
(
"bootargs"
);
if
(
bootargs
!=
NULL
)
{
strcpy
(
cmd_line
,
bootargs
);
/* again.. */
strcpy
(
saved_command_line
,
cmd_line
);
}
}
#endif
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"pplus_setup_arch: exit
\n
"
,
0
);
...
...
arch/ppc/platforms/spruce_setup.c
View file @
a832c38b
...
...
@@ -6,7 +6,7 @@
* Authors: Johnnie Peters <jpeters@mvista.com>
* Matt Porter <mporter@mvista.com>
*
* Copyright 2001 MontaVista Software Inc.
* Copyright 2001
-2002
MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -70,7 +70,7 @@ extern char cmd_line[];
*
* First entry is the sensitivity (level/edge), second is the polarity.
*/
unsigned
int
cpc700_irq_assigns
[
27
][
2
]
=
{
unsigned
int
cpc700_irq_assigns
[
32
][
2
]
=
{
{
1
,
1
},
/* IRQ 0: ECC Correctable Error - rising edge */
{
1
,
1
},
/* IRQ 1: PCI Write Mem Range - rising edge */
{
0
,
1
},
/* IRQ 2: PCI Write Command Reg - active high */
...
...
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