diff options
| author | Naresh Kumar Ravulapalli <[email protected]> | 2026-02-09 10:07:09 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-14 11:06:46 -0600 |
| commit | cb23bbf4d7403dbfe1e4b4ef80bca6ae585a181e (patch) | |
| tree | f0157136fd8dbc63f041ee123d6d2c2bd89b1984 | |
| parent | 22aac1c5b466da72095ccf3464660eae47579e2e (diff) | |
drivers: ddr: altera: iossm_mailbox: widen MEM_TOTAL_CAPACITY mask
The previous mask for MEM_TOTAL_CAPACITY_INTF was limited to 8 bits,
which could truncate DDR size values on larger-memory systems.
Update INTF_CAPACITY_GBITS_MASK to 32 bits to correctly represent
the full capacity field according to the hardware specification.
Signed-off-by: Naresh Kumar Ravulapalli <[email protected]>
Signed-off-by: Chen Huei Lok <[email protected]>
Reviewed-by: Tien Fong Chee <[email protected]> Best regards,
| -rw-r--r-- | drivers/ddr/altera/iossm_mailbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ddr/altera/iossm_mailbox.c b/drivers/ddr/altera/iossm_mailbox.c index 2a2f86a650e..3156cb9d4b6 100644 --- a/drivers/ddr/altera/iossm_mailbox.c +++ b/drivers/ddr/altera/iossm_mailbox.c @@ -86,7 +86,7 @@ #define INTF_DDR_TYPE_MASK GENMASK(2, 0) /* offset info of MEM_TOTAL_CAPACITY_INTF */ -#define INTF_CAPACITY_GBITS_MASK GENMASK(7, 0) +#define INTF_CAPACITY_GBITS_MASK GENMASK(31, 0) /* offset info of ECC_ENABLE_INTF */ #define INTF_ECC_ENABLE_TYPE_MASK GENMASK(1, 0) |
