]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/include/asm/global_data.h
mtd: nand: omap: remove redundant platform specific header: arch-xx/omap_gpmc.h
[karo-tx-uboot.git] / arch / arm / include / asm / global_data.h
index 79a959741945968eca7a21018187b97eb65d70f3..63e4ad5a6744bd777b0d66ec390fca22c97e3fcf 100644 (file)
@@ -32,9 +32,6 @@ struct arch_global_data {
        unsigned long tbl;
        unsigned long lastinc;
        unsigned long long timer_reset_value;
-#ifdef CONFIG_IXP425
-       unsigned long timestamp;
-#endif
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
        unsigned long tlb_addr;
        unsigned long tlb_size;
@@ -47,6 +44,10 @@ struct arch_global_data {
 
 #include <asm-generic/global_data.h>
 
-#define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r8")
+#ifdef CONFIG_ARM64
+#define DECLARE_GLOBAL_DATA_PTR                register volatile gd_t *gd asm ("x18")
+#else
+#define DECLARE_GLOBAL_DATA_PTR                register volatile gd_t *gd asm ("r9")
+#endif
 
 #endif /* __ASM_GBL_DATA_H */