]> git.baikalelectronics.ru Git - uboot.git/commit
ddr: marvell: a38x: enum mv_ddr_twin_die: change order
authorheaterC <airyguy@gmx.de>
Fri, 19 Feb 2021 16:11:24 +0000 (17:11 +0100)
committerStefan Roese <sr@denx.de>
Fri, 26 Feb 2021 09:22:29 +0000 (10:22 +0100)
commited2538c7eba3ecad92bcbc7d5da2bf46d600c3f9
tree4592b3ce922a7cdd4917a8f59f338bb77e7d82c0
parent0041d4db8e90d1ade99ff9578f7e61d3f0943749
ddr: marvell: a38x: enum mv_ddr_twin_die: change order

commit 56db5d1464b44df10a02b99e615ebd6f6a35c428 upstream.

@pali suggested this change
In commit 6285efb ("mv_ddr: add support for twin-die combined memory
device") was added support for twin-die combined memory device and
default value for explicitly uninitialized structure members is zero, s
also twin_die_combined is initialized to zero. Which means COMBINED
value.
As prior this commit there was no support for twin-die combined memory
device, default value for twin_die_combined should be NOT_COMBINED. This
change change order of enum mv_ddr_twin_die to ensure that NOT_COMBINED
has value zero.

Signed-off-by: heaterC <airyguy@gmx.de>
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
drivers/ddr/marvell/a38x/ddr_topology_def.h