clkgen-mux.c (44cc6c08da0b6c8321c6740bbb6a0c6feb45b2c2) | clkgen-mux.c (46a57afdd70c17cf15b2077c5ea611913f80f85f) |
---|---|
1/* 2 * clkgen-mux.c: ST GEN-MUX Clock driver 3 * 4 * Copyright (C) 2014 STMicroelectronics (R&D) Limited 5 * 6 * Authors: Stephen Gallimore <stephen.gallimore@st.com> 7 * Pankaj Dev <pankaj.dev@st.com> 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 */ 15 16#include <linux/slab.h> 17#include <linux/of_address.h> 18#include <linux/clk.h> 19#include <linux/clk-provider.h> | 1/* 2 * clkgen-mux.c: ST GEN-MUX Clock driver 3 * 4 * Copyright (C) 2014 STMicroelectronics (R&D) Limited 5 * 6 * Authors: Stephen Gallimore <stephen.gallimore@st.com> 7 * Pankaj Dev <pankaj.dev@st.com> 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 */ 15 16#include <linux/slab.h> 17#include <linux/of_address.h> 18#include <linux/clk.h> 19#include <linux/clk-provider.h> |
20#include "clkgen.h" |
|
20 21static DEFINE_SPINLOCK(clkgena_divmux_lock); 22static DEFINE_SPINLOCK(clkgenf_lock); 23 24static const char ** __init clkgen_mux_get_parents(struct device_node *np, 25 int *num_parents) 26{ 27 const char **parents; --- 543 unchanged lines hidden (view full) --- 571 .width = 1, 572 .lock = &clkgenf_lock, 573}; 574 575static struct clkgen_mux_data stih415_a9_mux_data = { 576 .offset = 0, 577 .shift = 1, 578 .width = 2, | 21 22static DEFINE_SPINLOCK(clkgena_divmux_lock); 23static DEFINE_SPINLOCK(clkgenf_lock); 24 25static const char ** __init clkgen_mux_get_parents(struct device_node *np, 26 int *num_parents) 27{ 28 const char **parents; --- 543 unchanged lines hidden (view full) --- 572 .width = 1, 573 .lock = &clkgenf_lock, 574}; 575 576static struct clkgen_mux_data stih415_a9_mux_data = { 577 .offset = 0, 578 .shift = 1, 579 .width = 2, |
580 .lock = &clkgen_a9_lock, |
|
579}; 580static struct clkgen_mux_data stih416_a9_mux_data = { 581 .offset = 0, 582 .shift = 0, 583 .width = 2, 584}; 585static struct clkgen_mux_data stih407_a9_mux_data = { 586 .offset = 0x1a4, 587 .shift = 0, 588 .width = 2, | 581}; 582static struct clkgen_mux_data stih416_a9_mux_data = { 583 .offset = 0, 584 .shift = 0, 585 .width = 2, 586}; 587static struct clkgen_mux_data stih407_a9_mux_data = { 588 .offset = 0x1a4, 589 .shift = 0, 590 .width = 2, |
591 .lock = &clkgen_a9_lock, |
|
589}; 590 591static const struct of_device_id mux_of_match[] = { 592 { 593 .compatible = "st,stih416-clkgenc-vcc-hd", 594 .data = &clkgen_mux_c_vcc_hd_416, 595 }, 596 { --- 241 unchanged lines hidden --- | 592}; 593 594static const struct of_device_id mux_of_match[] = { 595 { 596 .compatible = "st,stih416-clkgenc-vcc-hd", 597 .data = &clkgen_mux_c_vcc_hd_416, 598 }, 599 { --- 241 unchanged lines hidden --- |