diff mbox

[03/14] hdat: Add P9 compatible property

Message ID 1484193253-25307-3-git-send-email-oohall@gmail.com
State Accepted
Headers show

Commit Message

Oliver O'Halloran Jan. 12, 2017, 3:54 a.m. UTC
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

Add p9 compatible property for various nodes.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[oohall@gmail.com: remove ibm,power9-nx compat]
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 hdata/spira.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Vasant Hegde Jan. 12, 2017, 6:38 a.m. UTC | #1
On 01/12/2017 09:24 AM, Oliver O'Halloran wrote:
> From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
>
> Add p9 compatible property for various nodes.
>
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
> [oohall@gmail.com: remove ibm,power9-nx compat]

Thanks for taking care of this. I'm fine with the changes.

-Vasant
diff mbox

Patch

diff --git a/hdata/spira.c b/hdata/spira.c
index a19b4db92a8a..5c122398cc2e 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -258,6 +258,10 @@  static struct dt_node *add_xscom_node(uint64_t base, uint32_t hw_id,
 		dt_add_property_strings(node, "compatible",
 					"ibm,xscom", "ibm,power8-xscom");
 		break;
+	case proc_gen_p9:
+		dt_add_property_strings(node, "compatible",
+					"ibm,xscom", "ibm,power9-xscom");
+		break;
 	default:
 		dt_add_property_strings(node, "compatible", "ibm,xscom");
 	}
@@ -578,6 +582,9 @@  static void add_chiptod_node(unsigned int chip_id, int flags)
 	case proc_gen_p8:
 		compat_str = "ibm,power8-chiptod";
 		break;
+	case proc_gen_p9:
+		compat_str = "ibm,power9-chiptod";
+		break;
 	default:
 		return;
 	}