summaryrefslogtreecommitdiff
path: root/chip/g/system.c
blob: b2d12325f552d45b831a33c9b41e4b5628650df1 (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 (c) 2014 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.
 */

#include "system.h"
#include "registers.h"

void system_pre_init(void)
{

}

/* TODO(crosbug.com/p/33818): How do we force a reset? */
void system_reset(int flags)
{

}

const char *system_get_chip_vendor(void)
{
	return "g";
}

const char *system_get_chip_name(void)
{
	return "cr50";
}

const char *system_get_chip_revision(void)
{
	return GC_REVISION_STR;
}

/* TODO(crosbug.com/p/33822): Where can we store stuff persistently? */

int system_get_vbnvcontext(uint8_t *block)
{
	return 0;
}

int system_set_vbnvcontext(const uint8_t *block)
{
	return 0;
}