blob: 909cde013c95aaacccf8e64c68e773c03a4519d3 [file] [log] [blame]
Xo Wang92739402016-12-12 16:56:53 -08001#!/bin/sh -e
2# Starts POWER9 IPL (boot)
Sergey Solomin0d6405c2016-11-03 15:01:08 -05003
Xo Wang92739402016-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{
10 $PDBG -b fsi $DEVICE_OPT putcfam $1 $2 $3
11}
12
13putcfam 0x283f 0x20000000 # Write scratch register 8
14putcfam 0x2801 0x80000000 0x80000000 # Set SBE start bit to start IPL