Routines for the Cypress CY22393/4/5 clock chips. More...
Go to the source code of this file.
Defines | |
#define | I2C_SLA_PLL 0x69 |
I2C address. | |
#define | NUT_PLL_FREF 25000000UL |
Base frequency. | |
Functions | |
int | Cy2239xGetPll (int clk) |
Get the PLL connected to the specified output. | |
int | Cy2239xSetPll (int clk, int pll) |
Connect a specified PLL to a specified output. | |
int | Cy2239xGetDivider (int clk, int fctrl) |
Get the current divider value of the specified output. | |
int | Cy2239xSetDivider (int clk, int sel, int val) |
Set the divider value of the specified output. | |
int | Cy2239xPllEnable (int pll, int fctrl, int ena) |
Enable or disable a specified PLL. | |
uint32_t | Cy2239xPllGetFreq (int pll, int fctrl) |
Get the current frequency of a specified PLL. | |
int | Cy2239xPllSetFreq (int pll, int fctrl, unsigned int pval, unsigned int poff, unsigned int qval, unsigned int fval) |
Set the frequency of a specified PLL. | |
uint32_t | Cy2239xGetFreq (int clk, int fctrl) |
Get the frequency of a specified output. |
Routines for the Cypress CY22393/4/5 clock chips.
* * $Log$ * Revision 1.5 2009/01/17 11:26:46 haraldkipp * Getting rid of two remaining BSD types in favor of stdint. * Replaced 'u_int' by 'unsinged int' and 'uptr_t' by 'uintptr_t'. * * Revision 1.4 2008/08/11 06:59:41 haraldkipp * BSD types replaced by stdint types (feature request #1282721). * * Revision 1.3 2006/01/23 17:32:11 haraldkipp * Avoid hang-ups caused by debug leftovers. * * Revision 1.2 2006/01/05 16:51:06 haraldkipp * Several new functions added to query and modify the clock settings. * * Revision 1.1 2005/10/24 10:21:57 haraldkipp * Initial check in. * * *
Definition in file cy2239x.c.