mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-20 18:53:08 +00:00
dart: Detect locked t8110 DARTs
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
7715b04217
commit
2ff412930e
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ dart_dev_t *dart_init(uintptr_t base, u8 device, bool keep_pts, enum dart_type_t
|
||||||
set32(dart->regs + DART_T8020_ENABLED_STREAMS, BIT(device & 0x1f));
|
set32(dart->regs + DART_T8020_ENABLED_STREAMS, BIT(device & 0x1f));
|
||||||
break;
|
break;
|
||||||
case DART_T8110:
|
case DART_T8110:
|
||||||
// TODO locked dart
|
if (read32(dart->regs + DART_T8110_PROTECT) & DART_T8110_PROTECT_TTBR_TCR)
|
||||||
|
dart->locked = true;
|
||||||
write32(dart->regs + DART_T8110_ENABLE_STREAMS + 4 * (device >> 5), BIT(device & 0x1f));
|
write32(dart->regs + DART_T8110_ENABLE_STREAMS + 4 * (device >> 5), BIT(device & 0x1f));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue