diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-03-21 14:00:02 +0100 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-03-26 23:10:56 +0000 |
commit | 2095aedba8cb0ba7989eda8e0310953210633386 (patch) | |
tree | 3b036196ca402f30786a0dfbcf4301bbe8aea71d /src | |
parent | d603f7c3fa9019cfc99a3494c45b68d84dd27fb6 (diff) |
mb/google/butterfly: Fix compiling for 64bit mode
Change-Id: Ieaaba5b36796d97449896b8475744a21f01e93d1
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81380
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/butterfly/mainboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/butterfly/mainboard.c b/src/mainboard/google/butterfly/mainboard.c index ac0f57b3aa..988c210b6e 100644 --- a/src/mainboard/google/butterfly/mainboard.c +++ b/src/mainboard/google/butterfly/mainboard.c @@ -49,7 +49,7 @@ static unsigned char get_hex_digit(char *offset) } static int get_mac_address(u32 *high_dword, u32 *low_dword, - u32 search_address, u32 search_length) + uintptr_t search_address, u32 search_length) { char key[] = "ethernet_mac"; unsigned int offset; @@ -118,7 +118,7 @@ static void program_mac_address(u16 io_base, u32 search_address, } } -static void program_keyboard_type(u32 search_address, u32 search_length) +static void program_keyboard_type(uintptr_t search_address, u32 search_length) { char key[] = "keyboard_layout"; char kbd_jpn[] = "xkb:jp::jpn"; @@ -160,7 +160,7 @@ static void program_keyboard_type(u32 search_address, u32 search_length) static void mainboard_init(struct device *dev) { - u32 search_address = 0x0; + uintptr_t search_address = 0x0; size_t search_length = -1; u16 io_base = 0; struct device *ethernet_dev = NULL; @@ -180,7 +180,7 @@ static void mainboard_init(struct device *dev) } else { vpd_file = cbfs_map("vpd.bin", &search_length); if (vpd_file) { - search_address = (unsigned long)vpd_file; + search_address = (uintptr_t)vpd_file; } else { search_length = -1; search_address = 0; |