Skip to content
Snippets Groups Projects
Commit e1f7d22b authored by Ed Swarthout's avatar Ed Swarthout Committed by Wolfgang Denk
Browse files

fsl_law clear enable before changing.


Debug sessions may have left enabled laws.
Changing lawbar with an unkown enabled tgtid could cause problems.

Signed-off-by: default avatarEd Swarthout <Ed.Swarthout@freescale.com>
parent 86be510f
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
gd->used_laws |= (1 << idx);
out_be32(lawar, 0);
out_be32(lawbar, addr >> 12);
out_be32(lawar, LAWAR_EN | ((u32)id << 20) | (u32)sz);
......
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