summaryrefslogtreecommitdiff
path: root/board/yorp/board.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-02-23 16:18:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-02-28 15:21:06 -0800
commit7a0a4d639304dde28fe3ce0b3963f1789603ed5d (patch)
tree027b9d66d5625008e4a18e8dbbcebcb71e6c4e5f /board/yorp/board.h
parent75acf081183821ef3ef1a63877a53103663272d6 (diff)
downloadchrome-ec-7a0a4d639304dde28fe3ce0b3963f1789603ed5d.tar.gz
yorp: initial add of octopus BOM-A board
BRANCH=none BUG=b:73811887 TEST=build yorp and all other boards Change-Id: I2c29ba86f29a3d25128c00c1b55e90f6843bcdd5 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/935367 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board/yorp/board.h')
-rw-r--r--board/yorp/board.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/board/yorp/board.h b/board/yorp/board.h
new file mode 100644
index 0000000000..191085aab5
--- /dev/null
+++ b/board/yorp/board.h
@@ -0,0 +1,40 @@
+/* Copyright 2018 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.
+ */
+
+/* Yorp board configuration */
+
+#ifndef __CROS_EC_BOARD_H
+#define __CROS_EC_BOARD_H
+
+/* Optional features */
+#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
+
+/* NPCX7 config */
+#define NPCX_UART_MODULE2 1 /* GPIO64/65 are used as UART pins. */
+#define NPCX_TACH_SEL2 0 /* [0:GPIO40/73, 1:GPIO93/A6] as TACH */
+#define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */
+
+/* Internal SPI flash on NPCX7 */
+/* Flash is 1MB but reserve half for future use. */
+#define CONFIG_FLASH_SIZE (512 * 1024)
+
+#define CONFIG_SPI_FLASH_REGS
+#define CONFIG_SPI_FLASH_W25Q128 /* Internal SPI flash type. */
+
+#define CONFIG_POWER_BUTTON
+
+#ifndef __ASSEMBLER__
+
+#include "gpio_signal.h"
+#include "registers.h"
+
+/* TODO(b/73811887): Fill out correctly */
+enum adc_channel {
+ ADC_CH_COUNT
+};
+
+#endif /* !__ASSEMBLER__ */
+
+#endif /* __CROS_EC_BOARD_H */