summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/common/include/p9_perv_scom_addresses_fixes.H
blob: 4e7af7a1403adf35870fdec65d981a632100ee89 (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
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/import/chips/p9/common/include/p9_perv_scom_addresses_fixes.H $ */
/*                                                                        */
/* OpenPOWER sbe Project                                                  */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2015,2016                        */
/* [+] International Business Machines Corp.                              */
/*                                                                        */
/*                                                                        */
/* Licensed under the Apache License, Version 2.0 (the "License");        */
/* you may not use this file except in compliance with the License.       */
/* You may obtain a copy of the License at                                */
/*                                                                        */
/*     http://www.apache.org/licenses/LICENSE-2.0                         */
/*                                                                        */
/* Unless required by applicable law or agreed to in writing, software    */
/* distributed under the License is distributed on an "AS IS" BASIS,      */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or        */
/* implied. See the License for the specific language governing           */
/* permissions and limitations under the License.                         */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
///
/// @file perv_scom_addresses_fixes.H
/// @brief The *scom_addresses.H files are  generated form figtree, but
///        the figree can be wrong.  This file is included at the end
///        of scom_addresses.H and allows incorrect constants to be
///        fixed manually.
///
// *HWP HWP Owner: Ben Gass <bgass@us.ibm.com>
// *HWP FW Owner: ? <?>
// *HWP Team: SAO
// *HWP Level: 1
// *HWP Consumed by: FSP:HB:HS:OCC:SBE:CME:SGPE:PGPE:FPPE:IPPE


#ifndef __P9_PERV_SCOM_ADDRESSES_FIXES_H
#define __P9_PERV_SCOM_ADDRESSES_FIXES_H



//Example,
//Copy the whole line from the *scom_addresses.H file.  Then add
//FIX in front of REG, and add another paramter that is the new
//corrected value.
//FIXREG64( PU_ALTD_ADDR_REG,
//          RULL(0x05022800), SH_UNT, SH_ACS_SCOM,
//          RULL(0x00090000)
//        );

static const uint64_t SH_UNT_PERV_10 = 512;
static const uint64_t SH_UNT_PERV_11 = 513;
static const uint64_t SH_UNT_PERV_CBS_ENVSTAT = 514;

REG64( PERV_OB1_CPLT_CONF1,
       RULL(0x0A000009), SH_UNT_PERV_10, SH_ACS_SCOM_RW);
REG64( PERV_OB1_CPLT_CONF1_OR,
       RULL(0x0A000019), SH_UNT_PERV_10, SH_ACS_SCOM1_OR);
REG64( PERV_OB1_CPLT_CONF1_CLEAR,
       RULL(0x0A000029), SH_UNT_PERV_10, SH_ACS_SCOM2_CLEAR);

REG64( PERV_OB2_CPLT_CONF1,
       RULL(0x0B000009), SH_UNT_PERV_11, SH_ACS_SCOM_RW);
REG64( PERV_OB2_CPLT_CONF1_OR,
       RULL(0x0B000019), SH_UNT_PERV_11, SH_ACS_SCOM1_OR);
REG64( PERV_OB2_CPLT_CONF1_CLEAR,
       RULL(0x0B000029), SH_UNT_PERV_11, SH_ACS_SCOM2_CLEAR);

REG32( PERV_CBS_ENVSTAT_FSI, RULL(0x00002804), SH_UNT_PERV_CBS_ENVSTAT, SH_ACS_FSI);
REG64( PERV_CBS_ENVSTAT_FSI_BYTE, RULL(0x00002810), SH_UNT_PERV_CBS_ENVSTAT, SH_ACS_FSI_BYTE);
REG64( PERV_CBS_ENVSTAT_SCOM, RULL(0x00050004), SH_UNT_PERV_CBS_ENVSTAT, SH_ACS_SCOM);

#endif
OpenPOWER on IntegriCloud