summaryrefslogtreecommitdiff
path: root/chip/mt8192_scp/system.c
blob: 3c5b6c837b7deb01568542ce092b997aaed1eb30 (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
/* 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 "memmap.h"
#include "registers.h"
#include "system.h"

void system_pre_init(void)
{
	memmap_init();
	/* Disable jump (it has only RW) and enable MPU. */
	/* TODO: implement MPU */
	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 "";
}