From fe9e3bf56532b33a9d99b9372b53905dece5907b Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 9 Jun 2015 11:15:06 -0700 Subject: Remove obsolete board-specific code Now that we've removed boards from ToT, also delete board-specific code used only by the removed boards. There are still more things to remove (unused charging chips, LED drivers, COMx support). More CLs coming. BUG=chromium:493866 BRANCH=none TEST=make buildall -j Change-Id: Ie6bdeaf96e61cadd77e3f6336c73b9b54ff4eabb Signed-off-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/276524 Reviewed-by: Alec Berg --- common/lb_common.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'common/lb_common.c') diff --git a/common/lb_common.c b/common/lb_common.c index edd033d870..c964ab8be3 100644 --- a/common/lb_common.c +++ b/common/lb_common.c @@ -56,12 +56,6 @@ static inline uint8_t controller_read(int ctrl_num, uint8_t reg) #define MAX_GREEN 0x30 #define MAX_BLUE 0x67 #endif -#ifdef BOARD_LINK -/* Link uses seven segments, not four, but keep the same limits anyway */ -#define MAX_RED 0x5c -#define MAX_GREEN 0x30 -#define MAX_BLUE 0x67 -#endif #if defined(BOARD_SAMUS) || defined(BOARD_RYU) || defined(BOARD_RYU_P4P5) /* Samus uses completely different LEDs, so the numbers are different. The * Samus LEDs can handle much higher currents, but these constants were @@ -117,9 +111,6 @@ static const uint8_t led_to_ctrl[] = { 1, 1, 0, 0 }; #ifdef BOARD_BDS static const uint8_t led_to_isc[] = { 0x18, 0x15, 0x18, 0x15 }; #endif -#ifdef BOARD_LINK -static const uint8_t led_to_isc[] = { 0x18, 0x15, 0x18, 0x15 }; -#endif #ifdef BOARD_SAMUS static const uint8_t led_to_isc[] = { 0x15, 0x18, 0x15, 0x18 }; #endif -- cgit v1.2.1