aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/acpi-dsdt-goldfish.dsl
blob: 42aacaae9b955f8a25ab85c27d66da94fea5144e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
** Copyright (c) 2015, Intel Corporation
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
*/

/****************************************************************
 * Android-specific virtual hardware (goldfish devices)
 ****************************************************************/

#include "hw/acpi/goldfish_defs.h"

Scope(\_SB) {

    /* Battery */
    Device(GFBY) {
        Name(_HID, "GFSH0001")
        Name(_STR, Unicode("goldfish battery"))
        Name(_CRS, ResourceTemplate() {
            Memory32Fixed(ReadWrite,
                GF_BATTERY_IOMEM_BASE,
                GF_BATTERY_IOMEM_SIZE
                )
            Interrupt(, Edge, ActiveHigh) {
                GF_BATTERY_IRQ
            }
        })
    }
}