linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files
@ 2011-07-06  3:29 Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 02/37] ARM: mach-dove: remove include/mach/memory.h Nicolas Pitre
                   ` (36 more replies)
  0 siblings, 37 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

When the CONFIG_NO_MACH_MEMORY_H symbol is selected by a particular
machine class, the machine specific memory.h include file is no longer
used and can be removed.  In that case the equivalent information can
be obtained dynamically at runtime by enabling CONFIG_ARM_PATCH_PHYS_VIRT
or by specifying the physical memory address at kernel configuration time.

If/when all instances of mach/memory.h are removed then this symbol could
be removed.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig              |   15 ++++++++++++++-
 arch/arm/include/asm/memory.h |    6 +++++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9adc278..9fc052c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -191,11 +191,17 @@ config VECTORS_BASE
 	help
 	  The base address of exception vectors.
 
+config NO_MACH_MEMORY_H
+	bool
+	help
+	  Select this when mach/memory.h is removed.
+
 config ARM_PATCH_PHYS_VIRT
 	bool "Patch physical to virtual translations at runtime (EXPERIMENTAL)"
-	depends on EXPERIMENTAL
+	depends on EXPERIMENTAL || NO_MACH_MEMORY_H
 	depends on !XIP_KERNEL && MMU
 	depends on !ARCH_REALVIEW || !SPARSEMEM
+	default y if NO_MACH_MEMORY_H
 	help
 	  Patch phys-to-virt and virt-to-phys translation functions at
 	  boot and module load time according to the position of the
@@ -213,6 +219,13 @@ config ARM_PATCH_PHYS_VIRT_16BIT
 	  to allow physical memory down to a theoretical minimum of 64K
 	  boundaries.
 
+config PHYS_OFFSET
+	hex "Physical address of main memory"
+	depends on !ARM_PATCH_PHYS_VIRT && NO_MACH_MEMORY_H
+	help
+	  Please provide the physical address corresponding to the
+	  location of main memory in your system.
+
 source "init/Kconfig"
 
 source "kernel/Kconfig.freezer"
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index deb2eaa..2d21414 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -16,7 +16,6 @@
 #include <linux/compiler.h>
 #include <linux/const.h>
 #include <linux/types.h>
-#include <mach/memory.h>
 #include <asm/sizes.h>
 
 /*
@@ -200,8 +199,13 @@ static inline unsigned long __phys_to_virt(unsigned long x)
 #endif
 
 #ifndef PHYS_OFFSET
+#ifdef CONFIG_NO_MACH_MEMORY_H
+#define PHYS_OFFSET	UL(CONFIG_PHYS_OFFSET)
+#else
+#include <mach/memory.h>
 #define PHYS_OFFSET	PLAT_PHYS_OFFSET
 #endif
+#endif
 
 /*
  * The DMA mask corresponding to the maximum bus address allocatable
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 02/37] ARM: mach-dove: remove include/mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 03/37] ARM: mach-kirkwood: remove mach/memory.h Nicolas Pitre
                   ` (35 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                         |    1 +
 arch/arm/mach-dove/include/mach/memory.h |   10 ----------
 2 files changed, 1 insertions(+), 10 deletions(-)
 delete mode 100644 arch/arm/mach-dove/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9fc052c..9d5ad30 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -489,6 +489,7 @@ config ARCH_DOVE
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_CLOCKEVENTS
 	select PLAT_ORION
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the Marvell Dove SoC 88AP510
 
diff --git a/arch/arm/mach-dove/include/mach/memory.h b/arch/arm/mach-dove/include/mach/memory.h
deleted file mode 100644
index bbc93fe..0000000
--- a/arch/arm/mach-dove/include/mach/memory.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * arch/arm/mach-dove/include/mach/memory.h
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 03/37] ARM: mach-kirkwood: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 02/37] ARM: mach-dove: remove include/mach/memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 04/37] ARM: mach-loki: " Nicolas Pitre
                   ` (34 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                             |    1 +
 arch/arm/mach-kirkwood/include/mach/memory.h |   10 ----------
 2 files changed, 1 insertions(+), 10 deletions(-)
 delete mode 100644 arch/arm/mach-kirkwood/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9d5ad30..3fc9d17 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -500,6 +500,7 @@ config ARCH_KIRKWOOD
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_CLOCKEVENTS
 	select PLAT_ORION
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the following Marvell Kirkwood series SoCs:
 	  88F6180, 88F6192 and 88F6281.
diff --git a/arch/arm/mach-kirkwood/include/mach/memory.h b/arch/arm/mach-kirkwood/include/mach/memory.h
deleted file mode 100644
index 4600b44..0000000
--- a/arch/arm/mach-kirkwood/include/mach/memory.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * arch/arm/mach-kirkwood/include/mach/memory.h
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 04/37] ARM: mach-loki: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 02/37] ARM: mach-dove: remove include/mach/memory.h Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 03/37] ARM: mach-kirkwood: remove mach/memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 05/37] ARM: mach-orion5x: " Nicolas Pitre
                   ` (33 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                         |    1 +
 arch/arm/mach-loki/include/mach/memory.h |   10 ----------
 2 files changed, 1 insertions(+), 10 deletions(-)
 delete mode 100644 arch/arm/mach-loki/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 3fc9d17..fd6d633 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -510,6 +510,7 @@ config ARCH_LOKI
 	select CPU_FEROCEON
 	select GENERIC_CLOCKEVENTS
 	select PLAT_ORION
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the Marvell Loki (88RC8480) SoC.
 
diff --git a/arch/arm/mach-loki/include/mach/memory.h b/arch/arm/mach-loki/include/mach/memory.h
deleted file mode 100644
index 6636665..0000000
--- a/arch/arm/mach-loki/include/mach/memory.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * arch/arm/mach-loki/include/mach/memory.h
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 05/37] ARM: mach-orion5x: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (2 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 04/37] ARM: mach-loki: " Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code Nicolas Pitre
                   ` (32 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-orion5x/include/mach/memory.h |   12 ------------
 2 files changed, 1 insertions(+), 12 deletions(-)
 delete mode 100644 arch/arm/mach-orion5x/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fd6d633..e8004b4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -547,6 +547,7 @@ config ARCH_ORION5X
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_CLOCKEVENTS
 	select PLAT_ORION
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the following Marvell Orion 5x series SoCs:
 	  Orion-1 (5181), Orion-VoIP (5181L), Orion-NAS (5182),
diff --git a/arch/arm/mach-orion5x/include/mach/memory.h b/arch/arm/mach-orion5x/include/mach/memory.h
deleted file mode 100644
index 6769917..0000000
--- a/arch/arm/mach-orion5x/include/mach/memory.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * arch/arm/mach-orion5x/include/mach/memory.h
- *
- * Marvell Orion memory definitions
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (3 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 05/37] ARM: mach-orion5x: " Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-07 14:30   ` Tony Lindgren
  2011-07-06  3:29 ` [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h Nicolas Pitre
                   ` (31 subsequent siblings)
  36 siblings, 1 reply; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

There is simply no such Kconfig entry in the tree. This is dead code.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/plat-omap/include/plat/memory.h |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/memory.h b/arch/arm/plat-omap/include/plat/memory.h
index e6720aa..7f9df6f 100644
--- a/arch/arm/plat-omap/include/plat/memory.h
+++ b/arch/arm/plat-omap/include/plat/memory.h
@@ -85,18 +85,5 @@
 
 #endif	/* CONFIG_ARCH_OMAP15XX */
 
