2
0
Fork 0
mirror of https://github.com/AsahiLinux/m1n1 synced 2024-12-20 10:43:08 +00:00
m1n1/proxyclient/experiments/pcie_enable_devices.py
Davide Cavalca eeebd9dad3 Make scripts executable
Signed-off-by: Davide Cavalca <davide@cavalca.name>
2022-04-16 19:17:33 +09:00

18 lines
391 B
Python
Executable file

#!/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()