Skip to contentSkip to conversation

ARM: prepare for removal of a bunch of <mach/memory.h> files

PATCH New Nicolas Pitre 5 participants 48 messages Jul 6, 2011 – Jul 7, 2011

Subsystems (18)
lore
Share & tools
lore
#0 lore raw

PATCH 1/37 ARM: prepare for removal of a bunch of <mach/memory.h> files

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.

---
 arch/arm/Kconfig              |   15 ++++++++++++++-
 arch/arm/include/asm/memory.h |    6 +++++-
 2 files changed, 19 insertions(+), 2 deletions(-)
arch/arm/Kconfig +14 -1
index 9adc278..9fc052c 100644
@@ -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"
arch/arm/include/asm/memory.h +5 -1
index deb2eaa..2d21414 100644
@@ -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
Signature · 1 line
1.7.4
#1 lore raw

PATCH 2/37 ARM: mach-dove: remove include/mach/memory.h

---
 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
arch/arm/Kconfig +1 -0
index 9fc052c..9d5ad30 100644
@@ -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
 
arch/arm/mach-dove/include/mach/memory.h deleted +0 -10
deleted file mode 100644
index bbc93fe..0000000
@@ -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
Signature · 1 line
1.7.4
#2 lore raw

PATCH 3/37 ARM: mach-kirkwood: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 9d5ad30..3fc9d17 100644
@@ -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.
arch/arm/mach-kirkwood/include/mach/memory.h deleted +0 -10
deleted file mode 100644
index 4600b44..0000000
@@ -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
Signature · 1 line
1.7.4
#3 lore raw

PATCH 4/37 ARM: mach-loki: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 3fc9d17..fd6d633 100644
@@ -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.
 
arch/arm/mach-loki/include/mach/memory.h deleted +0 -10
deleted file mode 100644
index 6636665..0000000
@@ -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
Signature · 1 line
1.7.4
#4 lore raw

PATCH 5/37 ARM: mach-orion5x: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index fd6d633..e8004b4 100644
@@ -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),
arch/arm/mach-orion5x/include/mach/memory.h deleted +0 -12
deleted file mode 100644
index 6769917..0000000
@@ -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
Signature · 1 line
1.7.4
#5 lore raw

PATCH 6/37 ARM: plat-omap: remove CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE related code

In reply to Nicolas Pitre

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

---
 arch/arm/plat-omap/include/plat/memory.h |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
arch/arm/plat-omap/include/plat/memory.h +0 -13
index e6720aa..7f9df6f 100644
@@ -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
 
Signature · 1 line
1.7.4
#7 lore raw

PATCH 7/37 ARM: OMAP: move OMAP1 memory config from plat/memory.h to its mach/memory.h

In reply to Nicolas Pitre
---
 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(-)
arch/arm/mach-omap1/include/mach/memory.h +53 -1
index e9b600c..5f96515 100644
@@ -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
+
arch/arm/plat-omap/include/plat/memory.h +1 -44

54 lines not on this page · raw message

Signature · 1 line
1.7.4
#9 lore raw

PATCH 8/37 ARM: mach-omap2: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/mach-omap2/include/mach/memory.h deleted +0 -5
deleted file mode 100644
index ca6d32a..0000000
@@ -1,5 +0,0 @@
-/*
- * arch/arm/mach-omap2/include/mach/memory.h
- */
-
-#include <plat/memory.h>
arch/arm/plat-omap/Kconfig +1 -0
index 49a4c75..db30a1d 100644
@@ -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"
 
arch/arm/plat-omap/include/plat/memory.h deleted +0 -46

46 lines not on this page · raw message

Signature · 1 line
1.7.4
#11 lore raw

PATCH 8/37 ARM: mach-omap2: remove mach/memory.h

In reply to Nicolas Pitre

arch/arm/plat-omap/include/plat/memory.h line 45

