blob: 7a013aa7e2b23c44b045cb47b5973320ff21dce0 [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 Spinler19b0fde2017-01-19 15:26:12 -060010 $PDBG $1 -b fsi $DEVICE_OPT putcfam $2 $3 $4
Xo Wang81a45872016-12-12 16:56:53 -080011}
12
Matt Spinler19b0fde2017-01-19 15:26:12 -060013#Clock mux select override
14#Can maybe be removed in DD2
15putcfam -a 0x2918 0x0000000C 0x0000000C
16
17putcfam -p0 0x283f 0x20000000 # Write scratch register 8
18putcfam -p0 0x2801 0x80000000 0x80000000 # Set SBE start bit to start IPL