tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / chip_x35 / sprd_reg_gpu_apb.h
1 /*
2  * Copyright (C) 2014-2015 Spreadtrum Communications Inc.
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  */
10
11 #ifndef __REGS_GPU_APB_H__
12 #define __REGS_GPU_APB_H__
13
14 #define REGS_GPU_APB
15
16 /* registers definitions for controller REGS_GPU_APB */
17 #define REG_GPU_APB_APB_RST             SCI_ADDR(REGS_GPU_APB_BASE, 0x0000)
18 #define REG_GPU_APB_APB_CLK_CTRL        SCI_ADDR(REGS_GPU_APB_BASE, 0x0004)
19
20 /* bits definitions for register REG_GPU_APB_APB_RST */
21 #define BIT_GPU_SOFT_RST                ( BIT(0) )
22
23 /* bits definitions for register REG_GPU_APB_APB_CLK_CTRL */
24 #define BITS_CLK_GPU_DIV(_x_)           ( (_x_) << 2 & (BIT(2)|BIT(3)) )
25 #define BITS_CLK_GPU_SEL(_x_)           ( (_x_) << 0 & (BIT(0)|BIT(1)) )
26
27 /* vars definitions for controller REGS_GPU_APB */
28
29 #endif //__REGS_GPU_APB_H__