diff options
author | Ed Swarthout <Ed.Swarthout@freescale.com> | 2008-10-09 01:25:55 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:05 +0200 |
commit | e1f7d22b8b52fc08c4d17a6a7db1e664281aed63 (patch) | |
tree | 9c8b56bde4899cabe7bc87661f4a9de6b0b6911e /drivers/misc | |
parent | 86be510f7b5443e7e937f696bfbe037fdc740b15 (diff) | |
download | u-boot-imx-e1f7d22b8b52fc08c4d17a6a7db1e664281aed63.zip u-boot-imx-e1f7d22b8b52fc08c4d17a6a7db1e664281aed63.tar.gz u-boot-imx-e1f7d22b8b52fc08c4d17a6a7db1e664281aed63.tar.bz2 |
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: Ed Swarthout <Ed.Swarthout@freescale.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/fsl_law.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/fsl_law.c b/drivers/misc/fsl_law.c index 64df1c9..44c9e91 100644 --- a/drivers/misc/fsl_law.c +++ b/drivers/misc/fsl_law.c @@ -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); |