tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / samsung / lumpy / acpi / mainboard.asl
blob8fa50677f05e66f4d53049e21dc9ffcd62b6f5ae
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2011 Google Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; version 2 of
9  * 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  */
17 #include <mainboard/samsung/lumpy/onboard.h>
19 Scope (\_SB) {
20         Device (LID0)
21         {
22                 Name(_HID, EisaId("PNP0C0D"))
23                 Method(_LID, 0)
24                 {
25                         Store (\_SB.PCI0.LPCB.EC0.LIDS, \LIDS)
26                         Return (\LIDS)
27                 }
29                 // WAKE SCI# from EC is GPIO14
30                 Name(_PRW, Package(){0x1e, 0x05})
31         }
33         Device (PWRB)
34         {
35                 Name(_HID, EisaId("PNP0C0C"))
36         }
38         Device (TPAD)
39         {
40                 // Report as a Sleep Button device so
41                 // Linux will automatically enable for wake
42                 Name(_HID, EisaId("PNP0C0E"))
44                 // Trackpad Wake is GPIO11
45                 Name(_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x03 })
47                 Name(_CRS, ResourceTemplate()
48                 {
49                         // PIRQF -> GSI21
50                         Interrupt (ResourceConsumer, Edge, ActiveLow)
51                         {
52                                 BOARD_TRACKPAD_IRQ
53                         }
55                         // SMBUS Address 0x67
56                         VendorShort (ADDR) { BOARD_TRACKPAD_I2C_ADDR }
57                 })
58         }
60         Device (LITE)
61         {
62                 // Generic ACPI Device Container
63                 Name(_HID, EisaId("PNP0A05"))
65                 Name(_CRS, ResourceTemplate()
66                 {
67                         // PIRQE -> GSI20
68                         Interrupt (ResourceConsumer, Edge, ActiveLow)
69                         {
70                                 BOARD_LIGHTSENSOR_IRQ
71                         }
73                         // SMBUS Address 0x44
74                         VendorShort (ADDR) { BOARD_LIGHTSENSOR_I2C_ADDR }
75                 })
76         }
79 // Battery information
80 Name (BATV, "SAMSUNG")
81 Name (BATM, "LUMPY")
82 Name (BATS, "BATTERY")