summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-09-12 11:28:11 -0700
committerGerrit <chrome-bot@google.com>2012-09-12 14:17:12 -0700
commit0ac4bc36537ce3ee98a3ce3068a79919cd9804d3 (patch)
tree82604ce07e7910e9ac82640072644aba16b74f9a /board
parente212b100cc6473984c0f1a2f2fe7cc9012ddd66b (diff)
downloadchrome-ec-0ac4bc36537ce3ee98a3ce3068a79919cd9804d3.tar.gz
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>
Diffstat (limited to 'board')
-rw-r--r--board/bds/board.h10
-rw-r--r--board/link/board.h7
2 files changed, 10 insertions, 7 deletions
diff --git a/board/bds/board.h b/board/bds/board.h
index 6d5cbeaec2..aa0d61f197 100644
--- a/board/bds/board.h
+++ b/board/bds/board.h
@@ -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
diff --git a/board/link/board.h b/board/link/board.h
index 6dd4fe7738..2212e5565b 100644
--- a/board/link/board.h
+++ b/board/link/board.h
@@ -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 */