mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
staging: comedi: s526: define the timer control register and bits
Define this register and it's bits so that we can possibly support it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1d0d1c00da
commit
4e04fd3259
@@ -46,7 +46,12 @@
|
||||
#define S526_NUM_PORTS 27
|
||||
|
||||
/* registers */
|
||||
#define REG_TCR 0x00
|
||||
#define S526_TIMER_REG 0x00
|
||||
#define S526_TIMER_LOAD(x) (((x) & 0xff) << 8)
|
||||
#define S526_TIMER_MODE ((x) << 1)
|
||||
#define S526_TIMER_MANUAL S526_TIMER_MODE(0)
|
||||
#define S526_TIMER_AUTO S526_TIMER_MODE(1)
|
||||
#define S526_TIMER_RESTART BIT(0)
|
||||
#define REG_WDC 0x02
|
||||
#define REG_DAC 0x04
|
||||
#define REG_ADC 0x06
|
||||
|
||||
Reference in New Issue
Block a user