-/* Override the ARM default */
-#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
-
-#if (CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE == 0)
-#undef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
-#define CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE 2
-#endif
-
-#define CONSISTENT_DMA_SIZE \
-	(((CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE + 1) & ~1) * 1024 * 1024)
-
-#endif
-
 #endif
 
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (4 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-07 14:30   ` Tony Lindgren
  2011-07-06  3:29 ` [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h Nicolas Pitre
                   ` (30 subsequent siblings)
  36 siblings, 1 reply; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/mach-omap1/include/mach/memory.h |   54 ++++++++++++++++++++++++++++-
 arch/arm/plat-omap/include/plat/memory.h  |   45 +-----------------------
 2 files changed, 54 insertions(+), 45 deletions(-)

diff --git a/arch/arm/mach-omap1/include/mach/memory.h b/arch/arm/mach-omap1/include/mach/memory.h
index e9b600c..5f96515 100644
--- a/arch/arm/mach-omap1/include/mach/memory.h
+++ b/arch/arm/mach-omap1/include/mach/memory.h
@@ -2,4 +2,56 @@
  * arch/arm/mach-omap1/include/mach/memory.h
  */
 
-#include <plat/memory.h>
+#ifndef __ASM_ARCH_MEMORY_H
+#define __ASM_ARCH_MEMORY_H
+
+/*
+ * Physical DRAM offset.
+ */
+#define PLAT_PHYS_OFFSET		UL(0x10000000)
+
+/*
+ * Bus address is physical address, except for OMAP-1510 Local Bus.
+ * OMAP-1510 bus address is translated into a Local Bus address if the
+ * OMAP bus type is lbus. We do the address translation based on the
+ * device overriding the defaults used in the dma-mapping API.
+ * Note that the is_lbus_device() test is not very efficient on 1510
+ * because of the strncmp().
+ */
+#ifdef CONFIG_ARCH_OMAP15XX
+
+/*
+ * OMAP-1510 Local Bus address offset
+ */
+#define OMAP1510_LB_OFFSET	UL(0x30000000)
+
+#define virt_to_lbus(x)		((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET)
+#define lbus_to_virt(x)		((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET)
+#define is_lbus_device(dev)	(cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0))
+
+#define __arch_pfn_to_dma(dev, pfn)	\
+	({ dma_addr_t __dma = __pfn_to_phys(pfn); \
+	   if (is_lbus_device(dev)) \
+		__dma = __dma - PHYS_OFFSET + OMAP1510_LB_OFFSET; \
+	   __dma; })
+
+#define __arch_dma_to_pfn(dev, addr)	\
+	({ dma_addr_t __dma = addr;				\
+	   if (is_lbus_device(dev))				\
+		__dma += PHYS_OFFSET - OMAP1510_LB_OFFSET;	\
+	   __phys_to_pfn(__dma);				\
+	})
+
+#define __arch_dma_to_virt(dev, addr)	({ (void *) (is_lbus_device(dev) ? \
+						lbus_to_virt(addr) : \
+						__phys_to_virt(addr)); })
+
+#define __arch_virt_to_dma(dev, addr)	({ unsigned long __addr = (unsigned long)(addr); \
+					   (dma_addr_t) (is_lbus_device(dev) ? \
+						virt_to_lbus(__addr) : \
+						__virt_to_phys(__addr)); })
+
+#endif	/* CONFIG_ARCH_OMAP15XX */
+
+#endif
+
diff --git a/arch/arm/plat-omap/include/plat/memory.h b/arch/arm/plat-omap/include/plat/memory.h
index 7f9df6f..5b1a86d 100644
--- a/arch/arm/plat-omap/include/plat/memory.h
+++ b/arch/arm/plat-omap/include/plat/memory.h
@@ -37,53 +37,10 @@
  * Physical DRAM offset.
  */
 #if defined(CONFIG_ARCH_OMAP1)
-#define PLAT_PHYS_OFFSET		UL(0x10000000)
+#error "OMAP1 should not be including this"
 #else
 #define PLAT_PHYS_OFFSET		UL(0x80000000)
 #endif
 
-/*
- * Bus address is physical address, except for OMAP-1510 Local Bus.
- * OMAP-1510 bus address is translated into a Local Bus address if the
- * OMAP bus type is lbus. We do the address translation based on the
- * device overriding the defaults used in the dma-mapping API.
- * Note that the is_lbus_device() test is not very efficient on 1510
- * because of the strncmp().
- */
-#ifdef CONFIG_ARCH_OMAP15XX
-
-/*
- * OMAP-1510 Local Bus address offset
- */
-#define OMAP1510_LB_OFFSET	UL(0x30000000)
-
-#define virt_to_lbus(x)		((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET)
-#define lbus_to_virt(x)		((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET)
-#define is_lbus_device(dev)	(cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0))
-
-#define __arch_pfn_to_dma(dev, pfn)	\
-	({ dma_addr_t __dma = __pfn_to_phys(pfn); \
-	   if (is_lbus_device(dev)) \
-		__dma = __dma - PHYS_OFFSET + OMAP1510_LB_OFFSET; \
-	   __dma; })
-
-#define __arch_dma_to_pfn(dev, addr)	\
-	({ dma_addr_t __dma = addr;				\
-	   if (is_lbus_device(dev))				\
-		__dma += PHYS_OFFSET - OMAP1510_LB_OFFSET;	\
-	   __phys_to_pfn(__dma);				\
-	})
-
-#define __arch_dma_to_virt(dev, addr)	({ (void *) (is_lbus_device(dev) ? \
-						lbus_to_virt(addr) : \
-						__phys_to_virt(addr)); })
-
-#define __arch_virt_to_dma(dev, addr)	({ unsigned long __addr = (unsigned long)(addr); \
-					   (dma_addr_t) (is_lbus_device(dev) ? \
-						virt_to_lbus(__addr) : \
-						__virt_to_phys(__addr)); })
-
-#endif	/* CONFIG_ARCH_OMAP15XX */
-
 #endif
 
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (5 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-07 14:29   ` Tony Lindgren
  2011-07-07 15:08   ` Arnd Bergmann
  2011-07-06  3:29 ` [PATCH 09/37] ARM: mach-iop33x: " Nicolas Pitre
                   ` (29 subsequent siblings)
  36 siblings, 2 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/mach-omap2/include/mach/memory.h |    5 ---
 arch/arm/plat-omap/Kconfig                |    1 +
 arch/arm/plat-omap/include/plat/memory.h  |   46 -----------------------------
 3 files changed, 1 insertions(+), 51 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/include/mach/memory.h
 delete mode 100644 arch/arm/plat-omap/include/plat/memory.h

diff --git a/arch/arm/mach-omap2/include/mach/memory.h b/arch/arm/mach-omap2/include/mach/memory.h
deleted file mode 100644
index ca6d32a..0000000
--- a/arch/arm/mach-omap2/include/mach/memory.h
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- * arch/arm/mach-omap2/include/mach/memory.h
- */
-
-#include <plat/memory.h>
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index 49a4c75..db30a1d 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -21,6 +21,7 @@ config ARCH_OMAP2PLUS
 	select CLKDEV_LOOKUP
 	select GENERIC_IRQ_CHIP
 	select OMAP_DM_TIMER
+	select NO_MACH_MEMORY_H
 	help
 	  "Systems based on OMAP2, OMAP3 or OMAP4"
 
diff --git a/arch/arm/plat-omap/include/plat/memory.h b/arch/arm/plat-omap/include/plat/memory.h
deleted file mode 100644
index 5b1a86d..0000000
--- a/arch/arm/plat-omap/include/plat/memory.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * arch/arm/plat-omap/include/mach/memory.h
- *
- * Memory map for OMAP-1510 and 1610
- *
- * Copyright (C) 2000 RidgeRun, Inc.
- * Author: Greg Lonnon <glonnon@ridgerun.com>
- *
- * This file was derived from arch/arm/mach-intergrator/include/mach/memory.h
- * Copyright (C) 1999 ARM Limited
- *
- * 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 SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
- * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#if defined(CONFIG_ARCH_OMAP1)
-#error "OMAP1 should not be including this"
-#else
-#define PLAT_PHYS_OFFSET		UL(0x80000000)
-#endif
-
-#endif
-
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 09/37] ARM: mach-iop33x: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (6 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank Nicolas Pitre
                   ` (28 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-iop33x/include/mach/memory.h |   13 -------------
 2 files changed, 1 insertions(+), 13 deletions(-)
 delete mode 100644 arch/arm/mach-iop33x/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index e8004b4..c4b6e4a 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -448,6 +448,7 @@ config ARCH_IOP33X
 	select PLAT_IOP
 	select PCI
 	select ARCH_REQUIRE_GPIOLIB
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Intel's IOP33X (XScale) family of processors.
 
diff --git a/arch/arm/mach-iop33x/include/mach/memory.h b/arch/arm/mach-iop33x/include/mach/memory.h
deleted file mode 100644
index 8e1daf7..0000000
--- a/arch/arm/mach-iop33x/include/mach/memory.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * arch/arm/mach-iop33x/include/mach/memory.h
- */
-
-#ifndef __MEMORY_H
-#define __MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (7 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 09/37] ARM: mach-iop33x: " Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-07 16:46   ` H Hartley Sweeten
  2011-07-06  3:29 ` [PATCH 11/37] ARM: mach-s3c2410: remove memory.h Nicolas Pitre
                   ` (27 subsequent siblings)
  36 siblings, 1 reply; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

This all can be selected automatically by default at run time.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    2 +
 arch/arm/mach-ep93xx/Kconfig               |   53 ----------------------------
 arch/arm/mach-ep93xx/Makefile.boot         |   14 -------
 arch/arm/mach-ep93xx/include/mach/memory.h |   22 -----------
 4 files changed, 2 insertions(+), 89 deletions(-)
 delete mode 100644 arch/arm/mach-ep93xx/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c4b6e4a..48b2e88 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -371,6 +371,8 @@ config ARCH_EP93XX
 	select ARCH_REQUIRE_GPIOLIB
 	select ARCH_HAS_HOLES_MEMORYMODEL
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
+	select AUTO_ZRELADDR if !ZBOOT_ROM
 	help
 	  This enables support for the Cirrus EP93xx series of CPUs.
 
diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig
index 3a08b18..d09da10 100644
--- a/arch/arm/mach-ep93xx/Kconfig
+++ b/arch/arm/mach-ep93xx/Kconfig
@@ -9,45 +9,8 @@ config CRUNCH
 
 comment "EP93xx Platforms"
 
-choice
-	prompt "EP93xx first SDRAM bank selection"
-	default EP93XX_SDCE3_SYNC_PHYS_OFFSET
-
-config EP93XX_SDCE3_SYNC_PHYS_OFFSET
-	bool "0x00000000 - SDCE3/SyncBoot"
-	help
-	  Select this option if you want support for EP93xx boards with the
-	  first SDRAM bank at 0x00000000.
-
-config EP93XX_SDCE0_PHYS_OFFSET
-	bool "0xc0000000 - SDCEO"
-	help
-	  Select this option if you want support for EP93xx boards with the
-	  first SDRAM bank at 0xc0000000.
-
-config EP93XX_SDCE1_PHYS_OFFSET
-	bool "0xd0000000 - SDCE1"
-	help
-	  Select this option if you want support for EP93xx boards with the
-	  first SDRAM bank at 0xd0000000.
-
-config EP93XX_SDCE2_PHYS_OFFSET
-	bool "0xe0000000 - SDCE2"
-	help
-	  Select this option if you want support for EP93xx boards with the
-	  first SDRAM bank at 0xe0000000.
-
-config EP93XX_SDCE3_ASYNC_PHYS_OFFSET
-	bool "0xf0000000 - SDCE3/AsyncBoot"
-	help
-	  Select this option if you want support for EP93xx boards with the
-	  first SDRAM bank at 0xf0000000.
-
-endchoice
-
 config MACH_ADSSPHERE
 	bool "Support ADS Sphere"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	help
 	  Say 'Y' here if you want your kernel to support the ADS
 	  Sphere board.
@@ -57,7 +20,6 @@ config MACH_EDB93XX
 
 config MACH_EDB9301
 	bool "Support Cirrus Logic EDB9301"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -65,7 +27,6 @@ config MACH_EDB9301
 
 config MACH_EDB9302
 	bool "Support Cirrus Logic EDB9302"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -73,7 +34,6 @@ config MACH_EDB9302
 
 config MACH_EDB9302A
 	bool "Support Cirrus Logic EDB9302A"
-	depends on EP93XX_SDCE0_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -81,7 +41,6 @@ config MACH_EDB9302A
 
 config MACH_EDB9307
 	bool "Support Cirrus Logic EDB9307"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -89,7 +48,6 @@ config MACH_EDB9307
 
 config MACH_EDB9307A
 	bool "Support Cirrus Logic EDB9307A"
-	depends on EP93XX_SDCE0_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -97,7 +55,6 @@ config MACH_EDB9307A
 
 config MACH_EDB9312
 	bool "Support Cirrus Logic EDB9312"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -105,7 +62,6 @@ config MACH_EDB9312
 
 config MACH_EDB9315
 	bool "Support Cirrus Logic EDB9315"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
@@ -113,14 +69,12 @@ config MACH_EDB9315
 
 config MACH_EDB9315A
 	bool "Support Cirrus Logic EDB9315A"
-	depends on EP93XX_SDCE0_PHYS_OFFSET
 	select MACH_EDB93XX
 	help
 	  Say 'Y' here if you want your kernel to support the Cirrus
 	  Logic EDB9315A Evaluation Board.
 
 config MACH_GESBC9312
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	bool "Support Glomation GESBC-9312-sx"
 	help
 	  Say 'Y' here if you want your kernel to support the Glomation
@@ -131,7 +85,6 @@ config MACH_MICRO9
 
 config MACH_MICRO9H
 	bool "Support Contec Micro9-High"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_MICRO9
 	help
 	  Say 'Y' here if you want your kernel to support the
@@ -139,7 +92,6 @@ config MACH_MICRO9H
 
 config MACH_MICRO9M
 	bool "Support Contec Micro9-Mid"
-	depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET
 	select MACH_MICRO9
 	help
 	  Say 'Y' here if you want your kernel to support the
@@ -147,7 +99,6 @@ config MACH_MICRO9M
 
 config MACH_MICRO9L
 	bool "Support Contec Micro9-Lite"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	select MACH_MICRO9
 	help
 	  Say 'Y' here if you want your kernel to support the
@@ -155,7 +106,6 @@ config MACH_MICRO9L
 
 config MACH_MICRO9S
 	bool "Support Contec Micro9-Slim"
-	depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET
 	select MACH_MICRO9
 	help
 	  Say 'Y' here if you want your kernel to support the
@@ -163,21 +113,18 @@ config MACH_MICRO9S
 
 config MACH_SIM_ONE
         bool "Support Simplemachines Sim.One board"
-        depends on EP93XX_SDCE0_PHYS_OFFSET
         help
           Say 'Y' here if you want your kernel to support the
           Simplemachines Sim.One board.
 
 config MACH_SNAPPER_CL15
 	bool "Support Bluewater Systems Snapper CL15 Module"
-	depends on EP93XX_SDCE0_PHYS_OFFSET
 	help
 	  Say 'Y' here if you want your kernel to support the Bluewater
 	  Systems Snapper CL15 Module.
 
 config MACH_TS72XX
 	bool "Support Technologic Systems TS-72xx SBC"
-	depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
 	help
 	  Say 'Y' here if you want your kernel to support the
 	  Technologic Systems TS-72xx board.
diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot
index 0ad33f1..e69de29 100644
--- a/arch/arm/mach-ep93xx/Makefile.boot
+++ b/arch/arm/mach-ep93xx/Makefile.boot
@@ -1,14 +0,0 @@
-   zreladdr-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00008000
-params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00000100
-
-   zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0008000
-params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0000100
-
-   zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0008000
-params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0000100
-
-   zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0008000
-params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0000100
-
-   zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0008000
-params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0000100
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h
deleted file mode 100644
index c9400cf..0000000
--- a/arch/arm/mach-ep93xx/include/mach/memory.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * arch/arm/mach-ep93xx/include/mach/memory.h
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#if defined(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-#elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)
-#define PLAT_PHYS_OFFSET		UL(0xc0000000)
-#elif defined(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)
-#define PLAT_PHYS_OFFSET		UL(0xd0000000)
-#elif defined(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)
-#define PLAT_PHYS_OFFSET		UL(0xe0000000)
-#elif defined(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)
-#define PLAT_PHYS_OFFSET		UL(0xf0000000)
-#else
-#error "Kconfig bug: No EP93xx PHYS_OFFSET set"
-#endif
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 11/37] ARM: mach-s3c2410: remove memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (8 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 12/37] ARM: mach-mv78xx0: remove mach/memory.h Nicolas Pitre
                   ` (26 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

This also removes the mach/s3c2400 version which was probably never used
due to the fact that we have this line in arch/arm/Makefile:

machine-$(CONFIG_ARCH_S3C2410)          := s3c2410 s3c2400 [...]

This is later used to construct the search path for:

The compiler would be looking into mach-s3c2410 and picking up this
version first.  Any config that was actually expecting the mach-s3c2400
version was therefore producing a broken kernel binary.  Not relying on
any of them anymore would fix that issue.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-s3c2400/include/mach/memory.h |   20 --------------------
 arch/arm/mach-s3c2410/include/mach/memory.h |   16 ----------------
 3 files changed, 1 insertions(+), 36 deletions(-)
 delete mode 100644 arch/arm/mach-s3c2400/include/mach/memory.h
 delete mode 100644 arch/arm/mach-s3c2410/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 48b2e88..869c7b6 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -704,6 +704,7 @@ config ARCH_S3C2410
 	select HAVE_CLK
 	select ARCH_USES_GETTIMEOFFSET
 	select HAVE_S3C2410_I2C if I2C
+	select NO_MACH_MEMORY_H
 	help
 	  Samsung S3C2410X CPU based systems, such as the Simtec Electronics
 	  BAST (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or
diff --git a/arch/arm/mach-s3c2400/include/mach/memory.h b/arch/arm/mach-s3c2400/include/mach/memory.h
deleted file mode 100644
index 3f33670..0000000
--- a/arch/arm/mach-s3c2400/include/mach/memory.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/* arch/arm/mach-s3c2400/include/mach/memory.h
- *  from arch/arm/mach-rpc/include/mach/memory.h
- *
- *  Copyright 2007 Simtec Electronics
- *	http://armlinux.simtec.co.uk/
- *	Ben Dooks <ben@simtec.co.uk>
- *
- *  Copyright (C) 1996,1997,1998 Russell King.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x0C000000)
-
-#endif
diff --git a/arch/arm/mach-s3c2410/include/mach/memory.h b/arch/arm/mach-s3c2410/include/mach/memory.h
deleted file mode 100644
index f92b97b..0000000
--- a/arch/arm/mach-s3c2410/include/mach/memory.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* arch/arm/mach-s3c2410/include/mach/memory.h
- *  from arch/arm/mach-rpc/include/mach/memory.h
- *
- *  Copyright (C) 1996,1997,1998 Russell King.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x30000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 12/37] ARM: mach-mv78xx0: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (9 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 11/37] ARM: mach-s3c2410: remove memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 13/37] ARM: mach-vexpress: " Nicolas Pitre
                   ` (25 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-mv78xx0/include/mach/memory.h |   10 ----------
 2 files changed, 1 insertions(+), 10 deletions(-)
 delete mode 100644 arch/arm/mach-mv78xx0/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 869c7b6..790071c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -538,6 +538,7 @@ config ARCH_MV78XX0
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_CLOCKEVENTS
 	select PLAT_ORION
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the following Marvell MV78xx0 series SoCs:
 	  MV781x0, MV782x0.
diff --git a/arch/arm/mach-mv78xx0/include/mach/memory.h b/arch/arm/mach-mv78xx0/include/mach/memory.h
deleted file mode 100644
index a648c51..0000000
--- a/arch/arm/mach-mv78xx0/include/mach/memory.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * arch/arm/mach-mv78xx0/include/mach/memory.h
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 13/37] ARM: mach-vexpress: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (10 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 12/37] ARM: mach-mv78xx0: remove mach/memory.h Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 14/37] ARM: mach-w90x900: " Nicolas Pitre
                   ` (24 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                             |    1 +
 arch/arm/mach-vexpress/include/mach/memory.h |   25 -------------------------
 2 files changed, 1 insertions(+), 25 deletions(-)
 delete mode 100644 arch/arm/mach-vexpress/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 790071c..8690b96 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -300,6 +300,7 @@ config ARCH_VEXPRESS
 	select ICST
 	select PLAT_VERSATILE
 	select PLAT_VERSATILE_CLCD
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for the ARM Ltd Versatile Express boards.
 
diff --git a/arch/arm/mach-vexpress/include/mach/memory.h b/arch/arm/mach-vexpress/include/mach/memory.h
deleted file mode 100644
index 5b7fcd4..0000000
--- a/arch/arm/mach-vexpress/include/mach/memory.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- *  arch/arm/mach-vexpress/include/mach/memory.h
- *
- *  Copyright (C) 2003 ARM Limited
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET		UL(0x60000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 14/37] ARM: mach-w90x900: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (11 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 13/37] ARM: mach-vexpress: " Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:29 ` [PATCH 15/37] ARM: mach-pnx4008: " Nicolas Pitre
                   ` (23 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-w90x900/include/mach/memory.h |   23 -----------------------
 2 files changed, 1 insertions(+), 23 deletions(-)
 delete mode 100644 arch/arm/mach-w90x900/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8690b96..af416fc 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -587,6 +587,7 @@ config ARCH_W90X900
 	select CLKDEV_LOOKUP
 	select CLKSRC_MMIO
 	select GENERIC_CLOCKEVENTS
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Nuvoton (Winbond logic dept.) ARM9 processor,
 	  At present, the w90x900 has been renamed nuc900, regarding
diff --git a/arch/arm/mach-w90x900/include/mach/memory.h b/arch/arm/mach-w90x900/include/mach/memory.h
deleted file mode 100644
index f02905b..0000000
--- a/arch/arm/mach-w90x900/include/mach/memory.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * arch/arm/mach-w90x900/include/mach/memory.h
- *
- * Copyright (c) 2008 Nuvoton technology corporation
- * All rights reserved.
- *
- * Wan ZongShun <mcuos.com@gmail.com>
- *
- * Based on arch/arm/mach-s3c2410/include/mach/memory.h
- *
- * 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.
- *
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 15/37] ARM: mach-pnx4008: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (12 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 14/37] ARM: mach-w90x900: " Nicolas Pitre
@ 2011-07-06  3:29 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 16/37] ARM: mach-iop32x: " Nicolas Pitre
                   ` (22 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:29 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-pnx4008/include/mach/memory.h |   21 ---------------------
 2 files changed, 1 insertions(+), 21 deletions(-)
 delete mode 100644 arch/arm/mach-pnx4008/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index af416fc..4fc61db 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -625,6 +625,7 @@ config ARCH_PNX4008
 	select CPU_ARM926T
 	select CLKDEV_LOOKUP
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for Philips PNX4008 mobile platform.
 
diff --git a/arch/arm/mach-pnx4008/include/mach/memory.h b/arch/arm/mach-pnx4008/include/mach/memory.h
deleted file mode 100644
index 1275db6..0000000
--- a/arch/arm/mach-pnx4008/include/mach/memory.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * arch/arm/mach-pnx4008/include/mach/memory.h
- *
- * Copyright (c) 2005 Philips Semiconductors
- * Copyright (c) 2005 MontaVista Software, Inc.
- *
- *  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.
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x80000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 16/37] ARM: mach-iop32x: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (13 preceding siblings ...)
  2011-07-06  3:29 ` [PATCH 15/37] ARM: mach-pnx4008: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 17/37] ARM: mach-nomadik: " Nicolas Pitre
                   ` (21 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-iop32x/include/mach/memory.h |   13 -------------
 2 files changed, 1 insertions(+), 13 deletions(-)
 delete mode 100644 arch/arm/mach-iop32x/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 4fc61db..8a23334 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -440,6 +440,7 @@ config ARCH_IOP32X
 	select PLAT_IOP
 	select PCI
 	select ARCH_REQUIRE_GPIOLIB
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Intel's 80219 and IOP32X (XScale) family of
 	  processors.
diff --git a/arch/arm/mach-iop32x/include/mach/memory.h b/arch/arm/mach-iop32x/include/mach/memory.h
deleted file mode 100644
index 169cc23..0000000
--- a/arch/arm/mach-iop32x/include/mach/memory.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * arch/arm/mach-iop32x/include/mach/memory.h
- */
-
-#ifndef __MEMORY_H
-#define __MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0xa0000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 17/37] ARM: mach-nomadik: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (14 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 16/37] ARM: mach-iop32x: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 18/37] ARM: mach-ux500: " Nicolas Pitre
                   ` (20 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-nomadik/include/mach/memory.h |   28 ---------------------------
 2 files changed, 1 insertions(+), 28 deletions(-)
 delete mode 100644 arch/arm/mach-nomadik/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8a23334..eef880d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -857,6 +857,7 @@ config ARCH_NOMADIK
 	select CLKDEV_LOOKUP
 	select GENERIC_CLOCKEVENTS
 	select ARCH_REQUIRE_GPIOLIB
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the Nomadik platform by ST-Ericsson
 
diff --git a/arch/arm/mach-nomadik/include/mach/memory.h b/arch/arm/mach-nomadik/include/mach/memory.h
deleted file mode 100644
index d332521..0000000
--- a/arch/arm/mach-nomadik/include/mach/memory.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *  mach-nomadik/include/mach/memory.h
- *
- *  Copyright (C) 1999 ARM Limited
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 18/37] ARM: mach-ux500: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (15 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 17/37] ARM: mach-nomadik: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 19/37] ARM: mach-versatile: " Nicolas Pitre
                   ` (19 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                          |    1 +
 arch/arm/mach-ux500/include/mach/memory.h |   18 ------------------
 2 files changed, 1 insertions(+), 18 deletions(-)
 delete mode 100644 arch/arm/mach-ux500/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index eef880d..24ad871 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -846,6 +846,7 @@ config ARCH_U8500
 	select CLKDEV_LOOKUP
 	select ARCH_REQUIRE_GPIOLIB
 	select ARCH_HAS_CPUFREQ
+	select NO_MACH_MEMORY_H
 	help
 	  Support for ST-Ericsson's Ux500 architecture
 
diff --git a/arch/arm/mach-ux500/include/mach/memory.h b/arch/arm/mach-ux500/include/mach/memory.h
deleted file mode 100644
index 2ef697a..0000000
--- a/arch/arm/mach-ux500/include/mach/memory.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (C) 2009 ST-Ericsson
- *
- * 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.
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-#define BUS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 19/37] ARM: mach-versatile: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (16 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 18/37] ARM: mach-ux500: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 20/37] ARM: mach-netx: " Nicolas Pitre
                   ` (18 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                              |    1 +
 arch/arm/mach-versatile/include/mach/memory.h |   28 -------------------------
 2 files changed, 1 insertions(+), 28 deletions(-)
 delete mode 100644 arch/arm/mach-versatile/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 24ad871..06bdaf0 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -285,6 +285,7 @@ config ARCH_VERSATILE
 	select PLAT_VERSATILE_CLCD
 	select PLAT_VERSATILE_FPGA_IRQ
 	select ARM_TIMER_SP804
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for ARM Ltd Versatile board.
 
diff --git a/arch/arm/mach-versatile/include/mach/memory.h b/arch/arm/mach-versatile/include/mach/memory.h
deleted file mode 100644
index dacc9d8..0000000
--- a/arch/arm/mach-versatile/include/mach/memory.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *  arch/arm/mach-versatile/include/mach/memory.h
- *
- *  Copyright (C) 2003 ARM Limited
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 20/37] ARM: mach-netx: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (17 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 19/37] ARM: mach-versatile: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 21/37] ARM: mach-lpc32xx: " Nicolas Pitre
                   ` (17 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                         |    1 +
 arch/arm/mach-netx/include/mach/memory.h |   26 --------------------------
 2 files changed, 1 insertions(+), 26 deletions(-)
 delete mode 100644 arch/arm/mach-netx/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 06bdaf0..95396dc 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -412,6 +412,7 @@ config ARCH_NETX
 	select CPU_ARM926T
 	select ARM_VIC
 	select GENERIC_CLOCKEVENTS
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for systems based on the Hilscher NetX Soc
 
diff --git a/arch/arm/mach-netx/include/mach/memory.h b/arch/arm/mach-netx/include/mach/memory.h
deleted file mode 100644
index 5956149..0000000
--- a/arch/arm/mach-netx/include/mach/memory.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- *  arch/arm/mach-netx/include/mach/memory.h
- *
- * Copyright (C) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET UL(0x80000000)
-
-#endif
-
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 21/37] ARM: mach-lpc32xx: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (18 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 20/37] ARM: mach-netx: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 22/37] ARM: mach-gemini: " Nicolas Pitre
                   ` (16 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-lpc32xx/include/mach/memory.h |   27 ---------------------------
 2 files changed, 1 insertions(+), 27 deletions(-)
 delete mode 100644 arch/arm/mach-lpc32xx/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 95396dc..cecbc51 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -532,6 +532,7 @@ config ARCH_LPC32XX
 	select CLKDEV_LOOKUP
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the NXP LPC32XX family of processors
 
diff --git a/arch/arm/mach-lpc32xx/include/mach/memory.h b/arch/arm/mach-lpc32xx/include/mach/memory.h
deleted file mode 100644
index a647dd6..0000000
--- a/arch/arm/mach-lpc32xx/include/mach/memory.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * arch/arm/mach-lpc32xx/include/mach/memory.h
- *
- * Author: Kevin Wells <kevin.wells@nxp.com>
- *
- * Copyright (C) 2010 NXP Semiconductors
- *
- * 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 __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset of bank 0
- */
-#define PLAT_PHYS_OFFSET	UL(0x80000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 22/37] ARM: mach-gemini: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (19 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 21/37] ARM: mach-lpc32xx: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 23/37] ARM: mach-msm: " Nicolas Pitre
                   ` (15 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-gemini/include/mach/memory.h |   19 -------------------
 2 files changed, 1 insertions(+), 19 deletions(-)
 delete mode 100644 arch/arm/mach-gemini/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index cecbc51..8495852 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -349,6 +349,7 @@ config ARCH_GEMINI
 	select CPU_FA526
 	select ARCH_REQUIRE_GPIOLIB
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the Cortina Systems Gemini family SoCs
 
diff --git a/arch/arm/mach-gemini/include/mach/memory.h b/arch/arm/mach-gemini/include/mach/memory.h
deleted file mode 100644
index a50915f..0000000
--- a/arch/arm/mach-gemini/include/mach/memory.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *  Copyright (C) 2001-2006 Storlink, Corp.
- *  Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
- *
- * 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.
- */
-#ifndef __MACH_MEMORY_H
-#define __MACH_MEMORY_H
-
-#ifdef CONFIG_GEMINI_MEM_SWAP
-# define PLAT_PHYS_OFFSET	UL(0x00000000)
-#else
-# define PLAT_PHYS_OFFSET	UL(0x10000000)
-#endif
-
-#endif /* __MACH_MEMORY_H */
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 23/37] ARM: mach-msm: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (20 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 22/37] ARM: mach-gemini: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 24/37] ARM: spear: remove mach/memory.h and plat/memory.h Nicolas Pitre
                   ` (14 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                        |    1 +
 arch/arm/mach-msm/include/mach/memory.h |   35 -------------------------------
 2 files changed, 1 insertions(+), 35 deletions(-)
 delete mode 100644 arch/arm/mach-msm/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8495852..44e8fdd 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -656,6 +656,7 @@ config ARCH_MSM
 	select GENERIC_CLOCKEVENTS
 	select ARCH_REQUIRE_GPIOLIB
 	select CLKDEV_LOOKUP
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Qualcomm MSM/QSD based systems.  This runs on the
 	  apps processor of the MSM/QSD and depends on a shared memory
diff --git a/arch/arm/mach-msm/include/mach/memory.h b/arch/arm/mach-msm/include/mach/memory.h
deleted file mode 100644
index f2f8d29..0000000
--- a/arch/arm/mach-msm/include/mach/memory.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* arch/arm/mach-msm/include/mach/memory.h
- *
- * Copyright (C) 2007 Google, Inc.
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * 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 __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/* physical offset of RAM */
-#if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A)
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-#elif defined(CONFIG_ARCH_QSD8X50)
-#define PLAT_PHYS_OFFSET		UL(0x20000000)
-#elif defined(CONFIG_ARCH_MSM7X30)
-#define PLAT_PHYS_OFFSET		UL(0x00200000)
-#elif defined(CONFIG_ARCH_MSM8X60)
-#define PLAT_PHYS_OFFSET		UL(0x40200000)
-#elif defined(CONFIG_ARCH_MSM8960)
-#define PLAT_PHYS_OFFSET		UL(0x40200000)
-#else
-#define PLAT_PHYS_OFFSET		UL(0x10000000)
-#endif
-
-#endif
-
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 24/37] ARM: spear: remove mach/memory.h and plat/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (21 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 23/37] ARM: mach-msm: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 25/37] ARM: mach-mxs: remove mach/memory.h Nicolas Pitre
                   ` (13 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                             |    1 +
 arch/arm/mach-spear3xx/include/mach/memory.h |   19 -------------------
 arch/arm/mach-spear6xx/include/mach/memory.h |   19 -------------------
 arch/arm/plat-spear/include/plat/memory.h    |   20 --------------------
 4 files changed, 1 insertions(+), 58 deletions(-)
 delete mode 100644 arch/arm/mach-spear3xx/include/mach/memory.h
 delete mode 100644 arch/arm/mach-spear6xx/include/mach/memory.h
 delete mode 100644 arch/arm/plat-spear/include/plat/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 44e8fdd..755a85d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -899,6 +899,7 @@ config PLAT_SPEAR
 	select CLKSRC_MMIO
 	select GENERIC_CLOCKEVENTS
 	select HAVE_CLK
+	select NO_MACH_MEMORY_H
 	help
 	  Support for ST's SPEAr platform (SPEAr3xx, SPEAr6xx and SPEAr13xx).
 
diff --git a/arch/arm/mach-spear3xx/include/mach/memory.h b/arch/arm/mach-spear3xx/include/mach/memory.h
deleted file mode 100644
index 5173522..0000000
--- a/arch/arm/mach-spear3xx/include/mach/memory.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * arch/arm/mach-spear3xx/include/mach/memory.h
- *
- * Memory map for SPEAr3xx machine family
- *
- * Copyright (C) 2009 ST Microelectronics
- * Viresh Kumar<viresh.kumar@st.com>
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
- */
-
-#ifndef __MACH_MEMORY_H
-#define __MACH_MEMORY_H
-
-#include <plat/memory.h>
-
-#endif /* __MACH_MEMORY_H */
diff --git a/arch/arm/mach-spear6xx/include/mach/memory.h b/arch/arm/mach-spear6xx/include/mach/memory.h
deleted file mode 100644
index 781f088..0000000
--- a/arch/arm/mach-spear6xx/include/mach/memory.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * arch/arm/mach-spear6xx/include/mach/memory.h
- *
- * Memory map for SPEAr6xx machine family
- *
- * Copyright (C) 2009 ST Microelectronics
- * Rajeev Kumar<rajeev-dlh.kumar@st.com>
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
- */
-
-#ifndef __MACH_MEMORY_H
-#define __MACH_MEMORY_H
-
-#include <plat/memory.h>
-
-#endif	/* __MACH_MEMORY_H */
diff --git a/arch/arm/plat-spear/include/plat/memory.h b/arch/arm/plat-spear/include/plat/memory.h
deleted file mode 100644
index 7e3599e..0000000
--- a/arch/arm/plat-spear/include/plat/memory.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * arch/arm/plat-spear/include/plat/memory.h
- *
- * Memory map for SPEAr platform
- *
- * Copyright (C) 2009 ST Microelectronics
- * Viresh Kumar<viresh.kumar@st.com>
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
- */
-
-#ifndef __PLAT_MEMORY_H
-#define __PLAT_MEMORY_H
-
-/* Physical DRAM offset */
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#endif /* __PLAT_MEMORY_H */
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 25/37] ARM: mach-mxs: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (22 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 24/37] ARM: spear: remove mach/memory.h and plat/memory.h Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 26/37] ARM: mach-nuc93x: " Nicolas Pitre
                   ` (12 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                        |    1 +
 arch/arm/mach-mxs/include/mach/memory.h |   24 ------------------------
 2 files changed, 1 insertions(+), 24 deletions(-)
 delete mode 100644 arch/arm/mach-mxs/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 755a85d..a2e96e8 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -404,6 +404,7 @@ config ARCH_MXS
 	select ARCH_REQUIRE_GPIOLIB
 	select CLKDEV_LOOKUP
 	select CLKSRC_MMIO
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Freescale MXS-based family of processors
 
diff --git a/arch/arm/mach-mxs/include/mach/memory.h b/arch/arm/mach-mxs/include/mach/memory.h
deleted file mode 100644
index b5420a5..0000000
--- a/arch/arm/mach-mxs/include/mach/memory.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef __MACH_MXS_MEMORY_H__
-#define __MACH_MXS_MEMORY_H__
-
-#define PHYS_OFFSET		UL(0x40000000)
-
-#endif /* __MACH_MXS_MEMORY_H__ */
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 26/37] ARM: mach-nuc93x: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (23 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 25/37] ARM: mach-mxs: remove mach/memory.h Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 27/37] ARM: mach-cns3xxx: " Nicolas Pitre
                   ` (11 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-nuc93x/include/mach/memory.h |   21 ---------------------
 2 files changed, 1 insertions(+), 21 deletions(-)
 delete mode 100644 arch/arm/mach-nuc93x/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a2e96e8..a3577a2 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -607,6 +607,7 @@ config ARCH_NUC93X
 	bool "Nuvoton NUC93X CPU"
 	select CPU_ARM926T
 	select CLKDEV_LOOKUP
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Nuvoton (Winbond logic dept.) NUC93X MCU,The NUC93X is a
 	  low-power and high performance MPEG-4/JPEG multimedia controller chip.
diff --git a/arch/arm/mach-nuc93x/include/mach/memory.h b/arch/arm/mach-nuc93x/include/mach/memory.h
deleted file mode 100644
index ef9864b..0000000
--- a/arch/arm/mach-nuc93x/include/mach/memory.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * arch/arm/mach-nuc93x/include/mach/memory.h
- *
- * Copyright (c) 2008 Nuvoton technology corporation
- * All rights reserved.
- *
- * Wan ZongShun <mcuos.com@gmail.com>
- *
- * 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.
- *
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 27/37] ARM: mach-cns3xxx: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (24 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 26/37] ARM: mach-nuc93x: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 28/37] ARM: mach-mmp: " Nicolas Pitre
                   ` (10 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-cns3xxx/include/mach/memory.h |   26 --------------------------
 2 files changed, 1 insertions(+), 26 deletions(-)
 delete mode 100644 arch/arm/mach-cns3xxx/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a3577a2..ab78899 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -341,6 +341,7 @@ config ARCH_CNS3XXX
 	select ARM_GIC
 	select MIGHT_HAVE_PCI
 	select PCI_DOMAINS if PCI
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Cavium Networks CNS3XXX platform.
 
diff --git a/arch/arm/mach-cns3xxx/include/mach/memory.h b/arch/arm/mach-cns3xxx/include/mach/memory.h
deleted file mode 100644
index dc16c5c..0000000
--- a/arch/arm/mach-cns3xxx/include/mach/memory.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2003 ARM Limited
- * Copyright 2008 Cavium Networks
- *
- * This file is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, Version 2, as
- * published by the Free Software Foundation.
- */
-
-#ifndef __MACH_MEMORY_H
-#define __MACH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET		UL(0x00000000)
-
-#define __phys_to_bus(x)	((x) + PHYS_OFFSET)
-#define __bus_to_phys(x)	((x) - PHYS_OFFSET)
-
-#define __virt_to_bus(v)	__phys_to_bus(__virt_to_phys(v))
-#define __bus_to_virt(b)	__phys_to_virt(__bus_to_phys(b))
-#define __pfn_to_bus(p)		__phys_to_bus(__pfn_to_phys(p))
-#define __bus_to_pfn(b)		__phys_to_pfn(__bus_to_phys(b))
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 28/37] ARM: mach-mmp: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (25 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 27/37] ARM: mach-cns3xxx: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 29/37] ARM: plat-tcc: " Nicolas Pitre
                   ` (9 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                        |    1 +
 arch/arm/mach-mmp/include/mach/memory.h |   14 --------------
 2 files changed, 1 insertions(+), 14 deletions(-)
 delete mode 100644 arch/arm/mach-mmp/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index ab78899..16dcd0a 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -575,6 +575,7 @@ config ARCH_MMP
 	select TICK_ONESHOT
 	select PLAT_PXA
 	select SPARSE_IRQ
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line.
 
diff --git a/arch/arm/mach-mmp/include/mach/memory.h b/arch/arm/mach-mmp/include/mach/memory.h
deleted file mode 100644
index d68b50a..0000000
--- a/arch/arm/mach-mmp/include/mach/memory.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * linux/arch/arm/mach-mmp/include/mach/memory.h
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef __ASM_MACH_MEMORY_H
-#define __ASM_MACH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif /* __ASM_MACH_MEMORY_H */
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 29/37] ARM: plat-tcc: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (26 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 28/37] ARM: mach-mmp: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 30/37] ARM: mach-tegra: " Nicolas Pitre
                   ` (8 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                        |    1 +
 arch/arm/plat-tcc/include/mach/memory.h |   18 ------------------
 2 files changed, 1 insertions(+), 18 deletions(-)
 delete mode 100644 arch/arm/plat-tcc/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 16dcd0a..8b221f2 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -829,6 +829,7 @@ config ARCH_TCC_926
 	select HAVE_CLK
 	select CLKDEV_LOOKUP
 	select GENERIC_CLOCKEVENTS
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Telechips TCC ARM926-based systems.
 
diff --git a/arch/arm/plat-tcc/include/mach/memory.h b/arch/arm/plat-tcc/include/mach/memory.h
deleted file mode 100644
index 28a6e0c..0000000
--- a/arch/arm/plat-tcc/include/mach/memory.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (C) 1999 ARM Limited
- * Copyright (C) 2000 RidgeRun, Inc.
- * Copyright (C) 2008-2009 Telechips
- * Copyright (C) 2010 Hans J. Koch <hjk@linutronix.de>
- *
- * Licensed under the terms of the GPL v2.
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET		UL(0x20000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 30/37] ARM: mach-tegra: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (27 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 29/37] ARM: plat-tcc: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 31/37] ARM: mach-s5pc100: " Nicolas Pitre
                   ` (7 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                          |    1 +
 arch/arm/mach-tegra/include/mach/memory.h |   28 ----------------------------
 2 files changed, 1 insertions(+), 28 deletions(-)
 delete mode 100644 arch/arm/mach-tegra/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8b221f2..5eedf03 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -625,6 +625,7 @@ config ARCH_TEGRA
 	select HAVE_SCHED_CLOCK
 	select ARCH_HAS_BARRIERS if CACHE_L2X0
 	select ARCH_HAS_CPUFREQ
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for NVIDIA Tegra based systems (Tegra APX,
 	  Tegra 6xx and Tegra 2 series).
diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h
deleted file mode 100644
index 537db3a..0000000
--- a/arch/arm/mach-tegra/include/mach/memory.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * arch/arm/mach-tegra/include/mach/memory.h
- *
- * Copyright (C) 2010 Google, Inc.
- *
- * Author:
- *	Colin Cross <ccross@google.com>
- *	Erik Gilling <konkers@google.com>
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * 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 __MACH_TEGRA_MEMORY_H
-#define __MACH_TEGRA_MEMORY_H
-
-/* physical offset of RAM */
-#define PLAT_PHYS_OFFSET		UL(0)
-
-#endif
-
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 31/37] ARM: mach-s5pc100: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (28 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 30/37] ARM: mach-tegra: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 32/37] ARM: mach-vt8500: " Nicolas Pitre
                   ` (6 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-s5pc100/include/mach/memory.h |   18 ------------------
 2 files changed, 1 insertions(+), 18 deletions(-)
 delete mode 100644 arch/arm/mach-s5pc100/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 5eedf03..12b07d1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -778,6 +778,7 @@ config ARCH_S5PC100
 	select HAVE_S3C2410_I2C if I2C
 	select HAVE_S3C_RTC if RTC_CLASS
 	select HAVE_S3C2410_WATCHDOG if WATCHDOG
+	select NO_MACH_MEMORY_H
 	help
 	  Samsung S5PC100 series based systems
 
diff --git a/arch/arm/mach-s5pc100/include/mach/memory.h b/arch/arm/mach-s5pc100/include/mach/memory.h
deleted file mode 100644
index bda4e79..0000000
--- a/arch/arm/mach-s5pc100/include/mach/memory.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* arch/arm/mach-s5pc100/include/mach/memory.h
- *
- * Copyright 2008 Samsung Electronics Co.
- *      Byungho Min <bhmin@samsung.com>
- *
- * Based on mach-s3c6400/include/mach/memory.h
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET     	UL(0x20000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 32/37] ARM: mach-vt8500: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (29 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 31/37] ARM: mach-s5pc100: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 33/37] ARM: mach-shark: " Nicolas Pitre
                   ` (5 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-vt8500/include/mach/memory.h |   28 ----------------------------
 2 files changed, 1 insertions(+), 28 deletions(-)
 delete mode 100644 arch/arm/mach-vt8500/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 12b07d1..d6b8c92 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -918,6 +918,7 @@ config ARCH_VT8500
 	select GENERIC_CLOCKEVENTS
 	select ARCH_REQUIRE_GPIOLIB
 	select HAVE_PWM
+	select NO_MACH_MEMORY_H
 	help
 	  Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip.
 endchoice
diff --git a/arch/arm/mach-vt8500/include/mach/memory.h b/arch/arm/mach-vt8500/include/mach/memory.h
deleted file mode 100644
index 175f914..0000000
--- a/arch/arm/mach-vt8500/include/mach/memory.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *  arch/arm/mach-vt8500/include/mach/memory.h
- *
- *  Copyright (C) 2003 ARM Limited
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 33/37] ARM: mach-shark: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (30 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 32/37] ARM: mach-vt8500: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 34/37] ARM: mach-ebsa110: " Nicolas Pitre
                   ` (4 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                          |    1 +
 arch/arm/mach-shark/include/mach/memory.h |   20 --------------------
 2 files changed, 1 insertions(+), 20 deletions(-)
 delete mode 100644 arch/arm/mach-shark/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d6b8c92..8e0763b 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -820,6 +820,7 @@ config ARCH_SHARK
 	select ZONE_DMA
 	select PCI
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
 	help
 	  Support for the StrongARM based Digital DNARD machine, also known
 	  as "Shark" (<http://www.shark-linux.de/shark.html>).
diff --git a/arch/arm/mach-shark/include/mach/memory.h b/arch/arm/mach-shark/include/mach/memory.h
deleted file mode 100644
index e19df6f..0000000
--- a/arch/arm/mach-shark/include/mach/memory.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * arch/arm/mach-shark/include/mach/memory.h
- *
- * by Alexander Schulz
- *
- * derived from:
- * arch/arm/mach-ebsa110/include/mach/memory.h
- * Copyright (c) 1996-1999 Russell King.
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#include <asm/sizes.h>
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET     UL(0x08000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 34/37] ARM: mach-ebsa110: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (31 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 33/37] ARM: mach-shark: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 35/37] ARM: mach-h720x: " Nicolas Pitre
                   ` (3 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                            |    1 +
 arch/arm/mach-ebsa110/include/mach/memory.h |   24 ------------------------
 2 files changed, 1 insertions(+), 24 deletions(-)
 delete mode 100644 arch/arm/mach-ebsa110/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8e0763b..63ac56d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -360,6 +360,7 @@ config ARCH_EBSA110
 	select ISA
 	select NO_IOPORT
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
 	help
 	  This is an evaluation board for the StrongARM processor available
 	  from Digital. It has limited hardware on-board, including an
diff --git a/arch/arm/mach-ebsa110/include/mach/memory.h b/arch/arm/mach-ebsa110/include/mach/memory.h
deleted file mode 100644
index 2af7ec4..0000000
--- a/arch/arm/mach-ebsa110/include/mach/memory.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- *  arch/arm/mach-ebsa110/include/mach/memory.h
- *
- *  Copyright (C) 1996-1999 Russell King.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- *  Changelog:
- *   20-Oct-1996 RMK	Created
- *   31-Dec-1997 RMK	Fixed definitions to reduce warnings
- *   21-Mar-1999 RMK	Renamed to memory.h
- *		 RMK	Moved TASK_SIZE and PAGE_OFFSET here
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 35/37] ARM: mach-h720x: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (32 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 34/37] ARM: mach-ebsa110: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 36/37] ARM: mach-ixp4xx: " Nicolas Pitre
                   ` (2 subsequent siblings)
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                          |    1 +
 arch/arm/mach-h720x/include/mach/memory.h |   11 -----------
 2 files changed, 1 insertions(+), 11 deletions(-)
 delete mode 100644 arch/arm/mach-h720x/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 63ac56d..e105da4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -425,6 +425,7 @@ config ARCH_H720X
 	select CPU_ARM720T
 	select ISA_DMA_API
 	select ARCH_USES_GETTIMEOFFSET
+	select NO_MACH_MEMORY_H
 	help
 	  This enables support for systems based on the Hynix HMS720x
 
diff --git a/arch/arm/mach-h720x/include/mach/memory.h b/arch/arm/mach-h720x/include/mach/memory.h
deleted file mode 100644
index 96dcf50..0000000
--- a/arch/arm/mach-h720x/include/mach/memory.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * arch/arm/mach-h720x/include/mach/memory.h
- *
- * Copyright (c) 2000 Jungjun Kim
- *
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#define PLAT_PHYS_OFFSET	UL(0x40000000)
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 36/37] ARM: mach-ixp4xx: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (33 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 35/37] ARM: mach-h720x: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  3:30 ` [PATCH 37/37] ARM: mach-pxa: " Nicolas Pitre
  2011-07-06  6:38 ` [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Barry Song
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                           |    1 +
 arch/arm/mach-ixp4xx/include/mach/memory.h |   17 -----------------
 2 files changed, 1 insertions(+), 17 deletions(-)
 delete mode 100644 arch/arm/mach-ixp4xx/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index e105da4..46d4c84 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -491,6 +491,7 @@ config ARCH_IXP4XX
 	select HAVE_SCHED_CLOCK
 	select MIGHT_HAVE_PCI
 	select DMABOUNCE if PCI
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Intel's IXP4XX (XScale) family of processors.
 
diff --git a/arch/arm/mach-ixp4xx/include/mach/memory.h b/arch/arm/mach-ixp4xx/include/mach/memory.h
deleted file mode 100644
index 4caf176..0000000
--- a/arch/arm/mach-ixp4xx/include/mach/memory.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * arch/arm/mach-ixp4xx/include/mach/memory.h
- *
- * Copyright (c) 2001-2004 MontaVista Software, Inc.
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#include <asm/sizes.h>
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0x00000000)
-
-#endif
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 37/37] ARM: mach-pxa: remove mach/memory.h
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (34 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 36/37] ARM: mach-ixp4xx: " Nicolas Pitre
@ 2011-07-06  3:30 ` Nicolas Pitre
  2011-07-06  6:38 ` [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Barry Song
  36 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-06  3:30 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/Kconfig                        |    1 +
 arch/arm/mach-pxa/include/mach/memory.h |   20 --------------------
 arch/arm/mach-pxa/pxa25x.c              |    2 +-
 arch/arm/mach-pxa/pxa27x.c              |    2 +-
 arch/arm/mach-pxa/pxa3xx.c              |    2 +-
 arch/arm/mach-pxa/zeus.c                |    2 +-
 6 files changed, 5 insertions(+), 24 deletions(-)
 delete mode 100644 arch/arm/mach-pxa/include/mach/memory.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 46d4c84..ec1c799 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -655,6 +655,7 @@ config ARCH_PXA
 	select TICK_ONESHOT
 	select PLAT_PXA
 	select SPARSE_IRQ
+	select NO_MACH_MEMORY_H
 	help
 	  Support for Intel/Marvell's PXA2xx/PXA3xx processor line.
 
diff --git a/arch/arm/mach-pxa/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h
deleted file mode 100644
index d05a597..0000000
--- a/arch/arm/mach-pxa/include/mach/memory.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- *  arch/arm/mach-pxa/include/mach/memory.h
- *
- * Author:	Nicolas Pitre
- * Copyright:	(C) 2001 MontaVista Software Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-/*
- * Physical DRAM offset.
- */
-#define PLAT_PHYS_OFFSET	UL(0xa0000000)
-
-#endif
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
index fed363c..8b18ccc 100644
--- a/arch/arm/mach-pxa/pxa25x.c
+++ b/arch/arm/mach-pxa/pxa25x.c
@@ -244,7 +244,7 @@ static void pxa25x_cpu_pm_enter(suspend_state_t state)
 
 	switch (state) {
 	case PM_SUSPEND_MEM:
-		pxa25x_cpu_suspend(PWRMODE_SLEEP, PLAT_PHYS_OFFSET - PAGE_OFFSET);
+		pxa25x_cpu_suspend(PWRMODE_SLEEP, PHYS_OFFSET - PAGE_OFFSET);
 		break;
 	}
 }
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 2fecbec..81e0052 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -299,7 +299,7 @@ void pxa27x_cpu_pm_enter(suspend_state_t state)
 		pxa_cpu_standby();
 		break;
 	case PM_SUSPEND_MEM:
-		pxa27x_cpu_suspend(pwrmode, PLAT_PHYS_OFFSET - PAGE_OFFSET);
+		pxa27x_cpu_suspend(pwrmode, PHYS_OFFSET - PAGE_OFFSET);
 		break;
 	}
 }
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 8521d7d..4d48321 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -162,7 +162,7 @@ static void pxa3xx_cpu_pm_suspend(void)
 	/* overwrite with the resume address */
 	*p = virt_to_phys(cpu_resume);
 
-	pxa3xx_cpu_suspend(PLAT_PHYS_OFFSET - PAGE_OFFSET);
+	pxa3xx_cpu_suspend(PHYS_OFFSET - PAGE_OFFSET);
 
 	*p = saved_data;
 
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
index 56fa747..c48b558 100644
--- a/arch/arm/mach-pxa/zeus.c
+++ b/arch/arm/mach-pxa/zeus.c
@@ -676,7 +676,7 @@ static struct pxa2xx_udc_mach_info zeus_udc_info = {
 static void zeus_power_off(void)
 {
 	local_irq_disable();
-	pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP, PLAT_PHYS_OFFSET - PAGE_OFFSET);
+	pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP, PHYS_OFFSET - PAGE_OFFSET);
 }
 #else
 #define zeus_power_off   NULL
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 48+ messages in thread

* [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files
  2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
                   ` (35 preceding siblings ...)
  2011-07-06  3:30 ` [PATCH 37/37] ARM: mach-pxa: " Nicolas Pitre
@ 2011-07-06  6:38 ` Barry Song
  36 siblings, 0 replies; 48+ messages in thread
