[linux-yocto] [PATCH 80/89] arm/mach-axxia: Add dummy versions of the mdio access functions
Paul Butler
butler.paul at gmail.com
Sun Oct 27 12:33:45 PDT 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.3.4
More information about the linux-yocto
mailing list