p4080: add readback to bootpage translation window
authorDave Liu <daveliu@freescale.com>
Wed, 18 Nov 2009 02:01:24 +0000 (20:01 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 5 Jan 2010 19:49:09 +0000 (13:49 -0600)
We need to add the readback to bootpage translation LAW
to make it effect.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/mp.c

index 7626eb8e728459d14a19f02415303455be08aa75..8568f5dbae0406f6d8d65837319f5959a4d2aba5 100644 (file)
@@ -165,6 +165,9 @@ static void plat_mp_up(unsigned long bootpg)
        e = find_law(bootpg);
        out_be32(&ccm->bstrar, LAW_EN | e.trgt_id << 20 | LAW_SIZE_4K);
 
+       /* readback to sync write */
+       in_be32(&ccm->bstrar);
+
        /* disable time base at the platform */
        out_be32(&rcpm->ctbenrl, cpu_up_mask);