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
ccc712fe
Commit
ccc712fe
authored
Aug 23, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge' of
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
parents
9c637646
c9169f87
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1593 additions
and
522 deletions
+1593
-522
arch/powerpc/boot/dts/mpc8540ads.dts
arch/powerpc/boot/dts/mpc8540ads.dts
+257
-0
arch/powerpc/boot/dts/mpc8541cds.dts
arch/powerpc/boot/dts/mpc8541cds.dts
+244
-0
arch/powerpc/boot/dts/mpc8548cds.dts
arch/powerpc/boot/dts/mpc8548cds.dts
+287
-0
arch/powerpc/boot/dts/mpc8555cds.dts
arch/powerpc/boot/dts/mpc8555cds.dts
+244
-0
arch/powerpc/kernel/legacy_serial.c
arch/powerpc/kernel/legacy_serial.c
+6
-2
arch/powerpc/kernel/prom_parse.c
arch/powerpc/kernel/prom_parse.c
+7
-6
arch/powerpc/kernel/time.c
arch/powerpc/kernel/time.c
+17
-8
arch/powerpc/kernel/traps.c
arch/powerpc/kernel/traps.c
+4
-4
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/hugetlbpage.c
+1
-1
arch/powerpc/platforms/85xx/Kconfig
arch/powerpc/platforms/85xx/Kconfig
+0
-1
arch/powerpc/platforms/85xx/mpc85xx_ads.c
arch/powerpc/platforms/85xx/mpc85xx_ads.c
+55
-107
arch/powerpc/platforms/85xx/mpc85xx_cds.c
arch/powerpc/platforms/85xx/mpc85xx_cds.c
+88
-122
arch/powerpc/platforms/86xx/mpc8641_hpcn.h
arch/powerpc/platforms/86xx/mpc8641_hpcn.h
+0
-32
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+176
-148
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
+24
-49
arch/powerpc/platforms/powermac/bootx_init.c
arch/powerpc/platforms/powermac/bootx_init.c
+11
-4
arch/powerpc/sysdev/fsl_soc.c
arch/powerpc/sysdev/fsl_soc.c
+12
-18
arch/powerpc/sysdev/tsi108_dev.c
arch/powerpc/sysdev/tsi108_dev.c
+6
-4
arch/powerpc/sysdev/tsi108_pci.c
arch/powerpc/sysdev/tsi108_pci.c
+12
-9
include/asm-powerpc/pgalloc.h
include/asm-powerpc/pgalloc.h
+1
-1
include/asm-powerpc/system.h
include/asm-powerpc/system.h
+9
-0
include/asm-powerpc/tsi108.h
include/asm-powerpc/tsi108.h
+8
-6
include/asm-powerpc/tsi108_irq.h
include/asm-powerpc/tsi108_irq.h
+124
-0
No files found.
arch/powerpc/boot/dts/mpc8540ads.dts
0 → 100644
View file @
ccc712fe
/*
*
MPC8540
ADS
Device
Tree
Source
*
*
Copyright
2006
Freescale
Semiconductor
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
*
Free
Software
Foundation
;
either
version
2
of
the
License
,
or
(
at
your
*
option
)
any
later
version
.
*/
/
{
model
=
"MPC8540ADS"
;
compatible
=
"MPC85xxADS"
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
linux
,
phandle
=
<
100
>;
cpus
{
#
cpus
=
<
1
>;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
linux
,
phandle
=
<
200
>;
PowerPC
,
8540
@
0
{
device_type
=
"cpu"
;
reg
=
<
0
>;
d
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
i
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
d
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
i
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
timebase
-
frequency
=
<
0
>;
//
33
MHz
,
from
uboot
bus
-
frequency
=
<
0
>;
//
166
MHz
clock
-
frequency
=
<
0
>;
//
825
MHz
,
from
uboot
32
-
bit
;
linux
,
phandle
=
<
201
>;
};
};
memory
{
device_type
=
"memory"
;
linux
,
phandle
=
<
300
>;
reg
=
<
00000000
08000000
>;
//
128
M
at
0x0
};
soc8540
@
e0000000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
#
interrupt
-
cells
=
<
2
>;
device_type
=
"soc"
;
ranges
=
<
0
e0000000
00100000
>;
reg
=
<
e0000000
00100000
>;
//
CCSRBAR
1
M
bus
-
frequency
=
<
0
>;
i2c
@
3000
{
device_type
=
"i2c"
;
compatible
=
"fsl-i2c"
;
reg
=
<
3000
100
>;
interrupts
=
<
1
b
2
>;
interrupt
-
parent
=
<
40000
>;
dfsrr
;
};
mdio
@
24520
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"mdio"
;
compatible
=
"gianfar"
;
reg
=
<
24520
20
>;
linux
,
phandle
=
<
24520
>;
ethernet
-
phy
@
0
{
linux
,
phandle
=
<
2452000
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
1
>;
reg
=
<
0
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
1
{
linux
,
phandle
=
<
2452001
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
1
>;
reg
=
<
1
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
3
{
linux
,
phandle
=
<
2452003
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
37
1
>;
reg
=
<
3
>;
device_type
=
"ethernet-phy"
;
};
};
ethernet
@
24000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
24000
1000
>;
address
=
[
00
E0
0
C
00
73
00
];
local
-
mac
-
address
=
[
00
E0
0
C
00
73
00
];
interrupts
=
<
d
2
e
2
12
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452000
>;
};
ethernet
@
25000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
25000
1000
>;
address
=
[
00
E0
0
C
00
73
01
];
local
-
mac
-
address
=
[
00
E0
0
C
00
73
01
];
interrupts
=
<
13
2
14
2
18
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
ethernet
@
26000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"FEC"
;
compatible
=
"gianfar"
;
reg
=
<
26000
1000
>;
address
=
[
00
E0
0
C
00
73
02
];
local
-
mac
-
address
=
[
00
E0
0
C
00
73
02
];
interrupts
=
<
19
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452003
>;
};
serial
@
4500
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4500
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
serial
@
4600
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4600
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
pci
@
8000
{
linux
,
phandle
=
<
8000
>;
interrupt
-
map
-
mask
=
<
f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x02
*/
1000
0
0
1
40000
31
1
1000
0
0
2
40000
32
1
1000
0
0
3
40000
33
1
1000
0
0
4
40000
34
1
/*
IDSEL
0x03
*/
1800
0
0
1
40000
34
1
1800
0
0
2
40000
31
1
1800
0
0
3
40000
32
1
1800
0
0
4
40000
33
1
/*
IDSEL
0x04
*/
2000
0
0
1
40000
33
1
2000
0
0
2
40000
34
1
2000
0
0
3
40000
31
1
2000
0
0
4
40000
32
1
/*
IDSEL
0x05
*/
2800
0
0
1
40000
32
1
2800
0
0
2
40000
33
1
2800
0
0
3
40000
34
1
2800
0
0
4
40000
31
1
/*
IDSEL
0x0c
*/
6000
0
0
1
40000
31
1
6000
0
0
2
40000
32
1
6000
0
0
3
40000
33
1
6000
0
0
4
40000
34
1
/*
IDSEL
0x0d
*/
6800
0
0
1
40000
34
1
6800
0
0
2
40000
31
1
6800
0
0
3
40000
32
1
6800
0
0
4
40000
33
1
/*
IDSEL
0x0e
*/
7000
0
0
1
40000
33
1
7000
0
0
2
40000
34
1
7000
0
0
3
40000
31
1
7000
0
0
4
40000
32
1
/*
IDSEL
0x0f
*/
7800
0
0
1
40000
32
1
7800
0
0
2
40000
33
1
7800
0
0
3
40000
34
1
7800
0
0
4
40000
31
1
/*
IDSEL
0x12
*/
9000
0
0
1
40000
31
1
9000
0
0
2
40000
32
1
9000
0
0
3
40000
33
1
9000
0
0
4
40000
34
1
/*
IDSEL
0x13
*/
9800
0
0
1
40000
34
1
9800
0
0
2
40000
31
1
9800
0
0
3
40000
32
1
9800
0
0
4
40000
33
1
/*
IDSEL
0x14
*/
a000
0
0
1
40000
33
1
a000
0
0
2
40000
34
1
a000
0
0
3
40000
31
1
a000
0
0
4
40000
32
1
/*
IDSEL
0x15
*/
a800
0
0
1
40000
32
1
a800
0
0
2
40000
33
1
a800
0
0
3
40000
34
1
a800
0
0
4
40000
31
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
08
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
80000000
80000000
0
20000000
01000000
0
00000000
e2000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
8000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
};
pic
@
40000
{
linux
,
phandle
=
<
40000
>;
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
reg
=
<
40000
40000
>;
built
-
in
;
compatible
=
"chrp,open-pic"
;
device_type
=
"open-pic"
;
big
-
endian
;
};
};
};
arch/powerpc/boot/dts/mpc8541cds.dts
0 → 100644
View file @
ccc712fe
/*
*
MPC8541
CDS
Device
Tree
Source
*
*
Copyright
2006
Freescale
Semiconductor
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
*
Free
Software
Foundation
;
either
version
2
of
the
License
,
or
(
at
your
*
option
)
any
later
version
.
*/
/
{
model
=
"MPC8541CDS"
;
compatible
=
"MPC85xxCDS"
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
linux
,
phandle
=
<
100
>;
cpus
{
#
cpus
=
<
1
>;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
linux
,
phandle
=
<
200
>;
PowerPC
,
8541
@
0
{
device_type
=
"cpu"
;
reg
=
<
0
>;
d
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
i
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
d
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
i
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
timebase
-
frequency
=
<
0
>;
//
33
MHz
,
from
uboot
bus
-
frequency
=
<
0
>;
//
166
MHz
clock
-
frequency
=
<
0
>;
//
825
MHz
,
from
uboot
32
-
bit
;
linux
,
phandle
=
<
201
>;
};
};
memory
{
device_type
=
"memory"
;
linux
,
phandle
=
<
300
>;
reg
=
<
00000000
08000000
>;
//
128
M
at
0x0
};
soc8541
@
e0000000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
#
interrupt
-
cells
=
<
2
>;
device_type
=
"soc"
;
ranges
=
<
0
e0000000
00100000
>;
reg
=
<
e0000000
00100000
>;
//
CCSRBAR
1
M
bus
-
frequency
=
<
0
>;
i2c
@
3000
{
device_type
=
"i2c"
;
compatible
=
"fsl-i2c"
;
reg
=
<
3000
100
>;
interrupts
=
<
1
b
2
>;
interrupt
-
parent
=
<
40000
>;
dfsrr
;
};
mdio
@
24520
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"mdio"
;
compatible
=
"gianfar"
;
reg
=
<
24520
20
>;
linux
,
phandle
=
<
24520
>;
ethernet
-
phy
@
0
{
linux
,
phandle
=
<
2452000
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
0
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
1
{
linux
,
phandle
=
<
2452001
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
1
>;
device_type
=
"ethernet-phy"
;
};
};
ethernet
@
24000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
24000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
00
];
interrupts
=
<
d
2
e
2
12
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452000
>;
};
ethernet
@
25000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
25000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
01
];
interrupts
=
<
13
2
14
2
18
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
serial
@
4500
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4500
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
serial
@
4600
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4600
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
pci
@
8000
{
linux
,
phandle
=
<
8000
>;
interrupt
-
map
-
mask
=
<
1f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x10
*/
08000
0
0
1
40000
30
1
08000
0
0
2
40000
31
1
08000
0
0
3
40000
32
1
08000
0
0
4
40000
33
1
/*
IDSEL
0x11
*/
08800
0
0
1
40000
30
1
08800
0
0
2
40000
31
1
08800
0
0
3
40000
32
1
08800
0
0
4
40000
33
1
/*
IDSEL
0x12
(
Slot
1
)
*/
09000
0
0
1
40000
30
1
09000
0
0
2
40000
31
1
09000
0
0
3
40000
32
1
09000
0
0
4
40000
33
1
/*
IDSEL
0x13
(
Slot
2
)
*/
09800
0
0
1
40000
31
1
09800
0
0
2
40000
32
1
09800
0
0
3
40000
33
1
09800
0
0
4
40000
30
1
/*
IDSEL
0x14
(
Slot
3
)
*/
0
a000
0
0
1
40000
32
1
0
a000
0
0
2
40000
33
1
0
a000
0
0
3
40000
30
1
0
a000
0
0
4
40000
31
1
/*
IDSEL
0x15
(
Slot
4
)
*/
0
a800
0
0
1
40000
33
1
0
a800
0
0
2
40000
30
1
0
a800
0
0
3
40000
31
1
0
a800
0
0
4
40000
32
1
/*
Bus
1
(
Tundra
Bridge
)
*/
/*
IDSEL
0x12
(
ISA
bridge
)
*/
19000
0
0
1
40000
30
1
19000
0
0
2
40000
31
1
19000
0
0
3
40000
32
1
19000
0
0
4
40000
33
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
08
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
80000000
80000000
0
20000000
01000000
0
00000000
e2000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
8000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
i8259
@
19000
{
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
device_type
=
"interrupt-controller"
;
reg
=
<
19000
0
0
0
1
>;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
built
-
in
;
compatible
=
"chrp,iic"
;
big
-
endian
;
interrupts
=
<
1
>;
interrupt
-
parent
=
<
8000
>;
};
};
pci
@
9000
{
linux
,
phandle
=
<
9000
>;
interrupt
-
map
-
mask
=
<
f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x15
*/
a800
0
0
1
40000
3
b
1
a800
0
0
2
40000
3
b
1
a800
0
0
3
40000
3
b
1
a800
0
0
4
40000
3
b
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
09
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
a0000000
a0000000
0
20000000
01000000
0
00000000
e3000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
9000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
};
pic
@
40000
{
linux
,
phandle
=
<
40000
>;
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
reg
=
<
40000
40000
>;
built
-
in
;
compatible
=
"chrp,open-pic"
;
device_type
=
"open-pic"
;
big
-
endian
;
};
};
};
arch/powerpc/boot/dts/mpc8548cds.dts
0 → 100644
View file @
ccc712fe
/*
*
MPC8555
CDS
Device
Tree
Source
*
*
Copyright
2006
Freescale
Semiconductor
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
*
Free
Software
Foundation
;
either
version
2
of
the
License
,
or
(
at
your
*
option
)
any
later
version
.
*/
/
{
model
=
"MPC8548CDS"
;
compatible
=
"MPC85xxCDS"
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
linux
,
phandle
=
<
100
>;
cpus
{
#
cpus
=
<
1
>;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
linux
,
phandle
=
<
200
>;
PowerPC
,
8548
@
0
{
device_type
=
"cpu"
;
reg
=
<
0
>;
d
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
i
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
d
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
i
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
timebase
-
frequency
=
<
0
>;
//
33
MHz
,
from
uboot
bus
-
frequency
=
<
0
>;
//
166
MHz
clock
-
frequency
=
<
0
>;
//
825
MHz
,
from
uboot
32
-
bit
;
linux
,
phandle
=
<
201
>;
};
};
memory
{
device_type
=
"memory"
;
linux
,
phandle
=
<
300
>;
reg
=
<
00000000
08000000
>;
//
128
M
at
0x0
};
soc8548
@
e0000000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
#
interrupt
-
cells
=
<
2
>;
device_type
=
"soc"
;
ranges
=
<
0
e0000000
00100000
>;
reg
=
<
e0000000
00100000
>;
//
CCSRBAR
1
M
bus
-
frequency
=
<
0
>;
i2c
@
3000
{
device_type
=
"i2c"
;
compatible
=
"fsl-i2c"
;
reg
=
<
3000
100
>;
interrupts
=
<
1
b
2
>;
interrupt
-
parent
=
<
40000
>;
dfsrr
;
};
mdio
@
24520
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"mdio"
;
compatible
=
"gianfar"
;
reg
=
<
24520
20
>;
linux
,
phandle
=
<
24520
>;
ethernet
-
phy
@
0
{
linux
,
phandle
=
<
2452000
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
0
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
1
{
linux
,
phandle
=
<
2452001
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
1
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
2
{
linux
,
phandle
=
<
2452002
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
2
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
3
{
linux
,
phandle
=
<
2452003
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
3
>;
device_type
=
"ethernet-phy"
;
};
};
ethernet
@
24000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"eTSEC"
;
compatible
=
"gianfar"
;
reg
=
<
24000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
00
];
interrupts
=
<
d
2
e
2
12
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452000
>;
};
ethernet
@
25000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"eTSEC"
;
compatible
=
"gianfar"
;
reg
=
<
25000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
01
];
interrupts
=
<
13
2
14
2
18
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
ethernet
@
26000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"eTSEC"
;
compatible
=
"gianfar"
;
reg
=
<
26000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
02
];
interrupts
=
<
f
2
10
2
11
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
/*
eTSEC
4
is
currently
broken
ethernet
@
27000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"eTSEC"
;
compatible
=
"gianfar"
;
reg
=
<
27000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
03
];
interrupts
=
<
15
2
16
2
17
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
*/
serial
@
4500
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4500
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
serial
@
4600
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4600
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
pci
@
8000
{
linux
,
phandle
=
<
8000
>;
interrupt
-
map
-
mask
=
<
1f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x10
*/
08000
0
0
1
40000
30
1
08000
0
0
2
40000
31
1
08000
0
0
3
40000
32
1
08000
0
0
4
40000
33
1
/*
IDSEL
0x11
*/
08800
0
0
1
40000
30
1
08800
0
0
2
40000
31
1
08800
0
0
3
40000
32
1
08800
0
0
4
40000
33
1
/*
IDSEL
0x12
(
Slot
1
)
*/
09000
0
0
1
40000
30
1
09000
0
0
2
40000
31
1
09000
0
0
3
40000
32
1
09000
0
0
4
40000
33
1
/*
IDSEL
0x13
(
Slot
2
)
*/
09800
0
0
1
40000
31
1
09800
0
0
2
40000
32
1
09800
0
0
3
40000
33
1
09800
0
0
4
40000
30
1
/*
IDSEL
0x14
(
Slot
3
)
*/
0
a000
0
0
1
40000
32
1
0
a000
0
0
2
40000
33
1
0
a000
0
0
3
40000
30
1
0
a000
0
0
4
40000
31
1
/*
IDSEL
0x15
(
Slot
4
)
*/
0
a800
0
0
1
40000
33
1
0
a800
0
0
2
40000
30
1
0
a800
0
0
3
40000
31
1
0
a800
0
0
4
40000
32
1
/*
Bus
1
(
Tundra
Bridge
)
*/
/*
IDSEL
0x12
(
ISA
bridge
)
*/
19000
0
0
1
40000
30
1
19000
0
0
2
40000
31
1
19000
0
0
3
40000
32
1
19000
0
0
4
40000
33
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
08
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
80000000
80000000
0
20000000
01000000
0
00000000
e2000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
8000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
i8259
@
19000
{
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
device_type
=
"interrupt-controller"
;
reg
=
<
19000
0
0
0
1
>;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
built
-
in
;
compatible
=
"chrp,iic"
;
big
-
endian
;
interrupts
=
<
1
>;
interrupt
-
parent
=
<
8000
>;
};
};
pci
@
9000
{
linux
,
phandle
=
<
9000
>;
interrupt
-
map
-
mask
=
<
f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x15
*/
a800
0
0
1
40000
3
b
1
a800
0
0
2
40000
3
b
1
a800
0
0
3
40000
3
b
1
a800
0
0
4
40000
3
b
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
09
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
a0000000
a0000000
0
20000000
01000000
0
00000000
e3000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
9000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
};
pic
@
40000
{
linux
,
phandle
=
<
40000
>;
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
reg
=
<
40000
40000
>;
built
-
in
;
compatible
=
"chrp,open-pic"
;
device_type
=
"open-pic"
;
big
-
endian
;
};
};
};
arch/powerpc/boot/dts/mpc8555cds.dts
0 → 100644
View file @
ccc712fe
/*
*
MPC8555
CDS
Device
Tree
Source
*
*
Copyright
2006
Freescale
Semiconductor
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
*
Free
Software
Foundation
;
either
version
2
of
the
License
,
or
(
at
your
*
option
)
any
later
version
.
*/
/
{
model
=
"MPC8555CDS"
;
compatible
=
"MPC85xxCDS"
;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
linux
,
phandle
=
<
100
>;
cpus
{
#
cpus
=
<
1
>;
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
linux
,
phandle
=
<
200
>;
PowerPC
,
8555
@
0
{
device_type
=
"cpu"
;
reg
=
<
0
>;
d
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
i
-
cache
-
line
-
size
=
<
20
>;
//
32
bytes
d
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
i
-
cache
-
size
=
<
8000
>;
//
L1
,
32
K
timebase
-
frequency
=
<
0
>;
//
33
MHz
,
from
uboot
bus
-
frequency
=
<
0
>;
//
166
MHz
clock
-
frequency
=
<
0
>;
//
825
MHz
,
from
uboot
32
-
bit
;
linux
,
phandle
=
<
201
>;
};
};
memory
{
device_type
=
"memory"
;
linux
,
phandle
=
<
300
>;
reg
=
<
00000000
08000000
>;
//
128
M
at
0x0
};
soc8555
@
e0000000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
1
>;
#
interrupt
-
cells
=
<
2
>;
device_type
=
"soc"
;
ranges
=
<
0
e0000000
00100000
>;
reg
=
<
e0000000
00100000
>;
//
CCSRBAR
1
M
bus
-
frequency
=
<
0
>;
i2c
@
3000
{
device_type
=
"i2c"
;
compatible
=
"fsl-i2c"
;
reg
=
<
3000
100
>;
interrupts
=
<
1
b
2
>;
interrupt
-
parent
=
<
40000
>;
dfsrr
;
};
mdio
@
24520
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"mdio"
;
compatible
=
"gianfar"
;
reg
=
<
24520
20
>;
linux
,
phandle
=
<
24520
>;
ethernet
-
phy
@
0
{
linux
,
phandle
=
<
2452000
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
0
>;
device_type
=
"ethernet-phy"
;
};
ethernet
-
phy
@
1
{
linux
,
phandle
=
<
2452001
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
35
0
>;
reg
=
<
1
>;
device_type
=
"ethernet-phy"
;
};
};
ethernet
@
24000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
24000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
00
];
interrupts
=
<
0
d
2
0
e
2
12
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452000
>;
};
ethernet
@
25000
{
#
address
-
cells
=
<
1
>;
#
size
-
cells
=
<
0
>;
device_type
=
"network"
;
model
=
"TSEC"
;
compatible
=
"gianfar"
;
reg
=
<
25000
1000
>;
local
-
mac
-
address
=
[
00
E0
0
C
00
73
01
];
interrupts
=
<
13
2
14
2
18
2
>;
interrupt
-
parent
=
<
40000
>;
phy
-
handle
=
<
2452001
>;
};
serial
@
4500
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4500
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
serial
@
4600
{
device_type
=
"serial"
;
compatible
=
"ns16550"
;
reg
=
<
4600
100
>;
//
reg
base
,
size
clock
-
frequency
=
<
0
>;
//
should
we
fill
in
in
uboot
?
interrupts
=
<
1
a
2
>;
interrupt
-
parent
=
<
40000
>;
};
pci
@
8000
{
linux
,
phandle
=
<
8000
>;
interrupt
-
map
-
mask
=
<
1f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x10
*/
08000
0
0
1
40000
30
1
08000
0
0
2
40000
31
1
08000
0
0
3
40000
32
1
08000
0
0
4
40000
33
1
/*
IDSEL
0x11
*/
08800
0
0
1
40000
30
1
08800
0
0
2
40000
31
1
08800
0
0
3
40000
32
1
08800
0
0
4
40000
33
1
/*
IDSEL
0x12
(
Slot
1
)
*/
09000
0
0
1
40000
30
1
09000
0
0
2
40000
31
1
09000
0
0
3
40000
32
1
09000
0
0
4
40000
33
1
/*
IDSEL
0x13
(
Slot
2
)
*/
09800
0
0
1
40000
31
1
09800
0
0
2
40000
32
1
09800
0
0
3
40000
33
1
09800
0
0
4
40000
30
1
/*
IDSEL
0x14
(
Slot
3
)
*/
0
a000
0
0
1
40000
32
1
0
a000
0
0
2
40000
33
1
0
a000
0
0
3
40000
30
1
0
a000
0
0
4
40000
31
1
/*
IDSEL
0x15
(
Slot
4
)
*/
0
a800
0
0
1
40000
33
1
0
a800
0
0
2
40000
30
1
0
a800
0
0
3
40000
31
1
0
a800
0
0
4
40000
32
1
/*
Bus
1
(
Tundra
Bridge
)
*/
/*
IDSEL
0x12
(
ISA
bridge
)
*/
19000
0
0
1
40000
30
1
19000
0
0
2
40000
31
1
19000
0
0
3
40000
32
1
19000
0
0
4
40000
33
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
08
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
80000000
80000000
0
20000000
01000000
0
00000000
e2000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
8000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
i8259
@
19000
{
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
device_type
=
"interrupt-controller"
;
reg
=
<
19000
0
0
0
1
>;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
built
-
in
;
compatible
=
"chrp,iic"
;
big
-
endian
;
interrupts
=
<
1
>;
interrupt
-
parent
=
<
8000
>;
};
};
pci
@
9000
{
linux
,
phandle
=
<
9000
>;
interrupt
-
map
-
mask
=
<
f800
0
0
7
>;
interrupt
-
map
=
<
/*
IDSEL
0x15
*/
a800
0
0
1
40000
3
b
1
a800
0
0
2
40000
3
b
1
a800
0
0
3
40000
3
b
1
a800
0
0
4
40000
3
b
1
>;
interrupt
-
parent
=
<
40000
>;
interrupts
=
<
09
2
>;
bus
-
range
=
<
0
0
>;
ranges
=
<
02000000
0
a0000000
a0000000
0
20000000
01000000
0
00000000
e3000000
0
00100000
>;
clock
-
frequency
=
<
3f940
aa
>;
#
interrupt
-
cells
=
<
1
>;
#
size
-
cells
=
<
2
>;
#
address
-
cells
=
<
3
>;
reg
=
<
9000
1000
>;
compatible
=
"85xx"
;
device_type
=
"pci"
;
};
pic
@
40000
{
linux
,
phandle
=
<
40000
>;
clock
-
frequency
=
<
0
>;
interrupt
-
controller
;
#
address
-
cells
=
<
0
>;
#
interrupt
-
cells
=
<
2
>;
reg
=
<
40000
40000
>;
built
-
in
;
compatible
=
"chrp,open-pic"
;
device_type
=
"open-pic"
;
big
-
endian
;
};
};
};
arch/powerpc/kernel/legacy_serial.c
View file @
ccc712fe
...
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(struct device_node *np,
...
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(struct device_node *np,
u64
addr
;
u64
addr
;
u32
*
addrp
;
u32
*
addrp
;
upf_t
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_SHARE_IRQ
;
upf_t
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_SHARE_IRQ
;
struct
device_node
*
tsi
=
of_get_parent
(
np
);
/* We only support ports that have a clock frequency properly
/* We only support ports that have a clock frequency properly
* encoded in the device-tree.
* encoded in the device-tree.
...
@@ -134,6 +135,9 @@ static int __init add_legacy_soc_port(struct device_node *np,
...
@@ -134,6 +135,9 @@ static int __init add_legacy_soc_port(struct device_node *np,
/* Add port, irq will be dealt with later. We passed a translated
/* Add port, irq will be dealt with later. We passed a translated
* IO port value. It will be fixed up later along with the irq
* IO port value. It will be fixed up later along with the irq
*/
*/
if
(
tsi
&&
!
strcmp
(
tsi
->
type
,
"tsi-bridge"
))
return
add_legacy_port
(
np
,
-
1
,
UPIO_TSI
,
addr
,
addr
,
NO_IRQ
,
flags
,
0
);
else
return
add_legacy_port
(
np
,
-
1
,
UPIO_MEM
,
addr
,
addr
,
NO_IRQ
,
flags
,
0
);
return
add_legacy_port
(
np
,
-
1
,
UPIO_MEM
,
addr
,
addr
,
NO_IRQ
,
flags
,
0
);
}
}
...
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
...
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
fixup_port_irq
(
i
,
np
,
port
);
fixup_port_irq
(
i
,
np
,
port
);
if
(
port
->
iotype
==
UPIO_PORT
)
if
(
port
->
iotype
==
UPIO_PORT
)
fixup_port_pio
(
i
,
np
,
port
);
fixup_port_pio
(
i
,
np
,
port
);
if
(
port
->
iotype
==
UPIO_MEM
)
if
(
(
port
->
iotype
==
UPIO_MEM
)
||
(
port
->
iotype
==
UPIO_TSI
)
)
fixup_port_mmio
(
i
,
np
,
port
);
fixup_port_mmio
(
i
,
np
,
port
);
}
}
...
...
arch/powerpc/kernel/prom_parse.c
View file @
ccc712fe
...
@@ -598,11 +598,6 @@ static struct device_node *of_irq_find_parent(struct device_node *child)
...
@@ -598,11 +598,6 @@ static struct device_node *of_irq_find_parent(struct device_node *child)
return
p
;
return
p
;
}
}
static
u8
of_irq_pci_swizzle
(
u8
slot
,
u8
pin
)
{
return
(((
pin
-
1
)
+
slot
)
%
4
)
+
1
;
}
/* This doesn't need to be called if you don't have any special workaround
/* This doesn't need to be called if you don't have any special workaround
* flags to pass
* flags to pass
*/
*/
...
@@ -891,6 +886,12 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
...
@@ -891,6 +886,12 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
}
}
EXPORT_SYMBOL_GPL
(
of_irq_map_one
);
EXPORT_SYMBOL_GPL
(
of_irq_map_one
);
#ifdef CONFIG_PCI
static
u8
of_irq_pci_swizzle
(
u8
slot
,
u8
pin
)
{
return
(((
pin
-
1
)
+
slot
)
%
4
)
+
1
;
}
int
of_irq_map_pci
(
struct
pci_dev
*
pdev
,
struct
of_irq
*
out_irq
)
int
of_irq_map_pci
(
struct
pci_dev
*
pdev
,
struct
of_irq
*
out_irq
)
{
{
struct
device_node
*
dn
,
*
ppnode
;
struct
device_node
*
dn
,
*
ppnode
;
...
@@ -967,4 +968,4 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
...
@@ -967,4 +968,4 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
return
of_irq_map_raw
(
ppnode
,
&
lspec
,
laddr
,
out_irq
);
return
of_irq_map_raw
(
ppnode
,
&
lspec
,
laddr
,
out_irq
);
}
}
EXPORT_SYMBOL_GPL
(
of_irq_map_pci
);
EXPORT_SYMBOL_GPL
(
of_irq_map_pci
);
#endif
/* CONFIG_PCI */
arch/powerpc/kernel/time.c
View file @
ccc712fe
...
@@ -417,7 +417,7 @@ static __inline__ void timer_check_rtc(void)
...
@@ -417,7 +417,7 @@ static __inline__ void timer_check_rtc(void)
/*
/*
* This version of gettimeofday has microsecond resolution.
* This version of gettimeofday has microsecond resolution.
*/
*/
static
inline
void
__do_gettimeofday
(
struct
timeval
*
tv
,
u64
tb_val
)
static
inline
void
__do_gettimeofday
(
struct
timeval
*
tv
)
{
{
unsigned
long
sec
,
usec
;
unsigned
long
sec
,
usec
;
u64
tb_ticks
,
xsec
;
u64
tb_ticks
,
xsec
;
...
@@ -431,7 +431,12 @@ static inline void __do_gettimeofday(struct timeval *tv, u64 tb_val)
...
@@ -431,7 +431,12 @@ static inline void __do_gettimeofday(struct timeval *tv, u64 tb_val)
* without a divide (and in fact, without a multiply)
* without a divide (and in fact, without a multiply)
*/
*/
temp_varp
=
do_gtod
.
varp
;
temp_varp
=
do_gtod
.
varp
;
tb_ticks
=
tb_val
-
temp_varp
->
tb_orig_stamp
;
/* Sampling the time base must be done after loading
* do_gtod.varp in order to avoid racing with update_gtod.
*/
data_barrier
(
temp_varp
);
tb_ticks
=
get_tb
()
-
temp_varp
->
tb_orig_stamp
;
temp_tb_to_xs
=
temp_varp
->
tb_to_xs
;
temp_tb_to_xs
=
temp_varp
->
tb_to_xs
;
temp_stamp_xsec
=
temp_varp
->
stamp_xsec
;
temp_stamp_xsec
=
temp_varp
->
stamp_xsec
;
xsec
=
temp_stamp_xsec
+
mulhdu
(
tb_ticks
,
temp_tb_to_xs
);
xsec
=
temp_stamp_xsec
+
mulhdu
(
tb_ticks
,
temp_tb_to_xs
);
...
@@ -464,7 +469,7 @@ void do_gettimeofday(struct timeval *tv)
...
@@ -464,7 +469,7 @@ void do_gettimeofday(struct timeval *tv)
tv
->
tv_usec
=
usec
;
tv
->
tv_usec
=
usec
;
return
;
return
;
}
}
__do_gettimeofday
(
tv
,
get_tb
()
);
__do_gettimeofday
(
tv
);
}
}
EXPORT_SYMBOL
(
do_gettimeofday
);
EXPORT_SYMBOL
(
do_gettimeofday
);
...
@@ -650,6 +655,7 @@ void timer_interrupt(struct pt_regs * regs)
...
@@ -650,6 +655,7 @@ void timer_interrupt(struct pt_regs * regs)
int
next_dec
;
int
next_dec
;
int
cpu
=
smp_processor_id
();
int
cpu
=
smp_processor_id
();
unsigned
long
ticks
;
unsigned
long
ticks
;
u64
tb_next_jiffy
;
#ifdef CONFIG_PPC32
#ifdef CONFIG_PPC32
if
(
atomic_read
(
&
ppc_n_lost_interrupts
)
!=
0
)
if
(
atomic_read
(
&
ppc_n_lost_interrupts
)
!=
0
)
...
@@ -691,11 +697,14 @@ void timer_interrupt(struct pt_regs * regs)
...
@@ -691,11 +697,14 @@ void timer_interrupt(struct pt_regs * regs)
continue
;
continue
;
write_seqlock
(
&
xtime_lock
);
write_seqlock
(
&
xtime_lock
);
tb_last_jiffy
+=
tb_ticks_per_jiffy
;
tb_next_jiffy
=
tb_last_jiffy
+
tb_ticks_per_jiffy
;
if
(
per_cpu
(
last_jiffy
,
cpu
)
>=
tb_next_jiffy
)
{
tb_last_jiffy
=
tb_next_jiffy
;
tb_last_stamp
=
per_cpu
(
last_jiffy
,
cpu
);
tb_last_stamp
=
per_cpu
(
last_jiffy
,
cpu
);
do_timer
(
regs
);
do_timer
(
regs
);
timer_recalc_offset
(
tb_last_jiffy
);
timer_recalc_offset
(
tb_last_jiffy
);
timer_check_rtc
();
timer_check_rtc
();
}
write_sequnlock
(
&
xtime_lock
);
write_sequnlock
(
&
xtime_lock
);
}
}
...
...
arch/powerpc/kernel/traps.c
View file @
ccc712fe
...
@@ -585,14 +585,14 @@ static void parse_fpe(struct pt_regs *regs)
...
@@ -585,14 +585,14 @@ static void parse_fpe(struct pt_regs *regs)
#define INST_MFSPR_PVR_MASK 0xfc1fffff
#define INST_MFSPR_PVR_MASK 0xfc1fffff
#define INST_DCBA 0x7c0005ec
#define INST_DCBA 0x7c0005ec
#define INST_DCBA_MASK 0x
7
c0007fe
#define INST_DCBA_MASK 0x
f
c0007fe
#define INST_MCRXR 0x7c000400
#define INST_MCRXR 0x7c000400
#define INST_MCRXR_MASK 0x
7
c0007fe
#define INST_MCRXR_MASK 0x
f
c0007fe
#define INST_STRING 0x7c00042a
#define INST_STRING 0x7c00042a
#define INST_STRING_MASK 0x
7
c0007fe
#define INST_STRING_MASK 0x
f
c0007fe
#define INST_STRING_GEN_MASK 0x
7
c00067e
#define INST_STRING_GEN_MASK 0x
f
c00067e
#define INST_LSWI 0x7c0004aa
#define INST_LSWI 0x7c0004aa
#define INST_LSWX 0x7c00042a
#define INST_LSWX 0x7c00042a
#define INST_STSWI 0x7c0005aa
#define INST_STSWI 0x7c0005aa
...
...
arch/powerpc/mm/hugetlbpage.c
View file @
ccc712fe
...
@@ -153,7 +153,7 @@ static void free_hugepte_range(struct mmu_gather *tlb, hugepd_t *hpdp)
...
@@ -153,7 +153,7 @@ static void free_hugepte_range(struct mmu_gather *tlb, hugepd_t *hpdp)
hpdp
->
pd
=
0
;
hpdp
->
pd
=
0
;
tlb
->
need_flush
=
1
;
tlb
->
need_flush
=
1
;
pgtable_free_tlb
(
tlb
,
pgtable_free_cache
(
hugepte
,
HUGEPTE_CACHE_NUM
,
pgtable_free_tlb
(
tlb
,
pgtable_free_cache
(
hugepte
,
HUGEPTE_CACHE_NUM
,
HUGEPTE_TABLE_SIZE
-
1
));
PGF_CACHENUM_MASK
));
}
}
#ifdef CONFIG_PPC_64K_PAGES
#ifdef CONFIG_PPC_64K_PAGES
...
...
arch/powerpc/platforms/85xx/Kconfig
View file @
ccc712fe
...
@@ -14,7 +14,6 @@ config MPC8540_ADS
...
@@ -14,7 +14,6 @@ config MPC8540_ADS
config MPC85xx_CDS
config MPC85xx_CDS
bool "Freescale MPC85xx CDS"
bool "Freescale MPC85xx CDS"
select DEFAULT_UIMAGE
select DEFAULT_UIMAGE
select PPC_I8259 if PCI
help
help
This option enables support for the MPC85xx CDS board
This option enables support for the MPC85xx CDS board
...
...
arch/powerpc/platforms/85xx/mpc85xx_ads.c
View file @
ccc712fe
...
@@ -37,79 +37,7 @@ unsigned long isa_io_base = 0;
...
@@ -37,79 +37,7 @@ unsigned long isa_io_base = 0;
unsigned
long
isa_mem_base
=
0
;
unsigned
long
isa_mem_base
=
0
;
#endif
#endif
/*
* Internal interrupts are all Level Sensitive, and Positive Polarity
*
* Note: Likely, this table and the following function should be
* obtained and derived from the OF Device Tree.
*/
static
u_char
mpc85xx_ads_openpic_initsenses
[]
__initdata
=
{
MPC85XX_INTERNAL_IRQ_SENSES
,
0x0
,
/* External 0: */
#if defined(CONFIG_PCI)
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 1: PCI slot 0 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 2: PCI slot 1 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 3: PCI slot 2 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 4: PCI slot 3 */
#else
0x0
,
/* External 1: */
0x0
,
/* External 2: */
0x0
,
/* External 3: */
0x0
,
/* External 4: */
#endif
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* External 5: PHY */
0x0
,
/* External 6: */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* External 7: PHY */
0x0
,
/* External 8: */
0x0
,
/* External 9: */
0x0
,
/* External 10: */
0x0
,
/* External 11: */
};
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
/*
* interrupt routing
*/
int
mpc85xx_map_irq
(
struct
pci_dev
*
dev
,
unsigned
char
idsel
,
unsigned
char
pin
)
{
static
char
pci_irq_table
[][
4
]
=
/*
* This is little evil, but works around the fact
* that revA boards have IDSEL starting at 18
* and others boards (older) start at 12
*
* PCI IDSEL/INTPIN->INTLINE
* A B C D
*/
{
{
PIRQA
,
PIRQB
,
PIRQC
,
PIRQD
},
/* IDSEL 2 */
{
PIRQD
,
PIRQA
,
PIRQB
,
PIRQC
},
{
PIRQC
,
PIRQD
,
PIRQA
,
PIRQB
},
{
PIRQB
,
PIRQC
,
PIRQD
,
PIRQA
},
/* IDSEL 5 */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
PIRQA
,
PIRQB
,
PIRQC
,
PIRQD
},
/* IDSEL 12 */
{
PIRQD
,
PIRQA
,
PIRQB
,
PIRQC
},
{
PIRQC
,
PIRQD
,
PIRQA
,
PIRQB
},
{
PIRQB
,
PIRQC
,
PIRQD
,
PIRQA
},
/* IDSEL 15 */
{
0
,
0
,
0
,
0
},
/* -- */
{
0
,
0
,
0
,
0
},
/* -- */
{
PIRQA
,
PIRQB
,
PIRQC
,
PIRQD
},
/* IDSEL 18 */
{
PIRQD
,
PIRQA
,
PIRQB
,
PIRQC
},
{
PIRQC
,
PIRQD
,
PIRQA
,
PIRQB
},
{
PIRQB
,
PIRQC
,
PIRQD
,
PIRQA
},
/* IDSEL 21 */
};
const
long
min_idsel
=
2
,
max_idsel
=
21
,
irqs_per_slot
=
4
;
return
PCI_IRQ_TABLE_LOOKUP
;
}
int
int
mpc85xx_exclude_device
(
u_char
bus
,
u_char
devfn
)
mpc85xx_exclude_device
(
u_char
bus
,
u_char
devfn
)
{
{
...
@@ -119,44 +47,63 @@ mpc85xx_exclude_device(u_char bus, u_char devfn)
...
@@ -119,44 +47,63 @@ mpc85xx_exclude_device(u_char bus, u_char devfn)
return
PCIBIOS_SUCCESSFUL
;
return
PCIBIOS_SUCCESSFUL
;
}
}
void
__init
mpc85xx_pcibios_fixup
(
void
)
{
struct
pci_dev
*
dev
=
NULL
;
for_each_pci_dev
(
dev
)
pci_read_irq_line
(
dev
);
}
#endif
/* CONFIG_PCI */
#endif
/* CONFIG_PCI */
void
__init
mpc85xx_ads_pic_init
(
void
)
void
__init
mpc85xx_ads_pic_init
(
void
)
{
{
struct
mpic
*
mpic1
;
struct
mpic
*
mpic
;
phys_addr_t
OpenPIC_PAddr
;
struct
resource
r
;
struct
device_node
*
np
=
NULL
;
/* Determine the Physical Address of the OpenPIC regs */
np
=
of_find_node_by_type
(
np
,
"open-pic"
);
OpenPIC_PAddr
=
get_immrbase
()
+
MPC85xx_OPENPIC_OFFSET
;
mpic1
=
mpic_alloc
(
OpenPIC_PAddr
,
if
(
np
==
NULL
)
{
printk
(
KERN_ERR
"Could not find open-pic node
\n
"
);
return
;
}
if
(
of_address_to_resource
(
np
,
0
,
&
r
))
{
printk
(
KERN_ERR
"Could not map mpic register space
\n
"
);
of_node_put
(
np
);
return
;
}
mpic
=
mpic_alloc
(
np
,
r
.
start
,
MPIC_PRIMARY
|
MPIC_WANTS_RESET
|
MPIC_BIG_ENDIAN
,
MPIC_PRIMARY
|
MPIC_WANTS_RESET
|
MPIC_BIG_ENDIAN
,
4
,
MPC85xx_OPENPIC_IRQ_OFFSET
,
0
,
250
,
4
,
0
,
" OpenPIC "
);
mpc85xx_ads_openpic_initsenses
,
BUG_ON
(
mpic
==
NULL
);
sizeof
(
mpc85xx_ads_openpic_initsenses
),
of_node_put
(
np
);
" OpenPIC "
);
BUG_ON
(
mpic1
==
NULL
);
mpic_assign_isu
(
mpic
,
0
,
r
.
start
+
0x10200
);
mpic_assign_isu
(
mpic
1
,
0
,
OpenPIC_PAddr
+
0x1020
0
);
mpic_assign_isu
(
mpic
,
1
,
r
.
start
+
0x1028
0
);
mpic_assign_isu
(
mpic
1
,
1
,
OpenPIC_PAddr
+
0x1028
0
);
mpic_assign_isu
(
mpic
,
2
,
r
.
start
+
0x1030
0
);
mpic_assign_isu
(
mpic
1
,
2
,
OpenPIC_PAddr
+
0x1030
0
);
mpic_assign_isu
(
mpic
,
3
,
r
.
start
+
0x1038
0
);
mpic_assign_isu
(
mpic
1
,
3
,
OpenPIC_PAddr
+
0x1038
0
);
mpic_assign_isu
(
mpic
,
4
,
r
.
start
+
0x1040
0
);
mpic_assign_isu
(
mpic
1
,
4
,
OpenPIC_PAddr
+
0x1040
0
);
mpic_assign_isu
(
mpic
,
5
,
r
.
start
+
0x1048
0
);
mpic_assign_isu
(
mpic
1
,
5
,
OpenPIC_PAddr
+
0x1048
0
);
mpic_assign_isu
(
mpic
,
6
,
r
.
start
+
0x1050
0
);
mpic_assign_isu
(
mpic
1
,
6
,
OpenPIC_PAddr
+
0x1050
0
);
mpic_assign_isu
(
mpic
,
7
,
r
.
start
+
0x1058
0
);
mpic_assign_isu
(
mpic1
,
7
,
OpenPIC_PAddr
+
0x10580
);
/* Unused on this platform (leave room for 8548) */
/* dummy mappings to get to 48 */
mpic_assign_isu
(
mpic
,
8
,
r
.
start
+
0x10600
);
mpic_assign_isu
(
mpic
1
,
8
,
OpenPIC_PAddr
+
0x1060
0
);
mpic_assign_isu
(
mpic
,
9
,
r
.
start
+
0x1068
0
);
mpic_assign_isu
(
mpic
1
,
9
,
OpenPIC_PAddr
+
0x1068
0
);
mpic_assign_isu
(
mpic
,
10
,
r
.
start
+
0x1070
0
);
mpic_assign_isu
(
mpic
1
,
10
,
OpenPIC_PAddr
+
0x1070
0
);
mpic_assign_isu
(
mpic
,
11
,
r
.
start
+
0x1078
0
);
mpic_assign_isu
(
mpic1
,
11
,
OpenPIC_PAddr
+
0x10780
);
/* External Interrupts */
/* External ints */
mpic_assign_isu
(
mpic
,
12
,
r
.
start
+
0x10000
);
mpic_assign_isu
(
mpic
1
,
12
,
OpenPIC_PAddr
+
0x1000
0
);
mpic_assign_isu
(
mpic
,
13
,
r
.
start
+
0x1008
0
);
mpic_assign_isu
(
mpic
1
,
13
,
OpenPIC_PAddr
+
0x1008
0
);
mpic_assign_isu
(
mpic
,
14
,
r
.
start
+
0x1010
0
);
mpic_assign_isu
(
mpic1
,
14
,
OpenPIC_PAddr
+
0x10100
);
mpic_init
(
mpic
1
);
mpic_init
(
mpic
);
}
}
/*
/*
...
@@ -165,7 +112,9 @@ void __init mpc85xx_ads_pic_init(void)
...
@@ -165,7 +112,9 @@ void __init mpc85xx_ads_pic_init(void)
static
void
__init
mpc85xx_ads_setup_arch
(
void
)
static
void
__init
mpc85xx_ads_setup_arch
(
void
)
{
{
struct
device_node
*
cpu
;
struct
device_node
*
cpu
;
#ifdef CONFIG_PCI
struct
device_node
*
np
;
struct
device_node
*
np
;
#endif
if
(
ppc_md
.
progress
)
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"mpc85xx_ads_setup_arch()"
,
0
);
ppc_md
.
progress
(
"mpc85xx_ads_setup_arch()"
,
0
);
...
@@ -186,8 +135,7 @@ static void __init mpc85xx_ads_setup_arch(void)
...
@@ -186,8 +135,7 @@ static void __init mpc85xx_ads_setup_arch(void)
for
(
np
=
NULL
;
(
np
=
of_find_node_by_type
(
np
,
"pci"
))
!=
NULL
;)
for
(
np
=
NULL
;
(
np
=
of_find_node_by_type
(
np
,
"pci"
))
!=
NULL
;)
add_bridge
(
np
);
add_bridge
(
np
);
ppc_md
.
pci_swizzle
=
common_swizzle
;
ppc_md
.
pcibios_fixup
=
mpc85xx_pcibios_fixup
;
ppc_md
.
pci_map_irq
=
mpc85xx_map_irq
;
ppc_md
.
pci_exclude_device
=
mpc85xx_exclude_device
;
ppc_md
.
pci_exclude_device
=
mpc85xx_exclude_device
;
#endif
#endif
...
...
arch/powerpc/platforms/85xx/mpc85xx_cds.c
View file @
ccc712fe
...
@@ -57,94 +57,8 @@ unsigned long isa_mem_base = 0;
...
@@ -57,94 +57,8 @@ unsigned long isa_mem_base = 0;
static
int
cds_pci_slot
=
2
;
static
int
cds_pci_slot
=
2
;
static
volatile
u8
*
cadmus
;
static
volatile
u8
*
cadmus
;
/*
* Internal interrupts are all Level Sensitive, and Positive Polarity
*
* Note: Likely, this table and the following function should be
* obtained and derived from the OF Device Tree.
*/
static
u_char
mpc85xx_cds_openpic_initsenses
[]
__initdata
=
{
MPC85XX_INTERNAL_IRQ_SENSES
,
#if defined(CONFIG_PCI)
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_POSITIVE
),
/* Ext 0: PCI slot 0 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 1: PCI slot 1 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 2: PCI slot 2 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 3: PCI slot 3 */
#else
0x0
,
/* External 0: */
0x0
,
/* External 1: */
0x0
,
/* External 2: */
0x0
,
/* External 3: */
#endif
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* External 5: PHY */
0x0
,
/* External 6: */
0x0
,
/* External 7: */
0x0
,
/* External 8: */
0x0
,
/* External 9: */
0x0
,
/* External 10: */
#ifdef CONFIG_PCI
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* Ext 11: PCI2 slot 0 */
#else
0x0
,
/* External 11: */
#endif
};
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
/*
* interrupt routing
*/
int
mpc85xx_map_irq
(
struct
pci_dev
*
dev
,
unsigned
char
idsel
,
unsigned
char
pin
)
{
struct
pci_controller
*
hose
=
pci_bus_to_hose
(
dev
->
bus
->
number
);
if
(
!
hose
->
index
)
{
/* Handle PCI1 interrupts */
char
pci_irq_table
[][
4
]
=
/*
* PCI IDSEL/INTPIN->INTLINE
* A B C D
*/
/* Note IRQ assignment for slots is based on which slot the elysium is
* in -- in this setup elysium is in slot #2 (this PIRQA as first
* interrupt on slot */
{
{
0
,
1
,
2
,
3
},
/* 16 - PMC */
{
0
,
1
,
2
,
3
},
/* 17 P2P (Tsi320) */
{
0
,
1
,
2
,
3
},
/* 18 - Slot 1 */
{
1
,
2
,
3
,
0
},
/* 19 - Slot 2 */
{
2
,
3
,
0
,
1
},
/* 20 - Slot 3 */
{
3
,
0
,
1
,
2
},
/* 21 - Slot 4 */
};
const
long
min_idsel
=
16
,
max_idsel
=
21
,
irqs_per_slot
=
4
;
int
i
,
j
;
for
(
i
=
0
;
i
<
6
;
i
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
pci_irq_table
[
i
][
j
]
=
((
pci_irq_table
[
i
][
j
]
+
5
-
cds_pci_slot
)
&
0x3
)
+
PIRQ0A
;
return
PCI_IRQ_TABLE_LOOKUP
;
}
else
{
/* Handle PCI2 interrupts (if we have one) */
char
pci_irq_table
[][
4
]
=
{
/*
* We only have one slot and one interrupt
* going to PIRQA - PIRQD */
{
PIRQ1A
,
PIRQ1A
,
PIRQ1A
,
PIRQ1A
},
/* 21 - slot 0 */
};
const
long
min_idsel
=
21
,
max_idsel
=
21
,
irqs_per_slot
=
4
;
return
PCI_IRQ_TABLE_LOOKUP
;
}
}
#define ARCADIA_HOST_BRIDGE_IDSEL 17
#define ARCADIA_HOST_BRIDGE_IDSEL 17
#define ARCADIA_2ND_BRIDGE_IDSEL 3
#define ARCADIA_2ND_BRIDGE_IDSEL 3
...
@@ -210,50 +124,104 @@ mpc85xx_cds_pcibios_fixup(void)
...
@@ -210,50 +124,104 @@ mpc85xx_cds_pcibios_fixup(void)
pci_write_config_byte
(
dev
,
PCI_INTERRUPT_LINE
,
11
);
pci_write_config_byte
(
dev
,
PCI_INTERRUPT_LINE
,
11
);
pci_dev_put
(
dev
);
pci_dev_put
(
dev
);
}
}
/* Now map all the PCI irqs */
dev
=
NULL
;
for_each_pci_dev
(
dev
)
pci_read_irq_line
(
dev
);
}
#ifdef CONFIG_PPC_I8259
#warning The i8259 PIC support is currently broken
static
void
mpc85xx_8259_cascade
(
unsigned
int
irq
,
struct
irq_desc
*
desc
,
struct
pt_regs
*
regs
)
{
unsigned
int
cascade_irq
=
i8259_irq
(
regs
);
if
(
cascade_irq
!=
NO_IRQ
)
generic_handle_irq
(
cascade_irq
,
regs
);
desc
->
chip
->
eoi
(
irq
);
}
}
#endif
/* PPC_I8259 */
#endif
/* CONFIG_PCI */
#endif
/* CONFIG_PCI */
void
__init
mpc85xx_cds_pic_init
(
void
)
void
__init
mpc85xx_cds_pic_init
(
void
)
{
{
struct
mpic
*
mpic1
;
struct
mpic
*
mpic
;
phys_addr_t
OpenPIC_PAddr
;
struct
resource
r
;
struct
device_node
*
np
=
NULL
;
struct
device_node
*
cascade_node
=
NULL
;
int
cascade_irq
;
np
=
of_find_node_by_type
(
np
,
"open-pic"
);
/* Determine the Physical Address of the OpenPIC regs */
if
(
np
==
NULL
)
{
OpenPIC_PAddr
=
get_immrbase
()
+
MPC85xx_OPENPIC_OFFSET
;
printk
(
KERN_ERR
"Could not find open-pic node
\n
"
);
return
;
}
if
(
of_address_to_resource
(
np
,
0
,
&
r
))
{
printk
(
KERN_ERR
"Failed to map mpic register space
\n
"
);
of_node_put
(
np
);
return
;
}
mpic
1
=
mpic_alloc
(
OpenPIC_PAddr
,
mpic
=
mpic_alloc
(
np
,
r
.
start
,
MPIC_PRIMARY
|
MPIC_WANTS_RESET
|
MPIC_BIG_ENDIAN
,
MPIC_PRIMARY
|
MPIC_WANTS_RESET
|
MPIC_BIG_ENDIAN
,
4
,
MPC85xx_OPENPIC_IRQ_OFFSET
,
0
,
250
,
4
,
0
,
" OpenPIC "
);
mpc85xx_cds_openpic_initsenses
,
BUG_ON
(
mpic
==
NULL
);
sizeof
(
mpc85xx_cds_openpic_initsenses
),
" OpenPIC "
);
BUG_ON
(
mpic1
==
NULL
);
/* Return the mpic node */
mpic_assign_isu
(
mpic1
,
0
,
OpenPIC_PAddr
+
0x10200
);
of_node_put
(
np
);
mpic_assign_isu
(
mpic1
,
1
,
OpenPIC_PAddr
+
0x10280
);
mpic_assign_isu
(
mpic1
,
2
,
OpenPIC_PAddr
+
0x10300
);
mpic_assign_isu
(
mpic
,
0
,
r
.
start
+
0x10200
);
mpic_assign_isu
(
mpic1
,
3
,
OpenPIC_PAddr
+
0x10380
);
mpic_assign_isu
(
mpic
,
1
,
r
.
start
+
0x10280
);
mpic_assign_isu
(
mpic1
,
4
,
OpenPIC_PAddr
+
0x10400
);
mpic_assign_isu
(
mpic
,
2
,
r
.
start
+
0x10300
);
mpic_assign_isu
(
mpic1
,
5
,
OpenPIC_PAddr
+
0x10480
);
mpic_assign_isu
(
mpic
,
3
,
r
.
start
+
0x10380
);
mpic_assign_isu
(
mpic1
,
6
,
OpenPIC_PAddr
+
0x10500
);
mpic_assign_isu
(
mpic
,
4
,
r
.
start
+
0x10400
);
mpic_assign_isu
(
mpic1
,
7
,
OpenPIC_PAddr
+
0x10580
);
mpic_assign_isu
(
mpic
,
5
,
r
.
start
+
0x10480
);
mpic_assign_isu
(
mpic
,
6
,
r
.
start
+
0x10500
);
/* dummy mappings to get to 48 */
mpic_assign_isu
(
mpic
,
7
,
r
.
start
+
0x10580
);
mpic_assign_isu
(
mpic1
,
8
,
OpenPIC_PAddr
+
0x10600
);
mpic_assign_isu
(
mpic1
,
9
,
OpenPIC_PAddr
+
0x10680
);
/* Used only for 8548 so far, but no harm in
mpic_assign_isu
(
mpic1
,
10
,
OpenPIC_PAddr
+
0x10700
);
* allocating them for everyone */
mpic_assign_isu
(
mpic1
,
11
,
OpenPIC_PAddr
+
0x10780
);
mpic_assign_isu
(
mpic
,
8
,
r
.
start
+
0x10600
);
mpic_assign_isu
(
mpic
,
9
,
r
.
start
+
0x10680
);
/* External ints */
mpic_assign_isu
(
mpic
,
10
,
r
.
start
+
0x10700
);
mpic_assign_isu
(
mpic1
,
12
,
OpenPIC_PAddr
+
0x10000
);
mpic_assign_isu
(
mpic
,
11
,
r
.
start
+
0x10780
);
mpic_assign_isu
(
mpic1
,
13
,
OpenPIC_PAddr
+
0x10080
);
mpic_assign_isu
(
mpic1
,
14
,
OpenPIC_PAddr
+
0x10100
);
/* External Interrupts */
mpic_assign_isu
(
mpic
,
12
,
r
.
start
+
0x10000
);
mpic_init
(
mpic1
);
mpic_assign_isu
(
mpic
,
13
,
r
.
start
+
0x10080
);
mpic_assign_isu
(
mpic
,
14
,
r
.
start
+
0x10100
);
mpic_init
(
mpic
);
#ifdef CONFIG_PPC_I8259
/* Initialize the i8259 controller */
for_each_node_by_type
(
np
,
"interrupt-controller"
)
if
(
device_is_compatible
(
np
,
"chrp,iic"
))
{
cascade_node
=
np
;
break
;
}
#ifdef CONFIG_PCI
if
(
cascade_node
==
NULL
)
{
mpic_setup_cascade
(
PIRQ0A
,
i8259_irq_cascade
,
NULL
);
printk
(
KERN_DEBUG
"Could not find i8259 PIC
\n
"
);
return
;
}
i8259_init
(
0
,
0
);
cascade_irq
=
irq_of_parse_and_map
(
cascade_node
,
0
);
#endif
if
(
cascade_irq
==
NO_IRQ
)
{
printk
(
KERN_ERR
"Failed to map cascade interrupt
\n
"
);
return
;
}
i8259_init
(
cascade_node
,
0
);
of_node_put
(
cascade_node
);
set_irq_chained_handler
(
cascade_irq
,
mpc85xx_8259_cascade
);
#endif
/* CONFIG_PPC_I8259 */
}
}
...
@@ -298,8 +266,6 @@ mpc85xx_cds_setup_arch(void)
...
@@ -298,8 +266,6 @@ mpc85xx_cds_setup_arch(void)
add_bridge
(
np
);
add_bridge
(
np
);
ppc_md
.
pcibios_fixup
=
mpc85xx_cds_pcibios_fixup
;
ppc_md
.
pcibios_fixup
=
mpc85xx_cds_pcibios_fixup
;
ppc_md
.
pci_swizzle
=
common_swizzle
;
ppc_md
.
pci_map_irq
=
mpc85xx_map_irq
;
ppc_md
.
pci_exclude_device
=
mpc85xx_exclude_device
;
ppc_md
.
pci_exclude_device
=
mpc85xx_exclude_device
;
#endif
#endif
...
...
arch/powerpc/platforms/86xx/mpc8641_hpcn.h
View file @
ccc712fe
...
@@ -16,38 +16,6 @@
...
@@ -16,38 +16,6 @@
#include <linux/init.h>
#include <linux/init.h>
/* PCI interrupt controller */
#define PIRQA 3
#define PIRQB 4
#define PIRQC 5
#define PIRQD 6
#define PIRQ7 7
#define PIRQE 9
#define PIRQF 10
#define PIRQG 11
#define PIRQH 12
/* PCI-Express memory map */
#define MPC86XX_PCIE_LOWER_IO 0x00000000
#define MPC86XX_PCIE_UPPER_IO 0x00ffffff
#define MPC86XX_PCIE_LOWER_MEM 0x80000000
#define MPC86XX_PCIE_UPPER_MEM 0x9fffffff
#define MPC86XX_PCIE_IO_BASE 0xe2000000
#define MPC86XX_PCIE_MEM_OFFSET 0x00000000
#define MPC86XX_PCIE_IO_SIZE 0x01000000
#define PCIE1_CFG_ADDR_OFFSET (0x8000)
#define PCIE1_CFG_DATA_OFFSET (0x8004)
#define PCIE2_CFG_ADDR_OFFSET (0x9000)
#define PCIE2_CFG_DATA_OFFSET (0x9004)
#define MPC86xx_PCIE_OFFSET PCIE1_CFG_ADDR_OFFSET
#define MPC86xx_PCIE_SIZE (0x1000)
#define MPC86XX_RSTCR_OFFSET (0xe00b0)
/* Reset Control Register */
#define MPC86XX_RSTCR_OFFSET (0xe00b0)
/* Reset Control Register */
#endif
/* __MPC8641_HPCN_H__ */
#endif
/* __MPC8641_HPCN_H__ */
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
View file @
ccc712fe
This diff is collapsed.
Click to expand it.
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
View file @
ccc712fe
/*
/*
* mpc7448_hpc2.c
* mpc7448_hpc2.c
*
*
* Board setup routines for the Freescale
Taiga
platform
* Board setup routines for the Freescale
mpc7448hpc2(taiga)
platform
*
*
* Author: Jacob Pan
* Author: Jacob Pan
* jacob.pan@freescale.com
* jacob.pan@freescale.com
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
*
*
* Copyright 2004-2006 Freescale Semiconductor, Inc.
* Copyright 2004-2006 Freescale Semiconductor, Inc.
*
*
* This
file is licensed unde
r
* This
program is free software; you can redistribute it and/o
r
*
the terms of the GNU General Public License version 2. This program
*
modify it under the terms of the GNU General Public License
*
is licensed "as is" without any warranty of any kind, whether express
*
as published by the Free Software Foundation; either version
*
or implied
.
*
2 of the License, or (at your option) any later version
.
*/
*/
#include <linux/config.h>
#include <linux/config.h>
...
@@ -62,43 +62,8 @@ pci_dram_offset = MPC7448_HPC2_PCI_MEM_OFFSET;
...
@@ -62,43 +62,8 @@ pci_dram_offset = MPC7448_HPC2_PCI_MEM_OFFSET;
extern
int
tsi108_setup_pci
(
struct
device_node
*
dev
);
extern
int
tsi108_setup_pci
(
struct
device_node
*
dev
);
extern
void
_nmask_and_or_msr
(
unsigned
long
nmask
,
unsigned
long
or_val
);
extern
void
_nmask_and_or_msr
(
unsigned
long
nmask
,
unsigned
long
or_val
);
extern
void
tsi108_pci_int_init
(
void
);
extern
void
tsi108_pci_int_init
(
void
);
extern
int
tsi108_irq_cascade
(
struct
pt_regs
*
regs
,
void
*
unused
);
extern
void
tsi108_irq_cascade
(
unsigned
int
irq
,
struct
irq_desc
*
desc
,
struct
pt_regs
*
regs
);
/*
* Define all of the IRQ senses and polarities. Taken from the
* mpc7448hpc manual.
* Note: Likely, this table and the following function should be
* obtained and derived from the OF Device Tree.
*/
static
u_char
mpc7448_hpc2_pic_initsenses
[]
__initdata
=
{
/* External on-board sources */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* INT[0] XINT0 from FPGA */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* INT[1] XINT1 from FPGA */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* INT[2] PHY_INT from both GIGE */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_NEGATIVE
),
/* INT[3] RESERVED */
/* Internal Tsi108/109 interrupt sources */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* DMA0 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* DMA1 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* DMA2 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* DMA3 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* UART0 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* UART1 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* I2C */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* GPIO */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_POSITIVE
),
/* GIGE0 */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_POSITIVE
),
/* GIGE1 */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* HLP */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* SDC */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Processor IF */
(
IRQ_SENSE_EDGE
|
IRQ_POLARITY_POSITIVE
),
/* Reserved IRQ */
(
IRQ_SENSE_LEVEL
|
IRQ_POLARITY_POSITIVE
),
/* PCI/X block */
};
int
mpc7448_hpc2_exclude_device
(
u_char
bus
,
u_char
devfn
)
int
mpc7448_hpc2_exclude_device
(
u_char
bus
,
u_char
devfn
)
{
{
...
@@ -229,6 +194,8 @@ static void __init mpc7448_hpc2_init_IRQ(void)
...
@@ -229,6 +194,8 @@ static void __init mpc7448_hpc2_init_IRQ(void)
{
{
struct
mpic
*
mpic
;
struct
mpic
*
mpic
;
phys_addr_t
mpic_paddr
=
0
;
phys_addr_t
mpic_paddr
=
0
;
unsigned
int
cascade_pci_irq
;
struct
device_node
*
tsi_pci
;
struct
device_node
*
tsi_pic
;
struct
device_node
*
tsi_pic
;
tsi_pic
=
of_find_node_by_type
(
NULL
,
"open-pic"
);
tsi_pic
=
of_find_node_by_type
(
NULL
,
"open-pic"
);
...
@@ -246,24 +213,31 @@ static void __init mpc7448_hpc2_init_IRQ(void)
...
@@ -246,24 +213,31 @@ static void __init mpc7448_hpc2_init_IRQ(void)
DBG
(
"%s: tsi108pic phys_addr = 0x%x
\n
"
,
__FUNCTION__
,
DBG
(
"%s: tsi108pic phys_addr = 0x%x
\n
"
,
__FUNCTION__
,
(
u32
)
mpic_paddr
);
(
u32
)
mpic_paddr
);
mpic
=
mpic_alloc
(
mpic_paddr
,
mpic
=
mpic_alloc
(
tsi_pic
,
mpic_paddr
,
MPIC_PRIMARY
|
MPIC_BIG_ENDIAN
|
MPIC_WANTS_RESET
|
MPIC_PRIMARY
|
MPIC_BIG_ENDIAN
|
MPIC_WANTS_RESET
|
MPIC_SPV_EOI
|
MPIC_MOD_ID
(
MPIC_ID_TSI108
),
MPIC_SPV_EOI
|
MPIC_MOD_ID
(
MPIC_ID_TSI108
),
0
,
/* num_sources used */
0
,
/* num_sources used */
TSI108_IRQ_BASE
,
0
,
/* num_sources used */
0
,
/* num_sources used */
NR_IRQS
-
4
/* XXXX */
,
"Tsi108_PIC"
);
mpc7448_hpc2_pic_initsenses
,
sizeof
(
mpc7448_hpc2_pic_initsenses
),
"Tsi108_PIC"
);
BUG_ON
(
mpic
==
NULL
);
/* XXXX */
BUG_ON
(
mpic
==
NULL
);
/* XXXX */
mpic_init
(
mpic
);
mpic_init
(
mpic
);
mpic_setup_cascade
(
IRQ_TSI108_PCI
,
tsi108_irq_cascade
,
mpic
);
tsi_pci
=
of_find_node_by_type
(
NULL
,
"pci"
);
if
(
tsi_pci
==
0
)
{
printk
(
"%s: No tsi108 pci node found !
\n
"
,
__FUNCTION__
);
return
;
}
cascade_pci_irq
=
irq_of_parse_and_map
(
tsi_pci
,
0
);
set_irq_data
(
cascade_pci_irq
,
mpic
);
set_irq_chained_handler
(
cascade_pci_irq
,
tsi108_irq_cascade
);
tsi108_pci_int_init
();
tsi108_pci_int_init
();
/* Configure MPIC outputs to CPU0 */
/* Configure MPIC outputs to CPU0 */
tsi108_write_reg
(
TSI108_MPIC_OFFSET
+
0x30c
,
0
);
tsi108_write_reg
(
TSI108_MPIC_OFFSET
+
0x30c
,
0
);
of_node_put
(
tsi_pic
);
}
}
void
mpc7448_hpc2_show_cpuinfo
(
struct
seq_file
*
m
)
void
mpc7448_hpc2_show_cpuinfo
(
struct
seq_file
*
m
)
...
@@ -320,6 +294,7 @@ static int mpc7448_machine_check_exception(struct pt_regs *regs)
...
@@ -320,6 +294,7 @@ static int mpc7448_machine_check_exception(struct pt_regs *regs)
return
0
;
return
0
;
}
}
define_machine
(
mpc7448_hpc2
){
define_machine
(
mpc7448_hpc2
){
.
name
=
"MPC7448 HPC2"
,
.
name
=
"MPC7448 HPC2"
,
.
probe
=
mpc7448_hpc2_probe
,
.
probe
=
mpc7448_hpc2_probe
,
...
...
arch/powerpc/platforms/powermac/bootx_init.c
View file @
ccc712fe
...
@@ -411,8 +411,15 @@ static unsigned long __init bootx_flatten_dt(unsigned long start)
...
@@ -411,8 +411,15 @@ static unsigned long __init bootx_flatten_dt(unsigned long start)
DBG
(
"End of boot params: %x
\n
"
,
mem_end
);
DBG
(
"End of boot params: %x
\n
"
,
mem_end
);
rsvmap
[
0
]
=
mem_start
;
rsvmap
[
0
]
=
mem_start
;
rsvmap
[
1
]
=
mem_end
;
rsvmap
[
1
]
=
mem_end
;
if
(
bootx_info
->
ramDisk
)
{
rsvmap
[
2
]
=
((
unsigned
long
)
bootx_info
)
+
bootx_info
->
ramDisk
;
rsvmap
[
3
]
=
rsvmap
[
2
]
+
bootx_info
->
ramDiskSize
;
rsvmap
[
4
]
=
0
;
rsvmap
[
5
]
=
0
;
}
else
{
rsvmap
[
2
]
=
0
;
rsvmap
[
2
]
=
0
;
rsvmap
[
3
]
=
0
;
rsvmap
[
3
]
=
0
;
}
return
(
unsigned
long
)
hdr
;
return
(
unsigned
long
)
hdr
;
}
}
...
@@ -543,12 +550,12 @@ void __init bootx_init(unsigned long r3, unsigned long r4)
...
@@ -543,12 +550,12 @@ void __init bootx_init(unsigned long r3, unsigned long r4)
*/
*/
if
(
bi
->
version
<
5
)
{
if
(
bi
->
version
<
5
)
{
space
=
bi
->
deviceTreeOffset
+
bi
->
deviceTreeSize
;
space
=
bi
->
deviceTreeOffset
+
bi
->
deviceTreeSize
;
if
(
bi
->
ramDisk
)
if
(
bi
->
ramDisk
>=
space
)
space
=
bi
->
ramDisk
+
bi
->
ramDiskSize
;
space
=
bi
->
ramDisk
+
bi
->
ramDiskSize
;
}
else
}
else
space
=
bi
->
totalParamsSize
;
space
=
bi
->
totalParamsSize
;
bootx_printf
(
"Total space used by parameters & ramdisk: %x
\n
"
,
space
);
bootx_printf
(
"Total space used by parameters & ramdisk:
0x
%x
\n
"
,
space
);
/* New BootX will have flushed all TLBs and enters kernel with
/* New BootX will have flushed all TLBs and enters kernel with
* MMU switched OFF, so this should not be useful anymore.
* MMU switched OFF, so this should not be useful anymore.
...
...
arch/powerpc/sysdev/fsl_soc.c
View file @
ccc712fe
...
@@ -85,11 +85,8 @@ static int __init gfar_mdio_of_init(void)
...
@@ -85,11 +85,8 @@ static int __init gfar_mdio_of_init(void)
mdio_data
.
irq
[
k
]
=
-
1
;
mdio_data
.
irq
[
k
]
=
-
1
;
while
((
child
=
of_get_next_child
(
np
,
child
))
!=
NULL
)
{
while
((
child
=
of_get_next_child
(
np
,
child
))
!=
NULL
)
{
if
(
child
->
n_intrs
)
{
u32
*
id
=
get_property
(
child
,
"reg"
,
NULL
);
u32
*
id
=
mdio_data
.
irq
[
*
id
]
=
irq_of_parse_and_map
(
child
,
0
);
(
u32
*
)
get_property
(
child
,
"reg"
,
NULL
);
mdio_data
.
irq
[
*
id
]
=
child
->
intrs
[
0
].
line
;
}
}
}
ret
=
ret
=
...
@@ -131,6 +128,7 @@ static int __init gfar_of_init(void)
...
@@ -131,6 +128,7 @@ static int __init gfar_of_init(void)
char
*
model
;
char
*
model
;
void
*
mac_addr
;
void
*
mac_addr
;
phandle
*
ph
;
phandle
*
ph
;
int
n_res
=
1
;
memset
(
r
,
0
,
sizeof
(
r
));
memset
(
r
,
0
,
sizeof
(
r
));
memset
(
&
gfar_data
,
0
,
sizeof
(
gfar_data
));
memset
(
&
gfar_data
,
0
,
sizeof
(
gfar_data
));
...
@@ -139,8 +137,7 @@ static int __init gfar_of_init(void)
...
@@ -139,8 +137,7 @@ static int __init gfar_of_init(void)
if
(
ret
)
if
(
ret
)
goto
err
;
goto
err
;
r
[
1
].
start
=
np
->
intrs
[
0
].
line
;
r
[
1
].
start
=
r
[
1
].
end
=
irq_of_parse_and_map
(
np
,
0
);
r
[
1
].
end
=
np
->
intrs
[
0
].
line
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
model
=
get_property
(
np
,
"model"
,
NULL
);
model
=
get_property
(
np
,
"model"
,
NULL
);
...
@@ -150,19 +147,19 @@ static int __init gfar_of_init(void)
...
@@ -150,19 +147,19 @@ static int __init gfar_of_init(void)
r
[
1
].
name
=
gfar_tx_intr
;
r
[
1
].
name
=
gfar_tx_intr
;
r
[
2
].
name
=
gfar_rx_intr
;
r
[
2
].
name
=
gfar_rx_intr
;
r
[
2
].
start
=
np
->
intrs
[
1
].
line
;
r
[
2
].
start
=
r
[
2
].
end
=
irq_of_parse_and_map
(
np
,
1
);
r
[
2
].
end
=
np
->
intrs
[
1
].
line
;
r
[
2
].
flags
=
IORESOURCE_IRQ
;
r
[
2
].
flags
=
IORESOURCE_IRQ
;
r
[
3
].
name
=
gfar_err_intr
;
r
[
3
].
name
=
gfar_err_intr
;
r
[
3
].
start
=
np
->
intrs
[
2
].
line
;
r
[
3
].
start
=
r
[
3
].
end
=
irq_of_parse_and_map
(
np
,
2
);
r
[
3
].
end
=
np
->
intrs
[
2
].
line
;
r
[
3
].
flags
=
IORESOURCE_IRQ
;
r
[
3
].
flags
=
IORESOURCE_IRQ
;
n_res
+=
2
;
}
}
gfar_dev
=
gfar_dev
=
platform_device_register_simple
(
"fsl-gianfar"
,
i
,
&
r
[
0
],
platform_device_register_simple
(
"fsl-gianfar"
,
i
,
&
r
[
0
],
n
p
->
n_intr
s
+
1
);
n
_re
s
+
1
);
if
(
IS_ERR
(
gfar_dev
))
{
if
(
IS_ERR
(
gfar_dev
))
{
ret
=
PTR_ERR
(
gfar_dev
);
ret
=
PTR_ERR
(
gfar_dev
);
...
@@ -259,8 +256,7 @@ static int __init fsl_i2c_of_init(void)
...
@@ -259,8 +256,7 @@ static int __init fsl_i2c_of_init(void)
if
(
ret
)
if
(
ret
)
goto
err
;
goto
err
;
r
[
1
].
start
=
np
->
intrs
[
0
].
line
;
r
[
1
].
start
=
r
[
1
].
end
=
irq_of_parse_and_map
(
np
,
0
);
r
[
1
].
end
=
np
->
intrs
[
0
].
line
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
i2c_dev
=
platform_device_register_simple
(
"fsl-i2c"
,
i
,
r
,
2
);
i2c_dev
=
platform_device_register_simple
(
"fsl-i2c"
,
i
,
r
,
2
);
...
@@ -396,8 +392,7 @@ static int __init fsl_usb_of_init(void)
...
@@ -396,8 +392,7 @@ static int __init fsl_usb_of_init(void)
if
(
ret
)
if
(
ret
)
goto
err
;
goto
err
;
r
[
1
].
start
=
np
->
intrs
[
0
].
line
;
r
[
1
].
start
=
r
[
1
].
end
=
irq_of_parse_and_map
(
np
,
0
);
r
[
1
].
end
=
np
->
intrs
[
0
].
line
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
usb_dev_mph
=
usb_dev_mph
=
...
@@ -445,8 +440,7 @@ static int __init fsl_usb_of_init(void)
...
@@ -445,8 +440,7 @@ static int __init fsl_usb_of_init(void)
if
(
ret
)
if
(
ret
)
goto
unreg_mph
;
goto
unreg_mph
;
r
[
1
].
start
=
np
->
intrs
[
0
].
line
;
r
[
1
].
start
=
r
[
1
].
end
=
irq_of_parse_and_map
(
np
,
0
);
r
[
1
].
end
=
np
->
intrs
[
0
].
line
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
usb_dev_dr
=
usb_dev_dr
=
...
...
arch/powerpc/sysdev/tsi108_dev.c
View file @
ccc712fe
...
@@ -93,13 +93,15 @@ static int __init tsi108_eth_of_init(void)
...
@@ -93,13 +93,15 @@ static int __init tsi108_eth_of_init(void)
goto
err
;
goto
err
;
r
[
1
].
name
=
"tx"
;
r
[
1
].
name
=
"tx"
;
r
[
1
].
start
=
np
->
intrs
[
0
].
line
;
r
[
1
].
start
=
irq_of_parse_and_map
(
np
,
0
)
;
r
[
1
].
end
=
np
->
intrs
[
0
].
line
;
r
[
1
].
end
=
irq_of_parse_and_map
(
np
,
0
)
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
r
[
1
].
flags
=
IORESOURCE_IRQ
;
DBG
(
"%s: name:start->end = %s:0x%lx-> 0x%lx
\n
"
,
__FUNCTION__
,
r
[
1
].
name
,
r
[
1
].
start
,
r
[
1
].
end
);
tsi_eth_dev
=
tsi_eth_dev
=
platform_device_register_simple
(
"tsi-ethernet"
,
i
,
&
r
[
0
],
platform_device_register_simple
(
"tsi-ethernet"
,
i
,
&
r
[
0
],
np
->
n_intrs
+
1
);
1
);
if
(
IS_ERR
(
tsi_eth_dev
))
{
if
(
IS_ERR
(
tsi_eth_dev
))
{
ret
=
PTR_ERR
(
tsi_eth_dev
);
ret
=
PTR_ERR
(
tsi_eth_dev
);
...
@@ -127,7 +129,7 @@ static int __init tsi108_eth_of_init(void)
...
@@ -127,7 +129,7 @@ static int __init tsi108_eth_of_init(void)
tsi_eth_data
.
regs
=
r
[
0
].
start
;
tsi_eth_data
.
regs
=
r
[
0
].
start
;
tsi_eth_data
.
phyregs
=
res
.
start
;
tsi_eth_data
.
phyregs
=
res
.
start
;
tsi_eth_data
.
phy
=
*
phy_id
;
tsi_eth_data
.
phy
=
*
phy_id
;
tsi_eth_data
.
irq_num
=
np
->
intrs
[
0
].
line
;
tsi_eth_data
.
irq_num
=
irq_of_parse_and_map
(
np
,
0
)
;
of_node_put
(
phy
);
of_node_put
(
phy
);
ret
=
ret
=
platform_device_add_data
(
tsi_eth_dev
,
&
tsi_eth_data
,
platform_device_add_data
(
tsi_eth_dev
,
&
tsi_eth_data
,
...
...
arch/powerpc/sysdev/tsi108_pci.c
View file @
ccc712fe
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <linux/irq.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <asm/byteorder.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/irq.h>
...
@@ -228,7 +227,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
...
@@ -228,7 +227,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
(
hose
)
->
ops
=
&
tsi108_direct_pci_ops
;
(
hose
)
->
ops
=
&
tsi108_direct_pci_ops
;
printk
(
KERN_INFO
"Found tsi108 PCI host bridge at 0x%08
l
x. "
printk
(
KERN_INFO
"Found tsi108 PCI host bridge at 0x%08x. "
"Firmware bus number: %d->%d
\n
"
,
"Firmware bus number: %d->%d
\n
"
,
rsrc
.
start
,
hose
->
first_busno
,
hose
->
last_busno
);
rsrc
.
start
,
hose
->
first_busno
,
hose
->
last_busno
);
...
@@ -278,7 +277,7 @@ static void init_pci_source(void)
...
@@ -278,7 +277,7 @@ static void init_pci_source(void)
mb
();
mb
();
}
}
static
inline
int
get_pci_source
(
void
)
static
inline
unsigned
int
get_pci_source
(
void
)
{
{
u_int
temp
=
0
;
u_int
temp
=
0
;
int
irq
=
-
1
;
int
irq
=
-
1
;
...
@@ -371,12 +370,12 @@ static void tsi108_pci_irq_end(u_int irq)
...
@@ -371,12 +370,12 @@ static void tsi108_pci_irq_end(u_int irq)
* Interrupt controller descriptor for cascaded PCI interrupt controller.
* Interrupt controller descriptor for cascaded PCI interrupt controller.
*/
*/
st
ruct
hw_interrupt_type
tsi108_pci_irq
=
{
st
atic
struct
irq_chip
tsi108_pci_irq
=
{
.
typename
=
"tsi108_PCI_int"
,
.
typename
=
"tsi108_PCI_int"
,
.
enable
=
tsi108_pci_irq_enable
,
.
mask
=
tsi108_pci_irq_disable
,
.
disable
=
tsi108_pci_irq_disable
,
.
ack
=
tsi108_pci_irq_ack
,
.
ack
=
tsi108_pci_irq_ack
,
.
end
=
tsi108_pci_irq_end
,
.
end
=
tsi108_pci_irq_end
,
.
unmask
=
tsi108_pci_irq_enable
,
};
};
/*
/*
...
@@ -399,14 +398,18 @@ void __init tsi108_pci_int_init(void)
...
@@ -399,14 +398,18 @@ void __init tsi108_pci_int_init(void)
DBG
(
"Tsi108_pci_int_init: initializing PCI interrupts
\n
"
);
DBG
(
"Tsi108_pci_int_init: initializing PCI interrupts
\n
"
);
for
(
i
=
0
;
i
<
NUM_PCI_IRQS
;
i
++
)
{
for
(
i
=
0
;
i
<
NUM_PCI_IRQS
;
i
++
)
{
irq_desc
[
i
+
IRQ_PCI_INTAD_BASE
].
handler
=
&
tsi108_pci_irq
;
irq_desc
[
i
+
IRQ_PCI_INTAD_BASE
].
chip
=
&
tsi108_pci_irq
;
irq_desc
[
i
+
IRQ_PCI_INTAD_BASE
].
status
|=
IRQ_LEVEL
;
irq_desc
[
i
+
IRQ_PCI_INTAD_BASE
].
status
|=
IRQ_LEVEL
;
}
}
init_pci_source
();
init_pci_source
();
}
}
int
tsi108_irq_cascade
(
struct
pt_regs
*
regs
,
void
*
unused
)
void
tsi108_irq_cascade
(
unsigned
int
irq
,
struct
irq_desc
*
desc
,
struct
pt_regs
*
regs
)
{
{
return
get_pci_source
();
unsigned
int
cascade_irq
=
get_pci_source
();
if
(
cascade_irq
!=
NO_IRQ
)
generic_handle_irq
(
cascade_irq
,
regs
);
desc
->
chip
->
eoi
(
irq
);
}
}
include/asm-powerpc/pgalloc.h
View file @
ccc712fe
...
@@ -117,7 +117,7 @@ static inline void pte_free(struct page *ptepage)
...
@@ -117,7 +117,7 @@ static inline void pte_free(struct page *ptepage)
pte_free_kernel
(
page_address
(
ptepage
));
pte_free_kernel
(
page_address
(
ptepage
));
}
}
#define PGF_CACHENUM_MASK 0x
f
#define PGF_CACHENUM_MASK 0x
3
typedef
struct
pgtable_free
{
typedef
struct
pgtable_free
{
unsigned
long
val
;
unsigned
long
val
;
...
...
include/asm-powerpc/system.h
View file @
ccc712fe
...
@@ -53,6 +53,15 @@
...
@@ -53,6 +53,15 @@
#define smp_read_barrier_depends() do { } while(0)
#define smp_read_barrier_depends() do { } while(0)
#endif
/* CONFIG_SMP */
#endif
/* CONFIG_SMP */
/*
* This is a barrier which prevents following instructions from being
* started until the value of the argument x is known. For example, if
* x is a variable loaded from memory, this prevents following
* instructions from being executed until the load has been performed.
*/
#define data_barrier(x) \
asm volatile("twi 0,%0,0; isync" : : "r" (x) : "memory");
struct
task_struct
;
struct
task_struct
;
struct
pt_regs
;
struct
pt_regs
;
...
...
include/asm-powerpc/tsi108.h
View file @
ccc712fe
/*
/*
* include/asm-ppc/tsi108.h
*
* common routine and memory layout for Tundra TSI108(Grendel) host bridge
* common routine and memory layout for Tundra TSI108(Grendel) host bridge
* memory controller.
* memory controller.
*
*
* Author: Jacob Pan (jacob.pan@freescale.com)
* Author: Jacob Pan (jacob.pan@freescale.com)
* Alex Bounine (alexandreb@tundra.com)
* Alex Bounine (alexandreb@tundra.com)
* 2004 (c) Freescale Semiconductor Inc. This file is licensed under
*
* the terms of the GNU General Public License version 2. This program
* Copyright 2004-2006 Freescale Semiconductor, Inc.
* is licensed "as is" without any warranty of any kind, whether express
*
* or implied.
* 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 Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
*/
#ifndef __PPC_KERNEL_TSI108_H
#ifndef __PPC_KERNEL_TSI108_H
#define __PPC_KERNEL_TSI108_H
#define __PPC_KERNEL_TSI108_H
...
...
include/asm-powerpc/tsi108_irq.h
0 → 100644
View file @
ccc712fe
/*
* (C) Copyright 2005 Tundra Semiconductor Corp.
* Alex Bounine, <alexandreb at tundra.com).
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
/*
* definitions for interrupt controller initialization and external interrupt
* demultiplexing on TSI108EMU/SVB boards.
*/
#ifndef _ASM_PPC_TSI108_IRQ_H
#define _ASM_PPC_TSI108_IRQ_H
/*
* Tsi108 interrupts
*/
#ifndef TSI108_IRQ_REG_BASE
#define TSI108_IRQ_REG_BASE 0
#endif
#define TSI108_IRQ(x) (TSI108_IRQ_REG_BASE + (x))
#define TSI108_MAX_VECTORS (36 + 4)
/* 36 sources + PCI INT demux */
#define MAX_TASK_PRIO 0xF
#define TSI108_IRQ_SPURIOUS (TSI108_MAX_VECTORS)
#define DEFAULT_PRIO_LVL 10
/* initial priority level */
/* Interrupt vectors assignment to external and internal
* sources of requests. */
/* EXTERNAL INTERRUPT SOURCES */
#define IRQ_TSI108_EXT_INT0 TSI108_IRQ(0)
/* External Source at INT[0] */
#define IRQ_TSI108_EXT_INT1 TSI108_IRQ(1)
/* External Source at INT[1] */
#define IRQ_TSI108_EXT_INT2 TSI108_IRQ(2)
/* External Source at INT[2] */
#define IRQ_TSI108_EXT_INT3 TSI108_IRQ(3)
/* External Source at INT[3] */
/* INTERNAL INTERRUPT SOURCES */
#define IRQ_TSI108_RESERVED0 TSI108_IRQ(4)
/* Reserved IRQ */
#define IRQ_TSI108_RESERVED1 TSI108_IRQ(5)
/* Reserved IRQ */
#define IRQ_TSI108_RESERVED2 TSI108_IRQ(6)
/* Reserved IRQ */
#define IRQ_TSI108_RESERVED3 TSI108_IRQ(7)
/* Reserved IRQ */
#define IRQ_TSI108_DMA0 TSI108_IRQ(8)
/* DMA0 */
#define IRQ_TSI108_DMA1 TSI108_IRQ(9)
/* DMA1 */
#define IRQ_TSI108_DMA2 TSI108_IRQ(10)
/* DMA2 */
#define IRQ_TSI108_DMA3 TSI108_IRQ(11)
/* DMA3 */
#define IRQ_TSI108_UART0 TSI108_IRQ(12)
/* UART0 */
#define IRQ_TSI108_UART1 TSI108_IRQ(13)
/* UART1 */
#define IRQ_TSI108_I2C TSI108_IRQ(14)
/* I2C */
#define IRQ_TSI108_GPIO TSI108_IRQ(15)
/* GPIO */
#define IRQ_TSI108_GIGE0 TSI108_IRQ(16)
/* GIGE0 */
#define IRQ_TSI108_GIGE1 TSI108_IRQ(17)
/* GIGE1 */
#define IRQ_TSI108_RESERVED4 TSI108_IRQ(18)
/* Reserved IRQ */
#define IRQ_TSI108_HLP TSI108_IRQ(19)
/* HLP */
#define IRQ_TSI108_SDRAM TSI108_IRQ(20)
/* SDC */
#define IRQ_TSI108_PROC_IF TSI108_IRQ(21)
/* Processor IF */
#define IRQ_TSI108_RESERVED5 TSI108_IRQ(22)
/* Reserved IRQ */
#define IRQ_TSI108_PCI TSI108_IRQ(23)
/* PCI/X block */
#define IRQ_TSI108_MBOX0 TSI108_IRQ(24)
/* Mailbox 0 register */
#define IRQ_TSI108_MBOX1 TSI108_IRQ(25)
/* Mailbox 1 register */
#define IRQ_TSI108_MBOX2 TSI108_IRQ(26)
/* Mailbox 2 register */
#define IRQ_TSI108_MBOX3 TSI108_IRQ(27)
/* Mailbox 3 register */
#define IRQ_TSI108_DBELL0 TSI108_IRQ(28)
/* Doorbell 0 */
#define IRQ_TSI108_DBELL1 TSI108_IRQ(29)
/* Doorbell 1 */
#define IRQ_TSI108_DBELL2 TSI108_IRQ(30)
/* Doorbell 2 */
#define IRQ_TSI108_DBELL3 TSI108_IRQ(31)
/* Doorbell 3 */
#define IRQ_TSI108_TIMER0 TSI108_IRQ(32)
/* Global Timer 0 */
#define IRQ_TSI108_TIMER1 TSI108_IRQ(33)
/* Global Timer 1 */
#define IRQ_TSI108_TIMER2 TSI108_IRQ(34)
/* Global Timer 2 */
#define IRQ_TSI108_TIMER3 TSI108_IRQ(35)
/* Global Timer 3 */
/*
* PCI bus INTA# - INTD# lines demultiplexor
*/
#define IRQ_PCI_INTAD_BASE TSI108_IRQ(36)
#define IRQ_PCI_INTA (IRQ_PCI_INTAD_BASE + 0)
#define IRQ_PCI_INTB (IRQ_PCI_INTAD_BASE + 1)
#define IRQ_PCI_INTC (IRQ_PCI_INTAD_BASE + 2)
#define IRQ_PCI_INTD (IRQ_PCI_INTAD_BASE + 3)
#define NUM_PCI_IRQS (4)
/* number of entries in vector dispatch table */
#define IRQ_TSI108_TAB_SIZE (TSI108_MAX_VECTORS + 1)
/* Mapping of MPIC outputs to processors' interrupt pins */
#define IDIR_INT_OUT0 0x1
#define IDIR_INT_OUT1 0x2
#define IDIR_INT_OUT2 0x4
#define IDIR_INT_OUT3 0x8
/*---------------------------------------------------------------
* IRQ line configuration parameters */
/* Interrupt delivery modes */
typedef
enum
{
TSI108_IRQ_DIRECTED
,
TSI108_IRQ_DISTRIBUTED
,
}
TSI108_IRQ_MODE
;
#endif
/* _ASM_PPC_TSI108_IRQ_H */
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