Commit f4f3c3ec authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] define struct for m68knommu/ColdFire timer registers

This creates a sturcture to mirror the m68knommu/ColdFire CPU timer
hardware.  This is a much cleaner approach to accessing the timer
registers than the previous set of register address defines.
parent 3ba7c42e
......@@ -40,6 +40,18 @@
#define MCFTIMER_TCN 0x06 /* Timer Counter reg (r/w) */
#define MCFTIMER_TER 0x11 /* Timer Event reg (r/w) */
struct mcftimer {
unsigned short tmr; /* Timer Mode reg (r/w) */
unsigned short reserved1;
unsigned short trr; /* Timer Reference (r/w) */
unsigned short reserved2;
unsigned short tcr; /* Timer Capture reg (r/w) */
unsigned short reserved3;
unsigned short tcn; /* Timer Counter reg (r/w) */
unsigned short reserved4;
unsigned char reserved5;
unsigned char ter; /* Timer Event reg (r/w) */
} __attribute__((packed));
/*
* Bit definitions for the Timer Mode Register (TMR).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment