Logo Search packages:      
Sourcecode: linux version File versions  Download package

Defines | Functions

chipcHw.c File Reference

Low level Various CHIP clock controlling routines. More...

#include <csp/errno.h>
#include <csp/stdint.h>
#include <csp/module.h>
#include <mach/csp/chipcHw_def.h>
#include <mach/csp/chipcHw_inline.h>
#include <csp/reg.h>
#include <csp/delay.h>
Include dependency graph for chipcHw.c:

Go to the source code of this file.

Defines

#define MAX_PHASE_ADJUST_COUNT   0xFFFF
#define MAX_PHASE_ALIGN_ATTEMPTS   10
#define NON_PLL_CLOCK   2
#define PLL_CLOCK   1

Functions

static int chipcHw_divide (int num, int denom)
 Local Divide function.
chipcHw_freq chipcHw_getClockFrequency (chipcHw_CLOCK_e clock)
 Set clock fequency for miscellaneous configurable clocks.
chipcHw_freq chipcHw_setClockFrequency (chipcHw_CLOCK_e clock, uint32_t freq)
 Set clock fequency for miscellaneous configurable clocks.
int chipcHw_vpmPhaseAlign (void)
 Set VPM clock in sync with BUS clock.
 EXPORT_SYMBOL (chipcHw_setClockFrequency)
static int vpmPhaseAlignA0 (void)
 Set VPM clock in sync with BUS clock for Chip Rev A0.

Detailed Description

Low level Various CHIP clock controlling routines.

Note:

These routines provide basic clock controlling functionality only.

Definition in file chipcHw.c.


Generated by  Doxygen 1.6.0   Back to index