summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-03-09 08:07:30 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-30 13:49:22 +0000
commit6082ee5281bdf0c3f3d6981873efcd93a94b9330 (patch)
tree18c23f417cce7c809f808c2d96ee0fc9518ce19f /src/mainboard
parent36e2b4b2b40c935a5cf8662014d1ad44c3587ace (diff)
ec/starlabs/merlin: Make EC function names generic
Rather than using `ite_`, use `ec_` so the same functions can be called for different ECs. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: Ie61af233f731eb47772af1c82c6abdc515bc89cc Reviewed-on: https://review.coreboot.org/c/coreboot/+/62700 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/starlabs/labtop/smbios.c2
-rw-r--r--src/mainboard/starlabs/lite/smbios.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/starlabs/labtop/smbios.c b/src/mainboard/starlabs/labtop/smbios.c
index 22f3ad3de5..fbdbefd361 100644
--- a/src/mainboard/starlabs/labtop/smbios.c
+++ b/src/mainboard/starlabs/labtop/smbios.c
@@ -17,7 +17,7 @@ const char *smbios_mainboard_bios_version(void)
/* Get the Embedded Controller firmware version */
void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
{
- u16 ec_version = it_get_version();
+ u16 ec_version = ec_get_version();
*ec_major_revision = ec_version >> 8;
*ec_minor_revision = ec_version & 0xff;
diff --git a/src/mainboard/starlabs/lite/smbios.c b/src/mainboard/starlabs/lite/smbios.c
index 3eaaf3a416..394e29c5c9 100644
--- a/src/mainboard/starlabs/lite/smbios.c
+++ b/src/mainboard/starlabs/lite/smbios.c
@@ -17,7 +17,7 @@ const char *smbios_mainboard_bios_version(void)
/* Get the Embedded Controller firmware version */
void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision)
{
- u16 ec_version = it_get_version();
+ u16 ec_version = ec_get_version();
*ec_major_revision = ec_version >> 8;
*ec_minor_revision = ec_version & 0xff;