summaryrefslogtreecommitdiff
path: root/ReferenceCode/Chipset/SystemAgent/MemoryInit/Pei/Source/Include/MrcRegisters/McScramble.h
blob: a38761080fddc3ac1b60d116b28d844000c70f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/** @file
  This file was automatically generated. Modify at your own risk.

@copyright
  Copyright (c) 2010 - 2012 Intel Corporation. All rights reserved
  This software and associated documentation (if any) is furnished
  under a license and may only be used or copied in accordance
  with the terms of the license. Except as permitted by such
  license, no part of this software or documentation may be
  reproduced, stored in a retrieval system, or transmitted in any
  form or by any means without the express written consent of
  Intel Corporation.

  This file contains an 'Intel Peripheral Driver' and uniquely
  identified as "Intel Reference Module" and is
  licensed for Intel CPUs and chipsets under the terms of your
  license agreement with Intel or your vendor.  This file may
  be modified by the user, subject to additional terms of the
  license agreement
**/
#ifndef __McScramble_h__
#define __McScramble_h__

#pragma pack(push, 1)
#include "MrcTypes.h"

typedef union {
  struct {
    U32 ScramEn                                 :  1;  // Bits 0:0
    U32 ScramKey                                :  16;  // Bits 16:1
    U32 Spare                                   :  15;  // Bits 31:17
  } Bits;
  U32 Data;
  U16 Data16[2];
  U8  Data8[4];
} DDRSCRAM_CR_DDRSCRAMBLECH0_STRUCT;

typedef union {
  struct {
    U32 ScramEn                                 :  1;  // Bits 0:0
    U32 ScramKey                                :  16;  // Bits 16:1
    U32 Spare                                   :  15;  // Bits 31:17
  } Bits;
  U32 Data;
  U16 Data16[2];
  U8  Data8[4];
} DDRSCRAM_CR_DDRSCRAMBLECH1_STRUCT;

typedef union {
  struct {
    U32 WL_WakeCycles                           :  2;  // Bits 1:0
    U32 WL_SleepCycles                          :  3;  // Bits 4:2
    U32 ForceCompUpdate                         :  1;  // Bits 5:5
    U32 WeakLock_Latency                        :  4;  // Bits 9:6
    U32 DdrNoChInterleave                       :  1;  // Bits 10:10
    U32 LPDDR_Mode                              :  1;  // Bits 11:11
    U32 CKEMappingCh0                           :  4;  // Bits 15:12
    U32 CKEMappingCh1                           :  4;  // Bits 19:16
    U32 Spare                                   :  12;  // Bits 31:20
  } Bits;
  U32 Data;
  U16 Data16[2];
  U8  Data8[4];
} DDRSCRAM_CR_DDRMISCCONTROL0_STRUCT;

#define DDRSCRAM_CR_DDRSCRAMBLECH0_REG                               (0x00002000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramEn_OFF                       ( 0)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramEn_WID                       ( 1)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramEn_MSK                       (0x00000001)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramEn_MAX                       (0x00000001)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramEn_DEF                       (0x00000000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramKey_OFF                      ( 1)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramKey_WID                      (16)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramKey_MSK                      (0x0001FFFE)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramKey_MAX                      (0x0000FFFF)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_ScramKey_DEF                      (0x00000000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_Spare_OFF                         (17)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_Spare_WID                         (15)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_Spare_MSK                         (0xFFFE0000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_Spare_MAX                         (0x00007FFF)
  #define DDRSCRAM_CR_DDRSCRAMBLECH0_Spare_DEF                         (0x00000000)

#define DDRSCRAM_CR_DDRSCRAMBLECH1_REG                               (0x00002004)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramEn_OFF                       ( 0)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramEn_WID                       ( 1)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramEn_MSK                       (0x00000001)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramEn_MAX                       (0x00000001)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramEn_DEF                       (0x00000000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramKey_OFF                      ( 1)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramKey_WID                      (16)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramKey_MSK                      (0x0001FFFE)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramKey_MAX                      (0x0000FFFF)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_ScramKey_DEF                      (0x00000000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_Spare_OFF                         (17)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_Spare_WID                         (15)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_Spare_MSK                         (0xFFFE0000)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_Spare_MAX                         (0x00007FFF)
  #define DDRSCRAM_CR_DDRSCRAMBLECH1_Spare_DEF                         (0x00000000)

#define DDRSCRAM_CR_DDRMISCCONTROL0_REG                              (0x00002008)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_WakeCycles_OFF                ( 0)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_WakeCycles_WID                ( 2)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_WakeCycles_MSK                (0x00000003)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_WakeCycles_MAX                (0x00000003)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_WakeCycles_DEF                (0x00000000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_SleepCycles_OFF               ( 2)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_SleepCycles_WID               ( 3)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_SleepCycles_MSK               (0x0000001C)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_SleepCycles_MAX               (0x00000007)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WL_SleepCycles_DEF               (0x00000000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_ForceCompUpdate_OFF              ( 5)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_ForceCompUpdate_WID              ( 1)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_ForceCompUpdate_MSK              (0x00000020)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_ForceCompUpdate_MAX              (0x00000001)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_ForceCompUpdate_DEF              (0x00000000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WeakLock_Latency_OFF             ( 6)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WeakLock_Latency_WID             ( 4)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WeakLock_Latency_MSK             (0x000003C0)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WeakLock_Latency_MAX             (0x0000000F)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_WeakLock_Latency_DEF             (0x0000000C)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_DdrNoChInterleave_OFF            (10)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_DdrNoChInterleave_WID            ( 1)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_DdrNoChInterleave_MSK            (0x00000400)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_DdrNoChInterleave_MAX            (0x00000001)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_DdrNoChInterleave_DEF            (0x00000000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_LPDDR_Mode_OFF                   (11)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_LPDDR_Mode_WID                   ( 1)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_LPDDR_Mode_MSK                   (0x00000800)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_LPDDR_Mode_MAX                   (0x00000001)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_LPDDR_Mode_DEF                   (0x00000000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh0_OFF                (12)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh0_WID                ( 4)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh0_MSK                (0x0000F000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh0_MAX                (0x0000000F)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh0_DEF                (0x0000000A)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh1_OFF                (16)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh1_WID                ( 4)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh1_MSK                (0x000F0000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh1_MAX                (0x0000000F)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_CKEMappingCh1_DEF                (0x0000000A)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_Spare_OFF                        (20)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_Spare_WID                        (12)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_Spare_MSK                        (0xFFF00000)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_Spare_MAX                        (0x00000FFF)
  #define DDRSCRAM_CR_DDRMISCCONTROL0_Spare_DEF                        (0x00000000)

#pragma pack(pop)
#endif  // __McScramble_h__