Xo Wang | 9273940 | 2016-12-12 16:56:53 -0800 | [diff] [blame] | 1 | #!/bin/sh -e |
2 | # Starts POWER9 IPL (boot) | ||||
Sergey Solomin | 0d6405c | 2016-11-03 15:01:08 -0500 | [diff] [blame] | 3 | |
Xo Wang | 9273940 | 2016-12-12 16:56:53 -0800 | [diff] [blame] | 4 | PDBG=${PDBG:-pdbg} |
5 | # Argument [device]: if provided, pass to pdbg as "-d [device]" | ||||
6 | DEVICE_OPT=${1:+-d $1} | ||||
7 | |||||
8 | putcfam() | ||||
9 | { | ||||
10 | $PDBG -b fsi $DEVICE_OPT putcfam $1 $2 $3 | ||||
11 | } | ||||
12 | |||||
13 | putcfam 0x283f 0x20000000 # Write scratch register 8 | ||||
14 | putcfam 0x2801 0x80000000 0x80000000 # Set SBE start bit to start IPL |