2 * Copyright (C) 2014-2015 Spreadtrum Communications Inc.
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
11 #ifndef __REGS_GPU_APB_H__
12 #define __REGS_GPU_APB_H__
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)
20 /* bits definitions for register REG_GPU_APB_APB_RST */
21 #define BIT_GPU_SOFT_RST ( BIT(0) )
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)) )
27 /* vars definitions for controller REGS_GPU_APB */
29 #endif //__REGS_GPU_APB_H__