diff options
author | Lukasz Wiecaszek <lukasz.wiecaszek@googlemail.com> | 2024-03-10 11:29:58 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-19 18:40:47 -0400 |
commit | 95167db37c4b669ae47be885cd1cc1832e754fff (patch) | |
tree | 9d16b0c873e0f1a91d62fff18f5efb60c19fd0d5 /drivers/ddr/marvell/axp/ddr3_dqs.c | |
parent | c6a13f3d6f074a20680765309280994288c89ad1 (diff) |
arm: Check FEAT_CCIDX when parsing ccsidr_el1 register
Current Cache Size ID Register (ccsidr_el1) has two "flavors"
depending on whether FEAT_CCIDX is implemented or not.
When FEAT_CCIDX is implemented Associativity parameter
is coded on bits [23:3] and NumSets parameter on bits [55:32].
When FEAT_CCIDX is not implemented then Associativity parameter
is coded on bits [12:3] and NumSets parameter on bits [27:13].
Current U-Boot code does not check whether FEAT_CCIDX is implemented
and always parses ccsidr_el1 as if FEAT_CCIDX was not implemented.
This is of course wrong on systems where FEAT_CCIDX is implemented.
This patch fixes that problems and tests whether FEAT_CCIDX
is implemented or not and accordingly parses the ccsidr_el1 register.
Signed-off-by: Lukasz Wiecaszek <lukasz.wiecaszek@gmail.com>
Diffstat (limited to 'drivers/ddr/marvell/axp/ddr3_dqs.c')
0 files changed, 0 insertions, 0 deletions