Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
clkops Struct Reference

#include <clock.h>

Data Fields

void(* enable )(struct clk *)
 
void(* disable )(struct clk *)
 
unsigned long(* getrate )(struct clk *)
 
int(* setrate )(struct clk *, unsigned long)
 
int(* enable )(struct clk *)
 
void(* find_idlest )(struct clk *, void __iomem **, u8 *, u8 *)
 
void(* find_companion )(struct clk *, void __iomem **, u8 *)
 
void(* allow_idle )(struct clk *)
 
void(* deny_idle )(struct clk *)
 

Detailed Description

struct clkops - some clock function pointers : fn ptr that enables the current clock in hardware : fn ptr that enables the current clock in hardware : function returning the IDLEST register for the clock's IP blk : function returning the "companion" clk reg for the clock : fn ptr that enables autoidle for the current clock in hardware : fn ptr that disables autoidle for the current clock in hardware

A "companion" clk is an accompanying clock to the one being queried that must be enabled for the IP module connected to the clock to become accessible by the hardware. Neither nor should be needed; that information is IP block-specific; the hwmod code has been created to handle this, but until hwmod data is ready and drivers have been converted to use PM runtime calls in place of clk_enable()/clk_disable(), and must, unfortunately, remain.

Definition at line 11 of file clock.h.

Field Documentation

void(* allow_idle)(struct clk *)

Definition at line 52 of file clock.h.

void(* deny_idle)(struct clk *)

Definition at line 53 of file clock.h.

void(* disable)(struct clk *)

Definition at line 13 of file clock.h.

void(* enable)(struct clk *)

Definition at line 12 of file clock.h.

int(* enable)(struct clk *)

Definition at line 46 of file clock.h.

void(* find_companion)(struct clk *, void __iomem **, u8 *)

Definition at line 50 of file clock.h.

void(* find_idlest)(struct clk *, void __iomem **, u8 *, u8 *)

Definition at line 48 of file clock.h.

unsigned long(* getrate)(struct clk *)

Definition at line 14 of file clock.h.

int(* setrate)(struct clk *, unsigned long)

Definition at line 15 of file clock.h.


The documentation for this struct was generated from the following files: