diff options
author | Aneesh Bansal <aneesh.bansal@freescale.com> | 2015-10-12 22:05:50 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-10-30 09:19:47 -0700 |
commit | 6ec9aef2cef311c57652e8d17b09eceac2cebb06 (patch) | |
tree | a5d976e465a26c5a09c11b861db729cbb894e6fe /board/freescale | |
parent | e368c206079bf7835000634247f3a8bfbba599ba (diff) | |
download | u-boot-imx-6ec9aef2cef311c57652e8d17b09eceac2cebb06.zip u-boot-imx-6ec9aef2cef311c57652e8d17b09eceac2cebb06.tar.gz u-boot-imx-6ec9aef2cef311c57652e8d17b09eceac2cebb06.tar.bz2 |
SECURE_BOOT: Correct reading of ITS bit
The ITS bit was being read incorrectly beacause of operator
precedence. The same ahs been corrected.
Signed-off-by: Lawish Deshmukh <lawish.deshmukh@freescale.com>
Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/common/fsl_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c index 465676f..73b6718 100644 --- a/board/freescale/common/fsl_validate.c +++ b/board/freescale/common/fsl_validate.c @@ -246,7 +246,7 @@ static void fsl_secboot_image_verification_failure(void) struct ccsr_sfp_regs *sfp_regs = (void *)(CONFIG_SYS_SFP_ADDR); u32 sts = sec_mon_in32(&sec_mon_regs->hp_stat); - u32 its = sfp_in32(&sfp_regs->ospr) & ITS_MASK >> ITS_BIT; + u32 its = (sfp_in32(&sfp_regs->ospr) & ITS_MASK) >> ITS_BIT; /* * Read the SEC_MON status register |