Quoted 10 lines · Nicolas Pitre
arch/arm/plat-omap/include/plat/memory.h deleted +0 -10
-/*
- * 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
#12 lore raw

PATCH 8/37 ARM: mach-omap2: remove mach/memory.h

Quoted 14 lines · Arnd Bergmann

arch/arm/plat-omap/include/plat/memory.h line 45

Quoted 10 lines · Nicolas Pitre
arch/arm/plat-omap/include/plat/memory.h deleted +0 -10
-/*
- * 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).

Quoted 9 lines

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

#13 lore raw

PATCH 8/37 ARM: mach-omap2: remove mach/memory.h

Quoted 7 lines · Nicolas Pitre

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

#14 lore raw

PATCH 9/37 ARM: mach-iop33x: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index e8004b4..c4b6e4a 100644
@@ -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.
 
arch/arm/mach-iop33x/include/mach/memory.h deleted +0 -13
deleted file mode 100644
index 8e1daf7..0000000
@@ -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
Signature · 1 line
1.7.4
#15 lore raw

PATCH 10/37 ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank

In reply to Nicolas Pitre

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

---
 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
arch/arm/Kconfig +2 -0
index c4b6e4a..48b2e88 100644
@@ -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.
 
arch/arm/mach-ep93xx/Kconfig +0 -53

157 lines not on this page · raw message

arch/arm/mach-ep93xx/Makefile.boot +0 -14
index 0ad33f1..e69de29 100644
@@ -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
arch/arm/mach-ep93xx/include/mach/memory.h deleted +0 -22
deleted file mode 100644
index c9400cf..0000000
@@ -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
Signature · 1 line
1.7.4
#16 lore raw

PATCH 10/37 ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank

Quoted 2 lines · Nicolas Pitre

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.

Quoted 14 lines
---
 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
arch/arm/Kconfig +0 -0
index c4b6e4a..48b2e88 100644

arch/arm/Kconfig config ARCH_EP93XX · line 375

Quoted 5 lines
arch/arm/Kconfig +2 -0
@@ -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]

Quoted 9 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -4
index 0ad33f1..e69de29 100644
@@ -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

arch/arm/mach-ep93xx/Makefile.boot line 14

Quoted 10 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -10
-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.

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

#17 lore raw

PATCH 10/37 ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank

Quoted 7 lines · H Hartley Sweeten
Quoted 2 lines · Nicolas Pitre

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.

Quoted 24 lines
Quoted 14 lines
---
 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
arch/arm/Kconfig +0 -0
index c4b6e4a..48b2e88 100644

arch/arm/Kconfig config ARCH_EP93XX · line 375

Quoted 5 lines
arch/arm/Kconfig +2 -0
@@ -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:

(quoted diff) +1 -0
+	select ARM_PATCH_PHYS_VIRT
Quoted 2 lines

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..

Quoted 15 lines

[snip]

Quoted 13 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -8
index 0ad33f1..e69de29 100644
@@ -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
Quoted 8 lines

arch/arm/mach-ep93xx/Makefile.boot line 14

Quoted 6 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -6
-
-   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.

Quoted 2 lines

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.

Quoted 1 line

May I add a Tested-by tag as well?

Nicolas

#18 lore raw

PATCH 10/37 ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank

Quoted 6 lines · Nicolas Pitre
Quoted 4 lines · H Hartley Sweeten
Quoted 2 lines · Nicolas Pitre

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

Quoted 7 lines
Quoted 3 lines

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.

Quoted 24 lines
Quoted 24 lines
Quoted 14 lines
---
 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
arch/arm/Kconfig +0 -0
index c4b6e4a..48b2e88 100644

arch/arm/Kconfig config ARCH_EP93XX · line 375

Quoted 5 lines
arch/arm/Kconfig +2 -0
@@ -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:

(quoted diff) +1 -0
+	select ARM_PATCH_PHYS_VIRT
Quoted 9 lines
Quoted 2 lines

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.

Quoted 24 lines
Quoted 15 lines

[snip]

Quoted 13 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -8
index 0ad33f1..e69de29 100644
@@ -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
Quoted 8 lines

arch/arm/mach-ep93xx/Makefile.boot line 14

Quoted 6 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -6
-
-   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?

Quoted 2 lines

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

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

Quoted 6 lines
Quoted 2 lines

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.

Quoted 3 lines
Quoted 1 line

May I add a Tested-by tag as well?

Sure...

#19 lore raw

PATCH 10/37 ARM: mach-ep93xx: remove mach/memory.h and Kconfig selection of SDRAM bank

Quoted 15 lines · H Hartley Sweeten
Quoted 6 lines · Nicolas Pitre
Quoted 4 lines · H Hartley Sweeten
Quoted 2 lines · Nicolas Pitre

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

Quoted 7 lines
Quoted 3 lines

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.

Quoted 5 lines

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.

Quoted 60 lines
Quoted 24 lines
Quoted 24 lines
Quoted 14 lines
---
 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
arch/arm/Kconfig +0 -0
index c4b6e4a..48b2e88 100644

arch/arm/Kconfig config ARCH_EP93XX · line 375

Quoted 5 lines
arch/arm/Kconfig +2 -0
@@ -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:

(quoted diff) +1 -0
+	select ARM_PATCH_PHYS_VIRT
Quoted 9 lines
Quoted 2 lines

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.

Quoted 24 lines
Quoted 23 lines

[snip]

Quoted 9 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -4
index 0ad33f1..e69de29 100644
@@ -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

arch/arm/mach-ep93xx/Makefile.boot line 14

Quoted 10 lines
arch/arm/mach-ep93xx/Makefile.boot +0 -10
-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?

Quoted 4 lines
Quoted 2 lines

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

May I add a Tested-by tag as well?

Sure...

Thanks.

Nicolas

#20 lore raw

PATCH 11/37 ARM: mach-s3c2410: remove memory.h

In reply to Nicolas Pitre

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.

---
 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
arch/arm/Kconfig +1 -0
index 48b2e88..869c7b6 100644
@@ -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
arch/arm/mach-s3c2400/include/mach/memory.h deleted +0 -20
deleted file mode 100644
index 3f33670..0000000
@@ -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 <[email protected]>
- *
- *  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
arch/arm/mach-s3c2410/include/mach/memory.h deleted +0 -16
deleted file mode 100644
index f92b97b..0000000
@@ -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
Signature · 1 line
1.7.4
#21 lore raw

PATCH 12/37 ARM: mach-mv78xx0: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 869c7b6..790071c 100644
@@ -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.
arch/arm/mach-mv78xx0/include/mach/memory.h deleted +0 -10
deleted file mode 100644
index a648c51..0000000
@@ -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
Signature · 1 line
1.7.4
#22 lore raw

PATCH 13/37 ARM: mach-vexpress: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 790071c..8690b96 100644
@@ -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.
 
arch/arm/mach-vexpress/include/mach/memory.h deleted +0 -25
deleted file mode 100644
index 5b7fcd4..0000000
@@ -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
Signature · 1 line
1.7.4
#23 lore raw

PATCH 14/37 ARM: mach-w90x900: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 8690b96..af416fc 100644
@@ -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
arch/arm/mach-w90x900/include/mach/memory.h deleted +0 -23
deleted file mode 100644
index f02905b..0000000
@@ -1,23 +0,0 @@
-/*
- * arch/arm/mach-w90x900/include/mach/memory.h
- *
- * Copyright (c) 2008 Nuvoton technology corporation
- * All rights reserved.
- *
- * Wan ZongShun <[email protected]>
- *
- * 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
Signature · 1 line
1.7.4
#24 lore raw

PATCH 15/37 ARM: mach-pnx4008: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index af416fc..4fc61db 100644
@@ -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.
 
arch/arm/mach-pnx4008/include/mach/memory.h deleted +0 -21
deleted file mode 100644
index 1275db6..0000000
@@ -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
Signature · 1 line
1.7.4
#25 lore raw

PATCH 16/37 ARM: mach-iop32x: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 4fc61db..8a23334 100644
@@ -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.
arch/arm/mach-iop32x/include/mach/memory.h deleted +0 -13
deleted file mode 100644
index 169cc23..0000000
@@ -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
Signature · 1 line
1.7.4
#26 lore raw

PATCH 17/37 ARM: mach-nomadik: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 8a23334..eef880d 100644
@@ -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
 
arch/arm/mach-nomadik/include/mach/memory.h deleted +0 -28
deleted file mode 100644
index d332521..0000000
@@ -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
Signature · 1 line
1.7.4
#27 lore raw

PATCH 18/37 ARM: mach-ux500: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index eef880d..24ad871 100644
@@ -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
 
arch/arm/mach-ux500/include/mach/memory.h deleted +0 -18
deleted file mode 100644
index 2ef697a..0000000
@@ -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
Signature · 1 line
1.7.4
#28 lore raw

PATCH 19/37 ARM: mach-versatile: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 24ad871..06bdaf0 100644
@@ -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.
 
arch/arm/mach-versatile/include/mach/memory.h deleted +0 -28
deleted file mode 100644
index dacc9d8..0000000
@@ -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
Signature · 1 line
1.7.4
#29 lore raw

PATCH 20/37 ARM: mach-netx: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 06bdaf0..95396dc 100644
@@ -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
 
arch/arm/mach-netx/include/mach/memory.h deleted +0 -26
deleted file mode 100644
index 5956149..0000000
@@ -1,26 +0,0 @@
-/*
- *  arch/arm/mach-netx/include/mach/memory.h
- *
- * Copyright (C) 2005 Sascha Hauer <[email protected]>, 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
-
Signature · 1 line
1.7.4
#30 lore raw

PATCH 21/37 ARM: mach-lpc32xx: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 95396dc..cecbc51 100644
@@ -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
 
arch/arm/mach-lpc32xx/include/mach/memory.h deleted +0 -27
deleted file mode 100644
index a647dd6..0000000
@@ -1,27 +0,0 @@
-/*
- * arch/arm/mach-lpc32xx/include/mach/memory.h
- *
- * Author: Kevin Wells <[email protected]>
- *
- * 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
Signature · 1 line
1.7.4
#31 lore raw

PATCH 22/37 ARM: mach-gemini: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index cecbc51..8495852 100644
@@ -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
 
arch/arm/mach-gemini/include/mach/memory.h deleted +0 -19
deleted file mode 100644
index a50915f..0000000
@@ -1,19 +0,0 @@
-/*
- *  Copyright (C) 2001-2006 Storlink, Corp.
- *  Copyright (C) 2008-2009 Paulius Zaleckas <[email protected]>
- *
- * 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 */
Signature · 1 line
1.7.4
#32 lore raw

