blob: 9fba1688051f6cda7fd3bef49d95686cb75b2343 [file] [log] [blame]
Dave Frodinc43bce52014-12-03 08:22:46 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2012 Advanced Micro Devices, Inc.
5 * Copyright (C) 2013 Sage Electronic Engineering, LLC
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Dave Frodinc43bce52014-12-03 08:22:46 -070015 */
16
17/* simple name description */
18/*
19DefinitionBlock ("DSDT.AML","DSDT",0x01,"XXXXXX","XXXXXXXX",0x00010001
20 )
21 {
22 #include "usb.asl"
23 }
24*/
25
26/* USB overcurrent mapping pins. */
27Name(UOM0, 0)
28Name(UOM1, 2)
29Name(UOM2, 0)
30Name(UOM3, 7)
31Name(UOM4, 2)
32Name(UOM5, 2)
33Name(UOM6, 6)
34Name(UOM7, 2)
35Name(UOM8, 6)
36Name(UOM9, 6)
37
38/* USB Overcurrent GPEs */
39
Dave Frodind6aa7cf2014-11-21 14:57:03 -070040#if 0 /* TODO: Update */
Dave Frodinc43bce52014-12-03 08:22:46 -070041Method(UCOC, 0) {
42 Sleep(20)
43 Store(0x13,CMTI)
44 Store(0,GPSL)
45}
46
47/* USB Port 0 overcurrent uses Gpm 0 */
48If(LLessEqual(UOM0,9)) {
49 Scope (\_GPE) {
50 Method (_L13) {
51 }
52 }
53}
54
55/* USB Port 1 overcurrent uses Gpm 1 */
56If (LLessEqual(UOM1,9)) {
57 Scope (\_GPE) {
58 Method (_L14) {
59 }
60 }
61}
62
63/* USB Port 2 overcurrent uses Gpm 2 */
64If (LLessEqual(UOM2,9)) {
65 Scope (\_GPE) {
66 Method (_L15) {
67 }
68 }
69}
70
71/* USB Port 3 overcurrent uses Gpm 3 */
72If (LLessEqual(UOM3,9)) {
73 Scope (\_GPE) {
74 Method (_L16) {
75 }
76 }
77}
78
79/* USB Port 4 overcurrent uses Gpm 4 */
80If (LLessEqual(UOM4,9)) {
81 Scope (\_GPE) {
82 Method (_L19) {
83 }
84 }
85}
86
87/* USB Port 5 overcurrent uses Gpm 5 */
88If (LLessEqual(UOM5,9)) {
89 Scope (\_GPE) {
90 Method (_L1A) {
91 }
92 }
93}
94
95/* USB Port 6 overcurrent uses Gpm 6 */
96If (LLessEqual(UOM6,9)) {
97 Scope (\_GPE) {
98 /* Method (_L1C) { */
99 Method (_L06) {
100 }
101 }
102}
103
104/* USB Port 7 overcurrent uses Gpm 7 */
105If (LLessEqual(UOM7,9)) {
106 Scope (\_GPE) {
107 /* Method (_L1D) { */
108 Method (_L07) {
109 }
110 }
111}
112
113/* USB Port 8 overcurrent uses Gpm 8 */
114If (LLessEqual(UOM8,9)) {
115 Scope (\_GPE) {
116 Method (_L17) {
117 }
118 }
119}
120
121/* USB Port 9 overcurrent uses Gpm 9 */
122If (LLessEqual(UOM9,9)) {
123 Scope (\_GPE) {
124 Method (_L0E) {
125 }
126 }
127}
128#endif