]>
sourceware.org Git - newlib-cygwin.git/blob - libgloss/bfin/include/sys/pll.h
59ec014d51e729c568b4f217079160aae1ecf490
2 * The authors hereby grant permission to use, copy, modify, distribute,
3 * and license this software and its documentation for any purpose, provided
4 * that existing copyright notices are retained in all copies and that this
5 * notice is included verbatim in any distributions. No written agreement,
6 * license, or royalty fee is required for any of the authorized uses.
7 * Modifications to this software may be copyrighted by their authors
8 * and need not follow the licensing terms described here, provided that
9 * the new terms are clearly indicated on the first page of each file where
13 /************************************************************************
17 * Copyright (C) 2008, 2009 Analog Devices, Inc.
19 ************************************************************************/
31 #pragma diag(suppress:misra_rule_6_3)
32 #endif /* _MISRA_RULES */
34 #define NO_STARTUP_SET 0
35 #define MAX_IN_STARTUP 1
40 /* no modification of PLL rates in CRT startup - default */
41 no_startup_set
=NO_STARTUP_SET
,
43 /* CRT startup sets PLL rates to suitable maximum values */
44 max_in_startup
=MAX_IN_STARTUP
48 ** Define __clk_ctrl to 1 to cause startup to set PLL rates for maximum
49 ** speed performance rates. The default version defined in the runtime-
50 ** libraries defines __clk_ctrl to 0 which disables the feature.
52 extern enum clkctrl_t __clk_ctrl
;
58 #if defined(__ADSPLPBLACKFIN__)
60 /* Sets SSEL and CSEL bits in PLL_DIV to passed values.
61 ** Returns -1 on failure.
63 int pll_set_system_clocks(int _csel
, int _ssel
);
66 ** Sets MSEL and DF bits in PLL_CTL and LOCKCNT in PLL_LOCKCNT.
67 ** Returns -1 on failure.
69 int pll_set_system_vco(int _msel
, int _df
, int _lockcnt
);
71 #endif /* __ADSPLPBLACKFIN__ */
77 #endif /* __ASSEMBLER__ */
81 #endif /* _MISRA_RULES */
This page took 0.037952 seconds and 4 git commands to generate.