diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-03-10 02:49:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-10 02:49:54 -0400 |
commit | 2f47f44790a9c8fc43e515df3c6be19a35ee5de5 (patch) | |
tree | 6a13f7abebcb04cc396a1d6de307265e36ccc89d /arch/sh/mm/Kconfig | |
parent | a29b99eccecefe5026713b226f66f117c8837ad5 (diff) |
sh: Support fixed 32-bit PMB mappings from bootloader.
This provides a method for supporting fixed PMB mappings inherited from
the bootloader, as an alternative to the dynamic PMB mapping currently
used by the kernel. In the future these methods will be combined.
P1/P2 area is handled like a regular 29-bit physical address, and local
bus device are assigned P3 area addresses.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r-- | arch/sh/mm/Kconfig | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 555ec9714b9e..10c24356d2d5 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -57,7 +57,7 @@ config 32BIT | |||
57 | bool | 57 | bool |
58 | default y if CPU_SH5 | 58 | default y if CPU_SH5 |
59 | 59 | ||
60 | config PMB | 60 | config PMB_ENABLE |
61 | bool "Support 32-bit physical addressing through PMB" | 61 | bool "Support 32-bit physical addressing through PMB" |
62 | depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) | 62 | depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) |
63 | select 32BIT | 63 | select 32BIT |
@@ -67,6 +67,33 @@ config PMB | |||
67 | 32-bits through the SH-4A PMB. If this is not set, legacy | 67 | 32-bits through the SH-4A PMB. If this is not set, legacy |
68 | 29-bit physical addressing will be used. | 68 | 29-bit physical addressing will be used. |
69 | 69 | ||
70 | choice | ||
71 | prompt "PMB handling type" | ||
72 | depends on PMB_ENABLE | ||
73 | default PMB_FIXED | ||
74 | |||
75 | config PMB | ||
76 | bool "PMB" | ||
77 | depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) | ||
78 | select 32BIT | ||
79 | help | ||
80 | If you say Y here, physical addressing will be extended to | ||
81 | 32-bits through the SH-4A PMB. If this is not set, legacy | ||
82 | 29-bit physical addressing will be used. | ||
83 | |||
84 | config PMB_FIXED | ||
85 | bool "fixed PMB" | ||
86 | depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7780 || \ | ||
87 | CPU_SUBTYPE_SH7785) | ||
88 | select 32BIT | ||
89 | help | ||
90 | If this option is enabled, fixed PMB mappings are inherited | ||
91 | from the boot loader, and the kernel does not attempt dynamic | ||
92 | management. This is the closest to legacy 29-bit physical mode, | ||
93 | and allows systems to support up to 512MiB of system memory. | ||
94 | |||
95 | endchoice | ||
96 | |||
70 | config X2TLB | 97 | config X2TLB |
71 | bool "Enable extended TLB mode" | 98 | bool "Enable extended TLB mode" |
72 | depends on (CPU_SHX2 || CPU_SHX3) && MMU && EXPERIMENTAL | 99 | depends on (CPU_SHX2 || CPU_SHX3) && MMU && EXPERIMENTAL |