From: Barry Song @ 2011-07-06  6:38 UTC (permalink / raw)
  To: linux-arm-kernel

2011/7/6 Nicolas Pitre <nicolas.pitre@linaro.org>:
> When the CONFIG_NO_MACH_MEMORY_H symbol is selected by a particular
> machine class, the machine specific memory.h include file is no longer
> used and can be removed. ?In that case the equivalent information can
> be obtained dynamically at runtime by enabling CONFIG_ARM_PATCH_PHYS_VIRT
> or by specifying the physical memory address at kernel configuration time.
>
> If/when all instances of mach/memory.h are removed then this symbol could
> be removed.

guess the main reason for this is that physical memory address should
not be hard-coded in kernel. and it will cause issues while crossing
platforms/boards.
i noticed PLAT_PHYS_OFFSET is referred much early in head.S with
CONFIG_XIP_KERNEL.

#ifndef CONFIG_XIP_KERNEL
        adr     r3, 2f
        ldmia   r3, {r4, r8}
        sub     r4, r3, r4                      @ (PHYS_OFFSET - PAGE_OFFSET)
        add     r8, r8, r4                      @ PHYS_OFFSET
#else
        ldr     r8, =PLAT_PHYS_OFFSET
#endif


>
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> ---
> ?arch/arm/Kconfig ? ? ? ? ? ? ?| ? 15 ++++++++++++++-
> ?arch/arm/include/asm/memory.h | ? ?6 +++++-
> ?2 files changed, 19 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 9adc278..9fc052c 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -191,11 +191,17 @@ config VECTORS_BASE
> ? ? ? ?help
> ? ? ? ? ?The base address of exception vectors.
>
> +config NO_MACH_MEMORY_H
> + ? ? ? bool
> + ? ? ? help
> + ? ? ? ? Select this when mach/memory.h is removed.
> +
> ?config ARM_PATCH_PHYS_VIRT
> ? ? ? ?bool "Patch physical to virtual translations at runtime (EXPERIMENTAL)"
> - ? ? ? depends on EXPERIMENTAL
> + ? ? ? depends on EXPERIMENTAL || NO_MACH_MEMORY_H
> ? ? ? ?depends on !XIP_KERNEL && MMU
> ? ? ? ?depends on !ARCH_REALVIEW || !SPARSEMEM
> + ? ? ? default y if NO_MACH_MEMORY_H
> ? ? ? ?help
> ? ? ? ? ?Patch phys-to-virt and virt-to-phys translation functions at
> ? ? ? ? ?boot and module load time according to the position of the
> @@ -213,6 +219,13 @@ config ARM_PATCH_PHYS_VIRT_16BIT
> ? ? ? ? ?to allow physical memory down to a theoretical minimum of 64K
> ? ? ? ? ?boundaries.
>
> +config PHYS_OFFSET
> + ? ? ? hex "Physical address of main memory"
> + ? ? ? depends on !ARM_PATCH_PHYS_VIRT && NO_MACH_MEMORY_H
> + ? ? ? help
> + ? ? ? ? Please provide the physical address corresponding to the
> + ? ? ? ? location of main memory in your system.
> +
> ?source "init/Kconfig"
>
> ?source "kernel/Kconfig.freezer"
> diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
> index deb2eaa..2d21414 100644
> --- a/arch/arm/include/asm/memory.h
> +++ b/arch/arm/include/asm/memory.h
> @@ -16,7 +16,6 @@
> ?#include <linux/compiler.h>
> ?#include <linux/const.h>
> ?#include <linux/types.h>
> -#include <mach/memory.h>
> ?#include <asm/sizes.h>
>
> ?/*
> @@ -200,8 +199,13 @@ static inline unsigned long __phys_to_virt(unsigned long x)
> ?#endif
>
> ?#ifndef PHYS_OFFSET
> +#ifdef CONFIG_NO_MACH_MEMORY_H
> +#define PHYS_OFFSET ? ?UL(CONFIG_PHYS_OFFSET)
> +#else
> +#include <mach/memory.h>
> ?#define PHYS_OFFSET ? ?PLAT_PHYS_OFFSET
> ?#endif
> +#endif
>
> ?/*
> ?* The DMA mask corresponding to the maximum bus address allocatable
> --
> 1.7.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h
  2011-07-06  3:29 ` [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h Nicolas Pitre
@ 2011-07-07 14:29   ` Tony Lindgren
  2011-07-07 15:08   ` Arnd Bergmann
  1 sibling, 0 replies; 48+ messages in thread
From: Tony Lindgren @ 2011-07-07 14:29 UTC (permalink / raw)
  To: linux-arm-kernel

* Nicolas Pitre <nicolas.pitre@linaro.org> [110706 09:57]:
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code
  2011-07-06  3:29 ` [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code Nicolas Pitre
@ 2011-07-07 14:30   ` Tony Lindgren
  0 siblings, 0 replies; 48+ messages in thread
From: Tony Lindgren @ 2011-07-07 14:30 UTC (permalink / raw)
  To: linux-arm-kernel

* Nicolas Pitre <nicolas.pitre@linaro.org> [110706 06:27]:
> There is simply no such Kconfig entry in the tree. This is dead code.
> 
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h
  2011-07-06  3:29 ` [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h Nicolas Pitre
@ 2011-07-07 14:30   ` Tony Lindgren
  0 siblings, 0 replies; 48+ messages in thread
From: Tony Lindgren @ 2011-07-07 14:30 UTC (permalink / raw)
  To: linux-arm-kernel

* Nicolas Pitre <nicolas.pitre@linaro.org> [110706 07:50]:
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h
  2011-07-06  3:29 ` [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h Nicolas Pitre
  2011-07-07 14:29   ` Tony Lindgren
@ 2011-07-07 15:08   ` Arnd Bergmann
  2011-07-07 15:25     ` Nicolas Pitre
  1 sibling, 1 reply; 48+ messages in thread
From: Arnd Bergmann @ 2011-07-07 15:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 06 July 2011, Nicolas Pitre wrote:
> -/*
> - * Physical DRAM offset.
> - */
> -#if defined(CONFIG_ARCH_OMAP1)
> -#error "OMAP1 should not be including this"
> -#else
> -#define PLAT_PHYS_OFFSET               UL(0x80000000)
> -#endif
> -
> -#endif

