1 /******************************************************************************
2 ** File Name: sp7100g_cfg.c *
3 ** Author: Xueliang.Wang *
5 ** Copyright: 2004 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file defines the config information of SP7100G *
9 ******************************************************************************
11 ******************************************************************************
13 ** ------------------------------------------------------------------------- *
14 ** DATE NAME DESCRIPTION *
15 ** 08/23/2004 Xueliang.Wang Create. *
16 ******************************************************************************/
18 /**---------------------------------------------------------------------------*
20 **---------------------------------------------------------------------------*/
21 #include "asm/arch/sci_types.h"
22 #include "asm/arch/arm_reg.h"
23 #include "asm/arch/sc_reg.h"
24 #include "asm/arch/sc_reg.h"
25 //#include "asm/arch/chng_freq.h"
26 //#include "asm/arch/emc_drv.h"
27 #include "asm/arch/chip.h"
29 /**---------------------------------------------------------------------------*
31 **---------------------------------------------------------------------------*/
37 //-----------------------------------------------------------------------------
39 // The initialized frequency when system start up.
42 //-----------------------------------------------------------------------------
43 //Global variable contain system clk config
44 const SYS_CLK_CFG_INFO g_system_clk_cfg =
47 #if defined PLATFORM_SC6800H
51 #elif defined PLATFORM_SC8800H
62 /*****************************************************************************/
63 // Description: This function get system clk config pointer
64 // Author: Younger.yang
66 /*****************************************************************************/
67 SYS_CLK_CFG_INFO *Get_system_clk_cfg (void)
70 return (SYS_CLK_CFG_INFO *) &g_system_clk_cfg;
73 uint32 FDL_GetBootMode (void)
76 bootMode = (* (volatile uint32 *) (0x5000cff4) >> 8) & 0xff;
79 /**---------------------------------------------------------------------------*
81 **---------------------------------------------------------------------------*/