diff options
author | Michael Neuling <mikey@neuling.org> | 2018-06-07 16:54:31 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-06-15 14:26:39 +1000 |
commit | c205171a83ee0d4c46505b5ca5dbc5cbd5d86072 (patch) | |
tree | 798bb415ecbf19294c125394128e900719ef38df /p8-host.dts.m4 | |
parent | 7056341aa1b7eefb9bbca56674bb2ab88db11a19 (diff) | |
download | pdbg-c205171a83ee0d4c46505b5ca5dbc5cbd5d86072.tar.gz pdbg-c205171a83ee0d4c46505b5ca5dbc5cbd5d86072.zip |
host: Handle more chips
Tuletta can have 2 x DCMs where chip ids end up as 0,1,16,17
Signed-off-by: Michael Neuling <mikey@neuling.org>
Diffstat (limited to 'p8-host.dts.m4')
-rw-r--r-- | p8-host.dts.m4 | 62 |
1 files changed, 42 insertions, 20 deletions
diff --git a/p8-host.dts.m4 b/p8-host.dts.m4 index ed88a55..aef7e93 100644 --- a/p8-host.dts.m4 +++ b/p8-host.dts.m4 @@ -1,27 +1,49 @@ +define(`CHIP',`pib@$1 { + #address-cells = <0x2>; + #size-cells = <0x1>; + compatible = "ibm,host-pib"; + reg = <$1>; + chip-id = <$1>; + index = <$1>; + include(p8-pib.dts.m4)dnl + }')dnl + /dts-v1/; / { #address-cells = <0x1>; #size-cells = <0x0>; - /* Host based debugfs access */ - pib@0 { - #address-cells = <0x2>; - #size-cells = <0x1>; - compatible = "ibm,host-pib"; - reg = <0x0>; - chip-id = <0x0>; - index = <0x0>; - include(p8-pib.dts.m4)dnl - }; - - pib@8 { - #address-cells = <0x2>; - #size-cells = <0x1>; - compatible = "ibm,host-pib"; - reg = <0x8>; - chip-id = <0x8>; - index = <0x1>; - include(p8-pib.dts.m4)dnl - }; + CHIP(0); + CHIP(1); + CHIP(2); + CHIP(3); + CHIP(4); + CHIP(5); + CHIP(6); + CHIP(7); + CHIP(8); + CHIP(9); + CHIP(10); + CHIP(11); + CHIP(12); + CHIP(13); + CHIP(14); + CHIP(15); + CHIP(16); + CHIP(17); + CHIP(18); + CHIP(19); + CHIP(20); + CHIP(21); + CHIP(22); + CHIP(23); + CHIP(24); + CHIP(25); + CHIP(26); + CHIP(27); + CHIP(28); + CHIP(29); + CHIP(30); + CHIP(31); }; |