summaryrefslogtreecommitdiff
path: root/Platform/ARM/JunoPkg/ConfigurationManager/PlatformASLTablesLib/SsdtJunoUsb.asl
blob: b5dfb07dfbbff26967e099f3acd61d3bcb179e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/** @file
  SSDT for Juno USB

  Copyright (c) 2014-2017, ARM Ltd. All rights reserved.<BR>
    This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#include "ArmPlatform.h"

DefinitionBlock("SsdtJunoUSB.aml", "SSDT", 1, "ARMLTD", "ARM-JUNO", EFI_ACPI_ARM_OEM_REVISION) {
  Scope(_SB) {

    //
    // USB EHCI Host Controller
    //
    Device(USB0) {
      Name(_HID, "ARMH0D20")
      Name(_CID, "PNP0D20")
      Name(_UID, 2)

      Name(_CCA, ZERO)   // Cache-incoherent bus-master

      Method(_CRS, 0x0, Serialized){
        Name(RBUF, ResourceTemplate(){
          Memory32Fixed(ReadWrite, 0x7FFC0000, 0x000000B0)                // 0x7FFC0000 is the Juno SoC USB EHCI controller base address
          Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive) {149} // INT ID=149 GIC IRQ ID=117 for Juno SoC USB EHCI Controller
        })
        Return(RBUF)
      }

      //
      // Root Hub
      //
      Device(RHUB) {
        Name(_ADR, Zero)  // Address of Root Hub should be 0 as per ACPI 5.0 spec

        //
        // Ports connected to Root Hub
        //
        Device(HUB1) {
          Name(_ADR, One)
          Name(_UPC, Package(){
            Zero,       // Port is NOT connectable
            0xFF,       // Don't care
            Zero,       // Reserved 0 must be zero
            Zero        // Reserved 1 must be zero
          })

          Device(PRT1) {
            Name(_ADR, One)
            Name(_UPC, Package(){
              0xFF,        // Port is connectable
              Zero,        // Port connector is A
              Zero,
              Zero
            })
            Name(_PLD, Package(One) {
              Buffer(0x10){
                0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
              }
            })
          } // USB0_RHUB_HUB1_PRT1
          Device(PRT2) {
            Name(_ADR, 0x00000002)
            Name(_UPC, Package() {
              0xFF,        // Port is connectable
              Zero,        // Port connector is A
              Zero,
              Zero
            })
            Name(_PLD, Package(One) {
              Buffer(0x10){
                0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
              }
            })
          } // USB0_RHUB_HUB1_PRT2

          Device(PRT3) {
            Name(_ADR, 0x00000003)
            Name(_UPC, Package() {
              0xFF,        // Port is connectable
              Zero,        // Port connector is A
              Zero,
              Zero
            })
            Name(_PLD, Package(One) {
              Buffer(0x10){
                0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
              }
            })
          } // USB0_RHUB_HUB1_PRT3

          Device(PRT4) {
            Name(_ADR, 0x00000004)
            Name(_UPC, Package(){
              0xFF,        // Port is connectable
              Zero,        // Port connector is A
              Zero,
              Zero
            })
            Name(_PLD, Package(One) {
              Buffer(0x10){
                0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
              }
            })
          } // USB0_RHUB_HUB1_PRT4
        } // USB0_RHUB_HUB1
      } // USB0_RHUB
    } // USB0
  }
}