summaryrefslogtreecommitdiff
path: root/board/mancomb
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-03-01 10:48:39 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-03 18:22:08 +0000
commitd0e0c4fa5db291bd37fdd6ce2388ec0637620f68 (patch)
tree848f7d9c78bbb278a685e0ca79d4afe04e0f38d5 /board/mancomb
parent90be32c398c45b8f441c9bb54743e369cc33bba5 (diff)
downloadchrome-ec-d0e0c4fa5db291bd37fdd6ce2388ec0637620f68.tar.gz
mancomb: Create mancomb baseboard and variant
This is a full copy paste of guybrush just with guybrush replaced with mancomb. Follow up CLs will make required changes so it's clear what changed between guybrush and mancomb. BUG=b:174424094, b:181510382 TEST=Build BRANCH=None Change-Id: I16f00e2749ab466e619b77925b25b275aca67a6c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727634 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/mancomb')
-rw-r--r--board/mancomb/board.c25
-rw-r--r--board/mancomb/board.h37
-rw-r--r--board/mancomb/build.mk11
-rw-r--r--board/mancomb/ec.tasklist12
-rw-r--r--board/mancomb/gpio.inc10
5 files changed, 95 insertions, 0 deletions
diff --git a/board/mancomb/board.c b/board/mancomb/board.c
new file mode 100644
index 0000000000..4f2b6087d1
--- /dev/null
+++ b/board/mancomb/board.c
@@ -0,0 +1,25 @@
+/* Copyright 2021 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.
+ */
+
+/* Mancomb board-specific configuration */
+
+#include "button.h"
+#include "common.h"
+#include "extpower.h"
+#include "gpio.h"
+#include "hooks.h"
+#include "lid_switch.h"
+#include "power.h"
+#include "power_button.h"
+#include "switch.h"
+#include "tablet_mode.h"
+
+#include "gpio_list.h" /* Must come after other header files. */
+
+static void board_init(void)
+{
+ /* TODO */
+}
+DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
diff --git a/board/mancomb/board.h b/board/mancomb/board.h
new file mode 100644
index 0000000000..9d651404e9
--- /dev/null
+++ b/board/mancomb/board.h
@@ -0,0 +1,37 @@
+/* Copyright 2021 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.
+ */
+
+/* Mancomb board configuration */
+
+#ifndef __CROS_EC_BOARD_H
+#define __CROS_EC_BOARD_H
+
+/* Baseboard features */
+#include "baseboard.h"
+
+/* Motion sensing drivers */
+
+/* Keyboard features */
+
+/* Sensors */
+
+/* USB Type C and USB PD defines */
+
+/* USB Type A Features */
+
+/* BC 1.2 */
+
+/* Volume Button feature */
+
+/* Fan features */
+
+#ifndef __ASSEMBLER__
+
+#include "gpio_signal.h"
+#include "registers.h"
+
+#endif /* !__ASSEMBLER__ */
+
+#endif /* __CROS_EC_BOARD_H */
diff --git a/board/mancomb/build.mk b/board/mancomb/build.mk
new file mode 100644
index 0000000000..1630304826
--- /dev/null
+++ b/board/mancomb/build.mk
@@ -0,0 +1,11 @@
+# -*- makefile -*-
+# Copyright 2021 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.
+#
+# Board specific files build
+#
+
+BASEBOARD:=mancomb
+
+board-y=board.o
diff --git a/board/mancomb/ec.tasklist b/board/mancomb/ec.tasklist
new file mode 100644
index 0000000000..fe4d4edc4a
--- /dev/null
+++ b/board/mancomb/ec.tasklist
@@ -0,0 +1,12 @@
+/* Copyright 2021 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.
+ */
+
+/*
+ * See CONFIG_TASK_LIST in config.h for details.
+ */
+
+#include "base_ec.tasklist"
+
+#define CONFIG_TASK_LIST BASEBOARD_CONFIG_TASK_LIST
diff --git a/board/mancomb/gpio.inc b/board/mancomb/gpio.inc
new file mode 100644
index 0000000000..567bf737f3
--- /dev/null
+++ b/board/mancomb/gpio.inc
@@ -0,0 +1,10 @@
+/* -*- mode:c -*-
+ *
+ * Copyright 2021 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.
+ */
+
+/* Declare symbolic names for all the board GPIOs that we care about. */
+
+#include "base_gpio.inc"