aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-11-18 17:04:34 +0100
committerOliver O'Halloran <oohall@gmail.com>2019-11-19 19:33:07 +1100
commit425340bd2809808f21856d80bf76b785b87b6041 (patch)
tree95bb761bc82dd615c14b6e7689844fa61dce6de8 /platforms
parent528b72fa4de9931b715f6cbc6380b54ada1cadc4 (diff)
downloadskiboot-425340bd2809808f21856d80bf76b785b87b6041.zip
skiboot-425340bd2809808f21856d80bf76b785b87b6041.tar.gz
skiboot-425340bd2809808f21856d80bf76b785b87b6041.tar.bz2
platform/mihawk: Detect old system compatible string
Newer firmware declares the system as "ibm,mihawk", but the labs are full of older installs, which were using "wistron,mihawk". Let's keep detecting the older string since it allows to run recent skiboot on older fw stack and make people's lives a little tiny bit easier. Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com> Reviewed-by: Stewart Smith <stewart@flamingspork.com> Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/mihawk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/astbmc/mihawk.c b/platforms/astbmc/mihawk.c
index feae205..32a902d 100644
--- a/platforms/astbmc/mihawk.c
+++ b/platforms/astbmc/mihawk.c
@@ -231,7 +231,8 @@ static void mihawk_create_ocapi_i2c_bus(void)
static bool mihawk_probe(void)
{
- if (!dt_node_is_compatible(dt_root, "ibm,mihawk"))
+ if (!dt_node_is_compatible(dt_root, "ibm,mihawk") &&
+ !dt_node_is_compatible(dt_root, "wistron,mihawk"))
return false;
/* Lot of common early inits here */