1/*
2 * Copyright (c) 2014-2015 ARM Limited
3 * All rights reserved
4 *
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
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
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.
16 *
17 * Authors: Andreas Sandberg
18 */
19
20#include "mali_t6xx.hh"
21
22#include "regutils.hh"
23
24namespace NoMali {
25
26MaliT6xxBase::MaliT6xxBase(unsigned gpuType,
27                           unsigned major, unsigned minor, unsigned status)
28    : MaliMidgard(gpuType, major, minor, status)
29{
30}
31
32void
33MaliT6xxBase::setupControlIdRegisters(RegVector &regs)
34{
35    MaliMidgard::setupControlIdRegisters(regs);
36
37    regs[RegAddr(L2_FEATURES)] =
38        (0x06 << 24) |  // lg2 ext bus width
39        (0x10 << 16) |  // lg2 cache size
40        (0x02 << 8) |   // lg2 associativity
41        (0x06);         // lg2 line size
42}
43
44
45MaliT60x::MaliT60x(unsigned major, unsigned minor, unsigned status)
46    : MaliT6xxBase(GPU_ID_PI_T60X, major, minor, status)
47{
48}
49
50MaliT62x::MaliT62x(unsigned major, unsigned minor, unsigned status)
51    : MaliT6xxBase(GPU_ID_PI_T62X, major, minor, status)
52{
53}
54
55};
56