Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
a4ffd956
Commit
a4ffd956
authored
13 years ago
by
Mike Frysinger
Browse files
Options
Downloads
Patches
Plain Diff
Blackfin: gptimers: add structure for hardware register layout
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
427472c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/blackfin/include/asm/gptimers.h
+18
-0
18 additions, 0 deletions
arch/blackfin/include/asm/gptimers.h
with
18 additions
and
0 deletions
arch/blackfin/include/asm/gptimers.h
+
18
−
0
View file @
a4ffd956
...
@@ -193,4 +193,22 @@ uint16_t get_enabled_gptimers(void);
...
@@ -193,4 +193,22 @@ uint16_t get_enabled_gptimers(void);
uint32_t
get_gptimer_status
(
unsigned
int
group
);
uint32_t
get_gptimer_status
(
unsigned
int
group
);
void
set_gptimer_status
(
unsigned
int
group
,
uint32_t
value
);
void
set_gptimer_status
(
unsigned
int
group
,
uint32_t
value
);
/*
* All Blackfin system MMRs are padded to 32bits even if the register
* itself is only 16bits. So use a helper macro to streamline this.
*/
#define __BFP(m) u16 m; u16 __pad_##m
/*
* bfin timer registers layout
*/
struct
bfin_gptimer_regs
{
__BFP
(
config
);
u32
counter
;
u32
period
;
u32
width
;
};
#undef __BFP
#endif
#endif
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