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
068f5914
Commit
068f5914
authored
Jul 02, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Record the major cut revision for probed SH-4A parts.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
09b5a10c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
arch/sh/kernel/cpu/sh4/probe.c
arch/sh/kernel/cpu/sh4/probe.c
+5
-4
No files found.
arch/sh/kernel/cpu/sh4/probe.c
View file @
068f5914
...
@@ -50,23 +50,24 @@ int __init detect_cpu_and_cache_system(void)
...
@@ -50,23 +50,24 @@ int __init detect_cpu_and_cache_system(void)
boot_cpu_data
.
dcache
.
ways
=
1
;
boot_cpu_data
.
dcache
.
ways
=
1
;
boot_cpu_data
.
dcache
.
linesz
=
L1_CACHE_BYTES
;
boot_cpu_data
.
dcache
.
linesz
=
L1_CACHE_BYTES
;
/* We don't know the chip cut */
boot_cpu_data
.
cut_major
=
boot_cpu_data
.
cut_minor
=
-
1
;
/*
/*
* Setup some generic flags we can probe on SH-4A parts
* Setup some generic flags we can probe on SH-4A parts
*/
*/
if
(((
pvr
>>
24
)
&
0xff
)
==
0x10
)
{
if
(((
pvr
>>
16
)
&
0xff
)
==
0x10
)
{
if
((
cvr
&
0x10000000
)
==
0
)
if
((
cvr
&
0x10000000
)
==
0
)
boot_cpu_data
.
flags
|=
CPU_HAS_DSP
;
boot_cpu_data
.
flags
|=
CPU_HAS_DSP
;
boot_cpu_data
.
flags
|=
CPU_HAS_LLSC
;
boot_cpu_data
.
flags
|=
CPU_HAS_LLSC
;
boot_cpu_data
.
cut_major
=
pvr
&
0x7f
;
}
}
/* FPU detection works for everyone */
/* FPU detection works for everyone */
if
((
cvr
&
0x20000000
)
==
1
)
if
((
cvr
&
0x20000000
)
==
1
)
boot_cpu_data
.
flags
|=
CPU_HAS_FPU
;
boot_cpu_data
.
flags
|=
CPU_HAS_FPU
;
/* We don't know the chip cut */
boot_cpu_data
.
cut_major
=
boot_cpu_data
.
cut_minor
=
-
1
;
/* Mask off the upper chip ID */
/* Mask off the upper chip ID */
pvr
&=
0xffff
;
pvr
&=
0xffff
;
...
...
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