Skip to content
Snippets Groups Projects
Commit bed1624d authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set


If SG_MEMCONF_CH2_DISABLE bit is set, the DRAM channel 2 is unused.
The register settings for the ch2 should be ignored.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 14bb7a4e
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ static int uniphier_memconf_decode(struct uniphier_dram_ch *dram_ch) ...@@ -159,7 +159,7 @@ static int uniphier_memconf_decode(struct uniphier_dram_ch *dram_ch)
dram_ch[1].size = size; dram_ch[1].size = size;
if (!data->have_ch2) if (!data->have_ch2 || val & SG_MEMCONF_CH2_DISABLE)
return 0; return 0;
/* set up ch2 */ /* set up ch2 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment