All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set
@ 2017-02-20  3:10 Masahiro Yamada
  2017-02-22 23:34 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2017-02-20  3:10 UTC (permalink / raw)
  To: u-boot

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: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/mach-uniphier/dram_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c
index 1cd354e..d98187d 100644
--- a/arch/arm/mach-uniphier/dram_init.c
+++ b/arch/arm/mach-uniphier/dram_init.c
@@ -166,7 +166,7 @@ static int uniphier_memconf_decode(struct uniphier_dram_map *dram_map)
 
 	dram_map[1].size = size;
 
-	if (!data->have_ch2)
+	if (!data->have_ch2 || val & SG_MEMCONF_CH2_DISABLE)
 		return 0;
 
 	/* set up ch2 */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set
  2017-02-20  3:10 [U-Boot] [PATCH] ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set Masahiro Yamada
@ 2017-02-22 23:34 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2017-02-22 23:34 UTC (permalink / raw)
  To: u-boot

2017-02-20 12:10 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> 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: Masahiro Yamada <yamada.masahiro@socionext.com>


Applied to u-boot-uniphier.


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-22 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20  3:10 [U-Boot] [PATCH] ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set Masahiro Yamada
2017-02-22 23:34 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.