Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252742
b: refs/heads/master
c: a4ffd95
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger committed May 28, 2011
1 parent eae8cd5 commit 725b9a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 427472c967977256db42ffbf16f65f2770278b7f
refs/heads/master: a4ffd956924e265865a4425bd888927059fd46a9
18 changes: 18 additions & 0 deletions trunk/arch/blackfin/include/asm/gptimers.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,22 @@ uint16_t get_enabled_gptimers(void);
uint32_t get_gptimer_status(unsigned int group);
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

0 comments on commit 725b9a9

Please sign in to comment.