ov8830: adjust PLL settings for new full resolution mode
authorTuukka Toivonen <tuukka.toivonen@intel.com>
Fri, 27 Jan 2012 17:45:33 +0000 (19:45 +0200)
committerbuildbot <buildbot@intel.com>
Wed, 1 Feb 2012 14:04:50 +0000 (06:04 -0800)
BZ: 21601

The reference mode design from Omnivision uses 24 MHz
external clock, Clovertrail clock is 19.2 MHz. Adjust
the sensor PLL registers for this difference.

Change-Id: I2f7e81889f579cf6fc5dc0445706bbb7cd0209f7
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/33229
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/ov8830.c

index 5dd3878..70c79de 100644 (file)
@@ -346,17 +346,18 @@ static const struct ov8830_reg ov8830_mode2[] = {
        { OV8830_8BIT, { 0x3081 }, 0x02 },
        { OV8830_8BIT, { 0x3083 }, 0x01 },
        { OV8830_8BIT, { 0x3090 }, 0x03 },
-       { OV8830_8BIT, { 0x3091 }, 0x11 },
-       { OV8830_8BIT, { 0x3092 }, 0x00 },
+       { OV8830_8BIT, { 0x3091 }, 42 },
+       { OV8830_8BIT, { 0x3092 }, 0x01 },
        { OV8830_8BIT, { 0x3093 }, 0x00 },
        { OV8830_8BIT, { 0x3098 }, 0x03 },
-       { OV8830_8BIT, { 0x3099 }, 0x1e },
+       { OV8830_8BIT, { 0x3099 }, 19 },
        { OV8830_8BIT, { 0x309a }, 0x00 },
        { OV8830_8BIT, { 0x309b }, 0x00 },
+       { OV8830_8BIT, { 0x309c }, 0x01 },
        { OV8830_8BIT, { 0x30a2 }, 0x01 },
        { OV8830_8BIT, { 0x30b0 }, 0x05 },
        { OV8830_8BIT, { 0x30b2 }, 0x00 },
-       { OV8830_8BIT, { 0x30b3 }, 0x55 },
+       { OV8830_8BIT, { 0x30b3 }, 106 },
        { OV8830_8BIT, { 0x30b4 }, 0x03 },
        { OV8830_8BIT, { 0x30b5 }, 0x04 },
        { OV8830_8BIT, { 0x30b6 }, 0x01 },