summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2019-06-12 11:31:15 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-14 01:04:58 +0000
commit6231bcc61127a4bc75d2fa2ec2e4ea58fb164207 (patch)
tree4228d4dd9a5d1ceee0efbc91aca99ce7cb535b71 /include
parent79e88d81f3e090d959669b4de6215cef96c2a3ed (diff)
downloadchrome-ec-6231bcc61127a4bc75d2fa2ec2e4ea58fb164207.tar.gz
ish: cleanup ISH specific CONFIG_ definitions and usage
Removed some unneeded definitions and made sure those needed were undefined in include/config.h Removed some of the #ifdef and used IS_ENABLED instead 2019-06-13 07:36:00 > idlestats 2019-06-13 07:36:05 Aontask exists: Yes 2019-06-13 07:36:05 Total time on: 367.111999s 2019-06-13 07:36:05 Idle sleep: 2019-06-13 07:36:05 D0i0: 2019-06-13 07:36:05 counts: 13716 2019-06-13 07:36:05 time: 108.238220s 2019-06-13 07:36:05 Deep sleep: 2019-06-13 07:36:05 D0i1: 2019-06-13 07:36:05 counts: 6798 2019-06-13 07:36:05 time: 17.980105s 2019-06-13 07:36:05 D0i2: 2019-06-13 07:36:05 counts: 5852 2019-06-13 07:36:05 time: 236.773953s 2019-06-13 07:36:05 D0i3: 2019-06-13 07:36:05 counts: 16 2019-06-13 07:36:05 time: 1.092285s 2019-06-13 07:36:05 Aontask status: 2019-06-13 07:36:05 last error: 0 2019-06-13 07:36:05 error counts: 0 BUG=b:131749055,b:132178013 BRANCH=none TEST=make buildall -j TEST=verified basic operation on arcada_ish Change-Id: Ib2d96f35b9f4f92208cd05dfdf2580bb27e5df90 Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1656152 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index f09b796181..15482a9687 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4092,6 +4092,37 @@
/*****************************************************************************/
/*
+ * ISH config defaults
+ */
+/*
+ * This will be automatically defined below if the board supports power
+ * modes that will require the AONTASK functionality.
+ */
+#undef CONFIG_ISH_PM_AONTASK
+
+/*
+ * Define the following if the power state support is required.
+ */
+#undef CONFIG_ISH_PM_D0I1
+#undef CONFIG_ISH_PM_D0I2
+#undef CONFIG_ISH_PM_D0I3
+#undef CONFIG_ISH_PM_D3
+
+/*
+ * Define the following to the number of uSeconds of elapsed time that is
+ * required to enter D0I2 and D0I3, if they are supported
+ */
+#undef CONFIG_ISH_D0I2_MIN_USEC
+#undef CONFIG_ISH_D0I3_MIN_USEC
+
+/*
+ * Define the following in order to perform power management reset
+ * prep IRQ setup when entering a new state
+ */
+#undef CONFIG_ISH_PM_RESET_PREP
+
+/*****************************************************************************/
+/*
* Include board and core configs, since those hold the CONFIG_ constants for a
* given configuration. This guarantees they get included everywhere, and
* fixes a fairly common bug where we gate out code with #ifndef