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
cb88214d
Commit
cb88214d
authored
Feb 08, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] MX31/MX35: Add l2x0 cache support
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
9536ff33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
arch/arm/mach-mx3/mm.c
arch/arm/mach-mx3/mm.c
+26
-1
arch/arm/mm/Kconfig
arch/arm/mm/Kconfig
+2
-1
No files found.
arch/arm/mach-mx3/mm.c
View file @
cb88214d
...
@@ -22,10 +22,14 @@
...
@@ -22,10 +22,14 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/init.h>
#include <mach/hardware.h>
#include <linux/err.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/mach/map.h>
#include <asm/mach/map.h>
#include <asm/hardware/cache-l2x0.h>
#include <mach/common.h>
#include <mach/common.h>
#include <mach/hardware.h>
/*!
/*!
* @file mm.c
* @file mm.c
...
@@ -62,3 +66,24 @@ void __init mxc_map_io(void)
...
@@ -62,3 +66,24 @@ void __init mxc_map_io(void)
{
{
iotable_init
(
mxc_io_desc
,
ARRAY_SIZE
(
mxc_io_desc
));
iotable_init
(
mxc_io_desc
,
ARRAY_SIZE
(
mxc_io_desc
));
}
}
#ifdef CONFIG_CACHE_L2X0
static
int
mxc_init_l2x0
(
void
)
{
void
__iomem
*
l2x0_base
;
l2x0_base
=
ioremap
(
L2CC_BASE_ADDR
,
4096
);
if
(
IS_ERR
(
l2x0_base
))
{
printk
(
KERN_ERR
"remapping L2 cache area failed with %ld
\n
"
,
PTR_ERR
(
l2x0_base
));
return
0
;
}
l2x0_init
(
l2x0_base
,
0x00030024
,
0x00000000
);
return
0
;
}
arch_initcall
(
mxc_init_l2x0
);
#endif
arch/arm/mm/Kconfig
View file @
cb88214d
...
@@ -704,7 +704,8 @@ config CACHE_FEROCEON_L2_WRITETHROUGH
...
@@ -704,7 +704,8 @@ config CACHE_FEROCEON_L2_WRITETHROUGH
config CACHE_L2X0
config CACHE_L2X0
bool "Enable the L2x0 outer cache controller"
bool "Enable the L2x0 outer cache controller"
depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || REALVIEW_EB_A9MP
depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31
default y
default y
select OUTER_CACHE
select OUTER_CACHE
help
help
...
...
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