summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Chang <rongchang@google.com>2017-02-06 18:32:01 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-03-28 11:27:57 -0700
commite388e9c74673d7c64cb791437858978bf2a3a142 (patch)
tree020140008b17e4139e4d01de35ff7407ce61d78f
parentbbd8daec122cb985c8b1f7de49afd04d7bb9c603 (diff)
downloadchrome-ec-e388e9c74673d7c64cb791437858978bf2a3a142.tar.gz
rose: add stm32f4 family support
This change applys config-stm32f446.h to stm32f4 family. BUG=chromium:688979 TEST=boots on stm32f401 and stm32f412 dev boards BRANCH=none Change-Id: I939fd17f29f4b431d9c1358c184166c67fef18d3 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/438908 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/stm32/config_chip.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/stm32/config_chip.h b/chip/stm32/config_chip.h
index 2253639f83..ca93e8f80a 100644
--- a/chip/stm32/config_chip.h
+++ b/chip/stm32/config_chip.h
@@ -38,7 +38,8 @@
#include "config-stm32l100.h"
#elif defined(CHIP_VARIANT_STM32L442)
#include "config-stm32l442.h"
-#elif defined(CHIP_VARIANT_STM32F446)
+#elif defined(CHIP_FAMILY_STM32F4)
+/* STM32F4 family */
#include "config-stm32f446.h"
#elif defined(CHIP_VARIANT_STM32F373)
#include "config-stm32f373.h"
@@ -67,7 +68,7 @@
/* Program is run directly from storage */
#define CONFIG_MAPPED_STORAGE_BASE CONFIG_PROGRAM_MEMORY_BASE
-#if !defined(CHIP_VARIANT_STM32F446) && !defined(CHIP_VARIANT_STM32F09X)
+#if !defined(CHIP_FAMILY_STM32F4) && !defined(CHIP_VARIANT_STM32F09X)
/* Compute the rest of the flash params from these */
#include "config_std_internal_flash.h"
#endif