123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624 |
- /*++
- Copyright (c) 2015 Minoca Corp. All Rights Reserved.
- Module Name:
- dsdt.dsl
- Abstract:
- This module implements the ACPI Differentiated System Descriptor Table
- (DSDT) for the Texas Instruments PandaBoard.
- Author:
- Evan Green 10-Jul-2015
- Environment:
- Firmware
- --*/
- //
- // --------------------------------------------------------------------- Tables
- //
- DefinitionBlock (
- "dsdt.aml",
- "DSDT",
- 0x01,
- "Minoca",
- "Minoca ",
- 0x1
- )
- {
- Scope(\_SB) {
- Device(DWC0) {
- Name(_HID, EISAID("DWC0000"))
- Name(_UID, 0)
- //
- // Define the operation region to access the DWC configuration
- // space.
- //
- OperationRegion(DWCR, SystemMemory, 0xFF580000, 0x104)
- Field(DWCR, DWordAcc, NoLock, Preserve) {
- Offset(0x8),
- SKP1, 1,
- AHBB, 3,
- AHBW, 1,
- Offset(0xC),
- SKP2, 8,
- USRP, 1,
- UHNP, 1,
- Offset(0x24),
- RXFS, 16,
- Offset(0x28),
- NPFO, 16,
- NPFS, 16,
- Offset(0x100),
- PDFO, 16,
- PDFS, 16,
- }
- //
- // Set the AHB configuration register to have a burst length of 16,
- // the receive FIFO to 516 bytes, the non-periodic transmit FIFO to
- // 128 bytes, and the periodic transmit FIFO to 256 bytes. The
- // Veyron's DWC USB controller allows dynamic FIFO sizes and the
- // maximum FIFO depth is greater than the total FIFO sizes
- // programmed here. Despite the Hardware 2 Configuration register's
- // claims that this device supports SRP and HNP, it does not. Also
- // clear those bits in the USB configuration register.
- //
- Method(_INI, 0) {
- Store(0x204, RXFS)
- Store(0x204, NPFO)
- Store(0x80, NPFS)
- Store(0x288, PDFO)
- Store(0x100, PDFS)
- Store(0x0, USRP)
- Store(0x0, UHNP)
- Store(0x7, AHBB)
- Store(0x0, AHBW)
- }
- Method (_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF580000,
- 0xFF590FFF,
- 0x00000000,
- 0x00011000
- )
- Interrupt(, Level, ActiveHigh,) { 55 }
- })
- }
- Device(DWC1) {
- Name(_HID, EISAID("DWC0000"))
- Name(_UID, 0)
- //
- // Define the operation region to access the DWC configuration
- // space.
- //
- OperationRegion(DWCR, SystemMemory, 0xFF540000, 0x104)
- Field(DWCR, DWordAcc, NoLock, Preserve) {
- Offset(0x8),
- SKP1, 1,
- AHBB, 3,
- AHBW, 1,
- Offset(0xC),
- SKP2, 8,
- USRP, 1,
- UHNP, 1,
- Offset(0x24),
- RXFS, 16,
- Offset(0x28),
- NPFO, 16,
- NPFS, 16,
- Offset(0x100),
- PDFO, 16,
- PDFS, 16,
- }
- //
- // Set the AHB configuration register to have a burst length of 16,
- // the receive FIFO to 516 bytes, the non-periodic transmit FIFO to
- // 128 bytes, and the periodic transmit FIFO to 256 bytes. The
- // Veyron's DWC USB controller allows dynamic FIFO sizes and the
- // maximum FIFO depth is greater than the total FIFO sizes
- // programmed here. This controller accurately describes its mode.
- // The USB configuration register does not need modifications.
- //
- Method(_INI, 0) {
- Store(0x204, RXFS)
- Store(0x204, NPFO)
- Store(0x80, NPFS)
- Store(0x288, PDFO)
- Store(0x100, PDFS)
- Store(0x7, AHBB)
- Store(0x0, AHBW)
- }
- Method (_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF540000,
- 0xFF550FFF,
- 0x00000000,
- 0x00011000
- )
- Interrupt(, Level, ActiveHigh,) { 57 }
- })
- }
- Device(GPI0) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF750000,
- 0xFF750FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {113}
- })
- }
- Device(GPI1) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF780000,
- 0xFF780FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {114}
- })
- }
- Device(GPI2) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF790000,
- 0xFF790FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {115}
- })
- }
- Device(GPI3) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7A0000,
- 0xFF7A0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {116}
- })
- }
- Device(GPI4) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7B0000,
- 0xFF7B0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {117}
- })
- }
- Device(GPI5) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7C0000,
- 0xFF7C0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {118}
- })
- }
- Device(GPI6) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7D0000,
- 0xFF7D0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {119}
- })
- }
- Device(GPI7) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7E0000,
- 0xFF7E0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {120}
- })
- }
- Device(GPI8) {
- Name(_HID, "RKC0002")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF7F0000,
- 0xFF7F0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {121}
- })
- }
- Device(SPI0) {
- Name(_HID, "RKC0001")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF110000,
- 0xFF110FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {76}
- })
- }
- Device(I2C0) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF650000,
- 0xFF650FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {92}
- })
- }
- Device(I2C1) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF140000,
- 0xFF140FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {94}
- })
- }
- Device(I2C2) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF660000,
- 0xFF660FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {93}
- })
- }
- Device(I2C3) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF150000,
- 0xFF150FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {95}
- })
- }
- Device(I2C4) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF160000,
- 0xFF160FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {96}
- })
- }
- Device(I2C5) {
- Name(_HID, "RKC0003")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF170000,
- 0xFF170FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {97}
- })
- }
- }
- Scope(\_SB.SPI0) {
- Device(GOEC) {
- Name(_HID, "GOO0001")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- SPISerialBus(0x1, , , 8, , 3000000, ClockPolarityLow,
- ClockPhaseFirst, "\\_SB_SPI0", , ,)
- GpioInt(Level, ActiveLow, Shared, PullUp, ,
- "\\_SB_GPI7") {7}
- })
- }
- }
- Scope(\_SB.I2C0) {
- Device(PMIC) {
- Name(_HID, "RKC0808")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- I2CSerialBus(0x1B, ControllerInitiated, 400000,
- AddressingMode7Bit, "\\_SB_I2C0", , , , )
- GpioInt(Level, ActiveLow, Shared, PullUp, ,
- "\\_SB_GPI0") {4}
- })
- }
- }
- //
- // Define SD and eMMC under the PMIC since it's needed to provide 1.8V
- // switching.
- //
- Scope(\_SB.I2C0.PMIC) {
- Device(SDMC) {
- Name(_HID, "RKC0D40")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF0C0000,
- 0xFF0C0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {64}
- GpioInt(Edge, ActiveLow, Exclusive, PullNone, ,
- "\\_SB_GPI7") {5}
- VendorLong() {
- 0x00, // SubType
- 0x0C, 0x32, 0x39, 0x94, 0xE5, 0x11, 0xFA, 0xC6, // UUID
- 0x0B, 0xBA, 0x12, 0x99, 0x8E, 0xC1, 0x83, 0x04, // UUID
- 0x80, 0xB8, 0x67, 0x23, // FundamentalClock (594MHz)
- 0x05, 0x00, 0x00, 0x00, // LDO
- 0x00, 0x00, 0x76, 0xFF, // CRU
- 0x8C, 0x00, // Clock Select Offset
- 0x00, 0x00, // Clock Select shift
- 0x00, 0x02, 0x00, 0x00, // Control Offset
- }
- })
- }
- Device(EMMC) {
- Name(_HID, "RKC0D40")
- Name(_UID, 0)
- Method(_STA, 0, NotSerialized) {
- Return(0x0F)
- }
- Name(_CRS, ResourceTemplate() {
- DWordMemory(ResourceConsumer, PosDecode, MinFixed, MaxFixed,
- NonCacheable, ReadWrite,
- 0x00000000,
- 0xFF0F0000,
- 0xFF0F0FFF,
- 0x00000000,
- 0x00001000)
- Interrupt(, Level, ActiveHigh,) {67}
- VendorLong() {
- 0x00, // SubType
- 0x0C, 0x32, 0x39, 0x94, 0xE5, 0x11, 0xFA, 0xC6, // UUID
- 0x0B, 0xBA, 0x12, 0x99, 0x8E, 0xC1, 0x83, 0x04, // UUID
- 0x80, 0xB8, 0x67, 0x23, // FundamentalClock (594MHz)
- 0x00, 0x00, 0x00, 0x00, // LDO
- 0x00, 0x00, 0x76, 0xFF, // CRU
- 0x90, 0x00, // Clock Select Offset
- 0x08, 0x00, // Clock Select shift
- 0x18, 0x02, 0x00, 0x00 // Control Offset
- }
- })
- }
- }
- Name(\_S3, Package (0x04) {
- 0x01,
- 0x01,
- Zero,
- Zero
- })
- Name(\_S4, Package (0x04) {
- Zero,
- Zero,
- Zero,
- Zero
- })
- Name(\_S5, Package (0x04) {
- Zero,
- Zero,
- Zero,
- Zero
- })
- }
|