summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/config_chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/config_chip.h')
-rw-r--r--zephyr/shim/include/config_chip.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 511d934bc5..d767b5ad90 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -51,4 +51,19 @@
#endif /* CONFIG_PLATFORM_EC_TIMER */
+/*
+ * Load the chip family specific header. Normally for npcx, this would be done
+ * by chip/npcx/config_chip.h but since this file is replacing that header
+ * we'll need (for now) to load it ourselves. Long term, the functions, enums,
+ * and constants in this header will be replaced by more Zephyr/devicetree
+ * specific code.
+ */
+#ifdef CHIP_FAMILY_NPCX7
+#include "config_chip-npcx7.h"
+#endif /* CHIP_FAMILY_NPCX7 */
+
+#ifdef CONFIG_PLATFORM_EC_I2C
+#define CONFIG_I2C
+#endif /* CONFIG_PLATFORM_EC_I2C */
+
#endif /* __CROS_EC_CONFIG_CHIP_H */