sandbox: test: Add a prototype for sandbox_set_enable_memio()
authorSimon Glass <sjg@chromium.org>
Fri, 11 Oct 2019 22:16:48 +0000 (16:16 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 16:56:41 +0000 (10:56 -0600)
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>
arch/sandbox/include/asm/test.h

index cd2b9e3155d73adb1a38c3191cb00477f22c2f7c..b885e1a14f19f803e18b6344a025d25d0609001f 100644 (file)
@@ -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