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-2016, Hisilicon Limited. All rights reserved.<BR>
      6   Copyright (c) 2015-2016, 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.MBI5")
     36         {
     37           641,
     38         }
     39       })
     40       Return (RBUF) /* \_SB_.USB0._CRS.RBUF */
     41     }
     42 
     43     Device (RHUB)
     44     {
     45       Name (_ADR, Zero)  // _ADR: Address
     46       Device (PRT1)
     47       {
     48         Name (_ADR, One)  // _ADR: Address
     49         Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
     50         {
     51           0xFF,
     52           Zero,
     53           Zero,
     54           Zero
     55         })
     56         Name (_PLD, Package (0x01)  // _PLD: Physical Location of Device
     57         {
     58           ToPLD (
     59             PLD_Revision       = 0x1,
     60             PLD_IgnoreColor    = 0x1,
     61             PLD_Red            = 0x0,
     62             PLD_Green          = 0x0,
     63             PLD_Blue           = 0x0,
     64             PLD_Width          = 0x0,
     65             PLD_Height         = 0x0,
     66             PLD_UserVisible    = 0x1,
     67             PLD_Dock           = 0x0,
     68             PLD_Lid            = 0x0,
     69             PLD_Panel          = "UNKNOWN",
     70             PLD_VerticalPosition = "UPPER",
     71             PLD_HorizontalPosition = "LEFT",
     72             PLD_Shape          = "UNKNOWN",
     73             PLD_GroupOrientation = 0x0,
     74             PLD_GroupToken     = 0x0,
     75             PLD_GroupPosition  = 0x0,
     76             PLD_Bay            = 0x0,
     77             PLD_Ejectable      = 0x0,
     78             PLD_EjectRequired  = 0x0,
     79             PLD_CabinetNumber  = 0x0,
     80             PLD_CardCageNumber = 0x0,
     81             PLD_Reference      = 0x0,
     82             PLD_Rotation       = 0x0,
     83             PLD_Order          = 0x0,
     84             PLD_VerticalOffset = 0x0,
     85             PLD_HorizontalOffset = 0x0)
     86         })
     87       }
     88 
     89       Device (PRT2)
     90       {
     91         Name (_ADR, 0x02)  // _ADR: Address
     92         Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
     93         {
     94           Zero,
     95           0xFF,
     96           Zero,
     97           Zero
     98         })
     99       }
    100 
    101       Device (PRT3)
    102       {
    103         Name (_ADR, 0x03)  // _ADR: Address
    104         Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
    105         {
    106           Zero,
    107           0xFF,
    108           Zero,
    109           Zero
    110         })
    111       }
    112 
    113       Device (PRT4)
    114       {
    115         Name (_ADR, 0x04)  // _ADR: Address
    116         Name (_UPC, Package (0x04)  // _UPC: USB Port Capabilities
    117         {
    118           Zero,
    119           0xFF,
    120           Zero,
    121           Zero
    122         })
    123       }
    124     }
    125   }
    126 }
    127 
    128