diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-22 00:29:37 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-22 00:29:37 -0400 |
commit | 5f8371cec93b94a24a55ba1de642ce6eade6d62c (patch) | |
tree | 61b6d2acb10226b3c0f2d31bda3a49288e540eba | |
parent | 8e9bb19ef97d6594e735bee64b6d72103e350854 (diff) | |
parent | d8586ba6e1415150e1bab89f0a05447bb6f2d6d5 (diff) |
Merge branches 'sh/stable-updates' and 'sh/sparseirq'
222 files changed, 13690 insertions, 5814 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index e7390dd0283d..fb75c2d1928d 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -15,6 +15,7 @@ config SUPERH | |||
15 | select HAVE_IOREMAP_PROT if MMU | 15 | select HAVE_IOREMAP_PROT if MMU |
16 | select HAVE_ARCH_TRACEHOOK | 16 | select HAVE_ARCH_TRACEHOOK |
17 | select HAVE_DMA_API_DEBUG | 17 | select HAVE_DMA_API_DEBUG |
18 | select RTC_LIB | ||
18 | help | 19 | help |
19 | The SuperH is a RISC processor targeted for use in embedded systems | 20 | The SuperH is a RISC processor targeted for use in embedded systems |
20 | and consumer electronics; it was also used in the Sega Dreamcast | 21 | and consumer electronics; it was also used in the Sega Dreamcast |
@@ -74,14 +75,18 @@ config GENERIC_IOMAP | |||
74 | bool | 75 | bool |
75 | 76 | ||
76 | config GENERIC_TIME | 77 | config GENERIC_TIME |
77 | def_bool n | 78 | def_bool y |
78 | 79 | ||
79 | config GENERIC_CLOCKEVENTS | 80 | config GENERIC_CLOCKEVENTS |
80 | def_bool n | 81 | def_bool y |
81 | 82 | ||
82 | config GENERIC_CLOCKEVENTS_BROADCAST | 83 | config GENERIC_CLOCKEVENTS_BROADCAST |
83 | bool | 84 | bool |
84 | 85 | ||
86 | config GENERIC_CMOS_UPDATE | ||
87 | def_bool y | ||
88 | depends on SH_SH03 || SH_DREAMCAST | ||
89 | |||
85 | config GENERIC_LOCKBREAK | 90 | config GENERIC_LOCKBREAK |
86 | def_bool y | 91 | def_bool y |
87 | depends on SMP && PREEMPT | 92 | depends on SMP && PREEMPT |
@@ -112,6 +117,12 @@ config SYS_SUPPORTS_PCI | |||
112 | config SYS_SUPPORTS_CMT | 117 | config SYS_SUPPORTS_CMT |
113 | bool | 118 | bool |
114 | 119 | ||
120 | config SYS_SUPPORTS_MTU2 | ||
121 | bool | ||
122 | |||
123 | config SYS_SUPPORTS_TMU | ||
124 | bool | ||
125 | |||
115 | config STACKTRACE_SUPPORT | 126 | config STACKTRACE_SUPPORT |
116 | def_bool y | 127 | def_bool y |
117 | 128 | ||
@@ -157,6 +168,7 @@ config CPU_SH3 | |||
157 | bool | 168 | bool |
158 | select CPU_HAS_INTEVT | 169 | select CPU_HAS_INTEVT |
159 | select CPU_HAS_SR_RB | 170 | select CPU_HAS_SR_RB |
171 | select SYS_SUPPORTS_TMU | ||
160 | 172 | ||
161 | config CPU_SH4 | 173 | config CPU_SH4 |
162 | bool | 174 | bool |
@@ -164,6 +176,7 @@ config CPU_SH4 | |||
164 | select CPU_HAS_SR_RB | 176 | select CPU_HAS_SR_RB |
165 | select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2 | 177 | select CPU_HAS_PTEA if !CPU_SH4A || CPU_SHX2 |
166 | select CPU_HAS_FPU if !CPU_SH4AL_DSP | 178 | select CPU_HAS_FPU if !CPU_SH4AL_DSP |
179 | select SYS_SUPPORTS_TMU | ||
167 | 180 | ||
168 | config CPU_SH4A | 181 | config CPU_SH4A |
169 | bool | 182 | bool |
@@ -177,6 +190,7 @@ config CPU_SH4AL_DSP | |||
177 | config CPU_SH5 | 190 | config CPU_SH5 |
178 | bool | 191 | bool |
179 | select CPU_HAS_FPU | 192 | select CPU_HAS_FPU |
193 | select SYS_SUPPORTS_TMU | ||
180 | 194 | ||
181 | config CPU_SHX2 | 195 | config CPU_SHX2 |
182 | bool | 196 | bool |
@@ -210,27 +224,32 @@ config CPU_SUBTYPE_SH7201 | |||
210 | bool "Support SH7201 processor" | 224 | bool "Support SH7201 processor" |
211 | select CPU_SH2A | 225 | select CPU_SH2A |
212 | select CPU_HAS_FPU | 226 | select CPU_HAS_FPU |
227 | select SYS_SUPPORTS_MTU2 | ||
213 | 228 | ||
214 | config CPU_SUBTYPE_SH7203 | 229 | config CPU_SUBTYPE_SH7203 |
215 | bool "Support SH7203 processor" | 230 | bool "Support SH7203 processor" |
216 | select CPU_SH2A | 231 | select CPU_SH2A |
217 | select CPU_HAS_FPU | 232 | select CPU_HAS_FPU |
218 | select SYS_SUPPORTS_CMT | 233 | select SYS_SUPPORTS_CMT |
234 | select SYS_SUPPORTS_MTU2 | ||
219 | 235 | ||
220 | config CPU_SUBTYPE_SH7206 | 236 | config CPU_SUBTYPE_SH7206 |
221 | bool "Support SH7206 processor" | 237 | bool "Support SH7206 processor" |
222 | select CPU_SH2A | 238 | select CPU_SH2A |
223 | select SYS_SUPPORTS_CMT | 239 | select SYS_SUPPORTS_CMT |
240 | select SYS_SUPPORTS_MTU2 | ||
224 | 241 | ||
225 | config CPU_SUBTYPE_SH7263 | 242 | config CPU_SUBTYPE_SH7263 |
226 | bool "Support SH7263 processor" | 243 | bool "Support SH7263 processor" |
227 | select CPU_SH2A | 244 | select CPU_SH2A |
228 | select CPU_HAS_FPU | 245 | select CPU_HAS_FPU |
229 | select SYS_SUPPORTS_CMT | 246 | select SYS_SUPPORTS_CMT |
247 | select SYS_SUPPORTS_MTU2 | ||
230 | 248 | ||
231 | config CPU_SUBTYPE_MXG | 249 | config CPU_SUBTYPE_MXG |
232 | bool "Support MX-G processor" | 250 | bool "Support MX-G processor" |
233 | select CPU_SH2A | 251 | select CPU_SH2A |
252 | select SYS_SUPPORTS_MTU2 | ||
234 | help | 253 | help |
235 | Select MX-G if running on an R8A03022BG part. | 254 | Select MX-G if running on an R8A03022BG part. |
236 | 255 | ||
@@ -283,6 +302,7 @@ config CPU_SUBTYPE_SH7720 | |||
283 | bool "Support SH7720 processor" | 302 | bool "Support SH7720 processor" |
284 | select CPU_SH3 | 303 | select CPU_SH3 |
285 | select CPU_HAS_DSP | 304 | select CPU_HAS_DSP |
305 | select SYS_SUPPORTS_CMT | ||
286 | help | 306 | help |
287 | Select SH7720 if you have a SH3-DSP SH7720 CPU. | 307 | Select SH7720 if you have a SH3-DSP SH7720 CPU. |
288 | 308 | ||
@@ -290,6 +310,7 @@ config CPU_SUBTYPE_SH7721 | |||
290 | bool "Support SH7721 processor" | 310 | bool "Support SH7721 processor" |
291 | select CPU_SH3 | 311 | select CPU_SH3 |
292 | select CPU_HAS_DSP | 312 | select CPU_HAS_DSP |
313 | select SYS_SUPPORTS_CMT | ||
293 | help | 314 | help |
294 | Select SH7721 if you have a SH3-DSP SH7721 CPU. | 315 | Select SH7721 if you have a SH3-DSP SH7721 CPU. |
295 | 316 | ||
@@ -347,6 +368,16 @@ config CPU_SUBTYPE_SH7723 | |||
347 | help | 368 | help |
348 | Select SH7723 if you have an SH-MobileR2 CPU. | 369 | Select SH7723 if you have an SH-MobileR2 CPU. |
349 | 370 | ||
371 | config CPU_SUBTYPE_SH7724 | ||
372 | bool "Support SH7724 processor" | ||
373 | select CPU_SH4A | ||
374 | select CPU_SHX2 | ||
375 | select ARCH_SHMOBILE | ||
376 | select ARCH_SPARSEMEM_ENABLE | ||
377 | select SYS_SUPPORTS_CMT | ||
378 | help | ||
379 | Select SH7724 if you have an SH-MobileR2R CPU. | ||
380 | |||
350 | config CPU_SUBTYPE_SH7763 | 381 | config CPU_SUBTYPE_SH7763 |
351 | bool "Support SH7763 processor" | 382 | bool "Support SH7763 processor" |
352 | select CPU_SH4A | 383 | select CPU_SH4A |
@@ -442,48 +473,26 @@ source "arch/sh/boards/Kconfig" | |||
442 | 473 | ||
443 | menu "Timer and clock configuration" | 474 | menu "Timer and clock configuration" |
444 | 475 | ||
445 | config SH_TMU | 476 | config SH_TIMER_TMU |
446 | bool "TMU timer support" | 477 | bool "TMU timer driver" |
447 | depends on CPU_SH3 || CPU_SH4 | 478 | depends on SYS_SUPPORTS_TMU |
448 | default y | 479 | default y |
449 | select GENERIC_TIME | ||
450 | select GENERIC_CLOCKEVENTS | ||
451 | help | 480 | help |
452 | This enables the use of the TMU as the system timer. | 481 | This enables the build of the TMU timer driver. |
453 | 482 | ||
454 | config SH_CMT | 483 | config SH_TIMER_CMT |
455 | bool "CMT timer support" | 484 | bool "CMT timer driver" |
456 | depends on SYS_SUPPORTS_CMT && CPU_SH2 | 485 | depends on SYS_SUPPORTS_CMT |
457 | default y | 486 | default y |
458 | help | 487 | help |
459 | This enables the use of the CMT as the system timer. | 488 | This enables build of the CMT timer driver. |
460 | |||
461 | # | ||
462 | # Support for the new-style CMT driver. This will replace SH_CMT | ||
463 | # once its other dependencies are merged. | ||
464 | # | ||
465 | config SH_TIMER_CMT | ||
466 | bool "CMT clockevents driver" | ||
467 | depends on SYS_SUPPORTS_CMT && !SH_CMT | ||
468 | select GENERIC_CLOCKEVENTS | ||
469 | 489 | ||
470 | config SH_MTU2 | 490 | config SH_TIMER_MTU2 |
471 | bool "MTU2 timer support" | 491 | bool "MTU2 timer driver" |
472 | depends on CPU_SH2A | 492 | depends on SYS_SUPPORTS_MTU2 |
473 | default y | 493 | default y |
474 | help | 494 | help |
475 | This enables the use of the MTU2 as the system timer. | 495 | This enables build of the MTU2 timer driver. |
476 | |||
477 | config SH_TIMER_IRQ | ||
478 | int | ||
479 | default "28" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \ | ||
480 | CPU_SUBTYPE_SH7763 | ||
481 | default "86" if CPU_SUBTYPE_SH7619 | ||
482 | default "140" if CPU_SUBTYPE_SH7206 | ||
483 | default "142" if CPU_SUBTYPE_SH7203 && SH_CMT | ||
484 | default "153" if CPU_SUBTYPE_SH7203 && SH_MTU2 | ||
485 | default "238" if CPU_SUBTYPE_MXG | ||
486 | default "16" | ||
487 | 496 | ||
488 | config SH_PCLK_FREQ | 497 | config SH_PCLK_FREQ |
489 | int "Peripheral clock frequency (in Hz)" | 498 | int "Peripheral clock frequency (in Hz)" |
@@ -495,6 +504,7 @@ config SH_PCLK_FREQ | |||
495 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ | 504 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ |
496 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ | 505 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ |
497 | CPU_SUBTYPE_SH7786 | 506 | CPU_SUBTYPE_SH7786 |
507 | default "41666666" if CPU_SUBTYPE_SH7724 | ||
498 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R | 508 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
499 | default "66000000" if CPU_SUBTYPE_SH4_202 | 509 | default "66000000" if CPU_SUBTYPE_SH4_202 |
500 | default "50000000" | 510 | default "50000000" |
@@ -668,22 +678,37 @@ endmenu | |||
668 | menu "Boot options" | 678 | menu "Boot options" |
669 | 679 | ||
670 | config ZERO_PAGE_OFFSET | 680 | config ZERO_PAGE_OFFSET |
671 | hex "Zero page offset" | 681 | hex |
672 | default "0x00004000" if SH_SH03 | 682 | default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \ |
673 | default "0x00010000" if PAGE_SIZE_64KB | 683 | SH_7751_SOLUTION_ENGINE |
684 | default "0x00004000" if PAGE_SIZE_16KB || SH_SH03 | ||
674 | default "0x00002000" if PAGE_SIZE_8KB | 685 | default "0x00002000" if PAGE_SIZE_8KB |
675 | default "0x00001000" | 686 | default "0x00001000" |
676 | help | 687 | help |
677 | This sets the default offset of zero page. | 688 | This sets the default offset of zero page. |
678 | 689 | ||
679 | config BOOT_LINK_OFFSET | 690 | config BOOT_LINK_OFFSET |
680 | hex "Link address offset for booting" | 691 | hex |
692 | default "0x00210000" if SH_SHMIN | ||
693 | default "0x00400000" if SH_CAYMAN | ||
694 | default "0x00810000" if SH_7780_SOLUTION_ENGINE | ||
695 | default "0x009e0000" if SH_TITAN | ||
696 | default "0x01800000" if SH_SDK7780 | ||
697 | default "0x02000000" if SH_EDOSK7760 | ||
681 | default "0x00800000" | 698 | default "0x00800000" |
682 | help | 699 | help |
683 | This option allows you to set the link address offset of the zImage. | 700 | This option allows you to set the link address offset of the zImage. |
684 | This can be useful if you are on a board which has a small amount of | 701 | This can be useful if you are on a board which has a small amount of |
685 | memory. | 702 | memory. |
686 | 703 | ||
704 | config ENTRY_OFFSET | ||
705 | hex | ||
706 | default "0x00001000" if PAGE_SIZE_4KB | ||
707 | default "0x00002000" if PAGE_SIZE_8KB | ||
708 | default "0x00004000" if PAGE_SIZE_16KB | ||
709 | default "0x00010000" if PAGE_SIZE_64KB | ||
710 | default "0x00000000" | ||
711 | |||
687 | config UBC_WAKEUP | 712 | config UBC_WAKEUP |
688 | bool "Wakeup UBC on startup" | 713 | bool "Wakeup UBC on startup" |
689 | depends on CPU_SH4 && !CPU_SH4A | 714 | depends on CPU_SH4 && !CPU_SH4A |
diff --git a/arch/sh/Kconfig.cpu b/arch/sh/Kconfig.cpu index c7d704381a6d..9eb1712372d8 100644 --- a/arch/sh/Kconfig.cpu +++ b/arch/sh/Kconfig.cpu | |||
@@ -76,11 +76,6 @@ config SPECULATIVE_EXECUTION | |||
76 | 76 | ||
77 | If unsure, say N. | 77 | If unsure, say N. |
78 | 78 | ||
79 | config SH64_USER_MISALIGNED_FIXUP | ||
80 | def_bool y | ||
81 | prompt "Fixup misaligned loads/stores occurring in user mode" | ||
82 | depends on SUPERH64 | ||
83 | |||
84 | config SH64_ID2815_WORKAROUND | 79 | config SH64_ID2815_WORKAROUND |
85 | bool "Include workaround for SH5-101 cut2 silicon defect ID2815" | 80 | bool "Include workaround for SH5-101 cut2 silicon defect ID2815" |
86 | depends on CPU_SUBTYPE_SH5_101 | 81 | depends on CPU_SUBTYPE_SH5_101 |
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug index 0d62681f72a0..8179cc9be9a4 100644 --- a/arch/sh/Kconfig.debug +++ b/arch/sh/Kconfig.debug | |||
@@ -38,10 +38,10 @@ config EARLY_SCIF_CONSOLE_PORT | |||
38 | default "0xffe00000" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7763 || \ | 38 | default "0xffe00000" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7763 || \ |
39 | CPU_SUBTYPE_SH7722 || CPU_SUBTYPE_SH7366 || \ | 39 | CPU_SUBTYPE_SH7722 || CPU_SUBTYPE_SH7366 || \ |
40 | CPU_SUBTYPE_SH7343 | 40 | CPU_SUBTYPE_SH7343 |
41 | default "0xffe80000" if CPU_SH4 | ||
42 | default "0xffea0000" if CPU_SUBTYPE_SH7785 | 41 | default "0xffea0000" if CPU_SUBTYPE_SH7785 |
43 | default "0xfffe8000" if CPU_SUBTYPE_SH7203 | 42 | default "0xfffe8000" if CPU_SUBTYPE_SH7203 |
44 | default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263 | 43 | default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263 |
44 | default "0xffe80000" if CPU_SH4 | ||
45 | default "0x00000000" | 45 | default "0x00000000" |
46 | 46 | ||
47 | config EARLY_PRINTK | 47 | config EARLY_PRINTK |
@@ -92,7 +92,7 @@ config 4KSTACKS | |||
92 | 92 | ||
93 | config IRQSTACKS | 93 | config IRQSTACKS |
94 | bool "Use separate kernel stacks when processing interrupts" | 94 | bool "Use separate kernel stacks when processing interrupts" |
95 | depends on DEBUG_KERNEL && SUPERH32 | 95 | depends on DEBUG_KERNEL && SUPERH32 && BROKEN |
96 | help | 96 | help |
97 | If you say Y here the kernel will use separate kernel stacks | 97 | If you say Y here the kernel will use separate kernel stacks |
98 | for handling hard and soft interrupts. This can help avoid | 98 | for handling hard and soft interrupts. This can help avoid |
@@ -122,27 +122,8 @@ config SH_NO_BSS_INIT | |||
122 | For all other cases, say N. If this option seems perplexing, or | 122 | For all other cases, say N. If this option seems perplexing, or |
123 | you aren't sure, say N. | 123 | you aren't sure, say N. |
124 | 124 | ||
125 | config MORE_COMPILE_OPTIONS | ||
126 | bool "Add any additional compile options" | ||
127 | help | ||
128 | If you want to add additional CFLAGS to the kernel build, enable this | ||
129 | option and then enter what you would like to add in the next question. | ||
130 | Note however that -g is already appended with the selection of KGDB. | ||
131 | |||
132 | config COMPILE_OPTIONS | ||
133 | string "Additional compile arguments" | ||
134 | depends on MORE_COMPILE_OPTIONS | ||
135 | |||
136 | config SH64_SR_WATCH | 125 | config SH64_SR_WATCH |
137 | bool "Debug: set SR.WATCH to enable hardware watchpoints and trace" | 126 | bool "Debug: set SR.WATCH to enable hardware watchpoints and trace" |
138 | depends on SUPERH64 | 127 | depends on SUPERH64 |
139 | 128 | ||
140 | config POOR_MANS_STRACE | ||
141 | bool "Debug: enable rudimentary strace facility" | ||
142 | depends on SUPERH64 | ||
143 | help | ||
144 | This option allows system calls to be traced to the console. It also | ||
145 | aids in detecting kernel stack underflow. It is useful for debugging | ||
146 | early-userland problems (e.g. init incurring fatal exceptions.) | ||
147 | |||
148 | endmenu | 129 | endmenu |
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index bece1f7535f2..a47fbd260ba4 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -70,9 +70,6 @@ cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -ml | |||
70 | cflags-y += $(call cc-option,-mno-fdpic) | 70 | cflags-y += $(call cc-option,-mno-fdpic) |
71 | cflags-y += $(isaflags-y) -ffreestanding | 71 | cflags-y += $(isaflags-y) -ffreestanding |
72 | 72 | ||
73 | cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \ | ||
74 | $(shell echo $(CONFIG_COMPILE_OPTIONS) | sed -e 's/"//g') | ||
75 | |||
76 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment \ | 73 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment \ |
77 | -R .stab -R .stabstr -S | 74 | -R .stab -R .stabstr -S |
78 | 75 | ||
@@ -94,25 +91,35 @@ KBUILD_IMAGE := $(defaultimage-y) | |||
94 | # | 91 | # |
95 | ifdef CONFIG_SUPERH32 | 92 | ifdef CONFIG_SUPERH32 |
96 | UTS_MACHINE := sh | 93 | UTS_MACHINE := sh |
94 | BITS := 32 | ||
97 | LDFLAGS_vmlinux += -e _stext | 95 | LDFLAGS_vmlinux += -e _stext |
98 | else | 96 | else |
99 | UTS_MACHINE := sh64 | 97 | UTS_MACHINE := sh64 |
98 | BITS := 64 | ||
100 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ | 99 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ |
101 | --defsym phys_stext_shmedia=phys_stext+1 \ | 100 | --defsym phys_stext_shmedia=phys_stext+1 \ |
102 | -e phys_stext_shmedia | 101 | -e phys_stext_shmedia |
103 | endif | 102 | endif |
104 | 103 | ||
104 | ifneq ($(SUBARCH),$(ARCH)) | ||
105 | ifeq ($(CROSS_COMPILE),) | ||
106 | CROSS_COMPILE := $(call cc-cross-prefix, $(UTS_MACHINE)-linux- $(UTS_MACHINE)-linux-gnu- $(UTS_MACHINE)-unknown-linux-gnu-) | ||
107 | endif | ||
108 | endif | ||
109 | |||
105 | ifdef CONFIG_CPU_LITTLE_ENDIAN | 110 | ifdef CONFIG_CPU_LITTLE_ENDIAN |
106 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' | 111 | ld-bfd := elf32-$(UTS_MACHINE)-linux |
112 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd) | ||
107 | LDFLAGS += -EL | 113 | LDFLAGS += -EL |
108 | else | 114 | else |
109 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' | 115 | ld-bfd := elf32-$(UTS_MACHINE)big-linux |
116 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' --oformat $(ld-bfd) | ||
110 | LDFLAGS += -EB | 117 | LDFLAGS += -EB |
111 | endif | 118 | endif |
112 | 119 | ||
113 | head-y := arch/sh/kernel/init_task.o | 120 | export ld-bfd BITS |
114 | head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o | 121 | |
115 | head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o | 122 | head-y := arch/sh/kernel/init_task.o arch/sh/kernel/head_$(BITS).o |
116 | 123 | ||
117 | core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/ | 124 | core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/ |
118 | core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ | 125 | core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ |
@@ -193,7 +200,7 @@ zImage uImage uImage.srec vmlinux.srec: vmlinux | |||
193 | 200 | ||
194 | compressed: zImage | 201 | compressed: zImage |
195 | 202 | ||
196 | archprepare: maketools arch/sh/lib64/syscalltab.h | 203 | archprepare: maketools |
197 | 204 | ||
198 | archclean: | 205 | archclean: |
199 | $(Q)$(MAKE) $(clean)=$(boot) | 206 | $(Q)$(MAKE) $(clean)=$(boot) |
@@ -205,34 +212,4 @@ define archhelp | |||
205 | @echo ' uImage.srec - Create an S-record for U-Boot' | 212 | @echo ' uImage.srec - Create an S-record for U-Boot' |
206 | endef | 213 | endef |
207 | 214 | ||
208 | define filechk_gen-syscalltab | 215 | CLEAN_FILES += include/asm-sh/machtypes.h |
209 | (set -e; \ | ||
210 | echo "/*"; \ | ||
211 | echo " * DO NOT MODIFY."; \ | ||
212 | echo " *"; \ | ||
213 | echo " * This file was generated by arch/sh/Makefile"; \ | ||
214 | echo " * Any changes will be reverted at build time."; \ | ||
215 | echo " */"; \ | ||
216 | echo ""; \ | ||
217 | echo "#ifndef __SYSCALLTAB_H"; \ | ||
218 | echo "#define __SYSCALLTAB_H"; \ | ||
219 | echo ""; \ | ||
220 | echo "#include <linux/kernel.h>"; \ | ||
221 | echo ""; \ | ||
222 | echo "struct syscall_info {"; \ | ||
223 | echo " const char *name;"; \ | ||
224 | echo "} syscall_info_table[] = {"; \ | ||
225 | sed -e '/^.*\.long /!d;s// { "/;s/\(\([^/]*\)\/\)\{1\}.*/\2/; \ | ||
226 | s/[ \t]*$$//g;s/$$/" },/;s/\("\)sys_/\1/g'; \ | ||
227 | echo "};"; \ | ||
228 | echo ""; \ | ||
229 | echo "#define NUM_SYSCALL_INFO_ENTRIES ARRAY_SIZE(syscall_info_table)";\ | ||
230 | echo ""; \ | ||
231 | echo "#endif /* __SYSCALLTAB_H */" ) | ||
232 | endef | ||
233 | |||
234 | arch/sh/lib64/syscalltab.h: arch/sh/kernel/syscalls_64.S | ||
235 | $(call filechk,gen-syscalltab) | ||
236 | |||
237 | CLEAN_FILES += arch/sh/lib64/syscalltab.h \ | ||
238 | include/asm-sh/machtypes.h | ||
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index dcc1af8a2cfe..99e2d47f79f5 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -121,7 +121,7 @@ config SH_RTS7751R2D | |||
121 | bool "RTS7751R2D" | 121 | bool "RTS7751R2D" |
122 | depends on CPU_SUBTYPE_SH7751R | 122 | depends on CPU_SUBTYPE_SH7751R |
123 | select SYS_SUPPORTS_PCI | 123 | select SYS_SUPPORTS_PCI |
124 | select IO_TRAPPED | 124 | select IO_TRAPPED if MMU |
125 | help | 125 | help |
126 | Select RTS7751R2D if configuring for a Renesas Technology | 126 | Select RTS7751R2D if configuring for a Renesas Technology |
127 | Sales SH-Graphics board. | 127 | Sales SH-Graphics board. |
@@ -145,13 +145,13 @@ config SH_HIGHLANDER | |||
145 | bool "Highlander" | 145 | bool "Highlander" |
146 | depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 | 146 | depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 |
147 | select SYS_SUPPORTS_PCI | 147 | select SYS_SUPPORTS_PCI |
148 | select IO_TRAPPED | 148 | select IO_TRAPPED if MMU |
149 | 149 | ||
150 | config SH_SH7785LCR | 150 | config SH_SH7785LCR |
151 | bool "SH7785LCR" | 151 | bool "SH7785LCR" |
152 | depends on CPU_SUBTYPE_SH7785 | 152 | depends on CPU_SUBTYPE_SH7785 |
153 | select SYS_SUPPORTS_PCI | 153 | select SYS_SUPPORTS_PCI |
154 | select IO_TRAPPED | 154 | select IO_TRAPPED if MMU |
155 | 155 | ||
156 | config SH_SH7785LCR_29BIT_PHYSMAPS | 156 | config SH_SH7785LCR_29BIT_PHYSMAPS |
157 | bool "SH7785LCR 29bit physmaps" | 157 | bool "SH7785LCR 29bit physmaps" |
diff --git a/arch/sh/boards/mach-cayman/Makefile b/arch/sh/boards/mach-cayman/Makefile index cafe1ac3b29c..00fa3eaecb1b 100644 --- a/arch/sh/boards/mach-cayman/Makefile +++ b/arch/sh/boards/mach-cayman/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # | 1 | # |
2 | # Makefile for the Hitachi Cayman specific parts of the kernel | 2 | # Makefile for the Hitachi Cayman specific parts of the kernel |
3 | # | 3 | # |
4 | obj-y := setup.o irq.o | 4 | obj-y := setup.o irq.o panic.o |
diff --git a/arch/sh/boards/mach-cayman/irq.c b/arch/sh/boards/mach-cayman/irq.c index da62ad516994..33f770856319 100644 --- a/arch/sh/boards/mach-cayman/irq.c +++ b/arch/sh/boards/mach-cayman/irq.c | |||
@@ -142,26 +142,11 @@ int cayman_irq_demux(int evt) | |||
142 | return irq; | 142 | return irq; |
143 | } | 143 | } |
144 | 144 | ||
145 | #if defined(CONFIG_PROC_FS) && defined(CONFIG_SYSCTL) | ||
146 | int cayman_irq_describe(char* p, int irq) | ||
147 | { | ||
148 | if (irq < NR_INTC_IRQS) { | ||
149 | return intc_irq_describe(p, irq); | ||
150 | } else if (irq < NR_INTC_IRQS + 8) { | ||
151 | return sprintf(p, "(SMSC %d)", irq - NR_INTC_IRQS); | ||
152 | } else if ((irq >= NR_INTC_IRQS + 24) && (irq < NR_INTC_IRQS + 32)) { | ||
153 | return sprintf(p, "(PCI2 %d)", irq - (NR_INTC_IRQS + 24)); | ||
154 | } | ||
155 | |||
156 | return 0; | ||
157 | } | ||
158 | #endif | ||
159 | |||
160 | void init_cayman_irq(void) | 145 | void init_cayman_irq(void) |
161 | { | 146 | { |
162 | int i; | 147 | int i; |
163 | 148 | ||
164 | epld_virt = onchip_remap(EPLD_BASE, 1024, "EPLD"); | 149 | epld_virt = (unsigned long)ioremap_nocache(EPLD_BASE, 1024); |
165 | if (!epld_virt) { | 150 | if (!epld_virt) { |
166 | printk(KERN_ERR "Cayman IRQ: Unable to remap EPLD\n"); | 151 | printk(KERN_ERR "Cayman IRQ: Unable to remap EPLD\n"); |
167 | return; | 152 | return; |
diff --git a/arch/sh/boards/mach-cayman/panic.c b/arch/sh/boards/mach-cayman/panic.c new file mode 100644 index 000000000000..d1e67306d07c --- /dev/null +++ b/arch/sh/boards/mach-cayman/panic.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2003 Richard Curnow, SuperH UK Limited | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | */ | ||
8 | |||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/io.h> | ||
11 | #include <cpu/registers.h> | ||
12 | |||
13 | /* THIS IS A PHYSICAL ADDRESS */ | ||
14 | #define HDSP2534_ADDR (0x04002100) | ||
15 | |||
16 | static void poor_mans_delay(void) | ||
17 | { | ||
18 | int i; | ||
19 | |||
20 | for (i = 0; i < 2500000; i++) | ||
21 | cpu_relax(); | ||
22 | } | ||
23 | |||
24 | static void show_value(unsigned long x) | ||
25 | { | ||
26 | int i; | ||
27 | unsigned nibble; | ||
28 | for (i = 0; i < 8; i++) { | ||
29 | nibble = ((x >> (i * 4)) & 0xf); | ||
30 | |||
31 | __raw_writeb(nibble + ((nibble > 9) ? 55 : 48), | ||
32 | HDSP2534_ADDR + 0xe0 + ((7 - i) << 2)); | ||
33 | } | ||
34 | } | ||
35 | |||
36 | void | ||
37 | panic_handler(unsigned long panicPC, unsigned long panicSSR, | ||
38 | unsigned long panicEXPEVT) | ||
39 | { | ||
40 | while (1) { | ||
41 | /* This piece of code displays the PC on the LED display */ | ||
42 | show_value(panicPC); | ||
43 | poor_mans_delay(); | ||
44 | show_value(panicSSR); | ||
45 | poor_mans_delay(); | ||
46 | show_value(panicEXPEVT); | ||
47 | poor_mans_delay(); | ||
48 | } | ||
49 | } | ||
diff --git a/arch/sh/boards/mach-cayman/setup.c b/arch/sh/boards/mach-cayman/setup.c index e7f9cc5f2ff1..7e8216ac31bd 100644 --- a/arch/sh/boards/mach-cayman/setup.c +++ b/arch/sh/boards/mach-cayman/setup.c | |||
@@ -102,7 +102,7 @@ static int __init smsc_superio_setup(void) | |||
102 | { | 102 | { |
103 | unsigned char devid, devrev; | 103 | unsigned char devid, devrev; |
104 | 104 | ||
105 | smsc_superio_virt = onchip_remap(SMSC_SUPERIO_BASE, 1024, "SMSC SuperIO"); | 105 | smsc_superio_virt = (unsigned long)ioremap_nocache(SMSC_SUPERIO_BASE, 1024); |
106 | if (!smsc_superio_virt) { | 106 | if (!smsc_superio_virt) { |
107 | panic("Unable to remap SMSC SuperIO\n"); | 107 | panic("Unable to remap SMSC SuperIO\n"); |
108 | } | 108 | } |
diff --git a/arch/sh/boards/mach-dreamcast/setup.c b/arch/sh/boards/mach-dreamcast/setup.c index d1bee4884cd6..ebe99227d4e6 100644 --- a/arch/sh/boards/mach-dreamcast/setup.c +++ b/arch/sh/boards/mach-dreamcast/setup.c | |||
@@ -30,7 +30,6 @@ | |||
30 | 30 | ||
31 | extern struct irq_chip systemasic_int; | 31 | extern struct irq_chip systemasic_int; |
32 | extern void aica_time_init(void); | 32 | extern void aica_time_init(void); |
33 | extern int gapspci_init(void); | ||
34 | extern int systemasic_irq_demux(int); | 33 | extern int systemasic_irq_demux(int); |
35 | 34 | ||
36 | static void __init dreamcast_setup(char **cmdline_p) | 35 | static void __init dreamcast_setup(char **cmdline_p) |
@@ -51,11 +50,6 @@ static void __init dreamcast_setup(char **cmdline_p) | |||
51 | handle_level_irq); | 50 | handle_level_irq); |
52 | 51 | ||
53 | board_time_init = aica_time_init; | 52 | board_time_init = aica_time_init; |
54 | |||
55 | #ifdef CONFIG_PCI | ||
56 | if (gapspci_init() < 0) | ||
57 | printk(KERN_WARNING "GAPSPCI was not detected.\n"); | ||
58 | #endif | ||
59 | } | 53 | } |
60 | 54 | ||
61 | static struct sh_machine_vector mv_dreamcast __initmv = { | 55 | static struct sh_machine_vector mv_dreamcast __initmv = { |
diff --git a/arch/sh/boards/mach-r2d/setup.c b/arch/sh/boards/mach-r2d/setup.c index c585be00956e..a625ecb93e47 100644 --- a/arch/sh/boards/mach-r2d/setup.c +++ b/arch/sh/boards/mach-r2d/setup.c | |||
@@ -10,6 +10,9 @@ | |||
10 | */ | 10 | */ |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | #include <linux/mtd/mtd.h> | ||
14 | #include <linux/mtd/partitions.h> | ||
15 | #include <linux/mtd/physmap.h> | ||
13 | #include <linux/ata_platform.h> | 16 | #include <linux/ata_platform.h> |
14 | #include <linux/sm501.h> | 17 | #include <linux/sm501.h> |
15 | #include <linux/sm501-regs.h> | 18 | #include <linux/sm501-regs.h> |
@@ -181,6 +184,50 @@ static struct platform_device sm501_device = { | |||
181 | .resource = sm501_resources, | 184 | .resource = sm501_resources, |
182 | }; | 185 | }; |
183 | 186 | ||
187 | static struct mtd_partition r2d_partitions[] = { | ||
188 | { | ||
189 | .name = "U-Boot", | ||
190 | .offset = 0x00000000, | ||
191 | .size = 0x00040000, | ||
192 | .mask_flags = MTD_WRITEABLE, | ||
193 | }, { | ||
194 | .name = "Environment", | ||
195 | .offset = MTDPART_OFS_NXTBLK, | ||
196 | .size = 0x00040000, | ||
197 | .mask_flags = MTD_WRITEABLE, | ||
198 | }, { | ||
199 | .name = "Kernel", | ||
200 | .offset = MTDPART_OFS_NXTBLK, | ||
201 | .size = 0x001c0000, | ||
202 | }, { | ||
203 | .name = "Flash_FS", | ||
204 | .offset = MTDPART_OFS_NXTBLK, | ||
205 | .size = MTDPART_SIZ_FULL, | ||
206 | } | ||
207 | }; | ||
208 | |||
209 | static struct physmap_flash_data flash_data = { | ||
210 | .width = 2, | ||
211 | .nr_parts = ARRAY_SIZE(r2d_partitions), | ||
212 | .parts = r2d_partitions, | ||
213 | }; | ||
214 | |||
215 | static struct resource flash_resource = { | ||
216 | .start = 0x00000000, | ||
217 | .end = 0x02000000, | ||
218 | .flags = IORESOURCE_MEM, | ||
219 | }; | ||
220 | |||
221 | static struct platform_device flash_device = { | ||
222 | .name = "physmap-flash", | ||
223 | .id = -1, | ||
224 | .resource = &flash_resource, | ||
225 | .num_resources = 1, | ||
226 | .dev = { | ||
227 | .platform_data = &flash_data, | ||
228 | }, | ||
229 | }; | ||
230 | |||
184 | static struct platform_device *rts7751r2d_devices[] __initdata = { | 231 | static struct platform_device *rts7751r2d_devices[] __initdata = { |
185 | &sm501_device, | 232 | &sm501_device, |
186 | &heartbeat_device, | 233 | &heartbeat_device, |
@@ -203,6 +250,9 @@ static int __init rts7751r2d_devices_setup(void) | |||
203 | if (register_trapped_io(&cf_trapped_io) == 0) | 250 | if (register_trapped_io(&cf_trapped_io) == 0) |
204 | platform_device_register(&cf_ide_device); | 251 | platform_device_register(&cf_ide_device); |
205 | 252 | ||
253 | if (mach_is_r2d_plus()) | ||
254 | platform_device_register(&flash_device); | ||
255 | |||
206 | spi_register_board_info(spi_bus, ARRAY_SIZE(spi_bus)); | 256 | spi_register_board_info(spi_bus, ARRAY_SIZE(spi_bus)); |
207 | 257 | ||
208 | return platform_add_devices(rts7751r2d_devices, | 258 | return platform_add_devices(rts7751r2d_devices, |
diff --git a/arch/sh/boards/mach-se/7751/Makefile b/arch/sh/boards/mach-se/7751/Makefile index dbc29f3a9de5..e6f4341bfe6e 100644 --- a/arch/sh/boards/mach-se/7751/Makefile +++ b/arch/sh/boards/mach-se/7751/Makefile | |||
@@ -3,5 +3,3 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := setup.o io.o irq.o | 5 | obj-y := setup.o io.o irq.o |
6 | |||
7 | obj-$(CONFIG_PCI) += pci.o | ||
diff --git a/arch/sh/boards/mach-se/7751/io.c b/arch/sh/boards/mach-se/7751/io.c index 6287ae570319..6e75bd4459e5 100644 --- a/arch/sh/boards/mach-se/7751/io.c +++ b/arch/sh/boards/mach-se/7751/io.c | |||
@@ -34,8 +34,6 @@ unsigned char sh7751se_inb(unsigned long port) | |||
34 | { | 34 | { |
35 | if (PXSEG(port)) | 35 | if (PXSEG(port)) |
36 | return *(volatile unsigned char *)port; | 36 | return *(volatile unsigned char *)port; |
37 | else if (is_pci_ioaddr(port)) | ||
38 | return *(volatile unsigned char *)pci_ioaddr(port); | ||
39 | else | 37 | else |
40 | return (*port2adr(port)) & 0xff; | 38 | return (*port2adr(port)) & 0xff; |
41 | } | 39 | } |
@@ -46,8 +44,6 @@ unsigned char sh7751se_inb_p(unsigned long port) | |||
46 | 44 | ||
47 | if (PXSEG(port)) | 45 | if (PXSEG(port)) |
48 | v = *(volatile unsigned char *)port; | 46 | v = *(volatile unsigned char *)port; |
49 | else if (is_pci_ioaddr(port)) | ||
50 | v = *(volatile unsigned char *)pci_ioaddr(port); | ||
51 | else | 47 | else |
52 | v = (*port2adr(port)) & 0xff; | 48 | v = (*port2adr(port)) & 0xff; |
53 | ctrl_delay(); | 49 | ctrl_delay(); |
@@ -58,8 +54,6 @@ unsigned short sh7751se_inw(unsigned long port) | |||
58 | { | 54 | { |
59 | if (PXSEG(port)) | 55 | if (PXSEG(port)) |
60 | return *(volatile unsigned short *)port; | 56 | return *(volatile unsigned short *)port; |
61 | else if (is_pci_ioaddr(port)) | ||
62 | return *(volatile unsigned short *)pci_ioaddr(port); | ||
63 | else if (port >= 0x2000) | 57 | else if (port >= 0x2000) |
64 | return *port2adr(port); | 58 | return *port2adr(port); |
65 | else | 59 | else |
@@ -71,8 +65,6 @@ unsigned int sh7751se_inl(unsigned long port) | |||
71 | { | 65 | { |
72 | if (PXSEG(port)) | 66 | if (PXSEG(port)) |
73 | return *(volatile unsigned long *)port; | 67 | return *(volatile unsigned long *)port; |
74 | else if (is_pci_ioaddr(port)) | ||
75 | return *(volatile unsigned int *)pci_ioaddr(port); | ||
76 | else if (port >= 0x2000) | 68 | else if (port >= 0x2000) |
77 | return *port2adr(port); | 69 | return *port2adr(port); |
78 | else | 70 | else |
@@ -85,8 +77,6 @@ void sh7751se_outb(unsigned char value, unsigned long port) | |||
85 | 77 | ||
86 | if (PXSEG(port)) | 78 | if (PXSEG(port)) |
87 | *(volatile unsigned char *)port = value; | 79 | *(volatile unsigned char *)port = value; |
88 | else if (is_pci_ioaddr(port)) | ||
89 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
90 | else | 80 | else |
91 | *(port2adr(port)) = value; | 81 | *(port2adr(port)) = value; |
92 | } | 82 | } |
@@ -95,8 +85,6 @@ void sh7751se_outb_p(unsigned char value, unsigned long port) | |||
95 | { | 85 | { |
96 | if (PXSEG(port)) | 86 | if (PXSEG(port)) |
97 | *(volatile unsigned char *)port = value; | 87 | *(volatile unsigned char *)port = value; |
98 | else if (is_pci_ioaddr(port)) | ||
99 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
100 | else | 88 | else |
101 | *(port2adr(port)) = value; | 89 | *(port2adr(port)) = value; |
102 | ctrl_delay(); | 90 | ctrl_delay(); |
@@ -106,8 +94,6 @@ void sh7751se_outw(unsigned short value, unsigned long port) | |||
106 | { | 94 | { |
107 | if (PXSEG(port)) | 95 | if (PXSEG(port)) |
108 | *(volatile unsigned short *)port = value; | 96 | *(volatile unsigned short *)port = value; |
109 | else if (is_pci_ioaddr(port)) | ||
110 | *((unsigned short *)pci_ioaddr(port)) = value; | ||
111 | else if (port >= 0x2000) | 97 | else if (port >= 0x2000) |
112 | *port2adr(port) = value; | 98 | *port2adr(port) = value; |
113 | else | 99 | else |
@@ -118,8 +104,6 @@ void sh7751se_outl(unsigned int value, unsigned long port) | |||
118 | { | 104 | { |
119 | if (PXSEG(port)) | 105 | if (PXSEG(port)) |
120 | *(volatile unsigned long *)port = value; | 106 | *(volatile unsigned long *)port = value; |
121 | else if (is_pci_ioaddr(port)) | ||
122 | *((unsigned long*)pci_ioaddr(port)) = value; | ||
123 | else | 107 | else |
124 | maybebadio(port); | 108 | maybebadio(port); |
125 | } | 109 | } |
diff --git a/arch/sh/boards/mach-se/7751/pci.c b/arch/sh/boards/mach-se/7751/pci.c deleted file mode 100644 index 203b2923fe7f..000000000000 --- a/arch/sh/boards/mach-se/7751/pci.c +++ /dev/null | |||
@@ -1,147 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/boards/se/7751/pci.c | ||
3 | * | ||
4 | * Author: Ian DaSilva (idasilva@mvista.com) | ||
5 | * | ||
6 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
7 | * | ||
8 | * May be copied or modified under the terms of the GNU General Public | ||
9 | * License. See linux/COPYING for more information. | ||
10 | * | ||
11 | * PCI initialization for the Hitachi SH7751 Solution Engine board (MS7751SE01) | ||
12 | */ | ||
13 | |||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/pci.h> | ||
19 | |||
20 | #include <asm/io.h> | ||
21 | #include "../../../drivers/pci/pci-sh7751.h" | ||
22 | |||
23 | #define PCIMCR_MRSET_OFF 0xBFFFFFFF | ||
24 | #define PCIMCR_RFSH_OFF 0xFFFFFFFB | ||
25 | |||
26 | /* | ||
27 | * Only long word accesses of the PCIC's internal local registers and the | ||
28 | * configuration registers from the CPU is supported. | ||
29 | */ | ||
30 | #define PCIC_WRITE(x,v) writel((v), PCI_REG(x)) | ||
31 | #define PCIC_READ(x) readl(PCI_REG(x)) | ||
32 | |||
33 | /* | ||
34 | * Description: This function sets up and initializes the pcic, sets | ||
35 | * up the BARS, maps the DRAM into the address space etc, etc. | ||
36 | */ | ||
37 | int __init pcibios_init_platform(void) | ||
38 | { | ||
39 | unsigned long bcr1, wcr1, wcr2, wcr3, mcr; | ||
40 | unsigned short bcr2; | ||
41 | |||
42 | /* | ||
43 | * Initialize the slave bus controller on the pcic. The values used | ||
44 | * here should not be hardcoded, but they should be taken from the bsc | ||
45 | * on the processor, to make this function as generic as possible. | ||
46 | * (i.e. Another sbc may usr different SDRAM timing settings -- in order | ||
47 | * for the pcic to work, its settings need to be exactly the same.) | ||
48 | */ | ||
49 | bcr1 = (*(volatile unsigned long*)(SH7751_BCR1)); | ||
50 | bcr2 = (*(volatile unsigned short*)(SH7751_BCR2)); | ||
51 | wcr1 = (*(volatile unsigned long*)(SH7751_WCR1)); | ||
52 | wcr2 = (*(volatile unsigned long*)(SH7751_WCR2)); | ||
53 | wcr3 = (*(volatile unsigned long*)(SH7751_WCR3)); | ||
54 | mcr = (*(volatile unsigned long*)(SH7751_MCR)); | ||
55 | |||
56 | bcr1 = bcr1 | 0x00080000; /* Enable Bit 19, BREQEN */ | ||
57 | (*(volatile unsigned long*)(SH7751_BCR1)) = bcr1; | ||
58 | |||
59 | bcr1 = bcr1 | 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ | ||
60 | PCIC_WRITE(SH7751_PCIBCR1, bcr1); /* PCIC BCR1 */ | ||
61 | PCIC_WRITE(SH7751_PCIBCR2, bcr2); /* PCIC BCR2 */ | ||
62 | PCIC_WRITE(SH7751_PCIWCR1, wcr1); /* PCIC WCR1 */ | ||
63 | PCIC_WRITE(SH7751_PCIWCR2, wcr2); /* PCIC WCR2 */ | ||
64 | PCIC_WRITE(SH7751_PCIWCR3, wcr3); /* PCIC WCR3 */ | ||
65 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; | ||
66 | PCIC_WRITE(SH7751_PCIMCR, mcr); /* PCIC MCR */ | ||
67 | |||
68 | |||
69 | /* Enable all interrupts, so we know what to fix */ | ||
70 | PCIC_WRITE(SH7751_PCIINTM, 0x0000c3ff); | ||
71 | PCIC_WRITE(SH7751_PCIAINTM, 0x0000380f); | ||
72 | |||
73 | /* Set up standard PCI config registers */ | ||
74 | PCIC_WRITE(SH7751_PCICONF1, 0xF39000C7); /* Bus Master, Mem & I/O access */ | ||
75 | PCIC_WRITE(SH7751_PCICONF2, 0x00000000); /* PCI Class code & Revision ID */ | ||
76 | PCIC_WRITE(SH7751_PCICONF4, 0xab000001); /* PCI I/O address (local regs) */ | ||
77 | PCIC_WRITE(SH7751_PCICONF5, 0x0c000000); /* PCI MEM address (local RAM) */ | ||
78 | PCIC_WRITE(SH7751_PCICONF6, 0xd0000000); /* PCI MEM address (unused) */ | ||
79 | PCIC_WRITE(SH7751_PCICONF11, 0x35051054); /* PCI Subsystem ID & Vendor ID */ | ||
80 | PCIC_WRITE(SH7751_PCILSR0, 0x03f00000); /* MEM (full 64M exposed) */ | ||
81 | PCIC_WRITE(SH7751_PCILSR1, 0x00000000); /* MEM (unused) */ | ||
82 | PCIC_WRITE(SH7751_PCILAR0, 0x0c000000); /* MEM (direct map from PCI) */ | ||
83 | PCIC_WRITE(SH7751_PCILAR1, 0x00000000); /* MEM (unused) */ | ||
84 | |||
85 | /* Now turn it on... */ | ||
86 | PCIC_WRITE(SH7751_PCICR, 0xa5000001); | ||
87 | |||
88 | /* | ||
89 | * Set PCIMBR and PCIIOBR here, assuming a single window | ||
90 | * (16M MEM, 256K IO) is enough. If a larger space is | ||
91 | * needed, the readx/writex and inx/outx functions will | ||
92 | * have to do more (e.g. setting registers for each call). | ||
93 | */ | ||
94 | |||
95 | /* | ||
96 | * Set the MBR so PCI address is one-to-one with window, | ||
97 | * meaning all calls go straight through... use BUG_ON to | ||
98 | * catch erroneous assumption. | ||
99 | */ | ||
100 | BUG_ON(PCIBIOS_MIN_MEM != SH7751_PCI_MEMORY_BASE); | ||
101 | |||
102 | PCIC_WRITE(SH7751_PCIMBR, PCIBIOS_MIN_MEM); | ||
103 | |||
104 | /* Set IOBR for window containing area specified in pci.h */ | ||
105 | PCIC_WRITE(SH7751_PCIIOBR, (PCIBIOS_MIN_IO & SH7751_PCIIOBR_MASK)); | ||
106 | |||
107 | /* All done, may as well say so... */ | ||
108 | printk("SH7751 PCI: Finished initialization of the PCI controller\n"); | ||
109 | |||
110 | return 1; | ||
111 | } | ||
112 | |||
113 | int __init pcibios_map_platform_irq(u8 slot, u8 pin) | ||
114 | { | ||
115 | switch (slot) { | ||
116 | case 0: return 13; | ||
117 | case 1: return 13; /* AMD Ethernet controller */ | ||
118 | case 2: return -1; | ||
119 | case 3: return -1; | ||
120 | case 4: return -1; | ||
121 | default: | ||
122 | printk("PCI: Bad IRQ mapping request for slot %d\n", slot); | ||
123 | return -1; | ||
124 | } | ||
125 | } | ||
126 | |||
127 | static struct resource sh7751_io_resource = { | ||
128 | .name = "SH7751 IO", | ||
129 | .start = SH7751_PCI_IO_BASE, | ||
130 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
131 | .flags = IORESOURCE_IO | ||
132 | }; | ||
133 | |||
134 | static struct resource sh7751_mem_resource = { | ||
135 | .name = "SH7751 mem", | ||
136 | .start = SH7751_PCI_MEMORY_BASE, | ||
137 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
138 | .flags = IORESOURCE_MEM | ||
139 | }; | ||
140 | |||
141 | extern struct pci_ops sh7751_pci_ops; | ||
142 | |||
143 | struct pci_channel board_pci_channels[] = { | ||
144 | { &sh7751_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
145 | { NULL, NULL, NULL, 0, 0 }, | ||
146 | }; | ||
147 | |||
diff --git a/arch/sh/boards/mach-se/7780/irq.c b/arch/sh/boards/mach-se/7780/irq.c index 66ad292c9fc3..b8d43b638fcf 100644 --- a/arch/sh/boards/mach-se/7780/irq.c +++ b/arch/sh/boards/mach-se/7780/irq.c | |||
@@ -12,10 +12,13 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <asm/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <asm/io.h> | 16 | #include <linux/io.h> |
17 | #include <mach-se/mach/se7780.h> | 17 | #include <mach-se/mach/se7780.h> |
18 | 18 | ||
19 | #define INTC_BASE 0xffd00000 | ||
20 | #define INTC_ICR1 (INTC_BASE+0x1c) | ||
21 | |||
19 | /* | 22 | /* |
20 | * Initialize IRQ setting | 23 | * Initialize IRQ setting |
21 | */ | 24 | */ |
@@ -43,4 +46,24 @@ void __init init_se7780_IRQ(void) | |||
43 | ctrl_outw((IRQPIN_PCCPW << IRQPOS_PCCPW), FPGA_INTSEL3); | 46 | ctrl_outw((IRQPIN_PCCPW << IRQPOS_PCCPW), FPGA_INTSEL3); |
44 | 47 | ||
45 | plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-7 */ | 48 | plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-7 */ |
49 | |||
50 | /* ICR1: detect low level(for 2ndcut) */ | ||
51 | ctrl_outl(0xAAAA0000, INTC_ICR1); | ||
52 | |||
53 | /* | ||
54 | * FPGA PCISEL register initialize | ||
55 | * | ||
56 | * CPU || SLOT1 | SLOT2 | S-ATA | USB | ||
57 | * ------------------------------------- | ||
58 | * INTA || INTA | INTD | -- | INTB | ||
59 | * ------------------------------------- | ||
60 | * INTB || INTB | INTA | -- | INTC | ||
61 | * ------------------------------------- | ||
62 | * INTC || INTC | INTB | INTA | -- | ||
63 | * ------------------------------------- | ||
64 | * INTD || INTD | INTC | -- | INTA | ||
65 | * ------------------------------------- | ||
66 | */ | ||
67 | ctrl_outw(0x0013, FPGA_PCI_INTSEL1); | ||
68 | ctrl_outw(0xE402, FPGA_PCI_INTSEL2); | ||
46 | } | 69 | } |
diff --git a/arch/sh/boards/mach-sh03/rtc.c b/arch/sh/boards/mach-sh03/rtc.c index 0a9266bb51c5..a8b9f844ab5b 100644 --- a/arch/sh/boards/mach-sh03/rtc.c +++ b/arch/sh/boards/mach-sh03/rtc.c | |||
@@ -35,13 +35,13 @@ | |||
35 | #define RTC_BUSY 1 | 35 | #define RTC_BUSY 1 |
36 | #define RTC_STOP 2 | 36 | #define RTC_STOP 2 |
37 | 37 | ||
38 | extern spinlock_t rtc_lock; | 38 | static DEFINE_SPINLOCK(sh03_rtc_lock); |
39 | 39 | ||
40 | unsigned long get_cmos_time(void) | 40 | unsigned long get_cmos_time(void) |
41 | { | 41 | { |
42 | unsigned int year, mon, day, hour, min, sec; | 42 | unsigned int year, mon, day, hour, min, sec; |
43 | 43 | ||
44 | spin_lock(&rtc_lock); | 44 | spin_lock(&sh03_rtc_lock); |
45 | again: | 45 | again: |
46 | do { | 46 | do { |
47 | sec = (ctrl_inb(RTC_SEC1) & 0xf) + (ctrl_inb(RTC_SEC10) & 0x7) * 10; | 47 | sec = (ctrl_inb(RTC_SEC1) & 0xf) + (ctrl_inb(RTC_SEC10) & 0x7) * 10; |
@@ -73,7 +73,7 @@ unsigned long get_cmos_time(void) | |||
73 | goto again; | 73 | goto again; |
74 | } | 74 | } |
75 | 75 | ||
76 | spin_unlock(&rtc_lock); | 76 | spin_unlock(&sh03_rtc_lock); |
77 | return mktime(year, mon, day, hour, min, sec); | 77 | return mktime(year, mon, day, hour, min, sec); |
78 | } | 78 | } |
79 | 79 | ||
@@ -91,7 +91,7 @@ static int set_rtc_mmss(unsigned long nowtime) | |||
91 | int i; | 91 | int i; |
92 | 92 | ||
93 | /* gets recalled with irq locally disabled */ | 93 | /* gets recalled with irq locally disabled */ |
94 | spin_lock(&rtc_lock); | 94 | spin_lock(&sh03_rtc_lock); |
95 | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ | 95 | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
96 | if (!(ctrl_inb(RTC_CTL) & RTC_BUSY)) | 96 | if (!(ctrl_inb(RTC_CTL) & RTC_BUSY)) |
97 | break; | 97 | break; |
@@ -113,7 +113,7 @@ static int set_rtc_mmss(unsigned long nowtime) | |||
113 | cmos_minutes, real_minutes); | 113 | cmos_minutes, real_minutes); |
114 | retval = -1; | 114 | retval = -1; |
115 | } | 115 | } |
116 | spin_unlock(&rtc_lock); | 116 | spin_unlock(&sh03_rtc_lock); |
117 | 117 | ||
118 | return retval; | 118 | return retval; |
119 | } | 119 | } |
diff --git a/arch/sh/boards/mach-snapgear/io.c b/arch/sh/boards/mach-snapgear/io.c index 0f4824264557..476650e42dbc 100644 --- a/arch/sh/boards/mach-snapgear/io.c +++ b/arch/sh/boards/mach-snapgear/io.c | |||
@@ -36,8 +36,6 @@ unsigned char snapgear_inb(unsigned long port) | |||
36 | { | 36 | { |
37 | if (PXSEG(port)) | 37 | if (PXSEG(port)) |
38 | return *(volatile unsigned char *)port; | 38 | return *(volatile unsigned char *)port; |
39 | else if (is_pci_ioaddr(port)) | ||
40 | return *(volatile unsigned char *)pci_ioaddr(port); | ||
41 | else | 39 | else |
42 | return (*port2adr(port)) & 0xff; | 40 | return (*port2adr(port)) & 0xff; |
43 | } | 41 | } |
@@ -48,8 +46,6 @@ unsigned char snapgear_inb_p(unsigned long port) | |||
48 | 46 | ||
49 | if (PXSEG(port)) | 47 | if (PXSEG(port)) |
50 | v = *(volatile unsigned char *)port; | 48 | v = *(volatile unsigned char *)port; |
51 | else if (is_pci_ioaddr(port)) | ||
52 | v = *(volatile unsigned char *)pci_ioaddr(port); | ||
53 | else | 49 | else |
54 | v = (*port2adr(port))&0xff; | 50 | v = (*port2adr(port))&0xff; |
55 | ctrl_delay(); | 51 | ctrl_delay(); |
@@ -60,8 +56,6 @@ unsigned short snapgear_inw(unsigned long port) | |||
60 | { | 56 | { |
61 | if (PXSEG(port)) | 57 | if (PXSEG(port)) |
62 | return *(volatile unsigned short *)port; | 58 | return *(volatile unsigned short *)port; |
63 | else if (is_pci_ioaddr(port)) | ||
64 | return *(volatile unsigned short *)pci_ioaddr(port); | ||
65 | else if (port >= 0x2000) | 59 | else if (port >= 0x2000) |
66 | return *port2adr(port); | 60 | return *port2adr(port); |
67 | else | 61 | else |
@@ -73,8 +67,6 @@ unsigned int snapgear_inl(unsigned long port) | |||
73 | { | 67 | { |
74 | if (PXSEG(port)) | 68 | if (PXSEG(port)) |
75 | return *(volatile unsigned long *)port; | 69 | return *(volatile unsigned long *)port; |
76 | else if (is_pci_ioaddr(port)) | ||
77 | return *(volatile unsigned int *)pci_ioaddr(port); | ||
78 | else if (port >= 0x2000) | 70 | else if (port >= 0x2000) |
79 | return *port2adr(port); | 71 | return *port2adr(port); |
80 | else | 72 | else |
@@ -87,8 +79,6 @@ void snapgear_outb(unsigned char value, unsigned long port) | |||
87 | 79 | ||
88 | if (PXSEG(port)) | 80 | if (PXSEG(port)) |
89 | *(volatile unsigned char *)port = value; | 81 | *(volatile unsigned char *)port = value; |
90 | else if (is_pci_ioaddr(port)) | ||
91 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
92 | else | 82 | else |
93 | *(port2adr(port)) = value; | 83 | *(port2adr(port)) = value; |
94 | } | 84 | } |
@@ -97,8 +87,6 @@ void snapgear_outb_p(unsigned char value, unsigned long port) | |||
97 | { | 87 | { |
98 | if (PXSEG(port)) | 88 | if (PXSEG(port)) |
99 | *(volatile unsigned char *)port = value; | 89 | *(volatile unsigned char *)port = value; |
100 | else if (is_pci_ioaddr(port)) | ||
101 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
102 | else | 90 | else |
103 | *(port2adr(port)) = value; | 91 | *(port2adr(port)) = value; |
104 | ctrl_delay(); | 92 | ctrl_delay(); |
@@ -108,8 +96,6 @@ void snapgear_outw(unsigned short value, unsigned long port) | |||
108 | { | 96 | { |
109 | if (PXSEG(port)) | 97 | if (PXSEG(port)) |
110 | *(volatile unsigned short *)port = value; | 98 | *(volatile unsigned short *)port = value; |
111 | else if (is_pci_ioaddr(port)) | ||
112 | *((unsigned short *)pci_ioaddr(port)) = value; | ||
113 | else if (port >= 0x2000) | 99 | else if (port >= 0x2000) |
114 | *port2adr(port) = value; | 100 | *port2adr(port) = value; |
115 | else | 101 | else |
@@ -120,8 +106,6 @@ void snapgear_outl(unsigned int value, unsigned long port) | |||
120 | { | 106 | { |
121 | if (PXSEG(port)) | 107 | if (PXSEG(port)) |
122 | *(volatile unsigned long *)port = value; | 108 | *(volatile unsigned long *)port = value; |
123 | else if (is_pci_ioaddr(port)) | ||
124 | *((unsigned long*)pci_ioaddr(port)) = value; | ||
125 | else | 109 | else |
126 | maybebadio(port); | 110 | maybebadio(port); |
127 | } | 111 | } |
diff --git a/arch/sh/boards/mach-systemh/io.c b/arch/sh/boards/mach-systemh/io.c index dec3db0ee933..15577ff1f715 100644 --- a/arch/sh/boards/mach-systemh/io.c +++ b/arch/sh/boards/mach-systemh/io.c | |||
@@ -35,8 +35,6 @@ unsigned char sh7751systemh_inb(unsigned long port) | |||
35 | { | 35 | { |
36 | if (PXSEG(port)) | 36 | if (PXSEG(port)) |
37 | return *(volatile unsigned char *)port; | 37 | return *(volatile unsigned char *)port; |
38 | else if (is_pci_ioaddr(port)) | ||
39 | return *(volatile unsigned char *)pci_ioaddr(port); | ||
40 | else if (port <= 0x3F1) | 38 | else if (port <= 0x3F1) |
41 | return *(volatile unsigned char *)ETHER_IOMAP(port); | 39 | return *(volatile unsigned char *)ETHER_IOMAP(port); |
42 | else | 40 | else |
@@ -49,8 +47,6 @@ unsigned char sh7751systemh_inb_p(unsigned long port) | |||
49 | 47 | ||
50 | if (PXSEG(port)) | 48 | if (PXSEG(port)) |
51 | v = *(volatile unsigned char *)port; | 49 | v = *(volatile unsigned char *)port; |
52 | else if (is_pci_ioaddr(port)) | ||
53 | v = *(volatile unsigned char *)pci_ioaddr(port); | ||
54 | else if (port <= 0x3F1) | 50 | else if (port <= 0x3F1) |
55 | v = *(volatile unsigned char *)ETHER_IOMAP(port); | 51 | v = *(volatile unsigned char *)ETHER_IOMAP(port); |
56 | else | 52 | else |
@@ -63,8 +59,6 @@ unsigned short sh7751systemh_inw(unsigned long port) | |||
63 | { | 59 | { |
64 | if (PXSEG(port)) | 60 | if (PXSEG(port)) |
65 | return *(volatile unsigned short *)port; | 61 | return *(volatile unsigned short *)port; |
66 | else if (is_pci_ioaddr(port)) | ||
67 | return *(volatile unsigned short *)pci_ioaddr(port); | ||
68 | else if (port >= 0x2000) | 62 | else if (port >= 0x2000) |
69 | return *port2adr(port); | 63 | return *port2adr(port); |
70 | else if (port <= 0x3F1) | 64 | else if (port <= 0x3F1) |
@@ -78,8 +72,6 @@ unsigned int sh7751systemh_inl(unsigned long port) | |||
78 | { | 72 | { |
79 | if (PXSEG(port)) | 73 | if (PXSEG(port)) |
80 | return *(volatile unsigned long *)port; | 74 | return *(volatile unsigned long *)port; |
81 | else if (is_pci_ioaddr(port)) | ||
82 | return *(volatile unsigned int *)pci_ioaddr(port); | ||
83 | else if (port >= 0x2000) | 75 | else if (port >= 0x2000) |
84 | return *port2adr(port); | 76 | return *port2adr(port); |
85 | else if (port <= 0x3F1) | 77 | else if (port <= 0x3F1) |
@@ -94,8 +86,6 @@ void sh7751systemh_outb(unsigned char value, unsigned long port) | |||
94 | 86 | ||
95 | if (PXSEG(port)) | 87 | if (PXSEG(port)) |
96 | *(volatile unsigned char *)port = value; | 88 | *(volatile unsigned char *)port = value; |
97 | else if (is_pci_ioaddr(port)) | ||
98 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
99 | else if (port <= 0x3F1) | 89 | else if (port <= 0x3F1) |
100 | *(volatile unsigned char *)ETHER_IOMAP(port) = value; | 90 | *(volatile unsigned char *)ETHER_IOMAP(port) = value; |
101 | else | 91 | else |
@@ -106,8 +96,6 @@ void sh7751systemh_outb_p(unsigned char value, unsigned long port) | |||
106 | { | 96 | { |
107 | if (PXSEG(port)) | 97 | if (PXSEG(port)) |
108 | *(volatile unsigned char *)port = value; | 98 | *(volatile unsigned char *)port = value; |
109 | else if (is_pci_ioaddr(port)) | ||
110 | *((unsigned char*)pci_ioaddr(port)) = value; | ||
111 | else if (port <= 0x3F1) | 99 | else if (port <= 0x3F1) |
112 | *(volatile unsigned char *)ETHER_IOMAP(port) = value; | 100 | *(volatile unsigned char *)ETHER_IOMAP(port) = value; |
113 | else | 101 | else |
@@ -119,8 +107,6 @@ void sh7751systemh_outw(unsigned short value, unsigned long port) | |||
119 | { | 107 | { |
120 | if (PXSEG(port)) | 108 | if (PXSEG(port)) |
121 | *(volatile unsigned short *)port = value; | 109 | *(volatile unsigned short *)port = value; |
122 | else if (is_pci_ioaddr(port)) | ||
123 | *((unsigned short *)pci_ioaddr(port)) = value; | ||
124 | else if (port >= 0x2000) | 110 | else if (port >= 0x2000) |
125 | *port2adr(port) = value; | 111 | *port2adr(port) = value; |
126 | else if (port <= 0x3F1) | 112 | else if (port <= 0x3F1) |
@@ -133,8 +119,6 @@ void sh7751systemh_outl(unsigned int value, unsigned long port) | |||
133 | { | 119 | { |
134 | if (PXSEG(port)) | 120 | if (PXSEG(port)) |
135 | *(volatile unsigned long *)port = value; | 121 | *(volatile unsigned long *)port = value; |
136 | else if (is_pci_ioaddr(port)) | ||
137 | *((unsigned long*)pci_ioaddr(port)) = value; | ||
138 | else | 122 | else |
139 | maybebadio(port); | 123 | maybebadio(port); |
140 | } | 124 | } |
diff --git a/arch/sh/boards/mach-titan/io.c b/arch/sh/boards/mach-titan/io.c index 4badad4c6f30..0130e9826aca 100644 --- a/arch/sh/boards/mach-titan/io.c +++ b/arch/sh/boards/mach-titan/io.c | |||
@@ -17,8 +17,6 @@ u8 titan_inb(unsigned long port) | |||
17 | { | 17 | { |
18 | if (PXSEG(port)) | 18 | if (PXSEG(port)) |
19 | return ctrl_inb(port); | 19 | return ctrl_inb(port); |
20 | else if (is_pci_ioaddr(port)) | ||
21 | return ctrl_inb(pci_ioaddr(port)); | ||
22 | return ctrl_inw(port2adr(port)) & 0xff; | 20 | return ctrl_inw(port2adr(port)) & 0xff; |
23 | } | 21 | } |
24 | 22 | ||
@@ -28,8 +26,6 @@ u8 titan_inb_p(unsigned long port) | |||
28 | 26 | ||
29 | if (PXSEG(port)) | 27 | if (PXSEG(port)) |
30 | v = ctrl_inb(port); | 28 | v = ctrl_inb(port); |
31 | else if (is_pci_ioaddr(port)) | ||
32 | v = ctrl_inb(pci_ioaddr(port)); | ||
33 | else | 29 | else |
34 | v = ctrl_inw(port2adr(port)) & 0xff; | 30 | v = ctrl_inw(port2adr(port)) & 0xff; |
35 | ctrl_delay(); | 31 | ctrl_delay(); |
@@ -40,8 +36,6 @@ u16 titan_inw(unsigned long port) | |||
40 | { | 36 | { |
41 | if (PXSEG(port)) | 37 | if (PXSEG(port)) |
42 | return ctrl_inw(port); | 38 | return ctrl_inw(port); |
43 | else if (is_pci_ioaddr(port)) | ||
44 | return ctrl_inw(pci_ioaddr(port)); | ||
45 | else if (port >= 0x2000) | 39 | else if (port >= 0x2000) |
46 | return ctrl_inw(port2adr(port)); | 40 | return ctrl_inw(port2adr(port)); |
47 | else | 41 | else |
@@ -53,8 +47,6 @@ u32 titan_inl(unsigned long port) | |||
53 | { | 47 | { |
54 | if (PXSEG(port)) | 48 | if (PXSEG(port)) |
55 | return ctrl_inl(port); | 49 | return ctrl_inl(port); |
56 | else if (is_pci_ioaddr(port)) | ||
57 | return ctrl_inl(pci_ioaddr(port)); | ||
58 | else if (port >= 0x2000) | 50 | else if (port >= 0x2000) |
59 | return ctrl_inw(port2adr(port)); | 51 | return ctrl_inw(port2adr(port)); |
60 | else | 52 | else |
@@ -66,8 +58,6 @@ void titan_outb(u8 value, unsigned long port) | |||
66 | { | 58 | { |
67 | if (PXSEG(port)) | 59 | if (PXSEG(port)) |
68 | ctrl_outb(value, port); | 60 | ctrl_outb(value, port); |
69 | else if (is_pci_ioaddr(port)) | ||
70 | ctrl_outb(value, pci_ioaddr(port)); | ||
71 | else | 61 | else |
72 | ctrl_outw(value, port2adr(port)); | 62 | ctrl_outw(value, port2adr(port)); |
73 | } | 63 | } |
@@ -76,8 +66,6 @@ void titan_outb_p(u8 value, unsigned long port) | |||
76 | { | 66 | { |
77 | if (PXSEG(port)) | 67 | if (PXSEG(port)) |
78 | ctrl_outb(value, port); | 68 | ctrl_outb(value, port); |
79 | else if (is_pci_ioaddr(port)) | ||
80 | ctrl_outb(value, pci_ioaddr(port)); | ||
81 | else | 69 | else |
82 | ctrl_outw(value, port2adr(port)); | 70 | ctrl_outw(value, port2adr(port)); |
83 | ctrl_delay(); | 71 | ctrl_delay(); |
@@ -87,8 +75,6 @@ void titan_outw(u16 value, unsigned long port) | |||
87 | { | 75 | { |
88 | if (PXSEG(port)) | 76 | if (PXSEG(port)) |
89 | ctrl_outw(value, port); | 77 | ctrl_outw(value, port); |
90 | else if (is_pci_ioaddr(port)) | ||
91 | ctrl_outw(value, pci_ioaddr(port)); | ||
92 | else if (port >= 0x2000) | 78 | else if (port >= 0x2000) |
93 | ctrl_outw(value, port2adr(port)); | 79 | ctrl_outw(value, port2adr(port)); |
94 | else | 80 | else |
@@ -99,8 +85,6 @@ void titan_outl(u32 value, unsigned long port) | |||
99 | { | 85 | { |
100 | if (PXSEG(port)) | 86 | if (PXSEG(port)) |
101 | ctrl_outl(value, port); | 87 | ctrl_outl(value, port); |
102 | else if (is_pci_ioaddr(port)) | ||
103 | ctrl_outl(value, pci_ioaddr(port)); | ||
104 | else | 88 | else |
105 | maybebadio(port); | 89 | maybebadio(port); |
106 | } | 90 | } |
@@ -117,10 +101,8 @@ void titan_outsl(unsigned long port, const void *src, unsigned long count) | |||
117 | 101 | ||
118 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) | 102 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) |
119 | { | 103 | { |
120 | if (PXSEG(port) || is_pci_memaddr(port)) | 104 | if (PXSEG(port)) |
121 | return (void __iomem *)port; | 105 | return (void __iomem *)port; |
122 | else if (is_pci_ioaddr(port)) | ||
123 | return (void __iomem *)pci_ioaddr(port); | ||
124 | 106 | ||
125 | return (void __iomem *)port2adr(port); | 107 | return (void __iomem *)port2adr(port); |
126 | } | 108 | } |
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index 95483d161258..78efb04c28f3 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -20,9 +20,6 @@ CONFIG_BOOT_LINK_OFFSET ?= 0x00800000 | |||
20 | CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 | 20 | CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 |
21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 | 21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 |
22 | 22 | ||
23 | export CONFIG_PAGE_OFFSET CONFIG_MEMORY_START CONFIG_BOOT_LINK_OFFSET \ | ||
24 | CONFIG_ZERO_PAGE_OFFSET CONFIG_ENTRY_OFFSET | ||
25 | |||
26 | targets := zImage vmlinux.srec uImage uImage.srec | 23 | targets := zImage vmlinux.srec uImage uImage.srec |
27 | subdir- := compressed | 24 | subdir- := compressed |
28 | 25 | ||
@@ -43,6 +40,9 @@ KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ | |||
43 | $$[$(CONFIG_MEMORY_START)]') | 40 | $$[$(CONFIG_MEMORY_START)]') |
44 | endif | 41 | endif |
45 | 42 | ||
43 | export CONFIG_PAGE_OFFSET CONFIG_MEMORY_START CONFIG_BOOT_LINK_OFFSET \ | ||
44 | CONFIG_ZERO_PAGE_OFFSET CONFIG_ENTRY_OFFSET KERNEL_MEMORY | ||
45 | |||
46 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | 46 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ |
47 | $$[$(CONFIG_PAGE_OFFSET) + \ | 47 | $$[$(CONFIG_PAGE_OFFSET) + \ |
48 | $(KERNEL_MEMORY) + \ | 48 | $(KERNEL_MEMORY) + \ |
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index efb01dc3c8c3..9531bf1b7c2f 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile | |||
@@ -1,5 +1,47 @@ | |||
1 | ifeq ($(CONFIG_SUPERH32),y) | 1 | # |
2 | include ${srctree}/arch/sh/boot/compressed/Makefile_32 | 2 | # linux/arch/sh/boot/compressed/Makefile |
3 | else | 3 | # |
4 | include ${srctree}/arch/sh/boot/compressed/Makefile_64 | 4 | # create a compressed vmlinux image from the original vmlinux |
5 | # | ||
6 | |||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ | ||
8 | head_$(BITS).o misc_$(BITS).o piggy.o | ||
9 | |||
10 | OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc_$(BITS).o $(obj)/cache.o | ||
11 | |||
12 | ifdef CONFIG_SH_STANDARD_BIOS | ||
13 | OBJECTS += $(obj)/../../kernel/sh_bios.o | ||
5 | endif | 14 | endif |
15 | |||
16 | # | ||
17 | # IMAGE_OFFSET is the load offset of the compression loader | ||
18 | # | ||
19 | IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
20 | $$[$(CONFIG_PAGE_OFFSET) + \ | ||
21 | $(KERNEL_MEMORY) + \ | ||
22 | $(CONFIG_BOOT_LINK_OFFSET)]') | ||
23 | |||
24 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | ||
25 | |||
26 | ifeq ($(CONFIG_FUNCTION_TRACER),y) | ||
27 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | ||
28 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) | ||
29 | endif | ||
30 | |||
31 | LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \ | ||
32 | -T $(obj)/../../kernel/vmlinux.lds | ||
33 | |||
34 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | ||
35 | $(call if_changed,ld) | ||
36 | @: | ||
37 | |||
38 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
39 | $(call if_changed,objcopy) | ||
40 | |||
41 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
42 | $(call if_changed,gzip) | ||
43 | |||
44 | OBJCOPYFLAGS += -R .empty_zero_page | ||
45 | |||
46 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE | ||
47 | $(call if_changed,as_o_S) | ||
diff --git a/arch/sh/boot/compressed/Makefile_32 b/arch/sh/boot/compressed/Makefile_32 deleted file mode 100644 index b96a055b053e..000000000000 --- a/arch/sh/boot/compressed/Makefile_32 +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | # | ||
2 | # linux/arch/sh/boot/compressed/Makefile | ||
3 | # | ||
4 | # create a compressed vmlinux image from the original vmlinux | ||
5 | # | ||
6 | |||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ | ||
8 | head_32.o misc_32.o piggy.o | ||
9 | |||
10 | OBJECTS = $(obj)/head_32.o $(obj)/misc_32.o | ||
11 | |||
12 | ifdef CONFIG_SH_STANDARD_BIOS | ||
13 | OBJECTS += $(obj)/../../kernel/sh_bios.o | ||
14 | endif | ||
15 | |||
16 | # | ||
17 | # IMAGE_OFFSET is the load offset of the compression loader | ||
18 | # | ||
19 | IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
20 | $$[$(CONFIG_PAGE_OFFSET) + \ | ||
21 | $(CONFIG_MEMORY_START) + \ | ||
22 | $(CONFIG_BOOT_LINK_OFFSET)]') | ||
23 | |||
24 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | ||
25 | |||
26 | ifeq ($(CONFIG_FUNCTION_TRACER),y) | ||
27 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | ||
28 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) | ||
29 | endif | ||
30 | |||
31 | LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup -T $(obj)/../../kernel/vmlinux.lds | ||
32 | |||
33 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | ||
34 | $(call if_changed,ld) | ||
35 | @: | ||
36 | |||
37 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
38 | $(call if_changed,objcopy) | ||
39 | |||
40 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
41 | $(call if_changed,gzip) | ||
42 | |||
43 | OBJCOPYFLAGS += -R .empty_zero_page | ||
44 | |||
45 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE | ||
46 | $(call if_changed,as_o_S) | ||
diff --git a/arch/sh/boot/compressed/Makefile_64 b/arch/sh/boot/compressed/Makefile_64 deleted file mode 100644 index 658d4f915556..000000000000 --- a/arch/sh/boot/compressed/Makefile_64 +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | # | ||
2 | # arch/sh/boot/compressed/Makefile_64 | ||
3 | # | ||
4 | # create a compressed vmlinux image from the original vmlinux | ||
5 | # | ||
6 | # Copyright (C) 2002 Stuart Menefy | ||
7 | # Copyright (C) 2004 Paul Mundt | ||
8 | # | ||
9 | # This file is subject to the terms and conditions of the GNU General Public | ||
10 | # License. See the file "COPYING" in the main directory of this archive | ||
11 | # for more details. | ||
12 | # | ||
13 | |||
14 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ | ||
15 | head_64.o misc_64.o cache.o piggy.o | ||
16 | |||
17 | OBJECTS := $(obj)/vmlinux_64.lds $(obj)/head_64.o $(obj)/misc_64.o \ | ||
18 | $(obj)/cache.o | ||
19 | |||
20 | # | ||
21 | # ZIMAGE_OFFSET is the load offset of the compression loader | ||
22 | # (4M for the kernel plus 64K for this loader) | ||
23 | # | ||
24 | ZIMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
25 | $$[$(CONFIG_PAGE_OFFSET)+0x400000+0x10000]') | ||
26 | |||
27 | LDFLAGS_vmlinux := -Ttext $(ZIMAGE_OFFSET) -e startup \ | ||
28 | -T $(obj)/../../kernel/vmlinux.lds | ||
29 | |||
30 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE | ||
31 | $(call if_changed,ld) | ||
32 | @: | ||
33 | |||
34 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
35 | $(call if_changed,objcopy) | ||
36 | |||
37 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
38 | $(call if_changed,gzip) | ||
39 | |||
40 | OBJCOPYFLAGS += -R .empty_zero_page | ||
41 | |||
42 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE | ||
43 | $(call if_changed,as_o_S) | ||
diff --git a/arch/sh/boot/compressed/head_64.S b/arch/sh/boot/compressed/head_64.S index 622eac3cf556..9993113c6713 100644 --- a/arch/sh/boot/compressed/head_64.S +++ b/arch/sh/boot/compressed/head_64.S | |||
@@ -14,6 +14,7 @@ | |||
14 | * Copyright (C) 2002 Stuart Menefy (stuart.menefy@st.com) | 14 | * Copyright (C) 2002 Stuart Menefy (stuart.menefy@st.com) |
15 | */ | 15 | */ |
16 | #include <asm/cache.h> | 16 | #include <asm/cache.h> |
17 | #include <asm/tlb.h> | ||
17 | #include <cpu/mmu_context.h> | 18 | #include <cpu/mmu_context.h> |
18 | #include <cpu/registers.h> | 19 | #include <cpu/registers.h> |
19 | 20 | ||
@@ -33,11 +34,7 @@ | |||
33 | #define ICCR0_INIT_VAL ICCR0_ON | ICCR0_ICI /* ICE + ICI */ | 34 | #define ICCR0_INIT_VAL ICCR0_ON | ICCR0_ICI /* ICE + ICI */ |
34 | #define ICCR1_INIT_VAL ICCR1_NOLOCK /* No locking */ | 35 | #define ICCR1_INIT_VAL ICCR1_NOLOCK /* No locking */ |
35 | 36 | ||
36 | #if 1 | ||
37 | #define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WB /* OCE + OCI + WB */ | 37 | #define OCCR0_INIT_VAL OCCR0_ON | OCCR0_OCI | OCCR0_WB /* OCE + OCI + WB */ |
38 | #else | ||
39 | #define OCCR0_INIT_VAL OCCR0_OFF | ||
40 | #endif | ||
41 | #define OCCR1_INIT_VAL OCCR1_NOLOCK /* No locking */ | 38 | #define OCCR1_INIT_VAL OCCR1_NOLOCK /* No locking */ |
42 | 39 | ||
43 | .text | 40 | .text |
diff --git a/arch/sh/boot/compressed/vmlinux_64.lds b/arch/sh/boot/compressed/vmlinux_64.lds deleted file mode 100644 index 59c2ef4aeda5..000000000000 --- a/arch/sh/boot/compressed/vmlinux_64.lds +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | /* | ||
2 | * ld script to make compressed SuperH/shmedia Linux kernel+decompression | ||
3 | * bootstrap | ||
4 | * Modified by Stuart Menefy from arch/sh/vmlinux.lds.S written by Niibe Yutaka | ||
5 | */ | ||
6 | |||
7 | |||
8 | #ifdef CONFIG_LITTLE_ENDIAN | ||
9 | /* OUTPUT_FORMAT("elf32-sh64l-linux", "elf32-sh64l-linux", "elf32-sh64l-linux") */ | ||
10 | #define NOP 0x6ff0fff0 | ||
11 | #else | ||
12 | /* OUTPUT_FORMAT("elf32-sh64", "elf32-sh64", "elf32-sh64") */ | ||
13 | #define NOP 0xf0fff06f | ||
14 | #endif | ||
15 | |||
16 | OUTPUT_FORMAT("elf32-sh64-linux") | ||
17 | OUTPUT_ARCH(sh) | ||
18 | ENTRY(_start) | ||
19 | |||
20 | #define ALIGNED_GAP(section, align) (((ADDR(section)+SIZEOF(section)+(align)-1) & ~((align)-1))-ADDR(section)) | ||
21 | #define FOLLOWING(section, align) AT (LOADADDR(section) + ALIGNED_GAP(section,align)) | ||
22 | |||
23 | SECTIONS | ||
24 | { | ||
25 | _text = .; /* Text and read-only data */ | ||
26 | |||
27 | .text : { | ||
28 | *(.text) | ||
29 | *(.text64) | ||
30 | *(.text..SHmedia32) | ||
31 | *(.fixup) | ||
32 | *(.gnu.warning) | ||
33 | } = NOP | ||
34 | . = ALIGN(4); | ||
35 | .rodata : { *(.rodata) } | ||
36 | |||
37 | /* There is no 'real' reason for eight byte alignment, four would work | ||
38 | * as well, but gdb downloads much (*4) faster with this. | ||
39 | */ | ||
40 | . = ALIGN(8); | ||
41 | .image : { *(.image) } | ||
42 | . = ALIGN(4); | ||
43 | _etext = .; /* End of text section */ | ||
44 | |||
45 | .data : /* Data */ | ||
46 | FOLLOWING(.image, 4) | ||
47 | { | ||
48 | _data = .; | ||
49 | *(.data) | ||
50 | } | ||
51 | _data_image = LOADADDR(.data);/* Address of data section in ROM */ | ||
52 | |||
53 | _edata = .; /* End of data section */ | ||
54 | |||
55 | .stack : { stack = .; _stack = .; } | ||
56 | |||
57 | . = ALIGN(4); | ||
58 | __bss_start = .; /* BSS */ | ||
59 | .bss : { | ||
60 | *(.bss) | ||
61 | } | ||
62 | . = ALIGN(4); | ||
63 | _end = . ; | ||
64 | } | ||
diff --git a/arch/sh/cchips/Kconfig b/arch/sh/cchips/Kconfig index f43d18373f22..a5ab2eccdaa6 100644 --- a/arch/sh/cchips/Kconfig +++ b/arch/sh/cchips/Kconfig | |||
@@ -34,11 +34,6 @@ config HD64461_IRQ | |||
34 | 34 | ||
35 | Do not change this unless you know what you are doing. | 35 | Do not change this unless you know what you are doing. |
36 | 36 | ||
37 | config HD64461_IOBASE | ||
38 | hex "HD64461 start address" | ||
39 | depends on HD64461 | ||
40 | default "0xb0000000" | ||
41 | |||
42 | config HD64461_ENABLER | 37 | config HD64461_ENABLER |
43 | bool "HD64461 PCMCIA enabler" | 38 | bool "HD64461 PCMCIA enabler" |
44 | depends on HD64461 | 39 | depends on HD64461 |
diff --git a/arch/sh/cchips/hd6446x/hd64461.c b/arch/sh/cchips/hd6446x/hd64461.c index 25ef91061521..50aa0c1f76ea 100644 --- a/arch/sh/cchips/hd6446x/hd64461.c +++ b/arch/sh/cchips/hd6446x/hd64461.c | |||
@@ -80,7 +80,7 @@ int __init setup_hd64461(void) | |||
80 | 80 | ||
81 | printk(KERN_INFO | 81 | printk(KERN_INFO |
82 | "HD64461 configured at 0x%x on irq %d(mapped into %d to %d)\n", | 82 | "HD64461 configured at 0x%x on irq %d(mapped into %d to %d)\n", |
83 | CONFIG_HD64461_IOBASE, CONFIG_HD64461_IRQ, HD64461_IRQBASE, | 83 | HD64461_IOBASE, CONFIG_HD64461_IRQ, HD64461_IRQBASE, |
84 | HD64461_IRQBASE + 15); | 84 | HD64461_IRQBASE + 15); |
85 | 85 | ||
86 | /* Should be at processor specific part.. */ | 86 | /* Should be at processor specific part.. */ |
diff --git a/arch/sh/configs/ap325rxa_defconfig b/arch/sh/configs/ap325rxa_defconfig index c8d982a8a2e6..022f70e0ea03 100644 --- a/arch/sh/configs/ap325rxa_defconfig +++ b/arch/sh/configs/ap325rxa_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:46:53 2009 | 4 | # Mon Apr 27 12:42:06 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -74,6 +75,7 @@ CONFIG_EMBEDDED=y | |||
74 | CONFIG_UID16=y | 75 | CONFIG_UID16=y |
75 | CONFIG_SYSCTL_SYSCALL=y | 76 | CONFIG_SYSCTL_SYSCALL=y |
76 | # CONFIG_KALLSYMS is not set | 77 | # CONFIG_KALLSYMS is not set |
78 | # CONFIG_STRIP_ASM_SYMS is not set | ||
77 | CONFIG_HOTPLUG=y | 79 | CONFIG_HOTPLUG=y |
78 | CONFIG_PRINTK=y | 80 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 81 | CONFIG_BUG=y |
@@ -92,12 +94,15 @@ CONFIG_SLAB=y | |||
92 | # CONFIG_SLUB is not set | 94 | # CONFIG_SLUB is not set |
93 | # CONFIG_SLOB is not set | 95 | # CONFIG_SLOB is not set |
94 | # CONFIG_PROFILING is not set | 96 | # CONFIG_PROFILING is not set |
97 | # CONFIG_MARKERS is not set | ||
95 | CONFIG_HAVE_OPROFILE=y | 98 | CONFIG_HAVE_OPROFILE=y |
96 | CONFIG_HAVE_IOREMAP_PROT=y | 99 | CONFIG_HAVE_IOREMAP_PROT=y |
97 | CONFIG_HAVE_KPROBES=y | 100 | CONFIG_HAVE_KPROBES=y |
98 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -110,7 +115,6 @@ CONFIG_MODULE_UNLOAD=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 115 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 116 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 117 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 118 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 119 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 120 | ||
@@ -159,6 +163,7 @@ CONFIG_ARCH_SHMOBILE=y | |||
159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
161 | CONFIG_CPU_SUBTYPE_SH7723=y | 165 | CONFIG_CPU_SUBTYPE_SH7723=y |
166 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -168,8 +173,6 @@ CONFIG_CPU_SUBTYPE_SH7723=y | |||
168 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
173 | 176 | ||
174 | # | 177 | # |
175 | # Memory management options | 178 | # Memory management options |
@@ -573,6 +576,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
573 | CONFIG_SCSI_LOWLEVEL=y | 576 | CONFIG_SCSI_LOWLEVEL=y |
574 | # CONFIG_ISCSI_TCP is not set | 577 | # CONFIG_ISCSI_TCP is not set |
575 | # CONFIG_LIBFC is not set | 578 | # CONFIG_LIBFC is not set |
579 | # CONFIG_LIBFCOE is not set | ||
576 | # CONFIG_SCSI_DEBUG is not set | 580 | # CONFIG_SCSI_DEBUG is not set |
577 | # CONFIG_SCSI_DH is not set | 581 | # CONFIG_SCSI_DH is not set |
578 | # CONFIG_SCSI_OSD_INITIATOR is not set | 582 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -695,6 +699,7 @@ CONFIG_DEVKMEM=y | |||
695 | # | 699 | # |
696 | # Non-8250 serial port support | 700 | # Non-8250 serial port support |
697 | # | 701 | # |
702 | # CONFIG_SERIAL_MAX3100 is not set | ||
698 | CONFIG_SERIAL_SH_SCI=y | 703 | CONFIG_SERIAL_SH_SCI=y |
699 | CONFIG_SERIAL_SH_SCI_NR_UARTS=6 | 704 | CONFIG_SERIAL_SH_SCI_NR_UARTS=6 |
700 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | 705 | CONFIG_SERIAL_SH_SCI_CONSOLE=y |
@@ -1030,6 +1035,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y | |||
1030 | CONFIG_EXT2_FS_SECURITY=y | 1035 | CONFIG_EXT2_FS_SECURITY=y |
1031 | # CONFIG_EXT2_FS_XIP is not set | 1036 | # CONFIG_EXT2_FS_XIP is not set |
1032 | CONFIG_EXT3_FS=y | 1037 | CONFIG_EXT3_FS=y |
1038 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1033 | CONFIG_EXT3_FS_XATTR=y | 1039 | CONFIG_EXT3_FS_XATTR=y |
1034 | CONFIG_EXT3_FS_POSIX_ACL=y | 1040 | CONFIG_EXT3_FS_POSIX_ACL=y |
1035 | CONFIG_EXT3_FS_SECURITY=y | 1041 | CONFIG_EXT3_FS_SECURITY=y |
@@ -1052,6 +1058,11 @@ CONFIG_INOTIFY_USER=y | |||
1052 | # CONFIG_FUSE_FS is not set | 1058 | # CONFIG_FUSE_FS is not set |
1053 | 1059 | ||
1054 | # | 1060 | # |
1061 | # Caches | ||
1062 | # | ||
1063 | # CONFIG_FSCACHE is not set | ||
1064 | |||
1065 | # | ||
1055 | # CD-ROM/DVD Filesystems | 1066 | # CD-ROM/DVD Filesystems |
1056 | # | 1067 | # |
1057 | # CONFIG_ISO9660_FS is not set | 1068 | # CONFIG_ISO9660_FS is not set |
@@ -1100,6 +1111,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1100 | # CONFIG_ROMFS_FS is not set | 1111 | # CONFIG_ROMFS_FS is not set |
1101 | # CONFIG_SYSV_FS is not set | 1112 | # CONFIG_SYSV_FS is not set |
1102 | # CONFIG_UFS_FS is not set | 1113 | # CONFIG_UFS_FS is not set |
1114 | # CONFIG_NILFS2_FS is not set | ||
1103 | CONFIG_NETWORK_FILESYSTEMS=y | 1115 | CONFIG_NETWORK_FILESYSTEMS=y |
1104 | CONFIG_NFS_FS=y | 1116 | CONFIG_NFS_FS=y |
1105 | CONFIG_NFS_V3=y | 1117 | CONFIG_NFS_V3=y |
@@ -1191,10 +1203,24 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1191 | CONFIG_HAVE_FUNCTION_TRACER=y | 1203 | CONFIG_HAVE_FUNCTION_TRACER=y |
1192 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1204 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1193 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1205 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1206 | CONFIG_TRACING_SUPPORT=y | ||
1194 | 1207 | ||
1195 | # | 1208 | # |
1196 | # Tracers | 1209 | # Tracers |
1197 | # | 1210 | # |
1211 | # CONFIG_FUNCTION_TRACER is not set | ||
1212 | # CONFIG_IRQSOFF_TRACER is not set | ||
1213 | # CONFIG_PREEMPT_TRACER is not set | ||
1214 | # CONFIG_SCHED_TRACER is not set | ||
1215 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1216 | # CONFIG_EVENT_TRACER is not set | ||
1217 | # CONFIG_BOOT_TRACER is not set | ||
1218 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1219 | # CONFIG_STACK_TRACER is not set | ||
1220 | # CONFIG_KMEMTRACE is not set | ||
1221 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1222 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1223 | # CONFIG_DMA_API_DEBUG is not set | ||
1198 | # CONFIG_SAMPLES is not set | 1224 | # CONFIG_SAMPLES is not set |
1199 | CONFIG_HAVE_ARCH_KGDB=y | 1225 | CONFIG_HAVE_ARCH_KGDB=y |
1200 | # CONFIG_SH_STANDARD_BIOS is not set | 1226 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1303,6 +1329,7 @@ CONFIG_CRYPTO_CBC=y | |||
1303 | # | 1329 | # |
1304 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1330 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1305 | CONFIG_CRYPTO_HW=y | 1331 | CONFIG_CRYPTO_HW=y |
1332 | # CONFIG_BINARY_PRINTF is not set | ||
1306 | 1333 | ||
1307 | # | 1334 | # |
1308 | # Library routines | 1335 | # Library routines |
diff --git a/arch/sh/configs/cayman_defconfig b/arch/sh/configs/cayman_defconfig index fa5fc1e1e980..40301f86a45c 100644 --- a/arch/sh/configs/cayman_defconfig +++ b/arch/sh/configs/cayman_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:49:14 2009 | 4 | # Mon Apr 27 13:42:53 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | # CONFIG_SUPERH32 is not set | 7 | # CONFIG_SUPERH32 is not set |
@@ -40,6 +40,7 @@ CONFIG_LOCALVERSION_AUTO=y | |||
40 | CONFIG_SWAP=y | 40 | CONFIG_SWAP=y |
41 | # CONFIG_SYSVIPC is not set | 41 | # CONFIG_SYSVIPC is not set |
42 | CONFIG_POSIX_MQUEUE=y | 42 | CONFIG_POSIX_MQUEUE=y |
43 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | # CONFIG_BSD_PROCESS_ACCT is not set | 44 | # CONFIG_BSD_PROCESS_ACCT is not set |
44 | # CONFIG_TASKSTATS is not set | 45 | # CONFIG_TASKSTATS is not set |
45 | # CONFIG_AUDIT is not set | 46 | # CONFIG_AUDIT is not set |
@@ -70,6 +71,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
70 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
71 | # CONFIG_KALLSYMS_ALL is not set | 72 | # CONFIG_KALLSYMS_ALL is not set |
72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
74 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | CONFIG_HOTPLUG=y | 75 | CONFIG_HOTPLUG=y |
74 | CONFIG_PRINTK=y | 76 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 77 | CONFIG_BUG=y |
@@ -89,10 +91,13 @@ CONFIG_SLAB=y | |||
89 | # CONFIG_SLUB is not set | 91 | # CONFIG_SLUB is not set |
90 | # CONFIG_SLOB is not set | 92 | # CONFIG_SLOB is not set |
91 | # CONFIG_PROFILING is not set | 93 | # CONFIG_PROFILING is not set |
94 | # CONFIG_MARKERS is not set | ||
92 | CONFIG_HAVE_OPROFILE=y | 95 | CONFIG_HAVE_OPROFILE=y |
93 | CONFIG_HAVE_IOREMAP_PROT=y | 96 | CONFIG_HAVE_IOREMAP_PROT=y |
94 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 97 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
95 | CONFIG_HAVE_CLK=y | 98 | CONFIG_HAVE_CLK=y |
99 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
100 | # CONFIG_SLOW_WORK is not set | ||
96 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
97 | CONFIG_SLABINFO=y | 102 | CONFIG_SLABINFO=y |
98 | CONFIG_RT_MUTEXES=y | 103 | CONFIG_RT_MUTEXES=y |
@@ -105,7 +110,6 @@ CONFIG_MODULE_UNLOAD=y | |||
105 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 110 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
106 | CONFIG_BLOCK=y | 111 | CONFIG_BLOCK=y |
107 | # CONFIG_LBD is not set | 112 | # CONFIG_LBD is not set |
108 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
109 | # CONFIG_BLK_DEV_BSG is not set | 113 | # CONFIG_BLK_DEV_BSG is not set |
110 | # CONFIG_BLK_DEV_INTEGRITY is not set | 114 | # CONFIG_BLK_DEV_INTEGRITY is not set |
111 | 115 | ||
@@ -127,39 +131,6 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
127 | # System type | 131 | # System type |
128 | # | 132 | # |
129 | CONFIG_CPU_SH5=y | 133 | CONFIG_CPU_SH5=y |
130 | # CONFIG_CPU_SUBTYPE_SH7619 is not set | ||
131 | # CONFIG_CPU_SUBTYPE_SH7201 is not set | ||
132 | # CONFIG_CPU_SUBTYPE_SH7203 is not set | ||
133 | # CONFIG_CPU_SUBTYPE_SH7206 is not set | ||
134 | # CONFIG_CPU_SUBTYPE_SH7263 is not set | ||
135 | # CONFIG_CPU_SUBTYPE_MXG is not set | ||
136 | # CONFIG_CPU_SUBTYPE_SH7705 is not set | ||
137 | # CONFIG_CPU_SUBTYPE_SH7706 is not set | ||
138 | # CONFIG_CPU_SUBTYPE_SH7707 is not set | ||
139 | # CONFIG_CPU_SUBTYPE_SH7708 is not set | ||
140 | # CONFIG_CPU_SUBTYPE_SH7709 is not set | ||
141 | # CONFIG_CPU_SUBTYPE_SH7710 is not set | ||
142 | # CONFIG_CPU_SUBTYPE_SH7712 is not set | ||
143 | # CONFIG_CPU_SUBTYPE_SH7720 is not set | ||
144 | # CONFIG_CPU_SUBTYPE_SH7721 is not set | ||
145 | # CONFIG_CPU_SUBTYPE_SH7750 is not set | ||
146 | # CONFIG_CPU_SUBTYPE_SH7091 is not set | ||
147 | # CONFIG_CPU_SUBTYPE_SH7750R is not set | ||
148 | # CONFIG_CPU_SUBTYPE_SH7750S is not set | ||
149 | # CONFIG_CPU_SUBTYPE_SH7751 is not set | ||
150 | # CONFIG_CPU_SUBTYPE_SH7751R is not set | ||
151 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | ||
152 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | ||
153 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | ||
155 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | ||
157 | # CONFIG_CPU_SUBTYPE_SH7785 is not set | ||
158 | # CONFIG_CPU_SUBTYPE_SH7786 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SHX3 is not set | ||
160 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | ||
161 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | ||
163 | CONFIG_CPU_SUBTYPE_SH5_101=y | 134 | CONFIG_CPU_SUBTYPE_SH5_101=y |
164 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | 135 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set |
165 | 136 | ||
@@ -279,8 +250,6 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000 | |||
279 | # | 250 | # |
280 | CONFIG_PCI=y | 251 | CONFIG_PCI=y |
281 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 252 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
282 | CONFIG_PCI_AUTO=y | ||
283 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
284 | # CONFIG_PCIEPORTBUS is not set | 253 | # CONFIG_PCIEPORTBUS is not set |
285 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 254 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
286 | CONFIG_PCI_LEGACY=y | 255 | CONFIG_PCI_LEGACY=y |
@@ -492,6 +461,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
492 | # CONFIG_SCSI_MPT2SAS is not set | 461 | # CONFIG_SCSI_MPT2SAS is not set |
493 | # CONFIG_SCSI_HPTIOP is not set | 462 | # CONFIG_SCSI_HPTIOP is not set |
494 | # CONFIG_LIBFC is not set | 463 | # CONFIG_LIBFC is not set |
464 | # CONFIG_LIBFCOE is not set | ||
495 | # CONFIG_FCOE is not set | 465 | # CONFIG_FCOE is not set |
496 | # CONFIG_SCSI_DMX3191D is not set | 466 | # CONFIG_SCSI_DMX3191D is not set |
497 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 467 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -568,6 +538,7 @@ CONFIG_NETDEV_1000=y | |||
568 | # CONFIG_E1000E is not set | 538 | # CONFIG_E1000E is not set |
569 | # CONFIG_IP1000 is not set | 539 | # CONFIG_IP1000 is not set |
570 | # CONFIG_IGB is not set | 540 | # CONFIG_IGB is not set |
541 | # CONFIG_IGBVF is not set | ||
571 | # CONFIG_NS83820 is not set | 542 | # CONFIG_NS83820 is not set |
572 | # CONFIG_HAMACHI is not set | 543 | # CONFIG_HAMACHI is not set |
573 | # CONFIG_YELLOWFIN is not set | 544 | # CONFIG_YELLOWFIN is not set |
@@ -591,6 +562,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
591 | # CONFIG_IXGBE is not set | 562 | # CONFIG_IXGBE is not set |
592 | # CONFIG_IXGB is not set | 563 | # CONFIG_IXGB is not set |
593 | # CONFIG_S2IO is not set | 564 | # CONFIG_S2IO is not set |
565 | # CONFIG_VXGE is not set | ||
594 | # CONFIG_MYRI10GE is not set | 566 | # CONFIG_MYRI10GE is not set |
595 | # CONFIG_NETXEN_NIC is not set | 567 | # CONFIG_NETXEN_NIC is not set |
596 | # CONFIG_NIU is not set | 568 | # CONFIG_NIU is not set |
@@ -779,6 +751,7 @@ CONFIG_HWMON=y | |||
779 | # CONFIG_SENSORS_F71805F is not set | 751 | # CONFIG_SENSORS_F71805F is not set |
780 | # CONFIG_SENSORS_F71882FG is not set | 752 | # CONFIG_SENSORS_F71882FG is not set |
781 | # CONFIG_SENSORS_F75375S is not set | 753 | # CONFIG_SENSORS_F75375S is not set |
754 | # CONFIG_SENSORS_G760A is not set | ||
782 | # CONFIG_SENSORS_GL518SM is not set | 755 | # CONFIG_SENSORS_GL518SM is not set |
783 | # CONFIG_SENSORS_GL520SM is not set | 756 | # CONFIG_SENSORS_GL520SM is not set |
784 | # CONFIG_SENSORS_IT87 is not set | 757 | # CONFIG_SENSORS_IT87 is not set |
@@ -1042,7 +1015,6 @@ CONFIG_HID=y | |||
1042 | # | 1015 | # |
1043 | # Special HID drivers | 1016 | # Special HID drivers |
1044 | # | 1017 | # |
1045 | CONFIG_HID_COMPAT=y | ||
1046 | CONFIG_USB_SUPPORT=y | 1018 | CONFIG_USB_SUPPORT=y |
1047 | CONFIG_USB_ARCH_HAS_HCD=y | 1019 | CONFIG_USB_ARCH_HAS_HCD=y |
1048 | CONFIG_USB_ARCH_HAS_OHCI=y | 1020 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1082,6 +1054,7 @@ CONFIG_EXT2_FS=y | |||
1082 | # CONFIG_EXT2_FS_XATTR is not set | 1054 | # CONFIG_EXT2_FS_XATTR is not set |
1083 | # CONFIG_EXT2_FS_XIP is not set | 1055 | # CONFIG_EXT2_FS_XIP is not set |
1084 | CONFIG_EXT3_FS=y | 1056 | CONFIG_EXT3_FS=y |
1057 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1085 | CONFIG_EXT3_FS_XATTR=y | 1058 | CONFIG_EXT3_FS_XATTR=y |
1086 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1059 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1087 | # CONFIG_EXT3_FS_SECURITY is not set | 1060 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1105,6 +1078,11 @@ CONFIG_INOTIFY_USER=y | |||
1105 | # CONFIG_FUSE_FS is not set | 1078 | # CONFIG_FUSE_FS is not set |
1106 | 1079 | ||
1107 | # | 1080 | # |
1081 | # Caches | ||
1082 | # | ||
1083 | # CONFIG_FSCACHE is not set | ||
1084 | |||
1085 | # | ||
1108 | # CD-ROM/DVD Filesystems | 1086 | # CD-ROM/DVD Filesystems |
1109 | # | 1087 | # |
1110 | # CONFIG_ISO9660_FS is not set | 1088 | # CONFIG_ISO9660_FS is not set |
@@ -1146,8 +1124,13 @@ CONFIG_MINIX_FS=y | |||
1146 | # CONFIG_HPFS_FS is not set | 1124 | # CONFIG_HPFS_FS is not set |
1147 | # CONFIG_QNX4FS_FS is not set | 1125 | # CONFIG_QNX4FS_FS is not set |
1148 | CONFIG_ROMFS_FS=y | 1126 | CONFIG_ROMFS_FS=y |
1127 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1128 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1129 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1130 | CONFIG_ROMFS_ON_BLOCK=y | ||
1149 | # CONFIG_SYSV_FS is not set | 1131 | # CONFIG_SYSV_FS is not set |
1150 | # CONFIG_UFS_FS is not set | 1132 | # CONFIG_UFS_FS is not set |
1133 | # CONFIG_NILFS2_FS is not set | ||
1151 | CONFIG_NETWORK_FILESYSTEMS=y | 1134 | CONFIG_NETWORK_FILESYSTEMS=y |
1152 | CONFIG_NFS_FS=y | 1135 | CONFIG_NFS_FS=y |
1153 | CONFIG_NFS_V3=y | 1136 | CONFIG_NFS_V3=y |
@@ -1208,6 +1191,9 @@ CONFIG_DEBUG_KERNEL=y | |||
1208 | CONFIG_DETECT_SOFTLOCKUP=y | 1191 | CONFIG_DETECT_SOFTLOCKUP=y |
1209 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1192 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1210 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1193 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1194 | CONFIG_DETECT_HUNG_TASK=y | ||
1195 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1196 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1211 | CONFIG_SCHED_DEBUG=y | 1197 | CONFIG_SCHED_DEBUG=y |
1212 | CONFIG_SCHEDSTATS=y | 1198 | CONFIG_SCHEDSTATS=y |
1213 | # CONFIG_TIMER_STATS is not set | 1199 | # CONFIG_TIMER_STATS is not set |
@@ -1241,15 +1227,21 @@ CONFIG_FRAME_POINTER=y | |||
1241 | # CONFIG_LATENCYTOP is not set | 1227 | # CONFIG_LATENCYTOP is not set |
1242 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | 1228 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set |
1243 | # CONFIG_PAGE_POISONING is not set | 1229 | # CONFIG_PAGE_POISONING is not set |
1230 | CONFIG_TRACING_SUPPORT=y | ||
1244 | 1231 | ||
1245 | # | 1232 | # |
1246 | # Tracers | 1233 | # Tracers |
1247 | # | 1234 | # |
1248 | # CONFIG_SCHED_TRACER is not set | 1235 | # CONFIG_SCHED_TRACER is not set |
1249 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1236 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1237 | # CONFIG_EVENT_TRACER is not set | ||
1250 | # CONFIG_BOOT_TRACER is not set | 1238 | # CONFIG_BOOT_TRACER is not set |
1251 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1239 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1240 | # CONFIG_KMEMTRACE is not set | ||
1241 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1242 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1252 | # CONFIG_DYNAMIC_DEBUG is not set | 1243 | # CONFIG_DYNAMIC_DEBUG is not set |
1244 | # CONFIG_DMA_API_DEBUG is not set | ||
1253 | # CONFIG_SAMPLES is not set | 1245 | # CONFIG_SAMPLES is not set |
1254 | # CONFIG_EARLY_SCIF_CONSOLE is not set | 1246 | # CONFIG_EARLY_SCIF_CONSOLE is not set |
1255 | # CONFIG_DEBUG_BOOTMEM is not set | 1247 | # CONFIG_DEBUG_BOOTMEM is not set |
@@ -1354,6 +1346,7 @@ CONFIG_CRYPTO=y | |||
1354 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1346 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1355 | CONFIG_CRYPTO_HW=y | 1347 | CONFIG_CRYPTO_HW=y |
1356 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1348 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1349 | # CONFIG_BINARY_PRINTF is not set | ||
1357 | 1350 | ||
1358 | # | 1351 | # |
1359 | # Library routines | 1352 | # Library routines |
diff --git a/arch/sh/configs/dreamcast_defconfig b/arch/sh/configs/dreamcast_defconfig index 5c1123640142..1f3cc98330bf 100644 --- a/arch/sh/configs/dreamcast_defconfig +++ b/arch/sh/configs/dreamcast_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:51:48 2009 | 4 | # Mon Apr 27 12:44:27 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -71,6 +72,7 @@ CONFIG_UID16=y | |||
71 | # CONFIG_SYSCTL_SYSCALL is not set | 72 | # CONFIG_SYSCTL_SYSCALL is not set |
72 | CONFIG_KALLSYMS=y | 73 | CONFIG_KALLSYMS=y |
73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 74 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
75 | # CONFIG_STRIP_ASM_SYMS is not set | ||
74 | CONFIG_HOTPLUG=y | 76 | CONFIG_HOTPLUG=y |
75 | CONFIG_PRINTK=y | 77 | CONFIG_PRINTK=y |
76 | CONFIG_BUG=y | 78 | CONFIG_BUG=y |
@@ -90,6 +92,7 @@ CONFIG_SLAB=y | |||
90 | # CONFIG_SLUB is not set | 92 | # CONFIG_SLUB is not set |
91 | # CONFIG_SLOB is not set | 93 | # CONFIG_SLOB is not set |
92 | CONFIG_PROFILING=y | 94 | CONFIG_PROFILING=y |
95 | # CONFIG_MARKERS is not set | ||
93 | # CONFIG_OPROFILE is not set | 96 | # CONFIG_OPROFILE is not set |
94 | CONFIG_HAVE_OPROFILE=y | 97 | CONFIG_HAVE_OPROFILE=y |
95 | # CONFIG_KPROBES is not set | 98 | # CONFIG_KPROBES is not set |
@@ -98,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
98 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -110,7 +115,6 @@ CONFIG_MODULE_UNLOAD=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 115 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 116 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 117 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 118 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 119 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 120 | ||
@@ -156,6 +160,7 @@ CONFIG_CPU_SUBTYPE_SH7091=y | |||
156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -165,8 +170,6 @@ CONFIG_CPU_SUBTYPE_SH7091=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
170 | 173 | ||
171 | # | 174 | # |
172 | # Memory management options | 175 | # Memory management options |
@@ -271,7 +274,7 @@ CONFIG_CPU_FREQ_GOV_USERSPACE=y | |||
271 | CONFIG_SH_DMA_API=y | 274 | CONFIG_SH_DMA_API=y |
272 | CONFIG_SH_DMA=y | 275 | CONFIG_SH_DMA=y |
273 | CONFIG_SH_DMA_IRQ_MULTI=y | 276 | CONFIG_SH_DMA_IRQ_MULTI=y |
274 | CONFIG_NR_ONCHIP_DMA_CHANNELS=6 | 277 | CONFIG_NR_ONCHIP_DMA_CHANNELS=4 |
275 | CONFIG_NR_DMA_CHANNELS_BOOL=y | 278 | CONFIG_NR_DMA_CHANNELS_BOOL=y |
276 | CONFIG_NR_DMA_CHANNELS=9 | 279 | CONFIG_NR_DMA_CHANNELS=9 |
277 | # CONFIG_PVR2_DMA is not set | 280 | # CONFIG_PVR2_DMA is not set |
@@ -320,7 +323,6 @@ CONFIG_CMDLINE="console=ttySC1,115200 panic=3" | |||
320 | CONFIG_MAPLE=y | 323 | CONFIG_MAPLE=y |
321 | CONFIG_PCI=y | 324 | CONFIG_PCI=y |
322 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 325 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
323 | CONFIG_PCI_AUTO=y | ||
324 | # CONFIG_PCIEPORTBUS is not set | 326 | # CONFIG_PCIEPORTBUS is not set |
325 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 327 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
326 | CONFIG_PCI_LEGACY=y | 328 | CONFIG_PCI_LEGACY=y |
@@ -602,6 +604,7 @@ CONFIG_INPUT_MOUSE=y | |||
602 | # CONFIG_MOUSE_APPLETOUCH is not set | 604 | # CONFIG_MOUSE_APPLETOUCH is not set |
603 | # CONFIG_MOUSE_BCM5974 is not set | 605 | # CONFIG_MOUSE_BCM5974 is not set |
604 | # CONFIG_MOUSE_VSXXXAA is not set | 606 | # CONFIG_MOUSE_VSXXXAA is not set |
607 | # CONFIG_MOUSE_MAPLE is not set | ||
605 | # CONFIG_INPUT_JOYSTICK is not set | 608 | # CONFIG_INPUT_JOYSTICK is not set |
606 | # CONFIG_INPUT_TABLET is not set | 609 | # CONFIG_INPUT_TABLET is not set |
607 | # CONFIG_INPUT_TOUCHSCREEN is not set | 610 | # CONFIG_INPUT_TOUCHSCREEN is not set |
@@ -812,7 +815,6 @@ CONFIG_HID=y | |||
812 | # | 815 | # |
813 | # Special HID drivers | 816 | # Special HID drivers |
814 | # | 817 | # |
815 | CONFIG_HID_COMPAT=y | ||
816 | CONFIG_USB_SUPPORT=y | 818 | CONFIG_USB_SUPPORT=y |
817 | CONFIG_USB_ARCH_HAS_HCD=y | 819 | CONFIG_USB_ARCH_HAS_HCD=y |
818 | CONFIG_USB_ARCH_HAS_OHCI=y | 820 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -867,6 +869,11 @@ CONFIG_INOTIFY_USER=y | |||
867 | # CONFIG_FUSE_FS is not set | 869 | # CONFIG_FUSE_FS is not set |
868 | 870 | ||
869 | # | 871 | # |
872 | # Caches | ||
873 | # | ||
874 | # CONFIG_FSCACHE is not set | ||
875 | |||
876 | # | ||
870 | # CD-ROM/DVD Filesystems | 877 | # CD-ROM/DVD Filesystems |
871 | # | 878 | # |
872 | # CONFIG_ISO9660_FS is not set | 879 | # CONFIG_ISO9660_FS is not set |
@@ -910,6 +917,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
910 | # CONFIG_ROMFS_FS is not set | 917 | # CONFIG_ROMFS_FS is not set |
911 | # CONFIG_SYSV_FS is not set | 918 | # CONFIG_SYSV_FS is not set |
912 | # CONFIG_UFS_FS is not set | 919 | # CONFIG_UFS_FS is not set |
920 | # CONFIG_NILFS2_FS is not set | ||
913 | CONFIG_NETWORK_FILESYSTEMS=y | 921 | CONFIG_NETWORK_FILESYSTEMS=y |
914 | # CONFIG_NFS_FS is not set | 922 | # CONFIG_NFS_FS is not set |
915 | # CONFIG_NFSD is not set | 923 | # CONFIG_NFSD is not set |
@@ -947,10 +955,24 @@ CONFIG_FRAME_WARN=1024 | |||
947 | CONFIG_HAVE_FUNCTION_TRACER=y | 955 | CONFIG_HAVE_FUNCTION_TRACER=y |
948 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 956 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
949 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 957 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
958 | CONFIG_TRACING_SUPPORT=y | ||
950 | 959 | ||
951 | # | 960 | # |
952 | # Tracers | 961 | # Tracers |
953 | # | 962 | # |
963 | # CONFIG_FUNCTION_TRACER is not set | ||
964 | # CONFIG_IRQSOFF_TRACER is not set | ||
965 | # CONFIG_PREEMPT_TRACER is not set | ||
966 | # CONFIG_SCHED_TRACER is not set | ||
967 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
968 | # CONFIG_EVENT_TRACER is not set | ||
969 | # CONFIG_BOOT_TRACER is not set | ||
970 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
971 | # CONFIG_STACK_TRACER is not set | ||
972 | # CONFIG_KMEMTRACE is not set | ||
973 | # CONFIG_WORKQUEUE_TRACER is not set | ||
974 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
975 | # CONFIG_DMA_API_DEBUG is not set | ||
954 | # CONFIG_SAMPLES is not set | 976 | # CONFIG_SAMPLES is not set |
955 | CONFIG_HAVE_ARCH_KGDB=y | 977 | CONFIG_HAVE_ARCH_KGDB=y |
956 | # CONFIG_SH_STANDARD_BIOS is not set | 978 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1051,6 +1073,7 @@ CONFIG_CRYPTO=y | |||
1051 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1073 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1052 | CONFIG_CRYPTO_HW=y | 1074 | CONFIG_CRYPTO_HW=y |
1053 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1075 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1076 | # CONFIG_BINARY_PRINTF is not set | ||
1054 | 1077 | ||
1055 | # | 1078 | # |
1056 | # Library routines | 1079 | # Library routines |
diff --git a/arch/sh/configs/edosk7705_defconfig b/arch/sh/configs/edosk7705_defconfig index f4c34b039312..d7092457ddc7 100644 --- a/arch/sh/configs/edosk7705_defconfig +++ b/arch/sh/configs/edosk7705_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:54:02 2009 | 4 | # Mon Apr 27 12:45:04 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_FIND_NEXT_BIT=y | 11 | CONFIG_GENERIC_FIND_NEXT_BIT=y |
@@ -56,6 +57,7 @@ CONFIG_EMBEDDED=y | |||
56 | # CONFIG_UID16 is not set | 57 | # CONFIG_UID16 is not set |
57 | # CONFIG_SYSCTL_SYSCALL is not set | 58 | # CONFIG_SYSCTL_SYSCALL is not set |
58 | # CONFIG_KALLSYMS is not set | 59 | # CONFIG_KALLSYMS is not set |
60 | # CONFIG_STRIP_ASM_SYMS is not set | ||
59 | # CONFIG_HOTPLUG is not set | 61 | # CONFIG_HOTPLUG is not set |
60 | # CONFIG_PRINTK is not set | 62 | # CONFIG_PRINTK is not set |
61 | # CONFIG_BUG is not set | 63 | # CONFIG_BUG is not set |
@@ -74,12 +76,15 @@ CONFIG_SHMEM=y | |||
74 | CONFIG_SLUB=y | 76 | CONFIG_SLUB=y |
75 | # CONFIG_SLOB is not set | 77 | # CONFIG_SLOB is not set |
76 | # CONFIG_PROFILING is not set | 78 | # CONFIG_PROFILING is not set |
79 | # CONFIG_MARKERS is not set | ||
77 | CONFIG_HAVE_OPROFILE=y | 80 | CONFIG_HAVE_OPROFILE=y |
78 | CONFIG_HAVE_IOREMAP_PROT=y | 81 | CONFIG_HAVE_IOREMAP_PROT=y |
79 | CONFIG_HAVE_KPROBES=y | 82 | CONFIG_HAVE_KPROBES=y |
80 | CONFIG_HAVE_KRETPROBES=y | 83 | CONFIG_HAVE_KRETPROBES=y |
81 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 84 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
82 | CONFIG_HAVE_CLK=y | 85 | CONFIG_HAVE_CLK=y |
86 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
87 | # CONFIG_SLOW_WORK is not set | ||
83 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 88 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
84 | CONFIG_BASE_SMALL=1 | 89 | CONFIG_BASE_SMALL=1 |
85 | # CONFIG_MODULES is not set | 90 | # CONFIG_MODULES is not set |
@@ -114,6 +119,7 @@ CONFIG_CPU_SUBTYPE_SH7705=y | |||
114 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 119 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
115 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 120 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
116 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 121 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
122 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
117 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 123 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
118 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 124 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
119 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 125 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -123,8 +129,6 @@ CONFIG_CPU_SUBTYPE_SH7705=y | |||
123 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 129 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
124 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 130 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
125 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 131 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
126 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
127 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
128 | 132 | ||
129 | # | 133 | # |
130 | # Memory management options | 134 | # Memory management options |
@@ -382,6 +386,10 @@ CONFIG_SSB_POSSIBLE=y | |||
382 | # CONFIG_FUSE_FS is not set | 386 | # CONFIG_FUSE_FS is not set |
383 | 387 | ||
384 | # | 388 | # |
389 | # Caches | ||
390 | # | ||
391 | |||
392 | # | ||
385 | # Pseudo filesystems | 393 | # Pseudo filesystems |
386 | # | 394 | # |
387 | # CONFIG_PROC_FS is not set | 395 | # CONFIG_PROC_FS is not set |
@@ -409,10 +417,22 @@ CONFIG_FRAME_WARN=1024 | |||
409 | CONFIG_HAVE_FUNCTION_TRACER=y | 417 | CONFIG_HAVE_FUNCTION_TRACER=y |
410 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 418 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
411 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 419 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
420 | CONFIG_TRACING_SUPPORT=y | ||
412 | 421 | ||
413 | # | 422 | # |
414 | # Tracers | 423 | # Tracers |
415 | # | 424 | # |
425 | # CONFIG_FUNCTION_TRACER is not set | ||
426 | # CONFIG_IRQSOFF_TRACER is not set | ||
427 | # CONFIG_SCHED_TRACER is not set | ||
428 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
429 | # CONFIG_EVENT_TRACER is not set | ||
430 | # CONFIG_BOOT_TRACER is not set | ||
431 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
432 | # CONFIG_STACK_TRACER is not set | ||
433 | # CONFIG_KMEMTRACE is not set | ||
434 | # CONFIG_WORKQUEUE_TRACER is not set | ||
435 | # CONFIG_DMA_API_DEBUG is not set | ||
416 | # CONFIG_SAMPLES is not set | 436 | # CONFIG_SAMPLES is not set |
417 | CONFIG_HAVE_ARCH_KGDB=y | 437 | CONFIG_HAVE_ARCH_KGDB=y |
418 | # CONFIG_SH_STANDARD_BIOS is not set | 438 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -426,6 +446,7 @@ CONFIG_HAVE_ARCH_KGDB=y | |||
426 | # CONFIG_SECURITYFS is not set | 446 | # CONFIG_SECURITYFS is not set |
427 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 447 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
428 | # CONFIG_CRYPTO is not set | 448 | # CONFIG_CRYPTO is not set |
449 | # CONFIG_BINARY_PRINTF is not set | ||
429 | 450 | ||
430 | # | 451 | # |
431 | # Library routines | 452 | # Library routines |
diff --git a/arch/sh/configs/edosk7760_defconfig b/arch/sh/configs/edosk7760_defconfig index 7825c2699f18..a822b1d8c116 100644 --- a/arch/sh/configs/edosk7760_defconfig +++ b/arch/sh/configs/edosk7760_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:54:57 2009 | 4 | # Mon Apr 27 12:45:25 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -40,6 +41,7 @@ CONFIG_SWAP=y | |||
40 | CONFIG_SYSVIPC=y | 41 | CONFIG_SYSVIPC=y |
41 | CONFIG_SYSVIPC_SYSCTL=y | 42 | CONFIG_SYSVIPC_SYSCTL=y |
42 | CONFIG_POSIX_MQUEUE=y | 43 | CONFIG_POSIX_MQUEUE=y |
44 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | CONFIG_BSD_PROCESS_ACCT=y | 45 | CONFIG_BSD_PROCESS_ACCT=y |
44 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 46 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
45 | # CONFIG_TASKSTATS is not set | 47 | # CONFIG_TASKSTATS is not set |
@@ -67,7 +69,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
67 | CONFIG_RD_GZIP=y | 69 | CONFIG_RD_GZIP=y |
68 | # CONFIG_RD_BZIP2 is not set | 70 | # CONFIG_RD_BZIP2 is not set |
69 | # CONFIG_RD_LZMA is not set | 71 | # CONFIG_RD_LZMA is not set |
70 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
71 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 72 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
72 | CONFIG_SYSCTL=y | 73 | CONFIG_SYSCTL=y |
73 | CONFIG_ANON_INODES=y | 74 | CONFIG_ANON_INODES=y |
@@ -77,6 +78,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
77 | CONFIG_KALLSYMS=y | 78 | CONFIG_KALLSYMS=y |
78 | CONFIG_KALLSYMS_ALL=y | 79 | CONFIG_KALLSYMS_ALL=y |
79 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
81 | # CONFIG_STRIP_ASM_SYMS is not set | ||
80 | CONFIG_HOTPLUG=y | 82 | CONFIG_HOTPLUG=y |
81 | CONFIG_PRINTK=y | 83 | CONFIG_PRINTK=y |
82 | CONFIG_BUG=y | 84 | CONFIG_BUG=y |
@@ -96,6 +98,7 @@ CONFIG_COMPAT_BRK=y | |||
96 | CONFIG_SLUB=y | 98 | CONFIG_SLUB=y |
97 | # CONFIG_SLOB is not set | 99 | # CONFIG_SLOB is not set |
98 | # CONFIG_PROFILING is not set | 100 | # CONFIG_PROFILING is not set |
101 | # CONFIG_MARKERS is not set | ||
99 | CONFIG_HAVE_OPROFILE=y | 102 | CONFIG_HAVE_OPROFILE=y |
100 | # CONFIG_KPROBES is not set | 103 | # CONFIG_KPROBES is not set |
101 | CONFIG_HAVE_IOREMAP_PROT=y | 104 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -103,6 +106,8 @@ CONFIG_HAVE_KPROBES=y | |||
103 | CONFIG_HAVE_KRETPROBES=y | 106 | CONFIG_HAVE_KRETPROBES=y |
104 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 107 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
105 | CONFIG_HAVE_CLK=y | 108 | CONFIG_HAVE_CLK=y |
109 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
110 | # CONFIG_SLOW_WORK is not set | ||
106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 111 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
107 | CONFIG_SLABINFO=y | 112 | CONFIG_SLABINFO=y |
108 | CONFIG_RT_MUTEXES=y | 113 | CONFIG_RT_MUTEXES=y |
@@ -115,7 +120,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
115 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 120 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
116 | CONFIG_BLOCK=y | 121 | CONFIG_BLOCK=y |
117 | # CONFIG_LBD is not set | 122 | # CONFIG_LBD is not set |
118 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
119 | # CONFIG_BLK_DEV_BSG is not set | 123 | # CONFIG_BLK_DEV_BSG is not set |
120 | # CONFIG_BLK_DEV_INTEGRITY is not set | 124 | # CONFIG_BLK_DEV_INTEGRITY is not set |
121 | 125 | ||
@@ -161,6 +165,7 @@ CONFIG_CPU_SH4=y | |||
161 | CONFIG_CPU_SUBTYPE_SH7760=y | 165 | CONFIG_CPU_SUBTYPE_SH7760=y |
162 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -170,8 +175,6 @@ CONFIG_CPU_SUBTYPE_SH7760=y | |||
170 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
174 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
175 | 178 | ||
176 | # | 179 | # |
177 | # Memory management options | 180 | # Memory management options |
@@ -815,6 +818,7 @@ CONFIG_EXT2_FS_XATTR=y | |||
815 | # CONFIG_EXT2_FS_SECURITY is not set | 818 | # CONFIG_EXT2_FS_SECURITY is not set |
816 | CONFIG_EXT2_FS_XIP=y | 819 | CONFIG_EXT2_FS_XIP=y |
817 | CONFIG_EXT3_FS=y | 820 | CONFIG_EXT3_FS=y |
821 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
818 | CONFIG_EXT3_FS_XATTR=y | 822 | CONFIG_EXT3_FS_XATTR=y |
819 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 823 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
820 | # CONFIG_EXT3_FS_SECURITY is not set | 824 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -839,6 +843,11 @@ CONFIG_INOTIFY_USER=y | |||
839 | CONFIG_GENERIC_ACL=y | 843 | CONFIG_GENERIC_ACL=y |
840 | 844 | ||
841 | # | 845 | # |
846 | # Caches | ||
847 | # | ||
848 | # CONFIG_FSCACHE is not set | ||
849 | |||
850 | # | ||
842 | # CD-ROM/DVD Filesystems | 851 | # CD-ROM/DVD Filesystems |
843 | # | 852 | # |
844 | # CONFIG_ISO9660_FS is not set | 853 | # CONFIG_ISO9660_FS is not set |
@@ -883,6 +892,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
883 | # CONFIG_ROMFS_FS is not set | 892 | # CONFIG_ROMFS_FS is not set |
884 | # CONFIG_SYSV_FS is not set | 893 | # CONFIG_SYSV_FS is not set |
885 | # CONFIG_UFS_FS is not set | 894 | # CONFIG_UFS_FS is not set |
895 | # CONFIG_NILFS2_FS is not set | ||
886 | CONFIG_NETWORK_FILESYSTEMS=y | 896 | CONFIG_NETWORK_FILESYSTEMS=y |
887 | CONFIG_NFS_FS=y | 897 | CONFIG_NFS_FS=y |
888 | # CONFIG_NFS_V3 is not set | 898 | # CONFIG_NFS_V3 is not set |
@@ -964,6 +974,9 @@ CONFIG_DEBUG_SHIRQ=y | |||
964 | CONFIG_DETECT_SOFTLOCKUP=y | 974 | CONFIG_DETECT_SOFTLOCKUP=y |
965 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 975 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
966 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 976 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
977 | CONFIG_DETECT_HUNG_TASK=y | ||
978 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
979 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
967 | # CONFIG_SCHED_DEBUG is not set | 980 | # CONFIG_SCHED_DEBUG is not set |
968 | # CONFIG_SCHEDSTATS is not set | 981 | # CONFIG_SCHEDSTATS is not set |
969 | CONFIG_TIMER_STATS=y | 982 | CONFIG_TIMER_STATS=y |
@@ -1001,6 +1014,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1001 | CONFIG_HAVE_FUNCTION_TRACER=y | 1014 | CONFIG_HAVE_FUNCTION_TRACER=y |
1002 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1015 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1003 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1016 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1017 | CONFIG_TRACING_SUPPORT=y | ||
1004 | 1018 | ||
1005 | # | 1019 | # |
1006 | # Tracers | 1020 | # Tracers |
@@ -1010,9 +1024,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1010 | # CONFIG_PREEMPT_TRACER is not set | 1024 | # CONFIG_PREEMPT_TRACER is not set |
1011 | # CONFIG_SCHED_TRACER is not set | 1025 | # CONFIG_SCHED_TRACER is not set |
1012 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1026 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1027 | # CONFIG_EVENT_TRACER is not set | ||
1013 | # CONFIG_BOOT_TRACER is not set | 1028 | # CONFIG_BOOT_TRACER is not set |
1014 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1029 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1015 | # CONFIG_STACK_TRACER is not set | 1030 | # CONFIG_STACK_TRACER is not set |
1031 | # CONFIG_KMEMTRACE is not set | ||
1032 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1033 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1034 | # CONFIG_DMA_API_DEBUG is not set | ||
1016 | # CONFIG_SAMPLES is not set | 1035 | # CONFIG_SAMPLES is not set |
1017 | CONFIG_HAVE_ARCH_KGDB=y | 1036 | CONFIG_HAVE_ARCH_KGDB=y |
1018 | # CONFIG_KGDB is not set | 1037 | # CONFIG_KGDB is not set |
@@ -1126,6 +1145,7 @@ CONFIG_CRYPTO_DES=y | |||
1126 | # | 1145 | # |
1127 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1146 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1128 | CONFIG_CRYPTO_HW=y | 1147 | CONFIG_CRYPTO_HW=y |
1148 | # CONFIG_BINARY_PRINTF is not set | ||
1129 | 1149 | ||
1130 | # | 1150 | # |
1131 | # Library routines | 1151 | # Library routines |
diff --git a/arch/sh/configs/espt_defconfig b/arch/sh/configs/espt_defconfig index ebb4c37abaa6..c5b50077913d 100644 --- a/arch/sh/configs/espt_defconfig +++ b/arch/sh/configs/espt_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 17:58:18 2009 | 4 | # Mon Apr 27 12:46:26 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -78,6 +79,7 @@ CONFIG_UID16=y | |||
78 | # CONFIG_SYSCTL_SYSCALL is not set | 79 | # CONFIG_SYSCTL_SYSCALL is not set |
79 | CONFIG_KALLSYMS=y | 80 | CONFIG_KALLSYMS=y |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
82 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 83 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 84 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 85 | CONFIG_BUG=y |
@@ -106,6 +108,8 @@ CONFIG_HAVE_KPROBES=y | |||
106 | CONFIG_HAVE_KRETPROBES=y | 108 | CONFIG_HAVE_KRETPROBES=y |
107 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 109 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
108 | CONFIG_HAVE_CLK=y | 110 | CONFIG_HAVE_CLK=y |
111 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
112 | # CONFIG_SLOW_WORK is not set | ||
109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 113 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
110 | CONFIG_SLABINFO=y | 114 | CONFIG_SLABINFO=y |
111 | CONFIG_RT_MUTEXES=y | 115 | CONFIG_RT_MUTEXES=y |
@@ -117,7 +121,6 @@ CONFIG_MODULES=y | |||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 121 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
118 | CONFIG_BLOCK=y | 122 | CONFIG_BLOCK=y |
119 | # CONFIG_LBD is not set | 123 | # CONFIG_LBD is not set |
120 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | 124 | # CONFIG_BLK_DEV_BSG is not set |
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | 125 | # CONFIG_BLK_DEV_INTEGRITY is not set |
123 | 126 | ||
@@ -164,6 +167,7 @@ CONFIG_CPU_SH4A=y | |||
164 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
167 | CONFIG_CPU_SUBTYPE_SH7763=y | 171 | CONFIG_CPU_SUBTYPE_SH7763=y |
168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -173,8 +177,6 @@ CONFIG_CPU_SUBTYPE_SH7763=y | |||
173 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 179 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
176 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
177 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
178 | 180 | ||
179 | # | 181 | # |
180 | # Memory management options | 182 | # Memory management options |
@@ -548,6 +550,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
548 | CONFIG_SCSI_LOWLEVEL=y | 550 | CONFIG_SCSI_LOWLEVEL=y |
549 | # CONFIG_ISCSI_TCP is not set | 551 | # CONFIG_ISCSI_TCP is not set |
550 | # CONFIG_LIBFC is not set | 552 | # CONFIG_LIBFC is not set |
553 | # CONFIG_LIBFCOE is not set | ||
551 | # CONFIG_SCSI_DEBUG is not set | 554 | # CONFIG_SCSI_DEBUG is not set |
552 | # CONFIG_SCSI_DH is not set | 555 | # CONFIG_SCSI_DH is not set |
553 | # CONFIG_SCSI_OSD_INITIATOR is not set | 556 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -919,6 +922,7 @@ CONFIG_EXT2_FS=y | |||
919 | # CONFIG_EXT2_FS_XATTR is not set | 922 | # CONFIG_EXT2_FS_XATTR is not set |
920 | # CONFIG_EXT2_FS_XIP is not set | 923 | # CONFIG_EXT2_FS_XIP is not set |
921 | CONFIG_EXT3_FS=y | 924 | CONFIG_EXT3_FS=y |
925 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
922 | CONFIG_EXT3_FS_XATTR=y | 926 | CONFIG_EXT3_FS_XATTR=y |
923 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 927 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
924 | # CONFIG_EXT3_FS_SECURITY is not set | 928 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -943,6 +947,11 @@ CONFIG_AUTOFS4_FS=y | |||
943 | CONFIG_GENERIC_ACL=y | 947 | CONFIG_GENERIC_ACL=y |
944 | 948 | ||
945 | # | 949 | # |
950 | # Caches | ||
951 | # | ||
952 | # CONFIG_FSCACHE is not set | ||
953 | |||
954 | # | ||
946 | # CD-ROM/DVD Filesystems | 955 | # CD-ROM/DVD Filesystems |
947 | # | 956 | # |
948 | # CONFIG_ISO9660_FS is not set | 957 | # CONFIG_ISO9660_FS is not set |
@@ -985,8 +994,13 @@ CONFIG_CRAMFS=y | |||
985 | # CONFIG_HPFS_FS is not set | 994 | # CONFIG_HPFS_FS is not set |
986 | # CONFIG_QNX4FS_FS is not set | 995 | # CONFIG_QNX4FS_FS is not set |
987 | CONFIG_ROMFS_FS=y | 996 | CONFIG_ROMFS_FS=y |
997 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
998 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
999 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1000 | CONFIG_ROMFS_ON_BLOCK=y | ||
988 | # CONFIG_SYSV_FS is not set | 1001 | # CONFIG_SYSV_FS is not set |
989 | # CONFIG_UFS_FS is not set | 1002 | # CONFIG_UFS_FS is not set |
1003 | # CONFIG_NILFS2_FS is not set | ||
990 | CONFIG_NETWORK_FILESYSTEMS=y | 1004 | CONFIG_NETWORK_FILESYSTEMS=y |
991 | CONFIG_NFS_FS=y | 1005 | CONFIG_NFS_FS=y |
992 | # CONFIG_NFS_V3 is not set | 1006 | # CONFIG_NFS_V3 is not set |
@@ -1075,11 +1089,25 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1075 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1089 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1076 | CONFIG_RING_BUFFER=y | 1090 | CONFIG_RING_BUFFER=y |
1077 | CONFIG_TRACING=y | 1091 | CONFIG_TRACING=y |
1092 | CONFIG_TRACING_SUPPORT=y | ||
1078 | 1093 | ||
1079 | # | 1094 | # |
1080 | # Tracers | 1095 | # Tracers |
1081 | # | 1096 | # |
1097 | # CONFIG_FUNCTION_TRACER is not set | ||
1098 | # CONFIG_IRQSOFF_TRACER is not set | ||
1099 | # CONFIG_SCHED_TRACER is not set | ||
1100 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1101 | # CONFIG_EVENT_TRACER is not set | ||
1102 | # CONFIG_BOOT_TRACER is not set | ||
1103 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1104 | # CONFIG_STACK_TRACER is not set | ||
1105 | # CONFIG_KMEMTRACE is not set | ||
1106 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1107 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1108 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1082 | # CONFIG_DYNAMIC_DEBUG is not set | 1109 | # CONFIG_DYNAMIC_DEBUG is not set |
1110 | # CONFIG_DMA_API_DEBUG is not set | ||
1083 | # CONFIG_SAMPLES is not set | 1111 | # CONFIG_SAMPLES is not set |
1084 | CONFIG_HAVE_ARCH_KGDB=y | 1112 | CONFIG_HAVE_ARCH_KGDB=y |
1085 | # CONFIG_SH_STANDARD_BIOS is not set | 1113 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1179,6 +1207,7 @@ CONFIG_CRYPTO=y | |||
1179 | # | 1207 | # |
1180 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1208 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1181 | CONFIG_CRYPTO_HW=y | 1209 | CONFIG_CRYPTO_HW=y |
1210 | CONFIG_BINARY_PRINTF=y | ||
1182 | 1211 | ||
1183 | # | 1212 | # |
1184 | # Library routines | 1213 | # Library routines |
diff --git a/arch/sh/configs/hp6xx_defconfig b/arch/sh/configs/hp6xx_defconfig index 82b113af08d3..8e13027eecc3 100644 --- a/arch/sh/configs/hp6xx_defconfig +++ b/arch/sh/configs/hp6xx_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:01:05 2009 | 4 | # Mon Apr 27 12:47:15 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -67,6 +68,7 @@ CONFIG_UID16=y | |||
67 | # CONFIG_SYSCTL_SYSCALL is not set | 68 | # CONFIG_SYSCTL_SYSCALL is not set |
68 | CONFIG_KALLSYMS=y | 69 | CONFIG_KALLSYMS=y |
69 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 70 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
71 | # CONFIG_STRIP_ASM_SYMS is not set | ||
70 | CONFIG_HOTPLUG=y | 72 | CONFIG_HOTPLUG=y |
71 | CONFIG_PRINTK=y | 73 | CONFIG_PRINTK=y |
72 | CONFIG_BUG=y | 74 | CONFIG_BUG=y |
@@ -85,12 +87,15 @@ CONFIG_SLAB=y | |||
85 | # CONFIG_SLUB is not set | 87 | # CONFIG_SLUB is not set |
86 | # CONFIG_SLOB is not set | 88 | # CONFIG_SLOB is not set |
87 | # CONFIG_PROFILING is not set | 89 | # CONFIG_PROFILING is not set |
90 | # CONFIG_MARKERS is not set | ||
88 | CONFIG_HAVE_OPROFILE=y | 91 | CONFIG_HAVE_OPROFILE=y |
89 | CONFIG_HAVE_IOREMAP_PROT=y | 92 | CONFIG_HAVE_IOREMAP_PROT=y |
90 | CONFIG_HAVE_KPROBES=y | 93 | CONFIG_HAVE_KPROBES=y |
91 | CONFIG_HAVE_KRETPROBES=y | 94 | CONFIG_HAVE_KRETPROBES=y |
92 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 95 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
93 | CONFIG_HAVE_CLK=y | 96 | CONFIG_HAVE_CLK=y |
97 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
98 | # CONFIG_SLOW_WORK is not set | ||
94 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 99 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
95 | CONFIG_SLABINFO=y | 100 | CONFIG_SLABINFO=y |
96 | CONFIG_RT_MUTEXES=y | 101 | CONFIG_RT_MUTEXES=y |
@@ -98,7 +103,6 @@ CONFIG_BASE_SMALL=0 | |||
98 | # CONFIG_MODULES is not set | 103 | # CONFIG_MODULES is not set |
99 | CONFIG_BLOCK=y | 104 | CONFIG_BLOCK=y |
100 | # CONFIG_LBD is not set | 105 | # CONFIG_LBD is not set |
101 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
102 | # CONFIG_BLK_DEV_BSG is not set | 106 | # CONFIG_BLK_DEV_BSG is not set |
103 | # CONFIG_BLK_DEV_INTEGRITY is not set | 107 | # CONFIG_BLK_DEV_INTEGRITY is not set |
104 | 108 | ||
@@ -144,6 +148,7 @@ CONFIG_CPU_SUBTYPE_SH7709=y | |||
144 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 148 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
145 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 149 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
146 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 150 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
151 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
147 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 152 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
148 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 153 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
149 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -153,8 +158,6 @@ CONFIG_CPU_SUBTYPE_SH7709=y | |||
153 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
157 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
158 | 161 | ||
159 | # | 162 | # |
160 | # Memory management options | 163 | # Memory management options |
@@ -385,6 +388,7 @@ CONFIG_BLK_DEV_SD=y | |||
385 | # CONFIG_SCSI_SRP_ATTRS is not set | 388 | # CONFIG_SCSI_SRP_ATTRS is not set |
386 | CONFIG_SCSI_LOWLEVEL=y | 389 | CONFIG_SCSI_LOWLEVEL=y |
387 | # CONFIG_LIBFC is not set | 390 | # CONFIG_LIBFC is not set |
391 | # CONFIG_LIBFCOE is not set | ||
388 | # CONFIG_SCSI_DEBUG is not set | 392 | # CONFIG_SCSI_DEBUG is not set |
389 | # CONFIG_SCSI_LOWLEVEL_PCMCIA is not set | 393 | # CONFIG_SCSI_LOWLEVEL_PCMCIA is not set |
390 | # CONFIG_SCSI_DH is not set | 394 | # CONFIG_SCSI_DH is not set |
@@ -431,6 +435,7 @@ CONFIG_KEYBOARD_HP6XX=y | |||
431 | # CONFIG_INPUT_JOYSTICK is not set | 435 | # CONFIG_INPUT_JOYSTICK is not set |
432 | # CONFIG_INPUT_TABLET is not set | 436 | # CONFIG_INPUT_TABLET is not set |
433 | CONFIG_INPUT_TOUCHSCREEN=y | 437 | CONFIG_INPUT_TOUCHSCREEN=y |
438 | # CONFIG_TOUCHSCREEN_AD7879 is not set | ||
434 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | 439 | # CONFIG_TOUCHSCREEN_FUJITSU is not set |
435 | # CONFIG_TOUCHSCREEN_GUNZE is not set | 440 | # CONFIG_TOUCHSCREEN_GUNZE is not set |
436 | # CONFIG_TOUCHSCREEN_ELO is not set | 441 | # CONFIG_TOUCHSCREEN_ELO is not set |
@@ -674,6 +679,11 @@ CONFIG_INOTIFY_USER=y | |||
674 | # CONFIG_FUSE_FS is not set | 679 | # CONFIG_FUSE_FS is not set |
675 | 680 | ||
676 | # | 681 | # |
682 | # Caches | ||
683 | # | ||
684 | # CONFIG_FSCACHE is not set | ||
685 | |||
686 | # | ||
677 | # CD-ROM/DVD Filesystems | 687 | # CD-ROM/DVD Filesystems |
678 | # | 688 | # |
679 | # CONFIG_ISO9660_FS is not set | 689 | # CONFIG_ISO9660_FS is not set |
@@ -719,6 +729,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
719 | # CONFIG_ROMFS_FS is not set | 729 | # CONFIG_ROMFS_FS is not set |
720 | # CONFIG_SYSV_FS is not set | 730 | # CONFIG_SYSV_FS is not set |
721 | # CONFIG_UFS_FS is not set | 731 | # CONFIG_UFS_FS is not set |
732 | # CONFIG_NILFS2_FS is not set | ||
722 | 733 | ||
723 | # | 734 | # |
724 | # Partition Types | 735 | # Partition Types |
@@ -786,10 +797,23 @@ CONFIG_FRAME_WARN=1024 | |||
786 | CONFIG_HAVE_FUNCTION_TRACER=y | 797 | CONFIG_HAVE_FUNCTION_TRACER=y |
787 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 798 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
788 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 799 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
800 | CONFIG_TRACING_SUPPORT=y | ||
789 | 801 | ||
790 | # | 802 | # |
791 | # Tracers | 803 | # Tracers |
792 | # | 804 | # |
805 | # CONFIG_FUNCTION_TRACER is not set | ||
806 | # CONFIG_IRQSOFF_TRACER is not set | ||
807 | # CONFIG_SCHED_TRACER is not set | ||
808 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
809 | # CONFIG_EVENT_TRACER is not set | ||
810 | # CONFIG_BOOT_TRACER is not set | ||
811 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
812 | # CONFIG_STACK_TRACER is not set | ||
813 | # CONFIG_KMEMTRACE is not set | ||
814 | # CONFIG_WORKQUEUE_TRACER is not set | ||
815 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
816 | # CONFIG_DMA_API_DEBUG is not set | ||
793 | # CONFIG_SAMPLES is not set | 817 | # CONFIG_SAMPLES is not set |
794 | CONFIG_HAVE_ARCH_KGDB=y | 818 | CONFIG_HAVE_ARCH_KGDB=y |
795 | # CONFIG_SH_STANDARD_BIOS is not set | 819 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -898,6 +922,7 @@ CONFIG_CRYPTO_MD5=y | |||
898 | # | 922 | # |
899 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 923 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
900 | # CONFIG_CRYPTO_HW is not set | 924 | # CONFIG_CRYPTO_HW is not set |
925 | # CONFIG_BINARY_PRINTF is not set | ||
901 | 926 | ||
902 | # | 927 | # |
903 | # Library routines | 928 | # Library routines |
diff --git a/arch/sh/configs/landisk_defconfig b/arch/sh/configs/landisk_defconfig index b6fa4a7599d0..7f549aef0dfd 100644 --- a/arch/sh/configs/landisk_defconfig +++ b/arch/sh/configs/landisk_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:02:54 2009 | 4 | # Mon Apr 27 12:47:48 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -69,6 +70,7 @@ CONFIG_UID16=y | |||
69 | # CONFIG_SYSCTL_SYSCALL is not set | 70 | # CONFIG_SYSCTL_SYSCALL is not set |
70 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
71 | CONFIG_KALLSYMS_EXTRA_PASS=y | 72 | CONFIG_KALLSYMS_EXTRA_PASS=y |
73 | # CONFIG_STRIP_ASM_SYMS is not set | ||
72 | CONFIG_HOTPLUG=y | 74 | CONFIG_HOTPLUG=y |
73 | CONFIG_PRINTK=y | 75 | CONFIG_PRINTK=y |
74 | CONFIG_BUG=y | 76 | CONFIG_BUG=y |
@@ -88,6 +90,7 @@ CONFIG_SLAB=y | |||
88 | # CONFIG_SLUB is not set | 90 | # CONFIG_SLUB is not set |
89 | # CONFIG_SLOB is not set | 91 | # CONFIG_SLOB is not set |
90 | # CONFIG_PROFILING is not set | 92 | # CONFIG_PROFILING is not set |
93 | # CONFIG_MARKERS is not set | ||
91 | CONFIG_HAVE_OPROFILE=y | 94 | CONFIG_HAVE_OPROFILE=y |
92 | # CONFIG_KPROBES is not set | 95 | # CONFIG_KPROBES is not set |
93 | CONFIG_HAVE_IOREMAP_PROT=y | 96 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -95,6 +98,8 @@ CONFIG_HAVE_KPROBES=y | |||
95 | CONFIG_HAVE_KRETPROBES=y | 98 | CONFIG_HAVE_KRETPROBES=y |
96 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 99 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
97 | CONFIG_HAVE_CLK=y | 100 | CONFIG_HAVE_CLK=y |
101 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
102 | # CONFIG_SLOW_WORK is not set | ||
98 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
99 | CONFIG_SLABINFO=y | 104 | CONFIG_SLABINFO=y |
100 | CONFIG_RT_MUTEXES=y | 105 | CONFIG_RT_MUTEXES=y |
@@ -107,7 +112,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
107 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 112 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
108 | CONFIG_BLOCK=y | 113 | CONFIG_BLOCK=y |
109 | # CONFIG_LBD is not set | 114 | # CONFIG_LBD is not set |
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_BLK_DEV_BSG is not set | 115 | # CONFIG_BLK_DEV_BSG is not set |
112 | # CONFIG_BLK_DEV_INTEGRITY is not set | 116 | # CONFIG_BLK_DEV_INTEGRITY is not set |
113 | 117 | ||
@@ -153,6 +157,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
153 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -162,8 +167,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
162 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
166 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
167 | 170 | ||
168 | # | 171 | # |
169 | # Memory management options | 172 | # Memory management options |
@@ -292,8 +295,6 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000 | |||
292 | # | 295 | # |
293 | CONFIG_PCI=y | 296 | CONFIG_PCI=y |
294 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 297 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
295 | CONFIG_PCI_AUTO=y | ||
296 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
297 | # CONFIG_PCIEPORTBUS is not set | 298 | # CONFIG_PCIEPORTBUS is not set |
298 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 299 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
299 | CONFIG_PCI_LEGACY=y | 300 | CONFIG_PCI_LEGACY=y |
@@ -602,6 +603,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
602 | # CONFIG_SCSI_MPT2SAS is not set | 603 | # CONFIG_SCSI_MPT2SAS is not set |
603 | # CONFIG_SCSI_HPTIOP is not set | 604 | # CONFIG_SCSI_HPTIOP is not set |
604 | # CONFIG_LIBFC is not set | 605 | # CONFIG_LIBFC is not set |
606 | # CONFIG_LIBFCOE is not set | ||
605 | # CONFIG_FCOE is not set | 607 | # CONFIG_FCOE is not set |
606 | # CONFIG_SCSI_DMX3191D is not set | 608 | # CONFIG_SCSI_DMX3191D is not set |
607 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 609 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -706,6 +708,7 @@ CONFIG_NETDEV_1000=y | |||
706 | # CONFIG_E1000E is not set | 708 | # CONFIG_E1000E is not set |
707 | # CONFIG_IP1000 is not set | 709 | # CONFIG_IP1000 is not set |
708 | # CONFIG_IGB is not set | 710 | # CONFIG_IGB is not set |
711 | # CONFIG_IGBVF is not set | ||
709 | # CONFIG_NS83820 is not set | 712 | # CONFIG_NS83820 is not set |
710 | # CONFIG_HAMACHI is not set | 713 | # CONFIG_HAMACHI is not set |
711 | # CONFIG_YELLOWFIN is not set | 714 | # CONFIG_YELLOWFIN is not set |
@@ -729,6 +732,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
729 | # CONFIG_IXGBE is not set | 732 | # CONFIG_IXGBE is not set |
730 | # CONFIG_IXGB is not set | 733 | # CONFIG_IXGB is not set |
731 | # CONFIG_S2IO is not set | 734 | # CONFIG_S2IO is not set |
735 | # CONFIG_VXGE is not set | ||
732 | # CONFIG_MYRI10GE is not set | 736 | # CONFIG_MYRI10GE is not set |
733 | # CONFIG_NETXEN_NIC is not set | 737 | # CONFIG_NETXEN_NIC is not set |
734 | # CONFIG_NIU is not set | 738 | # CONFIG_NIU is not set |
@@ -922,6 +926,7 @@ CONFIG_VIDEO_HELPER_CHIPS_AUTO=y | |||
922 | # CONFIG_SOC_CAMERA is not set | 926 | # CONFIG_SOC_CAMERA is not set |
923 | CONFIG_V4L_USB_DRIVERS=y | 927 | CONFIG_V4L_USB_DRIVERS=y |
924 | # CONFIG_USB_VIDEO_CLASS is not set | 928 | # CONFIG_USB_VIDEO_CLASS is not set |
929 | CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y | ||
925 | # CONFIG_USB_GSPCA is not set | 930 | # CONFIG_USB_GSPCA is not set |
926 | # CONFIG_VIDEO_HDPVR is not set | 931 | # CONFIG_VIDEO_HDPVR is not set |
927 | CONFIG_VIDEO_USBVIDEO=m | 932 | CONFIG_VIDEO_USBVIDEO=m |
@@ -994,15 +999,17 @@ CONFIG_USB_HID=m | |||
994 | # | 999 | # |
995 | # Special HID drivers | 1000 | # Special HID drivers |
996 | # | 1001 | # |
997 | CONFIG_HID_COMPAT=y | ||
998 | CONFIG_HID_A4TECH=m | 1002 | CONFIG_HID_A4TECH=m |
999 | CONFIG_HID_APPLE=m | 1003 | CONFIG_HID_APPLE=m |
1000 | CONFIG_HID_BELKIN=m | 1004 | CONFIG_HID_BELKIN=m |
1001 | CONFIG_HID_CHERRY=m | 1005 | CONFIG_HID_CHERRY=m |
1002 | CONFIG_HID_CHICONY=m | 1006 | CONFIG_HID_CHICONY=m |
1003 | CONFIG_HID_CYPRESS=m | 1007 | CONFIG_HID_CYPRESS=m |
1008 | # CONFIG_DRAGONRISE_FF is not set | ||
1004 | CONFIG_HID_EZKEY=m | 1009 | CONFIG_HID_EZKEY=m |
1010 | # CONFIG_HID_KYE is not set | ||
1005 | CONFIG_HID_GYRATION=m | 1011 | CONFIG_HID_GYRATION=m |
1012 | # CONFIG_HID_KENSINGTON is not set | ||
1006 | CONFIG_HID_LOGITECH=m | 1013 | CONFIG_HID_LOGITECH=m |
1007 | # CONFIG_LOGITECH_FF is not set | 1014 | # CONFIG_LOGITECH_FF is not set |
1008 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 1015 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1197,6 +1204,7 @@ CONFIG_EXT2_FS=y | |||
1197 | # CONFIG_EXT2_FS_XATTR is not set | 1204 | # CONFIG_EXT2_FS_XATTR is not set |
1198 | # CONFIG_EXT2_FS_XIP is not set | 1205 | # CONFIG_EXT2_FS_XIP is not set |
1199 | CONFIG_EXT3_FS=y | 1206 | CONFIG_EXT3_FS=y |
1207 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1200 | CONFIG_EXT3_FS_XATTR=y | 1208 | CONFIG_EXT3_FS_XATTR=y |
1201 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1209 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1202 | # CONFIG_EXT3_FS_SECURITY is not set | 1210 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1222,6 +1230,11 @@ CONFIG_INOTIFY_USER=y | |||
1222 | # CONFIG_FUSE_FS is not set | 1230 | # CONFIG_FUSE_FS is not set |
1223 | 1231 | ||
1224 | # | 1232 | # |
1233 | # Caches | ||
1234 | # | ||
1235 | # CONFIG_FSCACHE is not set | ||
1236 | |||
1237 | # | ||
1225 | # CD-ROM/DVD Filesystems | 1238 | # CD-ROM/DVD Filesystems |
1226 | # | 1239 | # |
1227 | CONFIG_ISO9660_FS=m | 1240 | CONFIG_ISO9660_FS=m |
@@ -1270,10 +1283,15 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1270 | # CONFIG_HPFS_FS is not set | 1283 | # CONFIG_HPFS_FS is not set |
1271 | # CONFIG_QNX4FS_FS is not set | 1284 | # CONFIG_QNX4FS_FS is not set |
1272 | CONFIG_ROMFS_FS=y | 1285 | CONFIG_ROMFS_FS=y |
1286 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1287 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1288 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1289 | CONFIG_ROMFS_ON_BLOCK=y | ||
1273 | # CONFIG_SYSV_FS is not set | 1290 | # CONFIG_SYSV_FS is not set |
1274 | CONFIG_UFS_FS=m | 1291 | CONFIG_UFS_FS=m |
1275 | # CONFIG_UFS_FS_WRITE is not set | 1292 | # CONFIG_UFS_FS_WRITE is not set |
1276 | # CONFIG_UFS_DEBUG is not set | 1293 | # CONFIG_UFS_DEBUG is not set |
1294 | # CONFIG_NILFS2_FS is not set | ||
1277 | CONFIG_NETWORK_FILESYSTEMS=y | 1295 | CONFIG_NETWORK_FILESYSTEMS=y |
1278 | CONFIG_NFS_FS=m | 1296 | CONFIG_NFS_FS=m |
1279 | CONFIG_NFS_V3=y | 1297 | CONFIG_NFS_V3=y |
@@ -1364,10 +1382,23 @@ CONFIG_FRAME_WARN=1024 | |||
1364 | CONFIG_HAVE_FUNCTION_TRACER=y | 1382 | CONFIG_HAVE_FUNCTION_TRACER=y |
1365 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1383 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1366 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1384 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1385 | CONFIG_TRACING_SUPPORT=y | ||
1367 | 1386 | ||
1368 | # | 1387 | # |
1369 | # Tracers | 1388 | # Tracers |
1370 | # | 1389 | # |
1390 | # CONFIG_FUNCTION_TRACER is not set | ||
1391 | # CONFIG_IRQSOFF_TRACER is not set | ||
1392 | # CONFIG_SCHED_TRACER is not set | ||
1393 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1394 | # CONFIG_EVENT_TRACER is not set | ||
1395 | # CONFIG_BOOT_TRACER is not set | ||
1396 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1397 | # CONFIG_STACK_TRACER is not set | ||
1398 | # CONFIG_KMEMTRACE is not set | ||
1399 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1400 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1401 | # CONFIG_DMA_API_DEBUG is not set | ||
1371 | # CONFIG_SAMPLES is not set | 1402 | # CONFIG_SAMPLES is not set |
1372 | CONFIG_HAVE_ARCH_KGDB=y | 1403 | CONFIG_HAVE_ARCH_KGDB=y |
1373 | CONFIG_SH_STANDARD_BIOS=y | 1404 | CONFIG_SH_STANDARD_BIOS=y |
@@ -1469,6 +1500,7 @@ CONFIG_CRYPTO=y | |||
1469 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1500 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1470 | CONFIG_CRYPTO_HW=y | 1501 | CONFIG_CRYPTO_HW=y |
1471 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1502 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1503 | # CONFIG_BINARY_PRINTF is not set | ||
1472 | 1504 | ||
1473 | # | 1505 | # |
1474 | # Library routines | 1506 | # Library routines |
diff --git a/arch/sh/configs/lboxre2_defconfig b/arch/sh/configs/lboxre2_defconfig index 92c515c4199f..a7db539f2800 100644 --- a/arch/sh/configs/lboxre2_defconfig +++ b/arch/sh/configs/lboxre2_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:06:51 2009 | 4 | # Mon Apr 27 12:48:54 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -69,6 +70,7 @@ CONFIG_UID16=y | |||
69 | # CONFIG_SYSCTL_SYSCALL is not set | 70 | # CONFIG_SYSCTL_SYSCALL is not set |
70 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
71 | CONFIG_KALLSYMS_EXTRA_PASS=y | 72 | CONFIG_KALLSYMS_EXTRA_PASS=y |
73 | # CONFIG_STRIP_ASM_SYMS is not set | ||
72 | CONFIG_HOTPLUG=y | 74 | CONFIG_HOTPLUG=y |
73 | CONFIG_PRINTK=y | 75 | CONFIG_PRINTK=y |
74 | CONFIG_BUG=y | 76 | CONFIG_BUG=y |
@@ -88,6 +90,7 @@ CONFIG_SLAB=y | |||
88 | # CONFIG_SLUB is not set | 90 | # CONFIG_SLUB is not set |
89 | # CONFIG_SLOB is not set | 91 | # CONFIG_SLOB is not set |
90 | # CONFIG_PROFILING is not set | 92 | # CONFIG_PROFILING is not set |
93 | # CONFIG_MARKERS is not set | ||
91 | CONFIG_HAVE_OPROFILE=y | 94 | CONFIG_HAVE_OPROFILE=y |
92 | # CONFIG_KPROBES is not set | 95 | # CONFIG_KPROBES is not set |
93 | CONFIG_HAVE_IOREMAP_PROT=y | 96 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -95,6 +98,8 @@ CONFIG_HAVE_KPROBES=y | |||
95 | CONFIG_HAVE_KRETPROBES=y | 98 | CONFIG_HAVE_KRETPROBES=y |
96 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 99 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
97 | CONFIG_HAVE_CLK=y | 100 | CONFIG_HAVE_CLK=y |
101 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
102 | # CONFIG_SLOW_WORK is not set | ||
98 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
99 | CONFIG_SLABINFO=y | 104 | CONFIG_SLABINFO=y |
100 | CONFIG_RT_MUTEXES=y | 105 | CONFIG_RT_MUTEXES=y |
@@ -107,7 +112,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
107 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 112 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
108 | CONFIG_BLOCK=y | 113 | CONFIG_BLOCK=y |
109 | # CONFIG_LBD is not set | 114 | # CONFIG_LBD is not set |
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_BLK_DEV_BSG is not set | 115 | # CONFIG_BLK_DEV_BSG is not set |
112 | # CONFIG_BLK_DEV_INTEGRITY is not set | 116 | # CONFIG_BLK_DEV_INTEGRITY is not set |
113 | 117 | ||
@@ -153,6 +157,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
153 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -162,8 +167,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
162 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
166 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
167 | 170 | ||
168 | # | 171 | # |
169 | # Memory management options | 172 | # Memory management options |
@@ -293,8 +296,6 @@ CONFIG_CMDLINE="console=ttySC1,115200 root=/dev/sda1" | |||
293 | # | 296 | # |
294 | CONFIG_PCI=y | 297 | CONFIG_PCI=y |
295 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 298 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
296 | CONFIG_PCI_AUTO=y | ||
297 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
298 | # CONFIG_PCIEPORTBUS is not set | 299 | # CONFIG_PCIEPORTBUS is not set |
299 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 300 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
300 | CONFIG_PCI_LEGACY=y | 301 | CONFIG_PCI_LEGACY=y |
@@ -542,6 +543,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
542 | # CONFIG_SCSI_MPT2SAS is not set | 543 | # CONFIG_SCSI_MPT2SAS is not set |
543 | # CONFIG_SCSI_HPTIOP is not set | 544 | # CONFIG_SCSI_HPTIOP is not set |
544 | # CONFIG_LIBFC is not set | 545 | # CONFIG_LIBFC is not set |
546 | # CONFIG_LIBFCOE is not set | ||
545 | # CONFIG_FCOE is not set | 547 | # CONFIG_FCOE is not set |
546 | # CONFIG_SCSI_DMX3191D is not set | 548 | # CONFIG_SCSI_DMX3191D is not set |
547 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 549 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -702,6 +704,7 @@ CONFIG_NETDEV_1000=y | |||
702 | # CONFIG_E1000E is not set | 704 | # CONFIG_E1000E is not set |
703 | # CONFIG_IP1000 is not set | 705 | # CONFIG_IP1000 is not set |
704 | # CONFIG_IGB is not set | 706 | # CONFIG_IGB is not set |
707 | # CONFIG_IGBVF is not set | ||
705 | # CONFIG_NS83820 is not set | 708 | # CONFIG_NS83820 is not set |
706 | # CONFIG_HAMACHI is not set | 709 | # CONFIG_HAMACHI is not set |
707 | # CONFIG_YELLOWFIN is not set | 710 | # CONFIG_YELLOWFIN is not set |
@@ -725,6 +728,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
725 | # CONFIG_IXGBE is not set | 728 | # CONFIG_IXGBE is not set |
726 | # CONFIG_IXGB is not set | 729 | # CONFIG_IXGB is not set |
727 | # CONFIG_S2IO is not set | 730 | # CONFIG_S2IO is not set |
731 | # CONFIG_VXGE is not set | ||
728 | # CONFIG_MYRI10GE is not set | 732 | # CONFIG_MYRI10GE is not set |
729 | # CONFIG_NETXEN_NIC is not set | 733 | # CONFIG_NETXEN_NIC is not set |
730 | # CONFIG_NIU is not set | 734 | # CONFIG_NIU is not set |
@@ -931,7 +935,6 @@ CONFIG_HID=y | |||
931 | # | 935 | # |
932 | # Special HID drivers | 936 | # Special HID drivers |
933 | # | 937 | # |
934 | CONFIG_HID_COMPAT=y | ||
935 | CONFIG_USB_SUPPORT=y | 938 | CONFIG_USB_SUPPORT=y |
936 | CONFIG_USB_ARCH_HAS_HCD=y | 939 | CONFIG_USB_ARCH_HAS_HCD=y |
937 | CONFIG_USB_ARCH_HAS_OHCI=y | 940 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1007,6 +1010,7 @@ CONFIG_EXT2_FS=y | |||
1007 | # CONFIG_EXT2_FS_XATTR is not set | 1010 | # CONFIG_EXT2_FS_XATTR is not set |
1008 | # CONFIG_EXT2_FS_XIP is not set | 1011 | # CONFIG_EXT2_FS_XIP is not set |
1009 | CONFIG_EXT3_FS=y | 1012 | CONFIG_EXT3_FS=y |
1013 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1010 | CONFIG_EXT3_FS_XATTR=y | 1014 | CONFIG_EXT3_FS_XATTR=y |
1011 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1015 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1012 | # CONFIG_EXT3_FS_SECURITY is not set | 1016 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1029,6 +1033,11 @@ CONFIG_INOTIFY_USER=y | |||
1029 | # CONFIG_FUSE_FS is not set | 1033 | # CONFIG_FUSE_FS is not set |
1030 | 1034 | ||
1031 | # | 1035 | # |
1036 | # Caches | ||
1037 | # | ||
1038 | # CONFIG_FSCACHE is not set | ||
1039 | |||
1040 | # | ||
1032 | # CD-ROM/DVD Filesystems | 1041 | # CD-ROM/DVD Filesystems |
1033 | # | 1042 | # |
1034 | # CONFIG_ISO9660_FS is not set | 1043 | # CONFIG_ISO9660_FS is not set |
@@ -1073,8 +1082,13 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1073 | # CONFIG_HPFS_FS is not set | 1082 | # CONFIG_HPFS_FS is not set |
1074 | # CONFIG_QNX4FS_FS is not set | 1083 | # CONFIG_QNX4FS_FS is not set |
1075 | CONFIG_ROMFS_FS=y | 1084 | CONFIG_ROMFS_FS=y |
1085 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1086 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1087 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1088 | CONFIG_ROMFS_ON_BLOCK=y | ||
1076 | # CONFIG_SYSV_FS is not set | 1089 | # CONFIG_SYSV_FS is not set |
1077 | # CONFIG_UFS_FS is not set | 1090 | # CONFIG_UFS_FS is not set |
1091 | # CONFIG_NILFS2_FS is not set | ||
1078 | CONFIG_NETWORK_FILESYSTEMS=y | 1092 | CONFIG_NETWORK_FILESYSTEMS=y |
1079 | # CONFIG_NFS_FS is not set | 1093 | # CONFIG_NFS_FS is not set |
1080 | # CONFIG_NFSD is not set | 1094 | # CONFIG_NFSD is not set |
@@ -1151,10 +1165,23 @@ CONFIG_FRAME_WARN=1024 | |||
1151 | CONFIG_HAVE_FUNCTION_TRACER=y | 1165 | CONFIG_HAVE_FUNCTION_TRACER=y |
1152 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1166 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1153 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1167 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1168 | CONFIG_TRACING_SUPPORT=y | ||
1154 | 1169 | ||
1155 | # | 1170 | # |
1156 | # Tracers | 1171 | # Tracers |
1157 | # | 1172 | # |
1173 | # CONFIG_FUNCTION_TRACER is not set | ||
1174 | # CONFIG_IRQSOFF_TRACER is not set | ||
1175 | # CONFIG_SCHED_TRACER is not set | ||
1176 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1177 | # CONFIG_EVENT_TRACER is not set | ||
1178 | # CONFIG_BOOT_TRACER is not set | ||
1179 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1180 | # CONFIG_STACK_TRACER is not set | ||
1181 | # CONFIG_KMEMTRACE is not set | ||
1182 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1183 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1184 | # CONFIG_DMA_API_DEBUG is not set | ||
1158 | # CONFIG_SAMPLES is not set | 1185 | # CONFIG_SAMPLES is not set |
1159 | CONFIG_HAVE_ARCH_KGDB=y | 1186 | CONFIG_HAVE_ARCH_KGDB=y |
1160 | CONFIG_SH_STANDARD_BIOS=y | 1187 | CONFIG_SH_STANDARD_BIOS=y |
@@ -1256,6 +1283,7 @@ CONFIG_CRYPTO=y | |||
1256 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1283 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1257 | CONFIG_CRYPTO_HW=y | 1284 | CONFIG_CRYPTO_HW=y |
1258 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1285 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1286 | # CONFIG_BINARY_PRINTF is not set | ||
1259 | 1287 | ||
1260 | # | 1288 | # |
1261 | # Library routines | 1289 | # Library routines |
diff --git a/arch/sh/configs/magicpanelr2_defconfig b/arch/sh/configs/magicpanelr2_defconfig index 26586c2d64ca..58bec61506fa 100644 --- a/arch/sh/configs/magicpanelr2_defconfig +++ b/arch/sh/configs/magicpanelr2_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:07:39 2009 | 4 | # Mon Apr 27 12:49:32 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -39,6 +40,7 @@ CONFIG_SWAP=y | |||
39 | CONFIG_SYSVIPC=y | 40 | CONFIG_SYSVIPC=y |
40 | CONFIG_SYSVIPC_SYSCTL=y | 41 | CONFIG_SYSVIPC_SYSCTL=y |
41 | CONFIG_POSIX_MQUEUE=y | 42 | CONFIG_POSIX_MQUEUE=y |
43 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
42 | CONFIG_BSD_PROCESS_ACCT=y | 44 | CONFIG_BSD_PROCESS_ACCT=y |
43 | CONFIG_BSD_PROCESS_ACCT_V3=y | 45 | CONFIG_BSD_PROCESS_ACCT_V3=y |
44 | # CONFIG_TASKSTATS is not set | 46 | # CONFIG_TASKSTATS is not set |
@@ -66,7 +68,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
66 | CONFIG_RD_GZIP=y | 68 | CONFIG_RD_GZIP=y |
67 | # CONFIG_RD_BZIP2 is not set | 69 | # CONFIG_RD_BZIP2 is not set |
68 | # CONFIG_RD_LZMA is not set | 70 | # CONFIG_RD_LZMA is not set |
69 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
70 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 71 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
71 | CONFIG_SYSCTL=y | 72 | CONFIG_SYSCTL=y |
72 | CONFIG_ANON_INODES=y | 73 | CONFIG_ANON_INODES=y |
@@ -76,6 +77,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
76 | CONFIG_KALLSYMS=y | 77 | CONFIG_KALLSYMS=y |
77 | CONFIG_KALLSYMS_ALL=y | 78 | CONFIG_KALLSYMS_ALL=y |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 79 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
80 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 81 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 82 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 83 | CONFIG_BUG=y |
@@ -94,6 +96,7 @@ CONFIG_SLAB=y | |||
94 | # CONFIG_SLUB is not set | 96 | # CONFIG_SLUB is not set |
95 | # CONFIG_SLOB is not set | 97 | # CONFIG_SLOB is not set |
96 | # CONFIG_PROFILING is not set | 98 | # CONFIG_PROFILING is not set |
99 | # CONFIG_MARKERS is not set | ||
97 | CONFIG_HAVE_OPROFILE=y | 100 | CONFIG_HAVE_OPROFILE=y |
98 | # CONFIG_KPROBES is not set | 101 | # CONFIG_KPROBES is not set |
99 | CONFIG_HAVE_IOREMAP_PROT=y | 102 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -101,6 +104,8 @@ CONFIG_HAVE_KPROBES=y | |||
101 | CONFIG_HAVE_KRETPROBES=y | 104 | CONFIG_HAVE_KRETPROBES=y |
102 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 105 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
103 | CONFIG_HAVE_CLK=y | 106 | CONFIG_HAVE_CLK=y |
107 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
108 | # CONFIG_SLOW_WORK is not set | ||
104 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
105 | CONFIG_SLABINFO=y | 110 | CONFIG_SLABINFO=y |
106 | CONFIG_RT_MUTEXES=y | 111 | CONFIG_RT_MUTEXES=y |
@@ -113,7 +118,6 @@ CONFIG_MODVERSIONS=y | |||
113 | CONFIG_MODULE_SRCVERSION_ALL=y | 118 | CONFIG_MODULE_SRCVERSION_ALL=y |
114 | CONFIG_BLOCK=y | 119 | CONFIG_BLOCK=y |
115 | # CONFIG_LBD is not set | 120 | # CONFIG_LBD is not set |
116 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
117 | # CONFIG_BLK_DEV_BSG is not set | 121 | # CONFIG_BLK_DEV_BSG is not set |
118 | # CONFIG_BLK_DEV_INTEGRITY is not set | 122 | # CONFIG_BLK_DEV_INTEGRITY is not set |
119 | 123 | ||
@@ -159,6 +163,7 @@ CONFIG_CPU_SUBTYPE_SH7720=y | |||
159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -168,8 +173,6 @@ CONFIG_CPU_SUBTYPE_SH7720=y | |||
168 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
173 | 176 | ||
174 | # | 177 | # |
175 | # Memory management options | 178 | # Memory management options |
@@ -813,6 +816,7 @@ CONFIG_EXT2_FS=y | |||
813 | # CONFIG_EXT2_FS_XATTR is not set | 816 | # CONFIG_EXT2_FS_XATTR is not set |
814 | # CONFIG_EXT2_FS_XIP is not set | 817 | # CONFIG_EXT2_FS_XIP is not set |
815 | CONFIG_EXT3_FS=y | 818 | CONFIG_EXT3_FS=y |
819 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
816 | # CONFIG_EXT3_FS_XATTR is not set | 820 | # CONFIG_EXT3_FS_XATTR is not set |
817 | # CONFIG_EXT4_FS is not set | 821 | # CONFIG_EXT4_FS is not set |
818 | CONFIG_JBD=y | 822 | CONFIG_JBD=y |
@@ -831,6 +835,11 @@ CONFIG_FILE_LOCKING=y | |||
831 | # CONFIG_FUSE_FS is not set | 835 | # CONFIG_FUSE_FS is not set |
832 | 836 | ||
833 | # | 837 | # |
838 | # Caches | ||
839 | # | ||
840 | # CONFIG_FSCACHE is not set | ||
841 | |||
842 | # | ||
834 | # CD-ROM/DVD Filesystems | 843 | # CD-ROM/DVD Filesystems |
835 | # | 844 | # |
836 | # CONFIG_ISO9660_FS is not set | 845 | # CONFIG_ISO9660_FS is not set |
@@ -884,6 +893,7 @@ CONFIG_JFFS2_RTIME=y | |||
884 | # CONFIG_ROMFS_FS is not set | 893 | # CONFIG_ROMFS_FS is not set |
885 | # CONFIG_SYSV_FS is not set | 894 | # CONFIG_SYSV_FS is not set |
886 | # CONFIG_UFS_FS is not set | 895 | # CONFIG_UFS_FS is not set |
896 | # CONFIG_NILFS2_FS is not set | ||
887 | CONFIG_NETWORK_FILESYSTEMS=y | 897 | CONFIG_NETWORK_FILESYSTEMS=y |
888 | CONFIG_NFS_FS=y | 898 | CONFIG_NFS_FS=y |
889 | CONFIG_NFS_V3=y | 899 | CONFIG_NFS_V3=y |
@@ -965,6 +975,7 @@ CONFIG_MAGIC_SYSRQ=y | |||
965 | CONFIG_DEBUG_KERNEL=y | 975 | CONFIG_DEBUG_KERNEL=y |
966 | # CONFIG_DEBUG_SHIRQ is not set | 976 | # CONFIG_DEBUG_SHIRQ is not set |
967 | # CONFIG_DETECT_SOFTLOCKUP is not set | 977 | # CONFIG_DETECT_SOFTLOCKUP is not set |
978 | # CONFIG_DETECT_HUNG_TASK is not set | ||
968 | # CONFIG_SCHED_DEBUG is not set | 979 | # CONFIG_SCHED_DEBUG is not set |
969 | # CONFIG_SCHEDSTATS is not set | 980 | # CONFIG_SCHEDSTATS is not set |
970 | # CONFIG_TIMER_STATS is not set | 981 | # CONFIG_TIMER_STATS is not set |
@@ -1000,6 +1011,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1000 | CONFIG_HAVE_FUNCTION_TRACER=y | 1011 | CONFIG_HAVE_FUNCTION_TRACER=y |
1001 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1012 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1002 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1013 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1014 | CONFIG_TRACING_SUPPORT=y | ||
1003 | 1015 | ||
1004 | # | 1016 | # |
1005 | # Tracers | 1017 | # Tracers |
@@ -1008,9 +1020,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1008 | # CONFIG_IRQSOFF_TRACER is not set | 1020 | # CONFIG_IRQSOFF_TRACER is not set |
1009 | # CONFIG_SCHED_TRACER is not set | 1021 | # CONFIG_SCHED_TRACER is not set |
1010 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1022 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1023 | # CONFIG_EVENT_TRACER is not set | ||
1011 | # CONFIG_BOOT_TRACER is not set | 1024 | # CONFIG_BOOT_TRACER is not set |
1012 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1025 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1013 | # CONFIG_STACK_TRACER is not set | 1026 | # CONFIG_STACK_TRACER is not set |
1027 | # CONFIG_KMEMTRACE is not set | ||
1028 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1029 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1030 | # CONFIG_DMA_API_DEBUG is not set | ||
1014 | # CONFIG_SAMPLES is not set | 1031 | # CONFIG_SAMPLES is not set |
1015 | CONFIG_HAVE_ARCH_KGDB=y | 1032 | CONFIG_HAVE_ARCH_KGDB=y |
1016 | # CONFIG_KGDB is not set | 1033 | # CONFIG_KGDB is not set |
@@ -1035,6 +1052,7 @@ CONFIG_DUMP_CODE=y | |||
1035 | # CONFIG_SECURITYFS is not set | 1052 | # CONFIG_SECURITYFS is not set |
1036 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 1053 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
1037 | # CONFIG_CRYPTO is not set | 1054 | # CONFIG_CRYPTO is not set |
1055 | # CONFIG_BINARY_PRINTF is not set | ||
1038 | 1056 | ||
1039 | # | 1057 | # |
1040 | # Library routines | 1058 | # Library routines |
diff --git a/arch/sh/configs/microdev_defconfig b/arch/sh/configs/microdev_defconfig index 75178355d69a..2886fc84bc1c 100644 --- a/arch/sh/configs/microdev_defconfig +++ b/arch/sh/configs/microdev_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:11:13 2009 | 4 | # Mon Apr 27 12:50:51 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -65,7 +66,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
65 | CONFIG_RD_GZIP=y | 66 | CONFIG_RD_GZIP=y |
66 | # CONFIG_RD_BZIP2 is not set | 67 | # CONFIG_RD_BZIP2 is not set |
67 | # CONFIG_RD_LZMA is not set | 68 | # CONFIG_RD_LZMA is not set |
68 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
69 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 69 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
70 | CONFIG_SYSCTL=y | 70 | CONFIG_SYSCTL=y |
71 | CONFIG_ANON_INODES=y | 71 | CONFIG_ANON_INODES=y |
@@ -74,6 +74,7 @@ CONFIG_UID16=y | |||
74 | # CONFIG_SYSCTL_SYSCALL is not set | 74 | # CONFIG_SYSCTL_SYSCALL is not set |
75 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
77 | # CONFIG_STRIP_ASM_SYMS is not set | ||
77 | CONFIG_HOTPLUG=y | 78 | CONFIG_HOTPLUG=y |
78 | CONFIG_PRINTK=y | 79 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 80 | CONFIG_BUG=y |
@@ -92,12 +93,15 @@ CONFIG_SLAB=y | |||
92 | # CONFIG_SLUB is not set | 93 | # CONFIG_SLUB is not set |
93 | # CONFIG_SLOB is not set | 94 | # CONFIG_SLOB is not set |
94 | # CONFIG_PROFILING is not set | 95 | # CONFIG_PROFILING is not set |
96 | # CONFIG_MARKERS is not set | ||
95 | CONFIG_HAVE_OPROFILE=y | 97 | CONFIG_HAVE_OPROFILE=y |
96 | CONFIG_HAVE_IOREMAP_PROT=y | 98 | CONFIG_HAVE_IOREMAP_PROT=y |
97 | CONFIG_HAVE_KPROBES=y | 99 | CONFIG_HAVE_KPROBES=y |
98 | CONFIG_HAVE_KRETPROBES=y | 100 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 101 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 102 | CONFIG_HAVE_CLK=y |
103 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
104 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 105 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 106 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 107 | CONFIG_RT_MUTEXES=y |
@@ -105,7 +109,6 @@ CONFIG_BASE_SMALL=0 | |||
105 | # CONFIG_MODULES is not set | 109 | # CONFIG_MODULES is not set |
106 | CONFIG_BLOCK=y | 110 | CONFIG_BLOCK=y |
107 | # CONFIG_LBD is not set | 111 | # CONFIG_LBD is not set |
108 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
109 | # CONFIG_BLK_DEV_BSG is not set | 112 | # CONFIG_BLK_DEV_BSG is not set |
110 | # CONFIG_BLK_DEV_INTEGRITY is not set | 113 | # CONFIG_BLK_DEV_INTEGRITY is not set |
111 | 114 | ||
@@ -151,6 +154,7 @@ CONFIG_CPU_SH4=y | |||
151 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
152 | CONFIG_CPU_SUBTYPE_SH4_202=y | 155 | CONFIG_CPU_SUBTYPE_SH4_202=y |
153 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -160,8 +164,6 @@ CONFIG_CPU_SUBTYPE_SH4_202=y | |||
160 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
165 | 167 | ||
166 | # | 168 | # |
167 | # Memory management options | 169 | # Memory management options |
@@ -647,6 +649,7 @@ CONFIG_EXT2_FS=y | |||
647 | # CONFIG_EXT2_FS_XATTR is not set | 649 | # CONFIG_EXT2_FS_XATTR is not set |
648 | # CONFIG_EXT2_FS_XIP is not set | 650 | # CONFIG_EXT2_FS_XIP is not set |
649 | CONFIG_EXT3_FS=y | 651 | CONFIG_EXT3_FS=y |
652 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
650 | CONFIG_EXT3_FS_XATTR=y | 653 | CONFIG_EXT3_FS_XATTR=y |
651 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 654 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
652 | # CONFIG_EXT3_FS_SECURITY is not set | 655 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -669,6 +672,11 @@ CONFIG_INOTIFY_USER=y | |||
669 | # CONFIG_FUSE_FS is not set | 672 | # CONFIG_FUSE_FS is not set |
670 | 673 | ||
671 | # | 674 | # |
675 | # Caches | ||
676 | # | ||
677 | # CONFIG_FSCACHE is not set | ||
678 | |||
679 | # | ||
672 | # CD-ROM/DVD Filesystems | 680 | # CD-ROM/DVD Filesystems |
673 | # | 681 | # |
674 | # CONFIG_ISO9660_FS is not set | 682 | # CONFIG_ISO9660_FS is not set |
@@ -715,6 +723,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
715 | # CONFIG_ROMFS_FS is not set | 723 | # CONFIG_ROMFS_FS is not set |
716 | # CONFIG_SYSV_FS is not set | 724 | # CONFIG_SYSV_FS is not set |
717 | # CONFIG_UFS_FS is not set | 725 | # CONFIG_UFS_FS is not set |
726 | # CONFIG_NILFS2_FS is not set | ||
718 | CONFIG_NETWORK_FILESYSTEMS=y | 727 | CONFIG_NETWORK_FILESYSTEMS=y |
719 | CONFIG_NFS_FS=y | 728 | CONFIG_NFS_FS=y |
720 | CONFIG_NFS_V3=y | 729 | CONFIG_NFS_V3=y |
@@ -802,10 +811,24 @@ CONFIG_FRAME_WARN=1024 | |||
802 | CONFIG_HAVE_FUNCTION_TRACER=y | 811 | CONFIG_HAVE_FUNCTION_TRACER=y |
803 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 812 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
804 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 813 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
814 | CONFIG_TRACING_SUPPORT=y | ||
805 | 815 | ||
806 | # | 816 | # |
807 | # Tracers | 817 | # Tracers |
808 | # | 818 | # |
819 | # CONFIG_FUNCTION_TRACER is not set | ||
820 | # CONFIG_IRQSOFF_TRACER is not set | ||
821 | # CONFIG_PREEMPT_TRACER is not set | ||
822 | # CONFIG_SCHED_TRACER is not set | ||
823 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
824 | # CONFIG_EVENT_TRACER is not set | ||
825 | # CONFIG_BOOT_TRACER is not set | ||
826 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
827 | # CONFIG_STACK_TRACER is not set | ||
828 | # CONFIG_KMEMTRACE is not set | ||
829 | # CONFIG_WORKQUEUE_TRACER is not set | ||
830 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
831 | # CONFIG_DMA_API_DEBUG is not set | ||
809 | # CONFIG_SAMPLES is not set | 832 | # CONFIG_SAMPLES is not set |
810 | CONFIG_HAVE_ARCH_KGDB=y | 833 | CONFIG_HAVE_ARCH_KGDB=y |
811 | # CONFIG_SH_STANDARD_BIOS is not set | 834 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -914,6 +937,7 @@ CONFIG_CRYPTO_DES=y | |||
914 | # | 937 | # |
915 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 938 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
916 | CONFIG_CRYPTO_HW=y | 939 | CONFIG_CRYPTO_HW=y |
940 | # CONFIG_BINARY_PRINTF is not set | ||
917 | 941 | ||
918 | # | 942 | # |
919 | # Library routines | 943 | # Library routines |
diff --git a/arch/sh/configs/migor_defconfig b/arch/sh/configs/migor_defconfig index a8720f9c6047..8ecceb4bf27e 100644 --- a/arch/sh/configs/migor_defconfig +++ b/arch/sh/configs/migor_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:14:03 2009 | 4 | # Mon Apr 27 12:51:34 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -67,7 +68,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
67 | CONFIG_RD_GZIP=y | 68 | CONFIG_RD_GZIP=y |
68 | # CONFIG_RD_BZIP2 is not set | 69 | # CONFIG_RD_BZIP2 is not set |
69 | # CONFIG_RD_LZMA is not set | 70 | # CONFIG_RD_LZMA is not set |
70 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
71 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 71 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
72 | CONFIG_SYSCTL=y | 72 | CONFIG_SYSCTL=y |
73 | CONFIG_ANON_INODES=y | 73 | CONFIG_ANON_INODES=y |
@@ -76,6 +76,7 @@ CONFIG_UID16=y | |||
76 | # CONFIG_SYSCTL_SYSCALL is not set | 76 | # CONFIG_SYSCTL_SYSCALL is not set |
77 | CONFIG_KALLSYMS=y | 77 | CONFIG_KALLSYMS=y |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
79 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 80 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 81 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 82 | CONFIG_BUG=y |
@@ -104,6 +105,8 @@ CONFIG_HAVE_KPROBES=y | |||
104 | CONFIG_HAVE_KRETPROBES=y | 105 | CONFIG_HAVE_KRETPROBES=y |
105 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 106 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
106 | CONFIG_HAVE_CLK=y | 107 | CONFIG_HAVE_CLK=y |
108 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
109 | # CONFIG_SLOW_WORK is not set | ||
107 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
108 | CONFIG_SLABINFO=y | 111 | CONFIG_SLABINFO=y |
109 | CONFIG_RT_MUTEXES=y | 112 | CONFIG_RT_MUTEXES=y |
@@ -115,7 +118,6 @@ CONFIG_MODULES=y | |||
115 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 118 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
116 | CONFIG_BLOCK=y | 119 | CONFIG_BLOCK=y |
117 | # CONFIG_LBD is not set | 120 | # CONFIG_LBD is not set |
118 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
119 | # CONFIG_BLK_DEV_BSG is not set | 121 | # CONFIG_BLK_DEV_BSG is not set |
120 | # CONFIG_BLK_DEV_INTEGRITY is not set | 122 | # CONFIG_BLK_DEV_INTEGRITY is not set |
121 | 123 | ||
@@ -165,6 +167,7 @@ CONFIG_ARCH_SHMOBILE=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
168 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -174,8 +177,6 @@ CONFIG_ARCH_SHMOBILE=y | |||
174 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
175 | CONFIG_CPU_SUBTYPE_SH7722=y | 178 | CONFIG_CPU_SUBTYPE_SH7722=y |
176 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 179 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
177 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
178 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
179 | 180 | ||
180 | # | 181 | # |
181 | # Memory management options | 182 | # Memory management options |
@@ -577,6 +578,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
577 | CONFIG_SCSI_LOWLEVEL=y | 578 | CONFIG_SCSI_LOWLEVEL=y |
578 | # CONFIG_ISCSI_TCP is not set | 579 | # CONFIG_ISCSI_TCP is not set |
579 | # CONFIG_LIBFC is not set | 580 | # CONFIG_LIBFC is not set |
581 | # CONFIG_LIBFCOE is not set | ||
580 | # CONFIG_SCSI_DEBUG is not set | 582 | # CONFIG_SCSI_DEBUG is not set |
581 | # CONFIG_SCSI_DH is not set | 583 | # CONFIG_SCSI_DH is not set |
582 | # CONFIG_SCSI_OSD_INITIATOR is not set | 584 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -873,7 +875,6 @@ CONFIG_HID=y | |||
873 | # | 875 | # |
874 | # Special HID drivers | 876 | # Special HID drivers |
875 | # | 877 | # |
876 | CONFIG_HID_COMPAT=y | ||
877 | CONFIG_USB_SUPPORT=y | 878 | CONFIG_USB_SUPPORT=y |
878 | CONFIG_USB_ARCH_HAS_HCD=y | 879 | CONFIG_USB_ARCH_HAS_HCD=y |
879 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 880 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
@@ -1012,6 +1013,11 @@ CONFIG_FILE_LOCKING=y | |||
1012 | # CONFIG_FUSE_FS is not set | 1013 | # CONFIG_FUSE_FS is not set |
1013 | 1014 | ||
1014 | # | 1015 | # |
1016 | # Caches | ||
1017 | # | ||
1018 | # CONFIG_FSCACHE is not set | ||
1019 | |||
1020 | # | ||
1015 | # CD-ROM/DVD Filesystems | 1021 | # CD-ROM/DVD Filesystems |
1016 | # | 1022 | # |
1017 | # CONFIG_ISO9660_FS is not set | 1023 | # CONFIG_ISO9660_FS is not set |
@@ -1056,6 +1062,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1056 | # CONFIG_ROMFS_FS is not set | 1062 | # CONFIG_ROMFS_FS is not set |
1057 | # CONFIG_SYSV_FS is not set | 1063 | # CONFIG_SYSV_FS is not set |
1058 | # CONFIG_UFS_FS is not set | 1064 | # CONFIG_UFS_FS is not set |
1065 | # CONFIG_NILFS2_FS is not set | ||
1059 | CONFIG_NETWORK_FILESYSTEMS=y | 1066 | CONFIG_NETWORK_FILESYSTEMS=y |
1060 | CONFIG_NFS_FS=y | 1067 | CONFIG_NFS_FS=y |
1061 | # CONFIG_NFS_V3 is not set | 1068 | # CONFIG_NFS_V3 is not set |
@@ -1105,11 +1112,25 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1105 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1112 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1106 | CONFIG_RING_BUFFER=y | 1113 | CONFIG_RING_BUFFER=y |
1107 | CONFIG_TRACING=y | 1114 | CONFIG_TRACING=y |
1115 | CONFIG_TRACING_SUPPORT=y | ||
1108 | 1116 | ||
1109 | # | 1117 | # |
1110 | # Tracers | 1118 | # Tracers |
1111 | # | 1119 | # |
1120 | # CONFIG_FUNCTION_TRACER is not set | ||
1121 | # CONFIG_IRQSOFF_TRACER is not set | ||
1122 | # CONFIG_SCHED_TRACER is not set | ||
1123 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1124 | # CONFIG_EVENT_TRACER is not set | ||
1125 | # CONFIG_BOOT_TRACER is not set | ||
1126 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1127 | # CONFIG_STACK_TRACER is not set | ||
1128 | # CONFIG_KMEMTRACE is not set | ||
1129 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1130 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1131 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1112 | # CONFIG_DYNAMIC_DEBUG is not set | 1132 | # CONFIG_DYNAMIC_DEBUG is not set |
1133 | # CONFIG_DMA_API_DEBUG is not set | ||
1113 | # CONFIG_SAMPLES is not set | 1134 | # CONFIG_SAMPLES is not set |
1114 | CONFIG_HAVE_ARCH_KGDB=y | 1135 | CONFIG_HAVE_ARCH_KGDB=y |
1115 | # CONFIG_SH_STANDARD_BIOS is not set | 1136 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1218,6 +1239,7 @@ CONFIG_CRYPTO_WORKQUEUE=y | |||
1218 | # | 1239 | # |
1219 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1240 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1220 | # CONFIG_CRYPTO_HW is not set | 1241 | # CONFIG_CRYPTO_HW is not set |
1242 | CONFIG_BINARY_PRINTF=y | ||
1221 | 1243 | ||
1222 | # | 1244 | # |
1223 | # Library routines | 1245 | # Library routines |
diff --git a/arch/sh/configs/polaris_defconfig b/arch/sh/configs/polaris_defconfig index df2d177d5346..2b9507286182 100644 --- a/arch/sh/configs/polaris_defconfig +++ b/arch/sh/configs/polaris_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:16:48 2009 | 4 | # Mon Apr 27 12:52:19 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -40,6 +41,7 @@ CONFIG_LOCALVERSION="" | |||
40 | CONFIG_SYSVIPC=y | 41 | CONFIG_SYSVIPC=y |
41 | CONFIG_SYSVIPC_SYSCTL=y | 42 | CONFIG_SYSVIPC_SYSCTL=y |
42 | CONFIG_POSIX_MQUEUE=y | 43 | CONFIG_POSIX_MQUEUE=y |
44 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | CONFIG_BSD_PROCESS_ACCT=y | 45 | CONFIG_BSD_PROCESS_ACCT=y |
44 | CONFIG_BSD_PROCESS_ACCT_V3=y | 46 | CONFIG_BSD_PROCESS_ACCT_V3=y |
45 | # CONFIG_TASKSTATS is not set | 47 | # CONFIG_TASKSTATS is not set |
@@ -76,6 +78,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
76 | CONFIG_KALLSYMS=y | 78 | CONFIG_KALLSYMS=y |
77 | CONFIG_KALLSYMS_ALL=y | 79 | CONFIG_KALLSYMS_ALL=y |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
81 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 82 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 83 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 84 | CONFIG_BUG=y |
@@ -94,6 +97,7 @@ CONFIG_SLAB=y | |||
94 | # CONFIG_SLUB is not set | 97 | # CONFIG_SLUB is not set |
95 | # CONFIG_SLOB is not set | 98 | # CONFIG_SLOB is not set |
96 | # CONFIG_PROFILING is not set | 99 | # CONFIG_PROFILING is not set |
100 | # CONFIG_MARKERS is not set | ||
97 | CONFIG_HAVE_OPROFILE=y | 101 | CONFIG_HAVE_OPROFILE=y |
98 | # CONFIG_KPROBES is not set | 102 | # CONFIG_KPROBES is not set |
99 | CONFIG_HAVE_IOREMAP_PROT=y | 103 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -101,6 +105,8 @@ CONFIG_HAVE_KPROBES=y | |||
101 | CONFIG_HAVE_KRETPROBES=y | 105 | CONFIG_HAVE_KRETPROBES=y |
102 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 106 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
103 | CONFIG_HAVE_CLK=y | 107 | CONFIG_HAVE_CLK=y |
108 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
109 | # CONFIG_SLOW_WORK is not set | ||
104 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
105 | CONFIG_SLABINFO=y | 111 | CONFIG_SLABINFO=y |
106 | CONFIG_RT_MUTEXES=y | 112 | CONFIG_RT_MUTEXES=y |
@@ -113,7 +119,6 @@ CONFIG_MODVERSIONS=y | |||
113 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 119 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
114 | CONFIG_BLOCK=y | 120 | CONFIG_BLOCK=y |
115 | # CONFIG_LBD is not set | 121 | # CONFIG_LBD is not set |
116 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
117 | # CONFIG_BLK_DEV_BSG is not set | 122 | # CONFIG_BLK_DEV_BSG is not set |
118 | # CONFIG_BLK_DEV_INTEGRITY is not set | 123 | # CONFIG_BLK_DEV_INTEGRITY is not set |
119 | 124 | ||
@@ -159,6 +164,7 @@ CONFIG_CPU_SUBTYPE_SH7709=y | |||
159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -168,8 +174,6 @@ CONFIG_CPU_SUBTYPE_SH7709=y | |||
168 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
173 | 177 | ||
174 | # | 178 | # |
175 | # Memory management options | 179 | # Memory management options |
@@ -778,6 +782,11 @@ CONFIG_FILE_LOCKING=y | |||
778 | # CONFIG_FUSE_FS is not set | 782 | # CONFIG_FUSE_FS is not set |
779 | 783 | ||
780 | # | 784 | # |
785 | # Caches | ||
786 | # | ||
787 | # CONFIG_FSCACHE is not set | ||
788 | |||
789 | # | ||
781 | # CD-ROM/DVD Filesystems | 790 | # CD-ROM/DVD Filesystems |
782 | # | 791 | # |
783 | # CONFIG_ISO9660_FS is not set | 792 | # CONFIG_ISO9660_FS is not set |
@@ -831,6 +840,7 @@ CONFIG_JFFS2_RTIME=y | |||
831 | # CONFIG_ROMFS_FS is not set | 840 | # CONFIG_ROMFS_FS is not set |
832 | # CONFIG_SYSV_FS is not set | 841 | # CONFIG_SYSV_FS is not set |
833 | # CONFIG_UFS_FS is not set | 842 | # CONFIG_UFS_FS is not set |
843 | # CONFIG_NILFS2_FS is not set | ||
834 | CONFIG_NETWORK_FILESYSTEMS=y | 844 | CONFIG_NETWORK_FILESYSTEMS=y |
835 | CONFIG_NFS_FS=y | 845 | CONFIG_NFS_FS=y |
836 | CONFIG_NFS_V3=y | 846 | CONFIG_NFS_V3=y |
@@ -874,6 +884,9 @@ CONFIG_DEBUG_SHIRQ=y | |||
874 | CONFIG_DETECT_SOFTLOCKUP=y | 884 | CONFIG_DETECT_SOFTLOCKUP=y |
875 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 885 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
876 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 886 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
887 | CONFIG_DETECT_HUNG_TASK=y | ||
888 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
889 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
877 | # CONFIG_SCHED_DEBUG is not set | 890 | # CONFIG_SCHED_DEBUG is not set |
878 | # CONFIG_SCHEDSTATS is not set | 891 | # CONFIG_SCHEDSTATS is not set |
879 | # CONFIG_TIMER_STATS is not set | 892 | # CONFIG_TIMER_STATS is not set |
@@ -914,6 +927,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
914 | CONFIG_HAVE_FUNCTION_TRACER=y | 927 | CONFIG_HAVE_FUNCTION_TRACER=y |
915 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 928 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
916 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 929 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
930 | CONFIG_TRACING_SUPPORT=y | ||
917 | 931 | ||
918 | # | 932 | # |
919 | # Tracers | 933 | # Tracers |
@@ -923,9 +937,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
923 | # CONFIG_PREEMPT_TRACER is not set | 937 | # CONFIG_PREEMPT_TRACER is not set |
924 | # CONFIG_SCHED_TRACER is not set | 938 | # CONFIG_SCHED_TRACER is not set |
925 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 939 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
940 | # CONFIG_EVENT_TRACER is not set | ||
926 | # CONFIG_BOOT_TRACER is not set | 941 | # CONFIG_BOOT_TRACER is not set |
927 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 942 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
928 | # CONFIG_STACK_TRACER is not set | 943 | # CONFIG_STACK_TRACER is not set |
944 | # CONFIG_KMEMTRACE is not set | ||
945 | # CONFIG_WORKQUEUE_TRACER is not set | ||
946 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
947 | # CONFIG_DMA_API_DEBUG is not set | ||
929 | # CONFIG_SAMPLES is not set | 948 | # CONFIG_SAMPLES is not set |
930 | CONFIG_HAVE_ARCH_KGDB=y | 949 | CONFIG_HAVE_ARCH_KGDB=y |
931 | # CONFIG_KGDB is not set | 950 | # CONFIG_KGDB is not set |
@@ -950,6 +969,7 @@ CONFIG_DUMP_CODE=y | |||
950 | # CONFIG_SECURITYFS is not set | 969 | # CONFIG_SECURITYFS is not set |
951 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 970 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
952 | # CONFIG_CRYPTO is not set | 971 | # CONFIG_CRYPTO is not set |
972 | # CONFIG_BINARY_PRINTF is not set | ||
953 | 973 | ||
954 | # | 974 | # |
955 | # Library routines | 975 | # Library routines |
diff --git a/arch/sh/configs/r7780mp_defconfig b/arch/sh/configs/r7780mp_defconfig index 7def4df46ddb..943da63a3852 100644 --- a/arch/sh/configs/r7780mp_defconfig +++ b/arch/sh/configs/r7780mp_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:20:17 2009 | 4 | # Mon Apr 27 12:53:28 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -78,6 +79,7 @@ CONFIG_UID16=y | |||
78 | CONFIG_KALLSYMS=y | 79 | CONFIG_KALLSYMS=y |
79 | # CONFIG_KALLSYMS_ALL is not set | 80 | # CONFIG_KALLSYMS_ALL is not set |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
82 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 83 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 84 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 85 | CONFIG_BUG=y |
@@ -107,6 +109,8 @@ CONFIG_HAVE_KPROBES=y | |||
107 | CONFIG_HAVE_KRETPROBES=y | 109 | CONFIG_HAVE_KRETPROBES=y |
108 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 110 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
109 | CONFIG_HAVE_CLK=y | 111 | CONFIG_HAVE_CLK=y |
112 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
113 | # CONFIG_SLOW_WORK is not set | ||
110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 114 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
111 | CONFIG_SLABINFO=y | 115 | CONFIG_SLABINFO=y |
112 | CONFIG_BASE_SMALL=0 | 116 | CONFIG_BASE_SMALL=0 |
@@ -118,7 +122,6 @@ CONFIG_MODULE_UNLOAD=y | |||
118 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 122 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
119 | CONFIG_BLOCK=y | 123 | CONFIG_BLOCK=y |
120 | # CONFIG_LBD is not set | 124 | # CONFIG_LBD is not set |
121 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
122 | # CONFIG_BLK_DEV_BSG is not set | 125 | # CONFIG_BLK_DEV_BSG is not set |
123 | # CONFIG_BLK_DEV_INTEGRITY is not set | 126 | # CONFIG_BLK_DEV_INTEGRITY is not set |
124 | 127 | ||
@@ -165,6 +168,7 @@ CONFIG_CPU_SH4A=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
168 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
170 | CONFIG_CPU_SUBTYPE_SH7780=y | 174 | CONFIG_CPU_SUBTYPE_SH7780=y |
@@ -174,8 +178,6 @@ CONFIG_CPU_SUBTYPE_SH7780=y | |||
174 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 179 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
176 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 180 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
177 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
178 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
179 | 181 | ||
180 | # | 182 | # |
181 | # Memory management options | 183 | # Memory management options |
@@ -258,7 +260,7 @@ CONFIG_SH_R7780MP=y | |||
258 | # | 260 | # |
259 | CONFIG_SH_TMU=y | 261 | CONFIG_SH_TMU=y |
260 | CONFIG_SH_TIMER_IRQ=28 | 262 | CONFIG_SH_TIMER_IRQ=28 |
261 | CONFIG_SH_PCLK_FREQ=32000000 | 263 | CONFIG_SH_PCLK_FREQ=33333333 |
262 | # CONFIG_NO_HZ is not set | 264 | # CONFIG_NO_HZ is not set |
263 | # CONFIG_HIGH_RES_TIMERS is not set | 265 | # CONFIG_HIGH_RES_TIMERS is not set |
264 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | 266 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y |
@@ -313,8 +315,6 @@ CONFIG_CMDLINE="console=ttySC0,115200 root=/dev/sda1" | |||
313 | # | 315 | # |
314 | CONFIG_PCI=y | 316 | CONFIG_PCI=y |
315 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 317 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
316 | CONFIG_PCI_AUTO=y | ||
317 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
318 | # CONFIG_PCIEPORTBUS is not set | 318 | # CONFIG_PCIEPORTBUS is not set |
319 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 319 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
320 | CONFIG_PCI_LEGACY=y | 320 | CONFIG_PCI_LEGACY=y |
@@ -536,6 +536,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
536 | # CONFIG_SCSI_MPT2SAS is not set | 536 | # CONFIG_SCSI_MPT2SAS is not set |
537 | # CONFIG_SCSI_HPTIOP is not set | 537 | # CONFIG_SCSI_HPTIOP is not set |
538 | # CONFIG_LIBFC is not set | 538 | # CONFIG_LIBFC is not set |
539 | # CONFIG_LIBFCOE is not set | ||
539 | # CONFIG_FCOE is not set | 540 | # CONFIG_FCOE is not set |
540 | # CONFIG_SCSI_DMX3191D is not set | 541 | # CONFIG_SCSI_DMX3191D is not set |
541 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 542 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -696,6 +697,7 @@ CONFIG_E1000=m | |||
696 | # CONFIG_E1000E is not set | 697 | # CONFIG_E1000E is not set |
697 | # CONFIG_IP1000 is not set | 698 | # CONFIG_IP1000 is not set |
698 | # CONFIG_IGB is not set | 699 | # CONFIG_IGB is not set |
700 | # CONFIG_IGBVF is not set | ||
699 | # CONFIG_NS83820 is not set | 701 | # CONFIG_NS83820 is not set |
700 | # CONFIG_HAMACHI is not set | 702 | # CONFIG_HAMACHI is not set |
701 | # CONFIG_YELLOWFIN is not set | 703 | # CONFIG_YELLOWFIN is not set |
@@ -719,6 +721,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
719 | # CONFIG_IXGBE is not set | 721 | # CONFIG_IXGBE is not set |
720 | # CONFIG_IXGB is not set | 722 | # CONFIG_IXGB is not set |
721 | # CONFIG_S2IO is not set | 723 | # CONFIG_S2IO is not set |
724 | # CONFIG_VXGE is not set | ||
722 | # CONFIG_MYRI10GE is not set | 725 | # CONFIG_MYRI10GE is not set |
723 | # CONFIG_NETXEN_NIC is not set | 726 | # CONFIG_NETXEN_NIC is not set |
724 | # CONFIG_NIU is not set | 727 | # CONFIG_NIU is not set |
@@ -920,6 +923,7 @@ CONFIG_HWMON=y | |||
920 | # CONFIG_SENSORS_F71805F is not set | 923 | # CONFIG_SENSORS_F71805F is not set |
921 | # CONFIG_SENSORS_F71882FG is not set | 924 | # CONFIG_SENSORS_F71882FG is not set |
922 | # CONFIG_SENSORS_F75375S is not set | 925 | # CONFIG_SENSORS_F75375S is not set |
926 | # CONFIG_SENSORS_G760A is not set | ||
923 | # CONFIG_SENSORS_GL518SM is not set | 927 | # CONFIG_SENSORS_GL518SM is not set |
924 | # CONFIG_SENSORS_GL520SM is not set | 928 | # CONFIG_SENSORS_GL520SM is not set |
925 | # CONFIG_SENSORS_IT87 is not set | 929 | # CONFIG_SENSORS_IT87 is not set |
@@ -1027,7 +1031,6 @@ CONFIG_HID=y | |||
1027 | # | 1031 | # |
1028 | # Special HID drivers | 1032 | # Special HID drivers |
1029 | # | 1033 | # |
1030 | CONFIG_HID_COMPAT=y | ||
1031 | CONFIG_USB_SUPPORT=y | 1034 | CONFIG_USB_SUPPORT=y |
1032 | CONFIG_USB_ARCH_HAS_HCD=y | 1035 | CONFIG_USB_ARCH_HAS_HCD=y |
1033 | CONFIG_USB_ARCH_HAS_OHCI=y | 1036 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1120,6 +1123,7 @@ CONFIG_EXT2_FS=y | |||
1120 | # CONFIG_EXT2_FS_XATTR is not set | 1123 | # CONFIG_EXT2_FS_XATTR is not set |
1121 | # CONFIG_EXT2_FS_XIP is not set | 1124 | # CONFIG_EXT2_FS_XIP is not set |
1122 | CONFIG_EXT3_FS=y | 1125 | CONFIG_EXT3_FS=y |
1126 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1123 | CONFIG_EXT3_FS_XATTR=y | 1127 | CONFIG_EXT3_FS_XATTR=y |
1124 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1128 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1125 | # CONFIG_EXT3_FS_SECURITY is not set | 1129 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1143,6 +1147,11 @@ CONFIG_INOTIFY_USER=y | |||
1143 | CONFIG_FUSE_FS=m | 1147 | CONFIG_FUSE_FS=m |
1144 | 1148 | ||
1145 | # | 1149 | # |
1150 | # Caches | ||
1151 | # | ||
1152 | # CONFIG_FSCACHE is not set | ||
1153 | |||
1154 | # | ||
1146 | # CD-ROM/DVD Filesystems | 1155 | # CD-ROM/DVD Filesystems |
1147 | # | 1156 | # |
1148 | # CONFIG_ISO9660_FS is not set | 1157 | # CONFIG_ISO9660_FS is not set |
@@ -1191,6 +1200,7 @@ CONFIG_MINIX_FS=y | |||
1191 | # CONFIG_ROMFS_FS is not set | 1200 | # CONFIG_ROMFS_FS is not set |
1192 | # CONFIG_SYSV_FS is not set | 1201 | # CONFIG_SYSV_FS is not set |
1193 | # CONFIG_UFS_FS is not set | 1202 | # CONFIG_UFS_FS is not set |
1203 | # CONFIG_NILFS2_FS is not set | ||
1194 | CONFIG_NETWORK_FILESYSTEMS=y | 1204 | CONFIG_NETWORK_FILESYSTEMS=y |
1195 | CONFIG_NFS_FS=y | 1205 | CONFIG_NFS_FS=y |
1196 | CONFIG_NFS_V3=y | 1206 | CONFIG_NFS_V3=y |
@@ -1279,6 +1289,9 @@ CONFIG_DEBUG_KERNEL=y | |||
1279 | CONFIG_DETECT_SOFTLOCKUP=y | 1289 | CONFIG_DETECT_SOFTLOCKUP=y |
1280 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1290 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1281 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1291 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1292 | CONFIG_DETECT_HUNG_TASK=y | ||
1293 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1294 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1282 | CONFIG_SCHED_DEBUG=y | 1295 | CONFIG_SCHED_DEBUG=y |
1283 | # CONFIG_SCHEDSTATS is not set | 1296 | # CONFIG_SCHEDSTATS is not set |
1284 | # CONFIG_TIMER_STATS is not set | 1297 | # CONFIG_TIMER_STATS is not set |
@@ -1316,6 +1329,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1316 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1329 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1317 | CONFIG_RING_BUFFER=y | 1330 | CONFIG_RING_BUFFER=y |
1318 | CONFIG_TRACING=y | 1331 | CONFIG_TRACING=y |
1332 | CONFIG_TRACING_SUPPORT=y | ||
1319 | 1333 | ||
1320 | # | 1334 | # |
1321 | # Tracers | 1335 | # Tracers |
@@ -1325,11 +1339,16 @@ CONFIG_TRACING=y | |||
1325 | # CONFIG_PREEMPT_TRACER is not set | 1339 | # CONFIG_PREEMPT_TRACER is not set |
1326 | # CONFIG_SCHED_TRACER is not set | 1340 | # CONFIG_SCHED_TRACER is not set |
1327 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1341 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1342 | # CONFIG_EVENT_TRACER is not set | ||
1328 | # CONFIG_BOOT_TRACER is not set | 1343 | # CONFIG_BOOT_TRACER is not set |
1329 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1344 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1330 | # CONFIG_STACK_TRACER is not set | 1345 | # CONFIG_STACK_TRACER is not set |
1346 | # CONFIG_KMEMTRACE is not set | ||
1347 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1348 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1331 | # CONFIG_FTRACE_STARTUP_TEST is not set | 1349 | # CONFIG_FTRACE_STARTUP_TEST is not set |
1332 | # CONFIG_DYNAMIC_DEBUG is not set | 1350 | # CONFIG_DYNAMIC_DEBUG is not set |
1351 | # CONFIG_DMA_API_DEBUG is not set | ||
1333 | # CONFIG_SAMPLES is not set | 1352 | # CONFIG_SAMPLES is not set |
1334 | CONFIG_HAVE_ARCH_KGDB=y | 1353 | CONFIG_HAVE_ARCH_KGDB=y |
1335 | # CONFIG_KGDB is not set | 1354 | # CONFIG_KGDB is not set |
@@ -1449,6 +1468,7 @@ CONFIG_CRYPTO_DES=y | |||
1449 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1468 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1450 | CONFIG_CRYPTO_HW=y | 1469 | CONFIG_CRYPTO_HW=y |
1451 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1470 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1471 | CONFIG_BINARY_PRINTF=y | ||
1452 | 1472 | ||
1453 | # | 1473 | # |
1454 | # Library routines | 1474 | # Library routines |
diff --git a/arch/sh/configs/r7785rp_defconfig b/arch/sh/configs/r7785rp_defconfig index cb134ffc2118..82658f672398 100644 --- a/arch/sh/configs/r7785rp_defconfig +++ b/arch/sh/configs/r7785rp_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:24:35 2009 | 4 | # Mon Apr 27 12:55:10 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -43,6 +44,7 @@ CONFIG_SWAP=y | |||
43 | CONFIG_SYSVIPC=y | 44 | CONFIG_SYSVIPC=y |
44 | CONFIG_SYSVIPC_SYSCTL=y | 45 | CONFIG_SYSVIPC_SYSCTL=y |
45 | CONFIG_POSIX_MQUEUE=y | 46 | CONFIG_POSIX_MQUEUE=y |
47 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
46 | CONFIG_BSD_PROCESS_ACCT=y | 48 | CONFIG_BSD_PROCESS_ACCT=y |
47 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 49 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
48 | # CONFIG_TASKSTATS is not set | 50 | # CONFIG_TASKSTATS is not set |
@@ -78,6 +80,7 @@ CONFIG_UID16=y | |||
78 | CONFIG_KALLSYMS=y | 80 | CONFIG_KALLSYMS=y |
79 | CONFIG_KALLSYMS_ALL=y | 81 | CONFIG_KALLSYMS_ALL=y |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 82 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
83 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 84 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 85 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 86 | CONFIG_BUG=y |
@@ -108,6 +111,8 @@ CONFIG_HAVE_KPROBES=y | |||
108 | CONFIG_HAVE_KRETPROBES=y | 111 | CONFIG_HAVE_KRETPROBES=y |
109 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 112 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
110 | CONFIG_HAVE_CLK=y | 113 | CONFIG_HAVE_CLK=y |
114 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
115 | # CONFIG_SLOW_WORK is not set | ||
111 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 116 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
112 | CONFIG_SLABINFO=y | 117 | CONFIG_SLABINFO=y |
113 | CONFIG_RT_MUTEXES=y | 118 | CONFIG_RT_MUTEXES=y |
@@ -120,7 +125,6 @@ CONFIG_MODULE_UNLOAD=y | |||
120 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 125 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
121 | CONFIG_BLOCK=y | 126 | CONFIG_BLOCK=y |
122 | # CONFIG_LBD is not set | 127 | # CONFIG_LBD is not set |
123 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
124 | # CONFIG_BLK_DEV_BSG is not set | 128 | # CONFIG_BLK_DEV_BSG is not set |
125 | # CONFIG_BLK_DEV_INTEGRITY is not set | 129 | # CONFIG_BLK_DEV_INTEGRITY is not set |
126 | 130 | ||
@@ -168,6 +172,7 @@ CONFIG_CPU_SHX2=y | |||
168 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
171 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -177,8 +182,6 @@ CONFIG_CPU_SUBTYPE_SH7785=y | |||
177 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 182 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
178 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 183 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
179 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 184 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
180 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
181 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
182 | 185 | ||
183 | # | 186 | # |
184 | # Memory management options | 187 | # Memory management options |
@@ -266,7 +269,7 @@ CONFIG_SH_R7785RP=y | |||
266 | # | 269 | # |
267 | CONFIG_SH_TMU=y | 270 | CONFIG_SH_TMU=y |
268 | CONFIG_SH_TIMER_IRQ=28 | 271 | CONFIG_SH_TIMER_IRQ=28 |
269 | CONFIG_SH_PCLK_FREQ=50000000 | 272 | CONFIG_SH_PCLK_FREQ=33333333 |
270 | CONFIG_TICK_ONESHOT=y | 273 | CONFIG_TICK_ONESHOT=y |
271 | CONFIG_NO_HZ=y | 274 | CONFIG_NO_HZ=y |
272 | CONFIG_HIGH_RES_TIMERS=y | 275 | CONFIG_HIGH_RES_TIMERS=y |
@@ -337,8 +340,6 @@ CONFIG_CMDLINE="console=ttySC0,115200 root=/dev/sda1" | |||
337 | # | 340 | # |
338 | CONFIG_PCI=y | 341 | CONFIG_PCI=y |
339 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 342 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
340 | CONFIG_PCI_AUTO=y | ||
341 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
342 | # CONFIG_PCIEPORTBUS is not set | 343 | # CONFIG_PCIEPORTBUS is not set |
343 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 344 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
344 | # CONFIG_PCI_LEGACY is not set | 345 | # CONFIG_PCI_LEGACY is not set |
@@ -561,6 +562,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
561 | # CONFIG_SCSI_MPT2SAS is not set | 562 | # CONFIG_SCSI_MPT2SAS is not set |
562 | # CONFIG_SCSI_HPTIOP is not set | 563 | # CONFIG_SCSI_HPTIOP is not set |
563 | # CONFIG_LIBFC is not set | 564 | # CONFIG_LIBFC is not set |
565 | # CONFIG_LIBFCOE is not set | ||
564 | # CONFIG_FCOE is not set | 566 | # CONFIG_FCOE is not set |
565 | # CONFIG_SCSI_DMX3191D is not set | 567 | # CONFIG_SCSI_DMX3191D is not set |
566 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 568 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -698,6 +700,7 @@ CONFIG_NETDEV_1000=y | |||
698 | # CONFIG_E1000E is not set | 700 | # CONFIG_E1000E is not set |
699 | # CONFIG_IP1000 is not set | 701 | # CONFIG_IP1000 is not set |
700 | # CONFIG_IGB is not set | 702 | # CONFIG_IGB is not set |
703 | # CONFIG_IGBVF is not set | ||
701 | # CONFIG_NS83820 is not set | 704 | # CONFIG_NS83820 is not set |
702 | # CONFIG_HAMACHI is not set | 705 | # CONFIG_HAMACHI is not set |
703 | # CONFIG_YELLOWFIN is not set | 706 | # CONFIG_YELLOWFIN is not set |
@@ -721,6 +724,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
721 | # CONFIG_IXGBE is not set | 724 | # CONFIG_IXGBE is not set |
722 | # CONFIG_IXGB is not set | 725 | # CONFIG_IXGB is not set |
723 | # CONFIG_S2IO is not set | 726 | # CONFIG_S2IO is not set |
727 | # CONFIG_VXGE is not set | ||
724 | # CONFIG_MYRI10GE is not set | 728 | # CONFIG_MYRI10GE is not set |
725 | # CONFIG_NETXEN_NIC is not set | 729 | # CONFIG_NETXEN_NIC is not set |
726 | # CONFIG_NIU is not set | 730 | # CONFIG_NIU is not set |
@@ -948,6 +952,7 @@ CONFIG_HWMON=y | |||
948 | # CONFIG_SENSORS_F71805F is not set | 952 | # CONFIG_SENSORS_F71805F is not set |
949 | # CONFIG_SENSORS_F71882FG is not set | 953 | # CONFIG_SENSORS_F71882FG is not set |
950 | # CONFIG_SENSORS_F75375S is not set | 954 | # CONFIG_SENSORS_F75375S is not set |
955 | # CONFIG_SENSORS_G760A is not set | ||
951 | # CONFIG_SENSORS_GL518SM is not set | 956 | # CONFIG_SENSORS_GL518SM is not set |
952 | # CONFIG_SENSORS_GL520SM is not set | 957 | # CONFIG_SENSORS_GL520SM is not set |
953 | # CONFIG_SENSORS_IT87 is not set | 958 | # CONFIG_SENSORS_IT87 is not set |
@@ -970,6 +975,7 @@ CONFIG_HWMON=y | |||
970 | # CONFIG_SENSORS_PC87360 is not set | 975 | # CONFIG_SENSORS_PC87360 is not set |
971 | # CONFIG_SENSORS_PC87427 is not set | 976 | # CONFIG_SENSORS_PC87427 is not set |
972 | # CONFIG_SENSORS_PCF8591 is not set | 977 | # CONFIG_SENSORS_PCF8591 is not set |
978 | # CONFIG_SENSORS_SHT15 is not set | ||
973 | # CONFIG_SENSORS_SIS5595 is not set | 979 | # CONFIG_SENSORS_SIS5595 is not set |
974 | # CONFIG_SENSORS_DME1737 is not set | 980 | # CONFIG_SENSORS_DME1737 is not set |
975 | # CONFIG_SENSORS_SMSC47M1 is not set | 981 | # CONFIG_SENSORS_SMSC47M1 is not set |
@@ -1109,7 +1115,6 @@ CONFIG_HID=y | |||
1109 | # | 1115 | # |
1110 | # Special HID drivers | 1116 | # Special HID drivers |
1111 | # | 1117 | # |
1112 | CONFIG_HID_COMPAT=y | ||
1113 | CONFIG_USB_SUPPORT=y | 1118 | CONFIG_USB_SUPPORT=y |
1114 | CONFIG_USB_ARCH_HAS_HCD=y | 1119 | CONFIG_USB_ARCH_HAS_HCD=y |
1115 | CONFIG_USB_ARCH_HAS_OHCI=y | 1120 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1202,6 +1207,7 @@ CONFIG_EXT2_FS=y | |||
1202 | # CONFIG_EXT2_FS_XATTR is not set | 1207 | # CONFIG_EXT2_FS_XATTR is not set |
1203 | # CONFIG_EXT2_FS_XIP is not set | 1208 | # CONFIG_EXT2_FS_XIP is not set |
1204 | CONFIG_EXT3_FS=y | 1209 | CONFIG_EXT3_FS=y |
1210 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1205 | CONFIG_EXT3_FS_XATTR=y | 1211 | CONFIG_EXT3_FS_XATTR=y |
1206 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1212 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1207 | # CONFIG_EXT3_FS_SECURITY is not set | 1213 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1225,6 +1231,11 @@ CONFIG_INOTIFY_USER=y | |||
1225 | CONFIG_FUSE_FS=m | 1231 | CONFIG_FUSE_FS=m |
1226 | 1232 | ||
1227 | # | 1233 | # |
1234 | # Caches | ||
1235 | # | ||
1236 | # CONFIG_FSCACHE is not set | ||
1237 | |||
1238 | # | ||
1228 | # CD-ROM/DVD Filesystems | 1239 | # CD-ROM/DVD Filesystems |
1229 | # | 1240 | # |
1230 | # CONFIG_ISO9660_FS is not set | 1241 | # CONFIG_ISO9660_FS is not set |
@@ -1273,6 +1284,7 @@ CONFIG_MINIX_FS=y | |||
1273 | # CONFIG_ROMFS_FS is not set | 1284 | # CONFIG_ROMFS_FS is not set |
1274 | # CONFIG_SYSV_FS is not set | 1285 | # CONFIG_SYSV_FS is not set |
1275 | # CONFIG_UFS_FS is not set | 1286 | # CONFIG_UFS_FS is not set |
1287 | # CONFIG_NILFS2_FS is not set | ||
1276 | CONFIG_NETWORK_FILESYSTEMS=y | 1288 | CONFIG_NETWORK_FILESYSTEMS=y |
1277 | CONFIG_NFS_FS=y | 1289 | CONFIG_NFS_FS=y |
1278 | CONFIG_NFS_V3=y | 1290 | CONFIG_NFS_V3=y |
@@ -1359,6 +1371,7 @@ CONFIG_DEBUG_FS=y | |||
1359 | CONFIG_DEBUG_KERNEL=y | 1371 | CONFIG_DEBUG_KERNEL=y |
1360 | # CONFIG_DEBUG_SHIRQ is not set | 1372 | # CONFIG_DEBUG_SHIRQ is not set |
1361 | # CONFIG_DETECT_SOFTLOCKUP is not set | 1373 | # CONFIG_DETECT_SOFTLOCKUP is not set |
1374 | # CONFIG_DETECT_HUNG_TASK is not set | ||
1362 | CONFIG_SCHED_DEBUG=y | 1375 | CONFIG_SCHED_DEBUG=y |
1363 | # CONFIG_SCHEDSTATS is not set | 1376 | # CONFIG_SCHEDSTATS is not set |
1364 | # CONFIG_TIMER_STATS is not set | 1377 | # CONFIG_TIMER_STATS is not set |
@@ -1401,6 +1414,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1401 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1414 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1402 | CONFIG_RING_BUFFER=y | 1415 | CONFIG_RING_BUFFER=y |
1403 | CONFIG_TRACING=y | 1416 | CONFIG_TRACING=y |
1417 | CONFIG_TRACING_SUPPORT=y | ||
1404 | 1418 | ||
1405 | # | 1419 | # |
1406 | # Tracers | 1420 | # Tracers |
@@ -1410,11 +1424,16 @@ CONFIG_TRACING=y | |||
1410 | # CONFIG_PREEMPT_TRACER is not set | 1424 | # CONFIG_PREEMPT_TRACER is not set |
1411 | # CONFIG_SCHED_TRACER is not set | 1425 | # CONFIG_SCHED_TRACER is not set |
1412 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1426 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1427 | # CONFIG_EVENT_TRACER is not set | ||
1413 | # CONFIG_BOOT_TRACER is not set | 1428 | # CONFIG_BOOT_TRACER is not set |
1414 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1429 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1415 | # CONFIG_STACK_TRACER is not set | 1430 | # CONFIG_STACK_TRACER is not set |
1431 | # CONFIG_KMEMTRACE is not set | ||
1432 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1433 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1416 | # CONFIG_FTRACE_STARTUP_TEST is not set | 1434 | # CONFIG_FTRACE_STARTUP_TEST is not set |
1417 | # CONFIG_DYNAMIC_DEBUG is not set | 1435 | # CONFIG_DYNAMIC_DEBUG is not set |
1436 | # CONFIG_DMA_API_DEBUG is not set | ||
1418 | # CONFIG_SAMPLES is not set | 1437 | # CONFIG_SAMPLES is not set |
1419 | CONFIG_HAVE_ARCH_KGDB=y | 1438 | CONFIG_HAVE_ARCH_KGDB=y |
1420 | # CONFIG_KGDB is not set | 1439 | # CONFIG_KGDB is not set |
@@ -1534,6 +1553,7 @@ CONFIG_CRYPTO_DES=y | |||
1534 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1553 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1535 | CONFIG_CRYPTO_HW=y | 1554 | CONFIG_CRYPTO_HW=y |
1536 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1555 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1556 | CONFIG_BINARY_PRINTF=y | ||
1537 | 1557 | ||
1538 | # | 1558 | # |
1539 | # Library routines | 1559 | # Library routines |
diff --git a/arch/sh/configs/rsk7201_defconfig b/arch/sh/configs/rsk7201_defconfig index a037c744b798..fa4395768d19 100644 --- a/arch/sh/configs/rsk7201_defconfig +++ b/arch/sh/configs/rsk7201_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:29:08 2009 | 4 | # Mon Apr 27 12:56:29 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -65,7 +66,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
65 | CONFIG_RD_GZIP=y | 66 | CONFIG_RD_GZIP=y |
66 | # CONFIG_RD_BZIP2 is not set | 67 | # CONFIG_RD_BZIP2 is not set |
67 | # CONFIG_RD_LZMA is not set | 68 | # CONFIG_RD_LZMA is not set |
68 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
69 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 69 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
70 | CONFIG_SYSCTL=y | 70 | CONFIG_SYSCTL=y |
71 | CONFIG_ANON_INODES=y | 71 | CONFIG_ANON_INODES=y |
@@ -74,6 +74,7 @@ CONFIG_UID16=y | |||
74 | CONFIG_SYSCTL_SYSCALL=y | 74 | CONFIG_SYSCTL_SYSCALL=y |
75 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
77 | # CONFIG_STRIP_ASM_SYMS is not set | ||
77 | CONFIG_HOTPLUG=y | 78 | CONFIG_HOTPLUG=y |
78 | CONFIG_PRINTK=y | 79 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 80 | CONFIG_BUG=y |
@@ -100,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
100 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
101 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
102 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
104 | CONFIG_RT_MUTEXES=y | 107 | CONFIG_RT_MUTEXES=y |
105 | CONFIG_BASE_SMALL=0 | 108 | CONFIG_BASE_SMALL=0 |
@@ -110,7 +113,6 @@ CONFIG_MODULES=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 113 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 114 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 115 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 116 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 117 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 118 | ||
@@ -157,6 +159,7 @@ CONFIG_CPU_SUBTYPE_SH7201=y | |||
157 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
160 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -166,8 +169,6 @@ CONFIG_CPU_SUBTYPE_SH7201=y | |||
166 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
170 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
171 | 172 | ||
172 | # | 173 | # |
173 | # Memory management options | 174 | # Memory management options |
@@ -603,6 +604,11 @@ CONFIG_EXT2_FS=y | |||
603 | # CONFIG_FUSE_FS is not set | 604 | # CONFIG_FUSE_FS is not set |
604 | 605 | ||
605 | # | 606 | # |
607 | # Caches | ||
608 | # | ||
609 | # CONFIG_FSCACHE is not set | ||
610 | |||
611 | # | ||
606 | # CD-ROM/DVD Filesystems | 612 | # CD-ROM/DVD Filesystems |
607 | # | 613 | # |
608 | # CONFIG_ISO9660_FS is not set | 614 | # CONFIG_ISO9660_FS is not set |
@@ -651,8 +657,13 @@ CONFIG_JFFS2_RTIME=y | |||
651 | # CONFIG_HPFS_FS is not set | 657 | # CONFIG_HPFS_FS is not set |
652 | # CONFIG_QNX4FS_FS is not set | 658 | # CONFIG_QNX4FS_FS is not set |
653 | CONFIG_ROMFS_FS=y | 659 | CONFIG_ROMFS_FS=y |
660 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
661 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
662 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
663 | CONFIG_ROMFS_ON_BLOCK=y | ||
654 | # CONFIG_SYSV_FS is not set | 664 | # CONFIG_SYSV_FS is not set |
655 | # CONFIG_UFS_FS is not set | 665 | # CONFIG_UFS_FS is not set |
666 | # CONFIG_NILFS2_FS is not set | ||
656 | 667 | ||
657 | # | 668 | # |
658 | # Partition Types | 669 | # Partition Types |
@@ -686,11 +697,24 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
686 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 697 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
687 | CONFIG_RING_BUFFER=y | 698 | CONFIG_RING_BUFFER=y |
688 | CONFIG_TRACING=y | 699 | CONFIG_TRACING=y |
700 | CONFIG_TRACING_SUPPORT=y | ||
689 | 701 | ||
690 | # | 702 | # |
691 | # Tracers | 703 | # Tracers |
692 | # | 704 | # |
705 | # CONFIG_FUNCTION_TRACER is not set | ||
706 | # CONFIG_SCHED_TRACER is not set | ||
707 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
708 | # CONFIG_EVENT_TRACER is not set | ||
709 | # CONFIG_BOOT_TRACER is not set | ||
710 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
711 | # CONFIG_STACK_TRACER is not set | ||
712 | # CONFIG_KMEMTRACE is not set | ||
713 | # CONFIG_WORKQUEUE_TRACER is not set | ||
714 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
715 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
693 | # CONFIG_DYNAMIC_DEBUG is not set | 716 | # CONFIG_DYNAMIC_DEBUG is not set |
717 | # CONFIG_DMA_API_DEBUG is not set | ||
694 | # CONFIG_SAMPLES is not set | 718 | # CONFIG_SAMPLES is not set |
695 | CONFIG_HAVE_ARCH_KGDB=y | 719 | CONFIG_HAVE_ARCH_KGDB=y |
696 | # CONFIG_SH_STANDARD_BIOS is not set | 720 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -705,6 +729,7 @@ CONFIG_HAVE_ARCH_KGDB=y | |||
705 | # CONFIG_SECURITYFS is not set | 729 | # CONFIG_SECURITYFS is not set |
706 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 730 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
707 | # CONFIG_CRYPTO is not set | 731 | # CONFIG_CRYPTO is not set |
732 | CONFIG_BINARY_PRINTF=y | ||
708 | 733 | ||
709 | # | 734 | # |
710 | # Library routines | 735 | # Library routines |
diff --git a/arch/sh/configs/rsk7203_defconfig b/arch/sh/configs/rsk7203_defconfig index 9ae28e88426c..e3a65f819f0a 100644 --- a/arch/sh/configs/rsk7203_defconfig +++ b/arch/sh/configs/rsk7203_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:30:34 2009 | 4 | # Mon Apr 27 12:57:06 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -39,6 +40,7 @@ CONFIG_LOCALVERSION="" | |||
39 | CONFIG_SYSVIPC=y | 40 | CONFIG_SYSVIPC=y |
40 | CONFIG_SYSVIPC_SYSCTL=y | 41 | CONFIG_SYSVIPC_SYSCTL=y |
41 | CONFIG_POSIX_MQUEUE=y | 42 | CONFIG_POSIX_MQUEUE=y |
43 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
42 | CONFIG_BSD_PROCESS_ACCT=y | 44 | CONFIG_BSD_PROCESS_ACCT=y |
43 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 45 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
44 | # CONFIG_TASKSTATS is not set | 46 | # CONFIG_TASKSTATS is not set |
@@ -70,7 +72,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
70 | CONFIG_RD_GZIP=y | 72 | CONFIG_RD_GZIP=y |
71 | # CONFIG_RD_BZIP2 is not set | 73 | # CONFIG_RD_BZIP2 is not set |
72 | # CONFIG_RD_LZMA is not set | 74 | # CONFIG_RD_LZMA is not set |
73 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
74 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 75 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
75 | CONFIG_SYSCTL=y | 76 | CONFIG_SYSCTL=y |
76 | CONFIG_ANON_INODES=y | 77 | CONFIG_ANON_INODES=y |
@@ -80,6 +81,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
80 | CONFIG_KALLSYMS=y | 81 | CONFIG_KALLSYMS=y |
81 | CONFIG_KALLSYMS_ALL=y | 82 | CONFIG_KALLSYMS_ALL=y |
82 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 83 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
84 | # CONFIG_STRIP_ASM_SYMS is not set | ||
83 | CONFIG_HOTPLUG=y | 85 | CONFIG_HOTPLUG=y |
84 | CONFIG_PRINTK=y | 86 | CONFIG_PRINTK=y |
85 | CONFIG_BUG=y | 87 | CONFIG_BUG=y |
@@ -106,6 +108,8 @@ CONFIG_HAVE_KPROBES=y | |||
106 | CONFIG_HAVE_KRETPROBES=y | 108 | CONFIG_HAVE_KRETPROBES=y |
107 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 109 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
108 | CONFIG_HAVE_CLK=y | 110 | CONFIG_HAVE_CLK=y |
111 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
112 | # CONFIG_SLOW_WORK is not set | ||
109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 113 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
110 | CONFIG_RT_MUTEXES=y | 114 | CONFIG_RT_MUTEXES=y |
111 | CONFIG_BASE_SMALL=0 | 115 | CONFIG_BASE_SMALL=0 |
@@ -116,7 +120,6 @@ CONFIG_MODULES=y | |||
116 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 120 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
117 | CONFIG_BLOCK=y | 121 | CONFIG_BLOCK=y |
118 | # CONFIG_LBD is not set | 122 | # CONFIG_LBD is not set |
119 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
120 | # CONFIG_BLK_DEV_BSG is not set | 123 | # CONFIG_BLK_DEV_BSG is not set |
121 | # CONFIG_BLK_DEV_INTEGRITY is not set | 124 | # CONFIG_BLK_DEV_INTEGRITY is not set |
122 | 125 | ||
@@ -163,6 +166,7 @@ CONFIG_CPU_SUBTYPE_SH7203=y | |||
163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
166 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -172,8 +176,6 @@ CONFIG_CPU_SUBTYPE_SH7203=y | |||
172 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
174 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
176 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
177 | 179 | ||
178 | # | 180 | # |
179 | # Memory management options | 181 | # Memory management options |
@@ -750,15 +752,17 @@ CONFIG_USB_HID=y | |||
750 | # | 752 | # |
751 | # Special HID drivers | 753 | # Special HID drivers |
752 | # | 754 | # |
753 | CONFIG_HID_COMPAT=y | ||
754 | CONFIG_HID_A4TECH=y | 755 | CONFIG_HID_A4TECH=y |
755 | CONFIG_HID_APPLE=y | 756 | CONFIG_HID_APPLE=y |
756 | CONFIG_HID_BELKIN=y | 757 | CONFIG_HID_BELKIN=y |
757 | CONFIG_HID_CHERRY=y | 758 | CONFIG_HID_CHERRY=y |
758 | CONFIG_HID_CHICONY=y | 759 | CONFIG_HID_CHICONY=y |
759 | CONFIG_HID_CYPRESS=y | 760 | CONFIG_HID_CYPRESS=y |
761 | # CONFIG_DRAGONRISE_FF is not set | ||
760 | CONFIG_HID_EZKEY=y | 762 | CONFIG_HID_EZKEY=y |
763 | # CONFIG_HID_KYE is not set | ||
761 | CONFIG_HID_GYRATION=y | 764 | CONFIG_HID_GYRATION=y |
765 | # CONFIG_HID_KENSINGTON is not set | ||
762 | CONFIG_HID_LOGITECH=y | 766 | CONFIG_HID_LOGITECH=y |
763 | # CONFIG_LOGITECH_FF is not set | 767 | # CONFIG_LOGITECH_FF is not set |
764 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 768 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -874,6 +878,7 @@ CONFIG_LEDS_CLASS=y | |||
874 | # LED drivers | 878 | # LED drivers |
875 | # | 879 | # |
876 | CONFIG_LEDS_GPIO=y | 880 | CONFIG_LEDS_GPIO=y |
881 | CONFIG_LEDS_GPIO_PLATFORM=y | ||
877 | 882 | ||
878 | # | 883 | # |
879 | # LED Triggers | 884 | # LED Triggers |
@@ -882,6 +887,7 @@ CONFIG_LEDS_TRIGGERS=y | |||
882 | CONFIG_LEDS_TRIGGER_TIMER=y | 887 | CONFIG_LEDS_TRIGGER_TIMER=y |
883 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 888 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
884 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y | 889 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y |
890 | # CONFIG_LEDS_TRIGGER_GPIO is not set | ||
885 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | 891 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y |
886 | 892 | ||
887 | # | 893 | # |
@@ -951,6 +957,11 @@ CONFIG_FILE_LOCKING=y | |||
951 | # CONFIG_FUSE_FS is not set | 957 | # CONFIG_FUSE_FS is not set |
952 | 958 | ||
953 | # | 959 | # |
960 | # Caches | ||
961 | # | ||
962 | # CONFIG_FSCACHE is not set | ||
963 | |||
964 | # | ||
954 | # CD-ROM/DVD Filesystems | 965 | # CD-ROM/DVD Filesystems |
955 | # | 966 | # |
956 | # CONFIG_ISO9660_FS is not set | 967 | # CONFIG_ISO9660_FS is not set |
@@ -989,8 +1000,13 @@ CONFIG_MISC_FILESYSTEMS=y | |||
989 | # CONFIG_HPFS_FS is not set | 1000 | # CONFIG_HPFS_FS is not set |
990 | # CONFIG_QNX4FS_FS is not set | 1001 | # CONFIG_QNX4FS_FS is not set |
991 | CONFIG_ROMFS_FS=y | 1002 | CONFIG_ROMFS_FS=y |
1003 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1004 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1005 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1006 | CONFIG_ROMFS_ON_BLOCK=y | ||
992 | # CONFIG_SYSV_FS is not set | 1007 | # CONFIG_SYSV_FS is not set |
993 | # CONFIG_UFS_FS is not set | 1008 | # CONFIG_UFS_FS is not set |
1009 | # CONFIG_NILFS2_FS is not set | ||
994 | CONFIG_NETWORK_FILESYSTEMS=y | 1010 | CONFIG_NETWORK_FILESYSTEMS=y |
995 | CONFIG_NFS_FS=y | 1011 | CONFIG_NFS_FS=y |
996 | # CONFIG_NFS_V3 is not set | 1012 | # CONFIG_NFS_V3 is not set |
@@ -1033,6 +1049,9 @@ CONFIG_DEBUG_SHIRQ=y | |||
1033 | CONFIG_DETECT_SOFTLOCKUP=y | 1049 | CONFIG_DETECT_SOFTLOCKUP=y |
1034 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1050 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1035 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1051 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1052 | CONFIG_DETECT_HUNG_TASK=y | ||
1053 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1054 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1036 | CONFIG_SCHED_DEBUG=y | 1055 | CONFIG_SCHED_DEBUG=y |
1037 | # CONFIG_SCHEDSTATS is not set | 1056 | # CONFIG_SCHEDSTATS is not set |
1038 | # CONFIG_TIMER_STATS is not set | 1057 | # CONFIG_TIMER_STATS is not set |
@@ -1076,6 +1095,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1076 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1095 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1077 | CONFIG_RING_BUFFER=y | 1096 | CONFIG_RING_BUFFER=y |
1078 | CONFIG_TRACING=y | 1097 | CONFIG_TRACING=y |
1098 | CONFIG_TRACING_SUPPORT=y | ||
1079 | 1099 | ||
1080 | # | 1100 | # |
1081 | # Tracers | 1101 | # Tracers |
@@ -1083,11 +1103,16 @@ CONFIG_TRACING=y | |||
1083 | # CONFIG_FUNCTION_TRACER is not set | 1103 | # CONFIG_FUNCTION_TRACER is not set |
1084 | # CONFIG_SCHED_TRACER is not set | 1104 | # CONFIG_SCHED_TRACER is not set |
1085 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1105 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1106 | # CONFIG_EVENT_TRACER is not set | ||
1086 | # CONFIG_BOOT_TRACER is not set | 1107 | # CONFIG_BOOT_TRACER is not set |
1087 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1108 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1088 | # CONFIG_STACK_TRACER is not set | 1109 | # CONFIG_STACK_TRACER is not set |
1110 | # CONFIG_KMEMTRACE is not set | ||
1111 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1112 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1089 | # CONFIG_FTRACE_STARTUP_TEST is not set | 1113 | # CONFIG_FTRACE_STARTUP_TEST is not set |
1090 | # CONFIG_DYNAMIC_DEBUG is not set | 1114 | # CONFIG_DYNAMIC_DEBUG is not set |
1115 | # CONFIG_DMA_API_DEBUG is not set | ||
1091 | # CONFIG_SAMPLES is not set | 1116 | # CONFIG_SAMPLES is not set |
1092 | CONFIG_HAVE_ARCH_KGDB=y | 1117 | CONFIG_HAVE_ARCH_KGDB=y |
1093 | # CONFIG_KGDB is not set | 1118 | # CONFIG_KGDB is not set |
@@ -1111,6 +1136,7 @@ CONFIG_DUMP_CODE=y | |||
1111 | # CONFIG_SECURITYFS is not set | 1136 | # CONFIG_SECURITYFS is not set |
1112 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 1137 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
1113 | # CONFIG_CRYPTO is not set | 1138 | # CONFIG_CRYPTO is not set |
1139 | CONFIG_BINARY_PRINTF=y | ||
1114 | 1140 | ||
1115 | # | 1141 | # |
1116 | # Library routines | 1142 | # Library routines |
diff --git a/arch/sh/configs/rts7751r2d1_defconfig b/arch/sh/configs/rts7751r2d1_defconfig index c0f741af6da8..a4a59f6205ab 100644 --- a/arch/sh/configs/rts7751r2d1_defconfig +++ b/arch/sh/configs/rts7751r2d1_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:33:25 2009 | 4 | # Mon Apr 27 12:58:13 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -70,6 +71,7 @@ CONFIG_UID16=y | |||
70 | # CONFIG_SYSCTL_SYSCALL is not set | 71 | # CONFIG_SYSCTL_SYSCALL is not set |
71 | CONFIG_KALLSYMS=y | 72 | CONFIG_KALLSYMS=y |
72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
74 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | CONFIG_HOTPLUG=y | 75 | CONFIG_HOTPLUG=y |
74 | CONFIG_PRINTK=y | 76 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 77 | CONFIG_BUG=y |
@@ -99,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
99 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
100 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
101 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
102 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
103 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
104 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -110,7 +114,6 @@ CONFIG_MODULES=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 114 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 115 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 116 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 117 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 118 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 119 | ||
@@ -156,6 +159,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -165,8 +169,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
170 | 172 | ||
171 | # | 173 | # |
172 | # Memory management options | 174 | # Memory management options |
@@ -302,8 +304,6 @@ CONFIG_CMDLINE="console=tty0 console=ttySC0,115200 root=/dev/sda1 earlyprintk=se | |||
302 | # | 304 | # |
303 | CONFIG_PCI=y | 305 | CONFIG_PCI=y |
304 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 306 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
305 | CONFIG_PCI_AUTO=y | ||
306 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
307 | # CONFIG_PCIEPORTBUS is not set | 307 | # CONFIG_PCIEPORTBUS is not set |
308 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 308 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
309 | CONFIG_PCI_LEGACY=y | 309 | CONFIG_PCI_LEGACY=y |
@@ -513,6 +513,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
513 | # CONFIG_SCSI_MPT2SAS is not set | 513 | # CONFIG_SCSI_MPT2SAS is not set |
514 | # CONFIG_SCSI_HPTIOP is not set | 514 | # CONFIG_SCSI_HPTIOP is not set |
515 | # CONFIG_LIBFC is not set | 515 | # CONFIG_LIBFC is not set |
516 | # CONFIG_LIBFCOE is not set | ||
516 | # CONFIG_FCOE is not set | 517 | # CONFIG_FCOE is not set |
517 | # CONFIG_SCSI_DMX3191D is not set | 518 | # CONFIG_SCSI_DMX3191D is not set |
518 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 519 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -672,6 +673,7 @@ CONFIG_NETDEV_1000=y | |||
672 | # CONFIG_E1000E is not set | 673 | # CONFIG_E1000E is not set |
673 | # CONFIG_IP1000 is not set | 674 | # CONFIG_IP1000 is not set |
674 | # CONFIG_IGB is not set | 675 | # CONFIG_IGB is not set |
676 | # CONFIG_IGBVF is not set | ||
675 | # CONFIG_NS83820 is not set | 677 | # CONFIG_NS83820 is not set |
676 | # CONFIG_HAMACHI is not set | 678 | # CONFIG_HAMACHI is not set |
677 | # CONFIG_YELLOWFIN is not set | 679 | # CONFIG_YELLOWFIN is not set |
@@ -695,6 +697,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
695 | # CONFIG_IXGBE is not set | 697 | # CONFIG_IXGBE is not set |
696 | # CONFIG_IXGB is not set | 698 | # CONFIG_IXGB is not set |
697 | # CONFIG_S2IO is not set | 699 | # CONFIG_S2IO is not set |
700 | # CONFIG_VXGE is not set | ||
698 | # CONFIG_MYRI10GE is not set | 701 | # CONFIG_MYRI10GE is not set |
699 | # CONFIG_NETXEN_NIC is not set | 702 | # CONFIG_NETXEN_NIC is not set |
700 | # CONFIG_NIU is not set | 703 | # CONFIG_NIU is not set |
@@ -793,6 +796,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | |||
793 | # | 796 | # |
794 | # Non-8250 serial port support | 797 | # Non-8250 serial port support |
795 | # | 798 | # |
799 | # CONFIG_SERIAL_MAX3100 is not set | ||
796 | CONFIG_SERIAL_SH_SCI=y | 800 | CONFIG_SERIAL_SH_SCI=y |
797 | CONFIG_SERIAL_SH_SCI_NR_UARTS=1 | 801 | CONFIG_SERIAL_SH_SCI_NR_UARTS=1 |
798 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | 802 | CONFIG_SERIAL_SH_SCI_CONSOLE=y |
@@ -1079,15 +1083,17 @@ CONFIG_USB_HID=y | |||
1079 | # | 1083 | # |
1080 | # Special HID drivers | 1084 | # Special HID drivers |
1081 | # | 1085 | # |
1082 | CONFIG_HID_COMPAT=y | ||
1083 | CONFIG_HID_A4TECH=y | 1086 | CONFIG_HID_A4TECH=y |
1084 | CONFIG_HID_APPLE=y | 1087 | CONFIG_HID_APPLE=y |
1085 | CONFIG_HID_BELKIN=y | 1088 | CONFIG_HID_BELKIN=y |
1086 | CONFIG_HID_CHERRY=y | 1089 | CONFIG_HID_CHERRY=y |
1087 | CONFIG_HID_CHICONY=y | 1090 | CONFIG_HID_CHICONY=y |
1088 | CONFIG_HID_CYPRESS=y | 1091 | CONFIG_HID_CYPRESS=y |
1092 | # CONFIG_DRAGONRISE_FF is not set | ||
1089 | CONFIG_HID_EZKEY=y | 1093 | CONFIG_HID_EZKEY=y |
1094 | # CONFIG_HID_KYE is not set | ||
1090 | CONFIG_HID_GYRATION=y | 1095 | CONFIG_HID_GYRATION=y |
1096 | # CONFIG_HID_KENSINGTON is not set | ||
1091 | CONFIG_HID_LOGITECH=y | 1097 | CONFIG_HID_LOGITECH=y |
1092 | # CONFIG_LOGITECH_FF is not set | 1098 | # CONFIG_LOGITECH_FF is not set |
1093 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 1099 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1291,6 +1297,11 @@ CONFIG_INOTIFY_USER=y | |||
1291 | # CONFIG_FUSE_FS is not set | 1297 | # CONFIG_FUSE_FS is not set |
1292 | 1298 | ||
1293 | # | 1299 | # |
1300 | # Caches | ||
1301 | # | ||
1302 | # CONFIG_FSCACHE is not set | ||
1303 | |||
1304 | # | ||
1294 | # CD-ROM/DVD Filesystems | 1305 | # CD-ROM/DVD Filesystems |
1295 | # | 1306 | # |
1296 | # CONFIG_ISO9660_FS is not set | 1307 | # CONFIG_ISO9660_FS is not set |
@@ -1337,6 +1348,7 @@ CONFIG_MINIX_FS=y | |||
1337 | # CONFIG_ROMFS_FS is not set | 1348 | # CONFIG_ROMFS_FS is not set |
1338 | # CONFIG_SYSV_FS is not set | 1349 | # CONFIG_SYSV_FS is not set |
1339 | # CONFIG_UFS_FS is not set | 1350 | # CONFIG_UFS_FS is not set |
1351 | # CONFIG_NILFS2_FS is not set | ||
1340 | CONFIG_NETWORK_FILESYSTEMS=y | 1352 | CONFIG_NETWORK_FILESYSTEMS=y |
1341 | # CONFIG_NFS_FS is not set | 1353 | # CONFIG_NFS_FS is not set |
1342 | # CONFIG_NFSD is not set | 1354 | # CONFIG_NFSD is not set |
@@ -1417,11 +1429,25 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1417 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1429 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1418 | CONFIG_RING_BUFFER=y | 1430 | CONFIG_RING_BUFFER=y |
1419 | CONFIG_TRACING=y | 1431 | CONFIG_TRACING=y |
1432 | CONFIG_TRACING_SUPPORT=y | ||
1420 | 1433 | ||
1421 | # | 1434 | # |
1422 | # Tracers | 1435 | # Tracers |
1423 | # | 1436 | # |
1437 | # CONFIG_FUNCTION_TRACER is not set | ||
1438 | # CONFIG_IRQSOFF_TRACER is not set | ||
1439 | # CONFIG_SCHED_TRACER is not set | ||
1440 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1441 | # CONFIG_EVENT_TRACER is not set | ||
1442 | # CONFIG_BOOT_TRACER is not set | ||
1443 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1444 | # CONFIG_STACK_TRACER is not set | ||
1445 | # CONFIG_KMEMTRACE is not set | ||
1446 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1447 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1448 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1424 | # CONFIG_DYNAMIC_DEBUG is not set | 1449 | # CONFIG_DYNAMIC_DEBUG is not set |
1450 | # CONFIG_DMA_API_DEBUG is not set | ||
1425 | # CONFIG_SAMPLES is not set | 1451 | # CONFIG_SAMPLES is not set |
1426 | CONFIG_HAVE_ARCH_KGDB=y | 1452 | CONFIG_HAVE_ARCH_KGDB=y |
1427 | # CONFIG_SH_STANDARD_BIOS is not set | 1453 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1524,6 +1550,7 @@ CONFIG_CRYPTO=y | |||
1524 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1550 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1525 | CONFIG_CRYPTO_HW=y | 1551 | CONFIG_CRYPTO_HW=y |
1526 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1552 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1553 | CONFIG_BINARY_PRINTF=y | ||
1527 | 1554 | ||
1528 | # | 1555 | # |
1529 | # Library routines | 1556 | # Library routines |
diff --git a/arch/sh/configs/rts7751r2dplus_defconfig b/arch/sh/configs/rts7751r2dplus_defconfig index 8feef629e49c..a860435b8847 100644 --- a/arch/sh/configs/rts7751r2dplus_defconfig +++ b/arch/sh/configs/rts7751r2dplus_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:34:12 2009 | 4 | # Mon Apr 27 12:59:01 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -70,6 +71,7 @@ CONFIG_UID16=y | |||
70 | # CONFIG_SYSCTL_SYSCALL is not set | 71 | # CONFIG_SYSCTL_SYSCALL is not set |
71 | CONFIG_KALLSYMS=y | 72 | CONFIG_KALLSYMS=y |
72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
74 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | CONFIG_HOTPLUG=y | 75 | CONFIG_HOTPLUG=y |
74 | CONFIG_PRINTK=y | 76 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 77 | CONFIG_BUG=y |
@@ -99,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
99 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
100 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
101 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
102 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
103 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
104 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -110,7 +114,6 @@ CONFIG_MODULES=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 114 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 115 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 116 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 117 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 118 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 119 | ||
@@ -156,6 +159,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -165,8 +169,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
170 | 172 | ||
171 | # | 173 | # |
172 | # Memory management options | 174 | # Memory management options |
@@ -302,8 +304,6 @@ CONFIG_CMDLINE="console=tty0 console=ttySC0,115200 root=/dev/sda1 earlyprintk=se | |||
302 | # | 304 | # |
303 | CONFIG_PCI=y | 305 | CONFIG_PCI=y |
304 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 306 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
305 | CONFIG_PCI_AUTO=y | ||
306 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
307 | # CONFIG_PCIEPORTBUS is not set | 307 | # CONFIG_PCIEPORTBUS is not set |
308 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 308 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
309 | CONFIG_PCI_LEGACY=y | 309 | CONFIG_PCI_LEGACY=y |
@@ -424,7 +424,92 @@ CONFIG_FIRMWARE_IN_KERNEL=y | |||
424 | CONFIG_EXTRA_FIRMWARE="" | 424 | CONFIG_EXTRA_FIRMWARE="" |
425 | # CONFIG_SYS_HYPERVISOR is not set | 425 | # CONFIG_SYS_HYPERVISOR is not set |
426 | # CONFIG_CONNECTOR is not set | 426 | # CONFIG_CONNECTOR is not set |
427 | # CONFIG_MTD is not set | 427 | CONFIG_MTD=y |
428 | # CONFIG_MTD_DEBUG is not set | ||
429 | CONFIG_MTD_CONCAT=y | ||
430 | CONFIG_MTD_PARTITIONS=y | ||
431 | # CONFIG_MTD_TESTS is not set | ||
432 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
433 | CONFIG_MTD_CMDLINE_PARTS=y | ||
434 | # CONFIG_MTD_AR7_PARTS is not set | ||
435 | |||
436 | # | ||
437 | # User Modules And Translation Layers | ||
438 | # | ||
439 | CONFIG_MTD_CHAR=y | ||
440 | # CONFIG_MTD_BLKDEVS is not set | ||
441 | # CONFIG_MTD_BLOCK is not set | ||
442 | # CONFIG_MTD_BLOCK_RO is not set | ||
443 | # CONFIG_FTL is not set | ||
444 | # CONFIG_NFTL is not set | ||
445 | # CONFIG_INFTL is not set | ||
446 | # CONFIG_RFD_FTL is not set | ||
447 | # CONFIG_SSFDC is not set | ||
448 | # CONFIG_MTD_OOPS is not set | ||
449 | |||
450 | # | ||
451 | # RAM/ROM/Flash chip drivers | ||
452 | # | ||
453 | CONFIG_MTD_CFI=y | ||
454 | # CONFIG_MTD_JEDECPROBE is not set | ||
455 | CONFIG_MTD_GEN_PROBE=y | ||
456 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
457 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
458 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
459 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
460 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
461 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
462 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
463 | CONFIG_MTD_CFI_I1=y | ||
464 | CONFIG_MTD_CFI_I2=y | ||
465 | # CONFIG_MTD_CFI_I4 is not set | ||
466 | # CONFIG_MTD_CFI_I8 is not set | ||
467 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
468 | CONFIG_MTD_CFI_AMDSTD=y | ||
469 | # CONFIG_MTD_CFI_STAA is not set | ||
470 | CONFIG_MTD_CFI_UTIL=y | ||
471 | # CONFIG_MTD_RAM is not set | ||
472 | # CONFIG_MTD_ROM is not set | ||
473 | # CONFIG_MTD_ABSENT is not set | ||
474 | |||
475 | # | ||
476 | # Mapping drivers for chip access | ||
477 | # | ||
478 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
479 | CONFIG_MTD_PHYSMAP=y | ||
480 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
481 | # CONFIG_MTD_INTEL_VR_NOR is not set | ||
482 | # CONFIG_MTD_PLATRAM is not set | ||
483 | |||
484 | # | ||
485 | # Self-contained MTD device drivers | ||
486 | # | ||
487 | # CONFIG_MTD_PMC551 is not set | ||
488 | # CONFIG_MTD_DATAFLASH is not set | ||
489 | # CONFIG_MTD_M25P80 is not set | ||
490 | # CONFIG_MTD_SLRAM is not set | ||
491 | # CONFIG_MTD_PHRAM is not set | ||
492 | # CONFIG_MTD_MTDRAM is not set | ||
493 | # CONFIG_MTD_BLOCK2MTD is not set | ||
494 | |||
495 | # | ||
496 | # Disk-On-Chip Device Drivers | ||
497 | # | ||
498 | # CONFIG_MTD_DOC2000 is not set | ||
499 | # CONFIG_MTD_DOC2001 is not set | ||
500 | # CONFIG_MTD_DOC2001PLUS is not set | ||
501 | # CONFIG_MTD_NAND is not set | ||
502 | # CONFIG_MTD_ONENAND is not set | ||
503 | |||
504 | # | ||
505 | # LPDDR flash memory drivers | ||
506 | # | ||
507 | # CONFIG_MTD_LPDDR is not set | ||
508 | |||
509 | # | ||
510 | # UBI - Unsorted block images | ||
511 | # | ||
512 | # CONFIG_MTD_UBI is not set | ||
428 | # CONFIG_PARPORT is not set | 513 | # CONFIG_PARPORT is not set |
429 | CONFIG_BLK_DEV=y | 514 | CONFIG_BLK_DEV=y |
430 | # CONFIG_BLK_CPQ_CISS_DA is not set | 515 | # CONFIG_BLK_CPQ_CISS_DA is not set |
@@ -513,6 +598,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
513 | # CONFIG_SCSI_MPT2SAS is not set | 598 | # CONFIG_SCSI_MPT2SAS is not set |
514 | # CONFIG_SCSI_HPTIOP is not set | 599 | # CONFIG_SCSI_HPTIOP is not set |
515 | # CONFIG_LIBFC is not set | 600 | # CONFIG_LIBFC is not set |
601 | # CONFIG_LIBFCOE is not set | ||
516 | # CONFIG_FCOE is not set | 602 | # CONFIG_FCOE is not set |
517 | # CONFIG_SCSI_DMX3191D is not set | 603 | # CONFIG_SCSI_DMX3191D is not set |
518 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 604 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -672,6 +758,7 @@ CONFIG_NETDEV_1000=y | |||
672 | # CONFIG_E1000E is not set | 758 | # CONFIG_E1000E is not set |
673 | # CONFIG_IP1000 is not set | 759 | # CONFIG_IP1000 is not set |
674 | # CONFIG_IGB is not set | 760 | # CONFIG_IGB is not set |
761 | # CONFIG_IGBVF is not set | ||
675 | # CONFIG_NS83820 is not set | 762 | # CONFIG_NS83820 is not set |
676 | # CONFIG_HAMACHI is not set | 763 | # CONFIG_HAMACHI is not set |
677 | # CONFIG_YELLOWFIN is not set | 764 | # CONFIG_YELLOWFIN is not set |
@@ -695,6 +782,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
695 | # CONFIG_IXGBE is not set | 782 | # CONFIG_IXGBE is not set |
696 | # CONFIG_IXGB is not set | 783 | # CONFIG_IXGB is not set |
697 | # CONFIG_S2IO is not set | 784 | # CONFIG_S2IO is not set |
785 | # CONFIG_VXGE is not set | ||
698 | # CONFIG_MYRI10GE is not set | 786 | # CONFIG_MYRI10GE is not set |
699 | # CONFIG_NETXEN_NIC is not set | 787 | # CONFIG_NETXEN_NIC is not set |
700 | # CONFIG_NIU is not set | 788 | # CONFIG_NIU is not set |
@@ -793,6 +881,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | |||
793 | # | 881 | # |
794 | # Non-8250 serial port support | 882 | # Non-8250 serial port support |
795 | # | 883 | # |
884 | # CONFIG_SERIAL_MAX3100 is not set | ||
796 | CONFIG_SERIAL_SH_SCI=y | 885 | CONFIG_SERIAL_SH_SCI=y |
797 | CONFIG_SERIAL_SH_SCI_NR_UARTS=1 | 886 | CONFIG_SERIAL_SH_SCI_NR_UARTS=1 |
798 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | 887 | CONFIG_SERIAL_SH_SCI_CONSOLE=y |
@@ -1079,15 +1168,17 @@ CONFIG_USB_HID=y | |||
1079 | # | 1168 | # |
1080 | # Special HID drivers | 1169 | # Special HID drivers |
1081 | # | 1170 | # |
1082 | CONFIG_HID_COMPAT=y | ||
1083 | CONFIG_HID_A4TECH=y | 1171 | CONFIG_HID_A4TECH=y |
1084 | CONFIG_HID_APPLE=y | 1172 | CONFIG_HID_APPLE=y |
1085 | CONFIG_HID_BELKIN=y | 1173 | CONFIG_HID_BELKIN=y |
1086 | CONFIG_HID_CHERRY=y | 1174 | CONFIG_HID_CHERRY=y |
1087 | CONFIG_HID_CHICONY=y | 1175 | CONFIG_HID_CHICONY=y |
1088 | CONFIG_HID_CYPRESS=y | 1176 | CONFIG_HID_CYPRESS=y |
1177 | # CONFIG_DRAGONRISE_FF is not set | ||
1089 | CONFIG_HID_EZKEY=y | 1178 | CONFIG_HID_EZKEY=y |
1179 | # CONFIG_HID_KYE is not set | ||
1090 | CONFIG_HID_GYRATION=y | 1180 | CONFIG_HID_GYRATION=y |
1181 | # CONFIG_HID_KENSINGTON is not set | ||
1091 | CONFIG_HID_LOGITECH=y | 1182 | CONFIG_HID_LOGITECH=y |
1092 | # CONFIG_LOGITECH_FF is not set | 1183 | # CONFIG_LOGITECH_FF is not set |
1093 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 1184 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1291,6 +1382,11 @@ CONFIG_INOTIFY_USER=y | |||
1291 | # CONFIG_FUSE_FS is not set | 1382 | # CONFIG_FUSE_FS is not set |
1292 | 1383 | ||
1293 | # | 1384 | # |
1385 | # Caches | ||
1386 | # | ||
1387 | # CONFIG_FSCACHE is not set | ||
1388 | |||
1389 | # | ||
1294 | # CD-ROM/DVD Filesystems | 1390 | # CD-ROM/DVD Filesystems |
1295 | # | 1391 | # |
1296 | # CONFIG_ISO9660_FS is not set | 1392 | # CONFIG_ISO9660_FS is not set |
@@ -1337,6 +1433,7 @@ CONFIG_MINIX_FS=y | |||
1337 | # CONFIG_ROMFS_FS is not set | 1433 | # CONFIG_ROMFS_FS is not set |
1338 | # CONFIG_SYSV_FS is not set | 1434 | # CONFIG_SYSV_FS is not set |
1339 | # CONFIG_UFS_FS is not set | 1435 | # CONFIG_UFS_FS is not set |
1436 | # CONFIG_NILFS2_FS is not set | ||
1340 | CONFIG_NETWORK_FILESYSTEMS=y | 1437 | CONFIG_NETWORK_FILESYSTEMS=y |
1341 | # CONFIG_NFS_FS is not set | 1438 | # CONFIG_NFS_FS is not set |
1342 | # CONFIG_NFSD is not set | 1439 | # CONFIG_NFSD is not set |
@@ -1417,11 +1514,25 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1417 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1514 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1418 | CONFIG_RING_BUFFER=y | 1515 | CONFIG_RING_BUFFER=y |
1419 | CONFIG_TRACING=y | 1516 | CONFIG_TRACING=y |
1517 | CONFIG_TRACING_SUPPORT=y | ||
1420 | 1518 | ||
1421 | # | 1519 | # |
1422 | # Tracers | 1520 | # Tracers |
1423 | # | 1521 | # |
1522 | # CONFIG_FUNCTION_TRACER is not set | ||
1523 | # CONFIG_IRQSOFF_TRACER is not set | ||
1524 | # CONFIG_SCHED_TRACER is not set | ||
1525 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1526 | # CONFIG_EVENT_TRACER is not set | ||
1527 | # CONFIG_BOOT_TRACER is not set | ||
1528 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1529 | # CONFIG_STACK_TRACER is not set | ||
1530 | # CONFIG_KMEMTRACE is not set | ||
1531 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1532 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1533 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1424 | # CONFIG_DYNAMIC_DEBUG is not set | 1534 | # CONFIG_DYNAMIC_DEBUG is not set |
1535 | # CONFIG_DMA_API_DEBUG is not set | ||
1425 | # CONFIG_SAMPLES is not set | 1536 | # CONFIG_SAMPLES is not set |
1426 | CONFIG_HAVE_ARCH_KGDB=y | 1537 | CONFIG_HAVE_ARCH_KGDB=y |
1427 | # CONFIG_SH_STANDARD_BIOS is not set | 1538 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1524,6 +1635,7 @@ CONFIG_CRYPTO=y | |||
1524 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1635 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1525 | CONFIG_CRYPTO_HW=y | 1636 | CONFIG_CRYPTO_HW=y |
1526 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1637 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1638 | CONFIG_BINARY_PRINTF=y | ||
1527 | 1639 | ||
1528 | # | 1640 | # |
1529 | # Library routines | 1641 | # Library routines |
diff --git a/arch/sh/configs/sdk7780_defconfig b/arch/sh/configs/sdk7780_defconfig index 739e2299ae80..a629b79a1844 100644 --- a/arch/sh/configs/sdk7780_defconfig +++ b/arch/sh/configs/sdk7780_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:34:43 2009 | 4 | # Mon Apr 27 12:59:32 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -41,6 +42,7 @@ CONFIG_SWAP=y | |||
41 | CONFIG_SYSVIPC=y | 42 | CONFIG_SYSVIPC=y |
42 | CONFIG_SYSVIPC_SYSCTL=y | 43 | CONFIG_SYSVIPC_SYSCTL=y |
43 | CONFIG_POSIX_MQUEUE=y | 44 | CONFIG_POSIX_MQUEUE=y |
45 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
44 | CONFIG_BSD_PROCESS_ACCT=y | 46 | CONFIG_BSD_PROCESS_ACCT=y |
45 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 47 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
46 | # CONFIG_TASKSTATS is not set | 48 | # CONFIG_TASKSTATS is not set |
@@ -73,6 +75,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
73 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
74 | CONFIG_KALLSYMS_ALL=y | 76 | CONFIG_KALLSYMS_ALL=y |
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 77 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
78 | # CONFIG_STRIP_ASM_SYMS is not set | ||
76 | CONFIG_HOTPLUG=y | 79 | CONFIG_HOTPLUG=y |
77 | CONFIG_PRINTK=y | 80 | CONFIG_PRINTK=y |
78 | CONFIG_BUG=y | 81 | CONFIG_BUG=y |
@@ -93,6 +96,7 @@ CONFIG_COMPAT_BRK=y | |||
93 | CONFIG_SLUB=y | 96 | CONFIG_SLUB=y |
94 | # CONFIG_SLOB is not set | 97 | # CONFIG_SLOB is not set |
95 | # CONFIG_PROFILING is not set | 98 | # CONFIG_PROFILING is not set |
99 | # CONFIG_MARKERS is not set | ||
96 | CONFIG_HAVE_OPROFILE=y | 100 | CONFIG_HAVE_OPROFILE=y |
97 | # CONFIG_KPROBES is not set | 101 | # CONFIG_KPROBES is not set |
98 | CONFIG_HAVE_IOREMAP_PROT=y | 102 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -100,6 +104,8 @@ CONFIG_HAVE_KPROBES=y | |||
100 | CONFIG_HAVE_KRETPROBES=y | 104 | CONFIG_HAVE_KRETPROBES=y |
101 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 105 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
102 | CONFIG_HAVE_CLK=y | 106 | CONFIG_HAVE_CLK=y |
107 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
108 | # CONFIG_SLOW_WORK is not set | ||
103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
104 | CONFIG_SLABINFO=y | 110 | CONFIG_SLABINFO=y |
105 | CONFIG_RT_MUTEXES=y | 111 | CONFIG_RT_MUTEXES=y |
@@ -112,7 +118,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
112 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 118 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
113 | CONFIG_BLOCK=y | 119 | CONFIG_BLOCK=y |
114 | CONFIG_LBD=y | 120 | CONFIG_LBD=y |
115 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
116 | # CONFIG_BLK_DEV_BSG is not set | 121 | # CONFIG_BLK_DEV_BSG is not set |
117 | # CONFIG_BLK_DEV_INTEGRITY is not set | 122 | # CONFIG_BLK_DEV_INTEGRITY is not set |
118 | 123 | ||
@@ -159,6 +164,7 @@ CONFIG_CPU_SH4A=y | |||
159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
164 | CONFIG_CPU_SUBTYPE_SH7780=y | 170 | CONFIG_CPU_SUBTYPE_SH7780=y |
@@ -168,8 +174,6 @@ CONFIG_CPU_SUBTYPE_SH7780=y | |||
168 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
173 | 177 | ||
174 | # | 178 | # |
175 | # Memory management options | 179 | # Memory management options |
@@ -310,8 +314,6 @@ CONFIG_CMDLINE="mem=128M console=tty0 console=ttySC0,115200 ip=bootp root=/dev/n | |||
310 | # | 314 | # |
311 | CONFIG_PCI=y | 315 | CONFIG_PCI=y |
312 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 316 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
313 | CONFIG_PCI_AUTO=y | ||
314 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
315 | # CONFIG_PCIEPORTBUS is not set | 317 | # CONFIG_PCIEPORTBUS is not set |
316 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 318 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
317 | # CONFIG_PCI_LEGACY is not set | 319 | # CONFIG_PCI_LEGACY is not set |
@@ -646,6 +648,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
646 | # CONFIG_SCSI_MPT2SAS is not set | 648 | # CONFIG_SCSI_MPT2SAS is not set |
647 | # CONFIG_SCSI_HPTIOP is not set | 649 | # CONFIG_SCSI_HPTIOP is not set |
648 | # CONFIG_LIBFC is not set | 650 | # CONFIG_LIBFC is not set |
651 | # CONFIG_LIBFCOE is not set | ||
649 | # CONFIG_FCOE is not set | 652 | # CONFIG_FCOE is not set |
650 | # CONFIG_SCSI_DMX3191D is not set | 653 | # CONFIG_SCSI_DMX3191D is not set |
651 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 654 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -1091,15 +1094,17 @@ CONFIG_USB_HID=y | |||
1091 | # | 1094 | # |
1092 | # Special HID drivers | 1095 | # Special HID drivers |
1093 | # | 1096 | # |
1094 | CONFIG_HID_COMPAT=y | ||
1095 | CONFIG_HID_A4TECH=y | 1097 | CONFIG_HID_A4TECH=y |
1096 | CONFIG_HID_APPLE=y | 1098 | CONFIG_HID_APPLE=y |
1097 | CONFIG_HID_BELKIN=y | 1099 | CONFIG_HID_BELKIN=y |
1098 | CONFIG_HID_CHERRY=y | 1100 | CONFIG_HID_CHERRY=y |
1099 | CONFIG_HID_CHICONY=y | 1101 | CONFIG_HID_CHICONY=y |
1100 | CONFIG_HID_CYPRESS=y | 1102 | CONFIG_HID_CYPRESS=y |
1103 | # CONFIG_DRAGONRISE_FF is not set | ||
1101 | CONFIG_HID_EZKEY=y | 1104 | CONFIG_HID_EZKEY=y |
1105 | # CONFIG_HID_KYE is not set | ||
1102 | CONFIG_HID_GYRATION=y | 1106 | CONFIG_HID_GYRATION=y |
1107 | # CONFIG_HID_KENSINGTON is not set | ||
1103 | CONFIG_HID_LOGITECH=y | 1108 | CONFIG_HID_LOGITECH=y |
1104 | # CONFIG_LOGITECH_FF is not set | 1109 | # CONFIG_LOGITECH_FF is not set |
1105 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 1110 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1257,6 +1262,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y | |||
1257 | # CONFIG_EXT2_FS_SECURITY is not set | 1262 | # CONFIG_EXT2_FS_SECURITY is not set |
1258 | # CONFIG_EXT2_FS_XIP is not set | 1263 | # CONFIG_EXT2_FS_XIP is not set |
1259 | CONFIG_EXT3_FS=y | 1264 | CONFIG_EXT3_FS=y |
1265 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1260 | CONFIG_EXT3_FS_XATTR=y | 1266 | CONFIG_EXT3_FS_XATTR=y |
1261 | CONFIG_EXT3_FS_POSIX_ACL=y | 1267 | CONFIG_EXT3_FS_POSIX_ACL=y |
1262 | # CONFIG_EXT3_FS_SECURITY is not set | 1268 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1281,6 +1287,11 @@ CONFIG_AUTOFS4_FS=y | |||
1281 | CONFIG_GENERIC_ACL=y | 1287 | CONFIG_GENERIC_ACL=y |
1282 | 1288 | ||
1283 | # | 1289 | # |
1290 | # Caches | ||
1291 | # | ||
1292 | # CONFIG_FSCACHE is not set | ||
1293 | |||
1294 | # | ||
1284 | # CD-ROM/DVD Filesystems | 1295 | # CD-ROM/DVD Filesystems |
1285 | # | 1296 | # |
1286 | CONFIG_ISO9660_FS=y | 1297 | CONFIG_ISO9660_FS=y |
@@ -1331,6 +1342,7 @@ CONFIG_MINIX_FS=y | |||
1331 | # CONFIG_ROMFS_FS is not set | 1342 | # CONFIG_ROMFS_FS is not set |
1332 | # CONFIG_SYSV_FS is not set | 1343 | # CONFIG_SYSV_FS is not set |
1333 | # CONFIG_UFS_FS is not set | 1344 | # CONFIG_UFS_FS is not set |
1345 | # CONFIG_NILFS2_FS is not set | ||
1334 | CONFIG_NETWORK_FILESYSTEMS=y | 1346 | CONFIG_NETWORK_FILESYSTEMS=y |
1335 | CONFIG_NFS_FS=y | 1347 | CONFIG_NFS_FS=y |
1336 | CONFIG_NFS_V3=y | 1348 | CONFIG_NFS_V3=y |
@@ -1418,6 +1430,9 @@ CONFIG_DEBUG_KERNEL=y | |||
1418 | CONFIG_DETECT_SOFTLOCKUP=y | 1430 | CONFIG_DETECT_SOFTLOCKUP=y |
1419 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1431 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1420 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1432 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1433 | CONFIG_DETECT_HUNG_TASK=y | ||
1434 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1435 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1421 | # CONFIG_SCHED_DEBUG is not set | 1436 | # CONFIG_SCHED_DEBUG is not set |
1422 | # CONFIG_SCHEDSTATS is not set | 1437 | # CONFIG_SCHEDSTATS is not set |
1423 | CONFIG_TIMER_STATS=y | 1438 | CONFIG_TIMER_STATS=y |
@@ -1455,6 +1470,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1455 | CONFIG_HAVE_FUNCTION_TRACER=y | 1470 | CONFIG_HAVE_FUNCTION_TRACER=y |
1456 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1471 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1457 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1472 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1473 | CONFIG_TRACING_SUPPORT=y | ||
1458 | 1474 | ||
1459 | # | 1475 | # |
1460 | # Tracers | 1476 | # Tracers |
@@ -1464,9 +1480,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1464 | # CONFIG_PREEMPT_TRACER is not set | 1480 | # CONFIG_PREEMPT_TRACER is not set |
1465 | # CONFIG_SCHED_TRACER is not set | 1481 | # CONFIG_SCHED_TRACER is not set |
1466 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1482 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1483 | # CONFIG_EVENT_TRACER is not set | ||
1467 | # CONFIG_BOOT_TRACER is not set | 1484 | # CONFIG_BOOT_TRACER is not set |
1468 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1485 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1469 | # CONFIG_STACK_TRACER is not set | 1486 | # CONFIG_STACK_TRACER is not set |
1487 | # CONFIG_KMEMTRACE is not set | ||
1488 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1489 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1490 | # CONFIG_DMA_API_DEBUG is not set | ||
1470 | # CONFIG_SAMPLES is not set | 1491 | # CONFIG_SAMPLES is not set |
1471 | CONFIG_HAVE_ARCH_KGDB=y | 1492 | CONFIG_HAVE_ARCH_KGDB=y |
1472 | # CONFIG_KGDB is not set | 1493 | # CONFIG_KGDB is not set |
@@ -1580,6 +1601,7 @@ CONFIG_CRYPTO_DES=y | |||
1580 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1601 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1581 | CONFIG_CRYPTO_HW=y | 1602 | CONFIG_CRYPTO_HW=y |
1582 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1603 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1604 | # CONFIG_BINARY_PRINTF is not set | ||
1583 | 1605 | ||
1584 | # | 1606 | # |
1585 | # Library routines | 1607 | # Library routines |
diff --git a/arch/sh/configs/se7206_defconfig b/arch/sh/configs/se7206_defconfig index d30e0a7ad9f1..5caf85a3312d 100644 --- a/arch/sh/configs/se7206_defconfig +++ b/arch/sh/configs/se7206_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:39:37 2009 | 4 | # Mon Apr 27 13:01:02 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -40,6 +41,7 @@ CONFIG_LOCALVERSION_AUTO=y | |||
40 | CONFIG_SYSVIPC=y | 41 | CONFIG_SYSVIPC=y |
41 | CONFIG_SYSVIPC_SYSCTL=y | 42 | CONFIG_SYSVIPC_SYSCTL=y |
42 | CONFIG_POSIX_MQUEUE=y | 43 | CONFIG_POSIX_MQUEUE=y |
44 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | CONFIG_BSD_PROCESS_ACCT=y | 45 | CONFIG_BSD_PROCESS_ACCT=y |
44 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 46 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
45 | # CONFIG_TASKSTATS is not set | 47 | # CONFIG_TASKSTATS is not set |
@@ -63,6 +65,7 @@ CONFIG_CGROUP_DEBUG=y | |||
63 | CONFIG_CGROUP_NS=y | 65 | CONFIG_CGROUP_NS=y |
64 | # CONFIG_CGROUP_FREEZER is not set | 66 | # CONFIG_CGROUP_FREEZER is not set |
65 | CONFIG_CGROUP_DEVICE=y | 67 | CONFIG_CGROUP_DEVICE=y |
68 | # CONFIG_CPUSETS is not set | ||
66 | CONFIG_CGROUP_CPUACCT=y | 69 | CONFIG_CGROUP_CPUACCT=y |
67 | CONFIG_RESOURCE_COUNTERS=y | 70 | CONFIG_RESOURCE_COUNTERS=y |
68 | CONFIG_CGROUP_MEM_RES_CTLR=y | 71 | CONFIG_CGROUP_MEM_RES_CTLR=y |
@@ -80,7 +83,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
80 | CONFIG_RD_GZIP=y | 83 | CONFIG_RD_GZIP=y |
81 | # CONFIG_RD_BZIP2 is not set | 84 | # CONFIG_RD_BZIP2 is not set |
82 | # CONFIG_RD_LZMA is not set | 85 | # CONFIG_RD_LZMA is not set |
83 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
84 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 86 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
85 | CONFIG_SYSCTL=y | 87 | CONFIG_SYSCTL=y |
86 | CONFIG_ANON_INODES=y | 88 | CONFIG_ANON_INODES=y |
@@ -90,6 +92,7 @@ CONFIG_EMBEDDED=y | |||
90 | CONFIG_KALLSYMS=y | 92 | CONFIG_KALLSYMS=y |
91 | CONFIG_KALLSYMS_ALL=y | 93 | CONFIG_KALLSYMS_ALL=y |
92 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 94 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
95 | # CONFIG_STRIP_ASM_SYMS is not set | ||
93 | CONFIG_HOTPLUG=y | 96 | CONFIG_HOTPLUG=y |
94 | CONFIG_PRINTK=y | 97 | CONFIG_PRINTK=y |
95 | CONFIG_BUG=y | 98 | CONFIG_BUG=y |
@@ -116,6 +119,8 @@ CONFIG_HAVE_KPROBES=y | |||
116 | CONFIG_HAVE_KRETPROBES=y | 119 | CONFIG_HAVE_KRETPROBES=y |
117 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 120 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
118 | CONFIG_HAVE_CLK=y | 121 | CONFIG_HAVE_CLK=y |
122 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
123 | # CONFIG_SLOW_WORK is not set | ||
119 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 124 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
120 | CONFIG_RT_MUTEXES=y | 125 | CONFIG_RT_MUTEXES=y |
121 | CONFIG_BASE_SMALL=0 | 126 | CONFIG_BASE_SMALL=0 |
@@ -127,7 +132,6 @@ CONFIG_MODULE_UNLOAD=y | |||
127 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 132 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
128 | CONFIG_BLOCK=y | 133 | CONFIG_BLOCK=y |
129 | # CONFIG_LBD is not set | 134 | # CONFIG_LBD is not set |
130 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
131 | # CONFIG_BLK_DEV_BSG is not set | 135 | # CONFIG_BLK_DEV_BSG is not set |
132 | # CONFIG_BLK_DEV_INTEGRITY is not set | 136 | # CONFIG_BLK_DEV_INTEGRITY is not set |
133 | 137 | ||
@@ -174,6 +178,7 @@ CONFIG_CPU_SUBTYPE_SH7206=y | |||
174 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 179 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
176 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 180 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
181 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
177 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 182 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
178 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 183 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
179 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 184 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -183,8 +188,6 @@ CONFIG_CPU_SUBTYPE_SH7206=y | |||
183 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 188 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
184 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 189 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
185 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 190 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
186 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
187 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
188 | 191 | ||
189 | # | 192 | # |
190 | # Memory management options | 193 | # Memory management options |
@@ -746,6 +749,11 @@ CONFIG_FILE_LOCKING=y | |||
746 | # CONFIG_FUSE_FS is not set | 749 | # CONFIG_FUSE_FS is not set |
747 | 750 | ||
748 | # | 751 | # |
752 | # Caches | ||
753 | # | ||
754 | # CONFIG_FSCACHE is not set | ||
755 | |||
756 | # | ||
749 | # CD-ROM/DVD Filesystems | 757 | # CD-ROM/DVD Filesystems |
750 | # | 758 | # |
751 | # CONFIG_ISO9660_FS is not set | 759 | # CONFIG_ISO9660_FS is not set |
@@ -785,8 +793,13 @@ CONFIG_CRAMFS=y | |||
785 | # CONFIG_HPFS_FS is not set | 793 | # CONFIG_HPFS_FS is not set |
786 | # CONFIG_QNX4FS_FS is not set | 794 | # CONFIG_QNX4FS_FS is not set |
787 | CONFIG_ROMFS_FS=y | 795 | CONFIG_ROMFS_FS=y |
796 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
797 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
798 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
799 | CONFIG_ROMFS_ON_BLOCK=y | ||
788 | # CONFIG_SYSV_FS is not set | 800 | # CONFIG_SYSV_FS is not set |
789 | # CONFIG_UFS_FS is not set | 801 | # CONFIG_UFS_FS is not set |
802 | # CONFIG_NILFS2_FS is not set | ||
790 | CONFIG_NETWORK_FILESYSTEMS=y | 803 | CONFIG_NETWORK_FILESYSTEMS=y |
791 | CONFIG_NFS_FS=y | 804 | CONFIG_NFS_FS=y |
792 | CONFIG_NFS_V3=y | 805 | CONFIG_NFS_V3=y |
@@ -831,6 +844,9 @@ CONFIG_DEBUG_KERNEL=y | |||
831 | CONFIG_DETECT_SOFTLOCKUP=y | 844 | CONFIG_DETECT_SOFTLOCKUP=y |
832 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 845 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
833 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 846 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
847 | CONFIG_DETECT_HUNG_TASK=y | ||
848 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
849 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
834 | CONFIG_SCHED_DEBUG=y | 850 | CONFIG_SCHED_DEBUG=y |
835 | # CONFIG_SCHEDSTATS is not set | 851 | # CONFIG_SCHEDSTATS is not set |
836 | # CONFIG_TIMER_STATS is not set | 852 | # CONFIG_TIMER_STATS is not set |
@@ -869,6 +885,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
869 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 885 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
870 | CONFIG_RING_BUFFER=y | 886 | CONFIG_RING_BUFFER=y |
871 | CONFIG_TRACING=y | 887 | CONFIG_TRACING=y |
888 | CONFIG_TRACING_SUPPORT=y | ||
872 | 889 | ||
873 | # | 890 | # |
874 | # Tracers | 891 | # Tracers |
@@ -876,11 +893,16 @@ CONFIG_TRACING=y | |||
876 | # CONFIG_FUNCTION_TRACER is not set | 893 | # CONFIG_FUNCTION_TRACER is not set |
877 | # CONFIG_SCHED_TRACER is not set | 894 | # CONFIG_SCHED_TRACER is not set |
878 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 895 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
896 | # CONFIG_EVENT_TRACER is not set | ||
879 | # CONFIG_BOOT_TRACER is not set | 897 | # CONFIG_BOOT_TRACER is not set |
880 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 898 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
881 | # CONFIG_STACK_TRACER is not set | 899 | # CONFIG_STACK_TRACER is not set |
900 | # CONFIG_KMEMTRACE is not set | ||
901 | # CONFIG_WORKQUEUE_TRACER is not set | ||
902 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
882 | # CONFIG_FTRACE_STARTUP_TEST is not set | 903 | # CONFIG_FTRACE_STARTUP_TEST is not set |
883 | # CONFIG_DYNAMIC_DEBUG is not set | 904 | # CONFIG_DYNAMIC_DEBUG is not set |
905 | # CONFIG_DMA_API_DEBUG is not set | ||
884 | # CONFIG_SAMPLES is not set | 906 | # CONFIG_SAMPLES is not set |
885 | CONFIG_HAVE_ARCH_KGDB=y | 907 | CONFIG_HAVE_ARCH_KGDB=y |
886 | # CONFIG_KGDB is not set | 908 | # CONFIG_KGDB is not set |
@@ -991,6 +1013,7 @@ CONFIG_CRYPTO_LZO=y | |||
991 | # | 1013 | # |
992 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1014 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
993 | # CONFIG_CRYPTO_HW is not set | 1015 | # CONFIG_CRYPTO_HW is not set |
1016 | CONFIG_BINARY_PRINTF=y | ||
994 | 1017 | ||
995 | # | 1018 | # |
996 | # Library routines | 1019 | # Library routines |
diff --git a/arch/sh/configs/se7343_defconfig b/arch/sh/configs/se7343_defconfig index fbb72d029e68..004d531716dc 100644 --- a/arch/sh/configs/se7343_defconfig +++ b/arch/sh/configs/se7343_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:42:00 2009 | 4 | # Mon Apr 27 13:01:44 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -40,6 +41,7 @@ CONFIG_LOCALVERSION_AUTO=y | |||
40 | CONFIG_SYSVIPC=y | 41 | CONFIG_SYSVIPC=y |
41 | CONFIG_SYSVIPC_SYSCTL=y | 42 | CONFIG_SYSVIPC_SYSCTL=y |
42 | CONFIG_POSIX_MQUEUE=y | 43 | CONFIG_POSIX_MQUEUE=y |
44 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | # CONFIG_BSD_PROCESS_ACCT is not set | 45 | # CONFIG_BSD_PROCESS_ACCT is not set |
44 | # CONFIG_TASKSTATS is not set | 46 | # CONFIG_TASKSTATS is not set |
45 | # CONFIG_AUDIT is not set | 47 | # CONFIG_AUDIT is not set |
@@ -73,6 +75,7 @@ CONFIG_UID16=y | |||
73 | # CONFIG_SYSCTL_SYSCALL is not set | 75 | # CONFIG_SYSCTL_SYSCALL is not set |
74 | CONFIG_KALLSYMS=y | 76 | CONFIG_KALLSYMS=y |
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 77 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
78 | # CONFIG_STRIP_ASM_SYMS is not set | ||
76 | CONFIG_HOTPLUG=y | 79 | CONFIG_HOTPLUG=y |
77 | CONFIG_PRINTK=y | 80 | CONFIG_PRINTK=y |
78 | CONFIG_BUG=y | 81 | CONFIG_BUG=y |
@@ -91,6 +94,7 @@ CONFIG_SLAB=y | |||
91 | # CONFIG_SLUB is not set | 94 | # CONFIG_SLUB is not set |
92 | # CONFIG_SLOB is not set | 95 | # CONFIG_SLOB is not set |
93 | # CONFIG_PROFILING is not set | 96 | # CONFIG_PROFILING is not set |
97 | # CONFIG_MARKERS is not set | ||
94 | CONFIG_HAVE_OPROFILE=y | 98 | CONFIG_HAVE_OPROFILE=y |
95 | # CONFIG_KPROBES is not set | 99 | # CONFIG_KPROBES is not set |
96 | CONFIG_HAVE_IOREMAP_PROT=y | 100 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -98,6 +102,8 @@ CONFIG_HAVE_KPROBES=y | |||
98 | CONFIG_HAVE_KRETPROBES=y | 102 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 103 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 104 | CONFIG_HAVE_CLK=y |
105 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
106 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 107 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 108 | CONFIG_SLABINFO=y |
103 | CONFIG_BASE_SMALL=0 | 109 | CONFIG_BASE_SMALL=0 |
@@ -109,7 +115,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
109 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 115 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
110 | CONFIG_BLOCK=y | 116 | CONFIG_BLOCK=y |
111 | # CONFIG_LBD is not set | 117 | # CONFIG_LBD is not set |
112 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
113 | # CONFIG_BLK_DEV_BSG is not set | 118 | # CONFIG_BLK_DEV_BSG is not set |
114 | # CONFIG_BLK_DEV_INTEGRITY is not set | 119 | # CONFIG_BLK_DEV_INTEGRITY is not set |
115 | 120 | ||
@@ -158,6 +163,7 @@ CONFIG_ARCH_SHMOBILE=y | |||
158 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
161 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -167,8 +173,6 @@ CONFIG_ARCH_SHMOBILE=y | |||
167 | CONFIG_CPU_SUBTYPE_SH7343=y | 173 | CONFIG_CPU_SUBTYPE_SH7343=y |
168 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
171 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
172 | 176 | ||
173 | # | 177 | # |
174 | # Memory management options | 178 | # Memory management options |
@@ -769,6 +773,7 @@ CONFIG_VIDEO_HELPER_CHIPS_AUTO=y | |||
769 | # CONFIG_SOC_CAMERA is not set | 773 | # CONFIG_SOC_CAMERA is not set |
770 | CONFIG_V4L_USB_DRIVERS=y | 774 | CONFIG_V4L_USB_DRIVERS=y |
771 | # CONFIG_USB_VIDEO_CLASS is not set | 775 | # CONFIG_USB_VIDEO_CLASS is not set |
776 | CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y | ||
772 | CONFIG_USB_GSPCA=m | 777 | CONFIG_USB_GSPCA=m |
773 | # CONFIG_USB_M5602 is not set | 778 | # CONFIG_USB_M5602 is not set |
774 | # CONFIG_USB_STV06XX is not set | 779 | # CONFIG_USB_STV06XX is not set |
@@ -800,6 +805,7 @@ CONFIG_USB_GSPCA=m | |||
800 | # CONFIG_VIDEO_PVRUSB2 is not set | 805 | # CONFIG_VIDEO_PVRUSB2 is not set |
801 | # CONFIG_VIDEO_HDPVR is not set | 806 | # CONFIG_VIDEO_HDPVR is not set |
802 | # CONFIG_VIDEO_EM28XX is not set | 807 | # CONFIG_VIDEO_EM28XX is not set |
808 | # CONFIG_VIDEO_CX231XX is not set | ||
803 | # CONFIG_VIDEO_USBVISION is not set | 809 | # CONFIG_VIDEO_USBVISION is not set |
804 | # CONFIG_USB_VICAM is not set | 810 | # CONFIG_USB_VICAM is not set |
805 | # CONFIG_USB_IBMCAM is not set | 811 | # CONFIG_USB_IBMCAM is not set |
@@ -813,6 +819,7 @@ CONFIG_USB_GSPCA=m | |||
813 | # CONFIG_USB_STV680 is not set | 819 | # CONFIG_USB_STV680 is not set |
814 | # CONFIG_USB_ZC0301 is not set | 820 | # CONFIG_USB_ZC0301 is not set |
815 | # CONFIG_USB_PWC is not set | 821 | # CONFIG_USB_PWC is not set |
822 | CONFIG_USB_PWC_INPUT_EVDEV=y | ||
816 | # CONFIG_USB_ZR364XX is not set | 823 | # CONFIG_USB_ZR364XX is not set |
817 | # CONFIG_USB_STKWEBCAM is not set | 824 | # CONFIG_USB_STKWEBCAM is not set |
818 | # CONFIG_USB_S2255 is not set | 825 | # CONFIG_USB_S2255 is not set |
@@ -914,15 +921,17 @@ CONFIG_USB_HID=y | |||
914 | # | 921 | # |
915 | # Special HID drivers | 922 | # Special HID drivers |
916 | # | 923 | # |
917 | CONFIG_HID_COMPAT=y | ||
918 | CONFIG_HID_A4TECH=y | 924 | CONFIG_HID_A4TECH=y |
919 | CONFIG_HID_APPLE=y | 925 | CONFIG_HID_APPLE=y |
920 | CONFIG_HID_BELKIN=y | 926 | CONFIG_HID_BELKIN=y |
921 | CONFIG_HID_CHERRY=y | 927 | CONFIG_HID_CHERRY=y |
922 | CONFIG_HID_CHICONY=y | 928 | CONFIG_HID_CHICONY=y |
923 | CONFIG_HID_CYPRESS=y | 929 | CONFIG_HID_CYPRESS=y |
930 | # CONFIG_DRAGONRISE_FF is not set | ||
924 | CONFIG_HID_EZKEY=y | 931 | CONFIG_HID_EZKEY=y |
932 | # CONFIG_HID_KYE is not set | ||
925 | CONFIG_HID_GYRATION=y | 933 | CONFIG_HID_GYRATION=y |
934 | # CONFIG_HID_KENSINGTON is not set | ||
926 | CONFIG_HID_LOGITECH=y | 935 | CONFIG_HID_LOGITECH=y |
927 | # CONFIG_LOGITECH_FF is not set | 936 | # CONFIG_LOGITECH_FF is not set |
928 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 937 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1050,6 +1059,7 @@ CONFIG_EXT2_FS=y | |||
1050 | # CONFIG_EXT2_FS_XATTR is not set | 1059 | # CONFIG_EXT2_FS_XATTR is not set |
1051 | # CONFIG_EXT2_FS_XIP is not set | 1060 | # CONFIG_EXT2_FS_XIP is not set |
1052 | CONFIG_EXT3_FS=y | 1061 | CONFIG_EXT3_FS=y |
1062 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1053 | CONFIG_EXT3_FS_XATTR=y | 1063 | CONFIG_EXT3_FS_XATTR=y |
1054 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1064 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1055 | # CONFIG_EXT3_FS_SECURITY is not set | 1065 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1071,6 +1081,11 @@ CONFIG_FILE_LOCKING=y | |||
1071 | # CONFIG_FUSE_FS is not set | 1081 | # CONFIG_FUSE_FS is not set |
1072 | 1082 | ||
1073 | # | 1083 | # |
1084 | # Caches | ||
1085 | # | ||
1086 | # CONFIG_FSCACHE is not set | ||
1087 | |||
1088 | # | ||
1074 | # CD-ROM/DVD Filesystems | 1089 | # CD-ROM/DVD Filesystems |
1075 | # | 1090 | # |
1076 | # CONFIG_ISO9660_FS is not set | 1091 | # CONFIG_ISO9660_FS is not set |
@@ -1125,6 +1140,7 @@ CONFIG_CRAMFS=y | |||
1125 | # CONFIG_ROMFS_FS is not set | 1140 | # CONFIG_ROMFS_FS is not set |
1126 | # CONFIG_SYSV_FS is not set | 1141 | # CONFIG_SYSV_FS is not set |
1127 | # CONFIG_UFS_FS is not set | 1142 | # CONFIG_UFS_FS is not set |
1143 | # CONFIG_NILFS2_FS is not set | ||
1128 | CONFIG_NETWORK_FILESYSTEMS=y | 1144 | CONFIG_NETWORK_FILESYSTEMS=y |
1129 | CONFIG_NFS_FS=y | 1145 | CONFIG_NFS_FS=y |
1130 | CONFIG_NFS_V3=y | 1146 | CONFIG_NFS_V3=y |
@@ -1174,10 +1190,23 @@ CONFIG_FRAME_WARN=1024 | |||
1174 | CONFIG_HAVE_FUNCTION_TRACER=y | 1190 | CONFIG_HAVE_FUNCTION_TRACER=y |
1175 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1191 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1176 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1192 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1193 | CONFIG_TRACING_SUPPORT=y | ||
1177 | 1194 | ||
1178 | # | 1195 | # |
1179 | # Tracers | 1196 | # Tracers |
1180 | # | 1197 | # |
1198 | # CONFIG_FUNCTION_TRACER is not set | ||
1199 | # CONFIG_IRQSOFF_TRACER is not set | ||
1200 | # CONFIG_SCHED_TRACER is not set | ||
1201 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1202 | # CONFIG_EVENT_TRACER is not set | ||
1203 | # CONFIG_BOOT_TRACER is not set | ||
1204 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1205 | # CONFIG_STACK_TRACER is not set | ||
1206 | # CONFIG_KMEMTRACE is not set | ||
1207 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1208 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1209 | # CONFIG_DMA_API_DEBUG is not set | ||
1181 | # CONFIG_SAMPLES is not set | 1210 | # CONFIG_SAMPLES is not set |
1182 | CONFIG_HAVE_ARCH_KGDB=y | 1211 | CONFIG_HAVE_ARCH_KGDB=y |
1183 | # CONFIG_SH_STANDARD_BIOS is not set | 1212 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1279,6 +1308,7 @@ CONFIG_CRYPTO=y | |||
1279 | # | 1308 | # |
1280 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1309 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1281 | CONFIG_CRYPTO_HW=y | 1310 | CONFIG_CRYPTO_HW=y |
1311 | # CONFIG_BINARY_PRINTF is not set | ||
1282 | 1312 | ||
1283 | # | 1313 | # |
1284 | # Library routines | 1314 | # Library routines |
diff --git a/arch/sh/configs/se7619_defconfig b/arch/sh/configs/se7619_defconfig index 125304e80f57..edbece52afc1 100644 --- a/arch/sh/configs/se7619_defconfig +++ b/arch/sh/configs/se7619_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:44:53 2009 | 4 | # Mon Apr 27 13:02:32 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -61,6 +62,7 @@ CONFIG_EMBEDDED=y | |||
61 | # CONFIG_UID16 is not set | 62 | # CONFIG_UID16 is not set |
62 | # CONFIG_SYSCTL_SYSCALL is not set | 63 | # CONFIG_SYSCTL_SYSCALL is not set |
63 | # CONFIG_KALLSYMS is not set | 64 | # CONFIG_KALLSYMS is not set |
65 | # CONFIG_STRIP_ASM_SYMS is not set | ||
64 | # CONFIG_HOTPLUG is not set | 66 | # CONFIG_HOTPLUG is not set |
65 | CONFIG_PRINTK=y | 67 | CONFIG_PRINTK=y |
66 | CONFIG_BUG=y | 68 | CONFIG_BUG=y |
@@ -78,11 +80,14 @@ CONFIG_SLAB=y | |||
78 | # CONFIG_SLUB is not set | 80 | # CONFIG_SLUB is not set |
79 | # CONFIG_SLOB is not set | 81 | # CONFIG_SLOB is not set |
80 | # CONFIG_PROFILING is not set | 82 | # CONFIG_PROFILING is not set |
83 | # CONFIG_MARKERS is not set | ||
81 | CONFIG_HAVE_OPROFILE=y | 84 | CONFIG_HAVE_OPROFILE=y |
82 | CONFIG_HAVE_KPROBES=y | 85 | CONFIG_HAVE_KPROBES=y |
83 | CONFIG_HAVE_KRETPROBES=y | 86 | CONFIG_HAVE_KRETPROBES=y |
84 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 87 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
85 | CONFIG_HAVE_CLK=y | 88 | CONFIG_HAVE_CLK=y |
89 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
90 | # CONFIG_SLOW_WORK is not set | ||
86 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 91 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
87 | CONFIG_SLABINFO=y | 92 | CONFIG_SLABINFO=y |
88 | CONFIG_BASE_SMALL=1 | 93 | CONFIG_BASE_SMALL=1 |
@@ -134,6 +139,7 @@ CONFIG_CPU_SUBTYPE_SH7619=y | |||
134 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 139 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
135 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 140 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
136 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 141 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
142 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
137 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 143 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
138 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 144 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
139 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 145 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -143,8 +149,6 @@ CONFIG_CPU_SUBTYPE_SH7619=y | |||
143 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 149 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
144 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 150 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
145 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 151 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
146 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
147 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
148 | 152 | ||
149 | # | 153 | # |
150 | # Memory management options | 154 | # Memory management options |
@@ -513,7 +517,6 @@ CONFIG_HID=y | |||
513 | # | 517 | # |
514 | # Special HID drivers | 518 | # Special HID drivers |
515 | # | 519 | # |
516 | CONFIG_HID_COMPAT=y | ||
517 | CONFIG_USB_SUPPORT=y | 520 | CONFIG_USB_SUPPORT=y |
518 | CONFIG_USB_ARCH_HAS_HCD=y | 521 | CONFIG_USB_ARCH_HAS_HCD=y |
519 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 522 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
@@ -564,6 +567,11 @@ CONFIG_FILE_LOCKING=y | |||
564 | # CONFIG_FUSE_FS is not set | 567 | # CONFIG_FUSE_FS is not set |
565 | 568 | ||
566 | # | 569 | # |
570 | # Caches | ||
571 | # | ||
572 | # CONFIG_FSCACHE is not set | ||
573 | |||
574 | # | ||
567 | # CD-ROM/DVD Filesystems | 575 | # CD-ROM/DVD Filesystems |
568 | # | 576 | # |
569 | # CONFIG_ISO9660_FS is not set | 577 | # CONFIG_ISO9660_FS is not set |
@@ -601,8 +609,13 @@ CONFIG_MISC_FILESYSTEMS=y | |||
601 | # CONFIG_HPFS_FS is not set | 609 | # CONFIG_HPFS_FS is not set |
602 | # CONFIG_QNX4FS_FS is not set | 610 | # CONFIG_QNX4FS_FS is not set |
603 | CONFIG_ROMFS_FS=y | 611 | CONFIG_ROMFS_FS=y |
612 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
613 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
614 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
615 | CONFIG_ROMFS_ON_BLOCK=y | ||
604 | # CONFIG_SYSV_FS is not set | 616 | # CONFIG_SYSV_FS is not set |
605 | # CONFIG_UFS_FS is not set | 617 | # CONFIG_UFS_FS is not set |
618 | # CONFIG_NILFS2_FS is not set | ||
606 | 619 | ||
607 | # | 620 | # |
608 | # Partition Types | 621 | # Partition Types |
@@ -630,10 +643,21 @@ CONFIG_FRAME_WARN=1024 | |||
630 | CONFIG_HAVE_FUNCTION_TRACER=y | 643 | CONFIG_HAVE_FUNCTION_TRACER=y |
631 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 644 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
632 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 645 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
646 | CONFIG_TRACING_SUPPORT=y | ||
633 | 647 | ||
634 | # | 648 | # |
635 | # Tracers | 649 | # Tracers |
636 | # | 650 | # |
651 | # CONFIG_FUNCTION_TRACER is not set | ||
652 | # CONFIG_SCHED_TRACER is not set | ||
653 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
654 | # CONFIG_EVENT_TRACER is not set | ||
655 | # CONFIG_BOOT_TRACER is not set | ||
656 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
657 | # CONFIG_STACK_TRACER is not set | ||
658 | # CONFIG_KMEMTRACE is not set | ||
659 | # CONFIG_WORKQUEUE_TRACER is not set | ||
660 | # CONFIG_DMA_API_DEBUG is not set | ||
637 | # CONFIG_SAMPLES is not set | 661 | # CONFIG_SAMPLES is not set |
638 | CONFIG_HAVE_ARCH_KGDB=y | 662 | CONFIG_HAVE_ARCH_KGDB=y |
639 | # CONFIG_SH_STANDARD_BIOS is not set | 663 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -647,6 +671,7 @@ CONFIG_HAVE_ARCH_KGDB=y | |||
647 | # CONFIG_SECURITYFS is not set | 671 | # CONFIG_SECURITYFS is not set |
648 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 672 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
649 | # CONFIG_CRYPTO is not set | 673 | # CONFIG_CRYPTO is not set |
674 | # CONFIG_BINARY_PRINTF is not set | ||
650 | 675 | ||
651 | # | 676 | # |
652 | # Library routines | 677 | # Library routines |
diff --git a/arch/sh/configs/se7705_defconfig b/arch/sh/configs/se7705_defconfig index 0308abf52384..bae161c66835 100644 --- a/arch/sh/configs/se7705_defconfig +++ b/arch/sh/configs/se7705_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:45:56 2009 | 4 | # Mon Apr 27 13:02:52 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -62,7 +63,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
62 | CONFIG_RD_GZIP=y | 63 | CONFIG_RD_GZIP=y |
63 | # CONFIG_RD_BZIP2 is not set | 64 | # CONFIG_RD_BZIP2 is not set |
64 | # CONFIG_RD_LZMA is not set | 65 | # CONFIG_RD_LZMA is not set |
65 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
66 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 66 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
67 | CONFIG_SYSCTL=y | 67 | CONFIG_SYSCTL=y |
68 | CONFIG_ANON_INODES=y | 68 | CONFIG_ANON_INODES=y |
@@ -70,6 +70,7 @@ CONFIG_EMBEDDED=y | |||
70 | CONFIG_UID16=y | 70 | CONFIG_UID16=y |
71 | # CONFIG_SYSCTL_SYSCALL is not set | 71 | # CONFIG_SYSCTL_SYSCALL is not set |
72 | # CONFIG_KALLSYMS is not set | 72 | # CONFIG_KALLSYMS is not set |
73 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | # CONFIG_HOTPLUG is not set | 74 | # CONFIG_HOTPLUG is not set |
74 | CONFIG_PRINTK=y | 75 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 76 | CONFIG_BUG=y |
@@ -88,12 +89,15 @@ CONFIG_SLAB=y | |||
88 | # CONFIG_SLUB is not set | 89 | # CONFIG_SLUB is not set |
89 | # CONFIG_SLOB is not set | 90 | # CONFIG_SLOB is not set |
90 | # CONFIG_PROFILING is not set | 91 | # CONFIG_PROFILING is not set |
92 | # CONFIG_MARKERS is not set | ||
91 | CONFIG_HAVE_OPROFILE=y | 93 | CONFIG_HAVE_OPROFILE=y |
92 | CONFIG_HAVE_IOREMAP_PROT=y | 94 | CONFIG_HAVE_IOREMAP_PROT=y |
93 | CONFIG_HAVE_KPROBES=y | 95 | CONFIG_HAVE_KPROBES=y |
94 | CONFIG_HAVE_KRETPROBES=y | 96 | CONFIG_HAVE_KRETPROBES=y |
95 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 97 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
96 | CONFIG_HAVE_CLK=y | 98 | CONFIG_HAVE_CLK=y |
99 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
100 | # CONFIG_SLOW_WORK is not set | ||
97 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
98 | CONFIG_SLABINFO=y | 102 | CONFIG_SLABINFO=y |
99 | CONFIG_RT_MUTEXES=y | 103 | CONFIG_RT_MUTEXES=y |
@@ -150,6 +154,7 @@ CONFIG_CPU_SUBTYPE_SH7705=y | |||
150 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
151 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 155 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
152 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
153 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -159,8 +164,6 @@ CONFIG_CPU_SUBTYPE_SH7705=y | |||
159 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
163 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
164 | 167 | ||
165 | # | 168 | # |
166 | # Memory management options | 169 | # Memory management options |
@@ -698,7 +701,6 @@ CONFIG_HID=y | |||
698 | # | 701 | # |
699 | # Special HID drivers | 702 | # Special HID drivers |
700 | # | 703 | # |
701 | CONFIG_HID_COMPAT=y | ||
702 | CONFIG_USB_SUPPORT=y | 704 | CONFIG_USB_SUPPORT=y |
703 | CONFIG_USB_ARCH_HAS_HCD=y | 705 | CONFIG_USB_ARCH_HAS_HCD=y |
704 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 706 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
@@ -752,6 +754,11 @@ CONFIG_INOTIFY_USER=y | |||
752 | # CONFIG_FUSE_FS is not set | 754 | # CONFIG_FUSE_FS is not set |
753 | 755 | ||
754 | # | 756 | # |
757 | # Caches | ||
758 | # | ||
759 | # CONFIG_FSCACHE is not set | ||
760 | |||
761 | # | ||
755 | # CD-ROM/DVD Filesystems | 762 | # CD-ROM/DVD Filesystems |
756 | # | 763 | # |
757 | # CONFIG_ISO9660_FS is not set | 764 | # CONFIG_ISO9660_FS is not set |
@@ -804,6 +811,7 @@ CONFIG_JFFS2_RTIME=y | |||
804 | # CONFIG_ROMFS_FS is not set | 811 | # CONFIG_ROMFS_FS is not set |
805 | # CONFIG_SYSV_FS is not set | 812 | # CONFIG_SYSV_FS is not set |
806 | # CONFIG_UFS_FS is not set | 813 | # CONFIG_UFS_FS is not set |
814 | # CONFIG_NILFS2_FS is not set | ||
807 | CONFIG_NETWORK_FILESYSTEMS=y | 815 | CONFIG_NETWORK_FILESYSTEMS=y |
808 | CONFIG_NFS_FS=y | 816 | CONFIG_NFS_FS=y |
809 | # CONFIG_NFS_V3 is not set | 817 | # CONFIG_NFS_V3 is not set |
@@ -847,10 +855,23 @@ CONFIG_FRAME_WARN=1024 | |||
847 | CONFIG_HAVE_FUNCTION_TRACER=y | 855 | CONFIG_HAVE_FUNCTION_TRACER=y |
848 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 856 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
849 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 857 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
858 | CONFIG_TRACING_SUPPORT=y | ||
850 | 859 | ||
851 | # | 860 | # |
852 | # Tracers | 861 | # Tracers |
853 | # | 862 | # |
863 | # CONFIG_FUNCTION_TRACER is not set | ||
864 | # CONFIG_IRQSOFF_TRACER is not set | ||
865 | # CONFIG_PREEMPT_TRACER is not set | ||
866 | # CONFIG_SCHED_TRACER is not set | ||
867 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
868 | # CONFIG_EVENT_TRACER is not set | ||
869 | # CONFIG_BOOT_TRACER is not set | ||
870 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
871 | # CONFIG_STACK_TRACER is not set | ||
872 | # CONFIG_KMEMTRACE is not set | ||
873 | # CONFIG_WORKQUEUE_TRACER is not set | ||
874 | # CONFIG_DMA_API_DEBUG is not set | ||
854 | # CONFIG_SAMPLES is not set | 875 | # CONFIG_SAMPLES is not set |
855 | CONFIG_HAVE_ARCH_KGDB=y | 876 | CONFIG_HAVE_ARCH_KGDB=y |
856 | # CONFIG_SH_STANDARD_BIOS is not set | 877 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -949,6 +970,7 @@ CONFIG_CRYPTO=y | |||
949 | # | 970 | # |
950 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 971 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
951 | CONFIG_CRYPTO_HW=y | 972 | CONFIG_CRYPTO_HW=y |
973 | # CONFIG_BINARY_PRINTF is not set | ||
952 | 974 | ||
953 | # | 975 | # |
954 | # Library routines | 976 | # Library routines |
diff --git a/arch/sh/configs/se7712_defconfig b/arch/sh/configs/se7712_defconfig index a8c24b703489..330043f3c316 100644 --- a/arch/sh/configs/se7712_defconfig +++ b/arch/sh/configs/se7712_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:48:18 2009 | 4 | # Mon Apr 27 13:03:27 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_FIND_NEXT_BIT=y | 11 | CONFIG_GENERIC_FIND_NEXT_BIT=y |
@@ -38,6 +39,7 @@ CONFIG_LOCALVERSION="" | |||
38 | CONFIG_SYSVIPC=y | 39 | CONFIG_SYSVIPC=y |
39 | CONFIG_SYSVIPC_SYSCTL=y | 40 | CONFIG_SYSVIPC_SYSCTL=y |
40 | CONFIG_POSIX_MQUEUE=y | 41 | CONFIG_POSIX_MQUEUE=y |
42 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
41 | CONFIG_BSD_PROCESS_ACCT=y | 43 | CONFIG_BSD_PROCESS_ACCT=y |
42 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 44 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
43 | # CONFIG_TASKSTATS is not set | 45 | # CONFIG_TASKSTATS is not set |
@@ -69,6 +71,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
69 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
70 | CONFIG_KALLSYMS_ALL=y | 72 | CONFIG_KALLSYMS_ALL=y |
71 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
74 | # CONFIG_STRIP_ASM_SYMS is not set | ||
72 | CONFIG_HOTPLUG=y | 75 | CONFIG_HOTPLUG=y |
73 | CONFIG_PRINTK=y | 76 | CONFIG_PRINTK=y |
74 | # CONFIG_BUG is not set | 77 | # CONFIG_BUG is not set |
@@ -87,6 +90,7 @@ CONFIG_SLAB=y | |||
87 | # CONFIG_SLUB is not set | 90 | # CONFIG_SLUB is not set |
88 | # CONFIG_SLOB is not set | 91 | # CONFIG_SLOB is not set |
89 | # CONFIG_PROFILING is not set | 92 | # CONFIG_PROFILING is not set |
93 | # CONFIG_MARKERS is not set | ||
90 | CONFIG_HAVE_OPROFILE=y | 94 | CONFIG_HAVE_OPROFILE=y |
91 | # CONFIG_KPROBES is not set | 95 | # CONFIG_KPROBES is not set |
92 | CONFIG_HAVE_IOREMAP_PROT=y | 96 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -94,6 +98,8 @@ CONFIG_HAVE_KPROBES=y | |||
94 | CONFIG_HAVE_KRETPROBES=y | 98 | CONFIG_HAVE_KRETPROBES=y |
95 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 99 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
96 | CONFIG_HAVE_CLK=y | 100 | CONFIG_HAVE_CLK=y |
101 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
102 | # CONFIG_SLOW_WORK is not set | ||
97 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
98 | CONFIG_SLABINFO=y | 104 | CONFIG_SLABINFO=y |
99 | CONFIG_RT_MUTEXES=y | 105 | CONFIG_RT_MUTEXES=y |
@@ -105,7 +111,6 @@ CONFIG_MODULES=y | |||
105 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 111 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
106 | CONFIG_BLOCK=y | 112 | CONFIG_BLOCK=y |
107 | # CONFIG_LBD is not set | 113 | # CONFIG_LBD is not set |
108 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
109 | # CONFIG_BLK_DEV_BSG is not set | 114 | # CONFIG_BLK_DEV_BSG is not set |
110 | # CONFIG_BLK_DEV_INTEGRITY is not set | 115 | # CONFIG_BLK_DEV_INTEGRITY is not set |
111 | 116 | ||
@@ -151,6 +156,7 @@ CONFIG_CPU_SUBTYPE_SH7712=y | |||
151 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
152 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
153 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -160,8 +166,6 @@ CONFIG_CPU_SUBTYPE_SH7712=y | |||
160 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
165 | 169 | ||
166 | # | 170 | # |
167 | # Memory management options | 171 | # Memory management options |
@@ -585,6 +589,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
585 | CONFIG_SCSI_LOWLEVEL=y | 589 | CONFIG_SCSI_LOWLEVEL=y |
586 | # CONFIG_ISCSI_TCP is not set | 590 | # CONFIG_ISCSI_TCP is not set |
587 | # CONFIG_LIBFC is not set | 591 | # CONFIG_LIBFC is not set |
592 | # CONFIG_LIBFCOE is not set | ||
588 | # CONFIG_SCSI_DEBUG is not set | 593 | # CONFIG_SCSI_DEBUG is not set |
589 | # CONFIG_SCSI_DH is not set | 594 | # CONFIG_SCSI_DH is not set |
590 | # CONFIG_SCSI_OSD_INITIATOR is not set | 595 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -812,6 +817,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y | |||
812 | CONFIG_EXT2_FS_SECURITY=y | 817 | CONFIG_EXT2_FS_SECURITY=y |
813 | # CONFIG_EXT2_FS_XIP is not set | 818 | # CONFIG_EXT2_FS_XIP is not set |
814 | CONFIG_EXT3_FS=y | 819 | CONFIG_EXT3_FS=y |
820 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
815 | CONFIG_EXT3_FS_XATTR=y | 821 | CONFIG_EXT3_FS_XATTR=y |
816 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 822 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
817 | # CONFIG_EXT3_FS_SECURITY is not set | 823 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -833,6 +839,11 @@ CONFIG_FILE_LOCKING=y | |||
833 | # CONFIG_FUSE_FS is not set | 839 | # CONFIG_FUSE_FS is not set |
834 | 840 | ||
835 | # | 841 | # |
842 | # Caches | ||
843 | # | ||
844 | # CONFIG_FSCACHE is not set | ||
845 | |||
846 | # | ||
836 | # CD-ROM/DVD Filesystems | 847 | # CD-ROM/DVD Filesystems |
837 | # | 848 | # |
838 | # CONFIG_ISO9660_FS is not set | 849 | # CONFIG_ISO9660_FS is not set |
@@ -887,6 +898,7 @@ CONFIG_CRAMFS=y | |||
887 | # CONFIG_ROMFS_FS is not set | 898 | # CONFIG_ROMFS_FS is not set |
888 | # CONFIG_SYSV_FS is not set | 899 | # CONFIG_SYSV_FS is not set |
889 | # CONFIG_UFS_FS is not set | 900 | # CONFIG_UFS_FS is not set |
901 | # CONFIG_NILFS2_FS is not set | ||
890 | CONFIG_NETWORK_FILESYSTEMS=y | 902 | CONFIG_NETWORK_FILESYSTEMS=y |
891 | CONFIG_NFS_FS=y | 903 | CONFIG_NFS_FS=y |
892 | # CONFIG_NFS_V3 is not set | 904 | # CONFIG_NFS_V3 is not set |
@@ -927,6 +939,7 @@ CONFIG_FRAME_WARN=1024 | |||
927 | CONFIG_DEBUG_KERNEL=y | 939 | CONFIG_DEBUG_KERNEL=y |
928 | # CONFIG_DEBUG_SHIRQ is not set | 940 | # CONFIG_DEBUG_SHIRQ is not set |
929 | # CONFIG_DETECT_SOFTLOCKUP is not set | 941 | # CONFIG_DETECT_SOFTLOCKUP is not set |
942 | # CONFIG_DETECT_HUNG_TASK is not set | ||
930 | CONFIG_SCHED_DEBUG=y | 943 | CONFIG_SCHED_DEBUG=y |
931 | # CONFIG_SCHEDSTATS is not set | 944 | # CONFIG_SCHEDSTATS is not set |
932 | # CONFIG_TIMER_STATS is not set | 945 | # CONFIG_TIMER_STATS is not set |
@@ -961,6 +974,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
961 | CONFIG_HAVE_FUNCTION_TRACER=y | 974 | CONFIG_HAVE_FUNCTION_TRACER=y |
962 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 975 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
963 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 976 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
977 | CONFIG_TRACING_SUPPORT=y | ||
964 | 978 | ||
965 | # | 979 | # |
966 | # Tracers | 980 | # Tracers |
@@ -969,9 +983,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
969 | # CONFIG_IRQSOFF_TRACER is not set | 983 | # CONFIG_IRQSOFF_TRACER is not set |
970 | # CONFIG_SCHED_TRACER is not set | 984 | # CONFIG_SCHED_TRACER is not set |
971 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 985 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
986 | # CONFIG_EVENT_TRACER is not set | ||
972 | # CONFIG_BOOT_TRACER is not set | 987 | # CONFIG_BOOT_TRACER is not set |
973 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 988 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
974 | # CONFIG_STACK_TRACER is not set | 989 | # CONFIG_STACK_TRACER is not set |
990 | # CONFIG_KMEMTRACE is not set | ||
991 | # CONFIG_WORKQUEUE_TRACER is not set | ||
992 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
993 | # CONFIG_DMA_API_DEBUG is not set | ||
975 | # CONFIG_SAMPLES is not set | 994 | # CONFIG_SAMPLES is not set |
976 | CONFIG_HAVE_ARCH_KGDB=y | 995 | CONFIG_HAVE_ARCH_KGDB=y |
977 | # CONFIG_KGDB is not set | 996 | # CONFIG_KGDB is not set |
@@ -1090,6 +1109,7 @@ CONFIG_CRYPTO_DEFLATE=y | |||
1090 | # | 1109 | # |
1091 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1110 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1092 | CONFIG_CRYPTO_HW=y | 1111 | CONFIG_CRYPTO_HW=y |
1112 | # CONFIG_BINARY_PRINTF is not set | ||
1093 | 1113 | ||
1094 | # | 1114 | # |
1095 | # Library routines | 1115 | # Library routines |
diff --git a/arch/sh/configs/se7721_defconfig b/arch/sh/configs/se7721_defconfig index 4b79c2567dc8..56478918440d 100644 --- a/arch/sh/configs/se7721_defconfig +++ b/arch/sh/configs/se7721_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:51:44 2009 | 4 | # Mon Apr 27 13:04:19 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_FIND_NEXT_BIT=y | 11 | CONFIG_GENERIC_FIND_NEXT_BIT=y |
@@ -38,6 +39,7 @@ CONFIG_LOCALVERSION="" | |||
38 | CONFIG_SYSVIPC=y | 39 | CONFIG_SYSVIPC=y |
39 | CONFIG_SYSVIPC_SYSCTL=y | 40 | CONFIG_SYSVIPC_SYSCTL=y |
40 | CONFIG_POSIX_MQUEUE=y | 41 | CONFIG_POSIX_MQUEUE=y |
42 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
41 | CONFIG_BSD_PROCESS_ACCT=y | 43 | CONFIG_BSD_PROCESS_ACCT=y |
42 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 44 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
43 | # CONFIG_TASKSTATS is not set | 45 | # CONFIG_TASKSTATS is not set |
@@ -73,6 +75,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
73 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
74 | CONFIG_KALLSYMS_ALL=y | 76 | CONFIG_KALLSYMS_ALL=y |
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 77 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
78 | # CONFIG_STRIP_ASM_SYMS is not set | ||
76 | CONFIG_HOTPLUG=y | 79 | CONFIG_HOTPLUG=y |
77 | CONFIG_PRINTK=y | 80 | CONFIG_PRINTK=y |
78 | # CONFIG_BUG is not set | 81 | # CONFIG_BUG is not set |
@@ -91,6 +94,7 @@ CONFIG_SLAB=y | |||
91 | # CONFIG_SLUB is not set | 94 | # CONFIG_SLUB is not set |
92 | # CONFIG_SLOB is not set | 95 | # CONFIG_SLOB is not set |
93 | # CONFIG_PROFILING is not set | 96 | # CONFIG_PROFILING is not set |
97 | # CONFIG_MARKERS is not set | ||
94 | CONFIG_HAVE_OPROFILE=y | 98 | CONFIG_HAVE_OPROFILE=y |
95 | # CONFIG_KPROBES is not set | 99 | # CONFIG_KPROBES is not set |
96 | CONFIG_HAVE_IOREMAP_PROT=y | 100 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -98,6 +102,8 @@ CONFIG_HAVE_KPROBES=y | |||
98 | CONFIG_HAVE_KRETPROBES=y | 102 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 103 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 104 | CONFIG_HAVE_CLK=y |
105 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
106 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 107 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 108 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 109 | CONFIG_RT_MUTEXES=y |
@@ -109,7 +115,6 @@ CONFIG_MODULES=y | |||
109 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 115 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
110 | CONFIG_BLOCK=y | 116 | CONFIG_BLOCK=y |
111 | # CONFIG_LBD is not set | 117 | # CONFIG_LBD is not set |
112 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
113 | # CONFIG_BLK_DEV_BSG is not set | 118 | # CONFIG_BLK_DEV_BSG is not set |
114 | # CONFIG_BLK_DEV_INTEGRITY is not set | 119 | # CONFIG_BLK_DEV_INTEGRITY is not set |
115 | 120 | ||
@@ -155,6 +160,7 @@ CONFIG_CPU_SUBTYPE_SH7721=y | |||
155 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
158 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -164,8 +170,6 @@ CONFIG_CPU_SUBTYPE_SH7721=y | |||
164 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
168 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
169 | 173 | ||
170 | # | 174 | # |
171 | # Memory management options | 175 | # Memory management options |
@@ -776,15 +780,17 @@ CONFIG_USB_HID=y | |||
776 | # | 780 | # |
777 | # Special HID drivers | 781 | # Special HID drivers |
778 | # | 782 | # |
779 | CONFIG_HID_COMPAT=y | ||
780 | CONFIG_HID_A4TECH=y | 783 | CONFIG_HID_A4TECH=y |
781 | CONFIG_HID_APPLE=y | 784 | CONFIG_HID_APPLE=y |
782 | CONFIG_HID_BELKIN=y | 785 | CONFIG_HID_BELKIN=y |
783 | CONFIG_HID_CHERRY=y | 786 | CONFIG_HID_CHERRY=y |
784 | CONFIG_HID_CHICONY=y | 787 | CONFIG_HID_CHICONY=y |
785 | CONFIG_HID_CYPRESS=y | 788 | CONFIG_HID_CYPRESS=y |
789 | # CONFIG_DRAGONRISE_FF is not set | ||
786 | CONFIG_HID_EZKEY=y | 790 | CONFIG_HID_EZKEY=y |
791 | # CONFIG_HID_KYE is not set | ||
787 | CONFIG_HID_GYRATION=y | 792 | CONFIG_HID_GYRATION=y |
793 | # CONFIG_HID_KENSINGTON is not set | ||
788 | CONFIG_HID_LOGITECH=y | 794 | CONFIG_HID_LOGITECH=y |
789 | # CONFIG_LOGITECH_FF is not set | 795 | # CONFIG_LOGITECH_FF is not set |
790 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 796 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -943,6 +949,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y | |||
943 | CONFIG_EXT2_FS_SECURITY=y | 949 | CONFIG_EXT2_FS_SECURITY=y |
944 | # CONFIG_EXT2_FS_XIP is not set | 950 | # CONFIG_EXT2_FS_XIP is not set |
945 | CONFIG_EXT3_FS=y | 951 | CONFIG_EXT3_FS=y |
952 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
946 | CONFIG_EXT3_FS_XATTR=y | 953 | CONFIG_EXT3_FS_XATTR=y |
947 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 954 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
948 | # CONFIG_EXT3_FS_SECURITY is not set | 955 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -964,6 +971,11 @@ CONFIG_FILE_LOCKING=y | |||
964 | # CONFIG_FUSE_FS is not set | 971 | # CONFIG_FUSE_FS is not set |
965 | 972 | ||
966 | # | 973 | # |
974 | # Caches | ||
975 | # | ||
976 | # CONFIG_FSCACHE is not set | ||
977 | |||
978 | # | ||
967 | # CD-ROM/DVD Filesystems | 979 | # CD-ROM/DVD Filesystems |
968 | # | 980 | # |
969 | # CONFIG_ISO9660_FS is not set | 981 | # CONFIG_ISO9660_FS is not set |
@@ -1021,6 +1033,7 @@ CONFIG_CRAMFS=y | |||
1021 | # CONFIG_ROMFS_FS is not set | 1033 | # CONFIG_ROMFS_FS is not set |
1022 | # CONFIG_SYSV_FS is not set | 1034 | # CONFIG_SYSV_FS is not set |
1023 | # CONFIG_UFS_FS is not set | 1035 | # CONFIG_UFS_FS is not set |
1036 | # CONFIG_NILFS2_FS is not set | ||
1024 | # CONFIG_NETWORK_FILESYSTEMS is not set | 1037 | # CONFIG_NETWORK_FILESYSTEMS is not set |
1025 | 1038 | ||
1026 | # | 1039 | # |
@@ -1085,6 +1098,7 @@ CONFIG_FRAME_WARN=1024 | |||
1085 | CONFIG_DEBUG_KERNEL=y | 1098 | CONFIG_DEBUG_KERNEL=y |
1086 | # CONFIG_DEBUG_SHIRQ is not set | 1099 | # CONFIG_DEBUG_SHIRQ is not set |
1087 | # CONFIG_DETECT_SOFTLOCKUP is not set | 1100 | # CONFIG_DETECT_SOFTLOCKUP is not set |
1101 | # CONFIG_DETECT_HUNG_TASK is not set | ||
1088 | CONFIG_SCHED_DEBUG=y | 1102 | CONFIG_SCHED_DEBUG=y |
1089 | # CONFIG_SCHEDSTATS is not set | 1103 | # CONFIG_SCHEDSTATS is not set |
1090 | # CONFIG_TIMER_STATS is not set | 1104 | # CONFIG_TIMER_STATS is not set |
@@ -1119,6 +1133,7 @@ CONFIG_FRAME_POINTER=y | |||
1119 | CONFIG_HAVE_FUNCTION_TRACER=y | 1133 | CONFIG_HAVE_FUNCTION_TRACER=y |
1120 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1134 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1121 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1135 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1136 | CONFIG_TRACING_SUPPORT=y | ||
1122 | 1137 | ||
1123 | # | 1138 | # |
1124 | # Tracers | 1139 | # Tracers |
@@ -1127,9 +1142,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1127 | # CONFIG_IRQSOFF_TRACER is not set | 1142 | # CONFIG_IRQSOFF_TRACER is not set |
1128 | # CONFIG_SCHED_TRACER is not set | 1143 | # CONFIG_SCHED_TRACER is not set |
1129 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1144 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1145 | # CONFIG_EVENT_TRACER is not set | ||
1130 | # CONFIG_BOOT_TRACER is not set | 1146 | # CONFIG_BOOT_TRACER is not set |
1131 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1147 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1132 | # CONFIG_STACK_TRACER is not set | 1148 | # CONFIG_STACK_TRACER is not set |
1149 | # CONFIG_KMEMTRACE is not set | ||
1150 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1151 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1152 | # CONFIG_DMA_API_DEBUG is not set | ||
1133 | # CONFIG_SAMPLES is not set | 1153 | # CONFIG_SAMPLES is not set |
1134 | CONFIG_HAVE_ARCH_KGDB=y | 1154 | CONFIG_HAVE_ARCH_KGDB=y |
1135 | # CONFIG_KGDB is not set | 1155 | # CONFIG_KGDB is not set |
@@ -1248,6 +1268,7 @@ CONFIG_CRYPTO_DEFLATE=y | |||
1248 | # | 1268 | # |
1249 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1269 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1250 | CONFIG_CRYPTO_HW=y | 1270 | CONFIG_CRYPTO_HW=y |
1271 | # CONFIG_BINARY_PRINTF is not set | ||
1251 | 1272 | ||
1252 | # | 1273 | # |
1253 | # Library routines | 1274 | # Library routines |
diff --git a/arch/sh/configs/se7722_defconfig b/arch/sh/configs/se7722_defconfig index 82bdaac45fb5..726fdbdb2807 100644 --- a/arch/sh/configs/se7722_defconfig +++ b/arch/sh/configs/se7722_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:55:10 2009 | 4 | # Mon Apr 27 13:05:29 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -69,7 +70,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
69 | CONFIG_RD_GZIP=y | 70 | CONFIG_RD_GZIP=y |
70 | # CONFIG_RD_BZIP2 is not set | 71 | # CONFIG_RD_BZIP2 is not set |
71 | # CONFIG_RD_LZMA is not set | 72 | # CONFIG_RD_LZMA is not set |
72 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
73 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 73 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
74 | CONFIG_SYSCTL=y | 74 | CONFIG_SYSCTL=y |
75 | CONFIG_ANON_INODES=y | 75 | CONFIG_ANON_INODES=y |
@@ -78,6 +78,7 @@ CONFIG_UID16=y | |||
78 | CONFIG_SYSCTL_SYSCALL=y | 78 | CONFIG_SYSCTL_SYSCALL=y |
79 | CONFIG_KALLSYMS=y | 79 | CONFIG_KALLSYMS=y |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
81 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 82 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 83 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 84 | CONFIG_BUG=y |
@@ -97,6 +98,7 @@ CONFIG_COMPAT_BRK=y | |||
97 | CONFIG_SLUB=y | 98 | CONFIG_SLUB=y |
98 | # CONFIG_SLOB is not set | 99 | # CONFIG_SLOB is not set |
99 | CONFIG_PROFILING=y | 100 | CONFIG_PROFILING=y |
101 | # CONFIG_MARKERS is not set | ||
100 | # CONFIG_OPROFILE is not set | 102 | # CONFIG_OPROFILE is not set |
101 | CONFIG_HAVE_OPROFILE=y | 103 | CONFIG_HAVE_OPROFILE=y |
102 | # CONFIG_KPROBES is not set | 104 | # CONFIG_KPROBES is not set |
@@ -105,6 +107,8 @@ CONFIG_HAVE_KPROBES=y | |||
105 | CONFIG_HAVE_KRETPROBES=y | 107 | CONFIG_HAVE_KRETPROBES=y |
106 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 108 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
107 | CONFIG_HAVE_CLK=y | 109 | CONFIG_HAVE_CLK=y |
110 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
111 | # CONFIG_SLOW_WORK is not set | ||
108 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 112 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
109 | CONFIG_SLABINFO=y | 113 | CONFIG_SLABINFO=y |
110 | CONFIG_RT_MUTEXES=y | 114 | CONFIG_RT_MUTEXES=y |
@@ -117,7 +121,6 @@ CONFIG_MODULE_UNLOAD=y | |||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 121 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
118 | CONFIG_BLOCK=y | 122 | CONFIG_BLOCK=y |
119 | # CONFIG_LBD is not set | 123 | # CONFIG_LBD is not set |
120 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | 124 | # CONFIG_BLK_DEV_BSG is not set |
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | 125 | # CONFIG_BLK_DEV_INTEGRITY is not set |
123 | 126 | ||
@@ -167,6 +170,7 @@ CONFIG_ARCH_SHMOBILE=y | |||
167 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
170 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -176,8 +180,6 @@ CONFIG_ARCH_SHMOBILE=y | |||
176 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 180 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
177 | CONFIG_CPU_SUBTYPE_SH7722=y | 181 | CONFIG_CPU_SUBTYPE_SH7722=y |
178 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 182 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
179 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
180 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
181 | 183 | ||
182 | # | 184 | # |
183 | # Memory management options | 185 | # Memory management options |
@@ -486,6 +488,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
486 | CONFIG_SCSI_LOWLEVEL=y | 488 | CONFIG_SCSI_LOWLEVEL=y |
487 | # CONFIG_ISCSI_TCP is not set | 489 | # CONFIG_ISCSI_TCP is not set |
488 | # CONFIG_LIBFC is not set | 490 | # CONFIG_LIBFC is not set |
491 | # CONFIG_LIBFCOE is not set | ||
489 | # CONFIG_SCSI_DEBUG is not set | 492 | # CONFIG_SCSI_DEBUG is not set |
490 | # CONFIG_SCSI_DH is not set | 493 | # CONFIG_SCSI_DH is not set |
491 | # CONFIG_SCSI_OSD_INITIATOR is not set | 494 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -692,7 +695,6 @@ CONFIG_HID=y | |||
692 | # | 695 | # |
693 | # Special HID drivers | 696 | # Special HID drivers |
694 | # | 697 | # |
695 | CONFIG_HID_COMPAT=y | ||
696 | CONFIG_USB_SUPPORT=y | 698 | CONFIG_USB_SUPPORT=y |
697 | CONFIG_USB_ARCH_HAS_HCD=y | 699 | CONFIG_USB_ARCH_HAS_HCD=y |
698 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 700 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
@@ -766,6 +768,7 @@ CONFIG_EXT2_FS=y | |||
766 | # CONFIG_EXT2_FS_XATTR is not set | 768 | # CONFIG_EXT2_FS_XATTR is not set |
767 | # CONFIG_EXT2_FS_XIP is not set | 769 | # CONFIG_EXT2_FS_XIP is not set |
768 | CONFIG_EXT3_FS=y | 770 | CONFIG_EXT3_FS=y |
771 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
769 | CONFIG_EXT3_FS_XATTR=y | 772 | CONFIG_EXT3_FS_XATTR=y |
770 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 773 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
771 | # CONFIG_EXT3_FS_SECURITY is not set | 774 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -789,6 +792,11 @@ CONFIG_INOTIFY_USER=y | |||
789 | # CONFIG_FUSE_FS is not set | 792 | # CONFIG_FUSE_FS is not set |
790 | 793 | ||
791 | # | 794 | # |
795 | # Caches | ||
796 | # | ||
797 | # CONFIG_FSCACHE is not set | ||
798 | |||
799 | # | ||
792 | # CD-ROM/DVD Filesystems | 800 | # CD-ROM/DVD Filesystems |
793 | # | 801 | # |
794 | # CONFIG_ISO9660_FS is not set | 802 | # CONFIG_ISO9660_FS is not set |
@@ -832,6 +840,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
832 | # CONFIG_ROMFS_FS is not set | 840 | # CONFIG_ROMFS_FS is not set |
833 | # CONFIG_SYSV_FS is not set | 841 | # CONFIG_SYSV_FS is not set |
834 | # CONFIG_UFS_FS is not set | 842 | # CONFIG_UFS_FS is not set |
843 | # CONFIG_NILFS2_FS is not set | ||
835 | CONFIG_NETWORK_FILESYSTEMS=y | 844 | CONFIG_NETWORK_FILESYSTEMS=y |
836 | # CONFIG_NFS_FS is not set | 845 | # CONFIG_NFS_FS is not set |
837 | # CONFIG_NFSD is not set | 846 | # CONFIG_NFSD is not set |
@@ -872,11 +881,25 @@ CONFIG_DEBUG_FS=y | |||
872 | CONFIG_HAVE_FUNCTION_TRACER=y | 881 | CONFIG_HAVE_FUNCTION_TRACER=y |
873 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 882 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
874 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 883 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
884 | CONFIG_TRACING_SUPPORT=y | ||
875 | 885 | ||
876 | # | 886 | # |
877 | # Tracers | 887 | # Tracers |
878 | # | 888 | # |
889 | # CONFIG_FUNCTION_TRACER is not set | ||
890 | # CONFIG_IRQSOFF_TRACER is not set | ||
891 | # CONFIG_PREEMPT_TRACER is not set | ||
892 | # CONFIG_SCHED_TRACER is not set | ||
893 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
894 | # CONFIG_EVENT_TRACER is not set | ||
895 | # CONFIG_BOOT_TRACER is not set | ||
896 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
897 | # CONFIG_STACK_TRACER is not set | ||
898 | # CONFIG_KMEMTRACE is not set | ||
899 | # CONFIG_WORKQUEUE_TRACER is not set | ||
900 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
879 | # CONFIG_DYNAMIC_DEBUG is not set | 901 | # CONFIG_DYNAMIC_DEBUG is not set |
902 | # CONFIG_DMA_API_DEBUG is not set | ||
880 | # CONFIG_SAMPLES is not set | 903 | # CONFIG_SAMPLES is not set |
881 | CONFIG_HAVE_ARCH_KGDB=y | 904 | CONFIG_HAVE_ARCH_KGDB=y |
882 | CONFIG_SH_STANDARD_BIOS=y | 905 | CONFIG_SH_STANDARD_BIOS=y |
@@ -977,6 +1000,7 @@ CONFIG_CRYPTO=y | |||
977 | # | 1000 | # |
978 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1001 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
979 | CONFIG_CRYPTO_HW=y | 1002 | CONFIG_CRYPTO_HW=y |
1003 | # CONFIG_BINARY_PRINTF is not set | ||
980 | 1004 | ||
981 | # | 1005 | # |
982 | # Library routines | 1006 | # Library routines |
diff --git a/arch/sh/configs/se7750_defconfig b/arch/sh/configs/se7750_defconfig index ceef6d9138ee..ed1a1230f636 100644 --- a/arch/sh/configs/se7750_defconfig +++ b/arch/sh/configs/se7750_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:57:31 2009 | 4 | # Mon Apr 27 13:06:02 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -70,6 +71,7 @@ CONFIG_UID16=y | |||
70 | # CONFIG_SYSCTL_SYSCALL is not set | 71 | # CONFIG_SYSCTL_SYSCALL is not set |
71 | CONFIG_KALLSYMS=y | 72 | CONFIG_KALLSYMS=y |
72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
74 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | # CONFIG_HOTPLUG is not set | 75 | # CONFIG_HOTPLUG is not set |
74 | CONFIG_PRINTK=y | 76 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 77 | CONFIG_BUG=y |
@@ -88,6 +90,7 @@ CONFIG_SLAB=y | |||
88 | # CONFIG_SLUB is not set | 90 | # CONFIG_SLUB is not set |
89 | # CONFIG_SLOB is not set | 91 | # CONFIG_SLOB is not set |
90 | # CONFIG_PROFILING is not set | 92 | # CONFIG_PROFILING is not set |
93 | # CONFIG_MARKERS is not set | ||
91 | CONFIG_HAVE_OPROFILE=y | 94 | CONFIG_HAVE_OPROFILE=y |
92 | # CONFIG_KPROBES is not set | 95 | # CONFIG_KPROBES is not set |
93 | CONFIG_HAVE_IOREMAP_PROT=y | 96 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -95,6 +98,8 @@ CONFIG_HAVE_KPROBES=y | |||
95 | CONFIG_HAVE_KRETPROBES=y | 98 | CONFIG_HAVE_KRETPROBES=y |
96 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 99 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
97 | CONFIG_HAVE_CLK=y | 100 | CONFIG_HAVE_CLK=y |
101 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
102 | # CONFIG_SLOW_WORK is not set | ||
98 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 103 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
99 | CONFIG_SLABINFO=y | 104 | CONFIG_SLABINFO=y |
100 | CONFIG_RT_MUTEXES=y | 105 | CONFIG_RT_MUTEXES=y |
@@ -106,7 +111,6 @@ CONFIG_MODULES=y | |||
106 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 111 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
107 | CONFIG_BLOCK=y | 112 | CONFIG_BLOCK=y |
108 | # CONFIG_LBD is not set | 113 | # CONFIG_LBD is not set |
109 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
110 | # CONFIG_BLK_DEV_BSG is not set | 114 | # CONFIG_BLK_DEV_BSG is not set |
111 | # CONFIG_BLK_DEV_INTEGRITY is not set | 115 | # CONFIG_BLK_DEV_INTEGRITY is not set |
112 | 116 | ||
@@ -152,6 +156,7 @@ CONFIG_CPU_SUBTYPE_SH7750=y | |||
152 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
153 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
155 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -161,8 +166,6 @@ CONFIG_CPU_SUBTYPE_SH7750=y | |||
161 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
165 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
166 | 169 | ||
167 | # | 170 | # |
168 | # Memory management options | 171 | # Memory management options |
@@ -553,6 +556,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
553 | CONFIG_SCSI_LOWLEVEL=y | 556 | CONFIG_SCSI_LOWLEVEL=y |
554 | # CONFIG_ISCSI_TCP is not set | 557 | # CONFIG_ISCSI_TCP is not set |
555 | # CONFIG_LIBFC is not set | 558 | # CONFIG_LIBFC is not set |
559 | # CONFIG_LIBFCOE is not set | ||
556 | # CONFIG_SCSI_DEBUG is not set | 560 | # CONFIG_SCSI_DEBUG is not set |
557 | # CONFIG_SCSI_DH is not set | 561 | # CONFIG_SCSI_DH is not set |
558 | # CONFIG_SCSI_OSD_INITIATOR is not set | 562 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -775,6 +779,11 @@ CONFIG_INOTIFY_USER=y | |||
775 | # CONFIG_FUSE_FS is not set | 779 | # CONFIG_FUSE_FS is not set |
776 | 780 | ||
777 | # | 781 | # |
782 | # Caches | ||
783 | # | ||
784 | # CONFIG_FSCACHE is not set | ||
785 | |||
786 | # | ||
778 | # CD-ROM/DVD Filesystems | 787 | # CD-ROM/DVD Filesystems |
779 | # | 788 | # |
780 | # CONFIG_ISO9660_FS is not set | 789 | # CONFIG_ISO9660_FS is not set |
@@ -829,6 +838,7 @@ CONFIG_JFFS2_RTIME=y | |||
829 | # CONFIG_ROMFS_FS is not set | 838 | # CONFIG_ROMFS_FS is not set |
830 | # CONFIG_SYSV_FS is not set | 839 | # CONFIG_SYSV_FS is not set |
831 | # CONFIG_UFS_FS is not set | 840 | # CONFIG_UFS_FS is not set |
841 | # CONFIG_NILFS2_FS is not set | ||
832 | CONFIG_NETWORK_FILESYSTEMS=y | 842 | CONFIG_NETWORK_FILESYSTEMS=y |
833 | CONFIG_NFS_FS=y | 843 | CONFIG_NFS_FS=y |
834 | # CONFIG_NFS_V3 is not set | 844 | # CONFIG_NFS_V3 is not set |
@@ -886,10 +896,23 @@ CONFIG_FRAME_WARN=1024 | |||
886 | CONFIG_HAVE_FUNCTION_TRACER=y | 896 | CONFIG_HAVE_FUNCTION_TRACER=y |
887 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 897 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
888 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 898 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
899 | CONFIG_TRACING_SUPPORT=y | ||
889 | 900 | ||
890 | # | 901 | # |
891 | # Tracers | 902 | # Tracers |
892 | # | 903 | # |
904 | # CONFIG_FUNCTION_TRACER is not set | ||
905 | # CONFIG_IRQSOFF_TRACER is not set | ||
906 | # CONFIG_SCHED_TRACER is not set | ||
907 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
908 | # CONFIG_EVENT_TRACER is not set | ||
909 | # CONFIG_BOOT_TRACER is not set | ||
910 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
911 | # CONFIG_STACK_TRACER is not set | ||
912 | # CONFIG_KMEMTRACE is not set | ||
913 | # CONFIG_WORKQUEUE_TRACER is not set | ||
914 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
915 | # CONFIG_DMA_API_DEBUG is not set | ||
893 | # CONFIG_SAMPLES is not set | 916 | # CONFIG_SAMPLES is not set |
894 | CONFIG_HAVE_ARCH_KGDB=y | 917 | CONFIG_HAVE_ARCH_KGDB=y |
895 | # CONFIG_SH_STANDARD_BIOS is not set | 918 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -989,6 +1012,7 @@ CONFIG_CRYPTO=y | |||
989 | # | 1012 | # |
990 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1013 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
991 | CONFIG_CRYPTO_HW=y | 1014 | CONFIG_CRYPTO_HW=y |
1015 | # CONFIG_BINARY_PRINTF is not set | ||
992 | 1016 | ||
993 | # | 1017 | # |
994 | # Library routines | 1018 | # Library routines |
diff --git a/arch/sh/configs/se7751_defconfig b/arch/sh/configs/se7751_defconfig index 67fc26b3a7d0..55f3b788e0cb 100644 --- a/arch/sh/configs/se7751_defconfig +++ b/arch/sh/configs/se7751_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 18:59:59 2009 | 4 | # Mon Apr 27 13:06:44 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -65,7 +66,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
65 | CONFIG_RD_GZIP=y | 66 | CONFIG_RD_GZIP=y |
66 | # CONFIG_RD_BZIP2 is not set | 67 | # CONFIG_RD_BZIP2 is not set |
67 | # CONFIG_RD_LZMA is not set | 68 | # CONFIG_RD_LZMA is not set |
68 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
69 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 69 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
70 | CONFIG_SYSCTL=y | 70 | CONFIG_SYSCTL=y |
71 | CONFIG_ANON_INODES=y | 71 | CONFIG_ANON_INODES=y |
@@ -74,6 +74,7 @@ CONFIG_UID16=y | |||
74 | # CONFIG_SYSCTL_SYSCALL is not set | 74 | # CONFIG_SYSCTL_SYSCALL is not set |
75 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
77 | # CONFIG_STRIP_ASM_SYMS is not set | ||
77 | # CONFIG_HOTPLUG is not set | 78 | # CONFIG_HOTPLUG is not set |
78 | CONFIG_PRINTK=y | 79 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 80 | CONFIG_BUG=y |
@@ -92,6 +93,7 @@ CONFIG_SLAB=y | |||
92 | # CONFIG_SLUB is not set | 93 | # CONFIG_SLUB is not set |
93 | # CONFIG_SLOB is not set | 94 | # CONFIG_SLOB is not set |
94 | # CONFIG_PROFILING is not set | 95 | # CONFIG_PROFILING is not set |
96 | # CONFIG_MARKERS is not set | ||
95 | CONFIG_HAVE_OPROFILE=y | 97 | CONFIG_HAVE_OPROFILE=y |
96 | # CONFIG_KPROBES is not set | 98 | # CONFIG_KPROBES is not set |
97 | CONFIG_HAVE_IOREMAP_PROT=y | 99 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -99,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
99 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
100 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
101 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
102 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
103 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
104 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -110,7 +114,6 @@ CONFIG_MODULES=y | |||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 114 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 115 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 116 | # CONFIG_LBD is not set |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 117 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 118 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 119 | ||
@@ -156,6 +159,7 @@ CONFIG_CPU_SUBTYPE_SH7751=y | |||
156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -165,8 +169,6 @@ CONFIG_CPU_SUBTYPE_SH7751=y | |||
165 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
170 | 172 | ||
171 | # | 173 | # |
172 | # Memory management options | 174 | # Memory management options |
@@ -742,6 +744,11 @@ CONFIG_INOTIFY_USER=y | |||
742 | # CONFIG_FUSE_FS is not set | 744 | # CONFIG_FUSE_FS is not set |
743 | 745 | ||
744 | # | 746 | # |
747 | # Caches | ||
748 | # | ||
749 | # CONFIG_FSCACHE is not set | ||
750 | |||
751 | # | ||
745 | # CD-ROM/DVD Filesystems | 752 | # CD-ROM/DVD Filesystems |
746 | # | 753 | # |
747 | # CONFIG_ISO9660_FS is not set | 754 | # CONFIG_ISO9660_FS is not set |
@@ -796,6 +803,7 @@ CONFIG_JFFS2_RTIME=y | |||
796 | # CONFIG_ROMFS_FS is not set | 803 | # CONFIG_ROMFS_FS is not set |
797 | # CONFIG_SYSV_FS is not set | 804 | # CONFIG_SYSV_FS is not set |
798 | # CONFIG_UFS_FS is not set | 805 | # CONFIG_UFS_FS is not set |
806 | # CONFIG_NILFS2_FS is not set | ||
799 | CONFIG_NETWORK_FILESYSTEMS=y | 807 | CONFIG_NETWORK_FILESYSTEMS=y |
800 | # CONFIG_NFS_FS is not set | 808 | # CONFIG_NFS_FS is not set |
801 | # CONFIG_NFSD is not set | 809 | # CONFIG_NFSD is not set |
@@ -833,10 +841,23 @@ CONFIG_FRAME_WARN=1024 | |||
833 | CONFIG_HAVE_FUNCTION_TRACER=y | 841 | CONFIG_HAVE_FUNCTION_TRACER=y |
834 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 842 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
835 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 843 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
844 | CONFIG_TRACING_SUPPORT=y | ||
836 | 845 | ||
837 | # | 846 | # |
838 | # Tracers | 847 | # Tracers |
839 | # | 848 | # |
849 | # CONFIG_FUNCTION_TRACER is not set | ||
850 | # CONFIG_IRQSOFF_TRACER is not set | ||
851 | # CONFIG_SCHED_TRACER is not set | ||
852 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
853 | # CONFIG_EVENT_TRACER is not set | ||
854 | # CONFIG_BOOT_TRACER is not set | ||
855 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
856 | # CONFIG_STACK_TRACER is not set | ||
857 | # CONFIG_KMEMTRACE is not set | ||
858 | # CONFIG_WORKQUEUE_TRACER is not set | ||
859 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
860 | # CONFIG_DMA_API_DEBUG is not set | ||
840 | # CONFIG_SAMPLES is not set | 861 | # CONFIG_SAMPLES is not set |
841 | CONFIG_HAVE_ARCH_KGDB=y | 862 | CONFIG_HAVE_ARCH_KGDB=y |
842 | # CONFIG_SH_STANDARD_BIOS is not set | 863 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -936,6 +957,7 @@ CONFIG_CRYPTO=y | |||
936 | # | 957 | # |
937 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 958 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
938 | CONFIG_CRYPTO_HW=y | 959 | CONFIG_CRYPTO_HW=y |
960 | # CONFIG_BINARY_PRINTF is not set | ||
939 | 961 | ||
940 | # | 962 | # |
941 | # Library routines | 963 | # Library routines |
diff --git a/arch/sh/configs/se7780_defconfig b/arch/sh/configs/se7780_defconfig index ebce23cc2ad8..c4f0af32efa9 100644 --- a/arch/sh/configs/se7780_defconfig +++ b/arch/sh/configs/se7780_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:02:05 2009 | 4 | # Mon Apr 27 13:07:14 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -67,6 +68,7 @@ CONFIG_EMBEDDED=y | |||
67 | CONFIG_UID16=y | 68 | CONFIG_UID16=y |
68 | CONFIG_SYSCTL_SYSCALL=y | 69 | CONFIG_SYSCTL_SYSCALL=y |
69 | # CONFIG_KALLSYMS is not set | 70 | # CONFIG_KALLSYMS is not set |
71 | # CONFIG_STRIP_ASM_SYMS is not set | ||
70 | # CONFIG_HOTPLUG is not set | 72 | # CONFIG_HOTPLUG is not set |
71 | CONFIG_PRINTK=y | 73 | CONFIG_PRINTK=y |
72 | CONFIG_BUG=y | 74 | CONFIG_BUG=y |
@@ -86,12 +88,15 @@ CONFIG_SLAB=y | |||
86 | # CONFIG_SLUB is not set | 88 | # CONFIG_SLUB is not set |
87 | # CONFIG_SLOB is not set | 89 | # CONFIG_SLOB is not set |
88 | # CONFIG_PROFILING is not set | 90 | # CONFIG_PROFILING is not set |
91 | # CONFIG_MARKERS is not set | ||
89 | CONFIG_HAVE_OPROFILE=y | 92 | CONFIG_HAVE_OPROFILE=y |
90 | CONFIG_HAVE_IOREMAP_PROT=y | 93 | CONFIG_HAVE_IOREMAP_PROT=y |
91 | CONFIG_HAVE_KPROBES=y | 94 | CONFIG_HAVE_KPROBES=y |
92 | CONFIG_HAVE_KRETPROBES=y | 95 | CONFIG_HAVE_KRETPROBES=y |
93 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 96 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
94 | CONFIG_HAVE_CLK=y | 97 | CONFIG_HAVE_CLK=y |
98 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
99 | # CONFIG_SLOW_WORK is not set | ||
95 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 100 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
96 | CONFIG_SLABINFO=y | 101 | CONFIG_SLABINFO=y |
97 | CONFIG_RT_MUTEXES=y | 102 | CONFIG_RT_MUTEXES=y |
@@ -103,7 +108,6 @@ CONFIG_MODULE_UNLOAD=y | |||
103 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 108 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
104 | CONFIG_BLOCK=y | 109 | CONFIG_BLOCK=y |
105 | # CONFIG_LBD is not set | 110 | # CONFIG_LBD is not set |
106 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
107 | # CONFIG_BLK_DEV_INTEGRITY is not set | 111 | # CONFIG_BLK_DEV_INTEGRITY is not set |
108 | 112 | ||
109 | # | 113 | # |
@@ -149,6 +153,7 @@ CONFIG_CPU_SH4A=y | |||
149 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 153 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
150 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
151 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 155 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
152 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
153 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
154 | CONFIG_CPU_SUBTYPE_SH7780=y | 159 | CONFIG_CPU_SUBTYPE_SH7780=y |
@@ -158,8 +163,6 @@ CONFIG_CPU_SUBTYPE_SH7780=y | |||
158 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
160 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
163 | 166 | ||
164 | # | 167 | # |
165 | # Memory management options | 168 | # Memory management options |
@@ -285,8 +288,6 @@ CONFIG_CMDLINE="console=ttySC0.115200 root=/dev/sda1" | |||
285 | # | 288 | # |
286 | CONFIG_PCI=y | 289 | CONFIG_PCI=y |
287 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 290 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
288 | CONFIG_PCI_AUTO=y | ||
289 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
290 | # CONFIG_PCIEPORTBUS is not set | 291 | # CONFIG_PCIEPORTBUS is not set |
291 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 292 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
292 | CONFIG_PCI_LEGACY=y | 293 | CONFIG_PCI_LEGACY=y |
@@ -558,6 +559,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
558 | # CONFIG_SCSI_MPT2SAS is not set | 559 | # CONFIG_SCSI_MPT2SAS is not set |
559 | # CONFIG_SCSI_HPTIOP is not set | 560 | # CONFIG_SCSI_HPTIOP is not set |
560 | # CONFIG_LIBFC is not set | 561 | # CONFIG_LIBFC is not set |
562 | # CONFIG_LIBFCOE is not set | ||
561 | # CONFIG_FCOE is not set | 563 | # CONFIG_FCOE is not set |
562 | # CONFIG_SCSI_DMX3191D is not set | 564 | # CONFIG_SCSI_DMX3191D is not set |
563 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 565 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -957,15 +959,17 @@ CONFIG_USB_HID=y | |||
957 | # | 959 | # |
958 | # Special HID drivers | 960 | # Special HID drivers |
959 | # | 961 | # |
960 | CONFIG_HID_COMPAT=y | ||
961 | CONFIG_HID_A4TECH=y | 962 | CONFIG_HID_A4TECH=y |
962 | CONFIG_HID_APPLE=y | 963 | CONFIG_HID_APPLE=y |
963 | CONFIG_HID_BELKIN=y | 964 | CONFIG_HID_BELKIN=y |
964 | CONFIG_HID_CHERRY=y | 965 | CONFIG_HID_CHERRY=y |
965 | CONFIG_HID_CHICONY=y | 966 | CONFIG_HID_CHICONY=y |
966 | CONFIG_HID_CYPRESS=y | 967 | CONFIG_HID_CYPRESS=y |
968 | # CONFIG_DRAGONRISE_FF is not set | ||
967 | CONFIG_HID_EZKEY=y | 969 | CONFIG_HID_EZKEY=y |
970 | # CONFIG_HID_KYE is not set | ||
968 | CONFIG_HID_GYRATION=y | 971 | CONFIG_HID_GYRATION=y |
972 | # CONFIG_HID_KENSINGTON is not set | ||
969 | CONFIG_HID_LOGITECH=y | 973 | CONFIG_HID_LOGITECH=y |
970 | # CONFIG_LOGITECH_FF is not set | 974 | # CONFIG_LOGITECH_FF is not set |
971 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 975 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1122,6 +1126,10 @@ CONFIG_INOTIFY_USER=y | |||
1122 | # CONFIG_FUSE_FS is not set | 1126 | # CONFIG_FUSE_FS is not set |
1123 | 1127 | ||
1124 | # | 1128 | # |
1129 | # Caches | ||
1130 | # | ||
1131 | |||
1132 | # | ||
1125 | # CD-ROM/DVD Filesystems | 1133 | # CD-ROM/DVD Filesystems |
1126 | # | 1134 | # |
1127 | # CONFIG_ISO9660_FS is not set | 1135 | # CONFIG_ISO9660_FS is not set |
@@ -1245,11 +1253,24 @@ CONFIG_DEBUG_FS=y | |||
1245 | CONFIG_HAVE_FUNCTION_TRACER=y | 1253 | CONFIG_HAVE_FUNCTION_TRACER=y |
1246 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1254 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1247 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1255 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1256 | CONFIG_TRACING_SUPPORT=y | ||
1248 | 1257 | ||
1249 | # | 1258 | # |
1250 | # Tracers | 1259 | # Tracers |
1251 | # | 1260 | # |
1261 | # CONFIG_FUNCTION_TRACER is not set | ||
1262 | # CONFIG_IRQSOFF_TRACER is not set | ||
1263 | # CONFIG_SCHED_TRACER is not set | ||
1264 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1265 | # CONFIG_EVENT_TRACER is not set | ||
1266 | # CONFIG_BOOT_TRACER is not set | ||
1267 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1268 | # CONFIG_STACK_TRACER is not set | ||
1269 | # CONFIG_KMEMTRACE is not set | ||
1270 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1271 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1252 | # CONFIG_DYNAMIC_DEBUG is not set | 1272 | # CONFIG_DYNAMIC_DEBUG is not set |
1273 | # CONFIG_DMA_API_DEBUG is not set | ||
1253 | # CONFIG_SAMPLES is not set | 1274 | # CONFIG_SAMPLES is not set |
1254 | CONFIG_HAVE_ARCH_KGDB=y | 1275 | CONFIG_HAVE_ARCH_KGDB=y |
1255 | # CONFIG_SH_STANDARD_BIOS is not set | 1276 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1345,6 +1366,7 @@ CONFIG_CRYPTO=y | |||
1345 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1366 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1346 | CONFIG_CRYPTO_HW=y | 1367 | CONFIG_CRYPTO_HW=y |
1347 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1368 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1369 | # CONFIG_BINARY_PRINTF is not set | ||
1348 | 1370 | ||
1349 | # | 1371 | # |
1350 | # Library routines | 1372 | # Library routines |
diff --git a/arch/sh/configs/sh03_defconfig b/arch/sh/configs/sh03_defconfig index 6fcdb090cf32..f9c6e51dc0b0 100644 --- a/arch/sh/configs/sh03_defconfig +++ b/arch/sh/configs/sh03_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:04:59 2009 | 4 | # Mon Apr 27 13:07:56 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -41,6 +42,7 @@ CONFIG_SWAP=y | |||
41 | CONFIG_SYSVIPC=y | 42 | CONFIG_SYSVIPC=y |
42 | CONFIG_SYSVIPC_SYSCTL=y | 43 | CONFIG_SYSVIPC_SYSCTL=y |
43 | CONFIG_POSIX_MQUEUE=y | 44 | CONFIG_POSIX_MQUEUE=y |
45 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
44 | CONFIG_BSD_PROCESS_ACCT=y | 46 | CONFIG_BSD_PROCESS_ACCT=y |
45 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 47 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
46 | # CONFIG_TASKSTATS is not set | 48 | # CONFIG_TASKSTATS is not set |
@@ -67,7 +69,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
67 | CONFIG_RD_GZIP=y | 69 | CONFIG_RD_GZIP=y |
68 | # CONFIG_RD_BZIP2 is not set | 70 | # CONFIG_RD_BZIP2 is not set |
69 | # CONFIG_RD_LZMA is not set | 71 | # CONFIG_RD_LZMA is not set |
70 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
71 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 72 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
72 | CONFIG_SYSCTL=y | 73 | CONFIG_SYSCTL=y |
73 | CONFIG_ANON_INODES=y | 74 | CONFIG_ANON_INODES=y |
@@ -76,6 +77,7 @@ CONFIG_UID16=y | |||
76 | # CONFIG_SYSCTL_SYSCALL is not set | 77 | # CONFIG_SYSCTL_SYSCALL is not set |
77 | CONFIG_KALLSYMS=y | 78 | CONFIG_KALLSYMS=y |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 79 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
80 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 81 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 82 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 83 | CONFIG_BUG=y |
@@ -105,6 +107,8 @@ CONFIG_HAVE_KPROBES=y | |||
105 | CONFIG_HAVE_KRETPROBES=y | 107 | CONFIG_HAVE_KRETPROBES=y |
106 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 108 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
107 | CONFIG_HAVE_CLK=y | 109 | CONFIG_HAVE_CLK=y |
110 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
111 | # CONFIG_SLOW_WORK is not set | ||
108 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 112 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
109 | CONFIG_SLABINFO=y | 113 | CONFIG_SLABINFO=y |
110 | CONFIG_RT_MUTEXES=y | 114 | CONFIG_RT_MUTEXES=y |
@@ -117,7 +121,6 @@ CONFIG_MODVERSIONS=y | |||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 121 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
118 | CONFIG_BLOCK=y | 122 | CONFIG_BLOCK=y |
119 | # CONFIG_LBD is not set | 123 | # CONFIG_LBD is not set |
120 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | 124 | # CONFIG_BLK_DEV_BSG is not set |
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | 125 | # CONFIG_BLK_DEV_INTEGRITY is not set |
123 | 126 | ||
@@ -163,6 +166,7 @@ CONFIG_CPU_SUBTYPE_SH7751=y | |||
163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
166 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -172,8 +176,6 @@ CONFIG_CPU_SUBTYPE_SH7751=y | |||
172 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
174 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
176 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
177 | 179 | ||
178 | # | 180 | # |
179 | # Memory management options | 181 | # Memory management options |
@@ -300,8 +302,6 @@ CONFIG_CMDLINE="console=ttySC1,115200 mem=64M root=/dev/nfs" | |||
300 | # | 302 | # |
301 | CONFIG_PCI=y | 303 | CONFIG_PCI=y |
302 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 304 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
303 | CONFIG_PCI_AUTO=y | ||
304 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
305 | # CONFIG_PCIEPORTBUS is not set | 305 | # CONFIG_PCIEPORTBUS is not set |
306 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 306 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
307 | CONFIG_PCI_LEGACY=y | 307 | CONFIG_PCI_LEGACY=y |
@@ -562,6 +562,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
562 | # CONFIG_SCSI_MPT2SAS is not set | 562 | # CONFIG_SCSI_MPT2SAS is not set |
563 | # CONFIG_SCSI_HPTIOP is not set | 563 | # CONFIG_SCSI_HPTIOP is not set |
564 | # CONFIG_LIBFC is not set | 564 | # CONFIG_LIBFC is not set |
565 | # CONFIG_LIBFCOE is not set | ||
565 | # CONFIG_FCOE is not set | 566 | # CONFIG_FCOE is not set |
566 | # CONFIG_SCSI_DMX3191D is not set | 567 | # CONFIG_SCSI_DMX3191D is not set |
567 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 568 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -656,6 +657,7 @@ CONFIG_NETDEV_1000=y | |||
656 | # CONFIG_E1000E is not set | 657 | # CONFIG_E1000E is not set |
657 | # CONFIG_IP1000 is not set | 658 | # CONFIG_IP1000 is not set |
658 | # CONFIG_IGB is not set | 659 | # CONFIG_IGB is not set |
660 | # CONFIG_IGBVF is not set | ||
659 | # CONFIG_NS83820 is not set | 661 | # CONFIG_NS83820 is not set |
660 | # CONFIG_HAMACHI is not set | 662 | # CONFIG_HAMACHI is not set |
661 | # CONFIG_YELLOWFIN is not set | 663 | # CONFIG_YELLOWFIN is not set |
@@ -679,6 +681,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
679 | # CONFIG_IXGBE is not set | 681 | # CONFIG_IXGBE is not set |
680 | # CONFIG_IXGB is not set | 682 | # CONFIG_IXGB is not set |
681 | # CONFIG_S2IO is not set | 683 | # CONFIG_S2IO is not set |
684 | # CONFIG_VXGE is not set | ||
682 | # CONFIG_MYRI10GE is not set | 685 | # CONFIG_MYRI10GE is not set |
683 | # CONFIG_NETXEN_NIC is not set | 686 | # CONFIG_NETXEN_NIC is not set |
684 | # CONFIG_NIU is not set | 687 | # CONFIG_NIU is not set |
@@ -887,7 +890,6 @@ CONFIG_HID=y | |||
887 | # | 890 | # |
888 | # Special HID drivers | 891 | # Special HID drivers |
889 | # | 892 | # |
890 | CONFIG_HID_COMPAT=y | ||
891 | CONFIG_USB_SUPPORT=y | 893 | CONFIG_USB_SUPPORT=y |
892 | CONFIG_USB_ARCH_HAS_HCD=y | 894 | CONFIG_USB_ARCH_HAS_HCD=y |
893 | CONFIG_USB_ARCH_HAS_OHCI=y | 895 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -929,6 +931,7 @@ CONFIG_EXT2_FS_XATTR=y | |||
929 | # CONFIG_EXT2_FS_SECURITY is not set | 931 | # CONFIG_EXT2_FS_SECURITY is not set |
930 | # CONFIG_EXT2_FS_XIP is not set | 932 | # CONFIG_EXT2_FS_XIP is not set |
931 | CONFIG_EXT3_FS=y | 933 | CONFIG_EXT3_FS=y |
934 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
932 | CONFIG_EXT3_FS_XATTR=y | 935 | CONFIG_EXT3_FS_XATTR=y |
933 | CONFIG_EXT3_FS_POSIX_ACL=y | 936 | CONFIG_EXT3_FS_POSIX_ACL=y |
934 | # CONFIG_EXT3_FS_SECURITY is not set | 937 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -952,6 +955,11 @@ CONFIG_AUTOFS4_FS=y | |||
952 | # CONFIG_FUSE_FS is not set | 955 | # CONFIG_FUSE_FS is not set |
953 | 956 | ||
954 | # | 957 | # |
958 | # Caches | ||
959 | # | ||
960 | # CONFIG_FSCACHE is not set | ||
961 | |||
962 | # | ||
955 | # CD-ROM/DVD Filesystems | 963 | # CD-ROM/DVD Filesystems |
956 | # | 964 | # |
957 | CONFIG_ISO9660_FS=m | 965 | CONFIG_ISO9660_FS=m |
@@ -1001,6 +1009,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1001 | # CONFIG_ROMFS_FS is not set | 1009 | # CONFIG_ROMFS_FS is not set |
1002 | # CONFIG_SYSV_FS is not set | 1010 | # CONFIG_SYSV_FS is not set |
1003 | # CONFIG_UFS_FS is not set | 1011 | # CONFIG_UFS_FS is not set |
1012 | # CONFIG_NILFS2_FS is not set | ||
1004 | CONFIG_NETWORK_FILESYSTEMS=y | 1013 | CONFIG_NETWORK_FILESYSTEMS=y |
1005 | CONFIG_NFS_FS=y | 1014 | CONFIG_NFS_FS=y |
1006 | CONFIG_NFS_V3=y | 1015 | CONFIG_NFS_V3=y |
@@ -1112,11 +1121,26 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1112 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1121 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1113 | CONFIG_RING_BUFFER=y | 1122 | CONFIG_RING_BUFFER=y |
1114 | CONFIG_TRACING=y | 1123 | CONFIG_TRACING=y |
1124 | CONFIG_TRACING_SUPPORT=y | ||
1115 | 1125 | ||
1116 | # | 1126 | # |
1117 | # Tracers | 1127 | # Tracers |
1118 | # | 1128 | # |
1129 | # CONFIG_FUNCTION_TRACER is not set | ||
1130 | # CONFIG_IRQSOFF_TRACER is not set | ||
1131 | # CONFIG_PREEMPT_TRACER is not set | ||
1132 | # CONFIG_SCHED_TRACER is not set | ||
1133 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1134 | # CONFIG_EVENT_TRACER is not set | ||
1135 | # CONFIG_BOOT_TRACER is not set | ||
1136 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1137 | # CONFIG_STACK_TRACER is not set | ||
1138 | # CONFIG_KMEMTRACE is not set | ||
1139 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1140 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1141 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1119 | # CONFIG_DYNAMIC_DEBUG is not set | 1142 | # CONFIG_DYNAMIC_DEBUG is not set |
1143 | # CONFIG_DMA_API_DEBUG is not set | ||
1120 | # CONFIG_SAMPLES is not set | 1144 | # CONFIG_SAMPLES is not set |
1121 | CONFIG_HAVE_ARCH_KGDB=y | 1145 | CONFIG_HAVE_ARCH_KGDB=y |
1122 | CONFIG_SH_STANDARD_BIOS=y | 1146 | CONFIG_SH_STANDARD_BIOS=y |
@@ -1228,6 +1252,7 @@ CONFIG_CRYPTO_DEFLATE=y | |||
1228 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1252 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1229 | CONFIG_CRYPTO_HW=y | 1253 | CONFIG_CRYPTO_HW=y |
1230 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1254 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1255 | CONFIG_BINARY_PRINTF=y | ||
1231 | 1256 | ||
1232 | # | 1257 | # |
1233 | # Library routines | 1258 | # Library routines |
diff --git a/arch/sh/configs/sh7710voipgw_defconfig b/arch/sh/configs/sh7710voipgw_defconfig index 1ab37c01da6e..48b58098cf84 100644 --- a/arch/sh/configs/sh7710voipgw_defconfig +++ b/arch/sh/configs/sh7710voipgw_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:09:01 2009 | 4 | # Mon Apr 27 13:09:16 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -39,6 +40,7 @@ CONFIG_LOCALVERSION_AUTO=y | |||
39 | CONFIG_SYSVIPC=y | 40 | CONFIG_SYSVIPC=y |
40 | CONFIG_SYSVIPC_SYSCTL=y | 41 | CONFIG_SYSVIPC_SYSCTL=y |
41 | CONFIG_POSIX_MQUEUE=y | 42 | CONFIG_POSIX_MQUEUE=y |
43 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | 44 | # CONFIG_BSD_PROCESS_ACCT is not set |
43 | # CONFIG_TASKSTATS is not set | 45 | # CONFIG_TASKSTATS is not set |
44 | # CONFIG_AUDIT is not set | 46 | # CONFIG_AUDIT is not set |
@@ -72,6 +74,7 @@ CONFIG_UID16=y | |||
72 | # CONFIG_SYSCTL_SYSCALL is not set | 74 | # CONFIG_SYSCTL_SYSCALL is not set |
73 | CONFIG_KALLSYMS=y | 75 | CONFIG_KALLSYMS=y |
74 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 76 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
77 | # CONFIG_STRIP_ASM_SYMS is not set | ||
75 | CONFIG_HOTPLUG=y | 78 | CONFIG_HOTPLUG=y |
76 | CONFIG_PRINTK=y | 79 | CONFIG_PRINTK=y |
77 | CONFIG_BUG=y | 80 | CONFIG_BUG=y |
@@ -90,6 +93,7 @@ CONFIG_SLAB=y | |||
90 | # CONFIG_SLUB is not set | 93 | # CONFIG_SLUB is not set |
91 | # CONFIG_SLOB is not set | 94 | # CONFIG_SLOB is not set |
92 | # CONFIG_PROFILING is not set | 95 | # CONFIG_PROFILING is not set |
96 | # CONFIG_MARKERS is not set | ||
93 | CONFIG_HAVE_OPROFILE=y | 97 | CONFIG_HAVE_OPROFILE=y |
94 | # CONFIG_KPROBES is not set | 98 | # CONFIG_KPROBES is not set |
95 | CONFIG_HAVE_IOREMAP_PROT=y | 99 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -97,6 +101,8 @@ CONFIG_HAVE_KPROBES=y | |||
97 | CONFIG_HAVE_KRETPROBES=y | 101 | CONFIG_HAVE_KRETPROBES=y |
98 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 102 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
99 | CONFIG_HAVE_CLK=y | 103 | CONFIG_HAVE_CLK=y |
104 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
105 | # CONFIG_SLOW_WORK is not set | ||
100 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
101 | CONFIG_SLABINFO=y | 107 | CONFIG_SLABINFO=y |
102 | CONFIG_BASE_SMALL=0 | 108 | CONFIG_BASE_SMALL=0 |
@@ -108,7 +114,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
108 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 114 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
109 | CONFIG_BLOCK=y | 115 | CONFIG_BLOCK=y |
110 | # CONFIG_LBD is not set | 116 | # CONFIG_LBD is not set |
111 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
112 | # CONFIG_BLK_DEV_BSG is not set | 117 | # CONFIG_BLK_DEV_BSG is not set |
113 | # CONFIG_BLK_DEV_INTEGRITY is not set | 118 | # CONFIG_BLK_DEV_INTEGRITY is not set |
114 | 119 | ||
@@ -154,6 +159,7 @@ CONFIG_CPU_SUBTYPE_SH7710=y | |||
154 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
157 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -163,8 +169,6 @@ CONFIG_CPU_SUBTYPE_SH7710=y | |||
163 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
167 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
168 | 172 | ||
169 | # | 173 | # |
170 | # Memory management options | 174 | # Memory management options |
@@ -728,7 +732,6 @@ CONFIG_HID=y | |||
728 | # | 732 | # |
729 | # Special HID drivers | 733 | # Special HID drivers |
730 | # | 734 | # |
731 | CONFIG_HID_COMPAT=y | ||
732 | CONFIG_USB_SUPPORT=y | 735 | CONFIG_USB_SUPPORT=y |
733 | CONFIG_USB_ARCH_HAS_HCD=y | 736 | CONFIG_USB_ARCH_HAS_HCD=y |
734 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 737 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
@@ -780,6 +783,11 @@ CONFIG_FILE_LOCKING=y | |||
780 | # CONFIG_FUSE_FS is not set | 783 | # CONFIG_FUSE_FS is not set |
781 | 784 | ||
782 | # | 785 | # |
786 | # Caches | ||
787 | # | ||
788 | # CONFIG_FSCACHE is not set | ||
789 | |||
790 | # | ||
783 | # CD-ROM/DVD Filesystems | 791 | # CD-ROM/DVD Filesystems |
784 | # | 792 | # |
785 | # CONFIG_ISO9660_FS is not set | 793 | # CONFIG_ISO9660_FS is not set |
@@ -834,6 +842,7 @@ CONFIG_JFFS2_RTIME=y | |||
834 | # CONFIG_ROMFS_FS is not set | 842 | # CONFIG_ROMFS_FS is not set |
835 | # CONFIG_SYSV_FS is not set | 843 | # CONFIG_SYSV_FS is not set |
836 | # CONFIG_UFS_FS is not set | 844 | # CONFIG_UFS_FS is not set |
845 | # CONFIG_NILFS2_FS is not set | ||
837 | CONFIG_NETWORK_FILESYSTEMS=y | 846 | CONFIG_NETWORK_FILESYSTEMS=y |
838 | # CONFIG_NFS_FS is not set | 847 | # CONFIG_NFS_FS is not set |
839 | # CONFIG_NFSD is not set | 848 | # CONFIG_NFSD is not set |
@@ -871,11 +880,24 @@ CONFIG_DEBUG_FS=y | |||
871 | CONFIG_HAVE_FUNCTION_TRACER=y | 880 | CONFIG_HAVE_FUNCTION_TRACER=y |
872 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 881 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
873 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 882 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
883 | CONFIG_TRACING_SUPPORT=y | ||
874 | 884 | ||
875 | # | 885 | # |
876 | # Tracers | 886 | # Tracers |
877 | # | 887 | # |
888 | # CONFIG_FUNCTION_TRACER is not set | ||
889 | # CONFIG_IRQSOFF_TRACER is not set | ||
890 | # CONFIG_SCHED_TRACER is not set | ||
891 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
892 | # CONFIG_EVENT_TRACER is not set | ||
893 | # CONFIG_BOOT_TRACER is not set | ||
894 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
895 | # CONFIG_STACK_TRACER is not set | ||
896 | # CONFIG_KMEMTRACE is not set | ||
897 | # CONFIG_WORKQUEUE_TRACER is not set | ||
898 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
878 | # CONFIG_DYNAMIC_DEBUG is not set | 899 | # CONFIG_DYNAMIC_DEBUG is not set |
900 | # CONFIG_DMA_API_DEBUG is not set | ||
879 | # CONFIG_SAMPLES is not set | 901 | # CONFIG_SAMPLES is not set |
880 | CONFIG_HAVE_ARCH_KGDB=y | 902 | CONFIG_HAVE_ARCH_KGDB=y |
881 | # CONFIG_SH_STANDARD_BIOS is not set | 903 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -975,6 +997,7 @@ CONFIG_CRYPTO=y | |||
975 | # | 997 | # |
976 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 998 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
977 | CONFIG_CRYPTO_HW=y | 999 | CONFIG_CRYPTO_HW=y |
1000 | # CONFIG_BINARY_PRINTF is not set | ||
978 | 1001 | ||
979 | # | 1002 | # |
980 | # Library routines | 1003 | # Library routines |
diff --git a/arch/sh/configs/sh7724_generic_defconfig b/arch/sh/configs/sh7724_generic_defconfig new file mode 100644 index 000000000000..ec8f18c7684c --- /dev/null +++ b/arch/sh/configs/sh7724_generic_defconfig | |||
@@ -0,0 +1,707 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.30-rc3 | ||
4 | # Mon Apr 27 13:09:47 2009 | ||
5 | # | ||
6 | CONFIG_SUPERH=y | ||
7 | CONFIG_SUPERH32=y | ||
8 | # CONFIG_SUPERH64 is not set | ||
9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | ||
10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
11 | CONFIG_GENERIC_BUG=y | ||
12 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
13 | CONFIG_GENERIC_HWEIGHT=y | ||
14 | CONFIG_GENERIC_HARDIRQS=y | ||
15 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | # CONFIG_GENERIC_GPIO is not set | ||
18 | CONFIG_GENERIC_TIME=y | ||
19 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
20 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
21 | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | ||
22 | CONFIG_SYS_SUPPORTS_CMT=y | ||
23 | CONFIG_STACKTRACE_SUPPORT=y | ||
24 | CONFIG_LOCKDEP_SUPPORT=y | ||
25 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
26 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
27 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
28 | CONFIG_ARCH_NO_VIRT_TO_BUS=y | ||
29 | CONFIG_ARCH_HAS_DEFAULT_IDLE=y | ||
30 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
31 | |||
32 | # | ||
33 | # General setup | ||
34 | # | ||
35 | CONFIG_EXPERIMENTAL=y | ||
36 | CONFIG_BROKEN_ON_SMP=y | ||
37 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
38 | CONFIG_LOCALVERSION="" | ||
39 | # CONFIG_LOCALVERSION_AUTO is not set | ||
40 | CONFIG_SWAP=y | ||
41 | CONFIG_SYSVIPC=y | ||
42 | CONFIG_SYSVIPC_SYSCTL=y | ||
43 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
44 | |||
45 | # | ||
46 | # RCU Subsystem | ||
47 | # | ||
48 | # CONFIG_CLASSIC_RCU is not set | ||
49 | CONFIG_TREE_RCU=y | ||
50 | # CONFIG_PREEMPT_RCU is not set | ||
51 | # CONFIG_RCU_TRACE is not set | ||
52 | CONFIG_RCU_FANOUT=32 | ||
53 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
54 | # CONFIG_TREE_RCU_TRACE is not set | ||
55 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
56 | # CONFIG_IKCONFIG is not set | ||
57 | CONFIG_LOG_BUF_SHIFT=17 | ||
58 | CONFIG_GROUP_SCHED=y | ||
59 | CONFIG_FAIR_GROUP_SCHED=y | ||
60 | CONFIG_RT_GROUP_SCHED=y | ||
61 | CONFIG_USER_SCHED=y | ||
62 | # CONFIG_CGROUP_SCHED is not set | ||
63 | CONFIG_CGROUPS=y | ||
64 | # CONFIG_CGROUP_DEBUG is not set | ||
65 | # CONFIG_CGROUP_NS is not set | ||
66 | # CONFIG_CGROUP_FREEZER is not set | ||
67 | # CONFIG_CGROUP_DEVICE is not set | ||
68 | # CONFIG_CPUSETS is not set | ||
69 | # CONFIG_CGROUP_CPUACCT is not set | ||
70 | # CONFIG_RESOURCE_COUNTERS is not set | ||
71 | # CONFIG_RELAY is not set | ||
72 | # CONFIG_NAMESPACES is not set | ||
73 | # CONFIG_BLK_DEV_INITRD is not set | ||
74 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
75 | CONFIG_SYSCTL=y | ||
76 | CONFIG_ANON_INODES=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | # CONFIG_UID16 is not set | ||
79 | CONFIG_SYSCTL_SYSCALL=y | ||
80 | CONFIG_KALLSYMS=y | ||
81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
82 | # CONFIG_STRIP_ASM_SYMS is not set | ||
83 | CONFIG_HOTPLUG=y | ||
84 | CONFIG_PRINTK=y | ||
85 | CONFIG_BUG=y | ||
86 | CONFIG_ELF_CORE=y | ||
87 | CONFIG_BASE_FULL=y | ||
88 | CONFIG_FUTEX=y | ||
89 | CONFIG_EPOLL=y | ||
90 | CONFIG_SIGNALFD=y | ||
91 | CONFIG_TIMERFD=y | ||
92 | CONFIG_EVENTFD=y | ||
93 | CONFIG_SHMEM=y | ||
94 | CONFIG_AIO=y | ||
95 | CONFIG_VM_EVENT_COUNTERS=y | ||
96 | # CONFIG_COMPAT_BRK is not set | ||
97 | # CONFIG_SLAB is not set | ||
98 | CONFIG_SLUB=y | ||
99 | # CONFIG_SLOB is not set | ||
100 | CONFIG_PROFILING=y | ||
101 | CONFIG_TRACEPOINTS=y | ||
102 | # CONFIG_MARKERS is not set | ||
103 | CONFIG_OPROFILE=y | ||
104 | CONFIG_HAVE_OPROFILE=y | ||
105 | CONFIG_HAVE_IOREMAP_PROT=y | ||
106 | CONFIG_HAVE_KPROBES=y | ||
107 | CONFIG_HAVE_KRETPROBES=y | ||
108 | CONFIG_HAVE_ARCH_TRACEHOOK=y | ||
109 | CONFIG_HAVE_CLK=y | ||
110 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
111 | # CONFIG_SLOW_WORK is not set | ||
112 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
113 | CONFIG_RT_MUTEXES=y | ||
114 | CONFIG_BASE_SMALL=0 | ||
115 | # CONFIG_MODULES is not set | ||
116 | CONFIG_BLOCK=y | ||
117 | # CONFIG_LBD is not set | ||
118 | # CONFIG_BLK_DEV_BSG is not set | ||
119 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
120 | |||
121 | # | ||
122 | # IO Schedulers | ||
123 | # | ||
124 | CONFIG_IOSCHED_NOOP=y | ||
125 | CONFIG_IOSCHED_AS=y | ||
126 | CONFIG_IOSCHED_DEADLINE=y | ||
127 | CONFIG_IOSCHED_CFQ=y | ||
128 | CONFIG_DEFAULT_AS=y | ||
129 | # CONFIG_DEFAULT_DEADLINE is not set | ||
130 | # CONFIG_DEFAULT_CFQ is not set | ||
131 | # CONFIG_DEFAULT_NOOP is not set | ||
132 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
133 | CONFIG_FREEZER=y | ||
134 | |||
135 | # | ||
136 | # System type | ||
137 | # | ||
138 | CONFIG_CPU_SH4=y | ||
139 | CONFIG_CPU_SH4A=y | ||
140 | CONFIG_CPU_SHX2=y | ||
141 | CONFIG_ARCH_SHMOBILE=y | ||
142 | # CONFIG_CPU_SUBTYPE_SH7619 is not set | ||
143 | # CONFIG_CPU_SUBTYPE_SH7201 is not set | ||
144 | # CONFIG_CPU_SUBTYPE_SH7203 is not set | ||
145 | # CONFIG_CPU_SUBTYPE_SH7206 is not set | ||
146 | # CONFIG_CPU_SUBTYPE_SH7263 is not set | ||
147 | # CONFIG_CPU_SUBTYPE_MXG is not set | ||
148 | # CONFIG_CPU_SUBTYPE_SH7705 is not set | ||
149 | # CONFIG_CPU_SUBTYPE_SH7706 is not set | ||
150 | # CONFIG_CPU_SUBTYPE_SH7707 is not set | ||
151 | # CONFIG_CPU_SUBTYPE_SH7708 is not set | ||
152 | # CONFIG_CPU_SUBTYPE_SH7709 is not set | ||
153 | # CONFIG_CPU_SUBTYPE_SH7710 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7712 is not set | ||
155 | # CONFIG_CPU_SUBTYPE_SH7720 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7721 is not set | ||
157 | # CONFIG_CPU_SUBTYPE_SH7750 is not set | ||
158 | # CONFIG_CPU_SUBTYPE_SH7091 is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7750R is not set | ||
160 | # CONFIG_CPU_SUBTYPE_SH7750S is not set | ||
161 | # CONFIG_CPU_SUBTYPE_SH7751 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH7751R is not set | ||
163 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | ||
165 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | ||
166 | CONFIG_CPU_SUBTYPE_SH7724=y | ||
167 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | ||
168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | ||
170 | # CONFIG_CPU_SUBTYPE_SH7785 is not set | ||
171 | # CONFIG_CPU_SUBTYPE_SH7786 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SHX3 is not set | ||
173 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | ||
174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | ||
175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | ||
176 | |||
177 | # | ||
178 | # Memory management options | ||
179 | # | ||
180 | CONFIG_QUICKLIST=y | ||
181 | CONFIG_MMU=y | ||
182 | CONFIG_PAGE_OFFSET=0x80000000 | ||
183 | CONFIG_MEMORY_START=0x08000000 | ||
184 | CONFIG_MEMORY_SIZE=0x04000000 | ||
185 | CONFIG_29BIT=y | ||
186 | # CONFIG_X2TLB is not set | ||
187 | CONFIG_VSYSCALL=y | ||
188 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
189 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | ||
190 | CONFIG_ARCH_SPARSEMEM_DEFAULT=y | ||
191 | CONFIG_MAX_ACTIVE_REGIONS=1 | ||
192 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
193 | CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
194 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
195 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y | ||
196 | CONFIG_PAGE_SIZE_4KB=y | ||
197 | # CONFIG_PAGE_SIZE_8KB is not set | ||
198 | # CONFIG_PAGE_SIZE_16KB is not set | ||
199 | # CONFIG_PAGE_SIZE_64KB is not set | ||
200 | CONFIG_ENTRY_OFFSET=0x00001000 | ||
201 | CONFIG_SELECT_MEMORY_MODEL=y | ||
202 | # CONFIG_FLATMEM_MANUAL is not set | ||
203 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
204 | CONFIG_SPARSEMEM_MANUAL=y | ||
205 | CONFIG_SPARSEMEM=y | ||
206 | CONFIG_HAVE_MEMORY_PRESENT=y | ||
207 | CONFIG_SPARSEMEM_STATIC=y | ||
208 | |||
209 | # | ||
210 | # Memory hotplug is currently incompatible with Software Suspend | ||
211 | # | ||
212 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
213 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
214 | CONFIG_MIGRATION=y | ||
215 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
216 | CONFIG_ZONE_DMA_FLAG=0 | ||
217 | CONFIG_NR_QUICK=2 | ||
218 | CONFIG_UNEVICTABLE_LRU=y | ||
219 | CONFIG_HAVE_MLOCK=y | ||
220 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
221 | |||
222 | # | ||
223 | # Cache configuration | ||
224 | # | ||
225 | CONFIG_CACHE_WRITEBACK=y | ||
226 | # CONFIG_CACHE_WRITETHROUGH is not set | ||
227 | # CONFIG_CACHE_OFF is not set | ||
228 | |||
229 | # | ||
230 | # Processor features | ||
231 | # | ||
232 | CONFIG_CPU_LITTLE_ENDIAN=y | ||
233 | # CONFIG_CPU_BIG_ENDIAN is not set | ||
234 | CONFIG_SH_FPU=y | ||
235 | # CONFIG_SH_STORE_QUEUES is not set | ||
236 | CONFIG_CPU_HAS_INTEVT=y | ||
237 | CONFIG_CPU_HAS_SR_RB=y | ||
238 | CONFIG_CPU_HAS_PTEA=y | ||
239 | CONFIG_CPU_HAS_FPU=y | ||
240 | |||
241 | # | ||
242 | # Board support | ||
243 | # | ||
244 | |||
245 | # | ||
246 | # Timer and clock configuration | ||
247 | # | ||
248 | CONFIG_SH_TMU=y | ||
249 | CONFIG_SH_TIMER_CMT=y | ||
250 | CONFIG_SH_TIMER_IRQ=16 | ||
251 | CONFIG_SH_PCLK_FREQ=41666666 | ||
252 | CONFIG_TICK_ONESHOT=y | ||
253 | CONFIG_NO_HZ=y | ||
254 | CONFIG_HIGH_RES_TIMERS=y | ||
255 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
256 | |||
257 | # | ||
258 | # CPU Frequency scaling | ||
259 | # | ||
260 | CONFIG_CPU_FREQ=y | ||
261 | CONFIG_CPU_FREQ_TABLE=y | ||
262 | # CONFIG_CPU_FREQ_DEBUG is not set | ||
263 | CONFIG_CPU_FREQ_STAT=y | ||
264 | # CONFIG_CPU_FREQ_STAT_DETAILS is not set | ||
265 | CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y | ||
266 | # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set | ||
267 | # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set | ||
268 | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
269 | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
270 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
271 | # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set | ||
272 | # CONFIG_CPU_FREQ_GOV_USERSPACE is not set | ||
273 | # CONFIG_CPU_FREQ_GOV_ONDEMAND is not set | ||
274 | # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set | ||
275 | CONFIG_SH_CPU_FREQ=y | ||
276 | |||
277 | # | ||
278 | # DMA support | ||
279 | # | ||
280 | # CONFIG_SH_DMA is not set | ||
281 | |||
282 | # | ||
283 | # Companion Chips | ||
284 | # | ||
285 | |||
286 | # | ||
287 | # Additional SuperH Device Drivers | ||
288 | # | ||
289 | # CONFIG_HEARTBEAT is not set | ||
290 | # CONFIG_PUSH_SWITCH is not set | ||
291 | |||
292 | # | ||
293 | # Kernel features | ||
294 | # | ||
295 | # CONFIG_HZ_100 is not set | ||
296 | CONFIG_HZ_250=y | ||
297 | # CONFIG_HZ_300 is not set | ||
298 | # CONFIG_HZ_1000 is not set | ||
299 | CONFIG_HZ=250 | ||
300 | CONFIG_SCHED_HRTICK=y | ||
301 | CONFIG_KEXEC=y | ||
302 | # CONFIG_CRASH_DUMP is not set | ||
303 | CONFIG_KEXEC_JUMP=y | ||
304 | CONFIG_PREEMPT_NONE=y | ||
305 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
306 | # CONFIG_PREEMPT is not set | ||
307 | CONFIG_GUSA=y | ||
308 | |||
309 | # | ||
310 | # Boot options | ||
311 | # | ||
312 | CONFIG_ZERO_PAGE_OFFSET=0x00001000 | ||
313 | CONFIG_BOOT_LINK_OFFSET=0x00800000 | ||
314 | # CONFIG_CMDLINE_BOOL is not set | ||
315 | |||
316 | # | ||
317 | # Bus options | ||
318 | # | ||
319 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
320 | # CONFIG_PCCARD is not set | ||
321 | |||
322 | # | ||
323 | # Executable file formats | ||
324 | # | ||
325 | CONFIG_BINFMT_ELF=y | ||
326 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
327 | # CONFIG_HAVE_AOUT is not set | ||
328 | # CONFIG_BINFMT_MISC is not set | ||
329 | |||
330 | # | ||
331 | # Power management options (EXPERIMENTAL) | ||
332 | # | ||
333 | CONFIG_PM=y | ||
334 | # CONFIG_PM_DEBUG is not set | ||
335 | CONFIG_PM_SLEEP=y | ||
336 | CONFIG_SUSPEND=y | ||
337 | CONFIG_SUSPEND_FREEZER=y | ||
338 | CONFIG_HIBERNATION=y | ||
339 | CONFIG_PM_STD_PARTITION="" | ||
340 | CONFIG_CPU_IDLE=y | ||
341 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
342 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
343 | # CONFIG_NET is not set | ||
344 | |||
345 | # | ||
346 | # Device Drivers | ||
347 | # | ||
348 | |||
349 | # | ||
350 | # Generic Driver Options | ||
351 | # | ||
352 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
353 | CONFIG_STANDALONE=y | ||
354 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
355 | CONFIG_FW_LOADER=y | ||
356 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
357 | CONFIG_EXTRA_FIRMWARE="" | ||
358 | # CONFIG_SYS_HYPERVISOR is not set | ||
359 | # CONFIG_MTD is not set | ||
360 | # CONFIG_PARPORT is not set | ||
361 | CONFIG_BLK_DEV=y | ||
362 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
363 | # CONFIG_BLK_DEV_LOOP is not set | ||
364 | # CONFIG_BLK_DEV_RAM is not set | ||
365 | # CONFIG_CDROM_PKTCDVD is not set | ||
366 | # CONFIG_BLK_DEV_HD is not set | ||
367 | # CONFIG_MISC_DEVICES is not set | ||
368 | CONFIG_HAVE_IDE=y | ||
369 | # CONFIG_IDE is not set | ||
370 | |||
371 | # | ||
372 | # SCSI device support | ||
373 | # | ||
374 | # CONFIG_RAID_ATTRS is not set | ||
375 | # CONFIG_SCSI is not set | ||
376 | # CONFIG_SCSI_DMA is not set | ||
377 | # CONFIG_SCSI_NETLINK is not set | ||
378 | # CONFIG_ATA is not set | ||
379 | # CONFIG_MD is not set | ||
380 | # CONFIG_PHONE is not set | ||
381 | |||
382 | # | ||
383 | # Input device support | ||
384 | # | ||
385 | # CONFIG_INPUT is not set | ||
386 | |||
387 | # | ||
388 | # Hardware I/O ports | ||
389 | # | ||
390 | # CONFIG_SERIO is not set | ||
391 | # CONFIG_GAMEPORT is not set | ||
392 | |||
393 | # | ||
394 | # Character devices | ||
395 | # | ||
396 | # CONFIG_VT is not set | ||
397 | # CONFIG_DEVKMEM is not set | ||
398 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
399 | |||
400 | # | ||
401 | # Serial drivers | ||
402 | # | ||
403 | # CONFIG_SERIAL_8250 is not set | ||
404 | |||
405 | # | ||
406 | # Non-8250 serial port support | ||
407 | # | ||
408 | CONFIG_SERIAL_SH_SCI=y | ||
409 | CONFIG_SERIAL_SH_SCI_NR_UARTS=6 | ||
410 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
411 | CONFIG_SERIAL_CORE=y | ||
412 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
413 | # CONFIG_UNIX98_PTYS is not set | ||
414 | # CONFIG_LEGACY_PTYS is not set | ||
415 | # CONFIG_IPMI_HANDLER is not set | ||
416 | # CONFIG_HW_RANDOM is not set | ||
417 | # CONFIG_R3964 is not set | ||
418 | # CONFIG_RAW_DRIVER is not set | ||
419 | # CONFIG_TCG_TPM is not set | ||
420 | CONFIG_I2C=y | ||
421 | CONFIG_I2C_BOARDINFO=y | ||
422 | CONFIG_I2C_CHARDEV=y | ||
423 | CONFIG_I2C_HELPER_AUTO=y | ||
424 | |||
425 | # | ||
426 | # I2C Hardware Bus support | ||
427 | # | ||
428 | |||
429 | # | ||
430 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
431 | # | ||
432 | # CONFIG_I2C_OCORES is not set | ||
433 | CONFIG_I2C_SH_MOBILE=y | ||
434 | # CONFIG_I2C_SIMTEC is not set | ||
435 | |||
436 | # | ||
437 | # External I2C/SMBus adapter drivers | ||
438 | # | ||
439 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
440 | # CONFIG_I2C_TAOS_EVM is not set | ||
441 | |||
442 | # | ||
443 | # Other I2C/SMBus bus drivers | ||
444 | # | ||
445 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
446 | |||
447 | # | ||
448 | # Miscellaneous I2C Chip support | ||
449 | # | ||
450 | # CONFIG_DS1682 is not set | ||
451 | # CONFIG_SENSORS_PCF8574 is not set | ||
452 | # CONFIG_PCF8575 is not set | ||
453 | # CONFIG_SENSORS_PCA9539 is not set | ||
454 | # CONFIG_SENSORS_MAX6875 is not set | ||
455 | # CONFIG_SENSORS_TSL2550 is not set | ||
456 | # CONFIG_I2C_DEBUG_CORE is not set | ||
457 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
458 | # CONFIG_I2C_DEBUG_BUS is not set | ||
459 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
460 | # CONFIG_SPI is not set | ||
461 | # CONFIG_W1 is not set | ||
462 | # CONFIG_POWER_SUPPLY is not set | ||
463 | # CONFIG_HWMON is not set | ||
464 | # CONFIG_THERMAL is not set | ||
465 | # CONFIG_THERMAL_HWMON is not set | ||
466 | # CONFIG_WATCHDOG is not set | ||
467 | CONFIG_SSB_POSSIBLE=y | ||
468 | |||
469 | # | ||
470 | # Sonics Silicon Backplane | ||
471 | # | ||
472 | # CONFIG_SSB is not set | ||
473 | |||
474 | # | ||
475 | # Multifunction device drivers | ||
476 | # | ||
477 | # CONFIG_MFD_CORE is not set | ||
478 | # CONFIG_MFD_SM501 is not set | ||
479 | # CONFIG_HTC_PASIC3 is not set | ||
480 | # CONFIG_TWL4030_CORE is not set | ||
481 | # CONFIG_MFD_TMIO is not set | ||
482 | # CONFIG_PMIC_DA903X is not set | ||
483 | # CONFIG_MFD_WM8400 is not set | ||
484 | # CONFIG_MFD_WM8350_I2C is not set | ||
485 | # CONFIG_MFD_PCF50633 is not set | ||
486 | # CONFIG_REGULATOR is not set | ||
487 | |||
488 | # | ||
489 | # Multimedia devices | ||
490 | # | ||
491 | |||
492 | # | ||
493 | # Multimedia core support | ||
494 | # | ||
495 | # CONFIG_VIDEO_DEV is not set | ||
496 | # CONFIG_VIDEO_MEDIA is not set | ||
497 | |||
498 | # | ||
499 | # Multimedia drivers | ||
500 | # | ||
501 | # CONFIG_DAB is not set | ||
502 | |||
503 | # | ||
504 | # Graphics support | ||
505 | # | ||
506 | # CONFIG_VGASTATE is not set | ||
507 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
508 | # CONFIG_FB is not set | ||
509 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
510 | |||
511 | # | ||
512 | # Display device support | ||
513 | # | ||
514 | # CONFIG_DISPLAY_SUPPORT is not set | ||
515 | # CONFIG_SOUND is not set | ||
516 | # CONFIG_USB_SUPPORT is not set | ||
517 | # CONFIG_MMC is not set | ||
518 | # CONFIG_MEMSTICK is not set | ||
519 | # CONFIG_NEW_LEDS is not set | ||
520 | # CONFIG_ACCESSIBILITY is not set | ||
521 | CONFIG_RTC_LIB=y | ||
522 | CONFIG_RTC_CLASS=y | ||
523 | CONFIG_RTC_HCTOSYS=y | ||
524 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
525 | # CONFIG_RTC_DEBUG is not set | ||
526 | |||
527 | # | ||
528 | # RTC interfaces | ||
529 | # | ||
530 | CONFIG_RTC_INTF_DEV=y | ||
531 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
532 | # CONFIG_RTC_DRV_TEST is not set | ||
533 | |||
534 | # | ||
535 | # I2C RTC drivers | ||
536 | # | ||
537 | # CONFIG_RTC_DRV_DS1307 is not set | ||
538 | # CONFIG_RTC_DRV_DS1374 is not set | ||
539 | # CONFIG_RTC_DRV_DS1672 is not set | ||
540 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
541 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
542 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
543 | # CONFIG_RTC_DRV_X1205 is not set | ||
544 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
545 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
546 | # CONFIG_RTC_DRV_M41T80 is not set | ||
547 | # CONFIG_RTC_DRV_S35390A is not set | ||
548 | # CONFIG_RTC_DRV_FM3130 is not set | ||
549 | # CONFIG_RTC_DRV_RX8581 is not set | ||
550 | |||
551 | # | ||
552 | # SPI RTC drivers | ||
553 | # | ||
554 | |||
555 | # | ||
556 | # Platform RTC drivers | ||
557 | # | ||
558 | # CONFIG_RTC_DRV_DS1286 is not set | ||
559 | # CONFIG_RTC_DRV_DS1511 is not set | ||
560 | # CONFIG_RTC_DRV_DS1553 is not set | ||
561 | # CONFIG_RTC_DRV_DS1742 is not set | ||
562 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
563 | # CONFIG_RTC_DRV_M48T86 is not set | ||
564 | # CONFIG_RTC_DRV_M48T35 is not set | ||
565 | # CONFIG_RTC_DRV_M48T59 is not set | ||
566 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
567 | # CONFIG_RTC_DRV_V3020 is not set | ||
568 | |||
569 | # | ||
570 | # on-CPU RTC drivers | ||
571 | # | ||
572 | CONFIG_RTC_DRV_SH=y | ||
573 | # CONFIG_DMADEVICES is not set | ||
574 | # CONFIG_AUXDISPLAY is not set | ||
575 | CONFIG_UIO=y | ||
576 | # CONFIG_UIO_PDRV is not set | ||
577 | CONFIG_UIO_PDRV_GENIRQ=y | ||
578 | # CONFIG_UIO_SMX is not set | ||
579 | # CONFIG_UIO_SERCOS3 is not set | ||
580 | # CONFIG_STAGING is not set | ||
581 | |||
582 | # | ||
583 | # File systems | ||
584 | # | ||
585 | # CONFIG_EXT2_FS is not set | ||
586 | # CONFIG_EXT3_FS is not set | ||
587 | # CONFIG_EXT4_FS is not set | ||
588 | # CONFIG_REISERFS_FS is not set | ||
589 | # CONFIG_JFS_FS is not set | ||
590 | # CONFIG_FS_POSIX_ACL is not set | ||
591 | CONFIG_FILE_LOCKING=y | ||
592 | # CONFIG_XFS_FS is not set | ||
593 | # CONFIG_BTRFS_FS is not set | ||
594 | # CONFIG_DNOTIFY is not set | ||
595 | # CONFIG_INOTIFY is not set | ||
596 | # CONFIG_QUOTA is not set | ||
597 | # CONFIG_AUTOFS_FS is not set | ||
598 | # CONFIG_AUTOFS4_FS is not set | ||
599 | # CONFIG_FUSE_FS is not set | ||
600 | |||
601 | # | ||
602 | # Caches | ||
603 | # | ||
604 | # CONFIG_FSCACHE is not set | ||
605 | |||
606 | # | ||
607 | # CD-ROM/DVD Filesystems | ||
608 | # | ||
609 | # CONFIG_ISO9660_FS is not set | ||
610 | # CONFIG_UDF_FS is not set | ||
611 | |||
612 | # | ||
613 | # DOS/FAT/NT Filesystems | ||
614 | # | ||
615 | # CONFIG_MSDOS_FS is not set | ||
616 | # CONFIG_VFAT_FS is not set | ||
617 | # CONFIG_NTFS_FS is not set | ||
618 | |||
619 | # | ||
620 | # Pseudo filesystems | ||
621 | # | ||
622 | # CONFIG_PROC_FS is not set | ||
623 | # CONFIG_SYSFS is not set | ||
624 | # CONFIG_TMPFS is not set | ||
625 | # CONFIG_HUGETLBFS is not set | ||
626 | # CONFIG_HUGETLB_PAGE is not set | ||
627 | # CONFIG_MISC_FILESYSTEMS is not set | ||
628 | |||
629 | # | ||
630 | # Partition Types | ||
631 | # | ||
632 | # CONFIG_PARTITION_ADVANCED is not set | ||
633 | CONFIG_MSDOS_PARTITION=y | ||
634 | # CONFIG_NLS is not set | ||
635 | |||
636 | # | ||
637 | # Kernel hacking | ||
638 | # | ||
639 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
640 | # CONFIG_PRINTK_TIME is not set | ||
641 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
642 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
643 | CONFIG_FRAME_WARN=1024 | ||
644 | # CONFIG_MAGIC_SYSRQ is not set | ||
645 | # CONFIG_UNUSED_SYMBOLS is not set | ||
646 | CONFIG_DEBUG_FS=y | ||
647 | # CONFIG_HEADERS_CHECK is not set | ||
648 | # CONFIG_DEBUG_KERNEL is not set | ||
649 | CONFIG_STACKTRACE=y | ||
650 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
651 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
652 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
653 | # CONFIG_LATENCYTOP is not set | ||
654 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
655 | CONFIG_NOP_TRACER=y | ||
656 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
657 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
658 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | ||
659 | CONFIG_RING_BUFFER=y | ||
660 | CONFIG_TRACING=y | ||
661 | CONFIG_TRACING_SUPPORT=y | ||
662 | |||
663 | # | ||
664 | # Tracers | ||
665 | # | ||
666 | # CONFIG_FUNCTION_TRACER is not set | ||
667 | # CONFIG_IRQSOFF_TRACER is not set | ||
668 | # CONFIG_SCHED_TRACER is not set | ||
669 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
670 | # CONFIG_EVENT_TRACER is not set | ||
671 | # CONFIG_BOOT_TRACER is not set | ||
672 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
673 | # CONFIG_STACK_TRACER is not set | ||
674 | # CONFIG_KMEMTRACE is not set | ||
675 | # CONFIG_WORKQUEUE_TRACER is not set | ||
676 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
677 | # CONFIG_DYNAMIC_DEBUG is not set | ||
678 | # CONFIG_DMA_API_DEBUG is not set | ||
679 | # CONFIG_SAMPLES is not set | ||
680 | CONFIG_HAVE_ARCH_KGDB=y | ||
681 | # CONFIG_SH_STANDARD_BIOS is not set | ||
682 | # CONFIG_EARLY_SCIF_CONSOLE is not set | ||
683 | # CONFIG_MORE_COMPILE_OPTIONS is not set | ||
684 | |||
685 | # | ||
686 | # Security options | ||
687 | # | ||
688 | # CONFIG_KEYS is not set | ||
689 | # CONFIG_SECURITYFS is not set | ||
690 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
691 | # CONFIG_CRYPTO is not set | ||
692 | CONFIG_BINARY_PRINTF=y | ||
693 | |||
694 | # | ||
695 | # Library routines | ||
696 | # | ||
697 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
698 | # CONFIG_CRC_CCITT is not set | ||
699 | # CONFIG_CRC16 is not set | ||
700 | # CONFIG_CRC_T10DIF is not set | ||
701 | # CONFIG_CRC_ITU_T is not set | ||
702 | # CONFIG_CRC32 is not set | ||
703 | # CONFIG_CRC7 is not set | ||
704 | # CONFIG_LIBCRC32C is not set | ||
705 | CONFIG_HAS_IOMEM=y | ||
706 | CONFIG_HAS_IOPORT=y | ||
707 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/sh/configs/sh7763rdp_defconfig b/arch/sh/configs/sh7763rdp_defconfig index c79bb84ec305..f77bc7998d2f 100644 --- a/arch/sh/configs/sh7763rdp_defconfig +++ b/arch/sh/configs/sh7763rdp_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:10:57 2009 | 4 | # Mon Apr 27 13:10:12 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -78,6 +79,7 @@ CONFIG_UID16=y | |||
78 | # CONFIG_SYSCTL_SYSCALL is not set | 79 | # CONFIG_SYSCTL_SYSCALL is not set |
79 | CONFIG_KALLSYMS=y | 80 | CONFIG_KALLSYMS=y |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
82 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 83 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 84 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 85 | CONFIG_BUG=y |
@@ -106,6 +108,8 @@ CONFIG_HAVE_KPROBES=y | |||
106 | CONFIG_HAVE_KRETPROBES=y | 108 | CONFIG_HAVE_KRETPROBES=y |
107 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 109 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
108 | CONFIG_HAVE_CLK=y | 110 | CONFIG_HAVE_CLK=y |
111 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
112 | # CONFIG_SLOW_WORK is not set | ||
109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 113 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
110 | CONFIG_SLABINFO=y | 114 | CONFIG_SLABINFO=y |
111 | CONFIG_RT_MUTEXES=y | 115 | CONFIG_RT_MUTEXES=y |
@@ -117,7 +121,6 @@ CONFIG_MODULES=y | |||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 121 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
118 | CONFIG_BLOCK=y | 122 | CONFIG_BLOCK=y |
119 | # CONFIG_LBD is not set | 123 | # CONFIG_LBD is not set |
120 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | 124 | # CONFIG_BLK_DEV_BSG is not set |
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | 125 | # CONFIG_BLK_DEV_INTEGRITY is not set |
123 | 126 | ||
@@ -164,6 +167,7 @@ CONFIG_CPU_SH4A=y | |||
164 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
167 | CONFIG_CPU_SUBTYPE_SH7763=y | 171 | CONFIG_CPU_SUBTYPE_SH7763=y |
168 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 173 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -173,8 +177,6 @@ CONFIG_CPU_SUBTYPE_SH7763=y | |||
173 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
174 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
175 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 179 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
176 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
177 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
178 | 180 | ||
179 | # | 181 | # |
180 | # Memory management options | 182 | # Memory management options |
@@ -555,6 +557,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
555 | CONFIG_SCSI_LOWLEVEL=y | 557 | CONFIG_SCSI_LOWLEVEL=y |
556 | # CONFIG_ISCSI_TCP is not set | 558 | # CONFIG_ISCSI_TCP is not set |
557 | # CONFIG_LIBFC is not set | 559 | # CONFIG_LIBFC is not set |
560 | # CONFIG_LIBFCOE is not set | ||
558 | # CONFIG_SCSI_DEBUG is not set | 561 | # CONFIG_SCSI_DEBUG is not set |
559 | # CONFIG_SCSI_DH is not set | 562 | # CONFIG_SCSI_DH is not set |
560 | # CONFIG_SCSI_OSD_INITIATOR is not set | 563 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -941,6 +944,7 @@ CONFIG_EXT2_FS=y | |||
941 | # CONFIG_EXT2_FS_XATTR is not set | 944 | # CONFIG_EXT2_FS_XATTR is not set |
942 | # CONFIG_EXT2_FS_XIP is not set | 945 | # CONFIG_EXT2_FS_XIP is not set |
943 | CONFIG_EXT3_FS=y | 946 | CONFIG_EXT3_FS=y |
947 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
944 | CONFIG_EXT3_FS_XATTR=y | 948 | CONFIG_EXT3_FS_XATTR=y |
945 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 949 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
946 | # CONFIG_EXT3_FS_SECURITY is not set | 950 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -965,6 +969,11 @@ CONFIG_AUTOFS4_FS=y | |||
965 | CONFIG_GENERIC_ACL=y | 969 | CONFIG_GENERIC_ACL=y |
966 | 970 | ||
967 | # | 971 | # |
972 | # Caches | ||
973 | # | ||
974 | # CONFIG_FSCACHE is not set | ||
975 | |||
976 | # | ||
968 | # CD-ROM/DVD Filesystems | 977 | # CD-ROM/DVD Filesystems |
969 | # | 978 | # |
970 | # CONFIG_ISO9660_FS is not set | 979 | # CONFIG_ISO9660_FS is not set |
@@ -1012,6 +1021,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1012 | # CONFIG_ROMFS_FS is not set | 1021 | # CONFIG_ROMFS_FS is not set |
1013 | # CONFIG_SYSV_FS is not set | 1022 | # CONFIG_SYSV_FS is not set |
1014 | # CONFIG_UFS_FS is not set | 1023 | # CONFIG_UFS_FS is not set |
1024 | # CONFIG_NILFS2_FS is not set | ||
1015 | CONFIG_NETWORK_FILESYSTEMS=y | 1025 | CONFIG_NETWORK_FILESYSTEMS=y |
1016 | CONFIG_NFS_FS=y | 1026 | CONFIG_NFS_FS=y |
1017 | # CONFIG_NFS_V3 is not set | 1027 | # CONFIG_NFS_V3 is not set |
@@ -1100,11 +1110,25 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1100 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1110 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1101 | CONFIG_RING_BUFFER=y | 1111 | CONFIG_RING_BUFFER=y |
1102 | CONFIG_TRACING=y | 1112 | CONFIG_TRACING=y |
1113 | CONFIG_TRACING_SUPPORT=y | ||
1103 | 1114 | ||
1104 | # | 1115 | # |
1105 | # Tracers | 1116 | # Tracers |
1106 | # | 1117 | # |
1118 | # CONFIG_FUNCTION_TRACER is not set | ||
1119 | # CONFIG_IRQSOFF_TRACER is not set | ||
1120 | # CONFIG_SCHED_TRACER is not set | ||
1121 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1122 | # CONFIG_EVENT_TRACER is not set | ||
1123 | # CONFIG_BOOT_TRACER is not set | ||
1124 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1125 | # CONFIG_STACK_TRACER is not set | ||
1126 | # CONFIG_KMEMTRACE is not set | ||
1127 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1128 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1129 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1107 | # CONFIG_DYNAMIC_DEBUG is not set | 1130 | # CONFIG_DYNAMIC_DEBUG is not set |
1131 | # CONFIG_DMA_API_DEBUG is not set | ||
1108 | # CONFIG_SAMPLES is not set | 1132 | # CONFIG_SAMPLES is not set |
1109 | CONFIG_HAVE_ARCH_KGDB=y | 1133 | CONFIG_HAVE_ARCH_KGDB=y |
1110 | # CONFIG_SH_STANDARD_BIOS is not set | 1134 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1204,6 +1228,7 @@ CONFIG_CRYPTO=y | |||
1204 | # | 1228 | # |
1205 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1229 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1206 | CONFIG_CRYPTO_HW=y | 1230 | CONFIG_CRYPTO_HW=y |
1231 | CONFIG_BINARY_PRINTF=y | ||
1207 | 1232 | ||
1208 | # | 1233 | # |
1209 | # Library routines | 1234 | # Library routines |
diff --git a/arch/sh/configs/sh7770_generic_defconfig b/arch/sh/configs/sh7770_generic_defconfig new file mode 100644 index 000000000000..d6489b46ca5b --- /dev/null +++ b/arch/sh/configs/sh7770_generic_defconfig | |||
@@ -0,0 +1,700 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.30-rc4 | ||
4 | # Tue May 12 14:48:21 2009 | ||
5 | # | ||
6 | CONFIG_SUPERH=y | ||
7 | CONFIG_SUPERH32=y | ||
8 | # CONFIG_SUPERH64 is not set | ||
9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | ||
10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
11 | CONFIG_GENERIC_BUG=y | ||
12 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
13 | CONFIG_GENERIC_HWEIGHT=y | ||
14 | CONFIG_GENERIC_HARDIRQS=y | ||
15 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | # CONFIG_GENERIC_GPIO is not set | ||
18 | CONFIG_GENERIC_TIME=y | ||
19 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
20 | # CONFIG_ARCH_SUSPEND_POSSIBLE is not set | ||
21 | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | ||
22 | CONFIG_SYS_SUPPORTS_TMU=y | ||
23 | CONFIG_STACKTRACE_SUPPORT=y | ||
24 | CONFIG_LOCKDEP_SUPPORT=y | ||
25 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
26 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
27 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
28 | CONFIG_ARCH_NO_VIRT_TO_BUS=y | ||
29 | CONFIG_ARCH_HAS_DEFAULT_IDLE=y | ||
30 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
31 | |||
32 | # | ||
33 | # General setup | ||
34 | # | ||
35 | CONFIG_EXPERIMENTAL=y | ||
36 | CONFIG_BROKEN_ON_SMP=y | ||
37 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
38 | CONFIG_LOCALVERSION="" | ||
39 | # CONFIG_LOCALVERSION_AUTO is not set | ||
40 | CONFIG_SWAP=y | ||
41 | CONFIG_SYSVIPC=y | ||
42 | CONFIG_SYSVIPC_SYSCTL=y | ||
43 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
44 | |||
45 | # | ||
46 | # RCU Subsystem | ||
47 | # | ||
48 | # CONFIG_CLASSIC_RCU is not set | ||
49 | CONFIG_TREE_RCU=y | ||
50 | # CONFIG_PREEMPT_RCU is not set | ||
51 | # CONFIG_RCU_TRACE is not set | ||
52 | CONFIG_RCU_FANOUT=32 | ||
53 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
54 | # CONFIG_TREE_RCU_TRACE is not set | ||
55 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
56 | # CONFIG_IKCONFIG is not set | ||
57 | CONFIG_LOG_BUF_SHIFT=17 | ||
58 | CONFIG_GROUP_SCHED=y | ||
59 | CONFIG_FAIR_GROUP_SCHED=y | ||
60 | CONFIG_RT_GROUP_SCHED=y | ||
61 | CONFIG_USER_SCHED=y | ||
62 | # CONFIG_CGROUP_SCHED is not set | ||
63 | CONFIG_CGROUPS=y | ||
64 | # CONFIG_CGROUP_DEBUG is not set | ||
65 | # CONFIG_CGROUP_NS is not set | ||
66 | # CONFIG_CGROUP_FREEZER is not set | ||
67 | # CONFIG_CGROUP_DEVICE is not set | ||
68 | # CONFIG_CPUSETS is not set | ||
69 | # CONFIG_CGROUP_CPUACCT is not set | ||
70 | # CONFIG_RESOURCE_COUNTERS is not set | ||
71 | # CONFIG_RELAY is not set | ||
72 | # CONFIG_NAMESPACES is not set | ||
73 | # CONFIG_BLK_DEV_INITRD is not set | ||
74 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
75 | CONFIG_SYSCTL=y | ||
76 | CONFIG_ANON_INODES=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | # CONFIG_UID16 is not set | ||
79 | CONFIG_SYSCTL_SYSCALL=y | ||
80 | CONFIG_KALLSYMS=y | ||
81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
82 | # CONFIG_STRIP_ASM_SYMS is not set | ||
83 | CONFIG_HOTPLUG=y | ||
84 | CONFIG_PRINTK=y | ||
85 | CONFIG_BUG=y | ||
86 | CONFIG_ELF_CORE=y | ||
87 | CONFIG_BASE_FULL=y | ||
88 | CONFIG_FUTEX=y | ||
89 | CONFIG_EPOLL=y | ||
90 | CONFIG_SIGNALFD=y | ||
91 | CONFIG_TIMERFD=y | ||
92 | CONFIG_EVENTFD=y | ||
93 | CONFIG_SHMEM=y | ||
94 | CONFIG_AIO=y | ||
95 | CONFIG_VM_EVENT_COUNTERS=y | ||
96 | # CONFIG_COMPAT_BRK is not set | ||
97 | # CONFIG_SLAB is not set | ||
98 | CONFIG_SLUB=y | ||
99 | # CONFIG_SLOB is not set | ||
100 | CONFIG_PROFILING=y | ||
101 | CONFIG_TRACEPOINTS=y | ||
102 | # CONFIG_MARKERS is not set | ||
103 | CONFIG_OPROFILE=y | ||
104 | CONFIG_HAVE_OPROFILE=y | ||
105 | CONFIG_HAVE_IOREMAP_PROT=y | ||
106 | CONFIG_HAVE_KPROBES=y | ||
107 | CONFIG_HAVE_KRETPROBES=y | ||
108 | CONFIG_HAVE_ARCH_TRACEHOOK=y | ||
109 | CONFIG_HAVE_CLK=y | ||
110 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
111 | # CONFIG_SLOW_WORK is not set | ||
112 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
113 | CONFIG_RT_MUTEXES=y | ||
114 | CONFIG_BASE_SMALL=0 | ||
115 | # CONFIG_MODULES is not set | ||
116 | CONFIG_BLOCK=y | ||
117 | # CONFIG_LBD is not set | ||
118 | # CONFIG_BLK_DEV_BSG is not set | ||
119 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
120 | |||
121 | # | ||
122 | # IO Schedulers | ||
123 | # | ||
124 | CONFIG_IOSCHED_NOOP=y | ||
125 | CONFIG_IOSCHED_AS=y | ||
126 | CONFIG_IOSCHED_DEADLINE=y | ||
127 | CONFIG_IOSCHED_CFQ=y | ||
128 | CONFIG_DEFAULT_AS=y | ||
129 | # CONFIG_DEFAULT_DEADLINE is not set | ||
130 | # CONFIG_DEFAULT_CFQ is not set | ||
131 | # CONFIG_DEFAULT_NOOP is not set | ||
132 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
133 | CONFIG_FREEZER=y | ||
134 | |||
135 | # | ||
136 | # System type | ||
137 | # | ||
138 | CONFIG_CPU_SH4=y | ||
139 | CONFIG_CPU_SH4A=y | ||
140 | # CONFIG_CPU_SUBTYPE_SH7619 is not set | ||
141 | # CONFIG_CPU_SUBTYPE_SH7201 is not set | ||
142 | # CONFIG_CPU_SUBTYPE_SH7203 is not set | ||
143 | # CONFIG_CPU_SUBTYPE_SH7206 is not set | ||
144 | # CONFIG_CPU_SUBTYPE_SH7263 is not set | ||
145 | # CONFIG_CPU_SUBTYPE_MXG is not set | ||
146 | # CONFIG_CPU_SUBTYPE_SH7705 is not set | ||
147 | # CONFIG_CPU_SUBTYPE_SH7706 is not set | ||
148 | # CONFIG_CPU_SUBTYPE_SH7707 is not set | ||
149 | # CONFIG_CPU_SUBTYPE_SH7708 is not set | ||
150 | # CONFIG_CPU_SUBTYPE_SH7709 is not set | ||
151 | # CONFIG_CPU_SUBTYPE_SH7710 is not set | ||
152 | # CONFIG_CPU_SUBTYPE_SH7712 is not set | ||
153 | # CONFIG_CPU_SUBTYPE_SH7720 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7721 is not set | ||
155 | # CONFIG_CPU_SUBTYPE_SH7750 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7091 is not set | ||
157 | # CONFIG_CPU_SUBTYPE_SH7750R is not set | ||
158 | # CONFIG_CPU_SUBTYPE_SH7750S is not set | ||
159 | # CONFIG_CPU_SUBTYPE_SH7751 is not set | ||
160 | # CONFIG_CPU_SUBTYPE_SH7751R is not set | ||
161 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | ||
162 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | ||
163 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
165 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | ||
166 | CONFIG_CPU_SUBTYPE_SH7770=y | ||
167 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | ||
168 | # CONFIG_CPU_SUBTYPE_SH7785 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH7786 is not set | ||
170 | # CONFIG_CPU_SUBTYPE_SHX3 is not set | ||
171 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | ||
172 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | ||
173 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | ||
174 | |||
175 | # | ||
176 | # Memory management options | ||
177 | # | ||
178 | CONFIG_QUICKLIST=y | ||
179 | CONFIG_MMU=y | ||
180 | CONFIG_PAGE_OFFSET=0x80000000 | ||
181 | CONFIG_MEMORY_START=0x08000000 | ||
182 | CONFIG_MEMORY_SIZE=0x04000000 | ||
183 | CONFIG_29BIT=y | ||
184 | CONFIG_VSYSCALL=y | ||
185 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
186 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | ||
187 | CONFIG_ARCH_SPARSEMEM_DEFAULT=y | ||
188 | CONFIG_MAX_ACTIVE_REGIONS=1 | ||
189 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
190 | CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
191 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
192 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y | ||
193 | CONFIG_PAGE_SIZE_4KB=y | ||
194 | # CONFIG_PAGE_SIZE_8KB is not set | ||
195 | # CONFIG_PAGE_SIZE_16KB is not set | ||
196 | # CONFIG_PAGE_SIZE_64KB is not set | ||
197 | CONFIG_SELECT_MEMORY_MODEL=y | ||
198 | # CONFIG_FLATMEM_MANUAL is not set | ||
199 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
200 | CONFIG_SPARSEMEM_MANUAL=y | ||
201 | CONFIG_SPARSEMEM=y | ||
202 | CONFIG_HAVE_MEMORY_PRESENT=y | ||
203 | CONFIG_SPARSEMEM_STATIC=y | ||
204 | |||
205 | # | ||
206 | # Memory hotplug is currently incompatible with Software Suspend | ||
207 | # | ||
208 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
209 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
210 | CONFIG_MIGRATION=y | ||
211 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
212 | CONFIG_ZONE_DMA_FLAG=0 | ||
213 | CONFIG_NR_QUICK=2 | ||
214 | CONFIG_UNEVICTABLE_LRU=y | ||
215 | CONFIG_HAVE_MLOCK=y | ||
216 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
217 | |||
218 | # | ||
219 | # Cache configuration | ||
220 | # | ||
221 | CONFIG_CACHE_WRITEBACK=y | ||
222 | # CONFIG_CACHE_WRITETHROUGH is not set | ||
223 | # CONFIG_CACHE_OFF is not set | ||
224 | |||
225 | # | ||
226 | # Processor features | ||
227 | # | ||
228 | CONFIG_CPU_LITTLE_ENDIAN=y | ||
229 | # CONFIG_CPU_BIG_ENDIAN is not set | ||
230 | CONFIG_SH_FPU=y | ||
231 | # CONFIG_SH_STORE_QUEUES is not set | ||
232 | CONFIG_CPU_HAS_INTEVT=y | ||
233 | CONFIG_CPU_HAS_SR_RB=y | ||
234 | CONFIG_CPU_HAS_FPU=y | ||
235 | |||
236 | # | ||
237 | # Board support | ||
238 | # | ||
239 | |||
240 | # | ||
241 | # Timer and clock configuration | ||
242 | # | ||
243 | CONFIG_SH_TMU=y | ||
244 | CONFIG_SH_TIMER_IRQ=16 | ||
245 | CONFIG_SH_PCLK_FREQ=41666666 | ||
246 | CONFIG_TICK_ONESHOT=y | ||
247 | CONFIG_NO_HZ=y | ||
248 | CONFIG_HIGH_RES_TIMERS=y | ||
249 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
250 | |||
251 | # | ||
252 | # CPU Frequency scaling | ||
253 | # | ||
254 | CONFIG_CPU_FREQ=y | ||
255 | CONFIG_CPU_FREQ_TABLE=y | ||
256 | # CONFIG_CPU_FREQ_DEBUG is not set | ||
257 | CONFIG_CPU_FREQ_STAT=y | ||
258 | # CONFIG_CPU_FREQ_STAT_DETAILS is not set | ||
259 | CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y | ||
260 | # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set | ||
261 | # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set | ||
262 | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
263 | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
264 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
265 | # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set | ||
266 | # CONFIG_CPU_FREQ_GOV_USERSPACE is not set | ||
267 | # CONFIG_CPU_FREQ_GOV_ONDEMAND is not set | ||
268 | # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set | ||
269 | CONFIG_SH_CPU_FREQ=y | ||
270 | |||
271 | # | ||
272 | # DMA support | ||
273 | # | ||
274 | # CONFIG_SH_DMA is not set | ||
275 | |||
276 | # | ||
277 | # Companion Chips | ||
278 | # | ||
279 | |||
280 | # | ||
281 | # Additional SuperH Device Drivers | ||
282 | # | ||
283 | # CONFIG_HEARTBEAT is not set | ||
284 | # CONFIG_PUSH_SWITCH is not set | ||
285 | |||
286 | # | ||
287 | # Kernel features | ||
288 | # | ||
289 | # CONFIG_HZ_100 is not set | ||
290 | CONFIG_HZ_250=y | ||
291 | # CONFIG_HZ_300 is not set | ||
292 | # CONFIG_HZ_1000 is not set | ||
293 | CONFIG_HZ=250 | ||
294 | CONFIG_SCHED_HRTICK=y | ||
295 | CONFIG_KEXEC=y | ||
296 | # CONFIG_CRASH_DUMP is not set | ||
297 | CONFIG_KEXEC_JUMP=y | ||
298 | CONFIG_PREEMPT_NONE=y | ||
299 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
300 | # CONFIG_PREEMPT is not set | ||
301 | CONFIG_GUSA=y | ||
302 | |||
303 | # | ||
304 | # Boot options | ||
305 | # | ||
306 | CONFIG_ZERO_PAGE_OFFSET=0x00001000 | ||
307 | CONFIG_BOOT_LINK_OFFSET=0x00800000 | ||
308 | CONFIG_ENTRY_OFFSET=0x00001000 | ||
309 | # CONFIG_CMDLINE_BOOL is not set | ||
310 | |||
311 | # | ||
312 | # Bus options | ||
313 | # | ||
314 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
315 | # CONFIG_PCCARD is not set | ||
316 | |||
317 | # | ||
318 | # Executable file formats | ||
319 | # | ||
320 | CONFIG_BINFMT_ELF=y | ||
321 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
322 | # CONFIG_HAVE_AOUT is not set | ||
323 | # CONFIG_BINFMT_MISC is not set | ||
324 | |||
325 | # | ||
326 | # Power management options (EXPERIMENTAL) | ||
327 | # | ||
328 | CONFIG_PM=y | ||
329 | # CONFIG_PM_DEBUG is not set | ||
330 | CONFIG_PM_SLEEP=y | ||
331 | CONFIG_HIBERNATION=y | ||
332 | CONFIG_PM_STD_PARTITION="" | ||
333 | CONFIG_CPU_IDLE=y | ||
334 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
335 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
336 | # CONFIG_NET is not set | ||
337 | |||
338 | # | ||
339 | # Device Drivers | ||
340 | # | ||
341 | |||
342 | # | ||
343 | # Generic Driver Options | ||
344 | # | ||
345 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
346 | CONFIG_STANDALONE=y | ||
347 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
348 | CONFIG_FW_LOADER=y | ||
349 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
350 | CONFIG_EXTRA_FIRMWARE="" | ||
351 | # CONFIG_SYS_HYPERVISOR is not set | ||
352 | # CONFIG_MTD is not set | ||
353 | # CONFIG_PARPORT is not set | ||
354 | CONFIG_BLK_DEV=y | ||
355 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
356 | # CONFIG_BLK_DEV_LOOP is not set | ||
357 | # CONFIG_BLK_DEV_RAM is not set | ||
358 | # CONFIG_CDROM_PKTCDVD is not set | ||
359 | # CONFIG_BLK_DEV_HD is not set | ||
360 | # CONFIG_MISC_DEVICES is not set | ||
361 | CONFIG_HAVE_IDE=y | ||
362 | # CONFIG_IDE is not set | ||
363 | |||
364 | # | ||
365 | # SCSI device support | ||
366 | # | ||
367 | # CONFIG_RAID_ATTRS is not set | ||
368 | # CONFIG_SCSI is not set | ||
369 | # CONFIG_SCSI_DMA is not set | ||
370 | # CONFIG_SCSI_NETLINK is not set | ||
371 | # CONFIG_ATA is not set | ||
372 | # CONFIG_MD is not set | ||
373 | # CONFIG_PHONE is not set | ||
374 | |||
375 | # | ||
376 | # Input device support | ||
377 | # | ||
378 | # CONFIG_INPUT is not set | ||
379 | |||
380 | # | ||
381 | # Hardware I/O ports | ||
382 | # | ||
383 | # CONFIG_SERIO is not set | ||
384 | # CONFIG_GAMEPORT is not set | ||
385 | |||
386 | # | ||
387 | # Character devices | ||
388 | # | ||
389 | # CONFIG_VT is not set | ||
390 | # CONFIG_DEVKMEM is not set | ||
391 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
392 | |||
393 | # | ||
394 | # Serial drivers | ||
395 | # | ||
396 | # CONFIG_SERIAL_8250 is not set | ||
397 | |||
398 | # | ||
399 | # Non-8250 serial port support | ||
400 | # | ||
401 | CONFIG_SERIAL_SH_SCI=y | ||
402 | CONFIG_SERIAL_SH_SCI_NR_UARTS=6 | ||
403 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
404 | CONFIG_SERIAL_CORE=y | ||
405 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
406 | # CONFIG_UNIX98_PTYS is not set | ||
407 | # CONFIG_LEGACY_PTYS is not set | ||
408 | # CONFIG_IPMI_HANDLER is not set | ||
409 | # CONFIG_HW_RANDOM is not set | ||
410 | # CONFIG_R3964 is not set | ||
411 | # CONFIG_RAW_DRIVER is not set | ||
412 | # CONFIG_TCG_TPM is not set | ||
413 | CONFIG_I2C=y | ||
414 | CONFIG_I2C_BOARDINFO=y | ||
415 | CONFIG_I2C_CHARDEV=y | ||
416 | CONFIG_I2C_HELPER_AUTO=y | ||
417 | |||
418 | # | ||
419 | # I2C Hardware Bus support | ||
420 | # | ||
421 | |||
422 | # | ||
423 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
424 | # | ||
425 | # CONFIG_I2C_OCORES is not set | ||
426 | CONFIG_I2C_SH_MOBILE=y | ||
427 | # CONFIG_I2C_SIMTEC is not set | ||
428 | |||
429 | # | ||
430 | # External I2C/SMBus adapter drivers | ||
431 | # | ||
432 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
433 | # CONFIG_I2C_TAOS_EVM is not set | ||
434 | |||
435 | # | ||
436 | # Other I2C/SMBus bus drivers | ||
437 | # | ||
438 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
439 | |||
440 | # | ||
441 | # Miscellaneous I2C Chip support | ||
442 | # | ||
443 | # CONFIG_DS1682 is not set | ||
444 | # CONFIG_SENSORS_PCF8574 is not set | ||
445 | # CONFIG_PCF8575 is not set | ||
446 | # CONFIG_SENSORS_PCA9539 is not set | ||
447 | # CONFIG_SENSORS_MAX6875 is not set | ||
448 | # CONFIG_SENSORS_TSL2550 is not set | ||
449 | # CONFIG_I2C_DEBUG_CORE is not set | ||
450 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
451 | # CONFIG_I2C_DEBUG_BUS is not set | ||
452 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
453 | # CONFIG_SPI is not set | ||
454 | # CONFIG_W1 is not set | ||
455 | # CONFIG_POWER_SUPPLY is not set | ||
456 | # CONFIG_HWMON is not set | ||
457 | # CONFIG_THERMAL is not set | ||
458 | # CONFIG_THERMAL_HWMON is not set | ||
459 | # CONFIG_WATCHDOG is not set | ||
460 | CONFIG_SSB_POSSIBLE=y | ||
461 | |||
462 | # | ||
463 | # Sonics Silicon Backplane | ||
464 | # | ||
465 | # CONFIG_SSB is not set | ||
466 | |||
467 | # | ||
468 | # Multifunction device drivers | ||
469 | # | ||
470 | # CONFIG_MFD_CORE is not set | ||
471 | # CONFIG_MFD_SM501 is not set | ||
472 | # CONFIG_HTC_PASIC3 is not set | ||
473 | # CONFIG_TWL4030_CORE is not set | ||
474 | # CONFIG_MFD_TMIO is not set | ||
475 | # CONFIG_PMIC_DA903X is not set | ||
476 | # CONFIG_MFD_WM8400 is not set | ||
477 | # CONFIG_MFD_WM8350_I2C is not set | ||
478 | # CONFIG_MFD_PCF50633 is not set | ||
479 | # CONFIG_REGULATOR is not set | ||
480 | |||
481 | # | ||
482 | # Multimedia devices | ||
483 | # | ||
484 | |||
485 | # | ||
486 | # Multimedia core support | ||
487 | # | ||
488 | # CONFIG_VIDEO_DEV is not set | ||
489 | # CONFIG_VIDEO_MEDIA is not set | ||
490 | |||
491 | # | ||
492 | # Multimedia drivers | ||
493 | # | ||
494 | # CONFIG_DAB is not set | ||
495 | |||
496 | # | ||
497 | # Graphics support | ||
498 | # | ||
499 | # CONFIG_VGASTATE is not set | ||
500 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
501 | # CONFIG_FB is not set | ||
502 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
503 | |||
504 | # | ||
505 | # Display device support | ||
506 | # | ||
507 | # CONFIG_DISPLAY_SUPPORT is not set | ||
508 | # CONFIG_SOUND is not set | ||
509 | # CONFIG_USB_SUPPORT is not set | ||
510 | # CONFIG_MMC is not set | ||
511 | # CONFIG_MEMSTICK is not set | ||
512 | # CONFIG_NEW_LEDS is not set | ||
513 | # CONFIG_ACCESSIBILITY is not set | ||
514 | CONFIG_RTC_LIB=y | ||
515 | CONFIG_RTC_CLASS=y | ||
516 | CONFIG_RTC_HCTOSYS=y | ||
517 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
518 | # CONFIG_RTC_DEBUG is not set | ||
519 | |||
520 | # | ||
521 | # RTC interfaces | ||
522 | # | ||
523 | CONFIG_RTC_INTF_DEV=y | ||
524 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
525 | # CONFIG_RTC_DRV_TEST is not set | ||
526 | |||
527 | # | ||
528 | # I2C RTC drivers | ||
529 | # | ||
530 | # CONFIG_RTC_DRV_DS1307 is not set | ||
531 | # CONFIG_RTC_DRV_DS1374 is not set | ||
532 | # CONFIG_RTC_DRV_DS1672 is not set | ||
533 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
534 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
535 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
536 | # CONFIG_RTC_DRV_X1205 is not set | ||
537 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
538 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
539 | # CONFIG_RTC_DRV_M41T80 is not set | ||
540 | # CONFIG_RTC_DRV_S35390A is not set | ||
541 | # CONFIG_RTC_DRV_FM3130 is not set | ||
542 | # CONFIG_RTC_DRV_RX8581 is not set | ||
543 | |||
544 | # | ||
545 | # SPI RTC drivers | ||
546 | # | ||
547 | |||
548 | # | ||
549 | # Platform RTC drivers | ||
550 | # | ||
551 | # CONFIG_RTC_DRV_DS1286 is not set | ||
552 | # CONFIG_RTC_DRV_DS1511 is not set | ||
553 | # CONFIG_RTC_DRV_DS1553 is not set | ||
554 | # CONFIG_RTC_DRV_DS1742 is not set | ||
555 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
556 | # CONFIG_RTC_DRV_M48T86 is not set | ||
557 | # CONFIG_RTC_DRV_M48T35 is not set | ||
558 | # CONFIG_RTC_DRV_M48T59 is not set | ||
559 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
560 | # CONFIG_RTC_DRV_V3020 is not set | ||
561 | |||
562 | # | ||
563 | # on-CPU RTC drivers | ||
564 | # | ||
565 | CONFIG_RTC_DRV_SH=y | ||
566 | # CONFIG_RTC_DRV_GENERIC is not set | ||
567 | # CONFIG_DMADEVICES is not set | ||
568 | # CONFIG_AUXDISPLAY is not set | ||
569 | CONFIG_UIO=y | ||
570 | # CONFIG_UIO_PDRV is not set | ||
571 | CONFIG_UIO_PDRV_GENIRQ=y | ||
572 | # CONFIG_UIO_SMX is not set | ||
573 | # CONFIG_UIO_SERCOS3 is not set | ||
574 | # CONFIG_STAGING is not set | ||
575 | |||
576 | # | ||
577 | # File systems | ||
578 | # | ||
579 | # CONFIG_EXT2_FS is not set | ||
580 | # CONFIG_EXT3_FS is not set | ||
581 | # CONFIG_EXT4_FS is not set | ||
582 | # CONFIG_REISERFS_FS is not set | ||
583 | # CONFIG_JFS_FS is not set | ||
584 | # CONFIG_FS_POSIX_ACL is not set | ||
585 | CONFIG_FILE_LOCKING=y | ||
586 | # CONFIG_XFS_FS is not set | ||
587 | # CONFIG_BTRFS_FS is not set | ||
588 | # CONFIG_DNOTIFY is not set | ||
589 | # CONFIG_INOTIFY is not set | ||
590 | # CONFIG_QUOTA is not set | ||
591 | # CONFIG_AUTOFS_FS is not set | ||
592 | # CONFIG_AUTOFS4_FS is not set | ||
593 | # CONFIG_FUSE_FS is not set | ||
594 | |||
595 | # | ||
596 | # Caches | ||
597 | # | ||
598 | # CONFIG_FSCACHE is not set | ||
599 | |||
600 | # | ||
601 | # CD-ROM/DVD Filesystems | ||
602 | # | ||
603 | # CONFIG_ISO9660_FS is not set | ||
604 | # CONFIG_UDF_FS is not set | ||
605 | |||
606 | # | ||
607 | # DOS/FAT/NT Filesystems | ||
608 | # | ||
609 | # CONFIG_MSDOS_FS is not set | ||
610 | # CONFIG_VFAT_FS is not set | ||
611 | # CONFIG_NTFS_FS is not set | ||
612 | |||
613 | # | ||
614 | # Pseudo filesystems | ||
615 | # | ||
616 | # CONFIG_PROC_FS is not set | ||
617 | # CONFIG_SYSFS is not set | ||
618 | # CONFIG_TMPFS is not set | ||
619 | # CONFIG_HUGETLBFS is not set | ||
620 | # CONFIG_HUGETLB_PAGE is not set | ||
621 | # CONFIG_MISC_FILESYSTEMS is not set | ||
622 | |||
623 | # | ||
624 | # Partition Types | ||
625 | # | ||
626 | # CONFIG_PARTITION_ADVANCED is not set | ||
627 | CONFIG_MSDOS_PARTITION=y | ||
628 | # CONFIG_NLS is not set | ||
629 | |||
630 | # | ||
631 | # Kernel hacking | ||
632 | # | ||
633 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
634 | # CONFIG_PRINTK_TIME is not set | ||
635 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
636 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
637 | CONFIG_FRAME_WARN=1024 | ||
638 | # CONFIG_MAGIC_SYSRQ is not set | ||
639 | # CONFIG_UNUSED_SYMBOLS is not set | ||
640 | CONFIG_DEBUG_FS=y | ||
641 | # CONFIG_HEADERS_CHECK is not set | ||
642 | # CONFIG_DEBUG_KERNEL is not set | ||
643 | CONFIG_STACKTRACE=y | ||
644 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
645 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
646 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
647 | # CONFIG_LATENCYTOP is not set | ||
648 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
649 | CONFIG_NOP_TRACER=y | ||
650 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
651 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
652 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | ||
653 | CONFIG_RING_BUFFER=y | ||
654 | CONFIG_TRACING=y | ||
655 | CONFIG_TRACING_SUPPORT=y | ||
656 | |||
657 | # | ||
658 | # Tracers | ||
659 | # | ||
660 | # CONFIG_FUNCTION_TRACER is not set | ||
661 | # CONFIG_IRQSOFF_TRACER is not set | ||
662 | # CONFIG_SCHED_TRACER is not set | ||
663 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
664 | # CONFIG_EVENT_TRACER is not set | ||
665 | # CONFIG_BOOT_TRACER is not set | ||
666 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
667 | # CONFIG_STACK_TRACER is not set | ||
668 | # CONFIG_KMEMTRACE is not set | ||
669 | # CONFIG_WORKQUEUE_TRACER is not set | ||
670 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
671 | # CONFIG_DYNAMIC_DEBUG is not set | ||
672 | # CONFIG_DMA_API_DEBUG is not set | ||
673 | # CONFIG_SAMPLES is not set | ||
674 | CONFIG_HAVE_ARCH_KGDB=y | ||
675 | # CONFIG_SH_STANDARD_BIOS is not set | ||
676 | # CONFIG_EARLY_SCIF_CONSOLE is not set | ||
677 | |||
678 | # | ||
679 | # Security options | ||
680 | # | ||
681 | # CONFIG_KEYS is not set | ||
682 | # CONFIG_SECURITYFS is not set | ||
683 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
684 | # CONFIG_CRYPTO is not set | ||
685 | CONFIG_BINARY_PRINTF=y | ||
686 | |||
687 | # | ||
688 | # Library routines | ||
689 | # | ||
690 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
691 | # CONFIG_CRC_CCITT is not set | ||
692 | # CONFIG_CRC16 is not set | ||
693 | # CONFIG_CRC_T10DIF is not set | ||
694 | # CONFIG_CRC_ITU_T is not set | ||
695 | # CONFIG_CRC32 is not set | ||
696 | # CONFIG_CRC7 is not set | ||
697 | # CONFIG_LIBCRC32C is not set | ||
698 | CONFIG_HAS_IOMEM=y | ||
699 | CONFIG_HAS_IOPORT=y | ||
700 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/sh/configs/sh7785lcr_32bit_defconfig b/arch/sh/configs/sh7785lcr_32bit_defconfig index a6cf4505741c..1c55b800d124 100644 --- a/arch/sh/configs/sh7785lcr_32bit_defconfig +++ b/arch/sh/configs/sh7785lcr_32bit_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:12:18 2009 | 4 | # Mon Apr 27 13:10:53 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -79,6 +80,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
79 | CONFIG_KALLSYMS=y | 80 | CONFIG_KALLSYMS=y |
80 | # CONFIG_KALLSYMS_ALL is not set | 81 | # CONFIG_KALLSYMS_ALL is not set |
81 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 82 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
83 | # CONFIG_STRIP_ASM_SYMS is not set | ||
82 | CONFIG_HOTPLUG=y | 84 | CONFIG_HOTPLUG=y |
83 | CONFIG_PRINTK=y | 85 | CONFIG_PRINTK=y |
84 | CONFIG_BUG=y | 86 | CONFIG_BUG=y |
@@ -98,6 +100,7 @@ CONFIG_SLAB=y | |||
98 | # CONFIG_SLUB is not set | 100 | # CONFIG_SLUB is not set |
99 | # CONFIG_SLOB is not set | 101 | # CONFIG_SLOB is not set |
100 | CONFIG_PROFILING=y | 102 | CONFIG_PROFILING=y |
103 | # CONFIG_MARKERS is not set | ||
101 | # CONFIG_OPROFILE is not set | 104 | # CONFIG_OPROFILE is not set |
102 | CONFIG_HAVE_OPROFILE=y | 105 | CONFIG_HAVE_OPROFILE=y |
103 | # CONFIG_KPROBES is not set | 106 | # CONFIG_KPROBES is not set |
@@ -106,6 +109,8 @@ CONFIG_HAVE_KPROBES=y | |||
106 | CONFIG_HAVE_KRETPROBES=y | 109 | CONFIG_HAVE_KRETPROBES=y |
107 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 110 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
108 | CONFIG_HAVE_CLK=y | 111 | CONFIG_HAVE_CLK=y |
112 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
113 | # CONFIG_SLOW_WORK is not set | ||
109 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 114 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
110 | CONFIG_SLABINFO=y | 115 | CONFIG_SLABINFO=y |
111 | CONFIG_RT_MUTEXES=y | 116 | CONFIG_RT_MUTEXES=y |
@@ -118,7 +123,6 @@ CONFIG_MODULE_UNLOAD=y | |||
118 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 123 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
119 | CONFIG_BLOCK=y | 124 | CONFIG_BLOCK=y |
120 | # CONFIG_LBD is not set | 125 | # CONFIG_LBD is not set |
121 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
122 | # CONFIG_BLK_DEV_BSG is not set | 126 | # CONFIG_BLK_DEV_BSG is not set |
123 | # CONFIG_BLK_DEV_INTEGRITY is not set | 127 | # CONFIG_BLK_DEV_INTEGRITY is not set |
124 | 128 | ||
@@ -166,6 +170,7 @@ CONFIG_CPU_SHX2=y | |||
166 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
169 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -175,8 +180,6 @@ CONFIG_CPU_SUBTYPE_SH7785=y | |||
175 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 180 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
176 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 181 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
177 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 182 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
178 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
179 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
180 | 183 | ||
181 | # | 184 | # |
182 | # Memory management options | 185 | # Memory management options |
@@ -310,8 +313,6 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000 | |||
310 | # | 313 | # |
311 | CONFIG_PCI=y | 314 | CONFIG_PCI=y |
312 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 315 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
313 | CONFIG_PCI_AUTO=y | ||
314 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
315 | # CONFIG_PCIEPORTBUS is not set | 316 | # CONFIG_PCIEPORTBUS is not set |
316 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 317 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
317 | CONFIG_PCI_LEGACY=y | 318 | CONFIG_PCI_LEGACY=y |
@@ -672,6 +673,7 @@ CONFIG_NETDEV_1000=y | |||
672 | # CONFIG_E1000E is not set | 673 | # CONFIG_E1000E is not set |
673 | # CONFIG_IP1000 is not set | 674 | # CONFIG_IP1000 is not set |
674 | # CONFIG_IGB is not set | 675 | # CONFIG_IGB is not set |
676 | # CONFIG_IGBVF is not set | ||
675 | # CONFIG_NS83820 is not set | 677 | # CONFIG_NS83820 is not set |
676 | # CONFIG_HAMACHI is not set | 678 | # CONFIG_HAMACHI is not set |
677 | # CONFIG_YELLOWFIN is not set | 679 | # CONFIG_YELLOWFIN is not set |
@@ -1009,15 +1011,17 @@ CONFIG_USB_HID=y | |||
1009 | # | 1011 | # |
1010 | # Special HID drivers | 1012 | # Special HID drivers |
1011 | # | 1013 | # |
1012 | CONFIG_HID_COMPAT=y | ||
1013 | CONFIG_HID_A4TECH=y | 1014 | CONFIG_HID_A4TECH=y |
1014 | CONFIG_HID_APPLE=y | 1015 | CONFIG_HID_APPLE=y |
1015 | CONFIG_HID_BELKIN=y | 1016 | CONFIG_HID_BELKIN=y |
1016 | CONFIG_HID_CHERRY=y | 1017 | CONFIG_HID_CHERRY=y |
1017 | CONFIG_HID_CHICONY=y | 1018 | CONFIG_HID_CHICONY=y |
1018 | CONFIG_HID_CYPRESS=y | 1019 | CONFIG_HID_CYPRESS=y |
1020 | # CONFIG_DRAGONRISE_FF is not set | ||
1019 | CONFIG_HID_EZKEY=y | 1021 | CONFIG_HID_EZKEY=y |
1022 | # CONFIG_HID_KYE is not set | ||
1020 | CONFIG_HID_GYRATION=y | 1023 | CONFIG_HID_GYRATION=y |
1024 | # CONFIG_HID_KENSINGTON is not set | ||
1021 | CONFIG_HID_LOGITECH=y | 1025 | CONFIG_HID_LOGITECH=y |
1022 | # CONFIG_LOGITECH_FF is not set | 1026 | # CONFIG_LOGITECH_FF is not set |
1023 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 1027 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1218,6 +1222,7 @@ CONFIG_EXT2_FS=y | |||
1218 | # CONFIG_EXT2_FS_XATTR is not set | 1222 | # CONFIG_EXT2_FS_XATTR is not set |
1219 | # CONFIG_EXT2_FS_XIP is not set | 1223 | # CONFIG_EXT2_FS_XIP is not set |
1220 | CONFIG_EXT3_FS=y | 1224 | CONFIG_EXT3_FS=y |
1225 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1221 | CONFIG_EXT3_FS_XATTR=y | 1226 | CONFIG_EXT3_FS_XATTR=y |
1222 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1227 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1223 | # CONFIG_EXT3_FS_SECURITY is not set | 1228 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1240,6 +1245,11 @@ CONFIG_INOTIFY_USER=y | |||
1240 | # CONFIG_FUSE_FS is not set | 1245 | # CONFIG_FUSE_FS is not set |
1241 | 1246 | ||
1242 | # | 1247 | # |
1248 | # Caches | ||
1249 | # | ||
1250 | # CONFIG_FSCACHE is not set | ||
1251 | |||
1252 | # | ||
1243 | # CD-ROM/DVD Filesystems | 1253 | # CD-ROM/DVD Filesystems |
1244 | # | 1254 | # |
1245 | # CONFIG_ISO9660_FS is not set | 1255 | # CONFIG_ISO9660_FS is not set |
@@ -1289,6 +1299,7 @@ CONFIG_MINIX_FS=y | |||
1289 | # CONFIG_ROMFS_FS is not set | 1299 | # CONFIG_ROMFS_FS is not set |
1290 | # CONFIG_SYSV_FS is not set | 1300 | # CONFIG_SYSV_FS is not set |
1291 | # CONFIG_UFS_FS is not set | 1301 | # CONFIG_UFS_FS is not set |
1302 | # CONFIG_NILFS2_FS is not set | ||
1292 | CONFIG_NETWORK_FILESYSTEMS=y | 1303 | CONFIG_NETWORK_FILESYSTEMS=y |
1293 | CONFIG_NFS_FS=y | 1304 | CONFIG_NFS_FS=y |
1294 | CONFIG_NFS_V3=y | 1305 | CONFIG_NFS_V3=y |
@@ -1377,6 +1388,9 @@ CONFIG_DEBUG_KERNEL=y | |||
1377 | CONFIG_DETECT_SOFTLOCKUP=y | 1388 | CONFIG_DETECT_SOFTLOCKUP=y |
1378 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1389 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1379 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1390 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1391 | CONFIG_DETECT_HUNG_TASK=y | ||
1392 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1393 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1380 | CONFIG_SCHED_DEBUG=y | 1394 | CONFIG_SCHED_DEBUG=y |
1381 | # CONFIG_SCHEDSTATS is not set | 1395 | # CONFIG_SCHEDSTATS is not set |
1382 | # CONFIG_TIMER_STATS is not set | 1396 | # CONFIG_TIMER_STATS is not set |
@@ -1413,6 +1427,7 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1413 | CONFIG_HAVE_FUNCTION_TRACER=y | 1427 | CONFIG_HAVE_FUNCTION_TRACER=y |
1414 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1428 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1415 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1429 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1430 | CONFIG_TRACING_SUPPORT=y | ||
1416 | 1431 | ||
1417 | # | 1432 | # |
1418 | # Tracers | 1433 | # Tracers |
@@ -1422,9 +1437,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1422 | # CONFIG_PREEMPT_TRACER is not set | 1437 | # CONFIG_PREEMPT_TRACER is not set |
1423 | # CONFIG_SCHED_TRACER is not set | 1438 | # CONFIG_SCHED_TRACER is not set |
1424 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1439 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1440 | # CONFIG_EVENT_TRACER is not set | ||
1425 | # CONFIG_BOOT_TRACER is not set | 1441 | # CONFIG_BOOT_TRACER is not set |
1426 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1442 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1427 | # CONFIG_STACK_TRACER is not set | 1443 | # CONFIG_STACK_TRACER is not set |
1444 | # CONFIG_KMEMTRACE is not set | ||
1445 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1446 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1447 | # CONFIG_DMA_API_DEBUG is not set | ||
1428 | # CONFIG_SAMPLES is not set | 1448 | # CONFIG_SAMPLES is not set |
1429 | CONFIG_HAVE_ARCH_KGDB=y | 1449 | CONFIG_HAVE_ARCH_KGDB=y |
1430 | # CONFIG_KGDB is not set | 1450 | # CONFIG_KGDB is not set |
@@ -1542,6 +1562,7 @@ CONFIG_CRYPTO_DES=y | |||
1542 | # | 1562 | # |
1543 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1563 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1544 | # CONFIG_CRYPTO_HW is not set | 1564 | # CONFIG_CRYPTO_HW is not set |
1565 | # CONFIG_BINARY_PRINTF is not set | ||
1545 | 1566 | ||
1546 | # | 1567 | # |
1547 | # Library routines | 1568 | # Library routines |
diff --git a/arch/sh/configs/sh7785lcr_defconfig b/arch/sh/configs/sh7785lcr_defconfig index e4fac2efc055..4385fe97a780 100644 --- a/arch/sh/configs/sh7785lcr_defconfig +++ b/arch/sh/configs/sh7785lcr_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.30-rc2 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Wed Apr 22 19:17:56 2009 | 4 | # Mon Apr 27 13:11:48 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
@@ -307,8 +307,6 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000 | |||
307 | # | 307 | # |
308 | CONFIG_PCI=y | 308 | CONFIG_PCI=y |
309 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 309 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
310 | CONFIG_PCI_AUTO=y | ||
311 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
312 | # CONFIG_PCIEPORTBUS is not set | 310 | # CONFIG_PCIEPORTBUS is not set |
313 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 311 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
314 | CONFIG_PCI_LEGACY=y | 312 | CONFIG_PCI_LEGACY=y |
diff --git a/arch/sh/configs/shmin_defconfig b/arch/sh/configs/shmin_defconfig index d695e9061874..4e120256ec63 100644 --- a/arch/sh/configs/shmin_defconfig +++ b/arch/sh/configs/shmin_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:19:03 2009 | 4 | # Mon Apr 27 13:12:41 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_FIND_NEXT_BIT=y | 11 | CONFIG_GENERIC_FIND_NEXT_BIT=y |
@@ -63,6 +64,7 @@ CONFIG_EMBEDDED=y | |||
63 | # CONFIG_UID16 is not set | 64 | # CONFIG_UID16 is not set |
64 | # CONFIG_SYSCTL_SYSCALL is not set | 65 | # CONFIG_SYSCTL_SYSCALL is not set |
65 | # CONFIG_KALLSYMS is not set | 66 | # CONFIG_KALLSYMS is not set |
67 | # CONFIG_STRIP_ASM_SYMS is not set | ||
66 | # CONFIG_HOTPLUG is not set | 68 | # CONFIG_HOTPLUG is not set |
67 | CONFIG_PRINTK=y | 69 | CONFIG_PRINTK=y |
68 | # CONFIG_BUG is not set | 70 | # CONFIG_BUG is not set |
@@ -81,12 +83,15 @@ CONFIG_COMPAT_BRK=y | |||
81 | # CONFIG_SLUB is not set | 83 | # CONFIG_SLUB is not set |
82 | CONFIG_SLOB=y | 84 | CONFIG_SLOB=y |
83 | # CONFIG_PROFILING is not set | 85 | # CONFIG_PROFILING is not set |
86 | # CONFIG_MARKERS is not set | ||
84 | CONFIG_HAVE_OPROFILE=y | 87 | CONFIG_HAVE_OPROFILE=y |
85 | CONFIG_HAVE_IOREMAP_PROT=y | 88 | CONFIG_HAVE_IOREMAP_PROT=y |
86 | CONFIG_HAVE_KPROBES=y | 89 | CONFIG_HAVE_KPROBES=y |
87 | CONFIG_HAVE_KRETPROBES=y | 90 | CONFIG_HAVE_KRETPROBES=y |
88 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 91 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
89 | CONFIG_HAVE_CLK=y | 92 | CONFIG_HAVE_CLK=y |
93 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
94 | # CONFIG_SLOW_WORK is not set | ||
90 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 95 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
91 | CONFIG_BASE_SMALL=1 | 96 | CONFIG_BASE_SMALL=1 |
92 | # CONFIG_MODULES is not set | 97 | # CONFIG_MODULES is not set |
@@ -137,6 +142,7 @@ CONFIG_CPU_SUBTYPE_SH7706=y | |||
137 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 142 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
138 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 143 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
139 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 144 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
145 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
140 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 146 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
141 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 147 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
142 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 148 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -146,8 +152,6 @@ CONFIG_CPU_SUBTYPE_SH7706=y | |||
146 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 152 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
147 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 153 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
148 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
149 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
150 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
151 | 155 | ||
152 | # | 156 | # |
153 | # Memory management options | 157 | # Memory management options |
@@ -675,6 +679,11 @@ CONFIG_FILE_LOCKING=y | |||
675 | # CONFIG_FUSE_FS is not set | 679 | # CONFIG_FUSE_FS is not set |
676 | 680 | ||
677 | # | 681 | # |
682 | # Caches | ||
683 | # | ||
684 | # CONFIG_FSCACHE is not set | ||
685 | |||
686 | # | ||
678 | # CD-ROM/DVD Filesystems | 687 | # CD-ROM/DVD Filesystems |
679 | # | 688 | # |
680 | # CONFIG_ISO9660_FS is not set | 689 | # CONFIG_ISO9660_FS is not set |
@@ -718,6 +727,7 @@ CONFIG_CRAMFS=y | |||
718 | # CONFIG_ROMFS_FS is not set | 727 | # CONFIG_ROMFS_FS is not set |
719 | # CONFIG_SYSV_FS is not set | 728 | # CONFIG_SYSV_FS is not set |
720 | # CONFIG_UFS_FS is not set | 729 | # CONFIG_UFS_FS is not set |
730 | # CONFIG_NILFS2_FS is not set | ||
721 | CONFIG_NETWORK_FILESYSTEMS=y | 731 | CONFIG_NETWORK_FILESYSTEMS=y |
722 | CONFIG_NFS_FS=y | 732 | CONFIG_NFS_FS=y |
723 | CONFIG_NFS_V3=y | 733 | CONFIG_NFS_V3=y |
@@ -762,10 +772,22 @@ CONFIG_FRAME_WARN=1024 | |||
762 | CONFIG_HAVE_FUNCTION_TRACER=y | 772 | CONFIG_HAVE_FUNCTION_TRACER=y |
763 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 773 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
764 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 774 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
775 | CONFIG_TRACING_SUPPORT=y | ||
765 | 776 | ||
766 | # | 777 | # |
767 | # Tracers | 778 | # Tracers |
768 | # | 779 | # |
780 | # CONFIG_FUNCTION_TRACER is not set | ||
781 | # CONFIG_IRQSOFF_TRACER is not set | ||
782 | # CONFIG_SCHED_TRACER is not set | ||
783 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
784 | # CONFIG_EVENT_TRACER is not set | ||
785 | # CONFIG_BOOT_TRACER is not set | ||
786 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
787 | # CONFIG_STACK_TRACER is not set | ||
788 | # CONFIG_KMEMTRACE is not set | ||
789 | # CONFIG_WORKQUEUE_TRACER is not set | ||
790 | # CONFIG_DMA_API_DEBUG is not set | ||
769 | # CONFIG_SAMPLES is not set | 791 | # CONFIG_SAMPLES is not set |
770 | CONFIG_HAVE_ARCH_KGDB=y | 792 | CONFIG_HAVE_ARCH_KGDB=y |
771 | CONFIG_SH_STANDARD_BIOS=y | 793 | CONFIG_SH_STANDARD_BIOS=y |
@@ -864,6 +886,7 @@ CONFIG_CRYPTO=y | |||
864 | # | 886 | # |
865 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 887 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
866 | CONFIG_CRYPTO_HW=y | 888 | CONFIG_CRYPTO_HW=y |
889 | # CONFIG_BINARY_PRINTF is not set | ||
867 | 890 | ||
868 | # | 891 | # |
869 | # Library routines | 892 | # Library routines |
diff --git a/arch/sh/configs/shx3_defconfig b/arch/sh/configs/shx3_defconfig index e3651f574399..c088144925fa 100644 --- a/arch/sh/configs/shx3_defconfig +++ b/arch/sh/configs/shx3_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:20:54 2009 | 4 | # Mon Apr 27 13:13:12 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -42,6 +43,7 @@ CONFIG_SWAP=y | |||
42 | CONFIG_SYSVIPC=y | 43 | CONFIG_SYSVIPC=y |
43 | CONFIG_SYSVIPC_SYSCTL=y | 44 | CONFIG_SYSVIPC_SYSCTL=y |
44 | CONFIG_POSIX_MQUEUE=y | 45 | CONFIG_POSIX_MQUEUE=y |
46 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
45 | CONFIG_BSD_PROCESS_ACCT=y | 47 | CONFIG_BSD_PROCESS_ACCT=y |
46 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 48 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
47 | # CONFIG_TASKSTATS is not set | 49 | # CONFIG_TASKSTATS is not set |
@@ -96,6 +98,7 @@ CONFIG_SYSCTL_SYSCALL=y | |||
96 | CONFIG_KALLSYMS=y | 98 | CONFIG_KALLSYMS=y |
97 | CONFIG_KALLSYMS_ALL=y | 99 | CONFIG_KALLSYMS_ALL=y |
98 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 100 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
101 | # CONFIG_STRIP_ASM_SYMS is not set | ||
99 | CONFIG_HOTPLUG=y | 102 | CONFIG_HOTPLUG=y |
100 | CONFIG_PRINTK=y | 103 | CONFIG_PRINTK=y |
101 | CONFIG_BUG=y | 104 | CONFIG_BUG=y |
@@ -126,6 +129,8 @@ CONFIG_HAVE_KRETPROBES=y | |||
126 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 129 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
127 | CONFIG_USE_GENERIC_SMP_HELPERS=y | 130 | CONFIG_USE_GENERIC_SMP_HELPERS=y |
128 | CONFIG_HAVE_CLK=y | 131 | CONFIG_HAVE_CLK=y |
132 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
133 | # CONFIG_SLOW_WORK is not set | ||
129 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 134 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
130 | CONFIG_RT_MUTEXES=y | 135 | CONFIG_RT_MUTEXES=y |
131 | CONFIG_BASE_SMALL=0 | 136 | CONFIG_BASE_SMALL=0 |
@@ -138,7 +143,6 @@ CONFIG_MODULE_UNLOAD=y | |||
138 | CONFIG_STOP_MACHINE=y | 143 | CONFIG_STOP_MACHINE=y |
139 | CONFIG_BLOCK=y | 144 | CONFIG_BLOCK=y |
140 | # CONFIG_LBD is not set | 145 | # CONFIG_LBD is not set |
141 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
142 | # CONFIG_BLK_DEV_BSG is not set | 146 | # CONFIG_BLK_DEV_BSG is not set |
143 | # CONFIG_BLK_DEV_INTEGRITY is not set | 147 | # CONFIG_BLK_DEV_INTEGRITY is not set |
144 | 148 | ||
@@ -186,6 +190,7 @@ CONFIG_CPU_SHX3=y | |||
186 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 190 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
187 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 191 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
188 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 192 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
193 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
189 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 194 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
190 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 195 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
191 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 196 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -195,8 +200,6 @@ CONFIG_CPU_SUBTYPE_SHX3=y | |||
195 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 200 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
196 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 201 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
197 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 202 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
198 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
199 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
200 | 203 | ||
201 | # | 204 | # |
202 | # Memory management options | 205 | # Memory management options |
@@ -553,6 +556,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
553 | CONFIG_SCSI_LOWLEVEL=y | 556 | CONFIG_SCSI_LOWLEVEL=y |
554 | # CONFIG_ISCSI_TCP is not set | 557 | # CONFIG_ISCSI_TCP is not set |
555 | # CONFIG_LIBFC is not set | 558 | # CONFIG_LIBFC is not set |
559 | # CONFIG_LIBFCOE is not set | ||
556 | # CONFIG_SCSI_DEBUG is not set | 560 | # CONFIG_SCSI_DEBUG is not set |
557 | # CONFIG_SCSI_DH is not set | 561 | # CONFIG_SCSI_DH is not set |
558 | # CONFIG_SCSI_OSD_INITIATOR is not set | 562 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -646,6 +650,7 @@ CONFIG_DEVKMEM=y | |||
646 | # | 650 | # |
647 | # Non-8250 serial port support | 651 | # Non-8250 serial port support |
648 | # | 652 | # |
653 | # CONFIG_SERIAL_MAX3100 is not set | ||
649 | CONFIG_SERIAL_SH_SCI=y | 654 | CONFIG_SERIAL_SH_SCI=y |
650 | CONFIG_SERIAL_SH_SCI_NR_UARTS=2 | 655 | CONFIG_SERIAL_SH_SCI_NR_UARTS=2 |
651 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | 656 | CONFIG_SERIAL_SH_SCI_CONSOLE=y |
@@ -985,6 +990,7 @@ CONFIG_EXT2_FS=y | |||
985 | # CONFIG_EXT2_FS_XATTR is not set | 990 | # CONFIG_EXT2_FS_XATTR is not set |
986 | # CONFIG_EXT2_FS_XIP is not set | 991 | # CONFIG_EXT2_FS_XIP is not set |
987 | CONFIG_EXT3_FS=y | 992 | CONFIG_EXT3_FS=y |
993 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
988 | CONFIG_EXT3_FS_XATTR=y | 994 | CONFIG_EXT3_FS_XATTR=y |
989 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 995 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
990 | # CONFIG_EXT3_FS_SECURITY is not set | 996 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1008,6 +1014,11 @@ CONFIG_INOTIFY_USER=y | |||
1008 | # CONFIG_FUSE_FS is not set | 1014 | # CONFIG_FUSE_FS is not set |
1009 | 1015 | ||
1010 | # | 1016 | # |
1017 | # Caches | ||
1018 | # | ||
1019 | # CONFIG_FSCACHE is not set | ||
1020 | |||
1021 | # | ||
1011 | # CD-ROM/DVD Filesystems | 1022 | # CD-ROM/DVD Filesystems |
1012 | # | 1023 | # |
1013 | # CONFIG_ISO9660_FS is not set | 1024 | # CONFIG_ISO9660_FS is not set |
@@ -1051,6 +1062,7 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1051 | # CONFIG_ROMFS_FS is not set | 1062 | # CONFIG_ROMFS_FS is not set |
1052 | # CONFIG_SYSV_FS is not set | 1063 | # CONFIG_SYSV_FS is not set |
1053 | # CONFIG_UFS_FS is not set | 1064 | # CONFIG_UFS_FS is not set |
1065 | # CONFIG_NILFS2_FS is not set | ||
1054 | CONFIG_NETWORK_FILESYSTEMS=y | 1066 | CONFIG_NETWORK_FILESYSTEMS=y |
1055 | # CONFIG_NFS_FS is not set | 1067 | # CONFIG_NFS_FS is not set |
1056 | # CONFIG_NFSD is not set | 1068 | # CONFIG_NFSD is not set |
@@ -1085,6 +1097,9 @@ CONFIG_DEBUG_SHIRQ=y | |||
1085 | CONFIG_DETECT_SOFTLOCKUP=y | 1097 | CONFIG_DETECT_SOFTLOCKUP=y |
1086 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 1098 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
1087 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 1099 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
1100 | CONFIG_DETECT_HUNG_TASK=y | ||
1101 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1102 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1088 | CONFIG_SCHED_DEBUG=y | 1103 | CONFIG_SCHED_DEBUG=y |
1089 | # CONFIG_SCHEDSTATS is not set | 1104 | # CONFIG_SCHEDSTATS is not set |
1090 | # CONFIG_TIMER_STATS is not set | 1105 | # CONFIG_TIMER_STATS is not set |
@@ -1124,6 +1139,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE=y | |||
1124 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1139 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1125 | CONFIG_RING_BUFFER=y | 1140 | CONFIG_RING_BUFFER=y |
1126 | CONFIG_TRACING=y | 1141 | CONFIG_TRACING=y |
1142 | CONFIG_TRACING_SUPPORT=y | ||
1127 | 1143 | ||
1128 | # | 1144 | # |
1129 | # Tracers | 1145 | # Tracers |
@@ -1133,11 +1149,16 @@ CONFIG_TRACING=y | |||
1133 | # CONFIG_PREEMPT_TRACER is not set | 1149 | # CONFIG_PREEMPT_TRACER is not set |
1134 | # CONFIG_SCHED_TRACER is not set | 1150 | # CONFIG_SCHED_TRACER is not set |
1135 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1151 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1152 | # CONFIG_EVENT_TRACER is not set | ||
1136 | # CONFIG_BOOT_TRACER is not set | 1153 | # CONFIG_BOOT_TRACER is not set |
1137 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1154 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1138 | # CONFIG_STACK_TRACER is not set | 1155 | # CONFIG_STACK_TRACER is not set |
1156 | # CONFIG_KMEMTRACE is not set | ||
1157 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1158 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1139 | # CONFIG_FTRACE_STARTUP_TEST is not set | 1159 | # CONFIG_FTRACE_STARTUP_TEST is not set |
1140 | # CONFIG_DYNAMIC_DEBUG is not set | 1160 | # CONFIG_DYNAMIC_DEBUG is not set |
1161 | # CONFIG_DMA_API_DEBUG is not set | ||
1141 | # CONFIG_SAMPLES is not set | 1162 | # CONFIG_SAMPLES is not set |
1142 | CONFIG_HAVE_ARCH_KGDB=y | 1163 | CONFIG_HAVE_ARCH_KGDB=y |
1143 | # CONFIG_KGDB is not set | 1164 | # CONFIG_KGDB is not set |
@@ -1245,6 +1266,7 @@ CONFIG_CRYPTO=y | |||
1245 | # | 1266 | # |
1246 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1267 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1247 | CONFIG_CRYPTO_HW=y | 1268 | CONFIG_CRYPTO_HW=y |
1269 | CONFIG_BINARY_PRINTF=y | ||
1248 | 1270 | ||
1249 | # | 1271 | # |
1250 | # Library routines | 1272 | # Library routines |
diff --git a/arch/sh/configs/snapgear_defconfig b/arch/sh/configs/snapgear_defconfig index 6960f60bf52e..54a7a3c41f34 100644 --- a/arch/sh/configs/snapgear_defconfig +++ b/arch/sh/configs/snapgear_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:21:39 2009 | 4 | # Mon Apr 27 13:14:00 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -64,7 +65,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
64 | CONFIG_RD_GZIP=y | 65 | CONFIG_RD_GZIP=y |
65 | # CONFIG_RD_BZIP2 is not set | 66 | # CONFIG_RD_BZIP2 is not set |
66 | # CONFIG_RD_LZMA is not set | 67 | # CONFIG_RD_LZMA is not set |
67 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
68 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 68 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
69 | CONFIG_SYSCTL=y | 69 | CONFIG_SYSCTL=y |
70 | CONFIG_ANON_INODES=y | 70 | CONFIG_ANON_INODES=y |
@@ -73,6 +73,7 @@ CONFIG_UID16=y | |||
73 | # CONFIG_SYSCTL_SYSCALL is not set | 73 | # CONFIG_SYSCTL_SYSCALL is not set |
74 | CONFIG_KALLSYMS=y | 74 | CONFIG_KALLSYMS=y |
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
76 | # CONFIG_STRIP_ASM_SYMS is not set | ||
76 | # CONFIG_HOTPLUG is not set | 77 | # CONFIG_HOTPLUG is not set |
77 | CONFIG_PRINTK=y | 78 | CONFIG_PRINTK=y |
78 | CONFIG_BUG=y | 79 | CONFIG_BUG=y |
@@ -92,12 +93,15 @@ CONFIG_SLAB=y | |||
92 | # CONFIG_SLUB is not set | 93 | # CONFIG_SLUB is not set |
93 | # CONFIG_SLOB is not set | 94 | # CONFIG_SLOB is not set |
94 | # CONFIG_PROFILING is not set | 95 | # CONFIG_PROFILING is not set |
96 | # CONFIG_MARKERS is not set | ||
95 | CONFIG_HAVE_OPROFILE=y | 97 | CONFIG_HAVE_OPROFILE=y |
96 | CONFIG_HAVE_IOREMAP_PROT=y | 98 | CONFIG_HAVE_IOREMAP_PROT=y |
97 | CONFIG_HAVE_KPROBES=y | 99 | CONFIG_HAVE_KPROBES=y |
98 | CONFIG_HAVE_KRETPROBES=y | 100 | CONFIG_HAVE_KRETPROBES=y |
99 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 101 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
100 | CONFIG_HAVE_CLK=y | 102 | CONFIG_HAVE_CLK=y |
103 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
104 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 105 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 106 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 107 | CONFIG_RT_MUTEXES=y |
@@ -105,7 +109,6 @@ CONFIG_BASE_SMALL=0 | |||
105 | # CONFIG_MODULES is not set | 109 | # CONFIG_MODULES is not set |
106 | CONFIG_BLOCK=y | 110 | CONFIG_BLOCK=y |
107 | # CONFIG_LBD is not set | 111 | # CONFIG_LBD is not set |
108 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
109 | # CONFIG_BLK_DEV_BSG is not set | 112 | # CONFIG_BLK_DEV_BSG is not set |
110 | # CONFIG_BLK_DEV_INTEGRITY is not set | 113 | # CONFIG_BLK_DEV_INTEGRITY is not set |
111 | 114 | ||
@@ -151,6 +154,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
151 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 154 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
152 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 155 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
153 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
154 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 159 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
156 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -160,8 +164,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
160 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
164 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
165 | 167 | ||
166 | # | 168 | # |
167 | # Memory management options | 169 | # Memory management options |
@@ -295,8 +297,6 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000 | |||
295 | # | 297 | # |
296 | CONFIG_PCI=y | 298 | CONFIG_PCI=y |
297 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 299 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
298 | CONFIG_PCI_AUTO=y | ||
299 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
300 | # CONFIG_PCIEPORTBUS is not set | 300 | # CONFIG_PCIEPORTBUS is not set |
301 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 301 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
302 | CONFIG_PCI_LEGACY=y | 302 | CONFIG_PCI_LEGACY=y |
@@ -763,6 +763,11 @@ CONFIG_FILE_LOCKING=y | |||
763 | # CONFIG_FUSE_FS is not set | 763 | # CONFIG_FUSE_FS is not set |
764 | 764 | ||
765 | # | 765 | # |
766 | # Caches | ||
767 | # | ||
768 | # CONFIG_FSCACHE is not set | ||
769 | |||
770 | # | ||
766 | # CD-ROM/DVD Filesystems | 771 | # CD-ROM/DVD Filesystems |
767 | # | 772 | # |
768 | # CONFIG_ISO9660_FS is not set | 773 | # CONFIG_ISO9660_FS is not set |
@@ -805,8 +810,13 @@ CONFIG_CRAMFS=y | |||
805 | # CONFIG_HPFS_FS is not set | 810 | # CONFIG_HPFS_FS is not set |
806 | # CONFIG_QNX4FS_FS is not set | 811 | # CONFIG_QNX4FS_FS is not set |
807 | CONFIG_ROMFS_FS=y | 812 | CONFIG_ROMFS_FS=y |
813 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
814 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
815 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
816 | CONFIG_ROMFS_ON_BLOCK=y | ||
808 | # CONFIG_SYSV_FS is not set | 817 | # CONFIG_SYSV_FS is not set |
809 | # CONFIG_UFS_FS is not set | 818 | # CONFIG_UFS_FS is not set |
819 | # CONFIG_NILFS2_FS is not set | ||
810 | CONFIG_NETWORK_FILESYSTEMS=y | 820 | CONFIG_NETWORK_FILESYSTEMS=y |
811 | # CONFIG_NFS_FS is not set | 821 | # CONFIG_NFS_FS is not set |
812 | # CONFIG_NFSD is not set | 822 | # CONFIG_NFSD is not set |
@@ -844,10 +854,23 @@ CONFIG_FRAME_WARN=1024 | |||
844 | CONFIG_HAVE_FUNCTION_TRACER=y | 854 | CONFIG_HAVE_FUNCTION_TRACER=y |
845 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 855 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
846 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 856 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
857 | CONFIG_TRACING_SUPPORT=y | ||
847 | 858 | ||
848 | # | 859 | # |
849 | # Tracers | 860 | # Tracers |
850 | # | 861 | # |
862 | # CONFIG_FUNCTION_TRACER is not set | ||
863 | # CONFIG_IRQSOFF_TRACER is not set | ||
864 | # CONFIG_SCHED_TRACER is not set | ||
865 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
866 | # CONFIG_EVENT_TRACER is not set | ||
867 | # CONFIG_BOOT_TRACER is not set | ||
868 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
869 | # CONFIG_STACK_TRACER is not set | ||
870 | # CONFIG_KMEMTRACE is not set | ||
871 | # CONFIG_WORKQUEUE_TRACER is not set | ||
872 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
873 | # CONFIG_DMA_API_DEBUG is not set | ||
851 | # CONFIG_SAMPLES is not set | 874 | # CONFIG_SAMPLES is not set |
852 | CONFIG_HAVE_ARCH_KGDB=y | 875 | CONFIG_HAVE_ARCH_KGDB=y |
853 | # CONFIG_SH_STANDARD_BIOS is not set | 876 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -862,6 +885,7 @@ CONFIG_HAVE_ARCH_KGDB=y | |||
862 | # CONFIG_SECURITYFS is not set | 885 | # CONFIG_SECURITYFS is not set |
863 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 886 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
864 | # CONFIG_CRYPTO is not set | 887 | # CONFIG_CRYPTO is not set |
888 | # CONFIG_BINARY_PRINTF is not set | ||
865 | 889 | ||
866 | # | 890 | # |
867 | # Library routines | 891 | # Library routines |
diff --git a/arch/sh/configs/systemh_defconfig b/arch/sh/configs/systemh_defconfig index 7ea639bc5936..dbe7e546f0bb 100644 --- a/arch/sh/configs/systemh_defconfig +++ b/arch/sh/configs/systemh_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:23:31 2009 | 4 | # Mon Apr 27 13:14:33 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -61,7 +62,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
61 | CONFIG_RD_GZIP=y | 62 | CONFIG_RD_GZIP=y |
62 | # CONFIG_RD_BZIP2 is not set | 63 | # CONFIG_RD_BZIP2 is not set |
63 | # CONFIG_RD_LZMA is not set | 64 | # CONFIG_RD_LZMA is not set |
64 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
65 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 65 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
66 | CONFIG_SYSCTL=y | 66 | CONFIG_SYSCTL=y |
67 | CONFIG_ANON_INODES=y | 67 | CONFIG_ANON_INODES=y |
@@ -70,6 +70,7 @@ CONFIG_UID16=y | |||
70 | # CONFIG_SYSCTL_SYSCALL is not set | 70 | # CONFIG_SYSCTL_SYSCALL is not set |
71 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 72 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
73 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | # CONFIG_HOTPLUG is not set | 74 | # CONFIG_HOTPLUG is not set |
74 | CONFIG_PRINTK=y | 75 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 76 | CONFIG_BUG=y |
@@ -88,6 +89,7 @@ CONFIG_SLAB=y | |||
88 | # CONFIG_SLUB is not set | 89 | # CONFIG_SLUB is not set |
89 | # CONFIG_SLOB is not set | 90 | # CONFIG_SLOB is not set |
90 | # CONFIG_PROFILING is not set | 91 | # CONFIG_PROFILING is not set |
92 | # CONFIG_MARKERS is not set | ||
91 | CONFIG_HAVE_OPROFILE=y | 93 | CONFIG_HAVE_OPROFILE=y |
92 | # CONFIG_KPROBES is not set | 94 | # CONFIG_KPROBES is not set |
93 | CONFIG_HAVE_IOREMAP_PROT=y | 95 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -95,6 +97,8 @@ CONFIG_HAVE_KPROBES=y | |||
95 | CONFIG_HAVE_KRETPROBES=y | 97 | CONFIG_HAVE_KRETPROBES=y |
96 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 98 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
97 | CONFIG_HAVE_CLK=y | 99 | CONFIG_HAVE_CLK=y |
100 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
101 | # CONFIG_SLOW_WORK is not set | ||
98 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 102 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
99 | CONFIG_SLABINFO=y | 103 | CONFIG_SLABINFO=y |
100 | CONFIG_RT_MUTEXES=y | 104 | CONFIG_RT_MUTEXES=y |
@@ -107,7 +111,6 @@ CONFIG_MODULE_UNLOAD=y | |||
107 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 111 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
108 | CONFIG_BLOCK=y | 112 | CONFIG_BLOCK=y |
109 | # CONFIG_LBD is not set | 113 | # CONFIG_LBD is not set |
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_BLK_DEV_BSG is not set | 114 | # CONFIG_BLK_DEV_BSG is not set |
112 | # CONFIG_BLK_DEV_INTEGRITY is not set | 115 | # CONFIG_BLK_DEV_INTEGRITY is not set |
113 | 116 | ||
@@ -153,6 +156,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
153 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 156 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
154 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 157 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
155 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 158 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
159 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
156 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 160 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
157 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 161 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
158 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 162 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -162,8 +166,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
162 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
166 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
167 | 169 | ||
168 | # | 170 | # |
169 | # Memory management options | 171 | # Memory management options |
@@ -506,6 +508,11 @@ CONFIG_INOTIFY_USER=y | |||
506 | # CONFIG_FUSE_FS is not set | 508 | # CONFIG_FUSE_FS is not set |
507 | 509 | ||
508 | # | 510 | # |
511 | # Caches | ||
512 | # | ||
513 | # CONFIG_FSCACHE is not set | ||
514 | |||
515 | # | ||
509 | # CD-ROM/DVD Filesystems | 516 | # CD-ROM/DVD Filesystems |
510 | # | 517 | # |
511 | # CONFIG_ISO9660_FS is not set | 518 | # CONFIG_ISO9660_FS is not set |
@@ -547,8 +554,13 @@ CONFIG_CRAMFS=y | |||
547 | # CONFIG_HPFS_FS is not set | 554 | # CONFIG_HPFS_FS is not set |
548 | # CONFIG_QNX4FS_FS is not set | 555 | # CONFIG_QNX4FS_FS is not set |
549 | CONFIG_ROMFS_FS=y | 556 | CONFIG_ROMFS_FS=y |
557 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
558 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
559 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
560 | CONFIG_ROMFS_ON_BLOCK=y | ||
550 | # CONFIG_SYSV_FS is not set | 561 | # CONFIG_SYSV_FS is not set |
551 | # CONFIG_UFS_FS is not set | 562 | # CONFIG_UFS_FS is not set |
563 | # CONFIG_NILFS2_FS is not set | ||
552 | 564 | ||
553 | # | 565 | # |
554 | # Partition Types | 566 | # Partition Types |
@@ -577,10 +589,24 @@ CONFIG_FRAME_WARN=1024 | |||
577 | CONFIG_HAVE_FUNCTION_TRACER=y | 589 | CONFIG_HAVE_FUNCTION_TRACER=y |
578 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 590 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
579 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 591 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
592 | CONFIG_TRACING_SUPPORT=y | ||
580 | 593 | ||
581 | # | 594 | # |
582 | # Tracers | 595 | # Tracers |
583 | # | 596 | # |
597 | # CONFIG_FUNCTION_TRACER is not set | ||
598 | # CONFIG_IRQSOFF_TRACER is not set | ||
599 | # CONFIG_PREEMPT_TRACER is not set | ||
600 | # CONFIG_SCHED_TRACER is not set | ||
601 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
602 | # CONFIG_EVENT_TRACER is not set | ||
603 | # CONFIG_BOOT_TRACER is not set | ||
604 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
605 | # CONFIG_STACK_TRACER is not set | ||
606 | # CONFIG_KMEMTRACE is not set | ||
607 | # CONFIG_WORKQUEUE_TRACER is not set | ||
608 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
609 | # CONFIG_DMA_API_DEBUG is not set | ||
584 | # CONFIG_SAMPLES is not set | 610 | # CONFIG_SAMPLES is not set |
585 | CONFIG_HAVE_ARCH_KGDB=y | 611 | CONFIG_HAVE_ARCH_KGDB=y |
586 | # CONFIG_SH_STANDARD_BIOS is not set | 612 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -595,6 +621,7 @@ CONFIG_HAVE_ARCH_KGDB=y | |||
595 | # CONFIG_SECURITYFS is not set | 621 | # CONFIG_SECURITYFS is not set |
596 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 622 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
597 | # CONFIG_CRYPTO is not set | 623 | # CONFIG_CRYPTO is not set |
624 | # CONFIG_BINARY_PRINTF is not set | ||
598 | 625 | ||
599 | # | 626 | # |
600 | # Library routines | 627 | # Library routines |
diff --git a/arch/sh/configs/titan_defconfig b/arch/sh/configs/titan_defconfig index bbeb4c6ebb95..8ca94ef74278 100644 --- a/arch/sh/configs/titan_defconfig +++ b/arch/sh/configs/titan_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:24:55 2009 | 4 | # Mon Apr 27 13:14:55 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -40,6 +41,7 @@ CONFIG_SWAP=y | |||
40 | CONFIG_SYSVIPC=y | 41 | CONFIG_SYSVIPC=y |
41 | CONFIG_SYSVIPC_SYSCTL=y | 42 | CONFIG_SYSVIPC_SYSCTL=y |
42 | CONFIG_POSIX_MQUEUE=y | 43 | CONFIG_POSIX_MQUEUE=y |
44 | CONFIG_POSIX_MQUEUE_SYSCTL=y | ||
43 | # CONFIG_BSD_PROCESS_ACCT is not set | 45 | # CONFIG_BSD_PROCESS_ACCT is not set |
44 | # CONFIG_TASKSTATS is not set | 46 | # CONFIG_TASKSTATS is not set |
45 | # CONFIG_AUDIT is not set | 47 | # CONFIG_AUDIT is not set |
@@ -66,7 +68,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
66 | CONFIG_RD_GZIP=y | 68 | CONFIG_RD_GZIP=y |
67 | # CONFIG_RD_BZIP2 is not set | 69 | # CONFIG_RD_BZIP2 is not set |
68 | # CONFIG_RD_LZMA is not set | 70 | # CONFIG_RD_LZMA is not set |
69 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
70 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 71 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
71 | CONFIG_SYSCTL=y | 72 | CONFIG_SYSCTL=y |
72 | CONFIG_ANON_INODES=y | 73 | CONFIG_ANON_INODES=y |
@@ -76,6 +77,7 @@ CONFIG_UID16=y | |||
76 | CONFIG_KALLSYMS=y | 77 | CONFIG_KALLSYMS=y |
77 | # CONFIG_KALLSYMS_ALL is not set | 78 | # CONFIG_KALLSYMS_ALL is not set |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 79 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
80 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 81 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 82 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 83 | CONFIG_BUG=y |
@@ -95,6 +97,7 @@ CONFIG_SLAB=y | |||
95 | # CONFIG_SLUB is not set | 97 | # CONFIG_SLUB is not set |
96 | # CONFIG_SLOB is not set | 98 | # CONFIG_SLOB is not set |
97 | # CONFIG_PROFILING is not set | 99 | # CONFIG_PROFILING is not set |
100 | # CONFIG_MARKERS is not set | ||
98 | CONFIG_HAVE_OPROFILE=y | 101 | CONFIG_HAVE_OPROFILE=y |
99 | # CONFIG_KPROBES is not set | 102 | # CONFIG_KPROBES is not set |
100 | CONFIG_HAVE_IOREMAP_PROT=y | 103 | CONFIG_HAVE_IOREMAP_PROT=y |
@@ -102,6 +105,8 @@ CONFIG_HAVE_KPROBES=y | |||
102 | CONFIG_HAVE_KRETPROBES=y | 105 | CONFIG_HAVE_KRETPROBES=y |
103 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 106 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
104 | CONFIG_HAVE_CLK=y | 107 | CONFIG_HAVE_CLK=y |
108 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
109 | # CONFIG_SLOW_WORK is not set | ||
105 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
106 | CONFIG_SLABINFO=y | 111 | CONFIG_SLABINFO=y |
107 | CONFIG_RT_MUTEXES=y | 112 | CONFIG_RT_MUTEXES=y |
@@ -114,7 +119,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
114 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 119 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
115 | CONFIG_BLOCK=y | 120 | CONFIG_BLOCK=y |
116 | # CONFIG_LBD is not set | 121 | # CONFIG_LBD is not set |
117 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
118 | # CONFIG_BLK_DEV_BSG is not set | 122 | # CONFIG_BLK_DEV_BSG is not set |
119 | # CONFIG_BLK_DEV_INTEGRITY is not set | 123 | # CONFIG_BLK_DEV_INTEGRITY is not set |
120 | 124 | ||
@@ -160,6 +164,7 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
160 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 164 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
161 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 165 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
162 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
163 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 169 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
165 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -169,8 +174,6 @@ CONFIG_CPU_SUBTYPE_SH7751R=y | |||
169 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
170 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
173 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
174 | 177 | ||
175 | # | 178 | # |
176 | # Memory management options | 179 | # Memory management options |
@@ -305,8 +308,6 @@ CONFIG_CMDLINE="console=ttySC1,38400N81 root=/dev/nfs ip=:::::eth1:autoconf rw" | |||
305 | # | 308 | # |
306 | CONFIG_PCI=y | 309 | CONFIG_PCI=y |
307 | CONFIG_SH_PCIDMA_NONCOHERENT=y | 310 | CONFIG_SH_PCIDMA_NONCOHERENT=y |
308 | CONFIG_PCI_AUTO=y | ||
309 | CONFIG_PCI_AUTO_UPDATE_RESOURCES=y | ||
310 | # CONFIG_PCIEPORTBUS is not set | 311 | # CONFIG_PCIEPORTBUS is not set |
311 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 312 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
312 | CONFIG_PCI_LEGACY=y | 313 | CONFIG_PCI_LEGACY=y |
@@ -789,6 +790,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
789 | # CONFIG_SCSI_MPT2SAS is not set | 790 | # CONFIG_SCSI_MPT2SAS is not set |
790 | # CONFIG_SCSI_HPTIOP is not set | 791 | # CONFIG_SCSI_HPTIOP is not set |
791 | # CONFIG_LIBFC is not set | 792 | # CONFIG_LIBFC is not set |
793 | # CONFIG_LIBFCOE is not set | ||
792 | # CONFIG_FCOE is not set | 794 | # CONFIG_FCOE is not set |
793 | # CONFIG_SCSI_DMX3191D is not set | 795 | # CONFIG_SCSI_DMX3191D is not set |
794 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 796 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
@@ -906,6 +908,7 @@ CONFIG_NETDEV_1000=y | |||
906 | # CONFIG_E1000E is not set | 908 | # CONFIG_E1000E is not set |
907 | # CONFIG_IP1000 is not set | 909 | # CONFIG_IP1000 is not set |
908 | # CONFIG_IGB is not set | 910 | # CONFIG_IGB is not set |
911 | # CONFIG_IGBVF is not set | ||
909 | # CONFIG_NS83820 is not set | 912 | # CONFIG_NS83820 is not set |
910 | # CONFIG_HAMACHI is not set | 913 | # CONFIG_HAMACHI is not set |
911 | # CONFIG_YELLOWFIN is not set | 914 | # CONFIG_YELLOWFIN is not set |
@@ -929,6 +932,7 @@ CONFIG_CHELSIO_T3_DEPENDS=y | |||
929 | # CONFIG_IXGBE is not set | 932 | # CONFIG_IXGBE is not set |
930 | # CONFIG_IXGB is not set | 933 | # CONFIG_IXGB is not set |
931 | # CONFIG_S2IO is not set | 934 | # CONFIG_S2IO is not set |
935 | # CONFIG_VXGE is not set | ||
932 | # CONFIG_MYRI10GE is not set | 936 | # CONFIG_MYRI10GE is not set |
933 | # CONFIG_NETXEN_NIC is not set | 937 | # CONFIG_NETXEN_NIC is not set |
934 | # CONFIG_NIU is not set | 938 | # CONFIG_NIU is not set |
@@ -1182,7 +1186,6 @@ CONFIG_HID=y | |||
1182 | # | 1186 | # |
1183 | # Special HID drivers | 1187 | # Special HID drivers |
1184 | # | 1188 | # |
1185 | CONFIG_HID_COMPAT=y | ||
1186 | CONFIG_USB_SUPPORT=y | 1189 | CONFIG_USB_SUPPORT=y |
1187 | CONFIG_USB_ARCH_HAS_HCD=y | 1190 | CONFIG_USB_ARCH_HAS_HCD=y |
1188 | CONFIG_USB_ARCH_HAS_OHCI=y | 1191 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1393,6 +1396,7 @@ CONFIG_EXT2_FS=y | |||
1393 | # CONFIG_EXT2_FS_XATTR is not set | 1396 | # CONFIG_EXT2_FS_XATTR is not set |
1394 | # CONFIG_EXT2_FS_XIP is not set | 1397 | # CONFIG_EXT2_FS_XIP is not set |
1395 | CONFIG_EXT3_FS=y | 1398 | CONFIG_EXT3_FS=y |
1399 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1396 | # CONFIG_EXT3_FS_XATTR is not set | 1400 | # CONFIG_EXT3_FS_XATTR is not set |
1397 | # CONFIG_EXT4_FS is not set | 1401 | # CONFIG_EXT4_FS is not set |
1398 | CONFIG_JBD=y | 1402 | CONFIG_JBD=y |
@@ -1419,6 +1423,11 @@ CONFIG_INOTIFY_USER=y | |||
1419 | CONFIG_FUSE_FS=m | 1423 | CONFIG_FUSE_FS=m |
1420 | 1424 | ||
1421 | # | 1425 | # |
1426 | # Caches | ||
1427 | # | ||
1428 | # CONFIG_FSCACHE is not set | ||
1429 | |||
1430 | # | ||
1422 | # CD-ROM/DVD Filesystems | 1431 | # CD-ROM/DVD Filesystems |
1423 | # | 1432 | # |
1424 | CONFIG_ISO9660_FS=m | 1433 | CONFIG_ISO9660_FS=m |
@@ -1467,8 +1476,13 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1467 | # CONFIG_HPFS_FS is not set | 1476 | # CONFIG_HPFS_FS is not set |
1468 | # CONFIG_QNX4FS_FS is not set | 1477 | # CONFIG_QNX4FS_FS is not set |
1469 | CONFIG_ROMFS_FS=y | 1478 | CONFIG_ROMFS_FS=y |
1479 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1480 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1481 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1482 | CONFIG_ROMFS_ON_BLOCK=y | ||
1470 | # CONFIG_SYSV_FS is not set | 1483 | # CONFIG_SYSV_FS is not set |
1471 | # CONFIG_UFS_FS is not set | 1484 | # CONFIG_UFS_FS is not set |
1485 | # CONFIG_NILFS2_FS is not set | ||
1472 | CONFIG_NETWORK_FILESYSTEMS=y | 1486 | CONFIG_NETWORK_FILESYSTEMS=y |
1473 | CONFIG_NFS_FS=y | 1487 | CONFIG_NFS_FS=y |
1474 | CONFIG_NFS_V3=y | 1488 | CONFIG_NFS_V3=y |
@@ -1576,6 +1590,7 @@ CONFIG_MAGIC_SYSRQ=y | |||
1576 | CONFIG_DEBUG_KERNEL=y | 1590 | CONFIG_DEBUG_KERNEL=y |
1577 | # CONFIG_DEBUG_SHIRQ is not set | 1591 | # CONFIG_DEBUG_SHIRQ is not set |
1578 | # CONFIG_DETECT_SOFTLOCKUP is not set | 1592 | # CONFIG_DETECT_SOFTLOCKUP is not set |
1593 | # CONFIG_DETECT_HUNG_TASK is not set | ||
1579 | CONFIG_SCHED_DEBUG=y | 1594 | CONFIG_SCHED_DEBUG=y |
1580 | # CONFIG_SCHEDSTATS is not set | 1595 | # CONFIG_SCHEDSTATS is not set |
1581 | # CONFIG_TIMER_STATS is not set | 1596 | # CONFIG_TIMER_STATS is not set |
@@ -1610,6 +1625,7 @@ CONFIG_SCHED_DEBUG=y | |||
1610 | CONFIG_HAVE_FUNCTION_TRACER=y | 1625 | CONFIG_HAVE_FUNCTION_TRACER=y |
1611 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1626 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1612 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1627 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1628 | CONFIG_TRACING_SUPPORT=y | ||
1613 | 1629 | ||
1614 | # | 1630 | # |
1615 | # Tracers | 1631 | # Tracers |
@@ -1618,9 +1634,14 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | |||
1618 | # CONFIG_IRQSOFF_TRACER is not set | 1634 | # CONFIG_IRQSOFF_TRACER is not set |
1619 | # CONFIG_SCHED_TRACER is not set | 1635 | # CONFIG_SCHED_TRACER is not set |
1620 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 1636 | # CONFIG_CONTEXT_SWITCH_TRACER is not set |
1637 | # CONFIG_EVENT_TRACER is not set | ||
1621 | # CONFIG_BOOT_TRACER is not set | 1638 | # CONFIG_BOOT_TRACER is not set |
1622 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 1639 | # CONFIG_TRACE_BRANCH_PROFILING is not set |
1623 | # CONFIG_STACK_TRACER is not set | 1640 | # CONFIG_STACK_TRACER is not set |
1641 | # CONFIG_KMEMTRACE is not set | ||
1642 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1643 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1644 | # CONFIG_DMA_API_DEBUG is not set | ||
1624 | # CONFIG_SAMPLES is not set | 1645 | # CONFIG_SAMPLES is not set |
1625 | CONFIG_HAVE_ARCH_KGDB=y | 1646 | CONFIG_HAVE_ARCH_KGDB=y |
1626 | # CONFIG_KGDB is not set | 1647 | # CONFIG_KGDB is not set |
@@ -1741,6 +1762,7 @@ CONFIG_CRYPTO_DEFLATE=y | |||
1741 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1762 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1742 | CONFIG_CRYPTO_HW=y | 1763 | CONFIG_CRYPTO_HW=y |
1743 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1764 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1765 | # CONFIG_BINARY_PRINTF is not set | ||
1744 | 1766 | ||
1745 | # | 1767 | # |
1746 | # Library routines | 1768 | # Library routines |
diff --git a/arch/sh/configs/ul2_defconfig b/arch/sh/configs/ul2_defconfig index 34f5192a3241..bfb4d9806892 100644 --- a/arch/sh/configs/ul2_defconfig +++ b/arch/sh/configs/ul2_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:30:27 2009 | 4 | # Mon Apr 27 13:17:05 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -69,7 +70,6 @@ CONFIG_INITRAMFS_SOURCE="" | |||
69 | CONFIG_RD_GZIP=y | 70 | CONFIG_RD_GZIP=y |
70 | # CONFIG_RD_BZIP2 is not set | 71 | # CONFIG_RD_BZIP2 is not set |
71 | # CONFIG_RD_LZMA is not set | 72 | # CONFIG_RD_LZMA is not set |
72 | CONFIG_INITRAMFS_COMPRESSION_NONE=y | ||
73 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 73 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
74 | CONFIG_SYSCTL=y | 74 | CONFIG_SYSCTL=y |
75 | CONFIG_ANON_INODES=y | 75 | CONFIG_ANON_INODES=y |
@@ -78,6 +78,7 @@ CONFIG_UID16=y | |||
78 | CONFIG_SYSCTL_SYSCALL=y | 78 | CONFIG_SYSCTL_SYSCALL=y |
79 | CONFIG_KALLSYMS=y | 79 | CONFIG_KALLSYMS=y |
80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 80 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
81 | # CONFIG_STRIP_ASM_SYMS is not set | ||
81 | CONFIG_HOTPLUG=y | 82 | CONFIG_HOTPLUG=y |
82 | CONFIG_PRINTK=y | 83 | CONFIG_PRINTK=y |
83 | CONFIG_BUG=y | 84 | CONFIG_BUG=y |
@@ -97,6 +98,7 @@ CONFIG_COMPAT_BRK=y | |||
97 | CONFIG_SLUB=y | 98 | CONFIG_SLUB=y |
98 | # CONFIG_SLOB is not set | 99 | # CONFIG_SLOB is not set |
99 | CONFIG_PROFILING=y | 100 | CONFIG_PROFILING=y |
101 | # CONFIG_MARKERS is not set | ||
100 | # CONFIG_OPROFILE is not set | 102 | # CONFIG_OPROFILE is not set |
101 | CONFIG_HAVE_OPROFILE=y | 103 | CONFIG_HAVE_OPROFILE=y |
102 | # CONFIG_KPROBES is not set | 104 | # CONFIG_KPROBES is not set |
@@ -105,6 +107,8 @@ CONFIG_HAVE_KPROBES=y | |||
105 | CONFIG_HAVE_KRETPROBES=y | 107 | CONFIG_HAVE_KRETPROBES=y |
106 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 108 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
107 | CONFIG_HAVE_CLK=y | 109 | CONFIG_HAVE_CLK=y |
110 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
111 | # CONFIG_SLOW_WORK is not set | ||
108 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 112 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
109 | CONFIG_SLABINFO=y | 113 | CONFIG_SLABINFO=y |
110 | CONFIG_RT_MUTEXES=y | 114 | CONFIG_RT_MUTEXES=y |
@@ -117,7 +121,6 @@ CONFIG_MODULE_UNLOAD=y | |||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 121 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
118 | CONFIG_BLOCK=y | 122 | CONFIG_BLOCK=y |
119 | # CONFIG_LBD is not set | 123 | # CONFIG_LBD is not set |
120 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | 124 | # CONFIG_BLK_DEV_BSG is not set |
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | 125 | # CONFIG_BLK_DEV_INTEGRITY is not set |
123 | 126 | ||
@@ -167,6 +170,7 @@ CONFIG_ARCH_SHMOBILE=y | |||
167 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
168 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
170 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 174 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
171 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 175 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -176,8 +180,6 @@ CONFIG_ARCH_SHMOBILE=y | |||
176 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 180 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
177 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 181 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
178 | CONFIG_CPU_SUBTYPE_SH7366=y | 182 | CONFIG_CPU_SUBTYPE_SH7366=y |
179 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
180 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
181 | 183 | ||
182 | # | 184 | # |
183 | # Memory management options | 185 | # Memory management options |
@@ -584,6 +586,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
584 | CONFIG_SCSI_LOWLEVEL=y | 586 | CONFIG_SCSI_LOWLEVEL=y |
585 | # CONFIG_ISCSI_TCP is not set | 587 | # CONFIG_ISCSI_TCP is not set |
586 | # CONFIG_LIBFC is not set | 588 | # CONFIG_LIBFC is not set |
589 | # CONFIG_LIBFCOE is not set | ||
587 | # CONFIG_SCSI_DEBUG is not set | 590 | # CONFIG_SCSI_DEBUG is not set |
588 | # CONFIG_SCSI_DH is not set | 591 | # CONFIG_SCSI_DH is not set |
589 | # CONFIG_SCSI_OSD_INITIATOR is not set | 592 | # CONFIG_SCSI_OSD_INITIATOR is not set |
@@ -936,6 +939,7 @@ CONFIG_EXT2_FS=y | |||
936 | # CONFIG_EXT2_FS_XATTR is not set | 939 | # CONFIG_EXT2_FS_XATTR is not set |
937 | # CONFIG_EXT2_FS_XIP is not set | 940 | # CONFIG_EXT2_FS_XIP is not set |
938 | CONFIG_EXT3_FS=y | 941 | CONFIG_EXT3_FS=y |
942 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
939 | CONFIG_EXT3_FS_XATTR=y | 943 | CONFIG_EXT3_FS_XATTR=y |
940 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 944 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
941 | # CONFIG_EXT3_FS_SECURITY is not set | 945 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -958,6 +962,11 @@ CONFIG_INOTIFY_USER=y | |||
958 | # CONFIG_FUSE_FS is not set | 962 | # CONFIG_FUSE_FS is not set |
959 | 963 | ||
960 | # | 964 | # |
965 | # Caches | ||
966 | # | ||
967 | # CONFIG_FSCACHE is not set | ||
968 | |||
969 | # | ||
961 | # CD-ROM/DVD Filesystems | 970 | # CD-ROM/DVD Filesystems |
962 | # | 971 | # |
963 | # CONFIG_ISO9660_FS is not set | 972 | # CONFIG_ISO9660_FS is not set |
@@ -1005,6 +1014,7 @@ CONFIG_CRAMFS=y | |||
1005 | # CONFIG_ROMFS_FS is not set | 1014 | # CONFIG_ROMFS_FS is not set |
1006 | # CONFIG_SYSV_FS is not set | 1015 | # CONFIG_SYSV_FS is not set |
1007 | # CONFIG_UFS_FS is not set | 1016 | # CONFIG_UFS_FS is not set |
1017 | # CONFIG_NILFS2_FS is not set | ||
1008 | CONFIG_NETWORK_FILESYSTEMS=y | 1018 | CONFIG_NETWORK_FILESYSTEMS=y |
1009 | CONFIG_NFS_FS=y | 1019 | CONFIG_NFS_FS=y |
1010 | # CONFIG_NFS_V3 is not set | 1020 | # CONFIG_NFS_V3 is not set |
@@ -1095,10 +1105,24 @@ CONFIG_FRAME_WARN=1024 | |||
1095 | CONFIG_HAVE_FUNCTION_TRACER=y | 1105 | CONFIG_HAVE_FUNCTION_TRACER=y |
1096 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1106 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1097 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1107 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1108 | CONFIG_TRACING_SUPPORT=y | ||
1098 | 1109 | ||
1099 | # | 1110 | # |
1100 | # Tracers | 1111 | # Tracers |
1101 | # | 1112 | # |
1113 | # CONFIG_FUNCTION_TRACER is not set | ||
1114 | # CONFIG_IRQSOFF_TRACER is not set | ||
1115 | # CONFIG_PREEMPT_TRACER is not set | ||
1116 | # CONFIG_SCHED_TRACER is not set | ||
1117 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1118 | # CONFIG_EVENT_TRACER is not set | ||
1119 | # CONFIG_BOOT_TRACER is not set | ||
1120 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1121 | # CONFIG_STACK_TRACER is not set | ||
1122 | # CONFIG_KMEMTRACE is not set | ||
1123 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1124 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1125 | # CONFIG_DMA_API_DEBUG is not set | ||
1102 | # CONFIG_SAMPLES is not set | 1126 | # CONFIG_SAMPLES is not set |
1103 | CONFIG_HAVE_ARCH_KGDB=y | 1127 | CONFIG_HAVE_ARCH_KGDB=y |
1104 | # CONFIG_SH_STANDARD_BIOS is not set | 1128 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1208,6 +1232,7 @@ CONFIG_CRYPTO_ARC4=y | |||
1208 | # | 1232 | # |
1209 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1233 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1210 | CONFIG_CRYPTO_HW=y | 1234 | CONFIG_CRYPTO_HW=y |
1235 | # CONFIG_BINARY_PRINTF is not set | ||
1211 | 1236 | ||
1212 | # | 1237 | # |
1213 | # Library routines | 1238 | # Library routines |
diff --git a/arch/sh/configs/urquell_defconfig b/arch/sh/configs/urquell_defconfig index d174b1a4d802..512664fed66c 100644 --- a/arch/sh/configs/urquell_defconfig +++ b/arch/sh/configs/urquell_defconfig | |||
@@ -1,10 +1,11 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29 | 3 | # Linux kernel version: 2.6.30-rc3 |
4 | # Thu Apr 2 19:33:39 2009 | 4 | # Mon Apr 27 14:02:55 2009 |
5 | # | 5 | # |
6 | CONFIG_SUPERH=y | 6 | CONFIG_SUPERH=y |
7 | CONFIG_SUPERH32=y | 7 | CONFIG_SUPERH32=y |
8 | # CONFIG_SUPERH64 is not set | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | 9 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" |
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 10 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_BUG=y | 11 | CONFIG_GENERIC_BUG=y |
@@ -76,6 +77,7 @@ CONFIG_UID16=y | |||
76 | CONFIG_SYSCTL_SYSCALL=y | 77 | CONFIG_SYSCTL_SYSCALL=y |
77 | CONFIG_KALLSYMS=y | 78 | CONFIG_KALLSYMS=y |
78 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 79 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
80 | # CONFIG_STRIP_ASM_SYMS is not set | ||
79 | CONFIG_HOTPLUG=y | 81 | CONFIG_HOTPLUG=y |
80 | CONFIG_PRINTK=y | 82 | CONFIG_PRINTK=y |
81 | CONFIG_BUG=y | 83 | CONFIG_BUG=y |
@@ -94,6 +96,7 @@ CONFIG_SLAB=y | |||
94 | # CONFIG_SLUB is not set | 96 | # CONFIG_SLUB is not set |
95 | # CONFIG_SLOB is not set | 97 | # CONFIG_SLOB is not set |
96 | CONFIG_PROFILING=y | 98 | CONFIG_PROFILING=y |
99 | # CONFIG_MARKERS is not set | ||
97 | # CONFIG_OPROFILE is not set | 100 | # CONFIG_OPROFILE is not set |
98 | CONFIG_HAVE_OPROFILE=y | 101 | CONFIG_HAVE_OPROFILE=y |
99 | # CONFIG_KPROBES is not set | 102 | # CONFIG_KPROBES is not set |
@@ -102,6 +105,8 @@ CONFIG_HAVE_KPROBES=y | |||
102 | CONFIG_HAVE_KRETPROBES=y | 105 | CONFIG_HAVE_KRETPROBES=y |
103 | CONFIG_HAVE_ARCH_TRACEHOOK=y | 106 | CONFIG_HAVE_ARCH_TRACEHOOK=y |
104 | CONFIG_HAVE_CLK=y | 107 | CONFIG_HAVE_CLK=y |
108 | CONFIG_HAVE_DMA_API_DEBUG=y | ||
109 | # CONFIG_SLOW_WORK is not set | ||
105 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
106 | CONFIG_SLABINFO=y | 111 | CONFIG_SLABINFO=y |
107 | CONFIG_RT_MUTEXES=y | 112 | CONFIG_RT_MUTEXES=y |
@@ -114,7 +119,6 @@ CONFIG_MODULE_UNLOAD=y | |||
114 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 119 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
115 | CONFIG_BLOCK=y | 120 | CONFIG_BLOCK=y |
116 | # CONFIG_LBD is not set | 121 | # CONFIG_LBD is not set |
117 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
118 | # CONFIG_BLK_DEV_BSG is not set | 122 | # CONFIG_BLK_DEV_BSG is not set |
119 | # CONFIG_BLK_DEV_INTEGRITY is not set | 123 | # CONFIG_BLK_DEV_INTEGRITY is not set |
120 | 124 | ||
@@ -162,6 +166,7 @@ CONFIG_CPU_SHX3=y | |||
162 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | 166 | # CONFIG_CPU_SUBTYPE_SH7760 is not set |
163 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | 167 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set |
164 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | 168 | # CONFIG_CPU_SUBTYPE_SH7723 is not set |
169 | # CONFIG_CPU_SUBTYPE_SH7724 is not set | ||
165 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | 170 | # CONFIG_CPU_SUBTYPE_SH7763 is not set |
166 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | 171 | # CONFIG_CPU_SUBTYPE_SH7770 is not set |
167 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | 172 | # CONFIG_CPU_SUBTYPE_SH7780 is not set |
@@ -171,8 +176,6 @@ CONFIG_CPU_SUBTYPE_SH7786=y | |||
171 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | 176 | # CONFIG_CPU_SUBTYPE_SH7343 is not set |
172 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | 177 | # CONFIG_CPU_SUBTYPE_SH7722 is not set |
173 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | 178 | # CONFIG_CPU_SUBTYPE_SH7366 is not set |
174 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
175 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
176 | 179 | ||
177 | # | 180 | # |
178 | # Memory management options | 181 | # Memory management options |
@@ -900,15 +903,17 @@ CONFIG_USB_HID=y | |||
900 | # | 903 | # |
901 | # Special HID drivers | 904 | # Special HID drivers |
902 | # | 905 | # |
903 | CONFIG_HID_COMPAT=y | ||
904 | CONFIG_HID_A4TECH=y | 906 | CONFIG_HID_A4TECH=y |
905 | CONFIG_HID_APPLE=y | 907 | CONFIG_HID_APPLE=y |
906 | CONFIG_HID_BELKIN=y | 908 | CONFIG_HID_BELKIN=y |
907 | CONFIG_HID_CHERRY=y | 909 | CONFIG_HID_CHERRY=y |
908 | CONFIG_HID_CHICONY=y | 910 | CONFIG_HID_CHICONY=y |
909 | CONFIG_HID_CYPRESS=y | 911 | CONFIG_HID_CYPRESS=y |
912 | # CONFIG_DRAGONRISE_FF is not set | ||
910 | CONFIG_HID_EZKEY=y | 913 | CONFIG_HID_EZKEY=y |
914 | # CONFIG_HID_KYE is not set | ||
911 | CONFIG_HID_GYRATION=y | 915 | CONFIG_HID_GYRATION=y |
916 | # CONFIG_HID_KENSINGTON is not set | ||
912 | CONFIG_HID_LOGITECH=y | 917 | CONFIG_HID_LOGITECH=y |
913 | # CONFIG_LOGITECH_FF is not set | 918 | # CONFIG_LOGITECH_FF is not set |
914 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | 919 | # CONFIG_LOGIRUMBLEPAD2_FF is not set |
@@ -1046,6 +1051,7 @@ CONFIG_EXT2_FS=y | |||
1046 | # CONFIG_EXT2_FS_XATTR is not set | 1051 | # CONFIG_EXT2_FS_XATTR is not set |
1047 | # CONFIG_EXT2_FS_XIP is not set | 1052 | # CONFIG_EXT2_FS_XIP is not set |
1048 | CONFIG_EXT3_FS=y | 1053 | CONFIG_EXT3_FS=y |
1054 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1049 | CONFIG_EXT3_FS_XATTR=y | 1055 | CONFIG_EXT3_FS_XATTR=y |
1050 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1056 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
1051 | # CONFIG_EXT3_FS_SECURITY is not set | 1057 | # CONFIG_EXT3_FS_SECURITY is not set |
@@ -1068,6 +1074,11 @@ CONFIG_INOTIFY_USER=y | |||
1068 | # CONFIG_FUSE_FS is not set | 1074 | # CONFIG_FUSE_FS is not set |
1069 | 1075 | ||
1070 | # | 1076 | # |
1077 | # Caches | ||
1078 | # | ||
1079 | # CONFIG_FSCACHE is not set | ||
1080 | |||
1081 | # | ||
1071 | # CD-ROM/DVD Filesystems | 1082 | # CD-ROM/DVD Filesystems |
1072 | # | 1083 | # |
1073 | # CONFIG_ISO9660_FS is not set | 1084 | # CONFIG_ISO9660_FS is not set |
@@ -1117,6 +1128,7 @@ CONFIG_MINIX_FS=y | |||
1117 | # CONFIG_ROMFS_FS is not set | 1128 | # CONFIG_ROMFS_FS is not set |
1118 | # CONFIG_SYSV_FS is not set | 1129 | # CONFIG_SYSV_FS is not set |
1119 | # CONFIG_UFS_FS is not set | 1130 | # CONFIG_UFS_FS is not set |
1131 | # CONFIG_NILFS2_FS is not set | ||
1120 | CONFIG_NETWORK_FILESYSTEMS=y | 1132 | CONFIG_NETWORK_FILESYSTEMS=y |
1121 | CONFIG_NFS_FS=y | 1133 | CONFIG_NFS_FS=y |
1122 | CONFIG_NFS_V3=y | 1134 | CONFIG_NFS_V3=y |
@@ -1209,10 +1221,24 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1209 | CONFIG_HAVE_FUNCTION_TRACER=y | 1221 | CONFIG_HAVE_FUNCTION_TRACER=y |
1210 | CONFIG_HAVE_DYNAMIC_FTRACE=y | 1222 | CONFIG_HAVE_DYNAMIC_FTRACE=y |
1211 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | 1223 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y |
1224 | CONFIG_TRACING_SUPPORT=y | ||
1212 | 1225 | ||
1213 | # | 1226 | # |
1214 | # Tracers | 1227 | # Tracers |
1215 | # | 1228 | # |
1229 | # CONFIG_FUNCTION_TRACER is not set | ||
1230 | # CONFIG_IRQSOFF_TRACER is not set | ||
1231 | # CONFIG_PREEMPT_TRACER is not set | ||
1232 | # CONFIG_SCHED_TRACER is not set | ||
1233 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1234 | # CONFIG_EVENT_TRACER is not set | ||
1235 | # CONFIG_BOOT_TRACER is not set | ||
1236 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1237 | # CONFIG_STACK_TRACER is not set | ||
1238 | # CONFIG_KMEMTRACE is not set | ||
1239 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1240 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1241 | # CONFIG_DMA_API_DEBUG is not set | ||
1216 | # CONFIG_SAMPLES is not set | 1242 | # CONFIG_SAMPLES is not set |
1217 | CONFIG_HAVE_ARCH_KGDB=y | 1243 | CONFIG_HAVE_ARCH_KGDB=y |
1218 | # CONFIG_SH_STANDARD_BIOS is not set | 1244 | # CONFIG_SH_STANDARD_BIOS is not set |
@@ -1322,6 +1348,7 @@ CONFIG_CRYPTO_DES=y | |||
1322 | # | 1348 | # |
1323 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1349 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1324 | # CONFIG_CRYPTO_HW is not set | 1350 | # CONFIG_CRYPTO_HW is not set |
1351 | # CONFIG_BINARY_PRINTF is not set | ||
1325 | 1352 | ||
1326 | # | 1353 | # |
1327 | # Library routines | 1354 | # Library routines |
diff --git a/arch/sh/drivers/dma/Kconfig b/arch/sh/drivers/dma/Kconfig index 666713ac5fcf..63e9dd30b41c 100644 --- a/arch/sh/drivers/dma/Kconfig +++ b/arch/sh/drivers/dma/Kconfig | |||
@@ -16,7 +16,8 @@ config SH_DMA_IRQ_MULTI | |||
16 | CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \ | 16 | CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \ |
17 | CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \ | 17 | CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \ |
18 | CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \ | 18 | CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \ |
19 | CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 | 19 | CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \ |
20 | CPU_SUBTYPE_SH7760 | ||
20 | 21 | ||
21 | config NR_ONCHIP_DMA_CHANNELS | 22 | config NR_ONCHIP_DMA_CHANNELS |
22 | int | 23 | int |
diff --git a/arch/sh/drivers/pci/Kconfig b/arch/sh/drivers/pci/Kconfig index 7e816ededed7..e8db585a6638 100644 --- a/arch/sh/drivers/pci/Kconfig +++ b/arch/sh/drivers/pci/Kconfig | |||
@@ -17,21 +17,3 @@ config SH_PCIDMA_NONCOHERENT | |||
17 | code will not have to flush the CPU's caches. If you have a PCI host | 17 | code will not have to flush the CPU's caches. If you have a PCI host |
18 | bridge integrated with your SH CPU, refer carefully to the chip specs | 18 | bridge integrated with your SH CPU, refer carefully to the chip specs |
19 | to see if you can say 'N' here. Otherwise, leave it as 'Y'. | 19 | to see if you can say 'N' here. Otherwise, leave it as 'Y'. |
20 | |||
21 | # This is also board-specific | ||
22 | config PCI_AUTO | ||
23 | bool | ||
24 | depends on PCI | ||
25 | default y | ||
26 | |||
27 | config PCI_AUTO_UPDATE_RESOURCES | ||
28 | bool | ||
29 | depends on PCI_AUTO | ||
30 | default y if !SH_DREAMCAST | ||
31 | help | ||
32 | Selecting this option will cause the PCI auto code to leave your | ||
33 | BAR values alone. Otherwise they will be updated automatically. If | ||
34 | for some reason, you have a board that simply refuses to work | ||
35 | with its resources updated beyond what they are when the device | ||
36 | is powered up, set this to N. Everyone else will want this as Y. | ||
37 | |||
diff --git a/arch/sh/drivers/pci/Makefile b/arch/sh/drivers/pci/Makefile index 847e90894d1b..d2ffc477549a 100644 --- a/arch/sh/drivers/pci/Makefile +++ b/arch/sh/drivers/pci/Makefile | |||
@@ -1,9 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Makefile for the PCI specific kernel interface routines under Linux. | 2 | # Makefile for the PCI specific kernel interface routines under Linux. |
3 | # | 3 | # |
4 | |||
5 | obj-y += pci.o | 4 | obj-y += pci.o |
6 | obj-$(CONFIG_PCI_AUTO) += pci-auto.o | ||
7 | 5 | ||
8 | obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o | 6 | obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o |
9 | obj-$(CONFIG_CPU_SUBTYPE_SH7751R) += pci-sh7751.o ops-sh4.o | 7 | obj-$(CONFIG_CPU_SUBTYPE_SH7751R) += pci-sh7751.o ops-sh4.o |
@@ -12,15 +10,17 @@ obj-$(CONFIG_CPU_SUBTYPE_SH7780) += pci-sh7780.o ops-sh4.o | |||
12 | obj-$(CONFIG_CPU_SUBTYPE_SH7785) += pci-sh7780.o ops-sh4.o | 10 | obj-$(CONFIG_CPU_SUBTYPE_SH7785) += pci-sh7780.o ops-sh4.o |
13 | obj-$(CONFIG_CPU_SH5) += pci-sh5.o ops-sh5.o | 11 | obj-$(CONFIG_CPU_SH5) += pci-sh5.o ops-sh5.o |
14 | 12 | ||
15 | obj-$(CONFIG_SH_DREAMCAST) += ops-dreamcast.o fixups-dreamcast.o | 13 | obj-$(CONFIG_SH_DREAMCAST) += ops-dreamcast.o fixups-dreamcast.o \ |
16 | obj-$(CONFIG_SH_SECUREEDGE5410) += ops-snapgear.o | 14 | pci-dreamcast.o |
17 | obj-$(CONFIG_SH_RTS7751R2D) += ops-rts7751r2d.o fixups-rts7751r2d.o | 15 | obj-$(CONFIG_SH_SECUREEDGE5410) += fixups-snapgear.o |
18 | obj-$(CONFIG_SH_SH03) += ops-sh03.o fixups-sh03.o | 16 | obj-$(CONFIG_SH_7751_SOLUTION_ENGINE) += fixups-se7751.o |
19 | obj-$(CONFIG_SH_HIGHLANDER) += ops-r7780rp.o fixups-r7780rp.o | 17 | obj-$(CONFIG_SH_RTS7751R2D) += fixups-rts7751r2d.o |
20 | obj-$(CONFIG_SH_SDK7780) += ops-sdk7780.o fixups-sdk7780.o | 18 | obj-$(CONFIG_SH_SH03) += fixups-sh03.o |
21 | obj-$(CONFIG_SH_TITAN) += ops-titan.o | 19 | obj-$(CONFIG_SH_HIGHLANDER) += fixups-r7780rp.o |
22 | obj-$(CONFIG_SH_LANDISK) += ops-landisk.o | 20 | obj-$(CONFIG_SH_SH7785LCR) += fixups-r7780rp.o |
23 | obj-$(CONFIG_SH_LBOX_RE2) += ops-lboxre2.o fixups-lboxre2.o | 21 | obj-$(CONFIG_SH_SDK7780) += fixups-sdk7780.o |
24 | obj-$(CONFIG_SH_7780_SOLUTION_ENGINE) += ops-se7780.o fixups-se7780.o | 22 | obj-$(CONFIG_SH_7780_SOLUTION_ENGINE) += fixups-sdk7780.o |
25 | obj-$(CONFIG_SH_CAYMAN) += ops-cayman.o | 23 | obj-$(CONFIG_SH_TITAN) += fixups-titan.o |
26 | obj-$(CONFIG_SH_SH7785LCR) += ops-sh7785lcr.o fixups-sh7785lcr.o | 24 | obj-$(CONFIG_SH_LANDISK) += fixups-landisk.o |
25 | obj-$(CONFIG_SH_LBOX_RE2) += fixups-rts7751r2d.o | ||
26 | obj-$(CONFIG_SH_CAYMAN) += fixups-cayman.o | ||
diff --git a/arch/sh/drivers/pci/ops-cayman.c b/arch/sh/drivers/pci/fixups-cayman.c index 38ef76207af6..b68b61d22c6c 100644 --- a/arch/sh/drivers/pci/ops-cayman.c +++ b/arch/sh/drivers/pci/fixups-cayman.c | |||
@@ -75,15 +75,3 @@ int __init pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin) | |||
75 | 75 | ||
76 | return result; | 76 | return result; |
77 | } | 77 | } |
78 | |||
79 | struct pci_channel board_pci_channels[] = { | ||
80 | { &sh5_pci_ops, NULL, NULL, 0, 0xff }, | ||
81 | { NULL, NULL, NULL, 0, 0 }, | ||
82 | }; | ||
83 | EXPORT_SYMBOL(board_pci_channels); | ||
84 | |||
85 | int __init pcibios_init_platform(void) | ||
86 | { | ||
87 | return sh5pci_init(__pa(memory_start), | ||
88 | __pa(memory_end) - __pa(memory_start)); | ||
89 | } | ||
diff --git a/arch/sh/drivers/pci/fixups-dreamcast.c b/arch/sh/drivers/pci/fixups-dreamcast.c index 2bf85cf091e1..ed7f489936f1 100644 --- a/arch/sh/drivers/pci/fixups-dreamcast.c +++ b/arch/sh/drivers/pci/fixups-dreamcast.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | static void __init gapspci_fixup_resources(struct pci_dev *dev) | 31 | static void __init gapspci_fixup_resources(struct pci_dev *dev) |
32 | { | 32 | { |
33 | struct pci_channel *p = board_pci_channels; | 33 | struct pci_channel *p = dev->sysdata; |
34 | 34 | ||
35 | printk(KERN_NOTICE "PCI: Fixing up device %s\n", pci_name(dev)); | 35 | printk(KERN_NOTICE "PCI: Fixing up device %s\n", pci_name(dev)); |
36 | 36 | ||
@@ -41,6 +41,13 @@ static void __init gapspci_fixup_resources(struct pci_dev *dev) | |||
41 | */ | 41 | */ |
42 | dev->resource[1].start = p->io_resource->start + 0x100; | 42 | dev->resource[1].start = p->io_resource->start + 0x100; |
43 | dev->resource[1].end = dev->resource[1].start + 0x200 - 1; | 43 | dev->resource[1].end = dev->resource[1].start + 0x200 - 1; |
44 | |||
45 | /* | ||
46 | * This is not a normal BAR, prevent any attempts to move | ||
47 | * the BAR, as this will result in a bus lock. | ||
48 | */ | ||
49 | dev->resource[1].flags |= IORESOURCE_PCI_FIXED; | ||
50 | |||
44 | /* | 51 | /* |
45 | * Redirect dma memory allocations to special memory window. | 52 | * Redirect dma memory allocations to special memory window. |
46 | */ | 53 | */ |
diff --git a/arch/sh/drivers/pci/ops-landisk.c b/arch/sh/drivers/pci/fixups-landisk.c index bff09ecf3419..bb1a6bb5149e 100644 --- a/arch/sh/drivers/pci/ops-landisk.c +++ b/arch/sh/drivers/pci/fixups-landisk.c | |||
@@ -15,39 +15,6 @@ | |||
15 | #include <linux/pci.h> | 15 | #include <linux/pci.h> |
16 | #include "pci-sh4.h" | 16 | #include "pci-sh4.h" |
17 | 17 | ||
18 | static struct resource sh7751_io_resource = { | ||
19 | .name = "SH7751 IO", | ||
20 | .start = SH7751_PCI_IO_BASE, | ||
21 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
22 | .flags = IORESOURCE_IO | ||
23 | }; | ||
24 | |||
25 | static struct resource sh7751_mem_resource = { | ||
26 | .name = "SH7751 mem", | ||
27 | .start = SH7751_PCI_MEMORY_BASE, | ||
28 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
29 | .flags = IORESOURCE_MEM | ||
30 | }; | ||
31 | |||
32 | struct pci_channel board_pci_channels[] = { | ||
33 | {&sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0x3ff}, | ||
34 | {NULL, NULL, NULL, 0, 0}, | ||
35 | }; | ||
36 | |||
37 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
38 | .window0 = { | ||
39 | .base = SH7751_CS3_BASE_ADDR, | ||
40 | .size = (64 << 20), /* 64MB */ | ||
41 | }, | ||
42 | |||
43 | .flags = SH4_PCIC_NO_RESET, | ||
44 | }; | ||
45 | |||
46 | int __init pcibios_init_platform(void) | ||
47 | { | ||
48 | return sh7751_pcic_init(&sh7751_pci_map); | ||
49 | } | ||
50 | |||
51 | int pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | 18 | int pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) |
52 | { | 19 | { |
53 | /* | 20 | /* |
diff --git a/arch/sh/drivers/pci/fixups-lboxre2.c b/arch/sh/drivers/pci/fixups-lboxre2.c deleted file mode 100644 index 1c1d41255ec0..000000000000 --- a/arch/sh/drivers/pci/fixups-lboxre2.c +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/fixups-lboxre2.c | ||
3 | * | ||
4 | * L-BOX RE2 PCI fixups | ||
5 | * | ||
6 | * Copyright (C) 2007 Nobuhiro Iwamatsu | ||
7 | * | ||
8 | * This file is subject to the terms and conditions of the GNU General Public | ||
9 | * License. See the file "COPYING" in the main directory of this archive | ||
10 | * for more details. | ||
11 | */ | ||
12 | #include "pci-sh4.h" | ||
13 | |||
14 | #define PCIMCR_MRSET_OFF 0xBFFFFFFF | ||
15 | #define PCIMCR_RFSH_OFF 0xFFFFFFFB | ||
16 | |||
17 | int pci_fixup_pcic(void) | ||
18 | { | ||
19 | unsigned long bcr1, mcr; | ||
20 | |||
21 | bcr1 = ctrl_inl(SH7751_BCR1); | ||
22 | bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ | ||
23 | pci_write_reg(bcr1, SH4_PCIBCR1); | ||
24 | |||
25 | /* Enable all interrupts, so we known what to fix */ | ||
26 | pci_write_reg(0x0000c3ff, SH4_PCIINTM); | ||
27 | pci_write_reg(0x0000380f, SH4_PCIAINTM); | ||
28 | pci_write_reg(0xfb900047, SH7751_PCICONF1); | ||
29 | pci_write_reg(0xab000001, SH7751_PCICONF4); | ||
30 | |||
31 | mcr = ctrl_inl(SH7751_MCR); | ||
32 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; | ||
33 | pci_write_reg(mcr, SH4_PCIMCR); | ||
34 | |||
35 | pci_write_reg(0x0c000000, SH7751_PCICONF5); | ||
36 | pci_write_reg(0xd0000000, SH7751_PCICONF6); | ||
37 | pci_write_reg(0x0c000000, SH4_PCILAR0); | ||
38 | pci_write_reg(0x00000000, SH4_PCILAR1); | ||
39 | |||
40 | return 0; | ||
41 | } | ||
diff --git a/arch/sh/drivers/pci/fixups-r7780rp.c b/arch/sh/drivers/pci/fixups-r7780rp.c index 3e321df65d22..15ca65cb667e 100644 --- a/arch/sh/drivers/pci/fixups-r7780rp.c +++ b/arch/sh/drivers/pci/fixups-r7780rp.c | |||
@@ -11,35 +11,26 @@ | |||
11 | * for more details. | 11 | * for more details. |
12 | */ | 12 | */ |
13 | #include <linux/pci.h> | 13 | #include <linux/pci.h> |
14 | #include <linux/io.h> | ||
14 | #include "pci-sh4.h" | 15 | #include "pci-sh4.h" |
15 | #include <asm/io.h> | ||
16 | 16 | ||
17 | int pci_fixup_pcic(void) | 17 | static char irq_tab[] __initdata = { |
18 | { | 18 | 65, 66, 67, 68, |
19 | pci_write_reg(0x000043ff, SH4_PCIINTM); | 19 | }; |
20 | pci_write_reg(0x0000380f, SH4_PCIAINTM); | ||
21 | |||
22 | pci_write_reg(0xfbb00047, SH7780_PCICMD); | ||
23 | pci_write_reg(0x00000000, SH7780_PCIIBAR); | ||
24 | |||
25 | pci_write_reg(0x00011912, SH7780_PCISVID); | ||
26 | pci_write_reg(0x08000000, SH7780_PCICSCR0); | ||
27 | pci_write_reg(0x0000001b, SH7780_PCICSAR0); | ||
28 | pci_write_reg(0xfd000000, SH7780_PCICSCR1); | ||
29 | pci_write_reg(0x0000000f, SH7780_PCICSAR1); | ||
30 | |||
31 | pci_write_reg(0xfd000000, SH7780_PCIMBR0); | ||
32 | pci_write_reg(0x00fc0000, SH7780_PCIMBMR0); | ||
33 | 20 | ||
34 | #ifdef CONFIG_32BIT | 21 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) |
35 | pci_write_reg(0xc0000000, SH7780_PCIMBR2); | 22 | { |
36 | pci_write_reg(0x20000000 - SH7780_PCI_IO_SIZE, SH7780_PCIMBMR2); | 23 | return irq_tab[slot]; |
37 | #endif | 24 | } |
38 | 25 | ||
39 | /* Set IOBR for windows containing area specified in pci.h */ | 26 | int pci_fixup_pcic(struct pci_channel *chan) |
40 | pci_write_reg((PCIBIOS_MIN_IO & ~(SH7780_PCI_IO_SIZE - 1)), | 27 | { |
41 | SH7780_PCIIOBR); | 28 | pci_write_reg(chan, 0x000043ff, SH4_PCIINTM); |
42 | pci_write_reg(((SH7780_PCI_IO_SIZE-1) & (7<<18)), SH7780_PCIIOBMR); | 29 | pci_write_reg(chan, 0x00000000, SH7780_PCIIBAR); |
30 | pci_write_reg(chan, 0x08000000, SH7780_PCICSCR0); | ||
31 | pci_write_reg(chan, 0x0000001b, SH7780_PCICSAR0); | ||
32 | pci_write_reg(chan, 0xfd000000, SH7780_PCICSCR1); | ||
33 | pci_write_reg(chan, 0x0000000f, SH7780_PCICSAR1); | ||
43 | 34 | ||
44 | return 0; | 35 | return 0; |
45 | } | 36 | } |
diff --git a/arch/sh/drivers/pci/fixups-rts7751r2d.c b/arch/sh/drivers/pci/fixups-rts7751r2d.c index 904bce8768d3..052b354236dc 100644 --- a/arch/sh/drivers/pci/fixups-rts7751r2d.c +++ b/arch/sh/drivers/pci/fixups-rts7751r2d.c | |||
@@ -1,43 +1,67 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/drivers/pci/fixups-rts7751r2d.c | 2 | * arch/sh/drivers/pci/fixups-rts7751r2d.c |
3 | * | 3 | * |
4 | * RTS7751R2D PCI fixups | 4 | * RTS7751R2D / LBOXRE2 PCI fixups |
5 | * | 5 | * |
6 | * Copyright (C) 2003 Lineo uSolutions, Inc. | 6 | * Copyright (C) 2003 Lineo uSolutions, Inc. |
7 | * Copyright (C) 2004 Paul Mundt | 7 | * Copyright (C) 2004 Paul Mundt |
8 | * Copyright (C) 2007 Nobuhiro Iwamatsu | ||
8 | * | 9 | * |
9 | * This file is subject to the terms and conditions of the GNU General Public | 10 | * This file is subject to the terms and conditions of the GNU General Public |
10 | * License. See the file "COPYING" in the main directory of this archive | 11 | * License. See the file "COPYING" in the main directory of this archive |
11 | * for more details. | 12 | * for more details. |
12 | */ | 13 | */ |
14 | #include <linux/pci.h> | ||
15 | #include <mach/lboxre2.h> | ||
16 | #include <mach/r2d.h> | ||
13 | #include "pci-sh4.h" | 17 | #include "pci-sh4.h" |
18 | #include <asm/machtypes.h> | ||
14 | 19 | ||
15 | #define PCIMCR_MRSET_OFF 0xBFFFFFFF | 20 | #define PCIMCR_MRSET_OFF 0xBFFFFFFF |
16 | #define PCIMCR_RFSH_OFF 0xFFFFFFFB | 21 | #define PCIMCR_RFSH_OFF 0xFFFFFFFB |
17 | 22 | ||
18 | int pci_fixup_pcic(void) | 23 | static u8 rts7751r2d_irq_tab[] __initdata = { |
24 | IRQ_PCI_INTA, | ||
25 | IRQ_PCI_INTB, | ||
26 | IRQ_PCI_INTC, | ||
27 | IRQ_PCI_INTD, | ||
28 | }; | ||
29 | |||
30 | static char lboxre2_irq_tab[] __initdata = { | ||
31 | IRQ_ETH0, IRQ_ETH1, IRQ_INTA, IRQ_INTD, | ||
32 | }; | ||
33 | |||
34 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
35 | { | ||
36 | if (mach_is_lboxre2()) | ||
37 | return lboxre2_irq_tab[slot]; | ||
38 | else | ||
39 | return rts7751r2d_irq_tab[slot]; | ||
40 | } | ||
41 | |||
42 | int pci_fixup_pcic(struct pci_channel *chan) | ||
19 | { | 43 | { |
20 | unsigned long bcr1, mcr; | 44 | unsigned long bcr1, mcr; |
21 | 45 | ||
22 | bcr1 = ctrl_inl(SH7751_BCR1); | 46 | bcr1 = ctrl_inl(SH7751_BCR1); |
23 | bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ | 47 | bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ |
24 | pci_write_reg(bcr1, SH4_PCIBCR1); | 48 | pci_write_reg(chan, bcr1, SH4_PCIBCR1); |
25 | 49 | ||
26 | /* Enable all interrupts, so we known what to fix */ | 50 | /* Enable all interrupts, so we known what to fix */ |
27 | pci_write_reg(0x0000c3ff, SH4_PCIINTM); | 51 | pci_write_reg(chan, 0x0000c3ff, SH4_PCIINTM); |
28 | pci_write_reg(0x0000380f, SH4_PCIAINTM); | 52 | pci_write_reg(chan, 0x0000380f, SH4_PCIAINTM); |
29 | 53 | ||
30 | pci_write_reg(0xfb900047, SH7751_PCICONF1); | 54 | pci_write_reg(chan, 0xfb900047, SH7751_PCICONF1); |
31 | pci_write_reg(0xab000001, SH7751_PCICONF4); | 55 | pci_write_reg(chan, 0xab000001, SH7751_PCICONF4); |
32 | 56 | ||
33 | mcr = ctrl_inl(SH7751_MCR); | 57 | mcr = ctrl_inl(SH7751_MCR); |
34 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; | 58 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; |
35 | pci_write_reg(mcr, SH4_PCIMCR); | 59 | pci_write_reg(chan, mcr, SH4_PCIMCR); |
36 | 60 | ||
37 | pci_write_reg(0x0c000000, SH7751_PCICONF5); | 61 | pci_write_reg(chan, 0x0c000000, SH7751_PCICONF5); |
38 | pci_write_reg(0xd0000000, SH7751_PCICONF6); | 62 | pci_write_reg(chan, 0xd0000000, SH7751_PCICONF6); |
39 | pci_write_reg(0x0c000000, SH4_PCILAR0); | 63 | pci_write_reg(chan, 0x0c000000, SH4_PCILAR0); |
40 | pci_write_reg(0x00000000, SH4_PCILAR1); | 64 | pci_write_reg(chan, 0x00000000, SH4_PCILAR1); |
41 | 65 | ||
42 | return 0; | 66 | return 0; |
43 | } | 67 | } |
diff --git a/arch/sh/drivers/pci/fixups-sdk7780.c b/arch/sh/drivers/pci/fixups-sdk7780.c index 2f8863099dd1..250b0edd7365 100644 --- a/arch/sh/drivers/pci/fixups-sdk7780.c +++ b/arch/sh/drivers/pci/fixups-sdk7780.c | |||
@@ -5,55 +5,48 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2003 Lineo uSolutions, Inc. | 6 | * Copyright (C) 2003 Lineo uSolutions, Inc. |
7 | * Copyright (C) 2004 - 2006 Paul Mundt | 7 | * Copyright (C) 2004 - 2006 Paul Mundt |
8 | * Copyright (C) 2006 Nobuhiro Iwamatsu | ||
8 | * | 9 | * |
9 | * This file is subject to the terms and conditions of the GNU General Public | 10 | * This file is subject to the terms and conditions of the GNU General Public |
10 | * License. See the file "COPYING" in the main directory of this archive | 11 | * License. See the file "COPYING" in the main directory of this archive |
11 | * for more details. | 12 | * for more details. |
12 | */ | 13 | */ |
13 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
15 | #include <linux/io.h> | ||
14 | #include "pci-sh4.h" | 16 | #include "pci-sh4.h" |
15 | #include <asm/io.h> | ||
16 | 17 | ||
17 | int pci_fixup_pcic(void) | 18 | /* IDSEL [16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31] */ |
19 | static char sdk7780_irq_tab[4][16] __initdata = { | ||
20 | /* INTA */ | ||
21 | { 65, 68, 67, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
22 | /* INTB */ | ||
23 | { 66, 65, -1, 65, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
24 | /* INTC */ | ||
25 | { 67, 66, -1, 66, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
26 | /* INTD */ | ||
27 | { 68, 67, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
28 | }; | ||
29 | |||
30 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
31 | { | ||
32 | return sdk7780_irq_tab[pin-1][slot]; | ||
33 | } | ||
34 | int pci_fixup_pcic(struct pci_channel *chan) | ||
18 | { | 35 | { |
19 | ctrl_outl(0x00000001, SH7780_PCI_VCR2); | ||
20 | |||
21 | /* Enable all interrupts, so we know what to fix */ | 36 | /* Enable all interrupts, so we know what to fix */ |
22 | pci_write_reg(0x0000C3FF, SH7780_PCIIMR); | 37 | pci_write_reg(chan, 0x0000C3FF, SH7780_PCIIMR); |
23 | pci_write_reg(0x0000380F, SH7780_PCIAINTM); | ||
24 | 38 | ||
25 | /* Set up standard PCI config registers */ | 39 | /* Set up standard PCI config registers */ |
26 | pci_write_reg(0xFB00, SH7780_PCISTATUS); | 40 | pci_write_reg(chan, 0x08000000, SH7780_PCIMBAR0); /* PCI */ |
27 | pci_write_reg(0x0047, SH7780_PCICMD); | 41 | pci_write_reg(chan, 0x08000000, SH4_PCILAR0); /* SHwy */ |
28 | pci_write_reg(0x00, SH7780_PCIPIF); | 42 | pci_write_reg(chan, 0x07F00001, SH4_PCILSR0); /* size 128M w/ MBAR */ |
29 | pci_write_reg(0x00, SH7780_PCISUB); | ||
30 | pci_write_reg(0x06, SH7780_PCIBCC); | ||
31 | pci_write_reg(0x1912, SH7780_PCISVID); | ||
32 | pci_write_reg(0x0001, SH7780_PCISID); | ||
33 | |||
34 | pci_write_reg(0x08000000, SH7780_PCIMBAR0); /* PCI */ | ||
35 | pci_write_reg(0x08000000, SH7780_PCILAR0); /* SHwy */ | ||
36 | pci_write_reg(0x07F00001, SH7780_PCILSR); /* size 128M w/ MBAR */ | ||
37 | |||
38 | pci_write_reg(0x00000000, SH7780_PCIMBAR1); | ||
39 | pci_write_reg(0x00000000, SH7780_PCILAR1); | ||
40 | pci_write_reg(0x00000000, SH7780_PCILSR1); | ||
41 | |||
42 | pci_write_reg(0xAB000801, SH7780_PCIIBAR); | ||
43 | |||
44 | /* | ||
45 | * Set the MBR so PCI address is one-to-one with window, | ||
46 | * meaning all calls go straight through... use ifdef to | ||
47 | * catch erroneous assumption. | ||
48 | */ | ||
49 | pci_write_reg(0xFD000000 , SH7780_PCIMBR0); | ||
50 | pci_write_reg(0x00FC0000 , SH7780_PCIMBMR0); /* 16M */ | ||
51 | 43 | ||
52 | /* Set IOBR for window containing area specified in pci.h */ | 44 | pci_write_reg(chan, 0x00000000, SH7780_PCIMBAR1); |
53 | pci_write_reg(PCIBIOS_MIN_IO & ~(SH7780_PCI_IO_SIZE-1), SH7780_PCIIOBR); | 45 | pci_write_reg(chan, 0x00000000, SH4_PCILAR1); |
54 | pci_write_reg((SH7780_PCI_IO_SIZE-1) & (7 << 18), SH7780_PCIIOBMR); | 46 | pci_write_reg(chan, 0x00000000, SH4_PCILSR1); |
55 | 47 | ||
56 | pci_write_reg(0xA5000C01, SH7780_PCICR); | 48 | pci_write_reg(chan, 0xAB000801, SH7780_PCIIBAR); |
49 | pci_write_reg(chan, 0xA5000C01, SH4_PCICR); | ||
57 | 50 | ||
58 | return 0; | 51 | return 0; |
59 | } | 52 | } |
diff --git a/arch/sh/drivers/pci/fixups-se7751.c b/arch/sh/drivers/pci/fixups-se7751.c new file mode 100644 index 000000000000..475fa9f0fe2c --- /dev/null +++ b/arch/sh/drivers/pci/fixups-se7751.c | |||
@@ -0,0 +1,111 @@ | |||
1 | #include <linux/kernel.h> | ||
2 | #include <linux/types.h> | ||
3 | #include <linux/init.h> | ||
4 | #include <linux/delay.h> | ||
5 | #include <linux/pci.h> | ||
6 | #include <linux/io.h> | ||
7 | #include "pci-sh4.h" | ||
8 | |||
9 | int __init pcibios_map_platform_irq(u8 slot, u8 pin) | ||
10 | { | ||
11 | switch (slot) { | ||
12 | case 0: return 13; | ||
13 | case 1: return 13; /* AMD Ethernet controller */ | ||
14 | case 2: return -1; | ||
15 | case 3: return -1; | ||
16 | case 4: return -1; | ||
17 | default: | ||
18 | printk("PCI: Bad IRQ mapping request for slot %d\n", slot); | ||
19 | return -1; | ||
20 | } | ||
21 | } | ||
22 | |||
23 | #define PCIMCR_MRSET_OFF 0xBFFFFFFF | ||
24 | #define PCIMCR_RFSH_OFF 0xFFFFFFFB | ||
25 | |||
26 | /* | ||
27 | * Only long word accesses of the PCIC's internal local registers and the | ||
28 | * configuration registers from the CPU is supported. | ||
29 | */ | ||
30 | #define PCIC_WRITE(x,v) writel((v), PCI_REG(x)) | ||
31 | #define PCIC_READ(x) readl(PCI_REG(x)) | ||
32 | |||
33 | /* | ||
34 | * Description: This function sets up and initializes the pcic, sets | ||
35 | * up the BARS, maps the DRAM into the address space etc, etc. | ||
36 | */ | ||
37 | int pci_fixup_pcic(struct pci_channel *chan) | ||
38 | { | ||
39 | unsigned long bcr1, wcr1, wcr2, wcr3, mcr; | ||
40 | unsigned short bcr2; | ||
41 | |||
42 | /* | ||
43 | * Initialize the slave bus controller on the pcic. The values used | ||
44 | * here should not be hardcoded, but they should be taken from the bsc | ||
45 | * on the processor, to make this function as generic as possible. | ||
46 | * (i.e. Another sbc may usr different SDRAM timing settings -- in order | ||
47 | * for the pcic to work, its settings need to be exactly the same.) | ||
48 | */ | ||
49 | bcr1 = (*(volatile unsigned long*)(SH7751_BCR1)); | ||
50 | bcr2 = (*(volatile unsigned short*)(SH7751_BCR2)); | ||
51 | wcr1 = (*(volatile unsigned long*)(SH7751_WCR1)); | ||
52 | wcr2 = (*(volatile unsigned long*)(SH7751_WCR2)); | ||
53 | wcr3 = (*(volatile unsigned long*)(SH7751_WCR3)); | ||
54 | mcr = (*(volatile unsigned long*)(SH7751_MCR)); | ||
55 | |||
56 | bcr1 = bcr1 | 0x00080000; /* Enable Bit 19, BREQEN */ | ||
57 | (*(volatile unsigned long*)(SH7751_BCR1)) = bcr1; | ||
58 | |||
59 | bcr1 = bcr1 | 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ | ||
60 | PCIC_WRITE(SH7751_PCIBCR1, bcr1); /* PCIC BCR1 */ | ||
61 | PCIC_WRITE(SH7751_PCIBCR2, bcr2); /* PCIC BCR2 */ | ||
62 | PCIC_WRITE(SH7751_PCIWCR1, wcr1); /* PCIC WCR1 */ | ||
63 | PCIC_WRITE(SH7751_PCIWCR2, wcr2); /* PCIC WCR2 */ | ||
64 | PCIC_WRITE(SH7751_PCIWCR3, wcr3); /* PCIC WCR3 */ | ||
65 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; | ||
66 | PCIC_WRITE(SH7751_PCIMCR, mcr); /* PCIC MCR */ | ||
67 | |||
68 | |||
69 | /* Enable all interrupts, so we know what to fix */ | ||
70 | PCIC_WRITE(SH7751_PCIINTM, 0x0000c3ff); | ||
71 | PCIC_WRITE(SH7751_PCIAINTM, 0x0000380f); | ||
72 | |||
73 | /* Set up standard PCI config registers */ | ||
74 | PCIC_WRITE(SH7751_PCICONF1, 0xF39000C7); /* Bus Master, Mem & I/O access */ | ||
75 | PCIC_WRITE(SH7751_PCICONF2, 0x00000000); /* PCI Class code & Revision ID */ | ||
76 | PCIC_WRITE(SH7751_PCICONF4, 0xab000001); /* PCI I/O address (local regs) */ | ||
77 | PCIC_WRITE(SH7751_PCICONF5, 0x0c000000); /* PCI MEM address (local RAM) */ | ||
78 | PCIC_WRITE(SH7751_PCICONF6, 0xd0000000); /* PCI MEM address (unused) */ | ||
79 | PCIC_WRITE(SH7751_PCICONF11, 0x35051054); /* PCI Subsystem ID & Vendor ID */ | ||
80 | PCIC_WRITE(SH7751_PCILSR0, 0x03f00000); /* MEM (full 64M exposed) */ | ||
81 | PCIC_WRITE(SH7751_PCILSR1, 0x00000000); /* MEM (unused) */ | ||
82 | PCIC_WRITE(SH7751_PCILAR0, 0x0c000000); /* MEM (direct map from PCI) */ | ||
83 | PCIC_WRITE(SH7751_PCILAR1, 0x00000000); /* MEM (unused) */ | ||
84 | |||
85 | /* Now turn it on... */ | ||
86 | PCIC_WRITE(SH7751_PCICR, 0xa5000001); | ||
87 | |||
88 | /* | ||
89 | * Set PCIMBR and PCIIOBR here, assuming a single window | ||
90 | * (16M MEM, 256K IO) is enough. If a larger space is | ||
91 | * needed, the readx/writex and inx/outx functions will | ||
92 | * have to do more (e.g. setting registers for each call). | ||
93 | */ | ||
94 | |||
95 | /* | ||
96 | * Set the MBR so PCI address is one-to-one with window, | ||
97 | * meaning all calls go straight through... use BUG_ON to | ||
98 | * catch erroneous assumption. | ||
99 | */ | ||
100 | BUG_ON(chan->mem_resource->start != SH7751_PCI_MEMORY_BASE); | ||
101 | |||
102 | PCIC_WRITE(SH7751_PCIMBR, chan->mem_resource->start); | ||
103 | |||
104 | /* Set IOBR for window containing area specified in pci.h */ | ||
105 | PCIC_WRITE(SH7751_PCIIOBR, (chan->io_resource->start & SH7751_PCIIOBR_MASK)); | ||
106 | |||
107 | /* All done, may as well say so... */ | ||
108 | printk("SH7751 PCI: Finished initialization of the PCI controller\n"); | ||
109 | |||
110 | return 1; | ||
111 | } | ||
diff --git a/arch/sh/drivers/pci/fixups-se7780.c b/arch/sh/drivers/pci/fixups-se7780.c deleted file mode 100644 index 880cea1c0d89..000000000000 --- a/arch/sh/drivers/pci/fixups-se7780.c +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/fixups-se7780.c | ||
3 | * | ||
4 | * HITACHI UL Solution Engine 7780 PCI fixups | ||
5 | * | ||
6 | * Copyright (C) 2003 Lineo uSolutions, Inc. | ||
7 | * Copyright (C) 2004 - 2006 Paul Mundt | ||
8 | * Copyright (C) 2006 Nobuhiro Iwamatsu | ||
9 | * | ||
10 | * This file is subject to the terms and conditions of the GNU General Public | ||
11 | * License. See the file "COPYING" in the main directory of this archive | ||
12 | * for more details. | ||
13 | */ | ||
14 | #include <linux/pci.h> | ||
15 | #include "pci-sh4.h" | ||
16 | #include <asm/io.h> | ||
17 | |||
18 | int pci_fixup_pcic(void) | ||
19 | { | ||
20 | ctrl_outl(0x00000001, SH7780_PCI_VCR2); | ||
21 | |||
22 | /* Enable all interrupts, so we know what to fix */ | ||
23 | pci_write_reg(0x0000C3FF, SH7780_PCIIMR); | ||
24 | pci_write_reg(0x0000380F, SH7780_PCIAINTM); | ||
25 | |||
26 | /* Set up standard PCI config registers */ | ||
27 | ctrl_outw(0xFB00, PCI_REG(SH7780_PCISTATUS)); | ||
28 | ctrl_outw(0x0047, PCI_REG(SH7780_PCICMD)); | ||
29 | ctrl_outb( 0x00, PCI_REG(SH7780_PCIPIF)); | ||
30 | ctrl_outb( 0x00, PCI_REG(SH7780_PCISUB)); | ||
31 | ctrl_outb( 0x06, PCI_REG(SH7780_PCIBCC)); | ||
32 | ctrl_outw(0x1912, PCI_REG(SH7780_PCISVID)); | ||
33 | ctrl_outw(0x0001, PCI_REG(SH7780_PCISID)); | ||
34 | |||
35 | pci_write_reg(0x08000000, SH7780_PCIMBAR0); /* PCI */ | ||
36 | pci_write_reg(0x08000000, SH7780_PCILAR0); /* SHwy */ | ||
37 | pci_write_reg(0x07F00001, SH7780_PCILSR); /* size 128M w/ MBAR */ | ||
38 | |||
39 | pci_write_reg(0x00000000, SH7780_PCIMBAR1); | ||
40 | pci_write_reg(0x00000000, SH7780_PCILAR1); | ||
41 | pci_write_reg(0x00000000, SH7780_PCILSR1); | ||
42 | |||
43 | pci_write_reg(0xAB000801, SH7780_PCIIBAR); | ||
44 | |||
45 | /* | ||
46 | * Set the MBR so PCI address is one-to-one with window, | ||
47 | * meaning all calls go straight through... use ifdef to | ||
48 | * catch erroneous assumption. | ||
49 | */ | ||
50 | pci_write_reg(0xFD000000 , SH7780_PCIMBR0); | ||
51 | pci_write_reg(0x00FC0000 , SH7780_PCIMBMR0); /* 16M */ | ||
52 | |||
53 | /* Set IOBR for window containing area specified in pci.h */ | ||
54 | pci_write_reg(PCIBIOS_MIN_IO & ~(SH7780_PCI_IO_SIZE-1), SH7780_PCIIOBR); | ||
55 | pci_write_reg((SH7780_PCI_IO_SIZE-1) & (7 << 18), SH7780_PCIIOBMR); | ||
56 | |||
57 | pci_write_reg(0xA5000C01, SH7780_PCICR); | ||
58 | |||
59 | return 0; | ||
60 | } | ||
diff --git a/arch/sh/drivers/pci/fixups-sh7785lcr.c b/arch/sh/drivers/pci/fixups-sh7785lcr.c deleted file mode 100644 index 4949e601387a..000000000000 --- a/arch/sh/drivers/pci/fixups-sh7785lcr.c +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/fixups-sh7785lcr.c | ||
3 | * | ||
4 | * R0P7785LC0011RL PCI fixups | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * Based on arch/sh/drivers/pci/fixups-r7780rp.c | ||
8 | * Copyright (C) 2003 Lineo uSolutions, Inc. | ||
9 | * Copyright (C) 2004 - 2006 Paul Mundt | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | #include <linux/pci.h> | ||
16 | #include "pci-sh4.h" | ||
17 | |||
18 | int pci_fixup_pcic(void) | ||
19 | { | ||
20 | pci_write_reg(0x000043ff, SH4_PCIINTM); | ||
21 | pci_write_reg(0x0000380f, SH4_PCIAINTM); | ||
22 | |||
23 | pci_write_reg(0xfbb00047, SH7780_PCICMD); | ||
24 | pci_write_reg(0x00000000, SH7780_PCIIBAR); | ||
25 | |||
26 | pci_write_reg(0x00011912, SH7780_PCISVID); | ||
27 | pci_write_reg(0x08000000, SH7780_PCICSCR0); | ||
28 | pci_write_reg(0x0000001b, SH7780_PCICSAR0); | ||
29 | pci_write_reg(0xfd000000, SH7780_PCICSCR1); | ||
30 | pci_write_reg(0x0000000f, SH7780_PCICSAR1); | ||
31 | |||
32 | pci_write_reg(0xfd000000, SH7780_PCIMBR0); | ||
33 | pci_write_reg(0x00fc0000, SH7780_PCIMBMR0); | ||
34 | |||
35 | #ifdef CONFIG_32BIT | ||
36 | pci_write_reg(0xc0000000, SH7780_PCIMBR2); | ||
37 | pci_write_reg(0x20000000 - SH7780_PCI_IO_SIZE, SH7780_PCIMBMR2); | ||
38 | #endif | ||
39 | |||
40 | /* Set IOBR for windows containing area specified in pci.h */ | ||
41 | pci_write_reg((PCIBIOS_MIN_IO & ~(SH7780_PCI_IO_SIZE - 1)), | ||
42 | SH7780_PCIIOBR); | ||
43 | pci_write_reg(((SH7780_PCI_IO_SIZE - 1) & (7 << 18)), SH7780_PCIIOBMR); | ||
44 | |||
45 | return 0; | ||
46 | } | ||
diff --git a/arch/sh/drivers/pci/fixups-snapgear.c b/arch/sh/drivers/pci/fixups-snapgear.c new file mode 100644 index 000000000000..5a39ecc1adb8 --- /dev/null +++ b/arch/sh/drivers/pci/fixups-snapgear.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/ops-snapgear.c | ||
3 | * | ||
4 | * Author: David McCullough <davidm@snapgear.com> | ||
5 | * | ||
6 | * Ported to new API by Paul Mundt <lethal@linux-sh.org> | ||
7 | * | ||
8 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
9 | * | ||
10 | * May be copied or modified under the terms of the GNU General Public | ||
11 | * License. See linux/COPYING for more information. | ||
12 | * | ||
13 | * PCI initialization for the SnapGear boards | ||
14 | */ | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/pci.h> | ||
19 | #include "pci-sh4.h" | ||
20 | |||
21 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
22 | { | ||
23 | int irq = -1; | ||
24 | |||
25 | switch (slot) { | ||
26 | case 8: /* the PCI bridge */ break; | ||
27 | case 11: irq = 8; break; /* USB */ | ||
28 | case 12: irq = 11; break; /* PCMCIA */ | ||
29 | case 13: irq = 5; break; /* eth0 */ | ||
30 | case 14: irq = 8; break; /* eth1 */ | ||
31 | case 15: irq = 11; break; /* safenet (unused) */ | ||
32 | } | ||
33 | |||
34 | printk("PCI: Mapping SnapGear IRQ for slot %d, pin %c to irq %d\n", | ||
35 | slot, pin - 1 + 'A', irq); | ||
36 | |||
37 | return irq; | ||
38 | } | ||
diff --git a/arch/sh/drivers/pci/ops-titan.c b/arch/sh/drivers/pci/fixups-titan.c index a8f7801a34af..3a79fa8254a6 100644 --- a/arch/sh/drivers/pci/ops-titan.c +++ b/arch/sh/drivers/pci/fixups-titan.c | |||
@@ -36,42 +36,3 @@ int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | |||
36 | 36 | ||
37 | return irq; | 37 | return irq; |
38 | } | 38 | } |
39 | |||
40 | static struct resource sh7751_io_resource = { | ||
41 | .name = "SH7751_IO", | ||
42 | .start = SH7751_PCI_IO_BASE, | ||
43 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
44 | .flags = IORESOURCE_IO | ||
45 | }; | ||
46 | |||
47 | static struct resource sh7751_mem_resource = { | ||
48 | .name = "SH7751_mem", | ||
49 | .start = SH7751_PCI_MEMORY_BASE, | ||
50 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
51 | .flags = IORESOURCE_MEM | ||
52 | }; | ||
53 | |||
54 | struct pci_channel board_pci_channels[] = { | ||
55 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
56 | { NULL, NULL, NULL, 0, 0 }, | ||
57 | }; | ||
58 | EXPORT_SYMBOL(board_pci_channels); | ||
59 | |||
60 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
61 | .window0 = { | ||
62 | .base = SH7751_CS2_BASE_ADDR, | ||
63 | .size = SH7751_MEM_REGION_SIZE*2, /* cs2 and cs3 */ | ||
64 | }, | ||
65 | |||
66 | .window1 = { | ||
67 | .base = SH7751_CS2_BASE_ADDR, | ||
68 | .size = SH7751_MEM_REGION_SIZE*2, | ||
69 | }, | ||
70 | |||
71 | .flags = SH4_PCIC_NO_RESET, | ||
72 | }; | ||
73 | |||
74 | int __init pcibios_init_platform(void) | ||
75 | { | ||
76 | return sh7751_pcic_init(&sh7751_pci_map); | ||
77 | } | ||
diff --git a/arch/sh/drivers/pci/ops-dreamcast.c b/arch/sh/drivers/pci/ops-dreamcast.c index f5d2a2aa6f3f..e83d0d3aabe2 100644 --- a/arch/sh/drivers/pci/ops-dreamcast.c +++ b/arch/sh/drivers/pci/ops-dreamcast.c | |||
@@ -1,15 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/drivers/pci/ops-dreamcast.c | ||
3 | * | ||
4 | * PCI operations for the Sega Dreamcast | 2 | * PCI operations for the Sega Dreamcast |
5 | * | 3 | * |
6 | * Copyright (C) 2001, 2002 M. R. Brown | 4 | * Copyright (C) 2001, 2002 M. R. Brown |
7 | * Copyright (C) 2002, 2003 Paul Mundt | 5 | * Copyright (C) 2002, 2003 Paul Mundt |
8 | * | 6 | * |
9 | * This file originally bore the message (with enclosed-$): | ||
10 | * Id: pci.c,v 1.3 2003/05/04 19:29:46 lethal Exp | ||
11 | * Dreamcast PCI: Supports SEGA Broadband Adaptor only. | ||
12 | * | ||
13 | * This file is subject to the terms and conditions of the GNU General Public | 7 | * This file is subject to the terms and conditions of the GNU General Public |
14 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
15 | * for more details. | 9 | * for more details. |
@@ -23,34 +17,10 @@ | |||
23 | #include <linux/irq.h> | 17 | #include <linux/irq.h> |
24 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
25 | #include <linux/module.h> | 19 | #include <linux/module.h> |
26 | 20 | #include <linux/io.h> | |
27 | #include <asm/io.h> | 21 | #include <linux/irq.h> |
28 | #include <asm/irq.h> | ||
29 | #include <mach/pci.h> | 22 | #include <mach/pci.h> |
30 | 23 | ||
31 | static struct resource gapspci_io_resource = { | ||
32 | .name = "GAPSPCI IO", | ||
33 | .start = GAPSPCI_BBA_CONFIG, | ||
34 | .end = GAPSPCI_BBA_CONFIG + GAPSPCI_BBA_CONFIG_SIZE - 1, | ||
35 | .flags = IORESOURCE_IO, | ||
36 | }; | ||
37 | |||
38 | static struct resource gapspci_mem_resource = { | ||
39 | .name = "GAPSPCI mem", | ||
40 | .start = GAPSPCI_DMA_BASE, | ||
41 | .end = GAPSPCI_DMA_BASE + GAPSPCI_DMA_SIZE - 1, | ||
42 | .flags = IORESOURCE_MEM, | ||
43 | }; | ||
44 | |||
45 | static struct pci_ops gapspci_pci_ops; | ||
46 | |||
47 | struct pci_channel board_pci_channels[] = { | ||
48 | { &gapspci_pci_ops, &gapspci_io_resource, | ||
49 | &gapspci_mem_resource, 0, 1 }, | ||
50 | { 0, } | ||
51 | }; | ||
52 | EXPORT_SYMBOL(board_pci_channels); | ||
53 | |||
54 | /* | 24 | /* |
55 | * The !gapspci_config_access case really shouldn't happen, ever, unless | 25 | * The !gapspci_config_access case really shouldn't happen, ever, unless |
56 | * someone implicitly messes around with the last devfn value.. otherwise we | 26 | * someone implicitly messes around with the last devfn value.. otherwise we |
@@ -85,10 +55,10 @@ static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int | |||
85 | return PCIBIOS_DEVICE_NOT_FOUND; | 55 | return PCIBIOS_DEVICE_NOT_FOUND; |
86 | 56 | ||
87 | switch (size) { | 57 | switch (size) { |
88 | case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break; | 58 | case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break; |
89 | case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break; | 59 | case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break; |
90 | case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; | 60 | case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; |
91 | } | 61 | } |
92 | 62 | ||
93 | return PCIBIOS_SUCCESSFUL; | 63 | return PCIBIOS_SUCCESSFUL; |
94 | } | 64 | } |
@@ -99,72 +69,15 @@ static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int | |||
99 | return PCIBIOS_DEVICE_NOT_FOUND; | 69 | return PCIBIOS_DEVICE_NOT_FOUND; |
100 | 70 | ||
101 | switch (size) { | 71 | switch (size) { |
102 | case 1: outb(( u8)val, GAPSPCI_BBA_CONFIG+where); break; | 72 | case 1: outb(( u8)val, GAPSPCI_BBA_CONFIG+where); break; |
103 | case 2: outw((u16)val, GAPSPCI_BBA_CONFIG+where); break; | 73 | case 2: outw((u16)val, GAPSPCI_BBA_CONFIG+where); break; |
104 | case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break; | 74 | case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break; |
105 | } | 75 | } |
106 | 76 | ||
107 | return PCIBIOS_SUCCESSFUL; | 77 | return PCIBIOS_SUCCESSFUL; |
108 | } | 78 | } |
109 | 79 | ||
110 | static struct pci_ops gapspci_pci_ops = { | 80 | struct pci_ops gapspci_pci_ops = { |
111 | .read = gapspci_read, | 81 | .read = gapspci_read, |
112 | .write = gapspci_write, | 82 | .write = gapspci_write, |
113 | }; | 83 | }; |
114 | |||
115 | /* | ||
116 | * gapspci init | ||
117 | */ | ||
118 | |||
119 | int __init gapspci_init(void) | ||
120 | { | ||
121 | char idbuf[16]; | ||
122 | int i; | ||
123 | |||
124 | /* | ||
125 | * FIXME: All of this wants documenting to some degree, | ||
126 | * even some basic register definitions would be nice. | ||
127 | * | ||
128 | * I haven't seen anything this ugly since.. maple. | ||
129 | */ | ||
130 | |||
131 | for (i=0; i<16; i++) | ||
132 | idbuf[i] = inb(GAPSPCI_REGS+i); | ||
133 | |||
134 | if (strncmp(idbuf, "GAPSPCI_BRIDGE_2", 16)) | ||
135 | return -ENODEV; | ||
136 | |||
137 | outl(0x5a14a501, GAPSPCI_REGS+0x18); | ||
138 | |||
139 | for (i=0; i<1000000; i++) | ||
140 | ; | ||
141 | |||
142 | if (inl(GAPSPCI_REGS+0x18) != 1) | ||
143 | return -EINVAL; | ||
144 | |||
145 | outl(0x01000000, GAPSPCI_REGS+0x20); | ||
146 | outl(0x01000000, GAPSPCI_REGS+0x24); | ||
147 | |||
148 | outl(GAPSPCI_DMA_BASE, GAPSPCI_REGS+0x28); | ||
149 | outl(GAPSPCI_DMA_BASE+GAPSPCI_DMA_SIZE, GAPSPCI_REGS+0x2c); | ||
150 | |||
151 | outl(1, GAPSPCI_REGS+0x14); | ||
152 | outl(1, GAPSPCI_REGS+0x34); | ||
153 | |||
154 | /* Setting Broadband Adapter */ | ||
155 | outw(0xf900, GAPSPCI_BBA_CONFIG+0x06); | ||
156 | outl(0x00000000, GAPSPCI_BBA_CONFIG+0x30); | ||
157 | outb(0x00, GAPSPCI_BBA_CONFIG+0x3c); | ||
158 | outb(0xf0, GAPSPCI_BBA_CONFIG+0x0d); | ||
159 | outw(0x0006, GAPSPCI_BBA_CONFIG+0x04); | ||
160 | outl(0x00002001, GAPSPCI_BBA_CONFIG+0x10); | ||
161 | outl(0x01000000, GAPSPCI_BBA_CONFIG+0x14); | ||
162 | |||
163 | return 0; | ||
164 | } | ||
165 | |||
166 | /* Haven't done anything here as yet */ | ||
167 | char * __devinit pcibios_setup(char *str) | ||
168 | { | ||
169 | return str; | ||
170 | } | ||
diff --git a/arch/sh/drivers/pci/ops-lboxre2.c b/arch/sh/drivers/pci/ops-lboxre2.c deleted file mode 100644 index 86c0b6fb7375..000000000000 --- a/arch/sh/drivers/pci/ops-lboxre2.c +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/drivers/pci/ops-lboxre2.c | ||
3 | * | ||
4 | * Copyright (C) 2007 Nobuhiro Iwamatsu | ||
5 | * | ||
6 | * PCI initialization for the NTT COMWARE L-BOX RE2 | ||
7 | */ | ||
8 | #include <linux/kernel.h> | ||
9 | #include <linux/types.h> | ||
10 | #include <linux/init.h> | ||
11 | #include <linux/pci.h> | ||
12 | #include <linux/io.h> | ||
13 | #include <mach/lboxre2.h> | ||
14 | #include "pci-sh4.h" | ||
15 | |||
16 | static char lboxre2_irq_tab[] __initdata = { | ||
17 | IRQ_ETH0, IRQ_ETH1, IRQ_INTA, IRQ_INTD, | ||
18 | }; | ||
19 | |||
20 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
21 | { | ||
22 | return lboxre2_irq_tab[slot]; | ||
23 | } | ||
24 | |||
25 | static struct resource sh7751_io_resource = { | ||
26 | .name = "SH7751_IO", | ||
27 | .start = SH7751_PCI_IO_BASE , | ||
28 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
29 | .flags = IORESOURCE_IO | ||
30 | }; | ||
31 | |||
32 | static struct resource sh7751_mem_resource = { | ||
33 | .name = "SH7751_mem", | ||
34 | .start = SH7751_PCI_MEMORY_BASE, | ||
35 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
36 | .flags = IORESOURCE_MEM | ||
37 | }; | ||
38 | |||
39 | extern struct pci_ops sh7751_pci_ops; | ||
40 | |||
41 | struct pci_channel board_pci_channels[] = { | ||
42 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
43 | { NULL, NULL, NULL, 0, 0 }, | ||
44 | }; | ||
45 | |||
46 | EXPORT_SYMBOL(board_pci_channels); | ||
47 | |||
48 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
49 | .window0 = { | ||
50 | .base = SH7751_CS3_BASE_ADDR, | ||
51 | .size = 0x04000000, | ||
52 | }, | ||
53 | .window1 = { | ||
54 | .base = 0x00000000, /* Unused */ | ||
55 | .size = 0x00000000, /* Unused */ | ||
56 | }, | ||
57 | .flags = SH4_PCIC_NO_RESET, | ||
58 | }; | ||
59 | |||
60 | int __init pcibios_init_platform(void) | ||
61 | { | ||
62 | return sh7751_pcic_init(&sh7751_pci_map); | ||
63 | } | ||
diff --git a/arch/sh/drivers/pci/ops-r7780rp.c b/arch/sh/drivers/pci/ops-r7780rp.c deleted file mode 100644 index 8555238e63eb..000000000000 --- a/arch/sh/drivers/pci/ops-r7780rp.c +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* | ||
2 | * Author: Ian DaSilva (idasilva@mvista.com) | ||
3 | * | ||
4 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
5 | * | ||
6 | * May be copied or modified under the terms of the GNU General Public | ||
7 | * License. See linux/COPYING for more information. | ||
8 | * | ||
9 | * PCI initialization for the Renesas SH7780 Highlander R7780RP-1 board | ||
10 | */ | ||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/types.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/delay.h> | ||
15 | #include <linux/pci.h> | ||
16 | #include <mach/highlander.h> | ||
17 | #include <asm/io.h> | ||
18 | #include "pci-sh4.h" | ||
19 | |||
20 | static char irq_tab[] __initdata = { | ||
21 | 65, 66, 67, 68, | ||
22 | }; | ||
23 | |||
24 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
25 | { | ||
26 | return irq_tab[slot]; | ||
27 | } | ||
28 | |||
29 | static struct resource sh7780_io_resource = { | ||
30 | .name = "SH7780_IO", | ||
31 | .start = SH7780_PCI_IO_BASE, | ||
32 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
33 | .flags = IORESOURCE_IO | ||
34 | }; | ||
35 | |||
36 | static struct resource sh7780_mem_resource = { | ||
37 | .name = "SH7780_mem", | ||
38 | .start = SH7780_PCI_MEMORY_BASE, | ||
39 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
40 | .flags = IORESOURCE_MEM | ||
41 | }; | ||
42 | |||
43 | extern struct pci_ops sh7780_pci_ops; | ||
44 | |||
45 | struct pci_channel board_pci_channels[] = { | ||
46 | { &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff }, | ||
47 | { NULL, NULL, NULL, 0, 0 }, | ||
48 | }; | ||
49 | EXPORT_SYMBOL(board_pci_channels); | ||
50 | |||
51 | static struct sh4_pci_address_map sh7780_pci_map = { | ||
52 | .window0 = { | ||
53 | .base = SH7780_CS2_BASE_ADDR, | ||
54 | .size = 0x04000000, | ||
55 | }, | ||
56 | |||
57 | .window1 = { | ||
58 | .base = SH7780_CS3_BASE_ADDR, | ||
59 | .size = 0x04000000, | ||
60 | }, | ||
61 | |||
62 | .flags = SH4_PCIC_NO_RESET, | ||
63 | }; | ||
64 | |||
65 | int __init pcibios_init_platform(void) | ||
66 | { | ||
67 | return sh7780_pcic_init(&sh7780_pci_map); | ||
68 | } | ||
diff --git a/arch/sh/drivers/pci/ops-rts7751r2d.c b/arch/sh/drivers/pci/ops-rts7751r2d.c deleted file mode 100644 index d6ca74b25d5f..000000000000 --- a/arch/sh/drivers/pci/ops-rts7751r2d.c +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/drivers/pci/ops-rts7751r2d.c | ||
3 | * | ||
4 | * Author: Ian DaSilva (idasilva@mvista.com) | ||
5 | * | ||
6 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
7 | * | ||
8 | * May be copied or modified under the terms of the GNU General Public | ||
9 | * License. See linux/COPYING for more information. | ||
10 | * | ||
11 | * PCI initialization for the Renesas SH7751R RTS7751R2D board | ||
12 | */ | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/pci.h> | ||
17 | #include <linux/io.h> | ||
18 | #include <mach/r2d.h> | ||
19 | #include "pci-sh4.h" | ||
20 | |||
21 | static u8 rts7751r2d_irq_tab[] __initdata = { | ||
22 | IRQ_PCI_INTA, | ||
23 | IRQ_PCI_INTB, | ||
24 | IRQ_PCI_INTC, | ||
25 | IRQ_PCI_INTD, | ||
26 | }; | ||
27 | |||
28 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
29 | { | ||
30 | return rts7751r2d_irq_tab[slot]; | ||
31 | } | ||
32 | |||
33 | static struct resource sh7751_io_resource = { | ||
34 | .name = "SH7751_IO", | ||
35 | .start = 0x4000, | ||
36 | .end = SH7751_PCI_IO_SIZE - 1, | ||
37 | .flags = IORESOURCE_IO | ||
38 | }; | ||
39 | |||
40 | static struct resource sh7751_mem_resource = { | ||
41 | .name = "SH7751_mem", | ||
42 | .start = SH7751_PCI_MEMORY_BASE, | ||
43 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
44 | .flags = IORESOURCE_MEM | ||
45 | }; | ||
46 | |||
47 | extern struct pci_ops sh7751_pci_ops; | ||
48 | |||
49 | struct pci_channel board_pci_channels[] = { | ||
50 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
51 | { NULL, NULL, NULL, 0, 0 }, | ||
52 | }; | ||
53 | EXPORT_SYMBOL(board_pci_channels); | ||
54 | |||
55 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
56 | .window0 = { | ||
57 | .base = SH7751_CS3_BASE_ADDR, | ||
58 | .size = 0x04000000, | ||
59 | }, | ||
60 | |||
61 | .window1 = { | ||
62 | .base = 0x00000000, /* Unused */ | ||
63 | .size = 0x00000000, /* Unused */ | ||
64 | }, | ||
65 | |||
66 | .flags = SH4_PCIC_NO_RESET, | ||
67 | }; | ||
68 | |||
69 | int __init pcibios_init_platform(void) | ||
70 | { | ||
71 | __set_io_port_base(SH7751_PCI_IO_BASE); | ||
72 | return sh7751_pcic_init(&sh7751_pci_map); | ||
73 | } | ||
74 | |||
diff --git a/arch/sh/drivers/pci/ops-sdk7780.c b/arch/sh/drivers/pci/ops-sdk7780.c deleted file mode 100644 index 4dcc64184b23..000000000000 --- a/arch/sh/drivers/pci/ops-sdk7780.c +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/drivers/pci/ops-sdk7780.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Nobuhiro Iwamatsu | ||
5 | * | ||
6 | * PCI initialization for the SDK7780SE03 | ||
7 | * | ||
8 | * May be copied or modified under the terms of the GNU General Public | ||
9 | * License. See linux/COPYING for more information. | ||
10 | */ | ||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/types.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/delay.h> | ||
15 | #include <linux/pci.h> | ||
16 | #include <mach/sdk7780.h> | ||
17 | #include <asm/io.h> | ||
18 | #include "pci-sh4.h" | ||
19 | |||
20 | /* IDSEL [16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31] */ | ||
21 | static char sdk7780_irq_tab[4][16] __initdata = { | ||
22 | /* INTA */ | ||
23 | { 65, 68, 67, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
24 | /* INTB */ | ||
25 | { 66, 65, -1, 65, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
26 | /* INTC */ | ||
27 | { 67, 66, -1, 66, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
28 | /* INTD */ | ||
29 | { 68, 67, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
30 | }; | ||
31 | |||
32 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
33 | { | ||
34 | return sdk7780_irq_tab[pin-1][slot]; | ||
35 | } | ||
36 | |||
37 | static struct resource sdk7780_io_resource = { | ||
38 | .name = "SH7780_IO", | ||
39 | .start = SH7780_PCI_IO_BASE, | ||
40 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
41 | .flags = IORESOURCE_IO | ||
42 | }; | ||
43 | |||
44 | static struct resource sdk7780_mem_resource = { | ||
45 | .name = "SH7780_mem", | ||
46 | .start = SH7780_PCI_MEMORY_BASE, | ||
47 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
48 | .flags = IORESOURCE_MEM | ||
49 | }; | ||
50 | |||
51 | struct pci_channel board_pci_channels[] = { | ||
52 | { &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff }, | ||
53 | { NULL, NULL, NULL, 0, 0 }, | ||
54 | }; | ||
55 | EXPORT_SYMBOL(board_pci_channels); | ||
56 | |||
57 | static struct sh4_pci_address_map sdk7780_pci_map = { | ||
58 | .window0 = { | ||
59 | .base = SH7780_CS2_BASE_ADDR, | ||
60 | .size = 0x04000000, | ||
61 | }, | ||
62 | .window1 = { | ||
63 | .base = SH7780_CS3_BASE_ADDR, | ||
64 | .size = 0x04000000, | ||
65 | }, | ||
66 | .flags = SH4_PCIC_NO_RESET, | ||
67 | }; | ||
68 | |||
69 | int __init pcibios_init_platform(void) | ||
70 | { | ||
71 | printk(KERN_INFO "SH7780 PCI: Finished initializing PCI controller\n"); | ||
72 | return sh7780_pcic_init(&sdk7780_pci_map); | ||
73 | } | ||
diff --git a/arch/sh/drivers/pci/ops-se7780.c b/arch/sh/drivers/pci/ops-se7780.c deleted file mode 100644 index 3145c62484d6..000000000000 --- a/arch/sh/drivers/pci/ops-se7780.c +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/drivers/pci/ops-se7780.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Nobuhiro Iwamatsu | ||
5 | * | ||
6 | * PCI initialization for the Hitachi UL Solution Engine 7780SE03 | ||
7 | * | ||
8 | * May be copied or modified under the terms of the GNU General Public | ||
9 | * License. See linux/COPYING for more information. | ||
10 | */ | ||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/types.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/delay.h> | ||
15 | #include <linux/pci.h> | ||
16 | #include <mach-se/mach/se7780.h> | ||
17 | #include <asm/io.h> | ||
18 | #include "pci-sh4.h" | ||
19 | |||
20 | /* | ||
21 | * IDSEL = AD16 PCI slot | ||
22 | * IDSEL = AD17 PCI slot | ||
23 | * IDSEL = AD18 Serial ATA Controller (Silicon Image SiL3512A) | ||
24 | * IDSEL = AD19 USB Host Controller (NEC uPD7210100A) | ||
25 | */ | ||
26 | |||
27 | /* IDSEL [16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31] */ | ||
28 | static char se7780_irq_tab[4][16] __initdata = { | ||
29 | /* INTA */ | ||
30 | { 65, 68, 67, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
31 | /* INTB */ | ||
32 | { 66, 65, -1, 65, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
33 | /* INTC */ | ||
34 | { 67, 66, -1, 66, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
35 | /* INTD */ | ||
36 | { 68, 67, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, | ||
37 | }; | ||
38 | |||
39 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
40 | { | ||
41 | return se7780_irq_tab[pin-1][slot]; | ||
42 | } | ||
43 | |||
44 | static struct resource se7780_io_resource = { | ||
45 | .name = "SH7780_IO", | ||
46 | .start = SH7780_PCI_IO_BASE, | ||
47 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
48 | .flags = IORESOURCE_IO | ||
49 | }; | ||
50 | |||
51 | static struct resource se7780_mem_resource = { | ||
52 | .name = "SH7780_mem", | ||
53 | .start = SH7780_PCI_MEMORY_BASE, | ||
54 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
55 | .flags = IORESOURCE_MEM | ||
56 | }; | ||
57 | |||
58 | extern struct pci_ops se7780_pci_ops; | ||
59 | |||
60 | struct pci_channel board_pci_channels[] = { | ||
61 | { &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff }, | ||
62 | { NULL, NULL, NULL, 0, 0 }, | ||
63 | }; | ||
64 | EXPORT_SYMBOL(board_pci_channels); | ||
65 | |||
66 | static struct sh4_pci_address_map se7780_pci_map = { | ||
67 | .window0 = { | ||
68 | .base = SH7780_CS2_BASE_ADDR, | ||
69 | .size = 0x04000000, | ||
70 | }, | ||
71 | .flags = SH4_PCIC_NO_RESET, | ||
72 | }; | ||
73 | |||
74 | int __init pcibios_init_platform(void) | ||
75 | { | ||
76 | printk("SH7780 PCI: Finished initialization of the PCI controller\n"); | ||
77 | |||
78 | /* | ||
79 | * FPGA PCISEL register initialize | ||
80 | * | ||
81 | * CPU || SLOT1 | SLOT2 | S-ATA | USB | ||
82 | * ------------------------------------- | ||
83 | * INTA || INTA | INTD | -- | INTB | ||
84 | * ------------------------------------- | ||
85 | * INTB || INTB | INTA | -- | INTC | ||
86 | * ------------------------------------- | ||
87 | * INTC || INTC | INTB | INTA | -- | ||
88 | * ------------------------------------- | ||
89 | * INTD || INTD | INTC | -- | INTA | ||
90 | * ------------------------------------- | ||
91 | */ | ||
92 | ctrl_outw(0x0013, FPGA_PCI_INTSEL1); | ||
93 | ctrl_outw(0xE402, FPGA_PCI_INTSEL2); | ||
94 | |||
95 | return sh7780_pcic_init(&se7780_pci_map); | ||
96 | } | ||
diff --git a/arch/sh/drivers/pci/ops-sh03.c b/arch/sh/drivers/pci/ops-sh03.c deleted file mode 100644 index e1703ff5a4d2..000000000000 --- a/arch/sh/drivers/pci/ops-sh03.c +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/drivers/pci/ops-sh03.c | ||
3 | * | ||
4 | * PCI initialization for the Interface CTP/PCI-SH03 board | ||
5 | */ | ||
6 | |||
7 | #include <linux/kernel.h> | ||
8 | #include <linux/types.h> | ||
9 | #include <linux/init.h> | ||
10 | #include <linux/delay.h> | ||
11 | #include <linux/pci.h> | ||
12 | #include <asm/io.h> | ||
13 | #include "pci-sh7751.h" | ||
14 | |||
15 | /* | ||
16 | * Description: This function sets up and initializes the pcic, sets | ||
17 | * up the BARS, maps the DRAM into the address space etc, etc. | ||
18 | */ | ||
19 | int __init pcibios_init_platform(void) | ||
20 | { | ||
21 | __set_io_port_base(SH7751_PCI_IO_BASE); | ||
22 | return 1; | ||
23 | } | ||
24 | |||
25 | static struct resource sh7751_io_resource = { | ||
26 | .name = "SH03 IO", | ||
27 | .start = SH7751_PCI_IO_BASE, | ||
28 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
29 | .flags = IORESOURCE_IO | ||
30 | }; | ||
31 | |||
32 | static struct resource sh7751_mem_resource = { | ||
33 | .name = "SH03 mem", | ||
34 | .start = SH7751_PCI_MEMORY_BASE, | ||
35 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
36 | .flags = IORESOURCE_MEM | ||
37 | }; | ||
38 | |||
39 | extern struct pci_ops sh4_pci_ops; | ||
40 | |||
41 | struct pci_channel board_pci_channels[] = { | ||
42 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
43 | { NULL, NULL, NULL, 0, 0 }, | ||
44 | }; | ||
45 | |||
diff --git a/arch/sh/drivers/pci/ops-sh4.c b/arch/sh/drivers/pci/ops-sh4.c index 710a3b0306e5..78bebebdc99c 100644 --- a/arch/sh/drivers/pci/ops-sh4.c +++ b/arch/sh/drivers/pci/ops-sh4.c | |||
@@ -1,22 +1,22 @@ | |||
1 | /* | 1 | /* |
2 | * Generic SH-4 / SH-4A PCIC operations (SH7751, SH7780). | 2 | * Generic SH-4 / SH-4A PCIC operations (SH7751, SH7780). |
3 | * | 3 | * |
4 | * Copyright (C) 2002 - 2006 Paul Mundt | 4 | * Copyright (C) 2002 - 2009 Paul Mundt |
5 | * | 5 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
7 | * License v2. See the file "COPYING" in the main directory of this archive | 7 | * License v2. See the file "COPYING" in the main directory of this archive |
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | #include <linux/pci.h> | 10 | #include <linux/pci.h> |
11 | #include <linux/io.h> | ||
11 | #include <asm/addrspace.h> | 12 | #include <asm/addrspace.h> |
12 | #include <asm/io.h> | ||
13 | #include "pci-sh4.h" | 13 | #include "pci-sh4.h" |
14 | 14 | ||
15 | /* | 15 | /* |
16 | * Direct access to PCI hardware... | 16 | * Direct access to PCI hardware... |
17 | */ | 17 | */ |
18 | #define CONFIG_CMD(bus, devfn, where) \ | 18 | #define CONFIG_CMD(bus, devfn, where) \ |
19 | P1SEGADDR((bus->number << 16) | (devfn << 8) | (where & ~3)) | 19 | (P1SEG | (bus->number << 16) | (devfn << 8) | (where & ~3)) |
20 | 20 | ||
21 | static DEFINE_SPINLOCK(sh4_pci_lock); | 21 | static DEFINE_SPINLOCK(sh4_pci_lock); |
22 | 22 | ||
@@ -26,6 +26,7 @@ static DEFINE_SPINLOCK(sh4_pci_lock); | |||
26 | static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, | 26 | static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, |
27 | int where, int size, u32 *val) | 27 | int where, int size, u32 *val) |
28 | { | 28 | { |
29 | struct pci_channel *chan = bus->sysdata; | ||
29 | unsigned long flags; | 30 | unsigned long flags; |
30 | u32 data; | 31 | u32 data; |
31 | 32 | ||
@@ -34,8 +35,8 @@ static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, | |||
34 | * so we must do byte alignment by hand | 35 | * so we must do byte alignment by hand |
35 | */ | 36 | */ |
36 | spin_lock_irqsave(&sh4_pci_lock, flags); | 37 | spin_lock_irqsave(&sh4_pci_lock, flags); |
37 | pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); | 38 | pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); |
38 | data = pci_read_reg(SH4_PCIPDR); | 39 | data = pci_read_reg(chan, SH4_PCIPDR); |
39 | spin_unlock_irqrestore(&sh4_pci_lock, flags); | 40 | spin_unlock_irqrestore(&sh4_pci_lock, flags); |
40 | 41 | ||
41 | switch (size) { | 42 | switch (size) { |
@@ -63,13 +64,14 @@ static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, | |||
63 | static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, | 64 | static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, |
64 | int where, int size, u32 val) | 65 | int where, int size, u32 val) |
65 | { | 66 | { |
67 | struct pci_channel *chan = bus->sysdata; | ||
66 | unsigned long flags; | 68 | unsigned long flags; |
67 | int shift; | 69 | int shift; |
68 | u32 data; | 70 | u32 data; |
69 | 71 | ||
70 | spin_lock_irqsave(&sh4_pci_lock, flags); | 72 | spin_lock_irqsave(&sh4_pci_lock, flags); |
71 | pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); | 73 | pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); |
72 | data = pci_read_reg(SH4_PCIPDR); | 74 | data = pci_read_reg(chan, SH4_PCIPDR); |
73 | spin_unlock_irqrestore(&sh4_pci_lock, flags); | 75 | spin_unlock_irqrestore(&sh4_pci_lock, flags); |
74 | 76 | ||
75 | switch (size) { | 77 | switch (size) { |
@@ -90,7 +92,7 @@ static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, | |||
90 | return PCIBIOS_FUNC_NOT_SUPPORTED; | 92 | return PCIBIOS_FUNC_NOT_SUPPORTED; |
91 | } | 93 | } |
92 | 94 | ||
93 | pci_write_reg(data, SH4_PCIPDR); | 95 | pci_write_reg(chan, data, SH4_PCIPDR); |
94 | 96 | ||
95 | return PCIBIOS_SUCCESSFUL; | 97 | return PCIBIOS_SUCCESSFUL; |
96 | } | 98 | } |
@@ -104,66 +106,31 @@ struct pci_ops sh4_pci_ops = { | |||
104 | * Not really related to pci_ops, but it's common and not worth shoving | 106 | * Not really related to pci_ops, but it's common and not worth shoving |
105 | * somewhere else for now.. | 107 | * somewhere else for now.. |
106 | */ | 108 | */ |
107 | static unsigned int pci_probe = PCI_PROBE_CONF1; | 109 | int __init sh4_pci_check_direct(struct pci_channel *chan) |
108 | |||
109 | int __init sh4_pci_check_direct(void) | ||
110 | { | 110 | { |
111 | /* | 111 | /* |
112 | * Check if configuration works. | 112 | * Check if configuration works. |
113 | */ | 113 | */ |
114 | if (pci_probe & PCI_PROBE_CONF1) { | 114 | unsigned int tmp = pci_read_reg(chan, SH4_PCIPAR); |
115 | unsigned int tmp = pci_read_reg(SH4_PCIPAR); | ||
116 | |||
117 | pci_write_reg(P1SEG, SH4_PCIPAR); | ||
118 | 115 | ||
119 | if (pci_read_reg(SH4_PCIPAR) == P1SEG) { | 116 | pci_write_reg(chan, P1SEG, SH4_PCIPAR); |
120 | pci_write_reg(tmp, SH4_PCIPAR); | ||
121 | printk(KERN_INFO "PCI: Using configuration type 1\n"); | ||
122 | request_region(PCI_REG(SH4_PCIPAR), 8, "PCI conf1"); | ||
123 | 117 | ||
124 | return 0; | 118 | if (pci_read_reg(chan, SH4_PCIPAR) == P1SEG) { |
125 | } | 119 | pci_write_reg(chan, tmp, SH4_PCIPAR); |
126 | 120 | printk(KERN_INFO "PCI: Using configuration type 1\n"); | |
127 | pci_write_reg(tmp, SH4_PCIPAR); | 121 | request_region(chan->reg_base + SH4_PCIPAR, 8, |
122 | "PCI conf1"); | ||
123 | return 0; | ||
128 | } | 124 | } |
129 | 125 | ||
130 | pr_debug("PCI: pci_check_direct failed\n"); | 126 | pci_write_reg(chan, tmp, SH4_PCIPAR); |
131 | return -EINVAL; | ||
132 | } | ||
133 | 127 | ||
134 | /* Handle generic fixups */ | 128 | printk(KERN_ERR "PCI: %s failed\n", __func__); |
135 | static void __init pci_fixup_ide_bases(struct pci_dev *d) | ||
136 | { | ||
137 | int i; | ||
138 | 129 | ||
139 | /* | 130 | return -EINVAL; |
140 | * PCI IDE controllers use non-standard I/O port decoding, respect it. | ||
141 | */ | ||
142 | if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE) | ||
143 | return; | ||
144 | pr_debug("PCI: IDE base address fixup for %s\n", pci_name(d)); | ||
145 | for(i = 0; i < 4; i++) { | ||
146 | struct resource *r = &d->resource[i]; | ||
147 | |||
148 | if ((r->start & ~0x80) == 0x374) { | ||
149 | r->start |= 2; | ||
150 | r->end = r->start; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases); | ||
155 | |||
156 | char * __devinit pcibios_setup(char *str) | ||
157 | { | ||
158 | if (!strcmp(str, "off")) { | ||
159 | pci_probe = 0; | ||
160 | return NULL; | ||
161 | } | ||
162 | |||
163 | return str; | ||
164 | } | 131 | } |
165 | 132 | ||
166 | int __attribute__((weak)) pci_fixup_pcic(void) | 133 | int __attribute__((weak)) pci_fixup_pcic(struct pci_channel *chan) |
167 | { | 134 | { |
168 | /* Nothing to do. */ | 135 | /* Nothing to do. */ |
169 | return 0; | 136 | return 0; |
diff --git a/arch/sh/drivers/pci/ops-sh5.c b/arch/sh/drivers/pci/ops-sh5.c index 729e38a6fe07..4ce95a001b80 100644 --- a/arch/sh/drivers/pci/ops-sh5.c +++ b/arch/sh/drivers/pci/ops-sh5.c | |||
@@ -22,31 +22,6 @@ | |||
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | #include "pci-sh5.h" | 23 | #include "pci-sh5.h" |
24 | 24 | ||
25 | static void __init pci_fixup_ide_bases(struct pci_dev *d) | ||
26 | { | ||
27 | int i; | ||
28 | |||
29 | /* | ||
30 | * PCI IDE controllers use non-standard I/O port decoding, respect it. | ||
31 | */ | ||
32 | if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE) | ||
33 | return; | ||
34 | printk("PCI: IDE base address fixup for %s\n", pci_name(d)); | ||
35 | for(i=0; i<4; i++) { | ||
36 | struct resource *r = &d->resource[i]; | ||
37 | if ((r->start & ~0x80) == 0x374) { | ||
38 | r->start |= 2; | ||
39 | r->end = r->start; | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases); | ||
44 | |||
45 | char * __devinit pcibios_setup(char *str) | ||
46 | { | ||
47 | return str; | ||
48 | } | ||
49 | |||
50 | static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, | 25 | static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, |
51 | int size, u32 *val) | 26 | int size, u32 *val) |
52 | { | 27 | { |
diff --git a/arch/sh/drivers/pci/ops-sh7785lcr.c b/arch/sh/drivers/pci/ops-sh7785lcr.c deleted file mode 100644 index fb0869f0bef8..000000000000 --- a/arch/sh/drivers/pci/ops-sh7785lcr.c +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | /* | ||
2 | * Author: Ian DaSilva (idasilva@mvista.com) | ||
3 | * | ||
4 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
5 | * | ||
6 | * May be copied or modified under the terms of the GNU General Public | ||
7 | * License. See linux/COPYING for more information. | ||
8 | * | ||
9 | * PCI initialization for the Renesas R0P7785LC0011RL board | ||
10 | * Based on arch/sh/drivers/pci/ops-r7780rp.c | ||
11 | * | ||
12 | */ | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/delay.h> | ||
17 | #include <linux/pci.h> | ||
18 | #include "pci-sh4.h" | ||
19 | |||
20 | static char irq_tab[] __initdata = { | ||
21 | 65, 66, 67, 68, | ||
22 | }; | ||
23 | |||
24 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
25 | { | ||
26 | return irq_tab[slot]; | ||
27 | } | ||
28 | |||
29 | static struct resource sh7785_io_resource = { | ||
30 | .name = "SH7785_IO", | ||
31 | .start = SH7780_PCI_IO_BASE, | ||
32 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, | ||
33 | .flags = IORESOURCE_IO | ||
34 | }; | ||
35 | |||
36 | static struct resource sh7785_mem_resource = { | ||
37 | .name = "SH7785_mem", | ||
38 | .start = SH7780_PCI_MEMORY_BASE, | ||
39 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, | ||
40 | .flags = IORESOURCE_MEM | ||
41 | }; | ||
42 | |||
43 | struct pci_channel board_pci_channels[] = { | ||
44 | { &sh4_pci_ops, &sh7785_io_resource, &sh7785_mem_resource, 0, 0xff }, | ||
45 | { NULL, NULL, NULL, 0, 0 }, | ||
46 | }; | ||
47 | EXPORT_SYMBOL(board_pci_channels); | ||
48 | |||
49 | static struct sh4_pci_address_map sh7785_pci_map = { | ||
50 | .window0 = { | ||
51 | #if defined(CONFIG_32BIT) | ||
52 | .base = SH7780_32BIT_DDR_BASE_ADDR, | ||
53 | .size = 0x40000000, | ||
54 | #else | ||
55 | .base = SH7780_CS0_BASE_ADDR, | ||
56 | .size = 0x20000000, | ||
57 | #endif | ||
58 | }, | ||
59 | |||
60 | .flags = SH4_PCIC_NO_RESET, | ||
61 | }; | ||
62 | |||
63 | int __init pcibios_init_platform(void) | ||
64 | { | ||
65 | return sh7780_pcic_init(&sh7785_pci_map); | ||
66 | } | ||
diff --git a/arch/sh/drivers/pci/ops-snapgear.c b/arch/sh/drivers/pci/ops-snapgear.c deleted file mode 100644 index 53dd893d4e54..000000000000 --- a/arch/sh/drivers/pci/ops-snapgear.c +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/ops-snapgear.c | ||
3 | * | ||
4 | * Author: David McCullough <davidm@snapgear.com> | ||
5 | * | ||
6 | * Ported to new API by Paul Mundt <lethal@linux-sh.org> | ||
7 | * | ||
8 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
9 | * | ||
10 | * May be copied or modified under the terms of the GNU General Public | ||
11 | * License. See linux/COPYING for more information. | ||
12 | * | ||
13 | * PCI initialization for the SnapGear boards | ||
14 | */ | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/pci.h> | ||
19 | #include "pci-sh4.h" | ||
20 | |||
21 | #define SNAPGEAR_PCI_IO 0x4000 | ||
22 | #define SNAPGEAR_PCI_MEM 0xfd000000 | ||
23 | |||
24 | /* PCI: default LOCAL memory window sizes (seen from PCI bus) */ | ||
25 | #define SNAPGEAR_LSR0_SIZE (64*(1<<20)) //64MB | ||
26 | #define SNAPGEAR_LSR1_SIZE (64*(1<<20)) //64MB | ||
27 | |||
28 | static struct resource sh7751_io_resource = { | ||
29 | .name = "SH7751 IO", | ||
30 | .start = SNAPGEAR_PCI_IO, | ||
31 | .end = SNAPGEAR_PCI_IO + (64*1024) - 1, /* 64KiB I/O */ | ||
32 | .flags = IORESOURCE_IO, | ||
33 | }; | ||
34 | |||
35 | static struct resource sh7751_mem_resource = { | ||
36 | .name = "SH7751 mem", | ||
37 | .start = SNAPGEAR_PCI_MEM, | ||
38 | .end = SNAPGEAR_PCI_MEM + (64*1024*1024) - 1, /* 64MiB mem */ | ||
39 | .flags = IORESOURCE_MEM, | ||
40 | }; | ||
41 | |||
42 | struct pci_channel board_pci_channels[] = { | ||
43 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | ||
44 | { 0, } | ||
45 | }; | ||
46 | |||
47 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
48 | .window0 = { | ||
49 | .base = SH7751_CS2_BASE_ADDR, | ||
50 | .size = SNAPGEAR_LSR0_SIZE, | ||
51 | }, | ||
52 | |||
53 | .window1 = { | ||
54 | .base = SH7751_CS2_BASE_ADDR, | ||
55 | .size = SNAPGEAR_LSR1_SIZE, | ||
56 | }, | ||
57 | |||
58 | .flags = SH4_PCIC_NO_RESET, | ||
59 | }; | ||
60 | |||
61 | /* | ||
62 | * Initialize the SnapGear PCI interface | ||
63 | * Setup hardware to be Central Funtion | ||
64 | * Copy the BSR regs to the PCI interface | ||
65 | * Setup PCI windows into local RAM | ||
66 | */ | ||
67 | int __init pcibios_init_platform(void) | ||
68 | { | ||
69 | return sh7751_pcic_init(&sh7751_pci_map); | ||
70 | } | ||
71 | |||
72 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
73 | { | ||
74 | int irq = -1; | ||
75 | |||
76 | switch (slot) { | ||
77 | case 8: /* the PCI bridge */ break; | ||
78 | case 11: irq = 8; break; /* USB */ | ||
79 | case 12: irq = 11; break; /* PCMCIA */ | ||
80 | case 13: irq = 5; break; /* eth0 */ | ||
81 | case 14: irq = 8; break; /* eth1 */ | ||
82 | case 15: irq = 11; break; /* safenet (unused) */ | ||
83 | } | ||
84 | |||
85 | printk("PCI: Mapping SnapGear IRQ for slot %d, pin %c to irq %d\n", | ||
86 | slot, pin - 1 + 'A', irq); | ||
87 | |||
88 | return irq; | ||
89 | } | ||
90 | |||
91 | void __init pcibios_fixup(void) | ||
92 | { | ||
93 | /* Nothing to fixup .. */ | ||
94 | } | ||
diff --git a/arch/sh/drivers/pci/pci-auto.c b/arch/sh/drivers/pci/pci-auto.c deleted file mode 100644 index cf48b12ee58c..000000000000 --- a/arch/sh/drivers/pci/pci-auto.c +++ /dev/null | |||
@@ -1,545 +0,0 @@ | |||
1 | /* | ||
2 | * PCI autoconfiguration library | ||
3 | * | ||
4 | * Author: Matt Porter <mporter@mvista.com> | ||
5 | * | ||
6 | * Copyright 2000, 2001 MontaVista Software Inc. | ||
7 | * Copyright 2001 Bradley D. LaRonde <brad@ltc.com> | ||
8 | * Copyright 2003 Paul Mundt <lethal@linux-sh.org> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | */ | ||
15 | |||
16 | /* | ||
17 | * Modified for MIPS by Jun Sun, jsun@mvista.com | ||
18 | * | ||
19 | * . Simplify the interface between pci_auto and the rest: a single function. | ||
20 | * . Assign resources from low address to upper address. | ||
21 | * . change most int to u32. | ||
22 | * | ||
23 | * Further modified to include it as mips generic code, ppopov@mvista.com. | ||
24 | * | ||
25 | * 2001-10-26 Bradley D. LaRonde <brad@ltc.com> | ||
26 | * - Add a top_bus argument to the "early config" functions so that | ||
27 | * they can set a fake parent bus pointer to convince the underlying | ||
28 | * pci ops to use type 1 configuration for sub busses. | ||
29 | * - Set bridge base and limit registers correctly. | ||
30 | * - Align io and memory base properly before and after bridge setup. | ||
31 | * - Don't fall through to pci_setup_bars for bridge. | ||
32 | * - Reformat the debug output to look more like lspci's output. | ||
33 | * | ||
34 | * Cloned for SuperH by M. R. Brown, mrbrown@0xd6.org | ||
35 | * | ||
36 | * 2003-08-05 Paul Mundt <lethal@linux-sh.org> | ||
37 | * - Don't update the BAR values on systems that already have valid addresses | ||
38 | * and don't want these updated for whatever reason, by way of a new config | ||
39 | * option check. However, we still read in the old BAR values so that they | ||
40 | * can still be reported through the debug output. | ||
41 | */ | ||
42 | |||
43 | #include <linux/kernel.h> | ||
44 | #include <linux/init.h> | ||
45 | #include <linux/types.h> | ||
46 | #include <linux/pci.h> | ||
47 | |||
48 | #define DEBUG | ||
49 | #ifdef DEBUG | ||
50 | #define DBG(x...) printk(x) | ||
51 | #else | ||
52 | #define DBG(x...) | ||
53 | #endif | ||
54 | |||
55 | /* | ||
56 | * These functions are used early on before PCI scanning is done | ||
57 | * and all of the pci_dev and pci_bus structures have been created. | ||
58 | */ | ||
59 | static struct pci_dev *fake_pci_dev(struct pci_channel *hose, | ||
60 | int top_bus, int busnr, int devfn) | ||
61 | { | ||
62 | static struct pci_dev dev; | ||
63 | static struct pci_bus bus; | ||
64 | |||
65 | dev.bus = &bus; | ||
66 | dev.sysdata = hose; | ||
67 | dev.devfn = devfn; | ||
68 | bus.number = busnr; | ||
69 | bus.ops = hose->pci_ops; | ||
70 | |||
71 | if(busnr != top_bus) | ||
72 | /* Fake a parent bus structure. */ | ||
73 | bus.parent = &bus; | ||
74 | else | ||
75 | bus.parent = NULL; | ||
76 | |||
77 | return &dev; | ||
78 | } | ||
79 | |||
80 | #define EARLY_PCI_OP(rw, size, type) \ | ||
81 | static int early_##rw##_config_##size(struct pci_channel *hose, \ | ||
82 | int top_bus, int bus, int devfn, int offset, type value) \ | ||
83 | { \ | ||
84 | return pci_##rw##_config_##size( \ | ||
85 | fake_pci_dev(hose, top_bus, bus, devfn), \ | ||
86 | offset, value); \ | ||
87 | } | ||
88 | |||
89 | EARLY_PCI_OP(read, byte, u8 *) | ||
90 | EARLY_PCI_OP(read, word, u16 *) | ||
91 | EARLY_PCI_OP(read, dword, u32 *) | ||
92 | EARLY_PCI_OP(write, byte, u8) | ||
93 | EARLY_PCI_OP(write, word, u16) | ||
94 | EARLY_PCI_OP(write, dword, u32) | ||
95 | |||
96 | static struct resource *io_resource_inuse; | ||
97 | static struct resource *mem_resource_inuse; | ||
98 | |||
99 | static u32 pciauto_lower_iospc; | ||
100 | static u32 pciauto_upper_iospc; | ||
101 | |||
102 | static u32 pciauto_lower_memspc; | ||
103 | static u32 pciauto_upper_memspc; | ||
104 | |||
105 | static void __init | ||
106 | pciauto_setup_bars(struct pci_channel *hose, | ||
107 | int top_bus, | ||
108 | int current_bus, | ||
109 | int pci_devfn, | ||
110 | int bar_limit) | ||
111 | { | ||
112 | u32 bar_response, bar_size, bar_value; | ||
113 | u32 bar, addr_mask, bar_nr = 0; | ||
114 | u32 * upper_limit; | ||
115 | u32 * lower_limit; | ||
116 | int found_mem64 = 0; | ||
117 | |||
118 | for (bar = PCI_BASE_ADDRESS_0; bar <= bar_limit; bar+=4) { | ||
119 | u32 bar_addr; | ||
120 | |||
121 | /* Read the old BAR value */ | ||
122 | early_read_config_dword(hose, top_bus, | ||
123 | current_bus, | ||
124 | pci_devfn, | ||
125 | bar, | ||
126 | &bar_addr); | ||
127 | |||
128 | /* Tickle the BAR and get the response */ | ||
129 | early_write_config_dword(hose, top_bus, | ||
130 | current_bus, | ||
131 | pci_devfn, | ||
132 | bar, | ||
133 | 0xffffffff); | ||
134 | |||
135 | early_read_config_dword(hose, top_bus, | ||
136 | current_bus, | ||
137 | pci_devfn, | ||
138 | bar, | ||
139 | &bar_response); | ||
140 | |||
141 | /* | ||
142 | * Write the old BAR value back out, only update the BAR | ||
143 | * if we implicitly want resources to be updated, which | ||
144 | * is done by the generic code further down. -- PFM. | ||
145 | */ | ||
146 | early_write_config_dword(hose, top_bus, | ||
147 | current_bus, | ||
148 | pci_devfn, | ||
149 | bar, | ||
150 | bar_addr); | ||
151 | |||
152 | /* If BAR is not implemented go to the next BAR */ | ||
153 | if (!bar_response) | ||
154 | continue; | ||
155 | |||
156 | /* | ||
157 | * Workaround for a BAR that doesn't use its upper word, | ||
158 | * like the ALi 1535D+ PCI DC-97 Controller Modem (M5457). | ||
159 | * bdl <brad@ltc.com> | ||
160 | */ | ||
161 | if (!(bar_response & 0xffff0000)) | ||
162 | bar_response |= 0xffff0000; | ||
163 | |||
164 | retry: | ||
165 | /* Check the BAR type and set our address mask */ | ||
166 | if (bar_response & PCI_BASE_ADDRESS_SPACE) { | ||
167 | addr_mask = PCI_BASE_ADDRESS_IO_MASK; | ||
168 | upper_limit = &pciauto_upper_iospc; | ||
169 | lower_limit = &pciauto_lower_iospc; | ||
170 | DBG(" I/O"); | ||
171 | } else { | ||
172 | if ((bar_response & PCI_BASE_ADDRESS_MEM_TYPE_MASK) == | ||
173 | PCI_BASE_ADDRESS_MEM_TYPE_64) | ||
174 | found_mem64 = 1; | ||
175 | |||
176 | addr_mask = PCI_BASE_ADDRESS_MEM_MASK; | ||
177 | upper_limit = &pciauto_upper_memspc; | ||
178 | lower_limit = &pciauto_lower_memspc; | ||
179 | DBG(" Mem"); | ||
180 | } | ||
181 | |||
182 | |||
183 | /* Calculate requested size */ | ||
184 | bar_size = ~(bar_response & addr_mask) + 1; | ||
185 | |||
186 | /* Allocate a base address */ | ||
187 | bar_value = ((*lower_limit - 1) & ~(bar_size - 1)) + bar_size; | ||
188 | |||
189 | if ((bar_value + bar_size) > *upper_limit) { | ||
190 | if (bar_response & PCI_BASE_ADDRESS_SPACE) { | ||
191 | if (io_resource_inuse->child) { | ||
192 | io_resource_inuse = | ||
193 | io_resource_inuse->child; | ||
194 | pciauto_lower_iospc = | ||
195 | io_resource_inuse->start; | ||
196 | pciauto_upper_iospc = | ||
197 | io_resource_inuse->end + 1; | ||
198 | goto retry; | ||
199 | } | ||
200 | |||
201 | } else { | ||
202 | if (mem_resource_inuse->child) { | ||
203 | mem_resource_inuse = | ||
204 | mem_resource_inuse->child; | ||
205 | pciauto_lower_memspc = | ||
206 | mem_resource_inuse->start; | ||
207 | pciauto_upper_memspc = | ||
208 | mem_resource_inuse->end + 1; | ||
209 | goto retry; | ||
210 | } | ||
211 | } | ||
212 | DBG(" unavailable -- skipping, value %x size %x\n", | ||
213 | bar_value, bar_size); | ||
214 | continue; | ||
215 | } | ||
216 | |||
217 | if (bar_value < *lower_limit || (bar_value + bar_size) >= *upper_limit) { | ||
218 | DBG(" unavailable -- skipping, value %x size %x\n", | ||
219 | bar_value, bar_size); | ||
220 | continue; | ||
221 | } | ||
222 | |||
223 | #ifdef CONFIG_PCI_AUTO_UPDATE_RESOURCES | ||
224 | /* Write it out and update our limit */ | ||
225 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
226 | bar, bar_value); | ||
227 | #endif | ||
228 | |||
229 | *lower_limit = bar_value + bar_size; | ||
230 | |||
231 | /* | ||
232 | * If we are a 64-bit decoder then increment to the | ||
233 | * upper 32 bits of the bar and force it to locate | ||
234 | * in the lower 4GB of memory. | ||
235 | */ | ||
236 | if (found_mem64) { | ||
237 | bar += 4; | ||
238 | early_write_config_dword(hose, top_bus, | ||
239 | current_bus, | ||
240 | pci_devfn, | ||
241 | bar, | ||
242 | 0x00000000); | ||
243 | } | ||
244 | |||
245 | DBG(" at 0x%.8x [size=0x%x]\n", bar_value, bar_size); | ||
246 | |||
247 | bar_nr++; | ||
248 | } | ||
249 | |||
250 | } | ||
251 | |||
252 | static void __init | ||
253 | pciauto_prescan_setup_bridge(struct pci_channel *hose, | ||
254 | int top_bus, | ||
255 | int current_bus, | ||
256 | int pci_devfn, | ||
257 | int sub_bus) | ||
258 | { | ||
259 | /* Configure bus number registers */ | ||
260 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
261 | PCI_PRIMARY_BUS, current_bus); | ||
262 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
263 | PCI_SECONDARY_BUS, sub_bus + 1); | ||
264 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
265 | PCI_SUBORDINATE_BUS, 0xff); | ||
266 | |||
267 | /* Align memory and I/O to 1MB and 4KB boundaries. */ | ||
268 | pciauto_lower_memspc = (pciauto_lower_memspc + (0x100000 - 1)) | ||
269 | & ~(0x100000 - 1); | ||
270 | pciauto_lower_iospc = (pciauto_lower_iospc + (0x1000 - 1)) | ||
271 | & ~(0x1000 - 1); | ||
272 | |||
273 | /* Set base (lower limit) of address range behind bridge. */ | ||
274 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
275 | PCI_MEMORY_BASE, pciauto_lower_memspc >> 16); | ||
276 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
277 | PCI_IO_BASE, (pciauto_lower_iospc & 0x0000f000) >> 8); | ||
278 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
279 | PCI_IO_BASE_UPPER16, pciauto_lower_iospc >> 16); | ||
280 | |||
281 | /* We don't support prefetchable memory for now, so disable */ | ||
282 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
283 | PCI_PREF_MEMORY_BASE, 0); | ||
284 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
285 | PCI_PREF_MEMORY_LIMIT, 0); | ||
286 | } | ||
287 | |||
288 | static void __init | ||
289 | pciauto_postscan_setup_bridge(struct pci_channel *hose, | ||
290 | int top_bus, | ||
291 | int current_bus, | ||
292 | int pci_devfn, | ||
293 | int sub_bus) | ||
294 | { | ||
295 | u32 temp; | ||
296 | |||
297 | /* | ||
298 | * [jsun] we always bump up baselines a little, so that if there | ||
299 | * nothing behind P2P bridge, we don't wind up overlapping IO/MEM | ||
300 | * spaces. | ||
301 | */ | ||
302 | pciauto_lower_memspc += 1; | ||
303 | pciauto_lower_iospc += 1; | ||
304 | |||
305 | /* Configure bus number registers */ | ||
306 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
307 | PCI_SUBORDINATE_BUS, sub_bus); | ||
308 | |||
309 | /* Set upper limit of address range behind bridge. */ | ||
310 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
311 | PCI_MEMORY_LIMIT, pciauto_lower_memspc >> 16); | ||
312 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
313 | PCI_IO_LIMIT, (pciauto_lower_iospc & 0x0000f000) >> 8); | ||
314 | early_write_config_word(hose, top_bus, current_bus, pci_devfn, | ||
315 | PCI_IO_LIMIT_UPPER16, pciauto_lower_iospc >> 16); | ||
316 | |||
317 | /* Align memory and I/O to 1MB and 4KB boundaries. */ | ||
318 | pciauto_lower_memspc = (pciauto_lower_memspc + (0x100000 - 1)) | ||
319 | & ~(0x100000 - 1); | ||
320 | pciauto_lower_iospc = (pciauto_lower_iospc + (0x1000 - 1)) | ||
321 | & ~(0x1000 - 1); | ||
322 | |||
323 | /* Enable memory and I/O accesses, enable bus master */ | ||
324 | early_read_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
325 | PCI_COMMAND, &temp); | ||
326 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
327 | PCI_COMMAND, temp | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | ||
328 | | PCI_COMMAND_MASTER); | ||
329 | } | ||
330 | |||
331 | static void __init | ||
332 | pciauto_prescan_setup_cardbus_bridge(struct pci_channel *hose, | ||
333 | int top_bus, | ||
334 | int current_bus, | ||
335 | int pci_devfn, | ||
336 | int sub_bus) | ||
337 | { | ||
338 | /* Configure bus number registers */ | ||
339 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
340 | PCI_PRIMARY_BUS, current_bus); | ||
341 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
342 | PCI_SECONDARY_BUS, sub_bus + 1); | ||
343 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
344 | PCI_SUBORDINATE_BUS, 0xff); | ||
345 | |||
346 | /* Align memory and I/O to 4KB and 4 byte boundaries. */ | ||
347 | pciauto_lower_memspc = (pciauto_lower_memspc + (0x1000 - 1)) | ||
348 | & ~(0x1000 - 1); | ||
349 | pciauto_lower_iospc = (pciauto_lower_iospc + (0x4 - 1)) | ||
350 | & ~(0x4 - 1); | ||
351 | |||
352 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
353 | PCI_CB_MEMORY_BASE_0, pciauto_lower_memspc); | ||
354 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
355 | PCI_CB_IO_BASE_0, pciauto_lower_iospc); | ||
356 | } | ||
357 | |||
358 | static void __init | ||
359 | pciauto_postscan_setup_cardbus_bridge(struct pci_channel *hose, | ||
360 | int top_bus, | ||
361 | int current_bus, | ||
362 | int pci_devfn, | ||
363 | int sub_bus) | ||
364 | { | ||
365 | u32 temp; | ||
366 | |||
367 | /* | ||
368 | * [jsun] we always bump up baselines a little, so that if there | ||
369 | * nothing behind P2P bridge, we don't wind up overlapping IO/MEM | ||
370 | * spaces. | ||
371 | */ | ||
372 | pciauto_lower_memspc += 1; | ||
373 | pciauto_lower_iospc += 1; | ||
374 | |||
375 | /* | ||
376 | * Configure subordinate bus number. The PCI subsystem | ||
377 | * bus scan will renumber buses (reserving three additional | ||
378 | * for this PCI<->CardBus bridge for the case where a CardBus | ||
379 | * adapter contains a P2P or CB2CB bridge. | ||
380 | */ | ||
381 | |||
382 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
383 | PCI_SUBORDINATE_BUS, sub_bus); | ||
384 | |||
385 | /* | ||
386 | * Reserve an additional 4MB for mem space and 16KB for | ||
387 | * I/O space. This should cover any additional space | ||
388 | * requirement of unusual CardBus devices with | ||
389 | * additional bridges that can consume more address space. | ||
390 | * | ||
391 | * Although pcmcia-cs currently will reprogram bridge | ||
392 | * windows, the goal is to add an option to leave them | ||
393 | * alone and use the bridge window ranges as the regions | ||
394 | * that are searched for free resources upon hot-insertion | ||
395 | * of a device. This will allow a PCI<->CardBus bridge | ||
396 | * configured by this routine to happily live behind a | ||
397 | * P2P bridge in a system. | ||
398 | */ | ||
399 | /* Align memory and I/O to 4KB and 4 byte boundaries. */ | ||
400 | pciauto_lower_memspc = (pciauto_lower_memspc + (0x1000 - 1)) | ||
401 | & ~(0x1000 - 1); | ||
402 | pciauto_lower_iospc = (pciauto_lower_iospc + (0x4 - 1)) | ||
403 | & ~(0x4 - 1); | ||
404 | /* Set up memory and I/O filter limits, assume 32-bit I/O space */ | ||
405 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
406 | PCI_CB_MEMORY_LIMIT_0, pciauto_lower_memspc - 1); | ||
407 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
408 | PCI_CB_IO_LIMIT_0, pciauto_lower_iospc - 1); | ||
409 | |||
410 | /* Enable memory and I/O accesses, enable bus master */ | ||
411 | early_read_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
412 | PCI_COMMAND, &temp); | ||
413 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
414 | PCI_COMMAND, temp | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | | ||
415 | PCI_COMMAND_MASTER); | ||
416 | } | ||
417 | |||
418 | #define PCIAUTO_IDE_MODE_MASK 0x05 | ||
419 | |||
420 | static int __init | ||
421 | pciauto_bus_scan(struct pci_channel *hose, int top_bus, int current_bus) | ||
422 | { | ||
423 | int sub_bus; | ||
424 | u32 pci_devfn, pci_class, cmdstat, found_multi=0; | ||
425 | unsigned short vid, did; | ||
426 | unsigned char header_type; | ||
427 | int devfn_start = 0; | ||
428 | int devfn_stop = 0xff; | ||
429 | |||
430 | sub_bus = current_bus; | ||
431 | |||
432 | if (hose->first_devfn) | ||
433 | devfn_start = hose->first_devfn; | ||
434 | if (hose->last_devfn) | ||
435 | devfn_stop = hose->last_devfn; | ||
436 | |||
437 | for (pci_devfn=devfn_start; pci_devfn<devfn_stop; pci_devfn++) { | ||
438 | |||
439 | if (PCI_FUNC(pci_devfn) && !found_multi) | ||
440 | continue; | ||
441 | |||
442 | early_read_config_word(hose, top_bus, current_bus, pci_devfn, | ||
443 | PCI_VENDOR_ID, &vid); | ||
444 | |||
445 | if (vid == 0xffff) continue; | ||
446 | |||
447 | early_read_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
448 | PCI_HEADER_TYPE, &header_type); | ||
449 | |||
450 | if (!PCI_FUNC(pci_devfn)) | ||
451 | found_multi = header_type & 0x80; | ||
452 | |||
453 | early_read_config_word(hose, top_bus, current_bus, pci_devfn, | ||
454 | PCI_DEVICE_ID, &did); | ||
455 | |||
456 | early_read_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
457 | PCI_CLASS_REVISION, &pci_class); | ||
458 | |||
459 | DBG("%.2x:%.2x.%x Class %.4x: %.4x:%.4x", | ||
460 | current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn), | ||
461 | pci_class >> 16, vid, did); | ||
462 | if (pci_class & 0xff) | ||
463 | DBG(" (rev %.2x)", pci_class & 0xff); | ||
464 | DBG("\n"); | ||
465 | |||
466 | if ((pci_class >> 16) == PCI_CLASS_BRIDGE_PCI) { | ||
467 | DBG(" Bridge: primary=%.2x, secondary=%.2x\n", | ||
468 | current_bus, sub_bus + 1); | ||
469 | pciauto_prescan_setup_bridge(hose, top_bus, current_bus, | ||
470 | pci_devfn, sub_bus); | ||
471 | DBG("Scanning sub bus %.2x, I/O 0x%.8x, Mem 0x%.8x\n", | ||
472 | sub_bus + 1, | ||
473 | pciauto_lower_iospc, pciauto_lower_memspc); | ||
474 | sub_bus = pciauto_bus_scan(hose, top_bus, sub_bus+1); | ||
475 | DBG("Back to bus %.2x\n", current_bus); | ||
476 | pciauto_postscan_setup_bridge(hose, top_bus, current_bus, | ||
477 | pci_devfn, sub_bus); | ||
478 | continue; | ||
479 | } else if ((pci_class >> 16) == PCI_CLASS_BRIDGE_CARDBUS) { | ||
480 | DBG(" CARDBUS Bridge: primary=%.2x, secondary=%.2x\n", | ||
481 | current_bus, sub_bus + 1); | ||
482 | DBG("PCI Autoconfig: Found CardBus bridge, device %d function %d\n", PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); | ||
483 | /* Place CardBus Socket/ExCA registers */ | ||
484 | pciauto_setup_bars(hose, top_bus, current_bus, pci_devfn, PCI_BASE_ADDRESS_0); | ||
485 | |||
486 | pciauto_prescan_setup_cardbus_bridge(hose, top_bus, | ||
487 | current_bus, pci_devfn, sub_bus); | ||
488 | |||
489 | DBG("Scanning sub bus %.2x, I/O 0x%.8x, Mem 0x%.8x\n", | ||
490 | sub_bus + 1, | ||
491 | pciauto_lower_iospc, pciauto_lower_memspc); | ||
492 | sub_bus = pciauto_bus_scan(hose, top_bus, sub_bus+1); | ||
493 | DBG("Back to bus %.2x, sub_bus is %x\n", current_bus, sub_bus); | ||
494 | pciauto_postscan_setup_cardbus_bridge(hose, top_bus, | ||
495 | current_bus, pci_devfn, sub_bus); | ||
496 | continue; | ||
497 | } else if ((pci_class >> 16) == PCI_CLASS_STORAGE_IDE) { | ||
498 | |||
499 | unsigned char prg_iface; | ||
500 | |||
501 | early_read_config_byte(hose, top_bus, current_bus, | ||
502 | pci_devfn, PCI_CLASS_PROG, &prg_iface); | ||
503 | if (!(prg_iface & PCIAUTO_IDE_MODE_MASK)) { | ||
504 | DBG("Skipping legacy mode IDE controller\n"); | ||
505 | continue; | ||
506 | } | ||
507 | } | ||
508 | |||
509 | /* | ||
510 | * Found a peripheral, enable some standard | ||
511 | * settings | ||
512 | */ | ||
513 | early_read_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
514 | PCI_COMMAND, &cmdstat); | ||
515 | early_write_config_dword(hose, top_bus, current_bus, pci_devfn, | ||
516 | PCI_COMMAND, cmdstat | PCI_COMMAND_IO | | ||
517 | PCI_COMMAND_MEMORY | | ||
518 | PCI_COMMAND_MASTER); | ||
519 | early_write_config_byte(hose, top_bus, current_bus, pci_devfn, | ||
520 | PCI_LATENCY_TIMER, 0x80); | ||
521 | |||
522 | /* Allocate PCI I/O and/or memory space */ | ||
523 | pciauto_setup_bars(hose, top_bus, current_bus, pci_devfn, PCI_BASE_ADDRESS_5); | ||
524 | } | ||
525 | return sub_bus; | ||
526 | } | ||
527 | |||
528 | int __init | ||
529 | pciauto_assign_resources(int busno, struct pci_channel *hose) | ||
530 | { | ||
531 | /* setup resource limits */ | ||
532 | io_resource_inuse = hose->io_resource; | ||
533 | mem_resource_inuse = hose->mem_resource; | ||
534 | |||
535 | pciauto_lower_iospc = io_resource_inuse->start; | ||
536 | pciauto_upper_iospc = io_resource_inuse->end + 1; | ||
537 | pciauto_lower_memspc = mem_resource_inuse->start; | ||
538 | pciauto_upper_memspc = mem_resource_inuse->end + 1; | ||
539 | DBG("Autoconfig PCI channel 0x%p\n", hose); | ||
540 | DBG("Scanning bus %.2x, I/O 0x%.8x:0x%.8x, Mem 0x%.8x:0x%.8x\n", | ||
541 | busno, pciauto_lower_iospc, pciauto_upper_iospc, | ||
542 | pciauto_lower_memspc, pciauto_upper_memspc); | ||
543 | |||
544 | return pciauto_bus_scan(hose, busno, busno); | ||
545 | } | ||
diff --git a/arch/sh/drivers/pci/pci-dreamcast.c b/arch/sh/drivers/pci/pci-dreamcast.c new file mode 100644 index 000000000000..210f9d4af141 --- /dev/null +++ b/arch/sh/drivers/pci/pci-dreamcast.c | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | * PCI support for the Sega Dreamcast | ||
3 | * | ||
4 | * Copyright (C) 2001, 2002 M. R. Brown | ||
5 | * Copyright (C) 2002, 2003 Paul Mundt | ||
6 | * | ||
7 | * This file originally bore the message (with enclosed-$): | ||
8 | * Id: pci.c,v 1.3 2003/05/04 19:29:46 lethal Exp | ||
9 | * Dreamcast PCI: Supports SEGA Broadband Adaptor only. | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/sched.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/param.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/irq.h> | ||
22 | #include <linux/pci.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <asm/io.h> | ||
25 | #include <asm/irq.h> | ||
26 | #include <mach/pci.h> | ||
27 | |||
28 | static struct resource gapspci_io_resource = { | ||
29 | .name = "GAPSPCI IO", | ||
30 | .start = GAPSPCI_BBA_CONFIG, | ||
31 | .end = GAPSPCI_BBA_CONFIG + GAPSPCI_BBA_CONFIG_SIZE - 1, | ||
32 | .flags = IORESOURCE_IO, | ||
33 | }; | ||
34 | |||
35 | static struct resource gapspci_mem_resource = { | ||
36 | .name = "GAPSPCI mem", | ||
37 | .start = GAPSPCI_DMA_BASE, | ||
38 | .end = GAPSPCI_DMA_BASE + GAPSPCI_DMA_SIZE - 1, | ||
39 | .flags = IORESOURCE_MEM, | ||
40 | }; | ||
41 | |||
42 | static struct pci_channel dreamcast_pci_controller = { | ||
43 | .pci_ops = &gapspci_pci_ops, | ||
44 | .io_resource = &gapspci_io_resource, | ||
45 | .io_offset = 0x00000000, | ||
46 | .mem_resource = &gapspci_mem_resource, | ||
47 | .mem_offset = 0x00000000, | ||
48 | }; | ||
49 | |||
50 | /* | ||
51 | * gapspci init | ||
52 | */ | ||
53 | |||
54 | static int __init gapspci_init(void) | ||
55 | { | ||
56 | char idbuf[16]; | ||
57 | int i; | ||
58 | |||
59 | /* | ||
60 | * FIXME: All of this wants documenting to some degree, | ||
61 | * even some basic register definitions would be nice. | ||
62 | * | ||
63 | * I haven't seen anything this ugly since.. maple. | ||
64 | */ | ||
65 | |||
66 | for (i=0; i<16; i++) | ||
67 | idbuf[i] = inb(GAPSPCI_REGS+i); | ||
68 | |||
69 | if (strncmp(idbuf, "GAPSPCI_BRIDGE_2", 16)) | ||
70 | return -ENODEV; | ||
71 | |||
72 | outl(0x5a14a501, GAPSPCI_REGS+0x18); | ||
73 | |||
74 | for (i=0; i<1000000; i++) | ||
75 | cpu_relax(); | ||
76 | |||
77 | if (inl(GAPSPCI_REGS+0x18) != 1) | ||
78 | return -EINVAL; | ||
79 | |||
80 | outl(0x01000000, GAPSPCI_REGS+0x20); | ||
81 | outl(0x01000000, GAPSPCI_REGS+0x24); | ||
82 | |||
83 | outl(GAPSPCI_DMA_BASE, GAPSPCI_REGS+0x28); | ||
84 | outl(GAPSPCI_DMA_BASE+GAPSPCI_DMA_SIZE, GAPSPCI_REGS+0x2c); | ||
85 | |||
86 | outl(1, GAPSPCI_REGS+0x14); | ||
87 | outl(1, GAPSPCI_REGS+0x34); | ||
88 | |||
89 | /* Setting Broadband Adapter */ | ||
90 | outw(0xf900, GAPSPCI_BBA_CONFIG+0x06); | ||
91 | outl(0x00000000, GAPSPCI_BBA_CONFIG+0x30); | ||
92 | outb(0x00, GAPSPCI_BBA_CONFIG+0x3c); | ||
93 | outb(0xf0, GAPSPCI_BBA_CONFIG+0x0d); | ||
94 | outw(0x0006, GAPSPCI_BBA_CONFIG+0x04); | ||
95 | outl(0x00002001, GAPSPCI_BBA_CONFIG+0x10); | ||
96 | outl(0x01000000, GAPSPCI_BBA_CONFIG+0x14); | ||
97 | |||
98 | register_pci_controller(&dreamcast_pci_controller); | ||
99 | |||
100 | return 0; | ||
101 | } | ||
102 | arch_initcall(gapspci_init); | ||
diff --git a/arch/sh/drivers/pci/pci-sh4.h b/arch/sh/drivers/pci/pci-sh4.h index a83dcf70c13b..3d5296cde622 100644 --- a/arch/sh/drivers/pci/pci-sh4.h +++ b/arch/sh/drivers/pci/pci-sh4.h | |||
@@ -149,13 +149,10 @@ | |||
149 | #define SH4_PCIPDTR_PB0 0x000000001 /* Port 0 Enable */ | 149 | #define SH4_PCIPDTR_PB0 0x000000001 /* Port 0 Enable */ |
150 | #define SH4_PCIPDR 0x220 /* Port IO Data Register */ | 150 | #define SH4_PCIPDR 0x220 /* Port IO Data Register */ |
151 | 151 | ||
152 | /* Flags */ | ||
153 | #define SH4_PCIC_NO_RESET 0x0001 | ||
154 | |||
155 | /* arch/sh/kernel/drivers/pci/ops-sh4.c */ | 152 | /* arch/sh/kernel/drivers/pci/ops-sh4.c */ |
156 | extern struct pci_ops sh4_pci_ops; | 153 | extern struct pci_ops sh4_pci_ops; |
157 | int sh4_pci_check_direct(void); | 154 | int sh4_pci_check_direct(struct pci_channel *chan); |
158 | int pci_fixup_pcic(void); | 155 | int pci_fixup_pcic(struct pci_channel *chan); |
159 | 156 | ||
160 | struct sh4_pci_address_space { | 157 | struct sh4_pci_address_space { |
161 | unsigned long base; | 158 | unsigned long base; |
@@ -165,16 +162,18 @@ struct sh4_pci_address_space { | |||
165 | struct sh4_pci_address_map { | 162 | struct sh4_pci_address_map { |
166 | struct sh4_pci_address_space window0; | 163 | struct sh4_pci_address_space window0; |
167 | struct sh4_pci_address_space window1; | 164 | struct sh4_pci_address_space window1; |
168 | unsigned long flags; | ||
169 | }; | 165 | }; |
170 | 166 | ||
171 | static inline void pci_write_reg(unsigned long val, unsigned long reg) | 167 | static inline void pci_write_reg(struct pci_channel *chan, |
168 | unsigned long val, unsigned long reg) | ||
172 | { | 169 | { |
173 | ctrl_outl(val, PCI_REG(reg)); | 170 | ctrl_outl(val, chan->reg_base + reg); |
174 | } | 171 | } |
175 | 172 | ||
176 | static inline unsigned long pci_read_reg(unsigned long reg) | 173 | static inline unsigned long pci_read_reg(struct pci_channel *chan, |
174 | unsigned long reg) | ||
177 | { | 175 | { |
178 | return ctrl_inl(PCI_REG(reg)); | 176 | return ctrl_inl(chan->reg_base + reg); |
179 | } | 177 | } |
178 | |||
180 | #endif /* __PCI_SH4_H */ | 179 | #endif /* __PCI_SH4_H */ |
diff --git a/arch/sh/drivers/pci/pci-sh5.c b/arch/sh/drivers/pci/pci-sh5.c index 7a97438762c8..873ed2b44055 100644 --- a/arch/sh/drivers/pci/pci-sh5.c +++ b/arch/sh/drivers/pci/pci-sh5.c | |||
@@ -89,8 +89,21 @@ static irqreturn_t pcish5_serr_irq(int irq, void *dev_id) | |||
89 | return IRQ_NONE; | 89 | return IRQ_NONE; |
90 | } | 90 | } |
91 | 91 | ||
92 | int __init sh5pci_init(unsigned long memStart, unsigned long memSize) | 92 | static struct resource sh5_io_resource = { /* place holder */ }; |
93 | static struct resource sh5_mem_resource = { /* place holder */ }; | ||
94 | |||
95 | static struct pci_channel sh5pci_controller = { | ||
96 | .pci_ops = &sh5_pci_ops, | ||
97 | .mem_resource = &sh5_mem_resource, | ||
98 | .mem_offset = 0x00000000, | ||
99 | .io_resource = &sh5_io_resource, | ||
100 | .io_offset = 0x00000000, | ||
101 | }; | ||
102 | |||
103 | static int __init sh5pci_init(void) | ||
93 | { | 104 | { |
105 | unsigned long memStart = __pa(memory_start); | ||
106 | unsigned long memSize = __pa(memory_end) - memStart; | ||
94 | u32 lsr0; | 107 | u32 lsr0; |
95 | u32 uval; | 108 | u32 uval; |
96 | 109 | ||
@@ -106,12 +119,12 @@ int __init sh5pci_init(unsigned long memStart, unsigned long memSize) | |||
106 | return -EINVAL; | 119 | return -EINVAL; |
107 | } | 120 | } |
108 | 121 | ||
109 | pcicr_virt = onchip_remap(SH5PCI_ICR_BASE, 1024, "PCICR"); | 122 | pcicr_virt = (unsigned long)ioremap_nocache(SH5PCI_ICR_BASE, 1024); |
110 | if (!pcicr_virt) { | 123 | if (!pcicr_virt) { |
111 | panic("Unable to remap PCICR\n"); | 124 | panic("Unable to remap PCICR\n"); |
112 | } | 125 | } |
113 | 126 | ||
114 | PCI_IO_AREA = onchip_remap(SH5PCI_IO_BASE, 0x10000, "PCIIO"); | 127 | PCI_IO_AREA = (unsigned long)ioremap_nocache(SH5PCI_IO_BASE, 0x10000); |
115 | if (!PCI_IO_AREA) { | 128 | if (!PCI_IO_AREA) { |
116 | panic("Unable to remap PCIIO\n"); | 129 | panic("Unable to remap PCIIO\n"); |
117 | } | 130 | } |
@@ -197,32 +210,14 @@ int __init sh5pci_init(unsigned long memStart, unsigned long memSize) | |||
197 | SH5PCI_WRITE(AINTM, ~0); | 210 | SH5PCI_WRITE(AINTM, ~0); |
198 | SH5PCI_WRITE(PINTM, ~0); | 211 | SH5PCI_WRITE(PINTM, ~0); |
199 | 212 | ||
200 | return 0; | 213 | sh5_io_resource.start = PCI_IO_AREA; |
201 | } | 214 | sh5_io_resource.end = PCI_IO_AREA + 0x10000; |
202 | 215 | ||
203 | void __devinit pcibios_fixup_bus(struct pci_bus *bus) | 216 | sh5_mem_resource.start = memStart; |
204 | { | 217 | sh5_mem_resource.end = memStart + memSize; |
205 | struct pci_dev *dev = bus->self; | 218 | |
206 | int i; | 219 | register_pci_controller(&sh5pci_controller); |
207 | 220 | ||
208 | if (dev) { | 221 | return 0; |
209 | for (i= 0; i < 3; i++) { | ||
210 | bus->resource[i] = | ||
211 | &dev->resource[PCI_BRIDGE_RESOURCES+i]; | ||
212 | bus->resource[i]->name = bus->name; | ||
213 | } | ||
214 | bus->resource[0]->flags |= IORESOURCE_IO; | ||
215 | bus->resource[1]->flags |= IORESOURCE_MEM; | ||
216 | |||
217 | /* For now, propagate host limits to the bus; | ||
218 | * we'll adjust them later. */ | ||
219 | bus->resource[0]->end = 64*1024 - 1 ; | ||
220 | bus->resource[1]->end = PCIBIOS_MIN_MEM+(256*1024*1024)-1; | ||
221 | bus->resource[0]->start = PCIBIOS_MIN_IO; | ||
222 | bus->resource[1]->start = PCIBIOS_MIN_MEM; | ||
223 | |||
224 | /* Turn off downstream PF memory address range by default */ | ||
225 | bus->resource[2]->start = 1024*1024; | ||
226 | bus->resource[2]->end = bus->resource[2]->start - 1; | ||
227 | } | ||
228 | } | 222 | } |
223 | arch_initcall(sh5pci_init); | ||
diff --git a/arch/sh/drivers/pci/pci-sh5.h b/arch/sh/drivers/pci/pci-sh5.h index 7cff3fc04d30..f277628221f3 100644 --- a/arch/sh/drivers/pci/pci-sh5.h +++ b/arch/sh/drivers/pci/pci-sh5.h | |||
@@ -107,7 +107,4 @@ extern unsigned long pcicr_virt; | |||
107 | 107 | ||
108 | extern struct pci_ops sh5_pci_ops; | 108 | extern struct pci_ops sh5_pci_ops; |
109 | 109 | ||
110 | /* arch/sh/drivers/pci/pci-sh5.c */ | ||
111 | int sh5pci_init(unsigned long memStart, unsigned long memSize); | ||
112 | |||
113 | #endif /* __PCI_SH5_H */ | 110 | #endif /* __PCI_SH5_H */ |
diff --git a/arch/sh/drivers/pci/pci-sh7751.c b/arch/sh/drivers/pci/pci-sh7751.c index 3065eb184f01..c4fa0bb13976 100644 --- a/arch/sh/drivers/pci/pci-sh7751.c +++ b/arch/sh/drivers/pci/pci-sh7751.c | |||
@@ -1,88 +1,99 @@ | |||
1 | /* | 1 | /* |
2 | * Low-Level PCI Support for the SH7751 | 2 | * Low-Level PCI Support for the SH7751 |
3 | * | 3 | * |
4 | * Dustin McIntire (dustin@sensoria.com) | 4 | * Copyright (C) 2003 - 2009 Paul Mundt |
5 | * Derived from arch/i386/kernel/pci-*.c which bore the message: | 5 | * Copyright (C) 2001 Dustin McIntire |
6 | * (c) 1999--2000 Martin Mares <mj@ucw.cz> | ||
7 | * | 6 | * |
8 | * Ported to the new API by Paul Mundt <lethal@linux-sh.org> | 7 | * With cleanup by Paul van Gool <pvangool@mimotech.com>, 2003. |
9 | * With cleanup by Paul van Gool <pvangool@mimotech.com> | ||
10 | * | ||
11 | * May be copied or modified under the terms of the GNU General Public | ||
12 | * License. See linux/COPYING for more information. | ||
13 | * | 8 | * |
9 | * This file is subject to the terms and conditions of the GNU General Public | ||
10 | * License. See the file "COPYING" in the main directory of this archive | ||
11 | * for more details. | ||
14 | */ | 12 | */ |
15 | #undef DEBUG | ||
16 | |||
17 | #include <linux/init.h> | 13 | #include <linux/init.h> |
18 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
19 | #include <linux/types.h> | 15 | #include <linux/types.h> |
20 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
21 | #include <linux/delay.h> | 17 | #include <linux/io.h> |
22 | #include "pci-sh4.h" | 18 | #include "pci-sh4.h" |
23 | #include <asm/addrspace.h> | 19 | #include <asm/addrspace.h> |
24 | #include <asm/io.h> | ||
25 | 20 | ||
26 | /* | 21 | static int __init __area_sdram_check(struct pci_channel *chan, |
27 | * Initialization. Try all known PCI access methods. Note that we support | 22 | unsigned int area) |
28 | * using both PCI BIOS and direct access: in such cases, we use I/O ports | ||
29 | * to access config space. | ||
30 | * | ||
31 | * Note that the platform specific initialization (BSC registers, and memory | ||
32 | * space mapping) will be called via the platform defined function | ||
33 | * pcibios_init_platform(). | ||
34 | */ | ||
35 | static int __init sh7751_pci_init(void) | ||
36 | { | 23 | { |
37 | unsigned int id; | 24 | unsigned long word; |
38 | int ret; | ||
39 | |||
40 | pr_debug("PCI: Starting intialization.\n"); | ||
41 | 25 | ||
42 | /* check for SH7751/SH7751R hardware */ | 26 | word = __raw_readl(SH7751_BCR1); |
43 | id = pci_read_reg(SH7751_PCICONF0); | ||
44 | if (id != ((SH7751_DEVICE_ID << 16) | SH7751_VENDOR_ID) && | ||
45 | id != ((SH7751R_DEVICE_ID << 16) | SH7751_VENDOR_ID)) { | ||
46 | pr_debug("PCI: This is not an SH7751(R) (%x)\n", id); | ||
47 | return -ENODEV; | ||
48 | } | ||
49 | |||
50 | if ((ret = sh4_pci_check_direct()) != 0) | ||
51 | return ret; | ||
52 | |||
53 | return pcibios_init_platform(); | ||
54 | } | ||
55 | subsys_initcall(sh7751_pci_init); | ||
56 | |||
57 | static int __init __area_sdram_check(unsigned int area) | ||
58 | { | ||
59 | u32 word; | ||
60 | |||
61 | word = ctrl_inl(SH7751_BCR1); | ||
62 | /* check BCR for SDRAM in area */ | 27 | /* check BCR for SDRAM in area */ |
63 | if (((word >> area) & 1) == 0) { | 28 | if (((word >> area) & 1) == 0) { |
64 | printk("PCI: Area %d is not configured for SDRAM. BCR1=0x%x\n", | 29 | printk("PCI: Area %d is not configured for SDRAM. BCR1=0x%lx\n", |
65 | area, word); | 30 | area, word); |
66 | return 0; | 31 | return 0; |
67 | } | 32 | } |
68 | pci_write_reg(word, SH4_PCIBCR1); | 33 | pci_write_reg(chan, word, SH4_PCIBCR1); |
69 | 34 | ||
70 | word = (u16)ctrl_inw(SH7751_BCR2); | 35 | word = __raw_readw(SH7751_BCR2); |
71 | /* check BCR2 for 32bit SDRAM interface*/ | 36 | /* check BCR2 for 32bit SDRAM interface*/ |
72 | if (((word >> (area << 1)) & 0x3) != 0x3) { | 37 | if (((word >> (area << 1)) & 0x3) != 0x3) { |
73 | printk("PCI: Area %d is not 32 bit SDRAM. BCR2=0x%x\n", | 38 | printk("PCI: Area %d is not 32 bit SDRAM. BCR2=0x%lx\n", |
74 | area, word); | 39 | area, word); |
75 | return 0; | 40 | return 0; |
76 | } | 41 | } |
77 | pci_write_reg(word, SH4_PCIBCR2); | 42 | pci_write_reg(chan, word, SH4_PCIBCR2); |
78 | 43 | ||
79 | return 1; | 44 | return 1; |
80 | } | 45 | } |
81 | 46 | ||
82 | int __init sh7751_pcic_init(struct sh4_pci_address_map *map) | 47 | static struct resource sh7751_io_resource = { |
48 | .name = "SH7751_IO", | ||
49 | .start = SH7751_PCI_IO_BASE, | ||
50 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, | ||
51 | .flags = IORESOURCE_IO | ||
52 | }; | ||
53 | |||
54 | static struct resource sh7751_mem_resource = { | ||
55 | .name = "SH7785_mem", | ||
56 | .start = SH7751_PCI_MEMORY_BASE, | ||
57 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, | ||
58 | .flags = IORESOURCE_MEM | ||
59 | }; | ||
60 | |||
61 | static struct pci_channel sh7751_pci_controller = { | ||
62 | .pci_ops = &sh4_pci_ops, | ||
63 | .mem_resource = &sh7751_mem_resource, | ||
64 | .mem_offset = 0x00000000, | ||
65 | .io_resource = &sh7751_io_resource, | ||
66 | .io_offset = 0x00000000, | ||
67 | }; | ||
68 | |||
69 | static struct sh4_pci_address_map sh7751_pci_map = { | ||
70 | .window0 = { | ||
71 | .base = SH7751_CS3_BASE_ADDR, | ||
72 | .size = 0x04000000, | ||
73 | }, | ||
74 | }; | ||
75 | |||
76 | static int __init sh7751_pci_init(void) | ||
83 | { | 77 | { |
84 | u32 reg; | 78 | struct pci_channel *chan = &sh7751_pci_controller; |
85 | u32 word; | 79 | unsigned int id; |
80 | u32 word, reg; | ||
81 | int ret; | ||
82 | |||
83 | printk(KERN_NOTICE "PCI: Starting intialization.\n"); | ||
84 | |||
85 | chan->reg_base = 0xfe200000; | ||
86 | |||
87 | /* check for SH7751/SH7751R hardware */ | ||
88 | id = pci_read_reg(chan, SH7751_PCICONF0); | ||
89 | if (id != ((SH7751_DEVICE_ID << 16) | SH7751_VENDOR_ID) && | ||
90 | id != ((SH7751R_DEVICE_ID << 16) | SH7751_VENDOR_ID)) { | ||
91 | pr_debug("PCI: This is not an SH7751(R) (%x)\n", id); | ||
92 | return -ENODEV; | ||
93 | } | ||
94 | |||
95 | if ((ret = sh4_pci_check_direct(chan)) != 0) | ||
96 | return ret; | ||
86 | 97 | ||
87 | /* Set the BCR's to enable PCI access */ | 98 | /* Set the BCR's to enable PCI access */ |
88 | reg = ctrl_inl(SH7751_BCR1); | 99 | reg = ctrl_inl(SH7751_BCR1); |
@@ -90,25 +101,10 @@ int __init sh7751_pcic_init(struct sh4_pci_address_map *map) | |||
90 | ctrl_outl(reg, SH7751_BCR1); | 101 | ctrl_outl(reg, SH7751_BCR1); |
91 | 102 | ||
92 | /* Turn the clocks back on (not done in reset)*/ | 103 | /* Turn the clocks back on (not done in reset)*/ |
93 | pci_write_reg(0, SH4_PCICLKR); | 104 | pci_write_reg(chan, 0, SH4_PCICLKR); |
94 | /* Clear Powerdown IRQ's (not done in reset) */ | 105 | /* Clear Powerdown IRQ's (not done in reset) */ |
95 | word = SH4_PCIPINT_D3 | SH4_PCIPINT_D0; | 106 | word = SH4_PCIPINT_D3 | SH4_PCIPINT_D0; |
96 | pci_write_reg(word, SH4_PCIPINT); | 107 | pci_write_reg(chan, word, SH4_PCIPINT); |
97 | |||
98 | /* | ||
99 | * This code is unused for some boards as it is done in the | ||
100 | * bootloader and doing it here means the MAC addresses loaded | ||
101 | * by the bootloader get lost. | ||
102 | */ | ||
103 | if (!(map->flags & SH4_PCIC_NO_RESET)) { | ||
104 | /* toggle PCI reset pin */ | ||
105 | word = SH4_PCICR_PREFIX | SH4_PCICR_PRST; | ||
106 | pci_write_reg(word, SH4_PCICR); | ||
107 | /* Wait for a long time... not 1 sec. but long enough */ | ||
108 | mdelay(100); | ||
109 | word = SH4_PCICR_PREFIX; | ||
110 | pci_write_reg(word, SH4_PCICR); | ||
111 | } | ||
112 | 108 | ||
113 | /* set the command/status bits to: | 109 | /* set the command/status bits to: |
114 | * Wait Cycle Control + Parity Enable + Bus Master + | 110 | * Wait Cycle Control + Parity Enable + Bus Master + |
@@ -116,89 +112,77 @@ int __init sh7751_pcic_init(struct sh4_pci_address_map *map) | |||
116 | */ | 112 | */ |
117 | word = SH7751_PCICONF1_WCC | SH7751_PCICONF1_PER | | 113 | word = SH7751_PCICONF1_WCC | SH7751_PCICONF1_PER | |
118 | SH7751_PCICONF1_BUM | SH7751_PCICONF1_MES; | 114 | SH7751_PCICONF1_BUM | SH7751_PCICONF1_MES; |
119 | pci_write_reg(word, SH7751_PCICONF1); | 115 | pci_write_reg(chan, word, SH7751_PCICONF1); |
120 | 116 | ||
121 | /* define this host as the host bridge */ | 117 | /* define this host as the host bridge */ |
122 | word = PCI_BASE_CLASS_BRIDGE << 24; | 118 | word = PCI_BASE_CLASS_BRIDGE << 24; |
123 | pci_write_reg(word, SH7751_PCICONF2); | 119 | pci_write_reg(chan, word, SH7751_PCICONF2); |
124 | 120 | ||
125 | /* Set IO and Mem windows to local address | 121 | /* Set IO and Mem windows to local address |
126 | * Make PCI and local address the same for easy 1 to 1 mapping | 122 | * Make PCI and local address the same for easy 1 to 1 mapping |
127 | * Window0 = map->window0.size @ non-cached area base = SDRAM | ||
128 | * Window1 = map->window1.size @ cached area base = SDRAM | ||
129 | */ | 123 | */ |
130 | word = map->window0.size - 1; | 124 | word = sh7751_pci_map.window0.size - 1; |
131 | pci_write_reg(word, SH4_PCILSR0); | 125 | pci_write_reg(chan, word, SH4_PCILSR0); |
132 | word = map->window1.size - 1; | ||
133 | pci_write_reg(word, SH4_PCILSR1); | ||
134 | /* Set the values on window 0 PCI config registers */ | 126 | /* Set the values on window 0 PCI config registers */ |
135 | word = P2SEGADDR(map->window0.base); | 127 | word = P2SEGADDR(sh7751_pci_map.window0.base); |
136 | pci_write_reg(word, SH4_PCILAR0); | 128 | pci_write_reg(chan, word, SH4_PCILAR0); |
137 | pci_write_reg(word, SH7751_PCICONF5); | 129 | pci_write_reg(chan, word, SH7751_PCICONF5); |
138 | /* Set the values on window 1 PCI config registers */ | ||
139 | word = PHYSADDR(map->window1.base); | ||
140 | pci_write_reg(word, SH4_PCILAR1); | ||
141 | pci_write_reg(word, SH7751_PCICONF6); | ||
142 | 130 | ||
143 | /* Set the local 16MB PCI memory space window to | 131 | /* Set the local 16MB PCI memory space window to |
144 | * the lowest PCI mapped address | 132 | * the lowest PCI mapped address |
145 | */ | 133 | */ |
146 | word = PCIBIOS_MIN_MEM & SH4_PCIMBR_MASK; | 134 | word = chan->mem_resource->start & SH4_PCIMBR_MASK; |
147 | pr_debug("PCI: Setting upper bits of Memory window to 0x%x\n", word); | 135 | pr_debug("PCI: Setting upper bits of Memory window to 0x%x\n", word); |
148 | pci_write_reg(word , SH4_PCIMBR); | 136 | pci_write_reg(chan, word , SH4_PCIMBR); |
149 | |||
150 | /* Map IO space into PCI IO window | ||
151 | * The IO window is 64K-PCIBIOS_MIN_IO in size | ||
152 | * IO addresses will be translated to the | ||
153 | * PCI IO window base address | ||
154 | */ | ||
155 | pr_debug("PCI: Mapping IO address 0x%x - 0x%x to base 0x%x\n", | ||
156 | PCIBIOS_MIN_IO, (64 << 10), | ||
157 | SH7751_PCI_IO_BASE + PCIBIOS_MIN_IO); | ||
158 | 137 | ||
159 | /* Make sure the MSB's of IO window are set to access PCI space | 138 | /* Make sure the MSB's of IO window are set to access PCI space |
160 | * correctly */ | 139 | * correctly */ |
161 | word = PCIBIOS_MIN_IO & SH4_PCIIOBR_MASK; | 140 | word = chan->io_resource->start & SH4_PCIIOBR_MASK; |
162 | pr_debug("PCI: Setting upper bits of IO window to 0x%x\n", word); | 141 | pr_debug("PCI: Setting upper bits of IO window to 0x%x\n", word); |
163 | pci_write_reg(word, SH4_PCIIOBR); | 142 | pci_write_reg(chan, word, SH4_PCIIOBR); |
164 | 143 | ||
165 | /* Set PCI WCRx, BCRx's, copy from BSC locations */ | 144 | /* Set PCI WCRx, BCRx's, copy from BSC locations */ |
166 | 145 | ||
167 | /* check BCR for SDRAM in specified area */ | 146 | /* check BCR for SDRAM in specified area */ |
168 | switch (map->window0.base) { | 147 | switch (sh7751_pci_map.window0.base) { |
169 | case SH7751_CS0_BASE_ADDR: word = __area_sdram_check(0); break; | 148 | case SH7751_CS0_BASE_ADDR: word = __area_sdram_check(chan, 0); break; |
170 | case SH7751_CS1_BASE_ADDR: word = __area_sdram_check(1); break; | 149 | case SH7751_CS1_BASE_ADDR: word = __area_sdram_check(chan, 1); break; |
171 | case SH7751_CS2_BASE_ADDR: word = __area_sdram_check(2); break; | 150 | case SH7751_CS2_BASE_ADDR: word = __area_sdram_check(chan, 2); break; |
172 | case SH7751_CS3_BASE_ADDR: word = __area_sdram_check(3); break; | 151 | case SH7751_CS3_BASE_ADDR: word = __area_sdram_check(chan, 3); break; |
173 | case SH7751_CS4_BASE_ADDR: word = __area_sdram_check(4); break; | 152 | case SH7751_CS4_BASE_ADDR: word = __area_sdram_check(chan, 4); break; |
174 | case SH7751_CS5_BASE_ADDR: word = __area_sdram_check(5); break; | 153 | case SH7751_CS5_BASE_ADDR: word = __area_sdram_check(chan, 5); break; |
175 | case SH7751_CS6_BASE_ADDR: word = __area_sdram_check(6); break; | 154 | case SH7751_CS6_BASE_ADDR: word = __area_sdram_check(chan, 6); break; |
176 | } | 155 | } |
177 | 156 | ||
178 | if (!word) | 157 | if (!word) |
179 | return 0; | 158 | return -1; |
180 | 159 | ||
181 | /* configure the wait control registers */ | 160 | /* configure the wait control registers */ |
182 | word = ctrl_inl(SH7751_WCR1); | 161 | word = ctrl_inl(SH7751_WCR1); |
183 | pci_write_reg(word, SH4_PCIWCR1); | 162 | pci_write_reg(chan, word, SH4_PCIWCR1); |
184 | word = ctrl_inl(SH7751_WCR2); | 163 | word = ctrl_inl(SH7751_WCR2); |
185 | pci_write_reg(word, SH4_PCIWCR2); | 164 | pci_write_reg(chan, word, SH4_PCIWCR2); |
186 | word = ctrl_inl(SH7751_WCR3); | 165 | word = ctrl_inl(SH7751_WCR3); |
187 | pci_write_reg(word, SH4_PCIWCR3); | 166 | pci_write_reg(chan, word, SH4_PCIWCR3); |
188 | word = ctrl_inl(SH7751_MCR); | 167 | word = ctrl_inl(SH7751_MCR); |
189 | pci_write_reg(word, SH4_PCIMCR); | 168 | pci_write_reg(chan, word, SH4_PCIMCR); |
190 | 169 | ||
191 | /* NOTE: I'm ignoring the PCI error IRQs for now.. | 170 | /* NOTE: I'm ignoring the PCI error IRQs for now.. |
192 | * TODO: add support for the internal error interrupts and | 171 | * TODO: add support for the internal error interrupts and |
193 | * DMA interrupts... | 172 | * DMA interrupts... |
194 | */ | 173 | */ |
195 | 174 | ||
196 | pci_fixup_pcic(); | 175 | pci_fixup_pcic(chan); |
197 | 176 | ||
198 | /* SH7751 init done, set central function init complete */ | 177 | /* SH7751 init done, set central function init complete */ |
199 | /* use round robin mode to stop a device starving/overruning */ | 178 | /* use round robin mode to stop a device starving/overruning */ |
200 | word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_ARBM; | 179 | word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_ARBM; |
201 | pci_write_reg(word, SH4_PCICR); | 180 | pci_write_reg(chan, word, SH4_PCICR); |
202 | 181 | ||
203 | return 1; | 182 | __set_io_port_base(SH7751_PCI_IO_BASE); |
183 | |||
184 | register_pci_controller(chan); | ||
185 | |||
186 | return 0; | ||
204 | } | 187 | } |
188 | arch_initcall(sh7751_pci_init); | ||
diff --git a/arch/sh/drivers/pci/pci-sh7751.h b/arch/sh/drivers/pci/pci-sh7751.h index 68e3cb5e6bec..4983a4d20355 100644 --- a/arch/sh/drivers/pci/pci-sh7751.h +++ b/arch/sh/drivers/pci/pci-sh7751.h | |||
@@ -26,7 +26,6 @@ | |||
26 | #define SH7751_PCI_IO_SIZE 0x40000 /* Size of IO window */ | 26 | #define SH7751_PCI_IO_SIZE 0x40000 /* Size of IO window */ |
27 | 27 | ||
28 | #define SH7751_PCIREG_BASE 0xFE200000 /* PCI regs base address */ | 28 | #define SH7751_PCIREG_BASE 0xFE200000 /* PCI regs base address */ |
29 | #define PCI_REG(n) (SH7751_PCIREG_BASE+ n) | ||
30 | 29 | ||
31 | #define SH7751_PCICONF0 0x0 /* PCI Config Reg 0 */ | 30 | #define SH7751_PCICONF0 0x0 /* PCI Config Reg 0 */ |
32 | #define SH7751_PCICONF0_DEVID 0xFFFF0000 /* Device ID */ | 31 | #define SH7751_PCICONF0_DEVID 0xFFFF0000 /* Device ID */ |
@@ -58,7 +57,7 @@ | |||
58 | #define SH7751_PCICONF2_SCC 0x00FF0000 /* Sub-Class Code */ | 57 | #define SH7751_PCICONF2_SCC 0x00FF0000 /* Sub-Class Code */ |
59 | #define SH7751_PCICONF2_RLPI 0x0000FF00 /* Programming Interface */ | 58 | #define SH7751_PCICONF2_RLPI 0x0000FF00 /* Programming Interface */ |
60 | #define SH7751_PCICONF2_REV 0x000000FF /* Revision ID */ | 59 | #define SH7751_PCICONF2_REV 0x000000FF /* Revision ID */ |
61 | #define SH7751_PCICONF3 0xC /* PCI Config Reg 3 */ | 60 | #define SH7751_PCICONF3 0xC /* PCI Config Reg 3 */ |
62 | #define SH7751_PCICONF3_BIST7 0x80000000 /* Bist Supported */ | 61 | #define SH7751_PCICONF3_BIST7 0x80000000 /* Bist Supported */ |
63 | #define SH7751_PCICONF3_BIST6 0x40000000 /* Bist Executing */ | 62 | #define SH7751_PCICONF3_BIST6 0x40000000 /* Bist Executing */ |
64 | #define SH7751_PCICONF3_BIST3_0 0x0F000000 /* Bist Passed */ | 63 | #define SH7751_PCICONF3_BIST3_0 0x0F000000 /* Bist Passed */ |
@@ -73,12 +72,12 @@ | |||
73 | #define SH7751_PCICONF5_BASE 0xFFFFFFF0 /* Mem Space Base Addr */ | 72 | #define SH7751_PCICONF5_BASE 0xFFFFFFF0 /* Mem Space Base Addr */ |
74 | #define SH7751_PCICONF5_LAP 0x00000008 /* Prefetch Enabled */ | 73 | #define SH7751_PCICONF5_LAP 0x00000008 /* Prefetch Enabled */ |
75 | #define SH7751_PCICONF5_LAT 0x00000006 /* Local Memory type */ | 74 | #define SH7751_PCICONF5_LAT 0x00000006 /* Local Memory type */ |
76 | #define SH7751_PCICONF5_ASI 0x00000001 /* Address Space Type */ | 75 | #define SH7751_PCICONF5_ASI 0x00000001 /* Address Space Type */ |
77 | #define SH7751_PCICONF6 0x18 /* PCI Config Reg 6 */ | 76 | #define SH7751_PCICONF6 0x18 /* PCI Config Reg 6 */ |
78 | #define SH7751_PCICONF6_BASE 0xFFFFFFF0 /* Mem Space Base Addr */ | 77 | #define SH7751_PCICONF6_BASE 0xFFFFFFF0 /* Mem Space Base Addr */ |
79 | #define SH7751_PCICONF6_LAP 0x00000008 /* Prefetch Enabled */ | 78 | #define SH7751_PCICONF6_LAP 0x00000008 /* Prefetch Enabled */ |
80 | #define SH7751_PCICONF6_LAT 0x00000006 /* Local Memory type */ | 79 | #define SH7751_PCICONF6_LAT 0x00000006 /* Local Memory type */ |
81 | #define SH7751_PCICONF6_ASI 0x00000001 /* Address Space Type */ | 80 | #define SH7751_PCICONF6_ASI 0x00000001 /* Address Space Type */ |
82 | /* PCICONF7 - PCICONF10 are undefined */ | 81 | /* PCICONF7 - PCICONF10 are undefined */ |
83 | #define SH7751_PCICONF11 0x2C /* PCI Config Reg 11 */ | 82 | #define SH7751_PCICONF11 0x2C /* PCI Config Reg 11 */ |
84 | #define SH7751_PCICONF11_SSID 0xFFFF0000 /* Subsystem ID */ | 83 | #define SH7751_PCICONF11_SSID 0xFFFF0000 /* Subsystem ID */ |
@@ -127,9 +126,4 @@ | |||
127 | #define SH7751_CS5_BASE_ADDR (SH7751_CS4_BASE_ADDR + SH7751_MEM_REGION_SIZE) | 126 | #define SH7751_CS5_BASE_ADDR (SH7751_CS4_BASE_ADDR + SH7751_MEM_REGION_SIZE) |
128 | #define SH7751_CS6_BASE_ADDR (SH7751_CS5_BASE_ADDR + SH7751_MEM_REGION_SIZE) | 127 | #define SH7751_CS6_BASE_ADDR (SH7751_CS5_BASE_ADDR + SH7751_MEM_REGION_SIZE) |
129 | 128 | ||
130 | struct sh4_pci_address_map; | ||
131 | |||
132 | /* arch/sh/drivers/pci/pci-sh7751.c */ | ||
133 | int sh7751_pcic_init(struct sh4_pci_address_map *map); | ||
134 | |||
135 | #endif /* _PCI_SH7751_H_ */ | 129 | #endif /* _PCI_SH7751_H_ */ |
diff --git a/arch/sh/drivers/pci/pci-sh7780.c b/arch/sh/drivers/pci/pci-sh7780.c index bae6a2cf047d..ae13ff925c61 100644 --- a/arch/sh/drivers/pci/pci-sh7780.c +++ b/arch/sh/drivers/pci/pci-sh7780.c | |||
@@ -1,19 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Low-Level PCI Support for the SH7780 | 2 | * Low-Level PCI Support for the SH7780 |
3 | * | 3 | * |
4 | * Dustin McIntire (dustin@sensoria.com) | 4 | * Copyright (C) 2005 - 2009 Paul Mundt |
5 | * Derived from arch/i386/kernel/pci-*.c which bore the message: | ||
6 | * (c) 1999--2000 Martin Mares <mj@ucw.cz> | ||
7 | * | ||
8 | * Ported to the new API by Paul Mundt <lethal@linux-sh.org> | ||
9 | * With cleanup by Paul van Gool <pvangool@mimotech.com> | ||
10 | * | ||
11 | * May be copied or modified under the terms of the GNU General Public | ||
12 | * License. See linux/COPYING for more information. | ||
13 | * | 5 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
14 | */ | 9 | */ |
15 | #undef DEBUG | ||
16 | |||
17 | #include <linux/types.h> | 10 | #include <linux/types.h> |
18 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
19 | #include <linux/init.h> | 12 | #include <linux/init.h> |
@@ -22,135 +15,137 @@ | |||
22 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
23 | #include "pci-sh4.h" | 16 | #include "pci-sh4.h" |
24 | 17 | ||
25 | #define INTC_BASE 0xffd00000 | 18 | extern u8 pci_cache_line_size; |
26 | #define INTC_ICR0 (INTC_BASE+0x0) | 19 | |
27 | #define INTC_ICR1 (INTC_BASE+0x1c) | 20 | static struct resource sh7785_io_resource = { |
28 | #define INTC_INTPRI (INTC_BASE+0x10) | 21 | .name = "SH7785_IO", |
29 | #define INTC_INTREQ (INTC_BASE+0x24) | 22 | .start = SH7780_PCI_IO_BASE, |
30 | #define INTC_INTMSK0 (INTC_BASE+0x44) | 23 | .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1, |
31 | #define INTC_INTMSK1 (INTC_BASE+0x48) | 24 | .flags = IORESOURCE_IO |
32 | #define INTC_INTMSK2 (INTC_BASE+0x40080) | 25 | }; |
33 | #define INTC_INTMSKCLR0 (INTC_BASE+0x64) | 26 | |
34 | #define INTC_INTMSKCLR1 (INTC_BASE+0x68) | 27 | static struct resource sh7785_mem_resource = { |
35 | #define INTC_INTMSKCLR2 (INTC_BASE+0x40084) | 28 | .name = "SH7785_mem", |
36 | #define INTC_INT2MSKR (INTC_BASE+0x40038) | 29 | .start = SH7780_PCI_MEMORY_BASE, |
37 | #define INTC_INT2MSKCR (INTC_BASE+0x4003c) | 30 | .end = SH7780_PCI_MEMORY_BASE + SH7780_PCI_MEM_SIZE - 1, |
31 | .flags = IORESOURCE_MEM | ||
32 | }; | ||
33 | |||
34 | static struct pci_channel sh7780_pci_controller = { | ||
35 | .pci_ops = &sh4_pci_ops, | ||
36 | .mem_resource = &sh7785_mem_resource, | ||
37 | .mem_offset = 0x00000000, | ||
38 | .io_resource = &sh7785_io_resource, | ||
39 | .io_offset = 0x00000000, | ||
40 | }; | ||
41 | |||
42 | static struct sh4_pci_address_map sh7780_pci_map = { | ||
43 | .window0 = { | ||
44 | #if defined(CONFIG_32BIT) | ||
45 | .base = SH7780_32BIT_DDR_BASE_ADDR, | ||
46 | .size = 0x40000000, | ||
47 | #else | ||
48 | .base = SH7780_CS0_BASE_ADDR, | ||
49 | .size = 0x20000000, | ||
50 | #endif | ||
51 | }, | ||
52 | }; | ||
38 | 53 | ||
39 | /* | ||
40 | * Initialization. Try all known PCI access methods. Note that we support | ||
41 | * using both PCI BIOS and direct access: in such cases, we use I/O ports | ||
42 | * to access config space. | ||
43 | * | ||
44 | * Note that the platform specific initialization (BSC registers, and memory | ||
45 | * space mapping) will be called via the platform defined function | ||
46 | * pcibios_init_platform(). | ||
47 | */ | ||
48 | static int __init sh7780_pci_init(void) | 54 | static int __init sh7780_pci_init(void) |
49 | { | 55 | { |
56 | struct pci_channel *chan = &sh7780_pci_controller; | ||
50 | unsigned int id; | 57 | unsigned int id; |
51 | int ret, match = 0; | 58 | const char *type = NULL; |
52 | 59 | int ret; | |
53 | pr_debug("PCI: Starting intialization.\n"); | 60 | u32 word; |
54 | |||
55 | ctrl_outl(0x00000001, SH7780_PCI_VCR2); /* Enable PCIC */ | ||
56 | |||
57 | /* check for SH7780/SH7780R hardware */ | ||
58 | id = pci_read_reg(SH7780_PCIVID); | ||
59 | if ((id & 0xffff) == SH7780_VENDOR_ID) { | ||
60 | switch ((id >> 16) & 0xffff) { | ||
61 | case SH7763_DEVICE_ID: | ||
62 | case SH7780_DEVICE_ID: | ||
63 | case SH7781_DEVICE_ID: | ||
64 | case SH7785_DEVICE_ID: | ||
65 | match = 1; | ||
66 | break; | ||
67 | } | ||
68 | } | ||
69 | 61 | ||
70 | if (unlikely(!match)) { | 62 | printk(KERN_NOTICE "PCI: Starting intialization.\n"); |
71 | printk(KERN_ERR "PCI: This is not an SH7780 (%x)\n", id); | 63 | |
64 | chan->reg_base = 0xfe040000; | ||
65 | |||
66 | /* Enable CPU access to the PCIC registers. */ | ||
67 | __raw_writel(PCIECR_ENBL, PCIECR); | ||
68 | |||
69 | id = __raw_readw(chan->reg_base + SH7780_PCIVID); | ||
70 | if (id != SH7780_VENDOR_ID) { | ||
71 | printk(KERN_ERR "PCI: Unknown vendor ID 0x%04x.\n", id); | ||
72 | return -ENODEV; | 72 | return -ENODEV; |
73 | } | 73 | } |
74 | 74 | ||
75 | /* Setup the INTC */ | 75 | id = __raw_readw(chan->reg_base + SH7780_PCIDID); |
76 | if (mach_is_7780se()) { | 76 | type = (id == SH7763_DEVICE_ID) ? "SH7763" : |
77 | /* ICR0: IRL=use separately */ | 77 | (id == SH7780_DEVICE_ID) ? "SH7780" : |
78 | ctrl_outl(0x00C00020, INTC_ICR0); | 78 | (id == SH7781_DEVICE_ID) ? "SH7781" : |
79 | /* ICR1: detect low level(for 2ndcut) */ | 79 | (id == SH7785_DEVICE_ID) ? "SH7785" : |
80 | ctrl_outl(0xAAAA0000, INTC_ICR1); | 80 | NULL; |
81 | /* INTPRI: priority=3(all) */ | 81 | if (unlikely(!type)) { |
82 | ctrl_outl(0x33333333, INTC_INTPRI); | 82 | printk(KERN_ERR "PCI: Found an unsupported Renesas host " |
83 | "controller, device id 0x%04x.\n", id); | ||
84 | return -EINVAL; | ||
83 | } | 85 | } |
84 | 86 | ||
85 | if ((ret = sh4_pci_check_direct()) != 0) | 87 | printk(KERN_NOTICE "PCI: Found a Renesas %s host " |
86 | return ret; | 88 | "controller, revision %d.\n", type, |
89 | __raw_readb(chan->reg_base + SH7780_PCIRID)); | ||
87 | 90 | ||
88 | return pcibios_init_platform(); | 91 | if ((ret = sh4_pci_check_direct(chan)) != 0) |
89 | } | 92 | return ret; |
90 | core_initcall(sh7780_pci_init); | ||
91 | |||
92 | int __init sh7780_pcic_init(struct sh4_pci_address_map *map) | ||
93 | { | ||
94 | u32 word; | ||
95 | 93 | ||
96 | /* | 94 | /* |
97 | * This code is unused for some boards as it is done in the | 95 | * Set the class and sub-class codes. |
98 | * bootloader and doing it here means the MAC addresses loaded | ||
99 | * by the bootloader get lost. | ||
100 | */ | ||
101 | if (!(map->flags & SH4_PCIC_NO_RESET)) { | ||
102 | /* toggle PCI reset pin */ | ||
103 | word = SH4_PCICR_PREFIX | SH4_PCICR_PRST; | ||
104 | pci_write_reg(word, SH4_PCICR); | ||
105 | /* Wait for a long time... not 1 sec. but long enough */ | ||
106 | mdelay(100); | ||
107 | word = SH4_PCICR_PREFIX; | ||
108 | pci_write_reg(word, SH4_PCICR); | ||
109 | } | ||
110 | |||
111 | /* set the command/status bits to: | ||
112 | * Wait Cycle Control + Parity Enable + Bus Master + | ||
113 | * Mem space enable | ||
114 | */ | 96 | */ |
115 | pci_write_reg(0x00000046, SH7780_PCICMD); | 97 | __raw_writeb(PCI_CLASS_BRIDGE_HOST >> 8, |
98 | chan->reg_base + SH7780_PCIBCC); | ||
99 | __raw_writeb(PCI_CLASS_BRIDGE_HOST & 0xff, | ||
100 | chan->reg_base + SH7780_PCISUB); | ||
116 | 101 | ||
117 | /* define this host as the host bridge */ | 102 | pci_cache_line_size = pci_read_reg(chan, SH7780_PCICLS) / 4; |
118 | word = PCI_BASE_CLASS_BRIDGE << 24; | ||
119 | pci_write_reg(word, SH7780_PCIRID); | ||
120 | 103 | ||
121 | /* Set IO and Mem windows to local address | 104 | /* |
105 | * Set IO and Mem windows to local address | ||
122 | * Make PCI and local address the same for easy 1 to 1 mapping | 106 | * Make PCI and local address the same for easy 1 to 1 mapping |
123 | */ | 107 | */ |
124 | pci_write_reg(map->window0.size - 0xfffff, SH4_PCILSR0); | 108 | pci_write_reg(chan, sh7780_pci_map.window0.size - 0xfffff, SH4_PCILSR0); |
125 | pci_write_reg(map->window1.size - 0xfffff, SH4_PCILSR1); | ||
126 | /* Set the values on window 0 PCI config registers */ | 109 | /* Set the values on window 0 PCI config registers */ |
127 | pci_write_reg(map->window0.base, SH4_PCILAR0); | 110 | pci_write_reg(chan, sh7780_pci_map.window0.base, SH4_PCILAR0); |
128 | pci_write_reg(map->window0.base, SH7780_PCIMBAR0); | 111 | pci_write_reg(chan, sh7780_pci_map.window0.base, SH7780_PCIMBAR0); |
129 | /* Set the values on window 1 PCI config registers */ | ||
130 | pci_write_reg(map->window1.base, SH4_PCILAR1); | ||
131 | pci_write_reg(map->window1.base, SH7780_PCIMBAR1); | ||
132 | |||
133 | /* Map IO space into PCI IO window | ||
134 | * The IO window is 64K-PCIBIOS_MIN_IO in size | ||
135 | * IO addresses will be translated to the | ||
136 | * PCI IO window base address | ||
137 | */ | ||
138 | pr_debug("PCI: Mapping IO address 0x%x - 0x%x to base 0x%x\n", | ||
139 | PCIBIOS_MIN_IO, (64 << 10), | ||
140 | SH7780_PCI_IO_BASE + PCIBIOS_MIN_IO); | ||
141 | 112 | ||
142 | /* NOTE: I'm ignoring the PCI error IRQs for now.. | 113 | pci_write_reg(chan, 0x0000380f, SH4_PCIAINTM); |
143 | * TODO: add support for the internal error interrupts and | 114 | |
144 | * DMA interrupts... | 115 | /* Set up standard PCI config registers */ |
145 | */ | 116 | __raw_writew(0xFB00, chan->reg_base + SH7780_PCISTATUS); |
117 | __raw_writew(0x0047, chan->reg_base + SH7780_PCICMD); | ||
118 | __raw_writew(0x1912, chan->reg_base + SH7780_PCISVID); | ||
119 | __raw_writew(0x0001, chan->reg_base + SH7780_PCISID); | ||
120 | |||
121 | __raw_writeb(0x00, chan->reg_base + SH7780_PCIPIF); | ||
146 | 122 | ||
147 | /* Apply any last-minute PCIC fixups */ | 123 | /* Apply any last-minute PCIC fixups */ |
148 | pci_fixup_pcic(); | 124 | pci_fixup_pcic(chan); |
125 | |||
126 | pci_write_reg(chan, 0xfd000000, SH7780_PCIMBR0); | ||
127 | pci_write_reg(chan, 0x00fc0000, SH7780_PCIMBMR0); | ||
128 | |||
129 | #ifdef CONFIG_32BIT | ||
130 | pci_write_reg(chan, 0xc0000000, SH7780_PCIMBR2); | ||
131 | pci_write_reg(chan, 0x20000000 - SH7780_PCI_IO_SIZE, SH7780_PCIMBMR2); | ||
132 | #endif | ||
133 | |||
134 | /* Set IOBR for windows containing area specified in pci.h */ | ||
135 | pci_write_reg(chan, chan->io_resource->start & ~(SH7780_PCI_IO_SIZE-1), | ||
136 | SH7780_PCIIOBR); | ||
137 | pci_write_reg(chan, ((SH7780_PCI_IO_SIZE-1) & (7<<18)), | ||
138 | SH7780_PCIIOBMR); | ||
149 | 139 | ||
150 | /* SH7780 init done, set central function init complete */ | 140 | /* SH7780 init done, set central function init complete */ |
151 | /* use round robin mode to stop a device starving/overruning */ | 141 | /* use round robin mode to stop a device starving/overruning */ |
152 | word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_FTO; | 142 | word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_FTO; |
153 | pci_write_reg(word, SH4_PCICR); | 143 | pci_write_reg(chan, word, SH4_PCICR); |
144 | |||
145 | __set_io_port_base(SH7780_PCI_IO_BASE); | ||
146 | |||
147 | register_pci_controller(chan); | ||
154 | 148 | ||
155 | return 1; | 149 | return 0; |
156 | } | 150 | } |
151 | arch_initcall(sh7780_pci_init); | ||
diff --git a/arch/sh/drivers/pci/pci-sh7780.h b/arch/sh/drivers/pci/pci-sh7780.h index 93adc7119b79..4a52478c97cf 100644 --- a/arch/sh/drivers/pci/pci-sh7780.h +++ b/arch/sh/drivers/pci/pci-sh7780.h | |||
@@ -20,9 +20,8 @@ | |||
20 | #define SH7785_DEVICE_ID 0x0007 | 20 | #define SH7785_DEVICE_ID 0x0007 |
21 | 21 | ||
22 | /* SH7780 Control Registers */ | 22 | /* SH7780 Control Registers */ |
23 | #define SH7780_PCI_VCR0 0xFE000000 | 23 | #define PCIECR 0xFE000008 |
24 | #define SH7780_PCI_VCR1 0xFE000004 | 24 | #define PCIECR_ENBL 0x01 |
25 | #define SH7780_PCI_VCR2 0xFE000008 | ||
26 | 25 | ||
27 | /* SH7780 Specific Values */ | 26 | /* SH7780 Specific Values */ |
28 | #define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */ | 27 | #define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */ |
@@ -35,7 +34,6 @@ | |||
35 | #define SH7780_PCI_IO_SIZE 0x00400000 /* Size of IO window */ | 34 | #define SH7780_PCI_IO_SIZE 0x00400000 /* Size of IO window */ |
36 | 35 | ||
37 | #define SH7780_PCIREG_BASE 0xFE040000 /* PCI regs base address */ | 36 | #define SH7780_PCIREG_BASE 0xFE040000 /* PCI regs base address */ |
38 | #define PCI_REG(n) (SH7780_PCIREG_BASE+n) | ||
39 | 37 | ||
40 | /* SH7780 PCI Config Registers */ | 38 | /* SH7780 PCI Config Registers */ |
41 | #define SH7780_PCIVID 0x000 /* Vendor ID */ | 39 | #define SH7780_PCIVID 0x000 /* Vendor ID */ |
@@ -67,11 +65,6 @@ | |||
67 | #define SH7780_PCIPMCSR_BSE 0x046 | 65 | #define SH7780_PCIPMCSR_BSE 0x046 |
68 | #define SH7780_PCICDD 0x047 | 66 | #define SH7780_PCICDD 0x047 |
69 | 67 | ||
70 | #define SH7780_PCICR 0x100 /* PCI Control Register */ | ||
71 | #define SH7780_PCILSR 0x104 /* PCI Local Space Register0 */ | ||
72 | #define SH7780_PCILSR1 0x108 /* PCI Local Space Register1 */ | ||
73 | #define SH7780_PCILAR0 0x10C /* PCI Local Address Register1 */ | ||
74 | #define SH7780_PCILAR1 0x110 /* PCI Local Address Register1 */ | ||
75 | #define SH7780_PCIIR 0x114 /* PCI Interrupt Register */ | 68 | #define SH7780_PCIIR 0x114 /* PCI Interrupt Register */ |
76 | #define SH7780_PCIIMR 0x118 /* PCI Interrupt Mask Register */ | 69 | #define SH7780_PCIIMR 0x118 /* PCI Interrupt Mask Register */ |
77 | #define SH7780_PCIAIR 0x11C /* Error Address Register */ | 70 | #define SH7780_PCIAIR 0x11C /* Error Address Register */ |
@@ -106,9 +99,4 @@ | |||
106 | 99 | ||
107 | #define SH7780_32BIT_DDR_BASE_ADDR 0x40000000 | 100 | #define SH7780_32BIT_DDR_BASE_ADDR 0x40000000 |
108 | 101 | ||
109 | struct sh4_pci_address_map; | ||
110 | |||
111 | /* arch/sh/drivers/pci/pci-sh7780.c */ | ||
112 | int sh7780_pcic_init(struct sh4_pci_address_map *map); | ||
113 | |||
114 | #endif /* _PCI_SH7780_H_ */ | 102 | #endif /* _PCI_SH7780_H_ */ |
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index 0d6ac7a1db49..54d77cbb8b39 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -1,67 +1,156 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/drivers/pci/pci.c | 2 | * New-style PCI core. |
3 | * | 3 | * |
4 | * Copyright (c) 2002 M. R. Brown <mrbrown@linux-sh.org> | 4 | * Copyright (c) 2004 - 2009 Paul Mundt |
5 | * Copyright (c) 2004 - 2006 Paul Mundt <lethal@linux-sh.org> | 5 | * Copyright (c) 2002 M. R. Brown |
6 | * | 6 | * |
7 | * These functions are collected here to reduce duplication of common | 7 | * Modelled after arch/mips/pci/pci.c: |
8 | * code amongst the many platform-specific PCI support code files. | 8 | * Copyright (C) 2003, 04 Ralf Baechle (ralf@linux-mips.org) |
9 | * | ||
10 | * These routines require the following board-specific routines: | ||
11 | * void pcibios_fixup_irqs(); | ||
12 | * | ||
13 | * See include/asm-sh/pci.h for more information. | ||
14 | * | 9 | * |
15 | * This file is subject to the terms and conditions of the GNU General Public | 10 | * This file is subject to the terms and conditions of the GNU General Public |
16 | * License. See the file "COPYING" in the main directory of this archive | 11 | * License. See the file "COPYING" in the main directory of this archive |
17 | * for more details. | 12 | * for more details. |
18 | */ | 13 | */ |
19 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/mm.h> | ||
20 | #include <linux/pci.h> | 16 | #include <linux/pci.h> |
21 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/types.h> | ||
22 | #include <linux/dma-debug.h> | 19 | #include <linux/dma-debug.h> |
23 | #include <asm/io.h> | 20 | #include <linux/io.h> |
21 | #include <linux/mutex.h> | ||
24 | 22 | ||
25 | static int __init pcibios_init(void) | 23 | unsigned long PCIBIOS_MIN_IO = 0x0000; |
24 | unsigned long PCIBIOS_MIN_MEM = 0; | ||
25 | |||
26 | /* | ||
27 | * The PCI controller list. | ||
28 | */ | ||
29 | static struct pci_channel *hose_head, **hose_tail = &hose_head; | ||
30 | |||
31 | static int pci_initialized; | ||
32 | |||
33 | static void __devinit pcibios_scanbus(struct pci_channel *hose) | ||
26 | { | 34 | { |
27 | struct pci_channel *p; | 35 | static int next_busno; |
28 | struct pci_bus *bus; | 36 | struct pci_bus *bus; |
29 | int busno; | ||
30 | 37 | ||
31 | #ifdef CONFIG_PCI_AUTO | 38 | bus = pci_scan_bus(next_busno, hose->pci_ops, hose); |
32 | /* assign resources */ | 39 | if (bus) { |
33 | busno = 0; | 40 | next_busno = bus->subordinate + 1; |
34 | for (p = board_pci_channels; p->pci_ops != NULL; p++) | 41 | /* Don't allow 8-bit bus number overflow inside the hose - |
35 | busno = pciauto_assign_resources(busno, p) + 1; | 42 | reserve some space for bridges. */ |
36 | #endif | 43 | if (next_busno > 224) |
44 | next_busno = 0; | ||
45 | |||
46 | pci_bus_size_bridges(bus); | ||
47 | pci_bus_assign_resources(bus); | ||
48 | pci_enable_bridges(bus); | ||
49 | } | ||
50 | } | ||
51 | |||
52 | static DEFINE_MUTEX(pci_scan_mutex); | ||
37 | 53 | ||
38 | /* scan the buses */ | 54 | void __devinit register_pci_controller(struct pci_channel *hose) |
39 | busno = 0; | 55 | { |
40 | for (p = board_pci_channels; p->pci_ops != NULL; p++) { | 56 | if (request_resource(&iomem_resource, hose->mem_resource) < 0) |
41 | bus = pci_scan_bus(busno, p->pci_ops, p); | 57 | goto out; |
42 | busno = bus->subordinate + 1; | 58 | if (request_resource(&ioport_resource, hose->io_resource) < 0) { |
59 | release_resource(hose->mem_resource); | ||
60 | goto out; | ||
43 | } | 61 | } |
44 | 62 | ||
63 | *hose_tail = hose; | ||
64 | hose_tail = &hose->next; | ||
65 | |||
66 | /* | ||
67 | * Do not panic here but later - this might hapen before console init. | ||
68 | */ | ||
69 | if (!hose->io_map_base) { | ||
70 | printk(KERN_WARNING | ||
71 | "registering PCI controller with io_map_base unset\n"); | ||
72 | } | ||
73 | |||
74 | /* | ||
75 | * Scan the bus if it is register after the PCI subsystem | ||
76 | * initialization. | ||
77 | */ | ||
78 | if (pci_initialized) { | ||
79 | mutex_lock(&pci_scan_mutex); | ||
80 | pcibios_scanbus(hose); | ||
81 | mutex_unlock(&pci_scan_mutex); | ||
82 | } | ||
83 | |||
84 | return; | ||
85 | |||
86 | out: | ||
87 | printk(KERN_WARNING | ||
88 | "Skipping PCI bus scan due to resource conflict\n"); | ||
89 | } | ||
90 | |||
91 | static int __init pcibios_init(void) | ||
92 | { | ||
93 | struct pci_channel *hose; | ||
94 | |||
95 | /* Scan all of the recorded PCI controllers. */ | ||
96 | for (hose = hose_head; hose; hose = hose->next) | ||
97 | pcibios_scanbus(hose); | ||
98 | |||
45 | pci_fixup_irqs(pci_common_swizzle, pcibios_map_platform_irq); | 99 | pci_fixup_irqs(pci_common_swizzle, pcibios_map_platform_irq); |
46 | 100 | ||
47 | dma_debug_add_bus(&pci_bus_type); | 101 | dma_debug_add_bus(&pci_bus_type); |
48 | 102 | ||
103 | pci_initialized = 1; | ||
104 | |||
49 | return 0; | 105 | return 0; |
50 | } | 106 | } |
51 | subsys_initcall(pcibios_init); | 107 | subsys_initcall(pcibios_init); |
52 | 108 | ||
109 | static void pcibios_fixup_device_resources(struct pci_dev *dev, | ||
110 | struct pci_bus *bus) | ||
111 | { | ||
112 | /* Update device resources. */ | ||
113 | struct pci_channel *hose = bus->sysdata; | ||
114 | unsigned long offset = 0; | ||
115 | int i; | ||
116 | |||
117 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { | ||
118 | if (!dev->resource[i].start) | ||
119 | continue; | ||
120 | if (dev->resource[i].flags & IORESOURCE_PCI_FIXED) | ||
121 | continue; | ||
122 | if (dev->resource[i].flags & IORESOURCE_IO) | ||
123 | offset = hose->io_offset; | ||
124 | else if (dev->resource[i].flags & IORESOURCE_MEM) | ||
125 | offset = hose->mem_offset; | ||
126 | |||
127 | dev->resource[i].start += offset; | ||
128 | dev->resource[i].end += offset; | ||
129 | } | ||
130 | } | ||
131 | |||
53 | /* | 132 | /* |
54 | * Called after each bus is probed, but before its children | 133 | * Called after each bus is probed, but before its children |
55 | * are examined. | 134 | * are examined. |
56 | */ | 135 | */ |
57 | void __devinit __weak pcibios_fixup_bus(struct pci_bus *bus) | 136 | void __devinit pcibios_fixup_bus(struct pci_bus *bus) |
58 | { | 137 | { |
59 | pci_read_bridge_bases(bus); | 138 | struct pci_dev *dev = bus->self; |
60 | } | 139 | struct list_head *ln; |
140 | struct pci_channel *chan = bus->sysdata; | ||
61 | 141 | ||
62 | void pcibios_align_resource(void *data, struct resource *res, | 142 | if (!dev) { |
63 | resource_size_t size, resource_size_t align) | 143 | bus->resource[0] = chan->io_resource; |
64 | __attribute__ ((weak)); | 144 | bus->resource[1] = chan->mem_resource; |
145 | } | ||
146 | |||
147 | for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) { | ||
148 | dev = pci_dev_b(ln); | ||
149 | |||
150 | if ((dev->class >> 8) != PCI_CLASS_BRIDGE_PCI) | ||
151 | pcibios_fixup_device_resources(dev, bus); | ||
152 | } | ||
153 | } | ||
65 | 154 | ||
66 | /* | 155 | /* |
67 | * We need to avoid collisions with `mirrored' VGA ports | 156 | * We need to avoid collisions with `mirrored' VGA ports |
@@ -72,14 +161,58 @@ void pcibios_align_resource(void *data, struct resource *res, | |||
72 | void pcibios_align_resource(void *data, struct resource *res, | 161 | void pcibios_align_resource(void *data, struct resource *res, |
73 | resource_size_t size, resource_size_t align) | 162 | resource_size_t size, resource_size_t align) |
74 | { | 163 | { |
164 | struct pci_dev *dev = data; | ||
165 | struct pci_channel *chan = dev->sysdata; | ||
166 | resource_size_t start = res->start; | ||
167 | |||
75 | if (res->flags & IORESOURCE_IO) { | 168 | if (res->flags & IORESOURCE_IO) { |
76 | resource_size_t start = res->start; | 169 | if (start < PCIBIOS_MIN_IO + chan->io_resource->start) |
170 | start = PCIBIOS_MIN_IO + chan->io_resource->start; | ||
77 | 171 | ||
172 | /* | ||
173 | * Put everything into 0x00-0xff region modulo 0x400. | ||
174 | */ | ||
78 | if (start & 0x300) { | 175 | if (start & 0x300) { |
79 | start = (start + 0x3ff) & ~0x3ff; | 176 | start = (start + 0x3ff) & ~0x3ff; |
80 | res->start = start; | 177 | res->start = start; |
81 | } | 178 | } |
179 | } else if (res->flags & IORESOURCE_MEM) { | ||
180 | if (start < PCIBIOS_MIN_MEM + chan->mem_resource->start) | ||
181 | start = PCIBIOS_MIN_MEM + chan->mem_resource->start; | ||
82 | } | 182 | } |
183 | |||
184 | res->start = start; | ||
185 | } | ||
186 | |||
187 | void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, | ||
188 | struct resource *res) | ||
189 | { | ||
190 | struct pci_channel *hose = dev->sysdata; | ||
191 | unsigned long offset = 0; | ||
192 | |||
193 | if (res->flags & IORESOURCE_IO) | ||
194 | offset = hose->io_offset; | ||
195 | else if (res->flags & IORESOURCE_MEM) | ||
196 | offset = hose->mem_offset; | ||
197 | |||
198 | region->start = res->start - offset; | ||
199 | region->end = res->end - offset; | ||
200 | } | ||
201 | |||
202 | void __devinit | ||
203 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | ||
204 | struct pci_bus_region *region) | ||
205 | { | ||
206 | struct pci_channel *hose = dev->sysdata; | ||
207 | unsigned long offset = 0; | ||
208 | |||
209 | if (res->flags & IORESOURCE_IO) | ||
210 | offset = hose->io_offset; | ||
211 | else if (res->flags & IORESOURCE_MEM) | ||
212 | offset = hose->mem_offset; | ||
213 | |||
214 | res->start = region->start + offset; | ||
215 | res->end = region->end + offset; | ||
83 | } | 216 | } |
84 | 217 | ||
85 | int pcibios_enable_device(struct pci_dev *dev, int mask) | 218 | int pcibios_enable_device(struct pci_dev *dev, int mask) |
@@ -90,13 +223,21 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
90 | 223 | ||
91 | pci_read_config_word(dev, PCI_COMMAND, &cmd); | 224 | pci_read_config_word(dev, PCI_COMMAND, &cmd); |
92 | old_cmd = cmd; | 225 | old_cmd = cmd; |
93 | for(idx=0; idx<6; idx++) { | 226 | for (idx=0; idx < PCI_NUM_RESOURCES; idx++) { |
94 | if (!(mask & (1 << idx))) | 227 | /* Only set up the requested stuff */ |
228 | if (!(mask & (1<<idx))) | ||
95 | continue; | 229 | continue; |
230 | |||
96 | r = &dev->resource[idx]; | 231 | r = &dev->resource[idx]; |
232 | if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM))) | ||
233 | continue; | ||
234 | if ((idx == PCI_ROM_RESOURCE) && | ||
235 | (!(r->flags & IORESOURCE_ROM_ENABLE))) | ||
236 | continue; | ||
97 | if (!r->start && r->end) { | 237 | if (!r->start && r->end) { |
98 | printk(KERN_ERR "PCI: Device %s not available because " | 238 | printk(KERN_ERR "PCI: Device %s not available " |
99 | "of resource collisions\n", pci_name(dev)); | 239 | "because of resource collisions\n", |
240 | pci_name(dev)); | ||
100 | return -EINVAL; | 241 | return -EINVAL; |
101 | } | 242 | } |
102 | if (r->flags & IORESOURCE_IO) | 243 | if (r->flags & IORESOURCE_IO) |
@@ -104,10 +245,8 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
104 | if (r->flags & IORESOURCE_MEM) | 245 | if (r->flags & IORESOURCE_MEM) |
105 | cmd |= PCI_COMMAND_MEMORY; | 246 | cmd |= PCI_COMMAND_MEMORY; |
106 | } | 247 | } |
107 | if (dev->resource[PCI_ROM_RESOURCE].start) | ||
108 | cmd |= PCI_COMMAND_MEMORY; | ||
109 | if (cmd != old_cmd) { | 248 | if (cmd != old_cmd) { |
110 | printk(KERN_INFO "PCI: Enabling device %s (%04x -> %04x)\n", | 249 | printk("PCI: Enabling device %s (%04x -> %04x)\n", |
111 | pci_name(dev), old_cmd, cmd); | 250 | pci_name(dev), old_cmd, cmd); |
112 | pci_write_config_word(dev, PCI_COMMAND, cmd); | 251 | pci_write_config_word(dev, PCI_COMMAND, cmd); |
113 | } | 252 | } |
@@ -140,6 +279,43 @@ void __init pcibios_update_irq(struct pci_dev *dev, int irq) | |||
140 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | 279 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); |
141 | } | 280 | } |
142 | 281 | ||
282 | char * __devinit pcibios_setup(char *str) | ||
283 | { | ||
284 | return str; | ||
285 | } | ||
286 | |||
287 | int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | ||
288 | enum pci_mmap_state mmap_state, int write_combine) | ||
289 | { | ||
290 | /* | ||
291 | * I/O space can be accessed via normal processor loads and stores on | ||
292 | * this platform but for now we elect not to do this and portable | ||
293 | * drivers should not do this anyway. | ||
294 | */ | ||
295 | if (mmap_state == pci_mmap_io) | ||
296 | return -EINVAL; | ||
297 | |||
298 | /* | ||
299 | * Ignore write-combine; for now only return uncached mappings. | ||
300 | */ | ||
301 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | ||
302 | |||
303 | return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, | ||
304 | vma->vm_end - vma->vm_start, | ||
305 | vma->vm_page_prot); | ||
306 | } | ||
307 | |||
308 | static void __iomem *ioport_map_pci(struct pci_dev *dev, | ||
309 | unsigned long port, unsigned int nr) | ||
310 | { | ||
311 | struct pci_channel *chan = dev->sysdata; | ||
312 | |||
313 | if (!chan->io_map_base) | ||
314 | chan->io_map_base = generic_io_base; | ||
315 | |||
316 | return (void __iomem *)(chan->io_map_base + port); | ||
317 | } | ||
318 | |||
143 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) | 319 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) |
144 | { | 320 | { |
145 | resource_size_t start = pci_resource_start(dev, bar); | 321 | resource_size_t start = pci_resource_start(dev, bar); |
@@ -151,20 +327,24 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) | |||
151 | if (maxlen && len > maxlen) | 327 | if (maxlen && len > maxlen) |
152 | len = maxlen; | 328 | len = maxlen; |
153 | 329 | ||
330 | if (flags & IORESOURCE_IO) | ||
331 | return ioport_map_pci(dev, start, len); | ||
332 | |||
154 | /* | 333 | /* |
155 | * Presently the IORESOURCE_MEM case is a bit special, most | 334 | * Presently the IORESOURCE_MEM case is a bit special, most |
156 | * SH7751 style PCI controllers have PCI memory at a fixed | 335 | * SH7751 style PCI controllers have PCI memory at a fixed |
157 | * location in the address space where no remapping is desired | 336 | * location in the address space where no remapping is desired. |
158 | * (typically at 0xfd000000, but is_pci_memaddr() will know | 337 | * With the IORESOURCE_MEM case more care has to be taken |
159 | * best). With the IORESOURCE_MEM case more care has to be taken | ||
160 | * to inhibit page table mapping for legacy cores, but this is | 338 | * to inhibit page table mapping for legacy cores, but this is |
161 | * punted off to __ioremap(). | 339 | * punted off to __ioremap(). |
162 | * -- PFM. | 340 | * -- PFM. |
163 | */ | 341 | */ |
164 | if (flags & IORESOURCE_IO) | 342 | if (flags & IORESOURCE_MEM) { |
165 | return ioport_map(start, len); | 343 | if (flags & IORESOURCE_CACHEABLE) |
166 | if (flags & IORESOURCE_MEM) | 344 | return ioremap(start, len); |
167 | return ioremap(start, len); | 345 | |
346 | return ioremap_nocache(start, len); | ||
347 | } | ||
168 | 348 | ||
169 | return NULL; | 349 | return NULL; |
170 | } | 350 | } |
@@ -175,3 +355,10 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr) | |||
175 | iounmap(addr); | 355 | iounmap(addr); |
176 | } | 356 | } |
177 | EXPORT_SYMBOL(pci_iounmap); | 357 | EXPORT_SYMBOL(pci_iounmap); |
358 | |||
359 | #ifdef CONFIG_HOTPLUG | ||
360 | EXPORT_SYMBOL(pcibios_resource_to_bus); | ||
361 | EXPORT_SYMBOL(pcibios_bus_to_resource); | ||
362 | EXPORT_SYMBOL(PCIBIOS_MIN_IO); | ||
363 | EXPORT_SYMBOL(PCIBIOS_MIN_MEM); | ||
364 | #endif | ||
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h index 09acbc32d6c7..4c5462daa74c 100644 --- a/arch/sh/include/asm/cacheflush.h +++ b/arch/sh/include/asm/cacheflush.h | |||
@@ -75,7 +75,5 @@ extern void copy_from_user_page(struct vm_area_struct *vma, | |||
75 | #define flush_cache_vmap(start, end) flush_cache_all() | 75 | #define flush_cache_vmap(start, end) flush_cache_all() |
76 | #define flush_cache_vunmap(start, end) flush_cache_all() | 76 | #define flush_cache_vunmap(start, end) flush_cache_all() |
77 | 77 | ||
78 | #define HAVE_ARCH_UNMAPPED_AREA | ||
79 | |||
80 | #endif /* __KERNEL__ */ | 78 | #endif /* __KERNEL__ */ |
81 | #endif /* __ASM_SH_CACHEFLUSH_H */ | 79 | #endif /* __ASM_SH_CACHEFLUSH_H */ |
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index 2f6c9627bc1f..b1f29199e4bd 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef __ASM_SH_CLOCK_H | 1 | #ifndef __ASM_SH_CLOCK_H |
2 | #define __ASM_SH_CLOCK_H | 2 | #define __ASM_SH_CLOCK_H |
3 | 3 | ||
4 | #include <linux/kref.h> | ||
5 | #include <linux/list.h> | 4 | #include <linux/list.h> |
6 | #include <linux/seq_file.h> | 5 | #include <linux/seq_file.h> |
7 | #include <linux/clk.h> | 6 | #include <linux/clk.h> |
@@ -28,7 +27,7 @@ struct clk { | |||
28 | struct clk *parent; | 27 | struct clk *parent; |
29 | struct clk_ops *ops; | 28 | struct clk_ops *ops; |
30 | 29 | ||
31 | struct kref kref; | 30 | int usecount; |
32 | 31 | ||
33 | unsigned long rate; | 32 | unsigned long rate; |
34 | unsigned long flags; | 33 | unsigned long flags; |
@@ -37,6 +36,7 @@ struct clk { | |||
37 | 36 | ||
38 | #define CLK_ALWAYS_ENABLED (1 << 0) | 37 | #define CLK_ALWAYS_ENABLED (1 << 0) |
39 | #define CLK_RATE_PROPAGATES (1 << 1) | 38 | #define CLK_RATE_PROPAGATES (1 << 1) |
39 | #define CLK_NEEDS_INIT (1 << 2) | ||
40 | 40 | ||
41 | /* Should be defined by processor-specific code */ | 41 | /* Should be defined by processor-specific code */ |
42 | void arch_init_clk_ops(struct clk_ops **, int type); | 42 | void arch_init_clk_ops(struct clk_ops **, int type); |
diff --git a/arch/sh/include/asm/device.h b/arch/sh/include/asm/device.h index efd511d0803a..8688a88303ee 100644 --- a/arch/sh/include/asm/device.h +++ b/arch/sh/include/asm/device.h | |||
@@ -10,3 +10,5 @@ struct platform_device; | |||
10 | int platform_resource_setup_memory(struct platform_device *pdev, | 10 | int platform_resource_setup_memory(struct platform_device *pdev, |
11 | char *name, unsigned long memsize); | 11 | char *name, unsigned long memsize); |
12 | 12 | ||
13 | void plat_early_device_setup(void); | ||
14 | |||
diff --git a/arch/sh/include/asm/hd64461.h b/arch/sh/include/asm/hd64461.h index 52b4b6238277..977355f0a483 100644 --- a/arch/sh/include/asm/hd64461.h +++ b/arch/sh/include/asm/hd64461.h | |||
@@ -13,18 +13,20 @@ | |||
13 | #define HD64461_PCC_WINDOW 0x01000000 | 13 | #define HD64461_PCC_WINDOW 0x01000000 |
14 | 14 | ||
15 | /* Area 6 - Slot 0 - memory and/or IO card */ | 15 | /* Area 6 - Slot 0 - memory and/or IO card */ |
16 | #define HD64461_PCC0_BASE (CONFIG_HD64461_IOBASE + 0x8000000) | 16 | #define HD64461_IOBASE 0xb0000000 |
17 | #define HD64461_IO_OFFSET(x) (HD64461_IOBASE + (x)) | ||
18 | #define HD64461_PCC0_BASE HD64461_IO_OFFSET(0x8000000) | ||
17 | #define HD64461_PCC0_ATTR (HD64461_PCC0_BASE) /* 0xb80000000 */ | 19 | #define HD64461_PCC0_ATTR (HD64461_PCC0_BASE) /* 0xb80000000 */ |
18 | #define HD64461_PCC0_COMM (HD64461_PCC0_BASE+HD64461_PCC_WINDOW) /* 0xb90000000 */ | 20 | #define HD64461_PCC0_COMM (HD64461_PCC0_BASE+HD64461_PCC_WINDOW) /* 0xb90000000 */ |
19 | #define HD64461_PCC0_IO (HD64461_PCC0_BASE+2*HD64461_PCC_WINDOW) /* 0xba0000000 */ | 21 | #define HD64461_PCC0_IO (HD64461_PCC0_BASE+2*HD64461_PCC_WINDOW) /* 0xba0000000 */ |
20 | 22 | ||
21 | /* Area 5 - Slot 1 - memory card only */ | 23 | /* Area 5 - Slot 1 - memory card only */ |
22 | #define HD64461_PCC1_BASE (CONFIG_HD64461_IOBASE + 0x4000000) | 24 | #define HD64461_PCC1_BASE HD64461_IO_OFFSET(0x4000000) |
23 | #define HD64461_PCC1_ATTR (HD64461_PCC1_BASE) /* 0xb4000000 */ | 25 | #define HD64461_PCC1_ATTR (HD64461_PCC1_BASE) /* 0xb4000000 */ |
24 | #define HD64461_PCC1_COMM (HD64461_PCC1_BASE+HD64461_PCC_WINDOW) /* 0xb5000000 */ | 26 | #define HD64461_PCC1_COMM (HD64461_PCC1_BASE+HD64461_PCC_WINDOW) /* 0xb5000000 */ |
25 | 27 | ||
26 | /* Standby Control Register for HD64461 */ | 28 | /* Standby Control Register for HD64461 */ |
27 | #define HD64461_STBCR CONFIG_HD64461_IOBASE | 29 | #define HD64461_STBCR HD64461_IO_OFFSET(0x00000000) |
28 | #define HD64461_STBCR_CKIO_STBY 0x2000 | 30 | #define HD64461_STBCR_CKIO_STBY 0x2000 |
29 | #define HD64461_STBCR_SAFECKE_IST 0x1000 | 31 | #define HD64461_STBCR_SAFECKE_IST 0x1000 |
30 | #define HD64461_STBCR_SLCKE_IST 0x0800 | 32 | #define HD64461_STBCR_SLCKE_IST 0x0800 |
@@ -41,19 +43,19 @@ | |||
41 | #define HD64461_STBCR_SURTST 0x0001 | 43 | #define HD64461_STBCR_SURTST 0x0001 |
42 | 44 | ||
43 | /* System Configuration Register */ | 45 | /* System Configuration Register */ |
44 | #define HD64461_SYSCR (CONFIG_HD64461_IOBASE + 0x02) | 46 | #define HD64461_SYSCR HD64461_IO_OFFSET(0x02) |
45 | 47 | ||
46 | /* CPU Data Bus Control Register */ | 48 | /* CPU Data Bus Control Register */ |
47 | #define HD64461_SCPUCR (CONFIG_HD64461_IOBASE + 0x04) | 49 | #define HD64461_SCPUCR HD64461_IO_OFFSET(0x04) |
48 | 50 | ||
49 | /* Base Address Register */ | 51 | /* Base Address Register */ |
50 | #define HD64461_LCDCBAR (CONFIG_HD64461_IOBASE + 0x1000) | 52 | #define HD64461_LCDCBAR HD64461_IO_OFFSET(0x1000) |
51 | 53 | ||
52 | /* Line increment address */ | 54 | /* Line increment address */ |
53 | #define HD64461_LCDCLOR (CONFIG_HD64461_IOBASE + 0x1002) | 55 | #define HD64461_LCDCLOR HD64461_IO_OFFSET(0x1002) |
54 | 56 | ||
55 | /* Controls LCD controller */ | 57 | /* Controls LCD controller */ |
56 | #define HD64461_LCDCCR (CONFIG_HD64461_IOBASE + 0x1004) | 58 | #define HD64461_LCDCCR HD64461_IO_OFFSET(0x1004) |
57 | 59 | ||
58 | /* LCCDR control bits */ | 60 | /* LCCDR control bits */ |
59 | #define HD64461_LCDCCR_STBACK 0x0400 /* Standby Back */ | 61 | #define HD64461_LCDCCR_STBACK 0x0400 /* Standby Back */ |
@@ -64,30 +66,30 @@ | |||
64 | #define HD64461_LCDCCR_SPON 0x0010 /* Start Power On */ | 66 | #define HD64461_LCDCCR_SPON 0x0010 /* Start Power On */ |
65 | 67 | ||
66 | /* Controls LCD (1) */ | 68 | /* Controls LCD (1) */ |
67 | #define HD64461_LDR1 (CONFIG_HD64461_IOBASE + 0x1010) | 69 | #define HD64461_LDR1 HD64461_IO_OFFSET(0x1010) |
68 | #define HD64461_LDR1_DON 0x01 /* Display On */ | 70 | #define HD64461_LDR1_DON 0x01 /* Display On */ |
69 | #define HD64461_LDR1_DINV 0x80 /* Display Invert */ | 71 | #define HD64461_LDR1_DINV 0x80 /* Display Invert */ |
70 | 72 | ||
71 | /* Controls LCD (2) */ | 73 | /* Controls LCD (2) */ |
72 | #define HD64461_LDR2 (CONFIG_HD64461_IOBASE + 0x1012) | 74 | #define HD64461_LDR2 HD64461_IO_OFFSET(0x1012) |
73 | #define HD64461_LDHNCR (CONFIG_HD64461_IOBASE + 0x1014) /* Number of horizontal characters */ | 75 | #define HD64461_LDHNCR HD64461_IO_OFFSET(0x1014) /* Number of horizontal characters */ |
74 | #define HD64461_LDHNSR (CONFIG_HD64461_IOBASE + 0x1016) /* Specify output start position + width of CL1 */ | 76 | #define HD64461_LDHNSR HD64461_IO_OFFSET(0x1016) /* Specify output start position + width of CL1 */ |
75 | #define HD64461_LDVNTR (CONFIG_HD64461_IOBASE + 0x1018) /* Specify total vertical lines */ | 77 | #define HD64461_LDVNTR HD64461_IO_OFFSET(0x1018) /* Specify total vertical lines */ |
76 | #define HD64461_LDVNDR (CONFIG_HD64461_IOBASE + 0x101a) /* specify number of display vertical lines */ | 78 | #define HD64461_LDVNDR HD64461_IO_OFFSET(0x101a) /* specify number of display vertical lines */ |
77 | #define HD64461_LDVSPR (CONFIG_HD64461_IOBASE + 0x101c) /* specify vertical synchronization pos and AC nr */ | 79 | #define HD64461_LDVSPR HD64461_IO_OFFSET(0x101c) /* specify vertical synchronization pos and AC nr */ |
78 | 80 | ||
79 | /* Controls LCD (3) */ | 81 | /* Controls LCD (3) */ |
80 | #define HD64461_LDR3 (CONFIG_HD64461_IOBASE + 0x101e) | 82 | #define HD64461_LDR3 HD64461_IO_OFFSET(0x101e) |
81 | 83 | ||
82 | /* Palette Registers */ | 84 | /* Palette Registers */ |
83 | #define HD64461_CPTWAR (CONFIG_HD64461_IOBASE + 0x1030) /* Color Palette Write Address Register */ | 85 | #define HD64461_CPTWAR HD64461_IO_OFFSET(0x1030) /* Color Palette Write Address Register */ |
84 | #define HD64461_CPTWDR (CONFIG_HD64461_IOBASE + 0x1032) /* Color Palette Write Data Register */ | 86 | #define HD64461_CPTWDR HD64461_IO_OFFSET(0x1032) /* Color Palette Write Data Register */ |
85 | #define HD64461_CPTRAR (CONFIG_HD64461_IOBASE + 0x1034) /* Color Palette Read Address Register */ | 87 | #define HD64461_CPTRAR HD64461_IO_OFFSET(0x1034) /* Color Palette Read Address Register */ |
86 | #define HD64461_CPTRDR (CONFIG_HD64461_IOBASE + 0x1036) /* Color Palette Read Data Register */ | 88 | #define HD64461_CPTRDR HD64461_IO_OFFSET(0x1036) /* Color Palette Read Data Register */ |
87 | 89 | ||
88 | #define HD64461_GRDOR (CONFIG_HD64461_IOBASE + 0x1040) /* Display Resolution Offset Register */ | 90 | #define HD64461_GRDOR HD64461_IO_OFFSET(0x1040) /* Display Resolution Offset Register */ |
89 | #define HD64461_GRSCR (CONFIG_HD64461_IOBASE + 0x1042) /* Solid Color Register */ | 91 | #define HD64461_GRSCR HD64461_IO_OFFSET(0x1042) /* Solid Color Register */ |
90 | #define HD64461_GRCFGR (CONFIG_HD64461_IOBASE + 0x1044) /* Accelerator Configuration Register */ | 92 | #define HD64461_GRCFGR HD64461_IO_OFFSET(0x1044) /* Accelerator Configuration Register */ |
91 | 93 | ||
92 | #define HD64461_GRCFGR_ACCSTATUS 0x10 /* Accelerator Status */ | 94 | #define HD64461_GRCFGR_ACCSTATUS 0x10 /* Accelerator Status */ |
93 | #define HD64461_GRCFGR_ACCRESET 0x08 /* Accelerator Reset */ | 95 | #define HD64461_GRCFGR_ACCRESET 0x08 /* Accelerator Reset */ |
@@ -97,41 +99,41 @@ | |||
97 | #define HD64461_GRCFGR_COLORDEPTH8 0x01 /* Sets Colordepth 8 for Accelerator */ | 99 | #define HD64461_GRCFGR_COLORDEPTH8 0x01 /* Sets Colordepth 8 for Accelerator */ |
98 | 100 | ||
99 | /* Line Drawing Registers */ | 101 | /* Line Drawing Registers */ |
100 | #define HD64461_LNSARH (CONFIG_HD64461_IOBASE + 0x1046) /* Line Start Address Register (H) */ | 102 | #define HD64461_LNSARH HD64461_IO_OFFSET(0x1046) /* Line Start Address Register (H) */ |
101 | #define HD64461_LNSARL (CONFIG_HD64461_IOBASE + 0x1048) /* Line Start Address Register (L) */ | 103 | #define HD64461_LNSARL HD64461_IO_OFFSET(0x1048) /* Line Start Address Register (L) */ |
102 | #define HD64461_LNAXLR (CONFIG_HD64461_IOBASE + 0x104a) /* Axis Pixel Length Register */ | 104 | #define HD64461_LNAXLR HD64461_IO_OFFSET(0x104a) /* Axis Pixel Length Register */ |
103 | #define HD64461_LNDGR (CONFIG_HD64461_IOBASE + 0x104c) /* Diagonal Register */ | 105 | #define HD64461_LNDGR HD64461_IO_OFFSET(0x104c) /* Diagonal Register */ |
104 | #define HD64461_LNAXR (CONFIG_HD64461_IOBASE + 0x104e) /* Axial Register */ | 106 | #define HD64461_LNAXR HD64461_IO_OFFSET(0x104e) /* Axial Register */ |
105 | #define HD64461_LNERTR (CONFIG_HD64461_IOBASE + 0x1050) /* Start Error Term Register */ | 107 | #define HD64461_LNERTR HD64461_IO_OFFSET(0x1050) /* Start Error Term Register */ |
106 | #define HD64461_LNMDR (CONFIG_HD64461_IOBASE + 0x1052) /* Line Mode Register */ | 108 | #define HD64461_LNMDR HD64461_IO_OFFSET(0x1052) /* Line Mode Register */ |
107 | 109 | ||
108 | /* BitBLT Registers */ | 110 | /* BitBLT Registers */ |
109 | #define HD64461_BBTSSARH (CONFIG_HD64461_IOBASE + 0x1054) /* Source Start Address Register (H) */ | 111 | #define HD64461_BBTSSARH HD64461_IO_OFFSET(0x1054) /* Source Start Address Register (H) */ |
110 | #define HD64461_BBTSSARL (CONFIG_HD64461_IOBASE + 0x1056) /* Source Start Address Register (L) */ | 112 | #define HD64461_BBTSSARL HD64461_IO_OFFSET(0x1056) /* Source Start Address Register (L) */ |
111 | #define HD64461_BBTDSARH (CONFIG_HD64461_IOBASE + 0x1058) /* Destination Start Address Register (H) */ | 113 | #define HD64461_BBTDSARH HD64461_IO_OFFSET(0x1058) /* Destination Start Address Register (H) */ |
112 | #define HD64461_BBTDSARL (CONFIG_HD64461_IOBASE + 0x105a) /* Destination Start Address Register (L) */ | 114 | #define HD64461_BBTDSARL HD64461_IO_OFFSET(0x105a) /* Destination Start Address Register (L) */ |
113 | #define HD64461_BBTDWR (CONFIG_HD64461_IOBASE + 0x105c) /* Destination Block Width Register */ | 115 | #define HD64461_BBTDWR HD64461_IO_OFFSET(0x105c) /* Destination Block Width Register */ |
114 | #define HD64461_BBTDHR (CONFIG_HD64461_IOBASE + 0x105e) /* Destination Block Height Register */ | 116 | #define HD64461_BBTDHR HD64461_IO_OFFSET(0x105e) /* Destination Block Height Register */ |
115 | #define HD64461_BBTPARH (CONFIG_HD64461_IOBASE + 0x1060) /* Pattern Start Address Register (H) */ | 117 | #define HD64461_BBTPARH HD64461_IO_OFFSET(0x1060) /* Pattern Start Address Register (H) */ |
116 | #define HD64461_BBTPARL (CONFIG_HD64461_IOBASE + 0x1062) /* Pattern Start Address Register (L) */ | 118 | #define HD64461_BBTPARL HD64461_IO_OFFSET(0x1062) /* Pattern Start Address Register (L) */ |
117 | #define HD64461_BBTMARH (CONFIG_HD64461_IOBASE + 0x1064) /* Mask Start Address Register (H) */ | 119 | #define HD64461_BBTMARH HD64461_IO_OFFSET(0x1064) /* Mask Start Address Register (H) */ |
118 | #define HD64461_BBTMARL (CONFIG_HD64461_IOBASE + 0x1066) /* Mask Start Address Register (L) */ | 120 | #define HD64461_BBTMARL HD64461_IO_OFFSET(0x1066) /* Mask Start Address Register (L) */ |
119 | #define HD64461_BBTROPR (CONFIG_HD64461_IOBASE + 0x1068) /* ROP Register */ | 121 | #define HD64461_BBTROPR HD64461_IO_OFFSET(0x1068) /* ROP Register */ |
120 | #define HD64461_BBTMDR (CONFIG_HD64461_IOBASE + 0x106a) /* BitBLT Mode Register */ | 122 | #define HD64461_BBTMDR HD64461_IO_OFFSET(0x106a) /* BitBLT Mode Register */ |
121 | 123 | ||
122 | /* PC Card Controller Registers */ | 124 | /* PC Card Controller Registers */ |
123 | /* Maps to Physical Area 6 */ | 125 | /* Maps to Physical Area 6 */ |
124 | #define HD64461_PCC0ISR (CONFIG_HD64461_IOBASE + 0x2000) /* socket 0 interface status */ | 126 | #define HD64461_PCC0ISR HD64461_IO_OFFSET(0x2000) /* socket 0 interface status */ |
125 | #define HD64461_PCC0GCR (CONFIG_HD64461_IOBASE + 0x2002) /* socket 0 general control */ | 127 | #define HD64461_PCC0GCR HD64461_IO_OFFSET(0x2002) /* socket 0 general control */ |
126 | #define HD64461_PCC0CSCR (CONFIG_HD64461_IOBASE + 0x2004) /* socket 0 card status change */ | 128 | #define HD64461_PCC0CSCR HD64461_IO_OFFSET(0x2004) /* socket 0 card status change */ |
127 | #define HD64461_PCC0CSCIER (CONFIG_HD64461_IOBASE + 0x2006) /* socket 0 card status change interrupt enable */ | 129 | #define HD64461_PCC0CSCIER HD64461_IO_OFFSET(0x2006) /* socket 0 card status change interrupt enable */ |
128 | #define HD64461_PCC0SCR (CONFIG_HD64461_IOBASE + 0x2008) /* socket 0 software control */ | 130 | #define HD64461_PCC0SCR HD64461_IO_OFFSET(0x2008) /* socket 0 software control */ |
129 | /* Maps to Physical Area 5 */ | 131 | /* Maps to Physical Area 5 */ |
130 | #define HD64461_PCC1ISR (CONFIG_HD64461_IOBASE + 0x2010) /* socket 1 interface status */ | 132 | #define HD64461_PCC1ISR HD64461_IO_OFFSET(0x2010) /* socket 1 interface status */ |
131 | #define HD64461_PCC1GCR (CONFIG_HD64461_IOBASE + 0x2012) /* socket 1 general control */ | 133 | #define HD64461_PCC1GCR HD64461_IO_OFFSET(0x2012) /* socket 1 general control */ |
132 | #define HD64461_PCC1CSCR (CONFIG_HD64461_IOBASE + 0x2014) /* socket 1 card status change */ | 134 | #define HD64461_PCC1CSCR HD64461_IO_OFFSET(0x2014) /* socket 1 card status change */ |
133 | #define HD64461_PCC1CSCIER (CONFIG_HD64461_IOBASE + 0x2016) /* socket 1 card status change interrupt enable */ | 135 | #define HD64461_PCC1CSCIER HD64461_IO_OFFSET(0x2016) /* socket 1 card status change interrupt enable */ |
134 | #define HD64461_PCC1SCR (CONFIG_HD64461_IOBASE + 0x2018) /* socket 1 software control */ | 136 | #define HD64461_PCC1SCR HD64461_IO_OFFSET(0x2018) /* socket 1 software control */ |
135 | 137 | ||
136 | /* PCC Interface Status Register */ | 138 | /* PCC Interface Status Register */ |
137 | #define HD64461_PCCISR_READY 0x80 /* card ready */ | 139 | #define HD64461_PCCISR_READY 0x80 /* card ready */ |
@@ -189,41 +191,41 @@ | |||
189 | #define HD64461_PCCSCR_SWP 0x01 /* write protect */ | 191 | #define HD64461_PCCSCR_SWP 0x01 /* write protect */ |
190 | 192 | ||
191 | /* PCC0 Output Pins Control Register */ | 193 | /* PCC0 Output Pins Control Register */ |
192 | #define HD64461_P0OCR (CONFIG_HD64461_IOBASE + 0x202a) | 194 | #define HD64461_P0OCR HD64461_IO_OFFSET(0x202a) |
193 | 195 | ||
194 | /* PCC1 Output Pins Control Register */ | 196 | /* PCC1 Output Pins Control Register */ |
195 | #define HD64461_P1OCR (CONFIG_HD64461_IOBASE + 0x202c) | 197 | #define HD64461_P1OCR HD64461_IO_OFFSET(0x202c) |
196 | 198 | ||
197 | /* PC Card General Control Register */ | 199 | /* PC Card General Control Register */ |
198 | #define HD64461_PGCR (CONFIG_HD64461_IOBASE + 0x202e) | 200 | #define HD64461_PGCR HD64461_IO_OFFSET(0x202e) |
199 | 201 | ||
200 | /* Port Control Registers */ | 202 | /* Port Control Registers */ |
201 | #define HD64461_GPACR (CONFIG_HD64461_IOBASE + 0x4000) /* Port A - Handles IRDA/TIMER */ | 203 | #define HD64461_GPACR HD64461_IO_OFFSET(0x4000) /* Port A - Handles IRDA/TIMER */ |
202 | #define HD64461_GPBCR (CONFIG_HD64461_IOBASE + 0x4002) /* Port B - Handles UART */ | 204 | #define HD64461_GPBCR HD64461_IO_OFFSET(0x4002) /* Port B - Handles UART */ |
203 | #define HD64461_GPCCR (CONFIG_HD64461_IOBASE + 0x4004) /* Port C - Handles PCMCIA 1 */ | 205 | #define HD64461_GPCCR HD64461_IO_OFFSET(0x4004) /* Port C - Handles PCMCIA 1 */ |
204 | #define HD64461_GPDCR (CONFIG_HD64461_IOBASE + 0x4006) /* Port D - Handles PCMCIA 1 */ | 206 | #define HD64461_GPDCR HD64461_IO_OFFSET(0x4006) /* Port D - Handles PCMCIA 1 */ |
205 | 207 | ||
206 | /* Port Control Data Registers */ | 208 | /* Port Control Data Registers */ |
207 | #define HD64461_GPADR (CONFIG_HD64461_IOBASE + 0x4010) /* A */ | 209 | #define HD64461_GPADR HD64461_IO_OFFSET(0x4010) /* A */ |
208 | #define HD64461_GPBDR (CONFIG_HD64461_IOBASE + 0x4012) /* B */ | 210 | #define HD64461_GPBDR HD64461_IO_OFFSET(0x4012) /* B */ |
209 | #define HD64461_GPCDR (CONFIG_HD64461_IOBASE + 0x4014) /* C */ | 211 | #define HD64461_GPCDR HD64461_IO_OFFSET(0x4014) /* C */ |
210 | #define HD64461_GPDDR (CONFIG_HD64461_IOBASE + 0x4016) /* D */ | 212 | #define HD64461_GPDDR HD64461_IO_OFFSET(0x4016) /* D */ |
211 | 213 | ||
212 | /* Interrupt Control Registers */ | 214 | /* Interrupt Control Registers */ |
213 | #define HD64461_GPAICR (CONFIG_HD64461_IOBASE + 0x4020) /* A */ | 215 | #define HD64461_GPAICR HD64461_IO_OFFSET(0x4020) /* A */ |
214 | #define HD64461_GPBICR (CONFIG_HD64461_IOBASE + 0x4022) /* B */ | 216 | #define HD64461_GPBICR HD64461_IO_OFFSET(0x4022) /* B */ |
215 | #define HD64461_GPCICR (CONFIG_HD64461_IOBASE + 0x4024) /* C */ | 217 | #define HD64461_GPCICR HD64461_IO_OFFSET(0x4024) /* C */ |
216 | #define HD64461_GPDICR (CONFIG_HD64461_IOBASE + 0x4026) /* D */ | 218 | #define HD64461_GPDICR HD64461_IO_OFFSET(0x4026) /* D */ |
217 | 219 | ||
218 | /* Interrupt Status Registers */ | 220 | /* Interrupt Status Registers */ |
219 | #define HD64461_GPAISR (CONFIG_HD64461_IOBASE + 0x4040) /* A */ | 221 | #define HD64461_GPAISR HD64461_IO_OFFSET(0x4040) /* A */ |
220 | #define HD64461_GPBISR (CONFIG_HD64461_IOBASE + 0x4042) /* B */ | 222 | #define HD64461_GPBISR HD64461_IO_OFFSET(0x4042) /* B */ |
221 | #define HD64461_GPCISR (CONFIG_HD64461_IOBASE + 0x4044) /* C */ | 223 | #define HD64461_GPCISR HD64461_IO_OFFSET(0x4044) /* C */ |
222 | #define HD64461_GPDISR (CONFIG_HD64461_IOBASE + 0x4046) /* D */ | 224 | #define HD64461_GPDISR HD64461_IO_OFFSET(0x4046) /* D */ |
223 | 225 | ||
224 | /* Interrupt Request Register & Interrupt Mask Register */ | 226 | /* Interrupt Request Register & Interrupt Mask Register */ |
225 | #define HD64461_NIRR (CONFIG_HD64461_IOBASE + 0x5000) | 227 | #define HD64461_NIRR HD64461_IO_OFFSET(0x5000) |
226 | #define HD64461_NIMR (CONFIG_HD64461_IOBASE + 0x5002) | 228 | #define HD64461_NIMR HD64461_IO_OFFSET(0x5002) |
227 | 229 | ||
228 | #define HD64461_IRQBASE OFFCHIP_IRQ_BASE | 230 | #define HD64461_IRQBASE OFFCHIP_IRQ_BASE |
229 | #define OFFCHIP_IRQ_BASE 64 | 231 | #define OFFCHIP_IRQ_BASE 64 |
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 0454f8d68059..25348141674b 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -123,10 +123,15 @@ static inline void __raw_reads##bwlq(volatile void __iomem *mem, \ | |||
123 | 123 | ||
124 | __BUILD_MEMORY_STRING(b, u8) | 124 | __BUILD_MEMORY_STRING(b, u8) |
125 | __BUILD_MEMORY_STRING(w, u16) | 125 | __BUILD_MEMORY_STRING(w, u16) |
126 | __BUILD_MEMORY_STRING(q, u64) | ||
127 | 126 | ||
127 | #ifdef CONFIG_SUPERH32 | ||
128 | void __raw_writesl(void __iomem *addr, const void *data, int longlen); | 128 | void __raw_writesl(void __iomem *addr, const void *data, int longlen); |
129 | void __raw_readsl(const void __iomem *addr, void *data, int longlen); | 129 | void __raw_readsl(const void __iomem *addr, void *data, int longlen); |
130 | #else | ||
131 | __BUILD_MEMORY_STRING(l, u32) | ||
132 | #endif | ||
133 | |||
134 | __BUILD_MEMORY_STRING(q, u64) | ||
130 | 135 | ||
131 | #define writesb __raw_writesb | 136 | #define writesb __raw_writesb |
132 | #define writesw __raw_writesw | 137 | #define writesw __raw_writesw |
@@ -224,17 +229,6 @@ void __iomem *__ioremap(unsigned long offset, unsigned long size, | |||
224 | unsigned long flags); | 229 | unsigned long flags); |
225 | void __iounmap(void __iomem *addr); | 230 | void __iounmap(void __iomem *addr); |
226 | 231 | ||
227 | /* arch/sh/mm/ioremap_64.c */ | ||
228 | unsigned long onchip_remap(unsigned long addr, unsigned long size, | ||
229 | const char *name); | ||
230 | extern void onchip_unmap(unsigned long vaddr); | ||
231 | #else | ||
232 | #define __ioremap(offset, size, flags) ((void __iomem *)(offset)) | ||
233 | #define __iounmap(addr) do { } while (0) | ||
234 | #define onchip_remap(addr, size, name) (addr) | ||
235 | #define onchip_unmap(addr) do { } while (0) | ||
236 | #endif /* CONFIG_MMU */ | ||
237 | |||
238 | static inline void __iomem * | 232 | static inline void __iomem * |
239 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | 233 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) |
240 | { | 234 | { |
@@ -268,6 +262,10 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | |||
268 | 262 | ||
269 | return __ioremap(offset, size, flags); | 263 | return __ioremap(offset, size, flags); |
270 | } | 264 | } |
265 | #else | ||
266 | #define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset)) | ||
267 | #define __iounmap(addr) do { } while (0) | ||
268 | #endif /* CONFIG_MMU */ | ||
271 | 269 | ||
272 | #define ioremap(offset, size) \ | 270 | #define ioremap(offset, size) \ |
273 | __ioremap_mode((offset), (size), 0) | 271 | __ioremap_mode((offset), (size), 0) |
diff --git a/arch/sh/include/asm/kprobes.h b/arch/sh/include/asm/kprobes.h index 613644a758e8..036c3311233c 100644 --- a/arch/sh/include/asm/kprobes.h +++ b/arch/sh/include/asm/kprobes.h | |||
@@ -6,7 +6,7 @@ | |||
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <linux/ptrace.h> | 7 | #include <linux/ptrace.h> |
8 | 8 | ||
9 | typedef u16 kprobe_opcode_t; | 9 | typedef insn_size_t kprobe_opcode_t; |
10 | #define BREAKPOINT_INSTRUCTION 0xc33a | 10 | #define BREAKPOINT_INSTRUCTION 0xc33a |
11 | 11 | ||
12 | #define MAX_INSN_SIZE 16 | 12 | #define MAX_INSN_SIZE 16 |
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h index df1d383e18a5..5b2e0fcdfc22 100644 --- a/arch/sh/include/asm/pci.h +++ b/arch/sh/include/asm/pci.h | |||
@@ -17,54 +17,29 @@ | |||
17 | * external) PCI controllers. | 17 | * external) PCI controllers. |
18 | */ | 18 | */ |
19 | struct pci_channel { | 19 | struct pci_channel { |
20 | struct pci_ops *pci_ops; | 20 | struct pci_channel *next; |
21 | struct resource *io_resource; | ||
22 | struct resource *mem_resource; | ||
23 | int first_devfn; | ||
24 | int last_devfn; | ||
25 | }; | ||
26 | 21 | ||
27 | /* | 22 | struct pci_ops *pci_ops; |
28 | * Each board initializes this array and terminates it with a NULL entry. | 23 | struct resource *io_resource; |
29 | */ | 24 | struct resource *mem_resource; |
30 | extern struct pci_channel board_pci_channels[]; | ||
31 | 25 | ||
32 | #define PCIBIOS_MIN_IO board_pci_channels->io_resource->start | 26 | unsigned long io_offset; |
33 | #define PCIBIOS_MIN_MEM board_pci_channels->mem_resource->start | 27 | unsigned long mem_offset; |
34 | 28 | ||
35 | /* | 29 | unsigned long reg_base; |
36 | * I/O routine helpers | ||
37 | */ | ||
38 | #if defined(CONFIG_CPU_SUBTYPE_SH7780) || defined(CONFIG_CPU_SUBTYPE_SH7785) | ||
39 | #define PCI_IO_AREA 0xFE400000 | ||
40 | #define PCI_IO_SIZE 0x00400000 | ||
41 | #elif defined(CONFIG_CPU_SH5) | ||
42 | extern unsigned long PCI_IO_AREA; | ||
43 | #define PCI_IO_SIZE 0x00010000 | ||
44 | #else | ||
45 | #define PCI_IO_AREA 0xFE240000 | ||
46 | #define PCI_IO_SIZE 0x00040000 | ||
47 | #endif | ||
48 | 30 | ||
49 | #define PCI_MEM_SIZE 0x01000000 | 31 | unsigned long io_map_base; |
32 | }; | ||
50 | 33 | ||
51 | #define SH4_PCIIOBR_MASK 0xFFFC0000 | 34 | extern void register_pci_controller(struct pci_channel *hose); |
52 | #define pci_ioaddr(addr) (PCI_IO_AREA + (addr & ~SH4_PCIIOBR_MASK)) | ||
53 | 35 | ||
54 | #if defined(CONFIG_PCI) | 36 | extern unsigned long PCIBIOS_MIN_IO, PCIBIOS_MIN_MEM; |
55 | #define is_pci_ioaddr(port) \ | ||
56 | (((port) >= PCIBIOS_MIN_IO) && \ | ||
57 | ((port) < (PCIBIOS_MIN_IO + PCI_IO_SIZE))) | ||
58 | #define is_pci_memaddr(port) \ | ||
59 | (((port) >= PCIBIOS_MIN_MEM) && \ | ||
60 | ((port) < (PCIBIOS_MIN_MEM + PCI_MEM_SIZE))) | ||
61 | #else | ||
62 | #define is_pci_ioaddr(port) (0) | ||
63 | #define is_pci_memaddr(port) (0) | ||
64 | #endif | ||
65 | 37 | ||
66 | struct pci_dev; | 38 | struct pci_dev; |
67 | 39 | ||
40 | #define HAVE_PCI_MMAP | ||
41 | extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | ||
42 | enum pci_mmap_state mmap_state, int write_combine); | ||
68 | extern void pcibios_set_master(struct pci_dev *dev); | 43 | extern void pcibios_set_master(struct pci_dev *dev); |
69 | 44 | ||
70 | static inline void pcibios_penalize_isa_irq(int irq, int active) | 45 | static inline void pcibios_penalize_isa_irq(int irq, int active) |
@@ -123,22 +98,51 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev, | |||
123 | } | 98 | } |
124 | #endif | 99 | #endif |
125 | 100 | ||
101 | #ifdef CONFIG_SUPERH32 | ||
102 | /* | ||
103 | * If we're on an SH7751 or SH7780 PCI controller, PCI memory is mapped | ||
104 | * at the end of the address space in a special non-translatable area. | ||
105 | */ | ||
106 | #define PCI_MEM_FIXED_START 0xfd000000 | ||
107 | #define PCI_MEM_FIXED_END (PCI_MEM_FIXED_START + 0x01000000) | ||
108 | |||
109 | #define is_pci_memory_fixed_range(s, e) \ | ||
110 | ((s) >= PCI_MEM_FIXED_START && (e) < PCI_MEM_FIXED_END) | ||
111 | #else | ||
112 | #define is_pci_memory_fixed_range(s, e) (0) | ||
113 | #endif | ||
114 | |||
126 | /* Board-specific fixup routines. */ | 115 | /* Board-specific fixup routines. */ |
127 | void pcibios_fixup(void); | ||
128 | int pcibios_init_platform(void); | ||
129 | int pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin); | 116 | int pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin); |
130 | 117 | ||
131 | #ifdef CONFIG_PCI_AUTO | 118 | extern void pcibios_resource_to_bus(struct pci_dev *dev, |
132 | int pciauto_assign_resources(int busno, struct pci_channel *hose); | 119 | struct pci_bus_region *region, struct resource *res); |
133 | #endif | ||
134 | 120 | ||
135 | #endif /* __KERNEL__ */ | 121 | extern void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, |
122 | struct pci_bus_region *region); | ||
123 | |||
124 | static inline struct resource * | ||
125 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) | ||
126 | { | ||
127 | struct resource *root = NULL; | ||
136 | 128 | ||
137 | /* generic pci stuff */ | 129 | if (res->flags & IORESOURCE_IO) |
138 | #include <asm-generic/pci.h> | 130 | root = &ioport_resource; |
131 | if (res->flags & IORESOURCE_MEM) | ||
132 | root = &iomem_resource; | ||
133 | |||
134 | return root; | ||
135 | } | ||
136 | |||
137 | /* Chances are this interrupt is wired PC-style ... */ | ||
138 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | ||
139 | { | ||
140 | return channel ? 15 : 14; | ||
141 | } | ||
139 | 142 | ||
140 | /* generic DMA-mapping stuff */ | 143 | /* generic DMA-mapping stuff */ |
141 | #include <asm-generic/pci-dma-compat.h> | 144 | #include <asm-generic/pci-dma-compat.h> |
142 | 145 | ||
146 | #endif /* __KERNEL__ */ | ||
143 | #endif /* __ASM_SH_PCI_H */ | 147 | #endif /* __ASM_SH_PCI_H */ |
144 | 148 | ||
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index b517ae08b9c0..2a011b18090b 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h | |||
@@ -154,6 +154,10 @@ extern void kmap_coherent_init(void); | |||
154 | #define kmap_coherent_init() do { } while (0) | 154 | #define kmap_coherent_init() do { } while (0) |
155 | #endif | 155 | #endif |
156 | 156 | ||
157 | /* arch/sh/mm/mmap.c */ | ||
158 | #define HAVE_ARCH_UNMAPPED_AREA | ||
159 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN | ||
160 | |||
157 | #include <asm-generic/pgtable.h> | 161 | #include <asm-generic/pgtable.h> |
158 | 162 | ||
159 | #endif /* __ASM_SH_PGTABLE_H */ | 163 | #endif /* __ASM_SH_PGTABLE_H */ |
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h index 1fd58b421438..005c962c8b1c 100644 --- a/arch/sh/include/asm/processor.h +++ b/arch/sh/include/asm/processor.h | |||
@@ -32,7 +32,7 @@ enum cpu_type { | |||
32 | 32 | ||
33 | /* SH-4A types */ | 33 | /* SH-4A types */ |
34 | CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, | 34 | CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, |
35 | CPU_SH7723, CPU_SHX3, | 35 | CPU_SH7723, CPU_SH7724, CPU_SHX3, |
36 | 36 | ||
37 | /* SH4AL-DSP types */ | 37 | /* SH4AL-DSP types */ |
38 | CPU_SH7343, CPU_SH7722, CPU_SH7366, | 38 | CPU_SH7343, CPU_SH7722, CPU_SH7366, |
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h index 68e20ff9aa9b..1dc12cb44a2d 100644 --- a/arch/sh/include/asm/ptrace.h +++ b/arch/sh/include/asm/ptrace.h | |||
@@ -102,6 +102,11 @@ struct pt_dspregs { | |||
102 | #define PTRACE_GETDSPREGS 55 /* DSP registers */ | 102 | #define PTRACE_GETDSPREGS 55 /* DSP registers */ |
103 | #define PTRACE_SETDSPREGS 56 | 103 | #define PTRACE_SETDSPREGS 56 |
104 | 104 | ||
105 | #define PT_TEXT_END_ADDR 240 | ||
106 | #define PT_TEXT_ADDR 244 /* &(struct user)->start_code */ | ||
107 | #define PT_DATA_ADDR 248 /* &(struct user)->start_data */ | ||
108 | #define PT_TEXT_LEN 252 | ||
109 | |||
105 | #ifdef __KERNEL__ | 110 | #ifdef __KERNEL__ |
106 | #include <asm/addrspace.h> | 111 | #include <asm/addrspace.h> |
107 | 112 | ||
diff --git a/arch/sh/include/asm/rtc.h b/arch/sh/include/asm/rtc.h index f7b010d48af7..52b0c2dba979 100644 --- a/arch/sh/include/asm/rtc.h +++ b/arch/sh/include/asm/rtc.h | |||
@@ -6,6 +6,17 @@ extern void (*board_time_init)(void); | |||
6 | extern void (*rtc_sh_get_time)(struct timespec *); | 6 | extern void (*rtc_sh_get_time)(struct timespec *); |
7 | extern int (*rtc_sh_set_time)(const time_t); | 7 | extern int (*rtc_sh_set_time)(const time_t); |
8 | 8 | ||
9 | /* some dummy definitions */ | ||
10 | #define RTC_BATT_BAD 0x100 /* battery bad */ | ||
11 | #define RTC_SQWE 0x08 /* enable square-wave output */ | ||
12 | #define RTC_DM_BINARY 0x04 /* all time/date values are BCD if clear */ | ||
13 | #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */ | ||
14 | #define RTC_DST_EN 0x01 /* auto switch DST - works f. USA only */ | ||
15 | |||
16 | struct rtc_time; | ||
17 | unsigned int get_rtc_time(struct rtc_time *); | ||
18 | int set_rtc_time(struct rtc_time *); | ||
19 | |||
9 | #define RTC_CAP_4_DIGIT_YEAR (1 << 0) | 20 | #define RTC_CAP_4_DIGIT_YEAR (1 << 0) |
10 | 21 | ||
11 | struct sh_rtc_platform_info { | 22 | struct sh_rtc_platform_info { |
diff --git a/arch/sh/include/asm/swab.h b/arch/sh/include/asm/swab.h index e69315935107..0e08fe54ad71 100644 --- a/arch/sh/include/asm/swab.h +++ b/arch/sh/include/asm/swab.h | |||
@@ -14,15 +14,15 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
14 | { | 14 | { |
15 | __asm__( | 15 | __asm__( |
16 | #ifdef __SH5__ | 16 | #ifdef __SH5__ |
17 | "byterev %0, %0\n\t" | 17 | "byterev %1, %0\n\t" |
18 | "shari %0, 32, %0" | 18 | "shari %0, 32, %0" |
19 | #else | 19 | #else |
20 | "swap.b %0, %0\n\t" | 20 | "swap.b %1, %0\n\t" |
21 | "swap.w %0, %0\n\t" | 21 | "swap.w %0, %0\n\t" |
22 | "swap.b %0, %0" | 22 | "swap.b %0, %0" |
23 | #endif | 23 | #endif |
24 | : "=r" (x) | 24 | : "=r" (x) |
25 | : "0" (x)); | 25 | : "r" (x)); |
26 | 26 | ||
27 | return x; | 27 | return x; |
28 | } | 28 | } |
@@ -32,13 +32,13 @@ static inline __attribute_const__ __u16 __arch_swab16(__u16 x) | |||
32 | { | 32 | { |
33 | __asm__( | 33 | __asm__( |
34 | #ifdef __SH5__ | 34 | #ifdef __SH5__ |
35 | "byterev %0, %0\n\t" | 35 | "byterev %1, %0\n\t" |
36 | "shari %0, 32, %0" | 36 | "shari %0, 32, %0" |
37 | #else | 37 | #else |
38 | "swap.b %0, %0" | 38 | "swap.b %1, %0" |
39 | #endif | 39 | #endif |
40 | : "=r" (x) | 40 | : "=r" (x) |
41 | : "0" (x)); | 41 | : "r" (x)); |
42 | 42 | ||
43 | return x; | 43 | return x; |
44 | } | 44 | } |
diff --git a/arch/sh/include/asm/system_32.h b/arch/sh/include/asm/system_32.h index 240b31e1142c..6c68a51f1cc5 100644 --- a/arch/sh/include/asm/system_32.h +++ b/arch/sh/include/asm/system_32.h | |||
@@ -198,7 +198,7 @@ do { \ | |||
198 | }) | 198 | }) |
199 | #endif | 199 | #endif |
200 | 200 | ||
201 | int handle_unaligned_access(opcode_t instruction, struct pt_regs *regs, | 201 | int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs, |
202 | struct mem_access *ma); | 202 | struct mem_access *ma); |
203 | 203 | ||
204 | asmlinkage void do_address_error(struct pt_regs *regs, | 204 | asmlinkage void do_address_error(struct pt_regs *regs, |
diff --git a/arch/sh/include/asm/timer.h b/arch/sh/include/asm/timer.h deleted file mode 100644 index 4c3b66e30af2..000000000000 --- a/arch/sh/include/asm/timer.h +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | #ifndef __ASM_SH_TIMER_H | ||
2 | #define __ASM_SH_TIMER_H | ||
3 | |||
4 | #include <linux/sysdev.h> | ||
5 | #include <linux/clocksource.h> | ||
6 | #include <cpu/timer.h> | ||
7 | |||
8 | struct sys_timer_ops { | ||
9 | int (*init)(void); | ||
10 | int (*start)(void); | ||
11 | int (*stop)(void); | ||
12 | #ifndef CONFIG_GENERIC_TIME | ||
13 | unsigned long (*get_offset)(void); | ||
14 | #endif | ||
15 | }; | ||
16 | |||
17 | struct sys_timer { | ||
18 | const char *name; | ||
19 | |||
20 | struct sys_device dev; | ||
21 | struct sys_timer_ops *ops; | ||
22 | }; | ||
23 | |||
24 | #define TICK_SIZE (tick_nsec / 1000) | ||
25 | |||
26 | extern struct sys_timer tmu_timer, cmt_timer, mtu2_timer; | ||
27 | extern struct sys_timer *sys_timer; | ||
28 | |||
29 | #ifndef CONFIG_GENERIC_TIME | ||
30 | static inline unsigned long get_timer_offset(void) | ||
31 | { | ||
32 | return sys_timer->ops->get_offset(); | ||
33 | } | ||
34 | #endif | ||
35 | |||
36 | /* arch/sh/kernel/timers/timer.c */ | ||
37 | struct sys_timer *get_sys_timer(void); | ||
38 | |||
39 | /* arch/sh/kernel/time.c */ | ||
40 | void handle_timer_tick(void); | ||
41 | |||
42 | extern struct clocksource clocksource_sh; | ||
43 | |||
44 | #endif /* __ASM_SH_TIMER_H */ | ||
diff --git a/arch/sh/include/asm/types.h b/arch/sh/include/asm/types.h index beea4e6f8dfd..b13caca62a76 100644 --- a/arch/sh/include/asm/types.h +++ b/arch/sh/include/asm/types.h | |||
@@ -23,9 +23,9 @@ typedef unsigned short umode_t; | |||
23 | typedef u32 dma_addr_t; | 23 | typedef u32 dma_addr_t; |
24 | 24 | ||
25 | #ifdef CONFIG_SUPERH32 | 25 | #ifdef CONFIG_SUPERH32 |
26 | typedef u16 opcode_t; | 26 | typedef u16 insn_size_t; |
27 | #else | 27 | #else |
28 | typedef u32 opcode_t; | 28 | typedef u32 insn_size_t; |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | #endif /* __ASSEMBLY__ */ | 31 | #endif /* __ASSEMBLY__ */ |
diff --git a/arch/sh/include/asm/ubc.h b/arch/sh/include/asm/ubc.h index a7b9028bbfbb..4ca4b7717371 100644 --- a/arch/sh/include/asm/ubc.h +++ b/arch/sh/include/asm/ubc.h | |||
@@ -42,12 +42,23 @@ | |||
42 | 42 | ||
43 | #define BRCR_CMFA (1 << 15) | 43 | #define BRCR_CMFA (1 << 15) |
44 | #define BRCR_CMFB (1 << 14) | 44 | #define BRCR_CMFB (1 << 14) |
45 | |||
46 | #if defined CONFIG_CPU_SH2A | ||
47 | #define BRCR_CMFCA (1 << 15) | ||
48 | #define BRCR_CMFCB (1 << 14) | ||
49 | #define BRCR_CMFDA (1 << 13) | ||
50 | #define BRCR_CMFDB (1 << 12) | ||
51 | #define BRCR_PCBB (1 << 6) /* 1: after execution */ | ||
52 | #define BRCR_PCBA (1 << 5) /* 1: after execution */ | ||
53 | #define BRCR_PCTE 0 | ||
54 | #else | ||
45 | #define BRCR_PCTE (1 << 11) | 55 | #define BRCR_PCTE (1 << 11) |
46 | #define BRCR_PCBA (1 << 10) /* 1: after execution */ | 56 | #define BRCR_PCBA (1 << 10) /* 1: after execution */ |
47 | #define BRCR_DBEB (1 << 7) | 57 | #define BRCR_DBEB (1 << 7) |
48 | #define BRCR_PCBB (1 << 6) | 58 | #define BRCR_PCBB (1 << 6) |
49 | #define BRCR_SEQ (1 << 3) | 59 | #define BRCR_SEQ (1 << 3) |
50 | #define BRCR_UBDE (1 << 0) | 60 | #define BRCR_UBDE (1 << 0) |
61 | #endif | ||
51 | 62 | ||
52 | #ifndef __ASSEMBLY__ | 63 | #ifndef __ASSEMBLY__ |
53 | /* arch/sh/kernel/cpu/ubc.S */ | 64 | /* arch/sh/kernel/cpu/ubc.S */ |
diff --git a/arch/sh/include/cpu-sh2a/cpu/ubc.h b/arch/sh/include/cpu-sh2a/cpu/ubc.h index 8ce2fc1cf625..1192e1c761a7 100644 --- a/arch/sh/include/cpu-sh2a/cpu/ubc.h +++ b/arch/sh/include/cpu-sh2a/cpu/ubc.h | |||
@@ -1 +1,28 @@ | |||
1 | #include <cpu-sh2/cpu/ubc.h> | 1 | /* |
2 | * SH-2A UBC definitions | ||
3 | * | ||
4 | * Copyright (C) 2008 Kieran Bingham | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_CPU_SH2A_UBC_H | ||
12 | #define __ASM_CPU_SH2A_UBC_H | ||
13 | |||
14 | #define UBC_BARA 0xfffc0400 | ||
15 | #define UBC_BAMRA 0xfffc0404 | ||
16 | #define UBC_BBRA 0xfffc04a0 /* 16 bit access */ | ||
17 | #define UBC_BDRA 0xfffc0408 | ||
18 | #define UBC_BDMRA 0xfffc040c | ||
19 | |||
20 | #define UBC_BARB 0xfffc0410 | ||
21 | #define UBC_BAMRB 0xfffc0414 | ||
22 | #define UBC_BBRB 0xfffc04b0 /* 16 bit access */ | ||
23 | #define UBC_BDRB 0xfffc0418 | ||
24 | #define UBC_BDMRB 0xfffc041c | ||
25 | |||
26 | #define UBC_BRCR 0xfffc04c0 | ||
27 | |||
28 | #endif /* __ASM_CPU_SH2A_UBC_H */ | ||
diff --git a/arch/sh/include/cpu-sh3/cpu/timer.h b/arch/sh/include/cpu-sh3/cpu/timer.h deleted file mode 100644 index 793acf12aa08..000000000000 --- a/arch/sh/include/cpu-sh3/cpu/timer.h +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | /* | ||
2 | * include/asm-sh/cpu-sh3/timer.h | ||
3 | * | ||
4 | * Copyright (C) 2004 Lineo Solutions, Inc. | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #ifndef __ASM_CPU_SH3_TIMER_H | ||
11 | #define __ASM_CPU_SH3_TIMER_H | ||
12 | |||
13 | /* | ||
14 | * --------------------------------------------------------------------------- | ||
15 | * TMU Common definitions for SH3 processors | ||
16 | * SH7706 | ||
17 | * SH7709S | ||
18 | * SH7727 | ||
19 | * SH7729R | ||
20 | * SH7710 | ||
21 | * SH7720 | ||
22 | * SH7710 | ||
23 | * --------------------------------------------------------------------------- | ||
24 | */ | ||
25 | |||
26 | #if !defined(CONFIG_CPU_SUBTYPE_SH7720) && !defined(CONFIG_CPU_SUBTYPE_SH7721) | ||
27 | #define TMU_TOCR 0xfffffe90 /* Byte access */ | ||
28 | #endif | ||
29 | |||
30 | #if defined(CONFIG_CPU_SUBTYPE_SH7710) || \ | ||
31 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | ||
32 | defined(CONFIG_CPU_SUBTYPE_SH7721) | ||
33 | #define TMU_012_TSTR 0xa412fe92 /* Byte access */ | ||
34 | |||
35 | #define TMU0_TCOR 0xa412fe94 /* Long access */ | ||
36 | #define TMU0_TCNT 0xa412fe98 /* Long access */ | ||
37 | #define TMU0_TCR 0xa412fe9c /* Word access */ | ||
38 | |||
39 | #define TMU1_TCOR 0xa412fea0 /* Long access */ | ||
40 | #define TMU1_TCNT 0xa412fea4 /* Long access */ | ||
41 | #define TMU1_TCR 0xa412fea8 /* Word access */ | ||
42 | |||
43 | #define TMU2_TCOR 0xa412feac /* Long access */ | ||
44 | #define TMU2_TCNT 0xa412feb0 /* Long access */ | ||
45 | #define TMU2_TCR 0xa412feb4 /* Word access */ | ||
46 | |||
47 | #else | ||
48 | #define TMU_012_TSTR 0xfffffe92 /* Byte access */ | ||
49 | |||
50 | #define TMU0_TCOR 0xfffffe94 /* Long access */ | ||
51 | #define TMU0_TCNT 0xfffffe98 /* Long access */ | ||
52 | #define TMU0_TCR 0xfffffe9c /* Word access */ | ||
53 | |||
54 | #define TMU1_TCOR 0xfffffea0 /* Long access */ | ||
55 | #define TMU1_TCNT 0xfffffea4 /* Long access */ | ||
56 | #define TMU1_TCR 0xfffffea8 /* Word access */ | ||
57 | |||
58 | #define TMU2_TCOR 0xfffffeac /* Long access */ | ||
59 | #define TMU2_TCNT 0xfffffeb0 /* Long access */ | ||
60 | #define TMU2_TCR 0xfffffeb4 /* Word access */ | ||
61 | #if !defined(CONFIG_CPU_SUBTYPE_SH7720) && !defined(CONFIG_CPU_SUBTYPE_SH7721) | ||
62 | #define TMU2_TCPR2 0xfffffeb8 /* Long access */ | ||
63 | #endif | ||
64 | #endif | ||
65 | |||
66 | #endif /* __ASM_CPU_SH3_TIMER_H */ | ||
67 | |||
diff --git a/arch/sh/include/cpu-sh4/cpu/freq.h b/arch/sh/include/cpu-sh4/cpu/freq.h index 749d1c434337..ccf1d999db6d 100644 --- a/arch/sh/include/cpu-sh4/cpu/freq.h +++ b/arch/sh/include/cpu-sh4/cpu/freq.h | |||
@@ -25,6 +25,24 @@ | |||
25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | 25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
26 | defined(CONFIG_CPU_SUBTYPE_SH7780) | 26 | defined(CONFIG_CPU_SUBTYPE_SH7780) |
27 | #define FRQCR 0xffc80000 | 27 | #define FRQCR 0xffc80000 |
28 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
29 | #define FRQCRA 0xa4150000 | ||
30 | #define FRQCRB 0xa4150004 | ||
31 | #define VCLKCR 0xa4150048 | ||
32 | |||
33 | #define FCLKACR 0xa4150008 | ||
34 | #define FCLKBCR 0xa415000c | ||
35 | #define FRQCR FRQCRA | ||
36 | #define SCLKACR FCLKACR | ||
37 | #define SCLKBCR FCLKBCR | ||
38 | #define FCLKACR 0xa4150008 | ||
39 | #define FCLKBCR 0xa415000c | ||
40 | #define IrDACLKCR 0xa4150018 | ||
41 | |||
42 | #define MSTPCR0 0xa4150030 | ||
43 | #define MSTPCR1 0xa4150034 | ||
44 | #define MSTPCR2 0xa4150038 | ||
45 | |||
28 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) | 46 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) |
29 | #define FRQCR0 0xffc80000 | 47 | #define FRQCR0 0xffc80000 |
30 | #define FRQCR1 0xffc80004 | 48 | #define FRQCR1 0xffc80004 |
diff --git a/arch/sh/include/cpu-sh4/cpu/sh7724.h b/arch/sh/include/cpu-sh4/cpu/sh7724.h new file mode 100644 index 000000000000..34605c9e354d --- /dev/null +++ b/arch/sh/include/cpu-sh4/cpu/sh7724.h | |||
@@ -0,0 +1,255 @@ | |||
1 | #ifndef __ASM_SH7724_H__ | ||
2 | #define __ASM_SH7724_H__ | ||
3 | |||
4 | enum { | ||
5 | /* PTA */ | ||
6 | GPIO_PTA7, GPIO_PTA6, GPIO_PTA5, GPIO_PTA4, | ||
7 | GPIO_PTA3, GPIO_PTA2, GPIO_PTA1, GPIO_PTA0, | ||
8 | |||
9 | /* PTB */ | ||
10 | GPIO_PTB7, GPIO_PTB6, GPIO_PTB5, GPIO_PTB4, | ||
11 | GPIO_PTB3, GPIO_PTB2, GPIO_PTB1, GPIO_PTB0, | ||
12 | |||
13 | /* PTC */ | ||
14 | GPIO_PTC7, GPIO_PTC6, GPIO_PTC5, GPIO_PTC4, | ||
15 | GPIO_PTC3, GPIO_PTC2, GPIO_PTC1, GPIO_PTC0, | ||
16 | |||
17 | /* PTD */ | ||
18 | GPIO_PTD7, GPIO_PTD6, GPIO_PTD5, GPIO_PTD4, | ||
19 | GPIO_PTD3, GPIO_PTD2, GPIO_PTD1, GPIO_PTD0, | ||
20 | |||
21 | /* PTE */ | ||
22 | GPIO_PTE7, GPIO_PTE6, GPIO_PTE5, GPIO_PTE4, | ||
23 | GPIO_PTE3, GPIO_PTE2, GPIO_PTE1, GPIO_PTE0, | ||
24 | |||
25 | /* PTF */ | ||
26 | GPIO_PTF7, GPIO_PTF6, GPIO_PTF5, GPIO_PTF4, | ||
27 | GPIO_PTF3, GPIO_PTF2, GPIO_PTF1, GPIO_PTF0, | ||
28 | |||
29 | /* PTG */ | ||
30 | GPIO_PTG5, GPIO_PTG4, | ||
31 | GPIO_PTG3, GPIO_PTG2, GPIO_PTG1, GPIO_PTG0, | ||
32 | |||
33 | /* PTH */ | ||
34 | GPIO_PTH7, GPIO_PTH6, GPIO_PTH5, GPIO_PTH4, | ||
35 | GPIO_PTH3, GPIO_PTH2, GPIO_PTH1, GPIO_PTH0, | ||
36 | |||
37 | /* PTJ */ | ||
38 | GPIO_PTJ7, GPIO_PTJ6, GPIO_PTJ5, | ||
39 | GPIO_PTJ3, GPIO_PTJ2, GPIO_PTJ1, GPIO_PTJ0, | ||
40 | |||
41 | /* PTK */ | ||
42 | GPIO_PTK7, GPIO_PTK6, GPIO_PTK5, GPIO_PTK4, | ||
43 | GPIO_PTK3, GPIO_PTK2, GPIO_PTK1, GPIO_PTK0, | ||
44 | |||
45 | /* PTL */ | ||
46 | GPIO_PTL7, GPIO_PTL6, GPIO_PTL5, GPIO_PTL4, | ||
47 | GPIO_PTL3, GPIO_PTL2, GPIO_PTL1, GPIO_PTL0, | ||
48 | |||
49 | /* PTM */ | ||
50 | GPIO_PTM7, GPIO_PTM6, GPIO_PTM5, GPIO_PTM4, | ||
51 | GPIO_PTM3, GPIO_PTM2, GPIO_PTM1, GPIO_PTM0, | ||
52 | |||
53 | /* PTN */ | ||
54 | GPIO_PTN7, GPIO_PTN6, GPIO_PTN5, GPIO_PTN4, | ||
55 | GPIO_PTN3, GPIO_PTN2, GPIO_PTN1, GPIO_PTN0, | ||
56 | |||
57 | /* PTQ */ | ||
58 | GPIO_PTQ7, GPIO_PTQ6, GPIO_PTQ5, GPIO_PTQ4, | ||
59 | GPIO_PTQ3, GPIO_PTQ2, GPIO_PTQ1, GPIO_PTQ0, | ||
60 | |||
61 | /* PTR */ | ||
62 | GPIO_PTR7, GPIO_PTR6, GPIO_PTR5, GPIO_PTR4, | ||
63 | GPIO_PTR3, GPIO_PTR2, GPIO_PTR1, GPIO_PTR0, | ||
64 | |||
65 | /* PTS */ | ||
66 | GPIO_PTS6, GPIO_PTS5, GPIO_PTS4, | ||
67 | GPIO_PTS3, GPIO_PTS2, GPIO_PTS1, GPIO_PTS0, | ||
68 | |||
69 | /* PTT */ | ||
70 | GPIO_PTT7, GPIO_PTT6, GPIO_PTT5, GPIO_PTT4, | ||
71 | GPIO_PTT3, GPIO_PTT2, GPIO_PTT1, GPIO_PTT0, | ||
72 | |||
73 | /* PTU */ | ||
74 | GPIO_PTU7, GPIO_PTU6, GPIO_PTU5, GPIO_PTU4, | ||
75 | GPIO_PTU3, GPIO_PTU2, GPIO_PTU1, GPIO_PTU0, | ||
76 | |||
77 | /* PTV */ | ||
78 | GPIO_PTV7, GPIO_PTV6, GPIO_PTV5, GPIO_PTV4, | ||
79 | GPIO_PTV3, GPIO_PTV2, GPIO_PTV1, GPIO_PTV0, | ||
80 | |||
81 | /* PTW */ | ||
82 | GPIO_PTW7, GPIO_PTW6, GPIO_PTW5, GPIO_PTW4, | ||
83 | GPIO_PTW3, GPIO_PTW2, GPIO_PTW1, GPIO_PTW0, | ||
84 | |||
85 | /* PTX */ | ||
86 | GPIO_PTX7, GPIO_PTX6, GPIO_PTX5, GPIO_PTX4, | ||
87 | GPIO_PTX3, GPIO_PTX2, GPIO_PTX1, GPIO_PTX0, | ||
88 | |||
89 | /* PTY */ | ||
90 | GPIO_PTY7, GPIO_PTY6, GPIO_PTY5, GPIO_PTY4, | ||
91 | GPIO_PTY3, GPIO_PTY2, GPIO_PTY1, GPIO_PTY0, | ||
92 | |||
93 | /* PTZ */ | ||
94 | GPIO_PTZ7, GPIO_PTZ6, GPIO_PTZ5, GPIO_PTZ4, | ||
95 | GPIO_PTZ3, GPIO_PTZ2, GPIO_PTZ1, GPIO_PTZ0, | ||
96 | |||
97 | /* BSC (PTA/PTB/PTJ/PTQ/PTR/PTT) */ | ||
98 | GPIO_FN_D31, GPIO_FN_D30, GPIO_FN_D29, GPIO_FN_D28, | ||
99 | GPIO_FN_D27, GPIO_FN_D26, GPIO_FN_D25, GPIO_FN_D24, | ||
100 | GPIO_FN_D23, GPIO_FN_D22, GPIO_FN_D21, GPIO_FN_D20, | ||
101 | GPIO_FN_D19, GPIO_FN_D18, GPIO_FN_D17, GPIO_FN_D16, | ||
102 | GPIO_FN_D15, GPIO_FN_D14, GPIO_FN_D13, GPIO_FN_D12, | ||
103 | GPIO_FN_D11, GPIO_FN_D10, GPIO_FN_D9, GPIO_FN_D8, | ||
104 | GPIO_FN_D7, GPIO_FN_D6, GPIO_FN_D5, GPIO_FN_D4, | ||
105 | GPIO_FN_D3, GPIO_FN_D2, GPIO_FN_D1, GPIO_FN_D0, | ||
106 | GPIO_FN_A25, GPIO_FN_A24, GPIO_FN_A23, GPIO_FN_A22, | ||
107 | GPIO_FN_CS6B_CE1B, GPIO_FN_CS6A_CE2B, | ||
108 | GPIO_FN_CS5B_CE1A, GPIO_FN_CS5A_CE2A, | ||
109 | GPIO_FN_WE3_ICIOWR, GPIO_FN_WE2_ICIORD, | ||
110 | GPIO_FN_IOIS16, GPIO_FN_WAIT, | ||
111 | GPIO_FN_BS, | ||
112 | |||
113 | /* KEYSC (PTA/PTB)*/ | ||
114 | GPIO_FN_KEYOUT5_IN5, GPIO_FN_KEYOUT4_IN6, GPIO_FN_KEYIN4, | ||
115 | GPIO_FN_KEYIN3, GPIO_FN_KEYIN2, GPIO_FN_KEYIN1, GPIO_FN_KEYIN0, | ||
116 | GPIO_FN_KEYOUT3, GPIO_FN_KEYOUT2, GPIO_FN_KEYOUT1, GPIO_FN_KEYOUT0, | ||
117 | |||
118 | /* ATAPI (PTA/PTB/PTK/PTR/PTS/PTW) */ | ||
119 | GPIO_FN_IDED15, GPIO_FN_IDED14, GPIO_FN_IDED13, GPIO_FN_IDED12, | ||
120 | GPIO_FN_IDED11, GPIO_FN_IDED10, GPIO_FN_IDED9, GPIO_FN_IDED8, | ||
121 | GPIO_FN_IDED7, GPIO_FN_IDED6, GPIO_FN_IDED5, GPIO_FN_IDED4, | ||
122 | GPIO_FN_IDED3, GPIO_FN_IDED2, GPIO_FN_IDED1, GPIO_FN_IDED0, | ||
123 | GPIO_FN_IDEA2, GPIO_FN_IDEA1, GPIO_FN_IDEA0, GPIO_FN_IDEIOWR, | ||
124 | GPIO_FN_IODREQ, GPIO_FN_IDECS0, GPIO_FN_IDECS1, GPIO_FN_IDEIORD, | ||
125 | GPIO_FN_DIRECTION, GPIO_FN_EXBUF_ENB, GPIO_FN_IDERST, GPIO_FN_IODACK, | ||
126 | GPIO_FN_IDEINT, GPIO_FN_IDEIORDY, | ||
127 | |||
128 | /* TPU (PTB/PTR/PTS) */ | ||
129 | GPIO_FN_TPUTO3, GPIO_FN_TPUTO2, GPIO_FN_TPUTO1, GPIO_FN_TPUTO0, | ||
130 | GPIO_FN_TPUTI3, GPIO_FN_TPUTI2, | ||
131 | |||
132 | /* LCDC (PTC/PTD/PTE/PTF/PTM/PTR) */ | ||
133 | GPIO_FN_LCDD23, GPIO_FN_LCDD22, GPIO_FN_LCDD21, GPIO_FN_LCDD20, | ||
134 | GPIO_FN_LCDD19, GPIO_FN_LCDD18, GPIO_FN_LCDD17, GPIO_FN_LCDD16, | ||
135 | GPIO_FN_LCDD15, GPIO_FN_LCDD14, GPIO_FN_LCDD13, GPIO_FN_LCDD12, | ||
136 | GPIO_FN_LCDD11, GPIO_FN_LCDD10, GPIO_FN_LCDD9, GPIO_FN_LCDD8, | ||
137 | GPIO_FN_LCDD7, GPIO_FN_LCDD6, GPIO_FN_LCDD5, GPIO_FN_LCDD4, | ||
138 | GPIO_FN_LCDD3, GPIO_FN_LCDD2, GPIO_FN_LCDD1, GPIO_FN_LCDD0, | ||
139 | GPIO_FN_LCDVSYN, GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_LCDHSYN, | ||
140 | GPIO_FN_LCDCS, GPIO_FN_LCDDON, GPIO_FN_LCDDCK, GPIO_FN_LCDWR, | ||
141 | GPIO_FN_LCDVEPWC, GPIO_FN_LCDVCPWC, GPIO_FN_LCDRD, GPIO_FN_LCDLCLK, | ||
142 | |||
143 | /* SCIF0 (PTF/PTM) */ | ||
144 | GPIO_FN_SCIF0_TXD, GPIO_FN_SCIF0_RXD, GPIO_FN_SCIF0_SCK, | ||
145 | |||
146 | /* SCIF1 (PTL) */ | ||
147 | GPIO_FN_SCIF1_SCK, GPIO_FN_SCIF1_RXD, GPIO_FN_SCIF1_TXD, | ||
148 | |||
149 | /* SCIF2 (PTE/PTF/PTN) with LCDC, VOU */ | ||
150 | GPIO_FN_SCIF2_L_TXD, GPIO_FN_SCIF2_L_SCK, GPIO_FN_SCIF2_L_RXD, | ||
151 | GPIO_FN_SCIF2_V_TXD, GPIO_FN_SCIF2_V_SCK, GPIO_FN_SCIF2_V_RXD, | ||
152 | |||
153 | /* SCIF3 (PTL/PTN/PTZ) with VOU, IRQ */ | ||
154 | GPIO_FN_SCIF3_V_SCK, GPIO_FN_SCIF3_V_RXD, GPIO_FN_SCIF3_V_TXD, | ||
155 | GPIO_FN_SCIF3_V_CTS, GPIO_FN_SCIF3_V_RTS, | ||
156 | GPIO_FN_SCIF3_I_SCK, GPIO_FN_SCIF3_I_RXD, GPIO_FN_SCIF3_I_TXD, | ||
157 | GPIO_FN_SCIF3_I_CTS, GPIO_FN_SCIF3_I_RTS, | ||
158 | |||
159 | /* SCIF4 (PTE) */ | ||
160 | GPIO_FN_SCIF4_SCK, GPIO_FN_SCIF4_RXD, GPIO_FN_SCIF4_TXD, | ||
161 | |||
162 | /* SCIF5 (PTS) */ | ||
163 | GPIO_FN_SCIF5_SCK, GPIO_FN_SCIF5_RXD, GPIO_FN_SCIF5_TXD, | ||
164 | |||
165 | /* FSI (PTE/PTU/PTV) */ | ||
166 | GPIO_FN_FSIMCKB, GPIO_FN_FSIMCKA, GPIO_FN_FSIOASD, | ||
167 | GPIO_FN_FSIIABCK, GPIO_FN_FSIIALRCK, GPIO_FN_FSIOABCK, | ||
168 | GPIO_FN_FSIOALRCK, GPIO_FN_CLKAUDIOAO, GPIO_FN_FSIIBSD, | ||
169 | GPIO_FN_FSIOBSD, GPIO_FN_FSIIBBCK, GPIO_FN_FSIIBLRCK, | ||
170 | GPIO_FN_FSIOBBCK, GPIO_FN_FSIOBLRCK, GPIO_FN_CLKAUDIOBO, | ||
171 | GPIO_FN_FSIIASD, | ||
172 | |||
173 | /* AUD (PTG) */ | ||
174 | GPIO_FN_AUDCK, GPIO_FN_AUDSYNC, GPIO_FN_AUDATA3, | ||
175 | GPIO_FN_AUDATA2, GPIO_FN_AUDATA1, GPIO_FN_AUDATA0, | ||
176 | |||
177 | /* VIO (PTS) (common?) */ | ||
178 | GPIO_FN_VIO_CKO, | ||
179 | |||
180 | /* VIO0 (PTH/PTK) */ | ||
181 | GPIO_FN_VIO0_D15, GPIO_FN_VIO0_D14, GPIO_FN_VIO0_D13, GPIO_FN_VIO0_D12, | ||
182 | GPIO_FN_VIO0_D11, GPIO_FN_VIO0_D10, GPIO_FN_VIO0_D9, GPIO_FN_VIO0_D8, | ||
183 | GPIO_FN_VIO0_D7, GPIO_FN_VIO0_D6, GPIO_FN_VIO0_D5, GPIO_FN_VIO0_D4, | ||
184 | GPIO_FN_VIO0_D3, GPIO_FN_VIO0_D2, GPIO_FN_VIO0_D1, GPIO_FN_VIO0_D0, | ||
185 | GPIO_FN_VIO0_VD, GPIO_FN_VIO0_CLK, | ||
186 | GPIO_FN_VIO0_FLD, GPIO_FN_VIO0_HD, | ||
187 | |||
188 | /* VIO1 (PTK/PTS) */ | ||
189 | GPIO_FN_VIO1_D7, GPIO_FN_VIO1_D6, GPIO_FN_VIO1_D5, GPIO_FN_VIO1_D4, | ||
190 | GPIO_FN_VIO1_D3, GPIO_FN_VIO1_D2, GPIO_FN_VIO1_D1, GPIO_FN_VIO1_D0, | ||
191 | GPIO_FN_VIO1_FLD, GPIO_FN_VIO1_HD, GPIO_FN_VIO1_VD, GPIO_FN_VIO1_CLK, | ||
192 | |||
193 | /* Eth (PTL/PTN/PTX) */ | ||
194 | GPIO_FN_RMII_RXD0, GPIO_FN_RMII_RXD1, | ||
195 | GPIO_FN_RMII_TXD0, GPIO_FN_RMII_TXD1, | ||
196 | GPIO_FN_RMII_REF_CLK, GPIO_FN_RMII_TX_EN, | ||
197 | GPIO_FN_RMII_RX_ER, GPIO_FN_RMII_CRS_DV, | ||
198 | GPIO_FN_LNKSTA, GPIO_FN_MDIO, | ||
199 | GPIO_FN_MDC, | ||
200 | |||
201 | /* System (PTJ) */ | ||
202 | GPIO_FN_PDSTATUS, GPIO_FN_STATUS2, GPIO_FN_STATUS0, | ||
203 | |||
204 | /* VOU (PTL/PTM/PTN*/ | ||
205 | GPIO_FN_DV_D15, GPIO_FN_DV_D14, GPIO_FN_DV_D13, GPIO_FN_DV_D12, | ||
206 | GPIO_FN_DV_D11, GPIO_FN_DV_D10, GPIO_FN_DV_D9, GPIO_FN_DV_D8, | ||
207 | GPIO_FN_DV_D7, GPIO_FN_DV_D6, GPIO_FN_DV_D5, GPIO_FN_DV_D4, | ||
208 | GPIO_FN_DV_D3, GPIO_FN_DV_D2, GPIO_FN_DV_D1, GPIO_FN_DV_D0, | ||
209 | GPIO_FN_DV_CLKI, GPIO_FN_DV_CLK, GPIO_FN_DV_VSYNC, GPIO_FN_DV_HSYNC, | ||
210 | |||
211 | /* MSIOF0 (PTL/PTM) */ | ||
212 | GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_TXD, | ||
213 | GPIO_FN_MSIOF0_MCK, GPIO_FN_MSIOF0_TSCK, | ||
214 | GPIO_FN_MSIOF0_SS1, GPIO_FN_MSIOF0_SS2, | ||
215 | GPIO_FN_MSIOF0_TSYNC, GPIO_FN_MSIOF0_RSCK, | ||
216 | GPIO_FN_MSIOF0_RSYNC, | ||
217 | |||
218 | /* MSIOF1 (PTV) */ | ||
219 | GPIO_FN_MSIOF1_RXD, GPIO_FN_MSIOF1_TXD, | ||
220 | GPIO_FN_MSIOF1_MCK, GPIO_FN_MSIOF1_TSCK, | ||
221 | GPIO_FN_MSIOF1_SS1, GPIO_FN_MSIOF1_SS2, | ||
222 | GPIO_FN_MSIOF1_TSYNC, GPIO_FN_MSIOF1_RSCK, | ||
223 | GPIO_FN_MSIOF1_RSYNC, | ||
224 | |||
225 | /* DMAC (PTU/PTX) */ | ||
226 | GPIO_FN_DMAC_DACK0, GPIO_FN_DMAC_DREQ0, | ||
227 | GPIO_FN_DMAC_DACK1, GPIO_FN_DMAC_DREQ1, | ||
228 | |||
229 | /* SDHI0 (PTY) */ | ||
230 | GPIO_FN_SDHI0CD, GPIO_FN_SDHI0WP, GPIO_FN_SDHI0CMD, GPIO_FN_SDHI0CLK, | ||
231 | GPIO_FN_SDHI0D3, GPIO_FN_SDHI0D2, GPIO_FN_SDHI0D1, GPIO_FN_SDHI0D0, | ||
232 | |||
233 | /* SDHI1 (PTW) */ | ||
234 | GPIO_FN_SDHI1CD, GPIO_FN_SDHI1WP, GPIO_FN_SDHI1CMD, GPIO_FN_SDHI1CLK, | ||
235 | GPIO_FN_SDHI1D3, GPIO_FN_SDHI1D2, GPIO_FN_SDHI1D1, GPIO_FN_SDHI1D0, | ||
236 | |||
237 | /* MMC (PTW/PTX)*/ | ||
238 | GPIO_FN_MMC_D7, GPIO_FN_MMC_D6, GPIO_FN_MMC_D5, GPIO_FN_MMC_D4, | ||
239 | GPIO_FN_MMC_D3, GPIO_FN_MMC_D2, GPIO_FN_MMC_D1, GPIO_FN_MMC_D0, | ||
240 | GPIO_FN_MMC_CLK, GPIO_FN_MMC_CMD, | ||
241 | |||
242 | /* IrDA (PTX) */ | ||
243 | GPIO_FN_IRDA_OUT, GPIO_FN_IRDA_IN, | ||
244 | |||
245 | /* TSIF (PTX) */ | ||
246 | GPIO_FN_TSIF_TS0_SDAT, GPIO_FN_TSIF_TS0_SCK, | ||
247 | GPIO_FN_TSIF_TS0_SDEN, GPIO_FN_TSIF_TS0_SPSYNC, | ||
248 | |||
249 | /* IRQ (PTZ) */ | ||
250 | GPIO_FN_INTC_IRQ7, GPIO_FN_INTC_IRQ6, GPIO_FN_INTC_IRQ5, | ||
251 | GPIO_FN_INTC_IRQ4, GPIO_FN_INTC_IRQ3, GPIO_FN_INTC_IRQ2, | ||
252 | GPIO_FN_INTC_IRQ1, GPIO_FN_INTC_IRQ0, | ||
253 | }; | ||
254 | |||
255 | #endif /* __ASM_SH7724_H__ */ | ||
diff --git a/arch/sh/include/cpu-sh4/cpu/timer.h b/arch/sh/include/cpu-sh4/cpu/timer.h deleted file mode 100644 index d1e796b96888..000000000000 --- a/arch/sh/include/cpu-sh4/cpu/timer.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * include/asm-sh/cpu-sh4/timer.h | ||
3 | * | ||
4 | * Copyright (C) 2004 Lineo Solutions, Inc. | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #ifndef __ASM_CPU_SH4_TIMER_H | ||
11 | #define __ASM_CPU_SH4_TIMER_H | ||
12 | |||
13 | /* | ||
14 | * --------------------------------------------------------------------------- | ||
15 | * TMU Common definitions for SH4 processors | ||
16 | * SH7750S/SH7750R | ||
17 | * SH7751/SH7751R | ||
18 | * SH7760 | ||
19 | * SH-X3 | ||
20 | * --------------------------------------------------------------------------- | ||
21 | */ | ||
22 | #ifdef CONFIG_CPU_SUBTYPE_SHX3 | ||
23 | #define TMU_012_BASE 0xffc10000 | ||
24 | #define TMU_345_BASE 0xffc20000 | ||
25 | #else | ||
26 | #define TMU_012_BASE 0xffd80000 | ||
27 | #define TMU_345_BASE 0xfe100000 | ||
28 | #endif | ||
29 | |||
30 | #define TMU_TOCR TMU_012_BASE /* Not supported on all CPUs */ | ||
31 | |||
32 | #define TMU_012_TSTR (TMU_012_BASE + 0x04) | ||
33 | #define TMU_345_TSTR (TMU_345_BASE + 0x04) | ||
34 | |||
35 | #define TMU0_TCOR (TMU_012_BASE + 0x08) | ||
36 | #define TMU0_TCNT (TMU_012_BASE + 0x0c) | ||
37 | #define TMU0_TCR (TMU_012_BASE + 0x10) | ||
38 | |||
39 | #define TMU1_TCOR (TMU_012_BASE + 0x14) | ||
40 | #define TMU1_TCNT (TMU_012_BASE + 0x18) | ||
41 | #define TMU1_TCR (TMU_012_BASE + 0x1c) | ||
42 | |||
43 | #define TMU2_TCOR (TMU_012_BASE + 0x20) | ||
44 | #define TMU2_TCNT (TMU_012_BASE + 0x24) | ||
45 | #define TMU2_TCR (TMU_012_BASE + 0x28) | ||
46 | #define TMU2_TCPR (TMU_012_BASE + 0x2c) | ||
47 | |||
48 | #define TMU3_TCOR (TMU_345_BASE + 0x08) | ||
49 | #define TMU3_TCNT (TMU_345_BASE + 0x0c) | ||
50 | #define TMU3_TCR (TMU_345_BASE + 0x10) | ||
51 | |||
52 | #define TMU4_TCOR (TMU_345_BASE + 0x14) | ||
53 | #define TMU4_TCNT (TMU_345_BASE + 0x18) | ||
54 | #define TMU4_TCR (TMU_345_BASE + 0x1c) | ||
55 | |||
56 | #define TMU5_TCOR (TMU_345_BASE + 0x20) | ||
57 | #define TMU5_TCNT (TMU_345_BASE + 0x24) | ||
58 | #define TMU5_TCR (TMU_345_BASE + 0x28) | ||
59 | |||
60 | #endif /* __ASM_CPU_SH4_TIMER_H */ | ||
diff --git a/arch/sh/include/cpu-sh5/cpu/irq.h b/arch/sh/include/cpu-sh5/cpu/irq.h index f0f0756e6e84..0ccf257a72d1 100644 --- a/arch/sh/include/cpu-sh5/cpu/irq.h +++ b/arch/sh/include/cpu-sh5/cpu/irq.h | |||
@@ -111,7 +111,6 @@ | |||
111 | #define TOP_PRIORITY 15 | 111 | #define TOP_PRIORITY 15 |
112 | 112 | ||
113 | extern int intc_evt_to_irq[(0xE20/0x20)+1]; | 113 | extern int intc_evt_to_irq[(0xE20/0x20)+1]; |
114 | int intc_irq_describe(char* p, int irq); | ||
115 | extern int platform_int_priority[NR_INTC_IRQS]; | 114 | extern int platform_int_priority[NR_INTC_IRQS]; |
116 | 115 | ||
117 | #endif /* __ASM_SH_CPU_SH5_IRQ_H */ | 116 | #endif /* __ASM_SH_CPU_SH5_IRQ_H */ |
diff --git a/arch/sh/include/mach-common/mach/sh7785lcr.h b/arch/sh/include/mach-common/mach/sh7785lcr.h index 1ce27d5c7491..90011d435f30 100644 --- a/arch/sh/include/mach-common/mach/sh7785lcr.h +++ b/arch/sh/include/mach-common/mach/sh7785lcr.h | |||
@@ -9,11 +9,11 @@ | |||
9 | * -----------------------------+---------------+--------------- | 9 | * -----------------------------+---------------+--------------- |
10 | * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash | 10 | * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash |
11 | * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD | 11 | * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD |
12 | * 0x06000000 - 0x07ffffff(CS1) | reserved | I2C | 12 | * 0x06000000 - 0x07ffffff(CS1) | I2C | I2C |
13 | * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM | 13 | * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM |
14 | * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM | 14 | * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM |
15 | * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107 | 15 | * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107 |
16 | * 0x14000000 - 0x17ffffff(CS5) | I2C | USB | 16 | * 0x14000000 - 0x17ffffff(CS5) | reserved | USB |
17 | * 0x18000000 - 0x1bffffff(CS6) | reserved | SD | 17 | * 0x18000000 - 0x1bffffff(CS6) | reserved | SD |
18 | * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use) | 18 | * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use) |
19 | * | 19 | * |
@@ -32,6 +32,9 @@ | |||
32 | #define PLD_VERSR (PLD_BASE_ADDR + 0x0c) | 32 | #define PLD_VERSR (PLD_BASE_ADDR + 0x0c) |
33 | #define PLD_MMSR (PLD_BASE_ADDR + 0x0e) | 33 | #define PLD_MMSR (PLD_BASE_ADDR + 0x0e) |
34 | 34 | ||
35 | #define PCA9564_ADDR 0x06000000 /* I2C */ | ||
36 | #define PCA9564_SIZE 0x00000100 | ||
37 | |||
35 | #define SM107_MEM_ADDR 0x10000000 | 38 | #define SM107_MEM_ADDR 0x10000000 |
36 | #define SM107_MEM_SIZE 0x00e00000 | 39 | #define SM107_MEM_SIZE 0x00e00000 |
37 | #define SM107_REG_ADDR 0x13e00000 | 40 | #define SM107_REG_ADDR 0x13e00000 |
@@ -40,16 +43,13 @@ | |||
40 | #if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS) | 43 | #if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS) |
41 | #define R8A66597_ADDR 0x14000000 /* USB */ | 44 | #define R8A66597_ADDR 0x14000000 /* USB */ |
42 | #define CG200_ADDR 0x18000000 /* SD */ | 45 | #define CG200_ADDR 0x18000000 /* SD */ |
43 | #define PCA9564_ADDR 0x06000000 /* I2C */ | ||
44 | #else | 46 | #else |
45 | #define R8A66597_ADDR 0x08000000 | 47 | #define R8A66597_ADDR 0x08000000 |
46 | #define CG200_ADDR 0x0c000000 | 48 | #define CG200_ADDR 0x0c000000 |
47 | #define PCA9564_ADDR 0x14000000 | ||
48 | #endif | 49 | #endif |
49 | 50 | ||
50 | #define R8A66597_SIZE 0x00000100 | 51 | #define R8A66597_SIZE 0x00000100 |
51 | #define CG200_SIZE 0x00010000 | 52 | #define CG200_SIZE 0x00010000 |
52 | #define PCA9564_SIZE 0x00000100 | ||
53 | 53 | ||
54 | #endif /* __ASM_SH_RENESAS_SH7785LCR_H */ | 54 | #endif /* __ASM_SH_RENESAS_SH7785LCR_H */ |
55 | 55 | ||
diff --git a/arch/sh/include/mach-dreamcast/mach/pci.h b/arch/sh/include/mach-dreamcast/mach/pci.h index 75fc9009e092..0314d975e626 100644 --- a/arch/sh/include/mach-dreamcast/mach/pci.h +++ b/arch/sh/include/mach-dreamcast/mach/pci.h | |||
@@ -21,5 +21,7 @@ | |||
21 | 21 | ||
22 | #define GAPSPCI_IRQ HW_EVENT_EXTERNAL | 22 | #define GAPSPCI_IRQ HW_EVENT_EXTERNAL |
23 | 23 | ||
24 | extern struct pci_ops gapspci_pci_ops; | ||
25 | |||
24 | #endif /* __ASM_SH_DREAMCAST_PCI_H */ | 26 | #endif /* __ASM_SH_DREAMCAST_PCI_H */ |
25 | 27 | ||
diff --git a/arch/sh/kernel/Makefile_32 b/arch/sh/kernel/Makefile_32 index 82a3a150c00d..9411e3e31e68 100644 --- a/arch/sh/kernel/Makefile_32 +++ b/arch/sh/kernel/Makefile_32 | |||
@@ -11,10 +11,10 @@ endif | |||
11 | 11 | ||
12 | obj-y := debugtraps.o idle.o io.o io_generic.o irq.o \ | 12 | obj-y := debugtraps.o idle.o io.o io_generic.o irq.o \ |
13 | machvec.o process_32.o ptrace_32.o setup.o signal_32.o \ | 13 | machvec.o process_32.o ptrace_32.o setup.o signal_32.o \ |
14 | sys_sh.o sys_sh32.o syscalls_32.o time_32.o topology.o \ | 14 | sys_sh.o sys_sh32.o syscalls_32.o time.o topology.o \ |
15 | traps.o traps_32.o | 15 | traps.o traps_32.o |
16 | 16 | ||
17 | obj-y += cpu/ timers/ | 17 | obj-y += cpu/ |
18 | obj-$(CONFIG_VSYSCALL) += vsyscall/ | 18 | obj-$(CONFIG_VSYSCALL) += vsyscall/ |
19 | obj-$(CONFIG_SMP) += smp.o | 19 | obj-$(CONFIG_SMP) += smp.o |
20 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o | 20 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o |
@@ -32,4 +32,6 @@ obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o | |||
32 | obj-$(CONFIG_DUMP_CODE) += disassemble.o | 32 | obj-$(CONFIG_DUMP_CODE) += disassemble.o |
33 | obj-$(CONFIG_HIBERNATION) += swsusp.o | 33 | obj-$(CONFIG_HIBERNATION) += swsusp.o |
34 | 34 | ||
35 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) += localtimer.o | ||
36 | |||
35 | EXTRA_CFLAGS += -Werror | 37 | EXTRA_CFLAGS += -Werror |
diff --git a/arch/sh/kernel/Makefile_64 b/arch/sh/kernel/Makefile_64 index fe425d7f6871..67b9f6c6326b 100644 --- a/arch/sh/kernel/Makefile_64 +++ b/arch/sh/kernel/Makefile_64 | |||
@@ -2,19 +2,18 @@ extra-y := head_64.o init_task.o vmlinux.lds | |||
2 | 2 | ||
3 | obj-y := debugtraps.o idle.o io.o io_generic.o irq.o machvec.o process_64.o \ | 3 | obj-y := debugtraps.o idle.o io.o io_generic.o irq.o machvec.o process_64.o \ |
4 | ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o \ | 4 | ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o \ |
5 | syscalls_64.o time_64.o topology.o traps.o traps_64.o | 5 | syscalls_64.o time.o topology.o traps.o traps_64.o |
6 | 6 | ||
7 | obj-y += cpu/ timers/ | 7 | obj-y += cpu/ |
8 | obj-$(CONFIG_VSYSCALL) += vsyscall/ | ||
9 | obj-$(CONFIG_SMP) += smp.o | 8 | obj-$(CONFIG_SMP) += smp.o |
10 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o | ||
11 | obj-$(CONFIG_SH_CPU_FREQ) += cpufreq.o | 9 | obj-$(CONFIG_SH_CPU_FREQ) += cpufreq.o |
12 | obj-$(CONFIG_MODULES) += sh_ksyms_64.o module.o | 10 | obj-$(CONFIG_MODULES) += sh_ksyms_64.o module.o |
13 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | 11 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
14 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o | ||
15 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o | 12 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
16 | obj-$(CONFIG_STACKTRACE) += stacktrace.o | 13 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
17 | obj-$(CONFIG_IO_TRAPPED) += io_trapped.o | 14 | obj-$(CONFIG_IO_TRAPPED) += io_trapped.o |
18 | obj-$(CONFIG_GENERIC_GPIO) += gpio.o | 15 | obj-$(CONFIG_GENERIC_GPIO) += gpio.o |
19 | 16 | ||
17 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) += localtimer.o | ||
18 | |||
20 | EXTRA_CFLAGS += -Werror | 19 | EXTRA_CFLAGS += -Werror |
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index 1dc896483b59..f54769f455b1 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/arch/sh/kernel/cpu/clock.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/mutex.h> | 20 | #include <linux/mutex.h> |
21 | #include <linux/list.h> | 21 | #include <linux/list.h> |
22 | #include <linux/kref.h> | ||
23 | #include <linux/kobject.h> | 22 | #include <linux/kobject.h> |
24 | #include <linux/sysdev.h> | 23 | #include <linux/sysdev.h> |
25 | #include <linux/seq_file.h> | 24 | #include <linux/seq_file.h> |
@@ -27,7 +26,6 @@ | |||
27 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
28 | #include <linux/proc_fs.h> | 27 | #include <linux/proc_fs.h> |
29 | #include <asm/clock.h> | 28 | #include <asm/clock.h> |
30 | #include <asm/timer.h> | ||
31 | 29 | ||
32 | static LIST_HEAD(clock_list); | 30 | static LIST_HEAD(clock_list); |
33 | static DEFINE_SPINLOCK(clock_lock); | 31 | static DEFINE_SPINLOCK(clock_lock); |
@@ -90,7 +88,7 @@ static void propagate_rate(struct clk *clk) | |||
90 | } | 88 | } |
91 | } | 89 | } |
92 | 90 | ||
93 | static int __clk_enable(struct clk *clk) | 91 | static void __clk_init(struct clk *clk) |
94 | { | 92 | { |
95 | /* | 93 | /* |
96 | * See if this is the first time we're enabling the clock, some | 94 | * See if this is the first time we're enabling the clock, some |
@@ -99,17 +97,34 @@ static int __clk_enable(struct clk *clk) | |||
99 | * changes and the clock needs to hunt for the proper set of | 97 | * changes and the clock needs to hunt for the proper set of |
100 | * divisors to use before it can effectively recalc. | 98 | * divisors to use before it can effectively recalc. |
101 | */ | 99 | */ |
102 | if (unlikely(atomic_read(&clk->kref.refcount) == 1)) | 100 | |
101 | if (clk->flags & CLK_NEEDS_INIT) { | ||
103 | if (clk->ops && clk->ops->init) | 102 | if (clk->ops && clk->ops->init) |
104 | clk->ops->init(clk); | 103 | clk->ops->init(clk); |
105 | 104 | ||
106 | kref_get(&clk->kref); | 105 | clk->flags &= ~CLK_NEEDS_INIT; |
106 | } | ||
107 | } | ||
108 | |||
109 | static int __clk_enable(struct clk *clk) | ||
110 | { | ||
111 | if (!clk) | ||
112 | return -EINVAL; | ||
107 | 113 | ||
114 | clk->usecount++; | ||
115 | |||
116 | /* nothing to do if always enabled */ | ||
108 | if (clk->flags & CLK_ALWAYS_ENABLED) | 117 | if (clk->flags & CLK_ALWAYS_ENABLED) |
109 | return 0; | 118 | return 0; |
110 | 119 | ||
111 | if (likely(clk->ops && clk->ops->enable)) | 120 | if (clk->usecount == 1) { |
112 | clk->ops->enable(clk); | 121 | __clk_init(clk); |
122 | |||
123 | __clk_enable(clk->parent); | ||
124 | |||
125 | if (clk->ops && clk->ops->enable) | ||
126 | clk->ops->enable(clk); | ||
127 | } | ||
113 | 128 | ||
114 | return 0; | 129 | return 0; |
115 | } | 130 | } |
@@ -119,11 +134,6 @@ int clk_enable(struct clk *clk) | |||
119 | unsigned long flags; | 134 | unsigned long flags; |
120 | int ret; | 135 | int ret; |
121 | 136 | ||
122 | if (!clk) | ||
123 | return -EINVAL; | ||
124 | |||
125 | clk_enable(clk->parent); | ||
126 | |||
127 | spin_lock_irqsave(&clock_lock, flags); | 137 | spin_lock_irqsave(&clock_lock, flags); |
128 | ret = __clk_enable(clk); | 138 | ret = __clk_enable(clk); |
129 | spin_unlock_irqrestore(&clock_lock, flags); | 139 | spin_unlock_irqrestore(&clock_lock, flags); |
@@ -132,21 +142,23 @@ int clk_enable(struct clk *clk) | |||
132 | } | 142 | } |
133 | EXPORT_SYMBOL_GPL(clk_enable); | 143 | EXPORT_SYMBOL_GPL(clk_enable); |
134 | 144 | ||
135 | static void clk_kref_release(struct kref *kref) | ||
136 | { | ||
137 | /* Nothing to do */ | ||
138 | } | ||
139 | |||
140 | static void __clk_disable(struct clk *clk) | 145 | static void __clk_disable(struct clk *clk) |
141 | { | 146 | { |
142 | int count = kref_put(&clk->kref, clk_kref_release); | 147 | if (!clk) |
148 | return; | ||
149 | |||
150 | clk->usecount--; | ||
151 | |||
152 | WARN_ON(clk->usecount < 0); | ||
143 | 153 | ||
144 | if (clk->flags & CLK_ALWAYS_ENABLED) | 154 | if (clk->flags & CLK_ALWAYS_ENABLED) |
145 | return; | 155 | return; |
146 | 156 | ||
147 | if (!count) { /* count reaches zero, disable the clock */ | 157 | if (clk->usecount == 0) { |
148 | if (likely(clk->ops && clk->ops->disable)) | 158 | if (likely(clk->ops && clk->ops->disable)) |
149 | clk->ops->disable(clk); | 159 | clk->ops->disable(clk); |
160 | |||
161 | __clk_disable(clk->parent); | ||
150 | } | 162 | } |
151 | } | 163 | } |
152 | 164 | ||
@@ -154,14 +166,9 @@ void clk_disable(struct clk *clk) | |||
154 | { | 166 | { |
155 | unsigned long flags; | 167 | unsigned long flags; |
156 | 168 | ||
157 | if (!clk) | ||
158 | return; | ||
159 | |||
160 | spin_lock_irqsave(&clock_lock, flags); | 169 | spin_lock_irqsave(&clock_lock, flags); |
161 | __clk_disable(clk); | 170 | __clk_disable(clk); |
162 | spin_unlock_irqrestore(&clock_lock, flags); | 171 | spin_unlock_irqrestore(&clock_lock, flags); |
163 | |||
164 | clk_disable(clk->parent); | ||
165 | } | 172 | } |
166 | EXPORT_SYMBOL_GPL(clk_disable); | 173 | EXPORT_SYMBOL_GPL(clk_disable); |
167 | 174 | ||
@@ -170,14 +177,14 @@ int clk_register(struct clk *clk) | |||
170 | mutex_lock(&clock_list_sem); | 177 | mutex_lock(&clock_list_sem); |
171 | 178 | ||
172 | list_add(&clk->node, &clock_list); | 179 | list_add(&clk->node, &clock_list); |
173 | kref_init(&clk->kref); | 180 | clk->usecount = 0; |
181 | clk->flags |= CLK_NEEDS_INIT; | ||
174 | 182 | ||
175 | mutex_unlock(&clock_list_sem); | 183 | mutex_unlock(&clock_list_sem); |
176 | 184 | ||
177 | if (clk->flags & CLK_ALWAYS_ENABLED) { | 185 | if (clk->flags & CLK_ALWAYS_ENABLED) { |
186 | __clk_init(clk); | ||
178 | pr_debug( "Clock '%s' is ALWAYS_ENABLED\n", clk->name); | 187 | pr_debug( "Clock '%s' is ALWAYS_ENABLED\n", clk->name); |
179 | if (clk->ops && clk->ops->init) | ||
180 | clk->ops->init(clk); | ||
181 | if (clk->ops && clk->ops->enable) | 188 | if (clk->ops && clk->ops->enable) |
182 | clk->ops->enable(clk); | 189 | clk->ops->enable(clk); |
183 | pr_debug( "Enabled."); | 190 | pr_debug( "Enabled."); |
@@ -353,7 +360,7 @@ static int show_clocks(char *buf, char **start, off_t off, | |||
353 | p += sprintf(p, "%-12s\t: %ld.%02ldMHz\t%s\n", clk->name, | 360 | p += sprintf(p, "%-12s\t: %ld.%02ldMHz\t%s\n", clk->name, |
354 | rate / 1000000, (rate % 1000000) / 10000, | 361 | rate / 1000000, (rate % 1000000) / 10000, |
355 | ((clk->flags & CLK_ALWAYS_ENABLED) || | 362 | ((clk->flags & CLK_ALWAYS_ENABLED) || |
356 | (atomic_read(&clk->kref.refcount) != 1)) ? | 363 | clk->usecount > 0) ? |
357 | "enabled" : "disabled"); | 364 | "enabled" : "disabled"); |
358 | } | 365 | } |
359 | 366 | ||
diff --git a/arch/sh/kernel/cpu/irq/imask.c b/arch/sh/kernel/cpu/irq/imask.c index 301b505c4278..3bef3c2629ad 100644 --- a/arch/sh/kernel/cpu/irq/imask.c +++ b/arch/sh/kernel/cpu/irq/imask.c | |||
@@ -18,38 +18,17 @@ | |||
18 | #include <linux/spinlock.h> | 18 | #include <linux/spinlock.h> |
19 | #include <linux/cache.h> | 19 | #include <linux/cache.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/bitmap.h> | ||
21 | #include <asm/system.h> | 22 | #include <asm/system.h> |
22 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
23 | 24 | ||
24 | /* Bitmap of IRQ masked */ | 25 | /* Bitmap of IRQ masked */ |
25 | static unsigned long imask_mask = 0x7fff; | ||
26 | static int interrupt_priority = 0; | ||
27 | |||
28 | static void enable_imask_irq(unsigned int irq); | ||
29 | static void disable_imask_irq(unsigned int irq); | ||
30 | static void shutdown_imask_irq(unsigned int irq); | ||
31 | static void mask_and_ack_imask(unsigned int); | ||
32 | static void end_imask_irq(unsigned int irq); | ||
33 | |||
34 | #define IMASK_PRIORITY 15 | 26 | #define IMASK_PRIORITY 15 |
35 | 27 | ||
36 | static unsigned int startup_imask_irq(unsigned int irq) | 28 | static DECLARE_BITMAP(imask_mask, IMASK_PRIORITY); |
37 | { | 29 | static int interrupt_priority; |
38 | /* Nothing to do */ | ||
39 | return 0; /* never anything pending */ | ||
40 | } | ||
41 | 30 | ||
42 | static struct hw_interrupt_type imask_irq_type = { | 31 | static inline void set_interrupt_registers(int ip) |
43 | .typename = "SR.IMASK", | ||
44 | .startup = startup_imask_irq, | ||
45 | .shutdown = shutdown_imask_irq, | ||
46 | .enable = enable_imask_irq, | ||
47 | .disable = disable_imask_irq, | ||
48 | .ack = mask_and_ack_imask, | ||
49 | .end = end_imask_irq | ||
50 | }; | ||
51 | |||
52 | void static inline set_interrupt_registers(int ip) | ||
53 | { | 32 | { |
54 | unsigned long __dummy; | 33 | unsigned long __dummy; |
55 | 34 | ||
@@ -72,42 +51,31 @@ void static inline set_interrupt_registers(int ip) | |||
72 | : "t"); | 51 | : "t"); |
73 | } | 52 | } |
74 | 53 | ||
75 | static void disable_imask_irq(unsigned int irq) | 54 | static void mask_imask_irq(unsigned int irq) |
76 | { | 55 | { |
77 | clear_bit(irq, &imask_mask); | 56 | clear_bit(irq, &imask_mask); |
78 | if (interrupt_priority < IMASK_PRIORITY - irq) | 57 | if (interrupt_priority < IMASK_PRIORITY - irq) |
79 | interrupt_priority = IMASK_PRIORITY - irq; | 58 | interrupt_priority = IMASK_PRIORITY - irq; |
80 | |||
81 | set_interrupt_registers(interrupt_priority); | 59 | set_interrupt_registers(interrupt_priority); |
82 | } | 60 | } |
83 | 61 | ||
84 | static void enable_imask_irq(unsigned int irq) | 62 | static void unmask_imask_irq(unsigned int irq) |
85 | { | 63 | { |
86 | set_bit(irq, &imask_mask); | 64 | set_bit(irq, &imask_mask); |
87 | interrupt_priority = IMASK_PRIORITY - ffz(imask_mask); | 65 | interrupt_priority = IMASK_PRIORITY - |
88 | 66 | find_first_zero_bit(imask_mask, IMASK_PRIORITY); | |
89 | set_interrupt_registers(interrupt_priority); | 67 | set_interrupt_registers(interrupt_priority); |
90 | } | 68 | } |
91 | 69 | ||
92 | static void mask_and_ack_imask(unsigned int irq) | 70 | static struct irq_chip imask_irq_chip = { |
93 | { | 71 | .typename = "SR.IMASK", |
94 | disable_imask_irq(irq); | 72 | .mask = mask_imask_irq, |
95 | } | 73 | .unmask = unmask_imask_irq, |
96 | 74 | .mask_ack = mask_imask_irq, | |
97 | static void end_imask_irq(unsigned int irq) | 75 | }; |
98 | { | ||
99 | if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) | ||
100 | enable_imask_irq(irq); | ||
101 | } | ||
102 | |||
103 | static void shutdown_imask_irq(unsigned int irq) | ||
104 | { | ||
105 | /* Nothing to do */ | ||
106 | } | ||
107 | 76 | ||
108 | void make_imask_irq(unsigned int irq) | 77 | void make_imask_irq(unsigned int irq) |
109 | { | 78 | { |
110 | disable_irq_nosync(irq); | 79 | set_irq_chip_and_handler_name(irq, &imask_irq_chip, |
111 | irq_desc[irq].chip = &imask_irq_type; | 80 | handle_level_irq, "level"); |
112 | enable_irq(irq); | ||
113 | } | 81 | } |
diff --git a/arch/sh/kernel/cpu/irq/intc-sh5.c b/arch/sh/kernel/cpu/irq/intc-sh5.c index 726f0335da76..6c092f1f5557 100644 --- a/arch/sh/kernel/cpu/irq/intc-sh5.c +++ b/arch/sh/kernel/cpu/irq/intc-sh5.c | |||
@@ -84,7 +84,7 @@ static void disable_intc_irq(unsigned int irq); | |||
84 | static void mask_and_ack_intc(unsigned int); | 84 | static void mask_and_ack_intc(unsigned int); |
85 | static void end_intc_irq(unsigned int irq); | 85 | static void end_intc_irq(unsigned int irq); |
86 | 86 | ||
87 | static struct hw_interrupt_type intc_irq_type = { | 87 | static struct irq_chip intc_irq_type = { |
88 | .typename = "INTC", | 88 | .typename = "INTC", |
89 | .startup = startup_intc_irq, | 89 | .startup = startup_intc_irq, |
90 | .shutdown = shutdown_intc_irq, | 90 | .shutdown = shutdown_intc_irq, |
@@ -152,43 +152,13 @@ static void end_intc_irq(unsigned int irq) | |||
152 | enable_intc_irq(irq); | 152 | enable_intc_irq(irq); |
153 | } | 153 | } |
154 | 154 | ||
155 | /* For future use, if we ever support IRLM=0) */ | ||
156 | void make_intc_irq(unsigned int irq) | ||
157 | { | ||
158 | disable_irq_nosync(irq); | ||
159 | irq_desc[irq].chip = &intc_irq_type; | ||
160 | disable_intc_irq(irq); | ||
161 | } | ||
162 | |||
163 | #if defined(CONFIG_PROC_FS) && defined(CONFIG_SYSCTL) | ||
164 | static int IRQ_to_vectorN[NR_INTC_IRQS] = { | ||
165 | 0x12, 0x15, 0x18, 0x1B, 0x40, 0x41, 0x42, 0x43, /* 0- 7 */ | ||
166 | -1, -1, -1, -1, 0x50, 0x51, 0x52, 0x53, /* 8-15 */ | ||
167 | 0x54, 0x55, 0x32, 0x33, 0x34, 0x35, 0x36, -1, /* 16-23 */ | ||
168 | -1, -1, -1, -1, -1, -1, -1, -1, /* 24-31 */ | ||
169 | 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x38, /* 32-39 */ | ||
170 | 0x39, 0x3A, 0x3B, -1, -1, -1, -1, -1, /* 40-47 */ | ||
171 | -1, -1, -1, -1, -1, -1, -1, -1, /* 48-55 */ | ||
172 | -1, -1, -1, -1, -1, -1, -1, 0x2B, /* 56-63 */ | ||
173 | |||
174 | }; | ||
175 | |||
176 | int intc_irq_describe(char* p, int irq) | ||
177 | { | ||
178 | if (irq < NR_INTC_IRQS) | ||
179 | return sprintf(p, "(0x%3x)", IRQ_to_vectorN[irq]*0x20); | ||
180 | else | ||
181 | return 0; | ||
182 | } | ||
183 | #endif | ||
184 | |||
185 | void __init plat_irq_setup(void) | 155 | void __init plat_irq_setup(void) |
186 | { | 156 | { |
187 | unsigned long long __dummy0, __dummy1=~0x00000000100000f0; | 157 | unsigned long long __dummy0, __dummy1=~0x00000000100000f0; |
188 | unsigned long reg; | 158 | unsigned long reg; |
189 | int i; | 159 | int i; |
190 | 160 | ||
191 | intc_virt = onchip_remap(INTC_BASE, 1024, "INTC"); | 161 | intc_virt = (unsigned long)ioremap_nocache(INTC_BASE, 1024); |
192 | if (!intc_virt) { | 162 | if (!intc_virt) { |
193 | panic("Unable to remap INTC\n"); | 163 | panic("Unable to remap INTC\n"); |
194 | } | 164 | } |
@@ -196,7 +166,7 @@ void __init plat_irq_setup(void) | |||
196 | 166 | ||
197 | /* Set default: per-line enable/disable, priority driven ack/eoi */ | 167 | /* Set default: per-line enable/disable, priority driven ack/eoi */ |
198 | for (i = 0; i < NR_INTC_IRQS; i++) | 168 | for (i = 0; i < NR_INTC_IRQS; i++) |
199 | irq_desc[i].chip = &intc_irq_type; | 169 | set_irq_chip_and_handler(i, &intc_irq_type, handle_level_irq); |
200 | 170 | ||
201 | 171 | ||
202 | /* Disable all interrupts and set all priorities to 0 to avoid trouble */ | 172 | /* Disable all interrupts and set all priorities to 0 to avoid trouble */ |
diff --git a/arch/sh/kernel/cpu/irq/ipr.c b/arch/sh/kernel/cpu/irq/ipr.c index 3eb17ee5540e..fa0c8467a280 100644 --- a/arch/sh/kernel/cpu/irq/ipr.c +++ b/arch/sh/kernel/cpu/irq/ipr.c | |||
@@ -59,10 +59,18 @@ void register_ipr_controller(struct ipr_desc *desc) | |||
59 | 59 | ||
60 | for (i = 0; i < desc->nr_irqs; i++) { | 60 | for (i = 0; i < desc->nr_irqs; i++) { |
61 | struct ipr_data *p = desc->ipr_data + i; | 61 | struct ipr_data *p = desc->ipr_data + i; |
62 | struct irq_desc *irq_desc; | ||
62 | 63 | ||
63 | BUG_ON(p->ipr_idx >= desc->nr_offsets); | 64 | BUG_ON(p->ipr_idx >= desc->nr_offsets); |
64 | BUG_ON(!desc->ipr_offsets[p->ipr_idx]); | 65 | BUG_ON(!desc->ipr_offsets[p->ipr_idx]); |
65 | 66 | ||
67 | irq_desc = irq_to_desc_alloc_cpu(p->irq, smp_processor_id()); | ||
68 | if (unlikely(!irq_desc)) { | ||
69 | printk(KERN_INFO "can not get irq_desc for %d\n", | ||
70 | p->irq); | ||
71 | continue; | ||
72 | } | ||
73 | |||
66 | disable_irq_nosync(p->irq); | 74 | disable_irq_nosync(p->irq); |
67 | set_irq_chip_and_handler_name(p->irq, &desc->chip, | 75 | set_irq_chip_and_handler_name(p->irq, &desc->chip, |
68 | handle_level_irq, "level"); | 76 | handle_level_irq, "level"); |
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c index 0e32d8e448ca..94ac27fc2237 100644 --- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c | |||
@@ -12,6 +12,8 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | ||
16 | #include <linux/io.h> | ||
15 | 17 | ||
16 | enum { | 18 | enum { |
17 | UNUSED = 0, | 19 | UNUSED = 0, |
@@ -109,9 +111,75 @@ static struct platform_device eth_device = { | |||
109 | .resource = eth_resources, | 111 | .resource = eth_resources, |
110 | }; | 112 | }; |
111 | 113 | ||
114 | static struct sh_timer_config cmt0_platform_data = { | ||
115 | .name = "CMT0", | ||
116 | .channel_offset = 0x02, | ||
117 | .timer_bit = 0, | ||
118 | .clk = "module_clk", | ||
119 | .clockevent_rating = 125, | ||
120 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
121 | }; | ||
122 | |||
123 | static struct resource cmt0_resources[] = { | ||
124 | [0] = { | ||
125 | .name = "CMT0", | ||
126 | .start = 0xf84a0072, | ||
127 | .end = 0xf84a0077, | ||
128 | .flags = IORESOURCE_MEM, | ||
129 | }, | ||
130 | [1] = { | ||
131 | .start = 86, | ||
132 | .flags = IORESOURCE_IRQ, | ||
133 | }, | ||
134 | }; | ||
135 | |||
136 | static struct platform_device cmt0_device = { | ||
137 | .name = "sh_cmt", | ||
138 | .id = 0, | ||
139 | .dev = { | ||
140 | .platform_data = &cmt0_platform_data, | ||
141 | }, | ||
142 | .resource = cmt0_resources, | ||
143 | .num_resources = ARRAY_SIZE(cmt0_resources), | ||
144 | }; | ||
145 | |||
146 | static struct sh_timer_config cmt1_platform_data = { | ||
147 | .name = "CMT1", | ||
148 | .channel_offset = 0x08, | ||
149 | .timer_bit = 1, | ||
150 | .clk = "module_clk", | ||
151 | .clockevent_rating = 125, | ||
152 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
153 | }; | ||
154 | |||
155 | static struct resource cmt1_resources[] = { | ||
156 | [0] = { | ||
157 | .name = "CMT1", | ||
158 | .start = 0xf84a0078, | ||
159 | .end = 0xf84a007d, | ||
160 | .flags = IORESOURCE_MEM, | ||
161 | }, | ||
162 | [1] = { | ||
163 | .start = 87, | ||
164 | .flags = IORESOURCE_IRQ, | ||
165 | }, | ||
166 | }; | ||
167 | |||
168 | static struct platform_device cmt1_device = { | ||
169 | .name = "sh_cmt", | ||
170 | .id = 1, | ||
171 | .dev = { | ||
172 | .platform_data = &cmt1_platform_data, | ||
173 | }, | ||
174 | .resource = cmt1_resources, | ||
175 | .num_resources = ARRAY_SIZE(cmt1_resources), | ||
176 | }; | ||
177 | |||
112 | static struct platform_device *sh7619_devices[] __initdata = { | 178 | static struct platform_device *sh7619_devices[] __initdata = { |
113 | &sci_device, | 179 | &sci_device, |
114 | ð_device, | 180 | ð_device, |
181 | &cmt0_device, | ||
182 | &cmt1_device, | ||
115 | }; | 183 | }; |
116 | 184 | ||
117 | static int __init sh7619_devices_setup(void) | 185 | static int __init sh7619_devices_setup(void) |
@@ -125,3 +193,19 @@ void __init plat_irq_setup(void) | |||
125 | { | 193 | { |
126 | register_intc_controller(&intc_desc); | 194 | register_intc_controller(&intc_desc); |
127 | } | 195 | } |
196 | |||
197 | static struct platform_device *sh7619_early_devices[] __initdata = { | ||
198 | &cmt0_device, | ||
199 | &cmt1_device, | ||
200 | }; | ||
201 | |||
202 | #define STBCR3 0xf80a0000 | ||
203 | |||
204 | void __init plat_early_device_setup(void) | ||
205 | { | ||
206 | /* enable CMT clock */ | ||
207 | __raw_writeb(__raw_readb(STBCR3) & ~0x10, STBCR3); | ||
208 | |||
209 | early_platform_add_devices(sh7619_early_devices, | ||
210 | ARRAY_SIZE(sh7619_early_devices)); | ||
211 | } | ||
diff --git a/arch/sh/kernel/cpu/sh2a/setup-mxg.c b/arch/sh/kernel/cpu/sh2a/setup-mxg.c index 844293723cfc..a452d9649069 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-mxg.c +++ b/arch/sh/kernel/cpu/sh2a/setup-mxg.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/sh_timer.h> | ||
14 | 15 | ||
15 | enum { | 16 | enum { |
16 | UNUSED = 0, | 17 | UNUSED = 0, |
@@ -24,7 +25,7 @@ enum { | |||
24 | 25 | ||
25 | SCIF0, SCIF1, | 26 | SCIF0, SCIF1, |
26 | 27 | ||
27 | MTU2_GROUP1, MTU2_GROUP2, MTU2_GROUP3, MTU2_GROUP4, MTU2_GROUP5 | 28 | MTU2_GROUP1, MTU2_GROUP2, MTU2_GROUP3, MTU2_GROUP4, MTU2_GROUP5, |
28 | MTU2_TGI3B, MTU2_TGI3C, | 29 | MTU2_TGI3B, MTU2_TGI3C, |
29 | 30 | ||
30 | /* interrupt groups */ | 31 | /* interrupt groups */ |
@@ -113,6 +114,99 @@ static struct intc_mask_reg mask_registers[] __initdata = { | |||
113 | static DECLARE_INTC_DESC(intc_desc, "mxg", vectors, groups, | 114 | static DECLARE_INTC_DESC(intc_desc, "mxg", vectors, groups, |
114 | mask_registers, prio_registers, NULL); | 115 | mask_registers, prio_registers, NULL); |
115 | 116 | ||
117 | static struct sh_timer_config mtu2_0_platform_data = { | ||
118 | .name = "MTU2_0", | ||
119 | .channel_offset = -0x80, | ||
120 | .timer_bit = 0, | ||
121 | .clk = "module_clk", | ||
122 | .clockevent_rating = 200, | ||
123 | }; | ||
124 | |||
125 | static struct resource mtu2_0_resources[] = { | ||
126 | [0] = { | ||
127 | .name = "MTU2_0", | ||
128 | .start = 0xff801300, | ||
129 | .end = 0xff801326, | ||
130 | .flags = IORESOURCE_MEM, | ||
131 | }, | ||
132 | [1] = { | ||
133 | .start = 228, | ||
134 | .flags = IORESOURCE_IRQ, | ||
135 | }, | ||
136 | }; | ||
137 | |||
138 | static struct platform_device mtu2_0_device = { | ||
139 | .name = "sh_mtu2", | ||
140 | .id = 0, | ||
141 | .dev = { | ||
142 | .platform_data = &mtu2_0_platform_data, | ||
143 | }, | ||
144 | .resource = mtu2_0_resources, | ||
145 | .num_resources = ARRAY_SIZE(mtu2_0_resources), | ||
146 | }; | ||
147 | |||
148 | static struct sh_timer_config mtu2_1_platform_data = { | ||
149 | .name = "MTU2_1", | ||
150 | .channel_offset = -0x100, | ||
151 | .timer_bit = 1, | ||
152 | .clk = "module_clk", | ||
153 | .clockevent_rating = 200, | ||
154 | }; | ||
155 | |||
156 | static struct resource mtu2_1_resources[] = { | ||
157 | [0] = { | ||
158 | .name = "MTU2_1", | ||
159 | .start = 0xff801380, | ||
160 | .end = 0xff801390, | ||
161 | .flags = IORESOURCE_MEM, | ||
162 | }, | ||
163 | [1] = { | ||
164 | .start = 234, | ||
165 | .flags = IORESOURCE_IRQ, | ||
166 | }, | ||
167 | }; | ||
168 | |||
169 | static struct platform_device mtu2_1_device = { | ||
170 | .name = "sh_mtu2", | ||
171 | .id = 1, | ||
172 | .dev = { | ||
173 | .platform_data = &mtu2_1_platform_data, | ||
174 | }, | ||
175 | .resource = mtu2_1_resources, | ||
176 | .num_resources = ARRAY_SIZE(mtu2_1_resources), | ||
177 | }; | ||
178 | |||
179 | static struct sh_timer_config mtu2_2_platform_data = { | ||
180 | .name = "MTU2_2", | ||
181 | .channel_offset = 0x80, | ||
182 | .timer_bit = 2, | ||
183 | .clk = "module_clk", | ||
184 | .clockevent_rating = 200, | ||
185 | }; | ||
186 | |||
187 | static struct resource mtu2_2_resources[] = { | ||
188 | [0] = { | ||
189 | .name = "MTU2_2", | ||
190 | .start = 0xff801000, | ||
191 | .end = 0xff80100a, | ||
192 | .flags = IORESOURCE_MEM, | ||
193 | }, | ||
194 | [1] = { | ||
195 | .start = 240, | ||
196 | .flags = IORESOURCE_IRQ, | ||
197 | }, | ||
198 | }; | ||
199 | |||
200 | static struct platform_device mtu2_2_device = { | ||
201 | .name = "sh_mtu2", | ||
202 | .id = 2, | ||
203 | .dev = { | ||
204 | .platform_data = &mtu2_2_platform_data, | ||
205 | }, | ||
206 | .resource = mtu2_2_resources, | ||
207 | .num_resources = ARRAY_SIZE(mtu2_2_resources), | ||
208 | }; | ||
209 | |||
116 | static struct plat_sci_port sci_platform_data[] = { | 210 | static struct plat_sci_port sci_platform_data[] = { |
117 | { | 211 | { |
118 | .mapbase = 0xff804000, | 212 | .mapbase = 0xff804000, |
@@ -134,6 +228,9 @@ static struct platform_device sci_device = { | |||
134 | 228 | ||
135 | static struct platform_device *mxg_devices[] __initdata = { | 229 | static struct platform_device *mxg_devices[] __initdata = { |
136 | &sci_device, | 230 | &sci_device, |
231 | &mtu2_0_device, | ||
232 | &mtu2_1_device, | ||
233 | &mtu2_2_device, | ||
137 | }; | 234 | }; |
138 | 235 | ||
139 | static int __init mxg_devices_setup(void) | 236 | static int __init mxg_devices_setup(void) |
@@ -147,3 +244,15 @@ void __init plat_irq_setup(void) | |||
147 | { | 244 | { |
148 | register_intc_controller(&intc_desc); | 245 | register_intc_controller(&intc_desc); |
149 | } | 246 | } |
247 | |||
248 | static struct platform_device *mxg_early_devices[] __initdata = { | ||
249 | &mtu2_0_device, | ||
250 | &mtu2_1_device, | ||
251 | &mtu2_2_device, | ||
252 | }; | ||
253 | |||
254 | void __init plat_early_device_setup(void) | ||
255 | { | ||
256 | early_platform_add_devices(mxg_early_devices, | ||
257 | ARRAY_SIZE(mxg_early_devices)); | ||
258 | } | ||
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c index 00f42f9e3f5c..772358b7685e 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c | |||
@@ -12,6 +12,8 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | ||
16 | #include <linux/io.h> | ||
15 | 17 | ||
16 | enum { | 18 | enum { |
17 | UNUSED = 0, | 19 | UNUSED = 0, |
@@ -249,9 +251,105 @@ static struct platform_device rtc_device = { | |||
249 | .resource = rtc_resources, | 251 | .resource = rtc_resources, |
250 | }; | 252 | }; |
251 | 253 | ||
254 | static struct sh_timer_config mtu2_0_platform_data = { | ||
255 | .name = "MTU2_0", | ||
256 | .channel_offset = -0x80, | ||
257 | .timer_bit = 0, | ||
258 | .clk = "module_clk", | ||
259 | .clockevent_rating = 200, | ||
260 | }; | ||
261 | |||
262 | static struct resource mtu2_0_resources[] = { | ||
263 | [0] = { | ||
264 | .name = "MTU2_0", | ||
265 | .start = 0xfffe4300, | ||
266 | .end = 0xfffe4326, | ||
267 | .flags = IORESOURCE_MEM, | ||
268 | }, | ||
269 | [1] = { | ||
270 | .start = 108, | ||
271 | .flags = IORESOURCE_IRQ, | ||
272 | }, | ||
273 | }; | ||
274 | |||
275 | static struct platform_device mtu2_0_device = { | ||
276 | .name = "sh_mtu2", | ||
277 | .id = 0, | ||
278 | .dev = { | ||
279 | .platform_data = &mtu2_0_platform_data, | ||
280 | }, | ||
281 | .resource = mtu2_0_resources, | ||
282 | .num_resources = ARRAY_SIZE(mtu2_0_resources), | ||
283 | }; | ||
284 | |||
285 | static struct sh_timer_config mtu2_1_platform_data = { | ||
286 | .name = "MTU2_1", | ||
287 | .channel_offset = -0x100, | ||
288 | .timer_bit = 1, | ||
289 | .clk = "module_clk", | ||
290 | .clockevent_rating = 200, | ||
291 | }; | ||
292 | |||
293 | static struct resource mtu2_1_resources[] = { | ||
294 | [0] = { | ||
295 | .name = "MTU2_1", | ||
296 | .start = 0xfffe4380, | ||
297 | .end = 0xfffe4390, | ||
298 | .flags = IORESOURCE_MEM, | ||
299 | }, | ||
300 | [1] = { | ||
301 | .start = 116, | ||
302 | .flags = IORESOURCE_IRQ, | ||
303 | }, | ||
304 | }; | ||
305 | |||
306 | static struct platform_device mtu2_1_device = { | ||
307 | .name = "sh_mtu2", | ||
308 | .id = 1, | ||
309 | .dev = { | ||
310 | .platform_data = &mtu2_1_platform_data, | ||
311 | }, | ||
312 | .resource = mtu2_1_resources, | ||
313 | .num_resources = ARRAY_SIZE(mtu2_1_resources), | ||
314 | }; | ||
315 | |||
316 | static struct sh_timer_config mtu2_2_platform_data = { | ||
317 | .name = "MTU2_2", | ||
318 | .channel_offset = 0x80, | ||
319 | .timer_bit = 2, | ||
320 | .clk = "module_clk", | ||
321 | .clockevent_rating = 200, | ||
322 | }; | ||
323 | |||
324 | static struct resource mtu2_2_resources[] = { | ||
325 | [0] = { | ||
326 | .name = "MTU2_2", | ||
327 | .start = 0xfffe4000, | ||
328 | .end = 0xfffe400a, | ||
329 | .flags = IORESOURCE_MEM, | ||
330 | }, | ||
331 | [1] = { | ||
332 | .start = 124, | ||
333 | .flags = IORESOURCE_IRQ, | ||
334 | }, | ||
335 | }; | ||
336 | |||
337 | static struct platform_device mtu2_2_device = { | ||
338 | .name = "sh_mtu2", | ||
339 | .id = 2, | ||
340 | .dev = { | ||
341 | .platform_data = &mtu2_2_platform_data, | ||
342 | }, | ||
343 | .resource = mtu2_2_resources, | ||
344 | .num_resources = ARRAY_SIZE(mtu2_2_resources), | ||
345 | }; | ||
346 | |||
252 | static struct platform_device *sh7201_devices[] __initdata = { | 347 | static struct platform_device *sh7201_devices[] __initdata = { |
253 | &sci_device, | 348 | &sci_device, |
254 | &rtc_device, | 349 | &rtc_device, |
350 | &mtu2_0_device, | ||
351 | &mtu2_1_device, | ||
352 | &mtu2_2_device, | ||
255 | }; | 353 | }; |
256 | 354 | ||
257 | static int __init sh7201_devices_setup(void) | 355 | static int __init sh7201_devices_setup(void) |
@@ -265,3 +363,20 @@ void __init plat_irq_setup(void) | |||
265 | { | 363 | { |
266 | register_intc_controller(&intc_desc); | 364 | register_intc_controller(&intc_desc); |
267 | } | 365 | } |
366 | |||
367 | static struct platform_device *sh7201_early_devices[] __initdata = { | ||
368 | &mtu2_0_device, | ||
369 | &mtu2_1_device, | ||
370 | &mtu2_2_device, | ||
371 | }; | ||
372 | |||
373 | #define STBCR3 0xfffe0408 | ||
374 | |||
375 | void __init plat_early_device_setup(void) | ||
376 | { | ||
377 | /* enable MTU2 clock */ | ||
378 | __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3); | ||
379 | |||
380 | early_platform_add_devices(sh7201_early_devices, | ||
381 | ARRAY_SIZE(sh7201_early_devices)); | ||
382 | } | ||
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c index 820dfb2e8656..d7493418ba60 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/sh_timer.h> | ||
15 | #include <linux/io.h> | ||
14 | 16 | ||
15 | enum { | 17 | enum { |
16 | UNUSED = 0, | 18 | UNUSED = 0, |
@@ -205,6 +207,132 @@ static struct platform_device sci_device = { | |||
205 | }, | 207 | }, |
206 | }; | 208 | }; |
207 | 209 | ||
210 | static struct sh_timer_config cmt0_platform_data = { | ||
211 | .name = "CMT0", | ||
212 | .channel_offset = 0x02, | ||
213 | .timer_bit = 0, | ||
214 | .clk = "module_clk", | ||
215 | .clockevent_rating = 125, | ||
216 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
217 | }; | ||
218 | |||
219 | static struct resource cmt0_resources[] = { | ||
220 | [0] = { | ||
221 | .name = "CMT0", | ||
222 | .start = 0xfffec002, | ||
223 | .end = 0xfffec007, | ||
224 | .flags = IORESOURCE_MEM, | ||
225 | }, | ||
226 | [1] = { | ||
227 | .start = 142, | ||
228 | .flags = IORESOURCE_IRQ, | ||
229 | }, | ||
230 | }; | ||
231 | |||
232 | static struct platform_device cmt0_device = { | ||
233 | .name = "sh_cmt", | ||
234 | .id = 0, | ||
235 | .dev = { | ||
236 | .platform_data = &cmt0_platform_data, | ||
237 | }, | ||
238 | .resource = cmt0_resources, | ||
239 | .num_resources = ARRAY_SIZE(cmt0_resources), | ||
240 | }; | ||
241 | |||
242 | static struct sh_timer_config cmt1_platform_data = { | ||
243 | .name = "CMT1", | ||
244 | .channel_offset = 0x08, | ||
245 | .timer_bit = 1, | ||
246 | .clk = "module_clk", | ||
247 | .clockevent_rating = 125, | ||
248 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
249 | }; | ||
250 | |||
251 | static struct resource cmt1_resources[] = { | ||
252 | [0] = { | ||
253 | .name = "CMT1", | ||
254 | .start = 0xfffec008, | ||
255 | .end = 0xfffec00d, | ||
256 | .flags = IORESOURCE_MEM, | ||
257 | }, | ||
258 | [1] = { | ||
259 | .start = 143, | ||
260 | .flags = IORESOURCE_IRQ, | ||
261 | }, | ||
262 | }; | ||
263 | |||
264 | static struct platform_device cmt1_device = { | ||
265 | .name = "sh_cmt", | ||
266 | .id = 1, | ||
267 | .dev = { | ||
268 | .platform_data = &cmt1_platform_data, | ||
269 | }, | ||
270 | .resource = cmt1_resources, | ||
271 | .num_resources = ARRAY_SIZE(cmt1_resources), | ||
272 | }; | ||
273 | |||
274 | static struct sh_timer_config mtu2_0_platform_data = { | ||
275 | .name = "MTU2_0", | ||
276 | .channel_offset = -0x80, | ||
277 | .timer_bit = 0, | ||
278 | .clk = "module_clk", | ||
279 | .clockevent_rating = 200, | ||
280 | }; | ||
281 | |||
282 | static struct resource mtu2_0_resources[] = { | ||
283 | [0] = { | ||
284 | .name = "MTU2_0", | ||
285 | .start = 0xfffe4300, | ||
286 | .end = 0xfffe4326, | ||
287 | .flags = IORESOURCE_MEM, | ||
288 | }, | ||
289 | [1] = { | ||
290 | .start = 146, | ||
291 | .flags = IORESOURCE_IRQ, | ||
292 | }, | ||
293 | }; | ||
294 | |||
295 | static struct platform_device mtu2_0_device = { | ||
296 | .name = "sh_mtu2", | ||
297 | .id = 0, | ||
298 | .dev = { | ||
299 | .platform_data = &mtu2_0_platform_data, | ||
300 | }, | ||
301 | .resource = mtu2_0_resources, | ||
302 | .num_resources = ARRAY_SIZE(mtu2_0_resources), | ||
303 | }; | ||
304 | |||
305 | static struct sh_timer_config mtu2_1_platform_data = { | ||
306 | .name = "MTU2_1", | ||
307 | .channel_offset = -0x100, | ||
308 | .timer_bit = 1, | ||
309 | .clk = "module_clk", | ||
310 | .clockevent_rating = 200, | ||
311 | }; | ||
312 | |||
313 | static struct resource mtu2_1_resources[] = { | ||
314 | [0] = { | ||
315 | .name = "MTU2_1", | ||
316 | .start = 0xfffe4380, | ||
317 | .end = 0xfffe4390, | ||
318 | .flags = IORESOURCE_MEM, | ||
319 | }, | ||
320 | [1] = { | ||
321 | .start = 153, | ||
322 | .flags = IORESOURCE_IRQ, | ||
323 | }, | ||
324 | }; | ||
325 | |||
326 | static struct platform_device mtu2_1_device = { | ||
327 | .name = "sh_mtu2", | ||
328 | .id = 1, | ||
329 | .dev = { | ||
330 | .platform_data = &mtu2_1_platform_data, | ||
331 | }, | ||
332 | .resource = mtu2_1_resources, | ||
333 | .num_resources = ARRAY_SIZE(mtu2_1_resources), | ||
334 | }; | ||
335 | |||
208 | static struct resource rtc_resources[] = { | 336 | static struct resource rtc_resources[] = { |
209 | [0] = { | 337 | [0] = { |
210 | .start = 0xffff2000, | 338 | .start = 0xffff2000, |
@@ -227,6 +355,10 @@ static struct platform_device rtc_device = { | |||
227 | 355 | ||
228 | static struct platform_device *sh7203_devices[] __initdata = { | 356 | static struct platform_device *sh7203_devices[] __initdata = { |
229 | &sci_device, | 357 | &sci_device, |
358 | &cmt0_device, | ||
359 | &cmt1_device, | ||
360 | &mtu2_0_device, | ||
361 | &mtu2_1_device, | ||
230 | &rtc_device, | 362 | &rtc_device, |
231 | }; | 363 | }; |
232 | 364 | ||
@@ -241,3 +373,25 @@ void __init plat_irq_setup(void) | |||
241 | { | 373 | { |
242 | register_intc_controller(&intc_desc); | 374 | register_intc_controller(&intc_desc); |
243 | } | 375 | } |
376 | |||
377 | static struct platform_device *sh7203_early_devices[] __initdata = { | ||
378 | &cmt0_device, | ||
379 | &cmt1_device, | ||
380 | &mtu2_0_device, | ||
381 | &mtu2_1_device, | ||
382 | }; | ||
383 | |||
384 | #define STBCR3 0xfffe0408 | ||
385 | #define STBCR4 0xfffe040c | ||
386 | |||
387 | void __init plat_early_device_setup(void) | ||
388 | { | ||
389 | /* enable CMT clock */ | ||
390 | __raw_writeb(__raw_readb(STBCR4) & ~0x04, STBCR4); | ||
391 | |||
392 | /* enable MTU2 clock */ | ||
393 | __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3); | ||
394 | |||
395 | early_platform_add_devices(sh7203_early_devices, | ||
396 | ARRAY_SIZE(sh7203_early_devices)); | ||
397 | } | ||
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c index c46a8355726d..2fc6bff5c5fb 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c | |||
@@ -12,6 +12,8 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | ||
16 | #include <linux/io.h> | ||
15 | 17 | ||
16 | enum { | 18 | enum { |
17 | UNUSED = 0, | 19 | UNUSED = 0, |
@@ -165,8 +167,170 @@ static struct platform_device sci_device = { | |||
165 | }, | 167 | }, |
166 | }; | 168 | }; |
167 | 169 | ||
170 | static struct sh_timer_config cmt0_platform_data = { | ||
171 | .name = "CMT0", | ||
172 | .channel_offset = 0x02, | ||
173 | .timer_bit = 0, | ||
174 | .clk = "module_clk", | ||
175 | .clockevent_rating = 125, | ||
176 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
177 | }; | ||
178 | |||
179 | static struct resource cmt0_resources[] = { | ||
180 | [0] = { | ||
181 | .name = "CMT0", | ||
182 | .start = 0xfffec002, | ||
183 | .end = 0xfffec007, | ||
184 | .flags = IORESOURCE_MEM, | ||
185 | }, | ||
186 | [1] = { | ||
187 | .start = 140, | ||
188 | .flags = IORESOURCE_IRQ, | ||
189 | }, | ||
190 | }; | ||
191 | |||
192 | static struct platform_device cmt0_device = { | ||
193 | .name = "sh_cmt", | ||
194 | .id = 0, | ||
195 | .dev = { | ||
196 | .platform_data = &cmt0_platform_data, | ||
197 | }, | ||
198 | .resource = cmt0_resources, | ||
199 | .num_resources = ARRAY_SIZE(cmt0_resources), | ||
200 | }; | ||
201 | |||
202 | static struct sh_timer_config cmt1_platform_data = { | ||
203 | .name = "CMT1", | ||
204 | .channel_offset = 0x08, | ||
205 | .timer_bit = 1, | ||
206 | .clk = "module_clk", | ||
207 | .clockevent_rating = 125, | ||
208 | .clocksource_rating = 0, /* disabled due to code generation issues */ | ||
209 | }; | ||
210 | |||
211 | static struct resource cmt1_resources[] = { | ||
212 | [0] = { | ||
213 | .name = "CMT1", | ||
214 | .start = 0xfffec008, | ||
215 | .end = 0xfffec00d, | ||
216 | .flags = IORESOURCE_MEM, | ||
217 | }, | ||
218 | [1] = { | ||
219 | .start = 144, | ||
220 | .flags = IORESOURCE_IRQ, | ||
221 | }, | ||
222 | }; | ||
223 | |||
224 | static struct platform_device cmt1_device = { | ||
225 | .name = "sh_cmt", | ||
226 | .id = 1, | ||
227 | .dev = { | ||
228 | .platform_data = &cmt1_platform_data, | ||
229 | }, | ||
230 | .resource = cmt1_resources, | ||
231 | .num_resources = ARRAY_SIZE(cmt1_resources), | ||
232 | }; | ||
233 | |||
234 | static struct sh_timer_config mtu2_0_platform_data = { | ||
235 | .name = "MTU2_0", | ||
236 | .channel_offset = -0x80, | ||
237 | .timer_bit = 0, | ||
238 | .clk = "module_clk", | ||
239 | .clockevent_rating = 200, | ||
240 | }; | ||
241 | |||
242 | static struct resource mtu2_0_resources[] = { | ||
243 | [0] = { | ||
244 | .name = "MTU2_0", | ||
245 | .start = 0xfffe4300, | ||
246 | .end = 0xfffe4326, | ||
247 | .flags = IORESOURCE_MEM, | ||
248 | }, | ||
249 | [1] = { | ||
250 | .start = 156, | ||
251 | .flags = IORESOURCE_IRQ, | ||
252 | }, | ||
253 | }; | ||
254 | |||
255 | static struct platform_device mtu2_0_device = { | ||
256 | .name = "sh_mtu2", | ||
257 | .id = 0, | ||
258 | .dev = { | ||
259 | .platform_data = &mtu2_0_platform_data, | ||
260 | }, | ||
261 | .resource = mtu2_0_resources, | ||
262 | .num_resources = ARRAY_SIZE(mtu2_0_resources), | ||
263 | }; | ||
264 | |||
265 | static struct sh_timer_config mtu2_1_platform_data = { | ||
266 | .name = "MTU2_1", | ||
267 | .channel_offset = -0x100, | ||
268 | .timer_bit = 1, | ||
269 | .clk = "module_clk", | ||
270 | .clockevent_rating = 200, | ||
271 | }; | ||
272 | |||
273 | static struct resource mtu2_1_resources[] = { | ||
274 | [0] = { | ||
275 | .name = "MTU2_1", | ||
276 | .start = 0xfffe4380, | ||
277 | .end = 0xfffe4390, | ||
278 | .flags = IORESOURCE_MEM, | ||
279 | }, | ||
280 | [1] = { | ||
281 | .start = 164, | ||
282 | .flags = IORESOURCE_IRQ, | ||
283 | }, | ||
284 | }; | ||
285 | |||
286 | static struct platform_device mtu2_1_device = { | ||
287 | .name = "sh_mtu2", | ||
288 | .id = 1, | ||
289 | .dev = { | ||
290 | .platform_data = &mtu2_1_platform_data, | ||
291 | }, | ||
292 | .resource = mtu2_1_resources, | ||
293 | .num_resources = ARRAY_SIZE(mtu2_1_resources), | ||
294 | }; | ||
295 | |||
296 | static struct sh_timer_config mtu2_2_platform_data = { | ||
297 | .name = "MTU2_2", | ||
298 | .channel_offset = 0x80, | ||
299 | .timer_bit = 2, | ||
300 | .clk = "module_clk", | ||
301 | .clockevent_rating = 200, | ||
302 | }; | ||
303 | |||
304 | static struct resource mtu2_2_resources[] = { | ||
305 | [0] = { | ||
306 | .name = "MTU2_2", | ||
307 | .start = 0xfffe4000, | ||
308 | .end = 0xfffe400a, | ||
309 | .flags = IORESOURCE_MEM, | ||
310 | }, | ||
311 | [1] = { | ||
312 | .start = 180, | ||
313 | .flags = IORESOURCE_IRQ, | ||
314 | }, | ||
315 | }; | ||
316 | |||
317 | static struct platform_device mtu2_2_device = { | ||
318 | .name = "sh_mtu2", | ||
319 | .id = 2, | ||
320 | .dev = { | ||
321 | .platform_data = &mtu2_2_platform_data, | ||
322 | }, | ||
323 | .resource = mtu2_2_resources, | ||
324 | .num_resources = ARRAY_SIZE(mtu2_2_resources), | ||
325 | }; | ||
326 | |||
168 | static struct platform_device *sh7206_devices[] __initdata = { | 327 | static struct platform_device *sh7206_devices[] __initdata = { |
169 | &sci_device, | 328 | &sci_device, |
329 | &cmt0_device, | ||
330 | &cmt1_device, | ||
331 | &mtu2_0_device, | ||
332 | &mtu2_1_device, | ||
333 | &mtu2_2_device, | ||
170 | }; | 334 | }; |
171 | 335 | ||
172 | static int __init sh7206_devices_setup(void) | 336 | static int __init sh7206_devices_setup(void) |
@@ -180,3 +344,26 @@ void __init plat_irq_setup(void) | |||
180 | { | 344 | { |
181 | register_intc_controller(&intc_desc); | 345 | register_intc_controller(&intc_desc); |
182 | } | 346 | } |
347 | |||
348 | static struct platform_device *sh7206_early_devices[] __initdata = { | ||
349 | &cmt0_device, | ||
350 | &cmt1_device, | ||
351 | &mtu2_0_device, | ||
352 | &mtu2_1_device, | ||
353 | &mtu2_2_device, | ||
354 | }; | ||
355 | |||
356 | #define STBCR3 0xfffe0408 | ||
357 | #define STBCR4 0xfffe040c | ||
358 | |||
359 | void __init plat_early_device_setup(void) | ||
360 | { | ||
361 | /* enable CMT clock */ | ||
362 | __raw_writeb(__raw_readb(STBCR4) & ~0x04, STBCR4); | ||
363 | |||
364 | /* enable MTU2 clock */ | ||
365 | __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3); | ||
366 | |||
367 | early_platform_add_devices(sh7206_early_devices, | ||
368 | ARRAY_SIZE(sh7206_early_devices)); | ||
369 | } | ||
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c index 63b67badd67e..39513664d5d7 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
16 | #include <linux/sh_timer.h> | ||
16 | #include <asm/rtc.h> | 17 | #include <asm/rtc.h> |
17 | 18 | ||
18 | enum { | 19 | enum { |
@@ -116,7 +117,102 @@ static struct platform_device rtc_device = { | |||
116 | }, | 117 | }, |
117 | }; | 118 | }; |
118 | 119 | ||
120 | static struct sh_timer_config tmu0_platform_data = { | ||
121 | .name = "TMU0", | ||
122 | .channel_offset = 0x02, | ||
123 | .timer_bit = 0, | ||
124 | .clk = "module_clk", | ||
125 | .clockevent_rating = 200, | ||
126 | }; | ||
127 | |||
128 | static struct resource tmu0_resources[] = { | ||
129 | [0] = { | ||
130 | .name = "TMU0", | ||
131 | .start = 0xfffffe94, | ||
132 | .end = 0xfffffe9f, | ||
133 | .flags = IORESOURCE_MEM, | ||
134 | }, | ||
135 | [1] = { | ||
136 | .start = 16, | ||
137 | .flags = IORESOURCE_IRQ, | ||
138 | }, | ||
139 | }; | ||
140 | |||
141 | static struct platform_device tmu0_device = { | ||
142 | .name = "sh_tmu", | ||
143 | .id = 0, | ||
144 | .dev = { | ||
145 | .platform_data = &tmu0_platform_data, | ||
146 | }, | ||
147 | .resource = tmu0_resources, | ||
148 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
149 | }; | ||
150 | |||
151 | static struct sh_timer_config tmu1_platform_data = { | ||
152 | .name = "TMU1", | ||
153 | .channel_offset = 0xe, | ||
154 | .timer_bit = 1, | ||
155 | .clk = "module_clk", | ||
156 | .clocksource_rating = 200, | ||
157 | }; | ||
158 | |||
159 | static struct resource tmu1_resources[] = { | ||
160 | [0] = { | ||
161 | .name = "TMU1", | ||
162 | .start = 0xfffffea0, | ||
163 | .end = 0xfffffeab, | ||
164 | .flags = IORESOURCE_MEM, | ||
165 | }, | ||
166 | [1] = { | ||
167 | .start = 17, | ||
168 | .flags = IORESOURCE_IRQ, | ||
169 | }, | ||
170 | }; | ||
171 | |||
172 | static struct platform_device tmu1_device = { | ||
173 | .name = "sh_tmu", | ||
174 | .id = 1, | ||
175 | .dev = { | ||
176 | .platform_data = &tmu1_platform_data, | ||
177 | }, | ||
178 | .resource = tmu1_resources, | ||
179 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
180 | }; | ||
181 | |||
182 | static struct sh_timer_config tmu2_platform_data = { | ||
183 | .name = "TMU2", | ||
184 | .channel_offset = 0x1a, | ||
185 | .timer_bit = 2, | ||
186 | .clk = "module_clk", | ||
187 | }; | ||
188 | |||
189 | static struct resource tmu2_resources[] = { | ||
190 | [0] = { | ||
191 | .name = "TMU2", | ||
192 | .start = 0xfffffeac, | ||
193 | .end = 0xfffffebb, | ||
194 | .flags = IORESOURCE_MEM, | ||
195 | }, | ||
196 | [1] = { | ||
197 | .start = 18, | ||
198 | .flags = IORESOURCE_IRQ, | ||
199 | }, | ||
200 | }; | ||
201 | |||
202 | static struct platform_device tmu2_device = { | ||
203 | .name = "sh_tmu", | ||
204 | .id = 2, | ||
205 | .dev = { | ||
206 | .platform_data = &tmu2_platform_data, | ||
207 | }, | ||
208 | .resource = tmu2_resources, | ||
209 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
210 | }; | ||
211 | |||
119 | static struct platform_device *sh7705_devices[] __initdata = { | 212 | static struct platform_device *sh7705_devices[] __initdata = { |
213 | &tmu0_device, | ||
214 | &tmu1_device, | ||
215 | &tmu2_device, | ||
120 | &sci_device, | 216 | &sci_device, |
121 | &rtc_device, | 217 | &rtc_device, |
122 | }; | 218 | }; |
@@ -128,6 +224,18 @@ static int __init sh7705_devices_setup(void) | |||
128 | } | 224 | } |
129 | __initcall(sh7705_devices_setup); | 225 | __initcall(sh7705_devices_setup); |
130 | 226 | ||
227 | static struct platform_device *sh7705_early_devices[] __initdata = { | ||
228 | &tmu0_device, | ||
229 | &tmu1_device, | ||
230 | &tmu2_device, | ||
231 | }; | ||
232 | |||
233 | void __init plat_early_device_setup(void) | ||
234 | { | ||
235 | early_platform_add_devices(sh7705_early_devices, | ||
236 | ARRAY_SIZE(sh7705_early_devices)); | ||
237 | } | ||
238 | |||
131 | void __init plat_irq_setup(void) | 239 | void __init plat_irq_setup(void) |
132 | { | 240 | { |
133 | register_intc_controller(&intc_desc); | 241 | register_intc_controller(&intc_desc); |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh770x.c b/arch/sh/kernel/cpu/sh3/setup-sh770x.c index a74f960b5e79..9412d915b84e 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh770x.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh770x.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/serial.h> | 19 | #include <linux/serial.h> |
20 | #include <linux/serial_sci.h> | 20 | #include <linux/serial_sci.h> |
21 | #include <linux/sh_timer.h> | ||
21 | 22 | ||
22 | enum { | 23 | enum { |
23 | UNUSED = 0, | 24 | UNUSED = 0, |
@@ -144,7 +145,102 @@ static struct platform_device sci_device = { | |||
144 | }, | 145 | }, |
145 | }; | 146 | }; |
146 | 147 | ||
148 | static struct sh_timer_config tmu0_platform_data = { | ||
149 | .name = "TMU0", | ||
150 | .channel_offset = 0x02, | ||
151 | .timer_bit = 0, | ||
152 | .clk = "module_clk", | ||
153 | .clockevent_rating = 200, | ||
154 | }; | ||
155 | |||
156 | static struct resource tmu0_resources[] = { | ||
157 | [0] = { | ||
158 | .name = "TMU0", | ||
159 | .start = 0xfffffe94, | ||
160 | .end = 0xfffffe9f, | ||
161 | .flags = IORESOURCE_MEM, | ||
162 | }, | ||
163 | [1] = { | ||
164 | .start = 16, | ||
165 | .flags = IORESOURCE_IRQ, | ||
166 | }, | ||
167 | }; | ||
168 | |||
169 | static struct platform_device tmu0_device = { | ||
170 | .name = "sh_tmu", | ||
171 | .id = 0, | ||
172 | .dev = { | ||
173 | .platform_data = &tmu0_platform_data, | ||
174 | }, | ||
175 | .resource = tmu0_resources, | ||
176 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
177 | }; | ||
178 | |||
179 | static struct sh_timer_config tmu1_platform_data = { | ||
180 | .name = "TMU1", | ||
181 | .channel_offset = 0xe, | ||
182 | .timer_bit = 1, | ||
183 | .clk = "module_clk", | ||
184 | .clocksource_rating = 200, | ||
185 | }; | ||
186 | |||
187 | static struct resource tmu1_resources[] = { | ||
188 | [0] = { | ||
189 | .name = "TMU1", | ||
190 | .start = 0xfffffea0, | ||
191 | .end = 0xfffffeab, | ||
192 | .flags = IORESOURCE_MEM, | ||
193 | }, | ||
194 | [1] = { | ||
195 | .start = 17, | ||
196 | .flags = IORESOURCE_IRQ, | ||
197 | }, | ||
198 | }; | ||
199 | |||
200 | static struct platform_device tmu1_device = { | ||
201 | .name = "sh_tmu", | ||
202 | .id = 1, | ||
203 | .dev = { | ||
204 | .platform_data = &tmu1_platform_data, | ||
205 | }, | ||
206 | .resource = tmu1_resources, | ||
207 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
208 | }; | ||
209 | |||
210 | static struct sh_timer_config tmu2_platform_data = { | ||
211 | .name = "TMU2", | ||
212 | .channel_offset = 0x1a, | ||
213 | .timer_bit = 2, | ||
214 | .clk = "module_clk", | ||
215 | }; | ||
216 | |||
217 | static struct resource tmu2_resources[] = { | ||
218 | [0] = { | ||
219 | .name = "TMU2", | ||
220 | .start = 0xfffffeac, | ||
221 | .end = 0xfffffebb, | ||
222 | .flags = IORESOURCE_MEM, | ||
223 | }, | ||
224 | [1] = { | ||
225 | .start = 18, | ||
226 | .flags = IORESOURCE_IRQ, | ||
227 | }, | ||
228 | }; | ||
229 | |||
230 | static struct platform_device tmu2_device = { | ||
231 | .name = "sh_tmu", | ||
232 | .id = 2, | ||
233 | .dev = { | ||
234 | .platform_data = &tmu2_platform_data, | ||
235 | }, | ||
236 | .resource = tmu2_resources, | ||
237 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
238 | }; | ||
239 | |||
147 | static struct platform_device *sh770x_devices[] __initdata = { | 240 | static struct platform_device *sh770x_devices[] __initdata = { |
241 | &tmu0_device, | ||
242 | &tmu1_device, | ||
243 | &tmu2_device, | ||
148 | &sci_device, | 244 | &sci_device, |
149 | &rtc_device, | 245 | &rtc_device, |
150 | }; | 246 | }; |
@@ -156,6 +252,18 @@ static int __init sh770x_devices_setup(void) | |||
156 | } | 252 | } |
157 | __initcall(sh770x_devices_setup); | 253 | __initcall(sh770x_devices_setup); |
158 | 254 | ||
255 | static struct platform_device *sh770x_early_devices[] __initdata = { | ||
256 | &tmu0_device, | ||
257 | &tmu1_device, | ||
258 | &tmu2_device, | ||
259 | }; | ||
260 | |||
261 | void __init plat_early_device_setup(void) | ||
262 | { | ||
263 | early_platform_add_devices(sh770x_early_devices, | ||
264 | ARRAY_SIZE(sh770x_early_devices)); | ||
265 | } | ||
266 | |||
159 | void __init plat_irq_setup(void) | 267 | void __init plat_irq_setup(void) |
160 | { | 268 | { |
161 | register_intc_controller(&intc_desc); | 269 | register_intc_controller(&intc_desc); |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7710.c b/arch/sh/kernel/cpu/sh3/setup-sh7710.c index 335098b66e2f..07ff38d055a7 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7710.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7710.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
16 | #include <linux/sh_timer.h> | ||
16 | #include <asm/rtc.h> | 17 | #include <asm/rtc.h> |
17 | 18 | ||
18 | enum { | 19 | enum { |
@@ -120,7 +121,102 @@ static struct platform_device sci_device = { | |||
120 | }, | 121 | }, |
121 | }; | 122 | }; |
122 | 123 | ||
124 | static struct sh_timer_config tmu0_platform_data = { | ||
125 | .name = "TMU0", | ||
126 | .channel_offset = 0x02, | ||
127 | .timer_bit = 0, | ||
128 | .clk = "module_clk", | ||
129 | .clockevent_rating = 200, | ||
130 | }; | ||
131 | |||
132 | static struct resource tmu0_resources[] = { | ||
133 | [0] = { | ||
134 | .name = "TMU0", | ||
135 | .start = 0xa412fe94, | ||
136 | .end = 0xa412fe9f, | ||
137 | .flags = IORESOURCE_MEM, | ||
138 | }, | ||
139 | [1] = { | ||
140 | .start = 16, | ||
141 | .flags = IORESOURCE_IRQ, | ||
142 | }, | ||
143 | }; | ||
144 | |||
145 | static struct platform_device tmu0_device = { | ||
146 | .name = "sh_tmu", | ||
147 | .id = 0, | ||
148 | .dev = { | ||
149 | .platform_data = &tmu0_platform_data, | ||
150 | }, | ||
151 | .resource = tmu0_resources, | ||
152 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
153 | }; | ||
154 | |||
155 | static struct sh_timer_config tmu1_platform_data = { | ||
156 | .name = "TMU1", | ||
157 | .channel_offset = 0xe, | ||
158 | .timer_bit = 1, | ||
159 | .clk = "module_clk", | ||
160 | .clocksource_rating = 200, | ||
161 | }; | ||
162 | |||
163 | static struct resource tmu1_resources[] = { | ||
164 | [0] = { | ||
165 | .name = "TMU1", | ||
166 | .start = 0xa412fea0, | ||
167 | .end = 0xa412feab, | ||
168 | .flags = IORESOURCE_MEM, | ||
169 | }, | ||
170 | [1] = { | ||
171 | .start = 17, | ||
172 | .flags = IORESOURCE_IRQ, | ||
173 | }, | ||
174 | }; | ||
175 | |||
176 | static struct platform_device tmu1_device = { | ||
177 | .name = "sh_tmu", | ||
178 | .id = 1, | ||
179 | .dev = { | ||
180 | .platform_data = &tmu1_platform_data, | ||
181 | }, | ||
182 | .resource = tmu1_resources, | ||
183 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
184 | }; | ||
185 | |||
186 | static struct sh_timer_config tmu2_platform_data = { | ||
187 | .name = "TMU2", | ||
188 | .channel_offset = 0x1a, | ||
189 | .timer_bit = 2, | ||
190 | .clk = "module_clk", | ||
191 | }; | ||
192 | |||
193 | static struct resource tmu2_resources[] = { | ||
194 | [0] = { | ||
195 | .name = "TMU2", | ||
196 | .start = 0xa412feac, | ||
197 | .end = 0xa412feb5, | ||
198 | .flags = IORESOURCE_MEM, | ||
199 | }, | ||
200 | [1] = { | ||
201 | .start = 18, | ||
202 | .flags = IORESOURCE_IRQ, | ||
203 | }, | ||
204 | }; | ||
205 | |||
206 | static struct platform_device tmu2_device = { | ||
207 | .name = "sh_tmu", | ||
208 | .id = 2, | ||
209 | .dev = { | ||
210 | .platform_data = &tmu2_platform_data, | ||
211 | }, | ||
212 | .resource = tmu2_resources, | ||
213 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
214 | }; | ||
215 | |||
123 | static struct platform_device *sh7710_devices[] __initdata = { | 216 | static struct platform_device *sh7710_devices[] __initdata = { |
217 | &tmu0_device, | ||
218 | &tmu1_device, | ||
219 | &tmu2_device, | ||
124 | &sci_device, | 220 | &sci_device, |
125 | &rtc_device, | 221 | &rtc_device, |
126 | }; | 222 | }; |
@@ -132,6 +228,18 @@ static int __init sh7710_devices_setup(void) | |||
132 | } | 228 | } |
133 | __initcall(sh7710_devices_setup); | 229 | __initcall(sh7710_devices_setup); |
134 | 230 | ||
231 | static struct platform_device *sh7710_early_devices[] __initdata = { | ||
232 | &tmu0_device, | ||
233 | &tmu1_device, | ||
234 | &tmu2_device, | ||
235 | }; | ||
236 | |||
237 | void __init plat_early_device_setup(void) | ||
238 | { | ||
239 | early_platform_add_devices(sh7710_early_devices, | ||
240 | ARRAY_SIZE(sh7710_early_devices)); | ||
241 | } | ||
242 | |||
135 | void __init plat_irq_setup(void) | 243 | void __init plat_irq_setup(void) |
136 | { | 244 | { |
137 | register_intc_controller(&intc_desc); | 245 | register_intc_controller(&intc_desc); |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7720.c b/arch/sh/kernel/cpu/sh3/setup-sh7720.c index 003874a2fd2a..d8b46f5dff60 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7720.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/serial.h> | 18 | #include <linux/serial.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/serial_sci.h> | 20 | #include <linux/serial_sci.h> |
21 | #include <linux/sh_timer.h> | ||
21 | #include <asm/rtc.h> | 22 | #include <asm/rtc.h> |
22 | 23 | ||
23 | static struct resource rtc_resources[] = { | 24 | static struct resource rtc_resources[] = { |
@@ -123,7 +124,259 @@ static struct platform_device usbf_device = { | |||
123 | .resource = usbf_resources, | 124 | .resource = usbf_resources, |
124 | }; | 125 | }; |
125 | 126 | ||
127 | static struct sh_timer_config cmt0_platform_data = { | ||
128 | .name = "CMT0", | ||
129 | .channel_offset = 0x10, | ||
130 | .timer_bit = 0, | ||
131 | .clk = "module_clk", | ||
132 | .clockevent_rating = 125, | ||
133 | .clocksource_rating = 125, | ||
134 | }; | ||
135 | |||
136 | static struct resource cmt0_resources[] = { | ||
137 | [0] = { | ||
138 | .name = "CMT0", | ||
139 | .start = 0x044a0010, | ||
140 | .end = 0x044a001b, | ||
141 | .flags = IORESOURCE_MEM, | ||
142 | }, | ||
143 | [1] = { | ||
144 | .start = 104, | ||
145 | .flags = IORESOURCE_IRQ, | ||
146 | }, | ||
147 | }; | ||
148 | |||
149 | static struct platform_device cmt0_device = { | ||
150 | .name = "sh_cmt", | ||
151 | .id = 0, | ||
152 | .dev = { | ||
153 | .platform_data = &cmt0_platform_data, | ||
154 | }, | ||
155 | .resource = cmt0_resources, | ||
156 | .num_resources = ARRAY_SIZE(cmt0_resources), | ||
157 | }; | ||
158 | |||
159 | static struct sh_timer_config cmt1_platform_data = { | ||
160 | .name = "CMT1", | ||
161 | .channel_offset = 0x20, | ||
162 | .timer_bit = 1, | ||
163 | .clk = "module_clk", | ||
164 | }; | ||
165 | |||
166 | static struct resource cmt1_resources[] = { | ||
167 | [0] = { | ||
168 | .name = "CMT1", | ||
169 | .start = 0x044a0020, | ||
170 | .end = 0x044a002b, | ||
171 | .flags = IORESOURCE_MEM, | ||
172 | }, | ||
173 | [1] = { | ||
174 | .start = 104, | ||
175 | .flags = IORESOURCE_IRQ, | ||
176 | }, | ||
177 | }; | ||
178 | |||
179 | static struct platform_device cmt1_device = { | ||
180 | .name = "sh_cmt", | ||
181 | .id = 1, | ||
182 | .dev = { | ||
183 | .platform_data = &cmt1_platform_data, | ||
184 | }, | ||
185 | .resource = cmt1_resources, | ||
186 | .num_resources = ARRAY_SIZE(cmt1_resources), | ||
187 | }; | ||
188 | |||
189 | static struct sh_timer_config cmt2_platform_data = { | ||
190 | .name = "CMT2", | ||
191 | .channel_offset = 0x30, | ||
192 | .timer_bit = 2, | ||
193 | .clk = "module_clk", | ||
194 | }; | ||
195 | |||
196 | static struct resource cmt2_resources[] = { | ||
197 | [0] = { | ||
198 | .name = "CMT2", | ||
199 | .start = 0x044a0030, | ||
200 | .end = 0x044a003b, | ||
201 | .flags = IORESOURCE_MEM, | ||
202 | }, | ||
203 | [1] = { | ||
204 | .start = 104, | ||
205 | .flags = IORESOURCE_IRQ, | ||
206 | }, | ||
207 | }; | ||
208 | |||
209 | static struct platform_device cmt2_device = { | ||
210 | .name = "sh_cmt", | ||
211 | .id = 2, | ||
212 | .dev = { | ||
213 | .platform_data = &cmt2_platform_data, | ||
214 | }, | ||
215 | .resource = cmt2_resources, | ||
216 | .num_resources = ARRAY_SIZE(cmt2_resources), | ||
217 | }; | ||
218 | |||
219 | static struct sh_timer_config cmt3_platform_data = { | ||
220 | .name = "CMT3", | ||
221 | .channel_offset = 0x40, | ||
222 | .timer_bit = 3, | ||
223 | .clk = "module_clk", | ||
224 | }; | ||
225 | |||
226 | static struct resource cmt3_resources[] = { | ||
227 | [0] = { | ||
228 | .name = "CMT3", | ||
229 | .start = 0x044a0040, | ||
230 | .end = 0x044a004b, | ||
231 | .flags = IORESOURCE_MEM, | ||
232 | }, | ||
233 | [1] = { | ||
234 | .start = 104, | ||
235 | .flags = IORESOURCE_IRQ, | ||
236 | }, | ||
237 | }; | ||
238 | |||
239 | static struct platform_device cmt3_device = { | ||
240 | .name = "sh_cmt", | ||
241 | .id = 3, | ||
242 | .dev = { | ||
243 | .platform_data = &cmt3_platform_data, | ||
244 | }, | ||
245 | .resource = cmt3_resources, | ||
246 | .num_resources = ARRAY_SIZE(cmt3_resources), | ||
247 | }; | ||
248 | |||
249 | static struct sh_timer_config cmt4_platform_data = { | ||
250 | .name = "CMT4", | ||
251 | .channel_offset = 0x50, | ||
252 | .timer_bit = 4, | ||
253 | .clk = "module_clk", | ||
254 | }; | ||
255 | |||
256 | static struct resource cmt4_resources[] = { | ||
257 | [0] = { | ||
258 | .name = "CMT4", | ||
259 | .start = 0x044a0050, | ||
260 | .end = 0x044a005b, | ||
261 | .flags = IORESOURCE_MEM, | ||
262 | }, | ||
263 | [1] = { | ||
264 | .start = 104, | ||
265 | .flags = IORESOURCE_IRQ, | ||
266 | }, | ||
267 | }; | ||
268 | |||
269 | static struct platform_device cmt4_device = { | ||
270 | .name = "sh_cmt", | ||
271 | .id = 4, | ||
272 | .dev = { | ||
273 | .platform_data = &cmt4_platform_data, | ||
274 | }, | ||
275 | .resource = cmt4_resources, | ||
276 | .num_resources = ARRAY_SIZE(cmt4_resources), | ||
277 | }; | ||
278 | |||
279 | static struct sh_timer_config tmu0_platform_data = { | ||
280 | .name = "TMU0", | ||
281 | .channel_offset = 0x02, | ||
282 | .timer_bit = 0, | ||
283 | .clk = "module_clk", | ||
284 | .clockevent_rating = 200, | ||
285 | }; | ||
286 | |||
287 | static struct resource tmu0_resources[] = { | ||
288 | [0] = { | ||
289 | .name = "TMU0", | ||
290 | .start = 0xa412fe94, | ||
291 | .end = 0xa412fe9f, | ||
292 | .flags = IORESOURCE_MEM, | ||
293 | }, | ||
294 | [1] = { | ||
295 | .start = 16, | ||
296 | .flags = IORESOURCE_IRQ, | ||
297 | }, | ||
298 | }; | ||
299 | |||
300 | static struct platform_device tmu0_device = { | ||
301 | .name = "sh_tmu", | ||
302 | .id = 0, | ||
303 | .dev = { | ||
304 | .platform_data = &tmu0_platform_data, | ||
305 | }, | ||
306 | .resource = tmu0_resources, | ||
307 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
308 | }; | ||
309 | |||
310 | static struct sh_timer_config tmu1_platform_data = { | ||
311 | .name = "TMU1", | ||
312 | .channel_offset = 0xe, | ||
313 | .timer_bit = 1, | ||
314 | .clk = "module_clk", | ||
315 | .clocksource_rating = 200, | ||
316 | }; | ||
317 | |||
318 | static struct resource tmu1_resources[] = { | ||
319 | [0] = { | ||
320 | .name = "TMU1", | ||
321 | .start = 0xa412fea0, | ||
322 | .end = 0xa412feab, | ||
323 | .flags = IORESOURCE_MEM, | ||
324 | }, | ||
325 | [1] = { | ||
326 | .start = 17, | ||
327 | .flags = IORESOURCE_IRQ, | ||
328 | }, | ||
329 | }; | ||
330 | |||
331 | static struct platform_device tmu1_device = { | ||
332 | .name = "sh_tmu", | ||
333 | .id = 1, | ||
334 | .dev = { | ||
335 | .platform_data = &tmu1_platform_data, | ||
336 | }, | ||
337 | .resource = tmu1_resources, | ||
338 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
339 | }; | ||
340 | |||
341 | static struct sh_timer_config tmu2_platform_data = { | ||
342 | .name = "TMU2", | ||
343 | .channel_offset = 0x1a, | ||
344 | .timer_bit = 2, | ||
345 | .clk = "module_clk", | ||
346 | }; | ||
347 | |||
348 | static struct resource tmu2_resources[] = { | ||
349 | [0] = { | ||
350 | .name = "TMU2", | ||
351 | .start = 0xa412feac, | ||
352 | .end = 0xa412feb5, | ||
353 | .flags = IORESOURCE_MEM, | ||
354 | }, | ||
355 | [1] = { | ||
356 | .start = 18, | ||
357 | .flags = IORESOURCE_IRQ, | ||
358 | }, | ||
359 | }; | ||
360 | |||
361 | static struct platform_device tmu2_device = { | ||
362 | .name = "sh_tmu", | ||
363 | .id = 2, | ||
364 | .dev = { | ||
365 | .platform_data = &tmu2_platform_data, | ||
366 | }, | ||
367 | .resource = tmu2_resources, | ||
368 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
369 | }; | ||
370 | |||
126 | static struct platform_device *sh7720_devices[] __initdata = { | 371 | static struct platform_device *sh7720_devices[] __initdata = { |
372 | &cmt0_device, | ||
373 | &cmt1_device, | ||
374 | &cmt2_device, | ||
375 | &cmt3_device, | ||
376 | &cmt4_device, | ||
377 | &tmu0_device, | ||
378 | &tmu1_device, | ||
379 | &tmu2_device, | ||
127 | &rtc_device, | 380 | &rtc_device, |
128 | &sci_device, | 381 | &sci_device, |
129 | &usb_ohci_device, | 382 | &usb_ohci_device, |
@@ -137,6 +390,23 @@ static int __init sh7720_devices_setup(void) | |||
137 | } | 390 | } |
138 | __initcall(sh7720_devices_setup); | 391 | __initcall(sh7720_devices_setup); |
139 | 392 | ||
393 | static struct platform_device *sh7720_early_devices[] __initdata = { | ||
394 | &cmt0_device, | ||
395 | &cmt1_device, | ||
396 | &cmt2_device, | ||
397 | &cmt3_device, | ||
398 | &cmt4_device, | ||
399 | &tmu0_device, | ||
400 | &tmu1_device, | ||
401 | &tmu2_device, | ||
402 | }; | ||
403 | |||
404 | void __init plat_early_device_setup(void) | ||
405 | { | ||
406 | early_platform_add_devices(sh7720_early_devices, | ||
407 | ARRAY_SIZE(sh7720_early_devices)); | ||
408 | } | ||
409 | |||
140 | enum { | 410 | enum { |
141 | UNUSED = 0, | 411 | UNUSED = 0, |
142 | 412 | ||
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 91e3677ae09d..973ff831c8a8 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -156,6 +156,12 @@ int __init detect_cpu_and_cache_system(void) | |||
156 | break; | 156 | break; |
157 | } | 157 | } |
158 | break; | 158 | break; |
159 | case 0x300b: | ||
160 | boot_cpu_data.type = CPU_SH7724; | ||
161 | boot_cpu_data.icache.ways = 4; | ||
162 | boot_cpu_data.dcache.ways = 4; | ||
163 | boot_cpu_data.flags |= CPU_HAS_LLSC | CPU_HAS_FPU; | ||
164 | break; | ||
159 | case 0x4000: /* 1st cut */ | 165 | case 0x4000: /* 1st cut */ |
160 | case 0x4001: /* 2nd cut */ | 166 | case 0x4001: /* 2nd cut */ |
161 | boot_cpu_data.type = CPU_SHX3; | 167 | boot_cpu_data.type = CPU_SHX3; |
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c index 7371abf64f80..be79fa136255 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c | |||
@@ -2,6 +2,7 @@ | |||
2 | * SH4-202 Setup | 2 | * SH4-202 Setup |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Paul Mundt | 4 | * Copyright (C) 2006 Paul Mundt |
5 | * Copyright (C) 2009 Magnus Damm | ||
5 | * | 6 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public | 7 | * This file is subject to the terms and conditions of the GNU General Public |
7 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
@@ -11,6 +12,8 @@ | |||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | ||
16 | #include <linux/io.h> | ||
14 | 17 | ||
15 | static struct plat_sci_port sci_platform_data[] = { | 18 | static struct plat_sci_port sci_platform_data[] = { |
16 | { | 19 | { |
@@ -31,8 +34,103 @@ static struct platform_device sci_device = { | |||
31 | }, | 34 | }, |
32 | }; | 35 | }; |
33 | 36 | ||
37 | static struct sh_timer_config tmu0_platform_data = { | ||
38 | .name = "TMU0", | ||
39 | .channel_offset = 0x04, | ||
40 | .timer_bit = 0, | ||
41 | .clk = "module_clk", | ||
42 | .clockevent_rating = 200, | ||
43 | }; | ||
44 | |||
45 | static struct resource tmu0_resources[] = { | ||
46 | [0] = { | ||
47 | .name = "TMU0", | ||
48 | .start = 0xffd80008, | ||
49 | .end = 0xffd80013, | ||
50 | .flags = IORESOURCE_MEM, | ||
51 | }, | ||
52 | [1] = { | ||
53 | .start = 16, | ||
54 | .flags = IORESOURCE_IRQ, | ||
55 | }, | ||
56 | }; | ||
57 | |||
58 | static struct platform_device tmu0_device = { | ||
59 | .name = "sh_tmu", | ||
60 | .id = 0, | ||
61 | .dev = { | ||
62 | .platform_data = &tmu0_platform_data, | ||
63 | }, | ||
64 | .resource = tmu0_resources, | ||
65 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
66 | }; | ||
67 | |||
68 | static struct sh_timer_config tmu1_platform_data = { | ||
69 | .name = "TMU1", | ||
70 | .channel_offset = 0x10, | ||
71 | .timer_bit = 1, | ||
72 | .clk = "module_clk", | ||
73 | .clocksource_rating = 200, | ||
74 | }; | ||
75 | |||
76 | static struct resource tmu1_resources[] = { | ||
77 | [0] = { | ||
78 | .name = "TMU1", | ||
79 | .start = 0xffd80014, | ||
80 | .end = 0xffd8001f, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | }, | ||
83 | [1] = { | ||
84 | .start = 17, | ||
85 | .flags = IORESOURCE_IRQ, | ||
86 | }, | ||
87 | }; | ||
88 | |||
89 | static struct platform_device tmu1_device = { | ||
90 | .name = "sh_tmu", | ||
91 | .id = 1, | ||
92 | .dev = { | ||
93 | .platform_data = &tmu1_platform_data, | ||
94 | }, | ||
95 | .resource = tmu1_resources, | ||
96 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
97 | }; | ||
98 | |||
99 | static struct sh_timer_config tmu2_platform_data = { | ||
100 | .name = "TMU2", | ||
101 | .channel_offset = 0x1c, | ||
102 | .timer_bit = 2, | ||
103 | .clk = "module_clk", | ||
104 | }; | ||
105 | |||
106 | static struct resource tmu2_resources[] = { | ||
107 | [0] = { | ||
108 | .name = "TMU2", | ||
109 | .start = 0xffd80020, | ||
110 | .end = 0xffd8002f, | ||
111 | .flags = IORESOURCE_MEM, | ||
112 | }, | ||
113 | [1] = { | ||
114 | .start = 18, | ||
115 | .flags = IORESOURCE_IRQ, | ||
116 | }, | ||
117 | }; | ||
118 | |||
119 | static struct platform_device tmu2_device = { | ||
120 | .name = "sh_tmu", | ||
121 | .id = 2, | ||
122 | .dev = { | ||
123 | .platform_data = &tmu2_platform_data, | ||
124 | }, | ||
125 | .resource = tmu2_resources, | ||
126 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
127 | }; | ||
128 | |||
34 | static struct platform_device *sh4202_devices[] __initdata = { | 129 | static struct platform_device *sh4202_devices[] __initdata = { |
35 | &sci_device, | 130 | &sci_device, |
131 | &tmu0_device, | ||
132 | &tmu1_device, | ||
133 | &tmu2_device, | ||
36 | }; | 134 | }; |
37 | 135 | ||
38 | static int __init sh4202_devices_setup(void) | 136 | static int __init sh4202_devices_setup(void) |
@@ -42,7 +140,71 @@ static int __init sh4202_devices_setup(void) | |||
42 | } | 140 | } |
43 | __initcall(sh4202_devices_setup); | 141 | __initcall(sh4202_devices_setup); |
44 | 142 | ||
143 | static struct platform_device *sh4202_early_devices[] __initdata = { | ||
144 | &tmu0_device, | ||
145 | &tmu1_device, | ||
146 | &tmu2_device, | ||
147 | }; | ||
148 | |||
149 | void __init plat_early_device_setup(void) | ||
150 | { | ||
151 | early_platform_add_devices(sh4202_early_devices, | ||
152 | ARRAY_SIZE(sh4202_early_devices)); | ||
153 | } | ||
154 | |||
155 | enum { | ||
156 | UNUSED = 0, | ||
157 | |||
158 | /* interrupt sources */ | ||
159 | IRL0, IRL1, IRL2, IRL3, /* only IRLM mode supported */ | ||
160 | HUDI, TMU0, TMU1, TMU2, RTC, SCIF, WDT, | ||
161 | }; | ||
162 | |||
163 | static struct intc_vect vectors[] __initdata = { | ||
164 | INTC_VECT(HUDI, 0x600), | ||
165 | INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420), | ||
166 | INTC_VECT(TMU2, 0x440), INTC_VECT(TMU2, 0x460), | ||
167 | INTC_VECT(RTC, 0x480), INTC_VECT(RTC, 0x4a0), | ||
168 | INTC_VECT(RTC, 0x4c0), | ||
169 | INTC_VECT(SCIF, 0x700), INTC_VECT(SCIF, 0x720), | ||
170 | INTC_VECT(SCIF, 0x740), INTC_VECT(SCIF, 0x760), | ||
171 | INTC_VECT(WDT, 0x560), | ||
172 | }; | ||
173 | |||
174 | static struct intc_prio_reg prio_registers[] __initdata = { | ||
175 | { 0xffd00004, 0, 16, 4, /* IPRA */ { TMU0, TMU1, TMU2, RTC } }, | ||
176 | { 0xffd00008, 0, 16, 4, /* IPRB */ { WDT, 0, 0, 0 } }, | ||
177 | { 0xffd0000c, 0, 16, 4, /* IPRC */ { 0, 0, SCIF, HUDI } }, | ||
178 | { 0xffd00010, 0, 16, 4, /* IPRD */ { IRL0, IRL1, IRL2, IRL3 } }, | ||
179 | }; | ||
180 | |||
181 | static DECLARE_INTC_DESC(intc_desc, "sh4-202", vectors, NULL, | ||
182 | NULL, prio_registers, NULL); | ||
183 | |||
184 | static struct intc_vect vectors_irlm[] __initdata = { | ||
185 | INTC_VECT(IRL0, 0x240), INTC_VECT(IRL1, 0x2a0), | ||
186 | INTC_VECT(IRL2, 0x300), INTC_VECT(IRL3, 0x360), | ||
187 | }; | ||
188 | |||
189 | static DECLARE_INTC_DESC(intc_desc_irlm, "sh4-202_irlm", vectors_irlm, NULL, | ||
190 | NULL, prio_registers, NULL); | ||
191 | |||
45 | void __init plat_irq_setup(void) | 192 | void __init plat_irq_setup(void) |
46 | { | 193 | { |
47 | /* do nothing - all IRL interrupts are handled by the board code */ | 194 | register_intc_controller(&intc_desc); |
195 | } | ||
196 | |||
197 | #define INTC_ICR 0xffd00000UL | ||
198 | #define INTC_ICR_IRLM (1<<7) | ||
199 | |||
200 | void __init plat_irq_setup_pins(int mode) | ||
201 | { | ||
202 | switch (mode) { | ||
203 | case IRQ_MODE_IRQ: /* individual interrupt mode for IRL3-0 */ | ||
204 | ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR); | ||
205 | register_intc_controller(&intc_desc_irlm); | ||
206 | break; | ||
207 | default: | ||
208 | BUG(); | ||
209 | } | ||
48 | } | 210 | } |
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c index a1c80d909cd6..09da0c187d4c 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/sh_timer.h> | ||
15 | #include <linux/serial_sci.h> | 16 | #include <linux/serial_sci.h> |
16 | 17 | ||
17 | static struct resource rtc_resources[] = { | 18 | static struct resource rtc_resources[] = { |
@@ -60,9 +61,177 @@ static struct platform_device sci_device = { | |||
60 | }, | 61 | }, |
61 | }; | 62 | }; |
62 | 63 | ||
64 | static struct sh_timer_config tmu0_platform_data = { | ||
65 | .name = "TMU0", | ||
66 | .channel_offset = 0x04, | ||
67 | .timer_bit = 0, | ||
68 | .clk = "module_clk", | ||
69 | .clockevent_rating = 200, | ||
70 | }; | ||
71 | |||
72 | static struct resource tmu0_resources[] = { | ||
73 | [0] = { | ||
74 | .name = "TMU0", | ||
75 | .start = 0xffd80008, | ||
76 | .end = 0xffd80013, | ||
77 | .flags = IORESOURCE_MEM, | ||
78 | }, | ||
79 | [1] = { | ||
80 | .start = 16, | ||
81 | .flags = IORESOURCE_IRQ, | ||
82 | }, | ||
83 | }; | ||
84 | |||
85 | static struct platform_device tmu0_device = { | ||
86 | .name = "sh_tmu", | ||
87 | .id = 0, | ||
88 | .dev = { | ||
89 | .platform_data = &tmu0_platform_data, | ||
90 | }, | ||
91 | .resource = tmu0_resources, | ||
92 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
93 | }; | ||
94 | |||
95 | static struct sh_timer_config tmu1_platform_data = { | ||
96 | .name = "TMU1", | ||
97 | .channel_offset = 0x10, | ||
98 | .timer_bit = 1, | ||
99 | .clk = "module_clk", | ||
100 | .clocksource_rating = 200, | ||
101 | }; | ||
102 | |||
103 | static struct resource tmu1_resources[] = { | ||
104 | [0] = { | ||
105 | .name = "TMU1", | ||
106 | .start = 0xffd80014, | ||
107 | .end = 0xffd8001f, | ||
108 | .flags = IORESOURCE_MEM, | ||
109 | }, | ||
110 | [1] = { | ||
111 | .start = 17, | ||
112 | .flags = IORESOURCE_IRQ, | ||
113 | }, | ||
114 | }; | ||
115 | |||
116 | static struct platform_device tmu1_device = { | ||
117 | .name = "sh_tmu", | ||
118 | .id = 1, | ||
119 | .dev = { | ||
120 | .platform_data = &tmu1_platform_data, | ||
121 | }, | ||
122 | .resource = tmu1_resources, | ||
123 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
124 | }; | ||
125 | |||
126 | static struct sh_timer_config tmu2_platform_data = { | ||
127 | .name = "TMU2", | ||
128 | .channel_offset = 0x1c, | ||
129 | .timer_bit = 2, | ||
130 | .clk = "module_clk", | ||
131 | }; | ||
132 | |||
133 | static struct resource tmu2_resources[] = { | ||
134 | [0] = { | ||
135 | .name = "TMU2", | ||
136 | .start = 0xffd80020, | ||
137 | .end = 0xffd8002f, | ||
138 | .flags = IORESOURCE_MEM, | ||
139 | }, | ||
140 | [1] = { | ||
141 | .start = 18, | ||
142 | .flags = IORESOURCE_IRQ, | ||
143 | }, | ||
144 | }; | ||
145 | |||
146 | static struct platform_device tmu2_device = { | ||
147 | .name = "sh_tmu", | ||
148 | .id = 2, | ||
149 | .dev = { | ||
150 | .platform_data = &tmu2_platform_data, | ||
151 | }, | ||
152 | .resource = tmu2_resources, | ||
153 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
154 | }; | ||
155 | |||
156 | /* SH7750R, SH7751 and SH7751R all have two extra timer channels */ | ||
157 | #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ | ||
158 | defined(CONFIG_CPU_SUBTYPE_SH7751) || \ | ||
159 | defined(CONFIG_CPU_SUBTYPE_SH7751R) | ||
160 | |||
161 | static struct sh_timer_config tmu3_platform_data = { | ||
162 | .name = "TMU3", | ||
163 | .channel_offset = 0x04, | ||
164 | .timer_bit = 0, | ||
165 | .clk = "module_clk", | ||
166 | }; | ||
167 | |||
168 | static struct resource tmu3_resources[] = { | ||
169 | [0] = { | ||
170 | .name = "TMU3", | ||
171 | .start = 0xfe100008, | ||
172 | .end = 0xfe100013, | ||
173 | .flags = IORESOURCE_MEM, | ||
174 | }, | ||
175 | [1] = { | ||
176 | .start = 72, | ||
177 | .flags = IORESOURCE_IRQ, | ||
178 | }, | ||
179 | }; | ||
180 | |||
181 | static struct platform_device tmu3_device = { | ||
182 | .name = "sh_tmu", | ||
183 | .id = 3, | ||
184 | .dev = { | ||
185 | .platform_data = &tmu3_platform_data, | ||
186 | }, | ||
187 | .resource = tmu3_resources, | ||
188 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
189 | }; | ||
190 | |||
191 | static struct sh_timer_config tmu4_platform_data = { | ||
192 | .name = "TMU4", | ||
193 | .channel_offset = 0x10, | ||
194 | .timer_bit = 1, | ||
195 | .clk = "module_clk", | ||
196 | }; | ||
197 | |||
198 | static struct resource tmu4_resources[] = { | ||
199 | [0] = { | ||
200 | .name = "TMU4", | ||
201 | .start = 0xfe100014, | ||
202 | .end = 0xfe10001f, | ||
203 | .flags = IORESOURCE_MEM, | ||
204 | }, | ||
205 | [1] = { | ||
206 | .start = 76, | ||
207 | .flags = IORESOURCE_IRQ, | ||
208 | }, | ||
209 | }; | ||
210 | |||
211 | static struct platform_device tmu4_device = { | ||
212 | .name = "sh_tmu", | ||
213 | .id = 4, | ||
214 | .dev = { | ||
215 | .platform_data = &tmu4_platform_data, | ||
216 | }, | ||
217 | .resource = tmu4_resources, | ||
218 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
219 | }; | ||
220 | |||
221 | #endif | ||
222 | |||
63 | static struct platform_device *sh7750_devices[] __initdata = { | 223 | static struct platform_device *sh7750_devices[] __initdata = { |
64 | &rtc_device, | 224 | &rtc_device, |
65 | &sci_device, | 225 | &sci_device, |
226 | &tmu0_device, | ||
227 | &tmu1_device, | ||
228 | &tmu2_device, | ||
229 | #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ | ||
230 | defined(CONFIG_CPU_SUBTYPE_SH7751) || \ | ||
231 | defined(CONFIG_CPU_SUBTYPE_SH7751R) | ||
232 | &tmu3_device, | ||
233 | &tmu4_device, | ||
234 | #endif | ||
66 | }; | 235 | }; |
67 | 236 | ||
68 | static int __init sh7750_devices_setup(void) | 237 | static int __init sh7750_devices_setup(void) |
@@ -72,6 +241,24 @@ static int __init sh7750_devices_setup(void) | |||
72 | } | 241 | } |
73 | __initcall(sh7750_devices_setup); | 242 | __initcall(sh7750_devices_setup); |
74 | 243 | ||
244 | static struct platform_device *sh7750_early_devices[] __initdata = { | ||
245 | &tmu0_device, | ||
246 | &tmu1_device, | ||
247 | &tmu2_device, | ||
248 | #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ | ||
249 | defined(CONFIG_CPU_SUBTYPE_SH7751) || \ | ||
250 | defined(CONFIG_CPU_SUBTYPE_SH7751R) | ||
251 | &tmu3_device, | ||
252 | &tmu4_device, | ||
253 | #endif | ||
254 | }; | ||
255 | |||
256 | void __init plat_early_device_setup(void) | ||
257 | { | ||
258 | early_platform_add_devices(sh7750_early_devices, | ||
259 | ARRAY_SIZE(sh7750_early_devices)); | ||
260 | } | ||
261 | |||
75 | enum { | 262 | enum { |
76 | UNUSED = 0, | 263 | UNUSED = 0, |
77 | 264 | ||
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index d9bdc931ac09..cd097335758f 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/platform_device.h> | 10 | #include <linux/platform_device.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/sh_timer.h> | ||
13 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
14 | #include <linux/io.h> | 15 | #include <linux/io.h> |
15 | 16 | ||
@@ -18,10 +19,7 @@ enum { | |||
18 | 19 | ||
19 | /* interrupt sources */ | 20 | /* interrupt sources */ |
20 | IRL0, IRL1, IRL2, IRL3, | 21 | IRL0, IRL1, IRL2, IRL3, |
21 | HUDI, GPIOI, | 22 | HUDI, GPIOI, DMAC, |
22 | DMAC_DMTE0, DMAC_DMTE1, DMAC_DMTE2, DMAC_DMTE3, | ||
23 | DMAC_DMTE4, DMAC_DMTE5, DMAC_DMTE6, DMAC_DMTE7, | ||
24 | DMAC_DMAE, | ||
25 | IRQ4, IRQ5, IRQ6, IRQ7, | 23 | IRQ4, IRQ5, IRQ6, IRQ7, |
26 | HCAN20, HCAN21, | 24 | HCAN20, HCAN21, |
27 | SSI0, SSI1, | 25 | SSI0, SSI1, |
@@ -36,21 +34,20 @@ enum { | |||
36 | HSPI, | 34 | HSPI, |
37 | MMCIF0, MMCIF1, MMCIF2, MMCIF3, | 35 | MMCIF0, MMCIF1, MMCIF2, MMCIF3, |
38 | MFI, ADC, CMT, | 36 | MFI, ADC, CMT, |
39 | TMU0, TMU1, TMU2_TUNI, TMU2_TICPI, | 37 | TMU0, TMU1, TMU2, |
40 | WDT, | 38 | WDT, REF, |
41 | REF_RCMI, REF_ROVI, | ||
42 | 39 | ||
43 | /* interrupt groups */ | 40 | /* interrupt groups */ |
44 | DMAC, DMABRG, SCIF0, SCIF1, SCIF2, SIM, MMCIF, TMU2, REF, | 41 | DMABRG, SCIF0, SCIF1, SCIF2, SIM, MMCIF, |
45 | }; | 42 | }; |
46 | 43 | ||
47 | static struct intc_vect vectors[] __initdata = { | 44 | static struct intc_vect vectors[] __initdata = { |
48 | INTC_VECT(HUDI, 0x600), INTC_VECT(GPIOI, 0x620), | 45 | INTC_VECT(HUDI, 0x600), INTC_VECT(GPIOI, 0x620), |
49 | INTC_VECT(DMAC_DMTE0, 0x640), INTC_VECT(DMAC_DMTE1, 0x660), | 46 | INTC_VECT(DMAC, 0x640), INTC_VECT(DMAC, 0x660), |
50 | INTC_VECT(DMAC_DMTE2, 0x680), INTC_VECT(DMAC_DMTE3, 0x6a0), | 47 | INTC_VECT(DMAC, 0x680), INTC_VECT(DMAC, 0x6a0), |
51 | INTC_VECT(DMAC_DMTE4, 0x780), INTC_VECT(DMAC_DMTE5, 0x7a0), | 48 | INTC_VECT(DMAC, 0x780), INTC_VECT(DMAC, 0x7a0), |
52 | INTC_VECT(DMAC_DMTE6, 0x7c0), INTC_VECT(DMAC_DMTE7, 0x7e0), | 49 | INTC_VECT(DMAC, 0x7c0), INTC_VECT(DMAC, 0x7e0), |
53 | INTC_VECT(DMAC_DMAE, 0x6c0), | 50 | INTC_VECT(DMAC, 0x6c0), |
54 | INTC_VECT(IRQ4, 0x800), INTC_VECT(IRQ5, 0x820), | 51 | INTC_VECT(IRQ4, 0x800), INTC_VECT(IRQ5, 0x820), |
55 | INTC_VECT(IRQ6, 0x840), INTC_VECT(IRQ6, 0x860), | 52 | INTC_VECT(IRQ6, 0x840), INTC_VECT(IRQ6, 0x860), |
56 | INTC_VECT(HCAN20, 0x900), INTC_VECT(HCAN21, 0x920), | 53 | INTC_VECT(HCAN20, 0x900), INTC_VECT(HCAN21, 0x920), |
@@ -74,23 +71,18 @@ static struct intc_vect vectors[] __initdata = { | |||
74 | INTC_VECT(MFI, 0xe80), /* 0xf80 according to data sheet */ | 71 | INTC_VECT(MFI, 0xe80), /* 0xf80 according to data sheet */ |
75 | INTC_VECT(ADC, 0xf80), INTC_VECT(CMT, 0xfa0), | 72 | INTC_VECT(ADC, 0xf80), INTC_VECT(CMT, 0xfa0), |
76 | INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420), | 73 | INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420), |
77 | INTC_VECT(TMU2_TUNI, 0x440), INTC_VECT(TMU2_TICPI, 0x460), | 74 | INTC_VECT(TMU2, 0x440), INTC_VECT(TMU2, 0x460), |
78 | INTC_VECT(WDT, 0x560), | 75 | INTC_VECT(WDT, 0x560), |
79 | INTC_VECT(REF_RCMI, 0x580), INTC_VECT(REF_ROVI, 0x5a0), | 76 | INTC_VECT(REF, 0x580), INTC_VECT(REF, 0x5a0), |
80 | }; | 77 | }; |
81 | 78 | ||
82 | static struct intc_group groups[] __initdata = { | 79 | static struct intc_group groups[] __initdata = { |
83 | INTC_GROUP(DMAC, DMAC_DMTE0, DMAC_DMTE1, DMAC_DMTE2, | ||
84 | DMAC_DMTE3, DMAC_DMTE4, DMAC_DMTE5, | ||
85 | DMAC_DMTE6, DMAC_DMTE7, DMAC_DMAE), | ||
86 | INTC_GROUP(DMABRG, DMABRG0, DMABRG1, DMABRG2), | 80 | INTC_GROUP(DMABRG, DMABRG0, DMABRG1, DMABRG2), |
87 | INTC_GROUP(SCIF0, SCIF0_ERI, SCIF0_RXI, SCIF0_BRI, SCIF0_TXI), | 81 | INTC_GROUP(SCIF0, SCIF0_ERI, SCIF0_RXI, SCIF0_BRI, SCIF0_TXI), |
88 | INTC_GROUP(SCIF1, SCIF1_ERI, SCIF1_RXI, SCIF1_BRI, SCIF1_TXI), | 82 | INTC_GROUP(SCIF1, SCIF1_ERI, SCIF1_RXI, SCIF1_BRI, SCIF1_TXI), |
89 | INTC_GROUP(SCIF2, SCIF2_ERI, SCIF2_RXI, SCIF2_BRI, SCIF2_TXI), | 83 | INTC_GROUP(SCIF2, SCIF2_ERI, SCIF2_RXI, SCIF2_BRI, SCIF2_TXI), |
90 | INTC_GROUP(SIM, SIM_ERI, SIM_RXI, SIM_TXI, SIM_TEI), | 84 | INTC_GROUP(SIM, SIM_ERI, SIM_RXI, SIM_TXI, SIM_TEI), |
91 | INTC_GROUP(MMCIF, MMCIF0, MMCIF1, MMCIF2, MMCIF3), | 85 | INTC_GROUP(MMCIF, MMCIF0, MMCIF1, MMCIF2, MMCIF3), |
92 | INTC_GROUP(TMU2, TMU2_TUNI, TMU2_TICPI), | ||
93 | INTC_GROUP(REF, REF_RCMI, REF_ROVI), | ||
94 | }; | 86 | }; |
95 | 87 | ||
96 | static struct intc_mask_reg mask_registers[] __initdata = { | 88 | static struct intc_mask_reg mask_registers[] __initdata = { |
@@ -168,8 +160,104 @@ static struct platform_device sci_device = { | |||
168 | }, | 160 | }, |
169 | }; | 161 | }; |
170 | 162 | ||
163 | static struct sh_timer_config tmu0_platform_data = { | ||
164 | .name = "TMU0", | ||
165 | .channel_offset = 0x04, | ||
166 | .timer_bit = 0, | ||
167 | .clk = "module_clk", | ||
168 | .clockevent_rating = 200, | ||
169 | }; | ||
170 | |||
171 | static struct resource tmu0_resources[] = { | ||
172 | [0] = { | ||
173 | .name = "TMU0", | ||
174 | .start = 0xffd80008, | ||
175 | .end = 0xffd80013, | ||
176 | .flags = IORESOURCE_MEM, | ||
177 | }, | ||
178 | [1] = { | ||
179 | .start = 16, | ||
180 | .flags = IORESOURCE_IRQ, | ||
181 | }, | ||
182 | }; | ||
183 | |||
184 | static struct platform_device tmu0_device = { | ||
185 | .name = "sh_tmu", | ||
186 | .id = 0, | ||
187 | .dev = { | ||
188 | .platform_data = &tmu0_platform_data, | ||
189 | }, | ||
190 | .resource = tmu0_resources, | ||
191 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
192 | }; | ||
193 | |||
194 | static struct sh_timer_config tmu1_platform_data = { | ||
195 | .name = "TMU1", | ||
196 | .channel_offset = 0x10, | ||
197 | .timer_bit = 1, | ||
198 | .clk = "module_clk", | ||
199 | .clocksource_rating = 200, | ||
200 | }; | ||
201 | |||
202 | static struct resource tmu1_resources[] = { | ||
203 | [0] = { | ||
204 | .name = "TMU1", | ||
205 | .start = 0xffd80014, | ||
206 | .end = 0xffd8001f, | ||
207 | .flags = IORESOURCE_MEM, | ||
208 | }, | ||
209 | [1] = { | ||
210 | .start = 17, | ||
211 | .flags = IORESOURCE_IRQ, | ||
212 | }, | ||
213 | }; | ||
214 | |||
215 | static struct platform_device tmu1_device = { | ||
216 | .name = "sh_tmu", | ||
217 | .id = 1, | ||
218 | .dev = { | ||
219 | .platform_data = &tmu1_platform_data, | ||
220 | }, | ||
221 | .resource = tmu1_resources, | ||
222 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
223 | }; | ||
224 | |||
225 | static struct sh_timer_config tmu2_platform_data = { | ||
226 | .name = "TMU2", | ||
227 | .channel_offset = 0x1c, | ||
228 | .timer_bit = 2, | ||
229 | .clk = "module_clk", | ||
230 | }; | ||
231 | |||
232 | static struct resource tmu2_resources[] = { | ||
233 | [0] = { | ||
234 | .name = "TMU2", | ||
235 | .start = 0xffd80020, | ||
236 | .end = 0xffd8002f, | ||
237 | .flags = IORESOURCE_MEM, | ||
238 | }, | ||
239 | [1] = { | ||
240 | .start = 18, | ||
241 | .flags = IORESOURCE_IRQ, | ||
242 | }, | ||
243 | }; | ||
244 | |||
245 | static struct platform_device tmu2_device = { | ||
246 | .name = "sh_tmu", | ||
247 | .id = 2, | ||
248 | .dev = { | ||
249 | .platform_data = &tmu2_platform_data, | ||
250 | }, | ||
251 | .resource = tmu2_resources, | ||
252 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
253 | }; | ||
254 | |||
255 | |||
171 | static struct platform_device *sh7760_devices[] __initdata = { | 256 | static struct platform_device *sh7760_devices[] __initdata = { |
172 | &sci_device, | 257 | &sci_device, |
258 | &tmu0_device, | ||
259 | &tmu1_device, | ||
260 | &tmu2_device, | ||
173 | }; | 261 | }; |
174 | 262 | ||
175 | static int __init sh7760_devices_setup(void) | 263 | static int __init sh7760_devices_setup(void) |
@@ -179,6 +267,18 @@ static int __init sh7760_devices_setup(void) | |||
179 | } | 267 | } |
180 | __initcall(sh7760_devices_setup); | 268 | __initcall(sh7760_devices_setup); |
181 | 269 | ||
270 | static struct platform_device *sh7760_early_devices[] __initdata = { | ||
271 | &tmu0_device, | ||
272 | &tmu1_device, | ||
273 | &tmu2_device, | ||
274 | }; | ||
275 | |||
276 | void __init plat_early_device_setup(void) | ||
277 | { | ||
278 | early_platform_add_devices(sh7760_early_devices, | ||
279 | ARRAY_SIZE(sh7760_early_devices)); | ||
280 | } | ||
281 | |||
182 | #define INTC_ICR 0xffd00000UL | 282 | #define INTC_ICR 0xffd00000UL |
183 | #define INTC_ICR_IRLM (1 << 7) | 283 | #define INTC_ICR_IRLM (1 << 7) |
184 | 284 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/Makefile b/arch/sh/kernel/cpu/sh4a/Makefile index 1a92361feeb9..afd6fba47849 100644 --- a/arch/sh/kernel/cpu/sh4a/Makefile +++ b/arch/sh/kernel/cpu/sh4a/Makefile | |||
@@ -11,6 +11,7 @@ obj-$(CONFIG_CPU_SUBTYPE_SH7786) += setup-sh7786.o | |||
11 | obj-$(CONFIG_CPU_SUBTYPE_SH7343) += setup-sh7343.o | 11 | obj-$(CONFIG_CPU_SUBTYPE_SH7343) += setup-sh7343.o |
12 | obj-$(CONFIG_CPU_SUBTYPE_SH7722) += setup-sh7722.o | 12 | obj-$(CONFIG_CPU_SUBTYPE_SH7722) += setup-sh7722.o |
13 | obj-$(CONFIG_CPU_SUBTYPE_SH7723) += setup-sh7723.o | 13 | obj-$(CONFIG_CPU_SUBTYPE_SH7723) += setup-sh7723.o |
14 | obj-$(CONFIG_CPU_SUBTYPE_SH7724) += setup-sh7724.o | ||
14 | obj-$(CONFIG_CPU_SUBTYPE_SH7366) += setup-sh7366.o | 15 | obj-$(CONFIG_CPU_SUBTYPE_SH7366) += setup-sh7366.o |
15 | obj-$(CONFIG_CPU_SUBTYPE_SHX3) += setup-shx3.o | 16 | obj-$(CONFIG_CPU_SUBTYPE_SHX3) += setup-shx3.o |
16 | 17 | ||
@@ -26,12 +27,14 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7786) := clock-sh7786.o | |||
26 | clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o | 27 | clock-$(CONFIG_CPU_SUBTYPE_SH7343) := clock-sh7722.o |
27 | clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o | 28 | clock-$(CONFIG_CPU_SUBTYPE_SH7722) := clock-sh7722.o |
28 | clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o | 29 | clock-$(CONFIG_CPU_SUBTYPE_SH7723) := clock-sh7722.o |
30 | clock-$(CONFIG_CPU_SUBTYPE_SH7724) := clock-sh7722.o | ||
29 | clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o | 31 | clock-$(CONFIG_CPU_SUBTYPE_SH7366) := clock-sh7722.o |
30 | clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o | 32 | clock-$(CONFIG_CPU_SUBTYPE_SHX3) := clock-shx3.o |
31 | 33 | ||
32 | # Pinmux setup | 34 | # Pinmux setup |
33 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7722) := pinmux-sh7722.o | 35 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7722) := pinmux-sh7722.o |
34 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7723) := pinmux-sh7723.o | 36 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7723) := pinmux-sh7723.o |
37 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7724) := pinmux-sh7724.o | ||
35 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7785) := pinmux-sh7785.o | 38 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7785) := pinmux-sh7785.o |
36 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7786) := pinmux-sh7786.o | 39 | pinmux-$(CONFIG_CPU_SUBTYPE_SH7786) := pinmux-sh7786.o |
37 | 40 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index 0e174af21874..1ccdfc561fef 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -130,6 +130,12 @@ static void adjust_clocks(int originate, int *l, unsigned long v[], | |||
130 | * is quite simple.. | 130 | * is quite simple.. |
131 | */ | 131 | */ |
132 | 132 | ||
133 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
134 | #define STCPLL(frqcr) ((((frqcr >> 24) & 0x3f) + 1) * 2) | ||
135 | #else | ||
136 | #define STCPLL(frqcr) (((frqcr >> 24) & 0x1f) + 1) | ||
137 | #endif | ||
138 | |||
133 | /* | 139 | /* |
134 | * Instead of having two separate multipliers/divisors set, like this: | 140 | * Instead of having two separate multipliers/divisors set, like this: |
135 | * | 141 | * |
@@ -139,13 +145,17 @@ static void adjust_clocks(int originate, int *l, unsigned long v[], | |||
139 | * I created the divisors2 array, which is used to calculate rate like | 145 | * I created the divisors2 array, which is used to calculate rate like |
140 | * rate = parent * 2 / divisors2[ divisor ]; | 146 | * rate = parent * 2 / divisors2[ divisor ]; |
141 | */ | 147 | */ |
148 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
149 | static int divisors2[] = { 4, 1, 8, 12, 16, 24, 32, 1, 48, 64, 72, 96, 1, 144 }; | ||
150 | #else | ||
142 | static int divisors2[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40 }; | 151 | static int divisors2[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40 }; |
152 | #endif | ||
143 | 153 | ||
144 | static void master_clk_recalc(struct clk *clk) | 154 | static void master_clk_recalc(struct clk *clk) |
145 | { | 155 | { |
146 | unsigned frqcr = ctrl_inl(FRQCR); | 156 | unsigned frqcr = ctrl_inl(FRQCR); |
147 | 157 | ||
148 | clk->rate = CONFIG_SH_PCLK_FREQ * (((frqcr >> 24) & 0x1f) + 1); | 158 | clk->rate = CONFIG_SH_PCLK_FREQ * STCPLL(frqcr); |
149 | } | 159 | } |
150 | 160 | ||
151 | static void master_clk_init(struct clk *clk) | 161 | static void master_clk_init(struct clk *clk) |
@@ -161,13 +171,30 @@ static void module_clk_recalc(struct clk *clk) | |||
161 | { | 171 | { |
162 | unsigned long frqcr = ctrl_inl(FRQCR); | 172 | unsigned long frqcr = ctrl_inl(FRQCR); |
163 | 173 | ||
164 | clk->rate = clk->parent->rate / (((frqcr >> 24) & 0x1f) + 1); | 174 | clk->rate = clk->parent->rate / STCPLL(frqcr); |
165 | } | 175 | } |
166 | 176 | ||
177 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
178 | #define MASTERDIVS { 12, 16, 24, 30, 32, 36, 48 } | ||
179 | #define STCMASK 0x3f | ||
180 | #define DIVCALC(div) (div/2-1) | ||
181 | #define FRQCRKICK 0x80000000 | ||
182 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | ||
183 | #define MASTERDIVS { 6, 8, 12, 16 } | ||
184 | #define STCMASK 0x1f | ||
185 | #define DIVCALC(div) (div-1) | ||
186 | #define FRQCRKICK 0x00000000 | ||
187 | #else | ||
188 | #define MASTERDIVS { 2, 3, 4, 6, 8, 16 } | ||
189 | #define STCMASK 0x1f | ||
190 | #define DIVCALC(div) (div-1) | ||
191 | #define FRQCRKICK 0x00000000 | ||
192 | #endif | ||
193 | |||
167 | static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) | 194 | static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) |
168 | { | 195 | { |
169 | int div = rate / clk->rate; | 196 | int div = rate / clk->rate; |
170 | int master_divs[] = { 2, 3, 4, 6, 8, 16 }; | 197 | int master_divs[] = MASTERDIVS; |
171 | int index; | 198 | int index; |
172 | unsigned long frqcr; | 199 | unsigned long frqcr; |
173 | 200 | ||
@@ -180,8 +207,9 @@ static int master_clk_setrate(struct clk *clk, unsigned long rate, int id) | |||
180 | div = master_divs[index - 1]; | 207 | div = master_divs[index - 1]; |
181 | 208 | ||
182 | frqcr = ctrl_inl(FRQCR); | 209 | frqcr = ctrl_inl(FRQCR); |
183 | frqcr &= ~(0xF << 24); | 210 | frqcr &= ~(STCMASK << 24); |
184 | frqcr |= ( (div-1) << 24); | 211 | frqcr |= (DIVCALC(div) << 24); |
212 | frqcr |= FRQCRKICK; | ||
185 | ctrl_outl(frqcr, FRQCR); | 213 | ctrl_outl(frqcr, FRQCR); |
186 | 214 | ||
187 | return 0; | 215 | return 0; |
@@ -377,6 +405,7 @@ static int sh7722_frqcr_set_rate(struct clk *clk, unsigned long rate, | |||
377 | /* clear FRQCR bits */ | 405 | /* clear FRQCR bits */ |
378 | frqcr &= ~(ctx.mask << ctx.shift); | 406 | frqcr &= ~(ctx.mask << ctx.shift); |
379 | frqcr |= div << ctx.shift; | 407 | frqcr |= div << ctx.shift; |
408 | frqcr |= FRQCRKICK; | ||
380 | 409 | ||
381 | /* ...and perform actual change */ | 410 | /* ...and perform actual change */ |
382 | ctrl_outl(frqcr, FRQCR); | 411 | ctrl_outl(frqcr, FRQCR); |
@@ -542,8 +571,8 @@ static struct clk sh7722_r_clock = { | |||
542 | .flags = CLK_RATE_PROPAGATES, | 571 | .flags = CLK_RATE_PROPAGATES, |
543 | }; | 572 | }; |
544 | 573 | ||
545 | #ifndef CONFIG_CPU_SUBTYPE_SH7343 | 574 | #if !defined(CONFIG_CPU_SUBTYPE_SH7343) &&\ |
546 | 575 | !defined(CONFIG_CPU_SUBTYPE_SH7724) | |
547 | /* | 576 | /* |
548 | * these three clocks - SIU A, SIU B, IrDA - share the same clk_ops | 577 | * these three clocks - SIU A, SIU B, IrDA - share the same clk_ops |
549 | * methods of clk_ops determine which register they should access by | 578 | * methods of clk_ops determine which register they should access by |
@@ -560,15 +589,16 @@ static struct clk sh7722_siu_b_clock = { | |||
560 | .arch_flags = SCLKBCR, | 589 | .arch_flags = SCLKBCR, |
561 | .ops = &sh7722_siu_clk_ops, | 590 | .ops = &sh7722_siu_clk_ops, |
562 | }; | 591 | }; |
592 | #endif /* CONFIG_CPU_SUBTYPE_SH7343, SH7724 */ | ||
563 | 593 | ||
564 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) | 594 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) ||\ |
595 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
565 | static struct clk sh7722_irda_clock = { | 596 | static struct clk sh7722_irda_clock = { |
566 | .name = "irda_clk", | 597 | .name = "irda_clk", |
567 | .arch_flags = IrDACLKCR, | 598 | .arch_flags = IrDACLKCR, |
568 | .ops = &sh7722_siu_clk_ops, | 599 | .ops = &sh7722_siu_clk_ops, |
569 | }; | 600 | }; |
570 | #endif | 601 | #endif |
571 | #endif /* CONFIG_CPU_SUBTYPE_SH7343 */ | ||
572 | 602 | ||
573 | static struct clk sh7722_video_clock = { | 603 | static struct clk sh7722_video_clock = { |
574 | .name = "video_clk", | 604 | .name = "video_clk", |
@@ -715,6 +745,61 @@ static struct clk sh7722_mstpcr_clocks[] = { | |||
715 | MSTPCR("vpu0", "bus_clk", 2, 1), | 745 | MSTPCR("vpu0", "bus_clk", 2, 1), |
716 | MSTPCR("lcdc0", "bus_clk", 2, 0), | 746 | MSTPCR("lcdc0", "bus_clk", 2, 0), |
717 | #endif | 747 | #endif |
748 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
749 | /* See Datasheet : Overview -> Block Diagram */ | ||
750 | MSTPCR("tlb0", "cpu_clk", 0, 31), | ||
751 | MSTPCR("ic0", "cpu_clk", 0, 30), | ||
752 | MSTPCR("oc0", "cpu_clk", 0, 29), | ||
753 | MSTPCR("rs0", "bus_clk", 0, 28), | ||
754 | MSTPCR("ilmem0", "cpu_clk", 0, 27), | ||
755 | MSTPCR("l2c0", "sh_clk", 0, 26), | ||
756 | MSTPCR("fpu0", "cpu_clk", 0, 24), | ||
757 | MSTPCR("intc0", "peripheral_clk", 0, 22), | ||
758 | MSTPCR("dmac0", "bus_clk", 0, 21), | ||
759 | MSTPCR("sh0", "sh_clk", 0, 20), | ||
760 | MSTPCR("hudi0", "peripheral_clk", 0, 19), | ||
761 | MSTPCR("ubc0", "cpu_clk", 0, 17), | ||
762 | MSTPCR("tmu0", "peripheral_clk", 0, 15), | ||
763 | MSTPCR("cmt0", "r_clk", 0, 14), | ||
764 | MSTPCR("rwdt0", "r_clk", 0, 13), | ||
765 | MSTPCR("dmac1", "bus_clk", 0, 12), | ||
766 | MSTPCR("tmu1", "peripheral_clk", 0, 10), | ||
767 | MSTPCR("scif0", "peripheral_clk", 0, 9), | ||
768 | MSTPCR("scif1", "peripheral_clk", 0, 8), | ||
769 | MSTPCR("scif2", "peripheral_clk", 0, 7), | ||
770 | MSTPCR("scif3", "bus_clk", 0, 6), | ||
771 | MSTPCR("scif4", "bus_clk", 0, 5), | ||
772 | MSTPCR("scif5", "bus_clk", 0, 4), | ||
773 | MSTPCR("msiof0", "bus_clk", 0, 2), | ||
774 | MSTPCR("msiof1", "bus_clk", 0, 1), | ||
775 | MSTPCR("keysc0", "r_clk", 1, 12), | ||
776 | MSTPCR("rtc0", "r_clk", 1, 11), | ||
777 | MSTPCR("i2c0", "peripheral_clk", 1, 9), | ||
778 | MSTPCR("i2c1", "peripheral_clk", 1, 8), | ||
779 | MSTPCR("mmc0", "bus_clk", 2, 29), | ||
780 | MSTPCR("eth0", "bus_clk", 2, 28), | ||
781 | MSTPCR("atapi0", "bus_clk", 2, 26), | ||
782 | MSTPCR("tpu0", "bus_clk", 2, 25), | ||
783 | MSTPCR("irda0", "peripheral_clk", 2, 24), | ||
784 | MSTPCR("tsif0", "bus_clk", 2, 22), | ||
785 | MSTPCR("usb1", "bus_clk", 2, 21), | ||
786 | MSTPCR("usb0", "bus_clk", 2, 20), | ||
787 | MSTPCR("2dg0", "bus_clk", 2, 19), | ||
788 | MSTPCR("sdhi0", "bus_clk", 2, 18), | ||
789 | MSTPCR("sdhi1", "bus_clk", 2, 17), | ||
790 | MSTPCR("veu1", "bus_clk", 2, 15), | ||
791 | MSTPCR("ceu1", "bus_clk", 2, 13), | ||
792 | MSTPCR("beu1", "bus_clk", 2, 12), | ||
793 | MSTPCR("2ddmac0", "sh_clk", 2, 10), | ||
794 | MSTPCR("spu0", "bus_clk", 2, 9), | ||
795 | MSTPCR("jpu0", "bus_clk", 2, 6), | ||
796 | MSTPCR("vou0", "bus_clk", 2, 5), | ||
797 | MSTPCR("beu0", "bus_clk", 2, 4), | ||
798 | MSTPCR("ceu0", "bus_clk", 2, 3), | ||
799 | MSTPCR("veu0", "bus_clk", 2, 2), | ||
800 | MSTPCR("vpu0", "bus_clk", 2, 1), | ||
801 | MSTPCR("lcdc0", "bus_clk", 2, 0), | ||
802 | #endif | ||
718 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) | 803 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) |
719 | MSTPCR("uram0", "umem_clk", 0, 28), | 804 | MSTPCR("uram0", "umem_clk", 0, 28), |
720 | MSTPCR("xymem0", "bus_clk", 0, 26), | 805 | MSTPCR("xymem0", "bus_clk", 0, 26), |
@@ -786,12 +871,15 @@ static struct clk *sh7722_clocks[] = { | |||
786 | &sh7722_sh_clock, | 871 | &sh7722_sh_clock, |
787 | &sh7722_peripheral_clock, | 872 | &sh7722_peripheral_clock, |
788 | &sh7722_sdram_clock, | 873 | &sh7722_sdram_clock, |
789 | #ifndef CONFIG_CPU_SUBTYPE_SH7343 | 874 | #if !defined(CONFIG_CPU_SUBTYPE_SH7343) &&\ |
875 | !defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
790 | &sh7722_siu_a_clock, | 876 | &sh7722_siu_a_clock, |
791 | &sh7722_siu_b_clock, | 877 | &sh7722_siu_b_clock, |
792 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) | ||
793 | &sh7722_irda_clock, | ||
794 | #endif | 878 | #endif |
879 | /* 7724 should support FSI clock */ | ||
880 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) || \ | ||
881 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
882 | &sh7722_irda_clock, | ||
795 | #endif | 883 | #endif |
796 | &sh7722_video_clock, | 884 | &sh7722_video_clock, |
797 | }; | 885 | }; |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c new file mode 100644 index 000000000000..1af0f9586379 --- /dev/null +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | |||
@@ -0,0 +1,2230 @@ | |||
1 | /* | ||
2 | * SH7724 Pinmux | ||
3 | * | ||
4 | * Copyright (C) 2009 Renesas Solutions Corp. | ||
5 | * | ||
6 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
7 | * | ||
8 | * Based on SH7723 Pinmux | ||
9 | * Copyright (C) 2008 Magnus Damm | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/gpio.h> | ||
19 | #include <cpu/sh7724.h> | ||
20 | |||
21 | enum { | ||
22 | PINMUX_RESERVED = 0, | ||
23 | |||
24 | PINMUX_DATA_BEGIN, | ||
25 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
26 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA, | ||
27 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
28 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA, | ||
29 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
30 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA, | ||
31 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
32 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA, | ||
33 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
34 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA, | ||
35 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
36 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA, | ||
37 | PTG5_DATA, PTG4_DATA, | ||
38 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA, | ||
39 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
40 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA, | ||
41 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, | ||
42 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA, | ||
43 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
44 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA, | ||
45 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
46 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA, | ||
47 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
48 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA, | ||
49 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
50 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA, | ||
51 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
52 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA, | ||
53 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
54 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA, | ||
55 | PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
56 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA, | ||
57 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
58 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA, | ||
59 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
60 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA, | ||
61 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
62 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA, | ||
63 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
64 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA, | ||
65 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
66 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA, | ||
67 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
68 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA, | ||
69 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
70 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA, | ||
71 | PINMUX_DATA_END, | ||
72 | |||
73 | PINMUX_INPUT_BEGIN, | ||
74 | PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN, | ||
75 | PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN, | ||
76 | PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN, | ||
77 | PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN, | ||
78 | PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN, | ||
79 | PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN, | ||
80 | PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN, | ||
81 | PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN, | ||
82 | PTE7_IN, PTE6_IN, PTE5_IN, PTE4_IN, | ||
83 | PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN, | ||
84 | PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN, | ||
85 | PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN, | ||
86 | PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN, | ||
87 | PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN, | ||
88 | PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN, | ||
89 | PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN, | ||
90 | PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN, | ||
91 | PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN, | ||
92 | PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN, | ||
93 | PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN, | ||
94 | PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN, | ||
95 | PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN, | ||
96 | PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN, | ||
97 | PTQ7_IN, PTQ6_IN, PTQ5_IN, PTQ4_IN, | ||
98 | PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN, | ||
99 | PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN, | ||
100 | PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN, | ||
101 | PTS6_IN, PTS5_IN, PTS4_IN, | ||
102 | PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN, | ||
103 | PTT7_IN, PTT6_IN, PTT5_IN, PTT4_IN, | ||
104 | PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN, | ||
105 | PTU7_IN, PTU6_IN, PTU5_IN, PTU4_IN, | ||
106 | PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN, | ||
107 | PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN, | ||
108 | PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN, | ||
109 | PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN, | ||
110 | PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN, | ||
111 | PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN, | ||
112 | PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN, | ||
113 | PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN, | ||
114 | PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN, | ||
115 | PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN, | ||
116 | PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN, | ||
117 | PINMUX_INPUT_END, | ||
118 | |||
119 | PINMUX_INPUT_PULLUP_BEGIN, | ||
120 | PTA7_IN_PU, PTA6_IN_PU, PTA5_IN_PU, PTA4_IN_PU, | ||
121 | PTA3_IN_PU, PTA2_IN_PU, PTA1_IN_PU, PTA0_IN_PU, | ||
122 | PTB7_IN_PU, PTB6_IN_PU, PTB5_IN_PU, PTB4_IN_PU, | ||
123 | PTB3_IN_PU, PTB2_IN_PU, PTB1_IN_PU, PTB0_IN_PU, | ||
124 | PTC7_IN_PU, PTC6_IN_PU, PTC5_IN_PU, PTC4_IN_PU, | ||
125 | PTC3_IN_PU, PTC2_IN_PU, PTC1_IN_PU, PTC0_IN_PU, | ||
126 | PTD7_IN_PU, PTD6_IN_PU, PTD5_IN_PU, PTD4_IN_PU, | ||
127 | PTD3_IN_PU, PTD2_IN_PU, PTD1_IN_PU, PTD0_IN_PU, | ||
128 | PTE7_IN_PU, PTE6_IN_PU, PTE5_IN_PU, PTE4_IN_PU, | ||
129 | PTE3_IN_PU, PTE2_IN_PU, PTE1_IN_PU, PTE0_IN_PU, | ||
130 | PTF7_IN_PU, PTF6_IN_PU, PTF5_IN_PU, PTF4_IN_PU, | ||
131 | PTF3_IN_PU, PTF2_IN_PU, PTF1_IN_PU, PTF0_IN_PU, | ||
132 | PTH7_IN_PU, PTH6_IN_PU, PTH5_IN_PU, PTH4_IN_PU, | ||
133 | PTH3_IN_PU, PTH2_IN_PU, PTH1_IN_PU, PTH0_IN_PU, | ||
134 | PTJ3_IN_PU, PTJ2_IN_PU, PTJ1_IN_PU, PTJ0_IN_PU, | ||
135 | PTK7_IN_PU, PTK6_IN_PU, PTK5_IN_PU, PTK4_IN_PU, | ||
136 | PTK3_IN_PU, PTK2_IN_PU, PTK1_IN_PU, PTK0_IN_PU, | ||
137 | PTL7_IN_PU, PTL6_IN_PU, PTL5_IN_PU, PTL4_IN_PU, | ||
138 | PTL3_IN_PU, PTL2_IN_PU, PTL1_IN_PU, PTL0_IN_PU, | ||
139 | PTM7_IN_PU, PTM6_IN_PU, PTM5_IN_PU, PTM4_IN_PU, | ||
140 | PTM3_IN_PU, PTM2_IN_PU, PTM1_IN_PU, PTM0_IN_PU, | ||
141 | PTN7_IN_PU, PTN6_IN_PU, PTN5_IN_PU, PTN4_IN_PU, | ||
142 | PTN3_IN_PU, PTN2_IN_PU, PTN1_IN_PU, PTN0_IN_PU, | ||
143 | PTQ7_IN_PU, PTQ6_IN_PU, PTQ5_IN_PU, PTQ4_IN_PU, | ||
144 | PTQ3_IN_PU, PTQ2_IN_PU, PTQ1_IN_PU, PTQ0_IN_PU, | ||
145 | PTR7_IN_PU, PTR6_IN_PU, PTR5_IN_PU, PTR4_IN_PU, | ||
146 | PTR3_IN_PU, PTR2_IN_PU, PTR1_IN_PU, PTR0_IN_PU, | ||
147 | PTS6_IN_PU, PTS5_IN_PU, PTS4_IN_PU, | ||
148 | PTS3_IN_PU, PTS2_IN_PU, PTS1_IN_PU, PTS0_IN_PU, | ||
149 | PTT7_IN_PU, PTT6_IN_PU, PTT5_IN_PU, PTT4_IN_PU, | ||
150 | PTT3_IN_PU, PTT2_IN_PU, PTT1_IN_PU, PTT0_IN_PU, | ||
151 | PTU7_IN_PU, PTU6_IN_PU, PTU5_IN_PU, PTU4_IN_PU, | ||
152 | PTU3_IN_PU, PTU2_IN_PU, PTU1_IN_PU, PTU0_IN_PU, | ||
153 | PTV7_IN_PU, PTV6_IN_PU, PTV5_IN_PU, PTV4_IN_PU, | ||
154 | PTV3_IN_PU, PTV2_IN_PU, PTV1_IN_PU, PTV0_IN_PU, | ||
155 | PTW7_IN_PU, PTW6_IN_PU, PTW5_IN_PU, PTW4_IN_PU, | ||
156 | PTW3_IN_PU, PTW2_IN_PU, PTW1_IN_PU, PTW0_IN_PU, | ||
157 | PTX7_IN_PU, PTX6_IN_PU, PTX5_IN_PU, PTX4_IN_PU, | ||
158 | PTX3_IN_PU, PTX2_IN_PU, PTX1_IN_PU, PTX0_IN_PU, | ||
159 | PTY7_IN_PU, PTY6_IN_PU, PTY5_IN_PU, PTY4_IN_PU, | ||
160 | PTY3_IN_PU, PTY2_IN_PU, PTY1_IN_PU, PTY0_IN_PU, | ||
161 | PTZ7_IN_PU, PTZ6_IN_PU, PTZ5_IN_PU, PTZ4_IN_PU, | ||
162 | PTZ3_IN_PU, PTZ2_IN_PU, PTZ1_IN_PU, PTZ0_IN_PU, | ||
163 | PINMUX_INPUT_PULLUP_END, | ||
164 | |||
165 | PINMUX_OUTPUT_BEGIN, | ||
166 | PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT, | ||
167 | PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT, | ||
168 | PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT, | ||
169 | PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT, | ||
170 | PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT, | ||
171 | PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT, | ||
172 | PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT, | ||
173 | PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT, | ||
174 | PTE7_OUT, PTE6_OUT, PTE5_OUT, PTE4_OUT, | ||
175 | PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT, | ||
176 | PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT, | ||
177 | PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT, | ||
178 | PTG5_OUT, PTG4_OUT, | ||
179 | PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT, | ||
180 | PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT, | ||
181 | PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT, | ||
182 | PTJ7_OUT, PTJ6_OUT, PTJ5_OUT, | ||
183 | PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT, | ||
184 | PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT, | ||
185 | PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT, | ||
186 | PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT, | ||
187 | PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT, | ||
188 | PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT, | ||
189 | PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT, | ||
190 | PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT, | ||
191 | PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT, | ||
192 | PTQ7_OUT, PTQ6_OUT, PTQ5_OUT, PTQ4_OUT, | ||
193 | PTQ3_OUT, PTQ2_OUT, PTQ1_OUT, PTQ0_OUT, | ||
194 | PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT, | ||
195 | PTR1_OUT, PTR0_OUT, | ||
196 | PTS6_OUT, PTS5_OUT, PTS4_OUT, | ||
197 | PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT, | ||
198 | PTT7_OUT, PTT6_OUT, PTT5_OUT, PTT4_OUT, | ||
199 | PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT, | ||
200 | PTU7_OUT, PTU6_OUT, PTU5_OUT, PTU4_OUT, | ||
201 | PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT, | ||
202 | PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT, | ||
203 | PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT, | ||
204 | PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT, | ||
205 | PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT, | ||
206 | PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT, | ||
207 | PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT, | ||
208 | PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT, | ||
209 | PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT, | ||
210 | PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT, | ||
211 | PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT, | ||
212 | PINMUX_OUTPUT_END, | ||
213 | |||
214 | PINMUX_FUNCTION_BEGIN, | ||
215 | PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN, | ||
216 | PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN, | ||
217 | PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN, | ||
218 | PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN, | ||
219 | PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN, | ||
220 | PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN, | ||
221 | PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN, | ||
222 | PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN, | ||
223 | PTE7_FN, PTE6_FN, PTE5_FN, PTE4_FN, | ||
224 | PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN, | ||
225 | PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN, | ||
226 | PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN, | ||
227 | PTG5_FN, PTG4_FN, | ||
228 | PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN, | ||
229 | PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN, | ||
230 | PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN, | ||
231 | PTJ7_FN, PTJ6_FN, PTJ5_FN, | ||
232 | PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN, | ||
233 | PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN, | ||
234 | PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN, | ||
235 | PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN, | ||
236 | PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN, | ||
237 | PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN, | ||
238 | PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN, | ||
239 | PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN, | ||
240 | PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN, | ||
241 | PTQ7_FN, PTQ6_FN, PTQ5_FN, PTQ4_FN, | ||
242 | PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN, | ||
243 | PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN, | ||
244 | PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN, | ||
245 | PTS6_FN, PTS5_FN, PTS4_FN, | ||
246 | PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN, | ||
247 | PTT7_FN, PTT6_FN, PTT5_FN, PTT4_FN, | ||
248 | PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN, | ||
249 | PTU7_FN, PTU6_FN, PTU5_FN, PTU4_FN, | ||
250 | PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN, | ||
251 | PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN, | ||
252 | PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN, | ||
253 | PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN, | ||
254 | PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN, | ||
255 | PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN, | ||
256 | PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN, | ||
257 | PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN, | ||
258 | PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN, | ||
259 | PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN, | ||
260 | PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN, | ||
261 | |||
262 | |||
263 | PSA15_0, PSA15_1, | ||
264 | PSA14_0, PSA14_1, | ||
265 | PSA13_0, PSA13_1, | ||
266 | PSA12_0, PSA12_1, | ||
267 | PSA10_0, PSA10_1, | ||
268 | PSA9_0, PSA9_1, | ||
269 | PSA8_0, PSA8_1, | ||
270 | PSA7_0, PSA7_1, | ||
271 | PSA6_0, PSA6_1, | ||
272 | PSA5_0, PSA5_1, | ||
273 | PSA3_0, PSA3_1, | ||
274 | PSA2_0, PSA2_1, | ||
275 | PSA1_0, PSA1_1, | ||
276 | PSA0_0, PSA0_1, | ||
277 | |||
278 | PSB14_0, PSB14_1, | ||
279 | PSB13_0, PSB13_1, | ||
280 | PSB12_0, PSB12_1, | ||
281 | PSB11_0, PSB11_1, | ||
282 | PSB10_0, PSB10_1, | ||
283 | PSB9_0, PSB9_1, | ||
284 | PSB8_0, PSB8_1, | ||
285 | PSB7_0, PSB7_1, | ||
286 | PSB6_0, PSB6_1, | ||
287 | PSB5_0, PSB5_1, | ||
288 | PSB4_0, PSB4_1, | ||
289 | PSB3_0, PSB3_1, | ||
290 | PSB2_0, PSB2_1, | ||
291 | PSB1_0, PSB1_1, | ||
292 | PSB0_0, PSB0_1, | ||
293 | |||
294 | PSC15_0, PSC15_1, | ||
295 | PSC14_0, PSC14_1, | ||
296 | PSC13_0, PSC13_1, | ||
297 | PSC12_0, PSC12_1, | ||
298 | PSC11_0, PSC11_1, | ||
299 | PSC10_0, PSC10_1, | ||
300 | PSC9_0, PSC9_1, | ||
301 | PSC8_0, PSC8_1, | ||
302 | PSC7_0, PSC7_1, | ||
303 | PSC6_0, PSC6_1, | ||
304 | PSC5_0, PSC5_1, | ||
305 | PSC4_0, PSC4_1, | ||
306 | PSC2_0, PSC2_1, | ||
307 | PSC1_0, PSC1_1, | ||
308 | PSC0_0, PSC0_1, | ||
309 | |||
310 | PSD15_0, PSD15_1, | ||
311 | PSD14_0, PSD14_1, | ||
312 | PSD13_0, PSD13_1, | ||
313 | PSD12_0, PSD12_1, | ||
314 | PSD11_0, PSD11_1, | ||
315 | PSD10_0, PSD10_1, | ||
316 | PSD9_0, PSD9_1, | ||
317 | PSD8_0, PSD8_1, | ||
318 | PSD7_0, PSD7_1, | ||
319 | PSD6_0, PSD6_1, | ||
320 | PSD5_0, PSD5_1, | ||
321 | PSD4_0, PSD4_1, | ||
322 | PSD3_0, PSD3_1, | ||
323 | PSD2_0, PSD2_1, | ||
324 | PSD1_0, PSD1_1, | ||
325 | PSD0_0, PSD0_1, | ||
326 | |||
327 | PSE15_0, PSE15_1, | ||
328 | PSE14_0, PSE14_1, | ||
329 | PSE13_0, PSE13_1, | ||
330 | PSE12_0, PSE12_1, | ||
331 | PSE11_0, PSE11_1, | ||
332 | PSE10_0, PSE10_1, | ||
333 | PSE9_0, PSE9_1, | ||
334 | PSE8_0, PSE8_1, | ||
335 | PSE7_0, PSE7_1, | ||
336 | PSE6_0, PSE6_1, | ||
337 | PSE5_0, PSE5_1, | ||
338 | PSE4_0, PSE4_1, | ||
339 | PSE3_0, PSE3_1, | ||
340 | PSE2_0, PSE2_1, | ||
341 | PSE1_0, PSE1_1, | ||
342 | PSE0_0, PSE0_1, | ||
343 | PINMUX_FUNCTION_END, | ||
344 | |||
345 | PINMUX_MARK_BEGIN, | ||
346 | /*PTA*/ | ||
347 | D23_MARK, KEYOUT2_MARK, IDED15_MARK, | ||
348 | D22_MARK, KEYOUT1_MARK, IDED14_MARK, | ||
349 | D21_MARK, KEYOUT0_MARK, IDED13_MARK, | ||
350 | D20_MARK, KEYIN4_MARK, IDED12_MARK, | ||
351 | D19_MARK, KEYIN3_MARK, IDED11_MARK, | ||
352 | D18_MARK, KEYIN2_MARK, IDED10_MARK, | ||
353 | D17_MARK, KEYIN1_MARK, IDED9_MARK, | ||
354 | D16_MARK, KEYIN0_MARK, IDED8_MARK, | ||
355 | |||
356 | /*PTB*/ | ||
357 | D31_MARK, TPUTO1_MARK, IDEA1_MARK, | ||
358 | D30_MARK, TPUTO0_MARK, IDEA0_MARK, | ||
359 | D29_MARK, IODREQ_MARK, | ||
360 | D28_MARK, IDECS0_MARK, | ||
361 | D27_MARK, IDECS1_MARK, | ||
362 | D26_MARK, KEYOUT5_IN5_MARK, IDEIORD_MARK, | ||
363 | D25_MARK, KEYOUT4_IN6_MARK, IDEIOWR_MARK, | ||
364 | D24_MARK, KEYOUT3_MARK, IDEINT_MARK, | ||
365 | |||
366 | /*PTC*/ | ||
367 | LCDD7_MARK, | ||
368 | LCDD6_MARK, | ||
369 | LCDD5_MARK, | ||
370 | LCDD4_MARK, | ||
371 | LCDD3_MARK, | ||
372 | LCDD2_MARK, | ||
373 | LCDD1_MARK, | ||
374 | LCDD0_MARK, | ||
375 | |||
376 | /*PTD*/ | ||
377 | LCDD15_MARK, | ||
378 | LCDD14_MARK, | ||
379 | LCDD13_MARK, | ||
380 | LCDD12_MARK, | ||
381 | LCDD11_MARK, | ||
382 | LCDD10_MARK, | ||
383 | LCDD9_MARK, | ||
384 | LCDD8_MARK, | ||
385 | |||
386 | /*PTE*/ | ||
387 | FSIMCKB_MARK, | ||
388 | FSIMCKA_MARK, | ||
389 | LCDD21_MARK, SCIF2_L_TXD_MARK, | ||
390 | LCDD20_MARK, SCIF4_SCK_MARK, | ||
391 | LCDD19_MARK, SCIF4_RXD_MARK, | ||
392 | LCDD18_MARK, SCIF4_TXD_MARK, | ||
393 | LCDD17_MARK, | ||
394 | LCDD16_MARK, | ||
395 | |||
396 | /*PTF*/ | ||
397 | LCDVSYN_MARK, | ||
398 | LCDDISP_MARK, LCDRS_MARK, | ||
399 | LCDHSYN_MARK, LCDCS_MARK, | ||
400 | LCDDON_MARK, | ||
401 | LCDDCK_MARK, LCDWR_MARK, | ||
402 | LCDVEPWC_MARK, SCIF0_TXD_MARK, | ||
403 | LCDD23_MARK, SCIF2_L_SCK_MARK, | ||
404 | LCDD22_MARK, SCIF2_L_RXD_MARK, | ||
405 | |||
406 | /*PTG*/ | ||
407 | AUDCK_MARK, | ||
408 | AUDSYNC_MARK, | ||
409 | AUDATA3_MARK, | ||
410 | AUDATA2_MARK, | ||
411 | AUDATA1_MARK, | ||
412 | AUDATA0_MARK, | ||
413 | |||
414 | /*PTH*/ | ||
415 | VIO0_VD_MARK, | ||
416 | VIO0_CLK_MARK, | ||
417 | VIO0_D7_MARK, | ||
418 | VIO0_D6_MARK, | ||
419 | VIO0_D5_MARK, | ||
420 | VIO0_D4_MARK, | ||
421 | VIO0_D3_MARK, | ||
422 | VIO0_D2_MARK, | ||
423 | |||
424 | /*PTJ*/ | ||
425 | PDSTATUS_MARK, | ||
426 | STATUS2_MARK, | ||
427 | STATUS0_MARK, | ||
428 | A25_MARK, BS_MARK, | ||
429 | A24_MARK, | ||
430 | A23_MARK, | ||
431 | A22_MARK, | ||
432 | |||
433 | /*PTK*/ | ||
434 | VIO1_D5_MARK, VIO0_D13_MARK, IDED5_MARK, | ||
435 | VIO1_D4_MARK, VIO0_D12_MARK, IDED4_MARK, | ||
436 | VIO1_D3_MARK, VIO0_D11_MARK, IDED3_MARK, | ||
437 | VIO1_D2_MARK, VIO0_D10_MARK, IDED2_MARK, | ||
438 | VIO1_D1_MARK, VIO0_D9_MARK, IDED1_MARK, | ||
439 | VIO1_D0_MARK, VIO0_D8_MARK, IDED0_MARK, | ||
440 | VIO0_FLD_MARK, | ||
441 | VIO0_HD_MARK, | ||
442 | |||
443 | /*PTL*/ | ||
444 | DV_D5_MARK, SCIF3_V_SCK_MARK, RMII_RXD0_MARK, | ||
445 | DV_D4_MARK, SCIF3_V_RXD_MARK, RMII_RXD1_MARK, | ||
446 | DV_D3_MARK, SCIF3_V_TXD_MARK, RMII_REF_CLK_MARK, | ||
447 | DV_D2_MARK, SCIF1_SCK_MARK, RMII_TX_EN_MARK, | ||
448 | DV_D1_MARK, SCIF1_RXD_MARK, RMII_TXD0_MARK, | ||
449 | DV_D0_MARK, SCIF1_TXD_MARK, RMII_TXD1_MARK, | ||
450 | DV_D15_MARK, | ||
451 | DV_D14_MARK, MSIOF0_MCK_MARK, | ||
452 | |||
453 | /*PTM*/ | ||
454 | DV_D13_MARK, MSIOF0_TSCK_MARK, | ||
455 | DV_D12_MARK, MSIOF0_RXD_MARK, | ||
456 | DV_D11_MARK, MSIOF0_TXD_MARK, | ||
457 | DV_D10_MARK, MSIOF0_TSYNC_MARK, | ||
458 | DV_D9_MARK, MSIOF0_SS1_MARK, MSIOF0_RSCK_MARK, | ||
459 | DV_D8_MARK, MSIOF0_SS2_MARK, MSIOF0_RSYNC_MARK, | ||
460 | LCDVCPWC_MARK, SCIF0_RXD_MARK, | ||
461 | LCDRD_MARK, SCIF0_SCK_MARK, | ||
462 | |||
463 | /*PTN*/ | ||
464 | VIO0_D1_MARK, | ||
465 | VIO0_D0_MARK, | ||
466 | DV_CLKI_MARK, | ||
467 | DV_CLK_MARK, SCIF2_V_SCK_MARK, | ||
468 | DV_VSYNC_MARK, SCIF2_V_RXD_MARK, | ||
469 | DV_HSYNC_MARK, SCIF2_V_TXD_MARK, | ||
470 | DV_D7_MARK, SCIF3_V_CTS_MARK, RMII_RX_ER_MARK, | ||
471 | DV_D6_MARK, SCIF3_V_RTS_MARK, RMII_CRS_DV_MARK, | ||
472 | |||
473 | /*PTQ*/ | ||
474 | D7_MARK, | ||
475 | D6_MARK, | ||
476 | D5_MARK, | ||
477 | D4_MARK, | ||
478 | D3_MARK, | ||
479 | D2_MARK, | ||
480 | D1_MARK, | ||
481 | D0_MARK, | ||
482 | |||
483 | /*PTR*/ | ||
484 | CS6B_CE1B_MARK, | ||
485 | CS6A_CE2B_MARK, | ||
486 | CS5B_CE1A_MARK, | ||
487 | CS5A_CE2A_MARK, | ||
488 | IOIS16_MARK, LCDLCLK_MARK, | ||
489 | WAIT_MARK, | ||
490 | WE3_ICIOWR_MARK, TPUTO3_MARK, TPUTI3_MARK, | ||
491 | WE2_ICIORD_MARK, TPUTO2_MARK, IDEA2_MARK, | ||
492 | |||
493 | /*PTS*/ | ||
494 | VIO_CKO_MARK, | ||
495 | VIO1_FLD_MARK, TPUTI2_MARK, IDEIORDY_MARK, | ||
496 | VIO1_HD_MARK, SCIF5_SCK_MARK, | ||
497 | VIO1_VD_MARK, SCIF5_RXD_MARK, | ||
498 | VIO1_CLK_MARK, SCIF5_TXD_MARK, | ||
499 | VIO1_D7_MARK, VIO0_D15_MARK, IDED7_MARK, | ||
500 | VIO1_D6_MARK, VIO0_D14_MARK, IDED6_MARK, | ||
501 | |||
502 | /*PTT*/ | ||
503 | D15_MARK, | ||
504 | D14_MARK, | ||
505 | D13_MARK, | ||
506 | D12_MARK, | ||
507 | D11_MARK, | ||
508 | D10_MARK, | ||
509 | D9_MARK, | ||
510 | D8_MARK, | ||
511 | |||
512 | /*PTU*/ | ||
513 | DMAC_DACK0_MARK, | ||
514 | DMAC_DREQ0_MARK, | ||
515 | FSIOASD_MARK, | ||
516 | FSIIABCK_MARK, | ||
517 | FSIIALRCK_MARK, | ||
518 | FSIOABCK_MARK, | ||
519 | FSIOALRCK_MARK, | ||
520 | CLKAUDIOAO_MARK, | ||
521 | |||
522 | /*PTV*/ | ||
523 | FSIIBSD_MARK, MSIOF1_SS2_MARK, MSIOF1_RSYNC_MARK, | ||
524 | FSIOBSD_MARK, MSIOF1_SS1_MARK, MSIOF1_RSCK_MARK, | ||
525 | FSIIBBCK_MARK, MSIOF1_RXD_MARK, | ||
526 | FSIIBLRCK_MARK, MSIOF1_TSYNC_MARK, | ||
527 | FSIOBBCK_MARK, MSIOF1_TSCK_MARK, | ||
528 | FSIOBLRCK_MARK, MSIOF1_TXD_MARK, | ||
529 | CLKAUDIOBO_MARK, MSIOF1_MCK_MARK, | ||
530 | FSIIASD_MARK, | ||
531 | |||
532 | /*PTW*/ | ||
533 | MMC_D7_MARK, SDHI1CD_MARK, IODACK_MARK, | ||
534 | MMC_D6_MARK, SDHI1WP_MARK, IDERST_MARK, | ||
535 | MMC_D5_MARK, SDHI1D3_MARK, EXBUF_ENB_MARK, | ||
536 | MMC_D4_MARK, SDHI1D2_MARK, DIRECTION_MARK, | ||
537 | MMC_D3_MARK, SDHI1D1_MARK, | ||
538 | MMC_D2_MARK, SDHI1D0_MARK, | ||
539 | MMC_D1_MARK, SDHI1CMD_MARK, | ||
540 | MMC_D0_MARK, SDHI1CLK_MARK, | ||
541 | |||
542 | /*PTX*/ | ||
543 | DMAC_DACK1_MARK, IRDA_OUT_MARK, | ||
544 | DMAC_DREQ1_MARK, IRDA_IN_MARK, | ||
545 | TSIF_TS0_SDAT_MARK, LNKSTA_MARK, | ||
546 | TSIF_TS0_SCK_MARK, MDIO_MARK, | ||
547 | TSIF_TS0_SDEN_MARK, MDC_MARK, | ||
548 | TSIF_TS0_SPSYNC_MARK, | ||
549 | MMC_CLK_MARK, | ||
550 | MMC_CMD_MARK, | ||
551 | |||
552 | /*PTY*/ | ||
553 | SDHI0CD_MARK, | ||
554 | SDHI0WP_MARK, | ||
555 | SDHI0D3_MARK, | ||
556 | SDHI0D2_MARK, | ||
557 | SDHI0D1_MARK, | ||
558 | SDHI0D0_MARK, | ||
559 | SDHI0CMD_MARK, | ||
560 | SDHI0CLK_MARK, | ||
561 | |||
562 | /*PTZ*/ | ||
563 | INTC_IRQ7_MARK, SCIF3_I_CTS_MARK, | ||
564 | INTC_IRQ6_MARK, SCIF3_I_RTS_MARK, | ||
565 | INTC_IRQ5_MARK, SCIF3_I_SCK_MARK, | ||
566 | INTC_IRQ4_MARK, SCIF3_I_RXD_MARK, | ||
567 | INTC_IRQ3_MARK, SCIF3_I_TXD_MARK, | ||
568 | INTC_IRQ2_MARK, | ||
569 | INTC_IRQ1_MARK, | ||
570 | INTC_IRQ0_MARK, | ||
571 | PINMUX_MARK_END, | ||
572 | }; | ||
573 | |||
574 | static pinmux_enum_t pinmux_data[] = { | ||
575 | /* PTA GPIO */ | ||
576 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT, PTA7_IN_PU), | ||
577 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT, PTA6_IN_PU), | ||
578 | PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT, PTA5_IN_PU), | ||
579 | PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT, PTA4_IN_PU), | ||
580 | PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT, PTA3_IN_PU), | ||
581 | PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT, PTA2_IN_PU), | ||
582 | PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT, PTA1_IN_PU), | ||
583 | PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT, PTA0_IN_PU), | ||
584 | |||
585 | /* PTB GPIO */ | ||
586 | PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT, PTB7_IN_PU), | ||
587 | PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT, PTB6_IN_PU), | ||
588 | PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT, PTB5_IN_PU), | ||
589 | PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT, PTB4_IN_PU), | ||
590 | PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT, PTB3_IN_PU), | ||
591 | PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT, PTB2_IN_PU), | ||
592 | PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT, PTB1_IN_PU), | ||
593 | PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT, PTB0_IN_PU), | ||
594 | |||
595 | /* PTC GPIO */ | ||
596 | PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT, PTC7_IN_PU), | ||
597 | PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT, PTC6_IN_PU), | ||
598 | PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT, PTC5_IN_PU), | ||
599 | PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT, PTC4_IN_PU), | ||
600 | PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT, PTC3_IN_PU), | ||
601 | PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT, PTC2_IN_PU), | ||
602 | PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT, PTC1_IN_PU), | ||
603 | PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT, PTC0_IN_PU), | ||
604 | |||
605 | /* PTD GPIO */ | ||
606 | PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT, PTD7_IN_PU), | ||
607 | PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT, PTD6_IN_PU), | ||
608 | PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT, PTD5_IN_PU), | ||
609 | PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT, PTD4_IN_PU), | ||
610 | PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT, PTD3_IN_PU), | ||
611 | PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT, PTD2_IN_PU), | ||
612 | PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT, PTD1_IN_PU), | ||
613 | PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT, PTD0_IN_PU), | ||
614 | |||
615 | /* PTE GPIO */ | ||
616 | PINMUX_DATA(PTE7_DATA, PTE7_IN, PTE7_OUT, PTE7_IN_PU), | ||
617 | PINMUX_DATA(PTE6_DATA, PTE6_IN, PTE6_OUT, PTE6_IN_PU), | ||
618 | PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT, PTE5_IN_PU), | ||
619 | PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT, PTE4_IN_PU), | ||
620 | PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT, PTE3_IN_PU), | ||
621 | PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT, PTE2_IN_PU), | ||
622 | PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT, PTE1_IN_PU), | ||
623 | PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT, PTE0_IN_PU), | ||
624 | |||
625 | /* PTF GPIO */ | ||
626 | PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT, PTF7_IN_PU), | ||
627 | PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT, PTF6_IN_PU), | ||
628 | PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT, PTF5_IN_PU), | ||
629 | PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT, PTF4_IN_PU), | ||
630 | PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT, PTF3_IN_PU), | ||
631 | PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT, PTF2_IN_PU), | ||
632 | PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT, PTF1_IN_PU), | ||
633 | PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT, PTF0_IN_PU), | ||
634 | |||
635 | /* PTG GPIO */ | ||
636 | PINMUX_DATA(PTG5_DATA, PTG5_OUT), | ||
637 | PINMUX_DATA(PTG4_DATA, PTG4_OUT), | ||
638 | PINMUX_DATA(PTG3_DATA, PTG3_OUT), | ||
639 | PINMUX_DATA(PTG2_DATA, PTG2_OUT), | ||
640 | PINMUX_DATA(PTG1_DATA, PTG1_OUT), | ||
641 | PINMUX_DATA(PTG0_DATA, PTG0_OUT), | ||
642 | |||
643 | /* PTH GPIO */ | ||
644 | PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT, PTH7_IN_PU), | ||
645 | PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT, PTH6_IN_PU), | ||
646 | PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT, PTH5_IN_PU), | ||
647 | PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT, PTH4_IN_PU), | ||
648 | PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT, PTH3_IN_PU), | ||
649 | PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT, PTH2_IN_PU), | ||
650 | PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT, PTH1_IN_PU), | ||
651 | PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT, PTH0_IN_PU), | ||
652 | |||
653 | /* PTJ GPIO */ | ||
654 | PINMUX_DATA(PTJ7_DATA, PTJ7_OUT), | ||
655 | PINMUX_DATA(PTJ6_DATA, PTJ6_OUT), | ||
656 | PINMUX_DATA(PTJ5_DATA, PTJ5_OUT), | ||
657 | PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT, PTJ3_IN_PU), | ||
658 | PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT, PTJ2_IN_PU), | ||
659 | PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT, PTJ1_IN_PU), | ||
660 | PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT, PTJ0_IN_PU), | ||
661 | |||
662 | /* PTK GPIO */ | ||
663 | PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT, PTK7_IN_PU), | ||
664 | PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT, PTK6_IN_PU), | ||
665 | PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT, PTK5_IN_PU), | ||
666 | PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT, PTK4_IN_PU), | ||
667 | PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT, PTK3_IN_PU), | ||
668 | PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT, PTK2_IN_PU), | ||
669 | PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT, PTK1_IN_PU), | ||
670 | PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT, PTK0_IN_PU), | ||
671 | |||
672 | /* PTL GPIO */ | ||
673 | PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT, PTL7_IN_PU), | ||
674 | PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT, PTL6_IN_PU), | ||
675 | PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT, PTL5_IN_PU), | ||
676 | PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT, PTL4_IN_PU), | ||
677 | PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT, PTL3_IN_PU), | ||
678 | PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT, PTL2_IN_PU), | ||
679 | PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT, PTL1_IN_PU), | ||
680 | PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT, PTL0_IN_PU), | ||
681 | |||
682 | /* PTM GPIO */ | ||
683 | PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT, PTM7_IN_PU), | ||
684 | PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT, PTM6_IN_PU), | ||
685 | PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT, PTM5_IN_PU), | ||
686 | PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT, PTM4_IN_PU), | ||
687 | PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT, PTM3_IN_PU), | ||
688 | PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT, PTM2_IN_PU), | ||
689 | PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT, PTM1_IN_PU), | ||
690 | PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT, PTM0_IN_PU), | ||
691 | |||
692 | /* PTN GPIO */ | ||
693 | PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT, PTN7_IN_PU), | ||
694 | PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT, PTN6_IN_PU), | ||
695 | PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT, PTN5_IN_PU), | ||
696 | PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT, PTN4_IN_PU), | ||
697 | PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT, PTN3_IN_PU), | ||
698 | PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT, PTN2_IN_PU), | ||
699 | PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT, PTN1_IN_PU), | ||
700 | PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT, PTN0_IN_PU), | ||
701 | |||
702 | /* PTQ GPIO */ | ||
703 | PINMUX_DATA(PTQ7_DATA, PTQ7_IN, PTQ7_OUT, PTQ7_IN_PU), | ||
704 | PINMUX_DATA(PTQ6_DATA, PTQ6_IN, PTQ6_OUT, PTQ6_IN_PU), | ||
705 | PINMUX_DATA(PTQ5_DATA, PTQ5_IN, PTQ5_OUT, PTQ5_IN_PU), | ||
706 | PINMUX_DATA(PTQ4_DATA, PTQ4_IN, PTQ4_OUT, PTQ4_IN_PU), | ||
707 | PINMUX_DATA(PTQ3_DATA, PTQ3_IN, PTQ3_OUT, PTQ3_IN_PU), | ||
708 | PINMUX_DATA(PTQ2_DATA, PTQ2_IN, PTQ2_OUT, PTQ2_IN_PU), | ||
709 | PINMUX_DATA(PTQ1_DATA, PTQ1_IN, PTQ1_OUT, PTQ1_IN_PU), | ||
710 | PINMUX_DATA(PTQ0_DATA, PTQ0_IN, PTQ0_OUT, PTQ0_IN_PU), | ||
711 | |||
712 | /* PTR GPIO */ | ||
713 | PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT, PTR7_IN_PU), | ||
714 | PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT, PTR6_IN_PU), | ||
715 | PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT, PTR5_IN_PU), | ||
716 | PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT, PTR4_IN_PU), | ||
717 | PINMUX_DATA(PTR3_DATA, PTR3_IN, PTR3_IN_PU), | ||
718 | PINMUX_DATA(PTR2_DATA, PTR2_IN, PTR2_IN_PU), | ||
719 | PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT, PTR1_IN_PU), | ||
720 | PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT, PTR0_IN_PU), | ||
721 | |||
722 | /* PTS GPIO */ | ||
723 | PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT, PTS6_IN_PU), | ||
724 | PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT, PTS5_IN_PU), | ||
725 | PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT, PTS4_IN_PU), | ||
726 | PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT, PTS3_IN_PU), | ||
727 | PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT, PTS2_IN_PU), | ||
728 | PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT, PTS1_IN_PU), | ||
729 | PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT, PTS0_IN_PU), | ||
730 | |||
731 | /* PTT GPIO */ | ||
732 | PINMUX_DATA(PTT7_DATA, PTT7_IN, PTT7_OUT, PTT7_IN_PU), | ||
733 | PINMUX_DATA(PTT6_DATA, PTT6_IN, PTT6_OUT, PTT6_IN_PU), | ||
734 | PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT, PTT5_IN_PU), | ||
735 | PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT, PTT4_IN_PU), | ||
736 | PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT, PTT3_IN_PU), | ||
737 | PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT, PTT2_IN_PU), | ||
738 | PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT, PTT1_IN_PU), | ||
739 | PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT, PTT0_IN_PU), | ||
740 | |||
741 | /* PTU GPIO */ | ||
742 | PINMUX_DATA(PTU7_DATA, PTU7_IN, PTU7_OUT, PTU7_IN_PU), | ||
743 | PINMUX_DATA(PTU6_DATA, PTU6_IN, PTU6_OUT, PTU6_IN_PU), | ||
744 | PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT, PTU5_IN_PU), | ||
745 | PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT, PTU4_IN_PU), | ||
746 | PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT, PTU3_IN_PU), | ||
747 | PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT, PTU2_IN_PU), | ||
748 | PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT, PTU1_IN_PU), | ||
749 | PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT, PTU0_IN_PU), | ||
750 | |||
751 | /* PTV GPIO */ | ||
752 | PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT, PTV7_IN_PU), | ||
753 | PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT, PTV6_IN_PU), | ||
754 | PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT, PTV5_IN_PU), | ||
755 | PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT, PTV4_IN_PU), | ||
756 | PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT, PTV3_IN_PU), | ||
757 | PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT, PTV2_IN_PU), | ||
758 | PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT, PTV1_IN_PU), | ||
759 | PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT, PTV0_IN_PU), | ||
760 | |||
761 | /* PTW GPIO */ | ||
762 | PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT, PTW7_IN_PU), | ||
763 | PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT, PTW6_IN_PU), | ||
764 | PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT, PTW5_IN_PU), | ||
765 | PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT, PTW4_IN_PU), | ||
766 | PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT, PTW3_IN_PU), | ||
767 | PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT, PTW2_IN_PU), | ||
768 | PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT, PTW1_IN_PU), | ||
769 | PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT, PTW0_IN_PU), | ||
770 | |||
771 | /* PTX GPIO */ | ||
772 | PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT, PTX7_IN_PU), | ||
773 | PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT, PTX6_IN_PU), | ||
774 | PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT, PTX5_IN_PU), | ||
775 | PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT, PTX4_IN_PU), | ||
776 | PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT, PTX3_IN_PU), | ||
777 | PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT, PTX2_IN_PU), | ||
778 | PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT, PTX1_IN_PU), | ||
779 | PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT, PTX0_IN_PU), | ||
780 | |||
781 | /* PTY GPIO */ | ||
782 | PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT, PTY7_IN_PU), | ||
783 | PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT, PTY6_IN_PU), | ||
784 | PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT, PTY5_IN_PU), | ||
785 | PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT, PTY4_IN_PU), | ||
786 | PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT, PTY3_IN_PU), | ||
787 | PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT, PTY2_IN_PU), | ||
788 | PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT, PTY1_IN_PU), | ||
789 | PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT, PTY0_IN_PU), | ||
790 | |||
791 | /* PTZ GPIO */ | ||
792 | PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT, PTZ7_IN_PU), | ||
793 | PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT, PTZ6_IN_PU), | ||
794 | PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT, PTZ5_IN_PU), | ||
795 | PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT, PTZ4_IN_PU), | ||
796 | PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT, PTZ3_IN_PU), | ||
797 | PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT, PTZ2_IN_PU), | ||
798 | PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT, PTZ1_IN_PU), | ||
799 | PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT, PTZ0_IN_PU), | ||
800 | |||
801 | /* PTA FN */ | ||
802 | PINMUX_DATA(D23_MARK, PSA15_0, PSA14_0, PTA7_FN), | ||
803 | PINMUX_DATA(D22_MARK, PSA15_0, PSA14_0, PTA6_FN), | ||
804 | PINMUX_DATA(D21_MARK, PSA15_0, PSA14_0, PTA5_FN), | ||
805 | PINMUX_DATA(D20_MARK, PSA15_0, PSA14_0, PTA4_FN), | ||
806 | PINMUX_DATA(D19_MARK, PSA15_0, PSA14_0, PTA3_FN), | ||
807 | PINMUX_DATA(D18_MARK, PSA15_0, PSA14_0, PTA2_FN), | ||
808 | PINMUX_DATA(D17_MARK, PSA15_0, PSA14_0, PTA1_FN), | ||
809 | PINMUX_DATA(D16_MARK, PSA15_0, PSA14_0, PTA0_FN), | ||
810 | |||
811 | PINMUX_DATA(KEYOUT2_MARK, PSA15_0, PSA14_1, PTA7_FN), | ||
812 | PINMUX_DATA(KEYOUT1_MARK, PSA15_0, PSA14_1, PTA6_FN), | ||
813 | PINMUX_DATA(KEYOUT0_MARK, PSA15_0, PSA14_1, PTA5_FN), | ||
814 | PINMUX_DATA(KEYIN4_MARK, PSA15_0, PSA14_1, PTA4_FN), | ||
815 | PINMUX_DATA(KEYIN3_MARK, PSA15_0, PSA14_1, PTA3_FN), | ||
816 | PINMUX_DATA(KEYIN2_MARK, PSA15_0, PSA14_1, PTA2_FN), | ||
817 | PINMUX_DATA(KEYIN1_MARK, PSA15_0, PSA14_1, PTA1_FN), | ||
818 | PINMUX_DATA(KEYIN0_MARK, PSA15_0, PSA14_1, PTA0_FN), | ||
819 | |||
820 | PINMUX_DATA(IDED15_MARK, PSA15_1, PSA14_0, PTA7_FN), | ||
821 | PINMUX_DATA(IDED14_MARK, PSA15_1, PSA14_0, PTA6_FN), | ||
822 | PINMUX_DATA(IDED13_MARK, PSA15_1, PSA14_0, PTA5_FN), | ||
823 | PINMUX_DATA(IDED12_MARK, PSA15_1, PSA14_0, PTA4_FN), | ||
824 | PINMUX_DATA(IDED11_MARK, PSA15_1, PSA14_0, PTA3_FN), | ||
825 | PINMUX_DATA(IDED10_MARK, PSA15_1, PSA14_0, PTA2_FN), | ||
826 | PINMUX_DATA(IDED9_MARK, PSA15_1, PSA14_0, PTA1_FN), | ||
827 | PINMUX_DATA(IDED8_MARK, PSA15_1, PSA14_0, PTA0_FN), | ||
828 | |||
829 | /* PTB FN */ | ||
830 | PINMUX_DATA(D31_MARK, PSE15_0, PSE14_0, PTB7_FN), | ||
831 | PINMUX_DATA(D30_MARK, PSE15_0, PSE14_0, PTB6_FN), | ||
832 | PINMUX_DATA(D29_MARK, PSE11_0, PTB5_FN), | ||
833 | PINMUX_DATA(D28_MARK, PSE11_0, PTB4_FN), | ||
834 | PINMUX_DATA(D27_MARK, PSE11_0, PTB3_FN), | ||
835 | PINMUX_DATA(D26_MARK, PSA15_0, PSA14_0, PTB2_FN), | ||
836 | PINMUX_DATA(D25_MARK, PSA15_0, PSA14_0, PTB1_FN), | ||
837 | PINMUX_DATA(D24_MARK, PSA15_0, PSA14_0, PTB0_FN), | ||
838 | |||
839 | PINMUX_DATA(IDEA1_MARK, PSE15_1, PSE14_0, PTB7_FN), | ||
840 | PINMUX_DATA(IDEA0_MARK, PSE15_1, PSE14_0, PTB6_FN), | ||
841 | PINMUX_DATA(IODREQ_MARK, PSE11_1, PTB5_FN), | ||
842 | PINMUX_DATA(IDECS0_MARK, PSE11_1, PTB4_FN), | ||
843 | PINMUX_DATA(IDECS1_MARK, PSE11_1, PTB3_FN), | ||
844 | PINMUX_DATA(IDEIORD_MARK, PSA15_1, PSA14_0, PTB2_FN), | ||
845 | PINMUX_DATA(IDEIOWR_MARK, PSA15_1, PSA14_0, PTB1_FN), | ||
846 | PINMUX_DATA(IDEINT_MARK, PSA15_1, PSA14_0, PTB0_FN), | ||
847 | |||
848 | PINMUX_DATA(TPUTO1_MARK, PSE15_0, PSE14_1, PTB7_FN), | ||
849 | PINMUX_DATA(TPUTO0_MARK, PSE15_0, PSE14_1, PTB6_FN), | ||
850 | |||
851 | PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_0, PSA14_1, PTB2_FN), | ||
852 | PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_0, PSA14_1, PTB1_FN), | ||
853 | PINMUX_DATA(KEYOUT3_MARK, PSA15_0, PSA14_1, PTB0_FN), | ||
854 | |||
855 | /* PTC FN */ | ||
856 | PINMUX_DATA(LCDD7_MARK, PSD5_0, PTC7_FN), | ||
857 | PINMUX_DATA(LCDD6_MARK, PSD5_0, PTC6_FN), | ||
858 | PINMUX_DATA(LCDD5_MARK, PSD5_0, PTC5_FN), | ||
859 | PINMUX_DATA(LCDD4_MARK, PSD5_0, PTC4_FN), | ||
860 | PINMUX_DATA(LCDD3_MARK, PSD5_0, PTC3_FN), | ||
861 | PINMUX_DATA(LCDD2_MARK, PSD5_0, PTC2_FN), | ||
862 | PINMUX_DATA(LCDD1_MARK, PSD5_0, PTC1_FN), | ||
863 | PINMUX_DATA(LCDD0_MARK, PSD5_0, PTC0_FN), | ||
864 | |||
865 | /* PTD FN */ | ||
866 | PINMUX_DATA(LCDD15_MARK, PSD5_0, PTD7_FN), | ||
867 | PINMUX_DATA(LCDD14_MARK, PSD5_0, PTD6_FN), | ||
868 | PINMUX_DATA(LCDD13_MARK, PSD5_0, PTD5_FN), | ||
869 | PINMUX_DATA(LCDD12_MARK, PSD5_0, PTD4_FN), | ||
870 | PINMUX_DATA(LCDD11_MARK, PSD5_0, PTD3_FN), | ||
871 | PINMUX_DATA(LCDD10_MARK, PSD5_0, PTD2_FN), | ||
872 | PINMUX_DATA(LCDD9_MARK, PSD5_0, PTD1_FN), | ||
873 | PINMUX_DATA(LCDD8_MARK, PSD5_0, PTD0_FN), | ||
874 | |||
875 | /* PTE FN */ | ||
876 | PINMUX_DATA(FSIMCKB_MARK, PTE7_FN), | ||
877 | PINMUX_DATA(FSIMCKA_MARK, PTE6_FN), | ||
878 | |||
879 | PINMUX_DATA(LCDD21_MARK, PSC5_0, PSC4_0, PTE5_FN), | ||
880 | PINMUX_DATA(LCDD20_MARK, PSD3_0, PSD2_0, PTE4_FN), | ||
881 | PINMUX_DATA(LCDD19_MARK, PSA3_0, PSA2_0, PTE3_FN), | ||
882 | PINMUX_DATA(LCDD18_MARK, PSA3_0, PSA2_0, PTE2_FN), | ||
883 | PINMUX_DATA(LCDD17_MARK, PSD5_0, PTE1_FN), | ||
884 | PINMUX_DATA(LCDD16_MARK, PSD5_0, PTE0_FN), | ||
885 | |||
886 | PINMUX_DATA(SCIF2_L_TXD_MARK, PSC5_0, PSC4_1, PTE5_FN), | ||
887 | PINMUX_DATA(SCIF4_SCK_MARK, PSD3_0, PSD2_1, PTE4_FN), | ||
888 | PINMUX_DATA(SCIF4_RXD_MARK, PSA3_0, PSA2_1, PTE3_FN), | ||
889 | PINMUX_DATA(SCIF4_TXD_MARK, PSA3_0, PSA2_1, PTE2_FN), | ||
890 | |||
891 | /* PTF FN */ | ||
892 | PINMUX_DATA(LCDVSYN_MARK, PSD8_0, PTF7_FN), | ||
893 | PINMUX_DATA(LCDDISP_MARK, PSD10_0, PSD9_0, PTF6_FN), | ||
894 | PINMUX_DATA(LCDHSYN_MARK, PSD10_0, PSD9_0, PTF5_FN), | ||
895 | PINMUX_DATA(LCDDON_MARK, PSD8_0, PTF4_FN), | ||
896 | PINMUX_DATA(LCDDCK_MARK, PSD10_0, PSD9_0, PTF3_FN), | ||
897 | PINMUX_DATA(LCDVEPWC_MARK, PSA6_0, PTF2_FN), | ||
898 | PINMUX_DATA(LCDD23_MARK, PSC7_0, PSC6_0, PTF1_FN), | ||
899 | PINMUX_DATA(LCDD22_MARK, PSC5_0, PSC4_0, PTF0_FN), | ||
900 | |||
901 | PINMUX_DATA(LCDRS_MARK, PSD10_0, PSD9_1, PTF6_FN), | ||
902 | PINMUX_DATA(LCDCS_MARK, PSD10_0, PSD9_1, PTF5_FN), | ||
903 | PINMUX_DATA(LCDWR_MARK, PSD10_0, PSD9_1, PTF3_FN), | ||
904 | |||
905 | PINMUX_DATA(SCIF0_TXD_MARK, PSA6_1, PTF2_FN), | ||
906 | PINMUX_DATA(SCIF2_L_SCK_MARK, PSC7_0, PSC6_1, PTF1_FN), | ||
907 | PINMUX_DATA(SCIF2_L_RXD_MARK, PSC5_0, PSC4_1, PTF0_FN), | ||
908 | |||
909 | /* PTG FN */ | ||
910 | PINMUX_DATA(AUDCK_MARK, PTG5_FN), | ||
911 | PINMUX_DATA(AUDSYNC_MARK, PTG4_FN), | ||
912 | PINMUX_DATA(AUDATA3_MARK, PTG3_FN), | ||
913 | PINMUX_DATA(AUDATA2_MARK, PTG2_FN), | ||
914 | PINMUX_DATA(AUDATA1_MARK, PTG1_FN), | ||
915 | PINMUX_DATA(AUDATA0_MARK, PTG0_FN), | ||
916 | |||
917 | /* PTH FN */ | ||
918 | PINMUX_DATA(VIO0_VD_MARK, PTH7_FN), | ||
919 | PINMUX_DATA(VIO0_CLK_MARK, PTH6_FN), | ||
920 | PINMUX_DATA(VIO0_D7_MARK, PTH5_FN), | ||
921 | PINMUX_DATA(VIO0_D6_MARK, PTH4_FN), | ||
922 | PINMUX_DATA(VIO0_D5_MARK, PTH3_FN), | ||
923 | PINMUX_DATA(VIO0_D4_MARK, PTH2_FN), | ||
924 | PINMUX_DATA(VIO0_D3_MARK, PTH1_FN), | ||
925 | PINMUX_DATA(VIO0_D2_MARK, PTH0_FN), | ||
926 | |||
927 | /* PTJ FN */ | ||
928 | PINMUX_DATA(PDSTATUS_MARK, PTJ7_FN), | ||
929 | PINMUX_DATA(STATUS2_MARK, PTJ6_FN), | ||
930 | PINMUX_DATA(STATUS0_MARK, PTJ5_FN), | ||
931 | PINMUX_DATA(A25_MARK, PSA8_0, PTJ3_FN), | ||
932 | PINMUX_DATA(BS_MARK, PSA8_1, PTJ3_FN), | ||
933 | PINMUX_DATA(A24_MARK, PTJ2_FN), | ||
934 | PINMUX_DATA(A23_MARK, PTJ1_FN), | ||
935 | PINMUX_DATA(A22_MARK, PTJ0_FN), | ||
936 | |||
937 | /* PTK FN */ | ||
938 | PINMUX_DATA(VIO1_D5_MARK, PSB7_0, PSB6_0, PTK7_FN), | ||
939 | PINMUX_DATA(VIO1_D4_MARK, PSB7_0, PSB6_0, PTK6_FN), | ||
940 | PINMUX_DATA(VIO1_D3_MARK, PSB7_0, PSB6_0, PTK5_FN), | ||
941 | PINMUX_DATA(VIO1_D2_MARK, PSB7_0, PSB6_0, PTK4_FN), | ||
942 | PINMUX_DATA(VIO1_D1_MARK, PSB7_0, PSB6_0, PTK3_FN), | ||
943 | PINMUX_DATA(VIO1_D0_MARK, PSB7_0, PSB6_0, PTK2_FN), | ||
944 | |||
945 | PINMUX_DATA(VIO0_D13_MARK, PSB7_0, PSB6_1, PTK7_FN), | ||
946 | PINMUX_DATA(VIO0_D12_MARK, PSB7_0, PSB6_1, PTK6_FN), | ||
947 | PINMUX_DATA(VIO0_D11_MARK, PSB7_0, PSB6_1, PTK5_FN), | ||
948 | PINMUX_DATA(VIO0_D10_MARK, PSB7_0, PSB6_1, PTK4_FN), | ||
949 | PINMUX_DATA(VIO0_D9_MARK, PSB7_0, PSB6_1, PTK3_FN), | ||
950 | PINMUX_DATA(VIO0_D8_MARK, PSB7_0, PSB6_1, PTK2_FN), | ||
951 | |||
952 | PINMUX_DATA(IDED5_MARK, PSB7_1, PSB6_0, PTK7_FN), | ||
953 | PINMUX_DATA(IDED4_MARK, PSB7_1, PSB6_0, PTK6_FN), | ||
954 | PINMUX_DATA(IDED3_MARK, PSB7_1, PSB6_0, PTK5_FN), | ||
955 | PINMUX_DATA(IDED2_MARK, PSB7_1, PSB6_0, PTK4_FN), | ||
956 | PINMUX_DATA(IDED1_MARK, PSB7_1, PSB6_0, PTK3_FN), | ||
957 | PINMUX_DATA(IDED0_MARK, PSB7_1, PSB6_0, PTK2_FN), | ||
958 | |||
959 | PINMUX_DATA(VIO0_FLD_MARK, PTK1_FN), | ||
960 | PINMUX_DATA(VIO0_HD_MARK, PTK0_FN), | ||
961 | |||
962 | /* PTL FN */ | ||
963 | PINMUX_DATA(DV_D5_MARK, PSB9_0, PSB8_0, PTL7_FN), | ||
964 | PINMUX_DATA(DV_D4_MARK, PSB9_0, PSB8_0, PTL6_FN), | ||
965 | PINMUX_DATA(DV_D3_MARK, PSE7_0, PSE6_0, PTL5_FN), | ||
966 | PINMUX_DATA(DV_D2_MARK, PSC9_0, PSC8_0, PTL4_FN), | ||
967 | PINMUX_DATA(DV_D1_MARK, PSC9_0, PSC8_0, PTL3_FN), | ||
968 | PINMUX_DATA(DV_D0_MARK, PSC9_0, PSC8_0, PTL2_FN), | ||
969 | PINMUX_DATA(DV_D15_MARK, PSD4_0, PTL1_FN), | ||
970 | PINMUX_DATA(DV_D14_MARK, PSE5_0, PSE4_0, PTL0_FN), | ||
971 | |||
972 | PINMUX_DATA(SCIF3_V_SCK_MARK, PSB9_0, PSB8_1, PTL7_FN), | ||
973 | PINMUX_DATA(SCIF3_V_RXD_MARK, PSB9_0, PSB8_1, PTL6_FN), | ||
974 | PINMUX_DATA(SCIF3_V_TXD_MARK, PSE7_0, PSE6_1, PTL5_FN), | ||
975 | PINMUX_DATA(SCIF1_SCK_MARK, PSC9_0, PSC8_1, PTL4_FN), | ||
976 | PINMUX_DATA(SCIF1_RXD_MARK, PSC9_0, PSC8_1, PTL3_FN), | ||
977 | PINMUX_DATA(SCIF1_TXD_MARK, PSC9_0, PSC8_1, PTL2_FN), | ||
978 | |||
979 | PINMUX_DATA(RMII_RXD0_MARK, PSB9_1, PSB8_0, PTL7_FN), | ||
980 | PINMUX_DATA(RMII_RXD1_MARK, PSB9_1, PSB8_0, PTL6_FN), | ||
981 | PINMUX_DATA(RMII_REF_CLK_MARK, PSE7_1, PSE6_0, PTL5_FN), | ||
982 | PINMUX_DATA(RMII_TX_EN_MARK, PSC9_1, PSC8_0, PTL4_FN), | ||
983 | PINMUX_DATA(RMII_TXD0_MARK, PSC9_1, PSC8_0, PTL3_FN), | ||
984 | PINMUX_DATA(RMII_TXD1_MARK, PSC9_1, PSC8_0, PTL2_FN), | ||
985 | |||
986 | PINMUX_DATA(MSIOF0_MCK_MARK, PSE5_0, PSE4_1, PTL0_FN), | ||
987 | |||
988 | /* PTM FN */ | ||
989 | PINMUX_DATA(DV_D13_MARK, PSC13_0, PSC12_0, PTM7_FN), | ||
990 | PINMUX_DATA(DV_D12_MARK, PSC13_0, PSC12_0, PTM6_FN), | ||
991 | PINMUX_DATA(DV_D11_MARK, PSC13_0, PSC12_0, PTM5_FN), | ||
992 | PINMUX_DATA(DV_D10_MARK, PSC13_0, PSC12_0, PTM4_FN), | ||
993 | PINMUX_DATA(DV_D9_MARK, PSC11_0, PSC10_0, PTM3_FN), | ||
994 | PINMUX_DATA(DV_D8_MARK, PSC11_0, PSC10_0, PTM2_FN), | ||
995 | |||
996 | PINMUX_DATA(MSIOF0_TSCK_MARK, PSC13_0, PSC12_1, PTM7_FN), | ||
997 | PINMUX_DATA(MSIOF0_RXD_MARK, PSC13_0, PSC12_1, PTM6_FN), | ||
998 | PINMUX_DATA(MSIOF0_TXD_MARK, PSC13_0, PSC12_1, PTM5_FN), | ||
999 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PSC13_0, PSC12_1, PTM4_FN), | ||
1000 | PINMUX_DATA(MSIOF0_SS1_MARK, PSC11_0, PSC10_1, PTM3_FN), | ||
1001 | PINMUX_DATA(MSIOF0_RSCK_MARK, PSC11_1, PSC10_0, PTM3_FN), | ||
1002 | PINMUX_DATA(MSIOF0_SS2_MARK, PSC11_0, PSC10_1, PTM2_FN), | ||
1003 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PSC11_1, PSC10_0, PTM2_FN), | ||
1004 | |||
1005 | PINMUX_DATA(LCDVCPWC_MARK, PSA6_0, PTM1_FN), | ||
1006 | PINMUX_DATA(LCDRD_MARK, PSA7_0, PTM0_FN), | ||
1007 | |||
1008 | PINMUX_DATA(SCIF0_RXD_MARK, PSA6_1, PTM1_FN), | ||
1009 | PINMUX_DATA(SCIF0_SCK_MARK, PSA7_1, PTM0_FN), | ||
1010 | |||
1011 | /* PTN FN */ | ||
1012 | PINMUX_DATA(VIO0_D1_MARK, PTN7_FN), | ||
1013 | PINMUX_DATA(VIO0_D0_MARK, PTN6_FN), | ||
1014 | |||
1015 | PINMUX_DATA(DV_CLKI_MARK, PSD11_0, PTN5_FN), | ||
1016 | PINMUX_DATA(DV_CLK_MARK, PSD13_0, PSD12_0, PTN4_FN), | ||
1017 | PINMUX_DATA(DV_VSYNC_MARK, PSD15_0, PSD14_0, PTN3_FN), | ||
1018 | PINMUX_DATA(DV_HSYNC_MARK, PSB5_0, PSB4_0, PTN2_FN), | ||
1019 | PINMUX_DATA(DV_D7_MARK, PSB3_0, PSB2_0, PTN1_FN), | ||
1020 | PINMUX_DATA(DV_D6_MARK, PSB1_0, PSB0_0, PTN0_FN), | ||
1021 | |||
1022 | PINMUX_DATA(SCIF2_V_SCK_MARK, PSD13_0, PSD12_1, PTN4_FN), | ||
1023 | PINMUX_DATA(SCIF2_V_RXD_MARK, PSD15_0, PSD14_1, PTN3_FN), | ||
1024 | PINMUX_DATA(SCIF2_V_TXD_MARK, PSB5_0, PSB4_1, PTN2_FN), | ||
1025 | PINMUX_DATA(SCIF3_V_CTS_MARK, PSB3_0, PSB2_1, PTN1_FN), | ||
1026 | PINMUX_DATA(SCIF3_V_RTS_MARK, PSB1_0, PSB0_1, PTN0_FN), | ||
1027 | |||
1028 | PINMUX_DATA(RMII_RX_ER_MARK, PSB3_1, PSB2_0, PTN1_FN), | ||
1029 | PINMUX_DATA(RMII_CRS_DV_MARK, PSB1_1, PSB0_0, PTN0_FN), | ||
1030 | |||
1031 | /* PTQ FN */ | ||
1032 | PINMUX_DATA(D7_MARK, PTQ7_FN), | ||
1033 | PINMUX_DATA(D6_MARK, PTQ6_FN), | ||
1034 | PINMUX_DATA(D5_MARK, PTQ5_FN), | ||
1035 | PINMUX_DATA(D4_MARK, PTQ4_FN), | ||
1036 | PINMUX_DATA(D3_MARK, PTQ3_FN), | ||
1037 | PINMUX_DATA(D2_MARK, PTQ2_FN), | ||
1038 | PINMUX_DATA(D1_MARK, PTQ1_FN), | ||
1039 | PINMUX_DATA(D0_MARK, PTQ0_FN), | ||
1040 | |||
1041 | /* PTR FN */ | ||
1042 | PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN), | ||
1043 | PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN), | ||
1044 | PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN), | ||
1045 | PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN), | ||
1046 | PINMUX_DATA(IOIS16_MARK, PSA5_0, PTR3_FN), | ||
1047 | PINMUX_DATA(WAIT_MARK, PTR2_FN), | ||
1048 | PINMUX_DATA(WE3_ICIOWR_MARK, PSA1_0, PSA0_0, PTR1_FN), | ||
1049 | PINMUX_DATA(WE2_ICIORD_MARK, PSD1_0, PSD0_0, PTR0_FN), | ||
1050 | |||
1051 | PINMUX_DATA(LCDLCLK_MARK, PSA5_1, PTR3_FN), | ||
1052 | |||
1053 | PINMUX_DATA(IDEA2_MARK, PSD1_1, PSD0_0, PTR0_FN), | ||
1054 | |||
1055 | PINMUX_DATA(TPUTO3_MARK, PSA1_0, PSA0_1, PTR1_FN), | ||
1056 | PINMUX_DATA(TPUTI3_MARK, PSA1_1, PSA0_0, PTR1_FN), | ||
1057 | PINMUX_DATA(TPUTO2_MARK, PSD1_0, PSD0_1, PTR0_FN), | ||
1058 | |||
1059 | /* PTS FN */ | ||
1060 | PINMUX_DATA(VIO_CKO_MARK, PTS6_FN), | ||
1061 | |||
1062 | PINMUX_DATA(TPUTI2_MARK, PSE9_0, PSE8_1, PTS5_FN), | ||
1063 | |||
1064 | PINMUX_DATA(IDEIORDY_MARK, PSE9_1, PSE8_0, PTS5_FN), | ||
1065 | |||
1066 | PINMUX_DATA(VIO1_FLD_MARK, PSE9_0, PSE8_0, PTS5_FN), | ||
1067 | PINMUX_DATA(VIO1_HD_MARK, PSA10_0, PTS4_FN), | ||
1068 | PINMUX_DATA(VIO1_VD_MARK, PSA9_0, PTS3_FN), | ||
1069 | PINMUX_DATA(VIO1_CLK_MARK, PSA9_0, PTS2_FN), | ||
1070 | PINMUX_DATA(VIO1_D7_MARK, PSB7_0, PSB6_0, PTS1_FN), | ||
1071 | PINMUX_DATA(VIO1_D6_MARK, PSB7_0, PSB6_0, PTS0_FN), | ||
1072 | |||
1073 | PINMUX_DATA(SCIF5_SCK_MARK, PSA10_1, PTS4_FN), | ||
1074 | PINMUX_DATA(SCIF5_RXD_MARK, PSA9_1, PTS3_FN), | ||
1075 | PINMUX_DATA(SCIF5_TXD_MARK, PSA9_1, PTS2_FN), | ||
1076 | |||
1077 | PINMUX_DATA(VIO0_D15_MARK, PSB7_0, PSB6_1, PTS1_FN), | ||
1078 | PINMUX_DATA(VIO0_D14_MARK, PSB7_0, PSB6_1, PTS0_FN), | ||
1079 | |||
1080 | PINMUX_DATA(IDED7_MARK, PSB7_1, PSB6_0, PTS1_FN), | ||
1081 | PINMUX_DATA(IDED6_MARK, PSB7_1, PSB6_0, PTS0_FN), | ||
1082 | |||
1083 | /* PTT FN */ | ||
1084 | PINMUX_DATA(D15_MARK, PTT7_FN), | ||
1085 | PINMUX_DATA(D14_MARK, PTT6_FN), | ||
1086 | PINMUX_DATA(D13_MARK, PTT5_FN), | ||
1087 | PINMUX_DATA(D12_MARK, PTT4_FN), | ||
1088 | PINMUX_DATA(D11_MARK, PTT3_FN), | ||
1089 | PINMUX_DATA(D10_MARK, PTT2_FN), | ||
1090 | PINMUX_DATA(D9_MARK, PTT1_FN), | ||
1091 | PINMUX_DATA(D8_MARK, PTT0_FN), | ||
1092 | |||
1093 | /* PTU FN */ | ||
1094 | PINMUX_DATA(DMAC_DACK0_MARK, PTU7_FN), | ||
1095 | PINMUX_DATA(DMAC_DREQ0_MARK, PTU6_FN), | ||
1096 | |||
1097 | PINMUX_DATA(FSIOASD_MARK, PSE1_0, PTU5_FN), | ||
1098 | PINMUX_DATA(FSIIABCK_MARK, PSE1_0, PTU4_FN), | ||
1099 | PINMUX_DATA(FSIIALRCK_MARK, PSE1_0, PTU3_FN), | ||
1100 | PINMUX_DATA(FSIOABCK_MARK, PSE1_0, PTU2_FN), | ||
1101 | PINMUX_DATA(FSIOALRCK_MARK, PSE1_0, PTU1_FN), | ||
1102 | PINMUX_DATA(CLKAUDIOAO_MARK, PSE0_0, PTU0_FN), | ||
1103 | |||
1104 | /* PTV FN */ | ||
1105 | PINMUX_DATA(FSIIBSD_MARK, PSD7_0, PSD6_0, PTV7_FN), | ||
1106 | PINMUX_DATA(FSIOBSD_MARK, PSD7_0, PSD6_0, PTV6_FN), | ||
1107 | PINMUX_DATA(FSIIBBCK_MARK, PSC15_0, PSC14_0, PTV5_FN), | ||
1108 | PINMUX_DATA(FSIIBLRCK_MARK, PSC15_0, PSC14_0, PTV4_FN), | ||
1109 | PINMUX_DATA(FSIOBBCK_MARK, PSC15_0, PSC14_0, PTV3_FN), | ||
1110 | PINMUX_DATA(FSIOBLRCK_MARK, PSC15_0, PSC14_0, PTV2_FN), | ||
1111 | PINMUX_DATA(CLKAUDIOBO_MARK, PSE3_0, PSE2_0, PTV1_FN), | ||
1112 | PINMUX_DATA(FSIIASD_MARK, PSE10_0, PTV0_FN), | ||
1113 | |||
1114 | PINMUX_DATA(MSIOF1_SS2_MARK, PSD7_0, PSD6_1, PTV7_FN), | ||
1115 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PSD7_1, PSD6_0, PTV7_FN), | ||
1116 | PINMUX_DATA(MSIOF1_SS1_MARK, PSD7_0, PSD6_1, PTV6_FN), | ||
1117 | PINMUX_DATA(MSIOF1_RSCK_MARK, PSD7_1, PSD6_0, PTV6_FN), | ||
1118 | PINMUX_DATA(MSIOF1_RXD_MARK, PSC15_0, PSC14_1, PTV5_FN), | ||
1119 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PSC15_0, PSC14_1, PTV4_FN), | ||
1120 | PINMUX_DATA(MSIOF1_TSCK_MARK, PSC15_0, PSC14_1, PTV3_FN), | ||
1121 | PINMUX_DATA(MSIOF1_TXD_MARK, PSC15_0, PSC14_1, PTV2_FN), | ||
1122 | PINMUX_DATA(MSIOF1_MCK_MARK, PSE3_0, PSE2_1, PTV1_FN), | ||
1123 | |||
1124 | /* PTW FN */ | ||
1125 | PINMUX_DATA(MMC_D7_MARK, PSE13_0, PSE12_0, PTW7_FN), | ||
1126 | PINMUX_DATA(MMC_D6_MARK, PSE13_0, PSE12_0, PTW6_FN), | ||
1127 | PINMUX_DATA(MMC_D5_MARK, PSE13_0, PSE12_0, PTW5_FN), | ||
1128 | PINMUX_DATA(MMC_D4_MARK, PSE13_0, PSE12_0, PTW4_FN), | ||
1129 | PINMUX_DATA(MMC_D3_MARK, PSA13_0, PTW3_FN), | ||
1130 | PINMUX_DATA(MMC_D2_MARK, PSA13_0, PTW2_FN), | ||
1131 | PINMUX_DATA(MMC_D1_MARK, PSA13_0, PTW1_FN), | ||
1132 | PINMUX_DATA(MMC_D0_MARK, PSA13_0, PTW0_FN), | ||
1133 | |||
1134 | PINMUX_DATA(SDHI1CD_MARK, PSE13_0, PSE12_1, PTW7_FN), | ||
1135 | PINMUX_DATA(SDHI1WP_MARK, PSE13_0, PSE12_1, PTW6_FN), | ||
1136 | PINMUX_DATA(SDHI1D3_MARK, PSE13_0, PSE12_1, PTW5_FN), | ||
1137 | PINMUX_DATA(SDHI1D2_MARK, PSE13_0, PSE12_1, PTW4_FN), | ||
1138 | PINMUX_DATA(SDHI1D1_MARK, PSA13_1, PTW3_FN), | ||
1139 | PINMUX_DATA(SDHI1D0_MARK, PSA13_1, PTW2_FN), | ||
1140 | PINMUX_DATA(SDHI1CMD_MARK, PSA13_1, PTW1_FN), | ||
1141 | PINMUX_DATA(SDHI1CLK_MARK, PSA13_1, PTW0_FN), | ||
1142 | |||
1143 | PINMUX_DATA(IODACK_MARK, PSE13_1, PSE12_0, PTW7_FN), | ||
1144 | PINMUX_DATA(IDERST_MARK, PSE13_1, PSE12_0, PTW6_FN), | ||
1145 | PINMUX_DATA(EXBUF_ENB_MARK, PSE13_1, PSE12_0, PTW5_FN), | ||
1146 | PINMUX_DATA(DIRECTION_MARK, PSE13_1, PSE12_0, PTW4_FN), | ||
1147 | |||
1148 | /* PTX FN */ | ||
1149 | PINMUX_DATA(DMAC_DACK1_MARK, PSA12_0, PTX7_FN), | ||
1150 | PINMUX_DATA(DMAC_DREQ1_MARK, PSA12_0, PTX6_FN), | ||
1151 | |||
1152 | PINMUX_DATA(IRDA_OUT_MARK, PSA12_1, PTX7_FN), | ||
1153 | PINMUX_DATA(IRDA_IN_MARK, PSA12_1, PTX6_FN), | ||
1154 | |||
1155 | PINMUX_DATA(TSIF_TS0_SDAT_MARK, PSC0_0, PTX5_FN), | ||
1156 | PINMUX_DATA(TSIF_TS0_SCK_MARK, PSC1_0, PTX4_FN), | ||
1157 | PINMUX_DATA(TSIF_TS0_SDEN_MARK, PSC2_0, PTX3_FN), | ||
1158 | PINMUX_DATA(TSIF_TS0_SPSYNC_MARK, PTX2_FN), | ||
1159 | |||
1160 | PINMUX_DATA(LNKSTA_MARK, PSC0_1, PTX5_FN), | ||
1161 | PINMUX_DATA(MDIO_MARK, PSC1_1, PTX4_FN), | ||
1162 | PINMUX_DATA(MDC_MARK, PSC2_1, PTX3_FN), | ||
1163 | |||
1164 | PINMUX_DATA(MMC_CLK_MARK, PTX1_FN), | ||
1165 | PINMUX_DATA(MMC_CMD_MARK, PTX0_FN), | ||
1166 | |||
1167 | /* PTY FN */ | ||
1168 | PINMUX_DATA(SDHI0CD_MARK, PTY7_FN), | ||
1169 | PINMUX_DATA(SDHI0WP_MARK, PTY6_FN), | ||
1170 | PINMUX_DATA(SDHI0D3_MARK, PTY5_FN), | ||
1171 | PINMUX_DATA(SDHI0D2_MARK, PTY4_FN), | ||
1172 | PINMUX_DATA(SDHI0D1_MARK, PTY3_FN), | ||
1173 | PINMUX_DATA(SDHI0D0_MARK, PTY2_FN), | ||
1174 | PINMUX_DATA(SDHI0CMD_MARK, PTY1_FN), | ||
1175 | PINMUX_DATA(SDHI0CLK_MARK, PTY0_FN), | ||
1176 | |||
1177 | /* PTZ FN */ | ||
1178 | PINMUX_DATA(INTC_IRQ7_MARK, PSB10_0, PTZ7_FN), | ||
1179 | PINMUX_DATA(INTC_IRQ6_MARK, PSB11_0, PTZ6_FN), | ||
1180 | PINMUX_DATA(INTC_IRQ5_MARK, PSB12_0, PTZ5_FN), | ||
1181 | PINMUX_DATA(INTC_IRQ4_MARK, PSB13_0, PTZ4_FN), | ||
1182 | PINMUX_DATA(INTC_IRQ3_MARK, PSB14_0, PTZ3_FN), | ||
1183 | PINMUX_DATA(INTC_IRQ2_MARK, PTZ2_FN), | ||
1184 | PINMUX_DATA(INTC_IRQ1_MARK, PTZ1_FN), | ||
1185 | PINMUX_DATA(INTC_IRQ0_MARK, PTZ0_FN), | ||
1186 | |||
1187 | PINMUX_DATA(SCIF3_I_CTS_MARK, PSB10_1, PTZ7_FN), | ||
1188 | PINMUX_DATA(SCIF3_I_RTS_MARK, PSB11_1, PTZ6_FN), | ||
1189 | PINMUX_DATA(SCIF3_I_SCK_MARK, PSB12_1, PTZ5_FN), | ||
1190 | PINMUX_DATA(SCIF3_I_RXD_MARK, PSB13_1, PTZ4_FN), | ||
1191 | PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN), | ||
1192 | }; | ||
1193 | |||
1194 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1195 | /* PTA */ | ||
1196 | PINMUX_GPIO(GPIO_PTA7, PTA7_DATA), | ||
1197 | PINMUX_GPIO(GPIO_PTA6, PTA6_DATA), | ||
1198 | PINMUX_GPIO(GPIO_PTA5, PTA5_DATA), | ||
1199 | PINMUX_GPIO(GPIO_PTA4, PTA4_DATA), | ||
1200 | PINMUX_GPIO(GPIO_PTA3, PTA3_DATA), | ||
1201 | PINMUX_GPIO(GPIO_PTA2, PTA2_DATA), | ||
1202 | PINMUX_GPIO(GPIO_PTA1, PTA1_DATA), | ||
1203 | PINMUX_GPIO(GPIO_PTA0, PTA0_DATA), | ||
1204 | |||
1205 | /* PTB */ | ||
1206 | PINMUX_GPIO(GPIO_PTB7, PTB7_DATA), | ||
1207 | PINMUX_GPIO(GPIO_PTB6, PTB6_DATA), | ||
1208 | PINMUX_GPIO(GPIO_PTB5, PTB5_DATA), | ||
1209 | PINMUX_GPIO(GPIO_PTB4, PTB4_DATA), | ||
1210 | PINMUX_GPIO(GPIO_PTB3, PTB3_DATA), | ||
1211 | PINMUX_GPIO(GPIO_PTB2, PTB2_DATA), | ||
1212 | PINMUX_GPIO(GPIO_PTB1, PTB1_DATA), | ||
1213 | PINMUX_GPIO(GPIO_PTB0, PTB0_DATA), | ||
1214 | |||
1215 | /* PTC */ | ||
1216 | PINMUX_GPIO(GPIO_PTC7, PTC7_DATA), | ||
1217 | PINMUX_GPIO(GPIO_PTC6, PTC6_DATA), | ||
1218 | PINMUX_GPIO(GPIO_PTC5, PTC5_DATA), | ||
1219 | PINMUX_GPIO(GPIO_PTC4, PTC4_DATA), | ||
1220 | PINMUX_GPIO(GPIO_PTC3, PTC3_DATA), | ||
1221 | PINMUX_GPIO(GPIO_PTC2, PTC2_DATA), | ||
1222 | PINMUX_GPIO(GPIO_PTC1, PTC1_DATA), | ||
1223 | PINMUX_GPIO(GPIO_PTC0, PTC0_DATA), | ||
1224 | |||
1225 | /* PTD */ | ||
1226 | PINMUX_GPIO(GPIO_PTD7, PTD7_DATA), | ||
1227 | PINMUX_GPIO(GPIO_PTD6, PTD6_DATA), | ||
1228 | PINMUX_GPIO(GPIO_PTD5, PTD5_DATA), | ||
1229 | PINMUX_GPIO(GPIO_PTD4, PTD4_DATA), | ||
1230 | PINMUX_GPIO(GPIO_PTD3, PTD3_DATA), | ||
1231 | PINMUX_GPIO(GPIO_PTD2, PTD2_DATA), | ||
1232 | PINMUX_GPIO(GPIO_PTD1, PTD1_DATA), | ||
1233 | PINMUX_GPIO(GPIO_PTD0, PTD0_DATA), | ||
1234 | |||
1235 | /* PTE */ | ||
1236 | PINMUX_GPIO(GPIO_PTE7, PTE7_DATA), | ||
1237 | PINMUX_GPIO(GPIO_PTE6, PTE6_DATA), | ||
1238 | PINMUX_GPIO(GPIO_PTE5, PTE5_DATA), | ||
1239 | PINMUX_GPIO(GPIO_PTE4, PTE4_DATA), | ||
1240 | PINMUX_GPIO(GPIO_PTE3, PTE3_DATA), | ||
1241 | PINMUX_GPIO(GPIO_PTE2, PTE2_DATA), | ||
1242 | PINMUX_GPIO(GPIO_PTE1, PTE1_DATA), | ||
1243 | PINMUX_GPIO(GPIO_PTE0, PTE0_DATA), | ||
1244 | |||
1245 | /* PTF */ | ||
1246 | PINMUX_GPIO(GPIO_PTF7, PTF7_DATA), | ||
1247 | PINMUX_GPIO(GPIO_PTF6, PTF6_DATA), | ||
1248 | PINMUX_GPIO(GPIO_PTF5, PTF5_DATA), | ||
1249 | PINMUX_GPIO(GPIO_PTF4, PTF4_DATA), | ||
1250 | PINMUX_GPIO(GPIO_PTF3, PTF3_DATA), | ||
1251 | PINMUX_GPIO(GPIO_PTF2, PTF2_DATA), | ||
1252 | PINMUX_GPIO(GPIO_PTF1, PTF1_DATA), | ||
1253 | PINMUX_GPIO(GPIO_PTF0, PTF0_DATA), | ||
1254 | |||
1255 | /* PTG */ | ||
1256 | PINMUX_GPIO(GPIO_PTG5, PTG5_DATA), | ||
1257 | PINMUX_GPIO(GPIO_PTG4, PTG4_DATA), | ||
1258 | PINMUX_GPIO(GPIO_PTG3, PTG3_DATA), | ||
1259 | PINMUX_GPIO(GPIO_PTG2, PTG2_DATA), | ||
1260 | PINMUX_GPIO(GPIO_PTG1, PTG1_DATA), | ||
1261 | PINMUX_GPIO(GPIO_PTG0, PTG0_DATA), | ||
1262 | |||
1263 | /* PTH */ | ||
1264 | PINMUX_GPIO(GPIO_PTH7, PTH7_DATA), | ||
1265 | PINMUX_GPIO(GPIO_PTH6, PTH6_DATA), | ||
1266 | PINMUX_GPIO(GPIO_PTH5, PTH5_DATA), | ||
1267 | PINMUX_GPIO(GPIO_PTH4, PTH4_DATA), | ||
1268 | PINMUX_GPIO(GPIO_PTH3, PTH3_DATA), | ||
1269 | PINMUX_GPIO(GPIO_PTH2, PTH2_DATA), | ||
1270 | PINMUX_GPIO(GPIO_PTH1, PTH1_DATA), | ||
1271 | PINMUX_GPIO(GPIO_PTH0, PTH0_DATA), | ||
1272 | |||
1273 | /* PTJ */ | ||
1274 | PINMUX_GPIO(GPIO_PTJ7, PTJ7_DATA), | ||
1275 | PINMUX_GPIO(GPIO_PTJ6, PTJ6_DATA), | ||
1276 | PINMUX_GPIO(GPIO_PTJ5, PTJ5_DATA), | ||
1277 | PINMUX_GPIO(GPIO_PTJ3, PTJ3_DATA), | ||
1278 | PINMUX_GPIO(GPIO_PTJ2, PTJ2_DATA), | ||
1279 | PINMUX_GPIO(GPIO_PTJ1, PTJ1_DATA), | ||
1280 | PINMUX_GPIO(GPIO_PTJ0, PTJ0_DATA), | ||
1281 | |||
1282 | /* PTK */ | ||
1283 | PINMUX_GPIO(GPIO_PTK7, PTK7_DATA), | ||
1284 | PINMUX_GPIO(GPIO_PTK6, PTK6_DATA), | ||
1285 | PINMUX_GPIO(GPIO_PTK5, PTK5_DATA), | ||
1286 | PINMUX_GPIO(GPIO_PTK4, PTK4_DATA), | ||
1287 | PINMUX_GPIO(GPIO_PTK3, PTK3_DATA), | ||
1288 | PINMUX_GPIO(GPIO_PTK2, PTK2_DATA), | ||
1289 | PINMUX_GPIO(GPIO_PTK1, PTK1_DATA), | ||
1290 | PINMUX_GPIO(GPIO_PTK0, PTK0_DATA), | ||
1291 | |||
1292 | /* PTL */ | ||
1293 | PINMUX_GPIO(GPIO_PTL7, PTL7_DATA), | ||
1294 | PINMUX_GPIO(GPIO_PTL6, PTL6_DATA), | ||
1295 | PINMUX_GPIO(GPIO_PTL5, PTL5_DATA), | ||
1296 | PINMUX_GPIO(GPIO_PTL4, PTL4_DATA), | ||
1297 | PINMUX_GPIO(GPIO_PTL3, PTL3_DATA), | ||
1298 | PINMUX_GPIO(GPIO_PTL2, PTL2_DATA), | ||
1299 | PINMUX_GPIO(GPIO_PTL1, PTL1_DATA), | ||
1300 | PINMUX_GPIO(GPIO_PTL0, PTL0_DATA), | ||
1301 | |||
1302 | /* PTM */ | ||
1303 | PINMUX_GPIO(GPIO_PTM7, PTM7_DATA), | ||
1304 | PINMUX_GPIO(GPIO_PTM6, PTM6_DATA), | ||
1305 | PINMUX_GPIO(GPIO_PTM5, PTM5_DATA), | ||
1306 | PINMUX_GPIO(GPIO_PTM4, PTM4_DATA), | ||
1307 | PINMUX_GPIO(GPIO_PTM3, PTM3_DATA), | ||
1308 | PINMUX_GPIO(GPIO_PTM2, PTM2_DATA), | ||
1309 | PINMUX_GPIO(GPIO_PTM1, PTM1_DATA), | ||
1310 | PINMUX_GPIO(GPIO_PTM0, PTM0_DATA), | ||
1311 | |||
1312 | /* PTN */ | ||
1313 | PINMUX_GPIO(GPIO_PTN7, PTN7_DATA), | ||
1314 | PINMUX_GPIO(GPIO_PTN6, PTN6_DATA), | ||
1315 | PINMUX_GPIO(GPIO_PTN5, PTN5_DATA), | ||
1316 | PINMUX_GPIO(GPIO_PTN4, PTN4_DATA), | ||
1317 | PINMUX_GPIO(GPIO_PTN3, PTN3_DATA), | ||
1318 | PINMUX_GPIO(GPIO_PTN2, PTN2_DATA), | ||
1319 | PINMUX_GPIO(GPIO_PTN1, PTN1_DATA), | ||
1320 | PINMUX_GPIO(GPIO_PTN0, PTN0_DATA), | ||
1321 | |||
1322 | /* PTQ */ | ||
1323 | PINMUX_GPIO(GPIO_PTQ7, PTQ7_DATA), | ||
1324 | PINMUX_GPIO(GPIO_PTQ6, PTQ6_DATA), | ||
1325 | PINMUX_GPIO(GPIO_PTQ5, PTQ5_DATA), | ||
1326 | PINMUX_GPIO(GPIO_PTQ4, PTQ4_DATA), | ||
1327 | PINMUX_GPIO(GPIO_PTQ3, PTQ3_DATA), | ||
1328 | PINMUX_GPIO(GPIO_PTQ2, PTQ2_DATA), | ||
1329 | PINMUX_GPIO(GPIO_PTQ1, PTQ1_DATA), | ||
1330 | PINMUX_GPIO(GPIO_PTQ0, PTQ0_DATA), | ||
1331 | |||
1332 | /* PTR */ | ||
1333 | PINMUX_GPIO(GPIO_PTR7, PTR7_DATA), | ||
1334 | PINMUX_GPIO(GPIO_PTR6, PTR6_DATA), | ||
1335 | PINMUX_GPIO(GPIO_PTR5, PTR5_DATA), | ||
1336 | PINMUX_GPIO(GPIO_PTR4, PTR4_DATA), | ||
1337 | PINMUX_GPIO(GPIO_PTR3, PTR3_DATA), | ||
1338 | PINMUX_GPIO(GPIO_PTR2, PTR2_DATA), | ||
1339 | PINMUX_GPIO(GPIO_PTR1, PTR1_DATA), | ||
1340 | PINMUX_GPIO(GPIO_PTR0, PTR0_DATA), | ||
1341 | |||
1342 | /* PTS */ | ||
1343 | PINMUX_GPIO(GPIO_PTS6, PTS6_DATA), | ||
1344 | PINMUX_GPIO(GPIO_PTS5, PTS5_DATA), | ||
1345 | PINMUX_GPIO(GPIO_PTS4, PTS4_DATA), | ||
1346 | PINMUX_GPIO(GPIO_PTS3, PTS3_DATA), | ||
1347 | PINMUX_GPIO(GPIO_PTS2, PTS2_DATA), | ||
1348 | PINMUX_GPIO(GPIO_PTS1, PTS1_DATA), | ||
1349 | PINMUX_GPIO(GPIO_PTS0, PTS0_DATA), | ||
1350 | |||
1351 | /* PTT */ | ||
1352 | PINMUX_GPIO(GPIO_PTT7, PTT7_DATA), | ||
1353 | PINMUX_GPIO(GPIO_PTT6, PTT6_DATA), | ||
1354 | PINMUX_GPIO(GPIO_PTT5, PTT5_DATA), | ||
1355 | PINMUX_GPIO(GPIO_PTT4, PTT4_DATA), | ||
1356 | PINMUX_GPIO(GPIO_PTT3, PTT3_DATA), | ||
1357 | PINMUX_GPIO(GPIO_PTT2, PTT2_DATA), | ||
1358 | PINMUX_GPIO(GPIO_PTT1, PTT1_DATA), | ||
1359 | PINMUX_GPIO(GPIO_PTT0, PTT0_DATA), | ||
1360 | |||
1361 | /* PTU */ | ||
1362 | PINMUX_GPIO(GPIO_PTU7, PTU7_DATA), | ||
1363 | PINMUX_GPIO(GPIO_PTU6, PTU6_DATA), | ||
1364 | PINMUX_GPIO(GPIO_PTU5, PTU5_DATA), | ||
1365 | PINMUX_GPIO(GPIO_PTU4, PTU4_DATA), | ||
1366 | PINMUX_GPIO(GPIO_PTU3, PTU3_DATA), | ||
1367 | PINMUX_GPIO(GPIO_PTU2, PTU2_DATA), | ||
1368 | PINMUX_GPIO(GPIO_PTU1, PTU1_DATA), | ||
1369 | PINMUX_GPIO(GPIO_PTU0, PTU0_DATA), | ||
1370 | |||
1371 | /* PTV */ | ||
1372 | PINMUX_GPIO(GPIO_PTV7, PTV7_DATA), | ||
1373 | PINMUX_GPIO(GPIO_PTV6, PTV6_DATA), | ||
1374 | PINMUX_GPIO(GPIO_PTV5, PTV5_DATA), | ||
1375 | PINMUX_GPIO(GPIO_PTV4, PTV4_DATA), | ||
1376 | PINMUX_GPIO(GPIO_PTV3, PTV3_DATA), | ||
1377 | PINMUX_GPIO(GPIO_PTV2, PTV2_DATA), | ||
1378 | PINMUX_GPIO(GPIO_PTV1, PTV1_DATA), | ||
1379 | PINMUX_GPIO(GPIO_PTV0, PTV0_DATA), | ||
1380 | |||
1381 | /* PTW */ | ||
1382 | PINMUX_GPIO(GPIO_PTW7, PTW7_DATA), | ||
1383 | PINMUX_GPIO(GPIO_PTW6, PTW6_DATA), | ||
1384 | PINMUX_GPIO(GPIO_PTW5, PTW5_DATA), | ||
1385 | PINMUX_GPIO(GPIO_PTW4, PTW4_DATA), | ||
1386 | PINMUX_GPIO(GPIO_PTW3, PTW3_DATA), | ||
1387 | PINMUX_GPIO(GPIO_PTW2, PTW2_DATA), | ||
1388 | PINMUX_GPIO(GPIO_PTW1, PTW1_DATA), | ||
1389 | PINMUX_GPIO(GPIO_PTW0, PTW0_DATA), | ||
1390 | |||
1391 | /* PTX */ | ||
1392 | PINMUX_GPIO(GPIO_PTX7, PTX7_DATA), | ||
1393 | PINMUX_GPIO(GPIO_PTX6, PTX6_DATA), | ||
1394 | PINMUX_GPIO(GPIO_PTX5, PTX5_DATA), | ||
1395 | PINMUX_GPIO(GPIO_PTX4, PTX4_DATA), | ||
1396 | PINMUX_GPIO(GPIO_PTX3, PTX3_DATA), | ||
1397 | PINMUX_GPIO(GPIO_PTX2, PTX2_DATA), | ||
1398 | PINMUX_GPIO(GPIO_PTX1, PTX1_DATA), | ||
1399 | PINMUX_GPIO(GPIO_PTX0, PTX0_DATA), | ||
1400 | |||
1401 | /* PTY */ | ||
1402 | PINMUX_GPIO(GPIO_PTY7, PTY7_DATA), | ||
1403 | PINMUX_GPIO(GPIO_PTY6, PTY6_DATA), | ||
1404 | PINMUX_GPIO(GPIO_PTY5, PTY5_DATA), | ||
1405 | PINMUX_GPIO(GPIO_PTY4, PTY4_DATA), | ||
1406 | PINMUX_GPIO(GPIO_PTY3, PTY3_DATA), | ||
1407 | PINMUX_GPIO(GPIO_PTY2, PTY2_DATA), | ||
1408 | PINMUX_GPIO(GPIO_PTY1, PTY1_DATA), | ||
1409 | PINMUX_GPIO(GPIO_PTY0, PTY0_DATA), | ||
1410 | |||
1411 | /* PTZ */ | ||
1412 | PINMUX_GPIO(GPIO_PTZ7, PTZ7_DATA), | ||
1413 | PINMUX_GPIO(GPIO_PTZ6, PTZ6_DATA), | ||
1414 | PINMUX_GPIO(GPIO_PTZ5, PTZ5_DATA), | ||
1415 | PINMUX_GPIO(GPIO_PTZ4, PTZ4_DATA), | ||
1416 | PINMUX_GPIO(GPIO_PTZ3, PTZ3_DATA), | ||
1417 | PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA), | ||
1418 | PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA), | ||
1419 | PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA), | ||
1420 | |||
1421 | /* BSC */ | ||
1422 | PINMUX_GPIO(GPIO_FN_D31, D31_MARK), | ||
1423 | PINMUX_GPIO(GPIO_FN_D30, D30_MARK), | ||
1424 | PINMUX_GPIO(GPIO_FN_D29, D29_MARK), | ||
1425 | PINMUX_GPIO(GPIO_FN_D28, D28_MARK), | ||
1426 | PINMUX_GPIO(GPIO_FN_D27, D27_MARK), | ||
1427 | PINMUX_GPIO(GPIO_FN_D26, D26_MARK), | ||
1428 | PINMUX_GPIO(GPIO_FN_D25, D25_MARK), | ||
1429 | PINMUX_GPIO(GPIO_FN_D24, D24_MARK), | ||
1430 | PINMUX_GPIO(GPIO_FN_D23, D23_MARK), | ||
1431 | PINMUX_GPIO(GPIO_FN_D22, D22_MARK), | ||
1432 | PINMUX_GPIO(GPIO_FN_D21, D21_MARK), | ||
1433 | PINMUX_GPIO(GPIO_FN_D20, D20_MARK), | ||
1434 | PINMUX_GPIO(GPIO_FN_D19, D19_MARK), | ||
1435 | PINMUX_GPIO(GPIO_FN_D18, D18_MARK), | ||
1436 | PINMUX_GPIO(GPIO_FN_D17, D17_MARK), | ||
1437 | PINMUX_GPIO(GPIO_FN_D16, D16_MARK), | ||
1438 | PINMUX_GPIO(GPIO_FN_D15, D15_MARK), | ||
1439 | PINMUX_GPIO(GPIO_FN_D14, D14_MARK), | ||
1440 | PINMUX_GPIO(GPIO_FN_D13, D13_MARK), | ||
1441 | PINMUX_GPIO(GPIO_FN_D12, D12_MARK), | ||
1442 | PINMUX_GPIO(GPIO_FN_D11, D11_MARK), | ||
1443 | PINMUX_GPIO(GPIO_FN_D10, D10_MARK), | ||
1444 | PINMUX_GPIO(GPIO_FN_D9, D9_MARK), | ||
1445 | PINMUX_GPIO(GPIO_FN_D8, D8_MARK), | ||
1446 | PINMUX_GPIO(GPIO_FN_D7, D7_MARK), | ||
1447 | PINMUX_GPIO(GPIO_FN_D6, D6_MARK), | ||
1448 | PINMUX_GPIO(GPIO_FN_D5, D5_MARK), | ||
1449 | PINMUX_GPIO(GPIO_FN_D4, D4_MARK), | ||
1450 | PINMUX_GPIO(GPIO_FN_D3, D3_MARK), | ||
1451 | PINMUX_GPIO(GPIO_FN_D2, D2_MARK), | ||
1452 | PINMUX_GPIO(GPIO_FN_D1, D1_MARK), | ||
1453 | PINMUX_GPIO(GPIO_FN_D0, D0_MARK), | ||
1454 | PINMUX_GPIO(GPIO_FN_A25, A25_MARK), | ||
1455 | PINMUX_GPIO(GPIO_FN_A24, A24_MARK), | ||
1456 | PINMUX_GPIO(GPIO_FN_A23, A23_MARK), | ||
1457 | PINMUX_GPIO(GPIO_FN_A22, A22_MARK), | ||
1458 | PINMUX_GPIO(GPIO_FN_CS6B_CE1B, CS6B_CE1B_MARK), | ||
1459 | PINMUX_GPIO(GPIO_FN_CS6A_CE2B, CS6A_CE2B_MARK), | ||
1460 | PINMUX_GPIO(GPIO_FN_CS5B_CE1A, CS5B_CE1A_MARK), | ||
1461 | PINMUX_GPIO(GPIO_FN_CS5A_CE2A, CS5A_CE2A_MARK), | ||
1462 | PINMUX_GPIO(GPIO_FN_WE3_ICIOWR, WE3_ICIOWR_MARK), | ||
1463 | PINMUX_GPIO(GPIO_FN_WE2_ICIORD, WE2_ICIORD_MARK), | ||
1464 | PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), | ||
1465 | PINMUX_GPIO(GPIO_FN_WAIT, WAIT_MARK), | ||
1466 | PINMUX_GPIO(GPIO_FN_BS, BS_MARK), | ||
1467 | |||
1468 | /* KEYSC */ | ||
1469 | PINMUX_GPIO(GPIO_FN_KEYOUT5_IN5, KEYOUT5_IN5_MARK), | ||
1470 | PINMUX_GPIO(GPIO_FN_KEYOUT4_IN6, KEYOUT4_IN6_MARK), | ||
1471 | PINMUX_GPIO(GPIO_FN_KEYIN4, KEYIN4_MARK), | ||
1472 | PINMUX_GPIO(GPIO_FN_KEYIN3, KEYIN3_MARK), | ||
1473 | PINMUX_GPIO(GPIO_FN_KEYIN2, KEYIN2_MARK), | ||
1474 | PINMUX_GPIO(GPIO_FN_KEYIN1, KEYIN1_MARK), | ||
1475 | PINMUX_GPIO(GPIO_FN_KEYIN0, KEYIN0_MARK), | ||
1476 | PINMUX_GPIO(GPIO_FN_KEYOUT3, KEYOUT3_MARK), | ||
1477 | PINMUX_GPIO(GPIO_FN_KEYOUT2, KEYOUT2_MARK), | ||
1478 | PINMUX_GPIO(GPIO_FN_KEYOUT1, KEYOUT1_MARK), | ||
1479 | PINMUX_GPIO(GPIO_FN_KEYOUT0, KEYOUT0_MARK), | ||
1480 | |||
1481 | /* ATAPI */ | ||
1482 | PINMUX_GPIO(GPIO_FN_IDED15, IDED15_MARK), | ||
1483 | PINMUX_GPIO(GPIO_FN_IDED14, IDED14_MARK), | ||
1484 | PINMUX_GPIO(GPIO_FN_IDED13, IDED13_MARK), | ||
1485 | PINMUX_GPIO(GPIO_FN_IDED12, IDED12_MARK), | ||
1486 | PINMUX_GPIO(GPIO_FN_IDED11, IDED11_MARK), | ||
1487 | PINMUX_GPIO(GPIO_FN_IDED10, IDED10_MARK), | ||
1488 | PINMUX_GPIO(GPIO_FN_IDED9, IDED9_MARK), | ||
1489 | PINMUX_GPIO(GPIO_FN_IDED8, IDED8_MARK), | ||
1490 | PINMUX_GPIO(GPIO_FN_IDED7, IDED7_MARK), | ||
1491 | PINMUX_GPIO(GPIO_FN_IDED6, IDED6_MARK), | ||
1492 | PINMUX_GPIO(GPIO_FN_IDED5, IDED5_MARK), | ||
1493 | PINMUX_GPIO(GPIO_FN_IDED4, IDED4_MARK), | ||
1494 | PINMUX_GPIO(GPIO_FN_IDED3, IDED3_MARK), | ||
1495 | PINMUX_GPIO(GPIO_FN_IDED2, IDED2_MARK), | ||
1496 | PINMUX_GPIO(GPIO_FN_IDED1, IDED1_MARK), | ||
1497 | PINMUX_GPIO(GPIO_FN_IDED0, IDED0_MARK), | ||
1498 | PINMUX_GPIO(GPIO_FN_IDEA2, IDEA2_MARK), | ||
1499 | PINMUX_GPIO(GPIO_FN_IDEA1, IDEA1_MARK), | ||
1500 | PINMUX_GPIO(GPIO_FN_IDEA0, IDEA0_MARK), | ||
1501 | PINMUX_GPIO(GPIO_FN_IDEIOWR, IDEIOWR_MARK), | ||
1502 | PINMUX_GPIO(GPIO_FN_IODREQ, IODREQ_MARK), | ||
1503 | PINMUX_GPIO(GPIO_FN_IDECS0, IDECS0_MARK), | ||
1504 | PINMUX_GPIO(GPIO_FN_IDECS1, IDECS1_MARK), | ||
1505 | PINMUX_GPIO(GPIO_FN_IDEIORD, IDEIORD_MARK), | ||
1506 | PINMUX_GPIO(GPIO_FN_DIRECTION, DIRECTION_MARK), | ||
1507 | PINMUX_GPIO(GPIO_FN_EXBUF_ENB, EXBUF_ENB_MARK), | ||
1508 | PINMUX_GPIO(GPIO_FN_IDERST, IDERST_MARK), | ||
1509 | PINMUX_GPIO(GPIO_FN_IODACK, IODACK_MARK), | ||
1510 | PINMUX_GPIO(GPIO_FN_IDEINT, IDEINT_MARK), | ||
1511 | PINMUX_GPIO(GPIO_FN_IDEIORDY, IDEIORDY_MARK), | ||
1512 | |||
1513 | /* TPU */ | ||
1514 | PINMUX_GPIO(GPIO_FN_TPUTO3, TPUTO3_MARK), | ||
1515 | PINMUX_GPIO(GPIO_FN_TPUTO2, TPUTO2_MARK), | ||
1516 | PINMUX_GPIO(GPIO_FN_TPUTO1, TPUTO1_MARK), | ||
1517 | PINMUX_GPIO(GPIO_FN_TPUTO0, TPUTO0_MARK), | ||
1518 | PINMUX_GPIO(GPIO_FN_TPUTI3, TPUTI3_MARK), | ||
1519 | PINMUX_GPIO(GPIO_FN_TPUTI2, TPUTI2_MARK), | ||
1520 | |||
1521 | /* LCDC */ | ||
1522 | PINMUX_GPIO(GPIO_FN_LCDD23, LCDD23_MARK), | ||
1523 | PINMUX_GPIO(GPIO_FN_LCDD22, LCDD22_MARK), | ||
1524 | PINMUX_GPIO(GPIO_FN_LCDD21, LCDD21_MARK), | ||
1525 | PINMUX_GPIO(GPIO_FN_LCDD20, LCDD20_MARK), | ||
1526 | PINMUX_GPIO(GPIO_FN_LCDD19, LCDD19_MARK), | ||
1527 | PINMUX_GPIO(GPIO_FN_LCDD18, LCDD18_MARK), | ||
1528 | PINMUX_GPIO(GPIO_FN_LCDD17, LCDD17_MARK), | ||
1529 | PINMUX_GPIO(GPIO_FN_LCDD16, LCDD16_MARK), | ||
1530 | PINMUX_GPIO(GPIO_FN_LCDD15, LCDD15_MARK), | ||
1531 | PINMUX_GPIO(GPIO_FN_LCDD14, LCDD14_MARK), | ||
1532 | PINMUX_GPIO(GPIO_FN_LCDD13, LCDD13_MARK), | ||
1533 | PINMUX_GPIO(GPIO_FN_LCDD12, LCDD12_MARK), | ||
1534 | PINMUX_GPIO(GPIO_FN_LCDD11, LCDD11_MARK), | ||
1535 | PINMUX_GPIO(GPIO_FN_LCDD10, LCDD10_MARK), | ||
1536 | PINMUX_GPIO(GPIO_FN_LCDD9, LCDD9_MARK), | ||
1537 | PINMUX_GPIO(GPIO_FN_LCDD8, LCDD8_MARK), | ||
1538 | PINMUX_GPIO(GPIO_FN_LCDD7, LCDD7_MARK), | ||
1539 | PINMUX_GPIO(GPIO_FN_LCDD6, LCDD6_MARK), | ||
1540 | PINMUX_GPIO(GPIO_FN_LCDD5, LCDD5_MARK), | ||
1541 | PINMUX_GPIO(GPIO_FN_LCDD4, LCDD4_MARK), | ||
1542 | PINMUX_GPIO(GPIO_FN_LCDD3, LCDD3_MARK), | ||
1543 | PINMUX_GPIO(GPIO_FN_LCDD2, LCDD2_MARK), | ||
1544 | PINMUX_GPIO(GPIO_FN_LCDD1, LCDD1_MARK), | ||
1545 | PINMUX_GPIO(GPIO_FN_LCDD0, LCDD0_MARK), | ||
1546 | PINMUX_GPIO(GPIO_FN_LCDVSYN, LCDVSYN_MARK), | ||
1547 | PINMUX_GPIO(GPIO_FN_LCDDISP, LCDDISP_MARK), | ||
1548 | PINMUX_GPIO(GPIO_FN_LCDRS, LCDRS_MARK), | ||
1549 | PINMUX_GPIO(GPIO_FN_LCDHSYN, LCDHSYN_MARK), | ||
1550 | PINMUX_GPIO(GPIO_FN_LCDCS, LCDCS_MARK), | ||
1551 | PINMUX_GPIO(GPIO_FN_LCDDON, LCDDON_MARK), | ||
1552 | PINMUX_GPIO(GPIO_FN_LCDDCK, LCDDCK_MARK), | ||
1553 | PINMUX_GPIO(GPIO_FN_LCDWR, LCDWR_MARK), | ||
1554 | PINMUX_GPIO(GPIO_FN_LCDVEPWC, LCDVEPWC_MARK), | ||
1555 | PINMUX_GPIO(GPIO_FN_LCDVCPWC, LCDVCPWC_MARK), | ||
1556 | PINMUX_GPIO(GPIO_FN_LCDRD, LCDRD_MARK), | ||
1557 | PINMUX_GPIO(GPIO_FN_LCDLCLK, LCDLCLK_MARK), | ||
1558 | |||
1559 | /* SCIF0 */ | ||
1560 | PINMUX_GPIO(GPIO_FN_SCIF0_TXD, SCIF0_TXD_MARK), | ||
1561 | PINMUX_GPIO(GPIO_FN_SCIF0_RXD, SCIF0_RXD_MARK), | ||
1562 | PINMUX_GPIO(GPIO_FN_SCIF0_SCK, SCIF0_SCK_MARK), | ||
1563 | |||
1564 | /* SCIF1 */ | ||
1565 | PINMUX_GPIO(GPIO_FN_SCIF1_SCK, SCIF1_SCK_MARK), | ||
1566 | PINMUX_GPIO(GPIO_FN_SCIF1_RXD, SCIF1_RXD_MARK), | ||
1567 | PINMUX_GPIO(GPIO_FN_SCIF1_TXD, SCIF1_TXD_MARK), | ||
1568 | |||
1569 | /* SCIF2 */ | ||
1570 | PINMUX_GPIO(GPIO_FN_SCIF2_L_TXD, SCIF2_L_TXD_MARK), | ||
1571 | PINMUX_GPIO(GPIO_FN_SCIF2_L_SCK, SCIF2_L_SCK_MARK), | ||
1572 | PINMUX_GPIO(GPIO_FN_SCIF2_L_RXD, SCIF2_L_RXD_MARK), | ||
1573 | PINMUX_GPIO(GPIO_FN_SCIF2_V_TXD, SCIF2_V_TXD_MARK), | ||
1574 | PINMUX_GPIO(GPIO_FN_SCIF2_V_SCK, SCIF2_V_SCK_MARK), | ||
1575 | PINMUX_GPIO(GPIO_FN_SCIF2_V_RXD, SCIF2_V_RXD_MARK), | ||
1576 | |||
1577 | /* SCIF3 */ | ||
1578 | PINMUX_GPIO(GPIO_FN_SCIF3_V_SCK, SCIF3_V_SCK_MARK), | ||
1579 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RXD, SCIF3_V_RXD_MARK), | ||
1580 | PINMUX_GPIO(GPIO_FN_SCIF3_V_TXD, SCIF3_V_TXD_MARK), | ||
1581 | PINMUX_GPIO(GPIO_FN_SCIF3_V_CTS, SCIF3_V_CTS_MARK), | ||
1582 | PINMUX_GPIO(GPIO_FN_SCIF3_V_RTS, SCIF3_V_RTS_MARK), | ||
1583 | PINMUX_GPIO(GPIO_FN_SCIF3_I_SCK, SCIF3_I_SCK_MARK), | ||
1584 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RXD, SCIF3_I_RXD_MARK), | ||
1585 | PINMUX_GPIO(GPIO_FN_SCIF3_I_TXD, SCIF3_I_TXD_MARK), | ||
1586 | PINMUX_GPIO(GPIO_FN_SCIF3_I_CTS, SCIF3_I_CTS_MARK), | ||
1587 | PINMUX_GPIO(GPIO_FN_SCIF3_I_RTS, SCIF3_I_RTS_MARK), | ||
1588 | |||
1589 | /* SCIF4 */ | ||
1590 | PINMUX_GPIO(GPIO_FN_SCIF4_SCK, SCIF4_SCK_MARK), | ||
1591 | PINMUX_GPIO(GPIO_FN_SCIF4_RXD, SCIF4_RXD_MARK), | ||
1592 | PINMUX_GPIO(GPIO_FN_SCIF4_TXD, SCIF4_TXD_MARK), | ||
1593 | |||
1594 | /* SCIF5 */ | ||
1595 | PINMUX_GPIO(GPIO_FN_SCIF5_SCK, SCIF5_SCK_MARK), | ||
1596 | PINMUX_GPIO(GPIO_FN_SCIF5_RXD, SCIF5_RXD_MARK), | ||
1597 | PINMUX_GPIO(GPIO_FN_SCIF5_TXD, SCIF5_TXD_MARK), | ||
1598 | |||
1599 | /* FSI */ | ||
1600 | PINMUX_GPIO(GPIO_FN_FSIMCKB, FSIMCKB_MARK), | ||
1601 | PINMUX_GPIO(GPIO_FN_FSIMCKA, FSIMCKA_MARK), | ||
1602 | PINMUX_GPIO(GPIO_FN_FSIOASD, FSIOASD_MARK), | ||
1603 | PINMUX_GPIO(GPIO_FN_FSIIABCK, FSIIABCK_MARK), | ||
1604 | PINMUX_GPIO(GPIO_FN_FSIIALRCK, FSIIALRCK_MARK), | ||
1605 | PINMUX_GPIO(GPIO_FN_FSIOABCK, FSIOABCK_MARK), | ||
1606 | PINMUX_GPIO(GPIO_FN_FSIOALRCK, FSIOALRCK_MARK), | ||
1607 | PINMUX_GPIO(GPIO_FN_CLKAUDIOAO, CLKAUDIOAO_MARK), | ||
1608 | PINMUX_GPIO(GPIO_FN_FSIIBSD, FSIIBSD_MARK), | ||
1609 | PINMUX_GPIO(GPIO_FN_FSIOBSD, FSIOBSD_MARK), | ||
1610 | PINMUX_GPIO(GPIO_FN_FSIIBBCK, FSIIBBCK_MARK), | ||
1611 | PINMUX_GPIO(GPIO_FN_FSIIBLRCK, FSIIBLRCK_MARK), | ||
1612 | PINMUX_GPIO(GPIO_FN_FSIOBBCK, FSIOBBCK_MARK), | ||
1613 | PINMUX_GPIO(GPIO_FN_FSIOBLRCK, FSIOBLRCK_MARK), | ||
1614 | PINMUX_GPIO(GPIO_FN_CLKAUDIOBO, CLKAUDIOBO_MARK), | ||
1615 | PINMUX_GPIO(GPIO_FN_FSIIASD, FSIIASD_MARK), | ||
1616 | |||
1617 | /* AUD */ | ||
1618 | PINMUX_GPIO(GPIO_FN_AUDCK, AUDCK_MARK), | ||
1619 | PINMUX_GPIO(GPIO_FN_AUDSYNC, AUDSYNC_MARK), | ||
1620 | PINMUX_GPIO(GPIO_FN_AUDATA3, AUDATA3_MARK), | ||
1621 | PINMUX_GPIO(GPIO_FN_AUDATA2, AUDATA2_MARK), | ||
1622 | PINMUX_GPIO(GPIO_FN_AUDATA1, AUDATA1_MARK), | ||
1623 | PINMUX_GPIO(GPIO_FN_AUDATA0, AUDATA0_MARK), | ||
1624 | |||
1625 | /* VIO */ | ||
1626 | PINMUX_GPIO(GPIO_FN_VIO_CKO, VIO_CKO_MARK), | ||
1627 | |||
1628 | /* VIO0 */ | ||
1629 | PINMUX_GPIO(GPIO_FN_VIO0_D15, VIO0_D15_MARK), | ||
1630 | PINMUX_GPIO(GPIO_FN_VIO0_D14, VIO0_D14_MARK), | ||
1631 | PINMUX_GPIO(GPIO_FN_VIO0_D13, VIO0_D13_MARK), | ||
1632 | PINMUX_GPIO(GPIO_FN_VIO0_D12, VIO0_D12_MARK), | ||
1633 | PINMUX_GPIO(GPIO_FN_VIO0_D11, VIO0_D11_MARK), | ||
1634 | PINMUX_GPIO(GPIO_FN_VIO0_D10, VIO0_D10_MARK), | ||
1635 | PINMUX_GPIO(GPIO_FN_VIO0_D9, VIO0_D9_MARK), | ||
1636 | PINMUX_GPIO(GPIO_FN_VIO0_D8, VIO0_D8_MARK), | ||
1637 | PINMUX_GPIO(GPIO_FN_VIO0_D7, VIO0_D7_MARK), | ||
1638 | PINMUX_GPIO(GPIO_FN_VIO0_D6, VIO0_D6_MARK), | ||
1639 | PINMUX_GPIO(GPIO_FN_VIO0_D5, VIO0_D5_MARK), | ||
1640 | PINMUX_GPIO(GPIO_FN_VIO0_D4, VIO0_D4_MARK), | ||
1641 | PINMUX_GPIO(GPIO_FN_VIO0_D3, VIO0_D3_MARK), | ||
1642 | PINMUX_GPIO(GPIO_FN_VIO0_D2, VIO0_D2_MARK), | ||
1643 | PINMUX_GPIO(GPIO_FN_VIO0_D1, VIO0_D1_MARK), | ||
1644 | PINMUX_GPIO(GPIO_FN_VIO0_D0, VIO0_D0_MARK), | ||
1645 | PINMUX_GPIO(GPIO_FN_VIO0_VD, VIO0_VD_MARK), | ||
1646 | PINMUX_GPIO(GPIO_FN_VIO0_CLK, VIO0_CLK_MARK), | ||
1647 | PINMUX_GPIO(GPIO_FN_VIO0_FLD, VIO0_FLD_MARK), | ||
1648 | PINMUX_GPIO(GPIO_FN_VIO0_HD, VIO0_HD_MARK), | ||
1649 | |||
1650 | /* VIO1 */ | ||
1651 | PINMUX_GPIO(GPIO_FN_VIO1_D7, VIO1_D7_MARK), | ||
1652 | PINMUX_GPIO(GPIO_FN_VIO1_D6, VIO1_D6_MARK), | ||
1653 | PINMUX_GPIO(GPIO_FN_VIO1_D5, VIO1_D5_MARK), | ||
1654 | PINMUX_GPIO(GPIO_FN_VIO1_D4, VIO1_D4_MARK), | ||
1655 | PINMUX_GPIO(GPIO_FN_VIO1_D3, VIO1_D3_MARK), | ||
1656 | PINMUX_GPIO(GPIO_FN_VIO1_D2, VIO1_D2_MARK), | ||
1657 | PINMUX_GPIO(GPIO_FN_VIO1_D1, VIO1_D1_MARK), | ||
1658 | PINMUX_GPIO(GPIO_FN_VIO1_D0, VIO1_D0_MARK), | ||
1659 | PINMUX_GPIO(GPIO_FN_VIO1_FLD, VIO1_FLD_MARK), | ||
1660 | PINMUX_GPIO(GPIO_FN_VIO1_HD, VIO1_HD_MARK), | ||
1661 | PINMUX_GPIO(GPIO_FN_VIO1_VD, VIO1_VD_MARK), | ||
1662 | PINMUX_GPIO(GPIO_FN_VIO1_CLK, VIO1_CLK_MARK), | ||
1663 | |||
1664 | /* Eth */ | ||
1665 | PINMUX_GPIO(GPIO_FN_RMII_RXD0, RMII_RXD0_MARK), | ||
1666 | PINMUX_GPIO(GPIO_FN_RMII_RXD1, RMII_RXD1_MARK), | ||
1667 | PINMUX_GPIO(GPIO_FN_RMII_TXD0, RMII_TXD0_MARK), | ||
1668 | PINMUX_GPIO(GPIO_FN_RMII_TXD1, RMII_TXD1_MARK), | ||
1669 | PINMUX_GPIO(GPIO_FN_RMII_REF_CLK, RMII_REF_CLK_MARK), | ||
1670 | PINMUX_GPIO(GPIO_FN_RMII_TX_EN, RMII_TX_EN_MARK), | ||
1671 | PINMUX_GPIO(GPIO_FN_RMII_RX_ER, RMII_RX_ER_MARK), | ||
1672 | PINMUX_GPIO(GPIO_FN_RMII_CRS_DV, RMII_CRS_DV_MARK), | ||
1673 | PINMUX_GPIO(GPIO_FN_LNKSTA, LNKSTA_MARK), | ||
1674 | PINMUX_GPIO(GPIO_FN_MDIO, MDIO_MARK), | ||
1675 | PINMUX_GPIO(GPIO_FN_MDC, MDC_MARK), | ||
1676 | |||
1677 | /* System */ | ||
1678 | PINMUX_GPIO(GPIO_FN_PDSTATUS, PDSTATUS_MARK), | ||
1679 | PINMUX_GPIO(GPIO_FN_STATUS2, STATUS2_MARK), | ||
1680 | PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), | ||
1681 | |||
1682 | /* VOU */ | ||
1683 | PINMUX_GPIO(GPIO_FN_DV_D15, DV_D15_MARK), | ||
1684 | PINMUX_GPIO(GPIO_FN_DV_D14, DV_D14_MARK), | ||
1685 | PINMUX_GPIO(GPIO_FN_DV_D13, DV_D13_MARK), | ||
1686 | PINMUX_GPIO(GPIO_FN_DV_D12, DV_D12_MARK), | ||
1687 | PINMUX_GPIO(GPIO_FN_DV_D11, DV_D11_MARK), | ||
1688 | PINMUX_GPIO(GPIO_FN_DV_D10, DV_D10_MARK), | ||
1689 | PINMUX_GPIO(GPIO_FN_DV_D9, DV_D9_MARK), | ||
1690 | PINMUX_GPIO(GPIO_FN_DV_D8, DV_D8_MARK), | ||
1691 | PINMUX_GPIO(GPIO_FN_DV_D7, DV_D7_MARK), | ||
1692 | PINMUX_GPIO(GPIO_FN_DV_D6, DV_D6_MARK), | ||
1693 | PINMUX_GPIO(GPIO_FN_DV_D5, DV_D5_MARK), | ||
1694 | PINMUX_GPIO(GPIO_FN_DV_D4, DV_D4_MARK), | ||
1695 | PINMUX_GPIO(GPIO_FN_DV_D3, DV_D3_MARK), | ||
1696 | PINMUX_GPIO(GPIO_FN_DV_D2, DV_D2_MARK), | ||
1697 | PINMUX_GPIO(GPIO_FN_DV_D1, DV_D1_MARK), | ||
1698 | PINMUX_GPIO(GPIO_FN_DV_D0, DV_D0_MARK), | ||
1699 | PINMUX_GPIO(GPIO_FN_DV_CLKI, DV_CLKI_MARK), | ||
1700 | PINMUX_GPIO(GPIO_FN_DV_CLK, DV_CLK_MARK), | ||
1701 | PINMUX_GPIO(GPIO_FN_DV_VSYNC, DV_VSYNC_MARK), | ||
1702 | PINMUX_GPIO(GPIO_FN_DV_HSYNC, DV_HSYNC_MARK), | ||
1703 | |||
1704 | /* MSIOF0 */ | ||
1705 | PINMUX_GPIO(GPIO_FN_MSIOF0_RXD, MSIOF0_RXD_MARK), | ||
1706 | PINMUX_GPIO(GPIO_FN_MSIOF0_TXD, MSIOF0_TXD_MARK), | ||
1707 | PINMUX_GPIO(GPIO_FN_MSIOF0_MCK, MSIOF0_MCK_MARK), | ||
1708 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSCK, MSIOF0_TSCK_MARK), | ||
1709 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS1, MSIOF0_SS1_MARK), | ||
1710 | PINMUX_GPIO(GPIO_FN_MSIOF0_SS2, MSIOF0_SS2_MARK), | ||
1711 | PINMUX_GPIO(GPIO_FN_MSIOF0_TSYNC, MSIOF0_TSYNC_MARK), | ||
1712 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSCK, MSIOF0_RSCK_MARK), | ||
1713 | PINMUX_GPIO(GPIO_FN_MSIOF0_RSYNC, MSIOF0_RSYNC_MARK), | ||
1714 | |||
1715 | /* MSIOF1 */ | ||
1716 | PINMUX_GPIO(GPIO_FN_MSIOF1_RXD, MSIOF1_RXD_MARK), | ||
1717 | PINMUX_GPIO(GPIO_FN_MSIOF1_TXD, MSIOF1_TXD_MARK), | ||
1718 | PINMUX_GPIO(GPIO_FN_MSIOF1_MCK, MSIOF1_MCK_MARK), | ||
1719 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSCK, MSIOF1_TSCK_MARK), | ||
1720 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS1, MSIOF1_SS1_MARK), | ||
1721 | PINMUX_GPIO(GPIO_FN_MSIOF1_SS2, MSIOF1_SS2_MARK), | ||
1722 | PINMUX_GPIO(GPIO_FN_MSIOF1_TSYNC, MSIOF1_TSYNC_MARK), | ||
1723 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSCK, MSIOF1_RSCK_MARK), | ||
1724 | PINMUX_GPIO(GPIO_FN_MSIOF1_RSYNC, MSIOF1_RSYNC_MARK), | ||
1725 | |||
1726 | /* DMAC */ | ||
1727 | PINMUX_GPIO(GPIO_FN_DMAC_DACK0, DMAC_DACK0_MARK), | ||
1728 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ0, DMAC_DREQ0_MARK), | ||
1729 | PINMUX_GPIO(GPIO_FN_DMAC_DACK1, DMAC_DACK1_MARK), | ||
1730 | PINMUX_GPIO(GPIO_FN_DMAC_DREQ1, DMAC_DREQ1_MARK), | ||
1731 | |||
1732 | /* SDHI0 */ | ||
1733 | PINMUX_GPIO(GPIO_FN_SDHI0CD, SDHI0CD_MARK), | ||
1734 | PINMUX_GPIO(GPIO_FN_SDHI0WP, SDHI0WP_MARK), | ||
1735 | PINMUX_GPIO(GPIO_FN_SDHI0CMD, SDHI0CMD_MARK), | ||
1736 | PINMUX_GPIO(GPIO_FN_SDHI0CLK, SDHI0CLK_MARK), | ||
1737 | PINMUX_GPIO(GPIO_FN_SDHI0D3, SDHI0D3_MARK), | ||
1738 | PINMUX_GPIO(GPIO_FN_SDHI0D2, SDHI0D2_MARK), | ||
1739 | PINMUX_GPIO(GPIO_FN_SDHI0D1, SDHI0D1_MARK), | ||
1740 | PINMUX_GPIO(GPIO_FN_SDHI0D0, SDHI0D0_MARK), | ||
1741 | |||
1742 | /* SDHI1 */ | ||
1743 | PINMUX_GPIO(GPIO_FN_SDHI1CD, SDHI1CD_MARK), | ||
1744 | PINMUX_GPIO(GPIO_FN_SDHI1WP, SDHI1WP_MARK), | ||
1745 | PINMUX_GPIO(GPIO_FN_SDHI1CMD, SDHI1CMD_MARK), | ||
1746 | PINMUX_GPIO(GPIO_FN_SDHI1CLK, SDHI1CLK_MARK), | ||
1747 | PINMUX_GPIO(GPIO_FN_SDHI1D3, SDHI1D3_MARK), | ||
1748 | PINMUX_GPIO(GPIO_FN_SDHI1D2, SDHI1D2_MARK), | ||
1749 | PINMUX_GPIO(GPIO_FN_SDHI1D1, SDHI1D1_MARK), | ||
1750 | PINMUX_GPIO(GPIO_FN_SDHI1D0, SDHI1D0_MARK), | ||
1751 | |||
1752 | /* MMC */ | ||
1753 | PINMUX_GPIO(GPIO_FN_MMC_D7, MMC_D7_MARK), | ||
1754 | PINMUX_GPIO(GPIO_FN_MMC_D6, MMC_D6_MARK), | ||
1755 | PINMUX_GPIO(GPIO_FN_MMC_D5, MMC_D5_MARK), | ||
1756 | PINMUX_GPIO(GPIO_FN_MMC_D4, MMC_D4_MARK), | ||
1757 | PINMUX_GPIO(GPIO_FN_MMC_D3, MMC_D3_MARK), | ||
1758 | PINMUX_GPIO(GPIO_FN_MMC_D2, MMC_D2_MARK), | ||
1759 | PINMUX_GPIO(GPIO_FN_MMC_D1, MMC_D1_MARK), | ||
1760 | PINMUX_GPIO(GPIO_FN_MMC_D0, MMC_D0_MARK), | ||
1761 | PINMUX_GPIO(GPIO_FN_MMC_CLK, MMC_CLK_MARK), | ||
1762 | PINMUX_GPIO(GPIO_FN_MMC_CMD, MMC_CMD_MARK), | ||
1763 | |||
1764 | /* IrDA */ | ||
1765 | PINMUX_GPIO(GPIO_FN_IRDA_OUT, IRDA_OUT_MARK), | ||
1766 | PINMUX_GPIO(GPIO_FN_IRDA_IN, IRDA_IN_MARK), | ||
1767 | |||
1768 | /* TSIF */ | ||
1769 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDAT, TSIF_TS0_SDAT_MARK), | ||
1770 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SCK, TSIF_TS0_SCK_MARK), | ||
1771 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SDEN, TSIF_TS0_SDEN_MARK), | ||
1772 | PINMUX_GPIO(GPIO_FN_TSIF_TS0_SPSYNC, TSIF_TS0_SPSYNC_MARK), | ||
1773 | |||
1774 | /* IRQ */ | ||
1775 | PINMUX_GPIO(GPIO_FN_INTC_IRQ7, INTC_IRQ7_MARK), | ||
1776 | PINMUX_GPIO(GPIO_FN_INTC_IRQ6, INTC_IRQ6_MARK), | ||
1777 | PINMUX_GPIO(GPIO_FN_INTC_IRQ5, INTC_IRQ5_MARK), | ||
1778 | PINMUX_GPIO(GPIO_FN_INTC_IRQ4, INTC_IRQ4_MARK), | ||
1779 | PINMUX_GPIO(GPIO_FN_INTC_IRQ3, INTC_IRQ3_MARK), | ||
1780 | PINMUX_GPIO(GPIO_FN_INTC_IRQ2, INTC_IRQ2_MARK), | ||
1781 | PINMUX_GPIO(GPIO_FN_INTC_IRQ1, INTC_IRQ1_MARK), | ||
1782 | PINMUX_GPIO(GPIO_FN_INTC_IRQ0, INTC_IRQ0_MARK), | ||
1783 | }; | ||
1784 | |||
1785 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1786 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | ||
1787 | PTA7_FN, PTA7_OUT, PTA7_IN_PU, PTA7_IN, | ||
1788 | PTA6_FN, PTA6_OUT, PTA6_IN_PU, PTA6_IN, | ||
1789 | PTA5_FN, PTA5_OUT, PTA5_IN_PU, PTA5_IN, | ||
1790 | PTA4_FN, PTA4_OUT, PTA4_IN_PU, PTA4_IN, | ||
1791 | PTA3_FN, PTA3_OUT, PTA3_IN_PU, PTA3_IN, | ||
1792 | PTA2_FN, PTA2_OUT, PTA2_IN_PU, PTA2_IN, | ||
1793 | PTA1_FN, PTA1_OUT, PTA1_IN_PU, PTA1_IN, | ||
1794 | PTA0_FN, PTA0_OUT, PTA0_IN_PU, PTA0_IN } | ||
1795 | }, | ||
1796 | { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) { | ||
1797 | PTB7_FN, PTB7_OUT, PTB7_IN_PU, PTB7_IN, | ||
1798 | PTB6_FN, PTB6_OUT, PTB6_IN_PU, PTB6_IN, | ||
1799 | PTB5_FN, PTB5_OUT, PTB5_IN_PU, PTB5_IN, | ||
1800 | PTB4_FN, PTB4_OUT, PTB4_IN_PU, PTB4_IN, | ||
1801 | PTB3_FN, PTB3_OUT, PTB3_IN_PU, PTB3_IN, | ||
1802 | PTB2_FN, PTB2_OUT, PTB2_IN_PU, PTB2_IN, | ||
1803 | PTB1_FN, PTB1_OUT, PTB1_IN_PU, PTB1_IN, | ||
1804 | PTB0_FN, PTB0_OUT, PTB0_IN_PU, PTB0_IN } | ||
1805 | }, | ||
1806 | { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) { | ||
1807 | PTC7_FN, PTC7_OUT, PTC7_IN_PU, PTC7_IN, | ||
1808 | PTC6_FN, PTC6_OUT, PTC6_IN_PU, PTC6_IN, | ||
1809 | PTC5_FN, PTC5_OUT, PTC5_IN_PU, PTC5_IN, | ||
1810 | PTC4_FN, PTC4_OUT, PTC4_IN_PU, PTC4_IN, | ||
1811 | PTC3_FN, PTC3_OUT, PTC3_IN_PU, PTC3_IN, | ||
1812 | PTC2_FN, PTC2_OUT, PTC2_IN_PU, PTC2_IN, | ||
1813 | PTC1_FN, PTC1_OUT, PTC1_IN_PU, PTC1_IN, | ||
1814 | PTC0_FN, PTC0_OUT, PTC0_IN_PU, PTC0_IN } | ||
1815 | }, | ||
1816 | { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) { | ||
1817 | PTD7_FN, PTD7_OUT, PTD7_IN_PU, PTD7_IN, | ||
1818 | PTD6_FN, PTD6_OUT, PTD6_IN_PU, PTD6_IN, | ||
1819 | PTD5_FN, PTD5_OUT, PTD5_IN_PU, PTD5_IN, | ||
1820 | PTD4_FN, PTD4_OUT, PTD4_IN_PU, PTD4_IN, | ||
1821 | PTD3_FN, PTD3_OUT, PTD3_IN_PU, PTD3_IN, | ||
1822 | PTD2_FN, PTD2_OUT, PTD2_IN_PU, PTD2_IN, | ||
1823 | PTD1_FN, PTD1_OUT, PTD1_IN_PU, PTD1_IN, | ||
1824 | PTD0_FN, PTD0_OUT, PTD0_IN_PU, PTD0_IN } | ||
1825 | }, | ||
1826 | { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) { | ||
1827 | PTE7_FN, PTE7_OUT, PTE7_IN_PU, PTE7_IN, | ||
1828 | PTE6_FN, PTE6_OUT, PTE6_IN_PU, PTE6_IN, | ||
1829 | PTE5_FN, PTE5_OUT, PTE5_IN_PU, PTE5_IN, | ||
1830 | PTE4_FN, PTE4_OUT, PTE4_IN_PU, PTE4_IN, | ||
1831 | PTE3_FN, PTE3_OUT, PTE3_IN_PU, PTE3_IN, | ||
1832 | PTE2_FN, PTE2_OUT, PTE2_IN_PU, PTE2_IN, | ||
1833 | PTE1_FN, PTE1_OUT, PTE1_IN_PU, PTE1_IN, | ||
1834 | PTE0_FN, PTE0_OUT, PTE0_IN_PU, PTE0_IN } | ||
1835 | }, | ||
1836 | { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) { | ||
1837 | PTF7_FN, PTF7_OUT, PTF7_IN_PU, PTF7_IN, | ||
1838 | PTF6_FN, PTF6_OUT, PTF6_IN_PU, PTF6_IN, | ||
1839 | PTF5_FN, PTF5_OUT, PTF5_IN_PU, PTF5_IN, | ||
1840 | PTF4_FN, PTF4_OUT, PTF4_IN_PU, PTF4_IN, | ||
1841 | PTF3_FN, PTF3_OUT, PTF3_IN_PU, PTF3_IN, | ||
1842 | PTF2_FN, PTF2_OUT, PTF2_IN_PU, PTF2_IN, | ||
1843 | PTF1_FN, PTF1_OUT, PTF1_IN_PU, PTF1_IN, | ||
1844 | PTF0_FN, PTF0_OUT, PTF0_IN_PU, PTF0_IN } | ||
1845 | }, | ||
1846 | { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) { | ||
1847 | 0, 0, 0, 0, | ||
1848 | 0, 0, 0, 0, | ||
1849 | PTG5_FN, PTG5_OUT, 0, 0, | ||
1850 | PTG4_FN, PTG4_OUT, 0, 0, | ||
1851 | PTG3_FN, PTG3_OUT, 0, 0, | ||
1852 | PTG2_FN, PTG2_OUT, 0, 0, | ||
1853 | PTG1_FN, PTG1_OUT, 0, 0, | ||
1854 | PTG0_FN, PTG0_OUT, 0, 0 } | ||
1855 | }, | ||
1856 | { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) { | ||
1857 | PTH7_FN, PTH7_OUT, PTH7_IN_PU, PTH7_IN, | ||
1858 | PTH6_FN, PTH6_OUT, PTH6_IN_PU, PTH6_IN, | ||
1859 | PTH5_FN, PTH5_OUT, PTH5_IN_PU, PTH5_IN, | ||
1860 | PTH4_FN, PTH4_OUT, PTH4_IN_PU, PTH4_IN, | ||
1861 | PTH3_FN, PTH3_OUT, PTH3_IN_PU, PTH3_IN, | ||
1862 | PTH2_FN, PTH2_OUT, PTH2_IN_PU, PTH2_IN, | ||
1863 | PTH1_FN, PTH1_OUT, PTH1_IN_PU, PTH1_IN, | ||
1864 | PTH0_FN, PTH0_OUT, PTH0_IN_PU, PTH0_IN } | ||
1865 | }, | ||
1866 | { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) { | ||
1867 | PTJ7_FN, PTJ7_OUT, 0, 0, | ||
1868 | PTJ6_FN, PTJ6_OUT, 0, 0, | ||
1869 | PTJ5_FN, PTJ5_OUT, 0, 0, | ||
1870 | 0, 0, 0, 0, | ||
1871 | PTJ3_FN, PTJ3_OUT, PTJ3_IN_PU, PTJ3_IN, | ||
1872 | PTJ2_FN, PTJ2_OUT, PTJ2_IN_PU, PTJ2_IN, | ||
1873 | PTJ1_FN, PTJ1_OUT, PTJ1_IN_PU, PTJ1_IN, | ||
1874 | PTJ0_FN, PTJ0_OUT, PTJ0_IN_PU, PTJ0_IN } | ||
1875 | }, | ||
1876 | { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) { | ||
1877 | PTK7_FN, PTK7_OUT, PTK7_IN_PU, PTK7_IN, | ||
1878 | PTK6_FN, PTK6_OUT, PTK6_IN_PU, PTK6_IN, | ||
1879 | PTK5_FN, PTK5_OUT, PTK5_IN_PU, PTK5_IN, | ||
1880 | PTK4_FN, PTK4_OUT, PTK4_IN_PU, PTK4_IN, | ||
1881 | PTK3_FN, PTK3_OUT, PTK3_IN_PU, PTK3_IN, | ||
1882 | PTK2_FN, PTK2_OUT, PTK2_IN_PU, PTK2_IN, | ||
1883 | PTK1_FN, PTK1_OUT, PTK1_IN_PU, PTK1_IN, | ||
1884 | PTK0_FN, PTK0_OUT, PTK0_IN_PU, PTK0_IN } | ||
1885 | }, | ||
1886 | { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) { | ||
1887 | PTL7_FN, PTL7_OUT, PTL7_IN_PU, PTL7_IN, | ||
1888 | PTL6_FN, PTL6_OUT, PTL6_IN_PU, PTL6_IN, | ||
1889 | PTL5_FN, PTL5_OUT, PTL5_IN_PU, PTL5_IN, | ||
1890 | PTL4_FN, PTL4_OUT, PTL4_IN_PU, PTL4_IN, | ||
1891 | PTL3_FN, PTL3_OUT, PTL3_IN_PU, PTL3_IN, | ||
1892 | PTL2_FN, PTL2_OUT, PTL2_IN_PU, PTL2_IN, | ||
1893 | PTL1_FN, PTL1_OUT, PTL1_IN_PU, PTL1_IN, | ||
1894 | PTL0_FN, PTL0_OUT, PTL0_IN_PU, PTL0_IN } | ||
1895 | }, | ||
1896 | { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) { | ||
1897 | PTM7_FN, PTM7_OUT, PTM7_IN_PU, PTM7_IN, | ||
1898 | PTM6_FN, PTM6_OUT, PTM6_IN_PU, PTM6_IN, | ||
1899 | PTM5_FN, PTM5_OUT, PTM5_IN_PU, PTM5_IN, | ||
1900 | PTM4_FN, PTM4_OUT, PTM4_IN_PU, PTM4_IN, | ||
1901 | PTM3_FN, PTM3_OUT, PTM3_IN_PU, PTM3_IN, | ||
1902 | PTM2_FN, PTM2_OUT, PTM2_IN_PU, PTM2_IN, | ||
1903 | PTM1_FN, PTM1_OUT, PTM1_IN_PU, PTM1_IN, | ||
1904 | PTM0_FN, PTM0_OUT, PTM0_IN_PU, PTM0_IN } | ||
1905 | }, | ||
1906 | { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) { | ||
1907 | PTN7_FN, PTN7_OUT, PTN7_IN_PU, PTN7_IN, | ||
1908 | PTN6_FN, PTN6_OUT, PTN6_IN_PU, PTN6_IN, | ||
1909 | PTN5_FN, PTN5_OUT, PTN5_IN_PU, PTN5_IN, | ||
1910 | PTN4_FN, PTN4_OUT, PTN4_IN_PU, PTN4_IN, | ||
1911 | PTN3_FN, PTN3_OUT, PTN3_IN_PU, PTN3_IN, | ||
1912 | PTN2_FN, PTN2_OUT, PTN2_IN_PU, PTN2_IN, | ||
1913 | PTN1_FN, PTN1_OUT, PTN1_IN_PU, PTN1_IN, | ||
1914 | PTN0_FN, PTN0_OUT, PTN0_IN_PU, PTN0_IN } | ||
1915 | }, | ||
1916 | { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) { | ||
1917 | PTQ7_FN, PTQ7_OUT, PTQ7_IN_PU, PTQ7_IN, | ||
1918 | PTQ6_FN, PTQ6_OUT, PTQ6_IN_PU, PTQ6_IN, | ||
1919 | PTQ5_FN, PTQ5_OUT, PTQ5_IN_PU, PTQ5_IN, | ||
1920 | PTQ4_FN, PTQ4_OUT, PTQ4_IN_PU, PTQ4_IN, | ||
1921 | PTQ3_FN, PTQ3_OUT, PTQ3_IN_PU, PTQ3_IN, | ||
1922 | PTQ2_FN, PTQ2_OUT, PTQ2_IN_PU, PTQ2_IN, | ||
1923 | PTQ1_FN, PTQ1_OUT, PTQ1_IN_PU, PTQ1_IN, | ||
1924 | PTQ0_FN, PTQ0_OUT, PTQ0_IN_PU, PTQ0_IN } | ||
1925 | }, | ||
1926 | { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) { | ||
1927 | PTR7_FN, PTR7_OUT, PTR7_IN_PU, PTR7_IN, | ||
1928 | PTR6_FN, PTR6_OUT, PTR6_IN_PU, PTR6_IN, | ||
1929 | PTR5_FN, PTR5_OUT, PTR5_IN_PU, PTR5_IN, | ||
1930 | PTR4_FN, PTR4_OUT, PTR4_IN_PU, PTR4_IN, | ||
1931 | PTR3_FN, 0, PTR3_IN_PU, PTR3_IN, | ||
1932 | PTR2_FN, 0, PTR2_IN_PU, PTR2_IN, | ||
1933 | PTR1_FN, PTR1_OUT, PTR1_IN_PU, PTR1_IN, | ||
1934 | PTR0_FN, PTR0_OUT, PTR0_IN_PU, PTR0_IN } | ||
1935 | }, | ||
1936 | { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) { | ||
1937 | 0, 0, 0, 0, | ||
1938 | PTS6_FN, PTS6_OUT, PTS6_IN_PU, PTS6_IN, | ||
1939 | PTS5_FN, PTS5_OUT, PTS5_IN_PU, PTS5_IN, | ||
1940 | PTS4_FN, PTS4_OUT, PTS4_IN_PU, PTS4_IN, | ||
1941 | PTS3_FN, PTS3_OUT, PTS3_IN_PU, PTS3_IN, | ||
1942 | PTS2_FN, PTS2_OUT, PTS2_IN_PU, PTS2_IN, | ||
1943 | PTS1_FN, PTS1_OUT, PTS1_IN_PU, PTS1_IN, | ||
1944 | PTS0_FN, PTS0_OUT, PTS0_IN_PU, PTS0_IN } | ||
1945 | }, | ||
1946 | { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) { | ||
1947 | PTT7_FN, PTT7_OUT, PTT7_IN_PU, PTT7_IN, | ||
1948 | PTT6_FN, PTT6_OUT, PTT6_IN_PU, PTT6_IN, | ||
1949 | PTT5_FN, PTT5_OUT, PTT5_IN_PU, PTT5_IN, | ||
1950 | PTT4_FN, PTT4_OUT, PTT4_IN_PU, PTT4_IN, | ||
1951 | PTT3_FN, PTT3_OUT, PTT3_IN_PU, PTT3_IN, | ||
1952 | PTT2_FN, PTT2_OUT, PTT2_IN_PU, PTT2_IN, | ||
1953 | PTT1_FN, PTT1_OUT, PTT1_IN_PU, PTT1_IN, | ||
1954 | PTT0_FN, PTT0_OUT, PTT0_IN_PU, PTT0_IN } | ||
1955 | }, | ||
1956 | { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) { | ||
1957 | PTU7_FN, PTU7_OUT, PTU7_IN_PU, PTU7_IN, | ||
1958 | PTU6_FN, PTU6_OUT, PTU6_IN_PU, PTU6_IN, | ||
1959 | PTU5_FN, PTU5_OUT, PTU5_IN_PU, PTU5_IN, | ||
1960 | PTU4_FN, PTU4_OUT, PTU4_IN_PU, PTU4_IN, | ||
1961 | PTU3_FN, PTU3_OUT, PTU3_IN_PU, PTU3_IN, | ||
1962 | PTU2_FN, PTU2_OUT, PTU2_IN_PU, PTU2_IN, | ||
1963 | PTU1_FN, PTU1_OUT, PTU1_IN_PU, PTU1_IN, | ||
1964 | PTU0_FN, PTU0_OUT, PTU0_IN_PU, PTU0_IN } | ||
1965 | }, | ||
1966 | { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) { | ||
1967 | PTV7_FN, PTV7_OUT, PTV7_IN_PU, PTV7_IN, | ||
1968 | PTV6_FN, PTV6_OUT, PTV6_IN_PU, PTV6_IN, | ||
1969 | PTV5_FN, PTV5_OUT, PTV5_IN_PU, PTV5_IN, | ||
1970 | PTV4_FN, PTV4_OUT, PTV4_IN_PU, PTV4_IN, | ||
1971 | PTV3_FN, PTV3_OUT, PTV3_IN_PU, PTV3_IN, | ||
1972 | PTV2_FN, PTV2_OUT, PTV2_IN_PU, PTV2_IN, | ||
1973 | PTV1_FN, PTV1_OUT, PTV1_IN_PU, PTV1_IN, | ||
1974 | PTV0_FN, PTV0_OUT, PTV0_IN_PU, PTV0_IN } | ||
1975 | }, | ||
1976 | { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) { | ||
1977 | PTW7_FN, PTW7_OUT, PTW7_IN_PU, PTW7_IN, | ||
1978 | PTW6_FN, PTW6_OUT, PTW6_IN_PU, PTW6_IN, | ||
1979 | PTW5_FN, PTW5_OUT, PTW5_IN_PU, PTW5_IN, | ||
1980 | PTW4_FN, PTW4_OUT, PTW4_IN_PU, PTW4_IN, | ||
1981 | PTW3_FN, PTW3_OUT, PTW3_IN_PU, PTW3_IN, | ||
1982 | PTW2_FN, PTW2_OUT, PTW2_IN_PU, PTW2_IN, | ||
1983 | PTW1_FN, PTW1_OUT, PTW1_IN_PU, PTW1_IN, | ||
1984 | PTW0_FN, PTW0_OUT, PTW0_IN_PU, PTW0_IN } | ||
1985 | }, | ||
1986 | { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) { | ||
1987 | PTX7_FN, PTX7_OUT, PTX7_IN_PU, PTX7_IN, | ||
1988 | PTX6_FN, PTX6_OUT, PTX6_IN_PU, PTX6_IN, | ||
1989 | PTX5_FN, PTX5_OUT, PTX5_IN_PU, PTX5_IN, | ||
1990 | PTX4_FN, PTX4_OUT, PTX4_IN_PU, PTX4_IN, | ||
1991 | PTX3_FN, PTX3_OUT, PTX3_IN_PU, PTX3_IN, | ||
1992 | PTX2_FN, PTX2_OUT, PTX2_IN_PU, PTX2_IN, | ||
1993 | PTX1_FN, PTX1_OUT, PTX1_IN_PU, PTX1_IN, | ||
1994 | PTX0_FN, PTX0_OUT, PTX0_IN_PU, PTX0_IN } | ||
1995 | }, | ||
1996 | { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) { | ||
1997 | PTY7_FN, PTY7_OUT, PTY7_IN_PU, PTY7_IN, | ||
1998 | PTY6_FN, PTY6_OUT, PTY6_IN_PU, PTY6_IN, | ||
1999 | PTY5_FN, PTY5_OUT, PTY5_IN_PU, PTY5_IN, | ||
2000 | PTY4_FN, PTY4_OUT, PTY4_IN_PU, PTY4_IN, | ||
2001 | PTY3_FN, PTY3_OUT, PTY3_IN_PU, PTY3_IN, | ||
2002 | PTY2_FN, PTY2_OUT, PTY2_IN_PU, PTY2_IN, | ||
2003 | PTY1_FN, PTY1_OUT, PTY1_IN_PU, PTY1_IN, | ||
2004 | PTY0_FN, PTY0_OUT, PTY0_IN_PU, PTY0_IN } | ||
2005 | }, | ||
2006 | { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) { | ||
2007 | PTZ7_FN, PTZ7_OUT, PTZ7_IN_PU, PTZ7_IN, | ||
2008 | PTZ6_FN, PTZ6_OUT, PTZ6_IN_PU, PTZ6_IN, | ||
2009 | PTZ5_FN, PTZ5_OUT, PTZ5_IN_PU, PTZ5_IN, | ||
2010 | PTZ4_FN, PTZ4_OUT, PTZ4_IN_PU, PTZ4_IN, | ||
2011 | PTZ3_FN, PTZ3_OUT, PTZ3_IN_PU, PTZ3_IN, | ||
2012 | PTZ2_FN, PTZ2_OUT, PTZ2_IN_PU, PTZ2_IN, | ||
2013 | PTZ1_FN, PTZ1_OUT, PTZ1_IN_PU, PTZ1_IN, | ||
2014 | PTZ0_FN, PTZ0_OUT, PTZ0_IN_PU, PTZ0_IN } | ||
2015 | }, | ||
2016 | { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 1) { | ||
2017 | PSA15_0, PSA15_1, | ||
2018 | PSA14_0, PSA14_1, | ||
2019 | PSA13_0, PSA13_1, | ||
2020 | PSA12_0, PSA12_1, | ||
2021 | 0, 0, | ||
2022 | PSA10_0, PSA10_1, | ||
2023 | PSA9_0, PSA9_1, | ||
2024 | PSA8_0, PSA8_1, | ||
2025 | PSA7_0, PSA7_1, | ||
2026 | PSA6_0, PSA6_1, | ||
2027 | PSA5_0, PSA5_1, | ||
2028 | 0, 0, | ||
2029 | PSA3_0, PSA3_1, | ||
2030 | PSA2_0, PSA2_1, | ||
2031 | PSA1_0, PSA1_1, | ||
2032 | PSA0_0, PSA0_1} | ||
2033 | }, | ||
2034 | { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 1) { | ||
2035 | 0, 0, | ||
2036 | PSB14_0, PSB14_1, | ||
2037 | PSB13_0, PSB13_1, | ||
2038 | PSB12_0, PSB12_1, | ||
2039 | PSB11_0, PSB11_1, | ||
2040 | PSB10_0, PSB10_1, | ||
2041 | PSB9_0, PSB9_1, | ||
2042 | PSB8_0, PSB8_1, | ||
2043 | PSB7_0, PSB7_1, | ||
2044 | PSB6_0, PSB6_1, | ||
2045 | PSB5_0, PSB5_1, | ||
2046 | PSB4_0, PSB4_1, | ||
2047 | PSB3_0, PSB3_1, | ||
2048 | PSB2_0, PSB2_1, | ||
2049 | PSB1_0, PSB1_1, | ||
2050 | PSB0_0, PSB0_1} | ||
2051 | }, | ||
2052 | { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 1) { | ||
2053 | PSC15_0, PSC15_1, | ||
2054 | PSC14_0, PSC14_1, | ||
2055 | PSC13_0, PSC13_1, | ||
2056 | PSC12_0, PSC12_1, | ||
2057 | PSC11_0, PSC11_1, | ||
2058 | PSC10_0, PSC10_1, | ||
2059 | PSC9_0, PSC9_1, | ||
2060 | PSC8_0, PSC8_1, | ||
2061 | PSC7_0, PSC7_1, | ||
2062 | PSC6_0, PSC6_1, | ||
2063 | PSC5_0, PSC5_1, | ||
2064 | PSC4_0, PSC4_1, | ||
2065 | 0, 0, | ||
2066 | PSC2_0, PSC2_1, | ||
2067 | PSC1_0, PSC1_1, | ||
2068 | PSC0_0, PSC0_1} | ||
2069 | }, | ||
2070 | { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 1) { | ||
2071 | PSD15_0, PSD15_1, | ||
2072 | PSD14_0, PSD14_1, | ||
2073 | PSD13_0, PSD13_1, | ||
2074 | PSD12_0, PSD12_1, | ||
2075 | PSD11_0, PSD11_1, | ||
2076 | PSD10_0, PSD10_1, | ||
2077 | PSD9_0, PSD9_1, | ||
2078 | PSD8_0, PSD8_1, | ||
2079 | PSD7_0, PSD7_1, | ||
2080 | PSD6_0, PSD6_1, | ||
2081 | PSD5_0, PSD5_1, | ||
2082 | PSD4_0, PSD4_1, | ||
2083 | PSD3_0, PSD3_1, | ||
2084 | PSD2_0, PSD2_1, | ||
2085 | PSD1_0, PSD1_1, | ||
2086 | PSD0_0, PSD0_1} | ||
2087 | }, | ||
2088 | { PINMUX_CFG_REG("PSELE", 0xa4050156, 16, 1) { | ||
2089 | PSE15_0, PSE15_1, | ||
2090 | PSE14_0, PSE14_1, | ||
2091 | PSE13_0, PSE13_1, | ||
2092 | PSE12_0, PSE12_1, | ||
2093 | PSE11_0, PSE11_1, | ||
2094 | PSE10_0, PSE10_1, | ||
2095 | PSE9_0, PSE9_1, | ||
2096 | PSE8_0, PSE8_1, | ||
2097 | PSE7_0, PSE7_1, | ||
2098 | PSE6_0, PSE6_1, | ||
2099 | PSE5_0, PSE5_1, | ||
2100 | PSE4_0, PSE4_1, | ||
2101 | PSE3_0, PSE3_1, | ||
2102 | PSE2_0, PSE2_1, | ||
2103 | PSE1_0, PSE1_1, | ||
2104 | PSE0_0, PSE0_1} | ||
2105 | }, | ||
2106 | {} | ||
2107 | }; | ||
2108 | |||
2109 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
2110 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | ||
2111 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | ||
2112 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | ||
2113 | }, | ||
2114 | { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) { | ||
2115 | PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA, | ||
2116 | PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA } | ||
2117 | }, | ||
2118 | { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) { | ||
2119 | PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA, | ||
2120 | PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA } | ||
2121 | }, | ||
2122 | { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) { | ||
2123 | PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA, | ||
2124 | PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA } | ||
2125 | }, | ||
2126 | { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) { | ||
2127 | PTE7_DATA, PTE6_DATA, PTE5_DATA, PTE4_DATA, | ||
2128 | PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA } | ||
2129 | }, | ||
2130 | { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) { | ||
2131 | PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA, | ||
2132 | PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA } | ||
2133 | }, | ||
2134 | { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) { | ||
2135 | 0, 0, PTG5_DATA, PTG4_DATA, | ||
2136 | PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA } | ||
2137 | }, | ||
2138 | { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) { | ||
2139 | PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA, | ||
2140 | PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA } | ||
2141 | }, | ||
2142 | { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) { | ||
2143 | PTJ7_DATA, PTJ6_DATA, PTJ5_DATA, 0, | ||
2144 | PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA } | ||
2145 | }, | ||
2146 | { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) { | ||
2147 | PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA, | ||
2148 | PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA } | ||
2149 | }, | ||
2150 | { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) { | ||
2151 | PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA, | ||
2152 | PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA } | ||
2153 | }, | ||
2154 | { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) { | ||
2155 | PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA, | ||
2156 | PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA } | ||
2157 | }, | ||
2158 | { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) { | ||
2159 | PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA, | ||
2160 | PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA } | ||
2161 | }, | ||
2162 | { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) { | ||
2163 | PTQ7_DATA, PTQ6_DATA, PTQ5_DATA, PTQ4_DATA, | ||
2164 | PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA } | ||
2165 | }, | ||
2166 | { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) { | ||
2167 | PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA, | ||
2168 | PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA } | ||
2169 | }, | ||
2170 | { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) { | ||
2171 | 0, PTS6_DATA, PTS5_DATA, PTS4_DATA, | ||
2172 | PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA } | ||
2173 | }, | ||
2174 | { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) { | ||
2175 | PTT7_DATA, PTT6_DATA, PTT5_DATA, PTT4_DATA, | ||
2176 | PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA } | ||
2177 | }, | ||
2178 | { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) { | ||
2179 | PTU7_DATA, PTU6_DATA, PTU5_DATA, PTU4_DATA, | ||
2180 | PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA } | ||
2181 | }, | ||
2182 | { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) { | ||
2183 | PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA, | ||
2184 | PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA } | ||
2185 | }, | ||
2186 | { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) { | ||
2187 | PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA, | ||
2188 | PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA } | ||
2189 | }, | ||
2190 | { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) { | ||
2191 | PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA, | ||
2192 | PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA } | ||
2193 | }, | ||
2194 | { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) { | ||
2195 | PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA, | ||
2196 | PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA } | ||
2197 | }, | ||
2198 | { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) { | ||
2199 | PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA, | ||
2200 | PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA } | ||
2201 | }, | ||
2202 | { }, | ||
2203 | }; | ||
2204 | |||
2205 | static struct pinmux_info sh7724_pinmux_info = { | ||
2206 | .name = "sh7724_pfc", | ||
2207 | .reserved_id = PINMUX_RESERVED, | ||
2208 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
2209 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
2210 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
2211 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
2212 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
2213 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
2214 | |||
2215 | .first_gpio = GPIO_PTA7, | ||
2216 | .last_gpio = GPIO_FN_INTC_IRQ0, | ||
2217 | |||
2218 | .gpios = pinmux_gpios, | ||
2219 | .cfg_regs = pinmux_config_regs, | ||
2220 | .data_regs = pinmux_data_regs, | ||
2221 | |||
2222 | .gpio_data = pinmux_data, | ||
2223 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
2224 | }; | ||
2225 | |||
2226 | static int __init plat_pinmux_setup(void) | ||
2227 | { | ||
2228 | return register_pinmux(&sh7724_pinmux_info); | ||
2229 | } | ||
2230 | arch_initcall(plat_pinmux_setup); | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c index c1549382c87c..51204dc7ca21 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/uio_driver.h> | 14 | #include <linux/uio_driver.h> |
15 | #include <linux/sh_cmt.h> | 15 | #include <linux/sh_timer.h> |
16 | #include <asm/clock.h> | 16 | #include <asm/clock.h> |
17 | 17 | ||
18 | static struct resource iic0_resources[] = { | 18 | static struct resource iic0_resources[] = { |
@@ -141,7 +141,7 @@ static struct platform_device jpu_device = { | |||
141 | .num_resources = ARRAY_SIZE(jpu_resources), | 141 | .num_resources = ARRAY_SIZE(jpu_resources), |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static struct sh_cmt_config cmt_platform_data = { | 144 | static struct sh_timer_config cmt_platform_data = { |
145 | .name = "CMT", | 145 | .name = "CMT", |
146 | .channel_offset = 0x60, | 146 | .channel_offset = 0x60, |
147 | .timer_bit = 5, | 147 | .timer_bit = 5, |
@@ -173,27 +173,123 @@ static struct platform_device cmt_device = { | |||
173 | .num_resources = ARRAY_SIZE(cmt_resources), | 173 | .num_resources = ARRAY_SIZE(cmt_resources), |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static struct sh_timer_config tmu0_platform_data = { | ||
177 | .name = "TMU0", | ||
178 | .channel_offset = 0x04, | ||
179 | .timer_bit = 0, | ||
180 | .clk = "tmu0", | ||
181 | .clockevent_rating = 200, | ||
182 | }; | ||
183 | |||
184 | static struct resource tmu0_resources[] = { | ||
185 | [0] = { | ||
186 | .name = "TMU0", | ||
187 | .start = 0xffd80008, | ||
188 | .end = 0xffd80013, | ||
189 | .flags = IORESOURCE_MEM, | ||
190 | }, | ||
191 | [1] = { | ||
192 | .start = 16, | ||
193 | .flags = IORESOURCE_IRQ, | ||
194 | }, | ||
195 | }; | ||
196 | |||
197 | static struct platform_device tmu0_device = { | ||
198 | .name = "sh_tmu", | ||
199 | .id = 0, | ||
200 | .dev = { | ||
201 | .platform_data = &tmu0_platform_data, | ||
202 | }, | ||
203 | .resource = tmu0_resources, | ||
204 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
205 | }; | ||
206 | |||
207 | static struct sh_timer_config tmu1_platform_data = { | ||
208 | .name = "TMU1", | ||
209 | .channel_offset = 0x10, | ||
210 | .timer_bit = 1, | ||
211 | .clk = "tmu0", | ||
212 | .clocksource_rating = 200, | ||
213 | }; | ||
214 | |||
215 | static struct resource tmu1_resources[] = { | ||
216 | [0] = { | ||
217 | .name = "TMU1", | ||
218 | .start = 0xffd80014, | ||
219 | .end = 0xffd8001f, | ||
220 | .flags = IORESOURCE_MEM, | ||
221 | }, | ||
222 | [1] = { | ||
223 | .start = 17, | ||
224 | .flags = IORESOURCE_IRQ, | ||
225 | }, | ||
226 | }; | ||
227 | |||
228 | static struct platform_device tmu1_device = { | ||
229 | .name = "sh_tmu", | ||
230 | .id = 1, | ||
231 | .dev = { | ||
232 | .platform_data = &tmu1_platform_data, | ||
233 | }, | ||
234 | .resource = tmu1_resources, | ||
235 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
236 | }; | ||
237 | |||
238 | static struct sh_timer_config tmu2_platform_data = { | ||
239 | .name = "TMU2", | ||
240 | .channel_offset = 0x1c, | ||
241 | .timer_bit = 2, | ||
242 | .clk = "tmu0", | ||
243 | }; | ||
244 | |||
245 | static struct resource tmu2_resources[] = { | ||
246 | [0] = { | ||
247 | .name = "TMU2", | ||
248 | .start = 0xffd80020, | ||
249 | .end = 0xffd8002b, | ||
250 | .flags = IORESOURCE_MEM, | ||
251 | }, | ||
252 | [1] = { | ||
253 | .start = 18, | ||
254 | .flags = IORESOURCE_IRQ, | ||
255 | }, | ||
256 | }; | ||
257 | |||
258 | static struct platform_device tmu2_device = { | ||
259 | .name = "sh_tmu", | ||
260 | .id = 2, | ||
261 | .dev = { | ||
262 | .platform_data = &tmu2_platform_data, | ||
263 | }, | ||
264 | .resource = tmu2_resources, | ||
265 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
266 | }; | ||
267 | |||
176 | static struct plat_sci_port sci_platform_data[] = { | 268 | static struct plat_sci_port sci_platform_data[] = { |
177 | { | 269 | { |
178 | .mapbase = 0xffe00000, | 270 | .mapbase = 0xffe00000, |
179 | .flags = UPF_BOOT_AUTOCONF, | 271 | .flags = UPF_BOOT_AUTOCONF, |
180 | .type = PORT_SCIF, | 272 | .type = PORT_SCIF, |
181 | .irqs = { 80, 80, 80, 80 }, | 273 | .irqs = { 80, 80, 80, 80 }, |
274 | .clk = "scif0", | ||
182 | }, { | 275 | }, { |
183 | .mapbase = 0xffe10000, | 276 | .mapbase = 0xffe10000, |
184 | .flags = UPF_BOOT_AUTOCONF, | 277 | .flags = UPF_BOOT_AUTOCONF, |
185 | .type = PORT_SCIF, | 278 | .type = PORT_SCIF, |
186 | .irqs = { 81, 81, 81, 81 }, | 279 | .irqs = { 81, 81, 81, 81 }, |
280 | .clk = "scif1", | ||
187 | }, { | 281 | }, { |
188 | .mapbase = 0xffe20000, | 282 | .mapbase = 0xffe20000, |
189 | .flags = UPF_BOOT_AUTOCONF, | 283 | .flags = UPF_BOOT_AUTOCONF, |
190 | .type = PORT_SCIF, | 284 | .type = PORT_SCIF, |
191 | .irqs = { 82, 82, 82, 82 }, | 285 | .irqs = { 82, 82, 82, 82 }, |
286 | .clk = "scif2", | ||
192 | }, { | 287 | }, { |
193 | .mapbase = 0xffe30000, | 288 | .mapbase = 0xffe30000, |
194 | .flags = UPF_BOOT_AUTOCONF, | 289 | .flags = UPF_BOOT_AUTOCONF, |
195 | .type = PORT_SCIF, | 290 | .type = PORT_SCIF, |
196 | .irqs = { 83, 83, 83, 83 }, | 291 | .irqs = { 83, 83, 83, 83 }, |
292 | .clk = "scif3", | ||
197 | }, { | 293 | }, { |
198 | .flags = 0, | 294 | .flags = 0, |
199 | } | 295 | } |
@@ -209,6 +305,9 @@ static struct platform_device sci_device = { | |||
209 | 305 | ||
210 | static struct platform_device *sh7343_devices[] __initdata = { | 306 | static struct platform_device *sh7343_devices[] __initdata = { |
211 | &cmt_device, | 307 | &cmt_device, |
308 | &tmu0_device, | ||
309 | &tmu1_device, | ||
310 | &tmu2_device, | ||
212 | &iic0_device, | 311 | &iic0_device, |
213 | &iic1_device, | 312 | &iic1_device, |
214 | &sci_device, | 313 | &sci_device, |
@@ -234,6 +333,19 @@ static int __init sh7343_devices_setup(void) | |||
234 | } | 333 | } |
235 | __initcall(sh7343_devices_setup); | 334 | __initcall(sh7343_devices_setup); |
236 | 335 | ||
336 | static struct platform_device *sh7343_early_devices[] __initdata = { | ||
337 | &cmt_device, | ||
338 | &tmu0_device, | ||
339 | &tmu1_device, | ||
340 | &tmu2_device, | ||
341 | }; | ||
342 | |||
343 | void __init plat_early_device_setup(void) | ||
344 | { | ||
345 | early_platform_add_devices(sh7343_early_devices, | ||
346 | ARRAY_SIZE(sh7343_early_devices)); | ||
347 | } | ||
348 | |||
237 | enum { | 349 | enum { |
238 | UNUSED = 0, | 350 | UNUSED = 0, |
239 | 351 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index 93ecf8ed5c6c..04de0fa85120 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
16 | #include <linux/uio_driver.h> | 16 | #include <linux/uio_driver.h> |
17 | #include <linux/sh_cmt.h> | 17 | #include <linux/sh_timer.h> |
18 | #include <asm/clock.h> | 18 | #include <asm/clock.h> |
19 | 19 | ||
20 | static struct resource iic_resources[] = { | 20 | static struct resource iic_resources[] = { |
@@ -148,7 +148,7 @@ static struct platform_device veu1_device = { | |||
148 | .num_resources = ARRAY_SIZE(veu1_resources), | 148 | .num_resources = ARRAY_SIZE(veu1_resources), |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static struct sh_cmt_config cmt_platform_data = { | 151 | static struct sh_timer_config cmt_platform_data = { |
152 | .name = "CMT", | 152 | .name = "CMT", |
153 | .channel_offset = 0x60, | 153 | .channel_offset = 0x60, |
154 | .timer_bit = 5, | 154 | .timer_bit = 5, |
@@ -180,12 +180,105 @@ static struct platform_device cmt_device = { | |||
180 | .num_resources = ARRAY_SIZE(cmt_resources), | 180 | .num_resources = ARRAY_SIZE(cmt_resources), |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct sh_timer_config tmu0_platform_data = { | ||
184 | .name = "TMU0", | ||
185 | .channel_offset = 0x04, | ||
186 | .timer_bit = 0, | ||
187 | .clk = "tmu0", | ||
188 | .clockevent_rating = 200, | ||
189 | }; | ||
190 | |||
191 | static struct resource tmu0_resources[] = { | ||
192 | [0] = { | ||
193 | .name = "TMU0", | ||
194 | .start = 0xffd80008, | ||
195 | .end = 0xffd80013, | ||
196 | .flags = IORESOURCE_MEM, | ||
197 | }, | ||
198 | [1] = { | ||
199 | .start = 16, | ||
200 | .flags = IORESOURCE_IRQ, | ||
201 | }, | ||
202 | }; | ||
203 | |||
204 | static struct platform_device tmu0_device = { | ||
205 | .name = "sh_tmu", | ||
206 | .id = 0, | ||
207 | .dev = { | ||
208 | .platform_data = &tmu0_platform_data, | ||
209 | }, | ||
210 | .resource = tmu0_resources, | ||
211 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
212 | }; | ||
213 | |||
214 | static struct sh_timer_config tmu1_platform_data = { | ||
215 | .name = "TMU1", | ||
216 | .channel_offset = 0x10, | ||
217 | .timer_bit = 1, | ||
218 | .clk = "tmu0", | ||
219 | .clocksource_rating = 200, | ||
220 | }; | ||
221 | |||
222 | static struct resource tmu1_resources[] = { | ||
223 | [0] = { | ||
224 | .name = "TMU1", | ||
225 | .start = 0xffd80014, | ||
226 | .end = 0xffd8001f, | ||
227 | .flags = IORESOURCE_MEM, | ||
228 | }, | ||
229 | [1] = { | ||
230 | .start = 17, | ||
231 | .flags = IORESOURCE_IRQ, | ||
232 | }, | ||
233 | }; | ||
234 | |||
235 | static struct platform_device tmu1_device = { | ||
236 | .name = "sh_tmu", | ||
237 | .id = 1, | ||
238 | .dev = { | ||
239 | .platform_data = &tmu1_platform_data, | ||
240 | }, | ||
241 | .resource = tmu1_resources, | ||
242 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
243 | }; | ||
244 | |||
245 | static struct sh_timer_config tmu2_platform_data = { | ||
246 | .name = "TMU2", | ||
247 | .channel_offset = 0x1c, | ||
248 | .timer_bit = 2, | ||
249 | .clk = "tmu0", | ||
250 | }; | ||
251 | |||
252 | static struct resource tmu2_resources[] = { | ||
253 | [0] = { | ||
254 | .name = "TMU2", | ||
255 | .start = 0xffd80020, | ||
256 | .end = 0xffd8002b, | ||
257 | .flags = IORESOURCE_MEM, | ||
258 | }, | ||
259 | [1] = { | ||
260 | .start = 18, | ||
261 | .flags = IORESOURCE_IRQ, | ||
262 | }, | ||
263 | }; | ||
264 | |||
265 | static struct platform_device tmu2_device = { | ||
266 | .name = "sh_tmu", | ||
267 | .id = 2, | ||
268 | .dev = { | ||
269 | .platform_data = &tmu2_platform_data, | ||
270 | }, | ||
271 | .resource = tmu2_resources, | ||
272 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
273 | }; | ||
274 | |||
183 | static struct plat_sci_port sci_platform_data[] = { | 275 | static struct plat_sci_port sci_platform_data[] = { |
184 | { | 276 | { |
185 | .mapbase = 0xffe00000, | 277 | .mapbase = 0xffe00000, |
186 | .flags = UPF_BOOT_AUTOCONF, | 278 | .flags = UPF_BOOT_AUTOCONF, |
187 | .type = PORT_SCIF, | 279 | .type = PORT_SCIF, |
188 | .irqs = { 80, 80, 80, 80 }, | 280 | .irqs = { 80, 80, 80, 80 }, |
281 | .clk = "scif0", | ||
189 | }, { | 282 | }, { |
190 | .flags = 0, | 283 | .flags = 0, |
191 | } | 284 | } |
@@ -201,6 +294,9 @@ static struct platform_device sci_device = { | |||
201 | 294 | ||
202 | static struct platform_device *sh7366_devices[] __initdata = { | 295 | static struct platform_device *sh7366_devices[] __initdata = { |
203 | &cmt_device, | 296 | &cmt_device, |
297 | &tmu0_device, | ||
298 | &tmu1_device, | ||
299 | &tmu2_device, | ||
204 | &iic_device, | 300 | &iic_device, |
205 | &sci_device, | 301 | &sci_device, |
206 | &usb_host_device, | 302 | &usb_host_device, |
@@ -226,6 +322,19 @@ static int __init sh7366_devices_setup(void) | |||
226 | } | 322 | } |
227 | __initcall(sh7366_devices_setup); | 323 | __initcall(sh7366_devices_setup); |
228 | 324 | ||
325 | static struct platform_device *sh7366_early_devices[] __initdata = { | ||
326 | &cmt_device, | ||
327 | &tmu0_device, | ||
328 | &tmu1_device, | ||
329 | &tmu2_device, | ||
330 | }; | ||
331 | |||
332 | void __init plat_early_device_setup(void) | ||
333 | { | ||
334 | early_platform_add_devices(sh7366_early_devices, | ||
335 | ARRAY_SIZE(sh7366_early_devices)); | ||
336 | } | ||
337 | |||
229 | enum { | 338 | enum { |
230 | UNUSED=0, | 339 | UNUSED=0, |
231 | 340 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 406747f07dc0..5d6247fecd63 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
15 | #include <linux/uio_driver.h> | 15 | #include <linux/uio_driver.h> |
16 | #include <linux/sh_cmt.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <asm/clock.h> | 17 | #include <asm/clock.h> |
18 | #include <asm/mmzone.h> | 18 | #include <asm/mmzone.h> |
19 | 19 | ||
@@ -177,13 +177,13 @@ static struct platform_device jpu_device = { | |||
177 | .num_resources = ARRAY_SIZE(jpu_resources), | 177 | .num_resources = ARRAY_SIZE(jpu_resources), |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct sh_cmt_config cmt_platform_data = { | 180 | static struct sh_timer_config cmt_platform_data = { |
181 | .name = "CMT", | 181 | .name = "CMT", |
182 | .channel_offset = 0x60, | 182 | .channel_offset = 0x60, |
183 | .timer_bit = 5, | 183 | .timer_bit = 5, |
184 | .clk = "cmt0", | 184 | .clk = "cmt0", |
185 | .clockevent_rating = 125, | 185 | .clockevent_rating = 125, |
186 | .clocksource_rating = 200, | 186 | .clocksource_rating = 125, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct resource cmt_resources[] = { | 189 | static struct resource cmt_resources[] = { |
@@ -209,24 +209,119 @@ static struct platform_device cmt_device = { | |||
209 | .num_resources = ARRAY_SIZE(cmt_resources), | 209 | .num_resources = ARRAY_SIZE(cmt_resources), |
210 | }; | 210 | }; |
211 | 211 | ||
212 | static struct sh_timer_config tmu0_platform_data = { | ||
213 | .name = "TMU0", | ||
214 | .channel_offset = 0x04, | ||
215 | .timer_bit = 0, | ||
216 | .clk = "tmu0", | ||
217 | .clockevent_rating = 200, | ||
218 | }; | ||
219 | |||
220 | static struct resource tmu0_resources[] = { | ||
221 | [0] = { | ||
222 | .name = "TMU0", | ||
223 | .start = 0xffd80008, | ||
224 | .end = 0xffd80013, | ||
225 | .flags = IORESOURCE_MEM, | ||
226 | }, | ||
227 | [1] = { | ||
228 | .start = 16, | ||
229 | .flags = IORESOURCE_IRQ, | ||
230 | }, | ||
231 | }; | ||
232 | |||
233 | static struct platform_device tmu0_device = { | ||
234 | .name = "sh_tmu", | ||
235 | .id = 0, | ||
236 | .dev = { | ||
237 | .platform_data = &tmu0_platform_data, | ||
238 | }, | ||
239 | .resource = tmu0_resources, | ||
240 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
241 | }; | ||
242 | |||
243 | static struct sh_timer_config tmu1_platform_data = { | ||
244 | .name = "TMU1", | ||
245 | .channel_offset = 0x10, | ||
246 | .timer_bit = 1, | ||
247 | .clk = "tmu0", | ||
248 | .clocksource_rating = 200, | ||
249 | }; | ||
250 | |||
251 | static struct resource tmu1_resources[] = { | ||
252 | [0] = { | ||
253 | .name = "TMU1", | ||
254 | .start = 0xffd80014, | ||
255 | .end = 0xffd8001f, | ||
256 | .flags = IORESOURCE_MEM, | ||
257 | }, | ||
258 | [1] = { | ||
259 | .start = 17, | ||
260 | .flags = IORESOURCE_IRQ, | ||
261 | }, | ||
262 | }; | ||
263 | |||
264 | static struct platform_device tmu1_device = { | ||
265 | .name = "sh_tmu", | ||
266 | .id = 1, | ||
267 | .dev = { | ||
268 | .platform_data = &tmu1_platform_data, | ||
269 | }, | ||
270 | .resource = tmu1_resources, | ||
271 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
272 | }; | ||
273 | |||
274 | static struct sh_timer_config tmu2_platform_data = { | ||
275 | .name = "TMU2", | ||
276 | .channel_offset = 0x1c, | ||
277 | .timer_bit = 2, | ||
278 | .clk = "tmu0", | ||
279 | }; | ||
280 | |||
281 | static struct resource tmu2_resources[] = { | ||
282 | [0] = { | ||
283 | .name = "TMU2", | ||
284 | .start = 0xffd80020, | ||
285 | .end = 0xffd8002b, | ||
286 | .flags = IORESOURCE_MEM, | ||
287 | }, | ||
288 | [1] = { | ||
289 | .start = 18, | ||
290 | .flags = IORESOURCE_IRQ, | ||
291 | }, | ||
292 | }; | ||
293 | |||
294 | static struct platform_device tmu2_device = { | ||
295 | .name = "sh_tmu", | ||
296 | .id = 2, | ||
297 | .dev = { | ||
298 | .platform_data = &tmu2_platform_data, | ||
299 | }, | ||
300 | .resource = tmu2_resources, | ||
301 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
302 | }; | ||
303 | |||
212 | static struct plat_sci_port sci_platform_data[] = { | 304 | static struct plat_sci_port sci_platform_data[] = { |
213 | { | 305 | { |
214 | .mapbase = 0xffe00000, | 306 | .mapbase = 0xffe00000, |
215 | .flags = UPF_BOOT_AUTOCONF, | 307 | .flags = UPF_BOOT_AUTOCONF, |
216 | .type = PORT_SCIF, | 308 | .type = PORT_SCIF, |
217 | .irqs = { 80, 80, 80, 80 }, | 309 | .irqs = { 80, 80, 80, 80 }, |
310 | .clk = "scif0", | ||
218 | }, | 311 | }, |
219 | { | 312 | { |
220 | .mapbase = 0xffe10000, | 313 | .mapbase = 0xffe10000, |
221 | .flags = UPF_BOOT_AUTOCONF, | 314 | .flags = UPF_BOOT_AUTOCONF, |
222 | .type = PORT_SCIF, | 315 | .type = PORT_SCIF, |
223 | .irqs = { 81, 81, 81, 81 }, | 316 | .irqs = { 81, 81, 81, 81 }, |
317 | .clk = "scif1", | ||
224 | }, | 318 | }, |
225 | { | 319 | { |
226 | .mapbase = 0xffe20000, | 320 | .mapbase = 0xffe20000, |
227 | .flags = UPF_BOOT_AUTOCONF, | 321 | .flags = UPF_BOOT_AUTOCONF, |
228 | .type = PORT_SCIF, | 322 | .type = PORT_SCIF, |
229 | .irqs = { 82, 82, 82, 82 }, | 323 | .irqs = { 82, 82, 82, 82 }, |
324 | .clk = "scif2", | ||
230 | }, | 325 | }, |
231 | { | 326 | { |
232 | .flags = 0, | 327 | .flags = 0, |
@@ -243,6 +338,9 @@ static struct platform_device sci_device = { | |||
243 | 338 | ||
244 | static struct platform_device *sh7722_devices[] __initdata = { | 339 | static struct platform_device *sh7722_devices[] __initdata = { |
245 | &cmt_device, | 340 | &cmt_device, |
341 | &tmu0_device, | ||
342 | &tmu1_device, | ||
343 | &tmu2_device, | ||
246 | &rtc_device, | 344 | &rtc_device, |
247 | &usbf_device, | 345 | &usbf_device, |
248 | &iic_device, | 346 | &iic_device, |
@@ -269,6 +367,19 @@ static int __init sh7722_devices_setup(void) | |||
269 | } | 367 | } |
270 | __initcall(sh7722_devices_setup); | 368 | __initcall(sh7722_devices_setup); |
271 | 369 | ||
370 | static struct platform_device *sh7722_early_devices[] __initdata = { | ||
371 | &cmt_device, | ||
372 | &tmu0_device, | ||
373 | &tmu1_device, | ||
374 | &tmu2_device, | ||
375 | }; | ||
376 | |||
377 | void __init plat_early_device_setup(void) | ||
378 | { | ||
379 | early_platform_add_devices(sh7722_early_devices, | ||
380 | ARRAY_SIZE(sh7722_early_devices)); | ||
381 | } | ||
382 | |||
272 | enum { | 383 | enum { |
273 | UNUSED=0, | 384 | UNUSED=0, |
274 | 385 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index a800466b938c..1429fc5e4286 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/uio_driver.h> | 15 | #include <linux/uio_driver.h> |
16 | #include <linux/sh_cmt.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <asm/clock.h> | 17 | #include <asm/clock.h> |
18 | #include <asm/mmzone.h> | 18 | #include <asm/mmzone.h> |
19 | 19 | ||
@@ -101,13 +101,13 @@ static struct platform_device veu1_device = { | |||
101 | .num_resources = ARRAY_SIZE(veu1_resources), | 101 | .num_resources = ARRAY_SIZE(veu1_resources), |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static struct sh_cmt_config cmt_platform_data = { | 104 | static struct sh_timer_config cmt_platform_data = { |
105 | .name = "CMT", | 105 | .name = "CMT", |
106 | .channel_offset = 0x60, | 106 | .channel_offset = 0x60, |
107 | .timer_bit = 5, | 107 | .timer_bit = 5, |
108 | .clk = "cmt0", | 108 | .clk = "cmt0", |
109 | .clockevent_rating = 125, | 109 | .clockevent_rating = 125, |
110 | .clocksource_rating = 200, | 110 | .clocksource_rating = 125, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | static struct resource cmt_resources[] = { | 113 | static struct resource cmt_resources[] = { |
@@ -133,37 +133,225 @@ static struct platform_device cmt_device = { | |||
133 | .num_resources = ARRAY_SIZE(cmt_resources), | 133 | .num_resources = ARRAY_SIZE(cmt_resources), |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static struct sh_timer_config tmu0_platform_data = { | ||
137 | .name = "TMU0", | ||
138 | .channel_offset = 0x04, | ||
139 | .timer_bit = 0, | ||
140 | .clk = "tmu0", | ||
141 | .clockevent_rating = 200, | ||
142 | }; | ||
143 | |||
144 | static struct resource tmu0_resources[] = { | ||
145 | [0] = { | ||
146 | .name = "TMU0", | ||
147 | .start = 0xffd80008, | ||
148 | .end = 0xffd80013, | ||
149 | .flags = IORESOURCE_MEM, | ||
150 | }, | ||
151 | [1] = { | ||
152 | .start = 16, | ||
153 | .flags = IORESOURCE_IRQ, | ||
154 | }, | ||
155 | }; | ||
156 | |||
157 | static struct platform_device tmu0_device = { | ||
158 | .name = "sh_tmu", | ||
159 | .id = 0, | ||
160 | .dev = { | ||
161 | .platform_data = &tmu0_platform_data, | ||
162 | }, | ||
163 | .resource = tmu0_resources, | ||
164 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
165 | }; | ||
166 | |||
167 | static struct sh_timer_config tmu1_platform_data = { | ||
168 | .name = "TMU1", | ||
169 | .channel_offset = 0x10, | ||
170 | .timer_bit = 1, | ||
171 | .clk = "tmu0", | ||
172 | .clocksource_rating = 200, | ||
173 | }; | ||
174 | |||
175 | static struct resource tmu1_resources[] = { | ||
176 | [0] = { | ||
177 | .name = "TMU1", | ||
178 | .start = 0xffd80014, | ||
179 | .end = 0xffd8001f, | ||
180 | .flags = IORESOURCE_MEM, | ||
181 | }, | ||
182 | [1] = { | ||
183 | .start = 17, | ||
184 | .flags = IORESOURCE_IRQ, | ||
185 | }, | ||
186 | }; | ||
187 | |||
188 | static struct platform_device tmu1_device = { | ||
189 | .name = "sh_tmu", | ||
190 | .id = 1, | ||
191 | .dev = { | ||
192 | .platform_data = &tmu1_platform_data, | ||
193 | }, | ||
194 | .resource = tmu1_resources, | ||
195 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
196 | }; | ||
197 | |||
198 | static struct sh_timer_config tmu2_platform_data = { | ||
199 | .name = "TMU2", | ||
200 | .channel_offset = 0x1c, | ||
201 | .timer_bit = 2, | ||
202 | .clk = "tmu0", | ||
203 | }; | ||
204 | |||
205 | static struct resource tmu2_resources[] = { | ||
206 | [0] = { | ||
207 | .name = "TMU2", | ||
208 | .start = 0xffd80020, | ||
209 | .end = 0xffd8002b, | ||
210 | .flags = IORESOURCE_MEM, | ||
211 | }, | ||
212 | [1] = { | ||
213 | .start = 18, | ||
214 | .flags = IORESOURCE_IRQ, | ||
215 | }, | ||
216 | }; | ||
217 | |||
218 | static struct platform_device tmu2_device = { | ||
219 | .name = "sh_tmu", | ||
220 | .id = 2, | ||
221 | .dev = { | ||
222 | .platform_data = &tmu2_platform_data, | ||
223 | }, | ||
224 | .resource = tmu2_resources, | ||
225 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
226 | }; | ||
227 | |||
228 | static struct sh_timer_config tmu3_platform_data = { | ||
229 | .name = "TMU3", | ||
230 | .channel_offset = 0x04, | ||
231 | .timer_bit = 0, | ||
232 | .clk = "tmu1", | ||
233 | }; | ||
234 | |||
235 | static struct resource tmu3_resources[] = { | ||
236 | [0] = { | ||
237 | .name = "TMU3", | ||
238 | .start = 0xffd90008, | ||
239 | .end = 0xffd90013, | ||
240 | .flags = IORESOURCE_MEM, | ||
241 | }, | ||
242 | [1] = { | ||
243 | .start = 57, | ||
244 | .flags = IORESOURCE_IRQ, | ||
245 | }, | ||
246 | }; | ||
247 | |||
248 | static struct platform_device tmu3_device = { | ||
249 | .name = "sh_tmu", | ||
250 | .id = 3, | ||
251 | .dev = { | ||
252 | .platform_data = &tmu3_platform_data, | ||
253 | }, | ||
254 | .resource = tmu3_resources, | ||
255 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
256 | }; | ||
257 | |||
258 | static struct sh_timer_config tmu4_platform_data = { | ||
259 | .name = "TMU4", | ||
260 | .channel_offset = 0x10, | ||
261 | .timer_bit = 1, | ||
262 | .clk = "tmu1", | ||
263 | }; | ||
264 | |||
265 | static struct resource tmu4_resources[] = { | ||
266 | [0] = { | ||
267 | .name = "TMU4", | ||
268 | .start = 0xffd90014, | ||
269 | .end = 0xffd9001f, | ||
270 | .flags = IORESOURCE_MEM, | ||
271 | }, | ||
272 | [1] = { | ||
273 | .start = 58, | ||
274 | .flags = IORESOURCE_IRQ, | ||
275 | }, | ||
276 | }; | ||
277 | |||
278 | static struct platform_device tmu4_device = { | ||
279 | .name = "sh_tmu", | ||
280 | .id = 4, | ||
281 | .dev = { | ||
282 | .platform_data = &tmu4_platform_data, | ||
283 | }, | ||
284 | .resource = tmu4_resources, | ||
285 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
286 | }; | ||
287 | |||
288 | static struct sh_timer_config tmu5_platform_data = { | ||
289 | .name = "TMU5", | ||
290 | .channel_offset = 0x1c, | ||
291 | .timer_bit = 2, | ||
292 | .clk = "tmu1", | ||
293 | }; | ||
294 | |||
295 | static struct resource tmu5_resources[] = { | ||
296 | [0] = { | ||
297 | .name = "TMU5", | ||
298 | .start = 0xffd90020, | ||
299 | .end = 0xffd9002b, | ||
300 | .flags = IORESOURCE_MEM, | ||
301 | }, | ||
302 | [1] = { | ||
303 | .start = 57, | ||
304 | .flags = IORESOURCE_IRQ, | ||
305 | }, | ||
306 | }; | ||
307 | |||
308 | static struct platform_device tmu5_device = { | ||
309 | .name = "sh_tmu", | ||
310 | .id = 5, | ||
311 | .dev = { | ||
312 | .platform_data = &tmu5_platform_data, | ||
313 | }, | ||
314 | .resource = tmu5_resources, | ||
315 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
316 | }; | ||
317 | |||
136 | static struct plat_sci_port sci_platform_data[] = { | 318 | static struct plat_sci_port sci_platform_data[] = { |
137 | { | 319 | { |
138 | .mapbase = 0xffe00000, | 320 | .mapbase = 0xffe00000, |
139 | .flags = UPF_BOOT_AUTOCONF, | 321 | .flags = UPF_BOOT_AUTOCONF, |
140 | .type = PORT_SCIF, | 322 | .type = PORT_SCIF, |
141 | .irqs = { 80, 80, 80, 80 }, | 323 | .irqs = { 80, 80, 80, 80 }, |
324 | .clk = "scif0", | ||
142 | },{ | 325 | },{ |
143 | .mapbase = 0xffe10000, | 326 | .mapbase = 0xffe10000, |
144 | .flags = UPF_BOOT_AUTOCONF, | 327 | .flags = UPF_BOOT_AUTOCONF, |
145 | .type = PORT_SCIF, | 328 | .type = PORT_SCIF, |
146 | .irqs = { 81, 81, 81, 81 }, | 329 | .irqs = { 81, 81, 81, 81 }, |
330 | .clk = "scif1", | ||
147 | },{ | 331 | },{ |
148 | .mapbase = 0xffe20000, | 332 | .mapbase = 0xffe20000, |
149 | .flags = UPF_BOOT_AUTOCONF, | 333 | .flags = UPF_BOOT_AUTOCONF, |
150 | .type = PORT_SCIF, | 334 | .type = PORT_SCIF, |
151 | .irqs = { 82, 82, 82, 82 }, | 335 | .irqs = { 82, 82, 82, 82 }, |
336 | .clk = "scif2", | ||
152 | },{ | 337 | },{ |
153 | .mapbase = 0xa4e30000, | 338 | .mapbase = 0xa4e30000, |
154 | .flags = UPF_BOOT_AUTOCONF, | 339 | .flags = UPF_BOOT_AUTOCONF, |
155 | .type = PORT_SCIFA, | 340 | .type = PORT_SCIFA, |
156 | .irqs = { 56, 56, 56, 56 }, | 341 | .irqs = { 56, 56, 56, 56 }, |
342 | .clk = "scif3", | ||
157 | },{ | 343 | },{ |
158 | .mapbase = 0xa4e40000, | 344 | .mapbase = 0xa4e40000, |
159 | .flags = UPF_BOOT_AUTOCONF, | 345 | .flags = UPF_BOOT_AUTOCONF, |
160 | .type = PORT_SCIFA, | 346 | .type = PORT_SCIFA, |
161 | .irqs = { 88, 88, 88, 88 }, | 347 | .irqs = { 88, 88, 88, 88 }, |
348 | .clk = "scif4", | ||
162 | },{ | 349 | },{ |
163 | .mapbase = 0xa4e50000, | 350 | .mapbase = 0xa4e50000, |
164 | .flags = UPF_BOOT_AUTOCONF, | 351 | .flags = UPF_BOOT_AUTOCONF, |
165 | .type = PORT_SCIFA, | 352 | .type = PORT_SCIFA, |
166 | .irqs = { 109, 109, 109, 109 }, | 353 | .irqs = { 109, 109, 109, 109 }, |
354 | .clk = "scif5", | ||
167 | }, { | 355 | }, { |
168 | .flags = 0, | 356 | .flags = 0, |
169 | } | 357 | } |
@@ -255,6 +443,12 @@ static struct platform_device iic_device = { | |||
255 | 443 | ||
256 | static struct platform_device *sh7723_devices[] __initdata = { | 444 | static struct platform_device *sh7723_devices[] __initdata = { |
257 | &cmt_device, | 445 | &cmt_device, |
446 | &tmu0_device, | ||
447 | &tmu1_device, | ||
448 | &tmu2_device, | ||
449 | &tmu3_device, | ||
450 | &tmu4_device, | ||
451 | &tmu5_device, | ||
258 | &sci_device, | 452 | &sci_device, |
259 | &rtc_device, | 453 | &rtc_device, |
260 | &iic_device, | 454 | &iic_device, |
@@ -280,6 +474,22 @@ static int __init sh7723_devices_setup(void) | |||
280 | } | 474 | } |
281 | __initcall(sh7723_devices_setup); | 475 | __initcall(sh7723_devices_setup); |
282 | 476 | ||
477 | static struct platform_device *sh7723_early_devices[] __initdata = { | ||
478 | &cmt_device, | ||
479 | &tmu0_device, | ||
480 | &tmu1_device, | ||
481 | &tmu2_device, | ||
482 | &tmu3_device, | ||
483 | &tmu4_device, | ||
484 | &tmu5_device, | ||
485 | }; | ||
486 | |||
487 | void __init plat_early_device_setup(void) | ||
488 | { | ||
489 | early_platform_add_devices(sh7723_early_devices, | ||
490 | ARRAY_SIZE(sh7723_early_devices)); | ||
491 | } | ||
492 | |||
283 | enum { | 493 | enum { |
284 | UNUSED=0, | 494 | UNUSED=0, |
285 | 495 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c new file mode 100644 index 000000000000..852f8104f03a --- /dev/null +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c | |||
@@ -0,0 +1,757 @@ | |||
1 | /* | ||
2 | * SH7724 Setup | ||
3 | * | ||
4 | * Copyright (C) 2009 Renesas Solutions Corp. | ||
5 | * | ||
6 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
7 | * | ||
8 | * Based on SH7723 Setup | ||
9 | * Copyright (C) 2008 Paul Mundt | ||
10 | * | ||
11 | * This file is subject to the terms and conditions of the GNU General Public | ||
12 | * License. See the file "COPYING" in the main directory of this archive | ||
13 | * for more details. | ||
14 | */ | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/serial.h> | ||
18 | #include <linux/mm.h> | ||
19 | #include <linux/serial_sci.h> | ||
20 | #include <linux/uio_driver.h> | ||
21 | #include <linux/sh_timer.h> | ||
22 | #include <linux/io.h> | ||
23 | #include <asm/clock.h> | ||
24 | #include <asm/mmzone.h> | ||
25 | |||
26 | /* Serial */ | ||
27 | static struct plat_sci_port sci_platform_data[] = { | ||
28 | { | ||
29 | .mapbase = 0xffe00000, | ||
30 | .flags = UPF_BOOT_AUTOCONF, | ||
31 | .type = PORT_SCIF, | ||
32 | .irqs = { 80, 80, 80, 80 }, | ||
33 | .clk = "scif0", | ||
34 | }, { | ||
35 | .mapbase = 0xffe10000, | ||
36 | .flags = UPF_BOOT_AUTOCONF, | ||
37 | .type = PORT_SCIF, | ||
38 | .irqs = { 81, 81, 81, 81 }, | ||
39 | .clk = "scif1", | ||
40 | }, { | ||
41 | .mapbase = 0xffe20000, | ||
42 | .flags = UPF_BOOT_AUTOCONF, | ||
43 | .type = PORT_SCIF, | ||
44 | .irqs = { 82, 82, 82, 82 }, | ||
45 | .clk = "scif2", | ||
46 | }, { | ||
47 | .mapbase = 0xa4e30000, | ||
48 | .flags = UPF_BOOT_AUTOCONF, | ||
49 | .type = PORT_SCIFA, | ||
50 | .irqs = { 56, 56, 56, 56 }, | ||
51 | .clk = "scif3", | ||
52 | }, { | ||
53 | .mapbase = 0xa4e40000, | ||
54 | .flags = UPF_BOOT_AUTOCONF, | ||
55 | .type = PORT_SCIFA, | ||
56 | .irqs = { 88, 88, 88, 88 }, | ||
57 | .clk = "scif4", | ||
58 | }, { | ||
59 | .mapbase = 0xa4e50000, | ||
60 | .flags = UPF_BOOT_AUTOCONF, | ||
61 | .type = PORT_SCIFA, | ||
62 | .irqs = { 109, 109, 109, 109 }, | ||
63 | .clk = "scif5", | ||
64 | }, { | ||
65 | .flags = 0, | ||
66 | } | ||
67 | }; | ||
68 | |||
69 | static struct platform_device sci_device = { | ||
70 | .name = "sh-sci", | ||
71 | .id = -1, | ||
72 | .dev = { | ||
73 | .platform_data = sci_platform_data, | ||
74 | }, | ||
75 | }; | ||
76 | |||
77 | /* RTC */ | ||
78 | static struct resource rtc_resources[] = { | ||
79 | [0] = { | ||
80 | .start = 0xa465fec0, | ||
81 | .end = 0xa465fec0 + 0x58 - 1, | ||
82 | .flags = IORESOURCE_IO, | ||
83 | }, | ||
84 | [1] = { | ||
85 | /* Period IRQ */ | ||
86 | .start = 69, | ||
87 | .flags = IORESOURCE_IRQ, | ||
88 | }, | ||
89 | [2] = { | ||
90 | /* Carry IRQ */ | ||
91 | .start = 70, | ||
92 | .flags = IORESOURCE_IRQ, | ||
93 | }, | ||
94 | [3] = { | ||
95 | /* Alarm IRQ */ | ||
96 | .start = 68, | ||
97 | .flags = IORESOURCE_IRQ, | ||
98 | }, | ||
99 | }; | ||
100 | |||
101 | static struct platform_device rtc_device = { | ||
102 | .name = "sh-rtc", | ||
103 | .id = -1, | ||
104 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
105 | .resource = rtc_resources, | ||
106 | }; | ||
107 | |||
108 | /* I2C0 */ | ||
109 | static struct resource iic0_resources[] = { | ||
110 | [0] = { | ||
111 | .name = "IIC0", | ||
112 | .start = 0x04470000, | ||
113 | .end = 0x04470018 - 1, | ||
114 | .flags = IORESOURCE_MEM, | ||
115 | }, | ||
116 | [1] = { | ||
117 | .start = 96, | ||
118 | .end = 99, | ||
119 | .flags = IORESOURCE_IRQ, | ||
120 | }, | ||
121 | }; | ||
122 | |||
123 | static struct platform_device iic0_device = { | ||
124 | .name = "i2c-sh_mobile", | ||
125 | .id = 0, /* "i2c0" clock */ | ||
126 | .num_resources = ARRAY_SIZE(iic0_resources), | ||
127 | .resource = iic0_resources, | ||
128 | }; | ||
129 | |||
130 | /* I2C1 */ | ||
131 | static struct resource iic1_resources[] = { | ||
132 | [0] = { | ||
133 | .name = "IIC1", | ||
134 | .start = 0x04750000, | ||
135 | .end = 0x04750018 - 1, | ||
136 | .flags = IORESOURCE_MEM, | ||
137 | }, | ||
138 | [1] = { | ||
139 | .start = 92, | ||
140 | .end = 95, | ||
141 | .flags = IORESOURCE_IRQ, | ||
142 | }, | ||
143 | }; | ||
144 | |||
145 | static struct platform_device iic1_device = { | ||
146 | .name = "i2c-sh_mobile", | ||
147 | .id = 1, /* "i2c1" clock */ | ||
148 | .num_resources = ARRAY_SIZE(iic1_resources), | ||
149 | .resource = iic1_resources, | ||
150 | }; | ||
151 | |||
152 | /* VPU */ | ||
153 | static struct uio_info vpu_platform_data = { | ||
154 | .name = "VPU5F", | ||
155 | .version = "0", | ||
156 | .irq = 60, | ||
157 | }; | ||
158 | |||
159 | static struct resource vpu_resources[] = { | ||
160 | [0] = { | ||
161 | .name = "VPU", | ||
162 | .start = 0xfe900000, | ||
163 | .end = 0xfe902807, | ||
164 | .flags = IORESOURCE_MEM, | ||
165 | }, | ||
166 | [1] = { | ||
167 | /* place holder for contiguous memory */ | ||
168 | }, | ||
169 | }; | ||
170 | |||
171 | static struct platform_device vpu_device = { | ||
172 | .name = "uio_pdrv_genirq", | ||
173 | .id = 0, | ||
174 | .dev = { | ||
175 | .platform_data = &vpu_platform_data, | ||
176 | }, | ||
177 | .resource = vpu_resources, | ||
178 | .num_resources = ARRAY_SIZE(vpu_resources), | ||
179 | }; | ||
180 | |||
181 | /* VEU0 */ | ||
182 | static struct uio_info veu0_platform_data = { | ||
183 | .name = "VEU3F0", | ||
184 | .version = "0", | ||
185 | .irq = 83, | ||
186 | }; | ||
187 | |||
188 | static struct resource veu0_resources[] = { | ||
189 | [0] = { | ||
190 | .name = "VEU3F0", | ||
191 | .start = 0xfe920000, | ||
192 | .end = 0xfe9200cb - 1, | ||
193 | .flags = IORESOURCE_MEM, | ||
194 | }, | ||
195 | [1] = { | ||
196 | /* place holder for contiguous memory */ | ||
197 | }, | ||
198 | }; | ||
199 | |||
200 | static struct platform_device veu0_device = { | ||
201 | .name = "uio_pdrv_genirq", | ||
202 | .id = 1, | ||
203 | .dev = { | ||
204 | .platform_data = &veu0_platform_data, | ||
205 | }, | ||
206 | .resource = veu0_resources, | ||
207 | .num_resources = ARRAY_SIZE(veu0_resources), | ||
208 | }; | ||
209 | |||
210 | /* VEU1 */ | ||
211 | static struct uio_info veu1_platform_data = { | ||
212 | .name = "VEU3F1", | ||
213 | .version = "0", | ||
214 | .irq = 54, | ||
215 | }; | ||
216 | |||
217 | static struct resource veu1_resources[] = { | ||
218 | [0] = { | ||
219 | .name = "VEU3F1", | ||
220 | .start = 0xfe924000, | ||
221 | .end = 0xfe9240cb - 1, | ||
222 | .flags = IORESOURCE_MEM, | ||
223 | }, | ||
224 | [1] = { | ||
225 | /* place holder for contiguous memory */ | ||
226 | }, | ||
227 | }; | ||
228 | |||
229 | static struct platform_device veu1_device = { | ||
230 | .name = "uio_pdrv_genirq", | ||
231 | .id = 2, | ||
232 | .dev = { | ||
233 | .platform_data = &veu1_platform_data, | ||
234 | }, | ||
235 | .resource = veu1_resources, | ||
236 | .num_resources = ARRAY_SIZE(veu1_resources), | ||
237 | }; | ||
238 | |||
239 | static struct sh_timer_config cmt_platform_data = { | ||
240 | .name = "CMT", | ||
241 | .channel_offset = 0x60, | ||
242 | .timer_bit = 5, | ||
243 | .clk = "cmt0", | ||
244 | .clockevent_rating = 125, | ||
245 | .clocksource_rating = 200, | ||
246 | }; | ||
247 | |||
248 | static struct resource cmt_resources[] = { | ||
249 | [0] = { | ||
250 | .name = "CMT", | ||
251 | .start = 0x044a0060, | ||
252 | .end = 0x044a006b, | ||
253 | .flags = IORESOURCE_MEM, | ||
254 | }, | ||
255 | [1] = { | ||
256 | .start = 104, | ||
257 | .flags = IORESOURCE_IRQ, | ||
258 | }, | ||
259 | }; | ||
260 | |||
261 | static struct platform_device cmt_device = { | ||
262 | .name = "sh_cmt", | ||
263 | .id = 0, | ||
264 | .dev = { | ||
265 | .platform_data = &cmt_platform_data, | ||
266 | }, | ||
267 | .resource = cmt_resources, | ||
268 | .num_resources = ARRAY_SIZE(cmt_resources), | ||
269 | }; | ||
270 | |||
271 | static struct sh_timer_config tmu0_platform_data = { | ||
272 | .name = "TMU0", | ||
273 | .channel_offset = 0x04, | ||
274 | .timer_bit = 0, | ||
275 | .clk = "tmu0", | ||
276 | .clockevent_rating = 200, | ||
277 | }; | ||
278 | |||
279 | static struct resource tmu0_resources[] = { | ||
280 | [0] = { | ||
281 | .name = "TMU0", | ||
282 | .start = 0xffd80008, | ||
283 | .end = 0xffd80013, | ||
284 | .flags = IORESOURCE_MEM, | ||
285 | }, | ||
286 | [1] = { | ||
287 | .start = 16, | ||
288 | .flags = IORESOURCE_IRQ, | ||
289 | }, | ||
290 | }; | ||
291 | |||
292 | static struct platform_device tmu0_device = { | ||
293 | .name = "sh_tmu", | ||
294 | .id = 0, | ||
295 | .dev = { | ||
296 | .platform_data = &tmu0_platform_data, | ||
297 | }, | ||
298 | .resource = tmu0_resources, | ||
299 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
300 | }; | ||
301 | |||
302 | static struct sh_timer_config tmu1_platform_data = { | ||
303 | .name = "TMU1", | ||
304 | .channel_offset = 0x10, | ||
305 | .timer_bit = 1, | ||
306 | .clk = "tmu0", | ||
307 | .clocksource_rating = 200, | ||
308 | }; | ||
309 | |||
310 | static struct resource tmu1_resources[] = { | ||
311 | [0] = { | ||
312 | .name = "TMU1", | ||
313 | .start = 0xffd80014, | ||
314 | .end = 0xffd8001f, | ||
315 | .flags = IORESOURCE_MEM, | ||
316 | }, | ||
317 | [1] = { | ||
318 | .start = 17, | ||
319 | .flags = IORESOURCE_IRQ, | ||
320 | }, | ||
321 | }; | ||
322 | |||
323 | static struct platform_device tmu1_device = { | ||
324 | .name = "sh_tmu", | ||
325 | .id = 1, | ||
326 | .dev = { | ||
327 | .platform_data = &tmu1_platform_data, | ||
328 | }, | ||
329 | .resource = tmu1_resources, | ||
330 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
331 | }; | ||
332 | |||
333 | static struct sh_timer_config tmu2_platform_data = { | ||
334 | .name = "TMU2", | ||
335 | .channel_offset = 0x1c, | ||
336 | .timer_bit = 2, | ||
337 | .clk = "tmu0", | ||
338 | }; | ||
339 | |||
340 | static struct resource tmu2_resources[] = { | ||
341 | [0] = { | ||
342 | .name = "TMU2", | ||
343 | .start = 0xffd80020, | ||
344 | .end = 0xffd8002b, | ||
345 | .flags = IORESOURCE_MEM, | ||
346 | }, | ||
347 | [1] = { | ||
348 | .start = 18, | ||
349 | .flags = IORESOURCE_IRQ, | ||
350 | }, | ||
351 | }; | ||
352 | |||
353 | static struct platform_device tmu2_device = { | ||
354 | .name = "sh_tmu", | ||
355 | .id = 2, | ||
356 | .dev = { | ||
357 | .platform_data = &tmu2_platform_data, | ||
358 | }, | ||
359 | .resource = tmu2_resources, | ||
360 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
361 | }; | ||
362 | |||
363 | |||
364 | static struct sh_timer_config tmu3_platform_data = { | ||
365 | .name = "TMU3", | ||
366 | .channel_offset = 0x04, | ||
367 | .timer_bit = 0, | ||
368 | .clk = "tmu1", | ||
369 | }; | ||
370 | |||
371 | static struct resource tmu3_resources[] = { | ||
372 | [0] = { | ||
373 | .name = "TMU3", | ||
374 | .start = 0xffd90008, | ||
375 | .end = 0xffd90013, | ||
376 | .flags = IORESOURCE_MEM, | ||
377 | }, | ||
378 | [1] = { | ||
379 | .start = 57, | ||
380 | .flags = IORESOURCE_IRQ, | ||
381 | }, | ||
382 | }; | ||
383 | |||
384 | static struct platform_device tmu3_device = { | ||
385 | .name = "sh_tmu", | ||
386 | .id = 3, | ||
387 | .dev = { | ||
388 | .platform_data = &tmu3_platform_data, | ||
389 | }, | ||
390 | .resource = tmu3_resources, | ||
391 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
392 | }; | ||
393 | |||
394 | static struct sh_timer_config tmu4_platform_data = { | ||
395 | .name = "TMU4", | ||
396 | .channel_offset = 0x10, | ||
397 | .timer_bit = 1, | ||
398 | .clk = "tmu1", | ||
399 | }; | ||
400 | |||
401 | static struct resource tmu4_resources[] = { | ||
402 | [0] = { | ||
403 | .name = "TMU4", | ||
404 | .start = 0xffd90014, | ||
405 | .end = 0xffd9001f, | ||
406 | .flags = IORESOURCE_MEM, | ||
407 | }, | ||
408 | [1] = { | ||
409 | .start = 58, | ||
410 | .flags = IORESOURCE_IRQ, | ||
411 | }, | ||
412 | }; | ||
413 | |||
414 | static struct platform_device tmu4_device = { | ||
415 | .name = "sh_tmu", | ||
416 | .id = 4, | ||
417 | .dev = { | ||
418 | .platform_data = &tmu4_platform_data, | ||
419 | }, | ||
420 | .resource = tmu4_resources, | ||
421 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
422 | }; | ||
423 | |||
424 | static struct sh_timer_config tmu5_platform_data = { | ||
425 | .name = "TMU5", | ||
426 | .channel_offset = 0x1c, | ||
427 | .timer_bit = 2, | ||
428 | .clk = "tmu1", | ||
429 | }; | ||
430 | |||
431 | static struct resource tmu5_resources[] = { | ||
432 | [0] = { | ||
433 | .name = "TMU5", | ||
434 | .start = 0xffd90020, | ||
435 | .end = 0xffd9002b, | ||
436 | .flags = IORESOURCE_MEM, | ||
437 | }, | ||
438 | [1] = { | ||
439 | .start = 57, | ||
440 | .flags = IORESOURCE_IRQ, | ||
441 | }, | ||
442 | }; | ||
443 | |||
444 | static struct platform_device tmu5_device = { | ||
445 | .name = "sh_tmu", | ||
446 | .id = 5, | ||
447 | .dev = { | ||
448 | .platform_data = &tmu5_platform_data, | ||
449 | }, | ||
450 | .resource = tmu5_resources, | ||
451 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
452 | }; | ||
453 | |||
454 | static struct platform_device *sh7724_devices[] __initdata = { | ||
455 | &cmt_device, | ||
456 | &tmu0_device, | ||
457 | &tmu1_device, | ||
458 | &tmu2_device, | ||
459 | &tmu3_device, | ||
460 | &tmu4_device, | ||
461 | &tmu5_device, | ||
462 | &sci_device, | ||
463 | &rtc_device, | ||
464 | &iic0_device, | ||
465 | &iic1_device, | ||
466 | &vpu_device, | ||
467 | &veu0_device, | ||
468 | &veu1_device, | ||
469 | }; | ||
470 | |||
471 | static int __init sh7724_devices_setup(void) | ||
472 | { | ||
473 | clk_always_enable("vpu0"); /* VPU */ | ||
474 | clk_always_enable("veu1"); /* VEU3F1 */ | ||
475 | clk_always_enable("veu0"); /* VEU3F0 */ | ||
476 | |||
477 | platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20); | ||
478 | platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20); | ||
479 | platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20); | ||
480 | |||
481 | return platform_add_devices(sh7724_devices, | ||
482 | ARRAY_SIZE(sh7724_devices)); | ||
483 | } | ||
484 | device_initcall(sh7724_devices_setup); | ||
485 | |||
486 | static struct platform_device *sh7724_early_devices[] __initdata = { | ||
487 | &cmt_device, | ||
488 | &tmu0_device, | ||
489 | &tmu1_device, | ||
490 | &tmu2_device, | ||
491 | &tmu3_device, | ||
492 | &tmu4_device, | ||
493 | &tmu5_device, | ||
494 | }; | ||
495 | |||
496 | void __init plat_early_device_setup(void) | ||
497 | { | ||
498 | early_platform_add_devices(sh7724_early_devices, | ||
499 | ARRAY_SIZE(sh7724_early_devices)); | ||
500 | } | ||
501 | |||
502 | enum { | ||
503 | UNUSED = 0, | ||
504 | |||
505 | /* interrupt sources */ | ||
506 | IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7, | ||
507 | HUDI, | ||
508 | DMAC1A_DEI0, DMAC1A_DEI1, DMAC1A_DEI2, DMAC1A_DEI3, | ||
509 | _2DG_TRI, _2DG_INI, _2DG_CEI, _2DG_BRK, | ||
510 | DMAC0A_DEI0, DMAC0A_DEI1, DMAC0A_DEI2, DMAC0A_DEI3, | ||
511 | VIO_CEU20I, VIO_BEU20I, VIO_VEU3F1, VIO_VOUI, | ||
512 | SCIFA_SCIFA0, | ||
513 | VPU_VPUI, | ||
514 | TPU_TPUI, | ||
515 | CEU21I, | ||
516 | BEU21I, | ||
517 | USB_USI0, | ||
518 | ATAPI, | ||
519 | RTC_ATI, RTC_PRI, RTC_CUI, | ||
520 | DMAC1B_DEI4, DMAC1B_DEI5, DMAC1B_DADERR, | ||
521 | DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR, | ||
522 | KEYSC_KEYI, | ||
523 | SCIF_SCIF0, SCIF_SCIF1, SCIF_SCIF2, | ||
524 | VEU3F0I, | ||
525 | MSIOF_MSIOFI0, MSIOF_MSIOFI1, | ||
526 | SPU_SPUI0, SPU_SPUI1, | ||
527 | SCIFA_SCIFA1, | ||
528 | /* ICB_ICBI, */ | ||
529 | ETHI, | ||
530 | I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI, | ||
531 | I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI, | ||
532 | SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2, | ||
533 | CMT_CMTI, | ||
534 | TSIF_TSIFI, | ||
535 | /* ICB_LMBI, */ | ||
536 | FSI_FSI, | ||
537 | SCIFA_SCIFA2, | ||
538 | TMU0_TUNI0, TMU0_TUNI1, TMU0_TUNI2, | ||
539 | IRDA_IRDAI, | ||
540 | SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2, | ||
541 | JPU_JPUI, | ||
542 | MMC_MMCI0, MMC_MMCI1, MMC_MMCI2, | ||
543 | LCDC_LCDCI, | ||
544 | TMU1_TUNI0, TMU1_TUNI1, TMU1_TUNI2, | ||
545 | |||
546 | /* interrupt groups */ | ||
547 | DMAC1A, _2DG, DMAC0A, VIO, RTC, | ||
548 | DMAC1B, DMAC0B, I2C0, I2C1, SDHI0, SDHI1, SPU, MMC, | ||
549 | }; | ||
550 | |||
551 | static struct intc_vect vectors[] __initdata = { | ||
552 | INTC_VECT(IRQ0, 0x600), INTC_VECT(IRQ1, 0x620), | ||
553 | INTC_VECT(IRQ2, 0x640), INTC_VECT(IRQ3, 0x660), | ||
554 | INTC_VECT(IRQ4, 0x680), INTC_VECT(IRQ5, 0x6a0), | ||
555 | INTC_VECT(IRQ6, 0x6c0), INTC_VECT(IRQ7, 0x6e0), | ||
556 | |||
557 | INTC_VECT(DMAC1A_DEI0, 0x700), | ||
558 | INTC_VECT(DMAC1A_DEI1, 0x720), | ||
559 | INTC_VECT(DMAC1A_DEI2, 0x740), | ||
560 | INTC_VECT(DMAC1A_DEI3, 0x760), | ||
561 | |||
562 | INTC_VECT(_2DG_TRI, 0x780), | ||
563 | INTC_VECT(_2DG_INI, 0x7A0), | ||
564 | INTC_VECT(_2DG_CEI, 0x7C0), | ||
565 | INTC_VECT(_2DG_BRK, 0x7E0), | ||
566 | |||
567 | INTC_VECT(DMAC0A_DEI0, 0x800), | ||
568 | INTC_VECT(DMAC0A_DEI1, 0x820), | ||
569 | INTC_VECT(DMAC0A_DEI2, 0x840), | ||
570 | INTC_VECT(DMAC0A_DEI3, 0x860), | ||
571 | |||
572 | INTC_VECT(VIO_CEU20I, 0x880), | ||
573 | INTC_VECT(VIO_BEU20I, 0x8A0), | ||
574 | INTC_VECT(VIO_VEU3F1, 0x8C0), | ||
575 | INTC_VECT(VIO_VOUI, 0x8E0), | ||
576 | |||
577 | INTC_VECT(SCIFA_SCIFA0, 0x900), | ||
578 | INTC_VECT(VPU_VPUI, 0x980), | ||
579 | INTC_VECT(TPU_TPUI, 0x9A0), | ||
580 | INTC_VECT(CEU21I, 0x9E0), | ||
581 | INTC_VECT(BEU21I, 0xA00), | ||
582 | INTC_VECT(USB_USI0, 0xA20), | ||
583 | INTC_VECT(ATAPI, 0xA60), | ||
584 | |||
585 | INTC_VECT(RTC_ATI, 0xA80), | ||
586 | INTC_VECT(RTC_PRI, 0xAA0), | ||
587 | INTC_VECT(RTC_CUI, 0xAC0), | ||
588 | |||
589 | INTC_VECT(DMAC1B_DEI4, 0xB00), | ||
590 | INTC_VECT(DMAC1B_DEI5, 0xB20), | ||
591 | INTC_VECT(DMAC1B_DADERR, 0xB40), | ||
592 | |||
593 | INTC_VECT(DMAC0B_DEI4, 0xB80), | ||
594 | INTC_VECT(DMAC0B_DEI5, 0xBA0), | ||
595 | INTC_VECT(DMAC0B_DADERR, 0xBC0), | ||
596 | |||
597 | INTC_VECT(KEYSC_KEYI, 0xBE0), | ||
598 | INTC_VECT(SCIF_SCIF0, 0xC00), | ||
599 | INTC_VECT(SCIF_SCIF1, 0xC20), | ||
600 | INTC_VECT(SCIF_SCIF2, 0xC40), | ||
601 | INTC_VECT(VEU3F0I, 0xC60), | ||
602 | INTC_VECT(MSIOF_MSIOFI0, 0xC80), | ||
603 | INTC_VECT(MSIOF_MSIOFI1, 0xCA0), | ||
604 | INTC_VECT(SPU_SPUI0, 0xCC0), | ||
605 | INTC_VECT(SPU_SPUI1, 0xCE0), | ||
606 | INTC_VECT(SCIFA_SCIFA1, 0xD00), | ||
607 | |||
608 | /* INTC_VECT(ICB_ICBI, 0xD20), */ | ||
609 | INTC_VECT(ETHI, 0xD60), | ||
610 | |||
611 | INTC_VECT(I2C1_ALI, 0xD80), | ||
612 | INTC_VECT(I2C1_TACKI, 0xDA0), | ||
613 | INTC_VECT(I2C1_WAITI, 0xDC0), | ||
614 | INTC_VECT(I2C1_DTEI, 0xDE0), | ||
615 | |||
616 | INTC_VECT(I2C0_ALI, 0xE00), | ||
617 | INTC_VECT(I2C0_TACKI, 0xE20), | ||
618 | INTC_VECT(I2C0_WAITI, 0xE40), | ||
619 | INTC_VECT(I2C0_DTEI, 0xE60), | ||
620 | |||
621 | INTC_VECT(SDHI0_SDHII0, 0xE80), | ||
622 | INTC_VECT(SDHI0_SDHII1, 0xEA0), | ||
623 | INTC_VECT(SDHI0_SDHII2, 0xEC0), | ||
624 | |||
625 | INTC_VECT(CMT_CMTI, 0xF00), | ||
626 | INTC_VECT(TSIF_TSIFI, 0xF20), | ||
627 | /* INTC_VECT(ICB_LMBI, 0xF60), */ | ||
628 | INTC_VECT(FSI_FSI, 0xF80), | ||
629 | INTC_VECT(SCIFA_SCIFA2, 0xFA0), | ||
630 | |||
631 | INTC_VECT(TMU0_TUNI0, 0x400), | ||
632 | INTC_VECT(TMU0_TUNI1, 0x420), | ||
633 | INTC_VECT(TMU0_TUNI2, 0x440), | ||
634 | |||
635 | INTC_VECT(IRDA_IRDAI, 0x480), | ||
636 | |||
637 | INTC_VECT(SDHI1_SDHII0, 0x4E0), | ||
638 | INTC_VECT(SDHI1_SDHII1, 0x500), | ||
639 | INTC_VECT(SDHI1_SDHII2, 0x520), | ||
640 | |||
641 | INTC_VECT(JPU_JPUI, 0x560), | ||
642 | |||
643 | INTC_VECT(MMC_MMCI0, 0x580), | ||
644 | INTC_VECT(MMC_MMCI1, 0x5A0), | ||
645 | INTC_VECT(MMC_MMCI2, 0x5C0), | ||
646 | |||
647 | INTC_VECT(LCDC_LCDCI, 0xF40), | ||
648 | |||
649 | INTC_VECT(TMU1_TUNI0, 0x920), | ||
650 | INTC_VECT(TMU1_TUNI1, 0x940), | ||
651 | INTC_VECT(TMU1_TUNI2, 0x960), | ||
652 | }; | ||
653 | |||
654 | static struct intc_group groups[] __initdata = { | ||
655 | INTC_GROUP(DMAC1A, DMAC1A_DEI0, DMAC1A_DEI1, DMAC1A_DEI2, DMAC1A_DEI3), | ||
656 | INTC_GROUP(_2DG, _2DG_TRI, _2DG_INI, _2DG_CEI, _2DG_BRK), | ||
657 | INTC_GROUP(DMAC0A, DMAC0A_DEI0, DMAC0A_DEI1, DMAC0A_DEI2, DMAC0A_DEI3), | ||
658 | INTC_GROUP(VIO, VIO_CEU20I, VIO_BEU20I, VIO_VEU3F1, VIO_VOUI), | ||
659 | INTC_GROUP(RTC, RTC_ATI, RTC_PRI, RTC_CUI), | ||
660 | INTC_GROUP(DMAC1B, DMAC1B_DEI4, DMAC1B_DEI5, DMAC1B_DADERR), | ||
661 | INTC_GROUP(DMAC0B, DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR), | ||
662 | INTC_GROUP(I2C0, I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI), | ||
663 | INTC_GROUP(I2C1, I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI), | ||
664 | INTC_GROUP(SDHI0, SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2), | ||
665 | INTC_GROUP(SDHI1, SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2), | ||
666 | INTC_GROUP(SPU, SPU_SPUI0, SPU_SPUI1), | ||
667 | INTC_GROUP(MMC, MMC_MMCI0, MMC_MMCI1, MMC_MMCI2), | ||
668 | }; | ||
669 | |||
670 | /* FIXMEEEEEEEEEEEEEEEEEEE !!!!! */ | ||
671 | /* very bad manual !! */ | ||
672 | static struct intc_mask_reg mask_registers[] __initdata = { | ||
673 | { 0xa4080080, 0xa40800c0, 8, /* IMR0 / IMCR0 */ | ||
674 | { 0, TMU1_TUNI2, TMU1_TUNI1, TMU1_TUNI0, | ||
675 | /*SDHII3?*/0, SDHI1_SDHII2, SDHI1_SDHII1, SDHI1_SDHII0 } }, | ||
676 | { 0xa4080084, 0xa40800c4, 8, /* IMR1 / IMCR1 */ | ||
677 | { VIO_VOUI, VIO_VEU3F1, VIO_BEU20I, VIO_CEU20I, | ||
678 | DMAC0A_DEI3, DMAC0A_DEI2, DMAC0A_DEI1, DMAC0A_DEI0 } }, | ||
679 | { 0xa4080088, 0xa40800c8, 8, /* IMR2 / IMCR2 */ | ||
680 | { 0, 0, 0, VPU_VPUI, ATAPI, ETHI, 0, /*SCIFA3*/SCIFA_SCIFA0 } }, | ||
681 | { 0xa408008c, 0xa40800cc, 8, /* IMR3 / IMCR3 */ | ||
682 | { DMAC1A_DEI3, DMAC1A_DEI2, DMAC1A_DEI1, DMAC1A_DEI0, | ||
683 | SPU_SPUI1, SPU_SPUI0, BEU21I, IRDA_IRDAI } }, | ||
684 | { 0xa4080090, 0xa40800d0, 8, /* IMR4 / IMCR4 */ | ||
685 | { 0, TMU0_TUNI2, TMU0_TUNI1, TMU0_TUNI0, | ||
686 | JPU_JPUI, 0, 0, LCDC_LCDCI } }, | ||
687 | { 0xa4080094, 0xa40800d4, 8, /* IMR5 / IMCR5 */ | ||
688 | { KEYSC_KEYI, DMAC0B_DADERR, DMAC0B_DEI5, DMAC0B_DEI4, | ||
689 | VEU3F0I, SCIF_SCIF2, SCIF_SCIF1, SCIF_SCIF0 } }, | ||
690 | { 0xa4080098, 0xa40800d8, 8, /* IMR6 / IMCR6 */ | ||
691 | { 0, 0, /*ICB_ICBI*/0, /*SCIFA4*/SCIFA_SCIFA1, | ||
692 | CEU21I, 0, MSIOF_MSIOFI1, MSIOF_MSIOFI0 } }, | ||
693 | { 0xa408009c, 0xa40800dc, 8, /* IMR7 / IMCR7 */ | ||
694 | { I2C0_DTEI, I2C0_WAITI, I2C0_TACKI, I2C0_ALI, | ||
695 | I2C1_DTEI, I2C1_WAITI, I2C1_TACKI, I2C1_ALI } }, | ||
696 | { 0xa40800a0, 0xa40800e0, 8, /* IMR8 / IMCR8 */ | ||
697 | { /*SDHII3*/0, SDHI0_SDHII2, SDHI0_SDHII1, SDHI0_SDHII0, | ||
698 | 0, 0, /*SCIFA5*/SCIFA_SCIFA2, FSI_FSI } }, | ||
699 | { 0xa40800a4, 0xa40800e4, 8, /* IMR9 / IMCR9 */ | ||
700 | { 0, 0, 0, CMT_CMTI, 0, /*USB1*/0, USB_USI0, 0 } }, | ||
701 | { 0xa40800a8, 0xa40800e8, 8, /* IMR10 / IMCR10 */ | ||
702 | { 0, DMAC1B_DADERR, DMAC1B_DEI5, DMAC1B_DEI4, | ||
703 | 0, RTC_ATI, RTC_PRI, RTC_CUI } }, | ||
704 | { 0xa40800ac, 0xa40800ec, 8, /* IMR11 / IMCR11 */ | ||
705 | { _2DG_BRK, _2DG_CEI, _2DG_INI, _2DG_TRI, | ||
706 | 0, TPU_TPUI, /*ICB_LMBI*/0, TSIF_TSIFI } }, | ||
707 | { 0xa40800b0, 0xa40800f0, 8, /* IMR12 / IMCR12 */ | ||
708 | { 0, 0, 0, 0, 0, 0, 0, 0/*2DDMAC*/ } }, | ||
709 | { 0xa4140044, 0xa4140064, 8, /* INTMSK00 / INTMSKCLR00 */ | ||
710 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
711 | }; | ||
712 | |||
713 | static struct intc_prio_reg prio_registers[] __initdata = { | ||
714 | { 0xa4080000, 0, 16, 4, /* IPRA */ { TMU0_TUNI0, TMU0_TUNI1, | ||
715 | TMU0_TUNI2, IRDA_IRDAI } }, | ||
716 | { 0xa4080004, 0, 16, 4, /* IPRB */ { JPU_JPUI, LCDC_LCDCI, | ||
717 | DMAC1A, BEU21I } }, | ||
718 | { 0xa4080008, 0, 16, 4, /* IPRC */ { TMU1_TUNI0, TMU1_TUNI1, | ||
719 | TMU1_TUNI2, SPU } }, | ||
720 | { 0xa408000c, 0, 16, 4, /* IPRD */ { 0, MMC, 0, ATAPI } }, | ||
721 | { 0xa4080010, 0, 16, 4, /* IPRE */ | ||
722 | { DMAC0A, /*BEU?VEU?*/VIO, /*SCIFA3*/SCIFA_SCIFA0, /*VPU5F*/ | ||
723 | VPU_VPUI } }, | ||
724 | { 0xa4080014, 0, 16, 4, /* IPRF */ { KEYSC_KEYI, DMAC0B, | ||
725 | USB_USI0, CMT_CMTI } }, | ||
726 | { 0xa4080018, 0, 16, 4, /* IPRG */ { SCIF_SCIF0, SCIF_SCIF1, | ||
727 | SCIF_SCIF2, VEU3F0I } }, | ||
728 | { 0xa408001c, 0, 16, 4, /* IPRH */ { MSIOF_MSIOFI0, MSIOF_MSIOFI1, | ||
729 | I2C1, I2C0 } }, | ||
730 | { 0xa4080020, 0, 16, 4, /* IPRI */ { /*SCIFA4*/SCIFA_SCIFA1, /*ICB*/0, | ||
731 | TSIF_TSIFI, _2DG/*ICB?*/ } }, | ||
732 | { 0xa4080024, 0, 16, 4, /* IPRJ */ { CEU21I, ETHI, FSI_FSI, SDHI1 } }, | ||
733 | { 0xa4080028, 0, 16, 4, /* IPRK */ { RTC, DMAC1B, /*ICB?*/0, SDHI0 } }, | ||
734 | { 0xa408002c, 0, 16, 4, /* IPRL */ { /*SCIFA5*/SCIFA_SCIFA2, 0, | ||
735 | TPU_TPUI, /*2DDMAC*/0 } }, | ||
736 | { 0xa4140010, 0, 32, 4, /* INTPRI00 */ | ||
737 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
738 | }; | ||
739 | |||
740 | static struct intc_sense_reg sense_registers[] __initdata = { | ||
741 | { 0xa414001c, 16, 2, /* ICR1 */ | ||
742 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
743 | }; | ||
744 | |||
745 | static struct intc_mask_reg ack_registers[] __initdata = { | ||
746 | { 0xa4140024, 0, 8, /* INTREQ00 */ | ||
747 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | ||
748 | }; | ||
749 | |||
750 | static DECLARE_INTC_DESC_ACK(intc_desc, "sh7724", vectors, groups, | ||
751 | mask_registers, prio_registers, sense_registers, | ||
752 | ack_registers); | ||
753 | |||
754 | void __init plat_irq_setup(void) | ||
755 | { | ||
756 | register_intc_controller(&intc_desc); | ||
757 | } | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c index bdf0f61ae1ed..c91f34c9aa83 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/sh_timer.h> | ||
15 | #include <linux/io.h> | 16 | #include <linux/io.h> |
16 | #include <linux/serial_sci.h> | 17 | #include <linux/serial_sci.h> |
17 | 18 | ||
@@ -113,7 +114,195 @@ static struct platform_device usbf_device = { | |||
113 | .resource = usbf_resources, | 114 | .resource = usbf_resources, |
114 | }; | 115 | }; |
115 | 116 | ||
117 | static struct sh_timer_config tmu0_platform_data = { | ||
118 | .name = "TMU0", | ||
119 | .channel_offset = 0x04, | ||
120 | .timer_bit = 0, | ||
121 | .clk = "module_clk", | ||
122 | .clockevent_rating = 200, | ||
123 | }; | ||
124 | |||
125 | static struct resource tmu0_resources[] = { | ||
126 | [0] = { | ||
127 | .name = "TMU0", | ||
128 | .start = 0xffd80008, | ||
129 | .end = 0xffd80013, | ||
130 | .flags = IORESOURCE_MEM, | ||
131 | }, | ||
132 | [1] = { | ||
133 | .start = 28, | ||
134 | .flags = IORESOURCE_IRQ, | ||
135 | }, | ||
136 | }; | ||
137 | |||
138 | static struct platform_device tmu0_device = { | ||
139 | .name = "sh_tmu", | ||
140 | .id = 0, | ||
141 | .dev = { | ||
142 | .platform_data = &tmu0_platform_data, | ||
143 | }, | ||
144 | .resource = tmu0_resources, | ||
145 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
146 | }; | ||
147 | |||
148 | static struct sh_timer_config tmu1_platform_data = { | ||
149 | .name = "TMU1", | ||
150 | .channel_offset = 0x10, | ||
151 | .timer_bit = 1, | ||
152 | .clk = "module_clk", | ||
153 | .clocksource_rating = 200, | ||
154 | }; | ||
155 | |||
156 | static struct resource tmu1_resources[] = { | ||
157 | [0] = { | ||
158 | .name = "TMU1", | ||
159 | .start = 0xffd80014, | ||
160 | .end = 0xffd8001f, | ||
161 | .flags = IORESOURCE_MEM, | ||
162 | }, | ||
163 | [1] = { | ||
164 | .start = 29, | ||
165 | .flags = IORESOURCE_IRQ, | ||
166 | }, | ||
167 | }; | ||
168 | |||
169 | static struct platform_device tmu1_device = { | ||
170 | .name = "sh_tmu", | ||
171 | .id = 1, | ||
172 | .dev = { | ||
173 | .platform_data = &tmu1_platform_data, | ||
174 | }, | ||
175 | .resource = tmu1_resources, | ||
176 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
177 | }; | ||
178 | |||
179 | static struct sh_timer_config tmu2_platform_data = { | ||
180 | .name = "TMU2", | ||
181 | .channel_offset = 0x1c, | ||
182 | .timer_bit = 2, | ||
183 | .clk = "module_clk", | ||
184 | }; | ||
185 | |||
186 | static struct resource tmu2_resources[] = { | ||
187 | [0] = { | ||
188 | .name = "TMU2", | ||
189 | .start = 0xffd80020, | ||
190 | .end = 0xffd8002f, | ||
191 | .flags = IORESOURCE_MEM, | ||
192 | }, | ||
193 | [1] = { | ||
194 | .start = 30, | ||
195 | .flags = IORESOURCE_IRQ, | ||
196 | }, | ||
197 | }; | ||
198 | |||
199 | static struct platform_device tmu2_device = { | ||
200 | .name = "sh_tmu", | ||
201 | .id = 2, | ||
202 | .dev = { | ||
203 | .platform_data = &tmu2_platform_data, | ||
204 | }, | ||
205 | .resource = tmu2_resources, | ||
206 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
207 | }; | ||
208 | |||
209 | static struct sh_timer_config tmu3_platform_data = { | ||
210 | .name = "TMU3", | ||
211 | .channel_offset = 0x04, | ||
212 | .timer_bit = 0, | ||
213 | .clk = "module_clk", | ||
214 | }; | ||
215 | |||
216 | static struct resource tmu3_resources[] = { | ||
217 | [0] = { | ||
218 | .name = "TMU3", | ||
219 | .start = 0xffd88008, | ||
220 | .end = 0xffd88013, | ||
221 | .flags = IORESOURCE_MEM, | ||
222 | }, | ||
223 | [1] = { | ||
224 | .start = 96, | ||
225 | .flags = IORESOURCE_IRQ, | ||
226 | }, | ||
227 | }; | ||
228 | |||
229 | static struct platform_device tmu3_device = { | ||
230 | .name = "sh_tmu", | ||
231 | .id = 3, | ||
232 | .dev = { | ||
233 | .platform_data = &tmu3_platform_data, | ||
234 | }, | ||
235 | .resource = tmu3_resources, | ||
236 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
237 | }; | ||
238 | |||
239 | static struct sh_timer_config tmu4_platform_data = { | ||
240 | .name = "TMU4", | ||
241 | .channel_offset = 0x10, | ||
242 | .timer_bit = 1, | ||
243 | .clk = "module_clk", | ||
244 | }; | ||
245 | |||
246 | static struct resource tmu4_resources[] = { | ||
247 | [0] = { | ||
248 | .name = "TMU4", | ||
249 | .start = 0xffd88014, | ||
250 | .end = 0xffd8801f, | ||
251 | .flags = IORESOURCE_MEM, | ||
252 | }, | ||
253 | [1] = { | ||
254 | .start = 97, | ||
255 | .flags = IORESOURCE_IRQ, | ||
256 | }, | ||
257 | }; | ||
258 | |||
259 | static struct platform_device tmu4_device = { | ||
260 | .name = "sh_tmu", | ||
261 | .id = 4, | ||
262 | .dev = { | ||
263 | .platform_data = &tmu4_platform_data, | ||
264 | }, | ||
265 | .resource = tmu4_resources, | ||
266 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
267 | }; | ||
268 | |||
269 | static struct sh_timer_config tmu5_platform_data = { | ||
270 | .name = "TMU5", | ||
271 | .channel_offset = 0x1c, | ||
272 | .timer_bit = 2, | ||
273 | .clk = "module_clk", | ||
274 | }; | ||
275 | |||
276 | static struct resource tmu5_resources[] = { | ||
277 | [0] = { | ||
278 | .name = "TMU5", | ||
279 | .start = 0xffd88020, | ||
280 | .end = 0xffd8802b, | ||
281 | .flags = IORESOURCE_MEM, | ||
282 | }, | ||
283 | [1] = { | ||
284 | .start = 98, | ||
285 | .flags = IORESOURCE_IRQ, | ||
286 | }, | ||
287 | }; | ||
288 | |||
289 | static struct platform_device tmu5_device = { | ||
290 | .name = "sh_tmu", | ||
291 | .id = 5, | ||
292 | .dev = { | ||
293 | .platform_data = &tmu5_platform_data, | ||
294 | }, | ||
295 | .resource = tmu5_resources, | ||
296 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
297 | }; | ||
298 | |||
116 | static struct platform_device *sh7763_devices[] __initdata = { | 299 | static struct platform_device *sh7763_devices[] __initdata = { |
300 | &tmu0_device, | ||
301 | &tmu1_device, | ||
302 | &tmu2_device, | ||
303 | &tmu3_device, | ||
304 | &tmu4_device, | ||
305 | &tmu5_device, | ||
117 | &rtc_device, | 306 | &rtc_device, |
118 | &sci_device, | 307 | &sci_device, |
119 | &usb_ohci_device, | 308 | &usb_ohci_device, |
@@ -127,6 +316,21 @@ static int __init sh7763_devices_setup(void) | |||
127 | } | 316 | } |
128 | __initcall(sh7763_devices_setup); | 317 | __initcall(sh7763_devices_setup); |
129 | 318 | ||
319 | static struct platform_device *sh7763_early_devices[] __initdata = { | ||
320 | &tmu0_device, | ||
321 | &tmu1_device, | ||
322 | &tmu2_device, | ||
323 | &tmu3_device, | ||
324 | &tmu4_device, | ||
325 | &tmu5_device, | ||
326 | }; | ||
327 | |||
328 | void __init plat_early_device_setup(void) | ||
329 | { | ||
330 | early_platform_add_devices(sh7763_early_devices, | ||
331 | ARRAY_SIZE(sh7763_early_devices)); | ||
332 | } | ||
333 | |||
130 | enum { | 334 | enum { |
131 | UNUSED = 0, | 335 | UNUSED = 0, |
132 | 336 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7770.c b/arch/sh/kernel/cpu/sh4a/setup-sh7770.c index b73578ee295d..0feba41d218d 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7770.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7770.c | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/sh_timer.h> | ||
15 | #include <linux/io.h> | ||
14 | 16 | ||
15 | static struct plat_sci_port sci_platform_data[] = { | 17 | static struct plat_sci_port sci_platform_data[] = { |
16 | { | 18 | { |
@@ -76,7 +78,288 @@ static struct platform_device sci_device = { | |||
76 | }, | 78 | }, |
77 | }; | 79 | }; |
78 | 80 | ||
81 | static struct sh_timer_config tmu0_platform_data = { | ||
82 | .name = "TMU0", | ||
83 | .channel_offset = 0x04, | ||
84 | .timer_bit = 0, | ||
85 | .clk = "module_clk", | ||
86 | .clockevent_rating = 200, | ||
87 | }; | ||
88 | |||
89 | static struct resource tmu0_resources[] = { | ||
90 | [0] = { | ||
91 | .name = "TMU0", | ||
92 | .start = 0xffd80008, | ||
93 | .end = 0xffd80013, | ||
94 | .flags = IORESOURCE_MEM, | ||
95 | }, | ||
96 | [1] = { | ||
97 | .start = 16, | ||
98 | .flags = IORESOURCE_IRQ, | ||
99 | }, | ||
100 | }; | ||
101 | |||
102 | static struct platform_device tmu0_device = { | ||
103 | .name = "sh_tmu", | ||
104 | .id = 0, | ||
105 | .dev = { | ||
106 | .platform_data = &tmu0_platform_data, | ||
107 | }, | ||
108 | .resource = tmu0_resources, | ||
109 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
110 | }; | ||
111 | |||
112 | static struct sh_timer_config tmu1_platform_data = { | ||
113 | .name = "TMU1", | ||
114 | .channel_offset = 0x10, | ||
115 | .timer_bit = 1, | ||
116 | .clk = "module_clk", | ||
117 | .clocksource_rating = 200, | ||
118 | }; | ||
119 | |||
120 | static struct resource tmu1_resources[] = { | ||
121 | [0] = { | ||
122 | .name = "TMU1", | ||
123 | .start = 0xffd80014, | ||
124 | .end = 0xffd8001f, | ||
125 | .flags = IORESOURCE_MEM, | ||
126 | }, | ||
127 | [1] = { | ||
128 | .start = 17, | ||
129 | .flags = IORESOURCE_IRQ, | ||
130 | }, | ||
131 | }; | ||
132 | |||
133 | static struct platform_device tmu1_device = { | ||
134 | .name = "sh_tmu", | ||
135 | .id = 1, | ||
136 | .dev = { | ||
137 | .platform_data = &tmu1_platform_data, | ||
138 | }, | ||
139 | .resource = tmu1_resources, | ||
140 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
141 | }; | ||
142 | |||
143 | static struct sh_timer_config tmu2_platform_data = { | ||
144 | .name = "TMU2", | ||
145 | .channel_offset = 0x1c, | ||
146 | .timer_bit = 2, | ||
147 | .clk = "module_clk", | ||
148 | }; | ||
149 | |||
150 | static struct resource tmu2_resources[] = { | ||
151 | [0] = { | ||
152 | .name = "TMU2", | ||
153 | .start = 0xffd80020, | ||
154 | .end = 0xffd8002f, | ||
155 | .flags = IORESOURCE_MEM, | ||
156 | }, | ||
157 | [1] = { | ||
158 | .start = 18, | ||
159 | .flags = IORESOURCE_IRQ, | ||
160 | }, | ||
161 | }; | ||
162 | |||
163 | static struct platform_device tmu2_device = { | ||
164 | .name = "sh_tmu", | ||
165 | .id = 2, | ||
166 | .dev = { | ||
167 | .platform_data = &tmu2_platform_data, | ||
168 | }, | ||
169 | .resource = tmu2_resources, | ||
170 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
171 | }; | ||
172 | |||
173 | static struct sh_timer_config tmu3_platform_data = { | ||
174 | .name = "TMU3", | ||
175 | .channel_offset = 0x04, | ||
176 | .timer_bit = 0, | ||
177 | .clk = "module_clk", | ||
178 | }; | ||
179 | |||
180 | static struct resource tmu3_resources[] = { | ||
181 | [0] = { | ||
182 | .name = "TMU3", | ||
183 | .start = 0xffd81008, | ||
184 | .end = 0xffd81013, | ||
185 | .flags = IORESOURCE_MEM, | ||
186 | }, | ||
187 | [1] = { | ||
188 | .start = 19, | ||
189 | .flags = IORESOURCE_IRQ, | ||
190 | }, | ||
191 | }; | ||
192 | |||
193 | static struct platform_device tmu3_device = { | ||
194 | .name = "sh_tmu", | ||
195 | .id = 3, | ||
196 | .dev = { | ||
197 | .platform_data = &tmu3_platform_data, | ||
198 | }, | ||
199 | .resource = tmu3_resources, | ||
200 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
201 | }; | ||
202 | |||
203 | static struct sh_timer_config tmu4_platform_data = { | ||
204 | .name = "TMU4", | ||
205 | .channel_offset = 0x10, | ||
206 | .timer_bit = 1, | ||
207 | .clk = "module_clk", | ||
208 | }; | ||
209 | |||
210 | static struct resource tmu4_resources[] = { | ||
211 | [0] = { | ||
212 | .name = "TMU4", | ||
213 | .start = 0xffd81014, | ||
214 | .end = 0xffd8101f, | ||
215 | .flags = IORESOURCE_MEM, | ||
216 | }, | ||
217 | [1] = { | ||
218 | .start = 20, | ||
219 | .flags = IORESOURCE_IRQ, | ||
220 | }, | ||
221 | }; | ||
222 | |||
223 | static struct platform_device tmu4_device = { | ||
224 | .name = "sh_tmu", | ||
225 | .id = 4, | ||
226 | .dev = { | ||
227 | .platform_data = &tmu4_platform_data, | ||
228 | }, | ||
229 | .resource = tmu4_resources, | ||
230 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
231 | }; | ||
232 | |||
233 | static struct sh_timer_config tmu5_platform_data = { | ||
234 | .name = "TMU5", | ||
235 | .channel_offset = 0x1c, | ||
236 | .timer_bit = 2, | ||
237 | .clk = "module_clk", | ||
238 | }; | ||
239 | |||
240 | static struct resource tmu5_resources[] = { | ||
241 | [0] = { | ||
242 | .name = "TMU5", | ||
243 | .start = 0xffd81020, | ||
244 | .end = 0xffd8102f, | ||
245 | .flags = IORESOURCE_MEM, | ||
246 | }, | ||
247 | [1] = { | ||
248 | .start = 21, | ||
249 | .flags = IORESOURCE_IRQ, | ||
250 | }, | ||
251 | }; | ||
252 | |||
253 | static struct platform_device tmu5_device = { | ||
254 | .name = "sh_tmu", | ||
255 | .id = 5, | ||
256 | .dev = { | ||
257 | .platform_data = &tmu5_platform_data, | ||
258 | }, | ||
259 | .resource = tmu5_resources, | ||
260 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
261 | }; | ||
262 | |||
263 | static struct sh_timer_config tmu6_platform_data = { | ||
264 | .name = "TMU6", | ||
265 | .channel_offset = 0x04, | ||
266 | .timer_bit = 0, | ||
267 | .clk = "module_clk", | ||
268 | }; | ||
269 | |||
270 | static struct resource tmu6_resources[] = { | ||
271 | [0] = { | ||
272 | .name = "TMU6", | ||
273 | .start = 0xffd82008, | ||
274 | .end = 0xffd82013, | ||
275 | .flags = IORESOURCE_MEM, | ||
276 | }, | ||
277 | [1] = { | ||
278 | .start = 22, | ||
279 | .flags = IORESOURCE_IRQ, | ||
280 | }, | ||
281 | }; | ||
282 | |||
283 | static struct platform_device tmu6_device = { | ||
284 | .name = "sh_tmu", | ||
285 | .id = 6, | ||
286 | .dev = { | ||
287 | .platform_data = &tmu6_platform_data, | ||
288 | }, | ||
289 | .resource = tmu6_resources, | ||
290 | .num_resources = ARRAY_SIZE(tmu6_resources), | ||
291 | }; | ||
292 | |||
293 | static struct sh_timer_config tmu7_platform_data = { | ||
294 | .name = "TMU7", | ||
295 | .channel_offset = 0x10, | ||
296 | .timer_bit = 1, | ||
297 | .clk = "module_clk", | ||
298 | }; | ||
299 | |||
300 | static struct resource tmu7_resources[] = { | ||
301 | [0] = { | ||
302 | .name = "TMU7", | ||
303 | .start = 0xffd82014, | ||
304 | .end = 0xffd8201f, | ||
305 | .flags = IORESOURCE_MEM, | ||
306 | }, | ||
307 | [1] = { | ||
308 | .start = 23, | ||
309 | .flags = IORESOURCE_IRQ, | ||
310 | }, | ||
311 | }; | ||
312 | |||
313 | static struct platform_device tmu7_device = { | ||
314 | .name = "sh_tmu", | ||
315 | .id = 7, | ||
316 | .dev = { | ||
317 | .platform_data = &tmu7_platform_data, | ||
318 | }, | ||
319 | .resource = tmu7_resources, | ||
320 | .num_resources = ARRAY_SIZE(tmu7_resources), | ||
321 | }; | ||
322 | |||
323 | static struct sh_timer_config tmu8_platform_data = { | ||
324 | .name = "TMU8", | ||
325 | .channel_offset = 0x1c, | ||
326 | .timer_bit = 2, | ||
327 | .clk = "module_clk", | ||
328 | }; | ||
329 | |||
330 | static struct resource tmu8_resources[] = { | ||
331 | [0] = { | ||
332 | .name = "TMU8", | ||
333 | .start = 0xffd82020, | ||
334 | .end = 0xffd8202b, | ||
335 | .flags = IORESOURCE_MEM, | ||
336 | }, | ||
337 | [1] = { | ||
338 | .start = 24, | ||
339 | .flags = IORESOURCE_IRQ, | ||
340 | }, | ||
341 | }; | ||
342 | |||
343 | static struct platform_device tmu8_device = { | ||
344 | .name = "sh_tmu", | ||
345 | .id = 8, | ||
346 | .dev = { | ||
347 | .platform_data = &tmu8_platform_data, | ||
348 | }, | ||
349 | .resource = tmu8_resources, | ||
350 | .num_resources = ARRAY_SIZE(tmu8_resources), | ||
351 | }; | ||
352 | |||
79 | static struct platform_device *sh7770_devices[] __initdata = { | 353 | static struct platform_device *sh7770_devices[] __initdata = { |
354 | &tmu0_device, | ||
355 | &tmu1_device, | ||
356 | &tmu2_device, | ||
357 | &tmu3_device, | ||
358 | &tmu4_device, | ||
359 | &tmu5_device, | ||
360 | &tmu6_device, | ||
361 | &tmu7_device, | ||
362 | &tmu8_device, | ||
80 | &sci_device, | 363 | &sci_device, |
81 | }; | 364 | }; |
82 | 365 | ||
@@ -87,6 +370,269 @@ static int __init sh7770_devices_setup(void) | |||
87 | } | 370 | } |
88 | __initcall(sh7770_devices_setup); | 371 | __initcall(sh7770_devices_setup); |
89 | 372 | ||
373 | static struct platform_device *sh7770_early_devices[] __initdata = { | ||
374 | &tmu0_device, | ||
375 | &tmu1_device, | ||
376 | &tmu2_device, | ||
377 | &tmu3_device, | ||
378 | &tmu4_device, | ||
379 | &tmu5_device, | ||
380 | &tmu6_device, | ||
381 | &tmu7_device, | ||
382 | &tmu8_device, | ||
383 | }; | ||
384 | |||
385 | void __init plat_early_device_setup(void) | ||
386 | { | ||
387 | early_platform_add_devices(sh7770_early_devices, | ||
388 | ARRAY_SIZE(sh7770_early_devices)); | ||
389 | } | ||
390 | |||
391 | enum { | ||
392 | UNUSED = 0, | ||
393 | |||
394 | /* interrupt sources */ | ||
395 | IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH, | ||
396 | IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH, | ||
397 | IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH, | ||
398 | IRL_HHLL, IRL_HHLH, IRL_HHHL, | ||
399 | |||
400 | IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, | ||
401 | |||
402 | GPIO, | ||
403 | TMU0, TMU1, TMU2, TMU2_TICPI, | ||
404 | TMU3, TMU4, TMU5, TMU5_TICPI, | ||
405 | TMU6, TMU7, TMU8, | ||
406 | HAC, IPI, SPDIF, HUDI, I2C, | ||
407 | DMAC0_DMINT0, DMAC0_DMINT1, DMAC0_DMINT2, | ||
408 | I2S0, I2S1, I2S2, I2S3, | ||
409 | SRC_RX, SRC_TX, SRC_SPDIF, | ||
410 | DU, VIDEO_IN, REMOTE, YUV, USB, ATAPI, CAN, GPS, GFX2D, | ||
411 | GFX3D_MBX, GFX3D_DMAC, | ||
412 | EXBUS_ATA, | ||
413 | SPI0, SPI1, | ||
414 | SCIF089, SCIF1234, SCIF567, | ||
415 | ADC, | ||
416 | BBDMAC_0_3, BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14, | ||
417 | BBDMAC_15_18, BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27, | ||
418 | BBDMAC_28, BBDMAC_29, BBDMAC_30, BBDMAC_31, | ||
419 | |||
420 | /* interrupt groups */ | ||
421 | TMU, DMAC, I2S, SRC, GFX3D, SPI, SCIF, BBDMAC, | ||
422 | }; | ||
423 | |||
424 | static struct intc_vect vectors[] __initdata = { | ||
425 | INTC_VECT(GPIO, 0x3e0), | ||
426 | INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420), | ||
427 | INTC_VECT(TMU2, 0x440), INTC_VECT(TMU2_TICPI, 0x460), | ||
428 | INTC_VECT(TMU3, 0x480), INTC_VECT(TMU4, 0x4a0), | ||
429 | INTC_VECT(TMU5, 0x4c0), INTC_VECT(TMU5_TICPI, 0x4e0), | ||
430 | INTC_VECT(TMU6, 0x500), INTC_VECT(TMU7, 0x520), | ||
431 | INTC_VECT(TMU8, 0x540), | ||
432 | INTC_VECT(HAC, 0x580), INTC_VECT(IPI, 0x5c0), | ||
433 | INTC_VECT(SPDIF, 0x5e0), | ||
434 | INTC_VECT(HUDI, 0x600), INTC_VECT(I2C, 0x620), | ||
435 | INTC_VECT(DMAC0_DMINT0, 0x640), INTC_VECT(DMAC0_DMINT1, 0x660), | ||
436 | INTC_VECT(DMAC0_DMINT2, 0x680), | ||
437 | INTC_VECT(I2S0, 0x6a0), INTC_VECT(I2S1, 0x6c0), | ||
438 | INTC_VECT(I2S2, 0x6e0), INTC_VECT(I2S3, 0x700), | ||
439 | INTC_VECT(SRC_RX, 0x720), INTC_VECT(SRC_TX, 0x740), | ||
440 | INTC_VECT(SRC_SPDIF, 0x760), | ||
441 | INTC_VECT(DU, 0x780), INTC_VECT(VIDEO_IN, 0x7a0), | ||
442 | INTC_VECT(REMOTE, 0x7c0), INTC_VECT(YUV, 0x7e0), | ||
443 | INTC_VECT(USB, 0x840), INTC_VECT(ATAPI, 0x860), | ||
444 | INTC_VECT(CAN, 0x880), INTC_VECT(GPS, 0x8a0), | ||
445 | INTC_VECT(GFX2D, 0x8c0), | ||
446 | INTC_VECT(GFX3D_MBX, 0x900), INTC_VECT(GFX3D_DMAC, 0x920), | ||
447 | INTC_VECT(EXBUS_ATA, 0x940), | ||
448 | INTC_VECT(SPI0, 0x960), INTC_VECT(SPI1, 0x980), | ||
449 | INTC_VECT(SCIF089, 0x9a0), INTC_VECT(SCIF1234, 0x9c0), | ||
450 | INTC_VECT(SCIF1234, 0x9e0), INTC_VECT(SCIF1234, 0xa00), | ||
451 | INTC_VECT(SCIF1234, 0xa20), INTC_VECT(SCIF567, 0xa40), | ||
452 | INTC_VECT(SCIF567, 0xa60), INTC_VECT(SCIF567, 0xa80), | ||
453 | INTC_VECT(SCIF089, 0xaa0), INTC_VECT(SCIF089, 0xac0), | ||
454 | INTC_VECT(ADC, 0xb20), | ||
455 | INTC_VECT(BBDMAC_0_3, 0xba0), INTC_VECT(BBDMAC_0_3, 0xbc0), | ||
456 | INTC_VECT(BBDMAC_0_3, 0xbe0), INTC_VECT(BBDMAC_0_3, 0xc00), | ||
457 | INTC_VECT(BBDMAC_4_7, 0xc20), INTC_VECT(BBDMAC_4_7, 0xc40), | ||
458 | INTC_VECT(BBDMAC_4_7, 0xc60), INTC_VECT(BBDMAC_4_7, 0xc80), | ||
459 | INTC_VECT(BBDMAC_8_10, 0xca0), INTC_VECT(BBDMAC_8_10, 0xcc0), | ||
460 | INTC_VECT(BBDMAC_8_10, 0xce0), INTC_VECT(BBDMAC_11_14, 0xd00), | ||
461 | INTC_VECT(BBDMAC_11_14, 0xd20), INTC_VECT(BBDMAC_11_14, 0xd40), | ||
462 | INTC_VECT(BBDMAC_11_14, 0xd60), INTC_VECT(BBDMAC_15_18, 0xd80), | ||
463 | INTC_VECT(BBDMAC_15_18, 0xda0), INTC_VECT(BBDMAC_15_18, 0xdc0), | ||
464 | INTC_VECT(BBDMAC_15_18, 0xde0), INTC_VECT(BBDMAC_19_22, 0xe00), | ||
465 | INTC_VECT(BBDMAC_19_22, 0xe20), INTC_VECT(BBDMAC_19_22, 0xe40), | ||
466 | INTC_VECT(BBDMAC_19_22, 0xe60), INTC_VECT(BBDMAC_23_26, 0xe80), | ||
467 | INTC_VECT(BBDMAC_23_26, 0xea0), INTC_VECT(BBDMAC_23_26, 0xec0), | ||
468 | INTC_VECT(BBDMAC_23_26, 0xee0), INTC_VECT(BBDMAC_27, 0xf00), | ||
469 | INTC_VECT(BBDMAC_28, 0xf20), INTC_VECT(BBDMAC_29, 0xf40), | ||
470 | INTC_VECT(BBDMAC_30, 0xf60), INTC_VECT(BBDMAC_31, 0xf80), | ||
471 | }; | ||
472 | |||
473 | static struct intc_group groups[] __initdata = { | ||
474 | INTC_GROUP(TMU, TMU0, TMU1, TMU2, TMU2_TICPI, TMU3, TMU4, TMU5, | ||
475 | TMU5_TICPI, TMU6, TMU7, TMU8), | ||
476 | INTC_GROUP(DMAC, DMAC0_DMINT0, DMAC0_DMINT1, DMAC0_DMINT2), | ||
477 | INTC_GROUP(I2S, I2S0, I2S1, I2S2, I2S3), | ||
478 | INTC_GROUP(SRC, SRC_RX, SRC_TX, SRC_SPDIF), | ||
479 | INTC_GROUP(GFX3D, GFX3D_MBX, GFX3D_DMAC), | ||
480 | INTC_GROUP(SPI, SPI0, SPI1), | ||
481 | INTC_GROUP(SCIF, SCIF089, SCIF1234, SCIF567), | ||
482 | INTC_GROUP(BBDMAC, | ||
483 | BBDMAC_0_3, BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14, | ||
484 | BBDMAC_15_18, BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27, | ||
485 | BBDMAC_28, BBDMAC_29, BBDMAC_30, BBDMAC_31), | ||
486 | }; | ||
487 | |||
488 | static struct intc_mask_reg mask_registers[] __initdata = { | ||
489 | { 0xffe00040, 0xffe00044, 32, /* INT2MSKR / INT2MSKCR */ | ||
490 | { 0, BBDMAC, ADC, SCIF, SPI, EXBUS_ATA, GFX3D, GFX2D, | ||
491 | GPS, CAN, ATAPI, USB, YUV, REMOTE, VIDEO_IN, DU, SRC, I2S, | ||
492 | DMAC, I2C, HUDI, SPDIF, IPI, HAC, TMU, GPIO } }, | ||
493 | }; | ||
494 | |||
495 | static struct intc_prio_reg prio_registers[] __initdata = { | ||
496 | { 0xffe00000, 0, 32, 8, /* INT2PRI0 */ { GPIO, TMU0, 0, HAC } }, | ||
497 | { 0xffe00004, 0, 32, 8, /* INT2PRI1 */ { IPI, SPDIF, HUDI, I2C } }, | ||
498 | { 0xffe00008, 0, 32, 8, /* INT2PRI2 */ { DMAC, I2S, SRC, DU } }, | ||
499 | { 0xffe0000c, 0, 32, 8, /* INT2PRI3 */ { VIDEO_IN, REMOTE, YUV, USB } }, | ||
500 | { 0xffe00010, 0, 32, 8, /* INT2PRI4 */ { ATAPI, CAN, GPS, GFX2D } }, | ||
501 | { 0xffe00014, 0, 32, 8, /* INT2PRI5 */ { 0, GFX3D, EXBUS_ATA, SPI } }, | ||
502 | { 0xffe00018, 0, 32, 8, /* INT2PRI6 */ { SCIF1234, SCIF567, SCIF089 } }, | ||
503 | { 0xffe0001c, 0, 32, 8, /* INT2PRI7 */ { ADC, 0, 0, BBDMAC_0_3 } }, | ||
504 | { 0xffe00020, 0, 32, 8, /* INT2PRI8 */ | ||
505 | { BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14, BBDMAC_15_18 } }, | ||
506 | { 0xffe00024, 0, 32, 8, /* INT2PRI9 */ | ||
507 | { BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27, BBDMAC_28 } }, | ||
508 | { 0xffe00028, 0, 32, 8, /* INT2PRI10 */ | ||
509 | { BBDMAC_29, BBDMAC_30, BBDMAC_31 } }, | ||
510 | { 0xffe0002c, 0, 32, 8, /* INT2PRI11 */ | ||
511 | { TMU1, TMU2, TMU2_TICPI, TMU3 } }, | ||
512 | { 0xffe00030, 0, 32, 8, /* INT2PRI12 */ | ||
513 | { TMU4, TMU5, TMU5_TICPI, TMU6 } }, | ||
514 | { 0xffe00034, 0, 32, 8, /* INT2PRI13 */ | ||
515 | { TMU7, TMU8 } }, | ||
516 | }; | ||
517 | |||
518 | static DECLARE_INTC_DESC(intc_desc, "sh7770", vectors, groups, | ||
519 | mask_registers, prio_registers, NULL); | ||
520 | |||
521 | /* Support for external interrupt pins in IRQ mode */ | ||
522 | static struct intc_vect irq_vectors[] __initdata = { | ||
523 | INTC_VECT(IRQ0, 0x240), INTC_VECT(IRQ1, 0x280), | ||
524 | INTC_VECT(IRQ2, 0x2c0), INTC_VECT(IRQ3, 0x300), | ||
525 | INTC_VECT(IRQ4, 0x340), INTC_VECT(IRQ5, 0x380), | ||
526 | }; | ||
527 | |||
528 | static struct intc_mask_reg irq_mask_registers[] __initdata = { | ||
529 | { 0xffd00044, 0xffd00064, 32, /* INTMSK0 / INTMSKCLR0 */ | ||
530 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, } }, | ||
531 | }; | ||
532 | |||
533 | static struct intc_prio_reg irq_prio_registers[] __initdata = { | ||
534 | { 0xffd00010, 0, 32, 4, /* INTPRI */ { IRQ0, IRQ1, IRQ2, IRQ3, | ||
535 | IRQ4, IRQ5, } }, | ||
536 | }; | ||
537 | |||
538 | static struct intc_sense_reg irq_sense_registers[] __initdata = { | ||
539 | { 0xffd0001c, 32, 2, /* ICR1 */ { IRQ0, IRQ1, IRQ2, IRQ3, | ||
540 | IRQ4, IRQ5, } }, | ||
541 | }; | ||
542 | |||
543 | static DECLARE_INTC_DESC(intc_irq_desc, "sh7770-irq", irq_vectors, | ||
544 | NULL, irq_mask_registers, irq_prio_registers, | ||
545 | irq_sense_registers); | ||
546 | |||
547 | /* External interrupt pins in IRL mode */ | ||
548 | static struct intc_vect irl_vectors[] __initdata = { | ||
549 | INTC_VECT(IRL_LLLL, 0x200), INTC_VECT(IRL_LLLH, 0x220), | ||
550 | INTC_VECT(IRL_LLHL, 0x240), INTC_VECT(IRL_LLHH, 0x260), | ||
551 | INTC_VECT(IRL_LHLL, 0x280), INTC_VECT(IRL_LHLH, 0x2a0), | ||
552 | INTC_VECT(IRL_LHHL, 0x2c0), INTC_VECT(IRL_LHHH, 0x2e0), | ||
553 | INTC_VECT(IRL_HLLL, 0x300), INTC_VECT(IRL_HLLH, 0x320), | ||
554 | INTC_VECT(IRL_HLHL, 0x340), INTC_VECT(IRL_HLHH, 0x360), | ||
555 | INTC_VECT(IRL_HHLL, 0x380), INTC_VECT(IRL_HHLH, 0x3a0), | ||
556 | INTC_VECT(IRL_HHHL, 0x3c0), | ||
557 | }; | ||
558 | |||
559 | static struct intc_mask_reg irl3210_mask_registers[] __initdata = { | ||
560 | { 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */ | ||
561 | { IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH, | ||
562 | IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH, | ||
563 | IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH, | ||
564 | IRL_HHLL, IRL_HHLH, IRL_HHHL, } }, | ||
565 | }; | ||
566 | |||
567 | static struct intc_mask_reg irl7654_mask_registers[] __initdata = { | ||
568 | { 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */ | ||
569 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
570 | IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH, | ||
571 | IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH, | ||
572 | IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH, | ||
573 | IRL_HHLL, IRL_HHLH, IRL_HHHL, } }, | ||
574 | }; | ||
575 | |||
576 | static DECLARE_INTC_DESC(intc_irl7654_desc, "sh7780-irl7654", irl_vectors, | ||
577 | NULL, irl7654_mask_registers, NULL, NULL); | ||
578 | |||
579 | static DECLARE_INTC_DESC(intc_irl3210_desc, "sh7780-irl3210", irl_vectors, | ||
580 | NULL, irl3210_mask_registers, NULL, NULL); | ||
581 | |||
582 | #define INTC_ICR0 0xffd00000 | ||
583 | #define INTC_INTMSK0 0xffd00044 | ||
584 | #define INTC_INTMSK1 0xffd00048 | ||
585 | #define INTC_INTMSK2 0xffd40080 | ||
586 | #define INTC_INTMSKCLR1 0xffd00068 | ||
587 | #define INTC_INTMSKCLR2 0xffd40084 | ||
588 | |||
90 | void __init plat_irq_setup(void) | 589 | void __init plat_irq_setup(void) |
91 | { | 590 | { |
591 | /* disable IRQ7-0 */ | ||
592 | ctrl_outl(0xff000000, INTC_INTMSK0); | ||
593 | |||
594 | /* disable IRL3-0 + IRL7-4 */ | ||
595 | ctrl_outl(0xc0000000, INTC_INTMSK1); | ||
596 | ctrl_outl(0xfffefffe, INTC_INTMSK2); | ||
597 | |||
598 | /* select IRL mode for IRL3-0 + IRL7-4 */ | ||
599 | ctrl_outl(ctrl_inl(INTC_ICR0) & ~0x00c00000, INTC_ICR0); | ||
600 | |||
601 | /* disable holding function, ie enable "SH-4 Mode" */ | ||
602 | ctrl_outl(ctrl_inl(INTC_ICR0) | 0x00200000, INTC_ICR0); | ||
603 | |||
604 | register_intc_controller(&intc_desc); | ||
605 | } | ||
606 | |||
607 | void __init plat_irq_setup_pins(int mode) | ||
608 | { | ||
609 | switch (mode) { | ||
610 | case IRQ_MODE_IRQ: | ||
611 | /* select IRQ mode for IRL3-0 + IRL7-4 */ | ||
612 | ctrl_outl(ctrl_inl(INTC_ICR0) | 0x00c00000, INTC_ICR0); | ||
613 | register_intc_controller(&intc_irq_desc); | ||
614 | break; | ||
615 | case IRQ_MODE_IRL7654: | ||
616 | /* enable IRL7-4 but don't provide any masking */ | ||
617 | ctrl_outl(0x40000000, INTC_INTMSKCLR1); | ||
618 | ctrl_outl(0x0000fffe, INTC_INTMSKCLR2); | ||
619 | break; | ||
620 | case IRQ_MODE_IRL3210: | ||
621 | /* enable IRL0-3 but don't provide any masking */ | ||
622 | ctrl_outl(0x80000000, INTC_INTMSKCLR1); | ||
623 | ctrl_outl(0xfffe0000, INTC_INTMSKCLR2); | ||
624 | break; | ||
625 | case IRQ_MODE_IRL7654_MASK: | ||
626 | /* enable IRL7-4 and mask using cpu intc controller */ | ||
627 | ctrl_outl(0x40000000, INTC_INTMSKCLR1); | ||
628 | register_intc_controller(&intc_irl7654_desc); | ||
629 | break; | ||
630 | case IRQ_MODE_IRL3210_MASK: | ||
631 | /* enable IRL0-3 and mask using cpu intc controller */ | ||
632 | ctrl_outl(0x80000000, INTC_INTMSKCLR1); | ||
633 | register_intc_controller(&intc_irl3210_desc); | ||
634 | break; | ||
635 | default: | ||
636 | BUG(); | ||
637 | } | ||
92 | } | 638 | } |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c index 6f7227cd65bf..f1df02095062 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c | |||
@@ -12,6 +12,189 @@ | |||
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | ||
16 | |||
17 | static struct sh_timer_config tmu0_platform_data = { | ||
18 | .name = "TMU0", | ||
19 | .channel_offset = 0x04, | ||
20 | .timer_bit = 0, | ||
21 | .clk = "module_clk", | ||
22 | .clockevent_rating = 200, | ||
23 | }; | ||
24 | |||
25 | static struct resource tmu0_resources[] = { | ||
26 | [0] = { | ||
27 | .name = "TMU0", | ||
28 | .start = 0xffd80008, | ||
29 | .end = 0xffd80013, | ||
30 | .flags = IORESOURCE_MEM, | ||
31 | }, | ||
32 | [1] = { | ||
33 | .start = 28, | ||
34 | .flags = IORESOURCE_IRQ, | ||
35 | }, | ||
36 | }; | ||
37 | |||
38 | static struct platform_device tmu0_device = { | ||
39 | .name = "sh_tmu", | ||
40 | .id = 0, | ||
41 | .dev = { | ||
42 | .platform_data = &tmu0_platform_data, | ||
43 | }, | ||
44 | .resource = tmu0_resources, | ||
45 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
46 | }; | ||
47 | |||
48 | static struct sh_timer_config tmu1_platform_data = { | ||
49 | .name = "TMU1", | ||
50 | .channel_offset = 0x10, | ||
51 | .timer_bit = 1, | ||
52 | .clk = "module_clk", | ||
53 | .clocksource_rating = 200, | ||
54 | }; | ||
55 | |||
56 | static struct resource tmu1_resources[] = { | ||
57 | [0] = { | ||
58 | .name = "TMU1", | ||
59 | .start = 0xffd80014, | ||
60 | .end = 0xffd8001f, | ||
61 | .flags = IORESOURCE_MEM, | ||
62 | }, | ||
63 | [1] = { | ||
64 | .start = 29, | ||
65 | .flags = IORESOURCE_IRQ, | ||
66 | }, | ||
67 | }; | ||
68 | |||
69 | static struct platform_device tmu1_device = { | ||
70 | .name = "sh_tmu", | ||
71 | .id = 1, | ||
72 | .dev = { | ||
73 | .platform_data = &tmu1_platform_data, | ||
74 | }, | ||
75 | .resource = tmu1_resources, | ||
76 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
77 | }; | ||
78 | |||
79 | static struct sh_timer_config tmu2_platform_data = { | ||
80 | .name = "TMU2", | ||
81 | .channel_offset = 0x1c, | ||
82 | .timer_bit = 2, | ||
83 | .clk = "module_clk", | ||
84 | }; | ||
85 | |||
86 | static struct resource tmu2_resources[] = { | ||
87 | [0] = { | ||
88 | .name = "TMU2", | ||
89 | .start = 0xffd80020, | ||
90 | .end = 0xffd8002f, | ||
91 | .flags = IORESOURCE_MEM, | ||
92 | }, | ||
93 | [1] = { | ||
94 | .start = 30, | ||
95 | .flags = IORESOURCE_IRQ, | ||
96 | }, | ||
97 | }; | ||
98 | |||
99 | static struct platform_device tmu2_device = { | ||
100 | .name = "sh_tmu", | ||
101 | .id = 2, | ||
102 | .dev = { | ||
103 | .platform_data = &tmu2_platform_data, | ||
104 | }, | ||
105 | .resource = tmu2_resources, | ||
106 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
107 | }; | ||
108 | |||
109 | static struct sh_timer_config tmu3_platform_data = { | ||
110 | .name = "TMU3", | ||
111 | .channel_offset = 0x04, | ||
112 | .timer_bit = 0, | ||
113 | .clk = "module_clk", | ||
114 | }; | ||
115 | |||
116 | static struct resource tmu3_resources[] = { | ||
117 | [0] = { | ||
118 | .name = "TMU3", | ||
119 | .start = 0xffdc0008, | ||
120 | .end = 0xffdc0013, | ||
121 | .flags = IORESOURCE_MEM, | ||
122 | }, | ||
123 | [1] = { | ||
124 | .start = 96, | ||
125 | .flags = IORESOURCE_IRQ, | ||
126 | }, | ||
127 | }; | ||
128 | |||
129 | static struct platform_device tmu3_device = { | ||
130 | .name = "sh_tmu", | ||
131 | .id = 3, | ||
132 | .dev = { | ||
133 | .platform_data = &tmu3_platform_data, | ||
134 | }, | ||
135 | .resource = tmu3_resources, | ||
136 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
137 | }; | ||
138 | |||
139 | static struct sh_timer_config tmu4_platform_data = { | ||
140 | .name = "TMU4", | ||
141 | .channel_offset = 0x10, | ||
142 | .timer_bit = 1, | ||
143 | .clk = "module_clk", | ||
144 | }; | ||
145 | |||
146 | static struct resource tmu4_resources[] = { | ||
147 | [0] = { | ||
148 | .name = "TMU4", | ||
149 | .start = 0xffdc0014, | ||
150 | .end = 0xffdc001f, | ||
151 | .flags = IORESOURCE_MEM, | ||
152 | }, | ||
153 | [1] = { | ||
154 | .start = 97, | ||
155 | .flags = IORESOURCE_IRQ, | ||
156 | }, | ||
157 | }; | ||
158 | |||
159 | static struct platform_device tmu4_device = { | ||
160 | .name = "sh_tmu", | ||
161 | .id = 4, | ||
162 | .dev = { | ||
163 | .platform_data = &tmu4_platform_data, | ||
164 | }, | ||
165 | .resource = tmu4_resources, | ||
166 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
167 | }; | ||
168 | |||
169 | static struct sh_timer_config tmu5_platform_data = { | ||
170 | .name = "TMU5", | ||
171 | .channel_offset = 0x1c, | ||
172 | .timer_bit = 2, | ||
173 | .clk = "module_clk", | ||
174 | }; | ||
175 | |||
176 | static struct resource tmu5_resources[] = { | ||
177 | [0] = { | ||
178 | .name = "TMU5", | ||
179 | .start = 0xffdc0020, | ||
180 | .end = 0xffdc002b, | ||
181 | .flags = IORESOURCE_MEM, | ||
182 | }, | ||
183 | [1] = { | ||
184 | .start = 98, | ||
185 | .flags = IORESOURCE_IRQ, | ||
186 | }, | ||
187 | }; | ||
188 | |||
189 | static struct platform_device tmu5_device = { | ||
190 | .name = "sh_tmu", | ||
191 | .id = 5, | ||
192 | .dev = { | ||
193 | .platform_data = &tmu5_platform_data, | ||
194 | }, | ||
195 | .resource = tmu5_resources, | ||
196 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
197 | }; | ||
15 | 198 | ||
16 | static struct resource rtc_resources[] = { | 199 | static struct resource rtc_resources[] = { |
17 | [0] = { | 200 | [0] = { |
@@ -58,6 +241,12 @@ static struct platform_device sci_device = { | |||
58 | }; | 241 | }; |
59 | 242 | ||
60 | static struct platform_device *sh7780_devices[] __initdata = { | 243 | static struct platform_device *sh7780_devices[] __initdata = { |
244 | &tmu0_device, | ||
245 | &tmu1_device, | ||
246 | &tmu2_device, | ||
247 | &tmu3_device, | ||
248 | &tmu4_device, | ||
249 | &tmu5_device, | ||
61 | &rtc_device, | 250 | &rtc_device, |
62 | &sci_device, | 251 | &sci_device, |
63 | }; | 252 | }; |
@@ -69,6 +258,21 @@ static int __init sh7780_devices_setup(void) | |||
69 | } | 258 | } |
70 | __initcall(sh7780_devices_setup); | 259 | __initcall(sh7780_devices_setup); |
71 | 260 | ||
261 | static struct platform_device *sh7780_early_devices[] __initdata = { | ||
262 | &tmu0_device, | ||
263 | &tmu1_device, | ||
264 | &tmu2_device, | ||
265 | &tmu3_device, | ||
266 | &tmu4_device, | ||
267 | &tmu5_device, | ||
268 | }; | ||
269 | |||
270 | void __init plat_early_device_setup(void) | ||
271 | { | ||
272 | early_platform_add_devices(sh7780_early_devices, | ||
273 | ARRAY_SIZE(sh7780_early_devices)); | ||
274 | } | ||
275 | |||
72 | enum { | 276 | enum { |
73 | UNUSED = 0, | 277 | UNUSED = 0, |
74 | 278 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c index d80802a49dbd..dc5d3e507a21 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c | |||
@@ -13,8 +13,191 @@ | |||
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | #include <linux/sh_timer.h> | ||
16 | #include <asm/mmzone.h> | 17 | #include <asm/mmzone.h> |
17 | 18 | ||
19 | static struct sh_timer_config tmu0_platform_data = { | ||
20 | .name = "TMU0", | ||
21 | .channel_offset = 0x04, | ||
22 | .timer_bit = 0, | ||
23 | .clk = "module_clk", | ||
24 | .clockevent_rating = 200, | ||
25 | }; | ||
26 | |||
27 | static struct resource tmu0_resources[] = { | ||
28 | [0] = { | ||
29 | .name = "TMU0", | ||
30 | .start = 0xffd80008, | ||
31 | .end = 0xffd80013, | ||
32 | .flags = IORESOURCE_MEM, | ||
33 | }, | ||
34 | [1] = { | ||
35 | .start = 28, | ||
36 | .flags = IORESOURCE_IRQ, | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | static struct platform_device tmu0_device = { | ||
41 | .name = "sh_tmu", | ||
42 | .id = 0, | ||
43 | .dev = { | ||
44 | .platform_data = &tmu0_platform_data, | ||
45 | }, | ||
46 | .resource = tmu0_resources, | ||
47 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
48 | }; | ||
49 | |||
50 | static struct sh_timer_config tmu1_platform_data = { | ||
51 | .name = "TMU1", | ||
52 | .channel_offset = 0x10, | ||
53 | .timer_bit = 1, | ||
54 | .clk = "module_clk", | ||
55 | .clocksource_rating = 200, | ||
56 | }; | ||
57 | |||
58 | static struct resource tmu1_resources[] = { | ||
59 | [0] = { | ||
60 | .name = "TMU1", | ||
61 | .start = 0xffd80014, | ||
62 | .end = 0xffd8001f, | ||
63 | .flags = IORESOURCE_MEM, | ||
64 | }, | ||
65 | [1] = { | ||
66 | .start = 29, | ||
67 | .flags = IORESOURCE_IRQ, | ||
68 | }, | ||
69 | }; | ||
70 | |||
71 | static struct platform_device tmu1_device = { | ||
72 | .name = "sh_tmu", | ||
73 | .id = 1, | ||
74 | .dev = { | ||
75 | .platform_data = &tmu1_platform_data, | ||
76 | }, | ||
77 | .resource = tmu1_resources, | ||
78 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
79 | }; | ||
80 | |||
81 | static struct sh_timer_config tmu2_platform_data = { | ||
82 | .name = "TMU2", | ||
83 | .channel_offset = 0x1c, | ||
84 | .timer_bit = 2, | ||
85 | .clk = "module_clk", | ||
86 | }; | ||
87 | |||
88 | static struct resource tmu2_resources[] = { | ||
89 | [0] = { | ||
90 | .name = "TMU2", | ||
91 | .start = 0xffd80020, | ||
92 | .end = 0xffd8002f, | ||
93 | .flags = IORESOURCE_MEM, | ||
94 | }, | ||
95 | [1] = { | ||
96 | .start = 30, | ||
97 | .flags = IORESOURCE_IRQ, | ||
98 | }, | ||
99 | }; | ||
100 | |||
101 | static struct platform_device tmu2_device = { | ||
102 | .name = "sh_tmu", | ||
103 | .id = 2, | ||
104 | .dev = { | ||
105 | .platform_data = &tmu2_platform_data, | ||
106 | }, | ||
107 | .resource = tmu2_resources, | ||
108 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
109 | }; | ||
110 | |||
111 | static struct sh_timer_config tmu3_platform_data = { | ||
112 | .name = "TMU3", | ||
113 | .channel_offset = 0x04, | ||
114 | .timer_bit = 0, | ||
115 | .clk = "module_clk", | ||
116 | }; | ||
117 | |||
118 | static struct resource tmu3_resources[] = { | ||
119 | [0] = { | ||
120 | .name = "TMU3", | ||
121 | .start = 0xffdc0008, | ||
122 | .end = 0xffdc0013, | ||
123 | .flags = IORESOURCE_MEM, | ||
124 | }, | ||
125 | [1] = { | ||
126 | .start = 96, | ||
127 | .flags = IORESOURCE_IRQ, | ||
128 | }, | ||
129 | }; | ||
130 | |||
131 | static struct platform_device tmu3_device = { | ||
132 | .name = "sh_tmu", | ||
133 | .id = 3, | ||
134 | .dev = { | ||
135 | .platform_data = &tmu3_platform_data, | ||
136 | }, | ||
137 | .resource = tmu3_resources, | ||
138 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
139 | }; | ||
140 | |||
141 | static struct sh_timer_config tmu4_platform_data = { | ||
142 | .name = "TMU4", | ||
143 | .channel_offset = 0x10, | ||
144 | .timer_bit = 1, | ||
145 | .clk = "module_clk", | ||
146 | }; | ||
147 | |||
148 | static struct resource tmu4_resources[] = { | ||
149 | [0] = { | ||
150 | .name = "TMU4", | ||
151 | .start = 0xffdc0014, | ||
152 | .end = 0xffdc001f, | ||
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | [1] = { | ||
156 | .start = 97, | ||
157 | .flags = IORESOURCE_IRQ, | ||
158 | }, | ||
159 | }; | ||
160 | |||
161 | static struct platform_device tmu4_device = { | ||
162 | .name = "sh_tmu", | ||
163 | .id = 4, | ||
164 | .dev = { | ||
165 | .platform_data = &tmu4_platform_data, | ||
166 | }, | ||
167 | .resource = tmu4_resources, | ||
168 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
169 | }; | ||
170 | |||
171 | static struct sh_timer_config tmu5_platform_data = { | ||
172 | .name = "TMU5", | ||
173 | .channel_offset = 0x1c, | ||
174 | .timer_bit = 2, | ||
175 | .clk = "module_clk", | ||
176 | }; | ||
177 | |||
178 | static struct resource tmu5_resources[] = { | ||
179 | [0] = { | ||
180 | .name = "TMU5", | ||
181 | .start = 0xffdc0020, | ||
182 | .end = 0xffdc002b, | ||
183 | .flags = IORESOURCE_MEM, | ||
184 | }, | ||
185 | [1] = { | ||
186 | .start = 98, | ||
187 | .flags = IORESOURCE_IRQ, | ||
188 | }, | ||
189 | }; | ||
190 | |||
191 | static struct platform_device tmu5_device = { | ||
192 | .name = "sh_tmu", | ||
193 | .id = 5, | ||
194 | .dev = { | ||
195 | .platform_data = &tmu5_platform_data, | ||
196 | }, | ||
197 | .resource = tmu5_resources, | ||
198 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
199 | }; | ||
200 | |||
18 | static struct plat_sci_port sci_platform_data[] = { | 201 | static struct plat_sci_port sci_platform_data[] = { |
19 | { | 202 | { |
20 | .mapbase = 0xffea0000, | 203 | .mapbase = 0xffea0000, |
@@ -60,6 +243,12 @@ static struct platform_device sci_device = { | |||
60 | }; | 243 | }; |
61 | 244 | ||
62 | static struct platform_device *sh7785_devices[] __initdata = { | 245 | static struct platform_device *sh7785_devices[] __initdata = { |
246 | &tmu0_device, | ||
247 | &tmu1_device, | ||
248 | &tmu2_device, | ||
249 | &tmu3_device, | ||
250 | &tmu4_device, | ||
251 | &tmu5_device, | ||
63 | &sci_device, | 252 | &sci_device, |
64 | }; | 253 | }; |
65 | 254 | ||
@@ -70,6 +259,21 @@ static int __init sh7785_devices_setup(void) | |||
70 | } | 259 | } |
71 | __initcall(sh7785_devices_setup); | 260 | __initcall(sh7785_devices_setup); |
72 | 261 | ||
262 | static struct platform_device *sh7785_early_devices[] __initdata = { | ||
263 | &tmu0_device, | ||
264 | &tmu1_device, | ||
265 | &tmu2_device, | ||
266 | &tmu3_device, | ||
267 | &tmu4_device, | ||
268 | &tmu5_device, | ||
269 | }; | ||
270 | |||
271 | void __init plat_early_device_setup(void) | ||
272 | { | ||
273 | early_platform_add_devices(sh7785_early_devices, | ||
274 | ARRAY_SIZE(sh7785_early_devices)); | ||
275 | } | ||
276 | |||
73 | enum { | 277 | enum { |
74 | UNUSED = 0, | 278 | UNUSED = 0, |
75 | 279 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c index 90e8cfff55fd..2c464bf5a899 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c | |||
@@ -3,6 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2009 Renesas Solutions Corp. | 4 | * Copyright (C) 2009 Renesas Solutions Corp. |
5 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | 5 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> |
6 | * Paul Mundt <paul.mundt@renesas.com> | ||
6 | * | 7 | * |
7 | * Based on SH7785 Setup | 8 | * Based on SH7785 Setup |
8 | * | 9 | * |
@@ -19,6 +20,7 @@ | |||
19 | #include <linux/io.h> | 20 | #include <linux/io.h> |
20 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
21 | #include <linux/dma-mapping.h> | 22 | #include <linux/dma-mapping.h> |
23 | #include <linux/sh_timer.h> | ||
22 | #include <asm/mmzone.h> | 24 | #include <asm/mmzone.h> |
23 | 25 | ||
24 | static struct plat_sci_port sci_platform_data[] = { | 26 | static struct plat_sci_port sci_platform_data[] = { |
@@ -69,6 +71,368 @@ static struct platform_device sci_device = { | |||
69 | }, | 71 | }, |
70 | }; | 72 | }; |
71 | 73 | ||
74 | static struct sh_timer_config tmu0_platform_data = { | ||
75 | .name = "TMU0", | ||
76 | .channel_offset = 0x04, | ||
77 | .timer_bit = 0, | ||
78 | .clk = "module_clk", | ||
79 | .clockevent_rating = 200, | ||
80 | }; | ||
81 | |||
82 | static struct resource tmu0_resources[] = { | ||
83 | [0] = { | ||
84 | .name = "TMU0", | ||
85 | .start = 0xffd80008, | ||
86 | .end = 0xffd80013, | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | [1] = { | ||
90 | .start = 16, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device tmu0_device = { | ||
96 | .name = "sh_tmu", | ||
97 | .id = 0, | ||
98 | .dev = { | ||
99 | .platform_data = &tmu0_platform_data, | ||
100 | }, | ||
101 | .resource = tmu0_resources, | ||
102 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
103 | }; | ||
104 | |||
105 | static struct sh_timer_config tmu1_platform_data = { | ||
106 | .name = "TMU1", | ||
107 | .channel_offset = 0x10, | ||
108 | .timer_bit = 1, | ||
109 | .clk = "module_clk", | ||
110 | .clocksource_rating = 200, | ||
111 | }; | ||
112 | |||
113 | static struct resource tmu1_resources[] = { | ||
114 | [0] = { | ||
115 | .name = "TMU1", | ||
116 | .start = 0xffd80014, | ||
117 | .end = 0xffd8001f, | ||
118 | .flags = IORESOURCE_MEM, | ||
119 | }, | ||
120 | [1] = { | ||
121 | .start = 17, | ||
122 | .flags = IORESOURCE_IRQ, | ||
123 | }, | ||
124 | }; | ||
125 | |||
126 | static struct platform_device tmu1_device = { | ||
127 | .name = "sh_tmu", | ||
128 | .id = 1, | ||
129 | .dev = { | ||
130 | .platform_data = &tmu1_platform_data, | ||
131 | }, | ||
132 | .resource = tmu1_resources, | ||
133 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
134 | }; | ||
135 | |||
136 | static struct sh_timer_config tmu2_platform_data = { | ||
137 | .name = "TMU2", | ||
138 | .channel_offset = 0x1c, | ||
139 | .timer_bit = 2, | ||
140 | .clk = "module_clk", | ||
141 | }; | ||
142 | |||
143 | static struct resource tmu2_resources[] = { | ||
144 | [0] = { | ||
145 | .name = "TMU2", | ||
146 | .start = 0xffd80020, | ||
147 | .end = 0xffd8002f, | ||
148 | .flags = IORESOURCE_MEM, | ||
149 | }, | ||
150 | [1] = { | ||
151 | .start = 18, | ||
152 | .flags = IORESOURCE_IRQ, | ||
153 | }, | ||
154 | }; | ||
155 | |||
156 | static struct platform_device tmu2_device = { | ||
157 | .name = "sh_tmu", | ||
158 | .id = 2, | ||
159 | .dev = { | ||
160 | .platform_data = &tmu2_platform_data, | ||
161 | }, | ||
162 | .resource = tmu2_resources, | ||
163 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
164 | }; | ||
165 | |||
166 | static struct sh_timer_config tmu3_platform_data = { | ||
167 | .name = "TMU3", | ||
168 | .channel_offset = 0x04, | ||
169 | .timer_bit = 0, | ||
170 | .clk = "module_clk", | ||
171 | }; | ||
172 | |||
173 | static struct resource tmu3_resources[] = { | ||
174 | [0] = { | ||
175 | .name = "TMU3", | ||
176 | .start = 0xffda0008, | ||
177 | .end = 0xffda0013, | ||
178 | .flags = IORESOURCE_MEM, | ||
179 | }, | ||
180 | [1] = { | ||
181 | .start = 20, | ||
182 | .flags = IORESOURCE_IRQ, | ||
183 | }, | ||
184 | }; | ||
185 | |||
186 | static struct platform_device tmu3_device = { | ||
187 | .name = "sh_tmu", | ||
188 | .id = 3, | ||
189 | .dev = { | ||
190 | .platform_data = &tmu3_platform_data, | ||
191 | }, | ||
192 | .resource = tmu3_resources, | ||
193 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
194 | }; | ||
195 | |||
196 | static struct sh_timer_config tmu4_platform_data = { | ||
197 | .name = "TMU4", | ||
198 | .channel_offset = 0x10, | ||
199 | .timer_bit = 1, | ||
200 | .clk = "module_clk", | ||
201 | }; | ||
202 | |||
203 | static struct resource tmu4_resources[] = { | ||
204 | [0] = { | ||
205 | .name = "TMU4", | ||
206 | .start = 0xffda0014, | ||
207 | .end = 0xffda001f, | ||
208 | .flags = IORESOURCE_MEM, | ||
209 | }, | ||
210 | [1] = { | ||
211 | .start = 21, | ||
212 | .flags = IORESOURCE_IRQ, | ||
213 | }, | ||
214 | }; | ||
215 | |||
216 | static struct platform_device tmu4_device = { | ||
217 | .name = "sh_tmu", | ||
218 | .id = 4, | ||
219 | .dev = { | ||
220 | .platform_data = &tmu4_platform_data, | ||
221 | }, | ||
222 | .resource = tmu4_resources, | ||
223 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
224 | }; | ||
225 | |||
226 | static struct sh_timer_config tmu5_platform_data = { | ||
227 | .name = "TMU5", | ||
228 | .channel_offset = 0x1c, | ||
229 | .timer_bit = 2, | ||
230 | .clk = "module_clk", | ||
231 | }; | ||
232 | |||
233 | static struct resource tmu5_resources[] = { | ||
234 | [0] = { | ||
235 | .name = "TMU5", | ||
236 | .start = 0xffda0020, | ||
237 | .end = 0xffda002b, | ||
238 | .flags = IORESOURCE_MEM, | ||
239 | }, | ||
240 | [1] = { | ||
241 | .start = 22, | ||
242 | .flags = IORESOURCE_IRQ, | ||
243 | }, | ||
244 | }; | ||
245 | |||
246 | static struct platform_device tmu5_device = { | ||
247 | .name = "sh_tmu", | ||
248 | .id = 5, | ||
249 | .dev = { | ||
250 | .platform_data = &tmu5_platform_data, | ||
251 | }, | ||
252 | .resource = tmu5_resources, | ||
253 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
254 | }; | ||
255 | |||
256 | static struct sh_timer_config tmu6_platform_data = { | ||
257 | .name = "TMU6", | ||
258 | .channel_offset = 0x04, | ||
259 | .timer_bit = 0, | ||
260 | .clk = "module_clk", | ||
261 | }; | ||
262 | |||
263 | static struct resource tmu6_resources[] = { | ||
264 | [0] = { | ||
265 | .name = "TMU6", | ||
266 | .start = 0xffdc0008, | ||
267 | .end = 0xffdc0013, | ||
268 | .flags = IORESOURCE_MEM, | ||
269 | }, | ||
270 | [1] = { | ||
271 | .start = 45, | ||
272 | .flags = IORESOURCE_IRQ, | ||
273 | }, | ||
274 | }; | ||
275 | |||
276 | static struct platform_device tmu6_device = { | ||
277 | .name = "sh_tmu", | ||
278 | .id = 6, | ||
279 | .dev = { | ||
280 | .platform_data = &tmu6_platform_data, | ||
281 | }, | ||
282 | .resource = tmu6_resources, | ||
283 | .num_resources = ARRAY_SIZE(tmu6_resources), | ||
284 | }; | ||
285 | |||
286 | static struct sh_timer_config tmu7_platform_data = { | ||
287 | .name = "TMU7", | ||
288 | .channel_offset = 0x10, | ||
289 | .timer_bit = 1, | ||
290 | .clk = "module_clk", | ||
291 | }; | ||
292 | |||
293 | static struct resource tmu7_resources[] = { | ||
294 | [0] = { | ||
295 | .name = "TMU7", | ||
296 | .start = 0xffdc0014, | ||
297 | .end = 0xffdc001f, | ||
298 | .flags = IORESOURCE_MEM, | ||
299 | }, | ||
300 | [1] = { | ||
301 | .start = 45, | ||
302 | .flags = IORESOURCE_IRQ, | ||
303 | }, | ||
304 | }; | ||
305 | |||
306 | static struct platform_device tmu7_device = { | ||
307 | .name = "sh_tmu", | ||
308 | .id = 7, | ||
309 | .dev = { | ||
310 | .platform_data = &tmu7_platform_data, | ||
311 | }, | ||
312 | .resource = tmu7_resources, | ||
313 | .num_resources = ARRAY_SIZE(tmu7_resources), | ||
314 | }; | ||
315 | |||
316 | static struct sh_timer_config tmu8_platform_data = { | ||
317 | .name = "TMU8", | ||
318 | .channel_offset = 0x1c, | ||
319 | .timer_bit = 2, | ||
320 | .clk = "module_clk", | ||
321 | }; | ||
322 | |||
323 | static struct resource tmu8_resources[] = { | ||
324 | [0] = { | ||
325 | .name = "TMU8", | ||
326 | .start = 0xffdc0020, | ||
327 | .end = 0xffdc002b, | ||
328 | .flags = IORESOURCE_MEM, | ||
329 | }, | ||
330 | [1] = { | ||
331 | .start = 45, | ||
332 | .flags = IORESOURCE_IRQ, | ||
333 | }, | ||
334 | }; | ||
335 | |||
336 | static struct platform_device tmu8_device = { | ||
337 | .name = "sh_tmu", | ||
338 | .id = 8, | ||
339 | .dev = { | ||
340 | .platform_data = &tmu8_platform_data, | ||
341 | }, | ||
342 | .resource = tmu8_resources, | ||
343 | .num_resources = ARRAY_SIZE(tmu8_resources), | ||
344 | }; | ||
345 | |||
346 | static struct sh_timer_config tmu9_platform_data = { | ||
347 | .name = "TMU9", | ||
348 | .channel_offset = 0x04, | ||
349 | .timer_bit = 0, | ||
350 | .clk = "module_clk", | ||
351 | }; | ||
352 | |||
353 | static struct resource tmu9_resources[] = { | ||
354 | [0] = { | ||
355 | .name = "TMU9", | ||
356 | .start = 0xffde0008, | ||
357 | .end = 0xffde0013, | ||
358 | .flags = IORESOURCE_MEM, | ||
359 | }, | ||
360 | [1] = { | ||
361 | .start = 46, | ||
362 | .flags = IORESOURCE_IRQ, | ||
363 | }, | ||
364 | }; | ||
365 | |||
366 | static struct platform_device tmu9_device = { | ||
367 | .name = "sh_tmu", | ||
368 | .id = 9, | ||
369 | .dev = { | ||
370 | .platform_data = &tmu9_platform_data, | ||
371 | }, | ||
372 | .resource = tmu9_resources, | ||
373 | .num_resources = ARRAY_SIZE(tmu9_resources), | ||
374 | }; | ||
375 | |||
376 | static struct sh_timer_config tmu10_platform_data = { | ||
377 | .name = "TMU10", | ||
378 | .channel_offset = 0x10, | ||
379 | .timer_bit = 1, | ||
380 | .clk = "module_clk", | ||
381 | }; | ||
382 | |||
383 | static struct resource tmu10_resources[] = { | ||
384 | [0] = { | ||
385 | .name = "TMU10", | ||
386 | .start = 0xffde0014, | ||
387 | .end = 0xffde001f, | ||
388 | .flags = IORESOURCE_MEM, | ||
389 | }, | ||
390 | [1] = { | ||
391 | .start = 46, | ||
392 | .flags = IORESOURCE_IRQ, | ||
393 | }, | ||
394 | }; | ||
395 | |||
396 | static struct platform_device tmu10_device = { | ||
397 | .name = "sh_tmu", | ||
398 | .id = 10, | ||
399 | .dev = { | ||
400 | .platform_data = &tmu10_platform_data, | ||
401 | }, | ||
402 | .resource = tmu10_resources, | ||
403 | .num_resources = ARRAY_SIZE(tmu10_resources), | ||
404 | }; | ||
405 | |||
406 | static struct sh_timer_config tmu11_platform_data = { | ||
407 | .name = "TMU11", | ||
408 | .channel_offset = 0x1c, | ||
409 | .timer_bit = 2, | ||
410 | .clk = "module_clk", | ||
411 | }; | ||
412 | |||
413 | static struct resource tmu11_resources[] = { | ||
414 | [0] = { | ||
415 | .name = "TMU11", | ||
416 | .start = 0xffde0020, | ||
417 | .end = 0xffde002b, | ||
418 | .flags = IORESOURCE_MEM, | ||
419 | }, | ||
420 | [1] = { | ||
421 | .start = 46, | ||
422 | .flags = IORESOURCE_IRQ, | ||
423 | }, | ||
424 | }; | ||
425 | |||
426 | static struct platform_device tmu11_device = { | ||
427 | .name = "sh_tmu", | ||
428 | .id = 11, | ||
429 | .dev = { | ||
430 | .platform_data = &tmu11_platform_data, | ||
431 | }, | ||
432 | .resource = tmu11_resources, | ||
433 | .num_resources = ARRAY_SIZE(tmu11_resources), | ||
434 | }; | ||
435 | |||
72 | static struct resource usb_ohci_resources[] = { | 436 | static struct resource usb_ohci_resources[] = { |
73 | [0] = { | 437 | [0] = { |
74 | .start = 0xffe70400, | 438 | .start = 0xffe70400, |
@@ -94,6 +458,21 @@ static struct platform_device usb_ohci_device = { | |||
94 | .resource = usb_ohci_resources, | 458 | .resource = usb_ohci_resources, |
95 | }; | 459 | }; |
96 | 460 | ||
461 | static struct platform_device *sh7786_early_devices[] __initdata = { | ||
462 | &tmu0_device, | ||
463 | &tmu1_device, | ||
464 | &tmu2_device, | ||
465 | &tmu3_device, | ||
466 | &tmu4_device, | ||
467 | &tmu5_device, | ||
468 | &tmu6_device, | ||
469 | &tmu7_device, | ||
470 | &tmu8_device, | ||
471 | &tmu9_device, | ||
472 | &tmu10_device, | ||
473 | &tmu11_device, | ||
474 | }; | ||
475 | |||
97 | static struct platform_device *sh7786_devices[] __initdata = { | 476 | static struct platform_device *sh7786_devices[] __initdata = { |
98 | &sci_device, | 477 | &sci_device, |
99 | &usb_ohci_device, | 478 | &usb_ohci_device, |
@@ -156,12 +535,26 @@ static void __init sh7786_usb_setup(void) | |||
156 | 535 | ||
157 | static int __init sh7786_devices_setup(void) | 536 | static int __init sh7786_devices_setup(void) |
158 | { | 537 | { |
538 | int ret; | ||
539 | |||
159 | sh7786_usb_setup(); | 540 | sh7786_usb_setup(); |
541 | |||
542 | ret = platform_add_devices(sh7786_early_devices, | ||
543 | ARRAY_SIZE(sh7786_early_devices)); | ||
544 | if (unlikely(ret != 0)) | ||
545 | return ret; | ||
546 | |||
160 | return platform_add_devices(sh7786_devices, | 547 | return platform_add_devices(sh7786_devices, |
161 | ARRAY_SIZE(sh7786_devices)); | 548 | ARRAY_SIZE(sh7786_devices)); |
162 | } | 549 | } |
163 | device_initcall(sh7786_devices_setup); | 550 | device_initcall(sh7786_devices_setup); |
164 | 551 | ||
552 | void __init plat_early_device_setup(void) | ||
553 | { | ||
554 | early_platform_add_devices(sh7786_early_devices, | ||
555 | ARRAY_SIZE(sh7786_early_devices)); | ||
556 | } | ||
557 | |||
165 | enum { | 558 | enum { |
166 | UNUSED = 0, | 559 | UNUSED = 0, |
167 | 560 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-shx3.c b/arch/sh/kernel/cpu/sh4a/setup-shx3.c index bd35f32534b9..9d5185b42f13 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/setup-shx3.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * SH-X3 Setup | 2 | * SH-X3 Prototype Setup |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Paul Mundt | 4 | * Copyright (C) 2007 - 2009 Paul Mundt |
5 | * | 5 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
7 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/sh_timer.h> | ||
15 | #include <asm/mmzone.h> | 16 | #include <asm/mmzone.h> |
16 | 17 | ||
17 | static struct plat_sci_port sci_platform_data[] = { | 18 | static struct plat_sci_port sci_platform_data[] = { |
@@ -48,17 +49,221 @@ static struct platform_device sci_device = { | |||
48 | }, | 49 | }, |
49 | }; | 50 | }; |
50 | 51 | ||
52 | static struct sh_timer_config tmu0_platform_data = { | ||
53 | .name = "TMU0", | ||
54 | .channel_offset = 0x04, | ||
55 | .timer_bit = 0, | ||
56 | .clk = "module_clk", | ||
57 | .clockevent_rating = 200, | ||
58 | }; | ||
59 | |||
60 | static struct resource tmu0_resources[] = { | ||
61 | [0] = { | ||
62 | .name = "TMU0", | ||
63 | .start = 0xffc10008, | ||
64 | .end = 0xffc10013, | ||
65 | .flags = IORESOURCE_MEM, | ||
66 | }, | ||
67 | [1] = { | ||
68 | .start = 16, | ||
69 | .flags = IORESOURCE_IRQ, | ||
70 | }, | ||
71 | }; | ||
72 | |||
73 | static struct platform_device tmu0_device = { | ||
74 | .name = "sh_tmu", | ||
75 | .id = 0, | ||
76 | .dev = { | ||
77 | .platform_data = &tmu0_platform_data, | ||
78 | }, | ||
79 | .resource = tmu0_resources, | ||
80 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
81 | }; | ||
82 | |||
83 | static struct sh_timer_config tmu1_platform_data = { | ||
84 | .name = "TMU1", | ||
85 | .channel_offset = 0x10, | ||
86 | .timer_bit = 1, | ||
87 | .clk = "module_clk", | ||
88 | .clocksource_rating = 200, | ||
89 | }; | ||
90 | |||
91 | static struct resource tmu1_resources[] = { | ||
92 | [0] = { | ||
93 | .name = "TMU1", | ||
94 | .start = 0xffc10014, | ||
95 | .end = 0xffc1001f, | ||
96 | .flags = IORESOURCE_MEM, | ||
97 | }, | ||
98 | [1] = { | ||
99 | .start = 17, | ||
100 | .flags = IORESOURCE_IRQ, | ||
101 | }, | ||
102 | }; | ||
103 | |||
104 | static struct platform_device tmu1_device = { | ||
105 | .name = "sh_tmu", | ||
106 | .id = 1, | ||
107 | .dev = { | ||
108 | .platform_data = &tmu1_platform_data, | ||
109 | }, | ||
110 | .resource = tmu1_resources, | ||
111 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
112 | }; | ||
113 | |||
114 | static struct sh_timer_config tmu2_platform_data = { | ||
115 | .name = "TMU2", | ||
116 | .channel_offset = 0x1c, | ||
117 | .timer_bit = 2, | ||
118 | .clk = "module_clk", | ||
119 | }; | ||
120 | |||
121 | static struct resource tmu2_resources[] = { | ||
122 | [0] = { | ||
123 | .name = "TMU2", | ||
124 | .start = 0xffc10020, | ||
125 | .end = 0xffc1002f, | ||
126 | .flags = IORESOURCE_MEM, | ||
127 | }, | ||
128 | [1] = { | ||
129 | .start = 18, | ||
130 | .flags = IORESOURCE_IRQ, | ||
131 | }, | ||
132 | }; | ||
133 | |||
134 | static struct platform_device tmu2_device = { | ||
135 | .name = "sh_tmu", | ||
136 | .id = 2, | ||
137 | .dev = { | ||
138 | .platform_data = &tmu2_platform_data, | ||
139 | }, | ||
140 | .resource = tmu2_resources, | ||
141 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
142 | }; | ||
143 | |||
144 | static struct sh_timer_config tmu3_platform_data = { | ||
145 | .name = "TMU3", | ||
146 | .channel_offset = 0x04, | ||
147 | .timer_bit = 0, | ||
148 | .clk = "module_clk", | ||
149 | }; | ||
150 | |||
151 | static struct resource tmu3_resources[] = { | ||
152 | [0] = { | ||
153 | .name = "TMU3", | ||
154 | .start = 0xffc20008, | ||
155 | .end = 0xffc20013, | ||
156 | .flags = IORESOURCE_MEM, | ||
157 | }, | ||
158 | [1] = { | ||
159 | .start = 19, | ||
160 | .flags = IORESOURCE_IRQ, | ||
161 | }, | ||
162 | }; | ||
163 | |||
164 | static struct platform_device tmu3_device = { | ||
165 | .name = "sh_tmu", | ||
166 | .id = 3, | ||
167 | .dev = { | ||
168 | .platform_data = &tmu3_platform_data, | ||
169 | }, | ||
170 | .resource = tmu3_resources, | ||
171 | .num_resources = ARRAY_SIZE(tmu3_resources), | ||
172 | }; | ||
173 | |||
174 | static struct sh_timer_config tmu4_platform_data = { | ||
175 | .name = "TMU4", | ||
176 | .channel_offset = 0x10, | ||
177 | .timer_bit = 1, | ||
178 | .clk = "module_clk", | ||
179 | }; | ||
180 | |||
181 | static struct resource tmu4_resources[] = { | ||
182 | [0] = { | ||
183 | .name = "TMU4", | ||
184 | .start = 0xffc20014, | ||
185 | .end = 0xffc2001f, | ||
186 | .flags = IORESOURCE_MEM, | ||
187 | }, | ||
188 | [1] = { | ||
189 | .start = 20, | ||
190 | .flags = IORESOURCE_IRQ, | ||
191 | }, | ||
192 | }; | ||
193 | |||
194 | static struct platform_device tmu4_device = { | ||
195 | .name = "sh_tmu", | ||
196 | .id = 4, | ||
197 | .dev = { | ||
198 | .platform_data = &tmu4_platform_data, | ||
199 | }, | ||
200 | .resource = tmu4_resources, | ||
201 | .num_resources = ARRAY_SIZE(tmu4_resources), | ||
202 | }; | ||
203 | |||
204 | static struct sh_timer_config tmu5_platform_data = { | ||
205 | .name = "TMU5", | ||
206 | .channel_offset = 0x1c, | ||
207 | .timer_bit = 2, | ||
208 | .clk = "module_clk", | ||
209 | }; | ||
210 | |||
211 | static struct resource tmu5_resources[] = { | ||
212 | [0] = { | ||
213 | .name = "TMU5", | ||
214 | .start = 0xffc20020, | ||
215 | .end = 0xffc2002b, | ||
216 | .flags = IORESOURCE_MEM, | ||
217 | }, | ||
218 | [1] = { | ||
219 | .start = 21, | ||
220 | .flags = IORESOURCE_IRQ, | ||
221 | }, | ||
222 | }; | ||
223 | |||
224 | static struct platform_device tmu5_device = { | ||
225 | .name = "sh_tmu", | ||
226 | .id = 5, | ||
227 | .dev = { | ||
228 | .platform_data = &tmu5_platform_data, | ||
229 | }, | ||
230 | .resource = tmu5_resources, | ||
231 | .num_resources = ARRAY_SIZE(tmu5_resources), | ||
232 | }; | ||
233 | |||
234 | static struct platform_device *shx3_early_devices[] __initdata = { | ||
235 | &tmu0_device, | ||
236 | &tmu1_device, | ||
237 | &tmu2_device, | ||
238 | &tmu3_device, | ||
239 | &tmu4_device, | ||
240 | &tmu5_device, | ||
241 | }; | ||
242 | |||
51 | static struct platform_device *shx3_devices[] __initdata = { | 243 | static struct platform_device *shx3_devices[] __initdata = { |
52 | &sci_device, | 244 | &sci_device, |
53 | }; | 245 | }; |
54 | 246 | ||
55 | static int __init shx3_devices_setup(void) | 247 | static int __init shx3_devices_setup(void) |
56 | { | 248 | { |
249 | int ret; | ||
250 | |||
251 | ret = platform_add_devices(shx3_early_devices, | ||
252 | ARRAY_SIZE(shx3_early_devices)); | ||
253 | if (unlikely(ret != 0)) | ||
254 | return ret; | ||
255 | |||
57 | return platform_add_devices(shx3_devices, | 256 | return platform_add_devices(shx3_devices, |
58 | ARRAY_SIZE(shx3_devices)); | 257 | ARRAY_SIZE(shx3_devices)); |
59 | } | 258 | } |
60 | __initcall(shx3_devices_setup); | 259 | __initcall(shx3_devices_setup); |
61 | 260 | ||
261 | void __init plat_early_device_setup(void) | ||
262 | { | ||
263 | early_platform_add_devices(shx3_early_devices, | ||
264 | ARRAY_SIZE(shx3_early_devices)); | ||
265 | } | ||
266 | |||
62 | enum { | 267 | enum { |
63 | UNUSED = 0, | 268 | UNUSED = 0, |
64 | 269 | ||
diff --git a/arch/sh/kernel/cpu/sh5/Makefile b/arch/sh/kernel/cpu/sh5/Makefile index ce4602ea23a8..a184a31e686e 100644 --- a/arch/sh/kernel/cpu/sh5/Makefile +++ b/arch/sh/kernel/cpu/sh5/Makefile | |||
@@ -6,6 +6,9 @@ obj-y := entry.o probe.o switchto.o | |||
6 | obj-$(CONFIG_SH_FPU) += fpu.o | 6 | obj-$(CONFIG_SH_FPU) += fpu.o |
7 | obj-$(CONFIG_KALLSYMS) += unwind.o | 7 | obj-$(CONFIG_KALLSYMS) += unwind.o |
8 | 8 | ||
9 | # CPU subtype setup | ||
10 | obj-$(CONFIG_CPU_SH5) += setup-sh5.o | ||
11 | |||
9 | # Primary on-chip clocks (common) | 12 | # Primary on-chip clocks (common) |
10 | clock-$(CONFIG_CPU_SH5) := clock-sh5.o | 13 | clock-$(CONFIG_CPU_SH5) := clock-sh5.o |
11 | 14 | ||
diff --git a/arch/sh/kernel/cpu/sh5/clock-sh5.c b/arch/sh/kernel/cpu/sh5/clock-sh5.c index 52c49248833a..5486324880e1 100644 --- a/arch/sh/kernel/cpu/sh5/clock-sh5.c +++ b/arch/sh/kernel/cpu/sh5/clock-sh5.c | |||
@@ -71,7 +71,7 @@ static struct clk_ops *sh5_clk_ops[] = { | |||
71 | 71 | ||
72 | void __init arch_init_clk_ops(struct clk_ops **ops, int idx) | 72 | void __init arch_init_clk_ops(struct clk_ops **ops, int idx) |
73 | { | 73 | { |
74 | cprc_base = onchip_remap(CPRC_BASE, 1024, "CPRC"); | 74 | cprc_base = (unsigned long)ioremap_nocache(CPRC_BASE, 1024); |
75 | BUG_ON(!cprc_base); | 75 | BUG_ON(!cprc_base); |
76 | 76 | ||
77 | if (idx < ARRAY_SIZE(sh5_clk_ops)) | 77 | if (idx < ARRAY_SIZE(sh5_clk_ops)) |
diff --git a/arch/sh/kernel/cpu/sh5/entry.S b/arch/sh/kernel/cpu/sh5/entry.S index 7e49cb812f8b..b0aacf675258 100644 --- a/arch/sh/kernel/cpu/sh5/entry.S +++ b/arch/sh/kernel/cpu/sh5/entry.S | |||
@@ -812,27 +812,6 @@ no_underflow: | |||
812 | ! exceptions | 812 | ! exceptions |
813 | add SP, ZERO, r14 | 813 | add SP, ZERO, r14 |
814 | 814 | ||
815 | #ifdef CONFIG_POOR_MANS_STRACE | ||
816 | /* We've pushed all the registers now, so only r2-r4 hold anything | ||
817 | * useful. Move them into callee save registers */ | ||
818 | or r2, ZERO, r28 | ||
819 | or r3, ZERO, r29 | ||
820 | or r4, ZERO, r30 | ||
821 | |||
822 | /* Preserve r2 as the event code */ | ||
823 | movi evt_debug, r3 | ||
824 | ori r3, 1, r3 | ||
825 | ptabs r3, tr0 | ||
826 | |||
827 | or SP, ZERO, r6 | ||
828 | getcon TRA, r5 | ||
829 | blink tr0, LINK | ||
830 | |||
831 | or r28, ZERO, r2 | ||
832 | or r29, ZERO, r3 | ||
833 | or r30, ZERO, r4 | ||
834 | #endif | ||
835 | |||
836 | /* For syscall and debug race condition, get TRA now */ | 815 | /* For syscall and debug race condition, get TRA now */ |
837 | getcon TRA, r5 | 816 | getcon TRA, r5 |
838 | 817 | ||
@@ -887,11 +866,6 @@ no_underflow: | |||
887 | */ | 866 | */ |
888 | .global ret_from_irq | 867 | .global ret_from_irq |
889 | ret_from_irq: | 868 | ret_from_irq: |
890 | #ifdef CONFIG_POOR_MANS_STRACE | ||
891 | pta evt_debug_ret_from_irq, tr0 | ||
892 | ori SP, 0, r2 | ||
893 | blink tr0, LINK | ||
894 | #endif | ||
895 | ld.q SP, FRAME_S(FSSR), r6 | 869 | ld.q SP, FRAME_S(FSSR), r6 |
896 | shlri r6, 30, r6 | 870 | shlri r6, 30, r6 |
897 | andi r6, 1, r6 | 871 | andi r6, 1, r6 |
@@ -905,12 +879,6 @@ ret_from_irq: | |||
905 | ret_from_exception: | 879 | ret_from_exception: |
906 | preempt_stop() | 880 | preempt_stop() |
907 | 881 | ||
908 | #ifdef CONFIG_POOR_MANS_STRACE | ||
909 | pta evt_debug_ret_from_exc, tr0 | ||
910 | ori SP, 0, r2 | ||
911 | blink tr0, LINK | ||
912 | #endif | ||
913 | |||
914 | ld.q SP, FRAME_S(FSSR), r6 | 882 | ld.q SP, FRAME_S(FSSR), r6 |
915 | shlri r6, 30, r6 | 883 | shlri r6, 30, r6 |
916 | andi r6, 1, r6 | 884 | andi r6, 1, r6 |
@@ -1236,18 +1204,6 @@ syscall_bad: | |||
1236 | .global syscall_ret | 1204 | .global syscall_ret |
1237 | syscall_ret: | 1205 | syscall_ret: |
1238 | st.q SP, FRAME_R(9), r2 /* Expecting SP back to BASIC frame */ | 1206 | st.q SP, FRAME_R(9), r2 /* Expecting SP back to BASIC frame */ |
1239 | |||
1240 | #ifdef CONFIG_POOR_MANS_STRACE | ||
1241 | /* nothing useful in registers at this point */ | ||
1242 | |||
1243 | movi evt_debug2, r5 | ||
1244 | ori r5, 1, r5 | ||
1245 | ptabs r5, tr0 | ||
1246 | ld.q SP, FRAME_R(9), r2 | ||
1247 | or SP, ZERO, r3 | ||
1248 | blink tr0, LINK | ||
1249 | #endif | ||
1250 | |||
1251 | ld.q SP, FRAME_S(FSPC), r2 | 1207 | ld.q SP, FRAME_S(FSPC), r2 |
1252 | addi r2, 4, r2 /* Move PC, being pre-execution event */ | 1208 | addi r2, 4, r2 /* Move PC, being pre-execution event */ |
1253 | st.q SP, FRAME_S(FSPC), r2 | 1209 | st.q SP, FRAME_S(FSPC), r2 |
@@ -1268,25 +1224,12 @@ ret_from_fork: | |||
1268 | ptabs r5, tr0 | 1224 | ptabs r5, tr0 |
1269 | blink tr0, LINK | 1225 | blink tr0, LINK |
1270 | 1226 | ||
1271 | #ifdef CONFIG_POOR_MANS_STRACE | ||
1272 | /* nothing useful in registers at this point */ | ||
1273 | |||
1274 | movi evt_debug2, r5 | ||
1275 | ori r5, 1, r5 | ||
1276 | ptabs r5, tr0 | ||
1277 | ld.q SP, FRAME_R(9), r2 | ||
1278 | or SP, ZERO, r3 | ||
1279 | blink tr0, LINK | ||
1280 | #endif | ||
1281 | |||
1282 | ld.q SP, FRAME_S(FSPC), r2 | 1227 | ld.q SP, FRAME_S(FSPC), r2 |
1283 | addi r2, 4, r2 /* Move PC, being pre-execution event */ | 1228 | addi r2, 4, r2 /* Move PC, being pre-execution event */ |
1284 | st.q SP, FRAME_S(FSPC), r2 | 1229 | st.q SP, FRAME_S(FSPC), r2 |
1285 | pta ret_from_syscall, tr0 | 1230 | pta ret_from_syscall, tr0 |
1286 | blink tr0, ZERO | 1231 | blink tr0, ZERO |
1287 | 1232 | ||
1288 | |||
1289 | |||
1290 | syscall_allowed: | 1233 | syscall_allowed: |
1291 | /* Use LINK to deflect the exit point, default is syscall_ret */ | 1234 | /* Use LINK to deflect the exit point, default is syscall_ret */ |
1292 | pta syscall_ret, tr0 | 1235 | pta syscall_ret, tr0 |
@@ -1410,8 +1353,8 @@ peek_real_address_q: | |||
1410 | r2(out) : result quadword | 1353 | r2(out) : result quadword |
1411 | 1354 | ||
1412 | This is provided as a cheapskate way of manipulating device | 1355 | This is provided as a cheapskate way of manipulating device |
1413 | registers for debugging (to avoid the need to onchip_remap the debug | 1356 | registers for debugging (to avoid the need to ioremap the debug |
1414 | module, and to avoid the need to onchip_remap the watchpoint | 1357 | module, and to avoid the need to ioremap the watchpoint |
1415 | controller in a way that identity maps sufficient bits to avoid the | 1358 | controller in a way that identity maps sufficient bits to avoid the |
1416 | SH5-101 cut2 silicon defect). | 1359 | SH5-101 cut2 silicon defect). |
1417 | 1360 | ||
@@ -1459,8 +1402,8 @@ poke_real_address_q: | |||
1459 | r3 : quadword value to write. | 1402 | r3 : quadword value to write. |
1460 | 1403 | ||
1461 | This is provided as a cheapskate way of manipulating device | 1404 | This is provided as a cheapskate way of manipulating device |
1462 | registers for debugging (to avoid the need to onchip_remap the debug | 1405 | registers for debugging (to avoid the need to ioremap the debug |
1463 | module, and to avoid the need to onchip_remap the watchpoint | 1406 | module, and to avoid the need to ioremap the watchpoint |
1464 | controller in a way that identity maps sufficient bits to avoid the | 1407 | controller in a way that identity maps sufficient bits to avoid the |
1465 | SH5-101 cut2 silicon defect). | 1408 | SH5-101 cut2 silicon defect). |
1466 | 1409 | ||
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c b/arch/sh/kernel/cpu/sh5/setup-sh5.c new file mode 100644 index 000000000000..678d69bdebba --- /dev/null +++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c | |||
@@ -0,0 +1,195 @@ | |||
1 | /* | ||
2 | * SH5-101/SH5-103 CPU Setup | ||
3 | * | ||
4 | * Copyright (C) 2009 Paul Mundt | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #include <linux/platform_device.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/serial.h> | ||
13 | #include <linux/serial_sci.h> | ||
14 | #include <linux/io.h> | ||
15 | #include <linux/mm.h> | ||
16 | #include <linux/sh_timer.h> | ||
17 | #include <asm/addrspace.h> | ||
18 | |||
19 | static struct plat_sci_port sci_platform_data[] = { | ||
20 | { | ||
21 | .mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000, | ||
22 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | ||
23 | .type = PORT_SCIF, | ||
24 | .irqs = { 39, 40, 42, 0 }, | ||
25 | }, { | ||
26 | .flags = 0, | ||
27 | } | ||
28 | }; | ||
29 | |||
30 | static struct platform_device sci_device = { | ||
31 | .name = "sh-sci", | ||
32 | .id = -1, | ||
33 | .dev = { | ||
34 | .platform_data = sci_platform_data, | ||
35 | }, | ||
36 | }; | ||
37 | |||
38 | static struct resource rtc_resources[] = { | ||
39 | [0] = { | ||
40 | .start = PHYS_PERIPHERAL_BLOCK + 0x01040000, | ||
41 | .end = PHYS_PERIPHERAL_BLOCK + 0x01040000 + 0x58 - 1, | ||
42 | .flags = IORESOURCE_IO, | ||
43 | }, | ||
44 | [1] = { | ||
45 | /* Period IRQ */ | ||
46 | .start = IRQ_PRI, | ||
47 | .flags = IORESOURCE_IRQ, | ||
48 | }, | ||
49 | [2] = { | ||
50 | /* Carry IRQ */ | ||
51 | .start = IRQ_CUI, | ||
52 | .flags = IORESOURCE_IRQ, | ||
53 | }, | ||
54 | [3] = { | ||
55 | /* Alarm IRQ */ | ||
56 | .start = IRQ_ATI, | ||
57 | .flags = IORESOURCE_IRQ, | ||
58 | }, | ||
59 | }; | ||
60 | |||
61 | static struct platform_device rtc_device = { | ||
62 | .name = "sh-rtc", | ||
63 | .id = -1, | ||
64 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
65 | .resource = rtc_resources, | ||
66 | }; | ||
67 | |||
68 | #define TMU_BLOCK_OFF 0x01020000 | ||
69 | #define TMU_BASE PHYS_PERIPHERAL_BLOCK + TMU_BLOCK_OFF | ||
70 | #define TMU0_BASE (TMU_BASE + 0x8 + (0xc * 0x0)) | ||
71 | #define TMU1_BASE (TMU_BASE + 0x8 + (0xc * 0x1)) | ||
72 | #define TMU2_BASE (TMU_BASE + 0x8 + (0xc * 0x2)) | ||
73 | |||
74 | static struct sh_timer_config tmu0_platform_data = { | ||
75 | .name = "TMU0", | ||
76 | .channel_offset = 0x04, | ||
77 | .timer_bit = 0, | ||
78 | .clk = "module_clk", | ||
79 | .clockevent_rating = 200, | ||
80 | }; | ||
81 | |||
82 | static struct resource tmu0_resources[] = { | ||
83 | [0] = { | ||
84 | .name = "TMU0", | ||
85 | .start = TMU0_BASE, | ||
86 | .end = TMU0_BASE + 0xc - 1, | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | [1] = { | ||
90 | .start = IRQ_TUNI0, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device tmu0_device = { | ||
96 | .name = "sh_tmu", | ||
97 | .id = 0, | ||
98 | .dev = { | ||
99 | .platform_data = &tmu0_platform_data, | ||
100 | }, | ||
101 | .resource = tmu0_resources, | ||
102 | .num_resources = ARRAY_SIZE(tmu0_resources), | ||
103 | }; | ||
104 | |||
105 | static struct sh_timer_config tmu1_platform_data = { | ||
106 | .name = "TMU1", | ||
107 | .channel_offset = 0x10, | ||
108 | .timer_bit = 1, | ||
109 | .clk = "module_clk", | ||
110 | .clocksource_rating = 200, | ||
111 | }; | ||
112 | |||
113 | static struct resource tmu1_resources[] = { | ||
114 | [0] = { | ||
115 | .name = "TMU1", | ||
116 | .start = TMU1_BASE, | ||
117 | .end = TMU1_BASE + 0xc - 1, | ||
118 | .flags = IORESOURCE_MEM, | ||
119 | }, | ||
120 | [1] = { | ||
121 | .start = IRQ_TUNI1, | ||
122 | .flags = IORESOURCE_IRQ, | ||
123 | }, | ||
124 | }; | ||
125 | |||
126 | static struct platform_device tmu1_device = { | ||
127 | .name = "sh_tmu", | ||
128 | .id = 1, | ||
129 | .dev = { | ||
130 | .platform_data = &tmu1_platform_data, | ||
131 | }, | ||
132 | .resource = tmu1_resources, | ||
133 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
134 | }; | ||
135 | |||
136 | static struct sh_timer_config tmu2_platform_data = { | ||
137 | .name = "TMU2", | ||
138 | .channel_offset = 0x1c, | ||
139 | .timer_bit = 2, | ||
140 | .clk = "module_clk", | ||
141 | }; | ||
142 | |||
143 | static struct resource tmu2_resources[] = { | ||
144 | [0] = { | ||
145 | .name = "TMU2", | ||
146 | .start = TMU2_BASE, | ||
147 | .end = TMU2_BASE + 0xc - 1, | ||
148 | .flags = IORESOURCE_MEM, | ||
149 | }, | ||
150 | [1] = { | ||
151 | .start = IRQ_TUNI2, | ||
152 | .flags = IORESOURCE_IRQ, | ||
153 | }, | ||
154 | }; | ||
155 | |||
156 | static struct platform_device tmu2_device = { | ||
157 | .name = "sh_tmu", | ||
158 | .id = 2, | ||
159 | .dev = { | ||
160 | .platform_data = &tmu2_platform_data, | ||
161 | }, | ||
162 | .resource = tmu2_resources, | ||
163 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
164 | }; | ||
165 | |||
166 | static struct platform_device *sh5_early_devices[] __initdata = { | ||
167 | &tmu0_device, | ||
168 | &tmu1_device, | ||
169 | &tmu2_device, | ||
170 | }; | ||
171 | |||
172 | static struct platform_device *sh5_devices[] __initdata = { | ||
173 | &sci_device, | ||
174 | &rtc_device, | ||
175 | }; | ||
176 | |||
177 | static int __init sh5_devices_setup(void) | ||
178 | { | ||
179 | int ret; | ||
180 | |||
181 | ret = platform_add_devices(sh5_early_devices, | ||
182 | ARRAY_SIZE(sh5_early_devices)); | ||
183 | if (unlikely(ret != 0)) | ||
184 | return ret; | ||
185 | |||
186 | return platform_add_devices(sh5_devices, | ||
187 | ARRAY_SIZE(sh5_devices)); | ||
188 | } | ||
189 | __initcall(sh5_devices_setup); | ||
190 | |||
191 | void __init plat_early_device_setup(void) | ||
192 | { | ||
193 | early_platform_add_devices(sh5_early_devices, | ||
194 | ARRAY_SIZE(sh5_early_devices)); | ||
195 | } | ||
diff --git a/arch/sh/kernel/io.c b/arch/sh/kernel/io.c index 29cf4588fc05..4f85fffaa557 100644 --- a/arch/sh/kernel/io.c +++ b/arch/sh/kernel/io.c | |||
@@ -12,6 +12,7 @@ | |||
12 | * for more details. | 12 | * for more details. |
13 | */ | 13 | */ |
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/pci.h> | ||
15 | #include <asm/machvec.h> | 16 | #include <asm/machvec.h> |
16 | #include <asm/io.h> | 17 | #include <asm/io.h> |
17 | 18 | ||
diff --git a/arch/sh/kernel/io_trapped.c b/arch/sh/kernel/io_trapped.c index c22853b059ef..77dfecb64373 100644 --- a/arch/sh/kernel/io_trapped.c +++ b/arch/sh/kernel/io_trapped.c | |||
@@ -267,7 +267,7 @@ static struct mem_access trapped_io_access = { | |||
267 | int handle_trapped_io(struct pt_regs *regs, unsigned long address) | 267 | int handle_trapped_io(struct pt_regs *regs, unsigned long address) |
268 | { | 268 | { |
269 | mm_segment_t oldfs; | 269 | mm_segment_t oldfs; |
270 | opcode_t instruction; | 270 | insn_size_t instruction; |
271 | int tmp; | 271 | int tmp; |
272 | 272 | ||
273 | if (!lookup_tiop(address)) | 273 | if (!lookup_tiop(address)) |
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index 3f1372eb0091..3d09062f4682 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c | |||
@@ -31,39 +31,64 @@ void ack_bad_irq(unsigned int irq) | |||
31 | } | 31 | } |
32 | 32 | ||
33 | #if defined(CONFIG_PROC_FS) | 33 | #if defined(CONFIG_PROC_FS) |
34 | /* | ||
35 | * /proc/interrupts printing: | ||
36 | */ | ||
37 | static int show_other_interrupts(struct seq_file *p, int prec) | ||
38 | { | ||
39 | seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); | ||
40 | return 0; | ||
41 | } | ||
42 | |||
34 | int show_interrupts(struct seq_file *p, void *v) | 43 | int show_interrupts(struct seq_file *p, void *v) |
35 | { | 44 | { |
36 | int i = *(loff_t *) v, j; | 45 | unsigned long flags, any_count = 0; |
37 | struct irqaction * action; | 46 | int i = *(loff_t *)v, j, prec; |
38 | unsigned long flags; | 47 | struct irqaction *action; |
48 | struct irq_desc *desc; | ||
49 | |||
50 | if (i > nr_irqs) | ||
51 | return 0; | ||
52 | |||
53 | for (prec = 3, j = 1000; prec < 10 && j <= nr_irqs; ++prec) | ||
54 | j *= 10; | ||
55 | |||
56 | if (i == nr_irqs) | ||
57 | return show_other_interrupts(p, prec); | ||
39 | 58 | ||
40 | if (i == 0) { | 59 | if (i == 0) { |
41 | seq_puts(p, " "); | 60 | seq_printf(p, "%*s", prec + 8, ""); |
42 | for_each_online_cpu(j) | 61 | for_each_online_cpu(j) |
43 | seq_printf(p, "CPU%d ",j); | 62 | seq_printf(p, "CPU%-8d", j); |
44 | seq_putc(p, '\n'); | 63 | seq_putc(p, '\n'); |
45 | } | 64 | } |
46 | 65 | ||
47 | if (i < sh_mv.mv_nr_irqs) { | 66 | desc = irq_to_desc(i); |
48 | spin_lock_irqsave(&irq_desc[i].lock, flags); | 67 | if (!desc) |
49 | action = irq_desc[i].action; | 68 | return 0; |
50 | if (!action) | 69 | |
51 | goto unlock; | 70 | spin_lock_irqsave(&desc->lock, flags); |
52 | seq_printf(p, "%3d: ",i); | 71 | for_each_online_cpu(j) |
53 | for_each_online_cpu(j) | 72 | any_count |= kstat_irqs_cpu(i, j); |
54 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | 73 | action = desc->action; |
55 | seq_printf(p, " %14s", irq_desc[i].chip->name); | 74 | if (!action && !any_count) |
56 | seq_printf(p, "-%-8s", irq_desc[i].name); | 75 | goto out; |
57 | seq_printf(p, " %s", action->name); | 76 | |
77 | seq_printf(p, "%*d: ", prec, i); | ||
78 | for_each_online_cpu(j) | ||
79 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | ||
80 | seq_printf(p, " %14s", desc->chip->name); | ||
81 | seq_printf(p, "-%-8s", desc->name); | ||
58 | 82 | ||
59 | for (action=action->next; action; action = action->next) | 83 | if (action) { |
84 | seq_printf(p, " %s", action->name); | ||
85 | while ((action = action->next) != NULL) | ||
60 | seq_printf(p, ", %s", action->name); | 86 | seq_printf(p, ", %s", action->name); |
61 | seq_putc(p, '\n'); | 87 | } |
62 | unlock: | ||
63 | spin_unlock_irqrestore(&irq_desc[i].lock, flags); | ||
64 | } else if (i == sh_mv.mv_nr_irqs) | ||
65 | seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count)); | ||
66 | 88 | ||
89 | seq_putc(p, '\n'); | ||
90 | out: | ||
91 | spin_unlock_irqrestore(&desc->lock, flags); | ||
67 | return 0; | 92 | return 0; |
68 | } | 93 | } |
69 | #endif | 94 | #endif |
@@ -254,3 +279,11 @@ void __init init_IRQ(void) | |||
254 | 279 | ||
255 | irq_ctx_init(smp_processor_id()); | 280 | irq_ctx_init(smp_processor_id()); |
256 | } | 281 | } |
282 | |||
283 | #ifdef CONFIG_SPARSE_IRQ | ||
284 | int __init arch_probe_nr_irqs(void) | ||
285 | { | ||
286 | nr_irqs = sh_mv.mv_nr_irqs; | ||
287 | return 0; | ||
288 | } | ||
289 | #endif | ||
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c index 7c747e7d71b8..305aad742aec 100644 --- a/arch/sh/kernel/kgdb.c +++ b/arch/sh/kernel/kgdb.c | |||
@@ -47,7 +47,7 @@ char in_nmi = 0; /* Set during NMI to prevent re-entry */ | |||
47 | /* Calculate the new address for after a step */ | 47 | /* Calculate the new address for after a step */ |
48 | static short *get_step_address(struct pt_regs *linux_regs) | 48 | static short *get_step_address(struct pt_regs *linux_regs) |
49 | { | 49 | { |
50 | opcode_t op = __raw_readw(linux_regs->pc); | 50 | insn_size_t op = __raw_readw(linux_regs->pc); |
51 | long addr; | 51 | long addr; |
52 | 52 | ||
53 | /* BT */ | 53 | /* BT */ |
@@ -134,7 +134,7 @@ static short *get_step_address(struct pt_regs *linux_regs) | |||
134 | */ | 134 | */ |
135 | 135 | ||
136 | static unsigned long stepped_address; | 136 | static unsigned long stepped_address; |
137 | static opcode_t stepped_opcode; | 137 | static insn_size_t stepped_opcode; |
138 | 138 | ||
139 | static void do_single_step(struct pt_regs *linux_regs) | 139 | static void do_single_step(struct pt_regs *linux_regs) |
140 | { | 140 | { |
diff --git a/arch/sh/kernel/timers/timer-broadcast.c b/arch/sh/kernel/localtimer.c index 96e8eaea1e62..96e8eaea1e62 100644 --- a/arch/sh/kernel/timers/timer-broadcast.c +++ b/arch/sh/kernel/localtimer.c | |||
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index c43081039dd5..c19b0f7d2cc1 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c | |||
@@ -90,7 +90,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
90 | * SHmedia, the LSB of the symbol needs to be asserted | 90 | * SHmedia, the LSB of the symbol needs to be asserted |
91 | * for the CPU to be in SHmedia mode when it starts executing | 91 | * for the CPU to be in SHmedia mode when it starts executing |
92 | * the branch target. */ | 92 | * the branch target. */ |
93 | relocation |= (sym->st_other & 4); | 93 | relocation |= !!(sym->st_other & 4); |
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | switch (ELF32_R_TYPE(rel[i].r_info)) { | 96 | switch (ELF32_R_TYPE(rel[i].r_info)) { |
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 6d94725d22f2..9289ede29c7b 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
@@ -251,7 +251,8 @@ static void ubc_set_tracing(int asid, unsigned long pc) | |||
251 | 251 | ||
252 | if (current_cpu_data.type == CPU_SH7729 || | 252 | if (current_cpu_data.type == CPU_SH7729 || |
253 | current_cpu_data.type == CPU_SH7710 || | 253 | current_cpu_data.type == CPU_SH7710 || |
254 | current_cpu_data.type == CPU_SH7712) { | 254 | current_cpu_data.type == CPU_SH7712 || |
255 | current_cpu_data.type == CPU_SH7203){ | ||
255 | ctrl_outw(BBR_INST | BBR_READ | BBR_CPU, UBC_BBRA); | 256 | ctrl_outw(BBR_INST | BBR_READ | BBR_CPU, UBC_BBRA); |
256 | ctrl_outl(BRCR_PCBA | BRCR_PCTE, UBC_BRCR); | 257 | ctrl_outl(BRCR_PCBA | BRCR_PCTE, UBC_BRCR); |
257 | } else { | 258 | } else { |
@@ -407,6 +408,7 @@ asmlinkage void break_point_trap(void) | |||
407 | #else | 408 | #else |
408 | ctrl_outw(0, UBC_BBRA); | 409 | ctrl_outw(0, UBC_BBRA); |
409 | ctrl_outw(0, UBC_BBRB); | 410 | ctrl_outw(0, UBC_BBRB); |
411 | ctrl_outl(0, UBC_BRCR); | ||
410 | #endif | 412 | #endif |
411 | current->thread.ubc_pc = 0; | 413 | current->thread.ubc_pc = 0; |
412 | ubc_usercnt -= 1; | 414 | ubc_usercnt -= 1; |
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index f7b22dd83b0c..3392e835a374 100644 --- a/arch/sh/kernel/ptrace_32.c +++ b/arch/sh/kernel/ptrace_32.c | |||
@@ -334,6 +334,14 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
334 | [(addr - (long)&dummy->fpu) >> 2]; | 334 | [(addr - (long)&dummy->fpu) >> 2]; |
335 | } else if (addr == (long) &dummy->u_fpvalid) | 335 | } else if (addr == (long) &dummy->u_fpvalid) |
336 | tmp = !!tsk_used_math(child); | 336 | tmp = !!tsk_used_math(child); |
337 | else if (addr == PT_TEXT_ADDR) | ||
338 | tmp = child->mm->start_code; | ||
339 | else if (addr == PT_DATA_ADDR) | ||
340 | tmp = child->mm->start_data; | ||
341 | else if (addr == PT_TEXT_END_ADDR) | ||
342 | tmp = child->mm->end_code; | ||
343 | else if (addr == PT_TEXT_LEN) | ||
344 | tmp = child->mm->end_code - child->mm->start_code; | ||
337 | else | 345 | else |
338 | tmp = 0; | 346 | tmp = 0; |
339 | ret = put_user(tmp, datap); | 347 | ret = put_user(tmp, datap); |
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 04a6004fccc4..00086b234278 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/mmzone.h> | 29 | #include <linux/mmzone.h> |
30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include <linux/platform_device.h> | ||
32 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
33 | #include <asm/io.h> | 34 | #include <asm/io.h> |
34 | #include <asm/page.h> | 35 | #include <asm/page.h> |
@@ -155,7 +156,7 @@ static void __init reserve_crashkernel(void) | |||
155 | &crash_size, &crash_base); | 156 | &crash_size, &crash_base); |
156 | if (ret == 0 && crash_size) { | 157 | if (ret == 0 && crash_size) { |
157 | if (crash_base <= 0) { | 158 | if (crash_base <= 0) { |
158 | vp = alloc_bootmem_nopanic(crash_size); | 159 | vp = alloc_bootmem_nopanic(crash_size); |
159 | if (!vp) { | 160 | if (!vp) { |
160 | printk(KERN_INFO "crashkernel allocation " | 161 | printk(KERN_INFO "crashkernel allocation " |
161 | "failed\n"); | 162 | "failed\n"); |
@@ -184,7 +185,6 @@ static inline void __init reserve_crashkernel(void) | |||
184 | {} | 185 | {} |
185 | #endif | 186 | #endif |
186 | 187 | ||
187 | #ifndef CONFIG_GENERIC_CALIBRATE_DELAY | ||
188 | void __cpuinit calibrate_delay(void) | 188 | void __cpuinit calibrate_delay(void) |
189 | { | 189 | { |
190 | struct clk *clk = clk_get(NULL, "cpu_clk"); | 190 | struct clk *clk = clk_get(NULL, "cpu_clk"); |
@@ -200,7 +200,6 @@ void __cpuinit calibrate_delay(void) | |||
200 | (loops_per_jiffy/(5000/HZ)) % 100, | 200 | (loops_per_jiffy/(5000/HZ)) % 100, |
201 | loops_per_jiffy); | 201 | loops_per_jiffy); |
202 | } | 202 | } |
203 | #endif | ||
204 | 203 | ||
205 | void __init __add_active_range(unsigned int nid, unsigned long start_pfn, | 204 | void __init __add_active_range(unsigned int nid, unsigned long start_pfn, |
206 | unsigned long end_pfn) | 205 | unsigned long end_pfn) |
@@ -328,6 +327,10 @@ static int __init parse_elfcorehdr(char *arg) | |||
328 | early_param("elfcorehdr", parse_elfcorehdr); | 327 | early_param("elfcorehdr", parse_elfcorehdr); |
329 | #endif | 328 | #endif |
330 | 329 | ||
330 | void __init __attribute__ ((weak)) plat_early_device_setup(void) | ||
331 | { | ||
332 | } | ||
333 | |||
331 | void __init setup_arch(char **cmdline_p) | 334 | void __init setup_arch(char **cmdline_p) |
332 | { | 335 | { |
333 | enable_mmu(); | 336 | enable_mmu(); |
@@ -381,6 +384,8 @@ void __init setup_arch(char **cmdline_p) | |||
381 | 384 | ||
382 | parse_early_param(); | 385 | parse_early_param(); |
383 | 386 | ||
387 | plat_early_device_setup(); | ||
388 | |||
384 | sh_mv_setup(); | 389 | sh_mv_setup(); |
385 | 390 | ||
386 | /* | 391 | /* |
@@ -435,7 +440,8 @@ static const char *cpu_name[] = { | |||
435 | [CPU_SH7722] = "SH7722", [CPU_SHX3] = "SH-X3", | 440 | [CPU_SH7722] = "SH7722", [CPU_SHX3] = "SH-X3", |
436 | [CPU_SH5_101] = "SH5-101", [CPU_SH5_103] = "SH5-103", | 441 | [CPU_SH5_101] = "SH5-101", [CPU_SH5_103] = "SH5-103", |
437 | [CPU_MXG] = "MX-G", [CPU_SH7723] = "SH7723", | 442 | [CPU_MXG] = "MX-G", [CPU_SH7723] = "SH7723", |
438 | [CPU_SH7366] = "SH7366", [CPU_SH_NONE] = "Unknown" | 443 | [CPU_SH7366] = "SH7366", [CPU_SH7724] = "SH7724", |
444 | [CPU_SH_NONE] = "Unknown" | ||
439 | }; | 445 | }; |
440 | 446 | ||
441 | const char *get_cpu_subtype(struct sh_cpuinfo *c) | 447 | const char *get_cpu_subtype(struct sh_cpuinfo *c) |
diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c index 528de2955c81..fcc5de31f83b 100644 --- a/arch/sh/kernel/sh_ksyms_32.c +++ b/arch/sh/kernel/sh_ksyms_32.c | |||
@@ -19,14 +19,10 @@ | |||
19 | #include <asm/ftrace.h> | 19 | #include <asm/ftrace.h> |
20 | 20 | ||
21 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | 21 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); |
22 | extern struct hw_interrupt_type no_irq_type; | ||
23 | 22 | ||
24 | /* platform dependent support */ | 23 | /* platform dependent support */ |
25 | EXPORT_SYMBOL(dump_fpu); | 24 | EXPORT_SYMBOL(dump_fpu); |
26 | EXPORT_SYMBOL(kernel_thread); | 25 | EXPORT_SYMBOL(kernel_thread); |
27 | EXPORT_SYMBOL(irq_desc); | ||
28 | EXPORT_SYMBOL(no_irq_type); | ||
29 | |||
30 | EXPORT_SYMBOL(strlen); | 26 | EXPORT_SYMBOL(strlen); |
31 | 27 | ||
32 | /* PCI exports */ | 28 | /* PCI exports */ |
@@ -41,11 +37,6 @@ EXPORT_SYMBOL(memcpy); | |||
41 | EXPORT_SYMBOL(memset); | 37 | EXPORT_SYMBOL(memset); |
42 | EXPORT_SYMBOL(memmove); | 38 | EXPORT_SYMBOL(memmove); |
43 | EXPORT_SYMBOL(__copy_user); | 39 | EXPORT_SYMBOL(__copy_user); |
44 | |||
45 | #ifdef CONFIG_MMU | ||
46 | EXPORT_SYMBOL(get_vm_area); | ||
47 | #endif | ||
48 | |||
49 | EXPORT_SYMBOL(__udelay); | 40 | EXPORT_SYMBOL(__udelay); |
50 | EXPORT_SYMBOL(__ndelay); | 41 | EXPORT_SYMBOL(__ndelay); |
51 | EXPORT_SYMBOL(__const_udelay); | 42 | EXPORT_SYMBOL(__const_udelay); |
diff --git a/arch/sh/kernel/sh_ksyms_64.c b/arch/sh/kernel/sh_ksyms_64.c index 0d74d6b8774e..8f54ef0cfbca 100644 --- a/arch/sh/kernel/sh_ksyms_64.c +++ b/arch/sh/kernel/sh_ksyms_64.c | |||
@@ -76,5 +76,7 @@ EXPORT_SYMBOL(strcpy); | |||
76 | #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name) | 76 | #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name) |
77 | 77 | ||
78 | DECLARE_EXPORT(__sdivsi3); | 78 | DECLARE_EXPORT(__sdivsi3); |
79 | DECLARE_EXPORT(__sdivsi3_1); | ||
80 | DECLARE_EXPORT(__sdivsi3_2); | ||
79 | DECLARE_EXPORT(__udivsi3); | 81 | DECLARE_EXPORT(__udivsi3); |
80 | DECLARE_EXPORT(__div_table); | 82 | DECLARE_EXPORT(__div_table); |
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c new file mode 100644 index 000000000000..2edde32c764b --- /dev/null +++ b/arch/sh/kernel/time.c | |||
@@ -0,0 +1,125 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/time.c | ||
3 | * | ||
4 | * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka | ||
5 | * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org> | ||
6 | * Copyright (C) 2002 - 2009 Paul Mundt | ||
7 | * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org> | ||
8 | * | ||
9 | * This file is subject to the terms and conditions of the GNU General Public | ||
10 | * License. See the file "COPYING" in the main directory of this archive | ||
11 | * for more details. | ||
12 | */ | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/module.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/profile.h> | ||
17 | #include <linux/timex.h> | ||
18 | #include <linux/sched.h> | ||
19 | #include <linux/clockchips.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/smp.h> | ||
22 | #include <linux/rtc.h> | ||
23 | #include <asm/clock.h> | ||
24 | #include <asm/rtc.h> | ||
25 | |||
26 | /* Dummy RTC ops */ | ||
27 | static void null_rtc_get_time(struct timespec *tv) | ||
28 | { | ||
29 | tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); | ||
30 | tv->tv_nsec = 0; | ||
31 | } | ||
32 | |||
33 | static int null_rtc_set_time(const time_t secs) | ||
34 | { | ||
35 | return 0; | ||
36 | } | ||
37 | |||
38 | void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time; | ||
39 | int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time; | ||
40 | |||
41 | #ifdef CONFIG_GENERIC_CMOS_UPDATE | ||
42 | unsigned long read_persistent_clock(void) | ||
43 | { | ||
44 | struct timespec tv; | ||
45 | rtc_sh_get_time(&tv); | ||
46 | return tv.tv_sec; | ||
47 | } | ||
48 | |||
49 | int update_persistent_clock(struct timespec now) | ||
50 | { | ||
51 | return rtc_sh_set_time(now.tv_sec); | ||
52 | } | ||
53 | #endif | ||
54 | |||
55 | unsigned int get_rtc_time(struct rtc_time *tm) | ||
56 | { | ||
57 | if (rtc_sh_get_time != null_rtc_get_time) { | ||
58 | struct timespec tv; | ||
59 | |||
60 | rtc_sh_get_time(&tv); | ||
61 | rtc_time_to_tm(tv.tv_sec, tm); | ||
62 | } | ||
63 | |||
64 | return RTC_24H; | ||
65 | } | ||
66 | EXPORT_SYMBOL(get_rtc_time); | ||
67 | |||
68 | int set_rtc_time(struct rtc_time *tm) | ||
69 | { | ||
70 | unsigned long secs; | ||
71 | |||
72 | rtc_tm_to_time(tm, &secs); | ||
73 | return rtc_sh_set_time(secs); | ||
74 | } | ||
75 | EXPORT_SYMBOL(set_rtc_time); | ||
76 | |||
77 | static int __init rtc_generic_init(void) | ||
78 | { | ||
79 | struct platform_device *pdev; | ||
80 | |||
81 | if (rtc_sh_get_time == null_rtc_get_time) | ||
82 | return -ENODEV; | ||
83 | |||
84 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); | ||
85 | if (IS_ERR(pdev)) | ||
86 | return PTR_ERR(pdev); | ||
87 | |||
88 | return 0; | ||
89 | } | ||
90 | module_init(rtc_generic_init); | ||
91 | |||
92 | void (*board_time_init)(void); | ||
93 | |||
94 | unsigned long long sched_clock(void) | ||
95 | { | ||
96 | return (jiffies_64 - INITIAL_JIFFIES) * (NSEC_PER_SEC / HZ); | ||
97 | } | ||
98 | |||
99 | static void __init sh_late_time_init(void) | ||
100 | { | ||
101 | /* | ||
102 | * Make sure all compiled-in early timers register themselves. | ||
103 | * Run probe() for one "earlytimer" device. | ||
104 | */ | ||
105 | early_platform_driver_register_all("earlytimer"); | ||
106 | early_platform_driver_probe("earlytimer", 1, 0); | ||
107 | } | ||
108 | |||
109 | void __init time_init(void) | ||
110 | { | ||
111 | if (board_time_init) | ||
112 | board_time_init(); | ||
113 | |||
114 | clk_init(); | ||
115 | |||
116 | rtc_sh_get_time(&xtime); | ||
117 | set_normalized_timespec(&wall_to_monotonic, | ||
118 | -xtime.tv_sec, -xtime.tv_nsec); | ||
119 | |||
120 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST | ||
121 | local_timer_setup(smp_processor_id()); | ||
122 | #endif | ||
123 | |||
124 | late_time_init = sh_late_time_init; | ||
125 | } | ||
diff --git a/arch/sh/kernel/time_32.c b/arch/sh/kernel/time_32.c deleted file mode 100644 index 1700d2465f6c..000000000000 --- a/arch/sh/kernel/time_32.c +++ /dev/null | |||
@@ -1,240 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/time_32.c | ||
3 | * | ||
4 | * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka | ||
5 | * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org> | ||
6 | * Copyright (C) 2002 - 2008 Paul Mundt | ||
7 | * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org> | ||
8 | * | ||
9 | * Some code taken from i386 version. | ||
10 | * Copyright (C) 1991, 1992, 1995 Linus Torvalds | ||
11 | */ | ||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/profile.h> | ||
16 | #include <linux/timex.h> | ||
17 | #include <linux/sched.h> | ||
18 | #include <linux/clockchips.h> | ||
19 | #include <linux/mc146818rtc.h> /* for rtc_lock */ | ||
20 | #include <linux/smp.h> | ||
21 | #include <asm/clock.h> | ||
22 | #include <asm/rtc.h> | ||
23 | #include <asm/timer.h> | ||
24 | #include <asm/kgdb.h> | ||
25 | |||
26 | struct sys_timer *sys_timer; | ||
27 | |||
28 | /* Move this somewhere more sensible.. */ | ||
29 | DEFINE_SPINLOCK(rtc_lock); | ||
30 | EXPORT_SYMBOL(rtc_lock); | ||
31 | |||
32 | /* Dummy RTC ops */ | ||
33 | static void null_rtc_get_time(struct timespec *tv) | ||
34 | { | ||
35 | tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); | ||
36 | tv->tv_nsec = 0; | ||
37 | } | ||
38 | |||
39 | static int null_rtc_set_time(const time_t secs) | ||
40 | { | ||
41 | return 0; | ||
42 | } | ||
43 | |||
44 | void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time; | ||
45 | int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time; | ||
46 | |||
47 | #ifndef CONFIG_GENERIC_TIME | ||
48 | void do_gettimeofday(struct timeval *tv) | ||
49 | { | ||
50 | unsigned long flags; | ||
51 | unsigned long seq; | ||
52 | unsigned long usec, sec; | ||
53 | |||
54 | do { | ||
55 | /* | ||
56 | * Turn off IRQs when grabbing xtime_lock, so that | ||
57 | * the sys_timer get_offset code doesn't have to handle it. | ||
58 | */ | ||
59 | seq = read_seqbegin_irqsave(&xtime_lock, flags); | ||
60 | usec = get_timer_offset(); | ||
61 | sec = xtime.tv_sec; | ||
62 | usec += xtime.tv_nsec / NSEC_PER_USEC; | ||
63 | } while (read_seqretry_irqrestore(&xtime_lock, seq, flags)); | ||
64 | |||
65 | while (usec >= 1000000) { | ||
66 | usec -= 1000000; | ||
67 | sec++; | ||
68 | } | ||
69 | |||
70 | tv->tv_sec = sec; | ||
71 | tv->tv_usec = usec; | ||
72 | } | ||
73 | EXPORT_SYMBOL(do_gettimeofday); | ||
74 | |||
75 | int do_settimeofday(struct timespec *tv) | ||
76 | { | ||
77 | time_t wtm_sec, sec = tv->tv_sec; | ||
78 | long wtm_nsec, nsec = tv->tv_nsec; | ||
79 | |||
80 | if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC) | ||
81 | return -EINVAL; | ||
82 | |||
83 | write_seqlock_irq(&xtime_lock); | ||
84 | /* | ||
85 | * This is revolting. We need to set "xtime" correctly. However, the | ||
86 | * value in this location is the value at the most recent update of | ||
87 | * wall time. Discover what correction gettimeofday() would have | ||
88 | * made, and then undo it! | ||
89 | */ | ||
90 | nsec -= get_timer_offset() * NSEC_PER_USEC; | ||
91 | |||
92 | wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec); | ||
93 | wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); | ||
94 | |||
95 | set_normalized_timespec(&xtime, sec, nsec); | ||
96 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); | ||
97 | |||
98 | ntp_clear(); | ||
99 | write_sequnlock_irq(&xtime_lock); | ||
100 | clock_was_set(); | ||
101 | |||
102 | return 0; | ||
103 | } | ||
104 | EXPORT_SYMBOL(do_settimeofday); | ||
105 | #endif /* !CONFIG_GENERIC_TIME */ | ||
106 | |||
107 | /* last time the RTC clock got updated */ | ||
108 | static long last_rtc_update; | ||
109 | |||
110 | /* | ||
111 | * handle_timer_tick() needs to keep up the real-time clock, | ||
112 | * as well as call the "do_timer()" routine every clocktick | ||
113 | */ | ||
114 | void handle_timer_tick(void) | ||
115 | { | ||
116 | if (current->pid) | ||
117 | profile_tick(CPU_PROFILING); | ||
118 | |||
119 | /* | ||
120 | * Here we are in the timer irq handler. We just have irqs locally | ||
121 | * disabled but we don't know if the timer_bh is running on the other | ||
122 | * CPU. We need to avoid to SMP race with it. NOTE: we don' t need | ||
123 | * the irq version of write_lock because as just said we have irq | ||
124 | * locally disabled. -arca | ||
125 | */ | ||
126 | write_seqlock(&xtime_lock); | ||
127 | do_timer(1); | ||
128 | |||
129 | /* | ||
130 | * If we have an externally synchronized Linux clock, then update | ||
131 | * RTC clock accordingly every ~11 minutes. Set_rtc_mmss() has to be | ||
132 | * called as close as possible to 500 ms before the new second starts. | ||
133 | */ | ||
134 | if (ntp_synced() && | ||
135 | xtime.tv_sec > last_rtc_update + 660 && | ||
136 | (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 && | ||
137 | (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) { | ||
138 | if (rtc_sh_set_time(xtime.tv_sec) == 0) | ||
139 | last_rtc_update = xtime.tv_sec; | ||
140 | else | ||
141 | /* do it again in 60s */ | ||
142 | last_rtc_update = xtime.tv_sec - 600; | ||
143 | } | ||
144 | write_sequnlock(&xtime_lock); | ||
145 | |||
146 | #ifndef CONFIG_SMP | ||
147 | update_process_times(user_mode(get_irq_regs())); | ||
148 | #endif | ||
149 | } | ||
150 | |||
151 | #ifdef CONFIG_PM | ||
152 | int timer_suspend(struct sys_device *dev, pm_message_t state) | ||
153 | { | ||
154 | struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev); | ||
155 | |||
156 | sys_timer->ops->stop(); | ||
157 | |||
158 | return 0; | ||
159 | } | ||
160 | |||
161 | int timer_resume(struct sys_device *dev) | ||
162 | { | ||
163 | struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev); | ||
164 | |||
165 | sys_timer->ops->start(); | ||
166 | |||
167 | return 0; | ||
168 | } | ||
169 | #else | ||
170 | #define timer_suspend NULL | ||
171 | #define timer_resume NULL | ||
172 | #endif | ||
173 | |||
174 | static struct sysdev_class timer_sysclass = { | ||
175 | .name = "timer", | ||
176 | .suspend = timer_suspend, | ||
177 | .resume = timer_resume, | ||
178 | }; | ||
179 | |||
180 | static int __init timer_init_sysfs(void) | ||
181 | { | ||
182 | int ret; | ||
183 | |||
184 | if (!sys_timer) | ||
185 | return 0; | ||
186 | |||
187 | ret = sysdev_class_register(&timer_sysclass); | ||
188 | if (ret != 0) | ||
189 | return ret; | ||
190 | |||
191 | sys_timer->dev.cls = &timer_sysclass; | ||
192 | return sysdev_register(&sys_timer->dev); | ||
193 | } | ||
194 | device_initcall(timer_init_sysfs); | ||
195 | |||
196 | void (*board_time_init)(void); | ||
197 | |||
198 | struct clocksource clocksource_sh = { | ||
199 | .name = "SuperH", | ||
200 | }; | ||
201 | |||
202 | #ifdef CONFIG_GENERIC_TIME | ||
203 | unsigned long long sched_clock(void) | ||
204 | { | ||
205 | unsigned long long cycles; | ||
206 | |||
207 | /* jiffies based sched_clock if no clocksource is installed */ | ||
208 | if (!clocksource_sh.rating) | ||
209 | return (unsigned long long)jiffies * (NSEC_PER_SEC / HZ); | ||
210 | |||
211 | cycles = clocksource_sh.read(&clocksource_sh); | ||
212 | return cyc2ns(&clocksource_sh, cycles); | ||
213 | } | ||
214 | #endif | ||
215 | |||
216 | void __init time_init(void) | ||
217 | { | ||
218 | if (board_time_init) | ||
219 | board_time_init(); | ||
220 | |||
221 | clk_init(); | ||
222 | |||
223 | rtc_sh_get_time(&xtime); | ||
224 | set_normalized_timespec(&wall_to_monotonic, | ||
225 | -xtime.tv_sec, -xtime.tv_nsec); | ||
226 | |||
227 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST | ||
228 | local_timer_setup(smp_processor_id()); | ||
229 | #endif | ||
230 | |||
231 | /* | ||
232 | * Find the timer to use as the system timer, it will be | ||
233 | * initialized for us. | ||
234 | */ | ||
235 | sys_timer = get_sys_timer(); | ||
236 | if (unlikely(!sys_timer)) | ||
237 | panic("System timer missing.\n"); | ||
238 | |||
239 | printk(KERN_INFO "Using %s for system timer\n", sys_timer->name); | ||
240 | } | ||
diff --git a/arch/sh/kernel/time_64.c b/arch/sh/kernel/time_64.c deleted file mode 100644 index 988c77c37231..000000000000 --- a/arch/sh/kernel/time_64.c +++ /dev/null | |||
@@ -1,363 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/time_64.c | ||
3 | * | ||
4 | * Copyright (C) 2000, 2001 Paolo Alberelli | ||
5 | * Copyright (C) 2003 - 2007 Paul Mundt | ||
6 | * Copyright (C) 2003 Richard Curnow | ||
7 | * | ||
8 | * Original TMU/RTC code taken from sh version. | ||
9 | * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka | ||
10 | * Some code taken from i386 version. | ||
11 | * Copyright (C) 1991, 1992, 1995 Linus Torvalds | ||
12 | * | ||
13 | * This file is subject to the terms and conditions of the GNU General Public | ||
14 | * License. See the file "COPYING" in the main directory of this archive | ||
15 | * for more details. | ||
16 | */ | ||
17 | #include <linux/errno.h> | ||
18 | #include <linux/rwsem.h> | ||
19 | #include <linux/sched.h> | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/param.h> | ||
22 | #include <linux/string.h> | ||
23 | #include <linux/mm.h> | ||
24 | #include <linux/interrupt.h> | ||
25 | #include <linux/time.h> | ||
26 | #include <linux/delay.h> | ||
27 | #include <linux/init.h> | ||
28 | #include <linux/profile.h> | ||
29 | #include <linux/smp.h> | ||
30 | #include <linux/module.h> | ||
31 | #include <linux/bcd.h> | ||
32 | #include <linux/timex.h> | ||
33 | #include <linux/irq.h> | ||
34 | #include <linux/io.h> | ||
35 | #include <linux/platform_device.h> | ||
36 | #include <cpu/registers.h> /* required by inline __asm__ stmt. */ | ||
37 | #include <cpu/irq.h> | ||
38 | #include <asm/addrspace.h> | ||
39 | #include <asm/processor.h> | ||
40 | #include <asm/uaccess.h> | ||
41 | #include <asm/delay.h> | ||
42 | #include <asm/clock.h> | ||
43 | |||
44 | #define TMU_TOCR_INIT 0x00 | ||
45 | #define TMU0_TCR_INIT 0x0020 | ||
46 | #define TMU_TSTR_INIT 1 | ||
47 | #define TMU_TSTR_OFF 0 | ||
48 | |||
49 | /* Real Time Clock */ | ||
50 | #define RTC_BLOCK_OFF 0x01040000 | ||
51 | #define RTC_BASE PHYS_PERIPHERAL_BLOCK + RTC_BLOCK_OFF | ||
52 | #define RTC_RCR1_CIE 0x10 /* Carry Interrupt Enable */ | ||
53 | #define RTC_RCR1 (rtc_base + 0x38) | ||
54 | |||
55 | /* Time Management Unit */ | ||
56 | #define TMU_BLOCK_OFF 0x01020000 | ||
57 | #define TMU_BASE PHYS_PERIPHERAL_BLOCK + TMU_BLOCK_OFF | ||
58 | #define TMU0_BASE tmu_base + 0x8 + (0xc * 0x0) | ||
59 | #define TMU1_BASE tmu_base + 0x8 + (0xc * 0x1) | ||
60 | #define TMU2_BASE tmu_base + 0x8 + (0xc * 0x2) | ||
61 | |||
62 | #define TMU_TOCR tmu_base+0x0 /* Byte access */ | ||
63 | #define TMU_TSTR tmu_base+0x4 /* Byte access */ | ||
64 | |||
65 | #define TMU0_TCOR TMU0_BASE+0x0 /* Long access */ | ||
66 | #define TMU0_TCNT TMU0_BASE+0x4 /* Long access */ | ||
67 | #define TMU0_TCR TMU0_BASE+0x8 /* Word access */ | ||
68 | |||
69 | #define TICK_SIZE (tick_nsec / 1000) | ||
70 | |||
71 | static unsigned long tmu_base, rtc_base; | ||
72 | unsigned long cprc_base; | ||
73 | |||
74 | /* Variables to allow interpolation of time of day to resolution better than a | ||
75 | * jiffy. */ | ||
76 | |||
77 | /* This is effectively protected by xtime_lock */ | ||
78 | static unsigned long ctc_last_interrupt; | ||
79 | static unsigned long long usecs_per_jiffy = 1000000/HZ; /* Approximation */ | ||
80 | |||
81 | #define CTC_JIFFY_SCALE_SHIFT 40 | ||
82 | |||
83 | /* 2**CTC_JIFFY_SCALE_SHIFT / ctc_ticks_per_jiffy */ | ||
84 | static unsigned long long scaled_recip_ctc_ticks_per_jiffy; | ||
85 | |||
86 | /* Estimate number of microseconds that have elapsed since the last timer tick, | ||
87 | by scaling the delta that has occurred in the CTC register. | ||
88 | |||
89 | WARNING WARNING WARNING : This algorithm relies on the CTC decrementing at | ||
90 | the CPU clock rate. If the CPU sleeps, the CTC stops counting. Bear this | ||
91 | in mind if enabling SLEEP_WORKS in process.c. In that case, this algorithm | ||
92 | probably needs to use TMU.TCNT0 instead. This will work even if the CPU is | ||
93 | sleeping, though will be coarser. | ||
94 | |||
95 | FIXME : What if usecs_per_tick is moving around too much, e.g. if an adjtime | ||
96 | is running or if the freq or tick arguments of adjtimex are modified after | ||
97 | we have calibrated the scaling factor? This will result in either a jump at | ||
98 | the end of a tick period, or a wrap backwards at the start of the next one, | ||
99 | if the application is reading the time of day often enough. I think we | ||
100 | ought to do better than this. For this reason, usecs_per_jiffy is left | ||
101 | separated out in the calculation below. This allows some future hook into | ||
102 | the adjtime-related stuff in kernel/timer.c to remove this hazard. | ||
103 | |||
104 | */ | ||
105 | |||
106 | static unsigned long usecs_since_tick(void) | ||
107 | { | ||
108 | unsigned long long current_ctc; | ||
109 | long ctc_ticks_since_interrupt; | ||
110 | unsigned long long ull_ctc_ticks_since_interrupt; | ||
111 | unsigned long result; | ||
112 | |||
113 | unsigned long long mul1_out; | ||
114 | unsigned long long mul1_out_high; | ||
115 | unsigned long long mul2_out_low, mul2_out_high; | ||
116 | |||
117 | /* Read CTC register */ | ||
118 | asm ("getcon cr62, %0" : "=r" (current_ctc)); | ||
119 | /* Note, the CTC counts down on each CPU clock, not up. | ||
120 | Note(2), use long type to get correct wraparound arithmetic when | ||
121 | the counter crosses zero. */ | ||
122 | ctc_ticks_since_interrupt = (long) ctc_last_interrupt - (long) current_ctc; | ||
123 | ull_ctc_ticks_since_interrupt = (unsigned long long) ctc_ticks_since_interrupt; | ||
124 | |||
125 | /* Inline assembly to do 32x32x32->64 multiplier */ | ||
126 | asm volatile ("mulu.l %1, %2, %0" : | ||
127 | "=r" (mul1_out) : | ||
128 | "r" (ull_ctc_ticks_since_interrupt), "r" (usecs_per_jiffy)); | ||
129 | |||
130 | mul1_out_high = mul1_out >> 32; | ||
131 | |||
132 | asm volatile ("mulu.l %1, %2, %0" : | ||
133 | "=r" (mul2_out_low) : | ||
134 | "r" (mul1_out), "r" (scaled_recip_ctc_ticks_per_jiffy)); | ||
135 | |||
136 | #if 1 | ||
137 | asm volatile ("mulu.l %1, %2, %0" : | ||
138 | "=r" (mul2_out_high) : | ||
139 | "r" (mul1_out_high), "r" (scaled_recip_ctc_ticks_per_jiffy)); | ||
140 | #endif | ||
141 | |||
142 | result = (unsigned long) (((mul2_out_high << 32) + mul2_out_low) >> CTC_JIFFY_SCALE_SHIFT); | ||
143 | |||
144 | return result; | ||
145 | } | ||
146 | |||
147 | void do_gettimeofday(struct timeval *tv) | ||
148 | { | ||
149 | unsigned long flags; | ||
150 | unsigned long seq; | ||
151 | unsigned long usec, sec; | ||
152 | |||
153 | do { | ||
154 | seq = read_seqbegin_irqsave(&xtime_lock, flags); | ||
155 | usec = usecs_since_tick(); | ||
156 | sec = xtime.tv_sec; | ||
157 | usec += xtime.tv_nsec / 1000; | ||
158 | } while (read_seqretry_irqrestore(&xtime_lock, seq, flags)); | ||
159 | |||
160 | while (usec >= 1000000) { | ||
161 | usec -= 1000000; | ||
162 | sec++; | ||
163 | } | ||
164 | |||
165 | tv->tv_sec = sec; | ||
166 | tv->tv_usec = usec; | ||
167 | } | ||
168 | EXPORT_SYMBOL(do_gettimeofday); | ||
169 | |||
170 | int do_settimeofday(struct timespec *tv) | ||
171 | { | ||
172 | time_t wtm_sec, sec = tv->tv_sec; | ||
173 | long wtm_nsec, nsec = tv->tv_nsec; | ||
174 | |||
175 | if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC) | ||
176 | return -EINVAL; | ||
177 | |||
178 | write_seqlock_irq(&xtime_lock); | ||
179 | /* | ||
180 | * This is revolting. We need to set "xtime" correctly. However, the | ||
181 | * value in this location is the value at the most recent update of | ||
182 | * wall time. Discover what correction gettimeofday() would have | ||
183 | * made, and then undo it! | ||
184 | */ | ||
185 | nsec -= 1000 * usecs_since_tick(); | ||
186 | |||
187 | wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec); | ||
188 | wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); | ||
189 | |||
190 | set_normalized_timespec(&xtime, sec, nsec); | ||
191 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); | ||
192 | |||
193 | ntp_clear(); | ||
194 | write_sequnlock_irq(&xtime_lock); | ||
195 | clock_was_set(); | ||
196 | |||
197 | return 0; | ||
198 | } | ||
199 | EXPORT_SYMBOL(do_settimeofday); | ||
200 | |||
201 | /* Dummy RTC ops */ | ||
202 | static void null_rtc_get_time(struct timespec *tv) | ||
203 | { | ||
204 | tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); | ||
205 | tv->tv_nsec = 0; | ||
206 | } | ||
207 | |||
208 | static int null_rtc_set_time(const time_t secs) | ||
209 | { | ||
210 | return 0; | ||
211 | } | ||
212 | |||
213 | void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time; | ||
214 | int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time; | ||
215 | |||
216 | /* last time the RTC clock got updated */ | ||
217 | static long last_rtc_update; | ||
218 | |||
219 | /* | ||
220 | * timer_interrupt() needs to keep up the real-time clock, | ||
221 | * as well as call the "do_timer()" routine every clocktick | ||
222 | */ | ||
223 | static inline void do_timer_interrupt(void) | ||
224 | { | ||
225 | unsigned long long current_ctc; | ||
226 | |||
227 | if (current->pid) | ||
228 | profile_tick(CPU_PROFILING); | ||
229 | |||
230 | /* | ||
231 | * Here we are in the timer irq handler. We just have irqs locally | ||
232 | * disabled but we don't know if the timer_bh is running on the other | ||
233 | * CPU. We need to avoid to SMP race with it. NOTE: we don' t need | ||
234 | * the irq version of write_lock because as just said we have irq | ||
235 | * locally disabled. -arca | ||
236 | */ | ||
237 | write_seqlock(&xtime_lock); | ||
238 | asm ("getcon cr62, %0" : "=r" (current_ctc)); | ||
239 | ctc_last_interrupt = (unsigned long) current_ctc; | ||
240 | |||
241 | do_timer(1); | ||
242 | |||
243 | /* | ||
244 | * If we have an externally synchronized Linux clock, then update | ||
245 | * RTC clock accordingly every ~11 minutes. Set_rtc_mmss() has to be | ||
246 | * called as close as possible to 500 ms before the new second starts. | ||
247 | */ | ||
248 | if (ntp_synced() && | ||
249 | xtime.tv_sec > last_rtc_update + 660 && | ||
250 | (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 && | ||
251 | (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) { | ||
252 | if (rtc_sh_set_time(xtime.tv_sec) == 0) | ||
253 | last_rtc_update = xtime.tv_sec; | ||
254 | else | ||
255 | /* do it again in 60 s */ | ||
256 | last_rtc_update = xtime.tv_sec - 600; | ||
257 | } | ||
258 | write_sequnlock(&xtime_lock); | ||
259 | |||
260 | #ifndef CONFIG_SMP | ||
261 | update_process_times(user_mode(get_irq_regs())); | ||
262 | #endif | ||
263 | } | ||
264 | |||
265 | /* | ||
266 | * This is the same as the above, except we _also_ save the current | ||
267 | * Time Stamp Counter value at the time of the timer interrupt, so that | ||
268 | * we later on can estimate the time of day more exactly. | ||
269 | */ | ||
270 | static irqreturn_t timer_interrupt(int irq, void *dev_id) | ||
271 | { | ||
272 | unsigned long timer_status; | ||
273 | |||
274 | /* Clear UNF bit */ | ||
275 | timer_status = ctrl_inw(TMU0_TCR); | ||
276 | timer_status &= ~0x100; | ||
277 | ctrl_outw(timer_status, TMU0_TCR); | ||
278 | |||
279 | do_timer_interrupt(); | ||
280 | |||
281 | return IRQ_HANDLED; | ||
282 | } | ||
283 | |||
284 | static struct irqaction irq0 = { | ||
285 | .handler = timer_interrupt, | ||
286 | .flags = IRQF_DISABLED, | ||
287 | .name = "timer", | ||
288 | }; | ||
289 | |||
290 | void __init time_init(void) | ||
291 | { | ||
292 | unsigned long interval; | ||
293 | struct clk *clk; | ||
294 | |||
295 | tmu_base = onchip_remap(TMU_BASE, 1024, "TMU"); | ||
296 | if (!tmu_base) { | ||
297 | panic("Unable to remap TMU\n"); | ||
298 | } | ||
299 | |||
300 | rtc_base = onchip_remap(RTC_BASE, 1024, "RTC"); | ||
301 | if (!rtc_base) { | ||
302 | panic("Unable to remap RTC\n"); | ||
303 | } | ||
304 | |||
305 | clk = clk_get(NULL, "cpu_clk"); | ||
306 | scaled_recip_ctc_ticks_per_jiffy = ((1ULL << CTC_JIFFY_SCALE_SHIFT) / | ||
307 | (unsigned long long)(clk_get_rate(clk) / HZ)); | ||
308 | |||
309 | rtc_sh_get_time(&xtime); | ||
310 | |||
311 | setup_irq(TIMER_IRQ, &irq0); | ||
312 | |||
313 | clk = clk_get(NULL, "module_clk"); | ||
314 | interval = (clk_get_rate(clk)/(HZ*4)); | ||
315 | |||
316 | printk("Interval = %ld\n", interval); | ||
317 | |||
318 | /* Start TMU0 */ | ||
319 | ctrl_outb(TMU_TSTR_OFF, TMU_TSTR); | ||
320 | ctrl_outb(TMU_TOCR_INIT, TMU_TOCR); | ||
321 | ctrl_outw(TMU0_TCR_INIT, TMU0_TCR); | ||
322 | ctrl_outl(interval, TMU0_TCOR); | ||
323 | ctrl_outl(interval, TMU0_TCNT); | ||
324 | ctrl_outb(TMU_TSTR_INIT, TMU_TSTR); | ||
325 | } | ||
326 | |||
327 | static struct resource rtc_resources[] = { | ||
328 | [0] = { | ||
329 | /* RTC base, filled in by rtc_init */ | ||
330 | .flags = IORESOURCE_IO, | ||
331 | }, | ||
332 | [1] = { | ||
333 | /* Period IRQ */ | ||
334 | .start = IRQ_PRI, | ||
335 | .flags = IORESOURCE_IRQ, | ||
336 | }, | ||
337 | [2] = { | ||
338 | /* Carry IRQ */ | ||
339 | .start = IRQ_CUI, | ||
340 | .flags = IORESOURCE_IRQ, | ||
341 | }, | ||
342 | [3] = { | ||
343 | /* Alarm IRQ */ | ||
344 | .start = IRQ_ATI, | ||
345 | .flags = IORESOURCE_IRQ, | ||
346 | }, | ||
347 | }; | ||
348 | |||
349 | static struct platform_device rtc_device = { | ||
350 | .name = "sh-rtc", | ||
351 | .id = -1, | ||
352 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
353 | .resource = rtc_resources, | ||
354 | }; | ||
355 | |||
356 | static int __init rtc_init(void) | ||
357 | { | ||
358 | rtc_resources[0].start = rtc_base; | ||
359 | rtc_resources[0].end = rtc_resources[0].start + 0x58 - 1; | ||
360 | |||
361 | return platform_device_register(&rtc_device); | ||
362 | } | ||
363 | device_initcall(rtc_init); | ||
diff --git a/arch/sh/kernel/timers/Makefile b/arch/sh/kernel/timers/Makefile deleted file mode 100644 index 0b7f8577193f..000000000000 --- a/arch/sh/kernel/timers/Makefile +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for the various Linux/SuperH timers | ||
3 | # | ||
4 | |||
5 | obj-y := timer.o | ||
6 | |||
7 | obj-$(CONFIG_SH_TMU) += timer-tmu.o | ||
8 | obj-$(CONFIG_SH_MTU2) += timer-mtu2.o | ||
9 | obj-$(CONFIG_SH_CMT) += timer-cmt.o | ||
10 | |||
11 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) += timer-broadcast.o | ||
diff --git a/arch/sh/kernel/timers/timer-cmt.c b/arch/sh/kernel/timers/timer-cmt.c deleted file mode 100644 index 9aa348658ae3..000000000000 --- a/arch/sh/kernel/timers/timer-cmt.c +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/timers/timer-cmt.c - CMT Timer Support | ||
3 | * | ||
4 | * Copyright (C) 2005 Yoshinori Sato | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #include <linux/init.h> | ||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/interrupt.h> | ||
14 | #include <linux/seqlock.h> | ||
15 | #include <asm/timer.h> | ||
16 | #include <asm/rtc.h> | ||
17 | #include <asm/io.h> | ||
18 | #include <asm/irq.h> | ||
19 | #include <asm/clock.h> | ||
20 | |||
21 | #if defined(CONFIG_CPU_SUBTYPE_SH7619) | ||
22 | #define CMT_CMSTR 0xf84a0070 | ||
23 | #define CMT_CMCSR_0 0xf84a0072 | ||
24 | #define CMT_CMCNT_0 0xf84a0074 | ||
25 | #define CMT_CMCOR_0 0xf84a0076 | ||
26 | #define CMT_CMCSR_1 0xf84a0078 | ||
27 | #define CMT_CMCNT_1 0xf84a007a | ||
28 | #define CMT_CMCOR_1 0xf84a007c | ||
29 | |||
30 | #define STBCR3 0xf80a0000 | ||
31 | #define cmt_clock_enable() do { ctrl_outb(ctrl_inb(STBCR3) & ~0x10, STBCR3); } while(0) | ||
32 | #define CMT_CMCSR_INIT 0x0040 | ||
33 | #define CMT_CMCSR_CALIB 0x0000 | ||
34 | #elif defined(CONFIG_CPU_SUBTYPE_SH7203) || \ | ||
35 | defined(CONFIG_CPU_SUBTYPE_SH7206) || \ | ||
36 | defined(CONFIG_CPU_SUBTYPE_SH7263) | ||
37 | #define CMT_CMSTR 0xfffec000 | ||
38 | #define CMT_CMCSR_0 0xfffec002 | ||
39 | #define CMT_CMCNT_0 0xfffec004 | ||
40 | #define CMT_CMCOR_0 0xfffec006 | ||
41 | |||
42 | #define STBCR4 0xfffe040c | ||
43 | #define cmt_clock_enable() do { ctrl_outb(ctrl_inb(STBCR4) & ~0x04, STBCR4); } while(0) | ||
44 | #define CMT_CMCSR_INIT 0x0040 | ||
45 | #define CMT_CMCSR_CALIB 0x0000 | ||
46 | #else | ||
47 | #error "Unknown CPU SUBTYPE" | ||
48 | #endif | ||
49 | |||
50 | static unsigned long cmt_timer_get_offset(void) | ||
51 | { | ||
52 | int count; | ||
53 | static unsigned short count_p = 0xffff; /* for the first call after boot */ | ||
54 | static unsigned long jiffies_p = 0; | ||
55 | |||
56 | /* | ||
57 | * cache volatile jiffies temporarily; we have IRQs turned off. | ||
58 | */ | ||
59 | unsigned long jiffies_t; | ||
60 | |||
61 | /* timer count may underflow right here */ | ||
62 | count = ctrl_inw(CMT_CMCOR_0); | ||
63 | count -= ctrl_inw(CMT_CMCNT_0); | ||
64 | |||
65 | jiffies_t = jiffies; | ||
66 | |||
67 | /* | ||
68 | * avoiding timer inconsistencies (they are rare, but they happen)... | ||
69 | * there is one kind of problem that must be avoided here: | ||
70 | * 1. the timer counter underflows | ||
71 | */ | ||
72 | |||
73 | if (jiffies_t == jiffies_p) { | ||
74 | if (count > count_p) { | ||
75 | /* the nutcase */ | ||
76 | if (ctrl_inw(CMT_CMCSR_0) & 0x80) { /* Check CMF bit */ | ||
77 | count -= LATCH; | ||
78 | } else { | ||
79 | printk("%s (): hardware timer problem?\n", | ||
80 | __func__); | ||
81 | } | ||
82 | } | ||
83 | } else | ||
84 | jiffies_p = jiffies_t; | ||
85 | |||
86 | count_p = count; | ||
87 | |||
88 | count = ((LATCH-1) - count) * TICK_SIZE; | ||
89 | count = (count + LATCH/2) / LATCH; | ||
90 | |||
91 | return count; | ||
92 | } | ||
93 | |||
94 | static irqreturn_t cmt_timer_interrupt(int irq, void *dev_id) | ||
95 | { | ||
96 | unsigned long timer_status; | ||
97 | |||
98 | /* Clear CMF bit */ | ||
99 | timer_status = ctrl_inw(CMT_CMCSR_0); | ||
100 | timer_status &= ~0x80; | ||
101 | ctrl_outw(timer_status, CMT_CMCSR_0); | ||
102 | |||
103 | handle_timer_tick(); | ||
104 | |||
105 | return IRQ_HANDLED; | ||
106 | } | ||
107 | |||
108 | static struct irqaction cmt_irq = { | ||
109 | .name = "timer", | ||
110 | .handler = cmt_timer_interrupt, | ||
111 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, | ||
112 | }; | ||
113 | |||
114 | static void cmt_clk_init(struct clk *clk) | ||
115 | { | ||
116 | u8 divisor = CMT_CMCSR_INIT & 0x3; | ||
117 | ctrl_inw(CMT_CMCSR_0); | ||
118 | ctrl_outw(CMT_CMCSR_INIT, CMT_CMCSR_0); | ||
119 | clk->parent = clk_get(NULL, "module_clk"); | ||
120 | clk->rate = clk->parent->rate / (8 << (divisor << 1)); | ||
121 | } | ||
122 | |||
123 | static void cmt_clk_recalc(struct clk *clk) | ||
124 | { | ||
125 | u8 divisor = ctrl_inw(CMT_CMCSR_0) & 0x3; | ||
126 | clk->rate = clk->parent->rate / (8 << (divisor << 1)); | ||
127 | } | ||
128 | |||
129 | static struct clk_ops cmt_clk_ops = { | ||
130 | .init = cmt_clk_init, | ||
131 | .recalc = cmt_clk_recalc, | ||
132 | }; | ||
133 | |||
134 | static struct clk cmt0_clk = { | ||
135 | .name = "cmt0_clk", | ||
136 | .ops = &cmt_clk_ops, | ||
137 | }; | ||
138 | |||
139 | static int cmt_timer_start(void) | ||
140 | { | ||
141 | ctrl_outw(ctrl_inw(CMT_CMSTR) | 0x01, CMT_CMSTR); | ||
142 | return 0; | ||
143 | } | ||
144 | |||
145 | static int cmt_timer_stop(void) | ||
146 | { | ||
147 | ctrl_outw(ctrl_inw(CMT_CMSTR) & ~0x01, CMT_CMSTR); | ||
148 | return 0; | ||
149 | } | ||
150 | |||
151 | static int cmt_timer_init(void) | ||
152 | { | ||
153 | unsigned long interval; | ||
154 | |||
155 | cmt_clock_enable(); | ||
156 | |||
157 | setup_irq(CONFIG_SH_TIMER_IRQ, &cmt_irq); | ||
158 | |||
159 | cmt0_clk.parent = clk_get(NULL, "module_clk"); | ||
160 | |||
161 | cmt_timer_stop(); | ||
162 | |||
163 | interval = cmt0_clk.parent->rate / 8 / HZ; | ||
164 | printk(KERN_INFO "Interval = %ld\n", interval); | ||
165 | |||
166 | ctrl_outw(interval, CMT_CMCOR_0); | ||
167 | |||
168 | clk_register(&cmt0_clk); | ||
169 | clk_enable(&cmt0_clk); | ||
170 | |||
171 | cmt_timer_start(); | ||
172 | |||
173 | return 0; | ||
174 | } | ||
175 | |||
176 | static struct sys_timer_ops cmt_timer_ops = { | ||
177 | .init = cmt_timer_init, | ||
178 | .start = cmt_timer_start, | ||
179 | .stop = cmt_timer_stop, | ||
180 | #ifndef CONFIG_GENERIC_TIME | ||
181 | .get_offset = cmt_timer_get_offset, | ||
182 | #endif | ||
183 | }; | ||
184 | |||
185 | struct sys_timer cmt_timer = { | ||
186 | .name = "cmt", | ||
187 | .ops = &cmt_timer_ops, | ||
188 | }; | ||
diff --git a/arch/sh/kernel/timers/timer-mtu2.c b/arch/sh/kernel/timers/timer-mtu2.c deleted file mode 100644 index 9b0ef0126479..000000000000 --- a/arch/sh/kernel/timers/timer-mtu2.c +++ /dev/null | |||
@@ -1,202 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/timers/timer-mtu2.c - MTU2 Timer Support | ||
3 | * | ||
4 | * Copyright (C) 2005 Paul Mundt | ||
5 | * | ||
6 | * Based off of arch/sh/kernel/timers/timer-tmu.c | ||
7 | * | ||
8 | * This file is subject to the terms and conditions of the GNU General Public | ||
9 | * License. See the file "COPYING" in the main directory of this archive | ||
10 | * for more details. | ||
11 | */ | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/interrupt.h> | ||
15 | #include <linux/seqlock.h> | ||
16 | #include <asm/timer.h> | ||
17 | #include <asm/io.h> | ||
18 | #include <asm/irq.h> | ||
19 | #include <asm/clock.h> | ||
20 | |||
21 | /* | ||
22 | * We use channel 1 for our lowly system timer. Channel 2 would be the other | ||
23 | * likely candidate, but we leave it alone as it has higher divisors that | ||
24 | * would be of more use to other more interesting applications. | ||
25 | * | ||
26 | * TODO: Presently we only implement a 16-bit single-channel system timer. | ||
27 | * However, we can implement channel cascade if we go the overflow route and | ||
28 | * get away with using 2 MTU2 channels as a 32-bit timer. | ||
29 | */ | ||
30 | #define MTU2_TSTR 0xfffe4280 | ||
31 | #define MTU2_TCR_1 0xfffe4380 | ||
32 | #define MTU2_TMDR_1 0xfffe4381 | ||
33 | #define MTU2_TIOR_1 0xfffe4382 | ||
34 | #define MTU2_TIER_1 0xfffe4384 | ||
35 | #define MTU2_TSR_1 0xfffe4385 | ||
36 | #define MTU2_TCNT_1 0xfffe4386 /* 16-bit counter */ | ||
37 | |||
38 | #if defined(CONFIG_CPU_SUBTYPE_SH7201) || \ | ||
39 | defined(CONFIG_CPU_SUBTYPE_SH7203) | ||
40 | #define MTU2_TGRA_1 0xfffe4388 | ||
41 | #else | ||
42 | #define MTU2_TGRA_1 0xfffe438a | ||
43 | #endif | ||
44 | |||
45 | #define STBCR3 0xfffe0408 | ||
46 | |||
47 | #define MTU2_TSTR_CST1 (1 << 1) /* Counter Start 1 */ | ||
48 | |||
49 | #define MTU2_TSR_TGFA (1 << 0) /* GRA compare match */ | ||
50 | |||
51 | #define MTU2_TIER_TGIEA (1 << 0) /* GRA compare match interrupt enable */ | ||
52 | |||
53 | #define MTU2_TCR_INIT 0x22 | ||
54 | |||
55 | #define MTU2_TCR_CALIB 0x00 | ||
56 | |||
57 | static unsigned long mtu2_timer_get_offset(void) | ||
58 | { | ||
59 | int count; | ||
60 | static int count_p = 0x7fff; /* for the first call after boot */ | ||
61 | static unsigned long jiffies_p = 0; | ||
62 | |||
63 | /* | ||
64 | * cache volatile jiffies temporarily; we have IRQs turned off. | ||
65 | */ | ||
66 | unsigned long jiffies_t; | ||
67 | |||
68 | /* timer count may underflow right here */ | ||
69 | count = ctrl_inw(MTU2_TCNT_1); /* read the latched count */ | ||
70 | |||
71 | jiffies_t = jiffies; | ||
72 | |||
73 | /* | ||
74 | * avoiding timer inconsistencies (they are rare, but they happen)... | ||
75 | * there is one kind of problem that must be avoided here: | ||
76 | * 1. the timer counter underflows | ||
77 | */ | ||
78 | |||
79 | if (jiffies_t == jiffies_p) { | ||
80 | if (count > count_p) { | ||
81 | if (ctrl_inb(MTU2_TSR_1) & MTU2_TSR_TGFA) { | ||
82 | count -= LATCH; | ||
83 | } else { | ||
84 | printk("%s (): hardware timer problem?\n", | ||
85 | __func__); | ||
86 | } | ||
87 | } | ||
88 | } else | ||
89 | jiffies_p = jiffies_t; | ||
90 | |||
91 | count_p = count; | ||
92 | |||
93 | count = ((LATCH-1) - count) * TICK_SIZE; | ||
94 | count = (count + LATCH/2) / LATCH; | ||
95 | |||
96 | return count; | ||
97 | } | ||
98 | |||
99 | static irqreturn_t mtu2_timer_interrupt(int irq, void *dev_id) | ||
100 | { | ||
101 | unsigned long timer_status; | ||
102 | |||
103 | /* Clear TGFA bit */ | ||
104 | timer_status = ctrl_inb(MTU2_TSR_1); | ||
105 | timer_status &= ~MTU2_TSR_TGFA; | ||
106 | ctrl_outb(timer_status, MTU2_TSR_1); | ||
107 | |||
108 | /* Do timer tick */ | ||
109 | handle_timer_tick(); | ||
110 | |||
111 | return IRQ_HANDLED; | ||
112 | } | ||
113 | |||
114 | static struct irqaction mtu2_irq = { | ||
115 | .name = "timer", | ||
116 | .handler = mtu2_timer_interrupt, | ||
117 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, | ||
118 | }; | ||
119 | |||
120 | static unsigned int divisors[] = { 1, 4, 16, 64, 1, 1, 256 }; | ||
121 | |||
122 | static void mtu2_clk_init(struct clk *clk) | ||
123 | { | ||
124 | u8 idx = MTU2_TCR_INIT & 0x7; | ||
125 | |||
126 | clk->rate = clk->parent->rate / divisors[idx]; | ||
127 | /* Start TCNT counting */ | ||
128 | ctrl_outb(ctrl_inb(MTU2_TSTR) | MTU2_TSTR_CST1, MTU2_TSTR); | ||
129 | |||
130 | } | ||
131 | |||
132 | static void mtu2_clk_recalc(struct clk *clk) | ||
133 | { | ||
134 | u8 idx = ctrl_inb(MTU2_TCR_1) & 0x7; | ||
135 | clk->rate = clk->parent->rate / divisors[idx]; | ||
136 | } | ||
137 | |||
138 | static struct clk_ops mtu2_clk_ops = { | ||
139 | .init = mtu2_clk_init, | ||
140 | .recalc = mtu2_clk_recalc, | ||
141 | }; | ||
142 | |||
143 | static struct clk mtu2_clk1 = { | ||
144 | .name = "mtu2_clk1", | ||
145 | .ops = &mtu2_clk_ops, | ||
146 | }; | ||
147 | |||
148 | static int mtu2_timer_start(void) | ||
149 | { | ||
150 | ctrl_outb(ctrl_inb(MTU2_TSTR) | MTU2_TSTR_CST1, MTU2_TSTR); | ||
151 | return 0; | ||
152 | } | ||
153 | |||
154 | static int mtu2_timer_stop(void) | ||
155 | { | ||
156 | ctrl_outb(ctrl_inb(MTU2_TSTR) & ~MTU2_TSTR_CST1, MTU2_TSTR); | ||
157 | return 0; | ||
158 | } | ||
159 | |||
160 | static int mtu2_timer_init(void) | ||
161 | { | ||
162 | unsigned long interval; | ||
163 | |||
164 | setup_irq(CONFIG_SH_TIMER_IRQ, &mtu2_irq); | ||
165 | |||
166 | mtu2_clk1.parent = clk_get(NULL, "module_clk"); | ||
167 | |||
168 | ctrl_outb(ctrl_inb(STBCR3) & (~0x20), STBCR3); | ||
169 | |||
170 | /* Normal operation */ | ||
171 | ctrl_outb(0, MTU2_TMDR_1); | ||
172 | ctrl_outb(MTU2_TCR_INIT, MTU2_TCR_1); | ||
173 | ctrl_outb(0x01, MTU2_TIOR_1); | ||
174 | |||
175 | /* Enable underflow interrupt */ | ||
176 | ctrl_outb(ctrl_inb(MTU2_TIER_1) | MTU2_TIER_TGIEA, MTU2_TIER_1); | ||
177 | |||
178 | interval = CONFIG_SH_PCLK_FREQ / 16 / HZ; | ||
179 | printk(KERN_INFO "Interval = %ld\n", interval); | ||
180 | |||
181 | ctrl_outw(interval, MTU2_TGRA_1); | ||
182 | ctrl_outw(0, MTU2_TCNT_1); | ||
183 | |||
184 | clk_register(&mtu2_clk1); | ||
185 | clk_enable(&mtu2_clk1); | ||
186 | |||
187 | return 0; | ||
188 | } | ||
189 | |||
190 | struct sys_timer_ops mtu2_timer_ops = { | ||
191 | .init = mtu2_timer_init, | ||
192 | .start = mtu2_timer_start, | ||
193 | .stop = mtu2_timer_stop, | ||
194 | #ifndef CONFIG_GENERIC_TIME | ||
195 | .get_offset = mtu2_timer_get_offset, | ||
196 | #endif | ||
197 | }; | ||
198 | |||
199 | struct sys_timer mtu2_timer = { | ||
200 | .name = "mtu2", | ||
201 | .ops = &mtu2_timer_ops, | ||
202 | }; | ||
diff --git a/arch/sh/kernel/timers/timer-tmu.c b/arch/sh/kernel/timers/timer-tmu.c deleted file mode 100644 index fe8d8930ccb6..000000000000 --- a/arch/sh/kernel/timers/timer-tmu.c +++ /dev/null | |||
@@ -1,297 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/timers/timer-tmu.c - TMU Timer Support | ||
3 | * | ||
4 | * Copyright (C) 2005 - 2007 Paul Mundt | ||
5 | * | ||
6 | * TMU handling code hacked out of arch/sh/kernel/time.c | ||
7 | * | ||
8 | * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka | ||
9 | * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org> | ||
10 | * Copyright (C) 2002, 2003, 2004 Paul Mundt | ||
11 | * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org> | ||
12 | * | ||
13 | * This file is subject to the terms and conditions of the GNU General Public | ||
14 | * License. See the file "COPYING" in the main directory of this archive | ||
15 | * for more details. | ||
16 | */ | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/seqlock.h> | ||
21 | #include <linux/clockchips.h> | ||
22 | #include <asm/timer.h> | ||
23 | #include <asm/rtc.h> | ||
24 | #include <asm/io.h> | ||
25 | #include <asm/irq.h> | ||
26 | #include <asm/clock.h> | ||
27 | |||
28 | #define TMU_TOCR_INIT 0x00 | ||
29 | #define TMU_TCR_INIT 0x0020 | ||
30 | |||
31 | #define TMU0 (0) | ||
32 | #define TMU1 (1) | ||
33 | |||
34 | static inline void _tmu_start(int tmu_num) | ||
35 | { | ||
36 | ctrl_outb(ctrl_inb(TMU_012_TSTR) | (0x1<<tmu_num), TMU_012_TSTR); | ||
37 | } | ||
38 | |||
39 | static inline void _tmu_set_irq(int tmu_num, int enabled) | ||
40 | { | ||
41 | register unsigned long tmu_tcr = TMU0_TCR + (0xc*tmu_num); | ||
42 | ctrl_outw( (enabled ? ctrl_inw(tmu_tcr) | (1<<5) : ctrl_inw(tmu_tcr) & ~(1<<5)), tmu_tcr); | ||
43 | } | ||
44 | |||
45 | static inline void _tmu_stop(int tmu_num) | ||
46 | { | ||
47 | ctrl_outb(ctrl_inb(TMU_012_TSTR) & ~(0x1<<tmu_num), TMU_012_TSTR); | ||
48 | } | ||
49 | |||
50 | static inline void _tmu_clear_status(int tmu_num) | ||
51 | { | ||
52 | register unsigned long tmu_tcr = TMU0_TCR + (0xc*tmu_num); | ||
53 | /* Clear UNF bit */ | ||
54 | ctrl_outw(ctrl_inw(tmu_tcr) & ~0x100, tmu_tcr); | ||
55 | } | ||
56 | |||
57 | static inline unsigned long _tmu_read(int tmu_num) | ||
58 | { | ||
59 | return ctrl_inl(TMU0_TCNT+0xC*tmu_num); | ||
60 | } | ||
61 | |||
62 | static int tmu_timer_start(void) | ||
63 | { | ||
64 | _tmu_start(TMU0); | ||
65 | _tmu_start(TMU1); | ||
66 | _tmu_set_irq(TMU0,1); | ||
67 | return 0; | ||
68 | } | ||
69 | |||
70 | static int tmu_timer_stop(void) | ||
71 | { | ||
72 | _tmu_stop(TMU0); | ||
73 | _tmu_stop(TMU1); | ||
74 | _tmu_clear_status(TMU0); | ||
75 | return 0; | ||
76 | } | ||
77 | |||
78 | /* | ||
79 | * also when the module_clk is scaled the TMU1 | ||
80 | * will show the same frequency | ||
81 | */ | ||
82 | static int tmus_are_scaled; | ||
83 | |||
84 | static cycle_t tmu_timer_read(struct clocksource *cs) | ||
85 | { | ||
86 | return ((cycle_t)(~_tmu_read(TMU1)))<<tmus_are_scaled; | ||
87 | } | ||
88 | |||
89 | |||
90 | static unsigned long tmu_latest_interval[3]; | ||
91 | static void tmu_timer_set_interval(int tmu_num, unsigned long interval, unsigned int reload) | ||
92 | { | ||
93 | unsigned long tmu_tcnt = TMU0_TCNT + tmu_num*0xC; | ||
94 | unsigned long tmu_tcor = TMU0_TCOR + tmu_num*0xC; | ||
95 | |||
96 | _tmu_stop(tmu_num); | ||
97 | |||
98 | ctrl_outl(interval, tmu_tcnt); | ||
99 | tmu_latest_interval[tmu_num] = interval; | ||
100 | |||
101 | /* | ||
102 | * TCNT reloads from TCOR on underflow, clear it if we don't | ||
103 | * intend to auto-reload | ||
104 | */ | ||
105 | ctrl_outl( reload ? interval : 0 , tmu_tcor); | ||
106 | |||
107 | _tmu_start(tmu_num); | ||
108 | } | ||
109 | |||
110 | static int tmu_set_next_event(unsigned long cycles, | ||
111 | struct clock_event_device *evt) | ||
112 | { | ||
113 | tmu_timer_set_interval(TMU0,cycles, evt->mode == CLOCK_EVT_MODE_PERIODIC); | ||
114 | _tmu_set_irq(TMU0,1); | ||
115 | return 0; | ||
116 | } | ||
117 | |||
118 | static void tmu_set_mode(enum clock_event_mode mode, | ||
119 | struct clock_event_device *evt) | ||
120 | { | ||
121 | switch (mode) { | ||
122 | case CLOCK_EVT_MODE_PERIODIC: | ||
123 | ctrl_outl(tmu_latest_interval[TMU0], TMU0_TCOR); | ||
124 | break; | ||
125 | case CLOCK_EVT_MODE_ONESHOT: | ||
126 | ctrl_outl(0, TMU0_TCOR); | ||
127 | break; | ||
128 | case CLOCK_EVT_MODE_UNUSED: | ||
129 | case CLOCK_EVT_MODE_SHUTDOWN: | ||
130 | case CLOCK_EVT_MODE_RESUME: | ||
131 | break; | ||
132 | } | ||
133 | } | ||
134 | |||
135 | static struct clock_event_device tmu0_clockevent = { | ||
136 | .name = "tmu0", | ||
137 | .shift = 32, | ||
138 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | ||
139 | .set_mode = tmu_set_mode, | ||
140 | .set_next_event = tmu_set_next_event, | ||
141 | }; | ||
142 | |||
143 | static irqreturn_t tmu_timer_interrupt(int irq, void *dummy) | ||
144 | { | ||
145 | struct clock_event_device *evt = &tmu0_clockevent; | ||
146 | _tmu_clear_status(TMU0); | ||
147 | _tmu_set_irq(TMU0,tmu0_clockevent.mode != CLOCK_EVT_MODE_ONESHOT); | ||
148 | |||
149 | switch (tmu0_clockevent.mode) { | ||
150 | case CLOCK_EVT_MODE_ONESHOT: | ||
151 | case CLOCK_EVT_MODE_PERIODIC: | ||
152 | evt->event_handler(evt); | ||
153 | break; | ||
154 | default: | ||
155 | break; | ||
156 | } | ||
157 | |||
158 | return IRQ_HANDLED; | ||
159 | } | ||
160 | |||
161 | static struct irqaction tmu0_irq = { | ||
162 | .name = "periodic/oneshot timer", | ||
163 | .handler = tmu_timer_interrupt, | ||
164 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, | ||
165 | }; | ||
166 | |||
167 | static void __init tmu_clk_init(struct clk *clk) | ||
168 | { | ||
169 | u8 divisor = TMU_TCR_INIT & 0x7; | ||
170 | int tmu_num = clk->name[3]-'0'; | ||
171 | ctrl_outw(TMU_TCR_INIT, TMU0_TCR+(tmu_num*0xC)); | ||
172 | clk->rate = clk_get_rate(clk->parent) / (4 << (divisor << 1)); | ||
173 | } | ||
174 | |||
175 | static void tmu_clk_recalc(struct clk *clk) | ||
176 | { | ||
177 | int tmu_num = clk->name[3]-'0'; | ||
178 | unsigned long prev_rate = clk_get_rate(clk); | ||
179 | unsigned long flags; | ||
180 | u8 divisor = ctrl_inw(TMU0_TCR+tmu_num*0xC) & 0x7; | ||
181 | clk->rate = clk_get_rate(clk->parent) / (4 << (divisor << 1)); | ||
182 | |||
183 | if(prev_rate==clk_get_rate(clk)) | ||
184 | return; | ||
185 | |||
186 | if(tmu_num) | ||
187 | return; /* No more work on TMU1 */ | ||
188 | |||
189 | local_irq_save(flags); | ||
190 | tmus_are_scaled = (prev_rate > clk->rate); | ||
191 | |||
192 | _tmu_stop(TMU0); | ||
193 | |||
194 | tmu0_clockevent.mult = div_sc(clk->rate, NSEC_PER_SEC, | ||
195 | tmu0_clockevent.shift); | ||
196 | tmu0_clockevent.max_delta_ns = | ||
197 | clockevent_delta2ns(-1, &tmu0_clockevent); | ||
198 | tmu0_clockevent.min_delta_ns = | ||
199 | clockevent_delta2ns(1, &tmu0_clockevent); | ||
200 | |||
201 | if (tmus_are_scaled) | ||
202 | tmu_latest_interval[TMU0] >>= 1; | ||
203 | else | ||
204 | tmu_latest_interval[TMU0] <<= 1; | ||
205 | |||
206 | tmu_timer_set_interval(TMU0, | ||
207 | tmu_latest_interval[TMU0], | ||
208 | tmu0_clockevent.mode == CLOCK_EVT_MODE_PERIODIC); | ||
209 | |||
210 | _tmu_start(TMU0); | ||
211 | |||
212 | local_irq_restore(flags); | ||
213 | } | ||
214 | |||
215 | static struct clk_ops tmu_clk_ops = { | ||
216 | .init = tmu_clk_init, | ||
217 | .recalc = tmu_clk_recalc, | ||
218 | }; | ||
219 | |||
220 | static struct clk tmu0_clk = { | ||
221 | .name = "tmu0_clk", | ||
222 | .ops = &tmu_clk_ops, | ||
223 | }; | ||
224 | |||
225 | static struct clk tmu1_clk = { | ||
226 | .name = "tmu1_clk", | ||
227 | .ops = &tmu_clk_ops, | ||
228 | }; | ||
229 | |||
230 | static int tmu_timer_init(void) | ||
231 | { | ||
232 | unsigned long interval; | ||
233 | unsigned long frequency; | ||
234 | |||
235 | setup_irq(CONFIG_SH_TIMER_IRQ, &tmu0_irq); | ||
236 | |||
237 | tmu0_clk.parent = clk_get(NULL, "module_clk"); | ||
238 | tmu1_clk.parent = clk_get(NULL, "module_clk"); | ||
239 | |||
240 | tmu_timer_stop(); | ||
241 | |||
242 | #if !defined(CONFIG_CPU_SUBTYPE_SH7720) && \ | ||
243 | !defined(CONFIG_CPU_SUBTYPE_SH7721) && \ | ||
244 | !defined(CONFIG_CPU_SUBTYPE_SH7760) && \ | ||
245 | !defined(CONFIG_CPU_SUBTYPE_SH7785) && \ | ||
246 | !defined(CONFIG_CPU_SUBTYPE_SH7786) && \ | ||
247 | !defined(CONFIG_CPU_SUBTYPE_SHX3) | ||
248 | ctrl_outb(TMU_TOCR_INIT, TMU_TOCR); | ||
249 | #endif | ||
250 | |||
251 | clk_register(&tmu0_clk); | ||
252 | clk_register(&tmu1_clk); | ||
253 | clk_enable(&tmu0_clk); | ||
254 | clk_enable(&tmu1_clk); | ||
255 | |||
256 | frequency = clk_get_rate(&tmu0_clk); | ||
257 | interval = (frequency + HZ / 2) / HZ; | ||
258 | |||
259 | tmu_timer_set_interval(TMU0,interval, 1); | ||
260 | tmu_timer_set_interval(TMU1,~0,1); | ||
261 | |||
262 | _tmu_start(TMU1); | ||
263 | |||
264 | clocksource_sh.rating = 200; | ||
265 | clocksource_sh.mask = CLOCKSOURCE_MASK(32); | ||
266 | clocksource_sh.read = tmu_timer_read; | ||
267 | clocksource_sh.shift = 10; | ||
268 | clocksource_sh.mult = clocksource_hz2mult(clk_get_rate(&tmu1_clk), | ||
269 | clocksource_sh.shift); | ||
270 | clocksource_sh.flags = CLOCK_SOURCE_IS_CONTINUOUS; | ||
271 | clocksource_register(&clocksource_sh); | ||
272 | |||
273 | tmu0_clockevent.mult = div_sc(frequency, NSEC_PER_SEC, | ||
274 | tmu0_clockevent.shift); | ||
275 | tmu0_clockevent.max_delta_ns = | ||
276 | clockevent_delta2ns(-1, &tmu0_clockevent); | ||
277 | tmu0_clockevent.min_delta_ns = | ||
278 | clockevent_delta2ns(1, &tmu0_clockevent); | ||
279 | |||
280 | tmu0_clockevent.cpumask = cpumask_of(0); | ||
281 | tmu0_clockevent.rating = 100; | ||
282 | |||
283 | clockevents_register_device(&tmu0_clockevent); | ||
284 | |||
285 | return 0; | ||
286 | } | ||
287 | |||
288 | static struct sys_timer_ops tmu_timer_ops = { | ||
289 | .init = tmu_timer_init, | ||
290 | .start = tmu_timer_start, | ||
291 | .stop = tmu_timer_stop, | ||
292 | }; | ||
293 | |||
294 | struct sys_timer tmu_timer = { | ||
295 | .name = "tmu", | ||
296 | .ops = &tmu_timer_ops, | ||
297 | }; | ||
diff --git a/arch/sh/kernel/timers/timer.c b/arch/sh/kernel/timers/timer.c deleted file mode 100644 index 4e7e747d1b69..000000000000 --- a/arch/sh/kernel/timers/timer.c +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /* | ||
2 | * arch/sh/kernel/timers/timer.c - Common timer code | ||
3 | * | ||
4 | * Copyright (C) 2005 Paul Mundt | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #include <linux/kernel.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/timer.h> | ||
13 | #include <linux/string.h> | ||
14 | #include <asm/timer.h> | ||
15 | |||
16 | static struct sys_timer *sys_timers[] = { | ||
17 | #ifdef CONFIG_SH_TMU | ||
18 | &tmu_timer, | ||
19 | #endif | ||
20 | #ifdef CONFIG_SH_MTU2 | ||
21 | &mtu2_timer, | ||
22 | #endif | ||
23 | #ifdef CONFIG_SH_CMT | ||
24 | &cmt_timer, | ||
25 | #endif | ||
26 | NULL, | ||
27 | }; | ||
28 | |||
29 | static char timer_override[10]; | ||
30 | static int __init timer_setup(char *str) | ||
31 | { | ||
32 | if (str) | ||
33 | strlcpy(timer_override, str, sizeof(timer_override)); | ||
34 | return 1; | ||
35 | } | ||
36 | __setup("timer=", timer_setup); | ||
37 | |||
38 | struct sys_timer *get_sys_timer(void) | ||
39 | { | ||
40 | int i; | ||
41 | |||
42 | for (i = 0; i < ARRAY_SIZE(sys_timers); i++) { | ||
43 | struct sys_timer *t = sys_timers[i]; | ||
44 | |||
45 | if (unlikely(!t)) | ||
46 | break; | ||
47 | if (unlikely(timer_override[0])) | ||
48 | if ((strcmp(timer_override, t->name) != 0)) | ||
49 | continue; | ||
50 | if (likely(t->ops->init() == 0)) | ||
51 | return t; | ||
52 | } | ||
53 | |||
54 | return NULL; | ||
55 | } | ||
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index 438f1ebcc453..46348ed07cc3 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c | |||
@@ -22,11 +22,11 @@ static void handle_BUG(struct pt_regs *regs) | |||
22 | 22 | ||
23 | int is_valid_bugaddr(unsigned long addr) | 23 | int is_valid_bugaddr(unsigned long addr) |
24 | { | 24 | { |
25 | unsigned short opcode; | 25 | insn_size_t opcode; |
26 | 26 | ||
27 | if (addr < PAGE_OFFSET) | 27 | if (addr < PAGE_OFFSET) |
28 | return 0; | 28 | return 0; |
29 | if (probe_kernel_address((u16 *)addr, opcode)) | 29 | if (probe_kernel_address((insn_size_t *)addr, opcode)) |
30 | return 0; | 30 | return 0; |
31 | 31 | ||
32 | return opcode == TRAPA_BUG_OPCODE; | 32 | return opcode == TRAPA_BUG_OPCODE; |
@@ -66,7 +66,7 @@ BUILD_TRAP_HANDLER(bug) | |||
66 | 66 | ||
67 | #ifdef CONFIG_BUG | 67 | #ifdef CONFIG_BUG |
68 | if (__kernel_text_address(instruction_pointer(regs))) { | 68 | if (__kernel_text_address(instruction_pointer(regs))) { |
69 | opcode_t insn = *(opcode_t *)instruction_pointer(regs); | 69 | insn_size_t insn = *(insn_size_t *)instruction_pointer(regs); |
70 | if (insn == TRAPA_BUG_OPCODE) | 70 | if (insn == TRAPA_BUG_OPCODE) |
71 | handle_BUG(regs); | 71 | handle_BUG(regs); |
72 | } | 72 | } |
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 30ca9c51e52d..2b772776fcda 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c | |||
@@ -34,6 +34,7 @@ | |||
34 | # define TRAP_ILLEGAL_SLOT_INST 6 | 34 | # define TRAP_ILLEGAL_SLOT_INST 6 |
35 | # define TRAP_ADDRESS_ERROR 9 | 35 | # define TRAP_ADDRESS_ERROR 9 |
36 | # ifdef CONFIG_CPU_SH2A | 36 | # ifdef CONFIG_CPU_SH2A |
37 | # define TRAP_UBC 12 | ||
37 | # define TRAP_FPU_ERROR 13 | 38 | # define TRAP_FPU_ERROR 13 |
38 | # define TRAP_DIVZERO_ERROR 17 | 39 | # define TRAP_DIVZERO_ERROR 17 |
39 | # define TRAP_DIVOVF_ERROR 18 | 40 | # define TRAP_DIVOVF_ERROR 18 |
@@ -176,7 +177,7 @@ static struct mem_access user_mem_access = { | |||
176 | * (if that instruction is in a branch delay slot) | 177 | * (if that instruction is in a branch delay slot) |
177 | * - return 0 if emulation okay, -EFAULT on existential error | 178 | * - return 0 if emulation okay, -EFAULT on existential error |
178 | */ | 179 | */ |
179 | static int handle_unaligned_ins(opcode_t instruction, struct pt_regs *regs, | 180 | static int handle_unaligned_ins(insn_size_t instruction, struct pt_regs *regs, |
180 | struct mem_access *ma) | 181 | struct mem_access *ma) |
181 | { | 182 | { |
182 | int ret, index, count; | 183 | int ret, index, count; |
@@ -321,10 +322,10 @@ static int handle_unaligned_ins(opcode_t instruction, struct pt_regs *regs, | |||
321 | * - fetches the instruction from PC+2 | 322 | * - fetches the instruction from PC+2 |
322 | */ | 323 | */ |
323 | static inline int handle_delayslot(struct pt_regs *regs, | 324 | static inline int handle_delayslot(struct pt_regs *regs, |
324 | opcode_t old_instruction, | 325 | insn_size_t old_instruction, |
325 | struct mem_access *ma) | 326 | struct mem_access *ma) |
326 | { | 327 | { |
327 | opcode_t instruction; | 328 | insn_size_t instruction; |
328 | void __user *addr = (void __user *)(regs->pc + | 329 | void __user *addr = (void __user *)(regs->pc + |
329 | instruction_size(old_instruction)); | 330 | instruction_size(old_instruction)); |
330 | 331 | ||
@@ -364,7 +365,7 @@ static inline int handle_delayslot(struct pt_regs *regs, | |||
364 | 365 | ||
365 | static int handle_unaligned_notify_count = 10; | 366 | static int handle_unaligned_notify_count = 10; |
366 | 367 | ||
367 | int handle_unaligned_access(opcode_t instruction, struct pt_regs *regs, | 368 | int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs, |
368 | struct mem_access *ma) | 369 | struct mem_access *ma) |
369 | { | 370 | { |
370 | u_int rm; | 371 | u_int rm; |
@@ -522,7 +523,7 @@ asmlinkage void do_address_error(struct pt_regs *regs, | |||
522 | unsigned long error_code = 0; | 523 | unsigned long error_code = 0; |
523 | mm_segment_t oldfs; | 524 | mm_segment_t oldfs; |
524 | siginfo_t info; | 525 | siginfo_t info; |
525 | opcode_t instruction; | 526 | insn_size_t instruction; |
526 | int tmp; | 527 | int tmp; |
527 | 528 | ||
528 | /* Intentional ifdef */ | 529 | /* Intentional ifdef */ |
@@ -849,6 +850,10 @@ void __init trap_init(void) | |||
849 | #endif | 850 | #endif |
850 | #endif | 851 | #endif |
851 | 852 | ||
853 | #ifdef TRAP_UBC | ||
854 | set_exception_table_vec(TRAP_UBC, break_point_trap); | ||
855 | #endif | ||
856 | |||
852 | /* Setup VBR for boot cpu */ | 857 | /* Setup VBR for boot cpu */ |
853 | per_cpu_trap_init(); | 858 | per_cpu_trap_init(); |
854 | } | 859 | } |
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index a85831cbf18b..267e5ebbb475 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c | |||
@@ -370,7 +370,6 @@ static int generate_and_check_address(struct pt_regs *regs, | |||
370 | return -1; | 370 | return -1; |
371 | } | 371 | } |
372 | 372 | ||
373 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
374 | /* Check accessible. For misaligned access in the kernel, assume the | 373 | /* Check accessible. For misaligned access in the kernel, assume the |
375 | address is always accessible (and if not, just fault when the | 374 | address is always accessible (and if not, just fault when the |
376 | load/store gets done.) */ | 375 | load/store gets done.) */ |
@@ -380,18 +379,13 @@ static int generate_and_check_address(struct pt_regs *regs, | |||
380 | } | 379 | } |
381 | /* Do access_ok check later - it depends on whether it's a load or a store. */ | 380 | /* Do access_ok check later - it depends on whether it's a load or a store. */ |
382 | } | 381 | } |
383 | #endif | ||
384 | 382 | ||
385 | *address = addr; | 383 | *address = addr; |
386 | return 0; | 384 | return 0; |
387 | } | 385 | } |
388 | 386 | ||
389 | /* Default value as for sh */ | ||
390 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
391 | static int user_mode_unaligned_fixup_count = 10; | 387 | static int user_mode_unaligned_fixup_count = 10; |
392 | static int user_mode_unaligned_fixup_enable = 1; | 388 | static int user_mode_unaligned_fixup_enable = 1; |
393 | #endif | ||
394 | |||
395 | static int kernel_mode_unaligned_fixup_count = 32; | 389 | static int kernel_mode_unaligned_fixup_count = 32; |
396 | 390 | ||
397 | static void misaligned_kernel_word_load(__u64 address, int do_sign_extend, __u64 *result) | 391 | static void misaligned_kernel_word_load(__u64 address, int do_sign_extend, __u64 *result) |
@@ -440,7 +434,6 @@ static int misaligned_load(struct pt_regs *regs, | |||
440 | } | 434 | } |
441 | 435 | ||
442 | destreg = (opcode >> 4) & 0x3f; | 436 | destreg = (opcode >> 4) & 0x3f; |
443 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
444 | if (user_mode(regs)) { | 437 | if (user_mode(regs)) { |
445 | __u64 buffer; | 438 | __u64 buffer; |
446 | 439 | ||
@@ -470,9 +463,7 @@ static int misaligned_load(struct pt_regs *regs, | |||
470 | width_shift, (unsigned long) regs->pc); | 463 | width_shift, (unsigned long) regs->pc); |
471 | break; | 464 | break; |
472 | } | 465 | } |
473 | } else | 466 | } else { |
474 | #endif | ||
475 | { | ||
476 | /* kernel mode - we can take short cuts since if we fault, it's a genuine bug */ | 467 | /* kernel mode - we can take short cuts since if we fault, it's a genuine bug */ |
477 | __u64 lo, hi; | 468 | __u64 lo, hi; |
478 | 469 | ||
@@ -519,7 +510,6 @@ static int misaligned_store(struct pt_regs *regs, | |||
519 | } | 510 | } |
520 | 511 | ||
521 | srcreg = (opcode >> 4) & 0x3f; | 512 | srcreg = (opcode >> 4) & 0x3f; |
522 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
523 | if (user_mode(regs)) { | 513 | if (user_mode(regs)) { |
524 | __u64 buffer; | 514 | __u64 buffer; |
525 | 515 | ||
@@ -546,9 +536,7 @@ static int misaligned_store(struct pt_regs *regs, | |||
546 | if (__copy_user((void *)(int)address, &buffer, (1 << width_shift)) > 0) { | 536 | if (__copy_user((void *)(int)address, &buffer, (1 << width_shift)) > 0) { |
547 | return -1; /* fault */ | 537 | return -1; /* fault */ |
548 | } | 538 | } |
549 | } else | 539 | } else { |
550 | #endif | ||
551 | { | ||
552 | /* kernel mode - we can take short cuts since if we fault, it's a genuine bug */ | 540 | /* kernel mode - we can take short cuts since if we fault, it's a genuine bug */ |
553 | __u64 val = regs->regs[srcreg]; | 541 | __u64 val = regs->regs[srcreg]; |
554 | 542 | ||
@@ -576,7 +564,6 @@ static int misaligned_store(struct pt_regs *regs, | |||
576 | 564 | ||
577 | } | 565 | } |
578 | 566 | ||
579 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
580 | /* Never need to fix up misaligned FPU accesses within the kernel since that's a real | 567 | /* Never need to fix up misaligned FPU accesses within the kernel since that's a real |
581 | error. */ | 568 | error. */ |
582 | static int misaligned_fpu_load(struct pt_regs *regs, | 569 | static int misaligned_fpu_load(struct pt_regs *regs, |
@@ -727,7 +714,6 @@ static int misaligned_fpu_store(struct pt_regs *regs, | |||
727 | return -1; | 714 | return -1; |
728 | } | 715 | } |
729 | } | 716 | } |
730 | #endif | ||
731 | 717 | ||
732 | static int misaligned_fixup(struct pt_regs *regs) | 718 | static int misaligned_fixup(struct pt_regs *regs) |
733 | { | 719 | { |
@@ -735,12 +721,8 @@ static int misaligned_fixup(struct pt_regs *regs) | |||
735 | int error; | 721 | int error; |
736 | int major, minor; | 722 | int major, minor; |
737 | 723 | ||
738 | #if !defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | 724 | if (!user_mode_unaligned_fixup_enable) |
739 | /* Never fixup user mode misaligned accesses without this option enabled. */ | 725 | return -1; |
740 | return -1; | ||
741 | #else | ||
742 | if (!user_mode_unaligned_fixup_enable) return -1; | ||
743 | #endif | ||
744 | 726 | ||
745 | error = read_opcode(regs->pc, &opcode, user_mode(regs)); | 727 | error = read_opcode(regs->pc, &opcode, user_mode(regs)); |
746 | if (error < 0) { | 728 | if (error < 0) { |
@@ -749,15 +731,12 @@ static int misaligned_fixup(struct pt_regs *regs) | |||
749 | major = (opcode >> 26) & 0x3f; | 731 | major = (opcode >> 26) & 0x3f; |
750 | minor = (opcode >> 16) & 0xf; | 732 | minor = (opcode >> 16) & 0xf; |
751 | 733 | ||
752 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
753 | if (user_mode(regs) && (user_mode_unaligned_fixup_count > 0)) { | 734 | if (user_mode(regs) && (user_mode_unaligned_fixup_count > 0)) { |
754 | --user_mode_unaligned_fixup_count; | 735 | --user_mode_unaligned_fixup_count; |
755 | /* Only do 'count' worth of these reports, to remove a potential DoS against syslog */ | 736 | /* Only do 'count' worth of these reports, to remove a potential DoS against syslog */ |
756 | printk("Fixing up unaligned userspace access in \"%s\" pid=%d pc=0x%08x ins=0x%08lx\n", | 737 | printk("Fixing up unaligned userspace access in \"%s\" pid=%d pc=0x%08x ins=0x%08lx\n", |
757 | current->comm, task_pid_nr(current), (__u32)regs->pc, opcode); | 738 | current->comm, task_pid_nr(current), (__u32)regs->pc, opcode); |
758 | } else | 739 | } else if (!user_mode(regs) && (kernel_mode_unaligned_fixup_count > 0)) { |
759 | #endif | ||
760 | if (!user_mode(regs) && (kernel_mode_unaligned_fixup_count > 0)) { | ||
761 | --kernel_mode_unaligned_fixup_count; | 740 | --kernel_mode_unaligned_fixup_count; |
762 | if (in_interrupt()) { | 741 | if (in_interrupt()) { |
763 | printk("Fixing up unaligned kernelspace access in interrupt pc=0x%08x ins=0x%08lx\n", | 742 | printk("Fixing up unaligned kernelspace access in interrupt pc=0x%08x ins=0x%08lx\n", |
@@ -830,7 +809,6 @@ static int misaligned_fixup(struct pt_regs *regs) | |||
830 | } | 809 | } |
831 | break; | 810 | break; |
832 | 811 | ||
833 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
834 | case (0x94>>2): /* FLD.S */ | 812 | case (0x94>>2): /* FLD.S */ |
835 | error = misaligned_fpu_load(regs, opcode, 1, 2, 0); | 813 | error = misaligned_fpu_load(regs, opcode, 1, 2, 0); |
836 | break; | 814 | break; |
@@ -881,7 +859,6 @@ static int misaligned_fixup(struct pt_regs *regs) | |||
881 | break; | 859 | break; |
882 | } | 860 | } |
883 | break; | 861 | break; |
884 | #endif | ||
885 | 862 | ||
886 | default: | 863 | default: |
887 | /* Fault */ | 864 | /* Fault */ |
@@ -907,7 +884,6 @@ static ctl_table unaligned_table[] = { | |||
907 | .mode = 0644, | 884 | .mode = 0644, |
908 | .proc_handler = &proc_dointvec | 885 | .proc_handler = &proc_dointvec |
909 | }, | 886 | }, |
910 | #if defined(CONFIG_SH64_USER_MISALIGNED_FIXUP) | ||
911 | { | 887 | { |
912 | .ctl_name = CTL_UNNUMBERED, | 888 | .ctl_name = CTL_UNNUMBERED, |
913 | .procname = "user_reports", | 889 | .procname = "user_reports", |
@@ -923,7 +899,6 @@ static ctl_table unaligned_table[] = { | |||
923 | .maxlen = sizeof(int), | 899 | .maxlen = sizeof(int), |
924 | .mode = 0644, | 900 | .mode = 0644, |
925 | .proc_handler = &proc_dointvec}, | 901 | .proc_handler = &proc_dointvec}, |
926 | #endif | ||
927 | {} | 902 | {} |
928 | }; | 903 | }; |
929 | 904 | ||
diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S index d7d4991f32af..f53c76acaede 100644 --- a/arch/sh/kernel/vmlinux.lds.S +++ b/arch/sh/kernel/vmlinux.lds.S | |||
@@ -1,5 +1,178 @@ | |||
1 | #ifdef CONFIG_SUPERH32 | 1 | /* |
2 | # include "vmlinux_32.lds.S" | 2 | * ld script to make SuperH Linux kernel |
3 | * Written by Niibe Yutaka and Paul Mundt | ||
4 | */ | ||
5 | #ifdef CONFIG_SUPERH64 | ||
6 | #define LOAD_OFFSET CONFIG_PAGE_OFFSET | ||
7 | OUTPUT_ARCH(sh:sh5) | ||
3 | #else | 8 | #else |
4 | # include "vmlinux_64.lds.S" | 9 | #define LOAD_OFFSET 0 |
10 | OUTPUT_ARCH(sh) | ||
5 | #endif | 11 | #endif |
12 | |||
13 | #include <asm/thread_info.h> | ||
14 | #include <asm/cache.h> | ||
15 | #include <asm-generic/vmlinux.lds.h> | ||
16 | |||
17 | ENTRY(_start) | ||
18 | SECTIONS | ||
19 | { | ||
20 | #ifdef CONFIG_PMB_FIXED | ||
21 | . = CONFIG_PAGE_OFFSET + (CONFIG_MEMORY_START & 0x1fffffff) + | ||
22 | CONFIG_ZERO_PAGE_OFFSET; | ||
23 | #elif defined(CONFIG_32BIT) | ||
24 | . = CONFIG_PAGE_OFFSET + CONFIG_ZERO_PAGE_OFFSET; | ||
25 | #else | ||
26 | . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET; | ||
27 | #endif | ||
28 | |||
29 | _text = .; /* Text and read-only data */ | ||
30 | |||
31 | .empty_zero_page : AT(ADDR(.empty_zero_page) - LOAD_OFFSET) { | ||
32 | *(.empty_zero_page) | ||
33 | } = 0 | ||
34 | |||
35 | .text : AT(ADDR(.text) - LOAD_OFFSET) { | ||
36 | HEAD_TEXT | ||
37 | TEXT_TEXT | ||
38 | |||
39 | #ifdef CONFIG_SUPERH64 | ||
40 | *(.text64) | ||
41 | *(.text..SHmedia32) | ||
42 | #endif | ||
43 | |||
44 | SCHED_TEXT | ||
45 | LOCK_TEXT | ||
46 | KPROBES_TEXT | ||
47 | IRQENTRY_TEXT | ||
48 | *(.fixup) | ||
49 | *(.gnu.warning) | ||
50 | _etext = .; /* End of text section */ | ||
51 | } = 0x0009 | ||
52 | |||
53 | . = ALIGN(16); /* Exception table */ | ||
54 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { | ||
55 | __start___ex_table = .; | ||
56 | *(__ex_table) | ||
57 | __stop___ex_table = .; | ||
58 | } | ||
59 | |||
60 | NOTES | ||
61 | RO_DATA(PAGE_SIZE) | ||
62 | |||
63 | /* | ||
64 | * Code which must be executed uncached and the associated data | ||
65 | */ | ||
66 | . = ALIGN(PAGE_SIZE); | ||
67 | .uncached : AT(ADDR(.uncached) - LOAD_OFFSET) { | ||
68 | __uncached_start = .; | ||
69 | *(.uncached.text) | ||
70 | *(.uncached.data) | ||
71 | __uncached_end = .; | ||
72 | } | ||
73 | |||
74 | . = ALIGN(THREAD_SIZE); | ||
75 | .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */ | ||
76 | *(.data.init_task) | ||
77 | |||
78 | . = ALIGN(L1_CACHE_BYTES); | ||
79 | *(.data.cacheline_aligned) | ||
80 | |||
81 | . = ALIGN(L1_CACHE_BYTES); | ||
82 | *(.data.read_mostly) | ||
83 | |||
84 | . = ALIGN(PAGE_SIZE); | ||
85 | *(.data.page_aligned) | ||
86 | |||
87 | __nosave_begin = .; | ||
88 | *(.data.nosave) | ||
89 | . = ALIGN(PAGE_SIZE); | ||
90 | __nosave_end = .; | ||
91 | |||
92 | DATA_DATA | ||
93 | CONSTRUCTORS | ||
94 | } | ||
95 | |||
96 | _edata = .; /* End of data section */ | ||
97 | |||
98 | . = ALIGN(PAGE_SIZE); /* Init code and data */ | ||
99 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { | ||
100 | __init_begin = .; | ||
101 | _sinittext = .; | ||
102 | INIT_TEXT | ||
103 | _einittext = .; | ||
104 | } | ||
105 | |||
106 | .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) { INIT_DATA } | ||
107 | |||
108 | . = ALIGN(16); | ||
109 | .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) { | ||
110 | __setup_start = .; | ||
111 | *(.init.setup) | ||
112 | __setup_end = .; | ||
113 | } | ||
114 | |||
115 | .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET) { | ||
116 | __initcall_start = .; | ||
117 | INITCALLS | ||
118 | __initcall_end = .; | ||
119 | } | ||
120 | |||
121 | .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) { | ||
122 | __con_initcall_start = .; | ||
123 | *(.con_initcall.init) | ||
124 | __con_initcall_end = .; | ||
125 | } | ||
126 | |||
127 | SECURITY_INIT | ||
128 | |||
129 | #ifdef CONFIG_BLK_DEV_INITRD | ||
130 | . = ALIGN(PAGE_SIZE); | ||
131 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { | ||
132 | __initramfs_start = .; | ||
133 | *(.init.ramfs) | ||
134 | __initramfs_end = .; | ||
135 | } | ||
136 | #endif | ||
137 | |||
138 | . = ALIGN(4); | ||
139 | .machvec.init : AT(ADDR(.machvec.init) - LOAD_OFFSET) { | ||
140 | __machvec_start = .; | ||
141 | *(.machvec.init) | ||
142 | __machvec_end = .; | ||
143 | } | ||
144 | |||
145 | PERCPU(PAGE_SIZE) | ||
146 | |||
147 | /* | ||
148 | * .exit.text is discarded at runtime, not link time, to deal with | ||
149 | * references from __bug_table | ||
150 | */ | ||
151 | .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { EXIT_TEXT } | ||
152 | .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { EXIT_DATA } | ||
153 | |||
154 | . = ALIGN(PAGE_SIZE); | ||
155 | .bss : AT(ADDR(.bss) - LOAD_OFFSET) { | ||
156 | __init_end = .; | ||
157 | __bss_start = .; /* BSS */ | ||
158 | *(.bss.page_aligned) | ||
159 | *(.bss) | ||
160 | *(COMMON) | ||
161 | . = ALIGN(4); | ||
162 | _ebss = .; /* uClinux MTD sucks */ | ||
163 | _end = . ; | ||
164 | } | ||
165 | |||
166 | /* | ||
167 | * When something in the kernel is NOT compiled as a module, the | ||
168 | * module cleanup code and data are put into these segments. Both | ||
169 | * can then be thrown away, as cleanup code is never called unless | ||
170 | * it's a module. | ||
171 | */ | ||
172 | /DISCARD/ : { | ||
173 | *(.exitcall.exit) | ||
174 | } | ||
175 | |||
176 | STABS_DEBUG | ||
177 | DWARF_DEBUG | ||
178 | } | ||
diff --git a/arch/sh/kernel/vmlinux_32.lds.S b/arch/sh/kernel/vmlinux_32.lds.S deleted file mode 100644 index dd9b2ee1312d..000000000000 --- a/arch/sh/kernel/vmlinux_32.lds.S +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | /* | ||
2 | * ld script to make SuperH Linux kernel | ||
3 | * Written by Niibe Yutaka | ||
4 | */ | ||
5 | #include <asm/thread_info.h> | ||
6 | #include <asm/cache.h> | ||
7 | #include <asm-generic/vmlinux.lds.h> | ||
8 | |||
9 | #ifdef CONFIG_CPU_LITTLE_ENDIAN | ||
10 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") | ||
11 | #else | ||
12 | OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-shbig-linux") | ||
13 | #endif | ||
14 | OUTPUT_ARCH(sh) | ||
15 | ENTRY(_start) | ||
16 | SECTIONS | ||
17 | { | ||
18 | #ifdef CONFIG_PMB_FIXED | ||
19 | . = CONFIG_PAGE_OFFSET + (CONFIG_MEMORY_START & 0x1fffffff) + | ||
20 | CONFIG_ZERO_PAGE_OFFSET; | ||
21 | #elif defined(CONFIG_32BIT) | ||
22 | . = CONFIG_PAGE_OFFSET + CONFIG_ZERO_PAGE_OFFSET; | ||
23 | #else | ||
24 | . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET; | ||
25 | #endif | ||
26 | |||
27 | _text = .; /* Text and read-only data */ | ||
28 | |||
29 | .empty_zero_page : { | ||
30 | *(.empty_zero_page) | ||
31 | } = 0 | ||
32 | |||
33 | .text : { | ||
34 | HEAD_TEXT | ||
35 | TEXT_TEXT | ||
36 | SCHED_TEXT | ||
37 | LOCK_TEXT | ||
38 | KPROBES_TEXT | ||
39 | *(.fixup) | ||
40 | *(.gnu.warning) | ||
41 | } = 0x0009 | ||
42 | |||
43 | . = ALIGN(16); /* Exception table */ | ||
44 | __start___ex_table = .; | ||
45 | __ex_table : { *(__ex_table) } | ||
46 | __stop___ex_table = .; | ||
47 | |||
48 | _etext = .; /* End of text section */ | ||
49 | |||
50 | NOTES | ||
51 | RO_DATA(PAGE_SIZE) | ||
52 | |||
53 | /* | ||
54 | * Code which must be executed uncached and the associated data | ||
55 | */ | ||
56 | . = ALIGN(PAGE_SIZE); | ||
57 | __uncached_start = .; | ||
58 | .uncached.text : { *(.uncached.text) } | ||
59 | .uncached.data : { *(.uncached.data) } | ||
60 | __uncached_end = .; | ||
61 | |||
62 | . = ALIGN(THREAD_SIZE); | ||
63 | .data : { /* Data */ | ||
64 | *(.data.init_task) | ||
65 | |||
66 | . = ALIGN(L1_CACHE_BYTES); | ||
67 | *(.data.cacheline_aligned) | ||
68 | |||
69 | . = ALIGN(L1_CACHE_BYTES); | ||
70 | *(.data.read_mostly) | ||
71 | |||
72 | . = ALIGN(PAGE_SIZE); | ||
73 | *(.data.page_aligned) | ||
74 | |||
75 | __nosave_begin = .; | ||
76 | *(.data.nosave) | ||
77 | . = ALIGN(PAGE_SIZE); | ||
78 | __nosave_end = .; | ||
79 | |||
80 | DATA_DATA | ||
81 | CONSTRUCTORS | ||
82 | } | ||
83 | |||
84 | _edata = .; /* End of data section */ | ||
85 | |||
86 | . = ALIGN(PAGE_SIZE); /* Init code and data */ | ||
87 | __init_begin = .; | ||
88 | _sinittext = .; | ||
89 | .init.text : { INIT_TEXT } | ||
90 | _einittext = .; | ||
91 | .init.data : { INIT_DATA } | ||
92 | |||
93 | . = ALIGN(16); | ||
94 | __setup_start = .; | ||
95 | .init.setup : { *(.init.setup) } | ||
96 | __setup_end = .; | ||
97 | |||
98 | __initcall_start = .; | ||
99 | .initcall.init : { | ||
100 | INITCALLS | ||
101 | } | ||
102 | __initcall_end = .; | ||
103 | __con_initcall_start = .; | ||
104 | .con_initcall.init : { *(.con_initcall.init) } | ||
105 | __con_initcall_end = .; | ||
106 | |||
107 | SECURITY_INIT | ||
108 | |||
109 | #ifdef CONFIG_BLK_DEV_INITRD | ||
110 | . = ALIGN(PAGE_SIZE); | ||
111 | __initramfs_start = .; | ||
112 | .init.ramfs : { *(.init.ramfs) } | ||
113 | __initramfs_end = .; | ||
114 | #endif | ||
115 | |||
116 | . = ALIGN(4); | ||
117 | __machvec_start = .; | ||
118 | .machvec.init : { *(.machvec.init) } | ||
119 | __machvec_end = .; | ||
120 | |||
121 | PERCPU(PAGE_SIZE) | ||
122 | |||
123 | /* | ||
124 | * .exit.text is discarded at runtime, not link time, to deal with | ||
125 | * references from __bug_table | ||
126 | */ | ||
127 | .exit.text : { EXIT_TEXT } | ||
128 | .exit.data : { EXIT_DATA } | ||
129 | |||
130 | . = ALIGN(PAGE_SIZE); | ||
131 | .bss : { | ||
132 | __init_end = .; | ||
133 | __bss_start = .; /* BSS */ | ||
134 | *(.bss.page_aligned) | ||
135 | *(.bss) | ||
136 | *(COMMON) | ||
137 | . = ALIGN(4); | ||
138 | _ebss = .; /* uClinux MTD sucks */ | ||
139 | _end = . ; | ||
140 | } | ||
141 | |||
142 | /* | ||
143 | * When something in the kernel is NOT compiled as a module, the | ||
144 | * module cleanup code and data are put into these segments. Both | ||
145 | * can then be thrown away, as cleanup code is never called unless | ||
146 | * it's a module. | ||
147 | */ | ||
148 | /DISCARD/ : { | ||
149 | *(.exitcall.exit) | ||
150 | } | ||
151 | |||
152 | STABS_DEBUG | ||
153 | DWARF_DEBUG | ||
154 | } | ||
diff --git a/arch/sh/kernel/vmlinux_64.lds.S b/arch/sh/kernel/vmlinux_64.lds.S deleted file mode 100644 index 69664460c688..000000000000 --- a/arch/sh/kernel/vmlinux_64.lds.S +++ /dev/null | |||
@@ -1,163 +0,0 @@ | |||
1 | /* | ||
2 | * ld script to make SH64 Linux kernel | ||
3 | * | ||
4 | * Copyright (C) 2000, 2001 Paolo Alberelli | ||
5 | * | ||
6 | * benedict.gaster@superh.com: 2nd May 2002 | ||
7 | * Add definition of empty_zero_page to be the first page of kernel image. | ||
8 | * | ||
9 | * benedict.gaster@superh.com: 3rd May 2002 | ||
10 | * Added support for ramdisk, removing statically linked romfs at the | ||
11 | * same time. | ||
12 | * | ||
13 | * lethal@linux-sh.org: 9th May 2003 | ||
14 | * Kill off GLOBAL_NAME() usage and other CDC-isms. | ||
15 | * | ||
16 | * lethal@linux-sh.org: 19th May 2003 | ||
17 | * Remove support for ancient toolchains. | ||
18 | * | ||
19 | * This file is subject to the terms and conditions of the GNU General Public | ||
20 | * License. See the file "COPYING" in the main directory of this archive | ||
21 | * for more details. | ||
22 | */ | ||
23 | #include <asm/page.h> | ||
24 | #include <asm/cache.h> | ||
25 | #include <asm/thread_info.h> | ||
26 | |||
27 | #define LOAD_OFFSET CONFIG_PAGE_OFFSET | ||
28 | #include <asm-generic/vmlinux.lds.h> | ||
29 | |||
30 | OUTPUT_ARCH(sh:sh5) | ||
31 | |||
32 | #define C_PHYS(x) AT (ADDR(x) - LOAD_OFFSET) | ||
33 | |||
34 | ENTRY(__start) | ||
35 | SECTIONS | ||
36 | { | ||
37 | . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + PAGE_SIZE; | ||
38 | _text = .; /* Text and read-only data */ | ||
39 | |||
40 | .empty_zero_page : C_PHYS(.empty_zero_page) { | ||
41 | *(.empty_zero_page) | ||
42 | } = 0 | ||
43 | |||
44 | .text : C_PHYS(.text) { | ||
45 | HEAD_TEXT | ||
46 | TEXT_TEXT | ||
47 | *(.text64) | ||
48 | *(.text..SHmedia32) | ||
49 | SCHED_TEXT | ||
50 | LOCK_TEXT | ||
51 | KPROBES_TEXT | ||
52 | *(.fixup) | ||
53 | *(.gnu.warning) | ||
54 | #ifdef CONFIG_CPU_LITTLE_ENDIAN | ||
55 | } = 0x6ff0fff0 | ||
56 | #else | ||
57 | } = 0xf0fff06f | ||
58 | #endif | ||
59 | |||
60 | /* We likely want __ex_table to be Cache Line aligned */ | ||
61 | . = ALIGN(L1_CACHE_BYTES); /* Exception table */ | ||
62 | __start___ex_table = .; | ||
63 | __ex_table : C_PHYS(__ex_table) { *(__ex_table) } | ||
64 | __stop___ex_table = .; | ||
65 | |||
66 | _etext = .; /* End of text section */ | ||
67 | |||
68 | NOTES | ||
69 | RO_DATA(PAGE_SIZE) | ||
70 | |||
71 | . = ALIGN(THREAD_SIZE); | ||
72 | .data : C_PHYS(.data) { /* Data */ | ||
73 | *(.data.init_task) | ||
74 | |||
75 | . = ALIGN(L1_CACHE_BYTES); | ||
76 | *(.data.cacheline_aligned) | ||
77 | |||
78 | . = ALIGN(L1_CACHE_BYTES); | ||
79 | *(.data.read_mostly) | ||
80 | |||
81 | . = ALIGN(PAGE_SIZE); | ||
82 | *(.data.page_aligned) | ||
83 | |||
84 | __nosave_begin = .; | ||
85 | *(.data.nosave) | ||
86 | . = ALIGN(PAGE_SIZE); | ||
87 | __nosave_end = .; | ||
88 | |||
89 | DATA_DATA | ||
90 | CONSTRUCTORS | ||
91 | } | ||
92 | |||
93 | _edata = .; /* End of data section */ | ||
94 | |||
95 | . = ALIGN(PAGE_SIZE); /* Init code and data */ | ||
96 | __init_begin = .; | ||
97 | _sinittext = .; | ||
98 | .init.text : C_PHYS(.init.text) { INIT_TEXT } | ||
99 | _einittext = .; | ||
100 | .init.data : C_PHYS(.init.data) { INIT_DATA } | ||
101 | . = ALIGN(L1_CACHE_BYTES); /* Better if Cache Line aligned */ | ||
102 | __setup_start = .; | ||
103 | .init.setup : C_PHYS(.init.setup) { *(.init.setup) } | ||
104 | __setup_end = .; | ||
105 | __initcall_start = .; | ||
106 | .initcall.init : C_PHYS(.initcall.init) { | ||
107 | INITCALLS | ||
108 | } | ||
109 | __initcall_end = .; | ||
110 | __con_initcall_start = .; | ||
111 | .con_initcall.init : C_PHYS(.con_initcall.init) { | ||
112 | *(.con_initcall.init) | ||
113 | } | ||
114 | __con_initcall_end = .; | ||
115 | |||
116 | SECURITY_INIT | ||
117 | |||
118 | #ifdef CONFIG_BLK_DEV_INITRD | ||
119 | . = ALIGN(PAGE_SIZE); | ||
120 | __initramfs_start = .; | ||
121 | .init.ramfs : C_PHYS(.init.ramfs) { *(.init.ramfs) } | ||
122 | __initramfs_end = .; | ||
123 | #endif | ||
124 | |||
125 | . = ALIGN(8); | ||
126 | __machvec_start = .; | ||
127 | .machvec.init : C_PHYS(.machvec.init) { *(.machvec.init) } | ||
128 | __machvec_end = .; | ||
129 | |||
130 | PERCPU(PAGE_SIZE) | ||
131 | |||
132 | /* | ||
133 | * .exit.text is discarded at runtime, not link time, to deal with | ||
134 | * references from __bug_table | ||
135 | */ | ||
136 | .exit.text : C_PHYS(.exit.text) { EXIT_TEXT } | ||
137 | .exit.data : C_PHYS(.exit.data) { EXIT_DATA } | ||
138 | |||
139 | . = ALIGN(PAGE_SIZE); | ||
140 | .bss : C_PHYS(.bss) { | ||
141 | __init_end = .; | ||
142 | __bss_start = .; /* BSS */ | ||
143 | *(.bss.page_aligned) | ||
144 | *(.bss) | ||
145 | *(COMMON) | ||
146 | . = ALIGN(4); | ||
147 | _ebss = .; /* uClinux MTD sucks */ | ||
148 | _end = . ; | ||
149 | } | ||
150 | |||
151 | /* | ||
152 | * When something in the kernel is NOT compiled as a module, the | ||
153 | * module cleanup code and data are put into these segments. Both | ||
154 | * can then be thrown away, as cleanup code is never called unless | ||
155 | * it's a module. | ||
156 | */ | ||
157 | /DISCARD/ : { | ||
158 | *(.exitcall.exit) | ||
159 | } | ||
160 | |||
161 | STABS_DEBUG | ||
162 | DWARF_DEBUG | ||
163 | } | ||
diff --git a/arch/sh/lib64/.gitignore b/arch/sh/lib64/.gitignore deleted file mode 100644 index 3508c2cb23c4..000000000000 --- a/arch/sh/lib64/.gitignore +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | syscalltab.h | ||
diff --git a/arch/sh/lib64/dbg.c b/arch/sh/lib64/dbg.c index 2fb8eaf6de60..6152a6a6d9c6 100644 --- a/arch/sh/lib64/dbg.c +++ b/arch/sh/lib64/dbg.c | |||
@@ -135,140 +135,6 @@ void print_itlb(void) | |||
135 | (" =============================================================\n"); | 135 | (" =============================================================\n"); |
136 | } | 136 | } |
137 | 137 | ||
138 | /* ======================================================================= */ | ||
139 | |||
140 | #ifdef CONFIG_POOR_MANS_STRACE | ||
141 | |||
142 | #include "syscalltab.h" | ||
143 | |||
144 | struct ring_node { | ||
145 | int evt; | ||
146 | int ret_addr; | ||
147 | int event; | ||
148 | int tra; | ||
149 | int pid; | ||
150 | unsigned long sp; | ||
151 | unsigned long pc; | ||
152 | }; | ||
153 | |||
154 | static struct ring_node event_ring[16]; | ||
155 | static int event_ptr = 0; | ||
156 | |||
157 | struct stored_syscall_data { | ||
158 | int pid; | ||
159 | int syscall_number; | ||
160 | }; | ||
161 | |||
162 | #define N_STORED_SYSCALLS 16 | ||
163 | |||
164 | static struct stored_syscall_data stored_syscalls[N_STORED_SYSCALLS]; | ||
165 | static int syscall_next=0; | ||
166 | static int syscall_next_print=0; | ||
167 | |||
168 | void evt_debug(int evt, int ret_addr, int event, int tra, struct pt_regs *regs) | ||
169 | { | ||
170 | int syscallno = tra & 0xff; | ||
171 | unsigned long sp; | ||
172 | unsigned long stack_bottom; | ||
173 | int pid; | ||
174 | struct ring_node *rr; | ||
175 | |||
176 | pid = current->pid; | ||
177 | stack_bottom = (unsigned long) task_stack_page(current); | ||
178 | asm volatile("ori r15, 0, %0" : "=r" (sp)); | ||
179 | rr = event_ring + event_ptr; | ||
180 | rr->evt = evt; | ||
181 | rr->ret_addr = ret_addr; | ||
182 | rr->event = event; | ||
183 | rr->tra = tra; | ||
184 | rr->pid = pid; | ||
185 | rr->sp = sp; | ||
186 | rr->pc = regs->pc; | ||
187 | |||
188 | if (sp < stack_bottom + 3092) { | ||
189 | int i, j; | ||
190 | printk("evt_debug : stack underflow report\n"); | ||
191 | for (j=0, i = event_ptr; j<16; j++) { | ||
192 | rr = event_ring + i; | ||
193 | printk("evt=%08x event=%08x tra=%08x pid=%5d sp=%08lx pc=%08lx\n", | ||
194 | rr->evt, rr->event, rr->tra, rr->pid, rr->sp, rr->pc); | ||
195 | i--; | ||
196 | i &= 15; | ||
197 | } | ||
198 | panic("STACK UNDERFLOW\n"); | ||
199 | } | ||
200 | |||
201 | event_ptr = (event_ptr + 1) & 15; | ||
202 | |||
203 | if ((event == 2) && (evt == 0x160)) { | ||
204 | if (syscallno < NUM_SYSCALL_INFO_ENTRIES) { | ||
205 | /* Store the syscall information to print later. We | ||
206 | * can't print this now - currently we're running with | ||
207 | * SR.BL=1, so we can't take a tlbmiss (which could occur | ||
208 | * in the console drivers under printk). | ||
209 | * | ||
210 | * Just overwrite old entries on ring overflow - this | ||
211 | * is only for last-hope debugging. */ | ||
212 | stored_syscalls[syscall_next].pid = current->pid; | ||
213 | stored_syscalls[syscall_next].syscall_number = syscallno; | ||
214 | syscall_next++; | ||
215 | syscall_next &= (N_STORED_SYSCALLS - 1); | ||
216 | } | ||
217 | } | ||
218 | } | ||
219 | |||
220 | static void drain_syscalls(void) { | ||
221 | while (syscall_next_print != syscall_next) { | ||
222 | printk("Task %d: %s()\n", | ||
223 | stored_syscalls[syscall_next_print].pid, | ||
224 | syscall_info_table[stored_syscalls[syscall_next_print].syscall_number].name); | ||
225 | syscall_next_print++; | ||
226 | syscall_next_print &= (N_STORED_SYSCALLS - 1); | ||
227 | } | ||
228 | } | ||
229 | |||
230 | void evt_debug2(unsigned int ret) | ||
231 | { | ||
232 | drain_syscalls(); | ||
233 | printk("Task %d: syscall returns %08x\n", current->pid, ret); | ||
234 | } | ||
235 | |||
236 | void evt_debug_ret_from_irq(struct pt_regs *regs) | ||
237 | { | ||
238 | int pid; | ||
239 | struct ring_node *rr; | ||
240 | |||
241 | pid = current->pid; | ||
242 | rr = event_ring + event_ptr; | ||
243 | rr->evt = 0xffff; | ||
244 | rr->ret_addr = 0; | ||
245 | rr->event = 0; | ||
246 | rr->tra = 0; | ||
247 | rr->pid = pid; | ||
248 | rr->pc = regs->pc; | ||
249 | event_ptr = (event_ptr + 1) & 15; | ||
250 | } | ||
251 | |||
252 | void evt_debug_ret_from_exc(struct pt_regs *regs) | ||
253 | { | ||
254 | int pid; | ||
255 | struct ring_node *rr; | ||
256 | |||
257 | pid = current->pid; | ||
258 | rr = event_ring + event_ptr; | ||
259 | rr->evt = 0xfffe; | ||
260 | rr->ret_addr = 0; | ||
261 | rr->event = 0; | ||
262 | rr->tra = 0; | ||
263 | rr->pid = pid; | ||
264 | rr->pc = regs->pc; | ||
265 | event_ptr = (event_ptr + 1) & 15; | ||
266 | } | ||
267 | |||
268 | #endif /* CONFIG_POOR_MANS_STRACE */ | ||
269 | |||
270 | /* ======================================================================= */ | ||
271 | |||
272 | void show_excp_regs(char *from, int trapnr, int signr, struct pt_regs *regs) | 138 | void show_excp_regs(char *from, int trapnr, int signr, struct pt_regs *regs) |
273 | { | 139 | { |
274 | 140 | ||
@@ -380,51 +246,3 @@ void show_excp_regs(char *from, int trapnr, int signr, struct pt_regs *regs) | |||
380 | print_dtlb(); | 246 | print_dtlb(); |
381 | print_itlb(); | 247 | print_itlb(); |
382 | } | 248 | } |
383 | |||
384 | /* ======================================================================= */ | ||
385 | |||
386 | /* | ||
387 | ** Depending on <base> scan the MMU, Data or Instruction side | ||
388 | ** looking for a valid mapping matching Eaddr & asid. | ||
389 | ** Return -1 if not found or the TLB id entry otherwise. | ||
390 | ** Note: it works only for 4k pages! | ||
391 | */ | ||
392 | static unsigned long | ||
393 | lookup_mmu_side(unsigned long base, unsigned long Eaddr, unsigned long asid) | ||
394 | { | ||
395 | regType_t pteH; | ||
396 | unsigned long epn; | ||
397 | int count; | ||
398 | |||
399 | epn = Eaddr & 0xfffff000; | ||
400 | |||
401 | for (count = 0; count < MAX_TLBs; count++, base += TLB_STEP) { | ||
402 | pteH = getConfigReg(base); | ||
403 | if (GET_VALID(pteH)) | ||
404 | if ((unsigned long) GET_EPN(pteH) == epn) | ||
405 | if ((unsigned long) GET_ASID(pteH) == asid) | ||
406 | break; | ||
407 | } | ||
408 | return ((unsigned long) ((count < MAX_TLBs) ? base : -1)); | ||
409 | } | ||
410 | |||
411 | unsigned long lookup_dtlb(unsigned long Eaddr) | ||
412 | { | ||
413 | unsigned long asid = get_asid(); | ||
414 | return (lookup_mmu_side((u64) DTLB_BASE, Eaddr, asid)); | ||
415 | } | ||
416 | |||
417 | unsigned long lookup_itlb(unsigned long Eaddr) | ||
418 | { | ||
419 | unsigned long asid = get_asid(); | ||
420 | return (lookup_mmu_side((u64) ITLB_BASE, Eaddr, asid)); | ||
421 | } | ||
422 | |||
423 | void print_page(struct page *page) | ||
424 | { | ||
425 | printk(" page[%p] -> index 0x%lx, count 0x%x, flags 0x%lx\n", | ||
426 | page, page->index, page_count(page), page->flags); | ||
427 | printk(" address_space = %p, pages =%ld\n", page->mapping, | ||
428 | page->mapping->nrpages); | ||
429 | |||
430 | } | ||
diff --git a/arch/sh/lib64/panic.c b/arch/sh/lib64/panic.c index da32ba7b5fcc..38c954e04f6a 100644 --- a/arch/sh/lib64/panic.c +++ b/arch/sh/lib64/panic.c | |||
@@ -6,53 +6,10 @@ | |||
6 | * for more details. | 6 | * for more details. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/kernel.h> | ||
10 | #include <asm/io.h> | ||
11 | #include <cpu/registers.h> | ||
12 | |||
13 | /* THIS IS A PHYSICAL ADDRESS */ | ||
14 | #define HDSP2534_ADDR (0x04002100) | ||
15 | |||
16 | #ifdef CONFIG_SH_CAYMAN | ||
17 | |||
18 | static void poor_mans_delay(void) | ||
19 | { | ||
20 | int i; | ||
21 | for (i = 0; i < 2500000; i++) { | ||
22 | } /* poor man's delay */ | ||
23 | } | ||
24 | |||
25 | static void show_value(unsigned long x) | ||
26 | { | ||
27 | int i; | ||
28 | unsigned nibble; | ||
29 | for (i = 0; i < 8; i++) { | ||
30 | nibble = ((x >> (i * 4)) & 0xf); | ||
31 | |||
32 | ctrl_outb(nibble + ((nibble > 9) ? 55 : 48), | ||
33 | HDSP2534_ADDR + 0xe0 + ((7 - i) << 2)); | ||
34 | } | ||
35 | } | ||
36 | |||
37 | #endif | ||
38 | |||
39 | void | 9 | void |
40 | panic_handler(unsigned long panicPC, unsigned long panicSSR, | 10 | panic_handler(unsigned long panicPC, unsigned long panicSSR, |
41 | unsigned long panicEXPEVT) | 11 | unsigned long panicEXPEVT) |
42 | { | 12 | { |
43 | #ifdef CONFIG_SH_CAYMAN | ||
44 | while (1) { | ||
45 | /* This piece of code displays the PC on the LED display */ | ||
46 | show_value(panicPC); | ||
47 | poor_mans_delay(); | ||
48 | show_value(panicSSR); | ||
49 | poor_mans_delay(); | ||
50 | show_value(panicEXPEVT); | ||
51 | poor_mans_delay(); | ||
52 | } | ||
53 | #endif | ||
54 | |||
55 | /* Never return from the panic handler */ | 13 | /* Never return from the panic handler */ |
56 | for (;;) ; | 14 | for (;;) ; |
57 | |||
58 | } | 15 | } |
diff --git a/arch/sh/lib64/sdivsi3.S b/arch/sh/lib64/sdivsi3.S index 6a800c6a4904..1963bbd42288 100644 --- a/arch/sh/lib64/sdivsi3.S +++ b/arch/sh/lib64/sdivsi3.S | |||
@@ -1,4 +1,6 @@ | |||
1 | .global __sdivsi3 | 1 | .global __sdivsi3 |
2 | .global __sdivsi3_1 | ||
3 | .global __sdivsi3_2 | ||
2 | .section .text..SHmedia32,"ax" | 4 | .section .text..SHmedia32,"ax" |
3 | .align 2 | 5 | .align 2 |
4 | 6 | ||
@@ -6,13 +8,15 @@ | |||
6 | /* clobbered: r1,r18,r19,r20,r21,r25,tr0 */ | 8 | /* clobbered: r1,r18,r19,r20,r21,r25,tr0 */ |
7 | /* result in r0 */ | 9 | /* result in r0 */ |
8 | __sdivsi3: | 10 | __sdivsi3: |
11 | __sdivsi3_1: | ||
9 | ptb __div_table,tr0 | 12 | ptb __div_table,tr0 |
13 | gettr tr0,r20 | ||
10 | 14 | ||
15 | __sdivsi3_2: | ||
11 | nsb r5, r1 | 16 | nsb r5, r1 |
12 | shlld r5, r1, r25 /* normalize; [-2 ..1, 1..2) in s2.62 */ | 17 | shlld r5, r1, r25 /* normalize; [-2 ..1, 1..2) in s2.62 */ |
13 | shari r25, 58, r21 /* extract 5(6) bit index (s2.4 with hole -1..1) */ | 18 | shari r25, 58, r21 /* extract 5(6) bit index (s2.4 with hole -1..1) */ |
14 | /* bubble */ | 19 | /* bubble */ |
15 | gettr tr0,r20 | ||
16 | ldx.ub r20, r21, r19 /* u0.8 */ | 20 | ldx.ub r20, r21, r19 /* u0.8 */ |
17 | shari r25, 32, r25 /* normalize to s2.30 */ | 21 | shari r25, 32, r25 /* normalize to s2.30 */ |
18 | shlli r21, 1, r21 | 22 | shlli r21, 1, r21 |
diff --git a/arch/sh/lib64/udelay.c b/arch/sh/lib64/udelay.c index d76bd801194f..f215b063da70 100644 --- a/arch/sh/lib64/udelay.c +++ b/arch/sh/lib64/udelay.c | |||
@@ -33,7 +33,7 @@ void __delay(unsigned long loops) | |||
33 | :"0"(loops)); | 33 | :"0"(loops)); |
34 | } | 34 | } |
35 | 35 | ||
36 | inline void __const_udelay(unsigned long xloops) | 36 | void __const_udelay(unsigned long xloops) |
37 | { | 37 | { |
38 | __delay(xloops * (HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy)); | 38 | __delay(xloops * (HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy)); |
39 | } | 39 | } |
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index d4079cab2d58..2795618e4f07 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -21,6 +21,29 @@ config PAGE_OFFSET | |||
21 | default "0x20000000" if MMU && SUPERH64 | 21 | default "0x20000000" if MMU && SUPERH64 |
22 | default "0x00000000" | 22 | default "0x00000000" |
23 | 23 | ||
24 | config FORCE_MAX_ZONEORDER | ||
25 | int "Maximum zone order" | ||
26 | range 9 64 if PAGE_SIZE_16KB | ||
27 | default "9" if PAGE_SIZE_16KB | ||
28 | range 7 64 if PAGE_SIZE_64KB | ||
29 | default "7" if PAGE_SIZE_64KB | ||
30 | range 11 64 | ||
31 | default "14" if !MMU | ||
32 | default "11" | ||
33 | help | ||
34 | The kernel memory allocator divides physically contiguous memory | ||
35 | blocks into "zones", where each zone is a power of two number of | ||
36 | pages. This option selects the largest power of two that the kernel | ||
37 | keeps in the memory allocator. If you need to allocate very large | ||
38 | blocks of physically contiguous memory, then you may need to | ||
39 | increase this value. | ||
40 | |||
41 | This config option is actually maximum order plus one. For example, | ||
42 | a value of 11 means that the largest free memory block is 2^10 pages. | ||
43 | |||
44 | The page size is not necessarily 4KB. Keep this in mind when | ||
45 | choosing a value for this option. | ||
46 | |||
24 | config MEMORY_START | 47 | config MEMORY_START |
25 | hex "Physical memory start address" | 48 | hex "Physical memory start address" |
26 | default "0x08000000" | 49 | default "0x08000000" |
@@ -201,14 +224,6 @@ config PAGE_SIZE_64KB | |||
201 | 224 | ||
202 | endchoice | 225 | endchoice |
203 | 226 | ||
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 | 227 | choice |
213 | prompt "HugeTLB page size" | 228 | prompt "HugeTLB page size" |
214 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU | 229 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU |
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c index 9e277ec7d536..86762092508c 100644 --- a/arch/sh/mm/cache-sh5.c +++ b/arch/sh/mm/cache-sh5.c | |||
@@ -60,7 +60,7 @@ static inline void sh64_teardown_dtlb_cache_slot(void) | |||
60 | static inline void sh64_icache_inv_all(void) | 60 | static inline void sh64_icache_inv_all(void) |
61 | { | 61 | { |
62 | unsigned long long addr, flag, data; | 62 | unsigned long long addr, flag, data; |
63 | unsigned int flags; | 63 | unsigned long flags; |
64 | 64 | ||
65 | addr = ICCR0; | 65 | addr = ICCR0; |
66 | flag = ICCR0_ICI; | 66 | flag = ICCR0_ICI; |
@@ -172,7 +172,7 @@ static void sh64_icache_inv_user_page_range(struct mm_struct *mm, | |||
172 | unsigned long eaddr; | 172 | unsigned long eaddr; |
173 | unsigned long after_last_page_start; | 173 | unsigned long after_last_page_start; |
174 | unsigned long mm_asid, current_asid; | 174 | unsigned long mm_asid, current_asid; |
175 | unsigned long long flags = 0ULL; | 175 | unsigned long flags = 0; |
176 | 176 | ||
177 | mm_asid = cpu_asid(smp_processor_id(), mm); | 177 | mm_asid = cpu_asid(smp_processor_id(), mm); |
178 | current_asid = get_asid(); | 178 | current_asid = get_asid(); |
@@ -236,7 +236,7 @@ static void sh64_icache_inv_user_small_range(struct mm_struct *mm, | |||
236 | unsigned long long eaddr = start; | 236 | unsigned long long eaddr = start; |
237 | unsigned long long eaddr_end = start + len; | 237 | unsigned long long eaddr_end = start + len; |
238 | unsigned long current_asid, mm_asid; | 238 | unsigned long current_asid, mm_asid; |
239 | unsigned long long flags; | 239 | unsigned long flags; |
240 | unsigned long long epage_start; | 240 | unsigned long long epage_start; |
241 | 241 | ||
242 | /* | 242 | /* |
@@ -342,7 +342,7 @@ static void inline sh64_dcache_purge_sets(int sets_to_purge_base, int n_sets) | |||
342 | * alloco is a NOP if the cache is write-through. | 342 | * alloco is a NOP if the cache is write-through. |
343 | */ | 343 | */ |
344 | if (test_bit(SH_CACHE_MODE_WT, &(cpu_data->dcache.flags))) | 344 | if (test_bit(SH_CACHE_MODE_WT, &(cpu_data->dcache.flags))) |
345 | ctrl_inb(eaddr); | 345 | __raw_readb((unsigned long)eaddr); |
346 | } | 346 | } |
347 | } | 347 | } |
348 | 348 | ||
diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c index 60cc486d2c2c..da2f4186f2cd 100644 --- a/arch/sh/mm/ioremap_32.c +++ b/arch/sh/mm/ioremap_32.c | |||
@@ -46,17 +46,15 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
46 | return NULL; | 46 | return NULL; |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * If we're on an SH7751 or SH7780 PCI controller, PCI memory is | 49 | * If we're in the fixed PCI memory range, mapping through page |
50 | * mapped at the end of the address space (typically 0xfd000000) | 50 | * tables is not only pointless, but also fundamentally broken. |
51 | * in a non-translatable area, so mapping through page tables for | 51 | * Just return the physical address instead. |
52 | * this area is not only pointless, but also fundamentally | ||
53 | * broken. Just return the physical address instead. | ||
54 | * | 52 | * |
55 | * For boards that map a small PCI memory aperture somewhere in | 53 | * For boards that map a small PCI memory aperture somewhere in |
56 | * P1/P2 space, ioremap() will already do the right thing, | 54 | * P1/P2 space, ioremap() will already do the right thing, |
57 | * and we'll never get this far. | 55 | * and we'll never get this far. |
58 | */ | 56 | */ |
59 | if (is_pci_memaddr(phys_addr) && is_pci_memaddr(last_addr)) | 57 | if (is_pci_memory_fixed_range(phys_addr, size)) |
60 | return (void __iomem *)phys_addr; | 58 | return (void __iomem *)phys_addr; |
61 | 59 | ||
62 | #if !defined(CONFIG_PMB_FIXED) | 60 | #if !defined(CONFIG_PMB_FIXED) |
@@ -121,7 +119,9 @@ void __iounmap(void __iomem *addr) | |||
121 | unsigned long seg = PXSEG(vaddr); | 119 | unsigned long seg = PXSEG(vaddr); |
122 | struct vm_struct *p; | 120 | struct vm_struct *p; |
123 | 121 | ||
124 | if (seg < P3SEG || vaddr >= P3_ADDR_MAX || is_pci_memaddr(vaddr)) | 122 | if (seg < P3SEG || vaddr >= P3_ADDR_MAX) |
123 | return; | ||
124 | if (is_pci_memory_fixed_range(vaddr, 0)) | ||
125 | return; | 125 | return; |
126 | 126 | ||
127 | #ifdef CONFIG_PMB | 127 | #ifdef CONFIG_PMB |
diff --git a/arch/sh/mm/ioremap_64.c b/arch/sh/mm/ioremap_64.c index 31e1bb5effbe..2331229f8126 100644 --- a/arch/sh/mm/ioremap_64.c +++ b/arch/sh/mm/ioremap_64.c | |||
@@ -27,88 +27,17 @@ | |||
27 | #include <asm/tlbflush.h> | 27 | #include <asm/tlbflush.h> |
28 | #include <asm/mmu.h> | 28 | #include <asm/mmu.h> |
29 | 29 | ||
30 | static void shmedia_mapioaddr(unsigned long, unsigned long); | ||
31 | static unsigned long shmedia_ioremap(struct resource *, u32, int); | ||
32 | |||
33 | /* | ||
34 | * Generic mapping function (not visible outside): | ||
35 | */ | ||
36 | |||
37 | /* | ||
38 | * Remap an arbitrary physical address space into the kernel virtual | ||
39 | * address space. Needed when the kernel wants to access high addresses | ||
40 | * directly. | ||
41 | * | ||
42 | * NOTE! We need to allow non-page-aligned mappings too: we will obviously | ||
43 | * have to convert them into an offset in a page-aligned mapping, but the | ||
44 | * caller shouldn't need to know that small detail. | ||
45 | */ | ||
46 | void *__ioremap(unsigned long phys_addr, unsigned long size, | ||
47 | unsigned long flags) | ||
48 | { | ||
49 | void * addr; | ||
50 | struct vm_struct * area; | ||
51 | unsigned long offset, last_addr; | ||
52 | pgprot_t pgprot; | ||
53 | |||
54 | /* Don't allow wraparound or zero size */ | ||
55 | last_addr = phys_addr + size - 1; | ||
56 | if (!size || last_addr < phys_addr) | ||
57 | return NULL; | ||
58 | |||
59 | pgprot = __pgprot(_PAGE_PRESENT | _PAGE_READ | | ||
60 | _PAGE_WRITE | _PAGE_DIRTY | | ||
61 | _PAGE_ACCESSED | _PAGE_SHARED | flags); | ||
62 | |||
63 | /* | ||
64 | * Mappings have to be page-aligned | ||
65 | */ | ||
66 | offset = phys_addr & ~PAGE_MASK; | ||
67 | phys_addr &= PAGE_MASK; | ||
68 | size = PAGE_ALIGN(last_addr + 1) - phys_addr; | ||
69 | |||
70 | /* | ||
71 | * Ok, go for it.. | ||
72 | */ | ||
73 | area = get_vm_area(size, VM_IOREMAP); | ||
74 | if (!area) | ||
75 | return NULL; | ||
76 | pr_debug("Get vm_area returns %p addr %p\n", area, area->addr); | ||
77 | area->phys_addr = phys_addr; | ||
78 | addr = area->addr; | ||
79 | if (ioremap_page_range((unsigned long)addr, (unsigned long)addr + size, | ||
80 | phys_addr, pgprot)) { | ||
81 | vunmap(addr); | ||
82 | return NULL; | ||
83 | } | ||
84 | return (void *) (offset + (char *)addr); | ||
85 | } | ||
86 | EXPORT_SYMBOL(__ioremap); | ||
87 | |||
88 | void __iounmap(void *addr) | ||
89 | { | ||
90 | struct vm_struct *area; | ||
91 | |||
92 | vfree((void *) (PAGE_MASK & (unsigned long) addr)); | ||
93 | area = remove_vm_area((void *) (PAGE_MASK & (unsigned long) addr)); | ||
94 | if (!area) { | ||
95 | printk(KERN_ERR "iounmap: bad address %p\n", addr); | ||
96 | return; | ||
97 | } | ||
98 | |||
99 | kfree(area); | ||
100 | } | ||
101 | EXPORT_SYMBOL(__iounmap); | ||
102 | |||
103 | static struct resource shmedia_iomap = { | 30 | static struct resource shmedia_iomap = { |
104 | .name = "shmedia_iomap", | 31 | .name = "shmedia_iomap", |
105 | .start = IOBASE_VADDR + PAGE_SIZE, | 32 | .start = IOBASE_VADDR + PAGE_SIZE, |
106 | .end = IOBASE_END - 1, | 33 | .end = IOBASE_END - 1, |
107 | }; | 34 | }; |
108 | 35 | ||
109 | static void shmedia_mapioaddr(unsigned long pa, unsigned long va); | 36 | static void shmedia_mapioaddr(unsigned long pa, unsigned long va, |
37 | unsigned long flags); | ||
110 | static void shmedia_unmapioaddr(unsigned long vaddr); | 38 | static void shmedia_unmapioaddr(unsigned long vaddr); |
111 | static unsigned long shmedia_ioremap(struct resource *res, u32 pa, int sz); | 39 | static void __iomem *shmedia_ioremap(struct resource *res, u32 pa, |
40 | int sz, unsigned long flags); | ||
112 | 41 | ||
113 | /* | 42 | /* |
114 | * We have the same problem as the SPARC, so lets have the same comment: | 43 | * We have the same problem as the SPARC, so lets have the same comment: |
@@ -130,18 +59,18 @@ static struct xresource xresv[XNRES]; | |||
130 | 59 | ||
131 | static struct xresource *xres_alloc(void) | 60 | static struct xresource *xres_alloc(void) |
132 | { | 61 | { |
133 | struct xresource *xrp; | 62 | struct xresource *xrp; |
134 | int n; | 63 | int n; |
135 | 64 | ||
136 | xrp = xresv; | 65 | xrp = xresv; |
137 | for (n = 0; n < XNRES; n++) { | 66 | for (n = 0; n < XNRES; n++) { |
138 | if (xrp->xflag == 0) { | 67 | if (xrp->xflag == 0) { |
139 | xrp->xflag = 1; | 68 | xrp->xflag = 1; |
140 | return xrp; | 69 | return xrp; |
141 | } | 70 | } |
142 | xrp++; | 71 | xrp++; |
143 | } | 72 | } |
144 | return NULL; | 73 | return NULL; |
145 | } | 74 | } |
146 | 75 | ||
147 | static void xres_free(struct xresource *xrp) | 76 | static void xres_free(struct xresource *xrp) |
@@ -161,76 +90,71 @@ static struct resource *shmedia_find_resource(struct resource *root, | |||
161 | return NULL; | 90 | return NULL; |
162 | } | 91 | } |
163 | 92 | ||
164 | static unsigned long shmedia_alloc_io(unsigned long phys, unsigned long size, | 93 | static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, |
165 | const char *name) | 94 | const char *name, unsigned long flags) |
166 | { | 95 | { |
167 | static int printed_full = 0; | 96 | static int printed_full; |
168 | struct xresource *xres; | 97 | struct xresource *xres; |
169 | struct resource *res; | 98 | struct resource *res; |
170 | char *tack; | 99 | char *tack; |
171 | int tlen; | 100 | int tlen; |
172 | 101 | ||
173 | if (name == NULL) name = "???"; | 102 | if (name == NULL) |
174 | 103 | name = "???"; | |
175 | if ((xres = xres_alloc()) != 0) { | 104 | |
176 | tack = xres->xname; | 105 | xres = xres_alloc(); |
177 | res = &xres->xres; | 106 | if (xres != 0) { |
178 | } else { | 107 | tack = xres->xname; |
179 | if (!printed_full) { | 108 | res = &xres->xres; |
180 | printk("%s: done with statics, switching to kmalloc\n", | 109 | } else { |
181 | __func__); | 110 | if (!printed_full) { |
182 | printed_full = 1; | 111 | printk(KERN_NOTICE "%s: done with statics, " |
183 | } | 112 | "switching to kmalloc\n", __func__); |
184 | tlen = strlen(name); | 113 | printed_full = 1; |
185 | tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL); | 114 | } |
186 | if (!tack) | 115 | tlen = strlen(name); |
187 | return -ENOMEM; | 116 | tack = kmalloc(sizeof(struct resource) + tlen + 1, GFP_KERNEL); |
188 | memset(tack, 0, sizeof(struct resource)); | 117 | if (!tack) |
189 | res = (struct resource *) tack; | 118 | return NULL; |
190 | tack += sizeof (struct resource); | 119 | memset(tack, 0, sizeof(struct resource)); |
191 | } | 120 | res = (struct resource *) tack; |
192 | 121 | tack += sizeof(struct resource); | |
193 | strncpy(tack, name, XNMLN); | 122 | } |
194 | tack[XNMLN] = 0; | 123 | |
195 | res->name = tack; | 124 | strncpy(tack, name, XNMLN); |
196 | 125 | tack[XNMLN] = 0; | |
197 | return shmedia_ioremap(res, phys, size); | 126 | res->name = tack; |
127 | |||
128 | return shmedia_ioremap(res, phys, size, flags); | ||
198 | } | 129 | } |
199 | 130 | ||
200 | static unsigned long shmedia_ioremap(struct resource *res, u32 pa, int sz) | 131 | static void __iomem *shmedia_ioremap(struct resource *res, u32 pa, int sz, |
132 | unsigned long flags) | ||
201 | { | 133 | { |
202 | unsigned long offset = ((unsigned long) pa) & (~PAGE_MASK); | 134 | unsigned long offset = ((unsigned long) pa) & (~PAGE_MASK); |
203 | unsigned long round_sz = (offset + sz + PAGE_SIZE-1) & PAGE_MASK; | 135 | unsigned long round_sz = (offset + sz + PAGE_SIZE-1) & PAGE_MASK; |
204 | unsigned long va; | 136 | unsigned long va; |
205 | unsigned int psz; | 137 | unsigned int psz; |
206 | 138 | ||
207 | if (allocate_resource(&shmedia_iomap, res, round_sz, | 139 | if (allocate_resource(&shmedia_iomap, res, round_sz, |
208 | shmedia_iomap.start, shmedia_iomap.end, | 140 | shmedia_iomap.start, shmedia_iomap.end, |
209 | PAGE_SIZE, NULL, NULL) != 0) { | 141 | PAGE_SIZE, NULL, NULL) != 0) { |
210 | panic("alloc_io_res(%s): cannot occupy\n", | 142 | panic("alloc_io_res(%s): cannot occupy\n", |
211 | (res->name != NULL)? res->name: "???"); | 143 | (res->name != NULL) ? res->name : "???"); |
212 | } | 144 | } |
213 | 145 | ||
214 | va = res->start; | 146 | va = res->start; |
215 | pa &= PAGE_MASK; | 147 | pa &= PAGE_MASK; |
216 | 148 | ||
217 | psz = (res->end - res->start + (PAGE_SIZE - 1)) / PAGE_SIZE; | 149 | psz = (res->end - res->start + (PAGE_SIZE - 1)) / PAGE_SIZE; |
218 | 150 | ||
219 | /* log at boot time ... */ | 151 | for (psz = res->end - res->start + 1; psz != 0; psz -= PAGE_SIZE) { |
220 | printk("mapioaddr: %6s [%2d page%s] va 0x%08lx pa 0x%08x\n", | 152 | shmedia_mapioaddr(pa, va, flags); |
221 | ((res->name != NULL) ? res->name : "???"), | 153 | va += PAGE_SIZE; |
222 | psz, psz == 1 ? " " : "s", va, pa); | 154 | pa += PAGE_SIZE; |
223 | 155 | } | |
224 | for (psz = res->end - res->start + 1; psz != 0; psz -= PAGE_SIZE) { | ||
225 | shmedia_mapioaddr(pa, va); | ||
226 | va += PAGE_SIZE; | ||
227 | pa += PAGE_SIZE; | ||
228 | } | ||
229 | |||
230 | res->start += offset; | ||
231 | res->end = res->start + sz - 1; /* not strictly necessary.. */ | ||
232 | 156 | ||
233 | return res->start; | 157 | return (void __iomem *)(unsigned long)(res->start + offset); |
234 | } | 158 | } |
235 | 159 | ||
236 | static void shmedia_free_io(struct resource *res) | 160 | static void shmedia_free_io(struct resource *res) |
@@ -249,14 +173,12 @@ static void shmedia_free_io(struct resource *res) | |||
249 | 173 | ||
250 | static __init_refok void *sh64_get_page(void) | 174 | static __init_refok void *sh64_get_page(void) |
251 | { | 175 | { |
252 | extern int after_bootmem; | ||
253 | void *page; | 176 | void *page; |
254 | 177 | ||
255 | if (after_bootmem) { | 178 | if (after_bootmem) |
256 | page = (void *)get_zeroed_page(GFP_ATOMIC); | 179 | page = (void *)get_zeroed_page(GFP_KERNEL); |
257 | } else { | 180 | else |
258 | page = alloc_bootmem_pages(PAGE_SIZE); | 181 | page = alloc_bootmem_pages(PAGE_SIZE); |
259 | } | ||
260 | 182 | ||
261 | if (!page || ((unsigned long)page & ~PAGE_MASK)) | 183 | if (!page || ((unsigned long)page & ~PAGE_MASK)) |
262 | panic("sh64_get_page: Out of memory already?\n"); | 184 | panic("sh64_get_page: Out of memory already?\n"); |
@@ -264,17 +186,20 @@ static __init_refok void *sh64_get_page(void) | |||
264 | return page; | 186 | return page; |
265 | } | 187 | } |
266 | 188 | ||
267 | static void shmedia_mapioaddr(unsigned long pa, unsigned long va) | 189 | static void shmedia_mapioaddr(unsigned long pa, unsigned long va, |
190 | unsigned long flags) | ||
268 | { | 191 | { |
269 | pgd_t *pgdp; | 192 | pgd_t *pgdp; |
270 | pud_t *pudp; | 193 | pud_t *pudp; |
271 | pmd_t *pmdp; | 194 | pmd_t *pmdp; |
272 | pte_t *ptep, pte; | 195 | pte_t *ptep, pte; |
273 | pgprot_t prot; | 196 | pgprot_t prot; |
274 | unsigned long flags = 1; /* 1 = CB0-1 device */ | ||
275 | 197 | ||
276 | pr_debug("shmedia_mapiopage pa %08lx va %08lx\n", pa, va); | 198 | pr_debug("shmedia_mapiopage pa %08lx va %08lx\n", pa, va); |
277 | 199 | ||
200 | if (!flags) | ||
201 | flags = 1; /* 1 = CB0-1 device */ | ||
202 | |||
278 | pgdp = pgd_offset_k(va); | 203 | pgdp = pgd_offset_k(va); |
279 | if (pgd_none(*pgdp) || !pgd_present(*pgdp)) { | 204 | if (pgd_none(*pgdp) || !pgd_present(*pgdp)) { |
280 | pudp = (pud_t *)sh64_get_page(); | 205 | pudp = (pud_t *)sh64_get_page(); |
@@ -288,7 +213,7 @@ static void shmedia_mapioaddr(unsigned long pa, unsigned long va) | |||
288 | } | 213 | } |
289 | 214 | ||
290 | pmdp = pmd_offset(pudp, va); | 215 | pmdp = pmd_offset(pudp, va); |
291 | if (pmd_none(*pmdp) || !pmd_present(*pmdp) ) { | 216 | if (pmd_none(*pmdp) || !pmd_present(*pmdp)) { |
292 | ptep = (pte_t *)sh64_get_page(); | 217 | ptep = (pte_t *)sh64_get_page(); |
293 | set_pmd(pmdp, __pmd((unsigned long)ptep + _PAGE_TABLE)); | 218 | set_pmd(pmdp, __pmd((unsigned long)ptep + _PAGE_TABLE)); |
294 | } | 219 | } |
@@ -336,17 +261,19 @@ static void shmedia_unmapioaddr(unsigned long vaddr) | |||
336 | pte_clear(&init_mm, vaddr, ptep); | 261 | pte_clear(&init_mm, vaddr, ptep); |
337 | } | 262 | } |
338 | 263 | ||
339 | unsigned long onchip_remap(unsigned long phys, unsigned long size, const char *name) | 264 | void __iomem *__ioremap(unsigned long offset, unsigned long size, |
265 | unsigned long flags) | ||
340 | { | 266 | { |
341 | if (size < PAGE_SIZE) | 267 | char name[14]; |
342 | size = PAGE_SIZE; | ||
343 | 268 | ||
344 | return shmedia_alloc_io(phys, size, name); | 269 | sprintf(name, "phys_%08x", (u32)offset); |
270 | return shmedia_alloc_io(offset, size, name, flags); | ||
345 | } | 271 | } |
346 | EXPORT_SYMBOL(onchip_remap); | 272 | EXPORT_SYMBOL(__ioremap); |
347 | 273 | ||
348 | void onchip_unmap(unsigned long vaddr) | 274 | void __iounmap(void __iomem *virtual) |
349 | { | 275 | { |
276 | unsigned long vaddr = (unsigned long)virtual & PAGE_MASK; | ||
350 | struct resource *res; | 277 | struct resource *res; |
351 | unsigned int psz; | 278 | unsigned int psz; |
352 | 279 | ||
@@ -357,10 +284,7 @@ void onchip_unmap(unsigned long vaddr) | |||
357 | return; | 284 | return; |
358 | } | 285 | } |
359 | 286 | ||
360 | psz = (res->end - res->start + (PAGE_SIZE - 1)) / PAGE_SIZE; | 287 | psz = (res->end - res->start + (PAGE_SIZE - 1)) / PAGE_SIZE; |
361 | |||
362 | printk(KERN_DEBUG "unmapioaddr: %6s [%2d page%s] freed\n", | ||
363 | res->name, psz, psz == 1 ? " " : "s"); | ||
364 | 288 | ||
365 | shmedia_free_io(res); | 289 | shmedia_free_io(res); |
366 | 290 | ||
@@ -371,9 +295,8 @@ void onchip_unmap(unsigned long vaddr) | |||
371 | kfree(res); | 295 | kfree(res); |
372 | } | 296 | } |
373 | } | 297 | } |
374 | EXPORT_SYMBOL(onchip_unmap); | 298 | EXPORT_SYMBOL(__iounmap); |
375 | 299 | ||
376 | #ifdef CONFIG_PROC_FS | ||
377 | static int | 300 | static int |
378 | ioremap_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, | 301 | ioremap_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, |
379 | void *data) | 302 | void *data) |
@@ -385,7 +308,10 @@ ioremap_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, | |||
385 | for (r = ((struct resource *)data)->child; r != NULL; r = r->sibling) { | 308 | for (r = ((struct resource *)data)->child; r != NULL; r = r->sibling) { |
386 | if (p + 32 >= e) /* Better than nothing */ | 309 | if (p + 32 >= e) /* Better than nothing */ |
387 | break; | 310 | break; |
388 | if ((nm = r->name) == 0) nm = "???"; | 311 | nm = r->name; |
312 | if (nm == NULL) | ||
313 | nm = "???"; | ||
314 | |||
389 | p += sprintf(p, "%08lx-%08lx: %s\n", | 315 | p += sprintf(p, "%08lx-%08lx: %s\n", |
390 | (unsigned long)r->start, | 316 | (unsigned long)r->start, |
391 | (unsigned long)r->end, nm); | 317 | (unsigned long)r->end, nm); |
@@ -393,14 +319,11 @@ ioremap_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, | |||
393 | 319 | ||
394 | return p-buf; | 320 | return p-buf; |
395 | } | 321 | } |
396 | #endif /* CONFIG_PROC_FS */ | ||
397 | 322 | ||
398 | static int __init register_proc_onchip(void) | 323 | static int __init register_proc_onchip(void) |
399 | { | 324 | { |
400 | #ifdef CONFIG_PROC_FS | 325 | create_proc_read_entry("io_map", 0, 0, ioremap_proc_info, |
401 | create_proc_read_entry("io_map",0,0, ioremap_proc_info, &shmedia_iomap); | 326 | &shmedia_iomap); |
402 | #endif | ||
403 | return 0; | 327 | return 0; |
404 | } | 328 | } |
405 | 329 | late_initcall(register_proc_onchip); | |
406 | __initcall(register_proc_onchip); | ||
diff --git a/arch/sh/mm/mmap.c b/arch/sh/mm/mmap.c index 931f4d003fa0..1b5fdfb4e0c2 100644 --- a/arch/sh/mm/mmap.c +++ b/arch/sh/mm/mmap.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/mm/mmap.c | 2 | * arch/sh/mm/mmap.c |
3 | * | 3 | * |
4 | * Copyright (C) 2008 Paul Mundt | 4 | * Copyright (C) 2008 - 2009 Paul Mundt |
5 | * | 5 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
7 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
@@ -21,9 +21,26 @@ EXPORT_SYMBOL(shm_align_mask); | |||
21 | /* | 21 | /* |
22 | * To avoid cache aliases, we map the shared page with same color. | 22 | * To avoid cache aliases, we map the shared page with same color. |
23 | */ | 23 | */ |
24 | #define COLOUR_ALIGN(addr, pgoff) \ | 24 | static inline unsigned long COLOUR_ALIGN(unsigned long addr, |
25 | ((((addr) + shm_align_mask) & ~shm_align_mask) + \ | 25 | unsigned long pgoff) |
26 | (((pgoff) << PAGE_SHIFT) & shm_align_mask)) | 26 | { |
27 | unsigned long base = (addr + shm_align_mask) & ~shm_align_mask; | ||
28 | unsigned long off = (pgoff << PAGE_SHIFT) & shm_align_mask; | ||
29 | |||
30 | return base + off; | ||
31 | } | ||
32 | |||
33 | static inline unsigned long COLOUR_ALIGN_DOWN(unsigned long addr, | ||
34 | unsigned long pgoff) | ||
35 | { | ||
36 | unsigned long base = addr & ~shm_align_mask; | ||
37 | unsigned long off = (pgoff << PAGE_SHIFT) & shm_align_mask; | ||
38 | |||
39 | if (base + off <= addr) | ||
40 | return base + off; | ||
41 | |||
42 | return base - off; | ||
43 | } | ||
27 | 44 | ||
28 | unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, | 45 | unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, |
29 | unsigned long len, unsigned long pgoff, unsigned long flags) | 46 | unsigned long len, unsigned long pgoff, unsigned long flags) |
@@ -103,6 +120,117 @@ full_search: | |||
103 | addr = COLOUR_ALIGN(addr, pgoff); | 120 | addr = COLOUR_ALIGN(addr, pgoff); |
104 | } | 121 | } |
105 | } | 122 | } |
123 | |||
124 | unsigned long | ||
125 | arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, | ||
126 | const unsigned long len, const unsigned long pgoff, | ||
127 | const unsigned long flags) | ||
128 | { | ||
129 | struct vm_area_struct *vma; | ||
130 | struct mm_struct *mm = current->mm; | ||
131 | unsigned long addr = addr0; | ||
132 | int do_colour_align; | ||
133 | |||
134 | if (flags & MAP_FIXED) { | ||
135 | /* We do not accept a shared mapping if it would violate | ||
136 | * cache aliasing constraints. | ||
137 | */ | ||
138 | if ((flags & MAP_SHARED) && | ||
139 | ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) | ||
140 | return -EINVAL; | ||
141 | return addr; | ||
142 | } | ||
143 | |||
144 | if (unlikely(len > TASK_SIZE)) | ||
145 | return -ENOMEM; | ||
146 | |||
147 | do_colour_align = 0; | ||
148 | if (filp || (flags & MAP_SHARED)) | ||
149 | do_colour_align = 1; | ||
150 | |||
151 | /* requesting a specific address */ | ||
152 | if (addr) { | ||
153 | if (do_colour_align) | ||
154 | addr = COLOUR_ALIGN(addr, pgoff); | ||
155 | else | ||
156 | addr = PAGE_ALIGN(addr); | ||
157 | |||
158 | vma = find_vma(mm, addr); | ||
159 | if (TASK_SIZE - len >= addr && | ||
160 | (!vma || addr + len <= vma->vm_start)) | ||
161 | return addr; | ||
162 | } | ||
163 | |||
164 | /* check if free_area_cache is useful for us */ | ||
165 | if (len <= mm->cached_hole_size) { | ||
166 | mm->cached_hole_size = 0; | ||
167 | mm->free_area_cache = mm->mmap_base; | ||
168 | } | ||
169 | |||
170 | /* either no address requested or can't fit in requested address hole */ | ||
171 | addr = mm->free_area_cache; | ||
172 | if (do_colour_align) { | ||
173 | unsigned long base = COLOUR_ALIGN_DOWN(addr-len, pgoff); | ||
174 | |||
175 | addr = base + len; | ||
176 | } | ||
177 | |||
178 | /* make sure it can fit in the remaining address space */ | ||
179 | if (likely(addr > len)) { | ||
180 | vma = find_vma(mm, addr-len); | ||
181 | if (!vma || addr <= vma->vm_start) { | ||
182 | /* remember the address as a hint for next time */ | ||
183 | return (mm->free_area_cache = addr-len); | ||
184 | } | ||
185 | } | ||
186 | |||
187 | if (unlikely(mm->mmap_base < len)) | ||
188 | goto bottomup; | ||
189 | |||
190 | addr = mm->mmap_base-len; | ||
191 | if (do_colour_align) | ||
192 | addr = COLOUR_ALIGN_DOWN(addr, pgoff); | ||
193 | |||
194 | do { | ||
195 | /* | ||
196 | * Lookup failure means no vma is above this address, | ||
197 | * else if new region fits below vma->vm_start, | ||
198 | * return with success: | ||
199 | */ | ||
200 | vma = find_vma(mm, addr); | ||
201 | if (likely(!vma || addr+len <= vma->vm_start)) { | ||
202 | /* remember the address as a hint for next time */ | ||
203 | return (mm->free_area_cache = addr); | ||
204 | } | ||
205 | |||
206 | /* remember the largest hole we saw so far */ | ||
207 | if (addr + mm->cached_hole_size < vma->vm_start) | ||
208 | mm->cached_hole_size = vma->vm_start - addr; | ||
209 | |||
210 | /* try just below the current vma->vm_start */ | ||
211 | addr = vma->vm_start-len; | ||
212 | if (do_colour_align) | ||
213 | addr = COLOUR_ALIGN_DOWN(addr, pgoff); | ||
214 | } while (likely(len < vma->vm_start)); | ||
215 | |||
216 | bottomup: | ||
217 | /* | ||
218 | * A failed mmap() very likely causes application failure, | ||
219 | * so fall back to the bottom-up function here. This scenario | ||
220 | * can happen with large stack limits and large mmap() | ||
221 | * allocations. | ||
222 | */ | ||
223 | mm->cached_hole_size = ~0UL; | ||
224 | mm->free_area_cache = TASK_UNMAPPED_BASE; | ||
225 | addr = arch_get_unmapped_area(filp, addr0, len, pgoff, flags); | ||
226 | /* | ||
227 | * Restore the topdown base: | ||
228 | */ | ||
229 | mm->free_area_cache = mm->mmap_base; | ||
230 | mm->cached_hole_size = ~0UL; | ||
231 | |||
232 | return addr; | ||
233 | } | ||
106 | #endif /* CONFIG_MMU */ | 234 | #endif /* CONFIG_MMU */ |
107 | 235 | ||
108 | /* | 236 | /* |
diff --git a/arch/sh/oprofile/common.c b/arch/sh/oprofile/common.c index 1b9d4304b3bf..44f4e31c6d63 100644 --- a/arch/sh/oprofile/common.c +++ b/arch/sh/oprofile/common.c | |||
@@ -109,6 +109,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
109 | case CPU_SH7785: | 109 | case CPU_SH7785: |
110 | case CPU_SH7786: | 110 | case CPU_SH7786: |
111 | case CPU_SH7723: | 111 | case CPU_SH7723: |
112 | case CPU_SH7724: | ||
112 | case CPU_SHX3: | 113 | case CPU_SHX3: |
113 | lmodel = &op_model_sh4a_ops; | 114 | lmodel = &op_model_sh4a_ops; |
114 | break; | 115 | break; |
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 1efb2879a94f..eef216f7f61d 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -3,3 +3,5 @@ obj-$(CONFIG_X86_CYCLONE_TIMER) += cyclone.o | |||
3 | obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o | 3 | obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o |
4 | obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o | 4 | obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o |
5 | obj-$(CONFIG_SH_TIMER_CMT) += sh_cmt.o | 5 | obj-$(CONFIG_SH_TIMER_CMT) += sh_cmt.o |
6 | obj-$(CONFIG_SH_TIMER_MTU2) += sh_mtu2.o | ||
7 | obj-$(CONFIG_SH_TIMER_TMU) += sh_tmu.o | ||
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 1c92c39a53aa..cf56a2af5fe1 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -18,7 +18,6 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/bootmem.h> | ||
22 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
23 | #include <linux/spinlock.h> | 22 | #include <linux/spinlock.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
@@ -29,7 +28,7 @@ | |||
29 | #include <linux/err.h> | 28 | #include <linux/err.h> |
30 | #include <linux/clocksource.h> | 29 | #include <linux/clocksource.h> |
31 | #include <linux/clockchips.h> | 30 | #include <linux/clockchips.h> |
32 | #include <linux/sh_cmt.h> | 31 | #include <linux/sh_timer.h> |
33 | 32 | ||
34 | struct sh_cmt_priv { | 33 | struct sh_cmt_priv { |
35 | void __iomem *mapbase; | 34 | void __iomem *mapbase; |
@@ -47,6 +46,7 @@ struct sh_cmt_priv { | |||
47 | unsigned long rate; | 46 | unsigned long rate; |
48 | spinlock_t lock; | 47 | spinlock_t lock; |
49 | struct clock_event_device ced; | 48 | struct clock_event_device ced; |
49 | struct clocksource cs; | ||
50 | unsigned long total_cycles; | 50 | unsigned long total_cycles; |
51 | }; | 51 | }; |
52 | 52 | ||
@@ -59,7 +59,7 @@ static DEFINE_SPINLOCK(sh_cmt_lock); | |||
59 | 59 | ||
60 | static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) | 60 | static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) |
61 | { | 61 | { |
62 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 62 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
63 | void __iomem *base = p->mapbase; | 63 | void __iomem *base = p->mapbase; |
64 | unsigned long offs; | 64 | unsigned long offs; |
65 | 65 | ||
@@ -83,7 +83,7 @@ static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) | |||
83 | static inline void sh_cmt_write(struct sh_cmt_priv *p, int reg_nr, | 83 | static inline void sh_cmt_write(struct sh_cmt_priv *p, int reg_nr, |
84 | unsigned long value) | 84 | unsigned long value) |
85 | { | 85 | { |
86 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 86 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
87 | void __iomem *base = p->mapbase; | 87 | void __iomem *base = p->mapbase; |
88 | unsigned long offs; | 88 | unsigned long offs; |
89 | 89 | ||
@@ -110,23 +110,28 @@ static unsigned long sh_cmt_get_counter(struct sh_cmt_priv *p, | |||
110 | int *has_wrapped) | 110 | int *has_wrapped) |
111 | { | 111 | { |
112 | unsigned long v1, v2, v3; | 112 | unsigned long v1, v2, v3; |
113 | int o1, o2; | ||
114 | |||
115 | o1 = sh_cmt_read(p, CMCSR) & p->overflow_bit; | ||
113 | 116 | ||
114 | /* Make sure the timer value is stable. Stolen from acpi_pm.c */ | 117 | /* Make sure the timer value is stable. Stolen from acpi_pm.c */ |
115 | do { | 118 | do { |
119 | o2 = o1; | ||
116 | v1 = sh_cmt_read(p, CMCNT); | 120 | v1 = sh_cmt_read(p, CMCNT); |
117 | v2 = sh_cmt_read(p, CMCNT); | 121 | v2 = sh_cmt_read(p, CMCNT); |
118 | v3 = sh_cmt_read(p, CMCNT); | 122 | v3 = sh_cmt_read(p, CMCNT); |
119 | } while (unlikely((v1 > v2 && v1 < v3) || (v2 > v3 && v2 < v1) | 123 | o1 = sh_cmt_read(p, CMCSR) & p->overflow_bit; |
120 | || (v3 > v1 && v3 < v2))); | 124 | } while (unlikely((o1 != o2) || (v1 > v2 && v1 < v3) |
125 | || (v2 > v3 && v2 < v1) || (v3 > v1 && v3 < v2))); | ||
121 | 126 | ||
122 | *has_wrapped = sh_cmt_read(p, CMCSR) & p->overflow_bit; | 127 | *has_wrapped = o1; |
123 | return v2; | 128 | return v2; |
124 | } | 129 | } |
125 | 130 | ||
126 | 131 | ||
127 | static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) | 132 | static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) |
128 | { | 133 | { |
129 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 134 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
130 | unsigned long flags, value; | 135 | unsigned long flags, value; |
131 | 136 | ||
132 | /* start stop register shared by multiple timer channels */ | 137 | /* start stop register shared by multiple timer channels */ |
@@ -144,7 +149,7 @@ static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) | |||
144 | 149 | ||
145 | static int sh_cmt_enable(struct sh_cmt_priv *p, unsigned long *rate) | 150 | static int sh_cmt_enable(struct sh_cmt_priv *p, unsigned long *rate) |
146 | { | 151 | { |
147 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 152 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
148 | int ret; | 153 | int ret; |
149 | 154 | ||
150 | /* enable clock */ | 155 | /* enable clock */ |
@@ -153,16 +158,18 @@ static int sh_cmt_enable(struct sh_cmt_priv *p, unsigned long *rate) | |||
153 | pr_err("sh_cmt: cannot enable clock \"%s\"\n", cfg->clk); | 158 | pr_err("sh_cmt: cannot enable clock \"%s\"\n", cfg->clk); |
154 | return ret; | 159 | return ret; |
155 | } | 160 | } |
156 | *rate = clk_get_rate(p->clk) / 8; | ||
157 | 161 | ||
158 | /* make sure channel is disabled */ | 162 | /* make sure channel is disabled */ |
159 | sh_cmt_start_stop_ch(p, 0); | 163 | sh_cmt_start_stop_ch(p, 0); |
160 | 164 | ||
161 | /* configure channel, periodic mode and maximum timeout */ | 165 | /* configure channel, periodic mode and maximum timeout */ |
162 | if (p->width == 16) | 166 | if (p->width == 16) { |
163 | sh_cmt_write(p, CMCSR, 0); | 167 | *rate = clk_get_rate(p->clk) / 512; |
164 | else | 168 | sh_cmt_write(p, CMCSR, 0x43); |
169 | } else { | ||
170 | *rate = clk_get_rate(p->clk) / 8; | ||
165 | sh_cmt_write(p, CMCSR, 0x01a4); | 171 | sh_cmt_write(p, CMCSR, 0x01a4); |
172 | } | ||
166 | 173 | ||
167 | sh_cmt_write(p, CMCOR, 0xffffffff); | 174 | sh_cmt_write(p, CMCOR, 0xffffffff); |
168 | sh_cmt_write(p, CMCNT, 0); | 175 | sh_cmt_write(p, CMCNT, 0); |
@@ -376,6 +383,68 @@ static void sh_cmt_stop(struct sh_cmt_priv *p, unsigned long flag) | |||
376 | spin_unlock_irqrestore(&p->lock, flags); | 383 | spin_unlock_irqrestore(&p->lock, flags); |
377 | } | 384 | } |
378 | 385 | ||
386 | static struct sh_cmt_priv *cs_to_sh_cmt(struct clocksource *cs) | ||
387 | { | ||
388 | return container_of(cs, struct sh_cmt_priv, cs); | ||
389 | } | ||
390 | |||
391 | static cycle_t sh_cmt_clocksource_read(struct clocksource *cs) | ||
392 | { | ||
393 | struct sh_cmt_priv *p = cs_to_sh_cmt(cs); | ||
394 | unsigned long flags, raw; | ||
395 | unsigned long value; | ||
396 | int has_wrapped; | ||
397 | |||
398 | spin_lock_irqsave(&p->lock, flags); | ||
399 | value = p->total_cycles; | ||
400 | raw = sh_cmt_get_counter(p, &has_wrapped); | ||
401 | |||
402 | if (unlikely(has_wrapped)) | ||
403 | raw += p->match_value; | ||
404 | spin_unlock_irqrestore(&p->lock, flags); | ||
405 | |||
406 | return value + raw; | ||
407 | } | ||
408 | |||
409 | static int sh_cmt_clocksource_enable(struct clocksource *cs) | ||
410 | { | ||
411 | struct sh_cmt_priv *p = cs_to_sh_cmt(cs); | ||
412 | int ret; | ||
413 | |||
414 | p->total_cycles = 0; | ||
415 | |||
416 | ret = sh_cmt_start(p, FLAG_CLOCKSOURCE); | ||
417 | if (ret) | ||
418 | return ret; | ||
419 | |||
420 | /* TODO: calculate good shift from rate and counter bit width */ | ||
421 | cs->shift = 0; | ||
422 | cs->mult = clocksource_hz2mult(p->rate, cs->shift); | ||
423 | return 0; | ||
424 | } | ||
425 | |||
426 | static void sh_cmt_clocksource_disable(struct clocksource *cs) | ||
427 | { | ||
428 | sh_cmt_stop(cs_to_sh_cmt(cs), FLAG_CLOCKSOURCE); | ||
429 | } | ||
430 | |||
431 | static int sh_cmt_register_clocksource(struct sh_cmt_priv *p, | ||
432 | char *name, unsigned long rating) | ||
433 | { | ||
434 | struct clocksource *cs = &p->cs; | ||
435 | |||
436 | cs->name = name; | ||
437 | cs->rating = rating; | ||
438 | cs->read = sh_cmt_clocksource_read; | ||
439 | cs->enable = sh_cmt_clocksource_enable; | ||
440 | cs->disable = sh_cmt_clocksource_disable; | ||
441 | cs->mask = CLOCKSOURCE_MASK(sizeof(unsigned long) * 8); | ||
442 | cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; | ||
443 | pr_info("sh_cmt: %s used as clock source\n", cs->name); | ||
444 | clocksource_register(cs); | ||
445 | return 0; | ||
446 | } | ||
447 | |||
379 | static struct sh_cmt_priv *ced_to_sh_cmt(struct clock_event_device *ced) | 448 | static struct sh_cmt_priv *ced_to_sh_cmt(struct clock_event_device *ced) |
380 | { | 449 | { |
381 | return container_of(ced, struct sh_cmt_priv, ced); | 450 | return container_of(ced, struct sh_cmt_priv, ced); |
@@ -468,9 +537,9 @@ static void sh_cmt_register_clockevent(struct sh_cmt_priv *p, | |||
468 | clockevents_register_device(ced); | 537 | clockevents_register_device(ced); |
469 | } | 538 | } |
470 | 539 | ||
471 | int sh_cmt_register(struct sh_cmt_priv *p, char *name, | 540 | static int sh_cmt_register(struct sh_cmt_priv *p, char *name, |
472 | unsigned long clockevent_rating, | 541 | unsigned long clockevent_rating, |
473 | unsigned long clocksource_rating) | 542 | unsigned long clocksource_rating) |
474 | { | 543 | { |
475 | if (p->width == (sizeof(p->max_match_value) * 8)) | 544 | if (p->width == (sizeof(p->max_match_value) * 8)) |
476 | p->max_match_value = ~0; | 545 | p->max_match_value = ~0; |
@@ -483,12 +552,15 @@ int sh_cmt_register(struct sh_cmt_priv *p, char *name, | |||
483 | if (clockevent_rating) | 552 | if (clockevent_rating) |
484 | sh_cmt_register_clockevent(p, name, clockevent_rating); | 553 | sh_cmt_register_clockevent(p, name, clockevent_rating); |
485 | 554 | ||
555 | if (clocksource_rating) | ||
556 | sh_cmt_register_clocksource(p, name, clocksource_rating); | ||
557 | |||
486 | return 0; | 558 | return 0; |
487 | } | 559 | } |
488 | 560 | ||
489 | static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | 561 | static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) |
490 | { | 562 | { |
491 | struct sh_cmt_config *cfg = pdev->dev.platform_data; | 563 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
492 | struct resource *res; | 564 | struct resource *res; |
493 | int irq, ret; | 565 | int irq, ret; |
494 | ret = -ENXIO; | 566 | ret = -ENXIO; |
@@ -545,7 +617,7 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | |||
545 | if (resource_size(res) == 6) { | 617 | if (resource_size(res) == 6) { |
546 | p->width = 16; | 618 | p->width = 16; |
547 | p->overflow_bit = 0x80; | 619 | p->overflow_bit = 0x80; |
548 | p->clear_bits = ~0xc0; | 620 | p->clear_bits = ~0x80; |
549 | } else { | 621 | } else { |
550 | p->width = 32; | 622 | p->width = 32; |
551 | p->overflow_bit = 0x8000; | 623 | p->overflow_bit = 0x8000; |
@@ -566,8 +638,14 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | |||
566 | static int __devinit sh_cmt_probe(struct platform_device *pdev) | 638 | static int __devinit sh_cmt_probe(struct platform_device *pdev) |
567 | { | 639 | { |
568 | struct sh_cmt_priv *p = platform_get_drvdata(pdev); | 640 | struct sh_cmt_priv *p = platform_get_drvdata(pdev); |
641 | struct sh_timer_config *cfg = pdev->dev.platform_data; | ||
569 | int ret; | 642 | int ret; |
570 | 643 | ||
644 | if (p) { | ||
645 | pr_info("sh_cmt: %s kept as earlytimer\n", cfg->name); | ||
646 | return 0; | ||
647 | } | ||
648 | |||
571 | p = kmalloc(sizeof(*p), GFP_KERNEL); | 649 | p = kmalloc(sizeof(*p), GFP_KERNEL); |
572 | if (p == NULL) { | 650 | if (p == NULL) { |
573 | dev_err(&pdev->dev, "failed to allocate driver data\n"); | 651 | dev_err(&pdev->dev, "failed to allocate driver data\n"); |
@@ -577,7 +655,6 @@ static int __devinit sh_cmt_probe(struct platform_device *pdev) | |||
577 | ret = sh_cmt_setup(p, pdev); | 655 | ret = sh_cmt_setup(p, pdev); |
578 | if (ret) { | 656 | if (ret) { |
579 | kfree(p); | 657 | kfree(p); |
580 | |||
581 | platform_set_drvdata(pdev, NULL); | 658 | platform_set_drvdata(pdev, NULL); |
582 | } | 659 | } |
583 | return ret; | 660 | return ret; |
@@ -606,6 +683,7 @@ static void __exit sh_cmt_exit(void) | |||
606 | platform_driver_unregister(&sh_cmt_device_driver); | 683 | platform_driver_unregister(&sh_cmt_device_driver); |
607 | } | 684 | } |
608 | 685 | ||
686 | early_platform_init("earlytimer", &sh_cmt_device_driver); | ||
609 | module_init(sh_cmt_init); | 687 | module_init(sh_cmt_init); |
610 | module_exit(sh_cmt_exit); | 688 | module_exit(sh_cmt_exit); |
611 | 689 | ||
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c new file mode 100644 index 000000000000..d1ae75454d10 --- /dev/null +++ b/drivers/clocksource/sh_mtu2.c | |||
@@ -0,0 +1,357 @@ | |||
1 | /* | ||
2 | * SuperH Timer Support - MTU2 | ||
3 | * | ||
4 | * Copyright (C) 2009 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/init.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <linux/spinlock.h> | ||
23 | #include <linux/interrupt.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/io.h> | ||
27 | #include <linux/clk.h> | ||
28 | #include <linux/irq.h> | ||
29 | #include <linux/err.h> | ||
30 | #include <linux/clockchips.h> | ||
31 | #include <linux/sh_timer.h> | ||
32 | |||
33 | struct sh_mtu2_priv { | ||
34 | void __iomem *mapbase; | ||
35 | struct clk *clk; | ||
36 | struct irqaction irqaction; | ||
37 | struct platform_device *pdev; | ||
38 | unsigned long rate; | ||
39 | unsigned long periodic; | ||
40 | struct clock_event_device ced; | ||
41 | }; | ||
42 | |||
43 | static DEFINE_SPINLOCK(sh_mtu2_lock); | ||
44 | |||
45 | #define TSTR -1 /* shared register */ | ||
46 | #define TCR 0 /* channel register */ | ||
47 | #define TMDR 1 /* channel register */ | ||
48 | #define TIOR 2 /* channel register */ | ||
49 | #define TIER 3 /* channel register */ | ||
50 | #define TSR 4 /* channel register */ | ||
51 | #define TCNT 5 /* channel register */ | ||
52 | #define TGR 6 /* channel register */ | ||
53 | |||
54 | static unsigned long mtu2_reg_offs[] = { | ||
55 | [TCR] = 0, | ||
56 | [TMDR] = 1, | ||
57 | [TIOR] = 2, | ||
58 | [TIER] = 4, | ||
59 | [TSR] = 5, | ||
60 | [TCNT] = 6, | ||
61 | [TGR] = 8, | ||
62 | }; | ||
63 | |||
64 | static inline unsigned long sh_mtu2_read(struct sh_mtu2_priv *p, int reg_nr) | ||
65 | { | ||
66 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
67 | void __iomem *base = p->mapbase; | ||
68 | unsigned long offs; | ||
69 | |||
70 | if (reg_nr == TSTR) | ||
71 | return ioread8(base + cfg->channel_offset); | ||
72 | |||
73 | offs = mtu2_reg_offs[reg_nr]; | ||
74 | |||
75 | if ((reg_nr == TCNT) || (reg_nr == TGR)) | ||
76 | return ioread16(base + offs); | ||
77 | else | ||
78 | return ioread8(base + offs); | ||
79 | } | ||
80 | |||
81 | static inline void sh_mtu2_write(struct sh_mtu2_priv *p, int reg_nr, | ||
82 | unsigned long value) | ||
83 | { | ||
84 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
85 | void __iomem *base = p->mapbase; | ||
86 | unsigned long offs; | ||
87 | |||
88 | if (reg_nr == TSTR) { | ||
89 | iowrite8(value, base + cfg->channel_offset); | ||
90 | return; | ||
91 | } | ||
92 | |||
93 | offs = mtu2_reg_offs[reg_nr]; | ||
94 | |||
95 | if ((reg_nr == TCNT) || (reg_nr == TGR)) | ||
96 | iowrite16(value, base + offs); | ||
97 | else | ||
98 | iowrite8(value, base + offs); | ||
99 | } | ||
100 | |||
101 | static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start) | ||
102 | { | ||
103 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
104 | unsigned long flags, value; | ||
105 | |||
106 | /* start stop register shared by multiple timer channels */ | ||
107 | spin_lock_irqsave(&sh_mtu2_lock, flags); | ||
108 | value = sh_mtu2_read(p, TSTR); | ||
109 | |||
110 | if (start) | ||
111 | value |= 1 << cfg->timer_bit; | ||
112 | else | ||
113 | value &= ~(1 << cfg->timer_bit); | ||
114 | |||
115 | sh_mtu2_write(p, TSTR, value); | ||
116 | spin_unlock_irqrestore(&sh_mtu2_lock, flags); | ||
117 | } | ||
118 | |||
119 | static int sh_mtu2_enable(struct sh_mtu2_priv *p) | ||
120 | { | ||
121 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
122 | int ret; | ||
123 | |||
124 | /* enable clock */ | ||
125 | ret = clk_enable(p->clk); | ||
126 | if (ret) { | ||
127 | pr_err("sh_mtu2: cannot enable clock \"%s\"\n", cfg->clk); | ||
128 | return ret; | ||
129 | } | ||
130 | |||
131 | /* make sure channel is disabled */ | ||
132 | sh_mtu2_start_stop_ch(p, 0); | ||
133 | |||
134 | p->rate = clk_get_rate(p->clk) / 64; | ||
135 | p->periodic = (p->rate + HZ/2) / HZ; | ||
136 | |||
137 | /* "Periodic Counter Operation" */ | ||
138 | sh_mtu2_write(p, TCR, 0x23); /* TGRA clear, divide clock by 64 */ | ||
139 | sh_mtu2_write(p, TIOR, 0); | ||
140 | sh_mtu2_write(p, TGR, p->periodic); | ||
141 | sh_mtu2_write(p, TCNT, 0); | ||
142 | sh_mtu2_write(p, TMDR, 0); | ||
143 | sh_mtu2_write(p, TIER, 0x01); | ||
144 | |||
145 | /* enable channel */ | ||
146 | sh_mtu2_start_stop_ch(p, 1); | ||
147 | |||
148 | return 0; | ||
149 | } | ||
150 | |||
151 | static void sh_mtu2_disable(struct sh_mtu2_priv *p) | ||
152 | { | ||
153 | /* disable channel */ | ||
154 | sh_mtu2_start_stop_ch(p, 0); | ||
155 | |||
156 | /* stop clock */ | ||
157 | clk_disable(p->clk); | ||
158 | } | ||
159 | |||
160 | static irqreturn_t sh_mtu2_interrupt(int irq, void *dev_id) | ||
161 | { | ||
162 | struct sh_mtu2_priv *p = dev_id; | ||
163 | |||
164 | /* acknowledge interrupt */ | ||
165 | sh_mtu2_read(p, TSR); | ||
166 | sh_mtu2_write(p, TSR, 0xfe); | ||
167 | |||
168 | /* notify clockevent layer */ | ||
169 | p->ced.event_handler(&p->ced); | ||
170 | return IRQ_HANDLED; | ||
171 | } | ||
172 | |||
173 | static struct sh_mtu2_priv *ced_to_sh_mtu2(struct clock_event_device *ced) | ||
174 | { | ||
175 | return container_of(ced, struct sh_mtu2_priv, ced); | ||
176 | } | ||
177 | |||
178 | static void sh_mtu2_clock_event_mode(enum clock_event_mode mode, | ||
179 | struct clock_event_device *ced) | ||
180 | { | ||
181 | struct sh_mtu2_priv *p = ced_to_sh_mtu2(ced); | ||
182 | int disabled = 0; | ||
183 | |||
184 | /* deal with old setting first */ | ||
185 | switch (ced->mode) { | ||
186 | case CLOCK_EVT_MODE_PERIODIC: | ||
187 | sh_mtu2_disable(p); | ||
188 | disabled = 1; | ||
189 | break; | ||
190 | default: | ||
191 | break; | ||
192 | } | ||
193 | |||
194 | switch (mode) { | ||
195 | case CLOCK_EVT_MODE_PERIODIC: | ||
196 | pr_info("sh_mtu2: %s used for periodic clock events\n", | ||
197 | ced->name); | ||
198 | sh_mtu2_enable(p); | ||
199 | break; | ||
200 | case CLOCK_EVT_MODE_UNUSED: | ||
201 | if (!disabled) | ||
202 | sh_mtu2_disable(p); | ||
203 | break; | ||
204 | case CLOCK_EVT_MODE_SHUTDOWN: | ||
205 | default: | ||
206 | break; | ||
207 | } | ||
208 | } | ||
209 | |||
210 | static void sh_mtu2_register_clockevent(struct sh_mtu2_priv *p, | ||
211 | char *name, unsigned long rating) | ||
212 | { | ||
213 | struct clock_event_device *ced = &p->ced; | ||
214 | int ret; | ||
215 | |||
216 | memset(ced, 0, sizeof(*ced)); | ||
217 | |||
218 | ced->name = name; | ||
219 | ced->features = CLOCK_EVT_FEAT_PERIODIC; | ||
220 | ced->rating = rating; | ||
221 | ced->cpumask = cpumask_of(0); | ||
222 | ced->set_mode = sh_mtu2_clock_event_mode; | ||
223 | |||
224 | ret = setup_irq(p->irqaction.irq, &p->irqaction); | ||
225 | if (ret) { | ||
226 | pr_err("sh_mtu2: failed to request irq %d\n", | ||
227 | p->irqaction.irq); | ||
228 | return; | ||
229 | } | ||
230 | |||
231 | pr_info("sh_mtu2: %s used for clock events\n", ced->name); | ||
232 | clockevents_register_device(ced); | ||
233 | } | ||
234 | |||
235 | static int sh_mtu2_register(struct sh_mtu2_priv *p, char *name, | ||
236 | unsigned long clockevent_rating) | ||
237 | { | ||
238 | if (clockevent_rating) | ||
239 | sh_mtu2_register_clockevent(p, name, clockevent_rating); | ||
240 | |||
241 | return 0; | ||
242 | } | ||
243 | |||
244 | static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) | ||
245 | { | ||
246 | struct sh_timer_config *cfg = pdev->dev.platform_data; | ||
247 | struct resource *res; | ||
248 | int irq, ret; | ||
249 | ret = -ENXIO; | ||
250 | |||
251 | memset(p, 0, sizeof(*p)); | ||
252 | p->pdev = pdev; | ||
253 | |||
254 | if (!cfg) { | ||
255 | dev_err(&p->pdev->dev, "missing platform data\n"); | ||
256 | goto err0; | ||
257 | } | ||
258 | |||
259 | platform_set_drvdata(pdev, p); | ||
260 | |||
261 | res = platform_get_resource(p->pdev, IORESOURCE_MEM, 0); | ||
262 | if (!res) { | ||
263 | dev_err(&p->pdev->dev, "failed to get I/O memory\n"); | ||
264 | goto err0; | ||
265 | } | ||
266 | |||
267 | irq = platform_get_irq(p->pdev, 0); | ||
268 | if (irq < 0) { | ||
269 | dev_err(&p->pdev->dev, "failed to get irq\n"); | ||
270 | goto err0; | ||
271 | } | ||
272 | |||
273 | /* map memory, let mapbase point to our channel */ | ||
274 | p->mapbase = ioremap_nocache(res->start, resource_size(res)); | ||
275 | if (p->mapbase == NULL) { | ||
276 | pr_err("sh_mtu2: failed to remap I/O memory\n"); | ||
277 | goto err0; | ||
278 | } | ||
279 | |||
280 | /* setup data for setup_irq() (too early for request_irq()) */ | ||
281 | p->irqaction.name = cfg->name; | ||
282 | p->irqaction.handler = sh_mtu2_interrupt; | ||
283 | p->irqaction.dev_id = p; | ||
284 | p->irqaction.irq = irq; | ||
285 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | ||
286 | p->irqaction.mask = CPU_MASK_NONE; | ||
287 | |||
288 | /* get hold of clock */ | ||
289 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | ||
290 | if (IS_ERR(p->clk)) { | ||
291 | pr_err("sh_mtu2: cannot get clock \"%s\"\n", cfg->clk); | ||
292 | ret = PTR_ERR(p->clk); | ||
293 | goto err1; | ||
294 | } | ||
295 | |||
296 | return sh_mtu2_register(p, cfg->name, cfg->clockevent_rating); | ||
297 | err1: | ||
298 | iounmap(p->mapbase); | ||
299 | err0: | ||
300 | return ret; | ||
301 | } | ||
302 | |||
303 | static int __devinit sh_mtu2_probe(struct platform_device *pdev) | ||
304 | { | ||
305 | struct sh_mtu2_priv *p = platform_get_drvdata(pdev); | ||
306 | struct sh_timer_config *cfg = pdev->dev.platform_data; | ||
307 | int ret; | ||
308 | |||
309 | if (p) { | ||
310 | pr_info("sh_mtu2: %s kept as earlytimer\n", cfg->name); | ||
311 | return 0; | ||
312 | } | ||
313 | |||
314 | p = kmalloc(sizeof(*p), GFP_KERNEL); | ||
315 | if (p == NULL) { | ||
316 | dev_err(&pdev->dev, "failed to allocate driver data\n"); | ||
317 | return -ENOMEM; | ||
318 | } | ||
319 | |||
320 | ret = sh_mtu2_setup(p, pdev); | ||
321 | if (ret) { | ||
322 | kfree(p); | ||
323 | platform_set_drvdata(pdev, NULL); | ||
324 | } | ||
325 | return ret; | ||
326 | } | ||
327 | |||
328 | static int __devexit sh_mtu2_remove(struct platform_device *pdev) | ||
329 | { | ||
330 | return -EBUSY; /* cannot unregister clockevent */ | ||
331 | } | ||
332 | |||
333 | static struct platform_driver sh_mtu2_device_driver = { | ||
334 | .probe = sh_mtu2_probe, | ||
335 | .remove = __devexit_p(sh_mtu2_remove), | ||
336 | .driver = { | ||
337 | .name = "sh_mtu2", | ||
338 | } | ||
339 | }; | ||
340 | |||
341 | static int __init sh_mtu2_init(void) | ||
342 | { | ||
343 | return platform_driver_register(&sh_mtu2_device_driver); | ||
344 | } | ||
345 | |||
346 | static void __exit sh_mtu2_exit(void) | ||
347 | { | ||
348 | platform_driver_unregister(&sh_mtu2_device_driver); | ||
349 | } | ||
350 | |||
351 | early_platform_init("earlytimer", &sh_mtu2_device_driver); | ||
352 | module_init(sh_mtu2_init); | ||
353 | module_exit(sh_mtu2_exit); | ||
354 | |||
355 | MODULE_AUTHOR("Magnus Damm"); | ||
356 | MODULE_DESCRIPTION("SuperH MTU2 Timer Driver"); | ||
357 | MODULE_LICENSE("GPL v2"); | ||
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c new file mode 100644 index 000000000000..d6ea4398bf62 --- /dev/null +++ b/drivers/clocksource/sh_tmu.c | |||
@@ -0,0 +1,461 @@ | |||
1 | /* | ||
2 | * SuperH Timer Support - TMU | ||
3 | * | ||
4 | * Copyright (C) 2009 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/init.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <linux/spinlock.h> | ||
23 | #include <linux/interrupt.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/io.h> | ||
27 | #include <linux/clk.h> | ||
28 | #include <linux/irq.h> | ||
29 | #include <linux/err.h> | ||
30 | #include <linux/clocksource.h> | ||
31 | #include <linux/clockchips.h> | ||
32 | #include <linux/sh_timer.h> | ||
33 | |||
34 | struct sh_tmu_priv { | ||
35 | void __iomem *mapbase; | ||
36 | struct clk *clk; | ||
37 | struct irqaction irqaction; | ||
38 | struct platform_device *pdev; | ||
39 | unsigned long rate; | ||
40 | unsigned long periodic; | ||
41 | struct clock_event_device ced; | ||
42 | struct clocksource cs; | ||
43 | }; | ||
44 | |||
45 | static DEFINE_SPINLOCK(sh_tmu_lock); | ||
46 | |||
47 | #define TSTR -1 /* shared register */ | ||
48 | #define TCOR 0 /* channel register */ | ||
49 | #define TCNT 1 /* channel register */ | ||
50 | #define TCR 2 /* channel register */ | ||
51 | |||
52 | static inline unsigned long sh_tmu_read(struct sh_tmu_priv *p, int reg_nr) | ||
53 | { | ||
54 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
55 | void __iomem *base = p->mapbase; | ||
56 | unsigned long offs; | ||
57 | |||
58 | if (reg_nr == TSTR) | ||
59 | return ioread8(base - cfg->channel_offset); | ||
60 | |||
61 | offs = reg_nr << 2; | ||
62 | |||
63 | if (reg_nr == TCR) | ||
64 | return ioread16(base + offs); | ||
65 | else | ||
66 | return ioread32(base + offs); | ||
67 | } | ||
68 | |||
69 | static inline void sh_tmu_write(struct sh_tmu_priv *p, int reg_nr, | ||
70 | unsigned long value) | ||
71 | { | ||
72 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
73 | void __iomem *base = p->mapbase; | ||
74 | unsigned long offs; | ||
75 | |||
76 | if (reg_nr == TSTR) { | ||
77 | iowrite8(value, base - cfg->channel_offset); | ||
78 | return; | ||
79 | } | ||
80 | |||
81 | offs = reg_nr << 2; | ||
82 | |||
83 | if (reg_nr == TCR) | ||
84 | iowrite16(value, base + offs); | ||
85 | else | ||
86 | iowrite32(value, base + offs); | ||
87 | } | ||
88 | |||
89 | static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) | ||
90 | { | ||
91 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
92 | unsigned long flags, value; | ||
93 | |||
94 | /* start stop register shared by multiple timer channels */ | ||
95 | spin_lock_irqsave(&sh_tmu_lock, flags); | ||
96 | value = sh_tmu_read(p, TSTR); | ||
97 | |||
98 | if (start) | ||
99 | value |= 1 << cfg->timer_bit; | ||
100 | else | ||
101 | value &= ~(1 << cfg->timer_bit); | ||
102 | |||
103 | sh_tmu_write(p, TSTR, value); | ||
104 | spin_unlock_irqrestore(&sh_tmu_lock, flags); | ||
105 | } | ||
106 | |||
107 | static int sh_tmu_enable(struct sh_tmu_priv *p) | ||
108 | { | ||
109 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; | ||
110 | int ret; | ||
111 | |||
112 | /* enable clock */ | ||
113 | ret = clk_enable(p->clk); | ||
114 | if (ret) { | ||
115 | pr_err("sh_tmu: cannot enable clock \"%s\"\n", cfg->clk); | ||
116 | return ret; | ||
117 | } | ||
118 | |||
119 | /* make sure channel is disabled */ | ||
120 | sh_tmu_start_stop_ch(p, 0); | ||
121 | |||
122 | /* maximum timeout */ | ||
123 | sh_tmu_write(p, TCOR, 0xffffffff); | ||
124 | sh_tmu_write(p, TCNT, 0xffffffff); | ||
125 | |||
126 | /* configure channel to parent clock / 4, irq off */ | ||
127 | p->rate = clk_get_rate(p->clk) / 4; | ||
128 | sh_tmu_write(p, TCR, 0x0000); | ||
129 | |||
130 | /* enable channel */ | ||
131 | sh_tmu_start_stop_ch(p, 1); | ||
132 | |||
133 | return 0; | ||
134 | } | ||
135 | |||
136 | static void sh_tmu_disable(struct sh_tmu_priv *p) | ||
137 | { | ||
138 | /* disable channel */ | ||
139 | sh_tmu_start_stop_ch(p, 0); | ||
140 | |||
141 | /* stop clock */ | ||
142 | clk_disable(p->clk); | ||
143 | } | ||
144 | |||
145 | static void sh_tmu_set_next(struct sh_tmu_priv *p, unsigned long delta, | ||
146 | int periodic) | ||
147 | { | ||
148 | /* stop timer */ | ||
149 | sh_tmu_start_stop_ch(p, 0); | ||
150 | |||
151 | /* acknowledge interrupt */ | ||
152 | sh_tmu_read(p, TCR); | ||
153 | |||
154 | /* enable interrupt */ | ||
155 | sh_tmu_write(p, TCR, 0x0020); | ||
156 | |||
157 | /* reload delta value in case of periodic timer */ | ||
158 | if (periodic) | ||
159 | sh_tmu_write(p, TCOR, delta); | ||
160 | else | ||
161 | sh_tmu_write(p, TCOR, 0); | ||
162 | |||
163 | sh_tmu_write(p, TCNT, delta); | ||
164 | |||
165 | /* start timer */ | ||
166 | sh_tmu_start_stop_ch(p, 1); | ||
167 | } | ||
168 | |||
169 | static irqreturn_t sh_tmu_interrupt(int irq, void *dev_id) | ||
170 | { | ||
171 | struct sh_tmu_priv *p = dev_id; | ||
172 | |||
173 | /* disable or acknowledge interrupt */ | ||
174 | if (p->ced.mode == CLOCK_EVT_MODE_ONESHOT) | ||
175 | sh_tmu_write(p, TCR, 0x0000); | ||
176 | else | ||
177 | sh_tmu_write(p, TCR, 0x0020); | ||
178 | |||
179 | /* notify clockevent layer */ | ||
180 | p->ced.event_handler(&p->ced); | ||
181 | return IRQ_HANDLED; | ||
182 | } | ||
183 | |||
184 | static struct sh_tmu_priv *cs_to_sh_tmu(struct clocksource *cs) | ||
185 | { | ||
186 | return container_of(cs, struct sh_tmu_priv, cs); | ||
187 | } | ||
188 | |||
189 | static cycle_t sh_tmu_clocksource_read(struct clocksource *cs) | ||
190 | { | ||
191 | struct sh_tmu_priv *p = cs_to_sh_tmu(cs); | ||
192 | |||
193 | return sh_tmu_read(p, TCNT) ^ 0xffffffff; | ||
194 | } | ||
195 | |||
196 | static int sh_tmu_clocksource_enable(struct clocksource *cs) | ||
197 | { | ||
198 | struct sh_tmu_priv *p = cs_to_sh_tmu(cs); | ||
199 | int ret; | ||
200 | |||
201 | ret = sh_tmu_enable(p); | ||
202 | if (ret) | ||
203 | return ret; | ||
204 | |||
205 | /* TODO: calculate good shift from rate and counter bit width */ | ||
206 | cs->shift = 10; | ||
207 | cs->mult = clocksource_hz2mult(p->rate, cs->shift); | ||
208 | return 0; | ||
209 | } | ||
210 | |||
211 | static void sh_tmu_clocksource_disable(struct clocksource *cs) | ||
212 | { | ||
213 | sh_tmu_disable(cs_to_sh_tmu(cs)); | ||
214 | } | ||
215 | |||
216 | static int sh_tmu_register_clocksource(struct sh_tmu_priv *p, | ||
217 | char *name, unsigned long rating) | ||
218 | { | ||
219 | struct clocksource *cs = &p->cs; | ||
220 | |||
221 | cs->name = name; | ||
222 | cs->rating = rating; | ||
223 | cs->read = sh_tmu_clocksource_read; | ||
224 | cs->enable = sh_tmu_clocksource_enable; | ||
225 | cs->disable = sh_tmu_clocksource_disable; | ||
226 | cs->mask = CLOCKSOURCE_MASK(32); | ||
227 | cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; | ||
228 | pr_info("sh_tmu: %s used as clock source\n", cs->name); | ||
229 | clocksource_register(cs); | ||
230 | return 0; | ||
231 | } | ||
232 | |||
233 | static struct sh_tmu_priv *ced_to_sh_tmu(struct clock_event_device *ced) | ||
234 | { | ||
235 | return container_of(ced, struct sh_tmu_priv, ced); | ||
236 | } | ||
237 | |||
238 | static void sh_tmu_clock_event_start(struct sh_tmu_priv *p, int periodic) | ||
239 | { | ||
240 | struct clock_event_device *ced = &p->ced; | ||
241 | |||
242 | sh_tmu_enable(p); | ||
243 | |||
244 | /* TODO: calculate good shift from rate and counter bit width */ | ||
245 | |||
246 | ced->shift = 32; | ||
247 | ced->mult = div_sc(p->rate, NSEC_PER_SEC, ced->shift); | ||
248 | ced->max_delta_ns = clockevent_delta2ns(0xffffffff, ced); | ||
249 | ced->min_delta_ns = 5000; | ||
250 | |||
251 | if (periodic) { | ||
252 | p->periodic = (p->rate + HZ/2) / HZ; | ||
253 | sh_tmu_set_next(p, p->periodic, 1); | ||
254 | } | ||
255 | } | ||
256 | |||
257 | static void sh_tmu_clock_event_mode(enum clock_event_mode mode, | ||
258 | struct clock_event_device *ced) | ||
259 | { | ||
260 | struct sh_tmu_priv *p = ced_to_sh_tmu(ced); | ||
261 | int disabled = 0; | ||
262 | |||
263 | /* deal with old setting first */ | ||
264 | switch (ced->mode) { | ||
265 | case CLOCK_EVT_MODE_PERIODIC: | ||
266 | case CLOCK_EVT_MODE_ONESHOT: | ||
267 | sh_tmu_disable(p); | ||
268 | disabled = 1; | ||
269 | break; | ||
270 | default: | ||
271 | break; | ||
272 | } | ||
273 | |||
274 | switch (mode) { | ||
275 | case CLOCK_EVT_MODE_PERIODIC: | ||
276 | pr_info("sh_tmu: %s used for periodic clock events\n", | ||
277 | ced->name); | ||
278 | sh_tmu_clock_event_start(p, 1); | ||
279 | break; | ||
280 | case CLOCK_EVT_MODE_ONESHOT: | ||
281 | pr_info("sh_tmu: %s used for oneshot clock events\n", | ||
282 | ced->name); | ||
283 | sh_tmu_clock_event_start(p, 0); | ||
284 | break; | ||
285 | case CLOCK_EVT_MODE_UNUSED: | ||
286 | if (!disabled) | ||
287 | sh_tmu_disable(p); | ||
288 | break; | ||
289 | case CLOCK_EVT_MODE_SHUTDOWN: | ||
290 | default: | ||
291 | break; | ||
292 | } | ||
293 | } | ||
294 | |||
295 | static int sh_tmu_clock_event_next(unsigned long delta, | ||
296 | struct clock_event_device *ced) | ||
297 | { | ||
298 | struct sh_tmu_priv *p = ced_to_sh_tmu(ced); | ||
299 | |||
300 | BUG_ON(ced->mode != CLOCK_EVT_MODE_ONESHOT); | ||
301 | |||
302 | /* program new delta value */ | ||
303 | sh_tmu_set_next(p, delta, 0); | ||
304 | return 0; | ||
305 | } | ||
306 | |||
307 | static void sh_tmu_register_clockevent(struct sh_tmu_priv *p, | ||
308 | char *name, unsigned long rating) | ||
309 | { | ||
310 | struct clock_event_device *ced = &p->ced; | ||
311 | int ret; | ||
312 | |||
313 | memset(ced, 0, sizeof(*ced)); | ||
314 | |||
315 | ced->name = name; | ||
316 | ced->features = CLOCK_EVT_FEAT_PERIODIC; | ||
317 | ced->features |= CLOCK_EVT_FEAT_ONESHOT; | ||
318 | ced->rating = rating; | ||
319 | ced->cpumask = cpumask_of(0); | ||
320 | ced->set_next_event = sh_tmu_clock_event_next; | ||
321 | ced->set_mode = sh_tmu_clock_event_mode; | ||
322 | |||
323 | ret = setup_irq(p->irqaction.irq, &p->irqaction); | ||
324 | if (ret) { | ||
325 | pr_err("sh_tmu: failed to request irq %d\n", | ||
326 | p->irqaction.irq); | ||
327 | return; | ||
328 | } | ||
329 | |||
330 | pr_info("sh_tmu: %s used for clock events\n", ced->name); | ||
331 | clockevents_register_device(ced); | ||
332 | } | ||
333 | |||
334 | static int sh_tmu_register(struct sh_tmu_priv *p, char *name, | ||
335 | unsigned long clockevent_rating, | ||
336 | unsigned long clocksource_rating) | ||
337 | { | ||
338 | if (clockevent_rating) | ||
339 | sh_tmu_register_clockevent(p, name, clockevent_rating); | ||
340 | else if (clocksource_rating) | ||
341 | sh_tmu_register_clocksource(p, name, clocksource_rating); | ||
342 | |||
343 | return 0; | ||
344 | } | ||
345 | |||
346 | static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) | ||
347 | { | ||
348 | struct sh_timer_config *cfg = pdev->dev.platform_data; | ||
349 | struct resource *res; | ||
350 | int irq, ret; | ||
351 | ret = -ENXIO; | ||
352 | |||
353 | memset(p, 0, sizeof(*p)); | ||
354 | p->pdev = pdev; | ||
355 | |||
356 | if (!cfg) { | ||
357 | dev_err(&p->pdev->dev, "missing platform data\n"); | ||
358 | goto err0; | ||
359 | } | ||
360 | |||
361 | platform_set_drvdata(pdev, p); | ||
362 | |||
363 | res = platform_get_resource(p->pdev, IORESOURCE_MEM, 0); | ||
364 | if (!res) { | ||
365 | dev_err(&p->pdev->dev, "failed to get I/O memory\n"); | ||
366 | goto err0; | ||
367 | } | ||
368 | |||
369 | irq = platform_get_irq(p->pdev, 0); | ||
370 | if (irq < 0) { | ||
371 | dev_err(&p->pdev->dev, "failed to get irq\n"); | ||
372 | goto err0; | ||
373 | } | ||
374 | |||
375 | /* map memory, let mapbase point to our channel */ | ||
376 | p->mapbase = ioremap_nocache(res->start, resource_size(res)); | ||
377 | if (p->mapbase == NULL) { | ||
378 | pr_err("sh_tmu: failed to remap I/O memory\n"); | ||
379 | goto err0; | ||
380 | } | ||
381 | |||
382 | /* setup data for setup_irq() (too early for request_irq()) */ | ||
383 | p->irqaction.name = cfg->name; | ||
384 | p->irqaction.handler = sh_tmu_interrupt; | ||
385 | p->irqaction.dev_id = p; | ||
386 | p->irqaction.irq = irq; | ||
387 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | ||
388 | p->irqaction.mask = CPU_MASK_NONE; | ||
389 | |||
390 | /* get hold of clock */ | ||
391 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | ||
392 | if (IS_ERR(p->clk)) { | ||
393 | pr_err("sh_tmu: cannot get clock \"%s\"\n", cfg->clk); | ||
394 | ret = PTR_ERR(p->clk); | ||
395 | goto err1; | ||
396 | } | ||
397 | |||
398 | return sh_tmu_register(p, cfg->name, | ||
399 | cfg->clockevent_rating, | ||
400 | cfg->clocksource_rating); | ||
401 | err1: | ||
402 | iounmap(p->mapbase); | ||
403 | err0: | ||
404 | return ret; | ||
405 | } | ||
406 | |||
407 | static int __devinit sh_tmu_probe(struct platform_device *pdev) | ||
408 | { | ||
409 | struct sh_tmu_priv *p = platform_get_drvdata(pdev); | ||
410 | struct sh_timer_config *cfg = pdev->dev.platform_data; | ||
411 | int ret; | ||
412 | |||
413 | if (p) { | ||
414 | pr_info("sh_tmu: %s kept as earlytimer\n", cfg->name); | ||
415 | return 0; | ||
416 | } | ||
417 | |||
418 | p = kmalloc(sizeof(*p), GFP_KERNEL); | ||
419 | if (p == NULL) { | ||
420 | dev_err(&pdev->dev, "failed to allocate driver data\n"); | ||
421 | return -ENOMEM; | ||
422 | } | ||
423 | |||
424 | ret = sh_tmu_setup(p, pdev); | ||
425 | if (ret) { | ||
426 | kfree(p); | ||
427 | platform_set_drvdata(pdev, NULL); | ||
428 | } | ||
429 | return ret; | ||
430 | } | ||
431 | |||
432 | static int __devexit sh_tmu_remove(struct platform_device *pdev) | ||
433 | { | ||
434 | return -EBUSY; /* cannot unregister clockevent and clocksource */ | ||
435 | } | ||
436 | |||
437 | static struct platform_driver sh_tmu_device_driver = { | ||
438 | .probe = sh_tmu_probe, | ||
439 | .remove = __devexit_p(sh_tmu_remove), | ||
440 | .driver = { | ||
441 | .name = "sh_tmu", | ||
442 | } | ||
443 | }; | ||
444 | |||
445 | static int __init sh_tmu_init(void) | ||
446 | { | ||
447 | return platform_driver_register(&sh_tmu_device_driver); | ||
448 | } | ||
449 | |||
450 | static void __exit sh_tmu_exit(void) | ||
451 | { | ||
452 | platform_driver_unregister(&sh_tmu_device_driver); | ||
453 | } | ||
454 | |||
455 | early_platform_init("earlytimer", &sh_tmu_device_driver); | ||
456 | module_init(sh_tmu_init); | ||
457 | module_exit(sh_tmu_exit); | ||
458 | |||
459 | MODULE_AUTHOR("Magnus Damm"); | ||
460 | MODULE_DESCRIPTION("SuperH TMU Timer Driver"); | ||
461 | MODULE_LICENSE("GPL v2"); | ||
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 4e9851fc1746..277d35d232fa 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -692,7 +692,7 @@ config RTC_DRV_GENERIC | |||
692 | tristate "Generic RTC support" | 692 | tristate "Generic RTC support" |
693 | # Please consider writing a new RTC driver instead of using the generic | 693 | # Please consider writing a new RTC driver instead of using the generic |
694 | # RTC abstraction | 694 | # RTC abstraction |
695 | depends on PARISC || M68K || PPC | 695 | depends on PARISC || M68K || PPC || SUPERH32 |
696 | help | 696 | help |
697 | Say Y or M here to enable RTC support on systems using the generic | 697 | Say Y or M here to enable RTC support on systems using the generic |
698 | RTC abstraction. If you do not know what you are doing, you should | 698 | RTC abstraction. If you do not know what you are doing, you should |
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index dbf5357a77b3..4e3248d58602 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c | |||
@@ -47,12 +47,17 @@ | |||
47 | #include <linux/clk.h> | 47 | #include <linux/clk.h> |
48 | #include <linux/ctype.h> | 48 | #include <linux/ctype.h> |
49 | #include <linux/err.h> | 49 | #include <linux/err.h> |
50 | #include <linux/list.h> | ||
50 | 51 | ||
51 | #ifdef CONFIG_SUPERH | 52 | #ifdef CONFIG_SUPERH |
52 | #include <asm/clock.h> | 53 | #include <asm/clock.h> |
53 | #include <asm/sh_bios.h> | 54 | #include <asm/sh_bios.h> |
54 | #endif | 55 | #endif |
55 | 56 | ||
57 | #ifdef CONFIG_H8300 | ||
58 | #include <asm/gpio.h> | ||
59 | #endif | ||
60 | |||
56 | #include "sh-sci.h" | 61 | #include "sh-sci.h" |
57 | 62 | ||
58 | struct sci_port { | 63 | struct sci_port { |
@@ -75,14 +80,22 @@ struct sci_port { | |||
75 | int break_flag; | 80 | int break_flag; |
76 | 81 | ||
77 | #ifdef CONFIG_HAVE_CLK | 82 | #ifdef CONFIG_HAVE_CLK |
78 | /* Port clock */ | 83 | /* Interface clock */ |
79 | struct clk *clk; | 84 | struct clk *iclk; |
85 | /* Data clock */ | ||
86 | struct clk *dclk; | ||
80 | #endif | 87 | #endif |
88 | struct list_head node; | ||
81 | }; | 89 | }; |
82 | 90 | ||
83 | #ifdef CONFIG_SERIAL_SH_SCI_CONSOLE | 91 | struct sh_sci_priv { |
84 | static struct sci_port *serial_console_port; | 92 | spinlock_t lock; |
93 | struct list_head ports; | ||
94 | |||
95 | #ifdef CONFIG_HAVE_CLK | ||
96 | struct notifier_block clk_nb; | ||
85 | #endif | 97 | #endif |
98 | }; | ||
86 | 99 | ||
87 | /* Function prototypes */ | 100 | /* Function prototypes */ |
88 | static void sci_stop_tx(struct uart_port *port); | 101 | static void sci_stop_tx(struct uart_port *port); |
@@ -159,12 +172,12 @@ static void h8300_sci_config(struct uart_port *port, unsigned int ctrl) | |||
159 | *mstpcrl &= ~mask; | 172 | *mstpcrl &= ~mask; |
160 | } | 173 | } |
161 | 174 | ||
162 | static inline void h8300_sci_enable(struct uart_port *port) | 175 | static void h8300_sci_enable(struct uart_port *port) |
163 | { | 176 | { |
164 | h8300_sci_config(port, sci_enable); | 177 | h8300_sci_config(port, sci_enable); |
165 | } | 178 | } |
166 | 179 | ||
167 | static inline void h8300_sci_disable(struct uart_port *port) | 180 | static void h8300_sci_disable(struct uart_port *port) |
168 | { | 181 | { |
169 | h8300_sci_config(port, sci_disable); | 182 | h8300_sci_config(port, sci_disable); |
170 | } | 183 | } |
@@ -611,7 +624,7 @@ static inline int sci_handle_breaks(struct uart_port *port) | |||
611 | int copied = 0; | 624 | int copied = 0; |
612 | unsigned short status = sci_in(port, SCxSR); | 625 | unsigned short status = sci_in(port, SCxSR); |
613 | struct tty_struct *tty = port->info->port.tty; | 626 | struct tty_struct *tty = port->info->port.tty; |
614 | struct sci_port *s = &sci_ports[port->line]; | 627 | struct sci_port *s = to_sci_port(port); |
615 | 628 | ||
616 | if (uart_handle_break(port)) | 629 | if (uart_handle_break(port)) |
617 | return 0; | 630 | return 0; |
@@ -726,19 +739,43 @@ static irqreturn_t sci_mpxed_interrupt(int irq, void *ptr) | |||
726 | static int sci_notifier(struct notifier_block *self, | 739 | static int sci_notifier(struct notifier_block *self, |
727 | unsigned long phase, void *p) | 740 | unsigned long phase, void *p) |
728 | { | 741 | { |
729 | int i; | 742 | struct sh_sci_priv *priv = container_of(self, |
743 | struct sh_sci_priv, clk_nb); | ||
744 | struct sci_port *sci_port; | ||
745 | unsigned long flags; | ||
730 | 746 | ||
731 | if ((phase == CPUFREQ_POSTCHANGE) || | 747 | if ((phase == CPUFREQ_POSTCHANGE) || |
732 | (phase == CPUFREQ_RESUMECHANGE)) | 748 | (phase == CPUFREQ_RESUMECHANGE)) { |
733 | for (i = 0; i < SCI_NPORTS; i++) { | 749 | spin_lock_irqsave(&priv->lock, flags); |
734 | struct sci_port *s = &sci_ports[i]; | 750 | list_for_each_entry(sci_port, &priv->ports, node) |
735 | s->port.uartclk = clk_get_rate(s->clk); | 751 | sci_port->port.uartclk = clk_get_rate(sci_port->dclk); |
736 | } | 752 | |
753 | spin_unlock_irqrestore(&priv->lock, flags); | ||
754 | } | ||
737 | 755 | ||
738 | return NOTIFY_OK; | 756 | return NOTIFY_OK; |
739 | } | 757 | } |
740 | 758 | ||
741 | static struct notifier_block sci_nb = { &sci_notifier, NULL, 0 }; | 759 | static void sci_clk_enable(struct uart_port *port) |
760 | { | ||
761 | struct sci_port *sci_port = to_sci_port(port); | ||
762 | |||
763 | clk_enable(sci_port->dclk); | ||
764 | sci_port->port.uartclk = clk_get_rate(sci_port->dclk); | ||
765 | |||
766 | if (sci_port->iclk) | ||
767 | clk_enable(sci_port->iclk); | ||
768 | } | ||
769 | |||
770 | static void sci_clk_disable(struct uart_port *port) | ||
771 | { | ||
772 | struct sci_port *sci_port = to_sci_port(port); | ||
773 | |||
774 | if (sci_port->iclk) | ||
775 | clk_disable(sci_port->iclk); | ||
776 | |||
777 | clk_disable(sci_port->dclk); | ||
778 | } | ||
742 | #endif | 779 | #endif |
743 | 780 | ||
744 | static int sci_request_irq(struct sci_port *port) | 781 | static int sci_request_irq(struct sci_port *port) |
@@ -865,15 +902,11 @@ static void sci_break_ctl(struct uart_port *port, int break_state) | |||
865 | 902 | ||
866 | static int sci_startup(struct uart_port *port) | 903 | static int sci_startup(struct uart_port *port) |
867 | { | 904 | { |
868 | struct sci_port *s = &sci_ports[port->line]; | 905 | struct sci_port *s = to_sci_port(port); |
869 | 906 | ||
870 | if (s->enable) | 907 | if (s->enable) |
871 | s->enable(port); | 908 | s->enable(port); |
872 | 909 | ||
873 | #ifdef CONFIG_HAVE_CLK | ||
874 | s->clk = clk_get(NULL, "module_clk"); | ||
875 | #endif | ||
876 | |||
877 | sci_request_irq(s); | 910 | sci_request_irq(s); |
878 | sci_start_tx(port); | 911 | sci_start_tx(port); |
879 | sci_start_rx(port, 1); | 912 | sci_start_rx(port, 1); |
@@ -883,7 +916,7 @@ static int sci_startup(struct uart_port *port) | |||
883 | 916 | ||
884 | static void sci_shutdown(struct uart_port *port) | 917 | static void sci_shutdown(struct uart_port *port) |
885 | { | 918 | { |
886 | struct sci_port *s = &sci_ports[port->line]; | 919 | struct sci_port *s = to_sci_port(port); |
887 | 920 | ||
888 | sci_stop_rx(port); | 921 | sci_stop_rx(port); |
889 | sci_stop_tx(port); | 922 | sci_stop_tx(port); |
@@ -891,11 +924,6 @@ static void sci_shutdown(struct uart_port *port) | |||
891 | 924 | ||
892 | if (s->disable) | 925 | if (s->disable) |
893 | s->disable(port); | 926 | s->disable(port); |
894 | |||
895 | #ifdef CONFIG_HAVE_CLK | ||
896 | clk_put(s->clk); | ||
897 | s->clk = NULL; | ||
898 | #endif | ||
899 | } | 927 | } |
900 | 928 | ||
901 | static void sci_set_termios(struct uart_port *port, struct ktermios *termios, | 929 | static void sci_set_termios(struct uart_port *port, struct ktermios *termios, |
@@ -980,25 +1008,31 @@ static int sci_request_port(struct uart_port *port) | |||
980 | 1008 | ||
981 | static void sci_config_port(struct uart_port *port, int flags) | 1009 | static void sci_config_port(struct uart_port *port, int flags) |
982 | { | 1010 | { |
983 | struct sci_port *s = &sci_ports[port->line]; | 1011 | struct sci_port *s = to_sci_port(port); |
984 | 1012 | ||
985 | port->type = s->type; | 1013 | port->type = s->type; |
986 | 1014 | ||
987 | if (port->flags & UPF_IOREMAP && !port->membase) { | 1015 | if (port->membase) |
988 | #if defined(CONFIG_SUPERH64) | 1016 | return; |
989 | port->mapbase = onchip_remap(SCIF_ADDR_SH5, 1024, "SCIF"); | 1017 | |
990 | port->membase = (void __iomem *)port->mapbase; | 1018 | if (port->flags & UPF_IOREMAP) { |
991 | #else | ||
992 | port->membase = ioremap_nocache(port->mapbase, 0x40); | 1019 | port->membase = ioremap_nocache(port->mapbase, 0x40); |
993 | #endif | ||
994 | 1020 | ||
995 | dev_err(port->dev, "can't remap port#%d\n", port->line); | 1021 | if (IS_ERR(port->membase)) |
1022 | dev_err(port->dev, "can't remap port#%d\n", port->line); | ||
1023 | } else { | ||
1024 | /* | ||
1025 | * For the simple (and majority of) cases where we don't | ||
1026 | * need to do any remapping, just cast the cookie | ||
1027 | * directly. | ||
1028 | */ | ||
1029 | port->membase = (void __iomem *)port->mapbase; | ||
996 | } | 1030 | } |
997 | } | 1031 | } |
998 | 1032 | ||
999 | static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) | 1033 | static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) |
1000 | { | 1034 | { |
1001 | struct sci_port *s = &sci_ports[port->line]; | 1035 | struct sci_port *s = to_sci_port(port); |
1002 | 1036 | ||
1003 | if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs) | 1037 | if (ser->irq != s->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs) |
1004 | return -EINVAL; | 1038 | return -EINVAL; |
@@ -1032,63 +1066,60 @@ static struct uart_ops sci_uart_ops = { | |||
1032 | #endif | 1066 | #endif |
1033 | }; | 1067 | }; |
1034 | 1068 | ||
1035 | static void __init sci_init_ports(void) | 1069 | static void __devinit sci_init_single(struct platform_device *dev, |
1070 | struct sci_port *sci_port, | ||
1071 | unsigned int index, | ||
1072 | struct plat_sci_port *p) | ||
1036 | { | 1073 | { |
1037 | static int first = 1; | 1074 | sci_port->port.ops = &sci_uart_ops; |
1038 | int i; | 1075 | sci_port->port.iotype = UPIO_MEM; |
1039 | 1076 | sci_port->port.line = index; | |
1040 | if (!first) | 1077 | sci_port->port.fifosize = 1; |
1041 | return; | ||
1042 | |||
1043 | first = 0; | ||
1044 | |||
1045 | for (i = 0; i < SCI_NPORTS; i++) { | ||
1046 | sci_ports[i].port.ops = &sci_uart_ops; | ||
1047 | sci_ports[i].port.iotype = UPIO_MEM; | ||
1048 | sci_ports[i].port.line = i; | ||
1049 | sci_ports[i].port.fifosize = 1; | ||
1050 | 1078 | ||
1051 | #if defined(__H8300H__) || defined(__H8300S__) | 1079 | #if defined(__H8300H__) || defined(__H8300S__) |
1052 | #ifdef __H8300S__ | 1080 | #ifdef __H8300S__ |
1053 | sci_ports[i].enable = h8300_sci_enable; | 1081 | sci_port->enable = h8300_sci_enable; |
1054 | sci_ports[i].disable = h8300_sci_disable; | 1082 | sci_port->disable = h8300_sci_disable; |
1055 | #endif | 1083 | #endif |
1056 | sci_ports[i].port.uartclk = CONFIG_CPU_CLOCK; | 1084 | sci_port->port.uartclk = CONFIG_CPU_CLOCK; |
1057 | #elif defined(CONFIG_HAVE_CLK) | 1085 | #elif defined(CONFIG_HAVE_CLK) |
1058 | /* | 1086 | sci_port->iclk = p->clk ? clk_get(&dev->dev, p->clk) : NULL; |
1059 | * XXX: We should use a proper SCI/SCIF clock | 1087 | sci_port->dclk = clk_get(&dev->dev, "module_clk"); |
1060 | */ | 1088 | sci_port->enable = sci_clk_enable; |
1061 | { | 1089 | sci_port->disable = sci_clk_disable; |
1062 | struct clk *clk = clk_get(NULL, "module_clk"); | ||
1063 | sci_ports[i].port.uartclk = clk_get_rate(clk); | ||
1064 | clk_put(clk); | ||
1065 | } | ||
1066 | #else | 1090 | #else |
1067 | #error "Need a valid uartclk" | 1091 | #error "Need a valid uartclk" |
1068 | #endif | 1092 | #endif |
1069 | 1093 | ||
1070 | sci_ports[i].break_timer.data = (unsigned long)&sci_ports[i]; | 1094 | sci_port->break_timer.data = (unsigned long)sci_port; |
1071 | sci_ports[i].break_timer.function = sci_break_timer; | 1095 | sci_port->break_timer.function = sci_break_timer; |
1072 | 1096 | init_timer(&sci_port->break_timer); | |
1073 | init_timer(&sci_ports[i].break_timer); | ||
1074 | } | ||
1075 | } | ||
1076 | 1097 | ||
1077 | int __init early_sci_setup(struct uart_port *port) | 1098 | sci_port->port.mapbase = p->mapbase; |
1078 | { | 1099 | sci_port->port.membase = p->membase; |
1079 | if (unlikely(port->line > SCI_NPORTS)) | ||
1080 | return -ENODEV; | ||
1081 | 1100 | ||
1082 | sci_init_ports(); | 1101 | sci_port->port.irq = p->irqs[SCIx_TXI_IRQ]; |
1102 | sci_port->port.flags = p->flags; | ||
1103 | sci_port->port.dev = &dev->dev; | ||
1104 | sci_port->type = sci_port->port.type = p->type; | ||
1083 | 1105 | ||
1084 | sci_ports[port->line].port.membase = port->membase; | 1106 | memcpy(&sci_port->irqs, &p->irqs, sizeof(p->irqs)); |
1085 | sci_ports[port->line].port.mapbase = port->mapbase; | ||
1086 | sci_ports[port->line].port.type = port->type; | ||
1087 | 1107 | ||
1088 | return 0; | ||
1089 | } | 1108 | } |
1090 | 1109 | ||
1091 | #ifdef CONFIG_SERIAL_SH_SCI_CONSOLE | 1110 | #ifdef CONFIG_SERIAL_SH_SCI_CONSOLE |
1111 | static struct tty_driver *serial_console_device(struct console *co, int *index) | ||
1112 | { | ||
1113 | struct uart_driver *p = &sci_uart_driver; | ||
1114 | *index = co->index; | ||
1115 | return p->tty_driver; | ||
1116 | } | ||
1117 | |||
1118 | static void serial_console_putchar(struct uart_port *port, int ch) | ||
1119 | { | ||
1120 | sci_poll_put_char(port, ch); | ||
1121 | } | ||
1122 | |||
1092 | /* | 1123 | /* |
1093 | * Print a string to the serial port trying not to disturb | 1124 | * Print a string to the serial port trying not to disturb |
1094 | * any possible real use of the port... | 1125 | * any possible real use of the port... |
@@ -1096,25 +1127,27 @@ int __init early_sci_setup(struct uart_port *port) | |||
1096 | static void serial_console_write(struct console *co, const char *s, | 1127 | static void serial_console_write(struct console *co, const char *s, |
1097 | unsigned count) | 1128 | unsigned count) |
1098 | { | 1129 | { |
1099 | struct uart_port *port = &serial_console_port->port; | 1130 | struct uart_port *port = co->data; |
1131 | struct sci_port *sci_port = to_sci_port(port); | ||
1100 | unsigned short bits; | 1132 | unsigned short bits; |
1101 | int i; | ||
1102 | 1133 | ||
1103 | for (i = 0; i < count; i++) { | 1134 | if (sci_port->enable) |
1104 | if (*s == 10) | 1135 | sci_port->enable(port); |
1105 | sci_poll_put_char(port, '\r'); | ||
1106 | 1136 | ||
1107 | sci_poll_put_char(port, *s++); | 1137 | uart_console_write(port, s, count, serial_console_putchar); |
1108 | } | ||
1109 | 1138 | ||
1110 | /* wait until fifo is empty and last bit has been transmitted */ | 1139 | /* wait until fifo is empty and last bit has been transmitted */ |
1111 | bits = SCxSR_TDxE(port) | SCxSR_TEND(port); | 1140 | bits = SCxSR_TDxE(port) | SCxSR_TEND(port); |
1112 | while ((sci_in(port, SCxSR) & bits) != bits) | 1141 | while ((sci_in(port, SCxSR) & bits) != bits) |
1113 | cpu_relax(); | 1142 | cpu_relax(); |
1143 | |||
1144 | if (sci_port->disable); | ||
1145 | sci_port->disable(port); | ||
1114 | } | 1146 | } |
1115 | 1147 | ||
1116 | static int __init serial_console_setup(struct console *co, char *options) | 1148 | static int __init serial_console_setup(struct console *co, char *options) |
1117 | { | 1149 | { |
1150 | struct sci_port *sci_port; | ||
1118 | struct uart_port *port; | 1151 | struct uart_port *port; |
1119 | int baud = 115200; | 1152 | int baud = 115200; |
1120 | int bits = 8; | 1153 | int bits = 8; |
@@ -1130,8 +1163,9 @@ static int __init serial_console_setup(struct console *co, char *options) | |||
1130 | if (co->index >= SCI_NPORTS) | 1163 | if (co->index >= SCI_NPORTS) |
1131 | co->index = 0; | 1164 | co->index = 0; |
1132 | 1165 | ||
1133 | serial_console_port = &sci_ports[co->index]; | 1166 | sci_port = &sci_ports[co->index]; |
1134 | port = &serial_console_port->port; | 1167 | port = &sci_port->port; |
1168 | co->data = port; | ||
1135 | 1169 | ||
1136 | /* | 1170 | /* |
1137 | * Also need to check port->type, we don't actually have any | 1171 | * Also need to check port->type, we don't actually have any |
@@ -1141,21 +1175,11 @@ static int __init serial_console_setup(struct console *co, char *options) | |||
1141 | */ | 1175 | */ |
1142 | if (!port->type) | 1176 | if (!port->type) |
1143 | return -ENODEV; | 1177 | return -ENODEV; |
1144 | if (!port->membase || !port->mapbase) | ||
1145 | return -ENODEV; | ||
1146 | |||
1147 | port->type = serial_console_port->type; | ||
1148 | |||
1149 | #ifdef CONFIG_HAVE_CLK | ||
1150 | if (!serial_console_port->clk) | ||
1151 | serial_console_port->clk = clk_get(NULL, "module_clk"); | ||
1152 | #endif | ||
1153 | 1178 | ||
1154 | if (port->flags & UPF_IOREMAP) | 1179 | sci_config_port(port, 0); |
1155 | sci_config_port(port, 0); | ||
1156 | 1180 | ||
1157 | if (serial_console_port->enable) | 1181 | if (sci_port->enable) |
1158 | serial_console_port->enable(port); | 1182 | sci_port->enable(port); |
1159 | 1183 | ||
1160 | if (options) | 1184 | if (options) |
1161 | uart_parse_options(options, &baud, &parity, &bits, &flow); | 1185 | uart_parse_options(options, &baud, &parity, &bits, &flow); |
@@ -1166,22 +1190,21 @@ static int __init serial_console_setup(struct console *co, char *options) | |||
1166 | if (ret == 0) | 1190 | if (ret == 0) |
1167 | sci_stop_rx(port); | 1191 | sci_stop_rx(port); |
1168 | #endif | 1192 | #endif |
1193 | /* TODO: disable clock */ | ||
1169 | return ret; | 1194 | return ret; |
1170 | } | 1195 | } |
1171 | 1196 | ||
1172 | static struct console serial_console = { | 1197 | static struct console serial_console = { |
1173 | .name = "ttySC", | 1198 | .name = "ttySC", |
1174 | .device = uart_console_device, | 1199 | .device = serial_console_device, |
1175 | .write = serial_console_write, | 1200 | .write = serial_console_write, |
1176 | .setup = serial_console_setup, | 1201 | .setup = serial_console_setup, |
1177 | .flags = CON_PRINTBUFFER, | 1202 | .flags = CON_PRINTBUFFER, |
1178 | .index = -1, | 1203 | .index = -1, |
1179 | .data = &sci_uart_driver, | ||
1180 | }; | 1204 | }; |
1181 | 1205 | ||
1182 | static int __init sci_console_init(void) | 1206 | static int __init sci_console_init(void) |
1183 | { | 1207 | { |
1184 | sci_init_ports(); | ||
1185 | register_console(&serial_console); | 1208 | register_console(&serial_console); |
1186 | return 0; | 1209 | return 0; |
1187 | } | 1210 | } |
@@ -1207,6 +1230,61 @@ static struct uart_driver sci_uart_driver = { | |||
1207 | .cons = SCI_CONSOLE, | 1230 | .cons = SCI_CONSOLE, |
1208 | }; | 1231 | }; |
1209 | 1232 | ||
1233 | |||
1234 | static int sci_remove(struct platform_device *dev) | ||
1235 | { | ||
1236 | struct sh_sci_priv *priv = platform_get_drvdata(dev); | ||
1237 | struct sci_port *p; | ||
1238 | unsigned long flags; | ||
1239 | |||
1240 | #ifdef CONFIG_HAVE_CLK | ||
1241 | cpufreq_unregister_notifier(&priv->clk_nb, CPUFREQ_TRANSITION_NOTIFIER); | ||
1242 | #endif | ||
1243 | |||
1244 | spin_lock_irqsave(&priv->lock, flags); | ||
1245 | list_for_each_entry(p, &priv->ports, node) | ||
1246 | uart_remove_one_port(&sci_uart_driver, &p->port); | ||
1247 | |||
1248 | spin_unlock_irqrestore(&priv->lock, flags); | ||
1249 | |||
1250 | kfree(priv); | ||
1251 | return 0; | ||
1252 | } | ||
1253 | |||
1254 | static int __devinit sci_probe_single(struct platform_device *dev, | ||
1255 | unsigned int index, | ||
1256 | struct plat_sci_port *p, | ||
1257 | struct sci_port *sciport) | ||
1258 | { | ||
1259 | struct sh_sci_priv *priv = platform_get_drvdata(dev); | ||
1260 | unsigned long flags; | ||
1261 | int ret; | ||
1262 | |||
1263 | /* Sanity check */ | ||
1264 | if (unlikely(index >= SCI_NPORTS)) { | ||
1265 | dev_notice(&dev->dev, "Attempting to register port " | ||
1266 | "%d when only %d are available.\n", | ||
1267 | index+1, SCI_NPORTS); | ||
1268 | dev_notice(&dev->dev, "Consider bumping " | ||
1269 | "CONFIG_SERIAL_SH_SCI_NR_UARTS!\n"); | ||
1270 | return 0; | ||
1271 | } | ||
1272 | |||
1273 | sci_init_single(dev, sciport, index, p); | ||
1274 | |||
1275 | ret = uart_add_one_port(&sci_uart_driver, &sciport->port); | ||
1276 | if (ret) | ||
1277 | return ret; | ||
1278 | |||
1279 | INIT_LIST_HEAD(&sciport->node); | ||
1280 | |||
1281 | spin_lock_irqsave(&priv->lock, flags); | ||
1282 | list_add(&sciport->node, &priv->ports); | ||
1283 | spin_unlock_irqrestore(&priv->lock, flags); | ||
1284 | |||
1285 | return 0; | ||
1286 | } | ||
1287 | |||
1210 | /* | 1288 | /* |
1211 | * Register a set of serial devices attached to a platform device. The | 1289 | * Register a set of serial devices attached to a platform device. The |
1212 | * list is terminated with a zero flags entry, which means we expect | 1290 | * list is terminated with a zero flags entry, which means we expect |
@@ -1216,57 +1294,34 @@ static struct uart_driver sci_uart_driver = { | |||
1216 | static int __devinit sci_probe(struct platform_device *dev) | 1294 | static int __devinit sci_probe(struct platform_device *dev) |
1217 | { | 1295 | { |
1218 | struct plat_sci_port *p = dev->dev.platform_data; | 1296 | struct plat_sci_port *p = dev->dev.platform_data; |
1297 | struct sh_sci_priv *priv; | ||
1219 | int i, ret = -EINVAL; | 1298 | int i, ret = -EINVAL; |
1220 | 1299 | ||
1221 | for (i = 0; p && p->flags != 0; p++, i++) { | 1300 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
1222 | struct sci_port *sciport = &sci_ports[i]; | 1301 | if (!priv) |
1302 | return -ENOMEM; | ||
1223 | 1303 | ||
1224 | /* Sanity check */ | 1304 | INIT_LIST_HEAD(&priv->ports); |
1225 | if (unlikely(i == SCI_NPORTS)) { | 1305 | spin_lock_init(&priv->lock); |
1226 | dev_notice(&dev->dev, "Attempting to register port " | 1306 | platform_set_drvdata(dev, priv); |
1227 | "%d when only %d are available.\n", | ||
1228 | i+1, SCI_NPORTS); | ||
1229 | dev_notice(&dev->dev, "Consider bumping " | ||
1230 | "CONFIG_SERIAL_SH_SCI_NR_UARTS!\n"); | ||
1231 | break; | ||
1232 | } | ||
1233 | 1307 | ||
1234 | sciport->port.mapbase = p->mapbase; | 1308 | #ifdef CONFIG_HAVE_CLK |
1309 | priv->clk_nb.notifier_call = sci_notifier; | ||
1310 | cpufreq_register_notifier(&priv->clk_nb, CPUFREQ_TRANSITION_NOTIFIER); | ||
1311 | #endif | ||
1235 | 1312 | ||
1236 | if (p->mapbase && !p->membase) { | 1313 | if (dev->id != -1) { |
1237 | if (p->flags & UPF_IOREMAP) { | 1314 | ret = sci_probe_single(dev, dev->id, p, &sci_ports[dev->id]); |
1238 | p->membase = ioremap_nocache(p->mapbase, 0x40); | 1315 | if (ret) |
1239 | if (IS_ERR(p->membase)) { | 1316 | goto err_unreg; |
1240 | ret = PTR_ERR(p->membase); | 1317 | } else { |
1241 | goto err_unreg; | 1318 | for (i = 0; p && p->flags != 0; p++, i++) { |
1242 | } | 1319 | ret = sci_probe_single(dev, i, p, &sci_ports[i]); |
1243 | } else { | 1320 | if (ret) |
1244 | /* | 1321 | goto err_unreg; |
1245 | * For the simple (and majority of) cases | ||
1246 | * where we don't need to do any remapping, | ||
1247 | * just cast the cookie directly. | ||
1248 | */ | ||
1249 | p->membase = (void __iomem *)p->mapbase; | ||
1250 | } | ||
1251 | } | 1322 | } |
1252 | |||
1253 | sciport->port.membase = p->membase; | ||
1254 | |||
1255 | sciport->port.irq = p->irqs[SCIx_TXI_IRQ]; | ||
1256 | sciport->port.flags = p->flags; | ||
1257 | sciport->port.dev = &dev->dev; | ||
1258 | |||
1259 | sciport->type = sciport->port.type = p->type; | ||
1260 | |||
1261 | memcpy(&sciport->irqs, &p->irqs, sizeof(p->irqs)); | ||
1262 | |||
1263 | uart_add_one_port(&sci_uart_driver, &sciport->port); | ||
1264 | } | 1323 | } |
1265 | 1324 | ||
1266 | #ifdef CONFIG_HAVE_CLK | ||
1267 | cpufreq_register_notifier(&sci_nb, CPUFREQ_TRANSITION_NOTIFIER); | ||
1268 | #endif | ||
1269 | |||
1270 | #ifdef CONFIG_SH_STANDARD_BIOS | 1325 | #ifdef CONFIG_SH_STANDARD_BIOS |
1271 | sh_bios_gdb_detach(); | 1326 | sh_bios_gdb_detach(); |
1272 | #endif | 1327 | #endif |
@@ -1274,50 +1329,36 @@ static int __devinit sci_probe(struct platform_device *dev) | |||
1274 | return 0; | 1329 | return 0; |
1275 | 1330 | ||
1276 | err_unreg: | 1331 | err_unreg: |
1277 | for (i = i - 1; i >= 0; i--) | 1332 | sci_remove(dev); |
1278 | uart_remove_one_port(&sci_uart_driver, &sci_ports[i].port); | ||
1279 | |||
1280 | return ret; | 1333 | return ret; |
1281 | } | 1334 | } |
1282 | 1335 | ||
1283 | static int __devexit sci_remove(struct platform_device *dev) | ||
1284 | { | ||
1285 | int i; | ||
1286 | |||
1287 | #ifdef CONFIG_HAVE_CLK | ||
1288 | cpufreq_unregister_notifier(&sci_nb, CPUFREQ_TRANSITION_NOTIFIER); | ||
1289 | #endif | ||
1290 | |||
1291 | for (i = 0; i < SCI_NPORTS; i++) | ||
1292 | uart_remove_one_port(&sci_uart_driver, &sci_ports[i].port); | ||
1293 | |||
1294 | return 0; | ||
1295 | } | ||
1296 | |||
1297 | static int sci_suspend(struct platform_device *dev, pm_message_t state) | 1336 | static int sci_suspend(struct platform_device *dev, pm_message_t state) |
1298 | { | 1337 | { |
1299 | int i; | 1338 | struct sh_sci_priv *priv = platform_get_drvdata(dev); |
1339 | struct sci_port *p; | ||
1340 | unsigned long flags; | ||
1300 | 1341 | ||
1301 | for (i = 0; i < SCI_NPORTS; i++) { | 1342 | spin_lock_irqsave(&priv->lock, flags); |
1302 | struct sci_port *p = &sci_ports[i]; | 1343 | list_for_each_entry(p, &priv->ports, node) |
1344 | uart_suspend_port(&sci_uart_driver, &p->port); | ||
1303 | 1345 | ||
1304 | if (p->type != PORT_UNKNOWN && p->port.dev == &dev->dev) | 1346 | spin_unlock_irqrestore(&priv->lock, flags); |
1305 | uart_suspend_port(&sci_uart_driver, &p->port); | ||
1306 | } | ||
1307 | 1347 | ||
1308 | return 0; | 1348 | return 0; |
1309 | } | 1349 | } |
1310 | 1350 | ||
1311 | static int sci_resume(struct platform_device *dev) | 1351 | static int sci_resume(struct platform_device *dev) |
1312 | { | 1352 | { |
1313 | int i; | 1353 | struct sh_sci_priv *priv = platform_get_drvdata(dev); |
1354 | struct sci_port *p; | ||
1355 | unsigned long flags; | ||
1314 | 1356 | ||
1315 | for (i = 0; i < SCI_NPORTS; i++) { | 1357 | spin_lock_irqsave(&priv->lock, flags); |
1316 | struct sci_port *p = &sci_ports[i]; | 1358 | list_for_each_entry(p, &priv->ports, node) |
1359 | uart_resume_port(&sci_uart_driver, &p->port); | ||
1317 | 1360 | ||
1318 | if (p->type != PORT_UNKNOWN && p->port.dev == &dev->dev) | 1361 | spin_unlock_irqrestore(&priv->lock, flags); |
1319 | uart_resume_port(&sci_uart_driver, &p->port); | ||
1320 | } | ||
1321 | 1362 | ||
1322 | return 0; | 1363 | return 0; |
1323 | } | 1364 | } |
@@ -1339,8 +1380,6 @@ static int __init sci_init(void) | |||
1339 | 1380 | ||
1340 | printk(banner); | 1381 | printk(banner); |
1341 | 1382 | ||
1342 | sci_init_ports(); | ||
1343 | |||
1344 | ret = uart_register_driver(&sci_uart_driver); | 1383 | ret = uart_register_driver(&sci_uart_driver); |
1345 | if (likely(ret == 0)) { | 1384 | if (likely(ret == 0)) { |
1346 | ret = platform_driver_register(&sci_driver); | 1385 | ret = platform_driver_register(&sci_driver); |
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index d0aa82d7fce0..38072c15b845 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -91,6 +91,9 @@ | |||
91 | # define SCSPTR5 0xa4050128 | 91 | # define SCSPTR5 0xa4050128 |
92 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 92 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
93 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | 93 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ |
94 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
95 | # define SCIF_ORER 0x0001 /* overrun error bit */ | ||
96 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | ||
94 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) | 97 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) |
95 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ | 98 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ |
96 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 99 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
@@ -314,7 +317,18 @@ | |||
314 | } \ | 317 | } \ |
315 | } | 318 | } |
316 | 319 | ||
317 | #define CPU_SCIF_FNS(name, scif_offset, scif_size) \ | 320 | #ifdef CONFIG_H8300 |
321 | /* h8300 don't have SCIF */ | ||
322 | #define CPU_SCIF_FNS(name) \ | ||
323 | static inline unsigned int sci_##name##_in(struct uart_port *port) \ | ||
324 | { \ | ||
325 | return 0; \ | ||
326 | } \ | ||
327 | static inline void sci_##name##_out(struct uart_port *port, unsigned int value) \ | ||
328 | { \ | ||
329 | } | ||
330 | #else | ||
331 | #define CPU_SCIF_FNS(name, scif_offset, scif_size) \ | ||
318 | static inline unsigned int sci_##name##_in(struct uart_port *port) \ | 332 | static inline unsigned int sci_##name##_in(struct uart_port *port) \ |
319 | { \ | 333 | { \ |
320 | SCI_IN(scif_size, scif_offset); \ | 334 | SCI_IN(scif_size, scif_offset); \ |
@@ -323,6 +337,7 @@ | |||
323 | { \ | 337 | { \ |
324 | SCI_OUT(scif_size, scif_offset, value); \ | 338 | SCI_OUT(scif_size, scif_offset, value); \ |
325 | } | 339 | } |
340 | #endif | ||
326 | 341 | ||
327 | #define CPU_SCI_FNS(name, sci_offset, sci_size) \ | 342 | #define CPU_SCI_FNS(name, sci_offset, sci_size) \ |
328 | static inline unsigned int sci_##name##_in(struct uart_port* port) \ | 343 | static inline unsigned int sci_##name##_in(struct uart_port* port) \ |
@@ -360,8 +375,10 @@ | |||
360 | sh3_scif_offset, sh3_scif_size, sh4_scif_offset, sh4_scif_size, \ | 375 | sh3_scif_offset, sh3_scif_size, sh4_scif_offset, sh4_scif_size, \ |
361 | h8_sci_offset, h8_sci_size) \ | 376 | h8_sci_offset, h8_sci_size) \ |
362 | CPU_SCI_FNS(name, h8_sci_offset, h8_sci_size) | 377 | CPU_SCI_FNS(name, h8_sci_offset, h8_sci_size) |
363 | #define SCIF_FNS(name, sh3_scif_offset, sh3_scif_size, sh4_scif_offset, sh4_scif_size) | 378 | #define SCIF_FNS(name, sh3_scif_offset, sh3_scif_size, sh4_scif_offset, sh4_scif_size) \ |
364 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 379 | CPU_SCIF_FNS(name) |
380 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) ||\ | ||
381 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
365 | #define SCIx_FNS(name, sh4_scifa_offset, sh4_scifa_size, sh4_scif_offset, sh4_scif_size) \ | 382 | #define SCIx_FNS(name, sh4_scifa_offset, sh4_scifa_size, sh4_scif_offset, sh4_scif_size) \ |
366 | CPU_SCIx_FNS(name, sh4_scifa_offset, sh4_scifa_size, sh4_scif_offset, sh4_scif_size) | 383 | CPU_SCIx_FNS(name, sh4_scifa_offset, sh4_scifa_size, sh4_scif_offset, sh4_scif_size) |
367 | #define SCIF_FNS(name, sh4_scif_offset, sh4_scif_size) \ | 384 | #define SCIF_FNS(name, sh4_scif_offset, sh4_scif_size) \ |
@@ -390,7 +407,8 @@ SCIF_FNS(SCFDR, 0x1c, 16) | |||
390 | SCIF_FNS(SCxTDR, 0x20, 8) | 407 | SCIF_FNS(SCxTDR, 0x20, 8) |
391 | SCIF_FNS(SCxRDR, 0x24, 8) | 408 | SCIF_FNS(SCxRDR, 0x24, 8) |
392 | SCIF_FNS(SCLSR, 0x24, 16) | 409 | SCIF_FNS(SCLSR, 0x24, 16) |
393 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 410 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) ||\ |
411 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
394 | SCIx_FNS(SCSMR, 0x00, 16, 0x00, 16) | 412 | SCIx_FNS(SCSMR, 0x00, 16, 0x00, 16) |
395 | SCIx_FNS(SCBRR, 0x04, 8, 0x04, 8) | 413 | SCIx_FNS(SCBRR, 0x04, 8, 0x04, 8) |
396 | SCIx_FNS(SCSCR, 0x08, 16, 0x08, 16) | 414 | SCIx_FNS(SCSCR, 0x08, 16, 0x08, 16) |
@@ -604,10 +622,21 @@ static inline int sci_rxd_in(struct uart_port *port) | |||
604 | return ctrl_inb(SCSPTR5) & 0x0008 ? 1 : 0; /* SCIF5 */ | 622 | return ctrl_inb(SCSPTR5) & 0x0008 ? 1 : 0; /* SCIF5 */ |
605 | return 1; | 623 | return 1; |
606 | } | 624 | } |
625 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
626 | # define SCFSR 0x0010 | ||
627 | # define SCASSR 0x0014 | ||
628 | static inline int sci_rxd_in(struct uart_port *port) | ||
629 | { | ||
630 | if (port->type == PORT_SCIF) | ||
631 | return ctrl_inw((port->mapbase + SCFSR)) & SCIF_BRK ? 1 : 0; | ||
632 | if (port->type == PORT_SCIFA) | ||
633 | return ctrl_inw((port->mapbase + SCASSR)) & SCIF_BRK ? 1 : 0; | ||
634 | return 1; | ||
635 | } | ||
607 | #elif defined(CONFIG_CPU_SUBTYPE_SH5_101) || defined(CONFIG_CPU_SUBTYPE_SH5_103) | 636 | #elif defined(CONFIG_CPU_SUBTYPE_SH5_101) || defined(CONFIG_CPU_SUBTYPE_SH5_103) |
608 | static inline int sci_rxd_in(struct uart_port *port) | 637 | static inline int sci_rxd_in(struct uart_port *port) |
609 | { | 638 | { |
610 | return sci_in(port, SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */ | 639 | return sci_in(port, SCSPTR)&0x0001 ? 1 : 0; /* SCIF */ |
611 | } | 640 | } |
612 | #elif defined(__H8300H__) || defined(__H8300S__) | 641 | #elif defined(__H8300H__) || defined(__H8300S__) |
613 | static inline int sci_rxd_in(struct uart_port *port) | 642 | static inline int sci_rxd_in(struct uart_port *port) |
@@ -757,7 +786,8 @@ static inline int sci_rxd_in(struct uart_port *port) | |||
757 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | 786 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ |
758 | defined(CONFIG_CPU_SUBTYPE_SH7721) | 787 | defined(CONFIG_CPU_SUBTYPE_SH7721) |
759 | #define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(32*bps)-1) | 788 | #define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(32*bps)-1) |
760 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 789 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) ||\ |
790 | defined(CONFIG_CPU_SUBTYPE_SH7724) | ||
761 | static inline int scbrr_calc(struct uart_port *port, int bps, int clk) | 791 | static inline int scbrr_calc(struct uart_port *port, int bps, int clk) |
762 | { | 792 | { |
763 | if (port->type == PORT_SCIF) | 793 | if (port->type == PORT_SCIF) |
diff --git a/drivers/sh/intc.c b/drivers/sh/intc.c index 12d13d99b6f0..098b767e9afd 100644 --- a/drivers/sh/intc.c +++ b/drivers/sh/intc.c | |||
@@ -671,7 +671,7 @@ unsigned int intc_evt2irq(unsigned int vector) | |||
671 | 671 | ||
672 | void __init register_intc_controller(struct intc_desc *desc) | 672 | void __init register_intc_controller(struct intc_desc *desc) |
673 | { | 673 | { |
674 | unsigned int i, k, smp; | 674 | unsigned int i, k, smp, cpu = smp_processor_id(); |
675 | struct intc_desc_int *d; | 675 | struct intc_desc_int *d; |
676 | 676 | ||
677 | d = alloc_bootmem(sizeof(*d)); | 677 | d = alloc_bootmem(sizeof(*d)); |
@@ -770,11 +770,19 @@ void __init register_intc_controller(struct intc_desc *desc) | |||
770 | /* register the vectors one by one */ | 770 | /* register the vectors one by one */ |
771 | for (i = 0; i < desc->nr_vectors; i++) { | 771 | for (i = 0; i < desc->nr_vectors; i++) { |
772 | struct intc_vect *vect = desc->vectors + i; | 772 | struct intc_vect *vect = desc->vectors + i; |
773 | unsigned int irq = evt2irq(vect->vect); | ||
774 | struct irq_desc *irq_desc; | ||
773 | 775 | ||
774 | if (!vect->enum_id) | 776 | if (!vect->enum_id) |
775 | continue; | 777 | continue; |
776 | 778 | ||
777 | intc_register_irq(desc, d, vect->enum_id, evt2irq(vect->vect)); | 779 | irq_desc = irq_to_desc_alloc_cpu(irq, cpu); |
780 | if (unlikely(!irq_desc)) { | ||
781 | printk(KERN_INFO "can not get irq_desc for %d\n", irq); | ||
782 | continue; | ||
783 | } | ||
784 | |||
785 | intc_register_irq(desc, d, vect->enum_id, irq); | ||
778 | } | 786 | } |
779 | } | 787 | } |
780 | 788 | ||
diff --git a/drivers/video/hitfb.c b/drivers/video/hitfb.c index e6467cf9f19f..020db7fc9153 100644 --- a/drivers/video/hitfb.c +++ b/drivers/video/hitfb.c | |||
@@ -335,9 +335,9 @@ static int __init hitfb_probe(struct platform_device *dev) | |||
335 | if (fb_get_options("hitfb", NULL)) | 335 | if (fb_get_options("hitfb", NULL)) |
336 | return -ENODEV; | 336 | return -ENODEV; |
337 | 337 | ||
338 | hitfb_fix.mmio_start = CONFIG_HD64461_IOBASE+0x1000; | 338 | hitfb_fix.mmio_start = HD64461_IO_OFFSET(0x1000); |
339 | hitfb_fix.mmio_len = 0x1000; | 339 | hitfb_fix.mmio_len = 0x1000; |
340 | hitfb_fix.smem_start = CONFIG_HD64461_IOBASE + 0x02000000; | 340 | hitfb_fix.smem_start = HD64461_IO_OFFSET(0x02000000); |
341 | hitfb_fix.smem_len = 512 * 1024; | 341 | hitfb_fix.smem_len = 512 * 1024; |
342 | 342 | ||
343 | lcdclor = fb_readw(HD64461_LCDCLOR); | 343 | lcdclor = fb_readw(HD64461_LCDCLOR); |
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 5a40d14daa9f..c56457c8334e 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -288,7 +288,15 @@ static inline cycle_t clocksource_read(struct clocksource *cs) | |||
288 | */ | 288 | */ |
289 | static inline int clocksource_enable(struct clocksource *cs) | 289 | static inline int clocksource_enable(struct clocksource *cs) |
290 | { | 290 | { |
291 | return cs->enable ? cs->enable(cs) : 0; | 291 | int ret = 0; |
292 | |||
293 | if (cs->enable) | ||
294 | ret = cs->enable(cs); | ||
295 | |||
296 | /* save mult_orig on enable */ | ||
297 | cs->mult_orig = cs->mult; | ||
298 | |||
299 | return ret; | ||
292 | } | 300 | } |
293 | 301 | ||
294 | /** | 302 | /** |
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index 893cc53486bc..1c297ddc9d5a 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h | |||
@@ -25,8 +25,7 @@ struct plat_sci_port { | |||
25 | unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */ | 25 | unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */ |
26 | unsigned int type; /* SCI / SCIF / IRDA */ | 26 | unsigned int type; /* SCI / SCIF / IRDA */ |
27 | upf_t flags; /* UPF_* flags */ | 27 | upf_t flags; /* UPF_* flags */ |
28 | char *clk; /* clock string */ | ||
28 | }; | 29 | }; |
29 | 30 | ||
30 | int early_sci_setup(struct uart_port *port); | ||
31 | |||
32 | #endif /* __LINUX_SERIAL_SCI_H */ | 31 | #endif /* __LINUX_SERIAL_SCI_H */ |
diff --git a/include/linux/sh_cmt.h b/include/linux/sh_cmt.h deleted file mode 100644 index 68cacde5954f..000000000000 --- a/include/linux/sh_cmt.h +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | #ifndef __SH_CMT_H__ | ||
2 | #define __SH_CMT_H__ | ||
3 | |||
4 | struct sh_cmt_config { | ||
5 | char *name; | ||
6 | unsigned long channel_offset; | ||
7 | int timer_bit; | ||
8 | char *clk; | ||
9 | unsigned long clockevent_rating; | ||
10 | unsigned long clocksource_rating; | ||
11 | }; | ||
12 | |||
13 | #endif /* __SH_CMT_H__ */ | ||
diff --git a/include/linux/sh_timer.h b/include/linux/sh_timer.h new file mode 100644 index 000000000000..864bd56bd3b0 --- /dev/null +++ b/include/linux/sh_timer.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef __SH_TIMER_H__ | ||
2 | #define __SH_TIMER_H__ | ||
3 | |||
4 | struct sh_timer_config { | ||
5 | char *name; | ||
6 | long channel_offset; | ||
7 | int timer_bit; | ||
8 | char *clk; | ||
9 | unsigned long clockevent_rating; | ||
10 | unsigned long clocksource_rating; | ||
11 | }; | ||
12 | |||
13 | #endif /* __SH_TIMER_H__ */ | ||
diff --git a/include/linux/time.h b/include/linux/time.h index 242f62499bb7..ea16c1a01d51 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -113,6 +113,21 @@ struct timespec current_kernel_time(void); | |||
113 | #define CURRENT_TIME (current_kernel_time()) | 113 | #define CURRENT_TIME (current_kernel_time()) |
114 | #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) | 114 | #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) |
115 | 115 | ||
116 | /* Some architectures do not supply their own clocksource. | ||
117 | * This is mainly the case in architectures that get their | ||
118 | * inter-tick times by reading the counter on their interval | ||
119 | * timer. Since these timers wrap every tick, they're not really | ||
120 | * useful as clocksources. Wrapping them to act like one is possible | ||
121 | * but not very efficient. So we provide a callout these arches | ||
122 | * can implement for use with the jiffies clocksource to provide | ||
123 | * finer then tick granular time. | ||
124 | */ | ||
125 | #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET | ||
126 | extern u32 arch_gettimeoffset(void); | ||
127 | #else | ||
128 | static inline u32 arch_gettimeoffset(void) { return 0; } | ||
129 | #endif | ||
130 | |||
116 | extern void do_gettimeofday(struct timeval *tv); | 131 | extern void do_gettimeofday(struct timeval *tv); |
117 | extern int do_settimeofday(struct timespec *tv); | 132 | extern int do_settimeofday(struct timespec *tv); |
118 | extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz); | 133 | extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz); |
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index ecfd7b5187e0..80189f6f1c5a 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
@@ -402,9 +402,6 @@ int clocksource_register(struct clocksource *c) | |||
402 | unsigned long flags; | 402 | unsigned long flags; |
403 | int ret; | 403 | int ret; |
404 | 404 | ||
405 | /* save mult_orig on registration */ | ||
406 | c->mult_orig = c->mult; | ||
407 | |||
408 | spin_lock_irqsave(&clocksource_lock, flags); | 405 | spin_lock_irqsave(&clocksource_lock, flags); |
409 | ret = clocksource_enqueue(c); | 406 | ret = clocksource_enqueue(c); |
410 | if (!ret) | 407 | if (!ret) |
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 687dff49f6e7..e97c50f8458b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -77,6 +77,10 @@ static void clocksource_forward_now(void) | |||
77 | clock->cycle_last = cycle_now; | 77 | clock->cycle_last = cycle_now; |
78 | 78 | ||
79 | nsec = cyc2ns(clock, cycle_delta); | 79 | nsec = cyc2ns(clock, cycle_delta); |
80 | |||
81 | /* If arch requires, add in gettimeoffset() */ | ||
82 | nsec += arch_gettimeoffset(); | ||
83 | |||
80 | timespec_add_ns(&xtime, nsec); | 84 | timespec_add_ns(&xtime, nsec); |
81 | 85 | ||
82 | nsec = ((s64)cycle_delta * clock->mult_orig) >> clock->shift; | 86 | nsec = ((s64)cycle_delta * clock->mult_orig) >> clock->shift; |
@@ -111,6 +115,9 @@ void getnstimeofday(struct timespec *ts) | |||
111 | /* convert to nanoseconds: */ | 115 | /* convert to nanoseconds: */ |
112 | nsecs = cyc2ns(clock, cycle_delta); | 116 | nsecs = cyc2ns(clock, cycle_delta); |
113 | 117 | ||
118 | /* If arch requires, add in gettimeoffset() */ | ||
119 | nsecs += arch_gettimeoffset(); | ||
120 | |||
114 | } while (read_seqretry(&xtime_lock, seq)); | 121 | } while (read_seqretry(&xtime_lock, seq)); |
115 | 122 | ||
116 | timespec_add_ns(ts, nsecs); | 123 | timespec_add_ns(ts, nsecs); |
diff --git a/sound/oss/Kconfig b/sound/oss/Kconfig index 1ca7427c4b6d..bcf2a0698d54 100644 --- a/sound/oss/Kconfig +++ b/sound/oss/Kconfig | |||
@@ -561,7 +561,7 @@ endif # SOUND_OSS | |||
561 | 561 | ||
562 | config SOUND_SH_DAC_AUDIO | 562 | config SOUND_SH_DAC_AUDIO |
563 | tristate "SuperH DAC audio support" | 563 | tristate "SuperH DAC audio support" |
564 | depends on CPU_SH3 | 564 | depends on CPU_SH3 && HIGH_RES_TIMERS |
565 | 565 | ||
566 | config SOUND_SH_DAC_AUDIO_CHANNEL | 566 | config SOUND_SH_DAC_AUDIO_CHANNEL |
567 | int "DAC channel" | 567 | int "DAC channel" |
diff --git a/sound/oss/sh_dac_audio.c b/sound/oss/sh_dac_audio.c index 78cfb66e4c59..b2ed8757542a 100644 --- a/sound/oss/sh_dac_audio.c +++ b/sound/oss/sh_dac_audio.c | |||
@@ -18,47 +18,36 @@ | |||
18 | #include <linux/sound.h> | 18 | #include <linux/sound.h> |
19 | #include <linux/soundcard.h> | 19 | #include <linux/soundcard.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/hrtimer.h> | ||
21 | #include <asm/io.h> | 22 | #include <asm/io.h> |
22 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
23 | #include <asm/irq.h> | 24 | #include <asm/irq.h> |
24 | #include <asm/delay.h> | 25 | #include <asm/delay.h> |
25 | #include <asm/clock.h> | 26 | #include <asm/clock.h> |
26 | #include <asm/cpu/dac.h> | 27 | #include <cpu/dac.h> |
27 | #include <asm/cpu/timer.h> | ||
28 | #include <asm/machvec.h> | 28 | #include <asm/machvec.h> |
29 | #include <mach/hp6xx.h> | 29 | #include <mach/hp6xx.h> |
30 | #include <asm/hd64461.h> | 30 | #include <asm/hd64461.h> |
31 | 31 | ||
32 | #define MODNAME "sh_dac_audio" | 32 | #define MODNAME "sh_dac_audio" |
33 | 33 | ||
34 | #define TMU_TOCR_INIT 0x00 | ||
35 | |||
36 | #define TMU1_TCR_INIT 0x0020 /* Clock/4, rising edge; interrupt on */ | ||
37 | #define TMU1_TSTR_INIT 0x02 /* Bit to turn on TMU1 */ | ||
38 | |||
39 | #define BUFFER_SIZE 48000 | 34 | #define BUFFER_SIZE 48000 |
40 | 35 | ||
41 | static int rate; | 36 | static int rate; |
42 | static int empty; | 37 | static int empty; |
43 | static char *data_buffer, *buffer_begin, *buffer_end; | 38 | static char *data_buffer, *buffer_begin, *buffer_end; |
44 | static int in_use, device_major; | 39 | static int in_use, device_major; |
40 | static struct hrtimer hrtimer; | ||
41 | static ktime_t wakeups_per_second; | ||
45 | 42 | ||
46 | static void dac_audio_start_timer(void) | 43 | static void dac_audio_start_timer(void) |
47 | { | 44 | { |
48 | u8 tstr; | 45 | hrtimer_start(&hrtimer, wakeups_per_second, HRTIMER_MODE_REL); |
49 | |||
50 | tstr = ctrl_inb(TMU_TSTR); | ||
51 | tstr |= TMU1_TSTR_INIT; | ||
52 | ctrl_outb(tstr, TMU_TSTR); | ||
53 | } | 46 | } |
54 | 47 | ||
55 | static void dac_audio_stop_timer(void) | 48 | static void dac_audio_stop_timer(void) |
56 | { | 49 | { |
57 | u8 tstr; | 50 | hrtimer_cancel(&hrtimer); |
58 | |||
59 | tstr = ctrl_inb(TMU_TSTR); | ||
60 | tstr &= ~TMU1_TSTR_INIT; | ||
61 | ctrl_outb(tstr, TMU_TSTR); | ||
62 | } | 51 | } |
63 | 52 | ||
64 | static void dac_audio_reset(void) | 53 | static void dac_audio_reset(void) |
@@ -77,38 +66,30 @@ static void dac_audio_sync(void) | |||
77 | static void dac_audio_start(void) | 66 | static void dac_audio_start(void) |
78 | { | 67 | { |
79 | if (mach_is_hp6xx()) { | 68 | if (mach_is_hp6xx()) { |
80 | u16 v = inw(HD64461_GPADR); | 69 | u16 v = __raw_readw(HD64461_GPADR); |
81 | v &= ~HD64461_GPADR_SPEAKER; | 70 | v &= ~HD64461_GPADR_SPEAKER; |
82 | outw(v, HD64461_GPADR); | 71 | __raw_writew(v, HD64461_GPADR); |
83 | } | 72 | } |
84 | 73 | ||
85 | sh_dac_enable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); | 74 | sh_dac_enable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); |
86 | ctrl_outw(TMU1_TCR_INIT, TMU1_TCR); | ||
87 | } | 75 | } |
88 | static void dac_audio_stop(void) | 76 | static void dac_audio_stop(void) |
89 | { | 77 | { |
90 | dac_audio_stop_timer(); | 78 | dac_audio_stop_timer(); |
91 | 79 | ||
92 | if (mach_is_hp6xx()) { | 80 | if (mach_is_hp6xx()) { |
93 | u16 v = inw(HD64461_GPADR); | 81 | u16 v = __raw_readw(HD64461_GPADR); |
94 | v |= HD64461_GPADR_SPEAKER; | 82 | v |= HD64461_GPADR_SPEAKER; |
95 | outw(v, HD64461_GPADR); | 83 | __raw_writew(v, HD64461_GPADR); |
96 | } | 84 | } |
97 | 85 | ||
98 | sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); | 86 | sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); |
99 | sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); | 87 | sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); |
100 | } | 88 | } |
101 | 89 | ||
102 | static void dac_audio_set_rate(void) | 90 | static void dac_audio_set_rate(void) |
103 | { | 91 | { |
104 | unsigned long interval; | 92 | wakeups_per_second = ktime_set(0, 1000000000 / rate); |
105 | struct clk *clk; | ||
106 | |||
107 | clk = clk_get(NULL, "module_clk"); | ||
108 | interval = (clk_get_rate(clk) / 4) / rate; | ||
109 | clk_put(clk); | ||
110 | ctrl_outl(interval, TMU1_TCOR); | ||
111 | ctrl_outl(interval, TMU1_TCNT); | ||
112 | } | 93 | } |
113 | 94 | ||
114 | static int dac_audio_ioctl(struct inode *inode, struct file *file, | 95 | static int dac_audio_ioctl(struct inode *inode, struct file *file, |
@@ -265,32 +246,26 @@ const struct file_operations dac_audio_fops = { | |||
265 | .release = dac_audio_release, | 246 | .release = dac_audio_release, |
266 | }; | 247 | }; |
267 | 248 | ||
268 | static irqreturn_t timer1_interrupt(int irq, void *dev) | 249 | static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) |
269 | { | 250 | { |
270 | unsigned long timer_status; | ||
271 | |||
272 | timer_status = ctrl_inw(TMU1_TCR); | ||
273 | timer_status &= ~0x100; | ||
274 | ctrl_outw(timer_status, TMU1_TCR); | ||
275 | |||
276 | if (!empty) { | 251 | if (!empty) { |
277 | sh_dac_output(*buffer_begin, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); | 252 | sh_dac_output(*buffer_begin, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); |
278 | buffer_begin++; | 253 | buffer_begin++; |
279 | 254 | ||
280 | if (buffer_begin == data_buffer + BUFFER_SIZE) | 255 | if (buffer_begin == data_buffer + BUFFER_SIZE) |
281 | buffer_begin = data_buffer; | 256 | buffer_begin = data_buffer; |
282 | if (buffer_begin == buffer_end) { | 257 | if (buffer_begin == buffer_end) |
283 | empty = 1; | 258 | empty = 1; |
284 | dac_audio_stop_timer(); | ||
285 | } | ||
286 | } | 259 | } |
287 | return IRQ_HANDLED; | 260 | |
261 | if (!empty) | ||
262 | hrtimer_start(&hrtimer, wakeups_per_second, HRTIMER_MODE_REL); | ||
263 | |||
264 | return HRTIMER_NORESTART; | ||
288 | } | 265 | } |
289 | 266 | ||
290 | static int __init dac_audio_init(void) | 267 | static int __init dac_audio_init(void) |
291 | { | 268 | { |
292 | int retval; | ||
293 | |||
294 | if ((device_major = register_sound_dsp(&dac_audio_fops, -1)) < 0) { | 269 | if ((device_major = register_sound_dsp(&dac_audio_fops, -1)) < 0) { |
295 | printk(KERN_ERR "Cannot register dsp device"); | 270 | printk(KERN_ERR "Cannot register dsp device"); |
296 | return device_major; | 271 | return device_major; |
@@ -306,21 +281,25 @@ static int __init dac_audio_init(void) | |||
306 | rate = 8000; | 281 | rate = 8000; |
307 | dac_audio_set_rate(); | 282 | dac_audio_set_rate(); |
308 | 283 | ||
309 | retval = | 284 | /* Today: High Resolution Timer driven DAC playback. |
310 | request_irq(TIMER1_IRQ, timer1_interrupt, IRQF_DISABLED, MODNAME, 0); | 285 | * The timer callback gets called once per sample. Ouch. |
311 | if (retval < 0) { | 286 | * |
312 | printk(KERN_ERR "sh_dac_audio: IRQ %d request failed\n", | 287 | * Future: A much better approach would be to use the |
313 | TIMER1_IRQ); | 288 | * SH7720 CMT+DMAC+DAC hardware combination like this: |
314 | return retval; | 289 | * - Program sample rate using CMT0 or CMT1 |
315 | } | 290 | * - Program DMAC to use CMT for timing and output to DAC |
291 | * - Play sound using DMAC, let CPU sleep. | ||
292 | * - While at it, rewrite this driver to use ALSA. | ||
293 | */ | ||
294 | |||
295 | hrtimer_init(&hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); | ||
296 | hrtimer.function = sh_dac_audio_timer; | ||
316 | 297 | ||
317 | return 0; | 298 | return 0; |
318 | } | 299 | } |
319 | 300 | ||
320 | static void __exit dac_audio_exit(void) | 301 | static void __exit dac_audio_exit(void) |
321 | { | 302 | { |
322 | free_irq(TIMER1_IRQ, 0); | ||
323 | |||
324 | unregister_sound_dsp(device_major); | 303 | unregister_sound_dsp(device_major); |
325 | kfree((void *)data_buffer); | 304 | kfree((void *)data_buffer); |
326 | } | 305 | } |