Tobias Diedrich | 2a38551 | 2015-06-13 13:29:50 +0200 | [diff] [blame] | 1 | /* |
| 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 Diedrich | 2a38551 | 2015-06-13 13:29:50 +0200 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | Scope (\_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 | } |