aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-11-18 17:04:34 +0100
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-12-05 15:19:01 +0530
commit29fcd8c266d585c66dda6dd5b989e7e4c3d6344a (patch)
tree96fbfc9dba1985ab5f896d4dbc3d2ca44f5154b5
parentf67887e3ff68d0986702ae79961d795d9793cc8f (diff)
downloadskiboot-29fcd8c266d585c66dda6dd5b989e7e4c3d6344a.zip
skiboot-29fcd8c266d585c66dda6dd5b989e7e4c3d6344a.tar.gz
skiboot-29fcd8c266d585c66dda6dd5b989e7e4c3d6344a.tar.bz2
platform/mihawk: Detect old system compatible string
[ Upstream commit 425340bd2809808f21856d80bf76b785b87b6041 ] 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> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-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 */