PATCH 23/37 ARM: mach-msm: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 8495852..44e8fdd 100644
@@ -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
arch/arm/mach-msm/include/mach/memory.h deleted +0 -35
deleted file mode 100644
index f2f8d29..0000000
@@ -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
-
Signature · 1 line
1.7.4
#33 lore raw

PATCH 24/37 ARM: spear: remove mach/memory.h and plat/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 44e8fdd..755a85d 100644
@@ -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).
 
arch/arm/mach-spear3xx/include/mach/memory.h deleted +0 -19
deleted file mode 100644
index 5173522..0000000
@@ -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<[email protected]>
- *
- * 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 */
arch/arm/mach-spear6xx/include/mach/memory.h deleted +0 -19
deleted file mode 100644
index 781f088..0000000
@@ -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<[email protected]>
- *
- * 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 */
arch/arm/plat-spear/include/plat/memory.h deleted +0 -20
deleted file mode 100644
index 7e3599e..0000000
@@ -1,20 +0,0 @@
-/*
- * arch/arm/plat-spear/include/plat/memory.h
- *
- * Memory map for SPEAr platform
- *
- * Copyright (C) 2009 ST Microelectronics
- * Viresh Kumar<[email protected]>
- *
- * 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 */
Signature · 1 line
1.7.4
#34 lore raw

