mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
[PATCH] m68knommu: read/write register access for PIT timer
Modify the m68knommu/ColdFire PIT timer code to use register offsets with raw_read/raw_write access, instead of a mapped struct. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2082b477dc
commit
b671b653da
2 changed files with 23 additions and 22 deletions
|
|
@ -28,11 +28,9 @@
|
|||
/*
|
||||
* Define the PIT timer register set addresses.
|
||||
*/
|
||||
struct mcfpit {
|
||||
unsigned short pcsr; /* PIT control and status */
|
||||
unsigned short pmr; /* PIT modulus register */
|
||||
unsigned short pcntr; /* PIT count register */
|
||||
} __attribute__((packed));
|
||||
#define MCFPIT_PCSR 0x0 /* PIT control register */
|
||||
#define MCFPIT_PMR 0x2 /* PIT modulus register */
|
||||
#define MCFPIT_PCNTR 0x4 /* PIT count register */
|
||||
|
||||
/*
|
||||
* Bit definitions for the PIT Control and Status register.
|
||||
|
|
|
|||
Loading…
Reference in a new issue