This breaks if you disable ARM_PATCH_PHYS_VIRT and don't know
enter the correct PHYS_OFFSET in Kconfig, right?

I wonder if it's worth adding defaults for CONFIG_PHYS_OFFSET
based on the platform, like

config PHYS_OFFSET
	depends on !ARM_PATCH_PHYS_VIRT && NO_MACH_MEMORY_H
	default 0x80000000 if ARCH_OMAP2 || ARCH_PNX4008 || ARCH_NETX || ARCH_LPC32XX
	default 0xa0000000 if ARCH_IOP32X
	default 0x10000000 if ARCH_GEMINI && !GEMINI_MEM_SWAP
	default 0x00000000

	Arnd

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h
  2011-07-07 15:08   ` Arnd Bergmann
@ 2011-07-07 15:25     ` Nicolas Pitre
  2011-07-07 15:46       ` Arnd Bergmann
  0 siblings, 1 reply; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-07 15:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 7 Jul 2011, Arnd Bergmann wrote:

> On Wednesday 06 July 2011, Nicolas Pitre wrote:
> > -/*
> > - * Physical DRAM offset.
> > - */
> > -#if defined(CONFIG_ARCH_OMAP1)
> > -#error "OMAP1 should not be including this"
> > -#else
> > -#define PLAT_PHYS_OFFSET               UL(0x80000000)
> > -#endif
> > -
> > -#endif
> 
> This breaks if you disable ARM_PATCH_PHYS_VIRT and don't know
> enter the correct PHYS_OFFSET in Kconfig, right?

Right.  However the plan is to make ARM_PATCH_PHYS_VIRT the default and 
you should really have a good reason to disable it (i.e. you must know 
what you're doing).

> I wonder if it's worth adding defaults for CONFIG_PHYS_OFFSET
> based on the platform, like
> 
> config PHYS_OFFSET
> 	depends on !ARM_PATCH_PHYS_VIRT && NO_MACH_MEMORY_H
> 	default 0x80000000 if ARCH_OMAP2 || ARCH_PNX4008 || ARCH_NETX || ARCH_LPC32XX
> 	default 0xa0000000 if ARCH_IOP32X
> 	default 0x10000000 if ARCH_GEMINI && !GEMINI_MEM_SWAP
> 	default 0x00000000

Maybe, however this is part of the board specific info we wish to move 
out of the tree.  Gathering that info for different boards close 
together is also a potential merge conflict spot.

The only reason why you might want to use a build time PHYS_OFFSET at 
that point is for running the kernel XIP in ROM, or if you have very 
special requirements.  And for that you really must know what you're 
doing.  Some people have indicated that CONFIG_XIP_KERNEL is still 
useful for them.  So I left the ability there to preserve some 
flexibility, otherwise I probably would have made ARM_PATCH_PHYS_VIRT 
unconditional in that case.


Nicolas

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h
  2011-07-07 15:25     ` Nicolas Pitre
