tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / chip_x35l / __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 __H_REGS_GPU_APB_RF_HEADFILE_H__\r
12 #define __H_REGS_GPU_APB_RF_HEADFILE_H__ __FILE__\r
13 \r
14 #define REGS_GPU_APB_RF\r
15 \r
16 /* registers definitions for GPU_APB_RF */\r
17 #define REG_GPU_APB_RF_APB_RST                            SCI_ADDR(REGS_GPU_APB_RF_BASE, 0x0000)\r
18 #define REG_GPU_APB_RF_APB_CLK_CTRL                       SCI_ADDR(REGS_GPU_APB_RF_BASE, 0x0004)\r
19 \r
20 \r
21 \r
22 /* bits definitions for register REG_GPU_APB_RF_APB_RST */\r
23 #define BIT_GPU_SOFT_RST                                  ( BIT(0) )\r
24 \r
25 /* bits definitions for register REG_GPU_APB_RF_APB_CLK_CTRL */\r
26 #define BITS_CLK_GPU_DIV(_X_)                             ( (_X_) << 4 & (BIT(4)|BIT(5)) )\r
27 #define BITS_CLK_GPU_SEL(_X_)                             ( (_X_) & (BIT(0)|BIT(1)|BIT(2)) )\r
28 \r
29 #endif\r