[linux-yocto] [PATCH 72/78] arm/mach-axxia: Add dummy versions of the mdio access functions

Paul Butler butler.paul at gmail.com
Tue Nov 19 20:23:48 PST 2013


From: John Jacques <john.jacques at lsi.com>

required by the RTE in simulation.

Signed-off-by: John Jacques <john.jacques at lsi.com>
---
 arch/arm/mach-axxia/wrappers.c | 44 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm/mach-axxia/wrappers.c b/arch/arm/mach-axxia/wrappers.c
index fe384aa..be5c4b0 100644
--- a/arch/arm/mach-axxia/wrappers.c
+++ b/arch/arm/mach-axxia/wrappers.c
@@ -28,6 +28,50 @@
 /*
   ==============================================================================
   ==============================================================================
+  MDIO
+  ==============================================================================
+  ==============================================================================
+*/
+
+/*
+  These are not wrappers, but are required when loading the RTE in simulation.
+*/
+
+#ifdef CONFIG_ARCH_AXXIA_SIM
+
+/*
+  ------------------------------------------------------------------------------
+  acp_mdio_read
+*/
+
+int
+acp_mdio_read(unsigned long address, unsigned long offset,
+	      unsigned short *value, int clause45)
+{
+	return 0;
+}
+
+EXPORT_SYMBOL(acp_mdio_read);
+
+/*
+  ------------------------------------------------------------------------------
+  acp_mdio_write
+*/
+
+int
+acp_mdio_write(unsigned long address, unsigned long offset,
+	       unsigned short value, int clause45)
+{
+	return 0;
+}
+
+EXPORT_SYMBOL(acp_mdio_write);
+
+#endif	/* CONFIG_ARCH_AXXIA_SIM */
+
+/*
+  ==============================================================================
+  ==============================================================================
   Platform Device Registration
   ==============================================================================
   ==============================================================================
-- 
1.8.4.3



More information about the linux-yocto mailing list