@ 2011-07-07 15:46       ` Arnd Bergmann
  0 siblings, 0 replies; 48+ messages in thread
From: Arnd Bergmann @ 2011-07-07 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 07 July 2011, Nicolas Pitre wrote:
> The only reason why you might want to use a build time PHYS_OFFSET at 
> that point is for running the kernel XIP in ROM, or if you have very 
> special requirements.  And for that you really must know what you're 
> doing.  Some people have indicated that CONFIG_XIP_KERNEL is still 
> useful for them.  So I left the ability there to preserve some 
> flexibility, otherwise I probably would have made ARM_PATCH_PHYS_VIRT 
> unconditional in that case.

Ok, fair enough.

	Arnd

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank
  2011-07-06  3:29 ` [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank Nicolas Pitre
@ 2011-07-07 16:46   ` H Hartley Sweeten
  2011-07-07 17:18     ` Nicolas Pitre
  0 siblings, 1 reply; 48+ messages in thread
From: H Hartley Sweeten @ 2011-07-07 16:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Tuesday, July 05, 2011 8:30 PM, Nicolas Pitre wrote:
>
> This all can be selected automatically by default at run time.

How?  It would be nice if you mentioned that this patch makes ARCH_EP93XX
use ARM_PATCH_PHYS_VIRT.  It took a bit of digging for me to figure out
where PHYS_OFFSET was now getting set.

> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> ---
>  arch/arm/Kconfig                           |    2 +
>  arch/arm/mach-ep93xx/Kconfig               |   53 ----------------------------
>  arch/arm/mach-ep93xx/Makefile.boot         |   14 -------
>  arch/arm/mach-ep93xx/include/mach/memory.h |   22 -----------
>  4 files changed, 2 insertions(+), 89 deletions(-)
>  delete mode 100644 arch/arm/mach-ep93xx/include/mach/memory.h
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index c4b6e4a..48b2e88 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -371,6 +371,8 @@ config ARCH_EP93XX
>  	select ARCH_REQUIRE_GPIOLIB
>  	select ARCH_HAS_HOLES_MEMORYMODEL
>  	select ARCH_USES_GETTIMEOFFSET
> +	select NO_MACH_MEMORY_H
> +	select AUTO_ZRELADDR if !ZBOOT_ROM

I would like to see a:

+	select ARM_PATCH_PHYS_VIRT

here.  I realize that the select of NO_MACH_MEMORY_H will cause the selection
but it's a bit hidden.

[snip]

> diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot
> index 0ad33f1..e69de29 100644
> --- a/arch/arm/mach-ep93xx/Makefile.boot
> +++ b/arch/arm/mach-ep93xx/Makefile.boot
> @@ -1,14 +0,0 @@
> -   zreladdr-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00008000
> -params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00000100
> -
> -   zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0008000
> -params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0000100
> -
> -   zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0008000
> -params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0000100
> -
> -   zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0008000
> -params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0000100
> -
> -   zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0008000
> -params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0000100

Is Makefile.boot still needed for anything?

Other than those comments.  I have boot tested this on a couple ep93xx
boards and everything looks fine.

Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>

BTW, scripts/get_maintainer.pl is you friend... It would have been nice to
be CC'ed for the ep93xx specific parts of you patches.  I just happened to
notice them in my inbox yesterday...

Regards,
Hartley

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank
  2011-07-07 16:46   ` H Hartley Sweeten
@ 2011-07-07 17:18     ` Nicolas Pitre
  2011-07-07 17:29       ` H Hartley Sweeten
  0 siblings, 1 reply; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-07 17:18 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 7 Jul 2011, H Hartley Sweeten wrote:

> On Tuesday, July 05, 2011 8:30 PM, Nicolas Pitre wrote:
> >
> > This all can be selected automatically by default at run time.
> 
> How?  It would be nice if you mentioned that this patch makes ARCH_EP93XX
> use ARM_PATCH_PHYS_VIRT.  It took a bit of digging for me to figure out
> where PHYS_OFFSET was now getting set.

OK, I'll add some precisions to the commit message.  Of course the first 
patch of the series contains detailed information on what is happening 
but I don't want to repeat that into the 51 subsequent patches.

> > Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> > ---
> >  arch/arm/Kconfig                           |    2 +
> >  arch/arm/mach-ep93xx/Kconfig               |   53 ----------------------------
> >  arch/arm/mach-ep93xx/Makefile.boot         |   14 -------
> >  arch/arm/mach-ep93xx/include/mach/memory.h |   22 -----------
> >  4 files changed, 2 insertions(+), 89 deletions(-)
> >  delete mode 100644 arch/arm/mach-ep93xx/include/mach/memory.h
> >
> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index c4b6e4a..48b2e88 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -371,6 +371,8 @@ config ARCH_EP93XX
> >  	select ARCH_REQUIRE_GPIOLIB
> >  	select ARCH_HAS_HOLES_MEMORYMODEL
> >  	select ARCH_USES_GETTIMEOFFSET
> > +	select NO_MACH_MEMORY_H
> > +	select AUTO_ZRELADDR if !ZBOOT_ROM
> 
> I would like to see a:
> 
> +	select ARM_PATCH_PHYS_VIRT
> 
> here.  I realize that the select of NO_MACH_MEMORY_H will cause the selection
> but it's a bit hidden.

True.  However the default for ARM_PATCH_PHYS_VIRT is set to y when 
NO_MACH_MEMORY_H is selected which effectively achieve the same thing 
while allowing you to override that and 
revert to a constant PHYS_OFFSET if some regression is suspected, or if 
you use a XIP kernel.  Doing a forceful select of ARM_PATCH_PHYS_VIRT 
here would prevent that..

> [snip]
> 
> > diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot
> > index 0ad33f1..e69de29 100644
> > --- a/arch/arm/mach-ep93xx/Makefile.boot
> > +++ b/arch/arm/mach-ep93xx/Makefile.boot
> > @@ -1,14 +0,0 @@
> > -   zreladdr-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00008000
> > -params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00000100
> > -
> > -   zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0008000
> > -params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0000100
> > -
> > -   zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0008000
> > -params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0000100
> > -
> > -   zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0008000
> > -params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0000100
> > -
> > -   zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0008000
> > -params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0000100
> 
> Is Makefile.boot still needed for anything?

Not if AUTO_ZRELADDR is used and you are not using the bootpImage 
wrapper.

> Other than those comments.  I have boot tested this on a couple ep93xx
> boards and everything looks fine.

This should allow you to have a kernel configured for multiple ep93xx 
boards where this was not possible before due to the different RAM 
offsets hardcoded at build time.

> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>

May I add a Tested-by tag as well?


Nicolas

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank
  2011-07-07 17:18     ` Nicolas Pitre
@ 2011-07-07 17:29       ` H Hartley Sweeten
  2011-07-07 18:00         ` Nicolas Pitre
  0 siblings, 1 reply; 48+ messages in thread
From: H Hartley Sweeten @ 2011-07-07 17:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday, July 07, 2011 10:19 AM, Nicolas Pitre wrote:
> On Thu, 7 Jul 2011, H Hartley Sweeten wrote:
>
>> On Tuesday, July 05, 2011 8:30 PM, Nicolas Pitre wrote:
>>>
>>> This all can be selected automatically by default at run time.
>> 
>> How?  It would be nice if you mentioned that this patch makes ARCH_EP93XX
>> use ARM_PATCH_PHYS_VIRT.  It took a bit of digging for me to figure out
>> where PHYS_OFFSET was now getting set.
>
> OK, I'll add some precisions to the commit message.  Of course the first 
> patch of the series contains detailed information on what is happening 
> but I don't want to repeat that into the 51 subsequent patches.

Ah.. I read the first patch to quickly...  Still an updated commit would
keep it clear.  Something as simple as this.

This all can be selected automatically by default at run time using
ARM_PATCH_PHYS_VIRT.

>>> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
>>> ---
>>>  arch/arm/Kconfig                           |    2 +
>>>  arch/arm/mach-ep93xx/Kconfig               |   53 ----------------------------
>>>  arch/arm/mach-ep93xx/Makefile.boot         |   14 -------
>>>  arch/arm/mach-ep93xx/include/mach/memory.h |   22 -----------
>>>  4 files changed, 2 insertions(+), 89 deletions(-)
>>>  delete mode 100644 arch/arm/mach-ep93xx/include/mach/memory.h
>>>
>>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>>> index c4b6e4a..48b2e88 100644
>>> --- a/arch/arm/Kconfig
>>> +++ b/arch/arm/Kconfig
>>> @@ -371,6 +371,8 @@ config ARCH_EP93XX
>>>  	select ARCH_REQUIRE_GPIOLIB
>>>  	select ARCH_HAS_HOLES_MEMORYMODEL
>>>  	select ARCH_USES_GETTIMEOFFSET
>>> +	select NO_MACH_MEMORY_H
>>> +	select AUTO_ZRELADDR if !ZBOOT_ROM
>> 
>> I would like to see a:
>> 
>> +	select ARM_PATCH_PHYS_VIRT
>> 
>> here.  I realize that the select of NO_MACH_MEMORY_H will cause the selection
>> but it's a bit hidden.
>
> True.  However the default for ARM_PATCH_PHYS_VIRT is set to y when 
> NO_MACH_MEMORY_H is selected which effectively achieve the same thing 
> while allowing you to override that and 
> revert to a constant PHYS_OFFSET if some regression is suspected, or if 
> you use a XIP kernel.  Doing a forceful select of ARM_PATCH_PHYS_VIRT 
> here would prevent that..

Ah.. I overlooked that part.  Leave it as-is then.

>> [snip]
>> 
>>> diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot
>>> index 0ad33f1..e69de29 100644
>>> --- a/arch/arm/mach-ep93xx/Makefile.boot
>>> +++ b/arch/arm/mach-ep93xx/Makefile.boot
>>> @@ -1,14 +0,0 @@
>>> -   zreladdr-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00008000
>>> -params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00000100
>>> -
>>> -   zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0008000
>>> -params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0000100
>>> -
>>> -   zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0008000
>>> -params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0000100
>>> -
>>> -   zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0008000
>>> -params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0000100
>>> -
>>> -   zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0008000
>>> -params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0000100
>> 
>> Is Makefile.boot still needed for anything?
>
> Not if AUTO_ZRELADDR is used and you are not using the bootpImage 
> wrapper.

Ok.  Just seems weird to have an empty Makefile.boot...

>> Other than those comments.  I have boot tested this on a couple ep93xx
>> boards and everything looks fine.
>
> This should allow you to have a kernel configured for multiple ep93xx 
> boards where this was not possible before due to the different RAM 
> offsets hardcoded at build time.

Actually it was "kind" of possible before.  The limitation was that all the
ep93xx boards needed to use the same phys offset.

>> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
>
> May I add a Tested-by tag as well?

Sure...

Tested-by: H Hartley Sweeten <hsweeten@visionengravers.com>

^ permalink raw reply	[flat|nested] 48+ messages in thread

* [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank
  2011-07-07 17:29       ` H Hartley Sweeten
@ 2011-07-07 18:00         ` Nicolas Pitre
  0 siblings, 0 replies; 48+ messages in thread
From: Nicolas Pitre @ 2011-07-07 18:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 7 Jul 2011, H Hartley Sweeten wrote:

> On Thursday, July 07, 2011 10:19 AM, Nicolas Pitre wrote:
> > On Thu, 7 Jul 2011, H Hartley Sweeten wrote:
> >
> >> On Tuesday, July 05, 2011 8:30 PM, Nicolas Pitre wrote:
> >>>
> >>> This all can be selected automatically by default at run time.
> >> 
> >> How?  It would be nice if you mentioned that this patch makes ARCH_EP93XX
> >> use ARM_PATCH_PHYS_VIRT.  It took a bit of digging for me to figure out
> >> where PHYS_OFFSET was now getting set.
> >
> > OK, I'll add some precisions to the commit message.  Of course the first 
> > patch of the series contains detailed information on what is happening 
> > but I don't want to repeat that into the 51 subsequent patches.
> 
> Ah.. I read the first patch to quickly...  Still an updated commit would
> keep it clear.  Something as simple as this.
> 
> This all can be selected automatically by default at run time using
> ARM_PATCH_PHYS_VIRT.

Yes, I've done something similar.

> >>> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> >>> ---
> >>>  arch/arm/Kconfig                           |    2 +
> >>>  arch/arm/mach-ep93xx/Kconfig               |   53 ----------------------------
> >>>  arch/arm/mach-ep93xx/Makefile.boot         |   14 -------
> >>>  arch/arm/mach-ep93xx/include/mach/memory.h |   22 -----------
> >>>  4 files changed, 2 insertions(+), 89 deletions(-)
> >>>  delete mode 100644 arch/arm/mach-ep93xx/include/mach/memory.h
> >>>
> >>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> >>> index c4b6e4a..48b2e88 100644
> >>> --- a/arch/arm/Kconfig
> >>> +++ b/arch/arm/Kconfig
> >>> @@ -371,6 +371,8 @@ config ARCH_EP93XX
> >>>  	select ARCH_REQUIRE_GPIOLIB
> >>>  	select ARCH_HAS_HOLES_MEMORYMODEL
> >>>  	select ARCH_USES_GETTIMEOFFSET
> >>> +	select NO_MACH_MEMORY_H
> >>> +	select AUTO_ZRELADDR if !ZBOOT_ROM
> >> 
> >> I would like to see a:
> >> 
> >> +	select ARM_PATCH_PHYS_VIRT
> >> 
> >> here.  I realize that the select of NO_MACH_MEMORY_H will cause the selection
> >> but it's a bit hidden.
> >
> > True.  However the default for ARM_PATCH_PHYS_VIRT is set to y when 
> > NO_MACH_MEMORY_H is selected which effectively achieve the same thing 
> > while allowing you to override that and 
> > revert to a constant PHYS_OFFSET if some regression is suspected, or if 
> > you use a XIP kernel.  Doing a forceful select of ARM_PATCH_PHYS_VIRT 
> > here would prevent that..
> 
> Ah.. I overlooked that part.  Leave it as-is then.
> 
> >> [snip]
> >> 
> >>> diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot
> >>> index 0ad33f1..e69de29 100644
> >>> --- a/arch/arm/mach-ep93xx/Makefile.boot
> >>> +++ b/arch/arm/mach-ep93xx/Makefile.boot
> >>> @@ -1,14 +0,0 @@
> >>> -   zreladdr-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00008000
> >>> -params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)	:= 0x00000100
> >>> -
> >>> -   zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0008000
> >>> -params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)		:= 0xc0000100
> >>> -
> >>> -   zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0008000
> >>> -params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET)		:= 0xd0000100
> >>> -
> >>> -   zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0008000
> >>> -params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET)		:= 0xe0000100
> >>> -
> >>> -   zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0008000
> >>> -params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET)	:= 0xf0000100
> >> 
> >> Is Makefile.boot still needed for anything?
> >
> > Not if AUTO_ZRELADDR is used and you are not using the bootpImage 
> > wrapper.
> 
> Ok.  Just seems weird to have an empty Makefile.boot...

