From: Piotr Dymacz Date: Thu, 17 Mar 2016 20:51:18 +0000 (+0100) Subject: For AR933x always return 16-bit DDR width X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a623ffedbfb4ebc9257d358ead0fb8453f8ad7e8;p=oweals%2Fu-boot_mod.git For AR933x always return 16-bit DDR width --- diff --git a/u-boot/cpu/mips/ar7240/qca_dram.c b/u-boot/cpu/mips/ar7240/qca_dram.c index 4723ce3..c7ee83d 100644 --- a/u-boot/cpu/mips/ar7240/qca_dram.c +++ b/u-boot/cpu/mips/ar7240/qca_dram.c @@ -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