1 /*++
2 
3   Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>
4 
5 
6   This program and the accompanying materials are licensed and made available under
7 
8   the terms and conditions of the BSD License that accompanies this distribution.
9 
10   The full text of the license may be found at
11 
12   http://opensource.org/licenses/bsd-license.php.
13 
14 
15 
16   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 
18   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 
20 
21 
22 
23 
24 Module Name:
25 
26   OsSelection.h
27 
28 Abstract:
29 
30   GUID used for LPSS, SCC and LPE configuration data entries in the HOB list.
31 
32 --*/
33 
34 #ifndef _OS_SELECTION_GUID_H_
35 #define _OS_SELECTION_GUID_H_
36 
37 #ifndef ECP_FLAG
38 #include <PiPei.h>
39 
40 #include <Library/HobLib.h>
41 #include <Library/IoLib.h>
42 #include <Library/DebugLib.h>
43 #endif
44 
45 #define ANDROID 1
46 
47 #define EFI_OS_SELECTION_VARIABLE_GUID \
48   { \
49     0x86843f56, 0x675d, 0x40a5, 0x95, 0x30, 0xbc, 0x85, 0x83, 0x72, 0xf1, 0x03 \
50   }
51 
52 extern EFI_GUID gOsSelectionVariableGuid;
53 
54 #pragma pack(1)
55 
56 typedef struct {
57   UINT8           LpssPciModeEnabled;
58   //SCC
59   UINT8           LpsseMMCEnabled;
60   UINT8           LpssSdioEnabled;
61   UINT8           LpssSdcardEnabled;
62   UINT8           LpssSdCardSDR25Enabled;
63   UINT8           LpssSdCardDDR50Enabled;
64   UINT8           LpssMipiHsi;
65   UINT8           LpsseMMC45Enabled;
66   UINT8           LpsseMMC45DDR50Enabled;
67   UINT8           LpsseMMC45HS200Enabled;
68   UINT8           LpsseMMC45RetuneTimerValue;
69   UINT8           eMMCBootMode;
70   //LPSS2
71   UINT8           LpssDma1Enabled;
72   UINT8           LpssI2C0Enabled;
73   UINT8           LpssI2C1Enabled;
74   UINT8           LpssI2C2Enabled;
75   UINT8           LpssI2C3Enabled;
76   UINT8           LpssI2C4Enabled;
77   UINT8           LpssI2C5Enabled;
78   UINT8           LpssI2C6Enabled;
79   //LPSS1
80   UINT8           LpssDma0Enabled;
81   UINT8           LpssPwm0Enabled;
82   UINT8           LpssPwm1Enabled;
83   UINT8           LpssHsuart0Enabled;
84   UINT8           LpssHsuart1Enabled;
85   UINT8           LpssSpiEnabled;
86   UINT8           I2CTouchAd;
87 } EFI_PLATFORM_LPSS_DATA;
88 
89 typedef struct _EFI_OS_SELECTION_HOB {
90   UINT8                       OsSelection;
91   UINT8                       OsSelectionChanged;
92   UINT8                       Lpe;
93   UINT8                       PchAzalia;
94   EFI_PLATFORM_LPSS_DATA      LpssData;
95 } EFI_OS_SELECTION_HOB;
96 
97 #pragma pack()
98 
99 #endif
100