Patchwork ARM: determine PHYS_OFFSET automatically for no-mmu configs

login
register
mail settings
Submitter Uwe Kleine-König
Date Dec. 2, 2011, 8:23 p.m.
Message ID <1322857415-26753-1-git-send-email-u.kleine-koenig@pengutronix.de>
Download mbox | patch
Permalink /patch/128963/
State New
Headers show

Comments

Uwe Kleine-König - Dec. 2, 2011, 8:23 p.m.
From: Nicolas Pitre <nicolas.pitre@linaro.org>

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/Kconfig |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Nicolas Pitre - Dec. 2, 2011, 10:19 p.m.
On Fri, 2 Dec 2011, Uwe Kleine-König wrote:

> From: Nicolas Pitre <nicolas.pitre@linaro.org>
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

I submitted this to the patch system:

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7186/1


Nicolas

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 44789ef..763de24 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -220,8 +220,9 @@  config NEED_MACH_MEMORY_H
 	  be avoided when possible.
 
 config PHYS_OFFSET
-	hex "Physical address of main memory"
+	hex "Physical address of main memory" if MMU
 	depends on !ARM_PATCH_PHYS_VIRT && !NEED_MACH_MEMORY_H
+	default DRAM_BASE if !MMU
 	help
 	  Please provide the physical address corresponding to the
 	  location of main memory in your system.