diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-08-13 19:45:54 -0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-08-20 15:28:03 -0400 |
commit | aea731c81f998af5e45654459bac24a1c808fb22 (patch) | |
tree | 89988ef2493bf7ca73f27351db51d5a6c7dcea0f /arch/xtensa/Kconfig | |
parent | f79e4d5f92a129a1159c973735007d4ddc8541f3 (diff) |
xtensa: rework {CONFIG,PLATFORM}_DEFAULT_MEM_START
Drop PLATFORM_DEFAULT_MEM_START from the platform/hardware.h headers.
Provide definition of CONFIG_DEFAULT_MEM_START always, allow changing it
only in noMMU configurations when PLATFORM_WANT_DEFAULT_MEM is selected.
Change prompt and description so that it's clear that it controls
PAGE_OFFSET and PHYS_OFFSET.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Kconfig')
-rw-r--r-- | arch/xtensa/Kconfig | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 787515c6770e..e82ed7216eca 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig | |||
@@ -530,14 +530,13 @@ config PLATFORM_WANT_DEFAULT_MEM | |||
530 | def_bool n | 530 | def_bool n |
531 | 531 | ||
532 | config DEFAULT_MEM_START | 532 | config DEFAULT_MEM_START |
533 | hex "Physical address of the default memory area start" | 533 | hex |
534 | depends on PLATFORM_WANT_DEFAULT_MEM | 534 | prompt "PAGE_OFFSET/PHYS_OFFSET" if !MMU && PLATFORM_WANT_DEFAULT_MEM |
535 | default 0x00000000 if MMU | 535 | default 0x60000000 if PLATFORM_WANT_DEFAULT_MEM |
536 | default 0x60000000 if !MMU | 536 | default 0x00000000 |
537 | help | 537 | help |
538 | This is the base address of the default memory area. | 538 | This is the base address used for both PAGE_OFFSET and PHYS_OFFSET |
539 | Default memory area has platform-specific meaning, it may be used | 539 | in noMMU configurations. |
540 | for e.g. early cache initialization. | ||
541 | 540 | ||
542 | If unsure, leave the default value here. | 541 | If unsure, leave the default value here. |
543 | 542 | ||