PATCH 25/37 ARM: mach-mxs: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 755a85d..a2e96e8 100644
@@ -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
 
arch/arm/mach-mxs/include/mach/memory.h deleted +0 -24
deleted file mode 100644
index b5420a5..0000000
@@ -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__ */
Signature · 1 line
1.7.4
#35 lore raw

PATCH 26/37 ARM: mach-nuc93x: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index a2e96e8..a3577a2 100644
@@ -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.
arch/arm/mach-nuc93x/include/mach/memory.h deleted +0 -21
deleted file mode 100644
index ef9864b..0000000
@@ -1,21 +0,0 @@
-/*
- * arch/arm/mach-nuc93x/include/mach/memory.h
- *
- * Copyright (c) 2008 Nuvoton technology corporation
- * All rights reserved.
- *
- * Wan ZongShun <[email protected]>
- *
- * 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
Signature · 1 line
1.7.4
#36 lore raw

PATCH 27/37 ARM: mach-cns3xxx: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index a3577a2..ab78899 100644
@@ -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.
 
arch/arm/mach-cns3xxx/include/mach/memory.h deleted +0 -26
deleted file mode 100644
index dc16c5c..0000000
@@ -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
Signature · 1 line
1.7.4
#37 lore raw

PATCH 28/37 ARM: mach-mmp: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index ab78899..16dcd0a 100644
@@ -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.
 
arch/arm/mach-mmp/include/mach/memory.h deleted +0 -14
deleted file mode 100644
index d68b50a..0000000
@@ -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 */
Signature · 1 line
1.7.4
#38 lore raw

