2 Quark platform specific information.
4 Copyright (c) 2013 Intel Corporation.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #ifndef __PLATFORM_H__
13 #define __PLATFORM_H__
16 // Constant definition
18 #define MAX_SMRAM_RANGES 4
21 #define QUARK_STAGE1_IMAGE_TYPE_MASK 0xF0
22 #define QUARK_STAGE1_BOOT_IMAGE_TYPE 0x00 // Stage1 Boot images 0x00 -> 0x0F.
23 #define QUARK_STAGE1_RECOVERY_IMAGE_TYPE 0x10 // Stage1 Recovery images 0x10 -> 0x1F.
25 #define QUARK_BOOTROM_BASE_ADDRESS 0xFFFE0000 // Base address of Quark ROM in memory map.
26 #define QUARK_BOOTROM_SIZE_BYTES 0x20000 // Quark ROM is 128KB.
27 #define SMM_DEFAULT_SMBASE 0x30000 // Default SMBASE address.
28 #define SMM_DEFAULT_SMBASE_SIZE_BYTES 0x10000 // Size in bytes of default SMRAM.
31 // Gpio to be used to assert / deassert PCI express PERST# signal.
33 #define PCIEXP_PERST_RESUMEWELL_GPIO 3
36 // Minimum time in microseconds for assertion of PERST# signal.
38 #define PCIEXP_PERST_MIN_ASSERT_US 100
41 // Microsecond delay post issueing common lane reset.
43 #define PCIEXP_DELAY_US_POST_CMNRESET_RESET 1
46 // Microsecond delay to wait for PLL to lock.
48 #define PCIEXP_DELAY_US_WAIT_PLL_LOCK 80
51 // Microsecond delay post issueing sideband interface reset.
53 #define PCIEXP_DELAY_US_POST_SBI_RESET 20
56 // Microsecond delay post deasserting PERST#.
58 #define PCIEXP_DELAY_US_POST_PERST_DEASSERT 10
61 // Catastrophic Trip point in degrees Celsius for this platform.
63 #define PLATFORM_CATASTROPHIC_TRIP_CELSIUS 105
66 // Platform flash update LED common definitions.
68 #define PLATFORM_FLASH_UPDATE_LED_TOGGLE_COUNT 7
69 #define PLATFORM_FLASH_UPDATE_LED_TOGGLE_DELTA (1000 * 1000) // In Microseconds for EFI_STALL.
72 // This structure stores the base and size of the ACPI reserved memory used when
73 // resuming from S3. This region must be allocated by the platform code.
76 UINT32 AcpiReservedMemoryBase
;
77 UINT32 AcpiReservedMemorySize
;
78 UINT32 SystemMemoryLength
;
79 } RESERVED_ACPI_S3_RANGE
;
81 #define RESERVED_ACPI_S3_RANGE_OFFSET (EFI_PAGE_SIZE - sizeof (RESERVED_ACPI_S3_RANGE))
84 // Define valid platform types.
85 // First add value before TypePlatformMax in EFI_PLATFORM_TYPE definition
86 // and then add string description to end of EFI_PLATFORM_TYPE_NAME_TABLE_DEFINITION.
87 // Value shown for supported platforms to help sanity checking with build tools
88 // and ACPI method usage.
91 TypeUnknown
= 0, // !!! SHOULD BE THE FIRST ENTRY !!!
100 TypePlatformMax
// !!! SHOULD BE THE LAST ENTRY !!!
103 #define EFI_PLATFORM_TYPE_NAME_TABLE_DEFINITION \
111 L"TypePlatformRsv7",\
117 } QUARK_EDKII_STAGE1_HEADER
;