ddr: marvell: a38x: add 16Gbit memory devices support
authorMoti Buskila <motib@marvell.com>
Fri, 19 Feb 2021 16:11:18 +0000 (17:11 +0100)
committerStefan Roese <sr@denx.de>
Fri, 26 Feb 2021 09:22:29 +0000 (10:22 +0100)
commit 994509eb4fe6771d92cd06314c37895098ac48fa upstream.

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

index 2a68669f36c0d63c806d7c48a5aad906973c1966..8765df7cfbb4284c7418c6663a1241961ea3e0ff 100644 (file)
@@ -80,6 +80,8 @@
 #define ADDR_SIZE_2GB                  0x10000000
 #define ADDR_SIZE_4GB                  0x20000000
 #define ADDR_SIZE_8GB                  0x40000000
+#define ADDR_SIZE_16GB                 0x80000000
+
 
 enum hws_edge_compare {
        EDGE_PF,
index 31711fdd4981998cf1ba9b107a1365485d6c9cb6..c4c3ab72b2cd6c6a36a31d01b1558481d7ce72f4 100644 (file)
@@ -248,7 +248,8 @@ static unsigned int mem_size[] = {
        ADDR_SIZE_1GB,
        ADDR_SIZE_2GB,
        ADDR_SIZE_4GB,
-       ADDR_SIZE_8GB
+       ADDR_SIZE_8GB,
+       ADDR_SIZE_16GB
        /* TODO: add capacity up to 256GB */
 };