]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv7: ls102xa: Correct endianness of SCFG_SPARECR8 read
authorBiwen Li <biwen.li@nxp.com>
Wed, 25 Sep 2019 09:48:11 +0000 (17:48 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 21 Oct 2019 10:04:17 +0000 (15:34 +0530)
The patch corrects endianness of register SCFG_SPARECR8 read
in_le32 -> in_be32

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c

index bb169aaaf4b0b2c1bdf2a5a85a0761073345db67..00b6ad48ceb2b402dbcc29bfa4ef95480c97e5f9 100644 (file)
@@ -72,7 +72,7 @@ static void __secure ls1_deepsleep_irq_cfg(void)
         * returns zero, so its value is saved to a scrachpad register to be
         * read, that is why we don't read it from register ippdexpcr1 itself.
         */
-       ippdexpcr1 = in_le32(&scfg->sparecr[7]);
+       ippdexpcr1 = in_be32(&scfg->sparecr[7]);
        out_be32(&rcpm->ippdexpcr1, ippdexpcr1);
 
        if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)