Home | History | Annotate | Download | only in Dsdt
      1 /** @file
      2   Differentiated System Description Table Fields (DSDT)
      3 
      4   Copyright (c) 2014, ARM Ltd. All rights reserved.<BR>
      5   Copyright (c) 2015, Hisilicon Limited. All rights reserved.<BR>
      6   Copyright (c) 2015, 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   Based on the files under ArmPlatformPkg/ArmJunoPkg/AcpiTables/
     16 
     17 **/
     18 
     19 //#include "ArmPlatform.h"
     20 Scope(_SB)
     21 {
     22   Device (USB0)
     23         {
     24             Name (_HID, "PNP0D20")  // _HID: Hardware ID
     25             Name (_CID, "HISI0D2" /* EHCI USB Controller without debug */)  // _CID: Compatible ID
     26             Name (_CCA, One)  // _CCA: Cache Coherency Attribute
     27             Method (_CRS, 0, Serialized)  // _CRS: Current Resource Settings
     28             {
     29                 Name (RBUF, ResourceTemplate ()
     30                 {
     31                     Memory32Fixed (ReadWrite,
     32                         0xa7020000,         // Address Base
     33                         0x00010000,         // Address Length
     34                         )
     35                     Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI0")
     36                     {
     37                         641, //EHCI
     38                     }
     39                 })
     40                 Return (RBUF) /* \_SB_.USB0._CRS.RBUF */
     41             }
     42 
     43      Name (_DSD, Package () {
     44               ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
     45               Package ()
     46               {
     47                   Package () {"interrupt-parent",Package() {\_SB.MBI0}}
     48               }
     49      })
     50 
     51             Device (RHUB)
     52             {
     53                 Name (_ADR, Zero)  // _ADR: Address
     54                 Device (PRT1)
     55                 {
     56                     Name (_ADR, One)  // _ADR: Address
     57                     Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
     58                     {
     59                         0xFF,
     60                         Zero,
     61                         Zero,
     62                         Zero
     63                     })
     64                     Name (_PLD, Package (0x01)  // _PLD: Physical Location of Device
     65                     {
     66                         ToPLD (
     67                             PLD_Revision       = 0x1,
     68                             PLD_IgnoreColor    = 0x1,
     69                             PLD_Red            = 0x0,
     70                             PLD_Green          = 0x0,
     71                             PLD_Blue           = 0x0,
     72                             PLD_Width          = 0x0,
     73                             PLD_Height         = 0x0,
     74                             PLD_UserVisible    = 0x1,
     75                             PLD_Dock           = 0x0,
     76                             PLD_Lid            = 0x0,
     77                             PLD_Panel          = "UNKNOWN",
     78                             PLD_VerticalPosition = "UPPER",
     79                             PLD_HorizontalPosition = "LEFT",
     80                             PLD_Shape          = "UNKNOWN",
     81                             PLD_GroupOrientation = 0x0,
     82                             PLD_GroupToken     = 0x0,
     83                             PLD_GroupPosition  = 0x0,
     84                             PLD_Bay            = 0x0,
     85                             PLD_Ejectable      = 0x0,
     86                             PLD_EjectRequired  = 0x0,
     87                             PLD_CabinetNumber  = 0x0,
     88                             PLD_CardCageNumber = 0x0,
     89                             PLD_Reference      = 0x0,
     90                             PLD_Rotation       = 0x0,
     91                             PLD_Order          = 0x0,
     92                             PLD_VerticalOffset = 0x0,
     93                             PLD_HorizontalOffset = 0x0)
     94 
     95                     })
     96                 }
     97 
     98                 Device (PRT2)
     99                 {
    100                     Name (_ADR, 0x02)  // _ADR: Address
    101                     Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
    102                     {
    103                         Zero,
    104                         0xFF,
    105                         Zero,
    106                         Zero
    107                     })
    108                 }
    109 
    110                 Device (PRT3)
    111                 {
    112                     Name (_ADR, 0x03)  // _ADR: Address
    113                     Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
    114                     {
    115                         Zero,
    116                         0xFF,
    117                         Zero,
    118                         Zero
    119                     })
    120                 }
    121 
    122                 Device (PRT4)
    123                 {
    124                     Name (_ADR, 0x04)  // _ADR: Address
    125                     Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
    126                     {
    127                         Zero,
    128                         0xFF,
    129                         Zero,
    130                         Zero
    131                     })
    132                 }
    133             }
    134         }
    135 }
    136 
    137