summaryrefslogtreecommitdiff
path: root/chip/stm32/config-stm32f05x.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-05-18 10:57:21 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-27 19:40:18 +0000
commit488f8c95651ad85edffff76af410a0fa85433242 (patch)
tree53ab05003ff3772a51910b46b06b9c0663000c46 /chip/stm32/config-stm32f05x.h
parent97934e4041040997bce215103b67e227aa806732 (diff)
downloadchrome-ec-488f8c95651ad85edffff76af410a0fa85433242.tar.gz
oak_pd: add initial support for oak PD
Add initial support for Oak PD MCU on rev1 boards. This does not include USB PD communication. BUG=none BRANCH=none TEST=build and load on oak and get console. test we resond to host commands from EC using "pdcmd 0 0" on EC console. Change-Id: I92045cf0fd682279ada6c286f5399f0e258a6305 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/271828
Diffstat (limited to 'chip/stm32/config-stm32f05x.h')
-rw-r--r--chip/stm32/config-stm32f05x.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chip/stm32/config-stm32f05x.h b/chip/stm32/config-stm32f05x.h
new file mode 100644
index 0000000000..9b1701a407
--- /dev/null
+++ b/chip/stm32/config-stm32f05x.h
@@ -0,0 +1,24 @@
+/* Copyright 2015 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.
+ */
+
+/* Memory mapping */
+#define CONFIG_FLASH_BASE 0x08000000
+#define CONFIG_FLASH_PHYSICAL_SIZE (64 * 1024)
+#define CONFIG_FLASH_BANK_SIZE 0x1000
+#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */
+#define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */
+
+/* No page mode on STM32F, so no benefit to larger write sizes */
+#define CONFIG_FLASH_WRITE_IDEAL_SIZE 0x0002
+
+#define CONFIG_RAM_BASE 0x20000000
+#define CONFIG_RAM_SIZE 0x00002000
+
+/* Number of IRQ vectors on the NVIC */
+#define CONFIG_IRQ_COUNT 32
+
+/* Reduced history because of limited RAM */
+#undef CONFIG_CONSOLE_HISTORY
+#define CONFIG_CONSOLE_HISTORY 3