diff options
author | Sooman Jeong <sm5.jeong@samsung.com> | 2018-01-18 22:08:28 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-06-15 21:00:02 +0900 |
commit | 1d53d6d40ce6f2b71d9408b8bda1cc8571937fd2 (patch) | |
tree | e23d4fadfe157fab63523ff41eb1de189a53260e | |
parent | 07b52736aa7b9b542583f87e4562e8ebc15c98a7 (diff) | |
download | linux-artik7-1d53d6d40ce6f2b71d9408b8bda1cc8571937fd2.tar.gz linux-artik7-1d53d6d40ce6f2b71d9408b8bda1cc8571937fd2.tar.bz2 linux-artik7-1d53d6d40ce6f2b71d9408b8bda1cc8571937fd2.zip |
media: ov5640: change the period of pixel clock for VGA resolution
This patch changes the period of pixel clock for VGA to 0x44.
We need to change the value for VGA resolution since the global
init table sets the value as 0x0a which is not applicable to
the VGA resolution.
Note that the value has to be determined depending on the value
of the MIPI clock rate.
Change-Id: Ic12f3d82f4d58b336ee24956d5b471ed83e95891
Signed-off-by: Sooman Jeong <sm5.jeong@samsung.com>
-rw-r--r-- | drivers/media/i2c/ov5640.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 77ec92b78481..25396ac05a3a 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -326,7 +326,8 @@ static const struct reg_value ov5640_setting_30fps_VGA_640_480[] = { {0x3a0d, 0x04, 0, 0}, {0x3a14, 0x03, 0, 0}, {0x3a15, 0xd8, 0, 0}, {0x4001, 0x02, 0, 0}, {0x4004, 0x02, 0, 0}, {0x4713, 0x03, 0, 0}, {0x4407, 0x04, 0, 0}, {0x460b, 0x35, 0, 0}, {0x460c, 0x22, 0, 0}, - {0x3824, 0x02, 0, 0}, {0x5001, 0xa3, 0, 0}, {0x3503, 0x00, 0, 0}, + {0x4837, 0x44, 0, 0}, {0x3824, 0x02, 0, 0}, {0x5001, 0xa3, 0, 0}, + {0x3503, 0x00, 0, 0}, }; static const struct reg_value ov5640_setting_15fps_VGA_640_480[] = { @@ -347,7 +348,7 @@ static const struct reg_value ov5640_setting_15fps_VGA_640_480[] = { {0x3a0d, 0x04, 0, 0}, {0x3a14, 0x03, 0, 0}, {0x3a15, 0xd8, 0, 0}, {0x4001, 0x02, 0, 0}, {0x4004, 0x02, 0, 0}, {0x4713, 0x03, 0, 0}, {0x4407, 0x04, 0, 0}, {0x460b, 0x35, 0, 0}, {0x460c, 0x22, 0, 0}, - {0x3824, 0x02, 0, 0}, {0x5001, 0xa3, 0, 0}, + {0x4837, 0x44, 0, 0}, {0x3824, 0x02, 0, 0}, {0x5001, 0xa3, 0, 0}, }; static const struct reg_value ov5640_setting_30fps_XGA_1024_768[] = { |