diff mbox

ARM: determine PHYS_OFFSET automatically for no-mmu configs

Message ID 1322857415-26753-1-git-send-email-u.kleine-koenig@pengutronix.de
State New
Headers show

Commit Message

Uwe Kleine-König Dec. 2, 2011, 8:23 p.m. UTC
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(-)

Comments

Nicolas Pitre Dec. 2, 2011, 10:19 p.m. UTC | #1
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
diff mbox

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.