diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/apple/macbookair4_2/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/apple/macbookair4_2/Makefile.inc | 4 | ||||
-rw-r--r-- | src/mainboard/apple/macbookair4_2/early_init.c | 17 | ||||
-rw-r--r-- | src/mainboard/apple/macbookair4_2/spd/apple.spd.hex | 32 |
4 files changed, 39 insertions, 15 deletions
diff --git a/src/mainboard/apple/macbookair4_2/Kconfig b/src/mainboard/apple/macbookair4_2/Kconfig index 5e8b1e02ab..10ed82d6df 100644 --- a/src/mainboard/apple/macbookair4_2/Kconfig +++ b/src/mainboard/apple/macbookair4_2/Kconfig @@ -15,6 +15,7 @@ config BOARD_SPECIFIC_OPTIONS select MAINBOARD_HAS_LIBGFXINIT select HAVE_CMOS_DEFAULT select HAVE_OPTION_TABLE + select HAVE_SPD_IN_CBFS config MAINBOARD_DIR default "apple/macbookair4_2" diff --git a/src/mainboard/apple/macbookair4_2/Makefile.inc b/src/mainboard/apple/macbookair4_2/Makefile.inc index 36e42581cf..defa3ec3ce 100644 --- a/src/mainboard/apple/macbookair4_2/Makefile.inc +++ b/src/mainboard/apple/macbookair4_2/Makefile.inc @@ -4,9 +4,7 @@ bootblock-y += gpio.c romstage-y += gpio.c ramstage-y += gnvs.c -cbfs-files-y += spd.bin -spd.bin-file := spd.bin -spd.bin-type := spd +SPD_SOURCES = apple ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads bootblock-y += early_init.c diff --git a/src/mainboard/apple/macbookair4_2/early_init.c b/src/mainboard/apple/macbookair4_2/early_init.c index 7e2ec1be07..fc4b215344 100644 --- a/src/mainboard/apple/macbookair4_2/early_init.c +++ b/src/mainboard/apple/macbookair4_2/early_init.c @@ -1,9 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <string.h> -#include <northbridge/intel/sandybridge/raminit_native.h> +#include <northbridge/intel/sandybridge/raminit.h> #include <southbridge/intel/bd82x6x/pch.h> -#include <cbfs.h> const struct southbridge_usb_port mainboard_usb_ports[] = { { 1, 0, -1 }, /* USB HUB 1 */ @@ -22,14 +20,9 @@ const struct southbridge_usb_port mainboard_usb_ports[] = { { 0, 0, -1 }, /* Unused */ }; -void mainboard_get_spd(spd_raw_data *spd, bool id_only) +void mb_get_spd_map(struct spd_info *spdi) { - void *spd_file; - size_t spd_file_len = 0; - spd_file = cbfs_map("spd.bin", &spd_file_len); - if (spd_file && spd_file_len >= 1024) { - int i; - for (i = 0; i < 4; i++) - memcpy(&spd[i], spd_file + 256 * i, 128); - } + spdi->addresses[0] = SPD_MEMORY_DOWN; + spdi->addresses[2] = SPD_MEMORY_DOWN; + spdi->spd_index = 0; } diff --git a/src/mainboard/apple/macbookair4_2/spd/apple.spd.hex b/src/mainboard/apple/macbookair4_2/spd/apple.spd.hex new file mode 100644 index 0000000000..92ccbcc6cd --- /dev/null +++ b/src/mainboard/apple/macbookair4_2/spd/apple.spd.hex @@ -0,0 +1,32 @@ +92 11 0b 03 03 00 00 01 +03 52 01 08 0c 00 20 00 +6c 78 6c 30 6c 11 20 81 +04 05 3c 3c 00 f0 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 65 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 b0 59 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 |