提交 b412a49a 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 1eca133c
...@@ -694,23 +694,37 @@ endmenu ...@@ -694,23 +694,37 @@ endmenu
menu "Boot options" menu "Boot options"
config ZERO_PAGE_OFFSET config ZERO_PAGE_OFFSET
hex "Zero page offset" hex
default "0x00004000" if SH_SH03 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
default "0x00010000" if PAGE_SIZE_64KB SH_7751_SOLUTION_ENGINE
default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
default "0x00002000" if PAGE_SIZE_8KB default "0x00002000" if PAGE_SIZE_8KB
default "0x00001000" default "0x00001000"
help help
This sets the default offset of zero page. This sets the default offset of zero page.
config BOOT_LINK_OFFSET config BOOT_LINK_OFFSET
hex "Link address offset for booting" hex
default "0x00210000" if SH_SHMIN
default "0x00400000" if SH_CAYMAN default "0x00400000" if SH_CAYMAN
default "0x00810000" if SH_7780_SOLUTION_ENGINE
default "0x009e0000" if SH_TITAN
default "0x01800000" if SH_SDK7780
default "0x02000000" if SH_EDOSK7760
default "0x00800000" default "0x00800000"
help help
This option allows you to set the link address offset of the zImage. This option allows you to set the link address offset of the zImage.
This can be useful if you are on a board which has a small amount of This can be useful if you are on a board which has a small amount of
memory. memory.
config ENTRY_OFFSET
hex
default "0x00001000" if PAGE_SIZE_4KB
default "0x00002000" if PAGE_SIZE_8KB
default "0x00004000" if PAGE_SIZE_16KB
default "0x00010000" if PAGE_SIZE_64KB
default "0x00000000"
config UBC_WAKEUP config UBC_WAKEUP
bool "Wakeup UBC on startup" bool "Wakeup UBC on startup"
depends on CPU_SH4 && !CPU_SH4A depends on CPU_SH4 && !CPU_SH4A
......
...@@ -201,14 +201,6 @@ config PAGE_SIZE_64KB ...@@ -201,14 +201,6 @@ config PAGE_SIZE_64KB
endchoice endchoice
config ENTRY_OFFSET
hex
default "0x00001000" if PAGE_SIZE_4KB
default "0x00002000" if PAGE_SIZE_8KB
default "0x00004000" if PAGE_SIZE_16KB
default "0x00010000" if PAGE_SIZE_64KB
default "0x00000000"
choice choice
prompt "HugeTLB page size" prompt "HugeTLB page size"
depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册