blob: 0e12154f6df5bcdde40cc3e9bc5ba8b6c388a618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* System : hardware specific implementation */
#include "csr.h"
#include "memmap.h"
#include "registers.h"
#include "system.h"
void system_pre_init(void)
{
memmap_init();
/* enable CPU and platform low power CG */
/* enable CPU DCM */
set_csr(CSR_MCTREN, CSR_MCTREN_CG);
/* Disable jump (it has only RW) */
system_disable_jump();
}
void system_reset(int flags)
{
while (1)
;
}
int system_get_bbram(enum system_bbram_idx idx, uint8_t *value)
{
return EC_ERROR_INVAL;
}
const char *system_get_chip_vendor(void)
{
return "mtk";
}
const char *system_get_chip_name(void)
{
/* Support only SCP_A for now */
return "scp_a";
}
const char *system_get_chip_revision(void)
{
return "";
}
|