[linux-yocto] [PATCH 066/161] arm/mach-axxia: Add dummy versions of	the mdio access functions
    Cristian Bercaru 
    cristian.bercaru at windriver.com
       
    Thu May 21 12:20:48 PDT 2015
    
    
  
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.7.9.5
    
    
More information about the linux-yocto
mailing list