From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h (limited to 'include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h') diff --git a/include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h b/include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h new file mode 100644 index 00000000..653b935b --- /dev/null +++ b/include/soc/sprd/chip_x20/__regs_gpu_apb_rf.h @@ -0,0 +1,44 @@ +/* the head file modifier: ang 2015-01-13 20:56:47*/ + +/* +* Copyright (C) 2013 Spreadtrum Communications Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +************************************************* +* Automatically generated C header: do not edit * +************************************************* +*/ + +#ifndef __SCI_GLB_REGS_H__ +#error "Don't include this file directly, Pls include sci_glb_regs.h" +#endif + + +#ifndef __H_REGS_GPU_APB_HEADFILE_H__ +#define __H_REGS_GPU_APB_HEADFILE_H__ __FILE__ + +#define REGS_GPU_APB + +/* registers definitions for GPU_APB */ +#define REG_GPU_APB_APB_RST SCI_ADDR(REGS_GPU_APB_BASE, 0x0000)/*APB_RST*/ +#define REG_GPU_APB_APB_CLK_CTRL SCI_ADDR(REGS_GPU_APB_BASE, 0x0004)/*APB_CLK_CTRL*/ + + + +/* bits definitions for register REG_GPU_APB_APB_RST */ +#define BIT_GPU_SOFT_RST ( BIT(0) ) + +/* bits definitions for register REG_GPU_APB_APB_CLK_CTRL */ +#define BITS_CLK_GPU_DIV(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)) ) +#define BITS_CLK_GPU_SEL(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)) ) + +#endif -- cgit v1.3.1