diff options
author | Sergej Ivanov <getinaks@gmail.com> | 2015-04-03 18:10:27 +0300 |
---|---|---|
committer | Dave Frodin <dave.frodin@se-eng.com> | 2015-04-10 15:32:03 +0200 |
commit | d777c780660bc8e5b4e531b5335e12bb56d8c700 (patch) | |
tree | 65462ace26dc0f4ae5c10f187babdc4fb468e36d /src/mainboard/biostar/am1ml/acpi/sio.asl | |
parent | c294d702dc74cac6ac9fae8d05f1c1fc036f0b79 (diff) |
mainboard/biostar: Add support for Biostar AM1ML ver7.x
Adds AM1ML board. This board has AM1 Socket and supports all
new AM1 APUs from AMD. Based on asrock/imb-a180 board.
Successfully tested with SeaBIOS and Linux 3.8.x and Windows XP.
Successfully tested audio, video, network, PS/2 keyboard and mouse,
PCIe x16, COM port, SATA and USB.
LPT port is not tested yet and it’s unknown if it’s work.
Change-Id: I9ebb9acc590d38e47579adc263f45ae3f607684e
Signed-off-by: Sergej Ivanov <getinaks@gmail.com>
Reviewed-on: http://review.coreboot.org/9293
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Diffstat (limited to 'src/mainboard/biostar/am1ml/acpi/sio.asl')
-rw-r--r-- | src/mainboard/biostar/am1ml/acpi/sio.asl | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/src/mainboard/biostar/am1ml/acpi/sio.asl b/src/mainboard/biostar/am1ml/acpi/sio.asl new file mode 100644 index 0000000000..e332979b0e --- /dev/null +++ b/src/mainboard/biostar/am1ml/acpi/sio.asl @@ -0,0 +1,91 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2011 - 2012 Advanced Micro Devices, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +OperationRegion (IOID, SystemIO, 0x2E, 0x02) +Field (IOID, ByteAcc, NoLock, Preserve) +{ + SIOI, 8, SIOD, 8 /* 0x2E and 0x2F */ +} + +IndexField (SIOI, SIOD, ByteAcc, NoLock, Preserve) +{ + Offset (0x07), + LDN, 8, /* Logical Device Number */ + Offset (0x20), + CID1, 8, /* Chip ID Byte 1, 0x87 */ + CID2, 8, /* Chip ID Byte 2, 0x12 */ + Offset (0x30), + ACTR, 8, /* Function activate */ + Offset (0xF0), + APC0, 8, /* APC/PME Event Enable Register */ + APC1, 8, /* APC/PME Status Register */ + APC2, 8, /* APC/PME Control Register 1 */ + APC3, 8, /* Environment Controller Special Configuration Register */ + APC4, 8 /* APC/PME Control Register 2 */ +} + +/* Enter the 8728 Config */ +Method (EPNP) +{ + Store(0x87, SIOI) + Store(0x01, SIOI) + Store(0x55, SIOI) + Store(0x55, SIOI) +} + +/* Exit the 8728 Config */ +Method (XPNP) +{ + Store (0x02, SIOI) + Store (0x02, SIOD) +} + +/* + * Keyboard PME is routed to SB700 Gevent3. We can wake + * up the system by pressing the key. + */ +Method (SIOS, 1) +{ + /* We only enable KBD PME for S5. */ + If (LLess (Arg0, 0x05)) + { + EPNP() + /* DBGO("8728F\n") */ + Store (0x4, LDN) + Store (One, ACTR) /* Enable EC */ + /* + Store (0x4, LDN) + Store (0x04, APC4) + */ /* falling edge. which mode? Not sure. */ + Store (0x4, LDN) + Store (0x08, APC1) /* clear PME status, Use 0x18 for mouse & KBD */ + Store (0x4, LDN) + Store (0x08, APC0) /* enable PME, Use 0x18 for mouse & KBD */ + XPNP() + } +} +Method (SIOW, 1) +{ + EPNP() + Store (0x4, LDN) + Store (Zero, APC0) /* disable keyboard PME */ + Store (0x4, LDN) + Store (0xFF, APC1) /* clear keyboard PME status */ + XPNP() +} |