blob: 225b891ed4847450d8eec0dd4fc0eab3ea848d2f [file] [log] [blame]
Hannah Williamsd59f62b2017-05-05 16:39:21 -07001
2/*
3 * This file is part of the coreboot project.
4 *
5 * Copyright 2017 Intel Corp.
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.
15 */
16
17Scope(\_SB.PCI0.I2C7) {
18// Touch Panels on I2C7
19// GPIO_212:TCH_PNL_INTR_LS_N North Community, IRQ number 0x75.
20//------------------------
21 Device (TPL1) {
22 Name (HID2, 1)
23 Name (_HID, "WCOM508E") // _HID: Hardware ID
24 Name (_CID, "PNP0C50") // _CID: Compatible ID
25 Name (_S0W, 0x04) // _S0W: S0 Device Wake State
26 Name (SBFB, ResourceTemplate () {
27 I2cSerialBus (
28 0x000A,
29 ControllerInitiated,
30 1000000,
31 AddressingMode7Bit,
32 "\\_SB.PCI0.I2C7",
33 0x00,
34 ResourceConsumer,
35 ,
36 )
37 })
38 //
39 // GLK: Touchpanel Interrupt: GPIO_212: Northwest
40 // Pin 77
41 // Direct IRQ 0x75
42 //
43 Name (SBFG, ResourceTemplate () {
44 GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x0000,
45 "\\_SB.GPO0", 0x00, ResourceConsumer, ,
46 )
47 {
48 77
49 }
50 })
51 Name (SBFI, ResourceTemplate () {
52 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
53 {
54 0x75,
55 }
56 })
57
58 Method (_INI, 0, NotSerialized) // _INI: Initialize
59 {
60 }
61
62 Method (_STA, 0, NotSerialized) // _STA: Status
63 {
64 Return (0x0F)
65 }
66
67 Method (_CRS, 0, NotSerialized) {
68 Return (ConcatenateResTemplate(SBFB, SBFG))
69 }
70 } // Device (TPL0)
71}