aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-19 09:14:39 +0800
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-24 05:50:13 +0000
commit8cb2f185d11ba1ebcb86bd4add5ebec2f4650d68 (patch)
tree3709707b8b56ff125970301c15fed97a1d53adf2 /src/include
parent9f2faca246e32170fcc9154b0bc2dd31a8404721 (diff)
vc/google/chromeos: use fw_config field to return sar filename
Use fw_config field to return sar filename instead of fw_config probe. Return filename unconditionly because the sar_id must be valid in CBI. If invalid sar_id, the file won't exist in CBFS by design. Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: I7b75c5d4fd3c459ad7232bb16c6218a6218f1f77 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70896 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/sar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/sar.h b/src/include/sar.h
index beccb377cd..87edf1a5b7 100644
--- a/src/include/sar.h
+++ b/src/include/sar.h
@@ -2,6 +2,7 @@
#ifndef _SAR_H_
#define _SAR_H_
+#include <fw_config.h>
#include <stdint.h>
#define MAX_ANT_GAINS_REVISION 2
@@ -88,4 +89,6 @@ int get_wifi_sar_limits(union wifi_sar_limits *sar_limits);
const char *get_wifi_sar_cbfs_filename(void);
+char *get_wifi_sar_fw_config_filename(const struct fw_config_field *field);
+
#endif /* _SAR_H_ */