diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-22 00:37:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-22 00:37:58 -0300 |
commit | 0d37212bd283bdd723e7285a4319e9ead3f7a94d (patch) | |
tree | bda986fd71fcd52bd5f22e9e6deb920f5b584a4c /linux/drivers/media/video/cafe_ccic-regs.h | |
parent | 5f024c0eabb60488aa0826663ab3eb39c1e3aabe (diff) | |
download | mediapointer-dvb-s2-0d37212bd283bdd723e7285a4319e9ead3f7a94d.tar.gz mediapointer-dvb-s2-0d37212bd283bdd723e7285a4319e9ead3f7a94d.tar.bz2 |
Cafe_ccic: Properly power down the sensor
From: Jonathan Corbet <corbet@lwn.net>
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 'linux/drivers/media/video/cafe_ccic-regs.h')
-rw-r--r-- | linux/drivers/media/video/cafe_ccic-regs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cafe_ccic-regs.h b/linux/drivers/media/video/cafe_ccic-regs.h index b2c22a0d6..8e2a87cdc 100644 --- a/linux/drivers/media/video/cafe_ccic-regs.h +++ b/linux/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 |