summaryrefslogtreecommitdiff
path: root/include/soc/sprd/chip_x35lt8/__regs_wcdma_apb_rf.h
blob: ae6e1ba6052273d9343c0bb9a1ed8407bce9542a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* the head file modifier:     g   2015-03-19 15:46:40*/

/*
* Copyright (C) 2013 Spreadtrum Communications Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
*************************************************
* Automatically generated C header: do not edit *
*************************************************
*/

#ifndef __SCI_GLB_REGS_H__
#error  "Don't include this file directly, Pls include sci_glb_regs.h"
#endif 


#ifndef __H_REGS_WCDMA_APB_RF_HEADFILE_H__
#define __H_REGS_WCDMA_APB_RF_HEADFILE_H__ __FILE__

#define  REGS_WCDMA_APB_RF

/* registers definitions for WCDMA_APB_RF */
#define REG_WCDMA_APB_RF_APB_EB				SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0000)/*APB_EB*/
#define REG_WCDMA_APB_RF_APB_RST			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0004)/*APB_RST*/
#define REG_WCDMA_APB_RF_APB_SLEEP_ST			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0008)/*APB_SLEEP_ST*/
#define REG_WCDMA_APB_RF_APB_MCU_RST			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0018)/*APB_MCU_RST*/
#define REG_WCDMA_APB_RF_APB_CLK_SEL0			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x001C)/*APB_CLK_SEL0*/
#define REG_WCDMA_APB_RF_APB_CLK_DIV0			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0020)/*APB_CLK_DIV0*/
#define REG_WCDMA_APB_RF_APB_ARCH_EB			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0024)/*APB_ARCH_EB*/
#define REG_WCDMA_APB_RF_APB_SLP_CTL			SCI_ADDR(REGS_WCDMA_APB_RF_BASE, 0x0028)/*APB_SLP_CTL*/



/* bits definitions for register REG_WCDMA_APB_RF_APB_EB */
#define BIT_TMR_RTC_EB						( BIT(6) )
#define BIT_TMR_EB						( BIT(5) )
#define BIT_SYSTMR_RTC_EB					( BIT(4) )
#define BIT_SYSTMR_EB						( BIT(3) )
#define BIT_UART0_EB						( BIT(2) )
#define BIT_WDG_RTC_EB						( BIT(1) )
#define BIT_WDG_EB						( BIT(0) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_RST */
#define BIT_TMR_SOFT_RST					( BIT(3) )
#define BIT_SYSTMR_SOFT_RST					( BIT(2) )
#define BIT_UART0_SOFT_RST					( BIT(1) )
#define BIT_WDG_SOFT_RST					( BIT(0) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_SLEEP_ST */
#define BIT_CHIP_SLEEP_REC_CLR					( BIT(1) )
#define BIT_CHIP_SLEEP_REC					( BIT(0) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_MCU_RST */
#define BIT_MCU_SOFT_RST_SET					( BIT(0) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_CLK_SEL0 */
#define BITS_CLK_UART0_SEL(_X_)					( (_X_) & (BIT(0)|BIT(1)) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_CLK_DIV0 */
#define BITS_CLK_UART0_DIV(_X_)					( (_X_) & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_ARCH_EB */
#define BIT_RTC_ARCH_EB						( BIT(1) )
#define BIT_APB_ARCH_EB						( BIT(0) )

/* bits definitions for register REG_WCDMA_APB_RF_APB_SLP_CTL */
#define BIT_APB_PERI_FRC_ON					( BIT(1) )
#define BIT_APB_PERI_FRC_SLP					( BIT(0) )

#endif