blob: 22766d81fe2d349e5fdb48cf9968cbae00de48a9 [file] [log] [blame]
Xo Wang81a45872016-12-12 16:56:53 -08001#!/bin/sh -e
2# Starts POWER9 IPL (boot)
Sergey Solomin10c6e322016-11-03 15:01:08 -05003
Xo Wang81a45872016-12-12 16:56:53 -08004PDBG=${PDBG:-pdbg}
5# Argument [device]: if provided, pass to pdbg as "-d [device]"
6DEVICE_OPT=${1:+-d $1}
7
8putcfam()
9{
Matt Spinlerfaed66c2017-01-09 09:28:50 -060010 $PDBG -p0 -b fsi $DEVICE_OPT putcfam $1 $2 $3
Xo Wang81a45872016-12-12 16:56:53 -080011}
12
13putcfam 0x283f 0x20000000 # Write scratch register 8
14putcfam 0x2801 0x80000000 0x80000000 # Set SBE start bit to start IPL