Nico Rikken has uploaded this change for review. ( https://review.coreboot.org/23564
Change subject: mb/lenovo/w520: Add ThinkPad W520 support ......................................................................
mb/lenovo/w520: Add ThinkPad W520 support
Tested and working: * 4 RAM-slots * Booting GNU Linux from USB using SeaBios * Speakers * PCIe Wifi * Camera * Fan * Touchpad, trackpoint and keyboard * Ethernet * Keyboard ACPI events
Change-Id: I1deb0436a807950c605dcd590deedcb3169bf8c5 Signed-off-by: Nico Rikken nico@nicorikken.eu --- M src/mainboard/lenovo/t520/Kconfig M src/mainboard/lenovo/t520/romstage.c A src/mainboard/lenovo/w520/Kconfig A src/mainboard/lenovo/w520/Kconfig.name A src/mainboard/lenovo/w520/board_info.txt 5 files changed, 24 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/23564/1
diff --git a/src/mainboard/lenovo/t520/Kconfig b/src/mainboard/lenovo/t520/Kconfig index 8c19c62..7a7f5fd 100644 --- a/src/mainboard/lenovo/t520/Kconfig +++ b/src/mainboard/lenovo/t520/Kconfig @@ -1,4 +1,4 @@ -if BOARD_LENOVO_T520 +if BOARD_LENOVO_T520 || BOARD_LENOVO_W520
config BOARD_SPECIFIC_OPTIONS # dummy def_bool y diff --git a/src/mainboard/lenovo/t520/romstage.c b/src/mainboard/lenovo/t520/romstage.c index d6e5edd..6985065 100644 --- a/src/mainboard/lenovo/t520/romstage.c +++ b/src/mainboard/lenovo/t520/romstage.c @@ -99,8 +99,15 @@ };
void mainboard_get_spd(spd_raw_data *spd, bool id_only) { +#if IS_ENABLED(CONFIG_BOARD_LENOVO_T520) read_spd (&spd[0], 0x50, id_only); read_spd (&spd[2], 0x51, id_only); +#elif IS_ENABLED(CONFIG_BOARD_LENOVO_W520) + read_spd (&spd[0], 0x50, id_only); + read_spd (&spd[1], 0x52, id_only); + read_spd (&spd[2], 0x51, id_only); + read_spd (&spd[3], 0x53, id_only); +#endif }
void mainboard_early_init(int s3resume) diff --git a/src/mainboard/lenovo/w520/Kconfig b/src/mainboard/lenovo/w520/Kconfig new file mode 100644 index 0000000..87af127 --- /dev/null +++ b/src/mainboard/lenovo/w520/Kconfig @@ -0,0 +1,7 @@ +if BOARD_LENOVO_W520 + +config MAINBOARD_PART_NUMBER + string + default "ThinkPad W520" + +endif # BOARD_LENOVO_W520 diff --git a/src/mainboard/lenovo/w520/Kconfig.name b/src/mainboard/lenovo/w520/Kconfig.name new file mode 100644 index 0000000..6f1439e --- /dev/null +++ b/src/mainboard/lenovo/w520/Kconfig.name @@ -0,0 +1,2 @@ +config BOARD_LENOVO_W520 + bool "ThinkPad W520" diff --git a/src/mainboard/lenovo/w520/board_info.txt b/src/mainboard/lenovo/w520/board_info.txt new file mode 100644 index 0000000..99f059f --- /dev/null +++ b/src/mainboard/lenovo/w520/board_info.txt @@ -0,0 +1,7 @@ +Category: laptop +ROM package: WSON-8 +ROM protocol: SPI +ROM socketed: n +Flashrom support: n +Release year: 2011 +Clone of: lenovo/t520