]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Add OMAP_TAG_CAMERA_SENSOR
authorSamuel Ortiz <samuel.ortiz@solidboot.com>
Wed, 14 Jun 2006 11:25:29 +0000 (14:25 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Wed, 14 Jun 2006 11:25:29 +0000 (14:25 +0300)
Add platform config data for camera sensors.  Since it includes pointers,
it should not be passed from the bootloader.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
include/asm-arm/arch-omap/board.h

index 6d6240a4681cafb0cedb4eed9fb7e717d639b640..88b77eef09962c0b193eac47cc78bfe8244109af 100644 (file)
@@ -23,6 +23,7 @@
 #define OMAP_TAG_UART          0x4f07
 #define OMAP_TAG_FBMEM         0x4f08
 #define OMAP_TAG_STI_CONSOLE   0x4f09
+#define OMAP_TAG_CAMERA_SENSOR 0x4f0a
 
 #define OMAP_TAG_BOOT_REASON    0x4f80
 #define OMAP_TAG_FLASH_PART    0x4f81
@@ -62,6 +63,12 @@ struct omap_sti_console_config {
        u8 channel;
 };
 
+struct omap_camera_sensor_config {
+       u16 reset_gpio;
+       int (*power_on)(void * data);
+       int (*power_off)(void * data);
+};
+
 struct omap_usb_config {
        /* Configure drivers according to the connectors on your board:
         *  - "A" connector (rectagular)