diff options
-rw-r--r-- | board/samus_pd/board.h | 1 | ||||
-rw-r--r-- | common/build.mk | 2 | ||||
-rw-r--r-- | include/config.h | 9 |
3 files changed, 8 insertions, 4 deletions
diff --git a/board/samus_pd/board.h b/board/samus_pd/board.h index 300b308dac..c8db6b054f 100644 --- a/board/samus_pd/board.h +++ b/board/samus_pd/board.h @@ -21,6 +21,7 @@ #define CONFIG_BOARD_PRE_INIT #define CONFIG_CHARGE_MANAGER #define CONFIG_CHARGE_RAMP_SW +#undef CONFIG_CMD_ADC #undef CONFIG_CMD_CHARGE_SUPPLIER_INFO #undef CONFIG_CMD_HASH #undef CONFIG_CMD_HCDEBUG diff --git a/common/build.mk b/common/build.mk index 1adbaafb92..a5b530e9e7 100644 --- a/common/build.mk +++ b/common/build.mk @@ -16,7 +16,7 @@ common-$(CONFIG_ACCELGYRO_LSM6DSM)+=math_util.o common-$(CONFIG_ACCEL_LIS2DH)+=math_util.o common-$(CONFIG_ACCEL_KXCJ9)+=math_util.o common-$(CONFIG_ACCEL_KX022)+=math_util.o -common-$(CONFIG_ADC)+=adc.o +common-$(CONFIG_CMD_ADC)+=adc.o common-$(HAS_TASK_ALS)+=als.o common-$(CONFIG_AP_HANG_DETECT)+=ap_hang_detect.o common-$(CONFIG_BACKLIGHT_LID)+=backlight_lid.o diff --git a/include/config.h b/include/config.h index 848f1ec49c..a2a27c3aa6 100644 --- a/include/config.h +++ b/include/config.h @@ -736,6 +736,7 @@ #undef CONFIG_CMD_ACCEL_FIFO #undef CONFIG_CMD_ACCEL_INFO #define CONFIG_CMD_ACCELSPOOF +#define CONFIG_CMD_ADC #undef CONFIG_CMD_ALS #define CONFIG_CMD_APTHROTTLE #undef CONFIG_CMD_BATDEBUG @@ -3305,13 +3306,15 @@ #undef CONFIG_HOSTCMD_PD #endif -/* - * Power Average task only works when there's a battery to talk to. - */ +/* Certain console cmds are irrelevant without parent modules. */ #ifndef CONFIG_BATTERY #undef CONFIG_CMD_PWR_AVG #endif +#ifndef CONFIG_ADC +#undef CONFIG_CMD_ADC +#endif + /*****************************************************************************/ /* * Apply test config overrides last, since tests need to override some of the |