[coreboot-gerrit] Change in coreboot[master]: mb/lenovo/w520: Add ThinkPad W520 support

Nico Rikken (Code Review) gerrit at coreboot.org
Fri Feb 2 19:29:49 CET 2018


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 at 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

-- 
To view, visit https://review.coreboot.org/23564
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1deb0436a807950c605dcd590deedcb3169bf8c5
Gerrit-Change-Number: 23564
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Rikken <nico at nicorikken.eu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180202/3f6c28f8/attachment-0001.html>


More information about the coreboot-gerrit mailing list