diff options
author | Devin Heitmueller <devin.heitmueller@gmail.com> | 2008-11-13 01:15:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:33 -0500 |
commit | 4b92253acc723f365ad6b2f32e4118e38133b7b8 (patch) | |
tree | 509874e833c9330a29c85c554b01df1380ca6052 /drivers/media/video/em28xx/em28xx-reg.h | |
parent | 0a6b8a851efae71b0a6f2cbf5d40880553dfabaa (diff) |
V4L/DVB (9628): em28xx: refactor IR support
Refactor the em28xx IR support based on the em2860/em2880 and em2874
datasheets.
Tested on the HVR-950 (em2883), Pinnacle 800e (em2883), Pinnacle 80e (em2874)
using the remote controls that came with those products.
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-reg.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-reg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-reg.h b/drivers/media/video/em28xx/em28xx-reg.h index f67955a1b818..b8e97836370f 100644 --- a/drivers/media/video/em28xx/em28xx-reg.h +++ b/drivers/media/video/em28xx/em28xx-reg.h | |||
@@ -84,9 +84,17 @@ | |||
84 | #define EM28XX_R14_VIDEO_AC97 0x14 | 84 | #define EM28XX_R14_VIDEO_AC97 0x14 |
85 | 85 | ||
86 | /* em2874 registers */ | 86 | /* em2874 registers */ |
87 | #define EM2874_R50_IR_CONFIG 0x50 | ||
88 | #define EM2874_R51_IR 0x51 | ||
87 | #define EM2874_R5F_TS_ENABLE 0x5f | 89 | #define EM2874_R5F_TS_ENABLE 0x5f |
88 | #define EM2874_R80_GPIO 0x80 | 90 | #define EM2874_R80_GPIO 0x80 |
89 | 91 | ||
92 | /* em2874 IR config register (0x50) */ | ||
93 | #define EM2874_IR_NEC 0x00 | ||
94 | #define EM2874_IR_RC5 0x04 | ||
95 | #define EM2874_IR_RC5_MODE_0 0x08 | ||
96 | #define EM2874_IR_RC5_MODE_6A 0x0b | ||
97 | |||
90 | /* em2874 Transport Stream Enable Register (0x5f) */ | 98 | /* em2874 Transport Stream Enable Register (0x5f) */ |
91 | #define EM2874_TS1_CAPTURE_ENABLE (1 << 0) | 99 | #define EM2874_TS1_CAPTURE_ENABLE (1 << 0) |
92 | #define EM2874_TS1_FILTER_ENABLE (1 << 1) | 100 | #define EM2874_TS1_FILTER_ENABLE (1 << 1) |