OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:03:51 +0000 (16:03 +0200)
commit7f9c65ea59709c5512d05d8c0d5c48be2f9ad478
treede44131a0f7480f0894d30cb3112246a3b14928b
parent99b6d2c3bb7984b9ab5eac50120e0dde53235f2f
media: cx25840: Use subdev host data for PLL override

commit 3ee9bc12342cf546313d300808ff47d7dbb8e7db upstream.

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>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/cx25840/cx25840-core.c