diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2017-02-02 03:49:24 -0600 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2017-04-18 06:44:43 -0400 |
commit | 4e7978eee9de35307273457a1e01336a9fb82558 (patch) | |
tree | 446208c2ec77ac8de0ec7498eb5621284f056e34 /src | |
parent | 862c9bec1784f0c6529d2dda92d7ebb8b102aef1 (diff) | |
download | talos-sbe-4e7978eee9de35307273457a1e01336a9fb82558.tar.gz talos-sbe-4e7978eee9de35307273457a1e01336a9fb82558.zip |
OTPROM image for DD2
Change-Id: Id51f7d43b766f326af2a25ddce178e9b899ac929
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35783
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/boot/otprom_init.S | 31 | ||||
-rw-r--r-- | src/build/img_defs.mk | 2 | ||||
-rw-r--r-- | src/build/utils/sbe_link.H | 3 |
3 files changed, 32 insertions, 4 deletions
diff --git a/src/boot/otprom_init.S b/src/boot/otprom_init.S index c2df21e3..61e82d34 100644 --- a/src/boot/otprom_init.S +++ b/src/boot/otprom_init.S @@ -1,4 +1,29 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/boot/otprom_init.S $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* [+] 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 */ # # include "pk.h" +#include "sbe_link.H" .set r0 , 0 .set r1 , 1 .set r2 , 2 @@ -159,7 +184,7 @@ oos_chk_port_num: oos_sel_prim_sprm: #Read from 0th location of SEEPROM for magic number using FI2C - lis r4 , 0x8000 + lis r4 , OTPROM_SEEPROM_HIGHER_NIBBLE ori r4 , r4 , 0x0000 lvd d0 , 0(r4) @@ -175,11 +200,11 @@ oss_load_constant_magic_num: #Magic number of seeprom = 0x cmplwbc 0, 2, r1, r3, oos_cmp_magic_fail ##### Branch to SEEPROM ################### - lis r4 , 0x8000 #Go and fetch the branch address from 0x8000_0001 + lis r4 , OTPROM_SEEPROM_HIGHER_NIBBLE #Go and fetch the branch address from 0x8000_0001 ori r4 , r4 , 0x0008 lvd d0 , 0(r4) mtctr r1 - bctr #Branch to fetched address + bctr #Branch to fetched address ##### Branch to SEEPROM ################### oos_cmp_magic_fail: diff --git a/src/build/img_defs.mk b/src/build/img_defs.mk index 1c8f7fee..8419b9c5 100644 --- a/src/build/img_defs.mk +++ b/src/build/img_defs.mk @@ -60,7 +60,7 @@ endif IMAGE_SEEPROM_NAME := sbe_seeprom_$(IMAGE_SUFFIX) IMAGE_SBE_NAME := sbe_pibmem_$(IMAGE_SUFFIX) IMAGE_LOADER_NAME := sbe_loader -IMAGE_OTPROM_NAME := sbe_otprom +IMAGE_OTPROM_NAME := sbe_otprom_$(IMAGE_SUFFIX) IMAGE_BASE_PPE_HEADER := base_ppe_header SBE_SYMBOLS_NAME := sbe_$(IMAGE_SUFFIX).syms diff --git a/src/build/utils/sbe_link.H b/src/build/utils/sbe_link.H index d839d010..808e5207 100644 --- a/src/build/utils/sbe_link.H +++ b/src/build/utils/sbe_link.H @@ -65,9 +65,12 @@ /// The link address of the P9 SBE Base image #define SBE_SEEPROM_BASE_ORIGIN 0x80000000 +#define OTPROM_SEEPROM_HIGHER_NIBBLE 0x8000 #ifdef DD2 #undef SBE_SEEPROM_BASE_ORIGIN #define SBE_SEEPROM_BASE_ORIGIN 0xFF800000 +#undef OTPROM_SEEPROM_HIGHER_NIBBLE +#define OTPROM_SEEPROM_HIGHER_NIBBLE 0xFF80 #endif /// This Index depends upon XIP HEADER File |