tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / include / soc / sprd / chip_x30g / __regs_gpu_apb_rf.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_GPU_APB_RF_HEADFILE_H__
25 #define __H_REGS_GPU_APB_RF_HEADFILE_H__ __FILE__
26
27 #define REGS_GPU_APB_RF
28
29 /* registers definitions for GPU_APB_RF */
30 #define REG_GPU_APB_APB_RST                            SCI_ADDR(REGS_GPU_APB_BASE, 0x0000)
31 #define REG_GPU_APB_APB_CLK_CTRL                       SCI_ADDR(REGS_GPU_APB_BASE, 0x0004)
32
33
34
35 /* bits definitions for register REG_GPU_APB_RF_APB_RST */
36 #define BIT_GPU_APB_SOFT_RST                                  ( BIT(0) )
37
38 /* bits definitions for register REG_GPU_APB_RF_APB_CLK_CTRL */
39 #define BITS_CLK_GPU_DIV(_X_)                             ( (_X_) << 4 & (BIT(4)|BIT(5)) )
40 #define BITS_CLK_GPU_SEL(_X_)                             ( (_X_) & (BIT(0)|BIT(1)|BIT(2)) )
41
42 #endif