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
fbeda677
Commit
fbeda677
authored
Apr 21, 2009
by
Michal Simek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microblaze: Do not use PVR configuration for broken MB version
Signed-off-by:
Michal Simek
<
monstr@monstr.eu
>
parent
79533fd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c
arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c
+7
-2
arch/microblaze/kernel/cpu/cpuinfo.c
arch/microblaze/kernel/cpu/cpuinfo.c
+1
-1
No files found.
arch/microblaze/kernel/cpu/cpuinfo-pvr-full.c
View file @
fbeda677
...
...
@@ -30,6 +30,13 @@ void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu)
int
temp
;
/* for saving temp value */
get_pvr
(
&
pvr
);
CI
(
ver_code
,
VERSION
);
if
(
!
ci
->
ver_code
)
{
printk
(
KERN_ERR
"ERROR: MB has broken PVR regs "
"-> use DTS setting
\n
"
);
return
;
}
temp
=
PVR_USE_BARREL
(
pvr
)
|
PVR_USE_MSR_INSTR
(
pvr
)
|
\
PVR_USE_PCMP_INSTR
(
pvr
)
|
PVR_USE_DIV
(
pvr
);
if
(
ci
->
use_instr
!=
temp
)
...
...
@@ -60,8 +67,6 @@ void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu)
CI
(
mmu
,
USE_MMU
);
CI
(
ver_code
,
VERSION
);
CI
(
use_icache
,
USE_ICACHE
);
CI
(
icache_tagbits
,
ICACHE_ADDR_TAG_BITS
);
CI
(
icache_write
,
ICACHE_ALLOW_WR
);
...
...
arch/microblaze/kernel/cpu/cpuinfo.c
View file @
fbeda677
...
...
@@ -71,7 +71,7 @@ void __init setup_cpuinfo(void)
__func__
);
set_cpuinfo_static
(
&
cpuinfo
,
cpu
);
break
;
/* FIXME I found weird behavior with MB 7.00.a/b
/* FIXME I found weird behavior with MB 7.00.a/b
7.10.a
* please do not use FULL PVR with MMU */
case
1
:
printk
(
KERN_INFO
"%s: Using full CPU PVR support
\n
"
,
...
...
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