aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cafe_ccic-regs.h
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2007-05-21 23:37:58 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-22 15:16:27 -0400
commit7acf90c70c6ee063f7465b2f10e2083bc49f355b (patch)
tree6b00a98e964864b400ec03dc52598cb5aa0c1ea7 /drivers/media/video/cafe_ccic-regs.h
parent82c01d3d5a26f82aea1fb2e9a357dfb6404f44db (diff)
V4L/DVB (5690): Cafe_ccic: Properly power down the sensor
The proper method for powering down the sensor on OLPC systems has changed somewhat; in particular, the sensor must be powered down completely (rather than simply told to power down) or the associated "camera active" LED will stay on. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cafe_ccic-regs.h')
-rw-r--r--drivers/media/video/cafe_ccic-regs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/cafe_ccic-regs.h b/drivers/media/video/cafe_ccic-regs.h
index b2c22a0d6643..8e2a87cdc791 100644
--- a/drivers/media/video/cafe_ccic-regs.h
+++ b/drivers/media/video/cafe_ccic-regs.h
@@ -150,6 +150,12 @@
150#define REG_GL_IMASK 0x300c /* Interrupt mask register */ 150#define REG_GL_IMASK 0x300c /* Interrupt mask register */
151#define GIMSK_CCIC_EN 0x00000004 /* CCIC Interrupt enable */ 151#define GIMSK_CCIC_EN 0x00000004 /* CCIC Interrupt enable */
152 152
153#define REG_GL_FCR 0x3038 /* GPIO functional control register */
154#define GFCR_GPIO_ON 0x08 /* Camera GPIO enabled */
155#define REG_GL_GPIOR 0x315c /* GPIO register */
156#define GGPIO_OUT 0x80000 /* GPIO output */
157#define GGPIO_VAL 0x00008 /* Output pin value */
158
153#define REG_LEN REG_GL_IMASK + 4 159#define REG_LEN REG_GL_IMASK + 4
154 160
155 161