1 /**************************************************************************;
4 ;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5 ;* Family of Customer Reference Boards. *;
8 ;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;
10 ; SPDX-License-Identifier: BSD-2-Clause-Patent
14 ;**************************************************************************/
17 Name (_HID, "INT3396")
18 Name(_CID, 0x800dd041)
21 // Indicates if the platform PEP has loaded
24 // Devices score-boarded by the PEP, Rev0 format
25 Name (DEVS, Package() {0})
27 // Devices score-boarded by the PEP, Rev1 format
30 Package () {"\\_SB.PCI0.XHC1", 0x1},
31 Package () {"\\_SB.PCI0.EHC1", 0x1},
32 Package () {"\\_SB.PCI0.GFX0", 0x1},
33 Package () {"\\_SB.PCI0.GFX0.ISP0", 0x1},
34 Package () {"\\_SB.PCI0.SEC0", 0x1},
35 Package () {"\\_SB.I2C1", 0x1},
36 Package () {"\\_SB.I2C2", 0x1},
37 Package () {"\\_SB.I2C3", 0x1},
38 Package () {"\\_SB.I2C4", 0x1},
39 Package () {"\\_SB.I2C5", 0x1},
40 Package () {"\\_SB.I2C6", 0x1},
41 Package () {"\\_SB.I2C7", 0x1},
42 Package () {"\\_SB.SDHA", 0x1},
43 Package () {"\\_SB.SDHB", 0x1},
44 Package () {"\\_SB.SDHC", 0x1},
45 Package () {"\\_SB.SPI1", 0x1},
46 Package () {"\\_SB.URT1", 0x1},
47 Package () {"\\_SB.URT2", 0x1},
49 // Crashdump device package
50 Name(CDMP, Package(2) {})
51 // Device dependency for uPEP
54 Package() {"\\_PR.CPU0", 0x1, Package() {Package() {0xFF, 0}}},
55 Package() {"\\_PR.CPU1", 0x1, Package() {Package() {0xFF, 0}}},
56 Package() {"\\_PR.CPU2", 0x1, Package() {Package() {0xFF, 0}}},
57 Package() {"\\_PR.CPU3", 0x1, Package() {Package() {0xFF, 0}}},
58 Package() {"\\_SB.I2C1", 0x1, Package() {Package() {0xFF,3}}},
59 Package() {"\\_SB.I2C2", 0x1, Package() {Package() {0xFF,3}}},
60 Package() {"\\_SB.I2C3", 0x1, Package() {Package() {0xFF,3}}},
61 Package() {"\\_SB.I2C4", 0x1, Package() {Package() {0xFF,3}}},
62 Package() {"\\_SB.I2C5", 0x1, Package() {Package() {0xFF,3}}},
63 Package() {"\\_SB.I2C6", 0x1, Package() {Package() {0xFF,3}}},
64 Package() {"\\_SB.I2C7", 0x1, Package() {Package() {0xFF,3}}},
65 Package() {"\\_SB.PCI0.GFX0", 0x1, Package() {Package() {0xFF,3}}},
66 Package() {"\\_SB.PCI0.SEC0", 0x1, Package() {Package() {0xFF,3}}},
67 Package() {"\\_SB.PCI0.XHC1", 0x1, Package() {Package() {0xFF,3}}},
68 Package() {"\\_SB.PCI0.GFX0.ISP0", 0x1, Package() {Package() {0xFF,3}}},
69 Package() {"\\_SB.LPEA", 0x1, Package() {Package() {0x0,3}, Package() {0x1,0}, Package() {0x2,3}, Package() {0x3,3}}},
70 Package() {"\\_SB.SDHA", 0x1, Package() {Package() {0xFF,3}}},
71 Package() {"\\_SB.SDHB", 0x1, Package() {Package() {0xFF,3}}},
72 Package() {"\\_SB.SDHC", 0x1, Package() {Package() {0xFF,3}}},
73 Package() {"\\_SB.SPI1", 0x1, Package() {Package() {0xFF,3}}},
74 Package() {"\\_SB.URT1", 0x1, Package() {Package() {0xFF,3}}},
75 Package() {"\\_SB.URT2", 0x1, Package() {Package() {0xFF,3}}}
77 // BCCD crashdump information
85 Package() { Package() {0, 32, 0, 3, 0xFFFFFFFFFFFFFFFF}, Package() {0xFFFFFFFC, 0x0, 0x4}, 0}
90 Method(_STA, 0x0, NotSerialized)
95 Method(_DSM, 0x4, Serialized)
97 If(LEqual(Arg0,ToUUID("B8FEBFE0-BAF8-454b-AECD-49FB91137B21")))
100 // Number of fn IDs supported
101 If(LEqual(Arg2, Zero))
110 If(LEqual(Arg2, One))
116 // Mitigation devices
117 If(LEqual(Arg2, 0x2))
119 If(LEqual(Arg1, 0x0))
124 If(LEqual(Arg1, 0x1))
131 // Crashdump device data
132 If(LEqual(Arg2, 0x3))
134 Store("\\_SB.SDHA", Index(CDMP,0))
135 Store(EM1A, Index(CDMP,1))
139 // New UUID for built-in uPEP
140 If(LEqual(Arg0,ToUUID("C4EB40A0-6CD2-11E2-BCFD-0800200C9A66")))
143 // Number of fn IDs supported
144 If(LEqual(Arg2, Zero))
151 // LPI device dependencies
152 If(LEqual(Arg2, 0x1))
156 // Crashdump device data
157 If(LEqual(Arg2, 0x2))
160 Add(Local0, 0x84, Local0)
161 Store(Local0, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(BCCD, Zero, )), One, )), Zero, )), Zero, )), 0x4, ))
176 Name (_HID, "80860F14")
177 Name (_CID, "PNP0D40")
178 Name (_DDN, "Intel(R) eMMC Controller - 80860F14")
180 Name(_DEP, Package(0x1)
185 Name (RBF1, ResourceTemplate ()
187 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)
188 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {45} // eMMC 4.41 IRQ
191 Method (_CRS, 0x0, NotSerialized)
193 // Update the Base address for BAR0 of eMMC 4.41
194 CreateDwordField(^RBF1, ^BAR0._BAS, B0B1)
195 CreateDwordField(^RBF1, ^BAR0._LEN, B0L1)
200 Method (_STA, 0x0, NotSerialized)
203 // PCIM>> 0:ACPI mode 1:PCI mode
204 // SD1D>> 0:eMMC 4.41 enable 1:eMMC 4.41 disable
206 If (LAnd(LEqual(PCIM, 0), LEqual(SD1D, 0)))
217 Method (_PS3, 0, NotSerialized)
219 OR(PSAT, 0x00000003, PSAT)
220 OR(PSAT, 0X00000000, PSAT)
222 // If not B1, still keep 2 ms w/a
224 If(LLess(SOCS, 0x03))
229 Method (_PS0, 0, NotSerialized)
231 And(PSAT, 0xfffffffC, PSAT)
232 OR(PSAT, 0X00000000, PSAT)
234 // If not B1, still keep 2 ms w/a
236 If(LLess(SOCS, 0x03))
242 OperationRegion (KEYS, SystemMemory, eM1A, 0x100)
243 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
249 Method (_DIS, 0x0, NotSerialized)
251 //Adding dummy disable methods for device EMM0
256 Name (_ADR, 0x00000008) // Slot 0, Function 8
257 Method (_RMV, 0, NotSerialized)
271 Name (_HID, "80860F14")
272 Name (_CID, "PNP0D40")
273 Name (_DDN, "Intel(R) eMMC Controller - 80860F14")
275 Name(_DEP, Package(0x1)
280 Name (RBF1, ResourceTemplate ()
282 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)
283 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {44} // eMMC 4.5 IRQ
285 Method (_CRS, 0x0, NotSerialized)
287 CreateDwordField(^RBF1, ^BAR0._BAS, B0B1)
288 CreateDwordField(^RBF1, ^BAR0._LEN, B0L1)
293 Method (_STA, 0x0, NotSerialized)
296 // PCIM>> 0:ACPI mode 1:PCI mode
297 // HSID>> 0:eMMC 4.5 enable 1:eMMC 4.5 disable
299 If (LAnd(LEqual(PCIM, 0), LEqual(HSID, 0)))
310 Method (_PS3, 0, NotSerialized)
312 OR(PSAT, 0x00000003, PSAT)
313 OR(PSAT, 0X00000000, PSAT)
315 // If not B1, still keep 2 ms w/a
317 If(LLess(SOCS, 0x03))
322 Method (_PS0, 0, NotSerialized)
324 And(PSAT, 0xfffffffC, PSAT)
325 OR(PSAT, 0X00000000, PSAT)
327 // If not B1, still keep 2 ms w/a
329 If(LLess(SOCS, 0x03))
335 OperationRegion (KEYS, SystemMemory, eM1A, 0x100)
336 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
342 Method (_DIS, 0x0, NotSerialized)
344 //Adding dummy disable methods for device EMM0
349 Name (_ADR, 0x00000008) // Slot 0, Function 8
350 Method (_RMV, 0, NotSerialized)
364 Name (_HID, "INT33BB")
365 Name (_CID, "PNP0D40")
366 Name (_DDN, "Intel(R) SDIO Controller - 80860F15")
369 Name(_DEP, Package(0x01)
375 Name (RBUF, ResourceTemplate ()
377 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)
378 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {46} // SDIO IRQ
381 Method (_CRS, 0x0, NotSerialized)
384 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)
385 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)
390 Method (_STA, 0x0, NotSerialized)
392 If (LLessEqual(STEP, 0x04))
399 // PCIM>> 0:ACPI mode 1:PCI mode
401 If (LEqual(PCIM, 1)) {
405 If (LOr(LEqual(SI0A, 0), LEqual(SD2D, 1)))
411 Method (_DIS, 0x0, NotSerialized)
413 //Adding dummy disable methods for device EMM0
416 Method (_PS3, 0, NotSerialized)
418 OR(PSAT, 0x00000003, PSAT)
419 OR(PSAT, 0X00000000, PSAT)
421 Method (_PS0, 0, NotSerialized)
423 And(PSAT, 0xfffffffC, PSAT)
424 OR(PSAT, 0X00000000, PSAT)
426 if(LEqual(\_SB.SDHB.PSTS,0x0))
428 if(LEqual (\_SB.GPO2.AVBL, 1))
430 Store( 0x01, \_SB.GPO2.WFD3 ) // WL_WIFI_REQ_ON = 1 put the device to normal state
431 Store( 0x01, \_SB.SDHB.PSTS) // indicates that the device powered ON
437 OperationRegion (KEYS, SystemMemory, SI1A, 0x100)
438 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
447 Name (_ADR, 0x01) //SlotNumber + Function
448 Name (_DEP, Package() {\_SB.GPO2})
450 Method (_RMV, 0, NotSerialized)
454 Name (_PRW, Package() {0, 0})
457 Method (_CRS, 0, Serialized)
459 Name (RBUF, ResourceTemplate ()
461 Interrupt (ResourceConsumer, Edge, ActiveHigh, ExclusiveAndWake, , , ) {73}
466 Method (_PS3, 0, NotSerialized)
468 if(LEqual (\_SB.GPO2.AVBL, 1))
470 Store( 0x00, \_SB.GPO2.WFD3 ) // WL_WIFI_REQ_ON = 0 puts the device in reset state
471 Store( 0x00, \_SB.SDHB.PSTS) //Indicates that the device is powered off
475 Method (_PS0, 0, NotSerialized)
477 if(LEqual(\_SB.SDHB.PSTS,0x0))
479 if(LEqual (\_SB.GPO2.AVBL, 1))
481 Store( 0x01, \_SB.GPO2.WFD3 ) // WL_WIFI_REQ_ON = 1 put the device to normal state
482 Store( 0x01, \_SB.SDHB.PSTS) // indicates that the device powered ON
488 // Secondary Broadcom WIFI function
492 Name(_ADR, 0x2) // function 2
495 // The device is not removable. This must be a method.
497 Method(_RMV, 0x0, NotSerialized)
503 // Describe a vendor-defined connection between this device and the
504 // primary wifi device
509 Name(NAM, Buffer() {"\\_SB.SDHB.BRCM"})
512 0x8E, // SPB Descriptor
513 0x18, 0x00, // Length including NAM above
514 0x01, // +0x00 SPB Descriptor Revision
515 0x00, // +0x01 Resource Source Index
516 0xc0, // +0x02 Bus type - vendor defined
517 0x02, // +0x03 Consumer + controller initiated
518 0x00, 0x00, // +0x04 Type specific flags
519 0x01, // +0x06 Type specific revision
520 0x00, 0x00 // +0x07 type specific data length
521 // +0x09 - 0xf bytes for NULL-terminated NAM
525 Name(END, Buffer() {0x79, 0x00})
526 Concatenate(SPB, NAM, Local0)
527 Concatenate(Local0, END, Local1)
540 Name (_HID, "80860F16")
541 Name (_CID, "PNP0D40")
542 Name (_DDN, "Intel(R) SD Card Controller - 80860F16")
544 Name(_DEP, Package(0x01)
548 Name (RBUF, ResourceTemplate ()
550 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)
551 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {47} // SD Card IRQ
553 Method (_CRS, 0x0, NotSerialized)
555 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)
556 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)
561 Method (_STA, 0x0, NotSerialized)
564 // PCIM>> 0:ACPI mode 1:PCI mode
566 If (LEqual(PCIM, 1)) {
570 If (LOr(LEqual(SD0A, 0), LEqual(SD3D, 1)))
577 Method (_PS3, 0, NotSerialized)
579 OR(PSAT, 0x00000003, PSAT)
580 OR(PSAT, 0X00000000, PSAT)
582 Method (_PS0, 0, NotSerialized)
584 And(PSAT, 0xfffffffC, PSAT)
585 OR(PSAT, 0X00000000, PSAT)
587 OperationRegion (KEYS, SystemMemory, SD1A, 0x100)
588 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
596 Name (_ADR, 0x00000008)
597 Method(_RMV, 0x0, NotSerialized)
599 // SDRM = 0 non-removable;