Skip to content

Commit 3cbfba0

Browse files
zwei4zwei4
authored andcommitted
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
https://svn.code.sf.net/p/edk2/code/trunk/edk2/, which are for MinnowBoard MAX open source project. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei <david.wei@intel.com> Reviewed-by: Mike Wu <mike.wu@intel.com> Reviewed-by: Hot Tian <hot.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16599 6f19259b-4bc3-4df7-8a09-765794883524
1 parent 6f785cf commit 3cbfba0

File tree

518 files changed

+118538
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

518 files changed

+118538
-0
lines changed

Vlv2DeviceRefCodePkg/AcpiTablesPCAT/98_LINK.ASL

Lines changed: 623 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*++
2+
3+
Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
4+
5+
This program and the accompanying materials are licensed and made available under
6+
the terms and conditions of the BSD License that accompanies this distribution.
7+
The full text of the license may be found at
8+
http://opensource.org/licenses/bsd-license.php.
9+
10+
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12+
13+
14+
15+
Module Name:
16+
17+
AcpiTablePlatform.h
18+
19+
20+
Abstract: File contains platform specific ACPI defines for use in ACPI tables
21+
22+
23+
--*/
24+
#ifndef _Platform_h_INCLUDED_
25+
#define _Platform_h_INCLUDED_
26+
27+
#ifdef ECP_FLAG
28+
#include "EdkIIGlueDxe.h"
29+
#endif
30+
#include <IndustryStandard/Acpi.h>
31+
//
32+
// ACPI table information used to initialize tables.
33+
//
34+
#define EFI_ACPI_OEM_ID 'O','E','M','I','D',' ' // OEMID 6 bytes long
35+
#define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','E','M','T','A','B','L','E') // OEM table id 8 bytes long
36+
#define EFI_ACPI_OEM_REVISION 0x00000005
37+
#define EFI_ACPI_CREATOR_ID SIGNATURE_32('C','R','E','A')
38+
#define EFI_ACPI_CREATOR_REVISION 0x0100000D
39+
#define INT_MODEL 0x01
40+
#define PM_PROFILE EFI_ACPI_4_0_PM_PROFILE_MOBILE
41+
#define SCI_INT_VECTOR 0x0009
42+
#define SMI_CMD_IO_PORT 0x000000B2
43+
#define ACPI_ENABLE 0x0A0
44+
#define ACPI_DISABLE 0x0A1
45+
#define S4BIOS_REQ 0x00
46+
#define PSTATE_CNT 0x00
47+
#define PM1a_EVT_BLK 0x00000400
48+
#define PM1b_EVT_BLK 0x00000000
49+
#define PM1a_CNT_BLK 0x00000404
50+
#define PM1b_CNT_BLK 0x00000000
51+
#define PM2_CNT_BLK 0x00000450
52+
#define PM_TMR_BLK 0x00000408
53+
#define GPE0_BLK 0x00000420
54+
#define GPE1_BLK 0x00000000
55+
#define PM1_EVT_LEN 0x04
56+
#define PM1_CNT_LEN 0x02
57+
#define PM2_CNT_LEN 0x01
58+
#define PM_TM_LEN 0x04
59+
#define GPE0_BLK_LEN 0x10
60+
#define GPE1_BLK_LEN 0x00
61+
#define GPE1_BASE 0x00
62+
#define CST_CNT 0x00
63+
#define P_LVL2_LAT 0x0064
64+
#define P_LVL3_LAT 0x01F4
65+
#define FLUSH_SIZE 0x0400
66+
#define FLUSH_STRIDE 0x0010
67+
#define DUTY_OFFSET 0x01
68+
#define DUTY_WIDTH 0x03
69+
#define DAY_ALRM 0x0D
70+
#define MON_ALRM 0x00
71+
#define CENTURY 0x32
72+
#define FLAG ( EFI_ACPI_4_0_WBINVD | EFI_ACPI_4_0_SLP_BUTTON | EFI_ACPI_4_0_RESET_REG_SUP | EFI_ACPI_4_0_RTC_S4)
73+
#define IAPC_BOOT_ARCH ( EFI_ACPI_4_0_VGA_NOT_PRESENT | EFI_ACPI_4_0_8042 | EFI_ACPI_4_0_LEGACY_DEVICES)
74+
#define RESERVED 0x00
75+
76+
#endif
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## @file
2+
# Component description file for PlatformAcpiTable module.
3+
#
4+
# Build acpi table data required by system boot.
5+
# All .asi files tagged with "ToolCode="DUMMY"" in following file list are device description and are included
6+
# by top level ASL file which will be dealed with by asl.exe application.
7+
#
8+
# Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
9+
#
10+
# This program and the accompanying materials are licensed and made available under
11+
# the terms and conditions of the BSD License that accompanies this distribution.
12+
# The full text of the license may be found at
13+
# http://opensource.org/licenses/bsd-license.php.
14+
#
15+
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17+
#
18+
#
19+
#
20+
##
21+
22+
[defines]
23+
INF_VERSION = 0x00010005
24+
BASE_NAME = AcpiTables
25+
FILE_GUID = 7E374E25-8E01-4FEE-87F2-390C23C606CD
26+
MODULE_TYPE = USER_DEFINED
27+
VERSION_STRING = 1.0
28+
EDK_RELEASE_VERSION = 0x00020000
29+
EFI_SPECIFICATION_VERSION = 0x00020000
30+
31+
[sources.common]
32+
DSDT.ASL
33+
Facs/Facs.aslc
34+
Facp/Facp.aslc
35+
Madt/Madt30.aslc
36+
Mcfg/Mcfg.aslc
37+
Hpet/Hpet.aslc
38+
Lpit/Lpit.aslc
39+
40+
41+
[Packages]
42+
MdePkg/MdePkg.dec
43+
Vlv2TbltDevicePkg/PlatformPkg.dec
44+
Vlv2DeviceRefCodePkg/Vlv2DeviceRefCodePkg.dec
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/**************************************************************************;
2+
;* *;
3+
;* *;
4+
;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5+
;* Family of Customer Reference Boards. *;
6+
;* *;
7+
;* *;
8+
;* Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved *;
9+
;
10+
; This program and the accompanying materials are licensed and made available under
11+
; the terms and conditions of the BSD License that accompanies this distribution.
12+
; The full text of the license may be found at
13+
; http://opensource.org/licenses/bsd-license.php.
14+
;
15+
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16+
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17+
;
18+
;* *;
19+
;* *;
20+
;**************************************************************************/
21+
22+
23+
24+
// NOTE: The _PDC Implementation is out of the scope of this
25+
// reference code. Please see the latest Hyper-Threading Technology
26+
// Reference Code for complete implementation details.
27+
28+
Scope(\_PR)
29+
{
30+
Processor(CPU0, // Unique name for Processor 0.
31+
1, // Unique ID for Processor 0.
32+
0x00, // CPU0 ACPI P_BLK address = ACPIBASE + 10h.
33+
0) // CPU0 P_BLK length = 6 bytes.
34+
{}
35+
36+
Processor(CPU1, // Unique name for Processor 1.
37+
2, // Unique ID for Processor 1.
38+
0x00,
39+
0) // CPU1 P_BLK length = 6 bytes.
40+
{}
41+
42+
Processor(CPU2, // Unique name for Processor 2.
43+
3, // Unique ID for Processor 2.
44+
0x00,
45+
0) // CPU2 P_BLK length = 6 bytes.
46+
{}
47+
48+
Processor(CPU3, // Unique name for Processor 3.
49+
4, // Unique ID for Processor 3.
50+
0x00,
51+
0) // CPU3 P_BLK length = 6 bytes.
52+
{}
53+
} // End _PR
54+
55+
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/**************************************************************************;
2+
;* *;
3+
;* *;
4+
;* Intel Corporation - ACPI Reference Code for the Sandy Bridge *;
5+
;* Family of Customer Reference Boards. *;
6+
;* *;
7+
;* *;
8+
;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;
9+
;
10+
; This program and the accompanying materials are licensed and made available under
11+
; the terms and conditions of the BSD License that accompanies this distribution.
12+
; The full text of the license may be found at
13+
; http://opensource.org/licenses/bsd-license.php.
14+
;
15+
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16+
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17+
;
18+
;* *;
19+
;* *;
20+
;**************************************************************************/
21+
22+
DefinitionBlock (
23+
"DSDT.aml",
24+
"DSDT",
25+
0x02, // DSDT revision.
26+
"OEMID", // OEM ID (6 byte string)
27+
"VLV-SOC", // OEM table ID (8 byte string)
28+
0x0 // OEM version of DSDT table (4 byte Integer)
29+
)
30+
31+
// BEGIN OF ASL SCOPE
32+
{
33+
External(MDBG, MethodObj)
34+
35+
Method(ADBG, 1, Serialized)
36+
{
37+
38+
If(CondRefOf(MDBG)) //check if SSDT is loaded
39+
{
40+
Return(MDBG(Arg0))
41+
}
42+
43+
Return(0)
44+
}
45+
46+
47+
// Miscellaneous services enabled in Project
48+
include ("token.asl")
49+
include ("GloblNvs.asl")
50+
include ("PciTree.asl")
51+
include ("Pch.asl")
52+
include ("Vlv.asl")
53+
include ("CPU.asl")
54+
include ("Platform.asl")
55+
include ("THERMAL.ASL")
56+
include ("PCI_DRC.ASL")
57+
include ("Video.asl")
58+
include ("Gpe.asl")
59+
include ("IoTVirtualDevice.asl")
60+
61+
// Sleep states supported by Chipset/Board.
62+
// SSx - BIOS setup controlled enabled _Sx Sleep state status
63+
// Values to be written to SLP_TYPE register are provided by SBACPI.SDL (South Bridge ACPI ModulePart)
64+
65+
Name(\_S0, Package(4) {0x0,0x0,0,0}) // mandatory System state
66+
Name(\_S1, Package(4) {0x1,0x0,0,0})
67+
Name(\_S3, Package(4) {0x5,0x0,0,0})
68+
Name(\_S4, Package(4) {0x6,0x0,0,0})
69+
Name(\_S5, Package(4) {0x7,0x0,0,0}) // mandatory System state
70+
71+
Method(PTS, 1) // METHOD CALLED FROM _PTS PRIOR TO ENTER ANY SLEEP STATE
72+
{
73+
If(Arg0) // entering any sleep state
74+
{
75+
}
76+
}
77+
Method(WAK, 1) // METHOD CALLED FROM _WAK RIGHT AFTER WAKE UP
78+
{
79+
}
80+
81+
}// End of ASL File

0 commit comments

Comments
 (0)