We don't need it.
Signed-off-by: Michal Simek <monstr@monstr.eu>
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
-PLATFORM_RELFLAGS += -fno-strict-aliasing
+PLATFORM_RELFLAGS += -fno-strict-aliasing
# Xilinx, added to prevent unaligned accesses which started happening # with GCC 4.5.2 tools
PLATFORM_RELFLAGS += -mno-unaligned-access
-
-PLATFORM_CPPFLAGS += -I$(TOPDIR)/board/xilinx/common
-PLATFORM_CPPFLAGS += -I$(TOPDIR)/board/$(BOARDDIR)
-
/*
* This driver is based on plat_nand.c and mxc_nand.c drivers
*/
-#include "xbasic_types.h"
+//#include "xbasic_types.h"
#include <common.h>
#include <malloc.h>
#include <linux/mtd/nand_ecc.h>
#include "zynq_nand.h"
+#define dmbp() __asm__ __volatile__ ("dmb" : : : "memory")
+
+static void XIo_Out32(u32 OutAddress, u32 Value)
+{
+ *(volatile u32 *) OutAddress = Value;
+ dmbp();
+}
+
+static u32 XIo_In32(u32 InAddress)
+{
+ volatile u32 temp = *(volatile u32 *)InAddress;
+ dmbp();
+ return temp;
+}
+
+
/********** stubs - Make Linux code compile in this environment **************/
#define EIO 5
#define ENXIO 6
#include <linux/xilinx_devices.h>
#else
-#include "xbasic_types.h"
+//#include "xbasic_types.h"
#include <common.h>
#include <malloc.h>
#endif
+#define dmbp() __asm__ __volatile__ ("dmb" : : : "memory")
+
+static void XIo_Out32(u32 OutAddress, u32 Value)
+{
+ *(volatile u32 *) OutAddress = Value;
+ dmbp();
+}
+
+static u32 XIo_In32(u32 InAddress)
+{
+ volatile u32 temp = *(volatile u32 *)InAddress;
+ dmbp();
+ return temp;
+}
+
/****** stubs to make this Linux driver build in this environment **/
#define spin_lock_irqsave(__X__, flags) \