ARM: picoxcell: remove dependency on mach/* headers
authorRob Herring <rob.herring@calxeda.com>
Mon, 27 Aug 2012 05:38:35 +0000 (00:38 -0500)
committerRob Herring <rob.herring@calxeda.com>
Fri, 14 Sep 2012 14:22:05 +0000 (09:22 -0500)
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
[Jamie Iles: rework to fold picoxcell_soc.h in common.c]
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
arch/arm/mach-picoxcell/common.c
arch/arm/mach-picoxcell/include/mach/map.h [deleted file]
arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h [deleted file]

index 8f9a0b47a7fa8293860036c09516854109a310f1..f6c0849af5e9e374cd1639e3da0fcec952756391 100644 (file)
 #include <asm/hardware/vic.h>
 #include <asm/mach/map.h>
 
-#include <mach/map.h>
-#include <mach/picoxcell_soc.h>
-
 #include "common.h"
 
-#define WDT_CTRL_REG_EN_MASK   (1 << 0)
-#define WDT_CTRL_REG_OFFS      (0x00)
-#define WDT_TIMEOUT_REG_OFFS   (0x04)
+#define PHYS_TO_IO(x)                  (((x) & 0x00ffffff) | 0xfe000000)
+#define PICOXCELL_PERIPH_BASE          0x80000000
+#define PICOXCELL_PERIPH_LENGTH                SZ_4M
+
+#define WDT_CTRL_REG_EN_MASK           (1 << 0)
+#define WDT_CTRL_REG_OFFS              (0x00)
+#define WDT_TIMEOUT_REG_OFFS           (0x04)
 static void __iomem *wdt_regs;
 
 /*
diff --git a/arch/arm/mach-picoxcell/include/mach/map.h b/arch/arm/mach-picoxcell/include/mach/map.h
deleted file mode 100644 (file)
index c06afad..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2011 Picochip Ltd., Jamie Iles
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- */
-#ifndef __PICOXCELL_MAP_H__
-#define __PICOXCELL_MAP_H__
-
-#define PHYS_TO_IO(x)          (((x) & 0x00ffffff) | 0xfe000000)
-
-#ifdef __ASSEMBLY__
-#define IO_ADDRESS(x)          PHYS_TO_IO((x))
-#else
-#define IO_ADDRESS(x)          (void __iomem __force *)(PHYS_TO_IO((x)))
-#endif
-
-#endif /* __PICOXCELL_MAP_H__ */
diff --git a/arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h b/arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h
deleted file mode 100644 (file)
index 5566fc8..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2011 Picochip Ltd., Jamie Iles
- *
- * This file contains the hardware definitions of the picoXcell SoC devices.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- */
-#ifndef __PICOXCELL_SOC_H__
-#define __PICOXCELL_SOC_H__
-
-#define PICOXCELL_UART1_BASE           0x80230000
-#define PICOXCELL_PERIPH_BASE          0x80000000
-#define PICOXCELL_PERIPH_LENGTH                SZ_4M
-#define PICOXCELL_VIC0_BASE            0x80060000
-#define PICOXCELL_VIC1_BASE            0x80064000
-
-#endif /* __PICOXCELL_SOC_H__ */