Commit 57adbf37 authored by Alex Leibovich's avatar Alex Leibovich Committed by Marcin Wojtas
Browse files

ddr: a80x0: add DDR 32-bit mode support



This commit introduces 32-bit DDR topology map initialization.
For that purpose a new DDR32 build flag is added, with
according documentation update.

Change-Id: I169ff358c2923afd984e27bc126dc551dcaefc01
Signed-off-by: default avatarAlex Leibovich <alexl@marvell.com>
parent 56ad8612
...@@ -194,6 +194,10 @@ Special Build Flags ...@@ -194,6 +194,10 @@ Special Build Flags
can interrupt UART recovery process). This MACRO definition is set in can interrupt UART recovery process). This MACRO definition is set in
``plat/marvell/armada/a8k/common/include/platform_def.h`` file. ``plat/marvell/armada/a8k/common/include/platform_def.h`` file.
- DDR32
In order to work in 32bit DDR, instead of the default 64bit ECC DDR,
this flag should be set to 1.
For more information about build options, please refer to the For more information about build options, please refer to the
:ref:`Build Options` document. :ref:`Build Options` document.
......
...@@ -52,8 +52,13 @@ static struct mv_ddr_topology_map board_topology_map = { ...@@ -52,8 +52,13 @@ static struct mv_ddr_topology_map board_topology_map = {
MV_DDR_FREQ_SAR, /* frequency */ MV_DDR_FREQ_SAR, /* frequency */
0, 0, /* cas_l, cas_wl */ 0, 0, /* cas_l, cas_wl */
MV_DDR_TEMP_LOW} }, /* temperature */ MV_DDR_TEMP_LOW} }, /* temperature */
#if DDR32
MV_DDR_32BIT_ECC_PUP8_BUS_MASK, /* subphys mask */
MV_DDR_CFG_DEFAULT, /* ddr configuration data source */
#else
MV_DDR_64BIT_ECC_PUP8_BUS_MASK, /* subphys mask */ MV_DDR_64BIT_ECC_PUP8_BUS_MASK, /* subphys mask */
MV_DDR_CFG_SPD, /* ddr configuration data source */ MV_DDR_CFG_SPD, /* ddr configuration data source */
#endif
{ {0} }, /* raw spd data */ { {0} }, /* raw spd data */
{0}, /* timing parameters */ {0}, /* timing parameters */
{ /* electrical configuration */ { /* electrical configuration */
......
...@@ -16,6 +16,10 @@ $(eval $(call add_define,MARVELL_SECURE_BOOT)) ...@@ -16,6 +16,10 @@ $(eval $(call add_define,MARVELL_SECURE_BOOT))
PALLADIUM := 0 PALLADIUM := 0
$(eval $(call add_define,PALLADIUM)) $(eval $(call add_define,PALLADIUM))
# Set board to work with DDR 32bit
DDR32 := 0
$(eval $(call add_define,DDR32))
ifeq (${MARVELL_SECURE_BOOT},1) ifeq (${MARVELL_SECURE_BOOT},1)
DOIMAGE_SEC_FLAGS := -c $(DOIMAGE_SEC) DOIMAGE_SEC_FLAGS := -c $(DOIMAGE_SEC)
DOIMAGE_LIBS_CHECK = \ DOIMAGE_LIBS_CHECK = \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment