diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-09 12:23:25 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-09 12:23:25 -0400 |
commit | b412a49af970e703124fa3259bf24165c0c74024 (patch) | |
tree | fe0d7a8126e2c67494af7009b7edd2e82726dfd2 /arch/sh | |
parent | 1eca133cc9f978a8c44788fc5b2fe54219f9425c (diff) |
sh: Consolidate the boot link and entry offset definitions.
Consolidate these in a single place in the Kconfig menus. At the same
time, disable their interactivity and set them according to the board
config defaults.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 22 | ||||
-rw-r--r-- | arch/sh/mm/Kconfig | 8 |
2 files changed, 18 insertions, 12 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index bca6a2a0759c..a9dee13ddd8b 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -694,23 +694,37 @@ endmenu | |||
694 | menu "Boot options" | 694 | menu "Boot options" |
695 | 695 | ||
696 | config ZERO_PAGE_OFFSET | 696 | config ZERO_PAGE_OFFSET |
697 | hex "Zero page offset" | 697 | hex |
698 | default "0x00004000" if SH_SH03 | 698 | default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \ |
699 | default "0x00010000" if PAGE_SIZE_64KB | 699 | SH_7751_SOLUTION_ENGINE |
700 | default "0x00004000" if PAGE_SIZE_16KB || SH_SH03 | ||
700 | default "0x00002000" if PAGE_SIZE_8KB | 701 | default "0x00002000" if PAGE_SIZE_8KB |
701 | default "0x00001000" | 702 | default "0x00001000" |
702 | help | 703 | help |
703 | This sets the default offset of zero page. | 704 | This sets the default offset of zero page. |
704 | 705 | ||
705 | config BOOT_LINK_OFFSET | 706 | config BOOT_LINK_OFFSET |
706 | hex "Link address offset for booting" | 707 | hex |
708 | default "0x00210000" if SH_SHMIN | ||
707 | default "0x00400000" if SH_CAYMAN | 709 | default "0x00400000" if SH_CAYMAN |
710 | default "0x00810000" if SH_7780_SOLUTION_ENGINE | ||
711 | default "0x009e0000" if SH_TITAN | ||
712 | default "0x01800000" if SH_SDK7780 | ||
713 | default "0x02000000" if SH_EDOSK7760 | ||
708 | default "0x00800000" | 714 | default "0x00800000" |
709 | help | 715 | help |
710 | This option allows you to set the link address offset of the zImage. | 716 | This option allows you to set the link address offset of the zImage. |
711 | This can be useful if you are on a board which has a small amount of | 717 | This can be useful if you are on a board which has a small amount of |
712 | memory. | 718 | memory. |
713 | 719 | ||
720 | config ENTRY_OFFSET | ||
721 | hex | ||
722 | default "0x00001000" if PAGE_SIZE_4KB | ||
723 | default "0x00002000" if PAGE_SIZE_8KB | ||
724 | default "0x00004000" if PAGE_SIZE_16KB | ||
725 | default "0x00010000" if PAGE_SIZE_64KB | ||
726 | default "0x00000000" | ||
727 | |||
714 | config UBC_WAKEUP | 728 | config UBC_WAKEUP |
715 | bool "Wakeup UBC on startup" | 729 | bool "Wakeup UBC on startup" |
716 | depends on CPU_SH4 && !CPU_SH4A | 730 | depends on CPU_SH4 && !CPU_SH4A |
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index d4079cab2d58..b900d2cd18f7 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -201,14 +201,6 @@ config PAGE_SIZE_64KB | |||
201 | 201 | ||
202 | endchoice | 202 | endchoice |
203 | 203 | ||
204 | config ENTRY_OFFSET | ||
205 | hex | ||
206 | default "0x00001000" if PAGE_SIZE_4KB | ||
207 | default "0x00002000" if PAGE_SIZE_8KB | ||
208 | default "0x00004000" if PAGE_SIZE_16KB | ||
209 | default "0x00010000" if PAGE_SIZE_64KB | ||
210 | default "0x00000000" | ||
211 | |||
212 | choice | 204 | choice |
213 | prompt "HugeTLB page size" | 205 | prompt "HugeTLB page size" |
214 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU | 206 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU |