media: i2c: Support 19.2MHz input clock in ov8865
authorDaniel Scally <djrscally@gmail.com>
Tue, 23 Nov 2021 00:00:06 +0000 (01:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 09:55:06 +0000 (10:55 +0100)
commit73dcffeb2ff98e8181b43e9d9faad042ddcb7f60
tree09d133133a7b64a99ba676d6bf98c719cef3d2e3
parentba0c8045ea62e4870883570c65d86f1bc06eaa4c
media: i2c: Support 19.2MHz input clock in ov8865

The ov8865 driver as written expects a 24MHz input clock, but the sensor
is sometimes found on x86 platforms with a 19.2MHz input clock supplied.
Add a set of PLL configurations to the driver to support that rate too.
As ACPI doesn't auto-configure the clock rate, check for a clock-frequency
during probe and set that rate if one is found.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8865.c