]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: meson-gxbb: Add EE 32K Clock for CEC
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 24 May 2017 09:43:45 +0000 (11:43 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 29 May 2017 12:34:23 +0000 (12:34 +0000)
commit14c735c8e3082714e3d5fa91843692a9c871cebe
tree8ffc3fb447f46d23da4cdc94a1de9c136b8cf90f
parent39c42ca9b2c63348e6179f0955358d7b6a75c186
clk: meson-gxbb: Add EE 32K Clock for CEC

On Amlogic GX SoCs, there is two CEC controllers :
- An Amlogic CEC custom in the AO domain
- The Synopsys HDMI-TX Controller in the EE domain

Each of these controllers needs a 32.768KHz clock, but there is two paths :
- In the EE domain, the "32k_clk" this patchs is adding
- In the AO domain, with a more complex dual divider more precise setup

The AO 32K clock support will be pushed later in the corresponding
gxbb-aoclk driver when the AE CEC driver is ready.

The EE 32k_clk must be pushed earlier since mainline support for CEC in the
Synopsys HDMI-TX controller is nearby.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[Rebased patch on top of last changes]
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/gxbb.c
drivers/clk/meson/gxbb.h