Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
clk-gate2.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

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

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-gate2.c.

Function Documentation

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

Definition at line 86 of file clk-gate2.c.