mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-11 02:04:11 +00:00
m1n1.gpiola: Add load_regmap()
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
1ecf7de936
commit
df481228b7
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@ class GPIOLogicAnalyzer(Reloadable):
|
|||
self.p.mmu_init_secondary(cpu)
|
||||
self.tfreq = u.mrs(CNTFRQ_EL0)
|
||||
|
||||
def load_regmap(self, regmap, skip=set(), regs=set()):
|
||||
base = regmap._base
|
||||
for name, (addr, rcls) in regmap._namemap.items():
|
||||
if name not in skip and (not regs or name in regs):
|
||||
self.regs[name] = base + addr, rcls
|
||||
|
||||
def start(self, ticks, bufsize=0x10000):
|
||||
self.bufsize = bufsize
|
||||
if self.dbuf:
|
||||
|
|
Loading…
Reference in a new issue