projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0334fb2
)
For AR933x always return 16-bit DDR width
author
Piotr Dymacz
<pepe2k@gmail.com>
Thu, 17 Mar 2016 20:51:18 +0000
(21:51 +0100)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Thu, 17 Mar 2016 20:51:18 +0000
(21:51 +0100)
u-boot/cpu/mips/ar7240/qca_dram.c
patch
|
blob
|
history
diff --git
a/u-boot/cpu/mips/ar7240/qca_dram.c
b/u-boot/cpu/mips/ar7240/qca_dram.c
index 4723ce3847324870562dc1fd339901af5c6ef7ed..c7ee83d806779ebae31e88f16c4eddcdfbf09eef 100644
(file)
--- 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