diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-07-14 23:03:10 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 00:58:02 -0400 |
commit | b37193b71846858d816e152d3a5db010d7b73f5e (patch) | |
tree | 9200250b777ee9f8a9133f15810a4a65e6abc877 /arch/powerpc/include/asm/prom.h | |
parent | cc0efb57ebf04e066a57aa975c8a38884e603123 (diff) |
powerpc/powernv: Add helper to get ibm,chip-id of a node
This includes walking the parent nodes if necessary.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/prom.h')
-rw-r--r-- | arch/powerpc/include/asm/prom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h index bc2da154f68b..3bac73ecc349 100644 --- a/arch/powerpc/include/asm/prom.h +++ b/arch/powerpc/include/asm/prom.h | |||
@@ -58,6 +58,8 @@ static inline int of_node_to_nid(struct device_node *device) { return 0; } | |||
58 | 58 | ||
59 | extern void of_instantiate_rtc(void); | 59 | extern void of_instantiate_rtc(void); |
60 | 60 | ||
61 | extern int of_get_ibm_chip_id(struct device_node *np); | ||
62 | |||
61 | /* The of_drconf_cell struct defines the layout of the LMB array | 63 | /* The of_drconf_cell struct defines the layout of the LMB array |
62 | * specified in the device tree property | 64 | * specified in the device tree property |
63 | * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory | 65 | * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory |