mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
link: disable unused EEPROM modules
Haven't found a use for these, so remove to reduce code size (reduces binary by 2KB) / complexity. These are still test-compiled on BDS so they'll be ready if needed. BUG=chrome-os-partner:11232 BRANCH=link TEST=build and boot firmware. 'help' should not show eeread/eewrite commands Change-Id: I0f2e41e21efcbbb0967a5b85b7c8a2ff8147460e Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/33112 Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -16,6 +16,11 @@
|
||||
#define CONFIG_CONSOLE_CMDHELP
|
||||
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands */
|
||||
|
||||
/* LM4 modules we don't use on link but still want to keep compiling */
|
||||
#define CONFIG_EEPROM
|
||||
#define CONFIG_EOPTION
|
||||
#define CONFIG_PSTORE
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
enum adc_channel
|
||||
@@ -43,6 +48,11 @@ enum gpio_signal {
|
||||
GPIO_COUNT
|
||||
};
|
||||
|
||||
/* EEPROM blocks */
|
||||
#define EEPROM_BLOCK_EOPTION 1 /* EC persistent options */
|
||||
#define EEPROM_BLOCK_START_PSTORE 16 /* Host persistent storage */
|
||||
#define EEPROM_BLOCK_COUNT_PSTORE 16
|
||||
|
||||
/* Target value for BOOTCFG. This currently toggles the polarity bit without
|
||||
* enabling the boot loader, simply to prove we can program it. */
|
||||
#define BOOTCFG_VALUE 0xfffffdfe
|
||||
|
||||
@@ -18,13 +18,11 @@
|
||||
#define CONFIG_CHARGER
|
||||
#define CONFIG_CHARGER_BQ24725
|
||||
#define CONFIG_CONSOLE_CMDHELP
|
||||
#define CONFIG_EOPTION
|
||||
#define CONFIG_IR357x
|
||||
#define CONFIG_LPC
|
||||
#define CONFIG_ONEWIRE
|
||||
#define CONFIG_PECI
|
||||
#define CONFIG_POWER_LED
|
||||
#define CONFIG_PSTORE
|
||||
#define CONFIG_TASK_PROFILING
|
||||
#define CONFIG_TMP006
|
||||
#define CONFIG_USB_CHARGE
|
||||
@@ -93,11 +91,6 @@ enum adc_channel
|
||||
*/
|
||||
#define CONFIG_CHARGING_CURRENT_LIMIT 3000 /* PL102 inductor 3.0A(3.8A) */
|
||||
|
||||
/* EEPROM blocks */
|
||||
#define EEPROM_BLOCK_EOPTION 1 /* EC persistent options */
|
||||
#define EEPROM_BLOCK_START_PSTORE 16 /* Host persistent storage */
|
||||
#define EEPROM_BLOCK_COUNT_PSTORE 16
|
||||
|
||||
/* I2C ports */
|
||||
#define I2C_PORT_BATTERY 0
|
||||
#define I2C_PORT_CHARGER 0 /* Note: proto0 used port 1 */
|
||||
|
||||
@@ -81,7 +81,6 @@
|
||||
|
||||
/* Optional features present on this chip */
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_EEPROM
|
||||
#define CONFIG_FLASH
|
||||
#define CONFIG_FPU
|
||||
#define CONFIG_I2C
|
||||
|
||||
Reference in New Issue
Block a user