Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
21e67e79
Commit
21e67e79
authored
14 years ago
by
Graeme Russ
Committed by
Wolfgang Denk
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sc520: Board Specific PCI Init
Signed-off-by:
Graeme Russ
<
graeme.russ@gmail.com
>
parent
0278216b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/i386/cpu/sc520/sc520_pci.c
+2
-37
2 additions, 37 deletions
arch/i386/cpu/sc520/sc520_pci.c
arch/i386/include/asm/ic/pci.h
+1
-0
1 addition, 0 deletions
arch/i386/include/asm/ic/pci.h
board/eNET/eNET_pci.c
+33
-0
33 additions, 0 deletions
board/eNET/eNET_pci.c
with
36 additions
and
37 deletions
arch/i386/cpu/sc520/sc520_pci.c
+
2
−
37
View file @
21e67e79
...
...
@@ -27,6 +27,7 @@
#include
<pci.h>
#include
<asm/io.h>
#include
<asm/pci.h>
#include
<asm/ic/pci.h>
#include
<asm/ic/sc520.h>
static
struct
{
...
...
@@ -124,43 +125,7 @@ void pci_sc520_init(struct pci_controller *hose)
{
hose
->
first_busno
=
0
;
hose
->
last_busno
=
0xff
;
/* System memory space */
pci_set_region
(
hose
->
regions
+
0
,
SC520_PCI_MEMORY_BUS
,
SC520_PCI_MEMORY_PHYS
,
SC520_PCI_MEMORY_SIZE
,
PCI_REGION_MEM
|
PCI_REGION_SYS_MEMORY
);
/* PCI memory space */
pci_set_region
(
hose
->
regions
+
1
,
SC520_PCI_MEM_BUS
,
SC520_PCI_MEM_PHYS
,
SC520_PCI_MEM_SIZE
,
PCI_REGION_MEM
);
/* ISA/PCI memory space */
pci_set_region
(
hose
->
regions
+
2
,
SC520_ISA_MEM_BUS
,
SC520_ISA_MEM_PHYS
,
SC520_ISA_MEM_SIZE
,
PCI_REGION_MEM
);
/* PCI I/O space */
pci_set_region
(
hose
->
regions
+
3
,
SC520_PCI_IO_BUS
,
SC520_PCI_IO_PHYS
,
SC520_PCI_IO_SIZE
,
PCI_REGION_IO
);
/* ISA/PCI I/O space */
pci_set_region
(
hose
->
regions
+
4
,
SC520_ISA_IO_BUS
,
SC520_ISA_IO_PHYS
,
SC520_ISA_IO_SIZE
,
PCI_REGION_IO
);
hose
->
region_count
=
5
;
hose
->
region_count
=
pci_set_regions
(
hose
);
pci_setup_type1
(
hose
,
SC520_REG_ADDR
,
...
...
This diff is collapsed.
Click to expand it.
arch/i386/include/asm/ic/pci.h
+
1
−
0
View file @
21e67e79
...
...
@@ -73,6 +73,7 @@
extern
int
sc520_pci_ints
[];
void
pci_sc520_init
(
struct
pci_controller
*
hose
);
int
pci_set_regions
(
struct
pci_controller
*
hose
);
int
pci_sc520_set_irq
(
int
pci_pin
,
int
irq
);
#endif
This diff is collapsed.
Click to expand it.
board/eNET/eNET_pci.c
+
33
−
0
View file @
21e67e79
...
...
@@ -93,3 +93,36 @@ void pci_init_board(void)
{
pci_sc520_init
(
&
enet_hose
);
}
int
pci_set_regions
(
struct
pci_controller
*
hose
)
{
/* System memory space */
pci_set_region
(
hose
->
regions
+
0
,
SC520_PCI_MEMORY_BUS
,
SC520_PCI_MEMORY_PHYS
,
SC520_PCI_MEMORY_SIZE
,
PCI_REGION_MEM
|
PCI_REGION_SYS_MEMORY
);
/* ISA/PCI memory space */
pci_set_region
(
hose
->
regions
+
1
,
SC520_ISA_MEM_BUS
,
SC520_ISA_MEM_PHYS
,
SC520_ISA_MEM_SIZE
,
PCI_REGION_MEM
);
/* PCI I/O space */
pci_set_region
(
hose
->
regions
+
2
,
SC520_PCI_IO_BUS
,
SC520_PCI_IO_PHYS
,
SC520_PCI_IO_SIZE
,
PCI_REGION_IO
);
/* ISA/PCI I/O space */
pci_set_region
(
hose
->
regions
+
3
,
SC520_ISA_IO_BUS
,
SC520_ISA_IO_PHYS
,
SC520_ISA_IO_SIZE
,
PCI_REGION_IO
);
return
4
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment