summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2017-06-26 16:54:31 +0000
committervisa <visa@openbsd.org>2017-06-26 16:54:31 +0000
commit21b50dc56f4a75ace455403edbb1cec7aeb4ca5e (patch)
tree64abceb7d52405725482dfa5fec1b4ef39576833
parentnote.ABI-tag and .MIPS.options are not needed anymore when (diff)
downloadwireguard-openbsd-21b50dc56f4a75ace455403edbb1cec7aeb4ca5e.tar.xz
wireguard-openbsd-21b50dc56f4a75ace455403edbb1cec7aeb4ca5e.zip
Arrange a phandle for the "ciu" node.
-rw-r--r--sys/arch/octeon/octeon/cn3xxx.dts5
-rw-r--r--sys/arch/octeon/octeon/cn3xxx_dts.S34
2 files changed, 32 insertions, 7 deletions
diff --git a/sys/arch/octeon/octeon/cn3xxx.dts b/sys/arch/octeon/octeon/cn3xxx.dts
index 0bd2076770b..b9aa29e50d8 100644
--- a/sys/arch/octeon/octeon/cn3xxx.dts
+++ b/sys/arch/octeon/octeon/cn3xxx.dts
@@ -1,4 +1,4 @@
-/* $OpenBSD: cn3xxx.dts,v 1.1 2017/04/24 13:54:28 visa Exp $ */
+/* $OpenBSD: cn3xxx.dts,v 1.2 2017/06/26 16:54:31 visa Exp $ */
/*
* Copyright (c) 2017 Visa Hankala
@@ -40,11 +40,12 @@
soc@0 {
compatible = "simple-bus";
+ interrupt-parent = <&ciu>;
#address-cells = <2>;
#size-cells = <2>;
ranges;
- ciu@1070000000000 {
+ ciu: ciu@1070000000000 {
compatible = "cavium,octeon-3860-ciu";
interrupt-controller;
#interrupt-cells = <2>;
diff --git a/sys/arch/octeon/octeon/cn3xxx_dts.S b/sys/arch/octeon/octeon/cn3xxx_dts.S
index aec0a3ca1f7..2ba4a2ea160 100644
--- a/sys/arch/octeon/octeon/cn3xxx_dts.S
+++ b/sys/arch/octeon/octeon/cn3xxx_dts.S
@@ -79,6 +79,12 @@ _dt_struct_start:
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x04
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x2c
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01
+ .balign 4, 0
+ /* FDT_PROP */
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x04
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x06
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02
.balign 4, 0
@@ -91,8 +97,10 @@ _dt_struct_start:
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00
- .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x2c
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x3d
.balign 4, 0
+ .globl ciu
+ciu:
/* FDT_BEGIN_NODE */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01
.string "ciu@1070000000000"
@@ -113,25 +121,39 @@ _dt_struct_start:
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00
- .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x33
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x44
.balign 4, 0
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x04
- .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x48
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x59
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02
.balign 4, 0
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x10
- .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x59
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x6a
.byte 0x00; .byte 0x01; .byte 0x07; .byte 0x00
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00
.byte 0x00; .byte 0x00; .byte 0x70; .byte 0x00
.balign 4, 0
+ /* FDT_PROP */
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x04
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x6e
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01
+ .balign 4, 0
+ /* FDT_PROP */
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x04
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x74
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01
+ .balign 4, 0
/* FDT_END_NODE */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02
+ .globl ciu_end
+ciu_end:
/* FDT_BEGIN_NODE */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01
.string "mdio@1180000001800"
@@ -162,7 +184,7 @@ _dt_struct_start:
/* FDT_PROP */
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x10
- .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x59
+ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x6a
.byte 0x00; .byte 0x01; .byte 0x18; .byte 0x00
.byte 0x00; .byte 0x00; .byte 0x18; .byte 0x00
.byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00
@@ -186,10 +208,12 @@ _dt_strings_start:
.string "#address-cells"
.string "#size-cells"
.string "compatible"
+ .string "interrupt-parent"
.string "ranges"
.string "interrupt-controller"
.string "#interrupt-cells"
.string "reg"
+ .string "linux,phandle"
.globl dt_strings_end
dt_strings_end:
_dt_strings_end: