Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
clk-gate.c File Reference
#include <linux/clk-provider.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/string.h>

Go to the source code of this file.

Macros

#define to_clk_gate(_hw)   container_of(_hw, struct clk_gate, hw)
 

Functions

 EXPORT_SYMBOL_GPL (clk_gate_ops)
 
: name of this clock

clk_register_gate - register a gate clock with the clock framework : device that is registering this clock

: name of this clock's parent : framework-specific flags for this clock : register address to control gating of this clock : which bit in the register controls gating of this clock : gate-specific flags for this clock : shared register lock for this clock

struct clkclk_register_gate (struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 bit_idx, u8 clk_gate_flags, spinlock_t *lock)
 

Variables

struct clk_ops clk_gate_ops
 

Macro Definition Documentation

#define to_clk_gate (   _hw)    container_of(_hw, struct clk_gate, hw)

DOC: basic gatable clock which can gate and ungate it's ouput

Traits of this clock: prepare - clk_(un)prepare only ensures parent is (un)prepared enable - clk_enable and clk_disable are functional & control gating rate - inherits rate from parent. No clk_set_rate support parent - fixed parent. No clk_set_parent support

Definition at line 29 of file clk-gate.c.

Function Documentation

struct clk* clk_register_gate ( struct device dev,
const char name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
u8  bit_idx,
u8  clk_gate_flags,
spinlock_t lock 
)
read

Definition at line 115 of file clk-gate.c.

EXPORT_SYMBOL_GPL ( clk_gate_ops  )

Variable Documentation

struct clk_ops clk_gate_ops
Initial value:
= {
.enable = clk_gate_enable,
.disable = clk_gate_disable,
.is_enabled = clk_gate_is_enabled,
}

Definition at line 97 of file clk-gate.c.