hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
/** @file
  Differentiated System Description Table Fields (DSDT)
 
  Copyright (c) 2014, ARM Ltd. All rights reserved.<BR>
  Copyright (c) 2015-2016, Hisilicon Limited. All rights reserved.<BR>
  Copyright (c) 2015-2016, Linaro Limited. All rights reserved.<BR>
    SPDX-License-Identifier: BSD-2-Clause-Patent
 
  Based on the files under ArmPlatformPkg/ArmJunoPkg/AcpiTables/
 
**/
 
//#include "ArmPlatform.h"
Scope(_SB)
{
  Device (USB0)
  {
    Name (_HID, "PNP0D20")  // _HID: Hardware ID
    Name (_CID, "HISI0D2" /* EHCI USB Controller without debug */)  // _CID: Compatible ID
    Name (_CCA, One)  // _CCA: Cache Coherency Attribute
    Method (_CRS, 0, Serialized)  // _CRS: Current Resource Settings
    {
      Name (RBUF, ResourceTemplate ()
      {
        Memory32Fixed (ReadWrite,
            0xa7020000,         // Address Base
            0x00010000,         // Address Length
            )
        Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI5")
        {
          641,
        }
      })
      Return (RBUF) /* \_SB_.USB0._CRS.RBUF */
    }
 
    Device (RHUB)
    {
      Name (_ADR, Zero)  // _ADR: Address
      Device (PRT1)
      {
        Name (_ADR, One)  // _ADR: Address
        Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
        {
          0xFF,
          Zero,
          Zero,
          Zero
        })
        Name (_PLD, Package (0x01)  // _PLD: Physical Location of Device
        {
          ToPLD (
            PLD_Revision       = 0x1,
            PLD_IgnoreColor    = 0x1,
            PLD_Red            = 0x0,
            PLD_Green          = 0x0,
            PLD_Blue           = 0x0,
            PLD_Width          = 0x0,
            PLD_Height         = 0x0,
            PLD_UserVisible    = 0x1,
            PLD_Dock           = 0x0,
            PLD_Lid            = 0x0,
            PLD_Panel          = "UNKNOWN",
            PLD_VerticalPosition = "UPPER",
            PLD_HorizontalPosition = "LEFT",
            PLD_Shape          = "UNKNOWN",
            PLD_GroupOrientation = 0x0,
            PLD_GroupToken     = 0x0,
            PLD_GroupPosition  = 0x0,
            PLD_Bay            = 0x0,
            PLD_Ejectable      = 0x0,
            PLD_EjectRequired  = 0x0,
            PLD_CabinetNumber  = 0x0,
            PLD_CardCageNumber = 0x0,
            PLD_Reference      = 0x0,
            PLD_Rotation       = 0x0,
            PLD_Order          = 0x0,
            PLD_VerticalOffset = 0x0,
            PLD_HorizontalOffset = 0x0)
        })
      }
 
      Device (PRT2)
      {
        Name (_ADR, 0x02)  // _ADR: Address
        Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
        {
          Zero,
          0xFF,
          Zero,
          Zero
        })
      }
 
      Device (PRT3)
      {
        Name (_ADR, 0x03)  // _ADR: Address
        Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
        {
          Zero,
          0xFF,
          Zero,
          Zero
        })
      }
 
      Device (PRT4)
      {
        Name (_ADR, 0x04)  // _ADR: Address
        Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
        {
          Zero,
          0xFF,
          Zero,
          Zero
        })
      }
    }
  }
}