summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-pdbg-host-control/start_host.sh
blob: 22766d81fe2d349e5fdb48cf9968cbae00de48a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
# Starts POWER9 IPL (boot)

PDBG=${PDBG:-pdbg}
# Argument [device]: if provided, pass to pdbg as "-d [device]"
DEVICE_OPT=${1:+-d $1}

putcfam()
{
    $PDBG -p0 -b fsi $DEVICE_OPT putcfam $1 $2 $3
}

putcfam 0x283f 0x20000000             # Write scratch register 8
putcfam 0x2801 0x80000000 0x80000000  # Set SBE start bit to start IPL
OpenPOWER on IntegriCloud