1 /******************************************************************************
2 ** File Name: sc8800g_freq_cfg.h *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file define the config of frequency. *
7 ******************************************************************************
9 ******************************************************************************
11 ** ------------------------------------------------------------------------- *
12 ** DATE NAME DESCRIPTION *
13 ** 08/17/2010 Yuhua.Shi Create. *
14 ******************************************************************************/
16 #ifndef _SC8800G_FREQ_CFG_H_
17 #define _SC8800G_FREQ_CFG_H_
18 /*----------------------------------------------------------------------------*
20 **------------------------------------------------------------------------- */
22 #include "sci_types.h"
23 #include "chng_freq.h"
25 /**---------------------------------------------------------------------------*
27 **--------------------------------------------------------------------------*/
32 /**---------------------------------------------------------------------------*
34 **---------------------------------------------------------------------------*/
36 /**---------------------------------------------------------------------------*
38 **---------------------------------------------------------------------------*/
39 //define the arm/ahb/emc clk
40 typedef struct freq_clk_LVL_tag
45 } FREQ_CLK_LVL_T, *FREQ_CLK_LVL_PTR;
47 //define the control infomation for change frequency
48 typedef struct freq_control_tag
52 BOOLEAN is_chng_freq_enable;
53 BOOLEAN is_ahbmaster_event_enable;
54 } FREQ_CONTROL_T, *FREQ_CONTROL_PTR;
56 //define the frequency levle of application
57 typedef struct freq_app_clk_LVL_tag
59 CHNG_FREQ_INDEX_E freq_index;
61 } FREQ_APP_CLK_LVL_T, *FREQ_APP_CLK_LVL_PTR;
63 //define the config info for change frequency
64 typedef struct chng_freq_config_tag
66 FREQ_CLK_LVL_PTR clk_lvl_table_ptr;
67 uint32 *clk_div_table_ptr;
68 FREQ_APP_CLK_LVL_PTR app_clk_lvl_table_ptr;
69 FREQ_CONTROL_PTR freq_control_info_ptr;
70 } CHNG_FREQ_CONFIG_T, *CHNG_FREQ_CONFIG_PTR;
73 /**----------------------------------------------------------------------------*
74 ** Function Prototype **
75 **----------------------------------------------------------------------------*/
76 /*****************************************************************************/
77 // Description : This function is used to get the config info about change frequency
78 // Global resource dependence :
81 /*****************************************************************************/
82 PUBLIC CHNG_FREQ_CONFIG_PTR FREQ_GetFreqCfg (
86 /**----------------------------------------------------------------------------*
88 **----------------------------------------------------------------------------*/
92 /**---------------------------------------------------------------------------*/