powerpc/85xx: Remove unnecessary polling loop from DDR init
authorYork Sun <yorksun@freescale.com>
Wed, 26 Jan 2011 05:51:26 +0000 (21:51 -0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 3 Feb 2011 08:46:12 +0000 (02:46 -0600)
This polling loop is not required normally, unless specifically stated in
workaround.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/ddr-gen3.c

index fa7e09f3933959dfd401b3122277365a419005b0..b9502f7fed1bbc87e3ca18d5c1bda24b4168c3fa 100644 (file)
@@ -199,8 +199,6 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        temp_sdram_cfg = in_be32(&ddr->sdram_cfg) & ~SDRAM_CFG_BI;
        out_be32(&ddr->sdram_cfg, temp_sdram_cfg | SDRAM_CFG_MEM_EN);
        asm volatile("sync;isync");
-       while (!(in_be32(&ddr->debug[1]) & 0x2))
-               ;
 
        /* Poll DDR_SDRAM_CFG_2[D_INIT] bit until auto-data init is done.  */
        while (in_be32(&ddr->sdram_cfg_2) & 0x10) {