aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/cafe_ccic-regs.h
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2007-05-22 00:37:58 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-22 16:16:27 -0300
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 b2c22a0d664..8e2a87cdc79 100644
--- a/drivers/media/video/cafe_ccic-regs.h
+++ b/drivers/media/video/cafe_ccic-regs.h
@@ -150,6 +150,12 @@
#define REG_GL_IMASK 0x300c /* Interrupt mask register */
#define GIMSK_CCIC_EN 0x00000004 /* CCIC Interrupt enable */
+#define REG_GL_FCR 0x3038 /* GPIO functional control register */
+#define GFCR_GPIO_ON 0x08 /* Camera GPIO enabled */
+#define REG_GL_GPIOR 0x315c /* GPIO register */
+#define GGPIO_OUT 0x80000 /* GPIO output */
+#define GGPIO_VAL 0x00008 /* Output pin value */
+
#define REG_LEN REG_GL_IMASK + 4