From a623ffedbfb4ebc9257d358ead0fb8453f8ad7e8 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 17 Mar 2016 21:51:18 +0100 Subject: [PATCH] For AR933x always return 16-bit DDR width --- u-boot/cpu/mips/ar7240/qca_dram.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.25.1