Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pq2.c File Reference
#include "ops.h"
#include "types.h"
#include "fsl-soc.h"
#include "pq2.h"
#include "stdio.h"
#include "io.h"

Go to the source code of this file.

Macros

#define PQ2_SCCR   (0x10c80/4) /* System Clock Configuration Register */
 
#define PQ2_SCMR   (0x10c88/4) /* System Clock Mode Register */
 

Functions

int pq2_get_clocks (u32 crystal, u32 *sysfreq, u32 *corefreq, u32 *timebase, u32 *brgfreq)
 
void pq2_set_clocks (u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq)
 
int pq2_fixup_clocks (u32 crystal)
 

Macro Definition Documentation

#define PQ2_SCCR   (0x10c80/4) /* System Clock Configuration Register */

Definition at line 20 of file pq2.c.

#define PQ2_SCMR   (0x10c88/4) /* System Clock Mode Register */

Definition at line 21 of file pq2.c.

Function Documentation

int pq2_fixup_clocks ( u32  crystal)

Definition at line 93 of file pq2.c.

int pq2_get_clocks ( u32  crystal,
u32 sysfreq,
u32 corefreq,
u32 timebase,
u32 brgfreq 
)

Definition at line 31 of file pq2.c.

void pq2_set_clocks ( u32  sysfreq,
u32  corefreq,
u32  timebase,
u32  brgfreq 
)

Definition at line 78 of file pq2.c.