diff options
Diffstat (limited to 'drivers/media/video/tegra/ov5640_tables.h')
-rw-r--r-- | drivers/media/video/tegra/ov5640_tables.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/drivers/media/video/tegra/ov5640_tables.h b/drivers/media/video/tegra/ov5640_tables.h index 94cf1da31ec2..4065bcd936b9 100644 --- a/drivers/media/video/tegra/ov5640_tables.h +++ b/drivers/media/video/tegra/ov5640_tables.h @@ -4579,4 +4579,61 @@ static struct ov5640_reg tbl_release_focus[] = { {OV5640_TABLE_END, 0x0000} }; +static struct ov5640_reg wb_auto[] = { + {0x3406, 0x00}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_incandescent[] = { + {0x3406, 0x01}, + {0x3400, 0x04}, + {0x3401, 0x10}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x08}, + {0x3405, 0x40}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_daylight[] = { + {0x3406, 0x01}, + {0x3400, 0x06}, + {0x3401, 0x1c}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x04}, + {0x3405, 0xf3}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_fluorescent[] = { + {0x3406, 0x01}, + {0x3400, 0x05}, + {0x3401, 0x48}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x07}, + {0x3405, 0xcf}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_cloudy[] = { + {0x3406, 0x01}, + {0x3400, 0x06}, + {0x3401, 0x48}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x04}, + {0x3405, 0xd3}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg *wb_table[] = { + [OV5640_WB_AUTO] = wb_auto, + [OV5640_WB_INCANDESCENT] = wb_incandescent, + [OV5640_WB_DAYLIGHT] = wb_daylight, + [OV5640_WB_FLUORESCENT] = wb_fluorescent, + [OV5640_WB_CLOUDY] = wb_cloudy, +}; + #endif |