meta-hpe: rl300-g11 add power sequencing files
Change-Id: Iabda97c9719dc5f285e5b97c5072f9061dd31d81
Signed-off-by: Charles Kearney <charles.kearney@hpe.com>
diff --git a/meta-hpe/meta-rl300-g11/recipes-hpe/power-sequencing/files/rl300Start.sh b/meta-hpe/meta-rl300-g11/recipes-hpe/power-sequencing/files/rl300Start.sh
new file mode 100644
index 0000000..b031ec9
--- /dev/null
+++ b/meta-hpe/meta-rl300-g11/recipes-hpe/power-sequencing/files/rl300Start.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# A power up request has been made we must setup the system properly
+# RL300 requires UEFI VAR ROM export through spi controller 1
+# the machine needs to get out of Hold too
+
+rmmod gxp_spifi_ctrl1
+# vejmarie was 58
+devmem 0xd1000119 32 0x5d
+modprobe gxp_spifi_ctrl1
+
+# clear previous reset reason
+devmem 0x80000074 16 0x0
+# Release the Soc
+currentVal=$(devmem 0xD100011A 8)
+currentVal=$(( currentVal | 1 << 3 ))
+devmem 0xD100011A 8 "0x""${currentVal}"