]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Remove PLATFORM_CPPFLAGS
authorMichal Simek <monstr@monstr.eu>
Mon, 24 Sep 2012 14:39:54 +0000 (16:39 +0200)
committerMichal Simek <monstr@monstr.eu>
Tue, 25 Sep 2012 09:02:39 +0000 (11:02 +0200)
We don't need it.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/arm/cpu/armv7/zynq/config.mk
drivers/mtd/nand/zynq_nand.c
drivers/spi/zynq_qspi.c

index dd6179cf4dae0bb652aff1ccb17c183879e6b02c..85996f3255fe0755b452b12500f97a718df475f8 100644 (file)
 # 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)
-
index f06a817b22594051f2973b627711d5e1be745f05..4f2c9443d1b17992687a789b3e995f32a87ce1a8 100644 (file)
@@ -16,7 +16,7 @@
 /*
  * 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
index e9ff45b41b720a16ea25db73f8c46a9beab1de2d..642241d0fc25d04c06ecbeb5d01ba06108307c62 100755 (executable)
@@ -27,7 +27,7 @@
 #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) \