arm-trusted-firmware/plat/allwinner
Andre Przywara ee5b26fd00 feat(allwinner): adjust H616 L2 cache size in DTB
The Allwinner H616 and its siblings come in different die revisions,
some have 256 KB of L2 cache, some have 1 MB. This prevents a single
static cache description in the devicetree.

Use the cache size ID register (CCSIDR_EL1) to query the topology of the
L2 cache, and adjust the cache-sets and cache-size properties in the L2
cache DT node accordingly.

The ARM ARM does not promise (anymore) that the cache size can be derived
*architecturally* from this register, but the reading is definitely
correct for the Arm Cortex-A53 core used.

Change-Id: Id7dc324d783b8319fe5df6164be2f941d4cac82d
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2024-07-09 15:55:23 +02:00
..
common feat(allwinner): adjust H616 L2 cache size in DTB 2024-07-09 15:55:23 +02:00
sun50i_a64 feat(allwinner): add function to detect H616 die variant 2023-04-26 17:45:29 +01:00
sun50i_h6 feat(allwinner): add function to detect H616 die variant 2023-04-26 17:45:29 +01:00
sun50i_h616 feat(allwinner): adjust H616 L2 cache size in DTB 2024-07-09 15:55:23 +02:00
sun50i_r329 refactor(allwinner): consolidate sunxi_cfg.h files 2023-04-26 17:45:29 +01:00