Dave Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 1 | /* |
| 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 Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | /* simple name description */ |
| 18 | /* |
| 19 | DefinitionBlock ("DSDT.AML","DSDT",0x01,"XXXXXX","XXXXXXXX",0x00010001 |
| 20 | ) |
| 21 | { |
| 22 | #include "usb.asl" |
| 23 | } |
| 24 | */ |
| 25 | |
| 26 | /* USB overcurrent mapping pins. */ |
| 27 | Name(UOM0, 0) |
| 28 | Name(UOM1, 2) |
| 29 | Name(UOM2, 0) |
| 30 | Name(UOM3, 7) |
| 31 | Name(UOM4, 2) |
| 32 | Name(UOM5, 2) |
| 33 | Name(UOM6, 6) |
| 34 | Name(UOM7, 2) |
| 35 | Name(UOM8, 6) |
| 36 | Name(UOM9, 6) |
| 37 | |
| 38 | /* USB Overcurrent GPEs */ |
| 39 | |
Dave Frodin | d6aa7cf | 2014-11-21 14:57:03 -0700 | [diff] [blame] | 40 | #if 0 /* TODO: Update */ |
Dave Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 41 | Method(UCOC, 0) { |
| 42 | Sleep(20) |
| 43 | Store(0x13,CMTI) |
| 44 | Store(0,GPSL) |
| 45 | } |
| 46 | |
| 47 | /* USB Port 0 overcurrent uses Gpm 0 */ |
| 48 | If(LLessEqual(UOM0,9)) { |
| 49 | Scope (\_GPE) { |
| 50 | Method (_L13) { |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /* USB Port 1 overcurrent uses Gpm 1 */ |
| 56 | If (LLessEqual(UOM1,9)) { |
| 57 | Scope (\_GPE) { |
| 58 | Method (_L14) { |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /* USB Port 2 overcurrent uses Gpm 2 */ |
| 64 | If (LLessEqual(UOM2,9)) { |
| 65 | Scope (\_GPE) { |
| 66 | Method (_L15) { |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /* USB Port 3 overcurrent uses Gpm 3 */ |
| 72 | If (LLessEqual(UOM3,9)) { |
| 73 | Scope (\_GPE) { |
| 74 | Method (_L16) { |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /* USB Port 4 overcurrent uses Gpm 4 */ |
| 80 | If (LLessEqual(UOM4,9)) { |
| 81 | Scope (\_GPE) { |
| 82 | Method (_L19) { |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /* USB Port 5 overcurrent uses Gpm 5 */ |
| 88 | If (LLessEqual(UOM5,9)) { |
| 89 | Scope (\_GPE) { |
| 90 | Method (_L1A) { |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /* USB Port 6 overcurrent uses Gpm 6 */ |
| 96 | If (LLessEqual(UOM6,9)) { |
| 97 | Scope (\_GPE) { |
| 98 | /* Method (_L1C) { */ |
| 99 | Method (_L06) { |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | /* USB Port 7 overcurrent uses Gpm 7 */ |
| 105 | If (LLessEqual(UOM7,9)) { |
| 106 | Scope (\_GPE) { |
| 107 | /* Method (_L1D) { */ |
| 108 | Method (_L07) { |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /* USB Port 8 overcurrent uses Gpm 8 */ |
| 114 | If (LLessEqual(UOM8,9)) { |
| 115 | Scope (\_GPE) { |
| 116 | Method (_L17) { |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /* USB Port 9 overcurrent uses Gpm 9 */ |
| 122 | If (LLessEqual(UOM9,9)) { |
| 123 | Scope (\_GPE) { |
| 124 | Method (_L0E) { |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | #endif |