PATCH 29/37 ARM: plat-tcc: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 16dcd0a..8b221f2 100644
@@ -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.
 
arch/arm/plat-tcc/include/mach/memory.h deleted +0 -18
deleted file mode 100644
index 28a6e0c..0000000
@@ -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 <[email protected]>
- *
- * 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
Signature · 1 line
1.7.4
#39 lore raw

PATCH 30/37 ARM: mach-tegra: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 8b221f2..5eedf03 100644
@@ -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).
arch/arm/mach-tegra/include/mach/memory.h deleted +0 -28
deleted file mode 100644
index 537db3a..0000000
@@ -1,28 +0,0 @@
-/*
- * arch/arm/mach-tegra/include/mach/memory.h
- *
- * Copyright (C) 2010 Google, Inc.
- *
- * Author:
- *	Colin Cross <[email protected]>
- *	Erik Gilling <[email protected]>
- *
- * 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
-
Signature · 1 line
1.7.4
#40 lore raw

PATCH 31/37 ARM: mach-s5pc100: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 5eedf03..12b07d1 100644
@@ -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
 
arch/arm/mach-s5pc100/include/mach/memory.h deleted +0 -18
deleted file mode 100644
index bda4e79..0000000
@@ -1,18 +0,0 @@
-/* arch/arm/mach-s5pc100/include/mach/memory.h
- *
- * Copyright 2008 Samsung Electronics Co.
- *      Byungho Min <[email protected]>
- *
- * 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
Signature · 1 line
1.7.4
#41 lore raw

PATCH 32/37 ARM: mach-vt8500: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 12b07d1..d6b8c92 100644
@@ -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
arch/arm/mach-vt8500/include/mach/memory.h deleted +0 -28
deleted file mode 100644
index 175f914..0000000
@@ -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
Signature · 1 line
1.7.4
#42 lore raw

PATCH 33/37 ARM: mach-shark: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index d6b8c92..8e0763b 100644
@@ -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>).
arch/arm/mach-shark/include/mach/memory.h deleted +0 -20
deleted file mode 100644
index e19df6f..0000000
@@ -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
Signature · 1 line
1.7.4
#43 lore raw

PATCH 34/37 ARM: mach-ebsa110: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 8e0763b..63ac56d 100644
@@ -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
arch/arm/mach-ebsa110/include/mach/memory.h deleted +0 -24
deleted file mode 100644
index 2af7ec4..0000000
@@ -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
Signature · 1 line
1.7.4
#44 lore raw

PATCH 35/37 ARM: mach-h720x: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 63ac56d..e105da4 100644
@@ -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
 
arch/arm/mach-h720x/include/mach/memory.h deleted +0 -11
deleted file mode 100644
index 96dcf50..0000000
@@ -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
Signature · 1 line
1.7.4
#45 lore raw

PATCH 36/37 ARM: mach-ixp4xx: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index e105da4..46d4c84 100644
@@ -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.
 
arch/arm/mach-ixp4xx/include/mach/memory.h deleted +0 -17
deleted file mode 100644
index 4caf176..0000000
@@ -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
Signature · 1 line
1.7.4
#46 lore raw

PATCH 37/37 ARM: mach-pxa: remove mach/memory.h

In reply to Nicolas Pitre
---
 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
arch/arm/Kconfig +1 -0
index 46d4c84..ec1c799 100644
@@ -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.
 
arch/arm/mach-pxa/include/mach/memory.h deleted +0 -20
deleted file mode 100644
index d05a597..0000000
@@ -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
arch/arm/mach-pxa/pxa25x.c +1 -1
index fed363c..8b18ccc 100644
@@ -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;
 	}
 }
arch/arm/mach-pxa/pxa27x.c +1 -1
index 2fecbec..81e0052 100644
@@ -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;
 	}
 }
arch/arm/mach-pxa/pxa3xx.c +1 -1
index 8521d7d..4d48321 100644
@@ -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;
 
arch/arm/mach-pxa/zeus.c +1 -1
index 56fa747..c48b558 100644
@@ -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
Signature · 1 line
1.7.4
#47 lore raw

PATCH 1/37 ARM: prepare for removal of a bunch of <mach/memory.h> files

In reply to Nicolas Pitre

2011/7/6 Nicolas Pitre <[email protected]>:

Quoted 8 lines

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

Quoted 79 lines

---
?arch/arm/Kconfig ? ? ? ? ? ? ?| ? 15 ++++++++++++++- ?arch/arm/include/asm/memory.h | ? ?6 +++++- ?2 files changed, 19 insertions(+), 2 deletions(-)

arch/arm/Kconfig +0 -0
index 9adc278..9fc052c 100644
@@ -191,11 +191,17 @@ config VECTORS_BASE

? ? ? ?help
? ? ? ? ?The base address of exception vectors.

arch/arm/Kconfig +5 -0
+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

arch/arm/Kconfig +0 -0
@@ -213,6 +219,13 @@ config ARM_PATCH_PHYS_VIRT_16BIT

? ? ? ? ?to allow physical memory down to a theoretical minimum of 64K ? ? ? ? ?boundaries.

arch/arm/Kconfig +7 -0
+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"

arch/arm/include/asm/memory.h +0 -0
index deb2eaa..2d21414 100644
@@ -16,7 +16,6 @@

?#include <linux/compiler.h>
?#include <linux/const.h>
?#include <linux/types.h>
-#include <mach/memory.h>
?#include <asm/sizes.h>

?/*

arch/arm/include/asm/memory.h +0 -0
@@ -200,8 +199,13 @@ static inline unsigned long __phys_to_virt(unsigned long x)

?#endif

?#ifndef PHYS_OFFSET

arch/arm/include/asm/memory.h +4 -0
+#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