]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.h
Vlv2TbltDevicePkg/PlatformInitPei: Workaround unaligned SMRAM size
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformInitPei / PlatformEarlyInit.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
890f11d4 3 Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
3cbfba02
DW
4 \r\r
5 This program and the accompanying materials are licensed and made available under\r\r
6 the terms and conditions of the BSD License that accompanies this distribution. \r\r
7 The full text of the license may be found at \r\r
8 http://opensource.org/licenses/bsd-license.php. \r\r
9 \r\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r
12 \r\r
13\r
14Module Name:\r
15\r
16 PlatformEarlyInit.h\r
17\r
18Abstract:\r
19\r
20 Platform Early Stage header file\r
21\r
22\r
23\r
24--*/\r
25\r
26/*++\r
27 This file contains an 'Intel Peripheral Driver' and is\r
28 licensed for Intel CPUs and chipsets under the terms of your\r
29 license agreement with Intel or your vendor. This file may\r
30 be modified by the user, subject to additional terms of the\r
31 license agreement\r
32--*/\r
33\r
34#ifndef _EFI_PLATFORM_EARLY_INIT_H_\r
35#define _EFI_PLATFORM_EARLY_INIT_H_\r
36\r
37#define EFI_FORWARD_DECLARATION(x) typedef struct _##x x\r
38#include <FrameworkPei.h>\r
39#include "PlatformBaseAddresses.h"\r
40#include "PchAccess.h"\r
41#include "VlvAccess.h"\r
42#include "SetupMode.h"\r
43#include "PlatformBootMode.h"\r
44#include "Platform.h"\r
45#include "LegacySpeaker.h"\r
46\r
47#include <Ppi/Stall.h>\r
48#include <Guid/PlatformInfo.h>\r
49#include <Guid/SetupVariable.h>\r
50#include <Ppi/AtaController.h>\r
51#include <Ppi/FindFv.h>\r
52#include <Ppi/BootInRecoveryMode.h>\r
53#include <Ppi/ReadOnlyVariable2.h>\r
54#include <Ppi/Capsule.h>\r
55#include <Guid/EfiVpdData.h>\r
56#include <Library/DebugLib.h>\r
57#include <Library/BaseMemoryLib.h>\r
58#include <Library/PcdLib.h>\r
59#include <Library/IoLib.h>\r
60#include <Library/HobLib.h>\r
61#include <Library/BaseLib.h>\r
62#include <Library/PeiServicesLib.h>\r
63#include <Library/MtrrLib.h>\r
64#include <Library/CpuIA32.h>\r
65\r
66#include <IndustryStandard/Pci22.h>\r
67#include <Ppi/Speaker.h>\r
68#include <Guid/FirmwareFileSystem.h>\r
69#include <Guid/MemoryTypeInformation.h>\r
70#include <Ppi/Cache.h>\r
71#include <Ppi/Smbus.h>\r
72#include <Library/PchPlatformLib.h>\r
73#include <Ppi/SmbusPolicy.h>\r
74#include <Ppi/Reset.h>\r
75#include <Ppi/EndOfPeiPhase.h>\r
76#include <Ppi/MemoryDiscovered.h>\r
77#include <Ppi/VlvPolicy.h>\r
78#include <Guid/GlobalVariable.h>\r
79#include <Ppi/RecoveryModule.h>\r
80#include <Ppi/DeviceRecoveryModule.h>\r
81#include <Guid/Capsule.h>\r
82#include <Guid/RecoveryDevice.h>\r
83#include <Ppi/MasterBootMode.h>\r
84#include <Guid/PlatformCpuInfo.h>\r
85#include <Guid/OsSelection.h>\r
890f11d4 86#include <Guid/SmramMemoryReserve.h>\r
3cbfba02
DW
87\r
88#define SMC_LAN_ON 0x46\r
89#define SMC_LAN_OFF 0x47\r
90#define SMC_DEEP_S3_STS 0xB2\r
91\r
92\r
93\r
94\r
95//\r
96// Wake Event Types\r
97//\r
98#define SMBIOS_WAKEUP_TYPE_RESERVED 0x00\r
99#define SMBIOS_WAKEUP_TYPE_OTHERS 0x01\r
100#define SMBIOS_WAKEUP_TYPE_UNKNOWN 0x02\r
101#define SMBIOS_WAKEUP_TYPE_APM_TIMER 0x03\r
102#define SMBIOS_WAKEUP_TYPE_MODEM_RING 0x04\r
103#define SMBIOS_WAKEUP_TYPE_LAN_REMOTE 0x05\r
104#define SMBIOS_WAKEUP_TYPE_POWER_SWITCH 0x06\r
105#define SMBIOS_WAKEUP_TYPE_PCI_PME 0x07\r
106#define SMBIOS_WAKEUP_TYPE_AC_POWER_RESTORED 0x08\r
107\r
108#define EFI_CPUID_VIRT_PHYS_ADDRESS_SIZE 0x80000008\r
109\r
110//\r
111// Defines for stall ppi\r
112//\r
113#define PEI_STALL_RESOLUTION 1\r
114\r
115//\r
116// Used in PEI memory test routines\r
117//\r
118#define MEMORY_TEST_COVER_SPAN 0x40000\r
119#define MEMORY_TEST_PATTERN 0x5A5A5A5A\r
120\r
121#define EFI_LOW_BEEP_FREQUENCY 0x31B\r
122#define EFI_HIGH_BEEP_FREQUENCY 0x254\r
123\r
124//\r
125// General Purpose Constants\r
126//\r
127#define ICH_ACPI_TIMER_MAX_VALUE 0x1000000 //The timer is 24 bit overflow\r
128\r
129\r
130\r
131//\r
132//\r
133// GPIO Register Settings for ValleyFalls (Tablet)\r
134//\r
135//\r
136// IO Space configyuration registers\r
137// Field Descriptions:\r
138// USE: Defines the pin's usage model: GPIO (G) or Native (N) mode.\r
139// I/O: Defines whether GPIOs are inputs (I) or outputs (O).\r
140// (Note: Only meaningful for pins used as GPIOs.)\r
141// LVL: This field gives you the initial value for "output" GPIO's.\r
142// (Note: The output level is dependent upon whether the pin is inverted.)\r
143// TPE: Defines whether Trigger Positive Edge Enable.\r
144// TNE: Defines whether Trigger Negative Edge Enable.\r
145// WAKE_EN: only support in SUS community\r
146// (Note: Only affects the level sent to the GPE logic and does not\r
147// affect the level read through the GPIO registers.)\r
148//\r
149//\r
150// Memory spcae configuration registers\r
151//\r
152// Field Descriptions:\r
153// PAD releated:\r
154// PAD_CONF0\r
155// PAD_CONF1\r
156// PAD_VAL\r
157// PAD_DFT\r
158//\r
159// Notes:\r
160// 1. N = Native , G = GPIO , I = Input, O = Output, - = BOTH/NOT SURE\r
161//\r
162// Signal UsedAs USE I/O LVL TPE TNE PCONF0 PCONF1 PVAL PDFT\r
163// -------------------------------------------------------------------------------------------------------------------------\r
164// GPIO0 UART1_RXD-L N I - - - cd29h - - -\r
165// GPIO1 UART1_TXD-0 N O - - - cd29h - - -\r
166// *GPIO2 UART1_RTS_B-1 N I - - - cca9h - - -\r
167// *GPIO3 UART1_CTS_B-H N O - - - cca9h - - -\r
168\r
169// GPIO4 I2C1_SDA-OD-O N - - - - cca9h - - -\r
170// GPIO5 I2C1_SCL-OD-O N - - - - cca9h - - -\r
171// GPIO6 I2S_SYSCLK-0 N O - - - 8d51h - - -\r
172// GPIO7 I2S_L_R-0 (SP) N O - - - 8cd1h - - -\r
173// GPIO8 I2S_DATA_OUT-0 N O - - - 8cd1h - - -\r
174// GPIO9 I2S_SDATA_IN-L N I - - - 8cd1h - - -\r
175\r
176// GPIO10 PCM_CLK-0 N O - - - 8d51h - - -\r
177// GPIO11 PCM_FSYNC-0 (SP) N O - - - 8cd1h - - -\r
178// GPIO12 PCM_DATA_OUT-0 (SP) N O - - - 8cd1h - - -\r
179// GPIO13 PCM_DATA_IN-L N I - - - 8d51h - - -\r
180\r
181// GPIO14 SATA_GP0 N - - - - - - - -\r
182// GPIO15 I2C2_SDA-OD-O/I N - - - - ccaah - - -\r
183\r
184// GPIO16 SATA_LEDN N O - - - - - - -\r
185// GPIO17 UART2_RTS_B-1 N I - - - cd2ah - - -\r
186// GPIO18 UART2_CTS_B-H N O - - - ccaah - - -\r
187// GPIO19 UART2_RXD-H N I - - - ccaah - - -\r
188\r
189// GPIO20 I2C2_SCL-OD-O/I N - - - - ccaah - - -\r
190// GPIO21 **PCIE_CLKREQ4B N - - - - - - - -\r
191// GPIO22 UART2_TXD-0 N O - - - ccaah - - -\r
192// GPIO23 FLEX_CLK_SE1 N - - - - - - - -\r
193\r
194// GPIO24 SPI0_SCK-0 N O - - - 8d02h - - -\r
195// GPIO25 SPI0_CS-1 N O - - - 8d02h - - -\r
196// GPIO26 SPI0_MOSI-0 N O - - - 8d02h - - -\r
197// GPIO27 SPI0_MISO-L N I - - - 8d02h - - -\r
198\r
199// GPIO28 UART3_RXD-L N I - - - - - - -\r
200// GPIO29 UART3_TXD-0 N O - - - - - - -\r
201// GPIO30 UART4_RXD-L N I - - - - - - -\r
202// GPIO31 UART4_TXD-0 N O - - - - - - -\r
203\r
204// GPIO32 SDMMC1_CLK N - - - - 208d51h - - -\r
205// GPIO33 SDMMC1_D0 N - - - - 8cd1h - - -\r
206// GPIO34 SDMMC1_D1 N - - - - 8cd1h - - -\r
207// GPIO35 SDMMC1_D2 N - - - - 8cd1h - - -\r
208// GPIO36 SDMMC1_D3_CD_B N - - - - 8cd1h - - -\r
209// GPIO37 MMC1_D4_SD_WE N - - - - 8cd1h - - -\r
210// GPIO38 MMC1_D5 N - - - - 8cd1h - - -\r
211// GPIO39 MMC1_D6 N - - - - 8cd1h - - -\r
212// GPIO40 MMC1_D7 N - - - - 8cd1h - - -\r
213// GPIO41 SDMMC1_CMD N - - - - 8cd1h - - -\r
214// GPIO42 MMC1_RESET_B N - - - - 208d51h - - -\r
215\r
216// GPIO43 SDMMC2_CLK N - - - - 208d51h - - -\r
217// GPIO44 SDMMC2_D0 N - - - - 8cd1h - - -\r
218// GPIO45 SDMMC2_D1 N - - - - 8cd1h - - -\r
219// GPIO46 SDMMC2_D2 N - - - - 8cd1h - - -\r
220// GPIO47 SDMMC2_D3_CD_B N - - - - 8cd1h - - -\r
221// GPIO48 SDMMC2_CMD N - - - - 8cd1h - - -\r
222\r
223// GPIO49 SDMMC3_CLK N - - - - 8d51h - - -\r
224// GPIO50 SDMMC3_D0 N - - - - 8cd1h - - -\r
225// GPIO51 SDMMC3_D1 N - - - - 8cd1h - - -\r
226// GPIO52 SDMMC3_D2 N - - - - 8cd1h - - -\r
227// GPIO53 SDMMC3_D3 N - - - - 8cd1h - - -\r
228// GPIO54 SDMMC3_CD_B N - - - - cca9h - - -\r
229// GPIO55 SDMMC3_CMD N - - - - 8cd1h - - -\r
230// GPIO56 SDMMC3_1P8_EN N - - - - cd29h - - -\r
231\r
232// GPIO57 LPC_AD0 N - - - - - - - -\r
233// GPIO58 LPC_AD1 N - - - - - - - -\r
234// GPIO59 LPC_AD2 N - - - - - - - -\r
235// GPIO60 LPC_AD3 N - - - - - - - -\r
236// GPIO61 LPC_FRAMEB N O - - - - - - -\r
237// GPIO62 LPC_CLKOUT0 N O - - - - - - -\r
238// GPIO63 LPC_CLKOUT1 N O - - - - - - -\r
239// GPIO64 LPC_CLKRUNB N - - - - - - - -\r
240\r
241// GPIO65 SMB_DATA N - - - - - - - -\r
242// GPIO66 SMB_CLK N - - - - - - - -\r
243// GPIO67 SMB_ALERTB N - - - - - - - -\r
244\r
245// GPIO68 ILB_SEIRQ N - - - - - - - -\r
246// GPIO69 SPKR N O - - - - - - -\r
247\r
248//SUS WELL\r
249\r
250//GPIO_SUS0 BT_WAKEUP_VLV N O - - - CCA8h - - -\r
251//GPIO_SUS1 BT_CLOCK_REQ N O - - - CCA8h - - -\r
252//GPIO_SUS2 WIFI_PWR_EN N O - - - CCA8h - - -\r
253//GPIO_SUS3 SD_CARD_PWR_EN N O - - - CD28h - - -\r
254//GPIO_SUS4 GPIO_SUS4 N O - - - CD28h - - -\r
255//GPIO_SUS5 GPIO_SUS5 N O - - - CD28h - - -\r
256//GPIO_SUS6 SUSPWRDNACK N O - - - 8850h - - -\r
257//GPIO_SUS7 PMU_SLP_DDRVTT_B N O - - - 8850h - - -\r
258//GPIO_SUS8 PMU_WAKE_B N O - - - CCA8h - - -\r
259//GPIO_SUS9 PMU_PWRBTN_B N O - - - CCA8h - - -\r
260//GPIO_SUS10 PMU_WAKE_LAN_B N O - - - CCA8h - - -\r
261//GPIO_SUS11 SUS_STAT_B N O - - - C828h - - -\r
262//GPIO_SUS12 GPIO_SUS12 N O - - - C828h - - -\r
263//GPIO_SUS13 USB_OC0_B-20K,H N O - - - CCA8h - - -\r
264//GPIO_SUS14 GPIO_SUS14 N O - - - CCA8h - - -\r
265//GPIO_SUS15 SPI_CS1_B-20K,H N O - - - 8C80h - - -\r
266//GPIO_SUS16 PMU_SUSCLK N O - - - C828h - - -\r
267//\r
268\r
269\r
270#define VF_TAB_GPIO_USE_SEL_VAL_0_31 0x00000000\r
271#define VF_TAB_GPIO_USE_SEL_VAL_32_63 0x00000000\r
272#define VF_TAB_GPIO_USE_SEL_VAL_64_70 0x00000000\r
273#define VF_TAB_GPIO_USE_SEL_VAL_SUS 0x00000000\r
274\r
275//\r
276//1010 --00 0100 01-- 0101 --0- 0001 1010\r
277//\r
278#define VF_TAB_GPIO_IO_SEL_VAL_0_31 0x00000000 // BIT30 | BIT28 | BIT27 | BIT19 | BIT17 | BIT13 | BIT9 | BIT2 | BIT0\r
279#define VF_TAB_GPIO_IO_SEL_VAL_32_63 0x00000000\r
280#define VF_TAB_GPIO_IO_SEL_VAL_64_70 0x00000000\r
281#define VF_TAB_GPIO_IO_SEL_VAL_SUS 0x00000000\r
282\r
283\r
284#define VF_TAB_GPIO_LVL_VAL_0_31 0x00000000\r
285#define VF_TAB_GPIO_LVL_VAL_32_63 0x00000000\r
286#define VF_TAB_GPIO_LVL_VAL_64_70 0x00000000\r
287#define VF_TAB_GPIO_LVL_VAL_SUS 0x00000000\r
288\r
289#define VF_TAB_GPIO_TPE_VAL_0_31 0x00000000\r
290#define VF_TAB_GPIO_TPE_VAL_SUS 0x00000000\r
291\r
292#define VF_TAB_GPIO_TNE_VAL_0_31 0x00000000\r
293#define VF_TAB_GPIO_TNE_VAL_SUS 0x00000000\r
294\r
295#define VF_TAB_GPIO_TS_VAL_0_31 0x00000000\r
296#define VF_TAB_GPIO_TS_VAL_SUS 0x00000000\r
297\r
298\r
299//\r
300// Memory space registers\r
301//\r
302\r
303//\r
304// CONF0\r
305//\r
306#define VF_TAB_PAD_CONF0_GPIO0 0xcd29\r
307#define VF_TAB_PAD_CONF0_GPIO1 0xcd29\r
308#define VF_TAB_PAD_CONF0_GPIO2 0xcca9\r
309#define VF_TAB_PAD_CONF0_GPIO3 0xcca9\r
310#define VF_TAB_PAD_CONF0_GPIO4 0xcca9\r
311#define VF_TAB_PAD_CONF0_GPIO5 0xcca9\r
312#define VF_TAB_PAD_CONF0_GPIO6 0x8d51\r
313#define VF_TAB_PAD_CONF0_GPIO7 0x8cd1\r
314#define VF_TAB_PAD_CONF0_GPIO8 0x8cd1\r
315#define VF_TAB_PAD_CONF0_GPIO9 0x8cd1\r
316#define VF_TAB_PAD_CONF0_GPIO10 0x8d51\r
317#define VF_TAB_PAD_CONF0_GPIO11 0x8cd1\r
318#define VF_TAB_PAD_CONF0_GPIO12 0x8cd1\r
319#define VF_TAB_PAD_CONF0_GPIO13 0x8d51\r
320#define VF_TAB_PAD_CONF0_GPIO14 0xCCA8\r
321#define VF_TAB_PAD_CONF0_GPIO15 0xccaa\r
322#define VF_TAB_PAD_CONF0_GPIO16 0xC828\r
323#define VF_TAB_PAD_CONF0_GPIO17 0xcd2a\r
324#define VF_TAB_PAD_CONF0_GPIO18 0xccaa\r
325#define VF_TAB_PAD_CONF0_GPIO19 0xccaa\r
326#define VF_TAB_PAD_CONF0_GPIO20 0xccaa\r
327#define VF_TAB_PAD_CONF0_GPIO21 0xCCA9\r
328#define VF_TAB_PAD_CONF0_GPIO22 0xccaa\r
329#define VF_TAB_PAD_CONF0_GPIO23 0xCD2A\r
330#define VF_TAB_PAD_CONF0_GPIO24 0x8d02\r
331#define VF_TAB_PAD_CONF0_GPIO25 0x8d02\r
332#define VF_TAB_PAD_CONF0_GPIO26 0x8d02\r
333#define VF_TAB_PAD_CONF0_GPIO27 0x8d02\r
334#define VF_TAB_PAD_CONF0_GPIO28 0x8D02\r
335#define VF_TAB_PAD_CONF0_GPIO29 0x8D02\r
336#define VF_TAB_PAD_CONF0_GPIO30 0x8D00\r
337#define VF_TAB_PAD_CONF0_GPIO31 0xCD2A\r
338#define VF_TAB_PAD_CONF0_GPIO32 0x208d51\r
339#define VF_TAB_PAD_CONF0_GPIO33 0x8cd1\r
340#define VF_TAB_PAD_CONF0_GPIO34 0x8cd1\r
341#define VF_TAB_PAD_CONF0_GPIO35 0x8cd1\r
342#define VF_TAB_PAD_CONF0_GPIO36 0x8cd1\r
343#define VF_TAB_PAD_CONF0_GPIO37 0x8cd1\r
344#define VF_TAB_PAD_CONF0_GPIO38 0x8cd1\r
345#define VF_TAB_PAD_CONF0_GPIO39 0x8cd1\r
346#define VF_TAB_PAD_CONF0_GPIO40 0x8cd1\r
347#define VF_TAB_PAD_CONF0_GPIO41 0x8cd1\r
348#define VF_TAB_PAD_CONF0_GPIO42 0x208d51\r
349#define VF_TAB_PAD_CONF0_GPIO43 0x208d51\r
350#define VF_TAB_PAD_CONF0_GPIO44 0x8cd1\r
351#define VF_TAB_PAD_CONF0_GPIO45 0x8cd1\r
352#define VF_TAB_PAD_CONF0_GPIO46 0x8cd1\r
353#define VF_TAB_PAD_CONF0_GPIO47 0x8cd1\r
354#define VF_TAB_PAD_CONF0_GPIO48 0x8cd1\r
355#define VF_TAB_PAD_CONF0_GPIO49 0x8d51\r
356#define VF_TAB_PAD_CONF0_GPIO50 0x8cd1\r
357#define VF_TAB_PAD_CONF0_GPIO51 0x8cd1\r
358#define VF_TAB_PAD_CONF0_GPIO52 0x8cd1\r
359#define VF_TAB_PAD_CONF0_GPIO53 0x8cd1\r
360#define VF_TAB_PAD_CONF0_GPIO54 0xcca9\r
361#define VF_TAB_PAD_CONF0_GPIO55 0x8cd1\r
362#define VF_TAB_PAD_CONF0_GPIO56 0xcd29\r
363#define VF_TAB_PAD_CONF0_GPIO57 0x8C80\r
364#define VF_TAB_PAD_CONF0_GPIO58 0x8C80\r
365#define VF_TAB_PAD_CONF0_GPIO59 0x8C80\r
366#define VF_TAB_PAD_CONF0_GPIO60 0x8C80\r
367#define VF_TAB_PAD_CONF0_GPIO61 0x8800\r
368#define VF_TAB_PAD_CONF0_GPIO62 0x8D00\r
369#define VF_TAB_PAD_CONF0_GPIO63 0x8800\r
370#define VF_TAB_PAD_CONF0_GPIO64 0x8800\r
371#define VF_TAB_PAD_CONF0_GPIO65 0xC828\r
372#define VF_TAB_PAD_CONF0_GPIO66 0xC828\r
373#define VF_TAB_PAD_CONF0_GPIO67 0xC828\r
374#define VF_TAB_PAD_CONF0_GPIO68 0xCCA8\r
375#define VF_TAB_PAD_CONF0_GPIO69 0xC828\r
376#define VF_TAB_PAD_CONF0_GPIO70 0xCCA8\r
377\r
378\r
379\r
380//\r
381// PAD_CONF1\r
382//\r
383#define VF_TAB_PAD_CONF1_GPIO0 0x20002\r
384#define VF_TAB_PAD_CONF1_GPIO1 0x20002\r
385#define VF_TAB_PAD_CONF1_GPIO2 0x20002\r
386#define VF_TAB_PAD_CONF1_GPIO3 0x20002\r
387#define VF_TAB_PAD_CONF1_GPIO4 0x20002\r
388#define VF_TAB_PAD_CONF1_GPIO5 0x20002\r
389#define VF_TAB_PAD_CONF1_GPIO6 0x1F000F\r
390#define VF_TAB_PAD_CONF1_GPIO7 0x1F000F\r
391#define VF_TAB_PAD_CONF1_GPIO8 0x1F000F\r
392#define VF_TAB_PAD_CONF1_GPIO9 0x1F000F\r
393#define VF_TAB_PAD_CONF1_GPIO10 0x1F000F\r
394#define VF_TAB_PAD_CONF1_GPIO11 0x1F000F\r
395#define VF_TAB_PAD_CONF1_GPIO12 0x1F000F\r
396#define VF_TAB_PAD_CONF1_GPIO13 0x1F000F\r
397#define VF_TAB_PAD_CONF1_GPIO14 0x20002\r
398#define VF_TAB_PAD_CONF1_GPIO15 0x20002\r
399#define VF_TAB_PAD_CONF1_GPIO16 0x20002\r
400#define VF_TAB_PAD_CONF1_GPIO17 0x20002\r
401#define VF_TAB_PAD_CONF1_GPIO18 0x20002\r
402#define VF_TAB_PAD_CONF1_GPIO19 0x20002\r
403#define VF_TAB_PAD_CONF1_GPIO20 0x20002\r
404#define VF_TAB_PAD_CONF1_GPIO21 0x20002\r
405#define VF_TAB_PAD_CONF1_GPIO22 0x20002\r
406#define VF_TAB_PAD_CONF1_GPIO23 0x20002\r
407#define VF_TAB_PAD_CONF1_GPIO24 0x00000\r
408#define VF_TAB_PAD_CONF1_GPIO25 0x00000\r
409#define VF_TAB_PAD_CONF1_GPIO26 0x00000\r
410#define VF_TAB_PAD_CONF1_GPIO27 0x00000\r
411#define VF_TAB_PAD_CONF1_GPIO28 0x00000\r
412#define VF_TAB_PAD_CONF1_GPIO29 0x00000\r
413#define VF_TAB_PAD_CONF1_GPIO30 0x00000\r
414#define VF_TAB_PAD_CONF1_GPIO31 0x20002\r
415#define VF_TAB_PAD_CONF1_GPIO32 0x00000\r
416#define VF_TAB_PAD_CONF1_GPIO33 0x00000\r
417#define VF_TAB_PAD_CONF1_GPIO34 0x00000\r
418#define VF_TAB_PAD_CONF1_GPIO35 0x00000\r
419#define VF_TAB_PAD_CONF1_GPIO36 0x00000\r
420#define VF_TAB_PAD_CONF1_GPIO37 0x00000\r
421#define VF_TAB_PAD_CONF1_GPIO38 0x00000\r
422#define VF_TAB_PAD_CONF1_GPIO39 0x00000\r
423#define VF_TAB_PAD_CONF1_GPIO40 0x00000\r
424#define VF_TAB_PAD_CONF1_GPIO41 0x00000\r
425#define VF_TAB_PAD_CONF1_GPIO42 0x00000\r
426#define VF_TAB_PAD_CONF1_GPIO43 0x00000\r
427#define VF_TAB_PAD_CONF1_GPIO44 0x00000\r
428#define VF_TAB_PAD_CONF1_GPIO45 0x00000\r
429#define VF_TAB_PAD_CONF1_GPIO46 0x00000\r
430#define VF_TAB_PAD_CONF1_GPIO47 0x00000\r
431#define VF_TAB_PAD_CONF1_GPIO48 0x00000\r
432#define VF_TAB_PAD_CONF1_GPIO49 0x00000\r
433#define VF_TAB_PAD_CONF1_GPIO50 0x00000\r
434#define VF_TAB_PAD_CONF1_GPIO51 0x00000\r
435#define VF_TAB_PAD_CONF1_GPIO52 0x00000\r
436#define VF_TAB_PAD_CONF1_GPIO53 0x00000\r
437#define VF_TAB_PAD_CONF1_GPIO54 0x20002\r
438#define VF_TAB_PAD_CONF1_GPIO55 0x00000\r
439#define VF_TAB_PAD_CONF1_GPIO56 0x20002\r
440#define VF_TAB_PAD_CONF1_GPIO57 0x00000\r
441#define VF_TAB_PAD_CONF1_GPIO58 0x00000\r
442#define VF_TAB_PAD_CONF1_GPIO59 0x00000\r
443#define VF_TAB_PAD_CONF1_GPIO60 0x00000\r
444#define VF_TAB_PAD_CONF1_GPIO61 0x00000\r
445#define VF_TAB_PAD_CONF1_GPIO62 0x00000\r
446#define VF_TAB_PAD_CONF1_GPIO63 0x00000\r
447#define VF_TAB_PAD_CONF1_GPIO64 0x00000\r
448#define VF_TAB_PAD_CONF1_GPIO65 0x20002\r
449#define VF_TAB_PAD_CONF1_GPIO66 0x20002\r
450#define VF_TAB_PAD_CONF1_GPIO67 0x20002\r
451#define VF_TAB_PAD_CONF1_GPIO68 0x20002\r
452#define VF_TAB_PAD_CONF1_GPIO69 0x20002\r
453#define VF_TAB_PAD_CONF1_GPIO70 0x20002\r
454\r
455\r
456//\r
457// PAD_VAL\r
458//\r
459#define VF_TAB_PAD_VAL_GPIO0 0x2\r
460#define VF_TAB_PAD_VAL_GPIO1 0x2\r
461#define VF_TAB_PAD_VAL_GPIO2 0x2\r
462#define VF_TAB_PAD_VAL_GPIO3 0x2\r
463#define VF_TAB_PAD_VAL_GPIO4 0x2\r
464#define VF_TAB_PAD_VAL_GPIO5 0x2\r
465#define VF_TAB_PAD_VAL_GPIO6 0x2\r
466#define VF_TAB_PAD_VAL_GPIO7 0x2\r
467#define VF_TAB_PAD_VAL_GPIO8 0x2\r
468#define VF_TAB_PAD_VAL_GPIO9 0x2\r
469#define VF_TAB_PAD_VAL_GPIO10 0x2\r
470#define VF_TAB_PAD_VAL_GPIO11 0x2\r
471#define VF_TAB_PAD_VAL_GPIO12 0x2\r
472#define VF_TAB_PAD_VAL_GPIO13 0x2\r
473#define VF_TAB_PAD_VAL_GPIO14 0x2\r
474#define VF_TAB_PAD_VAL_GPIO15 0x2\r
475#define VF_TAB_PAD_VAL_GPIO16 0x4\r
476#define VF_TAB_PAD_VAL_GPIO17 0x2\r
477#define VF_TAB_PAD_VAL_GPIO18 0x2\r
478#define VF_TAB_PAD_VAL_GPIO19 0x2\r
479#define VF_TAB_PAD_VAL_GPIO20 0x2\r
480#define VF_TAB_PAD_VAL_GPIO21 0x2\r
481#define VF_TAB_PAD_VAL_GPIO22 0x2\r
482#define VF_TAB_PAD_VAL_GPIO23 0x2\r
483#define VF_TAB_PAD_VAL_GPIO24 0x2\r
484#define VF_TAB_PAD_VAL_GPIO25 0x2\r
485#define VF_TAB_PAD_VAL_GPIO26 0x2\r
486#define VF_TAB_PAD_VAL_GPIO27 0x2\r
487#define VF_TAB_PAD_VAL_GPIO28 0x2\r
488#define VF_TAB_PAD_VAL_GPIO29 0x2\r
489#define VF_TAB_PAD_VAL_GPIO30 0x2\r
490#define VF_TAB_PAD_VAL_GPIO31 0x2\r
491#define VF_TAB_PAD_VAL_GPIO32 0x2\r
492#define VF_TAB_PAD_VAL_GPIO33 0x2\r
493#define VF_TAB_PAD_VAL_GPIO34 0x2\r
494#define VF_TAB_PAD_VAL_GPIO35 0x2\r
495#define VF_TAB_PAD_VAL_GPIO36 0x2\r
496#define VF_TAB_PAD_VAL_GPIO37 0x2\r
497#define VF_TAB_PAD_VAL_GPIO38 0x2\r
498#define VF_TAB_PAD_VAL_GPIO39 0x2\r
499#define VF_TAB_PAD_VAL_GPIO40 0x2\r
500#define VF_TAB_PAD_VAL_GPIO41 0x2\r
501#define VF_TAB_PAD_VAL_GPIO42 0x2\r
502#define VF_TAB_PAD_VAL_GPIO43 0x2\r
503#define VF_TAB_PAD_VAL_GPIO44 0x2\r
504#define VF_TAB_PAD_VAL_GPIO45 0x2\r
505#define VF_TAB_PAD_VAL_GPIO46 0x2\r
506#define VF_TAB_PAD_VAL_GPIO47 0x2\r
507#define VF_TAB_PAD_VAL_GPIO48 0x2\r
508#define VF_TAB_PAD_VAL_GPIO49 0x2\r
509#define VF_TAB_PAD_VAL_GPIO50 0x2\r
510#define VF_TAB_PAD_VAL_GPIO51 0x2\r
511#define VF_TAB_PAD_VAL_GPIO52 0x2\r
512#define VF_TAB_PAD_VAL_GPIO53 0x2\r
513#define VF_TAB_PAD_VAL_GPIO54 0x2\r
514#define VF_TAB_PAD_VAL_GPIO55 0x2\r
515#define VF_TAB_PAD_VAL_GPIO56 0x2\r
516#define VF_TAB_PAD_VAL_GPIO57 0x2\r
517#define VF_TAB_PAD_VAL_GPIO58 0x2\r
518#define VF_TAB_PAD_VAL_GPIO59 0x2\r
519#define VF_TAB_PAD_VAL_GPIO60 0x2\r
520#define VF_TAB_PAD_VAL_GPIO61 0x4\r
521#define VF_TAB_PAD_VAL_GPIO62 0x2\r
522#define VF_TAB_PAD_VAL_GPIO63 0x2\r
523#define VF_TAB_PAD_VAL_GPIO64 0x2\r
524#define VF_TAB_PAD_VAL_GPIO65 0x2\r
525#define VF_TAB_PAD_VAL_GPIO66 0x2\r
526#define VF_TAB_PAD_VAL_GPIO67 0x0\r
527#define VF_TAB_PAD_VAL_GPIO68 0x2\r
528#define VF_TAB_PAD_VAL_GPIO69 0x4\r
529#define VF_TAB_PAD_VAL_GPIO70 0x2\r
530\r
531\r
532//\r
533// PAD_DFT\r
534//\r
535#define VF_TAB_PAD_DFT_GPIO0 0xC\r
536#define VF_TAB_PAD_DFT_GPIO1 0xC\r
537#define VF_TAB_PAD_DFT_GPIO2 0xC\r
538#define VF_TAB_PAD_DFT_GPIO3 0xC\r
539#define VF_TAB_PAD_DFT_GPIO4 0xC\r
540#define VF_TAB_PAD_DFT_GPIO5 0xC\r
541#define VF_TAB_PAD_DFT_GPIO6 0xC\r
542#define VF_TAB_PAD_DFT_GPIO7 0xC\r
543#define VF_TAB_PAD_DFT_GPIO8 0xC\r
544#define VF_TAB_PAD_DFT_GPIO9 0xC\r
545#define VF_TAB_PAD_DFT_GPIO10 0xC\r
546#define VF_TAB_PAD_DFT_GPIO11 0xC\r
547#define VF_TAB_PAD_DFT_GPIO12 0xC\r
548#define VF_TAB_PAD_DFT_GPIO13 0xC\r
549#define VF_TAB_PAD_DFT_GPIO14 0xC\r
550#define VF_TAB_PAD_DFT_GPIO15 0xC\r
551#define VF_TAB_PAD_DFT_GPIO16 0xC\r
552#define VF_TAB_PAD_DFT_GPIO17 0xC\r
553#define VF_TAB_PAD_DFT_GPIO18 0xC\r
554#define VF_TAB_PAD_DFT_GPIO19 0xC\r
555#define VF_TAB_PAD_DFT_GPIO20 0xC\r
556#define VF_TAB_PAD_DFT_GPIO21 0xC\r
557#define VF_TAB_PAD_DFT_GPIO22 0xC\r
558#define VF_TAB_PAD_DFT_GPIO23 0xC\r
559#define VF_TAB_PAD_DFT_GPIO24 0xC\r
560#define VF_TAB_PAD_DFT_GPIO25 0xC\r
561#define VF_TAB_PAD_DFT_GPIO26 0xC\r
562#define VF_TAB_PAD_DFT_GPIO27 0xC\r
563#define VF_TAB_PAD_DFT_GPIO28 0xC\r
564#define VF_TAB_PAD_DFT_GPIO29 0xC\r
565#define VF_TAB_PAD_DFT_GPIO30 0xC\r
566#define VF_TAB_PAD_DFT_GPIO31 0xC\r
567#define VF_TAB_PAD_DFT_GPIO32 0xC\r
568#define VF_TAB_PAD_DFT_GPIO33 0xC\r
569#define VF_TAB_PAD_DFT_GPIO34 0xC\r
570#define VF_TAB_PAD_DFT_GPIO35 0xC\r
571#define VF_TAB_PAD_DFT_GPIO36 0xC\r
572#define VF_TAB_PAD_DFT_GPIO37 0xC\r
573#define VF_TAB_PAD_DFT_GPIO38 0xC\r
574#define VF_TAB_PAD_DFT_GPIO39 0xC\r
575#define VF_TAB_PAD_DFT_GPIO40 0xC\r
576#define VF_TAB_PAD_DFT_GPIO41 0xC\r
577#define VF_TAB_PAD_DFT_GPIO42 0xC\r
578#define VF_TAB_PAD_DFT_GPIO43 0xC\r
579#define VF_TAB_PAD_DFT_GPIO44 0xC\r
580#define VF_TAB_PAD_DFT_GPIO45 0xC\r
581#define VF_TAB_PAD_DFT_GPIO46 0xC\r
582#define VF_TAB_PAD_DFT_GPIO47 0xC\r
583#define VF_TAB_PAD_DFT_GPIO48 0xC\r
584#define VF_TAB_PAD_DFT_GPIO49 0xC\r
585#define VF_TAB_PAD_DFT_GPIO50 0xC\r
586#define VF_TAB_PAD_DFT_GPIO51 0xC\r
587#define VF_TAB_PAD_DFT_GPIO52 0xC\r
588#define VF_TAB_PAD_DFT_GPIO53 0xC\r
589#define VF_TAB_PAD_DFT_GPIO54 0xC\r
590#define VF_TAB_PAD_DFT_GPIO55 0xC\r
591#define VF_TAB_PAD_DFT_GPIO56 0xC\r
592#define VF_TAB_PAD_DFT_GPIO57 0xC\r
593#define VF_TAB_PAD_DFT_GPIO58 0xC\r
594#define VF_TAB_PAD_DFT_GPIO59 0xC\r
595#define VF_TAB_PAD_DFT_GPIO60 0xC\r
596#define VF_TAB_PAD_DFT_GPIO61 0xC\r
597#define VF_TAB_PAD_DFT_GPIO62 0xC\r
598#define VF_TAB_PAD_DFT_GPIO63 0xC\r
599#define VF_TAB_PAD_DFT_GPIO64 0xC\r
600#define VF_TAB_PAD_DFT_GPIO65 0xC\r
601#define VF_TAB_PAD_DFT_GPIO66 0xC\r
602#define VF_TAB_PAD_DFT_GPIO67 0xC\r
603#define VF_TAB_PAD_DFT_GPIO68 0xC\r
604#define VF_TAB_PAD_DFT_GPIO69 0xC\r
605#define VF_TAB_PAD_DFT_GPIO70 0xC\r
606\r
607\r
608//\r
609//SUS WELL\r
610//\r
611\r
612//\r
613// CONF0\r
614//\r
615#define VF_TAB_PAD_CONF0_GPIO_SUS0 0xCCA8\r
616#define VF_TAB_PAD_CONF0_GPIO_SUS1 0xCCA8\r
617#define VF_TAB_PAD_CONF0_GPIO_SUS2 0xCCA8\r
618#define VF_TAB_PAD_CONF0_GPIO_SUS3 0xCD28\r
619#define VF_TAB_PAD_CONF0_GPIO_SUS4 0xCD28\r
620#define VF_TAB_PAD_CONF0_GPIO_SUS5 0xCD28\r
621#define VF_TAB_PAD_CONF0_GPIO_SUS6 0x8850\r
622#define VF_TAB_PAD_CONF0_GPIO_SUS7 0x8850\r
623#define VF_TAB_PAD_CONF0_GPIO_SUS8 0xCCA8\r
624#define VF_TAB_PAD_CONF0_GPIO_SUS9 0xCCA8\r
625#define VF_TAB_PAD_CONF0_GPIO_SUS10 0xCCA8\r
626#define VF_TAB_PAD_CONF0_GPIO_SUS11 0xC828\r
627#define VF_TAB_PAD_CONF0_GPIO_SUS12 0xC828\r
628#define VF_TAB_PAD_CONF0_GPIO_SUS13 0xCCA8\r
629#define VF_TAB_PAD_CONF0_GPIO_SUS14 0xCCA8\r
630#define VF_TAB_PAD_CONF0_GPIO_SUS15 0x8C80\r
631#define VF_TAB_PAD_CONF0_GPIO_SUS16 0xC828\r
632\r
633//\r
634// CONF1\r
635//\r
636#define VF_TAB_PAD_CONF1_GPIO_SUS0 0\r
637#define VF_TAB_PAD_CONF1_GPIO_SUS1 0\r
638#define VF_TAB_PAD_CONF1_GPIO_SUS2 0\r
639#define VF_TAB_PAD_CONF1_GPIO_SUS3 0\r
640#define VF_TAB_PAD_CONF1_GPIO_SUS4 0\r
641#define VF_TAB_PAD_CONF1_GPIO_SUS5 0\r
642#define VF_TAB_PAD_CONF1_GPIO_SUS6 0\r
643#define VF_TAB_PAD_CONF1_GPIO_SUS7 0\r
644#define VF_TAB_PAD_CONF1_GPIO_SUS8 0\r
645#define VF_TAB_PAD_CONF1_GPIO_SUS9 0\r
646#define VF_TAB_PAD_CONF1_GPIO_SUS10 0\r
647#define VF_TAB_PAD_CONF1_GPIO_SUS11 0\r
648#define VF_TAB_PAD_CONF1_GPIO_SUS12 0\r
649#define VF_TAB_PAD_CONF1_GPIO_SUS13 0\r
650#define VF_TAB_PAD_CONF1_GPIO_SUS14 0\r
651#define VF_TAB_PAD_CONF1_GPIO_SUS15 0\r
652#define VF_TAB_PAD_CONF1_GPIO_SUS16 0\r
653\r
654//\r
655// PAD_VAL\r
656//\r
657#define VF_TAB_PAD_VAL_GPIO_SUS0 0\r
658#define VF_TAB_PAD_VAL_GPIO_SUS1 0\r
659#define VF_TAB_PAD_VAL_GPIO_SUS2 0\r
660#define VF_TAB_PAD_VAL_GPIO_SUS3 0\r
661#define VF_TAB_PAD_VAL_GPIO_SUS4 0\r
662#define VF_TAB_PAD_VAL_GPIO_SUS5 0\r
663#define VF_TAB_PAD_VAL_GPIO_SUS6 0\r
664#define VF_TAB_PAD_VAL_GPIO_SUS7 0\r
665#define VF_TAB_PAD_VAL_GPIO_SUS8 0\r
666#define VF_TAB_PAD_VAL_GPIO_SUS9 0\r
667#define VF_TAB_PAD_VAL_GPIO_SUS10 0\r
668#define VF_TAB_PAD_VAL_GPIO_SUS11 0\r
669#define VF_TAB_PAD_VAL_GPIO_SUS12 0\r
670#define VF_TAB_PAD_VAL_GPIO_SUS13 0\r
671#define VF_TAB_PAD_VAL_GPIO_SUS14 0\r
672#define VF_TAB_PAD_VAL_GPIO_SUS15 0\r
673#define VF_TAB_PAD_VAL_GPIO_SUS16 0\r
674\r
675//\r
676// PAD_DFT\r
677//\r
678#define VF_TAB_PAD_DFT_GPIO_SUS0 0\r
679#define VF_TAB_PAD_DFT_GPIO_SUS1 0\r
680#define VF_TAB_PAD_DFT_GPIO_SUS2 0\r
681#define VF_TAB_PAD_DFT_GPIO_SUS3 0\r
682#define VF_TAB_PAD_DFT_GPIO_SUS4 0\r
683#define VF_TAB_PAD_DFT_GPIO_SUS5 0\r
684#define VF_TAB_PAD_DFT_GPIO_SUS6 0\r
685#define VF_TAB_PAD_DFT_GPIO_SUS7 0\r
686#define VF_TAB_PAD_DFT_GPIO_SUS8 0\r
687#define VF_TAB_PAD_DFT_GPIO_SUS9 0\r
688#define VF_TAB_PAD_DFT_GPIO_SUS10 0\r
689#define VF_TAB_PAD_DFT_GPIO_SUS11 0\r
690#define VF_TAB_PAD_DFT_GPIO_SUS12 0\r
691#define VF_TAB_PAD_DFT_GPIO_SUS13 0\r
692#define VF_TAB_PAD_DFT_GPIO_SUS14 0\r
693#define VF_TAB_PAD_DFT_GPIO_SUS15 0\r
694#define VF_TAB_PAD_DFT_GPIO_SUS16 0\r
695\r
696\r
697//\r
698//\r
699// GPIO Register Settings for ValleyFalls (Netbook)\r
700//\r
701//\r
702// IO Space configyuration registers\r
703// Field Descriptions:\r
704// USE: Defines the pin's usage model: GPIO (G) or Native (N) mode.\r
705// I/O: Defines whether GPIOs are inputs (I) or outputs (O).\r
706// (Note: Only meaningful for pins used as GPIOs.)\r
707// LVL: This field gives you the initial value for "output" GPIO's.\r
708// (Note: The output level is dependent upon whether the pin is inverted.)\r
709// TPE: Defines whether Trigger Positive Edge Enable.\r
710// TNE: Defines whether Trigger Negative Edge Enable.\r
711// WAKE_EN: only support in SUS community\r
712// (Note: Only affects the level sent to the GPE logic and does not\r
713// affect the level read through the GPIO registers.)\r
714//\r
715//\r
716// Memory spcae configuration registers\r
717//\r
718// Field Descriptions:\r
719// PAD releated:\r
720// PAD_CONF0\r
721// PAD_CONF1\r
722// PAD_VAL\r
723// PAD_DFT\r
724//\r
725// Notes:\r
726// 1. N = Native , G = GPIO , I = Input, O = Output, - = BOTH/NOT SURE\r
727//\r
728// Signal UsedAs USE I/O LVL TPE TNE PCONF0 PCONF1 PVAL PDFT\r
729// -------------------------------------------------------------------------------------------------------------------------\r
730// GPIO0 UART1_RXD-L N I - - - cd29h - - -\r
731// GPIO1 UART1_TXD-0 N O - - - cd29h - - -\r
732// *GPIO2 UART1_RTS_B-1 N I - - - cca9h - - -\r
733// *GPIO3 UART1_CTS_B-H N O - - - cca9h - - -\r
734\r
735// GPIO4 NMI_B-H G - - - - cca9h - - -\r
736// GPIO5 GPIO_D5 G - - - - cca9h - - -\r
737// GPIO6 GPIO_D6 G O - - - 8d51h - - -\r
738// GPIO7 GPIO_D7 G O - - - 8cd1h - - -\r
739// GPIO8 GPIO_D8 G O - - - 8cd1h - - -\r
740// GPIO9 GPIO_D9 G I - - - 8cd1h - - -\r
741\r
742// GPIO10 GPIO_D10 G O - - - 8d51h - - -\r
743// GPIO11 GPIO_D11 G O - - - 8cd1h - - -\r
744// GPIO12 GPIO_D12 G O - - - 8cd1h - - -\r
745// GPIO13 GPIO_D13 G I - - - 8d51h - - -\r
746\r
747// GPIO14 SATA_GP0 N - - - - - - - -\r
748// GPIO15 SATA_GP1-L N - - - - ccaah - - -\r
749\r
750// GPIO16 SATA_LEDN-OD-O N O - - - - - - -\r
751// GPIO17 PCIE_CLKREQ0B-20K,H N I - - - cd2ah - - -\r
752// GPIO18 PCIE_CLKREQ1B-20K,H N O - - - ccaah - - -\r
753// GPIO19 PCIE_CLKREQ2B-20K,H N I - - - ccaah - - -\r
754// GPIO20 PCIE_CLKREQ3B-20K,H N - - - - ccaah - - -\r
755// GPIO21 PCIE_CLKREQ4B-20K,H N - - - - - - - -\r
756// GPIO22 FLEX_CLK_SE0-20K,L N O - - - ccaah - - -\r
757// GPIO23 FLEX_CLK_SE1-20K,L N - - - - - - - -\r
758\r
759// GPIO24 HDA_RSTB N O - - - 8d02h - - -\r
760// GPIO25 HDA_SYNC N O - - - 8d02h - - -\r
761// GPIO26 HDA_CLK N O - - - 8d02h - - -\r
762// GPIO27 HDA_SDO N I - - - 8d02h - - -\r
763// GPIO28 HDA_SDI0 N I - - - - - - -\r
764// GPIO29 HDA_SDI1 N O - - - - - - -\r
765// GPIO30 HDA_DOCKRSTB N I - - - - - - -\r
766// GPIO31 HDA_DOCKENB N O - - - - - - -\r
767\r
768// GPIO32 SDMMC1_CLK N - - - - 208d51h - - -\r
769// GPIO33 SDMMC1_D0 N - - - - 8cd1h - - -\r
770// GPIO34 SDMMC1_D1 N - - - - 8cd1h - - -\r
771// GPIO35 SDMMC1_D2 N - - - - 8cd1h - - -\r
772// GPIO36 SDMMC1_D3_CD_B N - - - - 8cd1h - - -\r
773// GPIO37 MMC1_D4_SD_WE N - - - - 8cd1h - - -\r
774// GPIO38 MMC1_D5 N - - - - 8cd1h - - -\r
775// GPIO39 MMC1_D6 N - - - - 8cd1h - - -\r
776// GPIO40 MMC1_D7 N - - - - 8cd1h - - -\r
777// GPIO41 SDMMC1_CMD N - - - - 8cd1h - - -\r
778// GPIO42 MMC1_RESET_B N - - - - 208d51h - - -\r
779\r
780// GPIO43 SDMMC2_CLK N - - - - 208d51h - - -\r
781// GPIO44 SDMMC2_D0 N - - - - 8cd1h - - -\r
782// GPIO45 SDMMC2_D1 N - - - - 8cd1h - - -\r
783// GPIO46 SDMMC2_D2 N - - - - 8cd1h - - -\r
784// GPIO47 SDMMC2_D3_CD_B N - - - - 8cd1h - - -\r
785// GPIO48 SDMMC2_CMD N - - - - 8cd1h - - -\r
786\r
787// GPIO49 SDMMC3_CLK N - - - - 8d51h - - -\r
788// GPIO50 SDMMC3_D0 N - - - - 8cd1h - - -\r
789// GPIO51 SDMMC3_D1 N - - - - 8cd1h - - -\r
790// GPIO52 SDMMC3_D2 N - - - - 8cd1h - - -\r
791// GPIO53 SDMMC3_D3 N - - - - 8cd1h - - -\r
792// GPIO54 SDMMC3_CD_B N - - - - cca9h - - -\r
793// GPIO55 SDMMC3_CMD N - - - - 8cd1h - - -\r
794// GPIO56 SDMMC3_1P8_EN N - - - - cd29h - - -\r
795\r
796// GPIO57 LPC_AD0 N - - - - - - - -\r
797// GPIO58 LPC_AD1 N - - - - - - - -\r
798// GPIO59 LPC_AD2 N - - - - - - - -\r
799// GPIO60 LPC_AD3 N - - - - - - - -\r
800// GPIO61 LPC_FRAMEB N O - - - - - - -\r
801// GPIO62 LPC_CLKOUT0 N O - - - - - - -\r
802// GPIO63 LPC_CLKOUT1 N O - - - - - - -\r
803// GPIO64 LPC_CLKRUNB N - - - - - - - -\r
804\r
805// GPIO65 SMB_DATA N - - - - - - - -\r
806// GPIO66 SMB_CLK N - - - - - - - -\r
807// GPIO67 SMB_ALERTB N - - - - - - - -\r
808\r
809// GPIO68 ILB_SEIRQ N - - - - - - - -\r
810// GPIO69 SPKR N O - - - - - - -\r
811\r
812//SUS WELL\r
813\r
814\r
815//GPIO_SUS0 GPIO_SUS0 N O - - - CCA8h - - -\r
816//GPIO_SUS1 GPIO_SUS1 N O - - - CCA8h - - -\r
817//GPIO_SUS2 GPIO_SUS2 N O - - - CCA8h - - -\r
818//GPIO_SUS3 GPIO_SUS3 N O - - - CD28h - - -\r
819//GPIO_SUS4 GPIO_SUS4 N O - - - CD28h - - -\r
820//GPIO_SUS5 GPIO_SUS5 N O - - - CD28h - - -\r
821//GPIO_SUS6 SUSPWRDNACK-0 N O - - - 8850h - - -\r
822//GPIO_SUS7 PMU_SLP_DDRVTT_B-0 N O - - - 8850h - - -\r
823//GPIO_SUS8 PMU_WAKE_B-20K,H N O - - - CCA8h - - -\r
824//GPIO_SUS9 PMU_PWRBTN_B-20K,H N O - - - CCA8h - - -\r
825//GPIO_SUS10 PMU_WAKE_LAN_B-20K,H N O - - - CCA8h - - -\r
826//GPIO_SUS11 SUS_STAT_B-1 N O - - - C828h - - -\r
827//GPIO_SUS12 PMU_SUSCLK-0 N O - - - C828h - - -\r
828//GPIO_SUS13 USB_OC0_B-20K,H N O - - - CCA8h - - -\r
829//GPIO_SUS14 USB_OC1_B-20K,H N O - - - CCA8h - - -\r
830//GPIO_SUS15 SPI_CS1_B-20K,H N O - - - 8C80h - - -\r
831//GPIO_SUS16 SPI_CS1_B-20K,H N O - - - C828h - - -\r
832//\r
833\r
834#define VF_NET_GPIO_USE_SEL_VAL_0_31 0x00000000\r
835#define VF_NET_GPIO_USE_SEL_VAL_32_63 0x00000000\r
836#define VF_NET_GPIO_USE_SEL_VAL_64_70 0x00000000\r
837#define VF_NET_GPIO_USE_SEL_VAL_SUS 0x00000000\r
838\r
839//\r
840//1010 --00 0100 01-- 0101 --0- 0001 1010\r
841//\r
842#define VF_NET_GPIO_IO_SEL_VAL_0_31 0x00000000 // BIT30 | BIT28 | BIT27 | BIT19 | BIT17 | BIT13 | BIT9 | BIT2 | BIT0\r
843#define VF_NET_GPIO_IO_SEL_VAL_32_63 0x00000000\r
844#define VF_NET_GPIO_IO_SEL_VAL_64_70 0x00000000\r
845#define VF_NET_GPIO_IO_SEL_VAL_SUS 0x00000000\r
846\r
847\r
848#define VF_NET_GPIO_LVL_VAL_0_31 0x00000000\r
849#define VF_NET_GPIO_LVL_VAL_32_63 0x00000000\r
850#define VF_NET_GPIO_LVL_VAL_64_70 0x00000000\r
851#define VF_NET_GPIO_LVL_VAL_SUS 0x00000000\r
852\r
853#define VF_NET_GPIO_TPE_VAL_0_31 0x00000000\r
854#define VF_NET_GPIO_TPE_VAL_SUS 0x00000000\r
855\r
856#define VF_NET_GPIO_TNE_VAL_0_31 0x00000000\r
857#define VF_NET_GPIO_TNE_VAL_SUS 0x00000000\r
858\r
859#define VF_NET_GPIO_TS_VAL_0_31 0x00000000\r
860#define VF_NET_GPIO_TS_VAL_SUS 0x00000000\r
861\r
862\r
863//\r
864// Memory space registers\r
865//\r
866\r
867\r
868//\r
869// CONF0\r
870//\r
871#define VF_NET_PAD_CONF0_GPIO0 0xcd29\r
872#define VF_NET_PAD_CONF0_GPIO1 0xcd29\r
873#define VF_NET_PAD_CONF0_GPIO2 0xcca9\r
874#define VF_NET_PAD_CONF0_GPIO3 0xcca9\r
875#define VF_NET_PAD_CONF0_GPIO4 0xcca8\r
876#define VF_NET_PAD_CONF0_GPIO5 0xcca8\r
877#define VF_NET_PAD_CONF0_GPIO6 0x8d50\r
878#define VF_NET_PAD_CONF0_GPIO7 0x8cd0\r
879#define VF_NET_PAD_CONF0_GPIO8 0x8cd0\r
880#define VF_NET_PAD_CONF0_GPIO9 0x8cd0\r
881#define VF_NET_PAD_CONF0_GPIO10 0x8d50\r
882#define VF_NET_PAD_CONF0_GPIO11 0x8cd0\r
883#define VF_NET_PAD_CONF0_GPIO12 0x8cd0\r
884#define VF_NET_PAD_CONF0_GPIO13 0x8d50\r
885#define VF_NET_PAD_CONF0_GPIO14 0xCCA8\r
886#define VF_NET_PAD_CONF0_GPIO15 0xccaa\r
887#define VF_NET_PAD_CONF0_GPIO16 0xC828\r
888#define VF_NET_PAD_CONF0_GPIO17 0xcd2a\r
889#define VF_NET_PAD_CONF0_GPIO18 0xccaa\r
890#define VF_NET_PAD_CONF0_GPIO19 0xccaa\r
891#define VF_NET_PAD_CONF0_GPIO20 0xccaa\r
892#define VF_NET_PAD_CONF0_GPIO21 0xCCA9\r
893#define VF_NET_PAD_CONF0_GPIO22 0xccaa\r
894#define VF_NET_PAD_CONF0_GPIO23 0xCD2A\r
895#define VF_NET_PAD_CONF0_GPIO24 0x8d02\r
896#define VF_NET_PAD_CONF0_GPIO25 0x8d02\r
897#define VF_NET_PAD_CONF0_GPIO26 0x8d02\r
898#define VF_NET_PAD_CONF0_GPIO27 0x8d02\r
899#define VF_NET_PAD_CONF0_GPIO28 0x8D02\r
900#define VF_NET_PAD_CONF0_GPIO29 0x8D02\r
901#define VF_NET_PAD_CONF0_GPIO30 0x8D00\r
902#define VF_NET_PAD_CONF0_GPIO31 0xCD2A\r
903#define VF_NET_PAD_CONF0_GPIO32 0x208d51\r
904#define VF_NET_PAD_CONF0_GPIO33 0x8cd1\r
905#define VF_NET_PAD_CONF0_GPIO34 0x8cd1\r
906#define VF_NET_PAD_CONF0_GPIO35 0x8cd1\r
907#define VF_NET_PAD_CONF0_GPIO36 0x8cd1\r
908#define VF_NET_PAD_CONF0_GPIO37 0x8cd1\r
909#define VF_NET_PAD_CONF0_GPIO38 0x8cd1\r
910#define VF_NET_PAD_CONF0_GPIO39 0x8cd1\r
911#define VF_NET_PAD_CONF0_GPIO40 0x8cd1\r
912#define VF_NET_PAD_CONF0_GPIO41 0x8cd1\r
913#define VF_NET_PAD_CONF0_GPIO42 0x208d51\r
914#define VF_NET_PAD_CONF0_GPIO43 0x208d51\r
915#define VF_NET_PAD_CONF0_GPIO44 0x8cd1\r
916#define VF_NET_PAD_CONF0_GPIO45 0x8cd1\r
917#define VF_NET_PAD_CONF0_GPIO46 0x8cd1\r
918#define VF_NET_PAD_CONF0_GPIO47 0x8cd1\r
919#define VF_NET_PAD_CONF0_GPIO48 0x8cd1\r
920#define VF_NET_PAD_CONF0_GPIO49 0x8d51\r
921#define VF_NET_PAD_CONF0_GPIO50 0x8cd1\r
922#define VF_NET_PAD_CONF0_GPIO51 0x8cd1\r
923#define VF_NET_PAD_CONF0_GPIO52 0x8cd1\r
924#define VF_NET_PAD_CONF0_GPIO53 0x8cd1\r
925#define VF_NET_PAD_CONF0_GPIO54 0xcca9\r
926#define VF_NET_PAD_CONF0_GPIO55 0x8cd1\r
927#define VF_NET_PAD_CONF0_GPIO56 0xcd29\r
928#define VF_NET_PAD_CONF0_GPIO57 0x8C80\r
929#define VF_NET_PAD_CONF0_GPIO58 0x8C80\r
930#define VF_NET_PAD_CONF0_GPIO59 0x8C80\r
931#define VF_NET_PAD_CONF0_GPIO60 0x8C80\r
932#define VF_NET_PAD_CONF0_GPIO61 0x8800\r
933#define VF_NET_PAD_CONF0_GPIO62 0x8D00\r
934#define VF_NET_PAD_CONF0_GPIO63 0x8800\r
935#define VF_NET_PAD_CONF0_GPIO64 0x8800\r
936#define VF_NET_PAD_CONF0_GPIO65 0xC828\r
937#define VF_NET_PAD_CONF0_GPIO66 0xC828\r
938#define VF_NET_PAD_CONF0_GPIO67 0xC828\r
939#define VF_NET_PAD_CONF0_GPIO68 0xCCA8\r
940#define VF_NET_PAD_CONF0_GPIO69 0xC828\r
941#define VF_NET_PAD_CONF0_GPIO70 0xCCA8\r
942\r
943\r
944\r
945\r
946//\r
947// PAD_CONF1\r
948//\r
949#define VF_NET_PAD_CONF1_GPIO0 0x20002\r
950#define VF_NET_PAD_CONF1_GPIO1 0x20002\r
951#define VF_NET_PAD_CONF1_GPIO2 0x20002\r
952#define VF_NET_PAD_CONF1_GPIO3 0x20002\r
953#define VF_NET_PAD_CONF1_GPIO4 0x20002\r
954#define VF_NET_PAD_CONF1_GPIO5 0x20002\r
955#define VF_NET_PAD_CONF1_GPIO6 0x1F000F\r
956#define VF_NET_PAD_CONF1_GPIO7 0x1F000F\r
957#define VF_NET_PAD_CONF1_GPIO8 0x1F000F\r
958#define VF_NET_PAD_CONF1_GPIO9 0x1F000F\r
959#define VF_NET_PAD_CONF1_GPIO10 0x1F000F\r
960#define VF_NET_PAD_CONF1_GPIO11 0x1F000F\r
961#define VF_NET_PAD_CONF1_GPIO12 0x1F000F\r
962#define VF_NET_PAD_CONF1_GPIO13 0x1F000F\r
963#define VF_NET_PAD_CONF1_GPIO14 0x20002\r
964#define VF_NET_PAD_CONF1_GPIO15 0x20002\r
965#define VF_NET_PAD_CONF1_GPIO16 0x20002\r
966#define VF_NET_PAD_CONF1_GPIO17 0x20002\r
967#define VF_NET_PAD_CONF1_GPIO18 0x20002\r
968#define VF_NET_PAD_CONF1_GPIO19 0x20002\r
969#define VF_NET_PAD_CONF1_GPIO20 0x20002\r
970#define VF_NET_PAD_CONF1_GPIO21 0x20002\r
971#define VF_NET_PAD_CONF1_GPIO22 0x20002\r
972#define VF_NET_PAD_CONF1_GPIO23 0x20002\r
973#define VF_NET_PAD_CONF1_GPIO24 0x00000\r
974#define VF_NET_PAD_CONF1_GPIO25 0x00000\r
975#define VF_NET_PAD_CONF1_GPIO26 0x00000\r
976#define VF_NET_PAD_CONF1_GPIO27 0x00000\r
977#define VF_NET_PAD_CONF1_GPIO28 0x00000\r
978#define VF_NET_PAD_CONF1_GPIO29 0x00000\r
979#define VF_NET_PAD_CONF1_GPIO30 0x00000\r
980#define VF_NET_PAD_CONF1_GPIO31 0x20002\r
981#define VF_NET_PAD_CONF1_GPIO32 0x00000\r
982#define VF_NET_PAD_CONF1_GPIO33 0x00000\r
983#define VF_NET_PAD_CONF1_GPIO34 0x00000\r
984#define VF_NET_PAD_CONF1_GPIO35 0x00000\r
985#define VF_NET_PAD_CONF1_GPIO36 0x00000\r
986#define VF_NET_PAD_CONF1_GPIO37 0x00000\r
987#define VF_NET_PAD_CONF1_GPIO38 0x00000\r
988#define VF_NET_PAD_CONF1_GPIO39 0x00000\r
989#define VF_NET_PAD_CONF1_GPIO40 0x00000\r
990#define VF_NET_PAD_CONF1_GPIO41 0x00000\r
991#define VF_NET_PAD_CONF1_GPIO42 0x00000\r
992#define VF_NET_PAD_CONF1_GPIO43 0x00000\r
993#define VF_NET_PAD_CONF1_GPIO44 0x00000\r
994#define VF_NET_PAD_CONF1_GPIO45 0x00000\r
995#define VF_NET_PAD_CONF1_GPIO46 0x00000\r
996#define VF_NET_PAD_CONF1_GPIO47 0x00000\r
997#define VF_NET_PAD_CONF1_GPIO48 0x00000\r
998#define VF_NET_PAD_CONF1_GPIO49 0x00000\r
999#define VF_NET_PAD_CONF1_GPIO50 0x00000\r
1000#define VF_NET_PAD_CONF1_GPIO51 0x00000\r
1001#define VF_NET_PAD_CONF1_GPIO52 0x00000\r
1002#define VF_NET_PAD_CONF1_GPIO53 0x00000\r
1003#define VF_NET_PAD_CONF1_GPIO54 0x20002\r
1004#define VF_NET_PAD_CONF1_GPIO55 0x00000\r
1005#define VF_NET_PAD_CONF1_GPIO56 0x20002\r
1006#define VF_NET_PAD_CONF1_GPIO57 0x00000\r
1007#define VF_NET_PAD_CONF1_GPIO58 0x00000\r
1008#define VF_NET_PAD_CONF1_GPIO59 0x00000\r
1009#define VF_NET_PAD_CONF1_GPIO60 0x00000\r
1010#define VF_NET_PAD_CONF1_GPIO61 0x00000\r
1011#define VF_NET_PAD_CONF1_GPIO62 0x00000\r
1012#define VF_NET_PAD_CONF1_GPIO63 0x00000\r
1013#define VF_NET_PAD_CONF1_GPIO64 0x00000\r
1014#define VF_NET_PAD_CONF1_GPIO65 0x20002\r
1015#define VF_NET_PAD_CONF1_GPIO66 0x20002\r
1016#define VF_NET_PAD_CONF1_GPIO67 0x20002\r
1017#define VF_NET_PAD_CONF1_GPIO68 0x20002\r
1018#define VF_NET_PAD_CONF1_GPIO69 0x20002\r
1019#define VF_NET_PAD_CONF1_GPIO70 0x20002\r
1020\r
1021\r
1022\r
1023//\r
1024// PAD_VAL\r
1025//\r
1026#define VF_NET_PAD_VAL_GPIO0 0x2\r
1027#define VF_NET_PAD_VAL_GPIO1 0x2\r
1028#define VF_NET_PAD_VAL_GPIO2 0x2\r
1029#define VF_NET_PAD_VAL_GPIO3 0x2\r
1030#define VF_NET_PAD_VAL_GPIO4 0x2\r
1031#define VF_NET_PAD_VAL_GPIO5 0x2\r
1032#define VF_NET_PAD_VAL_GPIO6 0x2\r
1033#define VF_NET_PAD_VAL_GPIO7 0x2\r
1034#define VF_NET_PAD_VAL_GPIO8 0x2\r
1035#define VF_NET_PAD_VAL_GPIO9 0x2\r
1036#define VF_NET_PAD_VAL_GPIO10 0x2\r
1037#define VF_NET_PAD_VAL_GPIO11 0x2\r
1038#define VF_NET_PAD_VAL_GPIO12 0x2\r
1039#define VF_NET_PAD_VAL_GPIO13 0x2\r
1040#define VF_NET_PAD_VAL_GPIO14 0x2\r
1041#define VF_NET_PAD_VAL_GPIO15 0x2\r
1042#define VF_NET_PAD_VAL_GPIO16 0x4\r
1043#define VF_NET_PAD_VAL_GPIO17 0x2\r
1044#define VF_NET_PAD_VAL_GPIO18 0x2\r
1045#define VF_NET_PAD_VAL_GPIO19 0x2\r
1046#define VF_NET_PAD_VAL_GPIO20 0x2\r
1047#define VF_NET_PAD_VAL_GPIO21 0x2\r
1048#define VF_NET_PAD_VAL_GPIO22 0x2\r
1049#define VF_NET_PAD_VAL_GPIO23 0x2\r
1050#define VF_NET_PAD_VAL_GPIO24 0x2\r
1051#define VF_NET_PAD_VAL_GPIO25 0x2\r
1052#define VF_NET_PAD_VAL_GPIO26 0x2\r
1053#define VF_NET_PAD_VAL_GPIO27 0x2\r
1054#define VF_NET_PAD_VAL_GPIO28 0x2\r
1055#define VF_NET_PAD_VAL_GPIO29 0x2\r
1056#define VF_NET_PAD_VAL_GPIO30 0x2\r
1057#define VF_NET_PAD_VAL_GPIO31 0x2\r
1058#define VF_NET_PAD_VAL_GPIO32 0x2\r
1059#define VF_NET_PAD_VAL_GPIO33 0x2\r
1060#define VF_NET_PAD_VAL_GPIO34 0x2\r
1061#define VF_NET_PAD_VAL_GPIO35 0x2\r
1062#define VF_NET_PAD_VAL_GPIO36 0x2\r
1063#define VF_NET_PAD_VAL_GPIO37 0x2\r
1064#define VF_NET_PAD_VAL_GPIO38 0x2\r
1065#define VF_NET_PAD_VAL_GPIO39 0x2\r
1066#define VF_NET_PAD_VAL_GPIO40 0x2\r
1067#define VF_NET_PAD_VAL_GPIO41 0x2\r
1068#define VF_NET_PAD_VAL_GPIO42 0x2\r
1069#define VF_NET_PAD_VAL_GPIO43 0x2\r
1070#define VF_NET_PAD_VAL_GPIO44 0x2\r
1071#define VF_NET_PAD_VAL_GPIO45 0x2\r
1072#define VF_NET_PAD_VAL_GPIO46 0x2\r
1073#define VF_NET_PAD_VAL_GPIO47 0x2\r
1074#define VF_NET_PAD_VAL_GPIO48 0x2\r
1075#define VF_NET_PAD_VAL_GPIO49 0x2\r
1076#define VF_NET_PAD_VAL_GPIO50 0x2\r
1077#define VF_NET_PAD_VAL_GPIO51 0x2\r
1078#define VF_NET_PAD_VAL_GPIO52 0x2\r
1079#define VF_NET_PAD_VAL_GPIO53 0x2\r
1080#define VF_NET_PAD_VAL_GPIO54 0x2\r
1081#define VF_NET_PAD_VAL_GPIO55 0x2\r
1082#define VF_NET_PAD_VAL_GPIO56 0x2\r
1083#define VF_NET_PAD_VAL_GPIO57 0x2\r
1084#define VF_NET_PAD_VAL_GPIO58 0x2\r
1085#define VF_NET_PAD_VAL_GPIO59 0x2\r
1086#define VF_NET_PAD_VAL_GPIO60 0x2\r
1087#define VF_NET_PAD_VAL_GPIO61 0x4\r
1088#define VF_NET_PAD_VAL_GPIO62 0x2\r
1089#define VF_NET_PAD_VAL_GPIO63 0x2\r
1090#define VF_NET_PAD_VAL_GPIO64 0x2\r
1091#define VF_NET_PAD_VAL_GPIO65 0x2\r
1092#define VF_NET_PAD_VAL_GPIO66 0x2\r
1093#define VF_NET_PAD_VAL_GPIO67 0x0\r
1094#define VF_NET_PAD_VAL_GPIO68 0x2\r
1095#define VF_NET_PAD_VAL_GPIO69 0x4\r
1096#define VF_NET_PAD_VAL_GPIO70 0x2\r
1097\r
1098\r
1099//\r
1100// PAD_DFT\r
1101//\r
1102#define VF_NET_PAD_DFT_GPIO0 0xC\r
1103#define VF_NET_PAD_DFT_GPIO1 0xC\r
1104#define VF_NET_PAD_DFT_GPIO2 0xC\r
1105#define VF_NET_PAD_DFT_GPIO3 0xC\r
1106#define VF_NET_PAD_DFT_GPIO4 0xC\r
1107#define VF_NET_PAD_DFT_GPIO5 0xC\r
1108#define VF_NET_PAD_DFT_GPIO6 0xC\r
1109#define VF_NET_PAD_DFT_GPIO7 0xC\r
1110#define VF_NET_PAD_DFT_GPIO8 0xC\r
1111#define VF_NET_PAD_DFT_GPIO9 0xC\r
1112#define VF_NET_PAD_DFT_GPIO10 0xC\r
1113#define VF_NET_PAD_DFT_GPIO11 0xC\r
1114#define VF_NET_PAD_DFT_GPIO12 0xC\r
1115#define VF_NET_PAD_DFT_GPIO13 0xC\r
1116#define VF_NET_PAD_DFT_GPIO14 0xC\r
1117#define VF_NET_PAD_DFT_GPIO15 0xC\r
1118#define VF_NET_PAD_DFT_GPIO16 0xC\r
1119#define VF_NET_PAD_DFT_GPIO17 0xC\r
1120#define VF_NET_PAD_DFT_GPIO18 0xC\r
1121#define VF_NET_PAD_DFT_GPIO19 0xC\r
1122#define VF_NET_PAD_DFT_GPIO20 0xC\r
1123#define VF_NET_PAD_DFT_GPIO21 0xC\r
1124#define VF_NET_PAD_DFT_GPIO22 0xC\r
1125#define VF_NET_PAD_DFT_GPIO23 0xC\r
1126#define VF_NET_PAD_DFT_GPIO24 0xC\r
1127#define VF_NET_PAD_DFT_GPIO25 0xC\r
1128#define VF_NET_PAD_DFT_GPIO26 0xC\r
1129#define VF_NET_PAD_DFT_GPIO27 0xC\r
1130#define VF_NET_PAD_DFT_GPIO28 0xC\r
1131#define VF_NET_PAD_DFT_GPIO29 0xC\r
1132#define VF_NET_PAD_DFT_GPIO30 0xC\r
1133#define VF_NET_PAD_DFT_GPIO31 0xC\r
1134#define VF_NET_PAD_DFT_GPIO32 0xC\r
1135#define VF_NET_PAD_DFT_GPIO33 0xC\r
1136#define VF_NET_PAD_DFT_GPIO34 0xC\r
1137#define VF_NET_PAD_DFT_GPIO35 0xC\r
1138#define VF_NET_PAD_DFT_GPIO36 0xC\r
1139#define VF_NET_PAD_DFT_GPIO37 0xC\r
1140#define VF_NET_PAD_DFT_GPIO38 0xC\r
1141#define VF_NET_PAD_DFT_GPIO39 0xC\r
1142#define VF_NET_PAD_DFT_GPIO40 0xC\r
1143#define VF_NET_PAD_DFT_GPIO41 0xC\r
1144#define VF_NET_PAD_DFT_GPIO42 0xC\r
1145#define VF_NET_PAD_DFT_GPIO43 0xC\r
1146#define VF_NET_PAD_DFT_GPIO44 0xC\r
1147#define VF_NET_PAD_DFT_GPIO45 0xC\r
1148#define VF_NET_PAD_DFT_GPIO46 0xC\r
1149#define VF_NET_PAD_DFT_GPIO47 0xC\r
1150#define VF_NET_PAD_DFT_GPIO48 0xC\r
1151#define VF_NET_PAD_DFT_GPIO49 0xC\r
1152#define VF_NET_PAD_DFT_GPIO50 0xC\r
1153#define VF_NET_PAD_DFT_GPIO51 0xC\r
1154#define VF_NET_PAD_DFT_GPIO52 0xC\r
1155#define VF_NET_PAD_DFT_GPIO53 0xC\r
1156#define VF_NET_PAD_DFT_GPIO54 0xC\r
1157#define VF_NET_PAD_DFT_GPIO55 0xC\r
1158#define VF_NET_PAD_DFT_GPIO56 0xC\r
1159#define VF_NET_PAD_DFT_GPIO57 0xC\r
1160#define VF_NET_PAD_DFT_GPIO58 0xC\r
1161#define VF_NET_PAD_DFT_GPIO59 0xC\r
1162#define VF_NET_PAD_DFT_GPIO60 0xC\r
1163#define VF_NET_PAD_DFT_GPIO61 0xC\r
1164#define VF_NET_PAD_DFT_GPIO62 0xC\r
1165#define VF_NET_PAD_DFT_GPIO63 0xC\r
1166#define VF_NET_PAD_DFT_GPIO64 0xC\r
1167#define VF_NET_PAD_DFT_GPIO65 0xC\r
1168#define VF_NET_PAD_DFT_GPIO66 0xC\r
1169#define VF_NET_PAD_DFT_GPIO67 0xC\r
1170#define VF_NET_PAD_DFT_GPIO68 0xC\r
1171#define VF_NET_PAD_DFT_GPIO69 0xC\r
1172#define VF_NET_PAD_DFT_GPIO70 0xC\r
1173\r
1174//\r
1175// PCONF0\r
1176//\r
1177#define VF_NET_PAD_CONF0_GPIO_SUS0 0xCCA8\r
1178#define VF_NET_PAD_CONF0_GPIO_SUS1 0xCCA8\r
1179#define VF_NET_PAD_CONF0_GPIO_SUS2 0xCCA8\r
1180#define VF_NET_PAD_CONF0_GPIO_SUS3 0xCD28\r
1181#define VF_NET_PAD_CONF0_GPIO_SUS4 0xCD28\r
1182#define VF_NET_PAD_CONF0_GPIO_SUS5 0xCD28\r
1183#define VF_NET_PAD_CONF0_GPIO_SUS6 0x8850\r
1184#define VF_NET_PAD_CONF0_GPIO_SUS7 0x8850\r
1185#define VF_NET_PAD_CONF0_GPIO_SUS8 0xCCA8\r
1186#define VF_NET_PAD_CONF0_GPIO_SUS9 0xCCA8\r
1187#define VF_NET_PAD_CONF0_GPIO_SUS10 0xCCA8\r
1188#define VF_NET_PAD_CONF0_GPIO_SUS11 0xC828\r
1189#define VF_NET_PAD_CONF0_GPIO_SUS12 0xC828\r
1190#define VF_NET_PAD_CONF0_GPIO_SUS13 0xCCA8\r
1191#define VF_NET_PAD_CONF0_GPIO_SUS14 0xCCA8\r
1192#define VF_NET_PAD_CONF0_GPIO_SUS15 0x8C80\r
1193#define VF_NET_PAD_CONF0_GPIO_SUS16 0xC828\r
1194\r
1195//\r
1196// PCONF1\r
1197//\r
1198#define VF_NET_PAD_CONF1_GPIO_SUS0 0\r
1199#define VF_NET_PAD_CONF1_GPIO_SUS1 0\r
1200#define VF_NET_PAD_CONF1_GPIO_SUS2 0\r
1201#define VF_NET_PAD_CONF1_GPIO_SUS3 0\r
1202#define VF_NET_PAD_CONF1_GPIO_SUS4 0\r
1203#define VF_NET_PAD_CONF1_GPIO_SUS5 0\r
1204#define VF_NET_PAD_CONF1_GPIO_SUS6 0\r
1205#define VF_NET_PAD_CONF1_GPIO_SUS7 0\r
1206#define VF_NET_PAD_CONF1_GPIO_SUS8 0\r
1207#define VF_NET_PAD_CONF1_GPIO_SUS9 0\r
1208#define VF_NET_PAD_CONF1_GPIO_SUS10 0\r
1209#define VF_NET_PAD_CONF1_GPIO_SUS11 0\r
1210#define VF_NET_PAD_CONF1_GPIO_SUS12 0\r
1211#define VF_NET_PAD_CONF1_GPIO_SUS13 0\r
1212#define VF_NET_PAD_CONF1_GPIO_SUS14 0\r
1213#define VF_NET_PAD_CONF1_GPIO_SUS15 0\r
1214#define VF_NET_PAD_CONF1_GPIO_SUS16 0\r
1215\r
1216\r
1217#define VF_NET_PAD_VAL_GPIO_SUS0 0\r
1218#define VF_NET_PAD_VAL_GPIO_SUS1 0\r
1219#define VF_NET_PAD_VAL_GPIO_SUS2 0\r
1220#define VF_NET_PAD_VAL_GPIO_SUS3 0\r
1221#define VF_NET_PAD_VAL_GPIO_SUS4 0\r
1222#define VF_NET_PAD_VAL_GPIO_SUS5 0\r
1223#define VF_NET_PAD_VAL_GPIO_SUS6 0\r
1224#define VF_NET_PAD_VAL_GPIO_SUS7 0\r
1225#define VF_NET_PAD_VAL_GPIO_SUS8 0\r
1226#define VF_NET_PAD_VAL_GPIO_SUS9 0\r
1227#define VF_NET_PAD_VAL_GPIO_SUS10 0\r
1228#define VF_NET_PAD_VAL_GPIO_SUS11 0\r
1229#define VF_NET_PAD_VAL_GPIO_SUS12 0\r
1230#define VF_NET_PAD_VAL_GPIO_SUS13 0\r
1231#define VF_NET_PAD_VAL_GPIO_SUS14 0\r
1232#define VF_NET_PAD_VAL_GPIO_SUS15 0\r
1233#define VF_NET_PAD_VAL_GPIO_SUS16 0\r
1234\r
1235\r
1236#define VF_NET_PAD_DFT_GPIO_SUS0 0\r
1237#define VF_NET_PAD_DFT_GPIO_SUS1 0\r
1238#define VF_NET_PAD_DFT_GPIO_SUS2 0\r
1239#define VF_NET_PAD_DFT_GPIO_SUS3 0\r
1240#define VF_NET_PAD_DFT_GPIO_SUS4 0\r
1241#define VF_NET_PAD_DFT_GPIO_SUS5 0\r
1242#define VF_NET_PAD_DFT_GPIO_SUS6 0\r
1243#define VF_NET_PAD_DFT_GPIO_SUS7 0\r
1244#define VF_NET_PAD_DFT_GPIO_SUS8 0\r
1245#define VF_NET_PAD_DFT_GPIO_SUS9 0\r
1246#define VF_NET_PAD_DFT_GPIO_SUS10 0\r
1247#define VF_NET_PAD_DFT_GPIO_SUS11 0\r
1248#define VF_NET_PAD_DFT_GPIO_SUS12 0\r
1249#define VF_NET_PAD_DFT_GPIO_SUS13 0\r
1250#define VF_NET_PAD_DFT_GPIO_SUS14 0\r
1251#define VF_NET_PAD_DFT_GPIO_SUS15 0\r
1252#define VF_NET_PAD_DFT_GPIO_SUS16 0\r
1253\r
1254\r
1255//\r
1256// Function Prototypes\r
1257//\r
1258EFI_STATUS\r
1259PlatformPchInit (\r
1260 IN SYSTEM_CONFIGURATION *SystemConfiguration,\r
1261 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1262 IN UINT16 PlatformType\r
1263 );\r
1264\r
1265EFI_STATUS\r
1266PlatformCpuInit (\r
1267 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1268 IN SYSTEM_CONFIGURATION *SystemConfiguration,\r
1269 IN EFI_PLATFORM_CPU_INFO *PlatformCpuInfo\r
1270 );\r
1271\r
1272EFI_STATUS\r
1273PeimInitializeFlashMap (\r
1274 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
1275 IN CONST EFI_PEI_SERVICES **PeiServices\r
1276 );\r
1277\r
1278EFI_STATUS\r
1279PeimInstallFlashMapPpi (\r
1280 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
1281 IN CONST EFI_PEI_SERVICES **PeiServices\r
1282 );\r
1283\r
1284EFI_STATUS\r
1285EFIAPI\r
1286IchReset (\r
1287 IN CONST EFI_PEI_SERVICES **PeiServices\r
1288 )\r
1289;\r
1290\r
1291BOOLEAN\r
1292GetSleepTypeAfterWakeup (\r
1293 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1294 OUT UINT16 *SleepType\r
1295 );\r
1296\r
1297EFI_STATUS\r
1298EFIAPI\r
1299GetWakeupEventAndSaveToHob (\r
1300 IN CONST EFI_PEI_SERVICES **PeiServices\r
1301 )\r
1302;\r
1303\r
1304EFI_STATUS\r
1305EFIAPI\r
1306MemoryDiscoveredPpiNotifyCallback (\r
1307 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1308 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r
1309 IN VOID *Ppi\r
1310 )\r
1311;\r
1312\r
1313EFI_STATUS\r
1314EFIAPI\r
1315PeiGetVariable (\r
1316 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1317 IN CHAR16 *VariableName,\r
1318 IN EFI_GUID * VendorGuid,\r
1319 OUT UINT32 *Attributes OPTIONAL,\r
1320 IN OUT UINTN *DataSize,\r
1321 OUT VOID *Data\r
1322 )\r
1323;\r
1324\r
1325EFI_STATUS\r
1326EFIAPI\r
1327PeiGetNextVariableName (\r
1328 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1329 IN OUT UINTN *VariableNameSize,\r
1330 IN OUT CHAR16 *VariableName,\r
1331 IN OUT EFI_GUID *VendorGuid\r
1332 )\r
1333;\r
1334\r
1335EFI_STATUS\r
1336UpdateBootMode (\r
1337 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1338 IN OUT EFI_PLATFORM_INFO_HOB *PlatformInfoHob\r
1339 );\r
1340\r
1341EFI_STATUS\r
1342EFIAPI\r
1343EndOfPeiPpiNotifyCallback (\r
1344 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1345 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r
1346 IN VOID *Ppi\r
1347 );\r
1348\r
1349EFI_STATUS\r
1350EFIAPI\r
1351PeimInitializeRecovery (\r
1352 IN CONST EFI_PEI_SERVICES **PeiServices\r
1353 )\r
1354;\r
1355\r
1356VOID\r
1357CheckPowerOffNow (\r
1358 VOID\r
1359 );\r
1360\r
1361VOID\r
1362IchGpioInit (\r
1363 IN UINT16 PlatformType,\r
1364 IN SYSTEM_CONFIGURATION *SystemConfiguration\r
1365 );\r
1366\r
1367EFI_STATUS\r
1368PcieSecondaryBusReset (\r
1369 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1370 IN UINT8 Bus,\r
1371 IN UINT8 Dev,\r
1372 IN UINT8 Fun\r
1373 );\r
1374\r
1375VOID\r
1376SetPlatformBootMode (\r
1377 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1378 IN OUT EFI_PLATFORM_INFO_HOB *PlatformInfoHob\r
1379 );\r
1380\r
1381BOOLEAN\r
1382CheckIfJumperSetForRecovery(\r
1383 VOID\r
1384 );\r
1385\r
1386EFI_STATUS\r
1387EFIAPI \r
1388FindFv (\r
1389 IN EFI_PEI_FIND_FV_PPI *This,\r
1390 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1391 IN OUT UINT8 *FvNumber,\r
1392 OUT EFI_FIRMWARE_VOLUME_HEADER **FVAddress\r
1393 );\r
1394\r
1395BOOLEAN\r
1396IsA16Inverted (\r
1397 );\r
1398\r
1399EFI_STATUS\r
1400EFIAPI\r
1401CpuOnlyReset (\r
1402 IN CONST EFI_PEI_SERVICES **PeiServices\r
1403 );\r
1404\r
1405EFI_STATUS\r
1406EFIAPI\r
1407InitLan (\r
1408 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1409 IN SYSTEM_CONFIGURATION *Buffer\r
1410 );\r
1411\r
1412EFI_STATUS\r
1413EFIAPI\r
1414Stall (\r
1415 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1416 IN CONST EFI_PEI_STALL_PPI *This,\r
1417 IN UINTN Microseconds\r
1418 );\r
1419\r
1420EFI_STATUS\r
1421MultiPlatformInfoInit (\r
1422 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1423 IN OUT EFI_PLATFORM_INFO_HOB *PlatformInfoHob\r
1424 );\r
1425\r
1426BOOLEAN\r
1427IsRecoveryJumper (\r
1428 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1429 IN OUT EFI_PLATFORM_INFO_HOB *PlatformInfoHob\r
1430);\r
1431\r
1432EFI_STATUS\r
1433CheckOsSelection (\r
1434 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1435 IN SYSTEM_CONFIGURATION *SystemConfiguration\r
1436 );\r
1437\r
1438EFI_STATUS\r
1439PlatformInfoUpdate (\r
1440 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1441 IN OUT EFI_PLATFORM_INFO_HOB *PlatformInfoHob,\r
1442 IN SYSTEM_CONFIGURATION *SystemConfiguration\r
1443 );\r
1444\r
1445VOID\r
1446PlatformSsaInit (\r
1447IN SYSTEM_CONFIGURATION *SystemConfiguration,\r
1448IN CONST EFI_PEI_SERVICES **PeiServices\r
1449 );\r
1450\r
1451EFI_STATUS\r
1452InitializePlatform (\r
1453 IN CONST EFI_PEI_SERVICES **PeiServices,\r
1454 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob,\r
1455 IN SYSTEM_CONFIGURATION *SystemConfiguration\r
1456);\r
1457\r
1458VOID\r
1459MchInit (\r
1460IN CONST EFI_PEI_SERVICES **PeiServices\r
1461 );\r
1462\r
1463\r
1464EFI_STATUS\r
1465EFIAPI\r
1466SetPeiCacheMode (\r
1467 IN CONST EFI_PEI_SERVICES **PeiServices\r
1468 );\r
1469\r
1470EFI_STATUS\r
1471EFIAPI\r
1472SetDxeCacheMode (\r
1473 IN CONST EFI_PEI_SERVICES **PeiServices\r
1474 );\r
1475\r
1476EFI_STATUS\r
1477GPIO_initialization (\r
1478 IN EFI_PEI_SERVICES **PeiServices,\r
1479 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r
1480 IN VOID *SmbusPpi\r
1481 );\r
1482\r
1483\r
1484BOOLEAN\r
1485IsRtcUipAlwaysSet (\r
1486 IN CONST EFI_PEI_SERVICES **PeiServices\r
1487 );\r
1488\r
1489\r
1490\r
1491EFI_STATUS\r
1492InitPchUsb (\r
1493 IN CONST EFI_PEI_SERVICES **PeiServices\r
1494 );\r
1495\r
1496EFI_STATUS\r
1497EFIAPI\r
1498PublishMemoryTypeInfo (\r
1499 void\r
1500 );\r
1501\r
1502\r
1503#endif\r