Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
clock.c File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/clk.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <linux/of_platform.h>
#include <asm/mpc5xxx.h>
#include <asm/clk_interface.h>

Go to the source code of this file.

Data Structures

struct  clk
 
struct  mpc512x_clockctl
 

Macros

#define CLK_HAS_RATE   0x1 /* has rate in MHz */
 
#define CLK_HAS_CTRL   0x2 /* has control reg and bit */
 
#define DEBUG_CLK_DUMP()
 
#define NRPSC   12
 

Functions

int __init mpc5121_clk_init (void)
 

Variables

struct mpc512x_clockctl __iomemclockctl
 
struct clkrate_clks []
 
struct clk dev_clks [2][32]
 

Macro Definition Documentation

#define CLK_HAS_CTRL   0x2 /* has control reg and bit */

Definition at line 36 of file clock.c.

#define CLK_HAS_RATE   0x1 /* has rate in MHz */

Definition at line 35 of file clock.c.

#define DEBUG_CLK_DUMP ( )

Definition at line 101 of file clock.c.

#define NRPSC   12

Definition at line 110 of file clock.c.

Function Documentation

int __init mpc5121_clk_init ( void  )

Definition at line 722 of file clock.c.

Variable Documentation

Definition at line 125 of file clock.c.

struct clk dev_clks[2][32]

Definition at line 610 of file clock.c.

struct clk* rate_clks[]
Initial value:
= {
&ref_clk,
&diu_clk,
&viu_clk,
&csb_clk,
&e300_clk,
&ips_clk,
&fec_clk,
&sata_clk,
&pata_clk,
&nfc_clk,
&lpc_clk,
&mbx_bus_clk,
&mbx_clk,
&mbx_3d_clk,
&axe_clk,
&usb1_clk,
&usb2_clk,
&mscan_clk,
&sdhc_clk,
&pci_clk,
&psc_mclk_in,
&spdif_txclk,
&spdif_rxclk,
&ac97_clk,
}

Definition at line 554 of file clock.c.