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
72463aa0
Commit
72463aa0
authored
Feb 26, 2007
by
Bahadir Balban
Committed by
Catalin Marinas
Jan 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PB926 PCI IO region support.
parent
2b803855
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
23 deletions
+15
-23
arch/arm/mach-versatile/core.c
arch/arm/mach-versatile/core.c
+3
-16
arch/arm/mach-versatile/pci.c
arch/arm/mach-versatile/pci.c
+2
-1
include/asm-arm/arch-versatile/hardware.h
include/asm-arm/arch-versatile/hardware.h
+4
-4
include/asm-arm/arch-versatile/io.h
include/asm-arm/arch-versatile/io.h
+5
-1
include/asm-arm/arch-versatile/platform.h
include/asm-arm/arch-versatile/platform.h
+1
-1
No files found.
arch/arm/mach-versatile/core.c
View file @
72463aa0
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
*
*
* Setup a VA for the Versatile Vectored Interrupt Controller.
* Setup a VA for the Versatile Vectored Interrupt Controller.
*/
*/
#define __io_address(n)
__io(
IO_ADDRESS(n))
#define __io_address(n)
((void __iomem *)
IO_ADDRESS(n))
#define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)
#define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)
#define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE)
#define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE)
...
@@ -200,26 +200,13 @@ static struct map_desc versatile_io_desc[] __initdata = {
...
@@ -200,26 +200,13 @@ static struct map_desc versatile_io_desc[] __initdata = {
.
pfn
=
__phys_to_pfn
(
VERSATILE_PCI_CFG_BASE
),
.
pfn
=
__phys_to_pfn
(
VERSATILE_PCI_CFG_BASE
),
.
length
=
VERSATILE_PCI_CFG_BASE_SIZE
,
.
length
=
VERSATILE_PCI_CFG_BASE_SIZE
,
.
type
=
MT_DEVICE
.
type
=
MT_DEVICE
},
#if 0
{
.virtual = VERSATILE_PCI_VIRT_MEM_BASE0,
.pfn = __phys_to_pfn(VERSATILE_PCI_MEM_BASE0),
.length = SZ_16M,
.type = MT_DEVICE
},
{
},
{
.virtual = VERSATILE_PCI_VIRT_MEM_BASE1,
.
virtual
=
(
unsigned
long
)
VERSATILE_PCI_IO_VIRT_BASE
,
.pfn = __phys_to_pfn(VERSATILE_PCI_MEM_BASE1),
.
pfn
=
__phys_to_pfn
(
VERSATILE_PCI_MEM_BASE0
),
.length = SZ_16M,
.type = MT_DEVICE
}, {
.virtual = VERSATILE_PCI_VIRT_MEM_BASE2,
.pfn = __phys_to_pfn(VERSATILE_PCI_MEM_BASE2),
.
length
=
SZ_16M
,
.
length
=
SZ_16M
,
.
type
=
MT_DEVICE
.
type
=
MT_DEVICE
},
},
#endif
#endif
#endif
};
};
void
__init
versatile_map_io
(
void
)
void
__init
versatile_map_io
(
void
)
...
...
arch/arm/mach-versatile/pci.c
View file @
72463aa0
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
*
*
* Mem 50000000 - 5FFFFFFF LB_BASE0/LB_MAP0, non prefetch
* Mem 50000000 - 5FFFFFFF LB_BASE0/LB_MAP0, non prefetch
* Mem 60000000 - 6FFFFFFF LB_BASE1/LB_MAP1, prefetch
* Mem 60000000 - 6FFFFFFF LB_BASE1/LB_MAP1, prefetch
* IO 4
4
000000 - 4FFFFFFF LB_BASE2/LB_MAP2, IO
* IO 4
3
000000 - 4FFFFFFF LB_BASE2/LB_MAP2, IO
* Cfg 42000000 - 42FFFFFF PCI config
* Cfg 42000000 - 42FFFFFF PCI config
*
*
*/
*/
...
@@ -251,6 +251,7 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys)
...
@@ -251,6 +251,7 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys)
if
(
nr
==
0
)
{
if
(
nr
==
0
)
{
sys
->
mem_offset
=
0
;
sys
->
mem_offset
=
0
;
sys
->
io_offset
=
VERSATILE_PCI_MEM_BASE0
;
ret
=
pci_versatile_setup_resources
(
sys
->
resource
);
ret
=
pci_versatile_setup_resources
(
sys
->
resource
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
printk
(
"pci_versatile_setup: resources... oops?
\n
"
);
printk
(
"pci_versatile_setup: resources... oops?
\n
"
);
...
...
include/asm-arm/arch-versatile/hardware.h
View file @
72463aa0
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
/*
/*
* PCI space virtual addresses
* PCI space virtual addresses
*/
*/
#define VERSATILE_PCI_VIRT_BASE (void __iomem *)0x
e8000000ul
#define VERSATILE_PCI_VIRT_BASE (void __iomem *)0x
E8000000
#define VERSATILE_PCI_CFG_VIRT_BASE (void __iomem *)0x
e9000000ul
#define VERSATILE_PCI_CFG_VIRT_BASE (void __iomem *)0x
E9000000
#define VERSATILE_PCI_IO_VIRT_BASE (void __iomem *)0xEA000000
#if 0
#if 0
#define VERSATILE_PCI_VIRT_MEM_BASE0 0xf4000000
#define VERSATILE_PCI_VIRT_MEM_BASE0 0xf4000000
#define VERSATILE_PCI_VIRT_MEM_BASE1 0xf5000000
#define VERSATILE_PCI_VIRT_MEM_BASE1 0xf5000000
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
#endif
#endif
/* CIK guesswork */
/* CIK guesswork */
#define PCIBIOS_MIN_IO 0x4
4
000000
#define PCIBIOS_MIN_IO 0x4
3
000000
#define PCIBIOS_MIN_MEM 0x50000000
#define PCIBIOS_MIN_MEM 0x50000000
#define pcibios_assign_all_busses() 1
#define pcibios_assign_all_busses() 1
...
...
include/asm-arm/arch-versatile/io.h
View file @
72463aa0
...
@@ -20,11 +20,15 @@
...
@@ -20,11 +20,15 @@
#ifndef __ASM_ARM_ARCH_IO_H
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H
#include <asm/arch/hardware.h>
#define IO_SPACE_LIMIT 0xffffffff
#define IO_SPACE_LIMIT 0xffffffff
#define __pci_io (VERSATILE_PCI_IO_VIRT_BASE - VERSATILE_PCI_MEM_BASE0)
static
inline
void
__iomem
*
__io
(
unsigned
long
addr
)
static
inline
void
__iomem
*
__io
(
unsigned
long
addr
)
{
{
return
(
void
__iomem
*
)
addr
;
return
(
void
__iomem
*
)
(
addr
+
__pci_io
)
;
}
}
#define __io(a) __io(a)
#define __io(a) __io(a)
#define __mem_pci(a) (a)
#define __mem_pci(a) (a)
...
...
include/asm-arm/arch-versatile/platform.h
View file @
72463aa0
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
/* PCI space */
/* PCI space */
#define VERSATILE_PCI_BASE 0x41000000
/* PCI Interface */
#define VERSATILE_PCI_BASE 0x41000000
/* PCI Interface */
#define VERSATILE_PCI_CFG_BASE 0x42000000
#define VERSATILE_PCI_CFG_BASE 0x42000000
#define VERSATILE_PCI_MEM_BASE0 0x4
4
000000
#define VERSATILE_PCI_MEM_BASE0 0x4
3
000000
#define VERSATILE_PCI_MEM_BASE1 0x50000000
#define VERSATILE_PCI_MEM_BASE1 0x50000000
#define VERSATILE_PCI_MEM_BASE2 0x60000000
#define VERSATILE_PCI_MEM_BASE2 0x60000000
/* Sizes of above maps */
/* Sizes of above maps */
...
...
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