blob: a34c03b8c2a33fc5c529459c438d1358f753ab75 [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
Matt Spinler079dede2017-02-06 10:45:38 -060017#Allow xstop/ATTN to flow to BMC
18putcfam -p0 0x081C 0x20000000 # Setup FSI2PIB to report
19putcfam -p0 0x100D 0x60000000 # Enable Xstop/ATTN interrupt
20putcfam -p0 0x100B 0xFFFFFFFF # Arm mechanism
21
Matt Spinler19b0fde2017-01-19 15:26:12 -060022putcfam -p0 0x283f 0x20000000 # Write scratch register 8
23putcfam -p0 0x2801 0x80000000 0x80000000 # Set SBE start bit to start IPL