0020-lenovo-t400-Enable-all-SATA-ports.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 8027957b185313f2a9cecee21d14ae2c88407f5f Mon Sep 17 00:00:00 2001
  2. From: persmule <persmule@gmail.com>
  3. Date: Sun, 31 Oct 2021 23:33:26 +0000
  4. Subject: [PATCH 1/1] lenovo/t400: Enable all SATA ports
  5. There are 2 SATA ports on the chassis of t400(s), but at least one dock for
  6. t400 contains a port for (P/S)ATA device, and t400s has a eSATA port on its
  7. chassis, and another one on its dock.
  8. They have to be unmasked via device tree to use.
  9. This patch unmasked all SATA ports found within t400s with factory firmware.
  10. ---
  11. src/mainboard/lenovo/t400/devicetree.cb | 4 ++--
  12. 1 file changed, 2 insertions(+), 2 deletions(-)
  13. diff --git a/src/mainboard/lenovo/t400/devicetree.cb b/src/mainboard/lenovo/t400/devicetree.cb
  14. index 5886aff48c..84cd4d87b1 100644
  15. --- a/src/mainboard/lenovo/t400/devicetree.cb
  16. +++ b/src/mainboard/lenovo/t400/devicetree.cb
  17. @@ -59,8 +59,8 @@ chip northbridge/intel/gm45
  18. register "gpe0_en" = "0x01000000"
  19. register "gpi1_routing" = "2"
  20. - # Set AHCI mode, enable ports 1 and 2.
  21. - register "sata_port_map" = "0x03"
  22. + # Set AHCI mode, enable ports 1, 2, 5 and 6.
  23. + register "sata_port_map" = "0x33"
  24. register "sata_clock_request" = "0"
  25. register "sata_traffic_monitor" = "0"
  26. --
  27. 2.25.1