Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cpm2.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/of.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/mpc8260.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/cpm2.h>
#include <asm/rheap.h>
#include <asm/fs_pd.h>
#include <sysdev/fsl_soc.h>

Go to the source code of this file.

Data Structures

struct  cpm2_ioports
 

Macros

#define CPM_MAP_SIZE
 
#define MAX_CR_CMD_LOOPS   10000
 

Functions

 EXPORT_SYMBOL (cpm2_immr)
 
void __init cpm2_reset (void)
 
int cpm_command (u32 command, u8 opcode)
 
 EXPORT_SYMBOL (cpm_command)
 
void __cpm2_setbrg (uint brg, uint rate, uint clk, int div16, int src)
 
 EXPORT_SYMBOL (__cpm2_setbrg)
 
int cpm2_clk_setup (enum cpm_clk_target target, int clock, int mode)
 
int cpm2_smc_clk_setup (enum cpm_clk_target target, int clock)
 
void cpm2_set_pin (int port, int pin, int flags)
 
 arch_initcall (cpm_init_par_io)
 

Variables

cpm_cpm2_t __iomemcpmp
 
cpm2_map_t __iomemcpm2_immr
 

Macro Definition Documentation

#define CPM_MAP_SIZE
Value:
(0x40000) /* 256k - the PQ3 reserve this amount
of space for CPM as it is larger
than on PQ2 */

Definition at line 57 of file cpm2.c.

#define MAX_CR_CMD_LOOPS   10000

Definition at line 84 of file cpm2.c.

Function Documentation

void __cpm2_setbrg ( uint  brg,
uint  rate,
uint  clk,
int  div16,
int  src 
)

Definition at line 117 of file cpm2.c.

arch_initcall ( cpm_init_par_io  )
int cpm2_clk_setup ( enum cpm_clk_target  target,
int  clock,
int  mode 
)

Definition at line 141 of file cpm2.c.

void __init cpm2_reset ( void  )

Definition at line 59 of file cpm2.c.

void cpm2_set_pin ( int  port,
int  pin,
int  flags 
)

Definition at line 332 of file cpm2.c.

int cpm2_smc_clk_setup ( enum cpm_clk_target  target,
int  clock 
)

Definition at line 271 of file cpm2.c.

int cpm_command ( u32  command,
u8  opcode 
)

Definition at line 86 of file cpm2.c.

EXPORT_SYMBOL ( cpm2_immr  )
EXPORT_SYMBOL ( cpm_command  )
EXPORT_SYMBOL ( __cpm2_setbrg  )

Variable Documentation

cpm2_map_t __iomem* cpm2_immr

Definition at line 54 of file cpm2.c.

cpm_cpm2_t __iomem* cpmp

Definition at line 49 of file cpm2.c.