blob: 5f0ae71fbf9fda9dab832e06a8760ee0181ed6c0 [file] [log] [blame]
Tobias Diedrich2a385512015-06-13 13:29:50 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Based on the example of Mika Westerberg: https://lwn.net/Articles/612062/
5 *
6 * Copyright (C) 2015 Tobias Diedrich, Mika Westerberg
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
Tobias Diedrich2a385512015-06-13 13:29:50 +020016 */
17
18Scope (\_SB.PCI0.SBUS)
19{
20 Device (GPIO)
21 {
22 Name (_HID, "PRP0001")
23
24 Name (_CRS, ResourceTemplate () {
25 /* ACPI_MMIO_BASE + gpio offset */
26 Memory32Fixed(ReadWrite, 0xFED80100, 0x0000100)
27 })
28
29 Name (_DSD, Package () {
30 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
31 Package () {
32 Package () {"compatible", Package () {"gpio-sb8xx"}},
33 }
34 })
35 }
36}