1 /** @file 2 Differentiated System Description Table Fields (DSDT) 3 4 Copyright (c) 2014, ARM Ltd. All rights reserved.<BR> 5 Copyright (c) 2015-2016, Hisilicon Limited. All rights reserved.<BR> 6 Copyright (c) 2015-2016, Linaro Limited. All rights reserved.<BR> 7 This program and the accompanying materials 8 are licensed and made available under the terms and conditions of the BSD License 9 which accompanies this distribution. The full text of the license may be found at 10 http://opensource.org/licenses/bsd-license.php 11 12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 14 15 **/ 16 17 Scope(_SB) 18 { 19 Device(SAS0) { 20 Name(_HID, "HISI0162") 21 Name(_CCA, 1) 22 Name(_CRS, ResourceTemplate() { 23 Memory32Fixed(ReadWrite, 0xC3000000, 0x10000) 24 Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI2") 25 { 26 64,65,66,67,68, 27 69,70,71,72,73, 28 74,75,76,77,78, 29 79,80,81,82,83, 30 84,85,86,87,88, 31 89,90,91,92,93, 32 94,95,96,97,98, 33 99,100,101,102,103, 34 104,105,106,107,108, 35 109,110,111,112,113, 36 114,115,116,117,118, 37 119,120,121,122,123, 38 124,125,126,127,128, 39 129,130,131,132,133, 40 134,135,136,137,138, 41 139,140,141,142,143, 42 144,145,146,147,148, 43 149,150,151,152,153, 44 154,155,156,157,158, 45 159, 46 } 47 48 Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, 0, "\\_SB.MBI2") 49 { 50 601,602,603,604, 51 605,606,607,608,609, 52 610,611,612,613,614, 53 615,616,617,618,619, 54 620,621,622,623,624, 55 625,626,627,628,629, 56 630,631,632, 57 } 58 }) 59 60 Name (_DSD, Package () { 61 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 62 Package () { 63 Package (2) {"sas-addr", Package() {50, 01, 88, 20, 16, 00, 00, 0x00}}, 64 Package () {"queue-count", 16}, 65 Package () {"phy-count", 8}, 66 } 67 }) 68 69 OperationRegion (CTL, SystemMemory, 0xC0000000, 0x10000) 70 Field (CTL, AnyAcc, NoLock, Preserve) 71 { 72 Offset (0x338), 73 CLK, 32, 74 CLKD, 32, 75 Offset (0xa60), 76 RST, 32, 77 DRST, 32, 78 Offset (0x5a30), 79 STS, 32, 80 } 81 82 Method (_RST, 0x0, Serialized) 83 { 84 Store(0x7ffff, RST) 85 Store(0x7ffff, CLKD) 86 Sleep(1) 87 Store(0x7ffff, DRST) 88 Store(0x7ffff, CLK) 89 Sleep(1) 90 } 91 } 92 93 Device(SAS1) { 94 Name(_HID, "HISI0162") 95 Name(_CCA, 1) 96 Name(_CRS, ResourceTemplate() { 97 Memory32Fixed(ReadWrite, 0xA2000000, 0x10000) 98 99 Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI3") 100 { 101 64,65,66,67,68, 102 69,70,71,72,73, 103 74,75,76,77,78, 104 79,80,81,82,83, 105 84,85,86,87,88, 106 89,90,91,92,93, 107 94,95,96,97,98, 108 99,100,101,102,103, 109 104,105,106,107,108, 110 109,110,111,112,113, 111 114,115,116,117,118, 112 119,120,121,122,123, 113 124,125,126,127,128, 114 129,130,131,132,133, 115 134,135,136,137,138, 116 139,140,141,142,143, 117 144,145,146,147,148, 118 149,150,151,152,153, 119 154,155,156,157,158, 120 159, 121 } 122 123 Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, 0, "\\_SB.MBI3") 124 { 125 576,577,578,579,580, 126 581,582,583,584,585, 127 586,587,588,589,590, 128 591,592,593,594,595, 129 596,597,598,599,600, 130 601,602,603,604,605, 131 606,607, 132 } 133 }) 134 135 Name (_DSD, Package () { 136 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 137 Package () { 138 Package (2) {"sas-addr", Package() {50, 01, 88, 20, 16, 00, 00, 00}}, 139 Package () {"queue-count", 16}, 140 Package () {"phy-count", 8}, 141 Package () {"hip06-sas-v2-quirk-amt", 1}, 142 } 143 }) 144 145 OperationRegion (CTL, SystemMemory, 0xA0000000, 0x10000) 146 Field (CTL, AnyAcc, NoLock, Preserve) 147 { 148 Offset (0x318), 149 CLK, 32, 150 CLKD, 32, 151 Offset (0xa18), 152 RST, 32, 153 DRST, 32, 154 Offset (0x5a0c), 155 STS, 32, 156 } 157 158 Method (_RST, 0x0, Serialized) 159 { 160 Store(0x7ffff, RST) 161 Store(0x7ffff, CLKD) 162 Sleep(1) 163 Store(0x7ffff, DRST) 164 Store(0x7ffff, CLK) 165 Sleep(1) 166 } 167 } 168 169 Device(SAS2) { 170 Name(_HID, "HISI0162") 171 Name(_CCA, 1) 172 Name(_CRS, ResourceTemplate() { 173 Memory32Fixed(ReadWrite, 0xA3000000, 0x10000) 174 175 Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI4") 176 { 177 192,193,194,195,196, 178 197,198,199,200,201, 179 202,203,204,205,206, 180 207,208,209,210,211, 181 212,213,214,215,216, 182 217,218,219,220,221, 183 222,223,224,225,226, 184 227,228,229,230,231, 185 232,233,234,235,236, 186 237,238,239,240,241, 187 242,243,244,245,246, 188 247,248,249,250,251, 189 252,253,254,255,256, 190 257,258,259,260,261, 191 262,263,264,265,266, 192 267,268,269,270,271, 193 272,273,274,275,276, 194 277,278,279,280,281, 195 282,283,284,285,286, 196 287, 197 } 198 199 Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, 0, "\\_SB.MBI4") 200 { 201 608,609,610,611, 202 612,613,614,615,616, 203 617,618,619,620,621, 204 622,623,624,625,626, 205 627,628,629,630,631, 206 632,633,634,635,636, 207 637,638,639, 208 } 209 }) 210 211 Name (_DSD, Package () { 212 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 213 Package () { 214 Package (2) {"sas-addr", Package() {50, 01, 88, 20, 16, 00, 00, 00}}, 215 Package () {"queue-count", 16}, 216 Package () {"phy-count", 8}, 217 } 218 }) 219 220 OperationRegion (CTL, SystemMemory, 0xA0000000, 0x10000) 221 Field (CTL, AnyAcc, NoLock, Preserve) 222 { 223 Offset (0x3a8), 224 CLK, 32, 225 CLKD, 32, 226 Offset (0xae0), 227 RST, 32, 228 DRST, 32, 229 Offset (0x5a70), 230 STS, 32, 231 } 232 233 Method (_RST, 0x0, Serialized) 234 { 235 Store(0x7ffff, RST) 236 Store(0x7ffff, CLKD) 237 Sleep(1) 238 Store(0x7ffff, DRST) 239 Store(0x7ffff, CLK) 240 Sleep(1) 241 } 242 } 243 244 } 245