Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1337488
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values |
| Date | 2016-02-18 17:10 +0100 |
| Message-ID | <r3zjs-84l-7@gated-at.bofh.it> (permalink) |
| References | <r3xrj-6Oj-3@gated-at.bofh.it> <r3xrj-6Oj-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 18 Feb 2016, Arnd Bergmann wrote: > For platforms that are not yet converted to ARCH_MULTIPLATFORM, > we can disable CONFIG_ARM_PATCH_PHYS_VIRT, which in turn requires > setting a correct address here. > > As we actualy know what all the values are supposed to be based > on the old mach/memory.h header file contents (from git history), > we can just add them here. > > This also solves a problem in Kconfig where 'make randconfig' > fails to continue if no number is selected for a 'hex' option. > Users can still override the number at configuration time, e.g. > when the memory visible to the kernel starts at a nonstandard > address on some machine, but it should no longer be required > now. > > To make this foolproof, another patch is required in mach-davinci > to prevent a configuration with both DMx and DA8xx enabled but > ARM_PATCH_PHYS_VIRT disabled. The two patches however can be > merged independently as there is no direct dependency between > them. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Nicolas Pitre <nico@linaro.org> Is there a way to provide a default for defaults? > --- > arch/arm/Kconfig | 20 +++++++++++++++++--- > 1 file changed, 17 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index be00b53f399b..7839c9923709 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -271,15 +271,29 @@ config PHYS_OFFSET > depends on !ARM_PATCH_PHYS_VIRT > default DRAM_BASE if !MMU > default 0x00000000 if ARCH_EBSA110 || \ > + ARCH_DOVE || \ > ARCH_FOOTBRIDGE || \ > + (ARCH_GEMINI && GEMINI_MEM_SWAP) || \ > ARCH_INTEGRATOR || \ > + ARCH_IOP33X || \ > ARCH_IOP13XX || \ > + ARCH_IXP4XX || \ > ARCH_KS8695 || \ > - (ARCH_REALVIEW && !REALVIEW_HIGH_PHYS_OFFSET) > - default 0x10000000 if ARCH_OMAP1 || ARCH_RPC > + (ARCH_REALVIEW && !REALVIEW_HIGH_PHYS_OFFSET) || \ > + ARCH_W90X900 > + default 0x10000000 if (ARCH_GEMINI && !GEMINI_MEM_SWAP) || \ > + ARCH_OMAP1 || \ > + ARCH_RPC > default 0x20000000 if ARCH_S5PV210 > + default 0x30000000 if ARCH_S3C24XX > default 0x70000000 if REALVIEW_HIGH_PHYS_OFFSET > - default 0xc0000000 if ARCH_SA1100 > + default 0x80000000 if (ARCH_DAVINCI_DMx && !ARCH_DAVINCI_DA8XX) || \ > + ARCH_NETX || \ > + ARCH_LPC32XX > + default 0xa0000000 if ARCH_IOP32X || ARCH_PXA > + default 0xc0000000 if (ARCH_DAVINCI_DA8XX && !ARCH_DAVINCI_DMx) || \ > + ARCH_CLPS711X || \ > + ARCH_SA1100 > help > Please provide the physical address corresponding to the > location of main memory in your system. > -- > 2.7.0 > >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann <arnd@arndb.de> - 2016-02-18 15:10 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-18 17:10 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann <arnd@arndb.de> - 2016-02-19 09:40 +0100
RE: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Chris Brandt <Chris.Brandt@renesas.com> - 2016-02-19 15:30 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann <arnd@arndb.de> - 2016-02-19 16:40 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-19 17:50 +0100
RE: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Chris Brandt <Chris.Brandt@renesas.com> - 2016-02-19 18:20 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-19 19:00 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-19 17:20 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann <arnd@arndb.de> - 2016-02-19 17:30 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-19 18:40 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-19 19:10 +0100
Re: [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann <arnd@arndb.de> - 2016-02-19 22:20 +0100
csiph-web