]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Add a dummy dcache_status() function
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Tue, 30 May 2023 13:33:26 +0000 (15:33 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 21 Jun 2023 20:54:25 +0000 (16:54 -0400)
This adds dcache_status() so that code using it can build
without error on sandbox. This is required in preparation
of adding cache handling into get_ram_size function.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c

index 51496338ad6093f9b144163f00b0303c39ccacc7..a1c5c7c4311a0640d2845d1aa0303d0014d9b99b 100644 (file)
@@ -286,6 +286,11 @@ void sandbox_set_enable_pci_map(int enable)
        enable_pci_map = enable;
 }
 
+int dcache_status(void)
+{
+       return 1;
+}
+
 void flush_dcache_range(unsigned long start, unsigned long stop)
 {
 }