2 * Copyright (c) 2014-2015 ARM Limited
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * Authors: Andreas Sandberg
20 #include "mali_t7xx.hh"
22 #include "regutils.hh"
26 MaliT7xxBase::MaliT7xxBase(unsigned gpuType
,
27 unsigned major
, unsigned minor
, unsigned status
)
28 : MaliMidgard(gpuType
, major
, minor
, status
)
33 MaliT7xxBase::setupControlIdRegisters(RegVector
®s
)
35 MaliMidgard::setupControlIdRegisters(regs
);
37 regs
[RegAddr(L2_FEATURES
)] =
38 (0x07 << 24) | // lg2 ext bus width
39 (0x13 << 16) | // lg2 cache size
40 (0x02 << 8) | // lg2 associativity
41 (0x06); // lg2 line size
45 MaliT76x::MaliT76x(unsigned major
, unsigned minor
, unsigned status
)
46 : MaliT7xxBase(GPU_ID_PI_T76X
, major
, minor
, status
)