mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 16:30:17 +00:00
8a90ced4b4
- add SPDX-License-Identifier - make it executable - add python shebang - remove unused import Signed-off-by: Janne Grunau <j@jannau.net>
11 lines
296 B
Python
Executable file
11 lines
296 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.hw.spmi import SPMI
|
|
|
|
s = SPMI(u, "/arm-io/nub-spmi")
|
|
leg_scrpad = 0x9f00
|
|
s.write8(15, leg_scrpad + 2, 0) # error counts
|