From d0e0c4fa5db291bd37fdd6ce2388ec0637620f68 Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Mon, 1 Mar 2021 10:48:39 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727634 Reviewed-by: Diana Z --- board/mancomb/board.c | 25 +++++++++++++++++++++++++ board/mancomb/board.h | 37 +++++++++++++++++++++++++++++++++++++ board/mancomb/build.mk | 11 +++++++++++ board/mancomb/ec.tasklist | 12 ++++++++++++ board/mancomb/gpio.inc | 10 ++++++++++ 5 files changed, 95 insertions(+) create mode 100644 board/mancomb/board.c create mode 100644 board/mancomb/board.h create mode 100644 board/mancomb/build.mk create mode 100644 board/mancomb/ec.tasklist create mode 100644 board/mancomb/gpio.inc (limited to 'board/mancomb') 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" -- cgit v1.2.1