Skip to content
Snippets Groups Projects
Commit 11a3de46 authored by Becky Bruce's avatar Becky Bruce Committed by Kumar Gala
Browse files

fsl_law.c: Add print_laws() for FSL_CORENET platforms.


Add printing of LAWBARH/LAWBARL for FSL_CORENET platforms.

Signed-off-by: default avatarBecky Bruce <Beckyb@kernel.crashing.org>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent e71755f8
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,13 @@ void print_laws(void)
printf("\nLocal Access Window Configuration\n");
for (i = 0; i < FSL_HW_NUM_LAWS; i++) {
lawar = in_be32(LAWAR_ADDR(i));
#ifdef CONFIG_FSL_CORENET
printf("LAWBARH%02d: 0x%08x LAWBARL%02d: 0x%08x",
i, in_be32(LAWBARH_ADDR(i)),
i, in_be32(LAWBARL_ADDR(i)));
#else
printf("LAWBAR%02d: 0x%08x", i, in_be32(LAWBAR_ADDR(i)));
#endif
printf(" LAWAR0x%02d: 0x%08x\n", i, lawar);
printf("\t(EN: %d TGT: 0x%02x SIZE: ",
(lawar & LAW_EN) ? 1 : 0, (lawar >> 20) & 0xff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment