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
2d0c9e73
Commit
2d0c9e73
authored
Aug 31, 2008
by
Lennert Buytenhek
Committed by
Nicolas Pitre
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Kirkwood: allow configuring mbus window for on-chip sram
Signed-off-by:
Lennert Buytenhek
<
buytenh@marvell.com
>
parent
3a64ebc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
arch/arm/mach-kirkwood/addr-map.c
arch/arm/mach-kirkwood/addr-map.c
+8
-0
arch/arm/mach-kirkwood/common.h
arch/arm/mach-kirkwood/common.h
+1
-4
No files found.
arch/arm/mach-kirkwood/addr-map.c
View file @
2d0c9e73
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
struct
mbus_dram_target_info
kirkwood_mbus_dram_info
;
struct
mbus_dram_target_info
kirkwood_mbus_dram_info
;
static
int
__initdata
win_alloc_count
;
static
int
__init
cpu_win_can_remap
(
int
win
)
static
int
__init
cpu_win_can_remap
(
int
win
)
{
{
...
@@ -111,6 +112,8 @@ void __init kirkwood_setup_cpu_mbus(void)
...
@@ -111,6 +112,8 @@ void __init kirkwood_setup_cpu_mbus(void)
setup_cpu_win
(
2
,
KIRKWOOD_NAND_MEM_PHYS_BASE
,
KIRKWOOD_NAND_MEM_SIZE
,
setup_cpu_win
(
2
,
KIRKWOOD_NAND_MEM_PHYS_BASE
,
KIRKWOOD_NAND_MEM_SIZE
,
TARGET_DEV_BUS
,
ATTR_DEV_NAND
,
-
1
);
TARGET_DEV_BUS
,
ATTR_DEV_NAND
,
-
1
);
win_alloc_count
=
3
;
/*
/*
* Setup MBUS dram target info.
* Setup MBUS dram target info.
*/
*/
...
@@ -137,3 +140,8 @@ void __init kirkwood_setup_cpu_mbus(void)
...
@@ -137,3 +140,8 @@ void __init kirkwood_setup_cpu_mbus(void)
}
}
kirkwood_mbus_dram_info
.
num_cs
=
cs
;
kirkwood_mbus_dram_info
.
num_cs
=
cs
;
}
}
void
__init
kirkwood_setup_sram_win
(
u32
base
,
u32
size
)
{
setup_cpu_win
(
win_alloc_count
++
,
base
,
size
,
0x03
,
0x00
,
-
1
);
}
arch/arm/mach-kirkwood/common.h
View file @
2d0c9e73
...
@@ -23,10 +23,7 @@ void kirkwood_init_irq(void);
...
@@ -23,10 +23,7 @@ void kirkwood_init_irq(void);
extern
struct
mbus_dram_target_info
kirkwood_mbus_dram_info
;
extern
struct
mbus_dram_target_info
kirkwood_mbus_dram_info
;
void
kirkwood_setup_cpu_mbus
(
void
);
void
kirkwood_setup_cpu_mbus
(
void
);
void
kirkwood_setup_pcie_io_win
(
int
window
,
u32
base
,
u32
size
,
void
kirkwood_setup_sram_win
(
u32
base
,
u32
size
);
int
maj
,
int
min
);
void
kirkwood_setup_pcie_mem_win
(
int
window
,
u32
base
,
u32
size
,
int
maj
,
int
min
);
void
kirkwood_pcie_id
(
u32
*
dev
,
u32
*
rev
);
void
kirkwood_pcie_id
(
u32
*
dev
,
u32
*
rev
);
...
...
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