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

PDBG=${PDBG:-pdbg}

putcfam()
{
    $PDBG $1 putcfam $2 $3 $4
}

#Clock mux select override
#Can maybe be removed in DD2
putcfam -a 0x2918 0x0000000C 0x0000000C

#Allow xstop/ATTN to flow to BMC
putcfam -p0 0x081C 0x20000000             # Setup FSI2PIB to report
putcfam -p0 0x100D 0x60000000             # Enable Xstop/ATTN interrupt
putcfam -p0 0x100B 0xFFFFFFFF             # Arm mechanism

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