OSDN Git Service

clk: stm32mp1: add Peripheral & Kernel Clocks
authorGabriel Fernandez <gabriel.fernandez@st.com>
Thu, 8 Mar 2018 16:54:02 +0000 (17:54 +0100)
committerMichael Turquette <mturquette@baylibre.com>
Sun, 11 Mar 2018 22:40:33 +0000 (15:40 -0700)
commit1f80590b6bdabffc90b9ed6a2d05dd9d24122879
tree1c62332733e520721dd2d8b8457bcf33c1a9f1ea
parent799b6a125ef0187579611bc153558bf01766d103
clk: stm32mp1: add Peripheral & Kernel Clocks

Each peripheral requires a bus interface clock.
Some peripherals need also a dedicated clock for their communication
interface, this clock is generally asynchronous with respect to the bus
interface clock (peripheral clock), and is named kernel clock.

For each IP, Peripheral clock and Kernel are generally gating with same
gate. Also, Kernel clocks can share a same multiplexer.
This patch introduces a mechanism to manage a gate with several
clocks and to manage a shared multiplexer (mgate and mmux).

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/clk-stm32mp1.c