ARM: tegra: power: Correct EMC_ADR_CFG mask
Daniel Solomon [Mon, 21 Nov 2011 22:12:38 +0000 (14:12 -0800)]
The mask used to check bit EMEM_NUMDEV in register EMC_ADR_CFG is
wrong for T30. Correct it.

Change-Id: I3deb1229cb27081049de1a4f2fd69e21507fa853
Reviewed-on: http://git-master/r/65927
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R328e76d0f107d1b2fe1f27a81c1fab82dc4808d6

arch/arm/mach-tegra/sleep-t30.S

index a30dabf..9fbcc4a 100644 (file)
@@ -96,7 +96,7 @@
 
 .macro emc_device_mask, rd, base
        ldr     \rd, [\base, #EMC_ADR_CFG]
-       tst     \rd, #(0x3<<24)
+       tst     \rd, #0x1
        moveq   \rd, #(0x1<<8)          @ just 1 device
        movne   \rd, #(0x3<<8)          @ 2 devices
 .endm