0013-lenovo-r400-Add-clone-of-Lenovo-T400.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. From f5755e978b6a1b10adb0bfeb4c3fd790315c4848 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Micha=C5=82=20Mas=C5=82owski?= <mtjm@mtjm.eu>
  3. Date: Tue, 3 Feb 2015 23:26:05 +0100
  4. Subject: [PATCH 13/17] lenovo/r400: Add clone of Lenovo T400
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The existing code for the Lenovo T400 works without changes on the
  9. Lenovo R400. Same HDA verbs are provided by Lenovo BIOS on both
  10. laptops.
  11. Change-Id: I1dadddd7250ab80a4c40c2435865d72e3e5d99c9
  12. Signed-off-by: Michał Masłowski <mtjm@mtjm.eu>
  13. Signed-off-by: Francis Rowe <info@gluglug.org.uk>
  14. ---
  15. src/mainboard/lenovo/r400/Kconfig | 7 +++++++
  16. src/mainboard/lenovo/r400/Kconfig.name | 2 ++
  17. src/mainboard/lenovo/r400/board_info.txt | 6 ++++++
  18. src/mainboard/lenovo/t400/Kconfig | 6 +++++-
  19. 4 files changed, 20 insertions(+), 1 deletion(-)
  20. create mode 100644 src/mainboard/lenovo/r400/Kconfig
  21. create mode 100644 src/mainboard/lenovo/r400/Kconfig.name
  22. create mode 100644 src/mainboard/lenovo/r400/board_info.txt
  23. diff --git a/src/mainboard/lenovo/r400/Kconfig b/src/mainboard/lenovo/r400/Kconfig
  24. new file mode 100644
  25. index 0000000..0966bf1
  26. --- /dev/null
  27. +++ b/src/mainboard/lenovo/r400/Kconfig
  28. @@ -0,0 +1,7 @@
  29. +if BOARD_LENOVO_R400
  30. +
  31. +config MAINBOARD_PART_NUMBER
  32. + string
  33. + default "ThinkPad R400"
  34. +
  35. +endif
  36. diff --git a/src/mainboard/lenovo/r400/Kconfig.name b/src/mainboard/lenovo/r400/Kconfig.name
  37. new file mode 100644
  38. index 0000000..15a99b1
  39. --- /dev/null
  40. +++ b/src/mainboard/lenovo/r400/Kconfig.name
  41. @@ -0,0 +1,2 @@
  42. +config BOARD_LENOVO_R400
  43. + bool "ThinkPad R400"
  44. diff --git a/src/mainboard/lenovo/r400/board_info.txt b/src/mainboard/lenovo/r400/board_info.txt
  45. new file mode 100644
  46. index 0000000..007ec6c
  47. --- /dev/null
  48. +++ b/src/mainboard/lenovo/r400/board_info.txt
  49. @@ -0,0 +1,6 @@
  50. +Category: laptop
  51. +ROM package: SOIC-16 or SOIC-8
  52. +ROM protocol: SPI
  53. +ROM socketed: n
  54. +Flashrom support: n
  55. +Clone of: lenovo/t400
  56. diff --git a/src/mainboard/lenovo/t400/Kconfig b/src/mainboard/lenovo/t400/Kconfig
  57. index a1d0652..2ea592f 100644
  58. --- a/src/mainboard/lenovo/t400/Kconfig
  59. +++ b/src/mainboard/lenovo/t400/Kconfig
  60. @@ -1,4 +1,4 @@
  61. -if BOARD_LENOVO_T400
  62. +if BOARD_LENOVO_T400 || BOARD_LENOVO_R400
  63. config BOARD_SPECIFIC_OPTIONS # dummy
  64. def_bool y
  65. @@ -26,10 +26,14 @@ config MAINBOARD_DIR
  66. string
  67. default lenovo/t400
  68. +if BOARD_LENOVO_T400
  69. +
  70. config MAINBOARD_PART_NUMBER
  71. string
  72. default "ThinkPad T400"
  73. +endif
  74. +
  75. config MMCONF_BASE_ADDRESS
  76. hex
  77. default 0xf0000000
  78. --
  79. 1.9.1