summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-10-11 16:16:48 -0600
committerSimon Glass <sjg@chromium.org>2019-10-27 10:56:41 -0600
commit619025b8d68b346442430b8a412852b63960bedb (patch)
tree55867eced7b01d54034a23bad3748ae185b8f893 /arch/sandbox/include
parent8417385dc911f9ad049ae610b4e23557e890b353 (diff)
downloadu-boot-619025b8d68b346442430b8a412852b63960bedb.tar.gz
u-boot-619025b8d68b346442430b8a412852b63960bedb.tar.xz
u-boot-619025b8d68b346442430b8a412852b63960bedb.zip
sandbox: test: Add a prototype for sandbox_set_enable_memio()
This function needs a prototype so that tests can use it. Add one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r--arch/sandbox/include/asm/test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index cd2b9e3155..b885e1a14f 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -213,4 +213,15 @@ int sandbox_get_pci_ep_irq_count(struct udevice *dev);
*/
uint sandbox_pci_read_bar(u32 barval, int type, uint size);
+/**
+ * sandbox_set_enable_memio() - Enable readl/writel() for sandbox
+ *
+ * Normally these I/O functions do nothing with sandbox. Certain tests need them
+ * to work as for other architectures, so this function can be used to enable
+ * them.
+ *
+ * @enable: true to enable, false to disable
+ */
+void sandbox_set_enable_memio(bool enable);
+
#endif