From 6231bcc61127a4bc75d2fa2ec2e4ea58fb164207 Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Wed, 12 Jun 2019 11:31:15 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1656152 Reviewed-by: Jack Rosenthal --- include/config.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index f09b796181..15482a9687 100644 --- a/include/config.h +++ b/include/config.h @@ -4090,6 +4090,37 @@ */ #undef CONFIG_CROS_BOARD_INFO +/*****************************************************************************/ +/* + * 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 -- cgit v1.2.1