mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sh: heartbeat driver update.
Add some flags for the heartbeat driver, and kill off some duplication in the bit positions for the boards that don't have special cases. This also allows for variable access widths and inversion. Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
2eb0303c2c
commit
8786c952c1
8 changed files with 104 additions and 39 deletions
17
include/asm-sh/heartbeat.h
Normal file
17
include/asm-sh/heartbeat.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef __ASM_SH_HEARTBEAT_H
|
||||
#define __ASM_SH_HEARTBEAT_H
|
||||
|
||||
#include <linux/timer.h>
|
||||
|
||||
#define HEARTBEAT_INVERTED (1 << 0)
|
||||
|
||||
struct heartbeat_data {
|
||||
void __iomem *base;
|
||||
unsigned char *bit_pos;
|
||||
unsigned int nr_bits;
|
||||
struct timer_list timer;
|
||||
unsigned int regsize;
|
||||
unsigned long flags;
|
||||
};
|
||||
|
||||
#endif /* __ASM_SH_HEARTBEAT_H */
|
||||
Loading…
Reference in a new issue