summaryrefslogtreecommitdiff
path: root/tools/proxyclient/experiments/pcie_enable_devices.py
diff options
context:
space:
mode:
authormagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
committermagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
commite80d9d8871b325a04b18f90a9ea4bb7fd148fb25 (patch)
tree79dbdb8506b7ff1e92549188d1b94cfc0b3503ae /tools/proxyclient/experiments/pcie_enable_devices.py
add m1n1HEADmaster
Diffstat (limited to 'tools/proxyclient/experiments/pcie_enable_devices.py')
-rwxr-xr-xtools/proxyclient/experiments/pcie_enable_devices.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/proxyclient/experiments/pcie_enable_devices.py b/tools/proxyclient/experiments/pcie_enable_devices.py
new file mode 100755
index 0000000..6c1efcb
--- /dev/null
+++ b/tools/proxyclient/experiments/pcie_enable_devices.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: MIT
+import sys, pathlib
+sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
+
+from m1n1.setup import *
+from m1n1.fw.smc import SMCClient
+
+smc_addr = u.adt["arm-io/smc"].get_reg(0)[0]
+smc = SMCClient(u, smc_addr, None)
+
+smc.start()
+smc.start_ep(0x20)
+
+smc.smcep.write32("gP0d", 0x800001)
+smc.smcep.write32("gP1a", 1)
+
+smc.stop()