Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: st: Support for A9 MUX clocks

The patch supports the A9-mux clocks used by ClockGenA9

A9-mux clock : Multiplexer inside ClockGenA9. A9 clock can be driven by
either PLL or External clock (with an optional divide-by-2). This is
implemented as 3-parent clock : PLL, Ext-clk OR Ext-clk/2

Signed-off-by: Pankaj Dev <pankaj.dev@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Gabriel FERNANDEZ and committed by
Mike Turquette
ab35dc13 ec8d27b4

+19
+19
drivers/clk/st/clkgen-mux.c
··· 570 570 .lock = &clkgenf_lock, 571 571 }; 572 572 573 + static struct clkgen_mux_data stih415_a9_mux_data = { 574 + .offset = 0, 575 + .shift = 1, 576 + .width = 2, 577 + }; 578 + static struct clkgen_mux_data stih416_a9_mux_data = { 579 + .offset = 0, 580 + .shift = 0, 581 + .width = 2, 582 + }; 583 + 573 584 static struct of_device_id mux_of_match[] = { 574 585 { 575 586 .compatible = "st,stih416-clkgenc-vcc-hd", ··· 601 590 { 602 591 .compatible = "st,stih416-clkgenf-vcc-sd", 603 592 .data = &clkgen_mux_c_vcc_sd_416, 593 + }, 594 + { 595 + .compatible = "st,stih415-clkgen-a9-mux", 596 + .data = &stih415_a9_mux_data, 597 + }, 598 + { 599 + .compatible = "st,stih416-clkgen-a9-mux", 600 + .data = &stih416_a9_mux_data, 604 601 }, 605 602 {} 606 603 };