Skip to content

Commit

Permalink
[ARM] S3C24XX: Add PWM timer MUX defines
Browse files Browse the repository at this point in the history
Add timer defines for the MUX settings for
each of the PWM timers to add to the per-timer
defines already in the file.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Ben Dooks committed Jul 3, 2008
1 parent f348a2a commit b4b68f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/asm-arm/plat-s3c/regs-timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
#define S3C2410_TCFG1_MUX0_TCLK0 (4<<0)
#define S3C2410_TCFG1_MUX0_MASK (15<<0)

#define S3C2410_TCFG1_MUX_DIV2 (0<<0)
#define S3C2410_TCFG1_MUX_DIV4 (1<<0)
#define S3C2410_TCFG1_MUX_DIV8 (2<<0)
#define S3C2410_TCFG1_MUX_DIV16 (3<<0)
#define S3C2410_TCFG1_MUX_TCLK (4<<0)
#define S3C2410_TCFG1_MUX_MASK (15<<0)

#define S3C2410_TCFG1_SHIFT(x) ((x) * 4)

/* for each timer, we have an count buffer, an compare buffer and
* an observation buffer
*/
Expand Down

0 comments on commit b4b68f8

Please sign in to comment.