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
8a4fe824
Commit
8a4fe824
authored
Apr 28, 2009
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IXP42x: Identify Intel IXP425 rev. A0 processors.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
2e418400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
arch/arm/mach-ixp4xx/include/mach/cpu.h
arch/arm/mach-ixp4xx/include/mach/cpu.h
+6
-1
No files found.
arch/arm/mach-ixp4xx/include/mach/cpu.h
View file @
8a4fe824
...
...
@@ -26,6 +26,8 @@
#define IXP46X_PROCESSOR_ID_VALUE 0x69054200
/* including IXP455 */
#define IXP46X_PROCESSOR_ID_MASK 0xfffffff0
#define cpu_is_ixp42x_rev_a0() ((read_cpuid_id() & (IXP42X_PROCESSOR_ID_MASK | 0xF)) == \
IXP42X_PROCESSOR_ID_VALUE)
#define cpu_is_ixp42x() ((read_cpuid_id() & IXP42X_PROCESSOR_ID_MASK) == \
IXP42X_PROCESSOR_ID_VALUE)
#define cpu_is_ixp43x() ((read_cpuid_id() & IXP43X_PROCESSOR_ID_MASK) == \
...
...
@@ -35,8 +37,11 @@
static
inline
u32
ixp4xx_read_feature_bits
(
void
)
{
u
nsigned
int
val
=
~*
IXP4XX_EXP_CFG2
;
u
32
val
=
~*
IXP4XX_EXP_CFG2
;
if
(
cpu_is_ixp42x_rev_a0
())
return
IXP42X_FEATURE_MASK
&
~
(
IXP4XX_FEATURE_RCOMP
|
IXP4XX_FEATURE_AES
);
if
(
cpu_is_ixp42x
())
return
val
&
IXP42X_FEATURE_MASK
;
if
(
cpu_is_ixp43x
())
...
...
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