cregit-Linux how code gets into the kernel

Release 4.7 drivers/clk/mxs/clk.h

Directory: drivers/clk/mxs
/*
 * Copyright 2012 Freescale Semiconductor, Inc.
 *
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */

#ifndef __MXS_CLK_H

#define __MXS_CLK_H

struct clk;

#include <linux/clk-provider.h>
#include <linux/spinlock.h>


#define SET	0x4

#define CLR	0x8

extern spinlock_t mxs_lock;

int mxs_clk_wait(void __iomem *reg, u8 shift);

struct clk *mxs_clk_pll(const char *name, const char *parent_name,
			void __iomem *base, u8 power, unsigned long rate);

struct clk *mxs_clk_ref(const char *name, const char *parent_name,
			void __iomem *reg, u8 idx);

struct clk *mxs_clk_div(const char *name, const char *parent_name,
			void __iomem *reg, u8 shift, u8 width, u8 busy);

struct clk *mxs_clk_frac(const char *name, const char *parent_name,
			 void __iomem *reg, u8 shift, u8 width, u8 busy);


static inline struct clk *mxs_clk_fixed(const char *name, int rate) { return clk_register_fixed_rate(NULL, name, NULL, 0, rate); }

Contributors

PersonTokensPropCommitsCommitProp
shawn guoshawn guo3096.77%150.00%
stephen boydstephen boyd13.23%150.00%
Total31100.00%2100.00%


static inline struct clk *mxs_clk_gate(const char *name, const char *parent_name, void __iomem *reg, u8 shift) { return clk_register_gate(NULL, name, parent_name, CLK_SET_RATE_PARENT, reg, shift, CLK_GATE_SET_TO_DISABLE, &mxs_lock); }

Contributors

PersonTokensPropCommitsCommitProp
shawn guoshawn guo48100.00%1100.00%
Total48100.00%1100.00%


static inline struct clk *mxs_clk_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char *const *parent_names, int num_parents) { return clk_register_mux(NULL, name, parent_names, num_parents, CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, reg, shift, width, 0, &mxs_lock); }

Contributors

PersonTokensPropCommitsCommitProp
shawn guoshawn guo5995.16%133.33%
james hoganjames hogan23.23%133.33%
uwe kleine-koeniguwe kleine-koenig11.61%133.33%
Total62100.00%3100.00%


static inline struct clk *mxs_clk_fixed_factor(const char *name, const char *parent_name, unsigned int mult, unsigned int div) { return clk_register_fixed_factor(NULL, name, parent_name, CLK_SET_RATE_PARENT, mult, div); }

Contributors

PersonTokensPropCommitsCommitProp
shawn guoshawn guo43100.00%1100.00%
Total43100.00%1100.00%

#endif /* __MXS_CLK_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
shawn guoshawn guo33297.94%120.00%
stephen boydstephen boyd41.18%240.00%
james hoganjames hogan20.59%120.00%
uwe kleine-koeniguwe kleine-koenig10.29%120.00%
Total339100.00%5100.00%
Directory: drivers/clk/mxs
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}