tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / include / soc / sprd / chip_x35l / __regs_ap_apb.h
1 /*
2  * Copyright (C) 2014 Spreadtrum Communications Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  *************************************************
15  * Automatically generated C header: do not edit *
16  *************************************************
17  */
18
19 #ifndef __SCI_GLB_REGS_H__
20 #error  "Don't include this file directly, Pls include sci_glb_regs.h"
21 #endif
22
23
24 #ifndef __H_REGS_AP_APB_HEADFILE_H__
25 #define __H_REGS_AP_APB_HEADFILE_H__ __FILE__
26
27 #define REGS_AP_APB
28
29 /* registers definitions for AP_APB */
30 #define REG_AP_APB_APB_EB                                 SCI_ADDR(REGS_AP_APB_BASE, 0x0000)
31 #define REG_AP_APB_APB_RST                                SCI_ADDR(REGS_AP_APB_BASE, 0x0004)
32 #define REG_AP_APB_APB_MISC_CTRL                          SCI_ADDR(REGS_AP_APB_BASE, 0x0008)
33
34
35
36 /* bits definitions for register REG_AP_APB_APB_EB */
37 #define BIT_INTC3_EB                                      ( BIT(22) )
38 #define BIT_INTC2_EB                                      ( BIT(21) )
39 #define BIT_INTC1_EB                                      ( BIT(20) )
40 #define BIT_INTC0_EB                                      ( BIT(19) )
41 #define BIT_AP_CKG_EB                                        ( BIT(18) )
42 #define BIT_UART4_EB                                      ( BIT(17) )
43 #define BIT_UART3_EB                                      ( BIT(16) )
44 #define BIT_UART2_EB                                      ( BIT(15) )
45 #define BIT_UART1_EB                                      ( BIT(14) )
46 #define BIT_UART0_EB                                      ( BIT(13) )
47 #define BIT_I2C4_EB                                       ( BIT(12) )
48 #define BIT_I2C3_EB                                       ( BIT(11) )
49 #define BIT_I2C2_EB                                       ( BIT(10) )
50 #define BIT_I2C1_EB                                       ( BIT(9) )
51 #define BIT_I2C0_EB                                       ( BIT(8) )
52 #define BIT_SPI2_EB                                       ( BIT(7) )
53 #define BIT_SPI1_EB                                       ( BIT(6) )
54 #define BIT_SPI0_EB                                       ( BIT(5) )
55 #define BIT_IIS3_EB                                       ( BIT(4) )
56 #define BIT_IIS2_EB                                       ( BIT(3) )
57 #define BIT_IIS1_EB                                       ( BIT(2) )
58 #define BIT_IIS0_EB                                       ( BIT(1) )
59 #define BIT_SIM0_EB                                       ( BIT(0) )
60
61 /* bits definitions for register REG_AP_APB_APB_RST */
62 #define BIT_INTC3_SOFT_RST                                ( BIT(22) )
63 #define BIT_INTC2_SOFT_RST                                ( BIT(21) )
64 #define BIT_INTC1_SOFT_RST                                ( BIT(20) )
65 #define BIT_INTC0_SOFT_RST                                ( BIT(19) )
66 #define BIT_AP_CKG_SOFT_RST                                  ( BIT(18) )
67 #define BIT_UART4_SOFT_RST                                ( BIT(17) )
68 #define BIT_UART3_SOFT_RST                                ( BIT(16) )
69 #define BIT_UART2_SOFT_RST                                ( BIT(15) )
70 #define BIT_UART1_SOFT_RST                                ( BIT(14) )
71 #define BIT_UART0_SOFT_RST                                ( BIT(13) )
72 #define BIT_I2C4_SOFT_RST                                 ( BIT(12) )
73 #define BIT_I2C3_SOFT_RST                                 ( BIT(11) )
74 #define BIT_I2C2_SOFT_RST                                 ( BIT(10) )
75 #define BIT_I2C1_SOFT_RST                                 ( BIT(9) )
76 #define BIT_I2C0_SOFT_RST                                 ( BIT(8) )
77 #define BIT_SPI2_SOFT_RST                                 ( BIT(7) )
78 #define BIT_SPI1_SOFT_RST                                 ( BIT(6) )
79 #define BIT_SPI0_SOFT_RST                                 ( BIT(5) )
80 #define BIT_IIS3_SOFT_RST                                 ( BIT(4) )
81 #define BIT_IIS2_SOFT_RST                                 ( BIT(3) )
82 #define BIT_IIS1_SOFT_RST                                 ( BIT(2) )
83 #define BIT_IIS0_SOFT_RST                                 ( BIT(1) )
84 #define BIT_SIM0_SOFT_RST                                 ( BIT(0) )
85
86 /* bits definitions for register REG_AP_APB_APB_MISC_CTRL */
87 #define BIT_SIM_CLK_POLARITY                              ( BIT(1) )
88 #define BIT_FMARK_POLARITY_INV                            ( BIT(0) )
89
90 #endif