Charles Kearney | 92a3faa | 2023-05-30 14:24:18 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # A power up request has been made we must setup the system properly |
| 3 | # RL300 requires UEFI VAR ROM export through spi controller 1 |
| 4 | # the machine needs to get out of Hold too |
| 5 | |
| 6 | rmmod gxp_spifi_ctrl1 |
| 7 | # vejmarie was 58 |
| 8 | devmem 0xd1000119 32 0x5d |
| 9 | modprobe gxp_spifi_ctrl1 |
| 10 | |
| 11 | # clear previous reset reason |
| 12 | devmem 0x80000074 16 0x0 |
| 13 | # Release the Soc |
| 14 | currentVal=$(devmem 0xD100011A 8) |
| 15 | currentVal=$(( currentVal | 1 << 3 )) |
| 16 | devmem 0xD100011A 8 "0x""${currentVal}" |