diff options
author | Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> | 2020-08-10 18:57:57 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-26 23:16:26 +0000 |
commit | 45c666d849dd96ea346823ea5d0f84a390473529 (patch) | |
tree | 4474d02b7a54855a1fd2239ef91ad4a71e560307 | |
parent | 7f4beaa9cba90d5ab9b8b0b41034de611bea8a58 (diff) | |
download | chrome-ec-45c666d849dd96ea346823ea5d0f84a390473529.tar.gz |
volteer: Support board-specific current
Separate CONFIG_CHARGER_SENSE_RESISTOR and
CONFIG_CHARGER_SENSE_RESISTOR_AC from volteer baseboard
to each project board.
To meet different configurations on each board.
BUG=b:158257062
BRANCH=none
TEST=make buildall
Change-Id: Ib8290bd54d45054b82d7849e84119d419cbc8586
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2346088
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2378956
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
-rw-r--r-- | baseboard/volteer/baseboard.h | 2 | ||||
-rw-r--r-- | board/delbin/board.h | 4 | ||||
-rw-r--r-- | board/eldrid/board.h | 4 | ||||
-rw-r--r-- | board/halvor/board.h | 4 | ||||
-rw-r--r-- | board/lindar/board.h | 4 | ||||
-rw-r--r-- | board/lingcod/board.h | 4 | ||||
-rw-r--r-- | board/malefor/board.h | 4 | ||||
-rw-r--r-- | board/terrador/board.h | 4 | ||||
-rw-r--r-- | board/todor/board.h | 4 | ||||
-rw-r--r-- | board/trondo/board.h | 4 | ||||
-rw-r--r-- | board/volteer/board.h | 4 | ||||
-rw-r--r-- | board/voxel/board.h | 4 |
12 files changed, 44 insertions, 2 deletions
diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h index ab1f5bc74a..3bd7f52315 100644 --- a/baseboard/volteer/baseboard.h +++ b/baseboard/volteer/baseboard.h @@ -105,8 +105,6 @@ #define CONFIG_CHARGER_DISCHARGE_ON_AC #define CONFIG_CHARGER_INPUT_CURRENT 512 #define CONFIG_CHARGER_ISL9241 -#define CONFIG_CHARGER_SENSE_RESISTOR 10 -#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 #define CONFIG_USB_CHARGER #define CONFIG_BC12_DETECT_PI3USB9201 diff --git a/board/delbin/board.h b/board/delbin/board.h index b9dbf7e39e..fd43315be3 100644 --- a/board/delbin/board.h +++ b/board/delbin/board.h @@ -97,6 +97,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/eldrid/board.h b/board/eldrid/board.h index f23e369dcf..6714ccaf78 100644 --- a/board/eldrid/board.h +++ b/board/eldrid/board.h @@ -113,6 +113,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/halvor/board.h b/board/halvor/board.h index 2e9de3252f..77e36fd060 100644 --- a/board/halvor/board.h +++ b/board/halvor/board.h @@ -84,6 +84,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/lindar/board.h b/board/lindar/board.h index c5d36e02a3..7af00f45b2 100644 --- a/board/lindar/board.h +++ b/board/lindar/board.h @@ -70,6 +70,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/lingcod/board.h b/board/lingcod/board.h index 31e5e558bc..27d30365d9 100644 --- a/board/lingcod/board.h +++ b/board/lingcod/board.h @@ -79,6 +79,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/malefor/board.h b/board/malefor/board.h index 31e5e558bc..27d30365d9 100644 --- a/board/malefor/board.h +++ b/board/malefor/board.h @@ -79,6 +79,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/terrador/board.h b/board/terrador/board.h index 85b97a0b11..4eae0df382 100644 --- a/board/terrador/board.h +++ b/board/terrador/board.h @@ -97,6 +97,10 @@ /* Fan features */ #undef CONFIG_FANS +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/todor/board.h b/board/todor/board.h index 0414dd015f..cb6b210f31 100644 --- a/board/todor/board.h +++ b/board/todor/board.h @@ -97,6 +97,10 @@ /* Fan features */ #undef CONFIG_FANS +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/trondo/board.h b/board/trondo/board.h index cebb5b23d0..f4677d2f0c 100644 --- a/board/trondo/board.h +++ b/board/trondo/board.h @@ -94,6 +94,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/volteer/board.h b/board/volteer/board.h index 38f7e80d64..de1431b4e7 100644 --- a/board/volteer/board.h +++ b/board/volteer/board.h @@ -117,6 +117,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are diff --git a/board/voxel/board.h b/board/voxel/board.h index 1194e15999..0a055078c2 100644 --- a/board/voxel/board.h +++ b/board/voxel/board.h @@ -100,6 +100,10 @@ /* Fan features */ +/* charger defines */ +#define CONFIG_CHARGER_SENSE_RESISTOR 10 +#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are |