/* * Copyright (C) 2017 MediaTek Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * 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 http://www.gnu.org/licenses/gpl-2.0.html for more details. */ #ifndef __SCP_L1C_H #define __SCP_L1C_H #define SCP_IL1C 0 #define SCP_DL1C 1 #define L1C_BASE (scpreg.l1cctrl) #define L1C_SEL(x) ((struct L1C_REGISTER_T *)(L1C_BASE+x*0x3000)) /* L1C_OP register definitions */ #define L1C_OP_EN_OFFSET (0) #define L1C_OP_EN_MASK (1<