[PATCH v2 1/2] sandbox: Add a dummy dcache_status() function
Francesco Dolcini
francesco at dolcini.it
Tue May 30 15:33:26 CEST 2023
From: Emanuele Ghidoli <emanuele.ghidoli at toradex.com>
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 at toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
---
arch/sandbox/cpu/cpu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index 51496338ad60..a1c5c7c4311a 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -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)
{
}
--
2.25.1
More information about the U-Boot
mailing list