Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
c816dcb1
Commit
c816dcb1
authored
15 years ago
by
Magnus Lilja
Committed by
Scott Wood
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MX31: Add struct definition for clock control module in i.MX31.
Signed-off-by:
Magnus Lilja
<
lilja.magnus@gmail.com
>
parent
50ef25ef
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/asm-arm/arch-mx31/mx31-regs.h
+39
-0
39 additions, 0 deletions
include/asm-arm/arch-mx31/mx31-regs.h
with
39 additions
and
0 deletions
include/asm-arm/arch-mx31/mx31-regs.h
+
39
−
0
View file @
c816dcb1
...
@@ -24,6 +24,45 @@
...
@@ -24,6 +24,45 @@
#ifndef __ASM_ARCH_MX31_REGS_H
#ifndef __ASM_ARCH_MX31_REGS_H
#define __ASM_ARCH_MX31_REGS_H
#define __ASM_ARCH_MX31_REGS_H
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
#include
<asm/types.h>
/* Clock control module registers */
struct
clock_control_regs
{
u32
ccmr
;
u32
pdr0
;
u32
pdr1
;
u32
rcsr
;
u32
mpctl
;
u32
upctl
;
u32
spctl
;
u32
cosr
;
u32
cgr0
;
u32
cgr1
;
u32
cgr2
;
u32
wimr0
;
u32
ldc
;
u32
dcvr0
;
u32
dcvr1
;
u32
dcvr2
;
u32
dcvr3
;
u32
ltr0
;
u32
ltr1
;
u32
ltr2
;
u32
ltr3
;
u32
ltbr0
;
u32
ltbr1
;
u32
pmcr0
;
u32
pmcr1
;
u32
pdr2
;
};
/* Bit definitions for RCSR register in CCM */
#define CCM_RCSR_NF16B (1 << 31)
#define CCM_RCSR_NFMS (1 << 30)
#endif
#define __REG(x) (*((volatile u32 *)(x)))
#define __REG(x) (*((volatile u32 *)(x)))
#define __REG16(x) (*((volatile u16 *)(x)))
#define __REG16(x) (*((volatile u16 *)(x)))
#define __REG8(x) (*((volatile u8 *)(x)))
#define __REG8(x) (*((volatile u8 *)(x)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment