Skip to content

Commit

Permalink
media: i2c: ov5647: Use the same PLL config for full, 1080p, and binn…
Browse files Browse the repository at this point in the history
…ed modes

In order to simplify the driver slightly, use the same PLL
configuration, and hence pixel rate and link frequency (to be
added) for the full, 1080p, and binned modes.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Oct 17, 2024
1 parent d6ec8ee commit 5f57cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/i2c/ov5647.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static struct regval_list ov5647_2592x1944_10bpp[] = {
};

static struct regval_list ov5647_1080p30_10bpp[] = {
{0x3036, 0x62},
{0x3036, 0x69},
{0x3821, 0x00},
{0x3820, 0x00},
{0x3612, 0x5b},
Expand Down Expand Up @@ -289,7 +289,7 @@ static struct regval_list ov5647_1080p30_10bpp[] = {
};

static struct regval_list ov5647_2x2binned_10bpp[] = {
{0x3036, 0x62},
{0x3036, 0x69},
{0x3821, 0x01},
{0x3820, 0x41},
{0x3612, 0x59},
Expand Down Expand Up @@ -397,7 +397,7 @@ static const struct ov5647_mode ov5647_modes[] = {
.width = 1928,
.height = 1080,
},
.pixel_rate = 81666700,
.pixel_rate = 87500000,
.hts = 2416,
.vts = 0x450,
.reg_list = ov5647_1080p30_10bpp,
Expand All @@ -418,7 +418,7 @@ static const struct ov5647_mode ov5647_modes[] = {
.width = 2592,
.height = 1944,
},
.pixel_rate = 81666700,
.pixel_rate = 87500000,
.hts = 1896,
.vts = 0x59b,
.reg_list = ov5647_2x2binned_10bpp,
Expand Down

0 comments on commit 5f57cb1

Please sign in to comment.