From 6f2a30d391e285c87dc6f4fb41b1638d36889d80 Mon Sep 17 00:00:00 2001 From: Claus Michael Olsen Date: Sat, 23 Jul 2016 12:19:31 -0500 Subject: p9_xip_customize L1 checkin w/backwards support for Seeprom MB settings. Change-Id: I0a70ced101cf57bd469bd960ebeb15a75b2f939b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27406 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Daniel M. Crowell Reviewed-by: Prem Shanker Jha Reviewed-by: Martin Peschke Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30308 Reviewed-by: Sachin Gupta --- .../p9/utils/imageProcs/p9_infrastruct_help.H | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H index 704dc9db..409bf8d3 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H +++ b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H @@ -34,13 +34,28 @@ // // Various image/ring buffer sizes. Must be used by all users (VBU, FSP, HB, HBI, Cronus) // -const uint32_t MAX_REF_IMAGE_SIZE = 1024 * - 1024; // Max reference image size. -const uint32_t FIXED_RING_BUF_SIZE = - 60000; // Fixed ring buf size for _fixed. +//@FIXME: CMO: get rid of FIXED_RING_BUF_SIZE when ring_apply no longer uses it. +const uint32_t FIXED_RING_BUF_SIZE = 60000; // Fixed ring buf size for _fixed. +const uint32_t MAX_SEEPROM_IMAGE_SIZE = 4 * 56 * 1024; // Max Seeprom size, excl ECC bits (4 banks). +const uint32_t MAX_RT_IMAGE_SIZE = 1024 * 1024; // Max Runtime size. +const uint32_t MAX_RING_BUF_SIZE = 60000; // Max ring buffer size. +const uint32_t MAX_OVERRIDES_SIZE = 2 * 1024; // Max overrides section size. +const uint32_t MAX_HBBL_SIZE = 20 * 1024; // Max hbbl section size. -#define CHIPLET_ID_MIN (uint8_t)0x00 -#define CHIPLET_ID_MAX (uint8_t)0x37 +enum SYSPHASE +{ + SYSPHASE_HB_SBE = 0, + SYSPHASE_RT_CME = 1, + SYSPHASE_RT_SGPE = 2, + NOOF_SYSPHASES = 3, +}; + +enum MODEBUILD +{ + MODEBUILD_IPL = 0, + MODEBUILD_REBUILD = 1, + NOOF_MODEBUILDS = 2, +}; #if defined(__FAPI) #include -- cgit v1.2.1