summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2020-01-30 16:03:22 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-04 11:30:05 +0000
commit79ec40ac7060bb1f7a12aa53f0222dba74f3c521 (patch)
tree53a764ce41fb7f85b2fc2ae47a57412fb28f1f2f /baseboard
parent5f3a97a9401dcd86705c4e00632cf06c684425f4 (diff)
downloadchrome-ec-79ec40ac7060bb1f7a12aa53f0222dba74f3c521.tar.gz
honeybuns: Initial skeleton EC image
This CL contains a skeleton image as a starter for honeybuns. BUG=b:148492715 BRANCH=none TEST=make BOARD=honeybuns and verify that image builds successfully Change-Id: I05c8b6bb4fa1f1a781ab4d9e8a43026373c2ab50 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2032199 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/honeybuns/baseboard.c11
-rw-r--r--baseboard/honeybuns/baseboard.h55
-rw-r--r--baseboard/honeybuns/build.mk9
3 files changed, 75 insertions, 0 deletions
diff --git a/baseboard/honeybuns/baseboard.c b/baseboard/honeybuns/baseboard.c
new file mode 100644
index 0000000000..e594d40a0c
--- /dev/null
+++ b/baseboard/honeybuns/baseboard.c
@@ -0,0 +1,11 @@
+/* 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.
+ */
+
+/* Honeybuns family-specific configuration */
+#include "gpio.h"
+
+/******************************************************************************/
+
+
diff --git a/baseboard/honeybuns/baseboard.h b/baseboard/honeybuns/baseboard.h
new file mode 100644
index 0000000000..1711fd1717
--- /dev/null
+++ b/baseboard/honeybuns/baseboard.h
@@ -0,0 +1,55 @@
+/* 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.
+ */
+
+/* Honeybuns baseboard configuration */
+
+#ifndef __CROS_EC_BASEBOARD_H
+#define __CROS_EC_BASEBOARD_H
+
+/* EC Defines */
+#define CONFIG_CRC8
+
+/* TODO Define FLASH_PSTATE_LOCKED prior to building MP FW. */
+#undef CONFIG_FLASH_PSTATE_LOCKED
+
+/*
+ * TODO(b/148493929): Revisit these timer values once support for STM32G4 has
+ * been added. These macros are required to build the EC image.
+ */
+/* 48 MHz SYSCLK clock frequency */
+#define CPU_CLOCK 48000000
+#define CONFIG_STM_HWTIMER32
+#define TIM_CLOCK32 2
+#define TIM_CLOCK_MSB 3
+#define TIM_CLOCK_LSB 15
+#define TIM_WATCHDOG 7
+
+/* Honeybuns platform does not have a lid switch */
+#undef CONFIG_LID_SWITCH
+
+/* Host communication */
+
+/* Chipset config */
+
+/* Common Keyboard Defines */
+
+/* Sensors */
+
+/* Common charger defines */
+
+/* Common battery defines */
+
+/* USB Type C and USB PD defines */
+
+/* BC 1.2 */
+
+/* I2C Bus Configuration */
+
+
+#ifndef __ASSEMBLER__
+
+#endif /* !__ASSEMBLER__ */
+
+#endif /* __CROS_EC_BASEBOARD_H */
diff --git a/baseboard/honeybuns/build.mk b/baseboard/honeybuns/build.mk
new file mode 100644
index 0000000000..2a572df114
--- /dev/null
+++ b/baseboard/honeybuns/build.mk
@@ -0,0 +1,9 @@
+# -*- makefile -*-
+# 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.
+#
+# Honeybuns baseboard specific files build
+#
+
+baseboard-y=baseboard.o