For AR933x always return 16-bit DDR width
authorPiotr Dymacz <pepe2k@gmail.com>
Thu, 17 Mar 2016 20:51:18 +0000 (21:51 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Thu, 17 Mar 2016 20:51:18 +0000 (21:51 +0100)
u-boot/cpu/mips/ar7240/qca_dram.c

index 4723ce3847324870562dc1fd339901af5c6ef7ed..c7ee83d806779ebae31e88f16c4eddcdfbf09eef 100644 (file)
@@ -98,11 +98,15 @@ u32 qca_dram_type(void)
 u32 qca_dram_ddr_width(void)
 {
 #ifndef CONFIG_BOARD_DRAM_DDR_WIDTH
+       #if (SOC_TYPE & QCA_AR933X_SOC)
+       return 16;
+       #else
        if (qca_soc_reg_read(QCA_RST_BOOTSTRAP_REG)
                & QCA_RST_BOOTSTRAP_DDR_WIDTH_32_MASK)
                return 32;
 
        return 16;
+       #endif
 #else
        return CONFIG_BOARD_DRAM_DDR_WIDTH;
 #endif