diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-04-19 14:59:23 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:07:07 +0000 |
commit | 612249dc8b2d61087588be0878f02f27ecc352c3 (patch) | |
tree | b246edea2b76f9a9bb0009f9603848dca6ea68e1 /src/mainboard/asus/am1i-a | |
parent | f8a5eb2e4afc190214ba5f1766998a1812f69a40 (diff) |
mb/asus/am1i-a: Use read_int_option()
Drop "error" (BIOS_DEBUG) messages as well.
Change-Id: I61954f8f893c144bbeba1530a486b389bd855ec6
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52510
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/asus/am1i-a')
-rw-r--r-- | src/mainboard/asus/am1i-a/BiosCallOuts.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mainboard/asus/am1i-a/BiosCallOuts.c b/src/mainboard/asus/am1i-a/BiosCallOuts.c index bdaf7a730f..e20f4f4cf7 100644 --- a/src/mainboard/asus/am1i-a/BiosCallOuts.c +++ b/src/mainboard/asus/am1i-a/BiosCallOuts.c @@ -87,12 +87,7 @@ void board_FCH_InitReset(struct sysinfo *cb_NA, FCH_RESET_DATA_BLOCK *FchParams_ FchParams_reset->Mode = 6; /* Read SATA speed setting from CMOS */ - enum cb_err ret; - ret = get_option(&FchParams_reset->SataSetMaxGen2, "sata_speed"); - if (ret != CB_SUCCESS) { - FchParams_reset->SataSetMaxGen2 = 0; - printk(BIOS_DEBUG, "ERROR: cannot read CMOS setting, falling back to default. Error code: %x\n", (int)ret); - } + FchParams_reset->SataSetMaxGen2 = get_int_option("sata_speed", 0); printk(BIOS_DEBUG, "Force SATA 3Gbps mode = %x\n", FchParams_reset->SataSetMaxGen2); } @@ -107,12 +102,7 @@ void board_FCH_InitEnv(struct sysinfo *cb_NA, FCH_DATA_BLOCK *FchParams_env) FchParams_env->Hwm.HwmFchtsiAutoPoll = FALSE;/* 1 enable, 0 disable TSI Auto Polling */ /* Read SATA controller mode from CMOS */ - enum cb_err ret; - ret = get_option(&FchParams_env->Sata.SataClass, "sata_mode"); - if (ret != CB_SUCCESS) { - FchParams_env->Sata.SataClass = 0; - printk(BIOS_DEBUG, "ERROR: cannot read CMOS setting, falling back to default. Error code: %x\n", (int)ret); - } + FchParams_env->Sata.SataClass = get_int_option("sata_mode", 0); switch ((SATA_CLASS)FchParams_env->Sata.SataClass) { case SataLegacyIde: |