mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
dart: Support locking dart-t8110
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
ba1dfab4d2
commit
a954eb47f9
1 changed files with 5 additions and 1 deletions
|
@ -78,6 +78,9 @@
|
|||
#define DART_T8110_TLB_CMD_OP_FLUSH_SID 1
|
||||
#define DART_T8110_TLB_CMD_STREAM GENMASK(7, 0)
|
||||
|
||||
#define DART_T8110_PROTECT 0x200
|
||||
#define DART_T8110_PROTECT_TTBR_TCR BIT(0)
|
||||
|
||||
#define DART_T8110_ENABLE_STREAMS 0xc00
|
||||
#define DART_T8110_DISABLE_STREAMS 0xc20
|
||||
|
||||
|
@ -340,7 +343,8 @@ void dart_lock_adt(const char *path, int instance)
|
|||
if (!(read32(base + DART_T8020_CONFIG) & DART_T8020_CONFIG_LOCK))
|
||||
set32(base + DART_T8020_CONFIG, DART_T8020_CONFIG_LOCK);
|
||||
} else if (adt_is_compatible(adt, node, "dart,t8110")) {
|
||||
printf("dart: dart %s, locking ignored for t8110\n", path);
|
||||
if (!(read32(base + DART_T8110_PROTECT) & DART_T8110_PROTECT_TTBR_TCR))
|
||||
set32(base + DART_T8110_PROTECT, DART_T8110_PROTECT_TTBR_TCR);
|
||||
} else {
|
||||
printf("dart: dart %s at 0x%lx is of an unknown type\n", path, base);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue