staging/vc04_services: Derive g_cache_line_size
authorPhil Elwell <phil@raspberrypi.org>
Tue, 28 Aug 2018 09:40:40 +0000 (10:40 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:02 +0000 (00:08 +0100)
commita1fa3652526a74f8b8a63461a55adcdc9ac8e88a
tree4df39c2298ba98b7d3dc41f00de3b0cfd3f8d525
parent7860eda37b44e298269ca60e32143fae2811ab17
staging/vc04_services: Derive g_cache_line_size

The ARM coprocessor registers include dcache line size, but there is no
function to expose this value. Rather than create a new one, use the
read_cpuid_id function to derive the correct value, which is 32 for
BCM2835 and 64 for BCM2836/7.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c