sh: Provide a generic SRAM pool for tiny memories.
[firefly-linux-kernel-4.4.55.git] / arch / sh / mm / Kconfig
index 986a71b88ca31cf68abea4e487ab7d5441788191..09370392aff15d791d612ac57bcdf0c6031d8443 100644 (file)
@@ -75,52 +75,25 @@ config MEMORY_SIZE
 config 29BIT
        def_bool !32BIT
        depends on SUPERH32
+       select UNCACHED_MAPPING
 
 config 32BIT
        bool
        default y if CPU_SH5
 
-config PMB_ENABLE
-       bool "Support 32-bit physical addressing through PMB"
-       depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
-       help
-         If you say Y here, physical addressing will be extended to
-         32-bits through the SH-4A PMB. If this is not set, legacy
-         29-bit physical addressing will be used.
-
-choice
-       prompt "PMB handling type"
-       depends on PMB_ENABLE
-       default PMB_FIXED
-
 config PMB
-       bool "PMB"
+       bool "Support 32-bit physical addressing through PMB"
        depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
+       select 32BIT
+       select UNCACHED_MAPPING
        help
          If you say Y here, physical addressing will be extended to
          32-bits through the SH-4A PMB. If this is not set, legacy
          29-bit physical addressing will be used.
 
-config PMB_FIXED
-       bool "fixed PMB"
-       depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
-       select 32BIT
-       help
-         If this option is enabled, fixed PMB mappings are inherited
-         from the boot loader, and the kernel does not attempt dynamic
-         management. This is the closest to legacy 29-bit physical mode,
-         and allows systems to support up to 512MiB of system memory.
-
-endchoice
-
 config X2TLB
-       bool "Enable extended TLB mode"
-       depends on (CPU_SHX2 || CPU_SHX3) && MMU && EXPERIMENTAL
-       help
-         Selecting this option will enable the extended mode of the SH-X2
-         TLB. For legacy SH-X behaviour and interoperability, say N. For
-         all of the fun new features and a willingless to submit bug reports,
-         say Y.
+       def_bool y
+       depends on (CPU_SHX2 || CPU_SHX3) && MMU
 
 config VSYSCALL
        bool "Support vsyscall page"
@@ -188,14 +161,23 @@ config ARCH_MEMORY_PROBE
        def_bool y
        depends on MEMORY_HOTPLUG
 
+config IOREMAP_FIXED
+       def_bool y
+       depends on X2TLB || SUPERH64
+
+config UNCACHED_MAPPING
+       bool
+
+config HAVE_SRAM_POOL
+       bool
+       select GENERIC_ALLOCATOR
+
 choice
        prompt "Kernel page size"
-       default PAGE_SIZE_8KB if X2TLB
        default PAGE_SIZE_4KB
 
 config PAGE_SIZE_4KB
        bool "4kB"
-       depends on !MMU || !X2TLB
        help
          This is the default page size used by all SuperH CPUs.