mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
samus_pd: Use less flash space
- Reduce the size of some board-level strings - Undef two rarely-used console commands BUG=chrome-os-partner:34489 BRANCH=None TEST=`make buildall -j` Change-Id: I34d599adccce97a62e28e7444854081f068029c3 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/336814 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
257dab7491
commit
be731e262c
@@ -263,7 +263,7 @@ static void board_init(void)
|
||||
*/
|
||||
if (system_get_image_copy() != SYSTEM_IMAGE_RW
|
||||
&& system_is_locked()) {
|
||||
ccprintf("[%T PD communication disabled]\n");
|
||||
ccprintf("[%T PD comm disabled]\n");
|
||||
pd_enable = 0;
|
||||
} else {
|
||||
pd_enable = 1;
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
#define CONFIG_CHARGE_MANAGER
|
||||
#define CONFIG_CHARGE_RAMP
|
||||
#undef CONFIG_CMD_HASH
|
||||
#undef CONFIG_CMD_HCDEBUG
|
||||
#undef CONFIG_CMD_I2C_SCAN
|
||||
#undef CONFIG_CMD_I2C_XFER
|
||||
/* Minimum ilim = 500 mA */
|
||||
#define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA
|
||||
#undef CONFIG_CMD_IDLE_STATS
|
||||
#undef CONFIG_CMD_MD
|
||||
#undef CONFIG_CMD_SHMEM
|
||||
#undef CONFIG_CMD_TIMERINFO
|
||||
#define CONFIG_COMMON_GPIO_SHORTNAMES
|
||||
|
||||
@@ -191,7 +191,7 @@ int pd_custom_vdm(int port, int cnt, uint32_t *payload,
|
||||
case VDO_CMD_VERSION:
|
||||
/* guarantee last byte of payload is null character */
|
||||
*(payload + cnt - 1) = 0;
|
||||
CPRINTF("version: %s\n", (char *)(payload+1));
|
||||
CPRINTF("ver: %s\n", (char *)(payload+1));
|
||||
break;
|
||||
case VDO_CMD_READ_INFO:
|
||||
case VDO_CMD_SEND_INFO:
|
||||
|
||||
Reference in New Issue
Block a user