]> git.baikalelectronics.ru Git - kernel.git/commit
clk: vc5: Add structure to describe particular chip features
authorAlexey Firago <alexey_firago@mentor.com>
Fri, 7 Apr 2017 09:12:22 +0000 (12:12 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 19 Apr 2017 16:08:29 +0000 (09:08 -0700)
commit2b2b844eb1c4c7704d71163a3dc7a24fa5aedccd
tree48365a4dba1cbe0dc9b003820fb6b255ef2ea848
parente62605d36c59cdfa2d1bb804f8707a6fe8bd2cfd
clk: vc5: Add structure to describe particular chip features

Introduce vc5_chip_info structure to describe features of a particular
VC5 chip (id, number of FODs, number of outputs, flags).
For now flags are only used to indicate if chip has internal XTAL.
vc5_chip_info is set on probe from the matched of_device_id->data.

Also add defines to specify maximum number of FODs and clock outputs
supported by the driver.

With these changes it should be easier to extend driver to support
more VC5 models.

Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-versaclock5.c