diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-02-20 12:10:05 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-02-23 08:37:56 +0900 |
commit | bed1624d0df66c50e74a68cbdbcb8d3ed7f8411b (patch) | |
tree | 2ecca93ea40e1e35a11993d8ff38e64a5df63022 /arch/arm/mach-uniphier | |
parent | 14bb7a4e3707a382efc96052e9c8f6995f6ea2b3 (diff) | |
download | u-boot-imx-bed1624d0df66c50e74a68cbdbcb8d3ed7f8411b.zip u-boot-imx-bed1624d0df66c50e74a68cbdbcb8d3ed7f8411b.tar.gz u-boot-imx-bed1624d0df66c50e74a68cbdbcb8d3ed7f8411b.tar.bz2 |
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: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier')
-rw-r--r-- | arch/arm/mach-uniphier/dram_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c index 881062d..e7afa71 100644 --- a/arch/arm/mach-uniphier/dram_init.c +++ b/arch/arm/mach-uniphier/dram_init.c @@ -159,7 +159,7 @@ static int uniphier_memconf_decode(struct uniphier_dram_ch *dram_ch) dram_ch[1].size = size; - if (!data->have_ch2) + if (!data->have_ch2 || val & SG_MEMCONF_CH2_DISABLE) return 0; /* set up ch2 */ |