summaryrefslogtreecommitdiffstats
path: root/src/boot
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2017-02-02 03:49:24 -0600
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2017-04-18 06:44:43 -0400
commit4e7978eee9de35307273457a1e01336a9fb82558 (patch)
tree446208c2ec77ac8de0ec7498eb5621284f056e34 /src/boot
parent862c9bec1784f0c6529d2dda92d7ebb8b102aef1 (diff)
downloadtalos-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/boot')
-rw-r--r--src/boot/otprom_init.S31
1 files changed, 28 insertions, 3 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:
OpenPOWER on IntegriCloud