summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2024-03-18 10:51:18 +0000
committerFelix Held <felix-coreboot@felixheld.de>2024-06-07 18:33:55 +0000
commit6e755cef04632b92d8e5a24f507613fc7bea346d (patch)
tree07fcd92c363803c0bd8f177ec3338e6acebb7556
parent38170736e900a9110841447328e90348a99e19b2 (diff)
mb/starlabs/*: Add Kconfig values for battery information
Add Kconfig strings for the battery: * Model * OEM * Technology Change-Id: Ibbce87ad54874f490af45c41f31956a7e9e996f3 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81401 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/ec/starlabs/merlin/Kconfig12
-rw-r--r--src/mainboard/starlabs/lite/Kconfig9
-rw-r--r--src/mainboard/starlabs/starbook/Kconfig11
3 files changed, 32 insertions, 0 deletions
diff --git a/src/ec/starlabs/merlin/Kconfig b/src/ec/starlabs/merlin/Kconfig
index 5939854d1d..5a35b51b9e 100644
--- a/src/ec/starlabs/merlin/Kconfig
+++ b/src/ec/starlabs/merlin/Kconfig
@@ -93,3 +93,15 @@ config EC_VARIANT_DIR
config EC_GPE_SCI
hex
default 0x50
+
+config EC_STARLABS_BATTERY_MODEL
+ string
+ default "Unknown"
+
+config EC_STARLABS_BATTERY_TYPE
+ string
+ default "LION"
+
+config EC_STARLABS_BATTERY_OEM
+ string
+ default "Unknown"
diff --git a/src/mainboard/starlabs/lite/Kconfig b/src/mainboard/starlabs/lite/Kconfig
index 9d928b3801..f2c2ea6501 100644
--- a/src/mainboard/starlabs/lite/Kconfig
+++ b/src/mainboard/starlabs/lite/Kconfig
@@ -49,6 +49,15 @@ config DEVICETREE
config EC_GPE_SCI
default 0x26
+config EC_STARLABS_BATTERY_MODEL
+ default "3172120X2-I116CG"
+
+config EC_STARLABS_BATTERY_TYPE
+ default "LiP"
+
+config EC_STARLABS_BATTERY_OEM
+ default "Apower Electronics"
+
config EC_VARIANT_DIR
default "glk" if BOARD_STARLABS_LITE_GLK
default "glkr" if BOARD_STARLABS_LITE_GLKR
diff --git a/src/mainboard/starlabs/starbook/Kconfig b/src/mainboard/starlabs/starbook/Kconfig
index e8172c94b8..480cc5cd61 100644
--- a/src/mainboard/starlabs/starbook/Kconfig
+++ b/src/mainboard/starlabs/starbook/Kconfig
@@ -119,6 +119,17 @@ config EC_GPE_SCI
config EC_STARLABS_ADD_ITE_BIN
default y if !BOARD_STARLABS_STARBOOK_RPL
+config EC_STARLABS_BATTERY_MODEL
+ default "AEC3987118-2S1P" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
+ default "597077-3S"
+
+config EC_STARLABS_BATTERY_TYPE
+ default "LION"
+
+config EC_STARLABS_BATTERY_OEM
+ default "Apower Electronics" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
+ default "GanfengLiEnergy"
+
config EC_STARLABS_ITE_BIN_PATH
string
depends on EC_STARLABS_NEED_ITE_BIN