mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
samus: disable i2cscan console command to save space
Disable the i2cscan console command by default to save space BUG=none BRANCH=samus TEST=make -j buildall From .map file, 512 bytes of flash saved Change-Id: I4bcb50b00e843abbc3523a3e0d4cc599a1e01d3a Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/249850 Reviewed-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
4b774f07d3
commit
aaa7625681
@@ -19,15 +19,16 @@
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_BOARD_PRE_INIT
|
||||
#define CONFIG_CHARGE_MANAGER
|
||||
#undef CONFIG_CMD_HASH
|
||||
#undef CONFIG_CMD_TYPEC
|
||||
#undef CONFIG_CMD_HASH
|
||||
#undef CONFIG_CMD_TYPEC
|
||||
#undef CONFIG_CMD_I2C_SCAN
|
||||
/* Minimum ilim = 500 mA */
|
||||
#define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA
|
||||
#undef CONFIG_CMD_IDLE_STATS
|
||||
#undef CONFIG_CMD_IDLE_STATS
|
||||
#define CONFIG_COMMON_GPIO_SHORTNAMES
|
||||
#undef CONFIG_CONSOLE_CMDHELP
|
||||
#undef CONFIG_CONSOLE_HISTORY
|
||||
#undef CONFIG_DEBUG_ASSERT
|
||||
#undef CONFIG_DEBUG_ASSERT
|
||||
#define CONFIG_FORCE_CONSOLE_RESUME
|
||||
#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP3|STM32_PWR_CSR_EWUP8)
|
||||
#undef CONFIG_HOSTCMD_EVENTS
|
||||
|
||||
@@ -570,6 +570,7 @@ DECLARE_HOST_COMMAND(EC_CMD_I2C_PASSTHRU, i2c_command_passthru, EC_VER_MASK(0));
|
||||
/*****************************************************************************/
|
||||
/* Console commands */
|
||||
|
||||
#ifdef CONFIG_CMD_I2C_SCAN
|
||||
static void scan_bus(int port, const char *desc)
|
||||
{
|
||||
int a;
|
||||
@@ -624,6 +625,7 @@ DECLARE_CONSOLE_COMMAND(i2cscan, command_scan,
|
||||
NULL,
|
||||
"Scan I2C ports for devices",
|
||||
NULL);
|
||||
#endif
|
||||
|
||||
static int command_i2cxfer(int argc, char **argv)
|
||||
{
|
||||
|
||||
@@ -343,6 +343,7 @@
|
||||
#undef CONFIG_CMD_GSV
|
||||
#define CONFIG_CMD_HASH
|
||||
#undef CONFIG_CMD_HOSTCMD
|
||||
#define CONFIG_CMD_I2C_SCAN
|
||||
#define CONFIG_CMD_IDLE_STATS
|
||||
#undef CONFIG_CMD_ILIM
|
||||
#undef CONFIG_CMD_JUMPTAGS
|
||||
|
||||
Reference in New Issue
Block a user