diff options
author | Keith Short <keithshort@chromium.org> | 2019-08-15 13:04:43 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-20 15:32:39 +0000 |
commit | 6fe0f643a1012d6aff2fe9874619238aa2e2284b (patch) | |
tree | 9890f9553e67cc2e3fd4193baa345371ad7b7934 /baseboard | |
parent | d7bb1b0e0a24571f01ca048185bd8b9d882c4f8f (diff) | |
download | chrome-ec-6fe0f643a1012d6aff2fe9874619238aa2e2284b.tar.gz |
Volteer: initial EC board setup
Create Volteer skeleton build. Only includes base NPCX7 configuration
required to build.
BUG=none
BRANCH=none
TEST=make BOARD=volteer, make buildall
TEST=Booted skeleton volteer EC image on careena board.
Change-Id: I07769edfac9818320f18bbc9d0ebcd8f345fb8bb
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1758532
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/volteer/baseboard.c | 14 | ||||
-rw-r--r-- | baseboard/volteer/baseboard.h | 50 | ||||
-rw-r--r-- | baseboard/volteer/build.mk | 9 |
3 files changed, 73 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard.c b/baseboard/volteer/baseboard.c new file mode 100644 index 0000000000..e10e892566 --- /dev/null +++ b/baseboard/volteer/baseboard.c @@ -0,0 +1,14 @@ +/* Copyright 2019 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. + */ + +/* Volteer family-specific configuration */ +#include "gpio.h" + +/******************************************************************************/ +/* Wake up pins */ +const enum gpio_signal hibernate_wake_pins[] = { +}; +const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); + diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h new file mode 100644 index 0000000000..543a42bdb8 --- /dev/null +++ b/baseboard/volteer/baseboard.h @@ -0,0 +1,50 @@ +/* Copyright 2019 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. + */ + +/* Volteer baseboard configuration */ + +#ifndef __CROS_EC_BASEBOARD_H +#define __CROS_EC_BASEBOARD_H + + +/* NPCX7 config */ +#define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ +#define NPCX_UART_MODULE2 1 /* GPIO64/65 are used as UART pins. */ +/* Internal SPI flash on NPCX796FC is 512 kB */ +#define CONFIG_FLASH_SIZE (512 * 1024) +#define CONFIG_SPI_FLASH_REGS +#define CONFIG_SPI_FLASH_W25Q80 /* Internal SPI flash type. */ + +/* EC Defines */ +#define CONFIG_CRC8 +#define CONFIG_HIBERNATE_PSL +#define CONFIG_VBOOT_HASH +#define CONFIG_VSTORE +#define CONFIG_VSTORE_SLOT_COUNT 1 + +/* 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/volteer/build.mk b/baseboard/volteer/build.mk new file mode 100644 index 0000000000..03a91ceda7 --- /dev/null +++ b/baseboard/volteer/build.mk @@ -0,0 +1,9 @@ +# -*- makefile -*- +# Copyright 2019 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. +# +# Volteer baseboard specific files build +# + +baseboard-y=baseboard.o |