mainboard: New port Packard Bell LM85.
Change-Id: I8c1548470c605d06825fe35579879e806bf33542 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/5271 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
5c97142419
commit
b1ccccc207
@ -106,6 +106,8 @@ config VENDOR_NOKIA
|
|||||||
bool "Nokia"
|
bool "Nokia"
|
||||||
config VENDOR_NVIDIA
|
config VENDOR_NVIDIA
|
||||||
bool "NVIDIA"
|
bool "NVIDIA"
|
||||||
|
config VENDOR_PACKARDBELL
|
||||||
|
bool "Packard Bell"
|
||||||
config VENDOR_PCENGINES
|
config VENDOR_PCENGINES
|
||||||
bool "PC Engines"
|
bool "PC Engines"
|
||||||
config VENDOR_RCA
|
config VENDOR_RCA
|
||||||
@ -196,6 +198,7 @@ source "src/mainboard/nec/Kconfig"
|
|||||||
source "src/mainboard/newisys/Kconfig"
|
source "src/mainboard/newisys/Kconfig"
|
||||||
source "src/mainboard/nokia/Kconfig"
|
source "src/mainboard/nokia/Kconfig"
|
||||||
source "src/mainboard/nvidia/Kconfig"
|
source "src/mainboard/nvidia/Kconfig"
|
||||||
|
source "src/mainboard/packardbell/Kconfig"
|
||||||
source "src/mainboard/pcengines/Kconfig"
|
source "src/mainboard/pcengines/Kconfig"
|
||||||
source "src/mainboard/rca/Kconfig"
|
source "src/mainboard/rca/Kconfig"
|
||||||
source "src/mainboard/roda/Kconfig"
|
source "src/mainboard/roda/Kconfig"
|
||||||
|
19
src/mainboard/packardbell/Kconfig
Normal file
19
src/mainboard/packardbell/Kconfig
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
if VENDOR_PACKARDBELL
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Mainboard model"
|
||||||
|
|
||||||
|
config BOARD_PACKARDBELL_MS2290
|
||||||
|
bool "EasyNote LM85 (MS2290)"
|
||||||
|
help
|
||||||
|
EasyNote LM85 laptop
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
source "src/mainboard/packardbell/ms2290/Kconfig"
|
||||||
|
|
||||||
|
config MAINBOARD_VENDOR
|
||||||
|
string
|
||||||
|
default "Packard Bell"
|
||||||
|
|
||||||
|
endif # VENDOR_PACKARDBELL
|
59
src/mainboard/packardbell/ms2290/Kconfig
Normal file
59
src/mainboard/packardbell/ms2290/Kconfig
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
if BOARD_PACKARDBELL_MS2290
|
||||||
|
|
||||||
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
|
def_bool y
|
||||||
|
select ARCH_X86
|
||||||
|
select NORTHBRIDGE_INTEL_NEHALEM
|
||||||
|
select SOUTHBRIDGE_INTEL_IBEXPEAK
|
||||||
|
select HAVE_OPTION_TABLE
|
||||||
|
select HAVE_CMOS_DEFAULT
|
||||||
|
select GFXUMA
|
||||||
|
select BOARD_ROMSIZE_KB_4096
|
||||||
|
select HAVE_ACPI_TABLES
|
||||||
|
select HAVE_ACPI_RESUME
|
||||||
|
select EARLY_CBMEM_INIT
|
||||||
|
select MAINBOARD_HAS_NATIVE_VGA_INIT
|
||||||
|
select EC_ACPI
|
||||||
|
select MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG
|
||||||
|
|
||||||
|
config MAINBOARD_DIR
|
||||||
|
string
|
||||||
|
default packardbell/ms2290
|
||||||
|
|
||||||
|
config MAINBOARD_PART_NUMBER
|
||||||
|
string
|
||||||
|
default "EasyNote LM85"
|
||||||
|
|
||||||
|
config MAINBOARD_VERSION
|
||||||
|
string
|
||||||
|
default "V1.20"
|
||||||
|
|
||||||
|
config MAINBOARD_VENDOR
|
||||||
|
string
|
||||||
|
default "Packard Bell"
|
||||||
|
|
||||||
|
config MMCONF_BASE_ADDRESS
|
||||||
|
hex
|
||||||
|
default 0xe0000000
|
||||||
|
|
||||||
|
config IRQ_SLOT_COUNT
|
||||||
|
int
|
||||||
|
default 18
|
||||||
|
|
||||||
|
config USBDEBUG_HCD_INDEX
|
||||||
|
int
|
||||||
|
default 2
|
||||||
|
|
||||||
|
config DRAM_RESET_GATE_GPIO
|
||||||
|
int
|
||||||
|
default 60
|
||||||
|
|
||||||
|
config MAX_CPUS
|
||||||
|
int
|
||||||
|
default 4
|
||||||
|
|
||||||
|
config CPU_ADDR_BITS
|
||||||
|
int
|
||||||
|
default 36
|
||||||
|
|
||||||
|
endif
|
21
src/mainboard/packardbell/ms2290/Makefile.inc
Normal file
21
src/mainboard/packardbell/ms2290/Makefile.inc
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2007-2008 coresystems GmbH
|
||||||
|
##
|
||||||
|
## 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
|
||||||
|
##
|
||||||
|
|
||||||
|
smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
|
||||||
|
ramstage-y += gma.c
|
50
src/mainboard/packardbell/ms2290/acpi/ac.asl
Normal file
50
src/mainboard/packardbell/ms2290/acpi/ac.asl
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
Device(AC)
|
||||||
|
{
|
||||||
|
Name(_HID, "ACPI0003")
|
||||||
|
Name(_UID, 0x00)
|
||||||
|
Name(_PCL, Package() { \_SB } )
|
||||||
|
|
||||||
|
Method(_PSR, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
return (HPAC)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_STA, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Return (0x0f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* AC status change */
|
||||||
|
Method(_Q50, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify (AC, 0x80)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* AC status change */
|
||||||
|
Method(_Q51, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify (AC, 0x80)
|
||||||
|
}
|
||||||
|
|
155
src/mainboard/packardbell/ms2290/acpi/battery.asl
Normal file
155
src/mainboard/packardbell/ms2290/acpi/battery.asl
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
/* Arg0: Battery
|
||||||
|
* Arg1: Battery Status Package
|
||||||
|
* Arg2: charging
|
||||||
|
* Arg3: discharging
|
||||||
|
*/
|
||||||
|
Method(BSTA, 4, NotSerialized)
|
||||||
|
{
|
||||||
|
Acquire(ECLK, 0xffff)
|
||||||
|
Store(0, Local0)
|
||||||
|
|
||||||
|
Store(0, PAGE)
|
||||||
|
|
||||||
|
Store(BAPR, Local2)
|
||||||
|
|
||||||
|
if (Arg2) // charging
|
||||||
|
{
|
||||||
|
Or(2, Local0, Local0)
|
||||||
|
|
||||||
|
If (LGreaterEqual (Local2, 0x8000)) {
|
||||||
|
Store(0, Local2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Arg3) // discharging
|
||||||
|
{
|
||||||
|
Or(1, Local0, Local0)
|
||||||
|
Subtract(0x10000, Local2, Local2)
|
||||||
|
}
|
||||||
|
|
||||||
|
Store(Local0, Index(Arg1, 0x00))
|
||||||
|
|
||||||
|
Store(0, PAGE)
|
||||||
|
Store(BARC, Index(Arg1, 2))
|
||||||
|
Store(Local2, Index(Arg1, 1))
|
||||||
|
|
||||||
|
Store(0, PAGE)
|
||||||
|
Store(BAVO, Index(Arg1, 3))
|
||||||
|
Release(ECLK)
|
||||||
|
Return (Arg1)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(BINF, 2, NotSerialized)
|
||||||
|
{
|
||||||
|
Acquire(ECLK, 0xffff)
|
||||||
|
Store(0, PAGE)
|
||||||
|
Store(BAFC, Local2)
|
||||||
|
Store(1, PAGE)
|
||||||
|
Store(BADC, Local1)
|
||||||
|
|
||||||
|
Store(Local1, Index(Arg0, 1)) // Design Capacity
|
||||||
|
Store(Local2, Index(Arg0, 2)) // Last full charge capacity
|
||||||
|
Store(1, PAGE)
|
||||||
|
Store(BADV, Index(Arg0, 4)) // Design Voltage
|
||||||
|
Divide (Local2, 20, Local0, Index(Arg0, 5)) // Warning capacity
|
||||||
|
|
||||||
|
Store(1, PAGE)
|
||||||
|
Store (BASN, Local0)
|
||||||
|
Name (SERN, Buffer (0x06) { " " })
|
||||||
|
Store (4, Local1)
|
||||||
|
While (Local0)
|
||||||
|
{
|
||||||
|
Divide (Local0, 0x0A, Local2, Local0)
|
||||||
|
Add (Local2, 48, Index (SERN, Local1))
|
||||||
|
Decrement (Local1)
|
||||||
|
}
|
||||||
|
Store (SERN, Index (Arg0, 10)) // Serial Number
|
||||||
|
|
||||||
|
Name (TYPE, Buffer() { 0, 0, 0, 0, 0 })
|
||||||
|
Store(4, PAGE)
|
||||||
|
Store(BATY, TYPE)
|
||||||
|
Store(TYPE, Index (Arg0, 11)) // Battery type
|
||||||
|
Store(5, PAGE)
|
||||||
|
Store(BAOE, Index (Arg0, 12)) // OEM information
|
||||||
|
Store(2, PAGE)
|
||||||
|
Store(BANA, Index (Arg0, 9)) // Model number
|
||||||
|
Release(ECLK)
|
||||||
|
Return (Arg0)
|
||||||
|
}
|
||||||
|
|
||||||
|
Device (BAT0)
|
||||||
|
{
|
||||||
|
Name (_HID, EisaId ("PNP0C0A"))
|
||||||
|
Name (_UID, 0x00)
|
||||||
|
Name (_PCL, Package () { \_SB })
|
||||||
|
|
||||||
|
Name (BATS, Package ()
|
||||||
|
{
|
||||||
|
0x00, // 0: PowerUnit: Report in mWh
|
||||||
|
0xFFFFFFFF, // 1: Design cap
|
||||||
|
0xFFFFFFFF, // 2: Last full charge cap
|
||||||
|
0x01, // 3: Battery Technology
|
||||||
|
10800, // 4: Design Voltage (mV)
|
||||||
|
0x00, // 5: Warning design capacity
|
||||||
|
200, // 6: Low design capacity
|
||||||
|
1, // 7: granularity1
|
||||||
|
1, // 8: granularity2
|
||||||
|
"", // 9: Model number
|
||||||
|
"", // A: Serial number
|
||||||
|
"", // B: Battery Type
|
||||||
|
"" // C: OEM information
|
||||||
|
})
|
||||||
|
|
||||||
|
Method (_BIF, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Return (BINF(BATS, 0))
|
||||||
|
}
|
||||||
|
|
||||||
|
Name (BATI, Package ()
|
||||||
|
{
|
||||||
|
0, // Battery State
|
||||||
|
// Bit 0 - discharge
|
||||||
|
// Bit 1 - charge
|
||||||
|
// Bit 2 - critical state
|
||||||
|
0, // Battery present Rate
|
||||||
|
0, // Battery remaining capacity
|
||||||
|
0 // Battery present voltage
|
||||||
|
})
|
||||||
|
|
||||||
|
Method (_BST, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
if (B0PR) {
|
||||||
|
Return (BSTA(0, BATI, B0CH, B0DI))
|
||||||
|
} else {
|
||||||
|
Return (BATS)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Method (_STA, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
if (B0PR) {
|
||||||
|
Return (0x1f)
|
||||||
|
} else {
|
||||||
|
Return (0x0f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Battery attach/detach */
|
||||||
|
Method(_Q40, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(BAT0, 0x81)
|
||||||
|
}
|
||||||
|
Method(_Q41, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(BAT0, 0x81)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_Q48, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(BAT0, 0x80)
|
||||||
|
}
|
||||||
|
Method(_Q4C, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(BAT0, 0x80)
|
||||||
|
}
|
136
src/mainboard/packardbell/ms2290/acpi/ec.asl
Normal file
136
src/mainboard/packardbell/ms2290/acpi/ec.asl
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
Device(EC)
|
||||||
|
{
|
||||||
|
Name (_HID, EISAID("PNP0C09"))
|
||||||
|
Name (_UID, 0)
|
||||||
|
|
||||||
|
Name (_GPE, 0x17)
|
||||||
|
Mutex (ECLK, 0)
|
||||||
|
|
||||||
|
OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0x8),
|
||||||
|
PAGE, 8, /* Information Page Selector */
|
||||||
|
Offset (0x70),
|
||||||
|
, 1,
|
||||||
|
LIDS, 1,
|
||||||
|
, 3,
|
||||||
|
HPAC, 1,
|
||||||
|
Offset (0x88),
|
||||||
|
B0PR, 1, /* Battery 0 present */
|
||||||
|
B0CH, 1, /* Battery 0 charging */
|
||||||
|
B0DI, 1, /* Battery 0 discharging */
|
||||||
|
Offset (0xA8),
|
||||||
|
TMP0, 8,
|
||||||
|
TMP1, 8,
|
||||||
|
}
|
||||||
|
|
||||||
|
Device(LID)
|
||||||
|
{
|
||||||
|
Name(_HID, "PNP0C0D")
|
||||||
|
Method(_LID, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
return (LIDS)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_Q52, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(LID, 0x80)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_Q53, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Notify(^LID, 0x80)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PAGE = 0 */
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0xe0),
|
||||||
|
BARC, 16, /* Battery remaining capacity */
|
||||||
|
BAFC, 16, /* Battery full charge capacity */
|
||||||
|
, 16,
|
||||||
|
BAPR, 16, /* Battery present rate */
|
||||||
|
BAVO, 16, /* Battery Voltage */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PAGE = 1 */
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0xe0),
|
||||||
|
BADC, 16, /* Design Capacity */
|
||||||
|
BADV, 16, /* Design voltage */
|
||||||
|
BASN, 16
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PAGE = 2 */
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0xe0),
|
||||||
|
BANA, 128, /* Battery name */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PAGE = 4 */
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0xe0),
|
||||||
|
BATY, 128, /* Battery type */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PAGE = 5 */
|
||||||
|
Field (ERAM, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0xe0),
|
||||||
|
BAOE, 128, /* Battery OEM info */
|
||||||
|
}
|
||||||
|
|
||||||
|
Method (_CRS, 0)
|
||||||
|
{
|
||||||
|
Name (ECMD, ResourceTemplate()
|
||||||
|
{
|
||||||
|
IO (Decode16, 0x62, 0x62, 1, 1)
|
||||||
|
IO (Decode16, 0x66, 0x66, 1, 1)
|
||||||
|
})
|
||||||
|
Return (ECMD)
|
||||||
|
}
|
||||||
|
Method (_INI, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Decrease brightness. */
|
||||||
|
Method(_Q1D, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
\_SB.PCI0.GFX0.LCD0.DECB()
|
||||||
|
}
|
||||||
|
/* Increase brightness. */
|
||||||
|
Method(_Q1C, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
\_SB.PCI0.GFX0.LCD0.INCB()
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "battery.asl"
|
||||||
|
#include "ac.asl"
|
||||||
|
#include "thermal.asl"
|
||||||
|
}
|
24
src/mainboard/packardbell/ms2290/acpi/gpe.asl
Normal file
24
src/mainboard/packardbell/ms2290/acpi/gpe.asl
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
Scope (\_GPE)
|
||||||
|
{
|
||||||
|
}
|
86
src/mainboard/packardbell/ms2290/acpi/nehalem_pci_irqs.asl
Normal file
86
src/mainboard/packardbell/ms2290/acpi/nehalem_pci_irqs.asl
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013 Vladimir Serbinenko
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* This is board specific information: IRQ routing.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// PCI Interrupt Routing
|
||||||
|
Method(_PRT)
|
||||||
|
{
|
||||||
|
If (PICM) {
|
||||||
|
Return (Package() {
|
||||||
|
Package() { 0x0001ffff, 0, 0, 0x10 },
|
||||||
|
Package() { 0x0002ffff, 0, 0, 0x10 }, // VGA
|
||||||
|
Package() { 0x0003ffff, 0, 0, 0x10 },
|
||||||
|
Package() { 0x0016ffff, 0, 0, 0x10 }, // ME
|
||||||
|
Package() { 0x0016ffff, 1, 0, 0x11 }, // ME
|
||||||
|
Package() { 0x0016ffff, 2, 0, 0x12 }, // ME
|
||||||
|
Package() { 0x0016ffff, 3, 0, 0x13 }, // ME
|
||||||
|
Package() { 0x0019ffff, 0, 0, 0x14 }, // Ethernet
|
||||||
|
Package() { 0x001affff, 0, 0, 0x14 }, // USB
|
||||||
|
Package() { 0x001affff, 1, 0, 0x15 }, // USB
|
||||||
|
Package() { 0x001affff, 2, 0, 0x16 }, // USB
|
||||||
|
Package() { 0x001affff, 3, 0, 0x17 }, // USB
|
||||||
|
Package() { 0x001bffff, 1, 0, 0x11 }, // Audio
|
||||||
|
Package() { 0x001cffff, 0, 0, 0x10 }, // PCI bridge
|
||||||
|
Package() { 0x001cffff, 1, 0, 0x11 }, // PCI bridge
|
||||||
|
Package() { 0x001cffff, 2, 0, 0x12 }, // PCI bridge
|
||||||
|
Package() { 0x001cffff, 3, 0, 0x13 }, // PCI bridge
|
||||||
|
Package() { 0x001dffff, 0, 0, 0x10 }, // USB
|
||||||
|
Package() { 0x001dffff, 1, 0, 0x11 }, // USB
|
||||||
|
Package() { 0x001dffff, 2, 0, 0x12 }, // USB
|
||||||
|
Package() { 0x001dffff, 3, 0, 0x13 }, // USB
|
||||||
|
Package() { 0x001fffff, 0, 0, 0x17 }, // LPC
|
||||||
|
Package() { 0x001fffff, 1, 0, 0x10 }, // IDE
|
||||||
|
Package() { 0x001fffff, 2, 0, 0x11 }, // SATA
|
||||||
|
Package() { 0x001fffff, 3, 0, 0x13 } // SMBUS
|
||||||
|
})
|
||||||
|
} Else {
|
||||||
|
Return (Package() {
|
||||||
|
Package() { 0x0001ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 },
|
||||||
|
Package() { 0x0002ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, // VGA
|
||||||
|
Package() { 0x0003ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 },
|
||||||
|
Package() { 0x0016ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, // ME
|
||||||
|
Package() { 0x0016ffff, 1, \_SB.PCI0.LPCB.LNKB, 0 }, // ME
|
||||||
|
Package() { 0x0016ffff, 2, \_SB.PCI0.LPCB.LNKC, 0 }, // ME
|
||||||
|
Package() { 0x0016ffff, 3, \_SB.PCI0.LPCB.LNKD, 0 }, // ME
|
||||||
|
Package() { 0x0019ffff, 0, \_SB.PCI0.LPCB.LNKE, 0 }, // Ethernet
|
||||||
|
Package() { 0x001affff, 0, \_SB.PCI0.LPCB.LNKE, 0 }, // USB
|
||||||
|
Package() { 0x001affff, 1, \_SB.PCI0.LPCB.LNKF, 0 }, // USB
|
||||||
|
Package() { 0x001affff, 2, \_SB.PCI0.LPCB.LNKG, 0 }, // USB
|
||||||
|
Package() { 0x001affff, 3, \_SB.PCI0.LPCB.LNKH, 0 }, // USB
|
||||||
|
Package() { 0x001bffff, 1, \_SB.PCI0.LPCB.LNKB, 0 }, // Audio
|
||||||
|
Package() { 0x001cffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, // PCI
|
||||||
|
Package() { 0x001cffff, 1, \_SB.PCI0.LPCB.LNKB, 0 }, // PCI
|
||||||
|
Package() { 0x001cffff, 2, \_SB.PCI0.LPCB.LNKC, 0 }, // PCI
|
||||||
|
Package() { 0x001cffff, 3, \_SB.PCI0.LPCB.LNKD, 0 }, // PCI
|
||||||
|
Package() { 0x001dffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, // USB
|
||||||
|
Package() { 0x001dffff, 1, \_SB.PCI0.LPCB.LNKB, 0 }, // USB
|
||||||
|
Package() { 0x001dffff, 2, \_SB.PCI0.LPCB.LNKC, 0 }, // USB
|
||||||
|
Package() { 0x001dffff, 3, \_SB.PCI0.LPCB.LNKD, 0 }, // USB
|
||||||
|
Package() { 0x001fffff, 0, \_SB.PCI0.LPCB.LNKH, 0 }, // LPC
|
||||||
|
Package() { 0x001fffff, 1, \_SB.PCI0.LPCB.LNKA, 0 }, // IDE
|
||||||
|
Package() { 0x001fffff, 2, \_SB.PCI0.LPCB.LNKB, 0 }, // SATA
|
||||||
|
Package() { 0x001fffff, 3, \_SB.PCI0.LPCB.LNKD, 0 } // SMBus
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
147
src/mainboard/packardbell/ms2290/acpi/platform.asl
Normal file
147
src/mainboard/packardbell/ms2290/acpi/platform.asl
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* These come from the dynamically created CPU SSDT */
|
||||||
|
External(PDC0)
|
||||||
|
External(PDC1)
|
||||||
|
|
||||||
|
/* The APM port can be used for generating software SMIs */
|
||||||
|
|
||||||
|
OperationRegion (APMP, SystemIO, 0xb2, 2)
|
||||||
|
Field (APMP, ByteAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
APMC, 8, /* APM command */
|
||||||
|
APMS, 8 /* APM status */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SMI I/O Trap */
|
||||||
|
Method(TRAP, 1, Serialized)
|
||||||
|
{
|
||||||
|
Store (Arg0, SMIF) /* SMI Function */
|
||||||
|
Store (0, TRP0) /* Generate trap */
|
||||||
|
Return (SMIF) /* Return value of SMI handler */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The _PIC method is called by the OS to choose between interrupt
|
||||||
|
* routing via the i8259 interrupt controller or the APIC.
|
||||||
|
*
|
||||||
|
* _PIC is called with a parameter of 0 for i8259 configuration and
|
||||||
|
* with a parameter of 1 for Local Apic/IOAPIC configuration.
|
||||||
|
*/
|
||||||
|
|
||||||
|
Method(_PIC, 1)
|
||||||
|
{
|
||||||
|
/* Remember the OS' IRQ routing choice. */
|
||||||
|
Store(Arg0, PICM)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The _PTS method (Prepare To Sleep) is called before the OS is
|
||||||
|
* entering a sleep state. The sleep state number is passed in Arg0
|
||||||
|
*/
|
||||||
|
|
||||||
|
Method(_PTS,1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The _WAK method is called on system wakeup */
|
||||||
|
|
||||||
|
Method(_WAK,1)
|
||||||
|
{
|
||||||
|
/* Not implemented. */
|
||||||
|
Return(Package(){0,0})
|
||||||
|
}
|
||||||
|
|
||||||
|
/* System Bus */
|
||||||
|
|
||||||
|
Scope(\_SB)
|
||||||
|
{
|
||||||
|
/* This method is placed on the top level, so we can make sure it's the
|
||||||
|
* first executed _INI method.
|
||||||
|
*/
|
||||||
|
Method(_INI, 0)
|
||||||
|
{
|
||||||
|
/* The DTS data in NVS is probably not up to date.
|
||||||
|
* Update temperature values and make sure AP thermal
|
||||||
|
* interrupts can happen
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* TRAP(71) */ /* TODO */
|
||||||
|
|
||||||
|
/* Determine the Operating System and save the value in OSYS.
|
||||||
|
* We have to do this in order to be able to work around
|
||||||
|
* certain windows bugs.
|
||||||
|
*
|
||||||
|
* OSYS value | Operating System
|
||||||
|
* -----------+------------------
|
||||||
|
* 2000 | Windows 2000
|
||||||
|
* 2001 | Windows XP(+SP1)
|
||||||
|
* 2002 | Windows XP SP2
|
||||||
|
* 2006 | Windows Vista
|
||||||
|
* ???? | Windows 7
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Let's assume we're running at least Windows 2000 */
|
||||||
|
Store (2000, OSYS)
|
||||||
|
|
||||||
|
If (CondRefOf(_OSI, Local0)) {
|
||||||
|
If (_OSI("Windows 2001")) {
|
||||||
|
Store (2001, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2001 SP1")) {
|
||||||
|
Store (2001, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2001 SP2")) {
|
||||||
|
Store (2002, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2001.1")) {
|
||||||
|
Store (2001, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2001.1 SP1")) {
|
||||||
|
Store (2001, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2006")) {
|
||||||
|
Store (2006, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2006.1")) {
|
||||||
|
Store (2006, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2006 SP1")) {
|
||||||
|
Store (2006, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2009")) {
|
||||||
|
Store (2009, OSYS)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (_OSI("Windows 2012")) {
|
||||||
|
Store (2012, OSYS)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
src/mainboard/packardbell/ms2290/acpi/superio.asl
Normal file
1
src/mainboard/packardbell/ms2290/acpi/superio.asl
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "../../../../drivers/pc80/ps2_controller.asl"
|
48
src/mainboard/packardbell/ms2290/acpi/thermal.asl
Normal file
48
src/mainboard/packardbell/ms2290/acpi/thermal.asl
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
Scope(\_TZ)
|
||||||
|
{
|
||||||
|
Name (MEBT, 0)
|
||||||
|
|
||||||
|
Method(C2K, 1, NotSerialized)
|
||||||
|
{
|
||||||
|
Multiply(Arg0, 10, Local0)
|
||||||
|
Add (Local0, 2732, Local0)
|
||||||
|
if (LLessEqual(Local0, 2732)) {
|
||||||
|
Return (3000)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LGreater(Local0, 4012)) {
|
||||||
|
Return (3000)
|
||||||
|
}
|
||||||
|
Return (Local0)
|
||||||
|
}
|
||||||
|
|
||||||
|
ThermalZone(THM0)
|
||||||
|
{
|
||||||
|
Method(_CRT, 0, NotSerialized) {
|
||||||
|
Return (C2K(127))
|
||||||
|
}
|
||||||
|
Method(_TMP) {
|
||||||
|
/* Avoid tripping alarm if ME isn't booted at all yet */
|
||||||
|
If (LAnd (LNot (MEBT), LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128))) {
|
||||||
|
Return (C2K(40))
|
||||||
|
}
|
||||||
|
Store (1, MEBT)
|
||||||
|
Return (C2K(\_SB.PCI0.LPCB.EC.TMP0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ThermalZone(THM1)
|
||||||
|
{
|
||||||
|
Method(_CRT, 0, NotSerialized) {
|
||||||
|
Return (C2K(99))
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_PSV, 0, NotSerialized) {
|
||||||
|
Return (C2K(94))
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(_TMP) {
|
||||||
|
Return (C2K(\_SB.PCI0.LPCB.EC.TMP1))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
113
src/mainboard/packardbell/ms2290/acpi/video.asl
Normal file
113
src/mainboard/packardbell/ms2290/acpi/video.asl
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
* Copyright (c) 2013 Vladimir Serbinenko
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
Scope (\_SB.PCI0.GFX0)
|
||||||
|
{
|
||||||
|
Device (LCD0)
|
||||||
|
{
|
||||||
|
Name (_ADR, 0x0400)
|
||||||
|
Name (BRCT, 0)
|
||||||
|
|
||||||
|
Name (BRIG, Package (0x12)
|
||||||
|
{
|
||||||
|
0x61,
|
||||||
|
0x61,
|
||||||
|
0x2,
|
||||||
|
0x4,
|
||||||
|
0x5,
|
||||||
|
0x7,
|
||||||
|
0x9,
|
||||||
|
0xb,
|
||||||
|
0xd,
|
||||||
|
0x11,
|
||||||
|
0x14,
|
||||||
|
0x17,
|
||||||
|
0x1c,
|
||||||
|
0x20,
|
||||||
|
0x27,
|
||||||
|
0x31,
|
||||||
|
0x41,
|
||||||
|
0x61,
|
||||||
|
})
|
||||||
|
|
||||||
|
Method (_BCL, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Store (1, BRCT)
|
||||||
|
Return (BRIG)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method (_BCM, 1, NotSerialized)
|
||||||
|
{
|
||||||
|
Store (ShiftLeft (Arg0, 4), ^^BCLV)
|
||||||
|
Store (0x80000000, ^^CR1)
|
||||||
|
Store (0x061a061a, ^^CR2)
|
||||||
|
}
|
||||||
|
Method (_BQC, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Store (^^BCLV, Local0)
|
||||||
|
ShiftRight (Local0, 4, Local0)
|
||||||
|
Return (Local0)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method(BRID, 1, NotSerialized)
|
||||||
|
{
|
||||||
|
Store (Match (BRIG, MEQ, Arg0, MTR, Zero, 2), Local0)
|
||||||
|
If (LEqual (Local0, Ones))
|
||||||
|
{
|
||||||
|
Return (0x11)
|
||||||
|
}
|
||||||
|
Return (Local0)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Using Notify is the right way. But Windows doesn't handle
|
||||||
|
it well. So use both method in a way to avoid double action.
|
||||||
|
*/
|
||||||
|
Method (DECB, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
If (BRCT)
|
||||||
|
{
|
||||||
|
Notify (LCD0, 0x87)
|
||||||
|
} Else {
|
||||||
|
Store (BRID (_BQC ()), Local0)
|
||||||
|
If (LNotEqual (Local0, 2))
|
||||||
|
{
|
||||||
|
Decrement (Local0)
|
||||||
|
}
|
||||||
|
_BCM (DerefOf (Index (BRIG, Local0)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Method (INCB, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
If (BRCT)
|
||||||
|
{
|
||||||
|
Notify (LCD0, 0x86)
|
||||||
|
} Else {
|
||||||
|
Store (BRID (_BQC ()), Local0)
|
||||||
|
If (LNotEqual (Local0, 0x11))
|
||||||
|
{
|
||||||
|
Increment (Local0)
|
||||||
|
}
|
||||||
|
_BCM (DerefOf (Index (BRIG, Local0)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
283
src/mainboard/packardbell/ms2290/acpi_tables.c
Normal file
283
src/mainboard/packardbell/ms2290/acpi_tables.c
Normal file
@ -0,0 +1,283 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
* Copyright (C) 2013 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <console/console.h>
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/acpi.h>
|
||||||
|
#include <arch/acpigen.h>
|
||||||
|
#include <arch/smp/mpspec.h>
|
||||||
|
#include <device/device.h>
|
||||||
|
#include <device/pci.h>
|
||||||
|
#include <device/pci_ids.h>
|
||||||
|
#include "southbridge/intel/ibexpeak/nvs.h"
|
||||||
|
|
||||||
|
extern const unsigned char AmlCode[];
|
||||||
|
#if CONFIG_HAVE_ACPI_SLIC
|
||||||
|
unsigned long acpi_create_slic(unsigned long current);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void acpi_create_gnvs(global_nvs_t * gnvs)
|
||||||
|
{
|
||||||
|
memset((void *)gnvs, 0, sizeof(*gnvs));
|
||||||
|
gnvs->apic = 1;
|
||||||
|
gnvs->mpen = 1; /* Enable Multi Processing */
|
||||||
|
gnvs->pcnt = dev_count_cpu();
|
||||||
|
|
||||||
|
/* IGD Displays */
|
||||||
|
gnvs->ndid = 3;
|
||||||
|
gnvs->did[0] = 0x80000100;
|
||||||
|
gnvs->did[1] = 0x80000240;
|
||||||
|
gnvs->did[2] = 0x80000410;
|
||||||
|
gnvs->did[3] = 0x80000410;
|
||||||
|
gnvs->did[4] = 0x00000005;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
{
|
||||||
|
/* Local APICs */
|
||||||
|
current = acpi_create_madt_lapics(current);
|
||||||
|
|
||||||
|
/* IOAPIC */
|
||||||
|
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current,
|
||||||
|
1, IO_APIC_ADDR, 0);
|
||||||
|
|
||||||
|
/* INT_SRC_OVR */
|
||||||
|
current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)
|
||||||
|
current, 0, 0, 2,
|
||||||
|
MP_IRQ_POLARITY_DEFAULT |
|
||||||
|
MP_IRQ_TRIGGER_DEFAULT);
|
||||||
|
current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)
|
||||||
|
current, 0, 9, 9,
|
||||||
|
MP_IRQ_POLARITY_HIGH |
|
||||||
|
MP_IRQ_TRIGGER_LEVEL);
|
||||||
|
|
||||||
|
/* LAPIC_NMI */
|
||||||
|
current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)
|
||||||
|
current, 0,
|
||||||
|
MP_IRQ_POLARITY_HIGH |
|
||||||
|
MP_IRQ_TRIGGER_EDGE, 0x01);
|
||||||
|
current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)
|
||||||
|
current, 1, MP_IRQ_POLARITY_HIGH |
|
||||||
|
MP_IRQ_TRIGGER_EDGE, 0x01);
|
||||||
|
current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)
|
||||||
|
current, 2, MP_IRQ_POLARITY_HIGH |
|
||||||
|
MP_IRQ_TRIGGER_EDGE, 0x01);
|
||||||
|
current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)
|
||||||
|
current, 3, MP_IRQ_POLARITY_HIGH |
|
||||||
|
MP_IRQ_TRIGGER_EDGE, 0x01);
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long acpi_fill_ssdt_generator(unsigned long current,
|
||||||
|
const char *oem_table_id)
|
||||||
|
{
|
||||||
|
generate_cpu_entries();
|
||||||
|
return (unsigned long)(acpigen_get_current());
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long acpi_fill_slit(unsigned long current)
|
||||||
|
{
|
||||||
|
/* Not implemented */
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long acpi_fill_srat(unsigned long current)
|
||||||
|
{
|
||||||
|
/* No NUMA, no SRAT */
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
|
||||||
|
|
||||||
|
#define ALIGN_CURRENT current = (ALIGN(current, 16))
|
||||||
|
unsigned long write_acpi_tables(unsigned long start)
|
||||||
|
{
|
||||||
|
unsigned long current;
|
||||||
|
int i;
|
||||||
|
acpi_rsdp_t *rsdp;
|
||||||
|
acpi_rsdt_t *rsdt;
|
||||||
|
acpi_xsdt_t *xsdt;
|
||||||
|
acpi_hpet_t *hpet;
|
||||||
|
acpi_madt_t *madt;
|
||||||
|
acpi_mcfg_t *mcfg;
|
||||||
|
acpi_fadt_t *fadt;
|
||||||
|
acpi_facs_t *facs;
|
||||||
|
#if CONFIG_HAVE_ACPI_SLIC
|
||||||
|
acpi_header_t *slic;
|
||||||
|
#endif
|
||||||
|
acpi_header_t *ssdt;
|
||||||
|
acpi_header_t *dsdt;
|
||||||
|
void *gnvs;
|
||||||
|
|
||||||
|
current = start;
|
||||||
|
|
||||||
|
/* Align ACPI tables to 16byte */
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
printk(BIOS_INFO, "ACPI: Writing ACPI tables at %lx.\n", start);
|
||||||
|
|
||||||
|
/* We need at least an RSDP and an RSDT Table */
|
||||||
|
rsdp = (acpi_rsdp_t *) current;
|
||||||
|
current += sizeof(acpi_rsdp_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
rsdt = (acpi_rsdt_t *) current;
|
||||||
|
current += sizeof(acpi_rsdt_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
xsdt = (acpi_xsdt_t *) current;
|
||||||
|
current += sizeof(acpi_xsdt_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
/* clear all table memory */
|
||||||
|
memset((void *)start, 0, current - start);
|
||||||
|
|
||||||
|
acpi_write_rsdp(rsdp, rsdt, xsdt);
|
||||||
|
acpi_write_rsdt(rsdt);
|
||||||
|
acpi_write_xsdt(xsdt);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We explicitly add these tables later on:
|
||||||
|
*/
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * HPET\n");
|
||||||
|
|
||||||
|
hpet = (acpi_hpet_t *) current;
|
||||||
|
current += sizeof(acpi_hpet_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
acpi_create_hpet(hpet);
|
||||||
|
acpi_add_table(rsdp, hpet);
|
||||||
|
|
||||||
|
/* If we want to use HPET Timers Linux wants an MADT */
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * MADT\n");
|
||||||
|
|
||||||
|
madt = (acpi_madt_t *) current;
|
||||||
|
acpi_create_madt(madt);
|
||||||
|
current += madt->header.length;
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
acpi_add_table(rsdp, madt);
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * MCFG\n");
|
||||||
|
mcfg = (acpi_mcfg_t *) current;
|
||||||
|
acpi_create_mcfg(mcfg);
|
||||||
|
current += mcfg->header.length;
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
acpi_add_table(rsdp, mcfg);
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * FACS\n");
|
||||||
|
facs = (acpi_facs_t *) current;
|
||||||
|
current += sizeof(acpi_facs_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
acpi_create_facs(facs);
|
||||||
|
|
||||||
|
dsdt = (acpi_header_t *) current;
|
||||||
|
memcpy(dsdt, &AmlCode, sizeof(acpi_header_t));
|
||||||
|
current += dsdt->length;
|
||||||
|
memcpy(dsdt, &AmlCode, dsdt->length);
|
||||||
|
|
||||||
|
/* Fix up global NVS region for SMI handler. The GNVS region lives
|
||||||
|
* in the (high) table area. The low memory map looks like this:
|
||||||
|
*
|
||||||
|
* 0x00000000 - 0x000003ff Real Mode IVT
|
||||||
|
* 0x00000400 - 0x000004ff BDA (somewhat unused)
|
||||||
|
* 0x00000500 - 0x0000052f Moved GDT
|
||||||
|
* 0x00000530 - 0x00000b64 coreboot table
|
||||||
|
* 0x0007c000 - 0x0007dfff OS boot sector (unused?)
|
||||||
|
* 0x0007e000 - 0x0007ffff free to use (so no good for acpi+smi)
|
||||||
|
* 0x00080000 - 0x0009fbff usable ram
|
||||||
|
* 0x0009fc00 - 0x0009ffff EBDA (unused?)
|
||||||
|
* 0x000a0000 - 0x000bffff VGA memory
|
||||||
|
* 0x000c0000 - 0x000cffff VGA option rom
|
||||||
|
* 0x000d0000 - 0x000dffff free for other option roms?
|
||||||
|
* 0x000e0000 - 0x000fffff SeaBIOS? (if payload is SeaBIOS it
|
||||||
|
overwrites those tables when
|
||||||
|
loading but uses tables at the RAM
|
||||||
|
end to put the tables again in suitable
|
||||||
|
place)
|
||||||
|
* 0x000f0000 - 0x000f03ff PIRQ table
|
||||||
|
* 0x000f0400 - 0x000f66?? ACPI tables
|
||||||
|
* 0x000f66?? - 0x000f???? DMI tables
|
||||||
|
*/
|
||||||
|
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
/* Pack GNVS into the ACPI table area */
|
||||||
|
for (i = 0; i < dsdt->length; i++) {
|
||||||
|
if (*(u32 *) (((u32) dsdt) + i) == 0xC0DEBABE) {
|
||||||
|
printk(BIOS_DEBUG,
|
||||||
|
"ACPI: Patching up global NVS in DSDT at offset 0x%04x -> 0x%08x\n",
|
||||||
|
i, (u32) current);
|
||||||
|
*(u32 *) (((u32) dsdt) + i) = current;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* And fill it */
|
||||||
|
acpi_create_gnvs((global_nvs_t *) current);
|
||||||
|
|
||||||
|
/* Keep pointer around */
|
||||||
|
gnvs = (void *)current;
|
||||||
|
|
||||||
|
current += 0x100;
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
/* And tell SMI about it */
|
||||||
|
smm_setup_structures(gnvs, NULL, NULL);
|
||||||
|
|
||||||
|
/* We patched up the DSDT, so we need to recalculate the checksum */
|
||||||
|
dsdt->checksum = 0;
|
||||||
|
dsdt->checksum = acpi_checksum((void *)dsdt, dsdt->length);
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * DSDT @ %p Length %x\n", dsdt,
|
||||||
|
dsdt->length);
|
||||||
|
|
||||||
|
#if CONFIG_HAVE_ACPI_SLIC
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * SLIC\n");
|
||||||
|
slic = (acpi_header_t *) current;
|
||||||
|
current += acpi_create_slic(current);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
acpi_add_table(rsdp, slic);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * FADT\n");
|
||||||
|
fadt = (acpi_fadt_t *) current;
|
||||||
|
current += sizeof(acpi_fadt_t);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
acpi_create_fadt(fadt, facs, dsdt);
|
||||||
|
acpi_add_table(rsdp, fadt);
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "ACPI: * SSDT\n");
|
||||||
|
ssdt = (acpi_header_t *) current;
|
||||||
|
acpi_create_ssdt_generator(ssdt, ACPI_TABLE_CREATOR);
|
||||||
|
current += ssdt->length;
|
||||||
|
acpi_add_table(rsdp, ssdt);
|
||||||
|
ALIGN_CURRENT;
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "current = %lx\n", current);
|
||||||
|
printk(BIOS_INFO, "ACPI: done.\n");
|
||||||
|
|
||||||
|
/* Enable Dummy DCC ON# for DVI */
|
||||||
|
printk(BIOS_DEBUG, "Laptop handling...\n");
|
||||||
|
outb(inb(0x60f) & ~(1 << 5), 0x60f);
|
||||||
|
|
||||||
|
return current;
|
||||||
|
}
|
6
src/mainboard/packardbell/ms2290/board_info.txt
Normal file
6
src/mainboard/packardbell/ms2290/board_info.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Board name: EasyNote LM85 (MS2290)
|
||||||
|
Category: laptop
|
||||||
|
ROM package: SOIC-8
|
||||||
|
ROM protocol: SPI
|
||||||
|
ROM socketed: n
|
||||||
|
Flashrom support: n
|
7
src/mainboard/packardbell/ms2290/cmos.default
Normal file
7
src/mainboard/packardbell/ms2290/cmos.default
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
boot_option=Fallback
|
||||||
|
last_boot=Fallback
|
||||||
|
baud_rate=115200
|
||||||
|
debug_level=Spew
|
||||||
|
power_on_after_fail=Enable
|
||||||
|
nmi=Enable
|
||||||
|
sata_mode=AHCI
|
131
src/mainboard/packardbell/ms2290/cmos.layout
Normal file
131
src/mainboard/packardbell/ms2290/cmos.layout
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2007-2008 coresystems GmbH
|
||||||
|
## Copyright (C) 2013 Vladimir Serbinenko
|
||||||
|
##
|
||||||
|
## 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
|
||||||
|
##
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
entries
|
||||||
|
|
||||||
|
#start-bit length config config-ID name
|
||||||
|
#0 8 r 0 seconds
|
||||||
|
#8 8 r 0 alarm_seconds
|
||||||
|
#16 8 r 0 minutes
|
||||||
|
#24 8 r 0 alarm_minutes
|
||||||
|
#32 8 r 0 hours
|
||||||
|
#40 8 r 0 alarm_hours
|
||||||
|
#48 8 r 0 day_of_week
|
||||||
|
#56 8 r 0 day_of_month
|
||||||
|
#64 8 r 0 month
|
||||||
|
#72 8 r 0 year
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Status Register A
|
||||||
|
#80 4 r 0 rate_select
|
||||||
|
#84 3 r 0 REF_Clock
|
||||||
|
#87 1 r 0 UIP
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Status Register B
|
||||||
|
#88 1 r 0 auto_switch_DST
|
||||||
|
#89 1 r 0 24_hour_mode
|
||||||
|
#90 1 r 0 binary_values_enable
|
||||||
|
#91 1 r 0 square-wave_out_enable
|
||||||
|
#92 1 r 0 update_finished_enable
|
||||||
|
#93 1 r 0 alarm_interrupt_enable
|
||||||
|
#94 1 r 0 periodic_interrupt_enable
|
||||||
|
#95 1 r 0 disable_clock_updates
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Status Register C
|
||||||
|
#96 4 r 0 status_c_rsvd
|
||||||
|
#100 1 r 0 uf_flag
|
||||||
|
#101 1 r 0 af_flag
|
||||||
|
#102 1 r 0 pf_flag
|
||||||
|
#103 1 r 0 irqf_flag
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Status Register D
|
||||||
|
#104 7 r 0 status_d_rsvd
|
||||||
|
#111 1 r 0 valid_cmos_ram
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# Diagnostic Status Register
|
||||||
|
#112 8 r 0 diag_rsvd1
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
0 120 r 0 reserved_memory
|
||||||
|
#120 264 r 0 unused
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# RTC_BOOT_BYTE (coreboot hardcoded)
|
||||||
|
384 1 e 4 boot_option
|
||||||
|
385 1 e 4 last_boot
|
||||||
|
388 4 r 0 reboot_bits
|
||||||
|
#390 2 r 0 unused?
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# coreboot config options: console
|
||||||
|
392 3 e 5 baud_rate
|
||||||
|
395 4 e 6 debug_level
|
||||||
|
#399 1 r 0 unused
|
||||||
|
|
||||||
|
# coreboot config options: southbridge
|
||||||
|
408 1 e 1 nmi
|
||||||
|
409 2 e 7 power_on_after_fail
|
||||||
|
411 1 e 9 sata_mode
|
||||||
|
|
||||||
|
# coreboot config options: check sums
|
||||||
|
984 16 h 0 check_sum
|
||||||
|
#1000 24 r 0 amd_reserved
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
|
enumerations
|
||||||
|
|
||||||
|
#ID value text
|
||||||
|
1 0 Disable
|
||||||
|
1 1 Enable
|
||||||
|
2 0 Enable
|
||||||
|
2 1 Disable
|
||||||
|
4 0 Fallback
|
||||||
|
4 1 Normal
|
||||||
|
5 0 115200
|
||||||
|
5 1 57600
|
||||||
|
5 2 38400
|
||||||
|
5 3 19200
|
||||||
|
5 4 9600
|
||||||
|
5 5 4800
|
||||||
|
5 6 2400
|
||||||
|
5 7 1200
|
||||||
|
6 1 Emergency
|
||||||
|
6 2 Alert
|
||||||
|
6 3 Critical
|
||||||
|
6 4 Error
|
||||||
|
6 5 Warning
|
||||||
|
6 6 Notice
|
||||||
|
6 7 Info
|
||||||
|
6 8 Debug
|
||||||
|
6 9 Spew
|
||||||
|
7 0 Disable
|
||||||
|
7 1 Enable
|
||||||
|
7 2 Keep
|
||||||
|
8 0 Secondary
|
||||||
|
8 1 Primary
|
||||||
|
9 0 AHCI
|
||||||
|
9 1 Compatible
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
checksums
|
||||||
|
|
||||||
|
checksum 392 415 984
|
||||||
|
|
||||||
|
|
104
src/mainboard/packardbell/ms2290/devicetree.cb
Normal file
104
src/mainboard/packardbell/ms2290/devicetree.cb
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
## Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
##
|
||||||
|
## 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
|
||||||
|
##
|
||||||
|
|
||||||
|
chip northbridge/intel/nehalem
|
||||||
|
|
||||||
|
register "gpu_dp_b_hotplug" = "0x04"
|
||||||
|
register "gpu_dp_c_hotplug" = "0x04"
|
||||||
|
register "gpu_dp_d_hotplug" = "0x04"
|
||||||
|
|
||||||
|
# Enable Panel as LVDS and configure power delays
|
||||||
|
register "gpu_panel_port_select" = "0" # LVDS
|
||||||
|
register "gpu_panel_power_cycle_delay" = "6"
|
||||||
|
register "gpu_panel_power_up_delay" = "300"
|
||||||
|
register "gpu_panel_power_down_delay" = "300"
|
||||||
|
register "gpu_panel_power_backlight_on_delay" = "3000"
|
||||||
|
register "gpu_panel_power_backlight_off_delay" = "3000"
|
||||||
|
register "gpu_cpu_backlight" = "0x58d"
|
||||||
|
register "gpu_pch_backlight" = "0x061a061a"
|
||||||
|
register "gpu_use_spread_spectrum_clock" = "0"
|
||||||
|
register "gpu_lvds_dual_channel" = "1"
|
||||||
|
register "gpu_link_frequency_270_mhz" = "1"
|
||||||
|
register "gpu_lvds_num_lanes" = "4"
|
||||||
|
|
||||||
|
device cpu_cluster 0 on
|
||||||
|
chip cpu/intel/model_2065x
|
||||||
|
device lapic 0 on end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
device domain 0 on
|
||||||
|
device pci 00.0 on # Host bridge
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
device pci 02.0 on # VGA controller
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
chip southbridge/intel/ibexpeak
|
||||||
|
register "pirqa_routing" = "0x0b"
|
||||||
|
register "pirqb_routing" = "0x0b"
|
||||||
|
register "pirqc_routing" = "0x0b"
|
||||||
|
register "pirqd_routing" = "0x0b"
|
||||||
|
register "pirqe_routing" = "0x0b"
|
||||||
|
register "pirqf_routing" = "0x0b"
|
||||||
|
register "pirqg_routing" = "0x0b"
|
||||||
|
register "pirqh_routing" = "0x0b"
|
||||||
|
|
||||||
|
# GPI routing
|
||||||
|
# 0 No effect (default)
|
||||||
|
# 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
|
||||||
|
# 2 SCI (if corresponding GPIO_EN bit is also set)
|
||||||
|
register "gpi7_routing" = "2"
|
||||||
|
register "gpi8_routing" = "2"
|
||||||
|
|
||||||
|
register "sata_port_map" = "0x11"
|
||||||
|
|
||||||
|
register "gpe0_en" = "0x01800046"
|
||||||
|
register "alt_gp_smi_en" = "0x0000"
|
||||||
|
register "gen1_dec" = "0x040069"
|
||||||
|
|
||||||
|
device pci 1a.0 on # USB2 EHCI
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
|
||||||
|
device pci 1b.0 on # Audio Controller
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
|
||||||
|
device pci 1c.0 on end # PCIe Port #1
|
||||||
|
device pci 1c.1 on end # PCIe Port #1
|
||||||
|
|
||||||
|
device pci 1d.0 on # USB2 EHCI
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
device pci 1f.0 on # PCI-LPC bridge
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
device pci 1f.2 on # IDE/SATA
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
device pci 1f.3 on # SMBUS
|
||||||
|
subsystemid 0x1025 0x0379
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
88
src/mainboard/packardbell/ms2290/dsdt.asl
Normal file
88
src/mainboard/packardbell/ms2290/dsdt.asl
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
DefinitionBlock(
|
||||||
|
"dsdt.aml",
|
||||||
|
"DSDT",
|
||||||
|
0x03, /* DSDT revision: ACPI v3.0 */
|
||||||
|
"COREv4", /* OEM id */
|
||||||
|
"COREBOOT", /* OEM table id */
|
||||||
|
0x20140108 /* OEM revision */
|
||||||
|
)
|
||||||
|
{
|
||||||
|
/* Some generic macros */
|
||||||
|
#include "acpi/platform.asl"
|
||||||
|
|
||||||
|
/* global NVS and variables */
|
||||||
|
#include <southbridge/intel/bd82x6x/acpi/globalnvs.asl>
|
||||||
|
|
||||||
|
/* General Purpose Events */
|
||||||
|
#include "acpi/gpe.asl"
|
||||||
|
|
||||||
|
#include <cpu/intel/model_206ax/acpi/cpu.asl>
|
||||||
|
|
||||||
|
Scope (\_SB) {
|
||||||
|
Device (PCI0)
|
||||||
|
{
|
||||||
|
#include <northbridge/intel/nehalem/acpi/nehalem.asl>
|
||||||
|
#include <southbridge/intel/bd82x6x/acpi/pch.asl>
|
||||||
|
}
|
||||||
|
Device (UNCR)
|
||||||
|
{
|
||||||
|
Name (_BBN, 0xFF)
|
||||||
|
Name (_ADR, 0x00)
|
||||||
|
Name (RID, 0x00)
|
||||||
|
Name (_HID, EisaId ("PNP0A03"))
|
||||||
|
Name (_CRS, ResourceTemplate ()
|
||||||
|
{
|
||||||
|
WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
|
||||||
|
0x0000, /* Granularity */
|
||||||
|
0x00FF, /* Range Minimum */
|
||||||
|
0x00FF, /* Range Maximum */
|
||||||
|
0x0000, /* Translation Offset */
|
||||||
|
0x0001, /* Length */
|
||||||
|
,, )
|
||||||
|
})
|
||||||
|
Device (SAD)
|
||||||
|
{
|
||||||
|
Name (_ADR, 0x01)
|
||||||
|
Name (RID, 0x00)
|
||||||
|
OperationRegion (SADC, PCI_Config, 0x00, 0x0100)
|
||||||
|
Field (SADC, DWordAcc, NoLock, Preserve)
|
||||||
|
{
|
||||||
|
Offset (0x40),
|
||||||
|
PAM0, 8,
|
||||||
|
PAM1, 8,
|
||||||
|
PAM2, 8,
|
||||||
|
PAM3, 8,
|
||||||
|
PAM4, 8,
|
||||||
|
PAM5, 8,
|
||||||
|
PAM6, 8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "acpi/video.asl"
|
||||||
|
|
||||||
|
/* Chipset specific sleep states */
|
||||||
|
#include <southbridge/intel/i82801gx/acpi/sleepstates.asl>
|
||||||
|
}
|
160
src/mainboard/packardbell/ms2290/fadt.c
Normal file
160
src/mainboard/packardbell/ms2290/fadt.c
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2008 coresystems GmbH
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <device/pci.h>
|
||||||
|
#include <arch/acpi.h>
|
||||||
|
#include <cpu/x86/smm.h>
|
||||||
|
|
||||||
|
/* FIXME: This needs to go into a separate .h file
|
||||||
|
* to be included by the ich7 smi handler, ich7 smi init
|
||||||
|
* code and the mainboard fadt.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
||||||
|
{
|
||||||
|
acpi_header_t *header = &(fadt->header);
|
||||||
|
u16 pmbase =
|
||||||
|
pci_read_config16(dev_find_slot(0, PCI_DEVFN(0x1f, 0)),
|
||||||
|
0x40) & 0xfffe;
|
||||||
|
|
||||||
|
memset((void *)fadt, 0, sizeof(acpi_fadt_t));
|
||||||
|
memcpy(header->signature, "FACP", 4);
|
||||||
|
header->length = sizeof(acpi_fadt_t);
|
||||||
|
header->revision = 3;
|
||||||
|
memcpy(header->oem_id, OEM_ID, 6);
|
||||||
|
memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
|
||||||
|
memcpy(header->asl_compiler_id, ASLC, 4);
|
||||||
|
header->asl_compiler_revision = 0;
|
||||||
|
|
||||||
|
fadt->firmware_ctrl = (unsigned long)facs;
|
||||||
|
fadt->dsdt = (unsigned long)dsdt;
|
||||||
|
fadt->model = 0x00;
|
||||||
|
fadt->preferred_pm_profile = PM_MOBILE;
|
||||||
|
fadt->sci_int = 0x9;
|
||||||
|
fadt->smi_cmd = APM_CNT;
|
||||||
|
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||||
|
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||||
|
fadt->s4bios_req = 0x0;
|
||||||
|
fadt->pstate_cnt = APM_CNT_PST_CONTROL;
|
||||||
|
|
||||||
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
|
fadt->pm1b_evt_blk = 0x0;
|
||||||
|
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
||||||
|
fadt->pm1b_cnt_blk = 0x0;
|
||||||
|
fadt->pm2_cnt_blk = pmbase + 0x50;
|
||||||
|
fadt->pm_tmr_blk = pmbase + 0x8;
|
||||||
|
fadt->gpe0_blk = pmbase + 0x20;
|
||||||
|
fadt->gpe1_blk = 0;
|
||||||
|
|
||||||
|
fadt->pm1_evt_len = 4;
|
||||||
|
fadt->pm1_cnt_len = 2;
|
||||||
|
fadt->pm2_cnt_len = 1;
|
||||||
|
fadt->pm_tmr_len = 4;
|
||||||
|
fadt->gpe0_blk_len = 0x10;
|
||||||
|
fadt->gpe1_blk_len = 0;
|
||||||
|
fadt->gpe1_base = 0;
|
||||||
|
fadt->cst_cnt = APM_CNT_CST_CONTROL;
|
||||||
|
fadt->p_lvl2_lat = 1;
|
||||||
|
fadt->p_lvl3_lat = 0x23;
|
||||||
|
fadt->flush_size = 0;
|
||||||
|
fadt->flush_stride = 0;
|
||||||
|
fadt->duty_offset = 1;
|
||||||
|
fadt->duty_width = 3;
|
||||||
|
fadt->day_alrm = 0xd;
|
||||||
|
fadt->mon_alrm = 0x00;
|
||||||
|
fadt->century = 0x32;
|
||||||
|
fadt->iapc_boot_arch = 0x00;
|
||||||
|
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
|
||||||
|
ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE |
|
||||||
|
ACPI_FADT_DOCKING_SUPPORTED;
|
||||||
|
|
||||||
|
fadt->reset_reg.space_id = 0;
|
||||||
|
fadt->reset_reg.bit_width = 0;
|
||||||
|
fadt->reset_reg.bit_offset = 0;
|
||||||
|
fadt->reset_reg.resv = 0;
|
||||||
|
fadt->reset_reg.addrl = 0x0;
|
||||||
|
fadt->reset_reg.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->reset_value = 0;
|
||||||
|
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||||
|
fadt->x_firmware_ctl_h = 0;
|
||||||
|
fadt->x_dsdt_l = (unsigned long)dsdt;
|
||||||
|
fadt->x_dsdt_h = 0;
|
||||||
|
|
||||||
|
fadt->x_pm1a_evt_blk.space_id = 1;
|
||||||
|
fadt->x_pm1a_evt_blk.bit_width = 32;
|
||||||
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm1a_evt_blk.resv = 0;
|
||||||
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_pm1b_evt_blk.space_id = 0;
|
||||||
|
fadt->x_pm1b_evt_blk.bit_width = 0;
|
||||||
|
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm1b_evt_blk.resv = 0;
|
||||||
|
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
||||||
|
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
|
fadt->x_pm1a_cnt_blk.bit_width = 32;
|
||||||
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm1a_cnt_blk.resv = 0;
|
||||||
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
||||||
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_pm1b_cnt_blk.space_id = 0;
|
||||||
|
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
||||||
|
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm1b_cnt_blk.resv = 0;
|
||||||
|
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
||||||
|
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm2_cnt_blk.resv = 0;
|
||||||
|
fadt->x_pm2_cnt_blk.addrl = pmbase + 0x50;
|
||||||
|
fadt->x_pm2_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_pm_tmr_blk.space_id = 1;
|
||||||
|
fadt->x_pm_tmr_blk.bit_width = 32;
|
||||||
|
fadt->x_pm_tmr_blk.bit_offset = 0;
|
||||||
|
fadt->x_pm_tmr_blk.resv = 0;
|
||||||
|
fadt->x_pm_tmr_blk.addrl = pmbase + 0x8;
|
||||||
|
fadt->x_pm_tmr_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_gpe0_blk.space_id = 1;
|
||||||
|
fadt->x_gpe0_blk.bit_width = 128;
|
||||||
|
fadt->x_gpe0_blk.bit_offset = 0;
|
||||||
|
fadt->x_gpe0_blk.resv = 0;
|
||||||
|
fadt->x_gpe0_blk.addrl = pmbase + 0x20;
|
||||||
|
fadt->x_gpe0_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
fadt->x_gpe1_blk.space_id = 0;
|
||||||
|
fadt->x_gpe1_blk.bit_width = 0;
|
||||||
|
fadt->x_gpe1_blk.bit_offset = 0;
|
||||||
|
fadt->x_gpe1_blk.resv = 0;
|
||||||
|
fadt->x_gpe1_blk.addrl = 0x0;
|
||||||
|
fadt->x_gpe1_blk.addrh = 0x0;
|
||||||
|
|
||||||
|
header->checksum = acpi_checksum((void *)fadt, header->length);
|
||||||
|
}
|
272
src/mainboard/packardbell/ms2290/gma.c
Normal file
272
src/mainboard/packardbell/ms2290/gma.c
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
#include <arch/io.h>
|
||||||
|
#include <device/device.h>
|
||||||
|
#include <device/pci.h>
|
||||||
|
#include <device/pci_ids.h>
|
||||||
|
#include <device/pci_ops.h>
|
||||||
|
|
||||||
|
#include "northbridge/intel/nehalem/nehalem.h"
|
||||||
|
|
||||||
|
/* This array contains the information on flat panel. When using native
|
||||||
|
graphics init coreboot copies it to where VGA Option ROM would be so
|
||||||
|
that OS can find it and able to use internal display. This contains no
|
||||||
|
executable code and is just information on the panel.
|
||||||
|
*/
|
||||||
|
|
||||||
|
unsigned char fake_vbt[] = {
|
||||||
|
0x24, 0x56, 0x42, 0x54, 0x20, 0x49, 0x52, 0x4f, 0x4e, 0x4c, 0x41, 0x4b, 0x45, 0x2d, 0x4d, 0x4f,
|
||||||
|
0x42, 0x49, 0x4c, 0x45, 0x64, 0x00, 0x30, 0x00, 0xc3, 0x10, 0xa4, 0x00, 0x30, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x42, 0x49, 0x4f, 0x53, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x20,
|
||||||
|
0x9b, 0x00, 0x16, 0x00, 0x93, 0x10, 0xfe, 0xea, 0x00, 0x00, 0x64, 0x01, 0x01, 0x0f, 0x0d, 0x31,
|
||||||
|
0x39, 0x39, 0x34, 0x49, 0x6e, 0x74, 0x65, 0x6c, 0x28, 0x52, 0x29, 0x49, 0x72, 0x6f, 0x6e, 0x6c,
|
||||||
|
0x61, 0x6b, 0x65, 0x20, 0x4d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x20, 0x50, 0x43, 0x49, 0x20, 0x41,
|
||||||
|
0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x20, 0x53, 0x56, 0x47, 0x41, 0x20,
|
||||||
|
0x42, 0x49, 0x4f, 0x53, 0x0d, 0x0a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x20, 0x4e, 0x75, 0x6d, 0x62,
|
||||||
|
0x65, 0x72, 0x3a, 0x20, 0x69, 0x6c, 0x6d, 0x31, 0x39, 0x39, 0x34, 0x31, 0x2e, 0x6a, 0x76, 0x37,
|
||||||
|
0x20, 0x50, 0x43, 0x20, 0x31, 0x34, 0x2e, 0x33, 0x34, 0x20, 0x20, 0x30, 0x35, 0x2f, 0x32, 0x36,
|
||||||
|
0x2f, 0x32, 0x30, 0x31, 0x30, 0x20, 0x20, 0x31, 0x39, 0x3a, 0x32, 0x32, 0x3a, 0x30, 0x33, 0x0d,
|
||||||
|
0x0a, 0x44, 0x45, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x20, 0x4f,
|
||||||
|
0x52, 0x20, 0x44, 0x49, 0x53, 0x41, 0x53, 0x53, 0x45, 0x4d, 0x42, 0x4c, 0x59, 0x20, 0x50, 0x52,
|
||||||
|
0x4f, 0x48, 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x0d, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x43, 0x6f,
|
||||||
|
0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, 0x28, 0x43, 0x29, 0x20, 0x32, 0x30, 0x30, 0x30,
|
||||||
|
0x2d, 0x32, 0x30, 0x30, 0x33, 0x20, 0x49, 0x6e, 0x74, 0x65, 0x6c, 0x20, 0x43, 0x6f, 0x72, 0x70,
|
||||||
|
0x2e, 0x20, 0x41, 0x6c, 0x6c, 0x20, 0x52, 0x69, 0x67, 0x68, 0x74, 0x73, 0x20, 0x52, 0x65, 0x73,
|
||||||
|
0x65, 0x72, 0x76, 0x65, 0x64, 0x2e, 0x0d, 0x0a, 0x0d, 0x0a, 0x00, 0x00, 0xc0, 0x03, 0x08, 0x04,
|
||||||
|
0x01, 0x00, 0x00, 0x01, 0x05, 0x00, 0x07, 0x01, 0x00, 0x01, 0x01, 0xfe, 0x20, 0x00, 0x01, 0x01,
|
||||||
|
0x08, 0x08, 0x04, 0x04, 0x09, 0x08, 0x0c, 0x08, 0x05, 0x04, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0d,
|
||||||
|
0x01, 0x02, 0x04, 0x00, 0x00, 0x21, 0x08, 0x00, 0x22, 0x10, 0x00, 0x4c, 0x46, 0x50, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0xc0, 0xd1, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0xd2, 0x60, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x05,
|
||||||
|
0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01,
|
||||||
|
0x00, 0x00, 0x04, 0x1c, 0x00, 0x30, 0x32, 0x34, 0x36, 0x38, 0x3a, 0x3c, 0x40, 0x42, 0x44, 0x46,
|
||||||
|
0x48, 0x4a, 0x4c, 0x50, 0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x80, 0x81, 0x82, 0x83, 0x84, 0x1a,
|
||||||
|
0x00, 0xfe, 0xac, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01,
|
||||||
|
0x01, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x20, 0x00, 0xf4, 0x07, 0x1e, 0x00, 0x8e, 0x04, 0x28, 0x00,
|
||||||
|
0xbb, 0x04, 0x02, 0x00, 0xc5, 0x04, 0x38, 0x00, 0x06, 0x05, 0xc8, 0x00, 0x54, 0x07, 0x30, 0x00,
|
||||||
|
0x87, 0x07, 0x18, 0x00, 0xa2, 0x07, 0x18, 0x00, 0xbd, 0x07, 0x18, 0x00, 0xc0, 0x08, 0x08, 0x00,
|
||||||
|
0x04, 0x09, 0x12, 0x00, 0x16, 0x09, 0x12, 0x00, 0x28, 0x09, 0x12, 0x00, 0x3a, 0x09, 0x12, 0x00,
|
||||||
|
0x4f, 0x09, 0x0a, 0x00, 0x59, 0x09, 0x0a, 0x00, 0x63, 0x09, 0x0a, 0x00, 0x6d, 0x09, 0x0a, 0x00,
|
||||||
|
0x7a, 0x09, 0x0a, 0x00, 0x84, 0x09, 0x0a, 0x00, 0x8e, 0x09, 0x0a, 0x00, 0x98, 0x09, 0x0a, 0x00,
|
||||||
|
0xaa, 0x09, 0x0a, 0x00, 0xb4, 0x09, 0x0a, 0x00, 0xbe, 0x09, 0x0a, 0x00, 0xc8, 0x09, 0x0a, 0x00,
|
||||||
|
0xd2, 0x09, 0x0a, 0x00, 0xdc, 0x09, 0x0a, 0x00, 0xe6, 0x09, 0x0a, 0x00, 0xf0, 0x09, 0x0a, 0x00,
|
||||||
|
0xfa, 0x09, 0x0a, 0x00, 0x04, 0x0a, 0x0a, 0x00, 0x0e, 0x0a, 0x0a, 0x00, 0x18, 0x0a, 0x0a, 0x00,
|
||||||
|
0x22, 0x0a, 0x0a, 0x00, 0x2c, 0x0a, 0x0a, 0x00, 0x36, 0x0a, 0x0a, 0x00, 0x40, 0x0a, 0x0a, 0x00,
|
||||||
|
0x06, 0xa5, 0x01, 0xfc, 0xff, 0x02, 0x14, 0x60, 0x0c, 0x00, 0x80, 0x00, 0x80, 0x04, 0x40, 0x60,
|
||||||
|
0x0c, 0x00, 0x07, 0x0d, 0x03, 0x00, 0x44, 0x60, 0x0c, 0x00, 0x07, 0x0d, 0x03, 0x00, 0x18, 0x60,
|
||||||
|
0x0c, 0x00, 0x80, 0x00, 0x80, 0x04, 0x48, 0x60, 0x0c, 0x00, 0x07, 0x0d, 0x03, 0x00, 0x4c, 0x60,
|
||||||
|
0x0c, 0x00, 0x07, 0x0d, 0x03, 0x00, 0x80, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01,
|
||||||
|
0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x11, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||||
|
0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x9c, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9c, 0x11,
|
||||||
|
0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x7f, 0x02, 0x1f, 0x03, 0x04, 0x00,
|
||||||
|
0x06, 0x00, 0x87, 0x02, 0x17, 0x03, 0x08, 0x00, 0x06, 0x00, 0x8f, 0x02, 0xef, 0x02, 0x0c, 0x00,
|
||||||
|
0x06, 0x00, 0xdf, 0x01, 0x0c, 0x02, 0x10, 0x00, 0x06, 0x00, 0xe7, 0x01, 0x04, 0x02, 0x14, 0x00,
|
||||||
|
0x06, 0x00, 0xe9, 0x01, 0xeb, 0x01, 0x1c, 0x00, 0x06, 0x00, 0xdf, 0x01, 0x7f, 0x02, 0x00, 0x10,
|
||||||
|
0x06, 0x00, 0x7f, 0x02, 0x1f, 0x03, 0x04, 0x10, 0x06, 0x00, 0x87, 0x02, 0x17, 0x03, 0x08, 0x10,
|
||||||
|
0x06, 0x00, 0x8f, 0x02, 0xef, 0x02, 0x0c, 0x10, 0x06, 0x00, 0xdf, 0x01, 0x0c, 0x02, 0x10, 0x10,
|
||||||
|
0x06, 0x00, 0xe7, 0x01, 0x04, 0x02, 0x14, 0x10, 0x06, 0x00, 0xe9, 0x01, 0xeb, 0x01, 0x1c, 0x10,
|
||||||
|
0x06, 0x00, 0xdf, 0x01, 0x7f, 0x02, 0x00, 0x00, 0x0e, 0x00, 0x7f, 0x02, 0x1f, 0x03, 0x04, 0x00,
|
||||||
|
0x0e, 0x00, 0x87, 0x02, 0x17, 0x03, 0x08, 0x00, 0x0e, 0x00, 0x8f, 0x02, 0xef, 0x02, 0x0c, 0x00,
|
||||||
|
0x0e, 0x00, 0xdf, 0x01, 0x0c, 0x02, 0x10, 0x00, 0x0e, 0x00, 0xe7, 0x01, 0x04, 0x02, 0x14, 0x00,
|
||||||
|
0x0e, 0x00, 0xe9, 0x01, 0xeb, 0x01, 0x00, 0x10, 0x0e, 0x00, 0x7f, 0x02, 0x1f, 0x03, 0x04, 0x10,
|
||||||
|
0x0e, 0x00, 0x87, 0x02, 0x17, 0x03, 0x08, 0x10, 0x0e, 0x00, 0x8f, 0x02, 0xef, 0x02, 0x0c, 0x10,
|
||||||
|
0x0e, 0x00, 0xdf, 0x01, 0x0c, 0x02, 0x10, 0x10, 0x0e, 0x00, 0xe7, 0x01, 0x04, 0x02, 0x14, 0x10,
|
||||||
|
0x0e, 0x00, 0xe9, 0x01, 0xeb, 0x01, 0x00, 0x50, 0x04, 0x00, 0x22, 0x06, 0x24, 0xc2, 0x08, 0x00,
|
||||||
|
0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||||
|
0x04, 0x00, 0x8e, 0x29, 0x00, 0x80, 0x00, 0x11, 0x0e, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x40,
|
||||||
|
0x06, 0x00, 0x18, 0x00, 0x00, 0x00, 0x40, 0x11, 0x0e, 0x00, 0x18, 0x00, 0x00, 0x00, 0x50, 0x11,
|
||||||
|
0x0e, 0x00, 0x18, 0x00, 0x00, 0x00, 0x60, 0x11, 0x0e, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x07, 0x07, 0x00, 0xfe, 0xff, 0xce, 0x18, 0x00,
|
||||||
|
0xff, 0xff, 0x08, 0x3d, 0x00, 0xfc, 0xff, 0x02, 0x40, 0xf0, 0x04, 0x00, 0x01, 0x00, 0x00, 0x01,
|
||||||
|
0x44, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x4c, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x03, 0x03, 0x50, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x54, 0xf0, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x58, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xff, 0xff, 0x0a, 0xcb, 0x00, 0x0a, 0x80, 0x02, 0xe0, 0x01, 0xff, 0xff, 0xff, 0xda, 0xff, 0xff,
|
||||||
|
0x20, 0x03, 0x58, 0x02, 0xff, 0x03, 0xfe, 0x07, 0xff, 0xff, 0x00, 0x04, 0x00, 0x03, 0xff, 0x1b,
|
||||||
|
0xfe, 0x07, 0xff, 0xff, 0x80, 0x04, 0x60, 0x03, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0x00, 0x05,
|
||||||
|
0x58, 0x02, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff, 0x00, 0x05, 0xd0, 0x02, 0xff, 0x1b, 0xff, 0xbf,
|
||||||
|
0xff, 0xff, 0x00, 0x05, 0x00, 0x03, 0xff, 0x9b, 0xff, 0xbf, 0xff, 0xff, 0x00, 0x05, 0xc0, 0x03,
|
||||||
|
0xff, 0x9b, 0xff, 0x07, 0xff, 0xff, 0x00, 0x05, 0x00, 0x04, 0xff, 0x1b, 0xfe, 0x07, 0xff, 0xff,
|
||||||
|
0x56, 0x05, 0x00, 0x03, 0xff, 0x9b, 0xff, 0x07, 0xff, 0xff, 0x40, 0x06, 0x84, 0x03, 0xff, 0x1b,
|
||||||
|
0xfe, 0x07, 0xff, 0xff, 0x40, 0x06, 0xb0, 0x04, 0xff, 0x1b, 0xfe, 0x07, 0xff, 0xff, 0x00, 0x07,
|
||||||
|
0x40, 0x05, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0x40, 0x07, 0x70, 0x05, 0xff, 0xff, 0xff, 0x07,
|
||||||
|
0xff, 0xff, 0x80, 0x07, 0x38, 0x04, 0xff, 0x1b, 0xff, 0x07, 0xff, 0xff, 0x80, 0x07, 0xb0, 0x04,
|
||||||
|
0xff, 0xdb, 0xff, 0x07, 0xff, 0xff, 0x80, 0x07, 0xa0, 0x05, 0xff, 0x9b, 0xff, 0x07, 0xff, 0xff,
|
||||||
|
0x00, 0x08, 0x00, 0x06, 0xff, 0xdb, 0xff, 0x07, 0xff, 0xff, 0x78, 0x05, 0x1a, 0x04, 0xff, 0x9b,
|
||||||
|
0xff, 0x07, 0xff, 0xff, 0x90, 0x06, 0xb1, 0x03, 0xff, 0x1b, 0xff, 0x07, 0xff, 0xff, 0x00, 0x00,
|
||||||
|
0x0b, 0xc7, 0x00, 0x21, 0x40, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x09, 0x06, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x05, 0x72, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x03, 0x20, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x11, 0x00, 0x4e, 0x56, 0x05,
|
||||||
|
0x00, 0x03, 0x10, 0x3c, 0x84, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x00, 0x01, 0x0d, 0x03,
|
||||||
|
0x00, 0x78, 0x01, 0x0a, 0x0e, 0x09, 0x00, 0x01, 0xc5, 0x06, 0x5a, 0x00, 0x21, 0x07, 0x2d, 0x00,
|
||||||
|
0x0f, 0x8b, 0x00, 0x09, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09,
|
||||||
|
0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x84,
|
||||||
|
0x00, 0x10, 0x00, 0x03, 0x01, 0x08, 0x00, 0x04, 0x08, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00,
|
||||||
|
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x03, 0x01, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x08, 0x00,
|
||||||
|
0x02, 0x00, 0x00, 0x01, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08,
|
||||||
|
0x00, 0x03, 0x01, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x01, 0x04,
|
||||||
|
0x00, 0x04, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x03, 0x01, 0x00, 0x00,
|
||||||
|
0x01, 0x08, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x01, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04,
|
||||||
|
0x08, 0x00, 0x00, 0x00, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x12, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13,
|
||||||
|
0x20, 0x00, 0x0f, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x14, 0x9e, 0x00, 0x06, 0x1a, 0x03, 0x99, 0x00, 0x05, 0x20, 0x03, 0x07, 0x3c, 0xa9,
|
||||||
|
0x20, 0x00, 0x90, 0x51, 0x20, 0x1c, 0x30, 0x08, 0x88, 0x93, 0x00, 0x00, 0x20, 0x53, 0x00, 0x00,
|
||||||
|
0x00, 0x01, 0x99, 0xa0, 0x05, 0x84, 0x03, 0x07, 0x3c, 0xab, 0x22, 0xa0, 0xa0, 0x50, 0x84, 0x1a,
|
||||||
|
0x30, 0x30, 0x20, 0x36, 0x00, 0x2f, 0xbe, 0x10, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x07, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x3c, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
|
||||||
|
0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x16, 0x4b, 0x00, 0x00, 0x00, 0x03, 0x07, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x84, 0x0e, 0x00, 0x00, 0x4c, 0x46, 0x50,
|
||||||
|
0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61,
|
||||||
|
0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c,
|
||||||
|
0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d,
|
||||||
|
0x65, 0x17, 0x48, 0x00, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x2a, 0x00, 0x98, 0x51, 0x00, 0x30, 0x40, 0x30, 0x70,
|
||||||
|
0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0xa8, 0x2f, 0x78, 0xe0, 0x51, 0x1a, 0x26, 0x40,
|
||||||
|
0x58, 0x98, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x48, 0x3f, 0x40, 0x30, 0x62, 0xb0,
|
||||||
|
0x32, 0x40, 0x40, 0xc0, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x18, 0x28, 0x00, 0x36,
|
||||||
|
0x7f, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x36, 0x7f, 0x05, 0x00, 0x02, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x0c, 0x36, 0x7f, 0x01, 0x90, 0x03, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x36, 0x7f, 0x06,
|
||||||
|
0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x19, 0x28, 0x00, 0x19, 0x00, 0xfa, 0x00, 0xfa, 0x00,
|
||||||
|
0x19, 0x00, 0x90, 0x01, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0xc8, 0x00, 0x40, 0x00,
|
||||||
|
0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x2c, 0x01, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00,
|
||||||
|
0x2c, 0x01, 0x1a, 0x02, 0x00, 0x00, 0x00, 0x1b, 0xc8, 0x00, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07,
|
||||||
|
0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07,
|
||||||
|
0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01,
|
||||||
|
0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00,
|
||||||
|
0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13,
|
||||||
|
0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07,
|
||||||
|
0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07,
|
||||||
|
0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01,
|
||||||
|
0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00,
|
||||||
|
0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13,
|
||||||
|
0xd0, 0x07, 0x0a, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x88, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x28, 0x18, 0x00, 0x02, 0x00, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x94, 0x00,
|
||||||
|
0x03, 0x27, 0x0b, 0x20, 0x4d, 0x0b, 0x12, 0x5f, 0x0b, 0x0a, 0x69, 0x0b, 0x20, 0x8f, 0x0b, 0x12,
|
||||||
|
0xa1, 0x0b, 0x0a, 0xab, 0x0b, 0x20, 0xd1, 0x0b, 0x12, 0xe3, 0x0b, 0x0a, 0xed, 0x0b, 0x20, 0x13,
|
||||||
|
0x0c, 0x12, 0x25, 0x0c, 0x0a, 0x2f, 0x0c, 0x20, 0x55, 0x0c, 0x12, 0x67, 0x0c, 0x0a, 0x71, 0x0c,
|
||||||
|
0x20, 0x97, 0x0c, 0x12, 0xa9, 0x0c, 0x0a, 0xb3, 0x0c, 0x20, 0xd9, 0x0c, 0x12, 0xeb, 0x0c, 0x0a,
|
||||||
|
0xf5, 0x0c, 0x20, 0x1b, 0x0d, 0x12, 0x2d, 0x0d, 0x0a, 0x37, 0x0d, 0x20, 0x5d, 0x0d, 0x12, 0x6f,
|
||||||
|
0x0d, 0x0a, 0x79, 0x0d, 0x20, 0x9f, 0x0d, 0x12, 0xb1, 0x0d, 0x0a, 0xbb, 0x0d, 0x20, 0xe1, 0x0d,
|
||||||
|
0x12, 0xf3, 0x0d, 0x0a, 0xfd, 0x0d, 0x20, 0x23, 0x0e, 0x12, 0x35, 0x0e, 0x0a, 0x3f, 0x0e, 0x20,
|
||||||
|
0x65, 0x0e, 0x12, 0x77, 0x0e, 0x0a, 0x81, 0x0e, 0x20, 0xa7, 0x0e, 0x12, 0xb9, 0x0e, 0x0a, 0xc3,
|
||||||
|
0x0e, 0x20, 0xe9, 0x0e, 0x12, 0xfb, 0x0e, 0x0a, 0x05, 0x0f, 0x20, 0x2b, 0x0f, 0x12, 0x3d, 0x0f,
|
||||||
|
0x0a, 0x47, 0x0f, 0x0d, 0x2a, 0xf0, 0x04, 0x80, 0x02, 0xe0, 0x01, 0x80, 0x11, 0x0e, 0x00, 0x00,
|
||||||
|
0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0,
|
||||||
|
0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0xd6, 0x09, 0x80,
|
||||||
|
0x90, 0x20, 0xe0, 0x1d, 0x10, 0x08, 0x60, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36,
|
||||||
|
0x7f, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x03, 0x58, 0x02, 0x80, 0x11, 0x0e,
|
||||||
|
0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c,
|
||||||
|
0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0xa0,
|
||||||
|
0x0f, 0x20, 0x00, 0x31, 0x58, 0x1c, 0x20, 0x28, 0x80, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x1e, 0x36, 0x7f, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x06, 0x84, 0x03, 0x80,
|
||||||
|
0x11, 0x0e, 0x00, 0x3c, 0x03, 0x30, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xb8, 0x0b, 0x2c, 0x01, 0x0c,
|
||||||
|
0x72, 0x0c, 0x00, 0xb8, 0x0b, 0x2c, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x06, 0x0f, 0x27, 0x00, 0xff,
|
||||||
|
0xff, 0x2f, 0x26, 0x40, 0xb8, 0x60, 0x84, 0x0c, 0x30, 0x30, 0x30, 0x23, 0x00, 0x7e, 0xd7, 0x10,
|
||||||
|
0x00, 0x00, 0x19, 0x30, 0xe4, 0x89, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x05, 0x00,
|
||||||
|
0x04, 0x80, 0x11, 0x0e, 0x00, 0x3c, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58,
|
||||||
|
0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27,
|
||||||
|
0x00, 0xff, 0xff, 0x30, 0x2a, 0x00, 0x98, 0x51, 0x00, 0x30, 0x40, 0x30, 0x70, 0x13, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x05, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x78,
|
||||||
|
0x05, 0x1a, 0x04, 0x80, 0x11, 0x0e, 0x00, 0x3c, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0,
|
||||||
|
0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05,
|
||||||
|
0x0f, 0x27, 0x00, 0xff, 0xff, 0x30, 0x2a, 0x78, 0x20, 0x51, 0x1a, 0x10, 0x40, 0x10, 0x70, 0x13,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x01, 0x90, 0x05, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x0c, 0x78, 0x05, 0x1a, 0x04, 0x80, 0x11, 0x0e, 0x00, 0x3c, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c,
|
||||||
|
0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c,
|
||||||
|
0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0xa8, 0x2f, 0x78, 0xe0, 0x51, 0x1a, 0x26, 0x40, 0x58,
|
||||||
|
0x98, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x01, 0x90, 0x06, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x0c, 0x40, 0x06, 0xb0, 0x04, 0x80, 0x11, 0x0e, 0x00, 0x3c, 0x03, 0x00, 0x00, 0x08,
|
||||||
|
0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10,
|
||||||
|
0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0x48, 0x3f, 0x40, 0x30, 0x62, 0xb0, 0x32,
|
||||||
|
0x40, 0x40, 0xc0, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x06, 0x00, 0x07,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x05, 0x00, 0x03, 0x80, 0x11, 0x0e, 0x00, 0x00, 0x03, 0x00,
|
||||||
|
0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4,
|
||||||
|
0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0xa9, 0x1a, 0x00, 0xa0, 0x50,
|
||||||
|
0x00, 0x0a, 0x30, 0x30, 0x20, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03,
|
||||||
|
0x90, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x06, 0x1a, 0x04, 0x80, 0x11, 0x0e, 0x00, 0x3c,
|
||||||
|
0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0,
|
||||||
|
0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0x7c, 0x2e, 0x90,
|
||||||
|
0xa0, 0x60, 0x1a, 0x1e, 0x40, 0x30, 0x20, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36,
|
||||||
|
0x7f, 0x04, 0x90, 0x09, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x07, 0xb0, 0x04, 0x80, 0x11, 0x0e,
|
||||||
|
0x00, 0x3c, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c,
|
||||||
|
0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0x28,
|
||||||
|
0x3c, 0x80, 0xa0, 0x70, 0xb0, 0x23, 0x40, 0x30, 0x20, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x1e, 0x36, 0x7f, 0x05, 0x90, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x03, 0x80,
|
||||||
|
0x11, 0x0e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c,
|
||||||
|
0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff,
|
||||||
|
0xff, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00,
|
||||||
|
0x03, 0x80, 0x11, 0x0e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58,
|
||||||
|
0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27,
|
||||||
|
0x00, 0xff, 0xff, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00,
|
||||||
|
0x04, 0x00, 0x03, 0x80, 0x11, 0x0e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0,
|
||||||
|
0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c, 0x00, 0x05,
|
||||||
|
0x0f, 0x27, 0x00, 0xff, 0xff, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x0c, 0x00, 0x05, 0x20, 0x03, 0x80, 0x11, 0x0e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x72, 0x0c,
|
||||||
|
0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10, 0x72, 0x0c,
|
||||||
|
0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0xea, 0x1a, 0x00, 0xa0, 0x50, 0x20, 0x17, 0x30, 0x0c,
|
||||||
|
0x30, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03, 0x90, 0x0e, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x0c, 0x00, 0x05, 0x58, 0x02, 0x80, 0x11, 0x0e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08,
|
||||||
|
0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4, 0x01, 0x10,
|
||||||
|
0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0x06, 0x18, 0x00, 0x70, 0x51, 0x58, 0x15,
|
||||||
|
0x20, 0x38, 0x80, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03, 0x00, 0x0f,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x06, 0x80, 0x11, 0x0e, 0x00, 0x3c, 0x03, 0x00,
|
||||||
|
0x00, 0x08, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0x58, 0x02, 0x0c, 0x72, 0x0c, 0x00, 0xd0, 0x07, 0xf4,
|
||||||
|
0x01, 0x10, 0x72, 0x0c, 0x00, 0x05, 0x0f, 0x27, 0x00, 0xff, 0xff, 0x29, 0x40, 0x00, 0x60, 0x80,
|
||||||
|
0x00, 0x13, 0x60, 0x10, 0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x36, 0x7f, 0x03,
|
||||||
|
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c,
|
||||||
|
0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d,
|
||||||
|
0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46,
|
||||||
|
0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50,
|
||||||
|
0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65,
|
||||||
|
0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61,
|
||||||
|
0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c,
|
||||||
|
0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f,
|
||||||
|
0x50, 0x61, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x46, 0x50, 0x5f, 0x50, 0x61, 0x6e
|
||||||
|
};
|
90
src/mainboard/packardbell/ms2290/hda_verb.h
Normal file
90
src/mainboard/packardbell/ms2290/hda_verb.h
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2014 Vladimir Serbinenko.
|
||||||
|
*
|
||||||
|
* 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,
|
||||||
|
* or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
static const u32 mainboard_cim_verb_data[] = {
|
||||||
|
/* coreboot specific header */
|
||||||
|
0x10ec0272, /* Codec Vendor / Device ID: Realtek ALC272X */
|
||||||
|
0x10250379, /* Subsystem ID */
|
||||||
|
0x00000006, /* Number of 4 dword sets */
|
||||||
|
|
||||||
|
/* NID 0x01: Subsystem ID. */
|
||||||
|
0x00172079,
|
||||||
|
0x00172103,
|
||||||
|
0x00172225,
|
||||||
|
0x00172310,
|
||||||
|
|
||||||
|
/* NID 0x14. */
|
||||||
|
0x01471C10,
|
||||||
|
0x01471D01,
|
||||||
|
0x01471E13,
|
||||||
|
0x01471F99,
|
||||||
|
|
||||||
|
/* NID 0x18. */
|
||||||
|
0x01871C30,
|
||||||
|
0x01871D18,
|
||||||
|
0x01871EA1,
|
||||||
|
0x01871F03,
|
||||||
|
|
||||||
|
/* NID 0x19. */
|
||||||
|
0x01971C20,
|
||||||
|
0x01971D09,
|
||||||
|
0x01971EA3,
|
||||||
|
0x01971F99,
|
||||||
|
|
||||||
|
/* NID 0x1D. */
|
||||||
|
0x01D71C2D,
|
||||||
|
0x01D71D99,
|
||||||
|
0x01D71E17,
|
||||||
|
0x01D71F40,
|
||||||
|
|
||||||
|
/* NID 0x21. */
|
||||||
|
0x02171C1F,
|
||||||
|
0x02171D10,
|
||||||
|
0x02171E21,
|
||||||
|
0x02171F03,
|
||||||
|
|
||||||
|
0x80862804, /* Codec Vendor / Device ID: Intel Ibexpeak HDMI. */
|
||||||
|
0x80860101, /* Subsystem ID */
|
||||||
|
0x00000004, /* Number of 4 dword sets */
|
||||||
|
|
||||||
|
/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21b5 */
|
||||||
|
0x30172001,
|
||||||
|
0x30172101,
|
||||||
|
0x30172286,
|
||||||
|
0x30172380,
|
||||||
|
|
||||||
|
/* NID 0x04. */
|
||||||
|
0x30471C10,
|
||||||
|
0x30471D00,
|
||||||
|
0x30471E56,
|
||||||
|
0x30471F18,
|
||||||
|
|
||||||
|
/* NID 0x05. */
|
||||||
|
0x30571C20,
|
||||||
|
0x30571D00,
|
||||||
|
0x30571E56,
|
||||||
|
0x30571F58,
|
||||||
|
|
||||||
|
/* NID 0x06. */
|
||||||
|
0x30671C30,
|
||||||
|
0x30671D00,
|
||||||
|
0x30671E56,
|
||||||
|
0x30671F58,
|
||||||
|
};
|
178
src/mainboard/packardbell/ms2290/mainboard.c
Normal file
178
src/mainboard/packardbell/ms2290/mainboard.c
Normal file
@ -0,0 +1,178 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
* Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
* Copyright (C) 2013 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <console/console.h>
|
||||||
|
#include <device/device.h>
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <delay.h>
|
||||||
|
#include <device/pci_def.h>
|
||||||
|
#include <device/pci_ops.h>
|
||||||
|
#include <device/pci_ids.h>
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <northbridge/intel/nehalem/nehalem.h>
|
||||||
|
#include <southbridge/intel/bd82x6x/pch.h>
|
||||||
|
#include <ec/acpi/ec.h>
|
||||||
|
|
||||||
|
#include <pc80/mc146818rtc.h>
|
||||||
|
#include "hda_verb.h"
|
||||||
|
#include <arch/x86/include/arch/acpigen.h>
|
||||||
|
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
|
||||||
|
#include <x86emu/regs.h>
|
||||||
|
#include <arch/interrupt.h>
|
||||||
|
#endif
|
||||||
|
#include <pc80/keyboard.h>
|
||||||
|
#include <cpu/x86/lapic.h>
|
||||||
|
#include <device/pci.h>
|
||||||
|
#include <smbios.h>
|
||||||
|
|
||||||
|
static acpi_cstate_t cst_entries[] = {
|
||||||
|
{1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}},
|
||||||
|
{2, 1, 500, {0x01, 8, 0, {0}, DEFAULT_PMBASE + LV2, 0}},
|
||||||
|
{2, 17, 250, {0x01, 8, 0, {0}, DEFAULT_PMBASE + LV3, 0}},
|
||||||
|
};
|
||||||
|
|
||||||
|
int get_cst_entries(acpi_cstate_t ** entries)
|
||||||
|
{
|
||||||
|
*entries = cst_entries;
|
||||||
|
return ARRAY_SIZE(cst_entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
|
||||||
|
|
||||||
|
static int int15_handler(void)
|
||||||
|
{
|
||||||
|
switch ((X86_EAX & 0xffff)) {
|
||||||
|
/* Get boot display. */
|
||||||
|
case 0x5f35:
|
||||||
|
X86_EAX = 0x5f;
|
||||||
|
/* The flags are:
|
||||||
|
1 - VGA
|
||||||
|
4 - DisplayPort
|
||||||
|
8 - LCD
|
||||||
|
*/
|
||||||
|
X86_ECX = 0x8;
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
case 0x5f40:
|
||||||
|
X86_EAX = 0x5f;
|
||||||
|
X86_ECX = 0x2;
|
||||||
|
return 1;
|
||||||
|
default:
|
||||||
|
printk(BIOS_WARNING, "Unknown INT15 function %04x!\n",
|
||||||
|
X86_EAX & 0xffff);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Audio Setup */
|
||||||
|
|
||||||
|
extern const u32 *cim_verb_data;
|
||||||
|
extern u32 cim_verb_data_size;
|
||||||
|
|
||||||
|
static void verb_setup(void)
|
||||||
|
{
|
||||||
|
cim_verb_data = mainboard_cim_verb_data;
|
||||||
|
cim_verb_data_size = sizeof(mainboard_cim_verb_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void mainboard_enable(device_t dev)
|
||||||
|
{
|
||||||
|
u16 pmbase;
|
||||||
|
|
||||||
|
printk(BIOS_SPEW, "starting SPI configuration\n");
|
||||||
|
|
||||||
|
/* Configure SPI. */
|
||||||
|
RCBA32(0x3800) = 0x07ff0500;
|
||||||
|
RCBA32(0x3804) = 0x3f046008;
|
||||||
|
RCBA32(0x3808) = 0x0058efc0;
|
||||||
|
RCBA32(0x384c) = 0x92000000;
|
||||||
|
RCBA32(0x3850) = 0x00000a0b;
|
||||||
|
RCBA32(0x3858) = 0x07ff0500;
|
||||||
|
RCBA32(0x385c) = 0x04ff0003;
|
||||||
|
RCBA32(0x3860) = 0x00020001;
|
||||||
|
RCBA32(0x3864) = 0x00000fff;
|
||||||
|
RCBA32(0x3874) = 0;
|
||||||
|
RCBA32(0x3890) = 0xf8400000;
|
||||||
|
RCBA32(0x3894) = 0x143b5006;
|
||||||
|
RCBA32(0x3898) = 0x05200302;
|
||||||
|
RCBA32(0x389c) = 0x0601209f;
|
||||||
|
RCBA32(0x38b0) = 0x00000004;
|
||||||
|
RCBA32(0x38b4) = 0x03040002;
|
||||||
|
RCBA32(0x38c0) = 0x00000007;
|
||||||
|
RCBA32(0x38c8) = 0x00002005;
|
||||||
|
RCBA32(0x38c4) = 0x00802005;
|
||||||
|
RCBA32(0x3804) = 0x3f04e008;
|
||||||
|
|
||||||
|
printk(BIOS_SPEW, "SPI configured\n");
|
||||||
|
|
||||||
|
int i;
|
||||||
|
const u8 dmp[256] = {
|
||||||
|
0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x89, 0xe4, 0x30, 0x00, 0x40, 0x14, 0x00, 0x00, 0x00, 0x11,
|
||||||
|
0x03, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0xf4, 0x01, 0x00, 0x00, 0x01,
|
||||||
|
0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x62, 0x01, 0x04, 0x00, 0x08, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
|
||||||
|
0x42, 0x07, 0x09, 0x09, 0xf0, 0x00, 0x00, 0xf0, 0xa9, 0x00, 0x00, 0x06, 0x00, 0x00, 0xff, 0x00,
|
||||||
|
0x00, 0x01, 0x00, 0x04, 0xff, 0xff, 0x00, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0b,
|
||||||
|
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x28, 0x1b, 0x21, 0x00, 0x2c, 0x3b, 0x13, 0x00,
|
||||||
|
0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x55, 0x5a, 0x57, 0x5c, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
|
||||||
|
0x52, 0x10, 0x52, 0x10, 0x64, 0x00, 0x00, 0x00, 0x74, 0x30, 0x00, 0x60, 0x00, 0x00, 0xaf, 0x0b,
|
||||||
|
0x30, 0x45, 0x2e, 0x30, 0x38, 0x41, 0x43, 0x2e, 0x30, 0x31, 0x2e, 0x31, 0x36, 0x20, 0x00, 0x00,
|
||||||
|
};
|
||||||
|
|
||||||
|
for (i = 0; i < 256; i++)
|
||||||
|
ec_write (i, dmp[i]);
|
||||||
|
|
||||||
|
pmbase = pci_read_config32(dev_find_slot(0, PCI_DEVFN(0x1f, 0)),
|
||||||
|
PMBASE) & 0xff80;
|
||||||
|
|
||||||
|
printk(BIOS_SPEW, " ... pmbase = 0x%04x\n", pmbase);
|
||||||
|
|
||||||
|
outl(0, pmbase + SMI_EN);
|
||||||
|
|
||||||
|
enable_lapic();
|
||||||
|
pci_write_config32(dev_find_slot(0, PCI_DEVFN(0x1f, 0)), GPIO_BASE,
|
||||||
|
DEFAULT_GPIOBASE | 1);
|
||||||
|
pci_write_config8(dev_find_slot(0, PCI_DEVFN(0x1f, 0)), GPIO_CNTL,
|
||||||
|
0x10);
|
||||||
|
|
||||||
|
#if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
|
||||||
|
/* Install custom int15 handler for VGA OPROM */
|
||||||
|
mainboard_interrupt_handlers(0x15, &int15_handler);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This sneaked in here, because EasyNote has no SuperIO chip.
|
||||||
|
*/
|
||||||
|
pc_keyboard_init(0);
|
||||||
|
verb_setup();
|
||||||
|
}
|
||||||
|
|
||||||
|
struct chip_operations mainboard_ops = {
|
||||||
|
.enable_dev = mainboard_enable,
|
||||||
|
};
|
333
src/mainboard/packardbell/ms2290/romstage.c
Normal file
333
src/mainboard/packardbell/ms2290/romstage.c
Normal file
@ -0,0 +1,333 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2009 coresystems GmbH
|
||||||
|
* Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
|
||||||
|
* Copyright (C) 2013 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* __PRE_RAM__ means: use "unsigned" for device, not a struct. */
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <device/pci_def.h>
|
||||||
|
#include <device/pnp_def.h>
|
||||||
|
#include <cpu/x86/lapic.h>
|
||||||
|
#include <lib.h>
|
||||||
|
#include <pc80/mc146818rtc.h>
|
||||||
|
#include <console/console.h>
|
||||||
|
#include <cpu/x86/bist.h>
|
||||||
|
#include <ec/acpi/ec.h>
|
||||||
|
#include <delay.h>
|
||||||
|
#include <timestamp.h>
|
||||||
|
#include <cbmem.h>
|
||||||
|
|
||||||
|
#include "arch/early_variables.h"
|
||||||
|
#include "southbridge/intel/ibexpeak/pch.h"
|
||||||
|
#include "northbridge/intel/nehalem/nehalem.h"
|
||||||
|
|
||||||
|
#include "northbridge/intel/nehalem/raminit.h"
|
||||||
|
#include "southbridge/intel/ibexpeak/me.h"
|
||||||
|
|
||||||
|
static void pch_enable_lpc(void)
|
||||||
|
{
|
||||||
|
/* Enable EC, PS/2 Keyboard/Mouse */
|
||||||
|
pci_write_config16(PCH_LPC_DEV, LPC_EN,
|
||||||
|
CNF2_LPC_EN | CNF1_LPC_EN | MC_LPC_EN | KBC_LPC_EN |
|
||||||
|
COMA_LPC_EN);
|
||||||
|
|
||||||
|
pci_write_config32(PCH_LPC_DEV, LPC_GEN1_DEC, (0x68 & ~3) | 0x00040001);
|
||||||
|
|
||||||
|
pci_write_config16(PCH_LPC_DEV, LPC_IO_DEC, 0x10);
|
||||||
|
|
||||||
|
pci_write_config32(PCH_LPC_DEV, 0xd0, 0x0);
|
||||||
|
pci_write_config32(PCH_LPC_DEV, 0xdc, 0x8);
|
||||||
|
|
||||||
|
pci_write_config8(PCH_LPC_DEV, GEN_PMCON_3,
|
||||||
|
(pci_read_config8(PCH_LPC_DEV, GEN_PMCON_3) & ~2) | 1);
|
||||||
|
|
||||||
|
pci_write_config32(PCH_LPC_DEV, ETR3,
|
||||||
|
pci_read_config32(PCH_LPC_DEV, ETR3) & ~ETR3_CF9GR);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void rcba_config(void)
|
||||||
|
{
|
||||||
|
static const u32 rcba_dump3[] = {
|
||||||
|
/* 30fc */ 0x00000000,
|
||||||
|
/* 3100 */ 0x04341200, 0x00000000, 0x40043214, 0x00014321,
|
||||||
|
/* 3110 */ 0x00000002, 0x30003214, 0x00000001, 0x00000002,
|
||||||
|
/* 3120 */ 0x00000000, 0x00002321, 0x00000000, 0x00000000,
|
||||||
|
/* 3130 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3140 */ 0x00003107, 0x76543210, 0x00000010, 0x00007654,
|
||||||
|
/* 3150 */ 0x00000004, 0x00000000, 0x00000000, 0x00003210,
|
||||||
|
/* 3160 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3170 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3180 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3190 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31a0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31b0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31c0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31d0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 31f0 */ 0x00000000, 0x00000000, 0x00000000, 0x03000000,
|
||||||
|
/* 3200 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3210 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3220 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3230 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3240 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3250 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3260 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3270 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3280 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3290 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32a0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32b0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32c0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32d0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 32f0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3300 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3310 */ 0x02060100, 0x0000000f, 0x01020000, 0x80000000,
|
||||||
|
/* 3320 */ 0x00000000, 0x04000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3330 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3340 */ 0x000fffff, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3350 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3360 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3370 */ 0x00000000, 0x00000000, 0x7f8fdfff, 0x00000000,
|
||||||
|
/* 3380 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3390 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 33a0 */ 0x00003900, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 33b0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 33c0 */ 0x00010000, 0x00000000, 0x00000000, 0x0001004b,
|
||||||
|
/* 33d0 */ 0x06000008, 0x00010000, 0x00000000, 0x00000000,
|
||||||
|
/* 33e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 33f0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3400 */ 0x0000001c, 0x00000080, 0x00000000, 0x00000000,
|
||||||
|
/* 3410 */ 0x00000c61, 0x00000000, 0x16fc1fe1, 0xbf4f001f,
|
||||||
|
/* 3420 */ 0x00000000, 0x00060010, 0x0000001d, 0x00000000,
|
||||||
|
/* 3430 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3440 */ 0xdeaddeed, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3450 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3460 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3470 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3480 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3490 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34a0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34b0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34c0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34d0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 34f0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3500 */ 0x20000557, 0x2000055f, 0x2000074b, 0x2000074b,
|
||||||
|
/* 3510 */ 0x20000557, 0x2000014b, 0x2000074b, 0x2000074b,
|
||||||
|
/* 3520 */ 0x2000074b, 0x2000074b, 0x2000055f, 0x2000055f,
|
||||||
|
/* 3530 */ 0x20000557, 0x2000055f, 0x00000000, 0x00000000,
|
||||||
|
/* 3540 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3550 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3560 */ 0x00000001, 0x000026a3, 0x00040002, 0x01000052,
|
||||||
|
/* 3570 */ 0x02000772, 0x16000f8f, 0x1800ff4f, 0x0001d630,
|
||||||
|
/* 3580 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3590 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 35a0 */ 0xfc000201, 0x3c000201, 0x00000000, 0x00000000,
|
||||||
|
/* 35b0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 35c0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 35d0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 35e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 35f0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3600 */ 0x0a001f00, 0x00000000, 0x00000000, 0x00000001,
|
||||||
|
/* 3610 */ 0x00010000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3600 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3610 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3620 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3630 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3640 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3650 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3660 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3670 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3680 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3690 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 36a0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 36b0 */ 0x00000000, 0x089c0018, 0x00000000, 0x00000000,
|
||||||
|
/* 36c0 */ 0x11111111, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 36d0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 36e0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 36f0 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
|
||||||
|
/* 3710 */ 0x00000000, 0x4e564d49, 0x00000000, 0x00000000,
|
||||||
|
};
|
||||||
|
unsigned i;
|
||||||
|
for (i = 0; i < sizeof(rcba_dump3) / 4; i++) {
|
||||||
|
RCBA32(4 * i + 0x30fc) = rcba_dump3[i];
|
||||||
|
(void)RCBA32(4 * i + 0x30fc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void write_acpi32(u32 addr, u32 val)
|
||||||
|
{
|
||||||
|
outl(val, DEFAULT_PMBASE | addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void write_acpi16(u32 addr, u16 val)
|
||||||
|
{
|
||||||
|
outw(val, DEFAULT_PMBASE | addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline u32 read_acpi32(u32 addr)
|
||||||
|
{
|
||||||
|
return inl(DEFAULT_PMBASE | addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline u16 read_acpi16(u32 addr)
|
||||||
|
{
|
||||||
|
return inw(DEFAULT_PMBASE | addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void main(unsigned long bist)
|
||||||
|
{
|
||||||
|
u32 reg32;
|
||||||
|
int s3resume = 0;
|
||||||
|
const u8 spd_addrmap[4] = { 0x50, 0, 0x52, 0 };
|
||||||
|
|
||||||
|
timestamp_init(rdtsc ());
|
||||||
|
|
||||||
|
/* SERR pin is confused on reset. Clear NMI. */
|
||||||
|
outb(4, 0x61);
|
||||||
|
outb(0, 0x61);
|
||||||
|
|
||||||
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
|
|
||||||
|
if (bist == 0)
|
||||||
|
enable_lapic();
|
||||||
|
|
||||||
|
nehalem_early_initialization(NEHALEM_MOBILE);
|
||||||
|
|
||||||
|
pch_enable_lpc();
|
||||||
|
|
||||||
|
/* Enable GPIOs */
|
||||||
|
pci_write_config32(PCH_LPC_DEV, GPIO_BASE, DEFAULT_GPIOBASE | 1);
|
||||||
|
pci_write_config8(PCH_LPC_DEV, GPIO_CNTL, 0x10);
|
||||||
|
outl (0x796bd9c3, DEFAULT_GPIOBASE);
|
||||||
|
outl (0x86fec7c2, DEFAULT_GPIOBASE + 4);
|
||||||
|
outl (0xe4e8d7fe, DEFAULT_GPIOBASE + 0xc);
|
||||||
|
outl (0, DEFAULT_GPIOBASE + 0x18);
|
||||||
|
outl (0x00004182, DEFAULT_GPIOBASE + 0x2c);
|
||||||
|
outl (0x123360f8, DEFAULT_GPIOBASE + 0x30);
|
||||||
|
outl (0x1f47bfa8, DEFAULT_GPIOBASE + 0x34);
|
||||||
|
outl (0xfffe7fb6, DEFAULT_GPIOBASE + 0x38);
|
||||||
|
|
||||||
|
|
||||||
|
/* This should probably go away. Until now it is required
|
||||||
|
* and mainboard specific
|
||||||
|
*/
|
||||||
|
rcba_config();
|
||||||
|
|
||||||
|
console_init();
|
||||||
|
|
||||||
|
/* Halt if there was a built in self test failure */
|
||||||
|
report_bist_failure(bist);
|
||||||
|
|
||||||
|
/* Read PM1_CNT */
|
||||||
|
reg32 = inl(DEFAULT_PMBASE + 0x04);
|
||||||
|
printk(BIOS_DEBUG, "PM1_CNT: %08x\n", reg32);
|
||||||
|
if (((reg32 >> 10) & 7) == 5) {
|
||||||
|
u8 reg8;
|
||||||
|
reg8 = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xa2);
|
||||||
|
printk(BIOS_DEBUG, "a2: %02x\n", reg8);
|
||||||
|
if (!(reg8 & 0x20)) {
|
||||||
|
outl(reg32 & ~(7 << 10), DEFAULT_PMBASE + 0x04);
|
||||||
|
printk(BIOS_DEBUG, "Bad resume from S3 detected.\n");
|
||||||
|
} else {
|
||||||
|
printk(BIOS_DEBUG, "Resume from S3 detected.\n");
|
||||||
|
s3resume = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Enable SMBUS. */
|
||||||
|
enable_smbus();
|
||||||
|
|
||||||
|
write_acpi16(0x2, 0x0);
|
||||||
|
write_acpi32(0x28, 0x0);
|
||||||
|
write_acpi32(0x2c, 0x0);
|
||||||
|
if (!s3resume) {
|
||||||
|
read_acpi32(0x4);
|
||||||
|
read_acpi32(0x20);
|
||||||
|
read_acpi32(0x34);
|
||||||
|
write_acpi16(0x0, 0x900);
|
||||||
|
write_acpi32(0x20, 0xffff7ffe);
|
||||||
|
write_acpi32(0x34, 0x56974);
|
||||||
|
pci_write_config8(PCH_LPC_DEV, GEN_PMCON_3,
|
||||||
|
pci_read_config8(PCH_LPC_DEV, GEN_PMCON_3) | 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
early_thermal_init();
|
||||||
|
|
||||||
|
timestamp_add_now(TS_BEFORE_INITRAM);
|
||||||
|
|
||||||
|
chipset_init(s3resume);
|
||||||
|
raminit(s3resume, spd_addrmap);
|
||||||
|
|
||||||
|
timestamp_add_now(TS_AFTER_INITRAM);
|
||||||
|
|
||||||
|
intel_early_me_status();
|
||||||
|
|
||||||
|
if (s3resume) {
|
||||||
|
/* Clear SLP_TYPE. This will break stage2 but
|
||||||
|
* we care for that when we get there.
|
||||||
|
*/
|
||||||
|
reg32 = inl(DEFAULT_PMBASE + 0x04);
|
||||||
|
outl(reg32 & ~(7 << 10), DEFAULT_PMBASE + 0x04);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if CONFIG_HAVE_ACPI_RESUME
|
||||||
|
/* If there is no high memory area, we didn't boot before, so
|
||||||
|
* this is not a resume. In that case we just create the cbmem toc.
|
||||||
|
*/
|
||||||
|
if (s3resume) {
|
||||||
|
void *resume_backup_memory;
|
||||||
|
|
||||||
|
/* For non-S3-resume, CBMEM is inited in raminit code. */
|
||||||
|
if (cbmem_recovery(1)) {
|
||||||
|
printk(BIOS_ERR, "Failed S3 resume.\n");
|
||||||
|
ram_check(0x100000, 0x200000);
|
||||||
|
|
||||||
|
/* Failed S3 resume, reset to come up cleanly */
|
||||||
|
outb(0xe, 0xcf9);
|
||||||
|
hlt();
|
||||||
|
}
|
||||||
|
|
||||||
|
resume_backup_memory = cbmem_find(CBMEM_ID_RESUME);
|
||||||
|
|
||||||
|
/* copy 1MB - 64K to high tables ram_base to prevent memory corruption
|
||||||
|
* through stage 2. We could keep stuff like stack and heap in high tables
|
||||||
|
* memory completely, but that's a wonderful clean up task for another
|
||||||
|
* day.
|
||||||
|
*/
|
||||||
|
if (resume_backup_memory)
|
||||||
|
memcpy(resume_backup_memory, (void *)CONFIG_RAMBASE,
|
||||||
|
HIGH_MEMORY_SAVE);
|
||||||
|
|
||||||
|
/* Magic for S3 resume */
|
||||||
|
pci_write_config32(PCI_DEV(0, 0x00, 0), SKPAD, 0xcafed00d);
|
||||||
|
} else {
|
||||||
|
pci_write_config32(PCI_DEV(0, 0x00, 0), SKPAD, 0xcafebabe);
|
||||||
|
quick_ram_check();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
timestamp_add_now(TS_END_ROMSTAGE);
|
||||||
|
}
|
112
src/mainboard/packardbell/ms2290/smihandler.c
Normal file
112
src/mainboard/packardbell/ms2290/smihandler.c
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2008-2009 coresystems GmbH
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <console/console.h>
|
||||||
|
#include <cpu/x86/smm.h>
|
||||||
|
#include "southbridge/intel/ibexpeak/nvs.h"
|
||||||
|
#include "southbridge/intel/ibexpeak/pch.h"
|
||||||
|
#include "southbridge/intel/ibexpeak/me.h"
|
||||||
|
#include <northbridge/intel/sandybridge/sandybridge.h>
|
||||||
|
#include <cpu/intel/model_2065x/model_2065x.h>
|
||||||
|
#include <ec/acpi/ec.h>
|
||||||
|
#include <pc80/mc146818rtc.h>
|
||||||
|
#include <delay.h>
|
||||||
|
|
||||||
|
/* The southbridge SMI handler checks whether gnvs has a
|
||||||
|
* valid pointer before calling the trap handler
|
||||||
|
*/
|
||||||
|
extern global_nvs_t *gnvs;
|
||||||
|
|
||||||
|
static void mainboard_smm_init(void)
|
||||||
|
{
|
||||||
|
printk(BIOS_DEBUG, "initializing SMI\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
int mainboard_io_trap_handler(int smif)
|
||||||
|
{
|
||||||
|
static int smm_initialized;
|
||||||
|
|
||||||
|
if (!smm_initialized) {
|
||||||
|
mainboard_smm_init();
|
||||||
|
smm_initialized = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (smif) {
|
||||||
|
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* On success, the IO Trap Handler returns 1
|
||||||
|
* On failure, the IO Trap Handler returns a value != 1 */
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mainboard_smi_gpi(u32 gpi_sts)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static int mainboard_finalized = 0;
|
||||||
|
|
||||||
|
int mainboard_smi_apmc(u8 data)
|
||||||
|
{
|
||||||
|
u16 pmbase = pci_read_config16(PCI_DEV(0, 0x1f, 0), 0x40) & 0xfffc;
|
||||||
|
u8 tmp;
|
||||||
|
|
||||||
|
printk(BIOS_DEBUG, "%s: pmbase %04X, data %02X\n", __func__, pmbase,
|
||||||
|
data);
|
||||||
|
|
||||||
|
if (!pmbase)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
switch (data) {
|
||||||
|
case APM_CNT_FINALIZE:
|
||||||
|
printk(BIOS_DEBUG, "APMC: FINALIZE\n");
|
||||||
|
if (mainboard_finalized) {
|
||||||
|
printk(BIOS_DEBUG, "APMC#: Already finalized\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
intel_me_finalize_smm();
|
||||||
|
intel_pch_finalize_smm();
|
||||||
|
intel_sandybridge_finalize_smm();
|
||||||
|
intel_model_2065x_finalize_smm();
|
||||||
|
|
||||||
|
mainboard_finalized = 1;
|
||||||
|
break;
|
||||||
|
case APM_CNT_ACPI_ENABLE:
|
||||||
|
tmp = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xbb);
|
||||||
|
tmp &= ~0x03;
|
||||||
|
tmp |= 0x02;
|
||||||
|
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xbb, tmp);
|
||||||
|
break;
|
||||||
|
case APM_CNT_ACPI_DISABLE:
|
||||||
|
tmp = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xbb);
|
||||||
|
tmp &= ~0x03;
|
||||||
|
tmp |= 0x01;
|
||||||
|
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xbb, tmp);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user