summaryrefslogtreecommitdiff
path: root/chip/g/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/system.c')
-rw-r--r--chip/g/system.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/chip/g/system.c b/chip/g/system.c
new file mode 100644
index 0000000000..1124a15062
--- /dev/null
+++ b/chip/g/system.c
@@ -0,0 +1,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/33432): 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 G_REVISION_STR;
+}
+
+/* TODO(crosbug.com/p/33432): 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;
+}