tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / chip_x20 / __regs_gpu_apb_rf.h
1 /*\r
2  * Copyright (C) 2014-2015 Spreadtrum Communications Inc.\r
3  *\r
4  * This file is dual-licensed: you can use it either under the terms\r
5  * of the GPL or the X11 license, at your option. Note that this dual\r
6  * licensing only applies to this file, and not this project as a\r
7  * whole.\r
8  *\r
9  */\r
10 \r
11 //#ifndef __SCI_GLB_REGS_H__\r
12 //#error  "Don't include this file directly, Pls include sci_glb_regs.h"\r
13 //#endif\r
14 \r
15 \r
16 #ifndef __H_REGS_GPU_APB_RF_HEADFILE_H__\r
17 #define __H_REGS_GPU_APB_RF_HEADFILE_H__ __FILE__\r
18 \r
19 #define REGS_GPU_APB_RF\r
20 \r
21 /* registers definitions for GPU_APB_RF */\r
22 #define REG_GPU_APB_RF_APB_RST                            SCI_ADDR(REGS_GPU_APB_RF_BASE, 0x0000)\r
23 #define REG_GPU_APB_RF_APB_CLK_CTRL                       SCI_ADDR(REGS_GPU_APB_RF_BASE, 0x0004)\r
24 \r
25 \r
26 \r
27 /* bits definitions for register REG_GPU_APB_RF_APB_RST */\r
28 #define BIT_GPU_SOFT_RST                                  ( BIT(0) )\r
29 \r
30 /* bits definitions for register REG_GPU_APB_RF_APB_CLK_CTRL */\r
31 #define BITS_CLK_GPU_DIV(_X_)                             ( (_X_) << 4 & (BIT(4)|BIT(5)) )\r
32 #define BITS_CLK_GPU_SEL(_X_)                             ( (_X_) & (BIT(0)|BIT(1)|BIT(2)) )\r
33 \r
34 #endif\r