1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Kconfig for uClinux(non-paged MM) depend configurations 4*4882a593Smuzhiyun# Hyok S. Choi <hyok.choi@samsung.com> 5*4882a593Smuzhiyun# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunconfig SET_MEM_PARAM 8*4882a593Smuzhiyun bool "Set flash/sdram size and base addr" 9*4882a593Smuzhiyun help 10*4882a593Smuzhiyun Say Y to manually set the base addresses and sizes. 11*4882a593Smuzhiyun otherwise, the default values are assigned. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunconfig DRAM_BASE 14*4882a593Smuzhiyun hex '(S)DRAM Base Address' if SET_MEM_PARAM 15*4882a593Smuzhiyun default 0x00800000 16*4882a593Smuzhiyun 17*4882a593Smuzhiyunconfig DRAM_SIZE 18*4882a593Smuzhiyun hex '(S)DRAM SIZE' if SET_MEM_PARAM 19*4882a593Smuzhiyun default 0x00800000 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunconfig FLASH_MEM_BASE 22*4882a593Smuzhiyun hex 'FLASH Base Address' if SET_MEM_PARAM 23*4882a593Smuzhiyun depends on CPU_ARM740T || CPU_ARM946E || CPU_ARM940T 24*4882a593Smuzhiyun default 0x00400000 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunconfig FLASH_SIZE 27*4882a593Smuzhiyun hex 'FLASH Size' if SET_MEM_PARAM 28*4882a593Smuzhiyun depends on CPU_ARM740T || CPU_ARM946E || CPU_ARM940T 29*4882a593Smuzhiyun default 0x00400000 30*4882a593Smuzhiyun 31*4882a593Smuzhiyunconfig PROCESSOR_ID 32*4882a593Smuzhiyun hex 'Hard wire the processor ID' 33*4882a593Smuzhiyun default 0x00007700 34*4882a593Smuzhiyun depends on !(CPU_CP15 || CPU_V7M) 35*4882a593Smuzhiyun help 36*4882a593Smuzhiyun If processor has no CP15 register, this processor ID is 37*4882a593Smuzhiyun used instead of the auto-probing which utilizes the register. 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunconfig REMAP_VECTORS_TO_RAM 40*4882a593Smuzhiyun bool 'Install vectors to the beginning of RAM' 41*4882a593Smuzhiyun help 42*4882a593Smuzhiyun The kernel needs to change the hardware exception vectors. 43*4882a593Smuzhiyun In nommu mode, the hardware exception vectors are normally 44*4882a593Smuzhiyun placed at address 0x00000000. However, this region may be 45*4882a593Smuzhiyun occupied by read-only memory depending on H/W design. 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun If the region contains read-write memory, say 'n' here. 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun If your CPU provides a remap facility which allows the exception 50*4882a593Smuzhiyun vectors to be mapped to writable memory, say 'n' here. 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun Otherwise, say 'y' here. In this case, the kernel will require 53*4882a593Smuzhiyun external support to redirect the hardware exception vectors to 54*4882a593Smuzhiyun the writable versions located at DRAM_BASE. 55*4882a593Smuzhiyun 56*4882a593Smuzhiyunconfig ARM_MPU 57*4882a593Smuzhiyun bool 'Use the ARM v7 PMSA Compliant MPU' 58*4882a593Smuzhiyun depends on CPU_V7 || CPU_V7M 59*4882a593Smuzhiyun default y if CPU_V7 60*4882a593Smuzhiyun help 61*4882a593Smuzhiyun Some ARM systems without an MMU have instead a Memory Protection 62*4882a593Smuzhiyun Unit (MPU) that defines the type and permissions for regions of 63*4882a593Smuzhiyun memory. 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun If your CPU has an MPU then you should choose 'y' here unless you 66*4882a593Smuzhiyun know that you do not want to use the MPU. 67