]> git.baikalelectronics.ru Git - kernel.git/commit
media: cx25840: Use subdev host data for PLL override
authorBrad Love <brad@nextdimension.cc>
Tue, 6 Mar 2018 19:15:34 +0000 (14:15 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 09:04:40 +0000 (04:04 -0500)
commit6a1fa2b49ff8e15d578cc335f3b193de56abadfe
tree2f8e3bc6bf410ee23608c731eae366cb58bf0af0
parentfce7010f68c62d95d40024ab5447eade0f923c29
media: cx25840: Use subdev host data for PLL override

The cx25840 driver currently configures 885, 887, and 888 using
default divisors for each chip. This check to see if the cx23885
driver has passed the cx25840 a non-default clock rate for a
specific chip. If a cx23885 board has left clk_freq at 0, the
clock default values will be used to configure the PLLs.

This patch only has effect on 888 boards who set clk_freq to 25M.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/cx25840/cx25840-core.c