Well, the build fails without it.  I've left it empty for now.  A 
subsequent cleanup will eventually remove it.

> > This should allow you to have a kernel configured for multiple ep93xx 
> > boards where this was not possible before due to the different RAM 
> > offsets hardcoded at build time.
> 
> Actually it was "kind" of possible before.  The limitation was that all the
> ep93xx boards needed to use the same phys offset.

Well, before this patch, board choices were dependent on either 
EP93XX_SDCE0_PHYS_OFFSET, EP93XX_SDCE3_SYNC_PHYS_OFFSET, 
EP93XX_SDCE3_ASYNC_PHYS_OFFSET, etc.  Now you should be able to support 
them all together with a single kernel binary now that this distinction 
is gone.

> >> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> >
> > May I add a Tested-by tag as well?
> 
> Sure...
> 
> Tested-by: H Hartley Sweeten <hsweeten@visionengravers.com>

Thanks.


Nicolas

^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2011-07-07 18:00 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06  3:29 [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Nicolas Pitre
2011-07-06  3:29 ` [PATCH 02/37] ARM: mach-dove: remove include/mach/memory.h Nicolas Pitre
2011-07-06  3:29 ` [PATCH 03/37] ARM: mach-kirkwood: remove mach/memory.h Nicolas Pitre
2011-07-06  3:29 ` [PATCH 04/37] ARM: mach-loki: " Nicolas Pitre
2011-07-06  3:29 ` [PATCH 05/37] ARM: mach-orion5x: " Nicolas Pitre
2011-07-06  3:29 ` [PATCH 06/37] ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code Nicolas Pitre
2011-07-07 14:30   ` Tony Lindgren
2011-07-06  3:29 ` [PATCH 07/37] ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h Nicolas Pitre
2011-07-07 14:30   ` Tony Lindgren
2011-07-06  3:29 ` [PATCH 08/37] ARM: mach-omap2: remove mach/memory.h Nicolas Pitre
2011-07-07 14:29   ` Tony Lindgren
2011-07-07 15:08   ` Arnd Bergmann
2011-07-07 15:25     ` Nicolas Pitre
2011-07-07 15:46       ` Arnd Bergmann
2011-07-06  3:29 ` [PATCH 09/37] ARM: mach-iop33x: " Nicolas Pitre
2011-07-06  3:29 ` [PATCH 10/37] ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank Nicolas Pitre
2011-07-07 16:46   ` H Hartley Sweeten
2011-07-07 17:18     ` Nicolas Pitre
2011-07-07 17:29       ` H Hartley Sweeten
2011-07-07 18:00         ` Nicolas Pitre
2011-07-06  3:29 ` [PATCH 11/37] ARM: mach-s3c2410: remove memory.h Nicolas Pitre
2011-07-06  3:29 ` [PATCH 12/37] ARM: mach-mv78xx0: remove mach/memory.h Nicolas Pitre
2011-07-06  3:29 ` [PATCH 13/37] ARM: mach-vexpress: " Nicolas Pitre
2011-07-06  3:29 ` [PATCH 14/37] ARM: mach-w90x900: " Nicolas Pitre
2011-07-06  3:29 ` [PATCH 15/37] ARM: mach-pnx4008: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 16/37] ARM: mach-iop32x: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 17/37] ARM: mach-nomadik: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 18/37] ARM: mach-ux500: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 19/37] ARM: mach-versatile: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 20/37] ARM: mach-netx: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 21/37] ARM: mach-lpc32xx: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 22/37] ARM: mach-gemini: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 23/37] ARM: mach-msm: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 24/37] ARM: spear: remove mach/memory.h and plat/memory.h Nicolas Pitre
2011-07-06  3:30 ` [PATCH 25/37] ARM: mach-mxs: remove mach/memory.h Nicolas Pitre
2011-07-06  3:30 ` [PATCH 26/37] ARM: mach-nuc93x: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 27/37] ARM: mach-cns3xxx: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 28/37] ARM: mach-mmp: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 29/37] ARM: plat-tcc: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 30/37] ARM: mach-tegra: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 31/37] ARM: mach-s5pc100: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 32/37] ARM: mach-vt8500: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 33/37] ARM: mach-shark: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 34/37] ARM: mach-ebsa110: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 35/37] ARM: mach-h720x: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 36/37] ARM: mach-ixp4xx: " Nicolas Pitre
2011-07-06  3:30 ` [PATCH 37/37] ARM: mach-pxa: " Nicolas Pitre
2011-07-06  6:38 ` [PATCH 01/37] ARM: prepare for removal of a bunch of <mach/memory.h> files Barry Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).