summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-04-20 04:07:20 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-24 04:17:47 +0000
commit98b8f51a7527c8247bd0435a878585f19c5620bd (patch)
treea3da03b0b5016af2163b2e07ace45781a7cb68ae
parentb76f0a4d777bff3bb14c9d9112782a36988a41e0 (diff)
downloadblackbird-op-build-98b8f51a7527c8247bd0435a878585f19c5620bd.tar.gz
blackbird-op-build-98b8f51a7527c8247bd0435a878585f19c5620bd.zip
Migrate linux start signal to LPC port 81h/82h
-rwxr-xr-xopenpower/overlay/sbin/signal_linux_start_complete12
1 files changed, 9 insertions, 3 deletions
diff --git a/openpower/overlay/sbin/signal_linux_start_complete b/openpower/overlay/sbin/signal_linux_start_complete
index 3d9e57df..5461c540 100755
--- a/openpower/overlay/sbin/signal_linux_start_complete
+++ b/openpower/overlay/sbin/signal_linux_start_complete
@@ -1,12 +1,18 @@
#!/bin/sh
#
-# Copyright © 2018 Raptor Engineering, LLC
+# Copyright © 2019 Raptor Engineering, LLC
# Released under the GNU GPL v3
set +e
-# Set OEM3 bit
-/sbin/devmem-aspeed 0x1e789060 w $(printf '0x%X\n' "$((`/sbin/devmem-aspeed 0x1e789060` | 0x10))")
+# Make sure debugfs is mounted
+if [ ! -e /sys/kernel/debug/powerpc ]; then
+ mount -t debugfs none /sys/kernel/debug/
+fi
+
+# Send 0xfefe start code via port 81h/82h
+pnv-lpc io 0x81.b=254
+pnv-lpc io 0x82.b=254
# Always return success
exit 0
OpenPOWER on IntegriCloud