d0b5a26e4f393bcb190192d8ed56274717d9d001
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / clk_para_config.h
1 /******************************************************************************
2  ** File Name:                                                                *
3  ** Author:                                                                   *
4  ** DATE:                                                                     *
5  ** Copyright:      2002 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file defines the basic input and output operations   *
7  **                 on hardware, it can be treated as a hardware abstract     *
8  **                 layer interface.                                          *
9  ******************************************************************************
10
11  ******************************************************************************
12  **                        Edit History                                       *
13  ** ------------------------------------------------------------------------- *
14  ** DATE           NAME             DESCRIPTION                               *
15  ** 06/12/2010                                                                *
16  ******************************************************************************/
17
18 #ifndef _CLK_PARA_CONFIG_H_
19 #define _CLK_PARA_CONFIG_H_
20
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25
26 enum clk_ap_ahb_sel
27 {
28     AHB_CLK_26M,
29     AHB_CLK_76_8M,
30     AHB_CLK_128M,
31     AHB_CLK_192M
32 };
33 enum clk_ap_apb_sel
34 {
35     APB_CLK_26M,
36     APB_CLK_64M,
37     APB_CLK_96M,
38     APB_CLK_128M
39 };
40 enum clk_pub_ahb_sel
41 {
42     PUB_AHB_CLK_26M,
43     PUB_AHB_CLK_96M,
44     PUB_AHB_CLK_128M,
45     PUB_AHB_CLK_153_6M
46 };
47 enum clk_aon_apb_sel
48 {
49     AON_APB_CLK_26M,
50     AON_APB_CLK_76_8M,
51     AON_APB_CLK_96M,
52     AON_APB_CLK_128M
53 };
54 typedef struct{
55     volatile uint32 magic_header;
56     volatile uint8  version;
57     volatile uint8  reserved0;
58     volatile uint8  reserved1;
59     volatile uint8  reserved2;
60     volatile uint32 core_freq;
61     volatile uint32 ddr_freq;
62     volatile uint32 axi_freq;
63     volatile uint32 dgb_freq;
64     volatile uint32 ahb_freq;
65     volatile uint32 apb_freq;
66     volatile uint32 pub_ahb_freq;
67     volatile uint32 aon_apb_freq;
68     volatile uint32 dcdc_arm;
69     volatile uint32 dcdc_core;
70     volatile uint32 dcdc_mem;
71     volatile uint32 dcdc_gen;
72     volatile uint32 debug_flags[4];
73     volatile uint32 magic_end;
74 }MCU_CLK_PARA_T;
75
76 extern const MCU_CLK_PARA_T mcu_clk_para;
77
78 #ifdef __cplusplus
79 }
80 #endif
81
82 #endif