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
af077e54
Commit
af077e54
authored
Mar 31, 2004
by
Randy Vinson
Committed by
Tom Rini
Mar 31, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming pplus_common.c to hawk_common.c to match gt64260_common.c, etc, plus minor
cleanups.
parent
96531b37
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
61 deletions
+19
-61
arch/ppc/platforms/pplus.c
arch/ppc/platforms/pplus.c
+2
-2
arch/ppc/platforms/pplus.h
arch/ppc/platforms/pplus.h
+1
-11
arch/ppc/syslib/Makefile
arch/ppc/syslib/Makefile
+5
-5
arch/ppc/syslib/hawk_common.c
arch/ppc/syslib/hawk_common.c
+10
-42
include/asm-ppc/hawk.h
include/asm-ppc/hawk.h
+1
-1
No files found.
arch/ppc/platforms/pplus.c
View file @
af077e54
...
...
@@ -513,7 +513,7 @@ void __init pplus_find_bridges(void)
hose
->
mem_space
.
start
=
PPLUS_PCI_MEM_START
;
hose
->
mem_space
.
end
=
PPLUS_PCI_MEM_END
-
HAWK_MPIC_SIZE
;
if
(
pplus
_init
(
hose
,
PPLUS_HAWK_PPC_REG_BASE
,
PPLUS_PROC_PCI_MEM_START
,
if
(
hawk
_init
(
hose
,
PPLUS_HAWK_PPC_REG_BASE
,
PPLUS_PROC_PCI_MEM_START
,
PPLUS_PROC_PCI_MEM_END
-
HAWK_MPIC_SIZE
,
PPLUS_PROC_PCI_IO_START
,
PPLUS_PROC_PCI_IO_END
,
PPLUS_PROC_PCI_MEM_END
-
HAWK_MPIC_SIZE
+
1
)
...
...
@@ -816,7 +816,7 @@ static unsigned long __init pplus_find_end_of_memory(void)
dump_dbats
();
#endif
total
=
pplus
_get_mem_size
(
PPLUS_HAWK_SMC_BASE
);
total
=
hawk
_get_mem_size
(
PPLUS_HAWK_SMC_BASE
);
return
(
total
);
}
...
...
arch/ppc/platforms/pplus.h
View file @
af077e54
...
...
@@ -64,14 +64,4 @@
#define PPLUS_VGA_MEM_BASE 0xf0000000U
extern
int
pplus_init
(
struct
pci_controller
*
hose
,
unsigned
int
ppc_reg_base
,
unsigned
long
processor_pci_mem_start
,
unsigned
long
processor_pci_mem_end
,
unsigned
long
processor_pci_io_start
,
unsigned
long
processor_pci_io_end
,
unsigned
long
processor_mpic_base
);
extern
unsigned
long
pplus_get_mem_size
(
unsigned
int
smc_base
);
extern
int
pplus_mpic_init
(
unsigned
int
pci_mem_offset
);
#endif
/* __PPC_PPLUS_H */
#endif
/* __PPC_PPLUS_H */
arch/ppc/syslib/Makefile
View file @
af077e54
...
...
@@ -45,23 +45,23 @@ obj-$(CONFIG_K2) += i8259.o indirect_pci.o todc_time.o \
obj-$(CONFIG_LOPEC)
+=
mpc10x_common.o indirect_pci.o pci_auto.o
\
open_pic.o i8259.o todc_time.o
obj-$(CONFIG_MCPN765)
+=
todc_time.o indirect_pci.o pci_auto.o
\
open_pic.o i8259.o
pplus
_common.o
open_pic.o i8259.o
hawk
_common.o
obj-$(CONFIG_MENF1)
+=
todc_time.o i8259.o mpc10x_common.o
\
pci_auto.o indirect_pci.o
obj-$(CONFIG_MVME5100)
+=
open_pic.o todc_time.o indirect_pci.o
\
i8259.o pci_auto.o
pplus
_common.o
i8259.o pci_auto.o
hawk
_common.o
obj-$(CONFIG_OCOTEA)
+=
indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_PAL4)
+=
cpc700_pic.o
obj-$(CONFIG_PCORE)
+=
mpc10x_common.o todc_time.o i8259.o
\
indirect_pci.o pci_auto.o
obj-$(CONFIG_POWERPMC250)
+=
open_pic.o mpc10x_common.o
\
indirect_pci.o pci_auto.o
obj-$(CONFIG_PPLUS)
+=
pplus
_common.o open_pic.o i8259.o
\
obj-$(CONFIG_PPLUS)
+=
hawk
_common.o open_pic.o i8259.o
\
indirect_pci.o todc_time.o pci_auto.o
obj-$(CONFIG_PRPMC750)
+=
open_pic.o indirect_pci.o pci_auto.o
\
pplus
_common.o
hawk
_common.o
obj-$(CONFIG_PRPMC800)
+=
open_pic.o indirect_pci.o pci_auto.o
\
pplus
_common.o harrier.o
hawk
_common.o harrier.o
obj-$(CONFIG_SANDPOINT)
+=
i8259.o open_pic.o mpc10x_common.o
\
pci_auto.o indirect_pci.o todc_time.o
obj-$(CONFIG_SPRUCE)
+=
cpc700_pic.o indirect_pci.o pci_auto.o
\
...
...
arch/ppc/syslib/
pplus
_common.c
→
arch/ppc/syslib/
hawk
_common.c
View file @
af077e54
/*
* arch/ppc/syslib/
pplus
_common.c
* arch/ppc/syslib/
hawk
_common.c
*
* Common Motorola PowerPlus Platform--really Falcon/Raven or HAWK.
*
...
...
@@ -44,7 +44,7 @@
* 'OpenPIC_Addr' will be set correctly by this routine.
*/
int
__init
pplus
_init
(
struct
pci_controller
*
hose
,
hawk
_init
(
struct
pci_controller
*
hose
,
uint
ppc_reg_base
,
ulong
processor_pci_mem_start
,
ulong
processor_pci_mem_end
,
...
...
@@ -59,14 +59,14 @@ pplus_init(struct pci_controller *hose,
*/
if
(((
processor_pci_mem_start
&
0xffff0000
)
!=
processor_pci_mem_start
)
||
((
processor_pci_io_start
&
0xffff0000
)
!=
processor_pci_io_start
))
{
printk
(
"
pplus
_init: %s
\n
"
,
printk
(
"
hawk
_init: %s
\n
"
,
"PPC to PCI mappings must start on 64 KB boundaries"
);
return
-
1
;
}
if
(((
processor_pci_mem_end
&
0x0000ffff
)
!=
0x0000ffff
)
||
((
processor_pci_io_end
&
0x0000ffff
)
!=
0x0000ffff
))
{
printk
(
"
pplus
_init: PPC to PCI mappings %s
\n
"
,
printk
(
"
hawk
_init: PPC to PCI mappings %s
\n
"
,
"must end just before a 64 KB boundaries"
);
return
-
1
;
}
...
...
@@ -75,19 +75,19 @@ pplus_init(struct pci_controller *hose,
(
hose
->
mem_space
.
end
-
hose
->
mem_space
.
start
))
||
((
processor_pci_io_end
-
processor_pci_io_start
)
!=
(
hose
->
io_space
.
end
-
hose
->
io_space
.
start
)))
{
printk
(
"
pplus
_init: %s
\n
"
,
printk
(
"
hawk
_init: %s
\n
"
,
"PPC and PCI memory or I/O space sizes don't match"
);
return
-
1
;
}
if
((
processor_mpic_base
&
0xfffc0000
)
!=
processor_mpic_base
)
{
printk
(
"
pplus
_init: %s
\n
"
,
printk
(
"
hawk
_init: %s
\n
"
,
"MPIC address must start on 256 MB boundary"
);
return
-
1
;
}
if
((
pci_dram_offset
&
0xffff0000
)
!=
pci_dram_offset
)
{
printk
(
"
pplus
_init: %s
\n
"
,
printk
(
"
hawk
_init: %s
\n
"
,
"pci_dram_offset must be multiple of 64 KB"
);
return
-
1
;
}
...
...
@@ -226,7 +226,7 @@ static uint hawk_size_table[] __initdata = {
* into virtual memory--too early to use ioremap().
*/
unsigned
long
__init
pplus
_get_mem_size
(
uint
smc_base
)
hawk
_get_mem_size
(
uint
smc_base
)
{
unsigned
long
total
;
int
i
,
size_table_entries
,
reg_limit
;
...
...
@@ -238,7 +238,7 @@ pplus_get_mem_size(uint smc_base)
vend_dev_id
=
in_be32
((
uint
*
)
smc_base
+
PCI_VENDOR_ID
);
if
(((
vend_dev_id
&
0xffff0000
)
>>
16
)
!=
PCI_VENDOR_ID_MOTOROLA
)
{
printk
(
"
pplus
_get_mem_size: %s (0x%x)
\n
"
,
printk
(
"
hawk
_get_mem_size: %s (0x%x)
\n
"
,
"Not a Motorola Memory Controller"
,
vend_dev_id
);
return
0
;
}
...
...
@@ -259,7 +259,7 @@ pplus_get_mem_size(uint smc_base)
reg_limit
=
HAWK_SMC_REG_COUNT
;
}
else
{
printk
(
"
pplus
_get_mem_size: %s (0x%x)
\n
"
,
printk
(
"
hawk
_get_mem_size: %s (0x%x)
\n
"
,
"Not a Falcon or HAWK"
,
vend_dev_id
);
return
0
;
}
...
...
@@ -285,35 +285,3 @@ pplus_get_mem_size(uint smc_base)
return
total
;
}
int
__init
pplus_mpic_init
(
unsigned
int
pci_mem_offset
)
{
unsigned
short
devid
;
unsigned
int
pci_membase
;
/* Check the first PCI device to see if it is a Raven or Hawk. */
early_read_config_word
(
0
,
0
,
0
,
PCI_DEVICE_ID
,
&
devid
);
switch
(
devid
)
{
case
PCI_DEVICE_ID_MOTOROLA_RAVEN
:
case
PCI_DEVICE_ID_MOTOROLA_HAWK
:
break
;
default:
OpenPIC_Addr
=
NULL
;
return
1
;
}
/* Read the memory base register. */
early_read_config_dword
(
0
,
0
,
0
,
PCI_BASE_ADDRESS_1
,
&
pci_membase
);
if
(
pci_membase
==
0
)
{
OpenPIC_Addr
=
NULL
;
return
1
;
}
/* Map the MPIC registers to virtual memory. */
OpenPIC_Addr
=
ioremap
(
pci_membase
+
pci_mem_offset
,
0x22000
);
return
0
;
}
include/asm-ppc/hawk.h
View file @
af077e54
...
...
@@ -29,4 +29,4 @@ extern int hawk_init(struct pci_controller *hose,
extern
unsigned
long
hawk_get_mem_size
(
unsigned
int
smc_base
);
extern
int
hawk_mpic_init
(
unsigned
int
pci_mem_offset
);
#endif
/* __ASMPPC_PPLUS
_H */
#endif
/* __ASMPPC_HAWK
_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