summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/dedede/board_info.c2
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h2
-rw-r--r--src/mainboard/google/zork/variants/baseboard/helpers.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/google/dedede/board_info.c b/src/mainboard/google/dedede/board_info.c
index fdb4b5ff64..22d35d7475 100644
--- a/src/mainboard/google/dedede/board_info.c
+++ b/src/mainboard/google/dedede/board_info.c
@@ -3,7 +3,7 @@
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
-int board_info_get_fw_config(uint32_t *fw_config)
+int board_info_get_fw_config(uint64_t *fw_config)
{
return google_chromeec_cbi_get_fw_config(fw_config);
}
diff --git a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
index dc855c63cd..bb41e45931 100644
--- a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
@@ -21,7 +21,7 @@ const struct pad_config *variant_override_gpio_table(size_t *num);
* @param fw_config Address where the fw_config is stored.
* @return 0 on success or negative integer for errors.
*/
-int board_info_get_fw_config(uint32_t *fw_config);
+int board_info_get_fw_config(uint64_t *fw_config);
/* Return memory configuration structure. */
const struct mb_cfg *variant_memcfg_config(void);
diff --git a/src/mainboard/google/zork/variants/baseboard/helpers.c b/src/mainboard/google/zork/variants/baseboard/helpers.c
index cc07fe18d6..70710351d2 100644
--- a/src/mainboard/google/zork/variants/baseboard/helpers.c
+++ b/src/mainboard/google/zork/variants/baseboard/helpers.c
@@ -48,9 +48,9 @@ enum {
FW_CONFIG_SHIFT_FAN = 27,
};
-static int get_fw_config(uint32_t *val)
+static int get_fw_config(uint64_t *val)
{
- static uint32_t known_value;
+ static uint64_t known_value;
if (known_value) {
*val = known_value;
@@ -67,9 +67,9 @@ static int get_fw_config(uint32_t *val)
return 0;
}
-static unsigned int extract_field(uint32_t mask, int shift)
+static unsigned int extract_field(uint64_t mask, int shift)
{
- uint32_t fw_config;
+ uint64_t fw_config;
/* On errors nothing is assumed to be set. */
if (get_fw_config(&fw_config))