]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ddr: marvell: a38x: fix 32bit
authorMoti Buskila <motib@marvell.com>
Fri, 19 Feb 2021 16:11:14 +0000 (17:11 +0100)
committerStefan Roese <sr@denx.de>
Fri, 26 Feb 2021 09:22:29 +0000 (10:22 +0100)
commit 0b5adedd4ced9b8f528faad1957d4d69e95759ef upstream.

Signed-off-by: Moti Buskila <motib@marvell.com>
Reviewed-by: Alex Leibovich <alexl@marvell.com>
Reviewed-by: Kostya Porotchkin <Kostya.Porotchkin@cavium.com>
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
drivers/ddr/marvell/a38x/mv_ddr_topology.c

index 0cbe8d3d1ea9f870166d33ad9a66396403549a9d..3feb65ea469d7c7782eb67d8841902729bf5aece 100644 (file)
@@ -149,7 +149,7 @@ unsigned short mv_ddr_bus_bit_mask_get(void)
 
        if (tm->cfg_src == MV_DDR_CFG_SPD) {
                if (tm->bus_act_mask == MV_DDR_32BIT_ECC_PUP8_BUS_MASK)
-                       tm->spd_data.byte_fields.byte_13.all_bits = MV_DDR_PRI_BUS_WIDTH_32;
+                       tm->spd_data.byte_fields.byte_13.bit_fields.primary_bus_width = MV_DDR_PRI_BUS_WIDTH_32;
 
                enum mv_ddr_pri_bus_width pri_bus_width = mv_ddr_spd_pri_bus_width_get(&tm->spd_data);
                enum mv_ddr_bus_width_ext bus_width_ext = mv_ddr_spd_bus_width_ext_get(&tm->spd_data);