Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
16fe57cb
Commit
16fe57cb
authored
Apr 02, 2004
by
Randy Vinson
Committed by
Tom Rini
Apr 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating mcpn765 for 2.6
parent
af077e54
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
394 additions
and
419 deletions
+394
-419
arch/ppc/configs/mcpn765_defconfig
arch/ppc/configs/mcpn765_defconfig
+179
-142
arch/ppc/platforms/Makefile
arch/ppc/platforms/Makefile
+1
-1
arch/ppc/platforms/mcpn765.c
arch/ppc/platforms/mcpn765.c
+214
-169
arch/ppc/platforms/mcpn765_pci.c
arch/ppc/platforms/mcpn765_pci.c
+0
-107
No files found.
arch/ppc/configs/mcpn765_defconfig
View file @
16fe57cb
This diff is collapsed.
Click to expand it.
arch/ppc/platforms/Makefile
View file @
16fe57cb
...
...
@@ -35,7 +35,7 @@ obj-$(CONFIG_EV64260) += ev64260_setup.o
obj-$(CONFIG_GEMINI)
+=
gemini_pci.o gemini_setup.o gemini_prom.o
obj-$(CONFIG_K2)
+=
k2_setup.o k2_pci.o
obj-$(CONFIG_LOPEC)
+=
lopec_setup.o lopec_pci.o
obj-$(CONFIG_MCPN765)
+=
mcpn765
_setup.o mcpn765_pci
.o
obj-$(CONFIG_MCPN765)
+=
mcpn765.o
obj-$(CONFIG_MENF1)
+=
menf1_setup.o menf1_pci.o
obj-$(CONFIG_MVME5100)
+=
mvme5100_setup.o mvme5100_pci.o
obj-$(CONFIG_PAL4)
+=
pal4_setup.o pal4_pci.o
...
...
arch/ppc/platforms/mcpn765
_setup
.c
→
arch/ppc/platforms/mcpn765.c
View file @
16fe57cb
This diff is collapsed.
Click to expand it.
arch/ppc/platforms/mcpn765_pci.c
deleted
100644 → 0
View file @
af077e54
/*
* arch/ppc/platforms/mcpn765_pci.c
*
* PCI setup routines for the Motorola MCG MCPN765 cPCI board.
*
* Author: Mark A. Greer
* mgreer@mvista.com
*
* 2001 (c) MontaVista, Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/pplus.h>
#include "mcpn765.h"
/*
* Motorola MCG MCPN765 interrupt routing.
*/
static
inline
int
mcpn765_map_irq
(
struct
pci_dev
*
dev
,
unsigned
char
idsel
,
unsigned
char
pin
)
{
static
char
pci_irq_table
[][
4
]
=
/*
* PCI IDSEL/INTPIN->INTLINE
* A B C D
*/
{
{
14
,
0
,
0
,
0
},
/* IDSEL 11 - have to manually set */
{
0
,
0
,
0
,
0
},
/* IDSEL 12 - unused */
{
0
,
0
,
0
,
0
},
/* IDSEL 13 - unused */
{
18
,
0
,
0
,
0
},
/* IDSEL 14 - Enet 0 */
{
0
,
0
,
0
,
0
},
/* IDSEL 15 - unused */
{
25
,
26
,
27
,
28
},
/* IDSEL 16 - PMC Slot 1 */
{
28
,
25
,
26
,
27
},
/* IDSEL 17 - PMC Slot 2 */
{
0
,
0
,
0
,
0
},
/* IDSEL 18 - PMC 2B Connector XXXX */
{
29
,
0
,
0
,
0
},
/* IDSEL 19 - Enet 1 */
{
20
,
0
,
0
,
0
},
/* IDSEL 20 - 21554 cPCI bridge */
};
const
long
min_idsel
=
11
,
max_idsel
=
20
,
irqs_per_slot
=
4
;
return
PCI_IRQ_TABLE_LOOKUP
;
}
void
__init
mcpn765_find_bridges
(
void
)
{
struct
pci_controller
*
hose
;
hose
=
pcibios_alloc_controller
();
if
(
!
hose
)
return
;
hose
->
first_busno
=
0
;
hose
->
last_busno
=
0xff
;
hose
->
pci_mem_offset
=
MCPN765_PCI_PHY_MEM_OFFSET
;
pci_init_resource
(
&
hose
->
io_resource
,
MCPN765_PCI_IO_START
,
MCPN765_PCI_IO_END
,
IORESOURCE_IO
,
"PCI host bridge"
);
pci_init_resource
(
&
hose
->
mem_resources
[
0
],
MCPN765_PCI_MEM_START
,
MCPN765_PCI_MEM_END
,
IORESOURCE_MEM
,
"PCI host bridge"
);
hose
->
io_space
.
start
=
MCPN765_PCI_IO_START
;
hose
->
io_space
.
end
=
MCPN765_PCI_IO_END
;
hose
->
mem_space
.
start
=
MCPN765_PCI_MEM_START
;
hose
->
mem_space
.
end
=
MCPN765_PCI_MEM_END
-
PPLUS_MPIC_SIZE
;
if
(
pplus_init
(
hose
,
MCPN765_HAWK_PPC_REG_BASE
,
MCPN765_PROC_PCI_MEM_START
,
MCPN765_PROC_PCI_MEM_END
-
PPLUS_MPIC_SIZE
,
MCPN765_PROC_PCI_IO_START
,
MCPN765_PROC_PCI_IO_END
,
MCPN765_PCI_MEM_END
-
PPLUS_MPIC_SIZE
+
1
)
!=
0
)
{
printk
(
"Could not initialize HAWK bridge
\n
"
);
}
hose
->
last_busno
=
pciauto_bus_scan
(
hose
,
hose
->
first_busno
);
ppc_md
.
pcibios_fixup
=
NULL
;
ppc_md
.
pcibios_fixup_bus
=
NULL
;
ppc_md
.
pci_swizzle
=
common_swizzle
;
ppc_md
.
pci_map_irq
=
mcpn765_map_irq
;
return
;
}
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