diff options
author | Jett Rink <jettrink@chromium.org> | 2020-01-22 11:15:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-28 20:39:16 +0000 |
commit | 200021e4613277c9dc806edffde9d560bd659d1a (patch) | |
tree | 3f687b11081145cd53257246443cd2c8aeebd2ff | |
parent | fde4f623b25973f124e9ca89698d5dce41993687 (diff) | |
download | chrome-ec-200021e4613277c9dc806edffde9d560bd659d1a.tar.gz |
deltaur: initial add
Add a bare-bones Deltaur EC image to build on
BRANCH=none
BUG=b:148160415
TEST=builds
Change-Id: Ia8145e978c2e1d561768d3344e0b89e1c4ef2f6c
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2015352
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | board/deltaur/board.c | 29 | ||||
-rw-r--r-- | board/deltaur/board.h | 62 | ||||
-rw-r--r-- | board/deltaur/build.mk | 14 | ||||
-rw-r--r-- | board/deltaur/ec.tasklist | 13 | ||||
-rw-r--r-- | board/deltaur/gpio.inc | 18 |
5 files changed, 136 insertions, 0 deletions
diff --git a/board/deltaur/board.c b/board/deltaur/board.c new file mode 100644 index 0000000000..28483c6315 --- /dev/null +++ b/board/deltaur/board.c @@ -0,0 +1,29 @@ +/* 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. + */ + +/* Deltaur board-specific configuration */ + +#include "common.h" +#include "system.h" +#include "task.h" +#include "spi.h" +#include "util.h" + +#include "gpio_list.h" /* Must come after other header files. */ + +/* + * TODO(b/148160415): Evaluate if hibernate wake signals are needed + */ +const enum gpio_signal hibernate_wake_pins[] = {}; +const int hibernate_wake_pins_used; + +/******************************************************************************/ +/* SPI devices */ +/* + * TODO(b/148160415): Evaluate if external flash needs to be set here + */ +const struct spi_device_t spi_devices[] = { +}; +const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); diff --git a/board/deltaur/board.h b/board/deltaur/board.h new file mode 100644 index 0000000000..6816775a73 --- /dev/null +++ b/board/deltaur/board.h @@ -0,0 +1,62 @@ +/* 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. + */ + +/* Deltaur board configuration */ + +#ifndef __CROS_EC_BOARD_H +#define __CROS_EC_BOARD_H + +/* Optional features */ +#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ + +/* Host command protocol */ +#define CONFIG_HOSTCMD_ESPI + +/* Increase UART buffer size for better UART dump performance with AP */ +#undef CONFIG_UART_TX_BUF_SIZE +#define CONFIG_UART_TX_BUF_SIZE 4096 + +/* + * TODO(b/148160415): Evaluate external flash options + */ +#define CONFIG_SPI_FLASH_PORT 0 +#define CONFIG_SPI_FLASH_W25X40 +#define CONFIG_FLASH_SIZE (512 * 1024) +#define CONFIG_CHIPSET_RESET_HOOK + +/* Keyboard features */ + +/* Sensors */ + +/* USB Type C and USB PD defines */ + +/* USB Type A Features */ + +/* BC 1.2 */ + +/* Volume Button feature */ + +/* Fan features */ + +/* + * Macros for GPIO signals used in common code that don't match the + * schematic names. Signal names in gpio.inc match the schematic and are + * then redefined here to so it's more clear which signal is being used for + * which purpose. + */ + +/* Unneeded features */ +#undef CONFIG_ADC +#undef CONFIG_SWITCH +#undef CONFIG_LID_SWITCH + +#ifndef __ASSEMBLER__ + +#include "gpio_signal.h" +#include "registers.h" + +#endif /* !__ASSEMBLER__ */ + +#endif /* __CROS_EC_BOARD_H */ diff --git a/board/deltaur/build.mk b/board/deltaur/build.mk new file mode 100644 index 0000000000..fc317d477f --- /dev/null +++ b/board/deltaur/build.mk @@ -0,0 +1,14 @@ +# -*- 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. +# +# Board specific files build +# + +# Microchip MEC5106 which is similar to MEC1702 +CHIP:=mchp +CHIP_FAMILY:=mec17xx +CHIP_SPI_SIZE_KB:=512 + +board-y=board.o diff --git a/board/deltaur/ec.tasklist b/board/deltaur/ec.tasklist new file mode 100644 index 0000000000..773d62c8cb --- /dev/null +++ b/board/deltaur/ec.tasklist @@ -0,0 +1,13 @@ +/* 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. + */ + +/* + * See CONFIG_TASK_LIST in config.h for details. + */ + +#define CONFIG_TASK_LIST \ + TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(CONSOLE, console_task, NULL, VENTI_TASK_STACK_SIZE) diff --git a/board/deltaur/gpio.inc b/board/deltaur/gpio.inc new file mode 100644 index 0000000000..211d8c74bb --- /dev/null +++ b/board/deltaur/gpio.inc @@ -0,0 +1,18 @@ +/* -*- mode:c -*- + * + * 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. + */ + +/* Declare symbolic names for all the GPIOs that we care about. + * Note: Those with interrupt handlers must be declared first. */ + +/* Interrupts */ + +/* TODO(b/148160415) - Determine correct purpose for these GPIOs */ +UNIMPLEMENTED(ENTERING_RW) +UNIMPLEMENTED(WP_L) +UNIMPLEMENTED(QMSPI_CS0) + +/* Alternate Mode */ |