diff options
Diffstat (limited to 'arch')
467 files changed, 27598 insertions, 6555 deletions
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 8290b69da202..213c7850d5fb 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
@@ -453,7 +453,7 @@ config ALPHA_IRONGATE | |||
453 | 453 | ||
454 | config GENERIC_HWEIGHT | 454 | config GENERIC_HWEIGHT |
455 | bool | 455 | bool |
456 | default y if !ALPHA_EV6 && !ALPHA_EV67 | 456 | default y if !ALPHA_EV67 |
457 | 457 | ||
458 | config ALPHA_AVANTI | 458 | config ALPHA_AVANTI |
459 | bool | 459 | bool |
diff --git a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c index c645c5e14786..2b245ad731ee 100644 --- a/arch/alpha/kernel/alpha_ksyms.c +++ b/arch/alpha/kernel/alpha_ksyms.c | |||
@@ -182,7 +182,6 @@ EXPORT_SYMBOL(smp_num_cpus); | |||
182 | EXPORT_SYMBOL(smp_call_function); | 182 | EXPORT_SYMBOL(smp_call_function); |
183 | EXPORT_SYMBOL(smp_call_function_on_cpu); | 183 | EXPORT_SYMBOL(smp_call_function_on_cpu); |
184 | EXPORT_SYMBOL(_atomic_dec_and_lock); | 184 | EXPORT_SYMBOL(_atomic_dec_and_lock); |
185 | EXPORT_SYMBOL(cpu_present_mask); | ||
186 | #endif /* CONFIG_SMP */ | 185 | #endif /* CONFIG_SMP */ |
187 | 186 | ||
188 | /* | 187 | /* |
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index 9924fd07743a..c760a831fd1a 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -94,7 +94,7 @@ common_shutdown_1(void *generic_ptr) | |||
94 | if (cpuid != boot_cpuid) { | 94 | if (cpuid != boot_cpuid) { |
95 | flags |= 0x00040000UL; /* "remain halted" */ | 95 | flags |= 0x00040000UL; /* "remain halted" */ |
96 | *pflags = flags; | 96 | *pflags = flags; |
97 | clear_bit(cpuid, &cpu_present_mask); | 97 | cpu_clear(cpuid, cpu_present_map); |
98 | halt(); | 98 | halt(); |
99 | } | 99 | } |
100 | #endif | 100 | #endif |
@@ -120,8 +120,8 @@ common_shutdown_1(void *generic_ptr) | |||
120 | 120 | ||
121 | #ifdef CONFIG_SMP | 121 | #ifdef CONFIG_SMP |
122 | /* Wait for the secondaries to halt. */ | 122 | /* Wait for the secondaries to halt. */ |
123 | cpu_clear(boot_cpuid, cpu_possible_map); | 123 | cpu_clear(boot_cpuid, cpu_present_map); |
124 | while (cpus_weight(cpu_possible_map)) | 124 | while (cpus_weight(cpu_present_map)) |
125 | barrier(); | 125 | barrier(); |
126 | #endif | 126 | #endif |
127 | 127 | ||
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index 185255416e85..4dc273e537fd 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c | |||
@@ -68,7 +68,6 @@ enum ipi_message_type { | |||
68 | static int smp_secondary_alive __initdata = 0; | 68 | static int smp_secondary_alive __initdata = 0; |
69 | 69 | ||
70 | /* Which cpus ids came online. */ | 70 | /* Which cpus ids came online. */ |
71 | cpumask_t cpu_present_mask; | ||
72 | cpumask_t cpu_online_map; | 71 | cpumask_t cpu_online_map; |
73 | 72 | ||
74 | EXPORT_SYMBOL(cpu_online_map); | 73 | EXPORT_SYMBOL(cpu_online_map); |
@@ -439,7 +438,7 @@ setup_smp(void) | |||
439 | if ((cpu->flags & 0x1cc) == 0x1cc) { | 438 | if ((cpu->flags & 0x1cc) == 0x1cc) { |
440 | smp_num_probed++; | 439 | smp_num_probed++; |
441 | /* Assume here that "whami" == index */ | 440 | /* Assume here that "whami" == index */ |
442 | cpu_set(i, cpu_present_mask); | 441 | cpu_set(i, cpu_present_map); |
443 | cpu->pal_revision = boot_cpu_palrev; | 442 | cpu->pal_revision = boot_cpu_palrev; |
444 | } | 443 | } |
445 | 444 | ||
@@ -450,11 +449,10 @@ setup_smp(void) | |||
450 | } | 449 | } |
451 | } else { | 450 | } else { |
452 | smp_num_probed = 1; | 451 | smp_num_probed = 1; |
453 | cpu_set(boot_cpuid, cpu_present_mask); | ||
454 | } | 452 | } |
455 | 453 | ||
456 | printk(KERN_INFO "SMP: %d CPUs probed -- cpu_present_mask = %lx\n", | 454 | printk(KERN_INFO "SMP: %d CPUs probed -- cpu_present_map = %lx\n", |
457 | smp_num_probed, cpu_possible_map.bits[0]); | 455 | smp_num_probed, cpu_present_map.bits[0]); |
458 | } | 456 | } |
459 | 457 | ||
460 | /* | 458 | /* |
@@ -473,7 +471,7 @@ smp_prepare_cpus(unsigned int max_cpus) | |||
473 | 471 | ||
474 | /* Nothing to do on a UP box, or when told not to. */ | 472 | /* Nothing to do on a UP box, or when told not to. */ |
475 | if (smp_num_probed == 1 || max_cpus == 0) { | 473 | if (smp_num_probed == 1 || max_cpus == 0) { |
476 | cpu_present_mask = cpumask_of_cpu(boot_cpuid); | 474 | cpu_present_map = cpumask_of_cpu(boot_cpuid); |
477 | printk(KERN_INFO "SMP mode deactivated.\n"); | 475 | printk(KERN_INFO "SMP mode deactivated.\n"); |
478 | return; | 476 | return; |
479 | } | 477 | } |
@@ -486,10 +484,6 @@ smp_prepare_cpus(unsigned int max_cpus) | |||
486 | void __devinit | 484 | void __devinit |
487 | smp_prepare_boot_cpu(void) | 485 | smp_prepare_boot_cpu(void) |
488 | { | 486 | { |
489 | /* | ||
490 | * Mark the boot cpu (current cpu) as online | ||
491 | */ | ||
492 | cpu_set(smp_processor_id(), cpu_online_map); | ||
493 | } | 487 | } |
494 | 488 | ||
495 | int __devinit | 489 | int __devinit |
diff --git a/arch/alpha/kernel/sys_titan.c b/arch/alpha/kernel/sys_titan.c index 5f84417eeb7b..2551fb49ae09 100644 --- a/arch/alpha/kernel/sys_titan.c +++ b/arch/alpha/kernel/sys_titan.c | |||
@@ -66,7 +66,7 @@ titan_update_irq_hw(unsigned long mask) | |||
66 | register int bcpu = boot_cpuid; | 66 | register int bcpu = boot_cpuid; |
67 | 67 | ||
68 | #ifdef CONFIG_SMP | 68 | #ifdef CONFIG_SMP |
69 | cpumask_t cpm = cpu_present_mask; | 69 | cpumask_t cpm = cpu_present_map; |
70 | volatile unsigned long *dim0, *dim1, *dim2, *dim3; | 70 | volatile unsigned long *dim0, *dim1, *dim2, *dim3; |
71 | unsigned long mask0, mask1, mask2, mask3, dummy; | 71 | unsigned long mask0, mask1, mask2, mask3, dummy; |
72 | 72 | ||
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 08b7cc900cae..1b7e5c2e90ef 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -93,15 +93,49 @@ choice | |||
93 | prompt "ARM system type" | 93 | prompt "ARM system type" |
94 | default ARCH_VERSATILE | 94 | default ARCH_VERSATILE |
95 | 95 | ||
96 | config ARCH_AAEC2000 | ||
97 | bool "Agilent AAEC-2000 based" | ||
98 | select ARM_AMBA | ||
99 | help | ||
100 | This enables support for systems based on the Agilent AAEC-2000 | ||
101 | |||
102 | config ARCH_INTEGRATOR | ||
103 | bool "ARM Ltd. Integrator family" | ||
104 | select ARM_AMBA | ||
105 | select ICST525 | ||
106 | help | ||
107 | Support for ARM's Integrator platform. | ||
108 | |||
109 | config ARCH_REALVIEW | ||
110 | bool "ARM Ltd. RealView family" | ||
111 | select ARM_AMBA | ||
112 | select ICST307 | ||
113 | help | ||
114 | This enables support for ARM Ltd RealView boards. | ||
115 | |||
116 | config ARCH_VERSATILE | ||
117 | bool "ARM Ltd. Versatile family" | ||
118 | select ARM_AMBA | ||
119 | select ARM_VIC | ||
120 | select ICST307 | ||
121 | help | ||
122 | This enables support for ARM Ltd Versatile board. | ||
123 | |||
124 | config ARCH_AT91RM9200 | ||
125 | bool "Atmel AT91RM9200" | ||
126 | help | ||
127 | Say Y here if you intend to run this kernel on an Atmel | ||
128 | AT91RM9200-based board. | ||
129 | |||
96 | config ARCH_CLPS7500 | 130 | config ARCH_CLPS7500 |
97 | bool "Cirrus-CL-PS7500FE" | 131 | bool "Cirrus CL-PS7500FE" |
98 | select TIMER_ACORN | 132 | select TIMER_ACORN |
99 | select ISA | 133 | select ISA |
100 | help | 134 | help |
101 | Support for the Cirrus Logic PS7500FE system-on-a-chip. | 135 | Support for the Cirrus Logic PS7500FE system-on-a-chip. |
102 | 136 | ||
103 | config ARCH_CLPS711X | 137 | config ARCH_CLPS711X |
104 | bool "CLPS711x/EP721x-based" | 138 | bool "Cirrus Logic CLPS711x/EP721x-based" |
105 | help | 139 | help |
106 | Support for Cirrus Logic 711x/721x based boards. | 140 | Support for Cirrus Logic 711x/721x based boards. |
107 | 141 | ||
@@ -135,12 +169,22 @@ config ARCH_FOOTBRIDGE | |||
135 | Support for systems based on the DC21285 companion chip | 169 | Support for systems based on the DC21285 companion chip |
136 | ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder. | 170 | ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder. |
137 | 171 | ||
138 | config ARCH_INTEGRATOR | 172 | config ARCH_NETX |
139 | bool "Integrator" | 173 | bool "Hilscher NetX based" |
140 | select ARM_AMBA | 174 | select ARM_VIC |
141 | select ICST525 | ||
142 | help | 175 | help |
143 | Support for ARM's Integrator platform. | 176 | This enables support for systems based on the Hilscher NetX Soc |
177 | |||
178 | config ARCH_H720X | ||
179 | bool "Hynix HMS720x-based" | ||
180 | select ISA_DMA_API | ||
181 | help | ||
182 | This enables support for systems based on the Hynix HMS720x | ||
183 | |||
184 | config ARCH_IMX | ||
185 | bool "IMX" | ||
186 | help | ||
187 | Support for Motorola's i.MX family of processors (MX1, MXL). | ||
144 | 188 | ||
145 | config ARCH_IOP3XX | 189 | config ARCH_IOP3XX |
146 | bool "IOP3xx-based" | 190 | bool "IOP3xx-based" |
@@ -178,6 +222,11 @@ config ARCH_L7200 | |||
178 | If you have any questions or comments about the Linux kernel port | 222 | If you have any questions or comments about the Linux kernel port |
179 | to this board, send e-mail to <sjhill@cotw.com>. | 223 | to this board, send e-mail to <sjhill@cotw.com>. |
180 | 224 | ||
225 | config ARCH_PNX4008 | ||
226 | bool "Philips Nexperia PNX4008 Mobile" | ||
227 | help | ||
228 | This enables support for Philips PNX4008 mobile platform. | ||
229 | |||
181 | config ARCH_PXA | 230 | config ARCH_PXA |
182 | bool "PXA2xx-based" | 231 | bool "PXA2xx-based" |
183 | select ARCH_MTD_XIP | 232 | select ARCH_MTD_XIP |
@@ -232,44 +281,6 @@ config ARCH_OMAP | |||
232 | help | 281 | help |
233 | Support for TI's OMAP platform (OMAP1 and OMAP2). | 282 | Support for TI's OMAP platform (OMAP1 and OMAP2). |
234 | 283 | ||
235 | config ARCH_VERSATILE | ||
236 | bool "Versatile" | ||
237 | select ARM_AMBA | ||
238 | select ARM_VIC | ||
239 | select ICST307 | ||
240 | help | ||
241 | This enables support for ARM Ltd Versatile board. | ||
242 | |||
243 | config ARCH_REALVIEW | ||
244 | bool "RealView" | ||
245 | select ARM_AMBA | ||
246 | select ICST307 | ||
247 | help | ||
248 | This enables support for ARM Ltd RealView boards. | ||
249 | |||
250 | config ARCH_IMX | ||
251 | bool "IMX" | ||
252 | help | ||
253 | Support for Motorola's i.MX family of processors (MX1, MXL). | ||
254 | |||
255 | config ARCH_H720X | ||
256 | bool "Hynix-HMS720x-based" | ||
257 | select ISA_DMA_API | ||
258 | help | ||
259 | This enables support for systems based on the Hynix HMS720x | ||
260 | |||
261 | config ARCH_AAEC2000 | ||
262 | bool "Agilent AAEC-2000 based" | ||
263 | select ARM_AMBA | ||
264 | help | ||
265 | This enables support for systems based on the Agilent AAEC-2000 | ||
266 | |||
267 | config ARCH_AT91RM9200 | ||
268 | bool "AT91RM9200" | ||
269 | help | ||
270 | Say Y here if you intend to run this kernel on an Atmel | ||
271 | AT91RM9200-based board. | ||
272 | |||
273 | endchoice | 284 | endchoice |
274 | 285 | ||
275 | source "arch/arm/mach-clps711x/Kconfig" | 286 | source "arch/arm/mach-clps711x/Kconfig" |
@@ -314,6 +325,8 @@ source "arch/arm/mach-realview/Kconfig" | |||
314 | 325 | ||
315 | source "arch/arm/mach-at91rm9200/Kconfig" | 326 | source "arch/arm/mach-at91rm9200/Kconfig" |
316 | 327 | ||
328 | source "arch/arm/mach-netx/Kconfig" | ||
329 | |||
317 | # Definitions to make life easier | 330 | # Definitions to make life easier |
318 | config ARCH_ACORN | 331 | config ARCH_ACORN |
319 | bool | 332 | bool |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 5d3acff8c596..d22f38b957db 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -101,7 +101,7 @@ config DEBUG_S3C2410_UART | |||
101 | help | 101 | help |
102 | Choice for UART for kernel low-level using S3C2410 UARTS, | 102 | Choice for UART for kernel low-level using S3C2410 UARTS, |
103 | should be between zero and two. The port must have been | 103 | should be between zero and two. The port must have been |
104 | initalised by the boot-loader before use. | 104 | initialised by the boot-loader before use. |
105 | 105 | ||
106 | The uncompressor code port configuration is now handled | 106 | The uncompressor code port configuration is now handled |
107 | by CONFIG_S3C2410_LOWLEVEL_UART_PORT. | 107 | by CONFIG_S3C2410_LOWLEVEL_UART_PORT. |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6f8e84c1c1f2..282b14e2f464 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -116,6 +116,8 @@ endif | |||
116 | machine-$(CONFIG_ARCH_REALVIEW) := realview | 116 | machine-$(CONFIG_ARCH_REALVIEW) := realview |
117 | machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 | 117 | machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 |
118 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx | 118 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx |
119 | machine-$(CONFIG_ARCH_PNX4008) := pnx4008 | ||
120 | machine-$(CONFIG_ARCH_NETX) := netx | ||
119 | 121 | ||
120 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 122 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
121 | # This is what happens if you forget the IOCS16 line. | 123 | # This is what happens if you forget the IOCS16 line. |
diff --git a/arch/arm/boot/compressed/head-at91rm9200.S b/arch/arm/boot/compressed/head-at91rm9200.S index 2119ea62b547..57a3b163b2cb 100644 --- a/arch/arm/boot/compressed/head-at91rm9200.S +++ b/arch/arm/boot/compressed/head-at91rm9200.S | |||
@@ -49,6 +49,18 @@ | |||
49 | cmp r7, r3 | 49 | cmp r7, r3 |
50 | beq 99f | 50 | beq 99f |
51 | 51 | ||
52 | @ Embest ATEB9200 : 923 | ||
53 | mov r3, #(MACH_TYPE_ATEB9200 & 0xff) | ||
54 | orr r3, r3, #(MACH_TYPE_ATEB9200 & 0xff00) | ||
55 | cmp r7, r3 | ||
56 | beq 99f | ||
57 | |||
58 | @ Sperry-Sun KAFA : 662 | ||
59 | mov r3, #(MACH_TYPE_KAFA & 0xff) | ||
60 | orr r3, r3, #(MACH_TYPE_KAFA & 0xff00) | ||
61 | cmp r7, r3 | ||
62 | beq 99f | ||
63 | |||
52 | @ Unknown board, use the AT91RM9200DK board | 64 | @ Unknown board, use the AT91RM9200DK board |
53 | @ mov r7, #MACH_TYPE_AT91RM9200 | 65 | @ mov r7, #MACH_TYPE_AT91RM9200 |
54 | mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff) | 66 | mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff) |
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index b56f5e691d65..23016f6aa645 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -605,8 +605,8 @@ proc_types: | |||
605 | b __armv4_mmu_cache_off | 605 | b __armv4_mmu_cache_off |
606 | b __armv4_mmu_cache_flush | 606 | b __armv4_mmu_cache_flush |
607 | 607 | ||
608 | .word 0x00070000 @ ARMv6 | 608 | .word 0x0007b000 @ ARMv6 |
609 | .word 0x000f0000 | 609 | .word 0x0007f000 |
610 | b __armv4_mmu_cache_on | 610 | b __armv4_mmu_cache_on |
611 | b __armv4_mmu_cache_off | 611 | b __armv4_mmu_cache_off |
612 | b __armv6_mmu_cache_flush | 612 | b __armv6_mmu_cache_flush |
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 3cd8c9ee4510..045e37e07330 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -49,13 +49,6 @@ | |||
49 | #define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */ | 49 | #define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */ |
50 | #define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */ | 50 | #define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */ |
51 | 51 | ||
52 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
53 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
54 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
55 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
56 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
57 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
58 | |||
59 | /* | 52 | /* |
60 | * Prototypes | 53 | * Prototypes |
61 | */ | 54 | */ |
@@ -82,12 +75,13 @@ DEFINE_LED_TRIGGER(sharpsl_charge_led_trigger); | |||
82 | static int get_percentage(int voltage) | 75 | static int get_percentage(int voltage) |
83 | { | 76 | { |
84 | int i = sharpsl_pm.machinfo->bat_levels - 1; | 77 | int i = sharpsl_pm.machinfo->bat_levels - 1; |
78 | int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_status() : 0; | ||
85 | struct battery_thresh *thresh; | 79 | struct battery_thresh *thresh; |
86 | 80 | ||
87 | if (sharpsl_pm.charge_mode == CHRG_ON) | 81 | if (sharpsl_pm.charge_mode == CHRG_ON) |
88 | thresh=sharpsl_pm.machinfo->bat_levels_acin; | 82 | thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_acin; |
89 | else | 83 | else |
90 | thresh=sharpsl_pm.machinfo->bat_levels_noac; | 84 | thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noac; |
91 | 85 | ||
92 | while (i > 0 && (voltage > thresh[i].voltage)) | 86 | while (i > 0 && (voltage > thresh[i].voltage)) |
93 | i--; | 87 | i--; |
@@ -131,7 +125,7 @@ static void sharpsl_battery_thread(void *private_) | |||
131 | sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE); | 125 | sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE); |
132 | 126 | ||
133 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ | 127 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ |
134 | if (machine_is_corgi() && (sharpsl_pm.charge_mode == CHRG_ON) | 128 | if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON) |
135 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) | 129 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) |
136 | schedule_work(&toggle_charger); | 130 | schedule_work(&toggle_charger); |
137 | 131 | ||
@@ -166,11 +160,11 @@ static void sharpsl_battery_thread(void *private_) | |||
166 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || | 160 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || |
167 | (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) { | 161 | (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) { |
168 | if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) { | 162 | if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) { |
169 | corgibl_limit_intensity(1); | 163 | sharpsl_pm.machinfo->backlight_limit(1); |
170 | sharpsl_pm.flags |= SHARPSL_BL_LIMIT; | 164 | sharpsl_pm.flags |= SHARPSL_BL_LIMIT; |
171 | } | 165 | } |
172 | } else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) { | 166 | } else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) { |
173 | corgibl_limit_intensity(0); | 167 | sharpsl_pm.machinfo->backlight_limit(0); |
174 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; | 168 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; |
175 | } | 169 | } |
176 | 170 | ||
@@ -418,7 +412,7 @@ static int sharpsl_check_battery_temp(void) | |||
418 | val = get_select_val(buff); | 412 | val = get_select_val(buff); |
419 | 413 | ||
420 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); | 414 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); |
421 | if (val > SHARPSL_CHARGE_ON_TEMP) | 415 | if (val > sharpsl_pm.machinfo->charge_on_temp) |
422 | return -1; | 416 | return -1; |
423 | 417 | ||
424 | return 0; | 418 | return 0; |
@@ -450,7 +444,7 @@ static int sharpsl_check_battery_voltage(void) | |||
450 | val = get_select_val(buff); | 444 | val = get_select_val(buff); |
451 | dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val); | 445 | dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val); |
452 | 446 | ||
453 | if (val < SHARPSL_CHARGE_ON_VOLT) | 447 | if (val < sharpsl_pm.machinfo->charge_on_volt) |
454 | return -1; | 448 | return -1; |
455 | 449 | ||
456 | return 0; | 450 | return 0; |
@@ -468,7 +462,7 @@ static int sharpsl_ac_check(void) | |||
468 | temp = get_select_val(buff); | 462 | temp = get_select_val(buff); |
469 | dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp); | 463 | dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp); |
470 | 464 | ||
471 | if ((temp > SHARPSL_CHARGE_ON_ACIN_HIGH) || (temp < SHARPSL_CHARGE_ON_ACIN_LOW)) { | 465 | if ((temp > sharpsl_pm.machinfo->charge_acin_high) || (temp < sharpsl_pm.machinfo->charge_acin_low)) { |
472 | dev_err(sharpsl_pm.dev, "Error: AC check failed.\n"); | 466 | dev_err(sharpsl_pm.dev, "Error: AC check failed.\n"); |
473 | return -1; | 467 | return -1; |
474 | } | 468 | } |
@@ -627,8 +621,8 @@ static int sharpsl_fatal_check(void) | |||
627 | temp = get_select_val(buff); | 621 | temp = get_select_val(buff); |
628 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); | 622 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); |
629 | 623 | ||
630 | if ((acin && (temp < SHARPSL_FATAL_ACIN_VOLT)) || | 624 | if ((acin && (temp < sharpsl_pm.machinfo->fatal_acin_volt)) || |
631 | (!acin && (temp < SHARPSL_FATAL_NOACIN_VOLT))) | 625 | (!acin && (temp < sharpsl_pm.machinfo->fatal_noacin_volt))) |
632 | return -1; | 626 | return -1; |
633 | return 0; | 627 | return 0; |
634 | } | 628 | } |
diff --git a/arch/arm/configs/ateb9200_defconfig b/arch/arm/configs/ateb9200_defconfig new file mode 100644 index 000000000000..69c39e098743 --- /dev/null +++ b/arch/arm/configs/ateb9200_defconfig | |||
@@ -0,0 +1,1312 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc3 | ||
4 | # Sun May 7 16:53:18 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | # CONFIG_POSIX_MQUEUE is not set | ||
29 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
30 | CONFIG_SYSCTL=y | ||
31 | # CONFIG_AUDIT is not set | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | # CONFIG_RELAY is not set | ||
34 | CONFIG_INITRAMFS_SOURCE="" | ||
35 | CONFIG_UID16=y | ||
36 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
37 | CONFIG_EMBEDDED=y | ||
38 | CONFIG_KALLSYMS=y | ||
39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
40 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | ||
42 | CONFIG_BUG=y | ||
43 | CONFIG_ELF_CORE=y | ||
44 | CONFIG_BASE_FULL=y | ||
45 | CONFIG_FUTEX=y | ||
46 | CONFIG_EPOLL=y | ||
47 | CONFIG_SHMEM=y | ||
48 | CONFIG_SLAB=y | ||
49 | # CONFIG_TINY_SHMEM is not set | ||
50 | CONFIG_BASE_SMALL=0 | ||
51 | # CONFIG_SLOB is not set | ||
52 | |||
53 | # | ||
54 | # Loadable module support | ||
55 | # | ||
56 | CONFIG_MODULES=y | ||
57 | CONFIG_MODULE_UNLOAD=y | ||
58 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
59 | # CONFIG_MODVERSIONS is not set | ||
60 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
61 | CONFIG_KMOD=y | ||
62 | |||
63 | # | ||
64 | # Block layer | ||
65 | # | ||
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
67 | |||
68 | # | ||
69 | # IO Schedulers | ||
70 | # | ||
71 | CONFIG_IOSCHED_NOOP=y | ||
72 | CONFIG_IOSCHED_AS=y | ||
73 | CONFIG_IOSCHED_DEADLINE=y | ||
74 | CONFIG_IOSCHED_CFQ=y | ||
75 | CONFIG_DEFAULT_AS=y | ||
76 | # CONFIG_DEFAULT_DEADLINE is not set | ||
77 | # CONFIG_DEFAULT_CFQ is not set | ||
78 | # CONFIG_DEFAULT_NOOP is not set | ||
79 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
80 | |||
81 | # | ||
82 | # System Type | ||
83 | # | ||
84 | # CONFIG_ARCH_CLPS7500 is not set | ||
85 | # CONFIG_ARCH_CLPS711X is not set | ||
86 | # CONFIG_ARCH_CO285 is not set | ||
87 | # CONFIG_ARCH_EBSA110 is not set | ||
88 | # CONFIG_ARCH_EP93XX is not set | ||
89 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
90 | # CONFIG_ARCH_INTEGRATOR is not set | ||
91 | # CONFIG_ARCH_IOP3XX is not set | ||
92 | # CONFIG_ARCH_IXP4XX is not set | ||
93 | # CONFIG_ARCH_IXP2000 is not set | ||
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | ||
96 | # CONFIG_ARCH_PXA is not set | ||
97 | # CONFIG_ARCH_RPC is not set | ||
98 | # CONFIG_ARCH_SA1100 is not set | ||
99 | # CONFIG_ARCH_S3C2410 is not set | ||
100 | # CONFIG_ARCH_SHARK is not set | ||
101 | # CONFIG_ARCH_LH7A40X is not set | ||
102 | # CONFIG_ARCH_OMAP is not set | ||
103 | # CONFIG_ARCH_VERSATILE is not set | ||
104 | # CONFIG_ARCH_REALVIEW is not set | ||
105 | # CONFIG_ARCH_IMX is not set | ||
106 | # CONFIG_ARCH_H720X is not set | ||
107 | # CONFIG_ARCH_AAEC2000 is not set | ||
108 | CONFIG_ARCH_AT91RM9200=y | ||
109 | |||
110 | # | ||
111 | # AT91RM9200 Implementations | ||
112 | # | ||
113 | |||
114 | # | ||
115 | # AT91RM9200 Board Type | ||
116 | # | ||
117 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
118 | # CONFIG_MACH_AT91RM9200EK is not set | ||
119 | # CONFIG_MACH_CSB337 is not set | ||
120 | # CONFIG_MACH_CSB637 is not set | ||
121 | # CONFIG_MACH_CARMEVA is not set | ||
122 | # CONFIG_MACH_KB9200 is not set | ||
123 | CONFIG_MACH_ATEB9200=y | ||
124 | # CONFIG_MACH_KAFA is not set | ||
125 | |||
126 | # | ||
127 | # AT91 Feature Selections | ||
128 | # | ||
129 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
130 | |||
131 | # | ||
132 | # Processor Type | ||
133 | # | ||
134 | CONFIG_CPU_32=y | ||
135 | CONFIG_CPU_ARM920T=y | ||
136 | CONFIG_CPU_32v4=y | ||
137 | CONFIG_CPU_ABRT_EV4T=y | ||
138 | CONFIG_CPU_CACHE_V4WT=y | ||
139 | CONFIG_CPU_CACHE_VIVT=y | ||
140 | CONFIG_CPU_COPY_V4WB=y | ||
141 | CONFIG_CPU_TLB_V4WBI=y | ||
142 | |||
143 | # | ||
144 | # Processor Features | ||
145 | # | ||
146 | CONFIG_ARM_THUMB=y | ||
147 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
148 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
149 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
150 | |||
151 | # | ||
152 | # Bus support | ||
153 | # | ||
154 | |||
155 | # | ||
156 | # PCCARD (PCMCIA/CardBus) support | ||
157 | # | ||
158 | CONFIG_PCCARD=m | ||
159 | # CONFIG_PCMCIA_DEBUG is not set | ||
160 | CONFIG_PCMCIA=m | ||
161 | CONFIG_PCMCIA_LOAD_CIS=y | ||
162 | CONFIG_PCMCIA_IOCTL=y | ||
163 | |||
164 | # | ||
165 | # PC-card bridges | ||
166 | # | ||
167 | CONFIG_AT91_CF=m | ||
168 | |||
169 | # | ||
170 | # Kernel Features | ||
171 | # | ||
172 | CONFIG_PREEMPT=y | ||
173 | CONFIG_NO_IDLE_HZ=y | ||
174 | CONFIG_HZ=100 | ||
175 | # CONFIG_AEABI is not set | ||
176 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
177 | CONFIG_SELECT_MEMORY_MODEL=y | ||
178 | CONFIG_FLATMEM_MANUAL=y | ||
179 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
180 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
181 | CONFIG_FLATMEM=y | ||
182 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
183 | # CONFIG_SPARSEMEM_STATIC is not set | ||
184 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
185 | # CONFIG_LEDS is not set | ||
186 | CONFIG_ALIGNMENT_TRAP=y | ||
187 | |||
188 | # | ||
189 | # Boot options | ||
190 | # | ||
191 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
192 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
193 | CONFIG_CMDLINE="" | ||
194 | # CONFIG_XIP_KERNEL is not set | ||
195 | |||
196 | # | ||
197 | # Floating point emulation | ||
198 | # | ||
199 | |||
200 | # | ||
201 | # At least one emulation must be selected | ||
202 | # | ||
203 | CONFIG_FPE_NWFPE=y | ||
204 | # CONFIG_FPE_NWFPE_XP is not set | ||
205 | # CONFIG_FPE_FASTFPE is not set | ||
206 | |||
207 | # | ||
208 | # Userspace binary formats | ||
209 | # | ||
210 | CONFIG_BINFMT_ELF=y | ||
211 | # CONFIG_BINFMT_AOUT is not set | ||
212 | # CONFIG_BINFMT_MISC is not set | ||
213 | # CONFIG_ARTHUR is not set | ||
214 | |||
215 | # | ||
216 | # Power management options | ||
217 | # | ||
218 | CONFIG_PM=y | ||
219 | CONFIG_PM_LEGACY=y | ||
220 | # CONFIG_PM_DEBUG is not set | ||
221 | # CONFIG_APM is not set | ||
222 | |||
223 | # | ||
224 | # Networking | ||
225 | # | ||
226 | CONFIG_NET=y | ||
227 | |||
228 | # | ||
229 | # Networking options | ||
230 | # | ||
231 | # CONFIG_NETDEBUG is not set | ||
232 | CONFIG_PACKET=y | ||
233 | # CONFIG_PACKET_MMAP is not set | ||
234 | CONFIG_UNIX=y | ||
235 | CONFIG_XFRM=y | ||
236 | # CONFIG_XFRM_USER is not set | ||
237 | CONFIG_NET_KEY=y | ||
238 | CONFIG_INET=y | ||
239 | # CONFIG_IP_MULTICAST is not set | ||
240 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
241 | CONFIG_IP_FIB_HASH=y | ||
242 | # CONFIG_IP_PNP is not set | ||
243 | # CONFIG_NET_IPIP is not set | ||
244 | # CONFIG_NET_IPGRE is not set | ||
245 | # CONFIG_ARPD is not set | ||
246 | # CONFIG_SYN_COOKIES is not set | ||
247 | # CONFIG_INET_AH is not set | ||
248 | # CONFIG_INET_ESP is not set | ||
249 | # CONFIG_INET_IPCOMP is not set | ||
250 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
251 | # CONFIG_INET_TUNNEL is not set | ||
252 | CONFIG_INET_DIAG=y | ||
253 | CONFIG_INET_TCP_DIAG=y | ||
254 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
255 | CONFIG_TCP_CONG_BIC=y | ||
256 | # CONFIG_IPV6 is not set | ||
257 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
258 | # CONFIG_INET6_TUNNEL is not set | ||
259 | # CONFIG_NETFILTER is not set | ||
260 | |||
261 | # | ||
262 | # DCCP Configuration (EXPERIMENTAL) | ||
263 | # | ||
264 | # CONFIG_IP_DCCP is not set | ||
265 | |||
266 | # | ||
267 | # SCTP Configuration (EXPERIMENTAL) | ||
268 | # | ||
269 | # CONFIG_IP_SCTP is not set | ||
270 | |||
271 | # | ||
272 | # TIPC Configuration (EXPERIMENTAL) | ||
273 | # | ||
274 | # CONFIG_TIPC is not set | ||
275 | # CONFIG_ATM is not set | ||
276 | CONFIG_BRIDGE=m | ||
277 | CONFIG_VLAN_8021Q=m | ||
278 | # CONFIG_DECNET is not set | ||
279 | CONFIG_LLC=m | ||
280 | # CONFIG_LLC2 is not set | ||
281 | # CONFIG_IPX is not set | ||
282 | # CONFIG_ATALK is not set | ||
283 | # CONFIG_X25 is not set | ||
284 | # CONFIG_LAPB is not set | ||
285 | # CONFIG_NET_DIVERT is not set | ||
286 | # CONFIG_ECONET is not set | ||
287 | # CONFIG_WAN_ROUTER is not set | ||
288 | |||
289 | # | ||
290 | # QoS and/or fair queueing | ||
291 | # | ||
292 | # CONFIG_NET_SCHED is not set | ||
293 | |||
294 | # | ||
295 | # Network testing | ||
296 | # | ||
297 | # CONFIG_NET_PKTGEN is not set | ||
298 | # CONFIG_HAMRADIO is not set | ||
299 | # CONFIG_IRDA is not set | ||
300 | # CONFIG_BT is not set | ||
301 | CONFIG_IEEE80211=m | ||
302 | # CONFIG_IEEE80211_DEBUG is not set | ||
303 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
304 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
305 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
306 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
307 | CONFIG_WIRELESS_EXT=y | ||
308 | |||
309 | # | ||
310 | # Device Drivers | ||
311 | # | ||
312 | |||
313 | # | ||
314 | # Generic Driver Options | ||
315 | # | ||
316 | CONFIG_STANDALONE=y | ||
317 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
318 | CONFIG_FW_LOADER=y | ||
319 | |||
320 | # | ||
321 | # Connector - unified userspace <-> kernelspace linker | ||
322 | # | ||
323 | # CONFIG_CONNECTOR is not set | ||
324 | |||
325 | # | ||
326 | # Memory Technology Devices (MTD) | ||
327 | # | ||
328 | CONFIG_MTD=y | ||
329 | # CONFIG_MTD_DEBUG is not set | ||
330 | # CONFIG_MTD_CONCAT is not set | ||
331 | CONFIG_MTD_PARTITIONS=y | ||
332 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
333 | CONFIG_MTD_CMDLINE_PARTS=y | ||
334 | # CONFIG_MTD_AFS_PARTS is not set | ||
335 | |||
336 | # | ||
337 | # User Modules And Translation Layers | ||
338 | # | ||
339 | CONFIG_MTD_CHAR=y | ||
340 | # CONFIG_MTD_BLOCK is not set | ||
341 | CONFIG_MTD_BLOCK_RO=y | ||
342 | # CONFIG_FTL is not set | ||
343 | # CONFIG_NFTL is not set | ||
344 | # CONFIG_INFTL is not set | ||
345 | # CONFIG_RFD_FTL is not set | ||
346 | |||
347 | # | ||
348 | # RAM/ROM/Flash chip drivers | ||
349 | # | ||
350 | # CONFIG_MTD_CFI is not set | ||
351 | # CONFIG_MTD_JEDECPROBE is not set | ||
352 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
353 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
354 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
355 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
356 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
357 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
358 | CONFIG_MTD_CFI_I1=y | ||
359 | CONFIG_MTD_CFI_I2=y | ||
360 | # CONFIG_MTD_CFI_I4 is not set | ||
361 | # CONFIG_MTD_CFI_I8 is not set | ||
362 | # CONFIG_MTD_RAM is not set | ||
363 | # CONFIG_MTD_ROM is not set | ||
364 | # CONFIG_MTD_ABSENT is not set | ||
365 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
366 | |||
367 | # | ||
368 | # Mapping drivers for chip access | ||
369 | # | ||
370 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
371 | # CONFIG_MTD_PLATRAM is not set | ||
372 | |||
373 | # | ||
374 | # Self-contained MTD device drivers | ||
375 | # | ||
376 | # CONFIG_MTD_SLRAM is not set | ||
377 | # CONFIG_MTD_PHRAM is not set | ||
378 | # CONFIG_MTD_MTDRAM is not set | ||
379 | # CONFIG_MTD_BLOCK2MTD is not set | ||
380 | |||
381 | # | ||
382 | # Disk-On-Chip Device Drivers | ||
383 | # | ||
384 | # CONFIG_MTD_DOC2000 is not set | ||
385 | # CONFIG_MTD_DOC2001 is not set | ||
386 | # CONFIG_MTD_DOC2001PLUS is not set | ||
387 | CONFIG_MTD_AT91_DATAFLASH=y | ||
388 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
389 | |||
390 | # | ||
391 | # NAND Flash Device Drivers | ||
392 | # | ||
393 | # CONFIG_MTD_NAND is not set | ||
394 | |||
395 | # | ||
396 | # OneNAND Flash Device Drivers | ||
397 | # | ||
398 | # CONFIG_MTD_ONENAND is not set | ||
399 | |||
400 | # | ||
401 | # Parallel port support | ||
402 | # | ||
403 | # CONFIG_PARPORT is not set | ||
404 | |||
405 | # | ||
406 | # Plug and Play support | ||
407 | # | ||
408 | |||
409 | # | ||
410 | # Block devices | ||
411 | # | ||
412 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
413 | CONFIG_BLK_DEV_LOOP=m | ||
414 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
415 | CONFIG_BLK_DEV_NBD=m | ||
416 | # CONFIG_BLK_DEV_UB is not set | ||
417 | # CONFIG_BLK_DEV_RAM is not set | ||
418 | # CONFIG_BLK_DEV_INITRD is not set | ||
419 | # CONFIG_CDROM_PKTCDVD is not set | ||
420 | # CONFIG_ATA_OVER_ETH is not set | ||
421 | |||
422 | # | ||
423 | # ATA/ATAPI/MFM/RLL support | ||
424 | # | ||
425 | # CONFIG_IDE is not set | ||
426 | |||
427 | # | ||
428 | # SCSI device support | ||
429 | # | ||
430 | # CONFIG_RAID_ATTRS is not set | ||
431 | CONFIG_SCSI=m | ||
432 | CONFIG_SCSI_PROC_FS=y | ||
433 | |||
434 | # | ||
435 | # SCSI support type (disk, tape, CD-ROM) | ||
436 | # | ||
437 | CONFIG_BLK_DEV_SD=m | ||
438 | # CONFIG_CHR_DEV_ST is not set | ||
439 | # CONFIG_CHR_DEV_OSST is not set | ||
440 | CONFIG_BLK_DEV_SR=m | ||
441 | CONFIG_BLK_DEV_SR_VENDOR=y | ||
442 | CONFIG_CHR_DEV_SG=m | ||
443 | # CONFIG_CHR_DEV_SCH is not set | ||
444 | |||
445 | # | ||
446 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
447 | # | ||
448 | CONFIG_SCSI_MULTI_LUN=y | ||
449 | # CONFIG_SCSI_CONSTANTS is not set | ||
450 | # CONFIG_SCSI_LOGGING is not set | ||
451 | |||
452 | # | ||
453 | # SCSI Transport Attributes | ||
454 | # | ||
455 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
456 | # CONFIG_SCSI_FC_ATTRS is not set | ||
457 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
458 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
459 | |||
460 | # | ||
461 | # SCSI low-level drivers | ||
462 | # | ||
463 | # CONFIG_ISCSI_TCP is not set | ||
464 | # CONFIG_SCSI_SATA is not set | ||
465 | # CONFIG_SCSI_DEBUG is not set | ||
466 | |||
467 | # | ||
468 | # PCMCIA SCSI adapter support | ||
469 | # | ||
470 | # CONFIG_PCMCIA_AHA152X is not set | ||
471 | # CONFIG_PCMCIA_FDOMAIN is not set | ||
472 | # CONFIG_PCMCIA_NINJA_SCSI is not set | ||
473 | # CONFIG_PCMCIA_QLOGIC is not set | ||
474 | # CONFIG_PCMCIA_SYM53C500 is not set | ||
475 | |||
476 | # | ||
477 | # Multi-device support (RAID and LVM) | ||
478 | # | ||
479 | # CONFIG_MD is not set | ||
480 | |||
481 | # | ||
482 | # Fusion MPT device support | ||
483 | # | ||
484 | # CONFIG_FUSION is not set | ||
485 | |||
486 | # | ||
487 | # IEEE 1394 (FireWire) support | ||
488 | # | ||
489 | |||
490 | # | ||
491 | # I2O device support | ||
492 | # | ||
493 | |||
494 | # | ||
495 | # Network device support | ||
496 | # | ||
497 | CONFIG_NETDEVICES=y | ||
498 | CONFIG_DUMMY=m | ||
499 | # CONFIG_BONDING is not set | ||
500 | # CONFIG_EQUALIZER is not set | ||
501 | CONFIG_TUN=m | ||
502 | |||
503 | # | ||
504 | # PHY device support | ||
505 | # | ||
506 | CONFIG_PHYLIB=y | ||
507 | |||
508 | # | ||
509 | # MII PHY device drivers | ||
510 | # | ||
511 | # CONFIG_MARVELL_PHY is not set | ||
512 | CONFIG_DAVICOM_PHY=y | ||
513 | # CONFIG_QSEMI_PHY is not set | ||
514 | # CONFIG_LXT_PHY is not set | ||
515 | # CONFIG_CICADA_PHY is not set | ||
516 | |||
517 | # | ||
518 | # Ethernet (10 or 100Mbit) | ||
519 | # | ||
520 | CONFIG_NET_ETHERNET=y | ||
521 | CONFIG_MII=y | ||
522 | CONFIG_ARM_AT91_ETHER=y | ||
523 | # CONFIG_SMC91X is not set | ||
524 | # CONFIG_DM9000 is not set | ||
525 | |||
526 | # | ||
527 | # Ethernet (1000 Mbit) | ||
528 | # | ||
529 | |||
530 | # | ||
531 | # Ethernet (10000 Mbit) | ||
532 | # | ||
533 | |||
534 | # | ||
535 | # Token Ring devices | ||
536 | # | ||
537 | |||
538 | # | ||
539 | # Wireless LAN (non-hamradio) | ||
540 | # | ||
541 | CONFIG_NET_RADIO=y | ||
542 | # CONFIG_NET_WIRELESS_RTNETLINK is not set | ||
543 | |||
544 | # | ||
545 | # Obsolete Wireless cards support (pre-802.11) | ||
546 | # | ||
547 | # CONFIG_STRIP is not set | ||
548 | # CONFIG_PCMCIA_WAVELAN is not set | ||
549 | # CONFIG_PCMCIA_NETWAVE is not set | ||
550 | |||
551 | # | ||
552 | # Wireless 802.11 Frequency Hopping cards support | ||
553 | # | ||
554 | # CONFIG_PCMCIA_RAYCS is not set | ||
555 | |||
556 | # | ||
557 | # Wireless 802.11b ISA/PCI cards support | ||
558 | # | ||
559 | # CONFIG_HERMES is not set | ||
560 | # CONFIG_ATMEL is not set | ||
561 | |||
562 | # | ||
563 | # Wireless 802.11b Pcmcia/Cardbus cards support | ||
564 | # | ||
565 | # CONFIG_AIRO_CS is not set | ||
566 | # CONFIG_PCMCIA_WL3501 is not set | ||
567 | # CONFIG_HOSTAP is not set | ||
568 | CONFIG_NET_WIRELESS=y | ||
569 | |||
570 | # | ||
571 | # PCMCIA network device support | ||
572 | # | ||
573 | # CONFIG_NET_PCMCIA is not set | ||
574 | |||
575 | # | ||
576 | # Wan interfaces | ||
577 | # | ||
578 | # CONFIG_WAN is not set | ||
579 | CONFIG_PPP=m | ||
580 | # CONFIG_PPP_MULTILINK is not set | ||
581 | # CONFIG_PPP_FILTER is not set | ||
582 | CONFIG_PPP_ASYNC=m | ||
583 | CONFIG_PPP_SYNC_TTY=m | ||
584 | CONFIG_PPP_DEFLATE=m | ||
585 | CONFIG_PPP_BSDCOMP=m | ||
586 | # CONFIG_PPP_MPPE is not set | ||
587 | CONFIG_PPPOE=m | ||
588 | # CONFIG_SLIP is not set | ||
589 | # CONFIG_SHAPER is not set | ||
590 | # CONFIG_NETCONSOLE is not set | ||
591 | # CONFIG_NETPOLL is not set | ||
592 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
593 | |||
594 | # | ||
595 | # ISDN subsystem | ||
596 | # | ||
597 | # CONFIG_ISDN is not set | ||
598 | |||
599 | # | ||
600 | # Input device support | ||
601 | # | ||
602 | CONFIG_INPUT=y | ||
603 | |||
604 | # | ||
605 | # Userland interfaces | ||
606 | # | ||
607 | CONFIG_INPUT_MOUSEDEV=y | ||
608 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
609 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
610 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
611 | # CONFIG_INPUT_JOYDEV is not set | ||
612 | # CONFIG_INPUT_TSDEV is not set | ||
613 | # CONFIG_INPUT_EVDEV is not set | ||
614 | # CONFIG_INPUT_EVBUG is not set | ||
615 | |||
616 | # | ||
617 | # Input Device Drivers | ||
618 | # | ||
619 | CONFIG_INPUT_KEYBOARD=y | ||
620 | CONFIG_KEYBOARD_ATKBD=y | ||
621 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
622 | # CONFIG_KEYBOARD_LKKBD is not set | ||
623 | # CONFIG_KEYBOARD_XTKBD is not set | ||
624 | # CONFIG_KEYBOARD_NEWTON is not set | ||
625 | CONFIG_INPUT_MOUSE=y | ||
626 | CONFIG_MOUSE_PS2=y | ||
627 | # CONFIG_MOUSE_SERIAL is not set | ||
628 | # CONFIG_MOUSE_VSXXXAA is not set | ||
629 | # CONFIG_INPUT_JOYSTICK is not set | ||
630 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
631 | # CONFIG_INPUT_MISC is not set | ||
632 | |||
633 | # | ||
634 | # Hardware I/O ports | ||
635 | # | ||
636 | CONFIG_SERIO=y | ||
637 | CONFIG_SERIO_SERPORT=y | ||
638 | CONFIG_SERIO_LIBPS2=y | ||
639 | # CONFIG_SERIO_RAW is not set | ||
640 | # CONFIG_GAMEPORT is not set | ||
641 | |||
642 | # | ||
643 | # Character devices | ||
644 | # | ||
645 | CONFIG_VT=y | ||
646 | CONFIG_VT_CONSOLE=y | ||
647 | CONFIG_HW_CONSOLE=y | ||
648 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
649 | |||
650 | # | ||
651 | # Serial drivers | ||
652 | # | ||
653 | # CONFIG_SERIAL_8250 is not set | ||
654 | |||
655 | # | ||
656 | # Non-8250 serial port support | ||
657 | # | ||
658 | CONFIG_SERIAL_AT91=y | ||
659 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
660 | # CONFIG_SERIAL_AT91_TTYAT is not set | ||
661 | CONFIG_SERIAL_CORE=y | ||
662 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
663 | CONFIG_UNIX98_PTYS=y | ||
664 | CONFIG_LEGACY_PTYS=y | ||
665 | CONFIG_LEGACY_PTY_COUNT=256 | ||
666 | |||
667 | # | ||
668 | # IPMI | ||
669 | # | ||
670 | # CONFIG_IPMI_HANDLER is not set | ||
671 | |||
672 | # | ||
673 | # Watchdog Cards | ||
674 | # | ||
675 | # CONFIG_WATCHDOG is not set | ||
676 | # CONFIG_NVRAM is not set | ||
677 | # CONFIG_DTLK is not set | ||
678 | # CONFIG_R3964 is not set | ||
679 | |||
680 | # | ||
681 | # Ftape, the floppy tape device driver | ||
682 | # | ||
683 | |||
684 | # | ||
685 | # PCMCIA character devices | ||
686 | # | ||
687 | # CONFIG_SYNCLINK_CS is not set | ||
688 | # CONFIG_CARDMAN_4000 is not set | ||
689 | # CONFIG_CARDMAN_4040 is not set | ||
690 | # CONFIG_RAW_DRIVER is not set | ||
691 | |||
692 | # | ||
693 | # TPM devices | ||
694 | # | ||
695 | # CONFIG_TCG_TPM is not set | ||
696 | # CONFIG_TELCLOCK is not set | ||
697 | CONFIG_AT91_SPI=y | ||
698 | CONFIG_AT91_SPIDEV=y | ||
699 | |||
700 | # | ||
701 | # I2C support | ||
702 | # | ||
703 | CONFIG_I2C=m | ||
704 | CONFIG_I2C_CHARDEV=m | ||
705 | |||
706 | # | ||
707 | # I2C Algorithms | ||
708 | # | ||
709 | CONFIG_I2C_ALGOBIT=m | ||
710 | CONFIG_I2C_ALGOPCF=m | ||
711 | CONFIG_I2C_ALGOPCA=m | ||
712 | |||
713 | # | ||
714 | # I2C Hardware Bus support | ||
715 | # | ||
716 | CONFIG_I2C_AT91=m | ||
717 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
718 | # CONFIG_I2C_STUB is not set | ||
719 | # CONFIG_I2C_PCA_ISA is not set | ||
720 | |||
721 | # | ||
722 | # Miscellaneous I2C Chip support | ||
723 | # | ||
724 | # CONFIG_SENSORS_DS1337 is not set | ||
725 | # CONFIG_SENSORS_DS1374 is not set | ||
726 | # CONFIG_SENSORS_EEPROM is not set | ||
727 | # CONFIG_SENSORS_PCF8574 is not set | ||
728 | # CONFIG_SENSORS_PCA9539 is not set | ||
729 | # CONFIG_SENSORS_PCF8591 is not set | ||
730 | # CONFIG_SENSORS_MAX6875 is not set | ||
731 | # CONFIG_I2C_DEBUG_CORE is not set | ||
732 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
733 | # CONFIG_I2C_DEBUG_BUS is not set | ||
734 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
735 | |||
736 | # | ||
737 | # SPI support | ||
738 | # | ||
739 | # CONFIG_SPI is not set | ||
740 | # CONFIG_SPI_MASTER is not set | ||
741 | |||
742 | # | ||
743 | # Dallas's 1-wire bus | ||
744 | # | ||
745 | # CONFIG_W1 is not set | ||
746 | |||
747 | # | ||
748 | # Hardware Monitoring support | ||
749 | # | ||
750 | CONFIG_HWMON=y | ||
751 | # CONFIG_HWMON_VID is not set | ||
752 | # CONFIG_SENSORS_ADM1021 is not set | ||
753 | # CONFIG_SENSORS_ADM1025 is not set | ||
754 | # CONFIG_SENSORS_ADM1026 is not set | ||
755 | # CONFIG_SENSORS_ADM1031 is not set | ||
756 | # CONFIG_SENSORS_ADM9240 is not set | ||
757 | # CONFIG_SENSORS_ASB100 is not set | ||
758 | # CONFIG_SENSORS_ATXP1 is not set | ||
759 | # CONFIG_SENSORS_DS1621 is not set | ||
760 | # CONFIG_SENSORS_F71805F is not set | ||
761 | # CONFIG_SENSORS_FSCHER is not set | ||
762 | # CONFIG_SENSORS_FSCPOS is not set | ||
763 | # CONFIG_SENSORS_GL518SM is not set | ||
764 | # CONFIG_SENSORS_GL520SM is not set | ||
765 | # CONFIG_SENSORS_IT87 is not set | ||
766 | # CONFIG_SENSORS_LM63 is not set | ||
767 | # CONFIG_SENSORS_LM75 is not set | ||
768 | # CONFIG_SENSORS_LM77 is not set | ||
769 | # CONFIG_SENSORS_LM78 is not set | ||
770 | # CONFIG_SENSORS_LM80 is not set | ||
771 | # CONFIG_SENSORS_LM83 is not set | ||
772 | # CONFIG_SENSORS_LM85 is not set | ||
773 | # CONFIG_SENSORS_LM87 is not set | ||
774 | # CONFIG_SENSORS_LM90 is not set | ||
775 | # CONFIG_SENSORS_LM92 is not set | ||
776 | # CONFIG_SENSORS_MAX1619 is not set | ||
777 | # CONFIG_SENSORS_PC87360 is not set | ||
778 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
779 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
780 | # CONFIG_SENSORS_W83781D is not set | ||
781 | # CONFIG_SENSORS_W83792D is not set | ||
782 | # CONFIG_SENSORS_W83L785TS is not set | ||
783 | # CONFIG_SENSORS_W83627HF is not set | ||
784 | # CONFIG_SENSORS_W83627EHF is not set | ||
785 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
786 | |||
787 | # | ||
788 | # Misc devices | ||
789 | # | ||
790 | |||
791 | # | ||
792 | # LED devices | ||
793 | # | ||
794 | # CONFIG_NEW_LEDS is not set | ||
795 | |||
796 | # | ||
797 | # LED drivers | ||
798 | # | ||
799 | |||
800 | # | ||
801 | # LED Triggers | ||
802 | # | ||
803 | |||
804 | # | ||
805 | # Multimedia devices | ||
806 | # | ||
807 | # CONFIG_VIDEO_DEV is not set | ||
808 | |||
809 | # | ||
810 | # Digital Video Broadcasting Devices | ||
811 | # | ||
812 | # CONFIG_DVB is not set | ||
813 | # CONFIG_USB_DABUSB is not set | ||
814 | |||
815 | # | ||
816 | # Graphics support | ||
817 | # | ||
818 | # CONFIG_FB is not set | ||
819 | |||
820 | # | ||
821 | # Console display driver support | ||
822 | # | ||
823 | # CONFIG_VGA_CONSOLE is not set | ||
824 | CONFIG_DUMMY_CONSOLE=y | ||
825 | |||
826 | # | ||
827 | # Sound | ||
828 | # | ||
829 | CONFIG_SOUND=y | ||
830 | |||
831 | # | ||
832 | # Advanced Linux Sound Architecture | ||
833 | # | ||
834 | # CONFIG_SND is not set | ||
835 | |||
836 | # | ||
837 | # Open Sound System | ||
838 | # | ||
839 | # CONFIG_SOUND_PRIME is not set | ||
840 | |||
841 | # | ||
842 | # USB support | ||
843 | # | ||
844 | CONFIG_USB_ARCH_HAS_HCD=y | ||
845 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
846 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
847 | CONFIG_USB=y | ||
848 | # CONFIG_USB_DEBUG is not set | ||
849 | |||
850 | # | ||
851 | # Miscellaneous USB options | ||
852 | # | ||
853 | CONFIG_USB_DEVICEFS=y | ||
854 | # CONFIG_USB_BANDWIDTH is not set | ||
855 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
856 | # CONFIG_USB_SUSPEND is not set | ||
857 | # CONFIG_USB_OTG is not set | ||
858 | |||
859 | # | ||
860 | # USB Host Controller Drivers | ||
861 | # | ||
862 | # CONFIG_USB_ISP116X_HCD is not set | ||
863 | CONFIG_USB_OHCI_HCD=y | ||
864 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
865 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
866 | # CONFIG_USB_SL811_HCD is not set | ||
867 | |||
868 | # | ||
869 | # USB Device Class drivers | ||
870 | # | ||
871 | CONFIG_USB_ACM=m | ||
872 | CONFIG_USB_PRINTER=m | ||
873 | |||
874 | # | ||
875 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
876 | # | ||
877 | |||
878 | # | ||
879 | # may also be needed; see USB_STORAGE Help for more information | ||
880 | # | ||
881 | CONFIG_USB_STORAGE=m | ||
882 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
883 | CONFIG_USB_STORAGE_DATAFAB=y | ||
884 | CONFIG_USB_STORAGE_FREECOM=y | ||
885 | CONFIG_USB_STORAGE_DPCM=y | ||
886 | CONFIG_USB_STORAGE_USBAT=y | ||
887 | CONFIG_USB_STORAGE_SDDR09=y | ||
888 | CONFIG_USB_STORAGE_SDDR55=y | ||
889 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
890 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
891 | # CONFIG_USB_LIBUSUAL is not set | ||
892 | |||
893 | # | ||
894 | # USB Input Devices | ||
895 | # | ||
896 | CONFIG_USB_HID=m | ||
897 | CONFIG_USB_HIDINPUT=y | ||
898 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
899 | CONFIG_HID_FF=y | ||
900 | CONFIG_HID_PID=y | ||
901 | CONFIG_LOGITECH_FF=y | ||
902 | CONFIG_THRUSTMASTER_FF=y | ||
903 | CONFIG_USB_HIDDEV=y | ||
904 | |||
905 | # | ||
906 | # USB HID Boot Protocol drivers | ||
907 | # | ||
908 | # CONFIG_USB_KBD is not set | ||
909 | # CONFIG_USB_MOUSE is not set | ||
910 | # CONFIG_USB_AIPTEK is not set | ||
911 | # CONFIG_USB_WACOM is not set | ||
912 | # CONFIG_USB_ACECAD is not set | ||
913 | # CONFIG_USB_KBTAB is not set | ||
914 | # CONFIG_USB_POWERMATE is not set | ||
915 | # CONFIG_USB_TOUCHSCREEN is not set | ||
916 | # CONFIG_USB_YEALINK is not set | ||
917 | # CONFIG_USB_XPAD is not set | ||
918 | # CONFIG_USB_ATI_REMOTE is not set | ||
919 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
920 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
921 | # CONFIG_USB_APPLETOUCH is not set | ||
922 | |||
923 | # | ||
924 | # USB Imaging devices | ||
925 | # | ||
926 | # CONFIG_USB_MDC800 is not set | ||
927 | # CONFIG_USB_MICROTEK is not set | ||
928 | |||
929 | # | ||
930 | # USB Network Adapters | ||
931 | # | ||
932 | # CONFIG_USB_CATC is not set | ||
933 | # CONFIG_USB_KAWETH is not set | ||
934 | # CONFIG_USB_PEGASUS is not set | ||
935 | # CONFIG_USB_RTL8150 is not set | ||
936 | CONFIG_USB_USBNET=y | ||
937 | CONFIG_USB_NET_AX8817X=y | ||
938 | CONFIG_USB_NET_CDCETHER=y | ||
939 | CONFIG_USB_NET_GL620A=y | ||
940 | CONFIG_USB_NET_NET1080=y | ||
941 | CONFIG_USB_NET_PLUSB=y | ||
942 | CONFIG_USB_NET_RNDIS_HOST=y | ||
943 | CONFIG_USB_NET_CDC_SUBSET=y | ||
944 | CONFIG_USB_ALI_M5632=y | ||
945 | CONFIG_USB_AN2720=y | ||
946 | CONFIG_USB_BELKIN=y | ||
947 | CONFIG_USB_ARMLINUX=y | ||
948 | CONFIG_USB_EPSON2888=y | ||
949 | CONFIG_USB_NET_ZAURUS=y | ||
950 | # CONFIG_USB_ZD1201 is not set | ||
951 | CONFIG_USB_MON=y | ||
952 | |||
953 | # | ||
954 | # USB port drivers | ||
955 | # | ||
956 | |||
957 | # | ||
958 | # USB Serial Converter support | ||
959 | # | ||
960 | CONFIG_USB_SERIAL=m | ||
961 | CONFIG_USB_SERIAL_GENERIC=y | ||
962 | # CONFIG_USB_SERIAL_AIRPRIME is not set | ||
963 | # CONFIG_USB_SERIAL_ANYDATA is not set | ||
964 | # CONFIG_USB_SERIAL_BELKIN is not set | ||
965 | # CONFIG_USB_SERIAL_WHITEHEAT is not set | ||
966 | # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set | ||
967 | CONFIG_USB_SERIAL_CP2101=m | ||
968 | # CONFIG_USB_SERIAL_CYPRESS_M8 is not set | ||
969 | # CONFIG_USB_SERIAL_EMPEG is not set | ||
970 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
971 | # CONFIG_USB_SERIAL_FUNSOFT is not set | ||
972 | # CONFIG_USB_SERIAL_VISOR is not set | ||
973 | # CONFIG_USB_SERIAL_IPAQ is not set | ||
974 | # CONFIG_USB_SERIAL_IR is not set | ||
975 | # CONFIG_USB_SERIAL_EDGEPORT is not set | ||
976 | # CONFIG_USB_SERIAL_EDGEPORT_TI is not set | ||
977 | # CONFIG_USB_SERIAL_GARMIN is not set | ||
978 | # CONFIG_USB_SERIAL_IPW is not set | ||
979 | # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set | ||
980 | # CONFIG_USB_SERIAL_KEYSPAN is not set | ||
981 | # CONFIG_USB_SERIAL_KLSI is not set | ||
982 | # CONFIG_USB_SERIAL_KOBIL_SCT is not set | ||
983 | # CONFIG_USB_SERIAL_MCT_U232 is not set | ||
984 | # CONFIG_USB_SERIAL_NAVMAN is not set | ||
985 | CONFIG_USB_SERIAL_PL2303=m | ||
986 | # CONFIG_USB_SERIAL_HP4X is not set | ||
987 | # CONFIG_USB_SERIAL_SAFE is not set | ||
988 | # CONFIG_USB_SERIAL_TI is not set | ||
989 | # CONFIG_USB_SERIAL_CYBERJACK is not set | ||
990 | # CONFIG_USB_SERIAL_XIRCOM is not set | ||
991 | # CONFIG_USB_SERIAL_OPTION is not set | ||
992 | # CONFIG_USB_SERIAL_OMNINET is not set | ||
993 | |||
994 | # | ||
995 | # USB Miscellaneous drivers | ||
996 | # | ||
997 | # CONFIG_USB_EMI62 is not set | ||
998 | # CONFIG_USB_EMI26 is not set | ||
999 | # CONFIG_USB_AUERSWALD is not set | ||
1000 | # CONFIG_USB_RIO500 is not set | ||
1001 | # CONFIG_USB_LEGOTOWER is not set | ||
1002 | # CONFIG_USB_LCD is not set | ||
1003 | # CONFIG_USB_LED is not set | ||
1004 | # CONFIG_USB_CYTHERM is not set | ||
1005 | # CONFIG_USB_PHIDGETKIT is not set | ||
1006 | # CONFIG_USB_PHIDGETSERVO is not set | ||
1007 | # CONFIG_USB_IDMOUSE is not set | ||
1008 | # CONFIG_USB_LD is not set | ||
1009 | # CONFIG_USB_TEST is not set | ||
1010 | |||
1011 | # | ||
1012 | # USB DSL modem support | ||
1013 | # | ||
1014 | |||
1015 | # | ||
1016 | # USB Gadget Support | ||
1017 | # | ||
1018 | CONFIG_USB_GADGET=m | ||
1019 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1020 | CONFIG_USB_GADGET_SELECTED=y | ||
1021 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1022 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1023 | # CONFIG_USB_GADGET_GOKU is not set | ||
1024 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1025 | # CONFIG_USB_GADGET_OMAP is not set | ||
1026 | CONFIG_USB_GADGET_AT91=y | ||
1027 | CONFIG_USB_AT91=m | ||
1028 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1029 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
1030 | # CONFIG_USB_ZERO is not set | ||
1031 | CONFIG_USB_ETH=m | ||
1032 | CONFIG_USB_ETH_RNDIS=y | ||
1033 | CONFIG_USB_GADGETFS=m | ||
1034 | CONFIG_USB_FILE_STORAGE=m | ||
1035 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1036 | CONFIG_USB_G_SERIAL=m | ||
1037 | |||
1038 | # | ||
1039 | # MMC/SD Card support | ||
1040 | # | ||
1041 | CONFIG_MMC=m | ||
1042 | CONFIG_MMC_DEBUG=y | ||
1043 | CONFIG_MMC_BLOCK=m | ||
1044 | CONFIG_MMC_AT91RM9200=m | ||
1045 | |||
1046 | # | ||
1047 | # Real Time Clock | ||
1048 | # | ||
1049 | CONFIG_RTC_LIB=y | ||
1050 | CONFIG_RTC_CLASS=y | ||
1051 | # CONFIG_RTC_HCTOSYS is not set | ||
1052 | |||
1053 | # | ||
1054 | # RTC interfaces | ||
1055 | # | ||
1056 | CONFIG_RTC_INTF_SYSFS=y | ||
1057 | CONFIG_RTC_INTF_PROC=y | ||
1058 | CONFIG_RTC_INTF_DEV=y | ||
1059 | |||
1060 | # | ||
1061 | # RTC drivers | ||
1062 | # | ||
1063 | # CONFIG_RTC_DRV_X1205 is not set | ||
1064 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1065 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1066 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1067 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1068 | CONFIG_RTC_DRV_AT91=y | ||
1069 | # CONFIG_RTC_DRV_TEST is not set | ||
1070 | |||
1071 | # | ||
1072 | # File systems | ||
1073 | # | ||
1074 | CONFIG_EXT2_FS=m | ||
1075 | # CONFIG_EXT2_FS_XATTR is not set | ||
1076 | # CONFIG_EXT2_FS_XIP is not set | ||
1077 | CONFIG_EXT3_FS=m | ||
1078 | CONFIG_EXT3_FS_XATTR=y | ||
1079 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1080 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1081 | CONFIG_JBD=m | ||
1082 | # CONFIG_JBD_DEBUG is not set | ||
1083 | CONFIG_FS_MBCACHE=m | ||
1084 | CONFIG_REISERFS_FS=m | ||
1085 | # CONFIG_REISERFS_CHECK is not set | ||
1086 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1087 | # CONFIG_REISERFS_FS_XATTR is not set | ||
1088 | # CONFIG_JFS_FS is not set | ||
1089 | CONFIG_FS_POSIX_ACL=y | ||
1090 | # CONFIG_XFS_FS is not set | ||
1091 | # CONFIG_OCFS2_FS is not set | ||
1092 | # CONFIG_MINIX_FS is not set | ||
1093 | # CONFIG_ROMFS_FS is not set | ||
1094 | CONFIG_INOTIFY=y | ||
1095 | # CONFIG_QUOTA is not set | ||
1096 | CONFIG_DNOTIFY=y | ||
1097 | # CONFIG_AUTOFS_FS is not set | ||
1098 | # CONFIG_AUTOFS4_FS is not set | ||
1099 | # CONFIG_FUSE_FS is not set | ||
1100 | |||
1101 | # | ||
1102 | # CD-ROM/DVD Filesystems | ||
1103 | # | ||
1104 | CONFIG_ISO9660_FS=m | ||
1105 | CONFIG_JOLIET=y | ||
1106 | CONFIG_ZISOFS=y | ||
1107 | CONFIG_ZISOFS_FS=m | ||
1108 | CONFIG_UDF_FS=m | ||
1109 | CONFIG_UDF_NLS=y | ||
1110 | |||
1111 | # | ||
1112 | # DOS/FAT/NT Filesystems | ||
1113 | # | ||
1114 | CONFIG_FAT_FS=m | ||
1115 | CONFIG_MSDOS_FS=m | ||
1116 | CONFIG_VFAT_FS=m | ||
1117 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1118 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1119 | CONFIG_NTFS_FS=m | ||
1120 | # CONFIG_NTFS_DEBUG is not set | ||
1121 | CONFIG_NTFS_RW=y | ||
1122 | |||
1123 | # | ||
1124 | # Pseudo filesystems | ||
1125 | # | ||
1126 | CONFIG_PROC_FS=y | ||
1127 | CONFIG_SYSFS=y | ||
1128 | CONFIG_TMPFS=y | ||
1129 | # CONFIG_HUGETLB_PAGE is not set | ||
1130 | CONFIG_RAMFS=y | ||
1131 | # CONFIG_CONFIGFS_FS is not set | ||
1132 | |||
1133 | # | ||
1134 | # Miscellaneous filesystems | ||
1135 | # | ||
1136 | # CONFIG_ADFS_FS is not set | ||
1137 | # CONFIG_AFFS_FS is not set | ||
1138 | # CONFIG_HFS_FS is not set | ||
1139 | # CONFIG_HFSPLUS_FS is not set | ||
1140 | # CONFIG_BEFS_FS is not set | ||
1141 | # CONFIG_BFS_FS is not set | ||
1142 | # CONFIG_EFS_FS is not set | ||
1143 | # CONFIG_JFFS_FS is not set | ||
1144 | # CONFIG_JFFS2_FS is not set | ||
1145 | CONFIG_CRAMFS=y | ||
1146 | # CONFIG_VXFS_FS is not set | ||
1147 | # CONFIG_HPFS_FS is not set | ||
1148 | # CONFIG_QNX4FS_FS is not set | ||
1149 | # CONFIG_SYSV_FS is not set | ||
1150 | # CONFIG_UFS_FS is not set | ||
1151 | |||
1152 | # | ||
1153 | # Network File Systems | ||
1154 | # | ||
1155 | CONFIG_NFS_FS=m | ||
1156 | CONFIG_NFS_V3=y | ||
1157 | CONFIG_NFS_V3_ACL=y | ||
1158 | CONFIG_NFS_V4=y | ||
1159 | CONFIG_NFS_DIRECTIO=y | ||
1160 | CONFIG_NFSD=m | ||
1161 | CONFIG_NFSD_V3=y | ||
1162 | # CONFIG_NFSD_V3_ACL is not set | ||
1163 | CONFIG_NFSD_V4=y | ||
1164 | CONFIG_NFSD_TCP=y | ||
1165 | CONFIG_LOCKD=m | ||
1166 | CONFIG_LOCKD_V4=y | ||
1167 | CONFIG_EXPORTFS=m | ||
1168 | CONFIG_NFS_ACL_SUPPORT=m | ||
1169 | CONFIG_NFS_COMMON=y | ||
1170 | CONFIG_SUNRPC=m | ||
1171 | CONFIG_SUNRPC_GSS=m | ||
1172 | CONFIG_RPCSEC_GSS_KRB5=m | ||
1173 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1174 | # CONFIG_SMB_FS is not set | ||
1175 | # CONFIG_CIFS is not set | ||
1176 | # CONFIG_NCP_FS is not set | ||
1177 | # CONFIG_CODA_FS is not set | ||
1178 | # CONFIG_AFS_FS is not set | ||
1179 | # CONFIG_9P_FS is not set | ||
1180 | |||
1181 | # | ||
1182 | # Partition Types | ||
1183 | # | ||
1184 | CONFIG_PARTITION_ADVANCED=y | ||
1185 | # CONFIG_ACORN_PARTITION is not set | ||
1186 | # CONFIG_OSF_PARTITION is not set | ||
1187 | # CONFIG_AMIGA_PARTITION is not set | ||
1188 | # CONFIG_ATARI_PARTITION is not set | ||
1189 | CONFIG_MAC_PARTITION=y | ||
1190 | CONFIG_MSDOS_PARTITION=y | ||
1191 | CONFIG_BSD_DISKLABEL=y | ||
1192 | CONFIG_MINIX_SUBPARTITION=y | ||
1193 | CONFIG_SOLARIS_X86_PARTITION=y | ||
1194 | CONFIG_UNIXWARE_DISKLABEL=y | ||
1195 | # CONFIG_LDM_PARTITION is not set | ||
1196 | # CONFIG_SGI_PARTITION is not set | ||
1197 | # CONFIG_ULTRIX_PARTITION is not set | ||
1198 | # CONFIG_SUN_PARTITION is not set | ||
1199 | # CONFIG_KARMA_PARTITION is not set | ||
1200 | # CONFIG_EFI_PARTITION is not set | ||
1201 | |||
1202 | # | ||
1203 | # Native Language Support | ||
1204 | # | ||
1205 | CONFIG_NLS=m | ||
1206 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1207 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1208 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1209 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1210 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1211 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1212 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1213 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1214 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1215 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1216 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1217 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1218 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1219 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1220 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1221 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1222 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1223 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1224 | CONFIG_NLS_CODEPAGE_932=m | ||
1225 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1226 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1227 | # CONFIG_NLS_ISO8859_8 is not set | ||
1228 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1229 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1230 | CONFIG_NLS_ASCII=m | ||
1231 | # CONFIG_NLS_ISO8859_1 is not set | ||
1232 | # CONFIG_NLS_ISO8859_2 is not set | ||
1233 | # CONFIG_NLS_ISO8859_3 is not set | ||
1234 | # CONFIG_NLS_ISO8859_4 is not set | ||
1235 | # CONFIG_NLS_ISO8859_5 is not set | ||
1236 | # CONFIG_NLS_ISO8859_6 is not set | ||
1237 | # CONFIG_NLS_ISO8859_7 is not set | ||
1238 | # CONFIG_NLS_ISO8859_9 is not set | ||
1239 | # CONFIG_NLS_ISO8859_13 is not set | ||
1240 | # CONFIG_NLS_ISO8859_14 is not set | ||
1241 | CONFIG_NLS_ISO8859_15=m | ||
1242 | # CONFIG_NLS_KOI8_R is not set | ||
1243 | # CONFIG_NLS_KOI8_U is not set | ||
1244 | CONFIG_NLS_UTF8=m | ||
1245 | |||
1246 | # | ||
1247 | # Profiling support | ||
1248 | # | ||
1249 | CONFIG_PROFILING=y | ||
1250 | CONFIG_OPROFILE=m | ||
1251 | |||
1252 | # | ||
1253 | # Kernel hacking | ||
1254 | # | ||
1255 | # CONFIG_PRINTK_TIME is not set | ||
1256 | # CONFIG_MAGIC_SYSRQ is not set | ||
1257 | # CONFIG_DEBUG_KERNEL is not set | ||
1258 | CONFIG_LOG_BUF_SHIFT=14 | ||
1259 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1260 | # CONFIG_DEBUG_FS is not set | ||
1261 | CONFIG_FRAME_POINTER=y | ||
1262 | # CONFIG_UNWIND_INFO is not set | ||
1263 | # CONFIG_DEBUG_USER is not set | ||
1264 | |||
1265 | # | ||
1266 | # Security options | ||
1267 | # | ||
1268 | # CONFIG_KEYS is not set | ||
1269 | # CONFIG_SECURITY is not set | ||
1270 | |||
1271 | # | ||
1272 | # Cryptographic options | ||
1273 | # | ||
1274 | CONFIG_CRYPTO=y | ||
1275 | # CONFIG_CRYPTO_HMAC is not set | ||
1276 | # CONFIG_CRYPTO_NULL is not set | ||
1277 | # CONFIG_CRYPTO_MD4 is not set | ||
1278 | CONFIG_CRYPTO_MD5=y | ||
1279 | # CONFIG_CRYPTO_SHA1 is not set | ||
1280 | # CONFIG_CRYPTO_SHA256 is not set | ||
1281 | # CONFIG_CRYPTO_SHA512 is not set | ||
1282 | # CONFIG_CRYPTO_WP512 is not set | ||
1283 | # CONFIG_CRYPTO_TGR192 is not set | ||
1284 | CONFIG_CRYPTO_DES=m | ||
1285 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1286 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1287 | # CONFIG_CRYPTO_SERPENT is not set | ||
1288 | CONFIG_CRYPTO_AES=m | ||
1289 | # CONFIG_CRYPTO_CAST5 is not set | ||
1290 | # CONFIG_CRYPTO_CAST6 is not set | ||
1291 | # CONFIG_CRYPTO_TEA is not set | ||
1292 | CONFIG_CRYPTO_ARC4=m | ||
1293 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1294 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1295 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1296 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
1297 | # CONFIG_CRYPTO_CRC32C is not set | ||
1298 | # CONFIG_CRYPTO_TEST is not set | ||
1299 | |||
1300 | # | ||
1301 | # Hardware crypto devices | ||
1302 | # | ||
1303 | |||
1304 | # | ||
1305 | # Library routines | ||
1306 | # | ||
1307 | CONFIG_CRC_CCITT=m | ||
1308 | CONFIG_CRC16=m | ||
1309 | CONFIG_CRC32=y | ||
1310 | CONFIG_LIBCRC32C=m | ||
1311 | CONFIG_ZLIB_INFLATE=y | ||
1312 | CONFIG_ZLIB_DEFLATE=m | ||
diff --git a/arch/arm/configs/carmeva_defconfig b/arch/arm/configs/carmeva_defconfig new file mode 100644 index 000000000000..5ccd29a7c1fb --- /dev/null +++ b/arch/arm/configs/carmeva_defconfig | |||
@@ -0,0 +1,723 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.12-rc4 | ||
4 | # Tue Jun 14 12:05:24 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_SWAP=y | ||
26 | # CONFIG_SYSVIPC is not set | ||
27 | # CONFIG_POSIX_MQUEUE is not set | ||
28 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
29 | # CONFIG_SYSCTL is not set | ||
30 | # CONFIG_AUDIT is not set | ||
31 | # CONFIG_HOTPLUG is not set | ||
32 | CONFIG_KOBJECT_UEVENT=y | ||
33 | # CONFIG_IKCONFIG is not set | ||
34 | CONFIG_EMBEDDED=y | ||
35 | CONFIG_KALLSYMS=y | ||
36 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
37 | CONFIG_PRINTK=y | ||
38 | CONFIG_BUG=y | ||
39 | CONFIG_BASE_FULL=y | ||
40 | CONFIG_FUTEX=y | ||
41 | CONFIG_EPOLL=y | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SHMEM=y | ||
44 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
45 | CONFIG_CC_ALIGN_LABELS=0 | ||
46 | CONFIG_CC_ALIGN_LOOPS=0 | ||
47 | CONFIG_CC_ALIGN_JUMPS=0 | ||
48 | # CONFIG_TINY_SHMEM is not set | ||
49 | CONFIG_BASE_SMALL=0 | ||
50 | |||
51 | # | ||
52 | # Loadable module support | ||
53 | # | ||
54 | CONFIG_MODULES=y | ||
55 | CONFIG_MODULE_UNLOAD=y | ||
56 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
57 | CONFIG_OBSOLETE_MODPARM=y | ||
58 | # CONFIG_MODVERSIONS is not set | ||
59 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
60 | # CONFIG_KMOD is not set | ||
61 | |||
62 | # | ||
63 | # System Type | ||
64 | # | ||
65 | # CONFIG_ARCH_CLPS7500 is not set | ||
66 | # CONFIG_ARCH_CLPS711X is not set | ||
67 | # CONFIG_ARCH_CO285 is not set | ||
68 | # CONFIG_ARCH_EBSA110 is not set | ||
69 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
70 | # CONFIG_ARCH_INTEGRATOR is not set | ||
71 | # CONFIG_ARCH_IOP3XX is not set | ||
72 | # CONFIG_ARCH_IXP4XX is not set | ||
73 | # CONFIG_ARCH_IXP2000 is not set | ||
74 | # CONFIG_ARCH_L7200 is not set | ||
75 | # CONFIG_ARCH_PXA is not set | ||
76 | # CONFIG_ARCH_RPC is not set | ||
77 | # CONFIG_ARCH_SA1100 is not set | ||
78 | # CONFIG_ARCH_S3C2410 is not set | ||
79 | # CONFIG_ARCH_SHARK is not set | ||
80 | # CONFIG_ARCH_LH7A40X is not set | ||
81 | # CONFIG_ARCH_OMAP is not set | ||
82 | # CONFIG_ARCH_VERSATILE is not set | ||
83 | # CONFIG_ARCH_IMX is not set | ||
84 | # CONFIG_ARCH_H720X is not set | ||
85 | CONFIG_ARCH_AT91RM9200=y | ||
86 | |||
87 | # | ||
88 | # AT91RM9200 Implementations | ||
89 | # | ||
90 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
91 | # CONFIG_MACH_AT91RM9200EK is not set | ||
92 | # CONFIG_MACH_CSB337 is not set | ||
93 | # CONFIG_MACH_CSB637 is not set | ||
94 | CONFIG_MACH_CARMEVA=y | ||
95 | |||
96 | # | ||
97 | # Processor Type | ||
98 | # | ||
99 | CONFIG_CPU_32=y | ||
100 | CONFIG_CPU_ARM920T=y | ||
101 | CONFIG_CPU_32v4=y | ||
102 | CONFIG_CPU_ABRT_EV4T=y | ||
103 | CONFIG_CPU_CACHE_V4WT=y | ||
104 | CONFIG_CPU_CACHE_VIVT=y | ||
105 | CONFIG_CPU_COPY_V4WB=y | ||
106 | CONFIG_CPU_TLB_V4WBI=y | ||
107 | |||
108 | # | ||
109 | # Processor Features | ||
110 | # | ||
111 | CONFIG_ARM_THUMB=y | ||
112 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
113 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
114 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
115 | |||
116 | # | ||
117 | # Bus support | ||
118 | # | ||
119 | CONFIG_ISA_DMA_API=y | ||
120 | |||
121 | # | ||
122 | # PCCARD (PCMCIA/CardBus) support | ||
123 | # | ||
124 | # CONFIG_PCCARD is not set | ||
125 | |||
126 | # | ||
127 | # Kernel Features | ||
128 | # | ||
129 | # CONFIG_SMP is not set | ||
130 | # CONFIG_PREEMPT is not set | ||
131 | # CONFIG_DISCONTIGMEM is not set | ||
132 | # CONFIG_LEDS is not set | ||
133 | CONFIG_ALIGNMENT_TRAP=y | ||
134 | |||
135 | # | ||
136 | # Boot options | ||
137 | # | ||
138 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
139 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
140 | CONFIG_CMDLINE="" | ||
141 | # CONFIG_XIP_KERNEL is not set | ||
142 | |||
143 | # | ||
144 | # Floating point emulation | ||
145 | # | ||
146 | |||
147 | # | ||
148 | # At least one emulation must be selected | ||
149 | # | ||
150 | CONFIG_FPE_NWFPE=y | ||
151 | # CONFIG_FPE_NWFPE_XP is not set | ||
152 | # CONFIG_FPE_FASTFPE is not set | ||
153 | |||
154 | # | ||
155 | # Userspace binary formats | ||
156 | # | ||
157 | CONFIG_BINFMT_ELF=y | ||
158 | # CONFIG_BINFMT_AOUT is not set | ||
159 | # CONFIG_BINFMT_MISC is not set | ||
160 | # CONFIG_ARTHUR is not set | ||
161 | |||
162 | # | ||
163 | # Power management options | ||
164 | # | ||
165 | # CONFIG_PM is not set | ||
166 | |||
167 | # | ||
168 | # Device Drivers | ||
169 | # | ||
170 | |||
171 | # | ||
172 | # Generic Driver Options | ||
173 | # | ||
174 | CONFIG_STANDALONE=y | ||
175 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
176 | # CONFIG_FW_LOADER is not set | ||
177 | |||
178 | # | ||
179 | # Memory Technology Devices (MTD) | ||
180 | # | ||
181 | CONFIG_MTD=y | ||
182 | # CONFIG_MTD_DEBUG is not set | ||
183 | # CONFIG_MTD_CONCAT is not set | ||
184 | CONFIG_MTD_PARTITIONS=y | ||
185 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
186 | CONFIG_MTD_CMDLINE_PARTS=y | ||
187 | # CONFIG_MTD_AFS_PARTS is not set | ||
188 | |||
189 | # | ||
190 | # User Modules And Translation Layers | ||
191 | # | ||
192 | CONFIG_MTD_CHAR=y | ||
193 | CONFIG_MTD_BLOCK=y | ||
194 | # CONFIG_FTL is not set | ||
195 | # CONFIG_NFTL is not set | ||
196 | # CONFIG_INFTL is not set | ||
197 | |||
198 | # | ||
199 | # RAM/ROM/Flash chip drivers | ||
200 | # | ||
201 | # CONFIG_MTD_CFI is not set | ||
202 | # CONFIG_MTD_JEDECPROBE is not set | ||
203 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
204 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
205 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
206 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
207 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
208 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
209 | CONFIG_MTD_CFI_I1=y | ||
210 | CONFIG_MTD_CFI_I2=y | ||
211 | # CONFIG_MTD_CFI_I4 is not set | ||
212 | # CONFIG_MTD_CFI_I8 is not set | ||
213 | # CONFIG_MTD_RAM is not set | ||
214 | # CONFIG_MTD_ROM is not set | ||
215 | # CONFIG_MTD_ABSENT is not set | ||
216 | |||
217 | # | ||
218 | # Mapping drivers for chip access | ||
219 | # | ||
220 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
221 | |||
222 | # | ||
223 | # Self-contained MTD device drivers | ||
224 | # | ||
225 | # CONFIG_MTD_SLRAM is not set | ||
226 | # CONFIG_MTD_PHRAM is not set | ||
227 | # CONFIG_MTD_MTDRAM is not set | ||
228 | # CONFIG_MTD_BLKMTD is not set | ||
229 | # CONFIG_MTD_BLOCK2MTD is not set | ||
230 | |||
231 | # | ||
232 | # Disk-On-Chip Device Drivers | ||
233 | # | ||
234 | # CONFIG_MTD_DOC2000 is not set | ||
235 | # CONFIG_MTD_DOC2001 is not set | ||
236 | # CONFIG_MTD_DOC2001PLUS is not set | ||
237 | CONFIG_MTD_AT91_DATAFLASH=y | ||
238 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
239 | |||
240 | # | ||
241 | # NAND Flash Device Drivers | ||
242 | # | ||
243 | # CONFIG_MTD_NAND is not set | ||
244 | |||
245 | # | ||
246 | # Parallel port support | ||
247 | # | ||
248 | # CONFIG_PARPORT is not set | ||
249 | |||
250 | # | ||
251 | # Plug and Play support | ||
252 | # | ||
253 | |||
254 | # | ||
255 | # Block devices | ||
256 | # | ||
257 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
258 | # CONFIG_BLK_DEV_LOOP is not set | ||
259 | # CONFIG_BLK_DEV_NBD is not set | ||
260 | CONFIG_BLK_DEV_RAM=y | ||
261 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
262 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
263 | CONFIG_BLK_DEV_INITRD=y | ||
264 | CONFIG_INITRAMFS_SOURCE="" | ||
265 | # CONFIG_CDROM_PKTCDVD is not set | ||
266 | |||
267 | # | ||
268 | # IO Schedulers | ||
269 | # | ||
270 | CONFIG_IOSCHED_NOOP=y | ||
271 | CONFIG_IOSCHED_AS=y | ||
272 | CONFIG_IOSCHED_DEADLINE=y | ||
273 | CONFIG_IOSCHED_CFQ=y | ||
274 | # CONFIG_ATA_OVER_ETH is not set | ||
275 | |||
276 | # | ||
277 | # SCSI device support | ||
278 | # | ||
279 | # CONFIG_SCSI is not set | ||
280 | |||
281 | # | ||
282 | # Multi-device support (RAID and LVM) | ||
283 | # | ||
284 | # CONFIG_MD is not set | ||
285 | |||
286 | # | ||
287 | # Fusion MPT device support | ||
288 | # | ||
289 | |||
290 | # | ||
291 | # IEEE 1394 (FireWire) support | ||
292 | # | ||
293 | |||
294 | # | ||
295 | # I2O device support | ||
296 | # | ||
297 | |||
298 | # | ||
299 | # Networking support | ||
300 | # | ||
301 | CONFIG_NET=y | ||
302 | |||
303 | # | ||
304 | # Networking options | ||
305 | # | ||
306 | # CONFIG_PACKET is not set | ||
307 | CONFIG_UNIX=y | ||
308 | # CONFIG_NET_KEY is not set | ||
309 | CONFIG_INET=y | ||
310 | CONFIG_IP_MULTICAST=y | ||
311 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
312 | CONFIG_IP_PNP=y | ||
313 | # CONFIG_IP_PNP_DHCP is not set | ||
314 | # CONFIG_IP_PNP_BOOTP is not set | ||
315 | # CONFIG_IP_PNP_RARP is not set | ||
316 | # CONFIG_NET_IPIP is not set | ||
317 | # CONFIG_NET_IPGRE is not set | ||
318 | # CONFIG_IP_MROUTE is not set | ||
319 | # CONFIG_ARPD is not set | ||
320 | # CONFIG_SYN_COOKIES is not set | ||
321 | # CONFIG_INET_AH is not set | ||
322 | # CONFIG_INET_ESP is not set | ||
323 | # CONFIG_INET_IPCOMP is not set | ||
324 | # CONFIG_INET_TUNNEL is not set | ||
325 | CONFIG_IP_TCPDIAG=y | ||
326 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
327 | # CONFIG_IPV6 is not set | ||
328 | # CONFIG_NETFILTER is not set | ||
329 | |||
330 | # | ||
331 | # SCTP Configuration (EXPERIMENTAL) | ||
332 | # | ||
333 | # CONFIG_IP_SCTP is not set | ||
334 | # CONFIG_ATM is not set | ||
335 | # CONFIG_BRIDGE is not set | ||
336 | # CONFIG_VLAN_8021Q is not set | ||
337 | # CONFIG_DECNET is not set | ||
338 | # CONFIG_LLC2 is not set | ||
339 | # CONFIG_IPX is not set | ||
340 | # CONFIG_ATALK is not set | ||
341 | # CONFIG_X25 is not set | ||
342 | # CONFIG_LAPB is not set | ||
343 | # CONFIG_NET_DIVERT is not set | ||
344 | # CONFIG_ECONET is not set | ||
345 | # CONFIG_WAN_ROUTER is not set | ||
346 | |||
347 | # | ||
348 | # QoS and/or fair queueing | ||
349 | # | ||
350 | # CONFIG_NET_SCHED is not set | ||
351 | # CONFIG_NET_CLS_ROUTE is not set | ||
352 | |||
353 | # | ||
354 | # Network testing | ||
355 | # | ||
356 | # CONFIG_NET_PKTGEN is not set | ||
357 | # CONFIG_NETPOLL is not set | ||
358 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
359 | # CONFIG_HAMRADIO is not set | ||
360 | # CONFIG_IRDA is not set | ||
361 | # CONFIG_BT is not set | ||
362 | CONFIG_NETDEVICES=y | ||
363 | # CONFIG_DUMMY is not set | ||
364 | # CONFIG_BONDING is not set | ||
365 | # CONFIG_EQUALIZER is not set | ||
366 | # CONFIG_TUN is not set | ||
367 | |||
368 | # | ||
369 | # Ethernet (10 or 100Mbit) | ||
370 | # | ||
371 | CONFIG_NET_ETHERNET=y | ||
372 | CONFIG_MII=y | ||
373 | CONFIG_ARM_AT91_ETHER=y | ||
374 | CONFIG_ARM_AT91_ETHER_RMII=y | ||
375 | # CONFIG_SMC91X is not set | ||
376 | |||
377 | # | ||
378 | # Ethernet (1000 Mbit) | ||
379 | # | ||
380 | |||
381 | # | ||
382 | # Ethernet (10000 Mbit) | ||
383 | # | ||
384 | |||
385 | # | ||
386 | # Token Ring devices | ||
387 | # | ||
388 | |||
389 | # | ||
390 | # Wireless LAN (non-hamradio) | ||
391 | # | ||
392 | # CONFIG_NET_RADIO is not set | ||
393 | |||
394 | # | ||
395 | # Wan interfaces | ||
396 | # | ||
397 | # CONFIG_WAN is not set | ||
398 | # CONFIG_PPP is not set | ||
399 | # CONFIG_SLIP is not set | ||
400 | # CONFIG_SHAPER is not set | ||
401 | # CONFIG_NETCONSOLE is not set | ||
402 | |||
403 | # | ||
404 | # ISDN subsystem | ||
405 | # | ||
406 | # CONFIG_ISDN is not set | ||
407 | |||
408 | # | ||
409 | # Input device support | ||
410 | # | ||
411 | CONFIG_INPUT=y | ||
412 | |||
413 | # | ||
414 | # Userland interfaces | ||
415 | # | ||
416 | # CONFIG_INPUT_MOUSEDEV is not set | ||
417 | # CONFIG_INPUT_JOYDEV is not set | ||
418 | # CONFIG_INPUT_TSDEV is not set | ||
419 | # CONFIG_INPUT_EVDEV is not set | ||
420 | # CONFIG_INPUT_EVBUG is not set | ||
421 | |||
422 | # | ||
423 | # Input Device Drivers | ||
424 | # | ||
425 | # CONFIG_INPUT_KEYBOARD is not set | ||
426 | # CONFIG_INPUT_MOUSE is not set | ||
427 | # CONFIG_INPUT_JOYSTICK is not set | ||
428 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
429 | # CONFIG_INPUT_MISC is not set | ||
430 | |||
431 | # | ||
432 | # Hardware I/O ports | ||
433 | # | ||
434 | CONFIG_SERIO=m | ||
435 | CONFIG_SERIO_SERPORT=m | ||
436 | # CONFIG_SERIO_LIBPS2 is not set | ||
437 | # CONFIG_SERIO_RAW is not set | ||
438 | # CONFIG_GAMEPORT is not set | ||
439 | CONFIG_SOUND_GAMEPORT=y | ||
440 | |||
441 | # | ||
442 | # Character devices | ||
443 | # | ||
444 | CONFIG_VT=y | ||
445 | CONFIG_VT_CONSOLE=y | ||
446 | CONFIG_HW_CONSOLE=y | ||
447 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
448 | |||
449 | # | ||
450 | # Serial drivers | ||
451 | # | ||
452 | # CONFIG_SERIAL_8250 is not set | ||
453 | |||
454 | # | ||
455 | # Non-8250 serial port support | ||
456 | # | ||
457 | CONFIG_SERIAL_AT91=y | ||
458 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
459 | CONFIG_SERIAL_CORE=y | ||
460 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
461 | CONFIG_UNIX98_PTYS=y | ||
462 | CONFIG_LEGACY_PTYS=y | ||
463 | CONFIG_LEGACY_PTY_COUNT=256 | ||
464 | |||
465 | # | ||
466 | # IPMI | ||
467 | # | ||
468 | # CONFIG_IPMI_HANDLER is not set | ||
469 | |||
470 | # | ||
471 | # Watchdog Cards | ||
472 | # | ||
473 | # CONFIG_WATCHDOG is not set | ||
474 | # CONFIG_NVRAM is not set | ||
475 | # CONFIG_RTC is not set | ||
476 | # CONFIG_AT91_RTC is not set | ||
477 | # CONFIG_DTLK is not set | ||
478 | # CONFIG_R3964 is not set | ||
479 | |||
480 | # | ||
481 | # Ftape, the floppy tape device driver | ||
482 | # | ||
483 | # CONFIG_DRM is not set | ||
484 | # CONFIG_RAW_DRIVER is not set | ||
485 | |||
486 | # | ||
487 | # TPM devices | ||
488 | # | ||
489 | CONFIG_AT91_SPI=y | ||
490 | CONFIG_AT91_SPIDEV=y | ||
491 | |||
492 | # | ||
493 | # I2C support | ||
494 | # | ||
495 | # CONFIG_I2C is not set | ||
496 | |||
497 | # | ||
498 | # Misc devices | ||
499 | # | ||
500 | |||
501 | # | ||
502 | # Multimedia devices | ||
503 | # | ||
504 | # CONFIG_VIDEO_DEV is not set | ||
505 | |||
506 | # | ||
507 | # Digital Video Broadcasting Devices | ||
508 | # | ||
509 | # CONFIG_DVB is not set | ||
510 | |||
511 | # | ||
512 | # Graphics support | ||
513 | # | ||
514 | # CONFIG_FB is not set | ||
515 | |||
516 | # | ||
517 | # Console display driver support | ||
518 | # | ||
519 | # CONFIG_VGA_CONSOLE is not set | ||
520 | CONFIG_DUMMY_CONSOLE=y | ||
521 | |||
522 | # | ||
523 | # Sound | ||
524 | # | ||
525 | # CONFIG_SOUND is not set | ||
526 | |||
527 | # | ||
528 | # USB support | ||
529 | # | ||
530 | CONFIG_USB_ARCH_HAS_HCD=y | ||
531 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
532 | # CONFIG_USB is not set | ||
533 | |||
534 | # | ||
535 | # USB Gadget Support | ||
536 | # | ||
537 | # CONFIG_USB_GADGET is not set | ||
538 | |||
539 | # | ||
540 | # MMC/SD Card support | ||
541 | # | ||
542 | CONFIG_MMC=m | ||
543 | CONFIG_MMC_DEBUG=y | ||
544 | CONFIG_MMC_BLOCK=m | ||
545 | CONFIG_MMC_AT91RM9200=m | ||
546 | |||
547 | # | ||
548 | # File systems | ||
549 | # | ||
550 | CONFIG_EXT2_FS=y | ||
551 | CONFIG_EXT2_FS_XATTR=y | ||
552 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
553 | # CONFIG_EXT2_FS_SECURITY is not set | ||
554 | # CONFIG_EXT3_FS is not set | ||
555 | # CONFIG_JBD is not set | ||
556 | CONFIG_FS_MBCACHE=y | ||
557 | # CONFIG_REISERFS_FS is not set | ||
558 | # CONFIG_JFS_FS is not set | ||
559 | |||
560 | # | ||
561 | # XFS support | ||
562 | # | ||
563 | # CONFIG_XFS_FS is not set | ||
564 | # CONFIG_MINIX_FS is not set | ||
565 | # CONFIG_ROMFS_FS is not set | ||
566 | # CONFIG_QUOTA is not set | ||
567 | # CONFIG_DNOTIFY is not set | ||
568 | # CONFIG_AUTOFS_FS is not set | ||
569 | # CONFIG_AUTOFS4_FS is not set | ||
570 | |||
571 | # | ||
572 | # CD-ROM/DVD Filesystems | ||
573 | # | ||
574 | # CONFIG_ISO9660_FS is not set | ||
575 | # CONFIG_UDF_FS is not set | ||
576 | |||
577 | # | ||
578 | # DOS/FAT/NT Filesystems | ||
579 | # | ||
580 | # CONFIG_MSDOS_FS is not set | ||
581 | # CONFIG_VFAT_FS is not set | ||
582 | # CONFIG_NTFS_FS is not set | ||
583 | |||
584 | # | ||
585 | # Pseudo filesystems | ||
586 | # | ||
587 | CONFIG_PROC_FS=y | ||
588 | CONFIG_SYSFS=y | ||
589 | # CONFIG_DEVFS_FS is not set | ||
590 | CONFIG_DEVPTS_FS_XATTR=y | ||
591 | CONFIG_DEVPTS_FS_SECURITY=y | ||
592 | # CONFIG_TMPFS is not set | ||
593 | # CONFIG_HUGETLB_PAGE is not set | ||
594 | CONFIG_RAMFS=y | ||
595 | |||
596 | # | ||
597 | # Miscellaneous filesystems | ||
598 | # | ||
599 | # CONFIG_ADFS_FS is not set | ||
600 | # CONFIG_AFFS_FS is not set | ||
601 | # CONFIG_HFS_FS is not set | ||
602 | # CONFIG_HFSPLUS_FS is not set | ||
603 | # CONFIG_BEFS_FS is not set | ||
604 | # CONFIG_BFS_FS is not set | ||
605 | # CONFIG_EFS_FS is not set | ||
606 | CONFIG_JFFS_FS=y | ||
607 | CONFIG_JFFS_FS_VERBOSE=0 | ||
608 | CONFIG_JFFS_PROC_FS=y | ||
609 | CONFIG_JFFS2_FS=y | ||
610 | CONFIG_JFFS2_FS_DEBUG=0 | ||
611 | CONFIG_JFFS2_FS_NAND=y | ||
612 | # CONFIG_JFFS2_FS_NOR_ECC is not set | ||
613 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
614 | CONFIG_JFFS2_ZLIB=y | ||
615 | CONFIG_JFFS2_RTIME=y | ||
616 | # CONFIG_JFFS2_RUBIN is not set | ||
617 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
618 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
619 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
620 | # CONFIG_CRAMFS is not set | ||
621 | # CONFIG_VXFS_FS is not set | ||
622 | # CONFIG_HPFS_FS is not set | ||
623 | # CONFIG_QNX4FS_FS is not set | ||
624 | # CONFIG_SYSV_FS is not set | ||
625 | # CONFIG_UFS_FS is not set | ||
626 | |||
627 | # | ||
628 | # Network File Systems | ||
629 | # | ||
630 | CONFIG_NFS_FS=y | ||
631 | CONFIG_NFS_V3=y | ||
632 | CONFIG_NFS_V4=y | ||
633 | # CONFIG_NFS_DIRECTIO is not set | ||
634 | CONFIG_NFSD=y | ||
635 | # CONFIG_NFSD_V3 is not set | ||
636 | CONFIG_NFSD_TCP=y | ||
637 | CONFIG_ROOT_NFS=y | ||
638 | CONFIG_LOCKD=y | ||
639 | CONFIG_LOCKD_V4=y | ||
640 | CONFIG_EXPORTFS=y | ||
641 | CONFIG_SUNRPC=y | ||
642 | CONFIG_SUNRPC_GSS=y | ||
643 | CONFIG_RPCSEC_GSS_KRB5=y | ||
644 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
645 | # CONFIG_SMB_FS is not set | ||
646 | # CONFIG_CIFS is not set | ||
647 | # CONFIG_NCP_FS is not set | ||
648 | # CONFIG_CODA_FS is not set | ||
649 | # CONFIG_AFS_FS is not set | ||
650 | |||
651 | # | ||
652 | # Partition Types | ||
653 | # | ||
654 | # CONFIG_PARTITION_ADVANCED is not set | ||
655 | CONFIG_MSDOS_PARTITION=y | ||
656 | |||
657 | # | ||
658 | # Native Language Support | ||
659 | # | ||
660 | # CONFIG_NLS is not set | ||
661 | |||
662 | # | ||
663 | # Profiling support | ||
664 | # | ||
665 | # CONFIG_PROFILING is not set | ||
666 | |||
667 | # | ||
668 | # Kernel hacking | ||
669 | # | ||
670 | # CONFIG_PRINTK_TIME is not set | ||
671 | # CONFIG_DEBUG_KERNEL is not set | ||
672 | CONFIG_LOG_BUF_SHIFT=14 | ||
673 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
674 | CONFIG_FRAME_POINTER=y | ||
675 | # CONFIG_DEBUG_USER is not set | ||
676 | |||
677 | # | ||
678 | # Security options | ||
679 | # | ||
680 | # CONFIG_KEYS is not set | ||
681 | # CONFIG_SECURITY is not set | ||
682 | |||
683 | # | ||
684 | # Cryptographic options | ||
685 | # | ||
686 | CONFIG_CRYPTO=y | ||
687 | # CONFIG_CRYPTO_HMAC is not set | ||
688 | # CONFIG_CRYPTO_NULL is not set | ||
689 | # CONFIG_CRYPTO_MD4 is not set | ||
690 | CONFIG_CRYPTO_MD5=y | ||
691 | # CONFIG_CRYPTO_SHA1 is not set | ||
692 | # CONFIG_CRYPTO_SHA256 is not set | ||
693 | # CONFIG_CRYPTO_SHA512 is not set | ||
694 | # CONFIG_CRYPTO_WP512 is not set | ||
695 | # CONFIG_CRYPTO_TGR192 is not set | ||
696 | CONFIG_CRYPTO_DES=y | ||
697 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
698 | # CONFIG_CRYPTO_TWOFISH is not set | ||
699 | # CONFIG_CRYPTO_SERPENT is not set | ||
700 | # CONFIG_CRYPTO_AES is not set | ||
701 | # CONFIG_CRYPTO_CAST5 is not set | ||
702 | # CONFIG_CRYPTO_CAST6 is not set | ||
703 | # CONFIG_CRYPTO_TEA is not set | ||
704 | # CONFIG_CRYPTO_ARC4 is not set | ||
705 | # CONFIG_CRYPTO_KHAZAD is not set | ||
706 | # CONFIG_CRYPTO_ANUBIS is not set | ||
707 | # CONFIG_CRYPTO_DEFLATE is not set | ||
708 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
709 | # CONFIG_CRYPTO_CRC32C is not set | ||
710 | # CONFIG_CRYPTO_TEST is not set | ||
711 | |||
712 | # | ||
713 | # Hardware crypto devices | ||
714 | # | ||
715 | |||
716 | # | ||
717 | # Library routines | ||
718 | # | ||
719 | # CONFIG_CRC_CCITT is not set | ||
720 | CONFIG_CRC32=y | ||
721 | # CONFIG_LIBCRC32C is not set | ||
722 | CONFIG_ZLIB_INFLATE=y | ||
723 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/collie_defconfig b/arch/arm/configs/collie_defconfig index c9aa878e610a..074c47a4fb2e 100644 --- a/arch/arm/configs/collie_defconfig +++ b/arch/arm/configs/collie_defconfig | |||
@@ -1,21 +1,21 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.14-rc3 | 3 | # Linux kernel version: 2.6.17-rc1 |
4 | # Sun Oct 9 16:55:14 2005 | 4 | # Fri Apr 14 19:09:52 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_ARCH_MTD_XIP=y | ||
12 | CONFIG_VECTORS_BASE=0xffff0000 | ||
11 | 13 | ||
12 | # | 14 | # |
13 | # Code maturity level options | 15 | # Code maturity level options |
14 | # | 16 | # |
15 | CONFIG_EXPERIMENTAL=y | 17 | CONFIG_EXPERIMENTAL=y |
16 | CONFIG_CLEAN_COMPILE=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | 18 | CONFIG_BROKEN_ON_SMP=y |
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 19 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
20 | 20 | ||
21 | # | 21 | # |
@@ -23,45 +23,58 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 | |||
23 | # | 23 | # |
24 | CONFIG_LOCALVERSION="" | 24 | CONFIG_LOCALVERSION="" |
25 | CONFIG_LOCALVERSION_AUTO=y | 25 | CONFIG_LOCALVERSION_AUTO=y |
26 | CONFIG_SWAP=y | 26 | # CONFIG_SWAP is not set |
27 | CONFIG_SYSVIPC=y | 27 | CONFIG_SYSVIPC=y |
28 | # CONFIG_POSIX_MQUEUE is not set | 28 | # CONFIG_POSIX_MQUEUE is not set |
29 | CONFIG_BSD_PROCESS_ACCT=y | 29 | # CONFIG_BSD_PROCESS_ACCT is not set |
30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
31 | CONFIG_SYSCTL=y | 30 | CONFIG_SYSCTL=y |
32 | # CONFIG_AUDIT is not set | 31 | # CONFIG_AUDIT is not set |
33 | CONFIG_HOTPLUG=y | ||
34 | CONFIG_KOBJECT_UEVENT=y | ||
35 | # CONFIG_IKCONFIG is not set | 32 | # CONFIG_IKCONFIG is not set |
33 | # CONFIG_RELAY is not set | ||
36 | CONFIG_INITRAMFS_SOURCE="" | 34 | CONFIG_INITRAMFS_SOURCE="" |
35 | CONFIG_UID16=y | ||
36 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
37 | CONFIG_EMBEDDED=y | 37 | CONFIG_EMBEDDED=y |
38 | CONFIG_KALLSYMS=y | 38 | CONFIG_KALLSYMS=y |
39 | # CONFIG_KALLSYMS_ALL is not set | 39 | # CONFIG_KALLSYMS_ALL is not set |
40 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 40 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
41 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | 42 | CONFIG_PRINTK=y |
42 | CONFIG_BUG=y | 43 | CONFIG_BUG=y |
43 | CONFIG_BASE_FULL=y | 44 | CONFIG_ELF_CORE=y |
45 | # CONFIG_BASE_FULL is not set | ||
44 | CONFIG_FUTEX=y | 46 | CONFIG_FUTEX=y |
45 | CONFIG_EPOLL=y | 47 | # CONFIG_EPOLL is not set |
46 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
47 | CONFIG_SHMEM=y | 48 | CONFIG_SHMEM=y |
48 | CONFIG_CC_ALIGN_FUNCTIONS=0 | 49 | # CONFIG_SLAB is not set |
49 | CONFIG_CC_ALIGN_LABELS=0 | 50 | CONFIG_DOUBLEFAULT=y |
50 | CONFIG_CC_ALIGN_LOOPS=0 | ||
51 | CONFIG_CC_ALIGN_JUMPS=0 | ||
52 | # CONFIG_TINY_SHMEM is not set | 51 | # CONFIG_TINY_SHMEM is not set |
53 | CONFIG_BASE_SMALL=0 | 52 | CONFIG_BASE_SMALL=1 |
53 | CONFIG_SLOB=y | ||
54 | CONFIG_OBSOLETE_INTERMODULE=y | ||
54 | 55 | ||
55 | # | 56 | # |
56 | # Loadable module support | 57 | # Loadable module support |
57 | # | 58 | # |
58 | CONFIG_MODULES=y | 59 | # CONFIG_MODULES is not set |
59 | CONFIG_MODULE_UNLOAD=y | 60 | |
60 | CONFIG_MODULE_FORCE_UNLOAD=y | 61 | # |
61 | CONFIG_OBSOLETE_MODPARM=y | 62 | # Block layer |
62 | CONFIG_MODVERSIONS=y | 63 | # |
63 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 64 | # CONFIG_BLK_DEV_IO_TRACE is not set |
64 | CONFIG_KMOD=y | 65 | |
66 | # | ||
67 | # IO Schedulers | ||
68 | # | ||
69 | CONFIG_IOSCHED_NOOP=y | ||
70 | CONFIG_IOSCHED_AS=y | ||
71 | # CONFIG_IOSCHED_DEADLINE is not set | ||
72 | # CONFIG_IOSCHED_CFQ is not set | ||
73 | CONFIG_DEFAULT_AS=y | ||
74 | # CONFIG_DEFAULT_DEADLINE is not set | ||
75 | # CONFIG_DEFAULT_CFQ is not set | ||
76 | # CONFIG_DEFAULT_NOOP is not set | ||
77 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
65 | 78 | ||
66 | # | 79 | # |
67 | # System Type | 80 | # System Type |
@@ -70,11 +83,13 @@ CONFIG_KMOD=y | |||
70 | # CONFIG_ARCH_CLPS711X is not set | 83 | # CONFIG_ARCH_CLPS711X is not set |
71 | # CONFIG_ARCH_CO285 is not set | 84 | # CONFIG_ARCH_CO285 is not set |
72 | # CONFIG_ARCH_EBSA110 is not set | 85 | # CONFIG_ARCH_EBSA110 is not set |
86 | # CONFIG_ARCH_EP93XX is not set | ||
73 | # CONFIG_ARCH_FOOTBRIDGE is not set | 87 | # CONFIG_ARCH_FOOTBRIDGE is not set |
74 | # CONFIG_ARCH_INTEGRATOR is not set | 88 | # CONFIG_ARCH_INTEGRATOR is not set |
75 | # CONFIG_ARCH_IOP3XX is not set | 89 | # CONFIG_ARCH_IOP3XX is not set |
76 | # CONFIG_ARCH_IXP4XX is not set | 90 | # CONFIG_ARCH_IXP4XX is not set |
77 | # CONFIG_ARCH_IXP2000 is not set | 91 | # CONFIG_ARCH_IXP2000 is not set |
92 | # CONFIG_ARCH_IXP23XX is not set | ||
78 | # CONFIG_ARCH_L7200 is not set | 93 | # CONFIG_ARCH_L7200 is not set |
79 | # CONFIG_ARCH_PXA is not set | 94 | # CONFIG_ARCH_PXA is not set |
80 | # CONFIG_ARCH_RPC is not set | 95 | # CONFIG_ARCH_RPC is not set |
@@ -84,9 +99,11 @@ CONFIG_ARCH_SA1100=y | |||
84 | # CONFIG_ARCH_LH7A40X is not set | 99 | # CONFIG_ARCH_LH7A40X is not set |
85 | # CONFIG_ARCH_OMAP is not set | 100 | # CONFIG_ARCH_OMAP is not set |
86 | # CONFIG_ARCH_VERSATILE is not set | 101 | # CONFIG_ARCH_VERSATILE is not set |
102 | # CONFIG_ARCH_REALVIEW is not set | ||
87 | # CONFIG_ARCH_IMX is not set | 103 | # CONFIG_ARCH_IMX is not set |
88 | # CONFIG_ARCH_H720X is not set | 104 | # CONFIG_ARCH_H720X is not set |
89 | # CONFIG_ARCH_AAEC2000 is not set | 105 | # CONFIG_ARCH_AAEC2000 is not set |
106 | # CONFIG_ARCH_AT91RM9200 is not set | ||
90 | 107 | ||
91 | # | 108 | # |
92 | # SA11x0 Implementations | 109 | # SA11x0 Implementations |
@@ -128,20 +145,32 @@ CONFIG_SHARP_SCOOP=y | |||
128 | # Bus support | 145 | # Bus support |
129 | # | 146 | # |
130 | CONFIG_ISA=y | 147 | CONFIG_ISA=y |
131 | CONFIG_ISA_DMA_API=y | ||
132 | 148 | ||
133 | # | 149 | # |
134 | # PCCARD (PCMCIA/CardBus) support | 150 | # PCCARD (PCMCIA/CardBus) support |
135 | # | 151 | # |
136 | # CONFIG_PCCARD is not set | 152 | CONFIG_PCCARD=y |
153 | CONFIG_PCMCIA_DEBUG=y | ||
154 | CONFIG_PCMCIA=y | ||
155 | CONFIG_PCMCIA_LOAD_CIS=y | ||
156 | CONFIG_PCMCIA_IOCTL=y | ||
157 | |||
158 | # | ||
159 | # PC-card bridges | ||
160 | # | ||
161 | # CONFIG_I82365 is not set | ||
162 | # CONFIG_TCIC is not set | ||
163 | CONFIG_PCMCIA_SA1100=y | ||
137 | 164 | ||
138 | # | 165 | # |
139 | # Kernel Features | 166 | # Kernel Features |
140 | # | 167 | # |
141 | # CONFIG_SMP is not set | 168 | # CONFIG_PREEMPT is not set |
142 | CONFIG_PREEMPT=y | ||
143 | # CONFIG_NO_IDLE_HZ is not set | 169 | # CONFIG_NO_IDLE_HZ is not set |
170 | CONFIG_HZ=100 | ||
171 | # CONFIG_AEABI is not set | ||
144 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y | 172 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y |
173 | CONFIG_NODES_SHIFT=2 | ||
145 | CONFIG_SELECT_MEMORY_MODEL=y | 174 | CONFIG_SELECT_MEMORY_MODEL=y |
146 | # CONFIG_FLATMEM_MANUAL is not set | 175 | # CONFIG_FLATMEM_MANUAL is not set |
147 | CONFIG_DISCONTIGMEM_MANUAL=y | 176 | CONFIG_DISCONTIGMEM_MANUAL=y |
@@ -150,6 +179,7 @@ CONFIG_DISCONTIGMEM=y | |||
150 | CONFIG_FLAT_NODE_MEM_MAP=y | 179 | CONFIG_FLAT_NODE_MEM_MAP=y |
151 | CONFIG_NEED_MULTIPLE_NODES=y | 180 | CONFIG_NEED_MULTIPLE_NODES=y |
152 | # CONFIG_SPARSEMEM_STATIC is not set | 181 | # CONFIG_SPARSEMEM_STATIC is not set |
182 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
153 | # CONFIG_LEDS is not set | 183 | # CONFIG_LEDS is not set |
154 | CONFIG_ALIGNMENT_TRAP=y | 184 | CONFIG_ALIGNMENT_TRAP=y |
155 | 185 | ||
@@ -158,7 +188,7 @@ CONFIG_ALIGNMENT_TRAP=y | |||
158 | # | 188 | # |
159 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 189 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
160 | CONFIG_ZBOOT_ROM_BSS=0x0 | 190 | CONFIG_ZBOOT_ROM_BSS=0x0 |
161 | CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/mtdblock2 rootfstype=jffs2 debug" | 191 | CONFIG_CMDLINE="noinitrd root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1" |
162 | # CONFIG_XIP_KERNEL is not set | 192 | # CONFIG_XIP_KERNEL is not set |
163 | 193 | ||
164 | # | 194 | # |
@@ -181,14 +211,16 @@ CONFIG_FPE_NWFPE=y | |||
181 | # Userspace binary formats | 211 | # Userspace binary formats |
182 | # | 212 | # |
183 | CONFIG_BINFMT_ELF=y | 213 | CONFIG_BINFMT_ELF=y |
184 | CONFIG_BINFMT_AOUT=m | 214 | # CONFIG_BINFMT_AOUT is not set |
185 | CONFIG_BINFMT_MISC=m | 215 | # CONFIG_BINFMT_MISC is not set |
186 | # CONFIG_ARTHUR is not set | 216 | # CONFIG_ARTHUR is not set |
187 | 217 | ||
188 | # | 218 | # |
189 | # Power management options | 219 | # Power management options |
190 | # | 220 | # |
191 | CONFIG_PM=y | 221 | CONFIG_PM=y |
222 | CONFIG_PM_LEGACY=y | ||
223 | # CONFIG_PM_DEBUG is not set | ||
192 | CONFIG_APM=y | 224 | CONFIG_APM=y |
193 | 225 | ||
194 | # | 226 | # |
@@ -199,6 +231,7 @@ CONFIG_NET=y | |||
199 | # | 231 | # |
200 | # Networking options | 232 | # Networking options |
201 | # | 233 | # |
234 | # CONFIG_NETDEBUG is not set | ||
202 | CONFIG_PACKET=y | 235 | CONFIG_PACKET=y |
203 | CONFIG_PACKET_MMAP=y | 236 | CONFIG_PACKET_MMAP=y |
204 | CONFIG_UNIX=y | 237 | CONFIG_UNIX=y |
@@ -211,16 +244,19 @@ CONFIG_IP_FIB_HASH=y | |||
211 | # CONFIG_NET_IPIP is not set | 244 | # CONFIG_NET_IPIP is not set |
212 | # CONFIG_NET_IPGRE is not set | 245 | # CONFIG_NET_IPGRE is not set |
213 | # CONFIG_ARPD is not set | 246 | # CONFIG_ARPD is not set |
214 | CONFIG_SYN_COOKIES=y | 247 | # CONFIG_SYN_COOKIES is not set |
215 | # CONFIG_INET_AH is not set | 248 | # CONFIG_INET_AH is not set |
216 | # CONFIG_INET_ESP is not set | 249 | # CONFIG_INET_ESP is not set |
217 | # CONFIG_INET_IPCOMP is not set | 250 | # CONFIG_INET_IPCOMP is not set |
251 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
218 | # CONFIG_INET_TUNNEL is not set | 252 | # CONFIG_INET_TUNNEL is not set |
219 | CONFIG_INET_DIAG=y | 253 | CONFIG_INET_DIAG=y |
220 | CONFIG_INET_TCP_DIAG=y | 254 | CONFIG_INET_TCP_DIAG=y |
221 | # CONFIG_TCP_CONG_ADVANCED is not set | 255 | # CONFIG_TCP_CONG_ADVANCED is not set |
222 | CONFIG_TCP_CONG_BIC=y | 256 | CONFIG_TCP_CONG_BIC=y |
223 | # CONFIG_IPV6 is not set | 257 | # CONFIG_IPV6 is not set |
258 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
259 | # CONFIG_INET6_TUNNEL is not set | ||
224 | # CONFIG_NETFILTER is not set | 260 | # CONFIG_NETFILTER is not set |
225 | 261 | ||
226 | # | 262 | # |
@@ -232,6 +268,11 @@ CONFIG_TCP_CONG_BIC=y | |||
232 | # SCTP Configuration (EXPERIMENTAL) | 268 | # SCTP Configuration (EXPERIMENTAL) |
233 | # | 269 | # |
234 | # CONFIG_IP_SCTP is not set | 270 | # CONFIG_IP_SCTP is not set |
271 | |||
272 | # | ||
273 | # TIPC Configuration (EXPERIMENTAL) | ||
274 | # | ||
275 | # CONFIG_TIPC is not set | ||
235 | # CONFIG_ATM is not set | 276 | # CONFIG_ATM is not set |
236 | # CONFIG_BRIDGE is not set | 277 | # CONFIG_BRIDGE is not set |
237 | # CONFIG_VLAN_8021Q is not set | 278 | # CONFIG_VLAN_8021Q is not set |
@@ -244,8 +285,11 @@ CONFIG_TCP_CONG_BIC=y | |||
244 | # CONFIG_NET_DIVERT is not set | 285 | # CONFIG_NET_DIVERT is not set |
245 | # CONFIG_ECONET is not set | 286 | # CONFIG_ECONET is not set |
246 | # CONFIG_WAN_ROUTER is not set | 287 | # CONFIG_WAN_ROUTER is not set |
288 | |||
289 | # | ||
290 | # QoS and/or fair queueing | ||
291 | # | ||
247 | # CONFIG_NET_SCHED is not set | 292 | # CONFIG_NET_SCHED is not set |
248 | # CONFIG_NET_CLS_ROUTE is not set | ||
249 | 293 | ||
250 | # | 294 | # |
251 | # Network testing | 295 | # Network testing |
@@ -265,10 +309,15 @@ CONFIG_TCP_CONG_BIC=y | |||
265 | # | 309 | # |
266 | CONFIG_STANDALONE=y | 310 | CONFIG_STANDALONE=y |
267 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 311 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
268 | CONFIG_FW_LOADER=m | 312 | CONFIG_FW_LOADER=y |
269 | # CONFIG_DEBUG_DRIVER is not set | 313 | # CONFIG_DEBUG_DRIVER is not set |
270 | 314 | ||
271 | # | 315 | # |
316 | # Connector - unified userspace <-> kernelspace linker | ||
317 | # | ||
318 | # CONFIG_CONNECTOR is not set | ||
319 | |||
320 | # | ||
272 | # Memory Technology Devices (MTD) | 321 | # Memory Technology Devices (MTD) |
273 | # | 322 | # |
274 | CONFIG_MTD=y | 323 | CONFIG_MTD=y |
@@ -287,32 +336,49 @@ CONFIG_MTD_BLOCK=y | |||
287 | # CONFIG_FTL is not set | 336 | # CONFIG_FTL is not set |
288 | # CONFIG_NFTL is not set | 337 | # CONFIG_NFTL is not set |
289 | # CONFIG_INFTL is not set | 338 | # CONFIG_INFTL is not set |
339 | # CONFIG_RFD_FTL is not set | ||
290 | 340 | ||
291 | # | 341 | # |
292 | # RAM/ROM/Flash chip drivers | 342 | # RAM/ROM/Flash chip drivers |
293 | # | 343 | # |
294 | # CONFIG_MTD_CFI is not set | 344 | CONFIG_MTD_CFI=y |
295 | # CONFIG_MTD_JEDECPROBE is not set | 345 | CONFIG_MTD_JEDECPROBE=y |
296 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | 346 | CONFIG_MTD_GEN_PROBE=y |
297 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | 347 | CONFIG_MTD_CFI_ADV_OPTIONS=y |
348 | CONFIG_MTD_CFI_NOSWAP=y | ||
349 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
350 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
351 | CONFIG_MTD_CFI_GEOMETRY=y | ||
352 | # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set | ||
353 | # CONFIG_MTD_MAP_BANK_WIDTH_2 is not set | ||
298 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | 354 | CONFIG_MTD_MAP_BANK_WIDTH_4=y |
299 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | 355 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set |
300 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | 356 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set |
301 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | 357 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set |
302 | CONFIG_MTD_CFI_I1=y | 358 | # CONFIG_MTD_CFI_I1 is not set |
303 | CONFIG_MTD_CFI_I2=y | 359 | # CONFIG_MTD_CFI_I2 is not set |
304 | # CONFIG_MTD_CFI_I4 is not set | 360 | CONFIG_MTD_CFI_I4=y |
305 | # CONFIG_MTD_CFI_I8 is not set | 361 | # CONFIG_MTD_CFI_I8 is not set |
362 | # CONFIG_MTD_OTP is not set | ||
363 | CONFIG_MTD_CFI_INTELEXT=y | ||
364 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
365 | # CONFIG_MTD_CFI_STAA is not set | ||
366 | CONFIG_MTD_CFI_UTIL=y | ||
306 | # CONFIG_MTD_RAM is not set | 367 | # CONFIG_MTD_RAM is not set |
307 | # CONFIG_MTD_ROM is not set | 368 | # CONFIG_MTD_ROM is not set |
308 | # CONFIG_MTD_ABSENT is not set | 369 | # CONFIG_MTD_ABSENT is not set |
309 | CONFIG_MTD_OBSOLETE_CHIPS=y | 370 | CONFIG_MTD_OBSOLETE_CHIPS=y |
310 | CONFIG_MTD_SHARP=y | 371 | CONFIG_MTD_SHARP=y |
372 | # CONFIG_MTD_XIP is not set | ||
311 | 373 | ||
312 | # | 374 | # |
313 | # Mapping drivers for chip access | 375 | # Mapping drivers for chip access |
314 | # | 376 | # |
315 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 377 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
378 | # CONFIG_MTD_PHYSMAP is not set | ||
379 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
380 | CONFIG_MTD_SA1100=y | ||
381 | # CONFIG_MTD_IMPA7 is not set | ||
316 | # CONFIG_MTD_PLATRAM is not set | 382 | # CONFIG_MTD_PLATRAM is not set |
317 | 383 | ||
318 | # | 384 | # |
@@ -321,7 +387,6 @@ CONFIG_MTD_SHARP=y | |||
321 | # CONFIG_MTD_SLRAM is not set | 387 | # CONFIG_MTD_SLRAM is not set |
322 | # CONFIG_MTD_PHRAM is not set | 388 | # CONFIG_MTD_PHRAM is not set |
323 | # CONFIG_MTD_MTDRAM is not set | 389 | # CONFIG_MTD_MTDRAM is not set |
324 | # CONFIG_MTD_BLKMTD is not set | ||
325 | # CONFIG_MTD_BLOCK2MTD is not set | 390 | # CONFIG_MTD_BLOCK2MTD is not set |
326 | 391 | ||
327 | # | 392 | # |
@@ -337,6 +402,11 @@ CONFIG_MTD_SHARP=y | |||
337 | # CONFIG_MTD_NAND is not set | 402 | # CONFIG_MTD_NAND is not set |
338 | 403 | ||
339 | # | 404 | # |
405 | # OneNAND Flash Device Drivers | ||
406 | # | ||
407 | # CONFIG_MTD_ONENAND is not set | ||
408 | |||
409 | # | ||
340 | # Parallel port support | 410 | # Parallel port support |
341 | # | 411 | # |
342 | # CONFIG_PARPORT is not set | 412 | # CONFIG_PARPORT is not set |
@@ -349,7 +419,6 @@ CONFIG_MTD_SHARP=y | |||
349 | # | 419 | # |
350 | # Block devices | 420 | # Block devices |
351 | # | 421 | # |
352 | # CONFIG_BLK_DEV_XD is not set | ||
353 | # CONFIG_BLK_DEV_COW_COMMON is not set | 422 | # CONFIG_BLK_DEV_COW_COMMON is not set |
354 | CONFIG_BLK_DEV_LOOP=y | 423 | CONFIG_BLK_DEV_LOOP=y |
355 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 424 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
@@ -359,20 +428,35 @@ CONFIG_BLK_DEV_RAM_COUNT=16 | |||
359 | CONFIG_BLK_DEV_RAM_SIZE=1024 | 428 | CONFIG_BLK_DEV_RAM_SIZE=1024 |
360 | CONFIG_BLK_DEV_INITRD=y | 429 | CONFIG_BLK_DEV_INITRD=y |
361 | # CONFIG_CDROM_PKTCDVD is not set | 430 | # CONFIG_CDROM_PKTCDVD is not set |
431 | # CONFIG_ATA_OVER_ETH is not set | ||
362 | 432 | ||
363 | # | 433 | # |
364 | # IO Schedulers | 434 | # ATA/ATAPI/MFM/RLL support |
365 | # | 435 | # |
366 | CONFIG_IOSCHED_NOOP=y | 436 | CONFIG_IDE=y |
367 | CONFIG_IOSCHED_AS=y | 437 | CONFIG_BLK_DEV_IDE=y |
368 | CONFIG_IOSCHED_DEADLINE=y | ||
369 | CONFIG_IOSCHED_CFQ=y | ||
370 | CONFIG_ATA_OVER_ETH=m | ||
371 | 438 | ||
372 | # | 439 | # |
373 | # ATA/ATAPI/MFM/RLL support | 440 | # Please see Documentation/ide.txt for help/info on IDE drives |
441 | # | ||
442 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
443 | CONFIG_BLK_DEV_IDEDISK=y | ||
444 | CONFIG_IDEDISK_MULTI_MODE=y | ||
445 | CONFIG_BLK_DEV_IDECS=y | ||
446 | # CONFIG_BLK_DEV_IDECD is not set | ||
447 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
448 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
449 | # CONFIG_IDE_TASK_IOCTL is not set | ||
450 | |||
451 | # | ||
452 | # IDE chipset support/bugfixes | ||
374 | # | 453 | # |
375 | # CONFIG_IDE is not set | 454 | CONFIG_IDE_GENERIC=y |
455 | # CONFIG_IDE_ARM is not set | ||
456 | # CONFIG_IDE_CHIPSETS is not set | ||
457 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
458 | # CONFIG_IDEDMA_AUTO is not set | ||
459 | # CONFIG_BLK_DEV_HD is not set | ||
376 | 460 | ||
377 | # | 461 | # |
378 | # SCSI device support | 462 | # SCSI device support |
@@ -402,6 +486,39 @@ CONFIG_ATA_OVER_ETH=m | |||
402 | # Network device support | 486 | # Network device support |
403 | # | 487 | # |
404 | # CONFIG_NETDEVICES is not set | 488 | # CONFIG_NETDEVICES is not set |
489 | # CONFIG_DUMMY is not set | ||
490 | # CONFIG_BONDING is not set | ||
491 | # CONFIG_EQUALIZER is not set | ||
492 | # CONFIG_TUN is not set | ||
493 | |||
494 | # | ||
495 | # PHY device support | ||
496 | # | ||
497 | |||
498 | # | ||
499 | # Ethernet (10 or 100Mbit) | ||
500 | # | ||
501 | # CONFIG_NET_ETHERNET is not set | ||
502 | |||
503 | # | ||
504 | # Ethernet (1000 Mbit) | ||
505 | # | ||
506 | |||
507 | # | ||
508 | # Ethernet (10000 Mbit) | ||
509 | # | ||
510 | CONFIG_PPP=y | ||
511 | # CONFIG_PPP_MULTILINK is not set | ||
512 | # CONFIG_PPP_FILTER is not set | ||
513 | CONFIG_PPP_ASYNC=y | ||
514 | # CONFIG_PPP_SYNC_TTY is not set | ||
515 | # CONFIG_PPP_DEFLATE is not set | ||
516 | # CONFIG_PPP_BSDCOMP is not set | ||
517 | # CONFIG_PPP_MPPE is not set | ||
518 | # CONFIG_PPPOE is not set | ||
519 | # CONFIG_SLIP is not set | ||
520 | # CONFIG_SHAPER is not set | ||
521 | # CONFIG_NETCONSOLE is not set | ||
405 | # CONFIG_NETPOLL is not set | 522 | # CONFIG_NETPOLL is not set |
406 | # CONFIG_NET_POLL_CONTROLLER is not set | 523 | # CONFIG_NET_POLL_CONTROLLER is not set |
407 | 524 | ||
@@ -424,7 +541,7 @@ CONFIG_INPUT_TSDEV=y | |||
424 | CONFIG_INPUT_TSDEV_SCREEN_X=240 | 541 | CONFIG_INPUT_TSDEV_SCREEN_X=240 |
425 | CONFIG_INPUT_TSDEV_SCREEN_Y=320 | 542 | CONFIG_INPUT_TSDEV_SCREEN_Y=320 |
426 | CONFIG_INPUT_EVDEV=y | 543 | CONFIG_INPUT_EVDEV=y |
427 | CONFIG_INPUT_EVBUG=y | 544 | # CONFIG_INPUT_EVBUG is not set |
428 | 545 | ||
429 | # | 546 | # |
430 | # Input Device Drivers | 547 | # Input Device Drivers |
@@ -438,7 +555,11 @@ CONFIG_KEYBOARD_LOCOMO=y | |||
438 | # CONFIG_KEYBOARD_NEWTON is not set | 555 | # CONFIG_KEYBOARD_NEWTON is not set |
439 | # CONFIG_INPUT_MOUSE is not set | 556 | # CONFIG_INPUT_MOUSE is not set |
440 | # CONFIG_INPUT_JOYSTICK is not set | 557 | # CONFIG_INPUT_JOYSTICK is not set |
441 | # CONFIG_INPUT_TOUCHSCREEN is not set | 558 | CONFIG_INPUT_TOUCHSCREEN=y |
559 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
560 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
561 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
562 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
442 | # CONFIG_INPUT_MISC is not set | 563 | # CONFIG_INPUT_MISC is not set |
443 | 564 | ||
444 | # | 565 | # |
@@ -461,7 +582,16 @@ CONFIG_HW_CONSOLE=y | |||
461 | # | 582 | # |
462 | # Serial drivers | 583 | # Serial drivers |
463 | # | 584 | # |
464 | # CONFIG_SERIAL_8250 is not set | 585 | CONFIG_SERIAL_8250=y |
586 | # CONFIG_SERIAL_8250_CONSOLE is not set | ||
587 | CONFIG_SERIAL_8250_CS=y | ||
588 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
589 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
590 | CONFIG_SERIAL_8250_EXTENDED=y | ||
591 | # CONFIG_SERIAL_8250_MANY_PORTS is not set | ||
592 | # CONFIG_SERIAL_8250_SHARE_IRQ is not set | ||
593 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
594 | # CONFIG_SERIAL_8250_RSA is not set | ||
465 | 595 | ||
466 | # | 596 | # |
467 | # Non-8250 serial port support | 597 | # Non-8250 serial port support |
@@ -483,94 +613,48 @@ CONFIG_UNIX98_PTYS=y | |||
483 | # | 613 | # |
484 | # CONFIG_WATCHDOG is not set | 614 | # CONFIG_WATCHDOG is not set |
485 | # CONFIG_NVRAM is not set | 615 | # CONFIG_NVRAM is not set |
486 | # CONFIG_RTC is not set | ||
487 | # CONFIG_DTLK is not set | 616 | # CONFIG_DTLK is not set |
488 | # CONFIG_R3964 is not set | 617 | # CONFIG_R3964 is not set |
489 | 618 | ||
490 | # | 619 | # |
491 | # Ftape, the floppy tape device driver | 620 | # Ftape, the floppy tape device driver |
492 | # | 621 | # |
493 | # CONFIG_RAW_DRIVER is not set | ||
494 | 622 | ||
495 | # | 623 | # |
496 | # TPM devices | 624 | # PCMCIA character devices |
497 | # | 625 | # |
626 | # CONFIG_SYNCLINK_CS is not set | ||
627 | # CONFIG_CARDMAN_4000 is not set | ||
628 | # CONFIG_CARDMAN_4040 is not set | ||
629 | # CONFIG_RAW_DRIVER is not set | ||
498 | 630 | ||
499 | # | 631 | # |
500 | # I2C support | 632 | # TPM devices |
501 | # | 633 | # |
502 | CONFIG_I2C=m | 634 | # CONFIG_TCG_TPM is not set |
503 | # CONFIG_I2C_CHARDEV is not set | 635 | # CONFIG_TELCLOCK is not set |
504 | 636 | ||
505 | # | 637 | # |
506 | # I2C Algorithms | 638 | # I2C support |
507 | # | 639 | # |
508 | CONFIG_I2C_ALGOBIT=m | 640 | # CONFIG_I2C is not set |
509 | # CONFIG_I2C_ALGOPCF is not set | ||
510 | # CONFIG_I2C_ALGOPCA is not set | ||
511 | 641 | ||
512 | # | 642 | # |
513 | # I2C Hardware Bus support | 643 | # SPI support |
514 | # | 644 | # |
515 | # CONFIG_I2C_ELEKTOR is not set | 645 | # CONFIG_SPI is not set |
516 | # CONFIG_I2C_PARPORT_LIGHT is not set | 646 | # CONFIG_SPI_MASTER is not set |
517 | # CONFIG_I2C_STUB is not set | ||
518 | # CONFIG_I2C_PCA_ISA is not set | ||
519 | 647 | ||
520 | # | 648 | # |
521 | # Miscellaneous I2C Chip support | 649 | # Dallas's 1-wire bus |
522 | # | 650 | # |
523 | # CONFIG_SENSORS_DS1337 is not set | 651 | # CONFIG_W1 is not set |
524 | # CONFIG_SENSORS_DS1374 is not set | ||
525 | # CONFIG_SENSORS_EEPROM is not set | ||
526 | # CONFIG_SENSORS_PCF8574 is not set | ||
527 | # CONFIG_SENSORS_PCA9539 is not set | ||
528 | # CONFIG_SENSORS_PCF8591 is not set | ||
529 | # CONFIG_SENSORS_RTC8564 is not set | ||
530 | # CONFIG_SENSORS_MAX6875 is not set | ||
531 | # CONFIG_I2C_DEBUG_CORE is not set | ||
532 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
533 | # CONFIG_I2C_DEBUG_BUS is not set | ||
534 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
535 | 652 | ||
536 | # | 653 | # |
537 | # Hardware Monitoring support | 654 | # Hardware Monitoring support |
538 | # | 655 | # |
539 | CONFIG_HWMON=y | 656 | # CONFIG_HWMON is not set |
540 | # CONFIG_HWMON_VID is not set | 657 | # CONFIG_HWMON_VID is not set |
541 | # CONFIG_SENSORS_ADM1021 is not set | ||
542 | # CONFIG_SENSORS_ADM1025 is not set | ||
543 | # CONFIG_SENSORS_ADM1026 is not set | ||
544 | # CONFIG_SENSORS_ADM1031 is not set | ||
545 | # CONFIG_SENSORS_ADM9240 is not set | ||
546 | # CONFIG_SENSORS_ASB100 is not set | ||
547 | # CONFIG_SENSORS_ATXP1 is not set | ||
548 | # CONFIG_SENSORS_DS1621 is not set | ||
549 | # CONFIG_SENSORS_FSCHER is not set | ||
550 | # CONFIG_SENSORS_FSCPOS is not set | ||
551 | # CONFIG_SENSORS_GL518SM is not set | ||
552 | # CONFIG_SENSORS_GL520SM is not set | ||
553 | # CONFIG_SENSORS_IT87 is not set | ||
554 | # CONFIG_SENSORS_LM63 is not set | ||
555 | # CONFIG_SENSORS_LM75 is not set | ||
556 | # CONFIG_SENSORS_LM77 is not set | ||
557 | # CONFIG_SENSORS_LM78 is not set | ||
558 | # CONFIG_SENSORS_LM80 is not set | ||
559 | # CONFIG_SENSORS_LM83 is not set | ||
560 | # CONFIG_SENSORS_LM85 is not set | ||
561 | # CONFIG_SENSORS_LM87 is not set | ||
562 | # CONFIG_SENSORS_LM90 is not set | ||
563 | # CONFIG_SENSORS_LM92 is not set | ||
564 | # CONFIG_SENSORS_MAX1619 is not set | ||
565 | # CONFIG_SENSORS_PC87360 is not set | ||
566 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
567 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
568 | # CONFIG_SENSORS_W83781D is not set | ||
569 | # CONFIG_SENSORS_W83792D is not set | ||
570 | # CONFIG_SENSORS_W83L785TS is not set | ||
571 | # CONFIG_SENSORS_W83627HF is not set | ||
572 | # CONFIG_SENSORS_W83627EHF is not set | ||
573 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
574 | 658 | ||
575 | # | 659 | # |
576 | # Misc devices | 660 | # Misc devices |
@@ -579,42 +663,33 @@ CONFIG_HWMON=y | |||
579 | # | 663 | # |
580 | # Multimedia Capabilities Port drivers | 664 | # Multimedia Capabilities Port drivers |
581 | # | 665 | # |
582 | # CONFIG_MCP_SA11X0 is not set | 666 | CONFIG_MCP=y |
667 | CONFIG_MCP_SA11X0=y | ||
668 | CONFIG_MCP_UCB1200=y | ||
669 | CONFIG_MCP_UCB1200_TS=y | ||
583 | 670 | ||
584 | # | 671 | # |
585 | # Multimedia devices | 672 | # LED devices |
586 | # | 673 | # |
587 | CONFIG_VIDEO_DEV=m | 674 | CONFIG_NEW_LEDS=y |
675 | CONFIG_LEDS_CLASS=y | ||
588 | 676 | ||
589 | # | 677 | # |
590 | # Video For Linux | 678 | # LED drivers |
591 | # | 679 | # |
680 | CONFIG_LEDS_LOCOMO=y | ||
592 | 681 | ||
593 | # | 682 | # |
594 | # Video Adapters | 683 | # LED Triggers |
595 | # | 684 | # |
596 | # CONFIG_VIDEO_PMS is not set | 685 | CONFIG_LEDS_TRIGGERS=y |
597 | # CONFIG_VIDEO_CPIA is not set | 686 | CONFIG_LEDS_TRIGGER_TIMER=y |
598 | # CONFIG_VIDEO_SAA5246A is not set | 687 | CONFIG_LEDS_TRIGGER_IDE_DISK=y |
599 | # CONFIG_VIDEO_SAA5249 is not set | ||
600 | # CONFIG_TUNER_3036 is not set | ||
601 | # CONFIG_VIDEO_OVCAMCHIP is not set | ||
602 | 688 | ||
603 | # | 689 | # |
604 | # Radio Adapters | 690 | # Multimedia devices |
605 | # | 691 | # |
606 | # CONFIG_RADIO_CADET is not set | 692 | # CONFIG_VIDEO_DEV is not set |
607 | # CONFIG_RADIO_RTRACK is not set | ||
608 | # CONFIG_RADIO_RTRACK2 is not set | ||
609 | # CONFIG_RADIO_AZTECH is not set | ||
610 | # CONFIG_RADIO_GEMTEK is not set | ||
611 | # CONFIG_RADIO_MAESTRO is not set | ||
612 | # CONFIG_RADIO_SF16FMI is not set | ||
613 | # CONFIG_RADIO_SF16FMR2 is not set | ||
614 | # CONFIG_RADIO_TERRATEC is not set | ||
615 | # CONFIG_RADIO_TRUST is not set | ||
616 | # CONFIG_RADIO_TYPHOON is not set | ||
617 | # CONFIG_RADIO_ZOLTRIX is not set | ||
618 | 693 | ||
619 | # | 694 | # |
620 | # Digital Video Broadcasting Devices | 695 | # Digital Video Broadcasting Devices |
@@ -628,8 +703,8 @@ CONFIG_FB=y | |||
628 | CONFIG_FB_CFB_FILLRECT=y | 703 | CONFIG_FB_CFB_FILLRECT=y |
629 | CONFIG_FB_CFB_COPYAREA=y | 704 | CONFIG_FB_CFB_COPYAREA=y |
630 | CONFIG_FB_CFB_IMAGEBLIT=y | 705 | CONFIG_FB_CFB_IMAGEBLIT=y |
631 | CONFIG_FB_SOFT_CURSOR=y | ||
632 | # CONFIG_FB_MACMODES is not set | 706 | # CONFIG_FB_MACMODES is not set |
707 | # CONFIG_FB_FIRMWARE_EDID is not set | ||
633 | CONFIG_FB_MODE_HELPERS=y | 708 | CONFIG_FB_MODE_HELPERS=y |
634 | # CONFIG_FB_TILEBLITTING is not set | 709 | # CONFIG_FB_TILEBLITTING is not set |
635 | CONFIG_FB_SA1100=y | 710 | CONFIG_FB_SA1100=y |
@@ -643,14 +718,15 @@ CONFIG_FB_SA1100=y | |||
643 | # CONFIG_MDA_CONSOLE is not set | 718 | # CONFIG_MDA_CONSOLE is not set |
644 | CONFIG_DUMMY_CONSOLE=y | 719 | CONFIG_DUMMY_CONSOLE=y |
645 | CONFIG_FRAMEBUFFER_CONSOLE=y | 720 | CONFIG_FRAMEBUFFER_CONSOLE=y |
721 | CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | ||
646 | CONFIG_FONTS=y | 722 | CONFIG_FONTS=y |
647 | CONFIG_FONT_8x8=y | 723 | # CONFIG_FONT_8x8 is not set |
648 | # CONFIG_FONT_8x16 is not set | 724 | # CONFIG_FONT_8x16 is not set |
649 | # CONFIG_FONT_6x11 is not set | 725 | # CONFIG_FONT_6x11 is not set |
650 | # CONFIG_FONT_7x14 is not set | 726 | # CONFIG_FONT_7x14 is not set |
651 | # CONFIG_FONT_PEARL_8x8 is not set | 727 | # CONFIG_FONT_PEARL_8x8 is not set |
652 | # CONFIG_FONT_ACORN_8x8 is not set | 728 | # CONFIG_FONT_ACORN_8x8 is not set |
653 | # CONFIG_FONT_MINI_4x6 is not set | 729 | CONFIG_FONT_MINI_4x6=y |
654 | # CONFIG_FONT_SUN8x16 is not set | 730 | # CONFIG_FONT_SUN8x16 is not set |
655 | # CONFIG_FONT_SUN12x22 is not set | 731 | # CONFIG_FONT_SUN12x22 is not set |
656 | # CONFIG_FONT_10x18 is not set | 732 | # CONFIG_FONT_10x18 is not set |
@@ -659,7 +735,11 @@ CONFIG_FONT_8x8=y | |||
659 | # Logo configuration | 735 | # Logo configuration |
660 | # | 736 | # |
661 | # CONFIG_LOGO is not set | 737 | # CONFIG_LOGO is not set |
662 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | 738 | CONFIG_BACKLIGHT_LCD_SUPPORT=y |
739 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
740 | CONFIG_BACKLIGHT_DEVICE=y | ||
741 | CONFIG_LCD_CLASS_DEVICE=y | ||
742 | CONFIG_LCD_DEVICE=y | ||
663 | 743 | ||
664 | # | 744 | # |
665 | # Sound | 745 | # Sound |
@@ -671,20 +751,17 @@ CONFIG_FONT_8x8=y | |||
671 | # | 751 | # |
672 | CONFIG_USB_ARCH_HAS_HCD=y | 752 | CONFIG_USB_ARCH_HAS_HCD=y |
673 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 753 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
754 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
674 | # CONFIG_USB is not set | 755 | # CONFIG_USB is not set |
675 | 756 | ||
676 | # | 757 | # |
758 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
759 | # | ||
760 | |||
761 | # | ||
677 | # USB Gadget Support | 762 | # USB Gadget Support |
678 | # | 763 | # |
679 | CONFIG_USB_GADGET=y | 764 | # CONFIG_USB_GADGET is not set |
680 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
681 | # CONFIG_USB_GADGET_NET2280 is not set | ||
682 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
683 | # CONFIG_USB_GADGET_GOKU is not set | ||
684 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
685 | # CONFIG_USB_GADGET_OMAP is not set | ||
686 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
687 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
688 | 765 | ||
689 | # | 766 | # |
690 | # MMC/SD Card support | 767 | # MMC/SD Card support |
@@ -692,23 +769,24 @@ CONFIG_USB_GADGET=y | |||
692 | # CONFIG_MMC is not set | 769 | # CONFIG_MMC is not set |
693 | 770 | ||
694 | # | 771 | # |
772 | # Real Time Clock | ||
773 | # | ||
774 | CONFIG_RTC_LIB=y | ||
775 | # CONFIG_RTC_CLASS is not set | ||
776 | |||
777 | # | ||
695 | # File systems | 778 | # File systems |
696 | # | 779 | # |
697 | CONFIG_EXT2_FS=y | 780 | # CONFIG_EXT2_FS is not set |
698 | CONFIG_EXT2_FS_XATTR=y | ||
699 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
700 | CONFIG_EXT2_FS_SECURITY=y | ||
701 | # CONFIG_EXT2_FS_XIP is not set | ||
702 | # CONFIG_EXT3_FS is not set | 781 | # CONFIG_EXT3_FS is not set |
703 | # CONFIG_JBD is not set | ||
704 | CONFIG_FS_MBCACHE=y | ||
705 | # CONFIG_REISERFS_FS is not set | 782 | # CONFIG_REISERFS_FS is not set |
706 | # CONFIG_JFS_FS is not set | 783 | # CONFIG_JFS_FS is not set |
707 | CONFIG_FS_POSIX_ACL=y | 784 | # CONFIG_FS_POSIX_ACL is not set |
708 | # CONFIG_XFS_FS is not set | 785 | # CONFIG_XFS_FS is not set |
786 | # CONFIG_OCFS2_FS is not set | ||
709 | # CONFIG_MINIX_FS is not set | 787 | # CONFIG_MINIX_FS is not set |
710 | CONFIG_ROMFS_FS=y | 788 | CONFIG_ROMFS_FS=y |
711 | CONFIG_INOTIFY=y | 789 | # CONFIG_INOTIFY is not set |
712 | # CONFIG_QUOTA is not set | 790 | # CONFIG_QUOTA is not set |
713 | # CONFIG_DNOTIFY is not set | 791 | # CONFIG_DNOTIFY is not set |
714 | # CONFIG_AUTOFS_FS is not set | 792 | # CONFIG_AUTOFS_FS is not set |
@@ -725,7 +803,7 @@ CONFIG_INOTIFY=y | |||
725 | # DOS/FAT/NT Filesystems | 803 | # DOS/FAT/NT Filesystems |
726 | # | 804 | # |
727 | CONFIG_FAT_FS=y | 805 | CONFIG_FAT_FS=y |
728 | CONFIG_MSDOS_FS=y | 806 | # CONFIG_MSDOS_FS is not set |
729 | CONFIG_VFAT_FS=y | 807 | CONFIG_VFAT_FS=y |
730 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | 808 | CONFIG_FAT_DEFAULT_CODEPAGE=437 |
731 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | 809 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" |
@@ -739,7 +817,7 @@ CONFIG_SYSFS=y | |||
739 | CONFIG_TMPFS=y | 817 | CONFIG_TMPFS=y |
740 | # CONFIG_HUGETLB_PAGE is not set | 818 | # CONFIG_HUGETLB_PAGE is not set |
741 | CONFIG_RAMFS=y | 819 | CONFIG_RAMFS=y |
742 | # CONFIG_RELAYFS_FS is not set | 820 | # CONFIG_CONFIGFS_FS is not set |
743 | 821 | ||
744 | # | 822 | # |
745 | # Miscellaneous filesystems | 823 | # Miscellaneous filesystems |
@@ -755,11 +833,12 @@ CONFIG_RAMFS=y | |||
755 | CONFIG_JFFS2_FS=y | 833 | CONFIG_JFFS2_FS=y |
756 | CONFIG_JFFS2_FS_DEBUG=0 | 834 | CONFIG_JFFS2_FS_DEBUG=0 |
757 | CONFIG_JFFS2_FS_WRITEBUFFER=y | 835 | CONFIG_JFFS2_FS_WRITEBUFFER=y |
836 | # CONFIG_JFFS2_SUMMARY is not set | ||
758 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | 837 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set |
759 | CONFIG_JFFS2_ZLIB=y | 838 | CONFIG_JFFS2_ZLIB=y |
760 | CONFIG_JFFS2_RTIME=y | 839 | CONFIG_JFFS2_RTIME=y |
761 | # CONFIG_JFFS2_RUBIN is not set | 840 | # CONFIG_JFFS2_RUBIN is not set |
762 | CONFIG_CRAMFS=y | 841 | # CONFIG_CRAMFS is not set |
763 | # CONFIG_VXFS_FS is not set | 842 | # CONFIG_VXFS_FS is not set |
764 | # CONFIG_HPFS_FS is not set | 843 | # CONFIG_HPFS_FS is not set |
765 | # CONFIG_QNX4FS_FS is not set | 844 | # CONFIG_QNX4FS_FS is not set |
@@ -789,7 +868,7 @@ CONFIG_MSDOS_PARTITION=y | |||
789 | # | 868 | # |
790 | CONFIG_NLS=y | 869 | CONFIG_NLS=y |
791 | CONFIG_NLS_DEFAULT="cp437" | 870 | CONFIG_NLS_DEFAULT="cp437" |
792 | CONFIG_NLS_CODEPAGE_437=m | 871 | CONFIG_NLS_CODEPAGE_437=y |
793 | # CONFIG_NLS_CODEPAGE_737 is not set | 872 | # CONFIG_NLS_CODEPAGE_737 is not set |
794 | # CONFIG_NLS_CODEPAGE_775 is not set | 873 | # CONFIG_NLS_CODEPAGE_775 is not set |
795 | # CONFIG_NLS_CODEPAGE_850 is not set | 874 | # CONFIG_NLS_CODEPAGE_850 is not set |
@@ -813,7 +892,7 @@ CONFIG_NLS_CODEPAGE_437=m | |||
813 | # CONFIG_NLS_CODEPAGE_1250 is not set | 892 | # CONFIG_NLS_CODEPAGE_1250 is not set |
814 | # CONFIG_NLS_CODEPAGE_1251 is not set | 893 | # CONFIG_NLS_CODEPAGE_1251 is not set |
815 | # CONFIG_NLS_ASCII is not set | 894 | # CONFIG_NLS_ASCII is not set |
816 | CONFIG_NLS_ISO8859_1=m | 895 | CONFIG_NLS_ISO8859_1=y |
817 | # CONFIG_NLS_ISO8859_2 is not set | 896 | # CONFIG_NLS_ISO8859_2 is not set |
818 | # CONFIG_NLS_ISO8859_3 is not set | 897 | # CONFIG_NLS_ISO8859_3 is not set |
819 | # CONFIG_NLS_ISO8859_4 is not set | 898 | # CONFIG_NLS_ISO8859_4 is not set |
@@ -826,7 +905,7 @@ CONFIG_NLS_ISO8859_1=m | |||
826 | # CONFIG_NLS_ISO8859_15 is not set | 905 | # CONFIG_NLS_ISO8859_15 is not set |
827 | # CONFIG_NLS_KOI8_R is not set | 906 | # CONFIG_NLS_KOI8_R is not set |
828 | # CONFIG_NLS_KOI8_U is not set | 907 | # CONFIG_NLS_KOI8_U is not set |
829 | CONFIG_NLS_UTF8=m | 908 | # CONFIG_NLS_UTF8 is not set |
830 | 909 | ||
831 | # | 910 | # |
832 | # Profiling support | 911 | # Profiling support |
@@ -837,20 +916,23 @@ CONFIG_NLS_UTF8=m | |||
837 | # Kernel hacking | 916 | # Kernel hacking |
838 | # | 917 | # |
839 | # CONFIG_PRINTK_TIME is not set | 918 | # CONFIG_PRINTK_TIME is not set |
840 | CONFIG_DEBUG_KERNEL=y | ||
841 | CONFIG_MAGIC_SYSRQ=y | 919 | CONFIG_MAGIC_SYSRQ=y |
920 | CONFIG_DEBUG_KERNEL=y | ||
842 | CONFIG_LOG_BUF_SHIFT=14 | 921 | CONFIG_LOG_BUF_SHIFT=14 |
843 | CONFIG_DETECT_SOFTLOCKUP=y | 922 | # CONFIG_DETECT_SOFTLOCKUP is not set |
844 | # CONFIG_SCHEDSTATS is not set | 923 | # CONFIG_SCHEDSTATS is not set |
845 | # CONFIG_DEBUG_SLAB is not set | 924 | CONFIG_DEBUG_MUTEXES=y |
846 | CONFIG_DEBUG_PREEMPT=y | ||
847 | # CONFIG_DEBUG_SPINLOCK is not set | 925 | # CONFIG_DEBUG_SPINLOCK is not set |
848 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 926 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
849 | # CONFIG_DEBUG_KOBJECT is not set | 927 | # CONFIG_DEBUG_KOBJECT is not set |
850 | # CONFIG_DEBUG_BUGVERBOSE is not set | 928 | # CONFIG_DEBUG_BUGVERBOSE is not set |
851 | # CONFIG_DEBUG_INFO is not set | 929 | # CONFIG_DEBUG_INFO is not set |
852 | # CONFIG_DEBUG_FS is not set | 930 | # CONFIG_DEBUG_FS is not set |
931 | # CONFIG_DEBUG_VM is not set | ||
853 | CONFIG_FRAME_POINTER=y | 932 | CONFIG_FRAME_POINTER=y |
933 | # CONFIG_UNWIND_INFO is not set | ||
934 | CONFIG_FORCED_INLINING=y | ||
935 | # CONFIG_RCU_TORTURE_TEST is not set | ||
854 | # CONFIG_DEBUG_USER is not set | 936 | # CONFIG_DEBUG_USER is not set |
855 | # CONFIG_DEBUG_WAITQ is not set | 937 | # CONFIG_DEBUG_WAITQ is not set |
856 | CONFIG_DEBUG_ERRORS=y | 938 | CONFIG_DEBUG_ERRORS=y |
@@ -874,7 +956,7 @@ CONFIG_DEBUG_ERRORS=y | |||
874 | # | 956 | # |
875 | # Library routines | 957 | # Library routines |
876 | # | 958 | # |
877 | # CONFIG_CRC_CCITT is not set | 959 | CONFIG_CRC_CCITT=y |
878 | # CONFIG_CRC16 is not set | 960 | # CONFIG_CRC16 is not set |
879 | CONFIG_CRC32=y | 961 | CONFIG_CRC32=y |
880 | # CONFIG_LIBCRC32C is not set | 962 | # CONFIG_LIBCRC32C is not set |
diff --git a/arch/arm/configs/kafa_defconfig b/arch/arm/configs/kafa_defconfig new file mode 100644 index 000000000000..51ded20e3f64 --- /dev/null +++ b/arch/arm/configs/kafa_defconfig | |||
@@ -0,0 +1,884 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc3 | ||
4 | # Sun May 7 16:54:53 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | # CONFIG_LOCALVERSION_AUTO is not set | ||
26 | # CONFIG_SWAP is not set | ||
27 | CONFIG_SYSVIPC=y | ||
28 | # CONFIG_POSIX_MQUEUE is not set | ||
29 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
30 | CONFIG_SYSCTL=y | ||
31 | # CONFIG_AUDIT is not set | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | # CONFIG_RELAY is not set | ||
34 | CONFIG_INITRAMFS_SOURCE="" | ||
35 | CONFIG_UID16=y | ||
36 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
37 | # CONFIG_EMBEDDED is not set | ||
38 | CONFIG_KALLSYMS=y | ||
39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
40 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | ||
42 | CONFIG_BUG=y | ||
43 | CONFIG_ELF_CORE=y | ||
44 | CONFIG_BASE_FULL=y | ||
45 | CONFIG_FUTEX=y | ||
46 | CONFIG_EPOLL=y | ||
47 | CONFIG_SHMEM=y | ||
48 | CONFIG_SLAB=y | ||
49 | # CONFIG_TINY_SHMEM is not set | ||
50 | CONFIG_BASE_SMALL=0 | ||
51 | # CONFIG_SLOB is not set | ||
52 | |||
53 | # | ||
54 | # Loadable module support | ||
55 | # | ||
56 | CONFIG_MODULES=y | ||
57 | CONFIG_MODULE_UNLOAD=y | ||
58 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
59 | # CONFIG_MODVERSIONS is not set | ||
60 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
61 | # CONFIG_KMOD is not set | ||
62 | |||
63 | # | ||
64 | # Block layer | ||
65 | # | ||
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
67 | |||
68 | # | ||
69 | # IO Schedulers | ||
70 | # | ||
71 | CONFIG_IOSCHED_NOOP=y | ||
72 | # CONFIG_IOSCHED_AS is not set | ||
73 | CONFIG_IOSCHED_DEADLINE=y | ||
74 | # CONFIG_IOSCHED_CFQ is not set | ||
75 | # CONFIG_DEFAULT_AS is not set | ||
76 | CONFIG_DEFAULT_DEADLINE=y | ||
77 | # CONFIG_DEFAULT_CFQ is not set | ||
78 | # CONFIG_DEFAULT_NOOP is not set | ||
79 | CONFIG_DEFAULT_IOSCHED="deadline" | ||
80 | |||
81 | # | ||
82 | # System Type | ||
83 | # | ||
84 | # CONFIG_ARCH_CLPS7500 is not set | ||
85 | # CONFIG_ARCH_CLPS711X is not set | ||
86 | # CONFIG_ARCH_CO285 is not set | ||
87 | # CONFIG_ARCH_EBSA110 is not set | ||
88 | # CONFIG_ARCH_EP93XX is not set | ||
89 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
90 | # CONFIG_ARCH_INTEGRATOR is not set | ||
91 | # CONFIG_ARCH_IOP3XX is not set | ||
92 | # CONFIG_ARCH_IXP4XX is not set | ||
93 | # CONFIG_ARCH_IXP2000 is not set | ||
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | ||
96 | # CONFIG_ARCH_PXA is not set | ||
97 | # CONFIG_ARCH_RPC is not set | ||
98 | # CONFIG_ARCH_SA1100 is not set | ||
99 | # CONFIG_ARCH_S3C2410 is not set | ||
100 | # CONFIG_ARCH_SHARK is not set | ||
101 | # CONFIG_ARCH_LH7A40X is not set | ||
102 | # CONFIG_ARCH_OMAP is not set | ||
103 | # CONFIG_ARCH_VERSATILE is not set | ||
104 | # CONFIG_ARCH_REALVIEW is not set | ||
105 | # CONFIG_ARCH_IMX is not set | ||
106 | # CONFIG_ARCH_H720X is not set | ||
107 | # CONFIG_ARCH_AAEC2000 is not set | ||
108 | CONFIG_ARCH_AT91RM9200=y | ||
109 | |||
110 | # | ||
111 | # AT91RM9200 Implementations | ||
112 | # | ||
113 | |||
114 | # | ||
115 | # AT91RM9200 Board Type | ||
116 | # | ||
117 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
118 | # CONFIG_MACH_AT91RM9200EK is not set | ||
119 | # CONFIG_MACH_CSB337 is not set | ||
120 | # CONFIG_MACH_CSB637 is not set | ||
121 | # CONFIG_MACH_CARMEVA is not set | ||
122 | # CONFIG_MACH_KB9200 is not set | ||
123 | # CONFIG_MACH_ATEB9200 is not set | ||
124 | CONFIG_MACH_KAFA=y | ||
125 | |||
126 | # | ||
127 | # AT91 Feature Selections | ||
128 | # | ||
129 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
130 | |||
131 | # | ||
132 | # Processor Type | ||
133 | # | ||
134 | CONFIG_CPU_32=y | ||
135 | CONFIG_CPU_ARM920T=y | ||
136 | CONFIG_CPU_32v4=y | ||
137 | CONFIG_CPU_ABRT_EV4T=y | ||
138 | CONFIG_CPU_CACHE_V4WT=y | ||
139 | CONFIG_CPU_CACHE_VIVT=y | ||
140 | CONFIG_CPU_COPY_V4WB=y | ||
141 | CONFIG_CPU_TLB_V4WBI=y | ||
142 | |||
143 | # | ||
144 | # Processor Features | ||
145 | # | ||
146 | # CONFIG_ARM_THUMB is not set | ||
147 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
148 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
149 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
150 | |||
151 | # | ||
152 | # Bus support | ||
153 | # | ||
154 | |||
155 | # | ||
156 | # PCCARD (PCMCIA/CardBus) support | ||
157 | # | ||
158 | # CONFIG_PCCARD is not set | ||
159 | |||
160 | # | ||
161 | # Kernel Features | ||
162 | # | ||
163 | CONFIG_PREEMPT=y | ||
164 | # CONFIG_NO_IDLE_HZ is not set | ||
165 | CONFIG_HZ=100 | ||
166 | # CONFIG_AEABI is not set | ||
167 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
168 | CONFIG_SELECT_MEMORY_MODEL=y | ||
169 | CONFIG_FLATMEM_MANUAL=y | ||
170 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
171 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
172 | CONFIG_FLATMEM=y | ||
173 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
174 | # CONFIG_SPARSEMEM_STATIC is not set | ||
175 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
176 | CONFIG_LEDS=y | ||
177 | # CONFIG_LEDS_TIMER is not set | ||
178 | CONFIG_LEDS_CPU=y | ||
179 | CONFIG_ALIGNMENT_TRAP=y | ||
180 | |||
181 | # | ||
182 | # Boot options | ||
183 | # | ||
184 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
185 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
186 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200 initrd=0x20800000,10M root=/dev/ram0 rw" | ||
187 | # CONFIG_XIP_KERNEL is not set | ||
188 | |||
189 | # | ||
190 | # Floating point emulation | ||
191 | # | ||
192 | |||
193 | # | ||
194 | # At least one emulation must be selected | ||
195 | # | ||
196 | CONFIG_FPE_NWFPE=y | ||
197 | # CONFIG_FPE_NWFPE_XP is not set | ||
198 | # CONFIG_FPE_FASTFPE is not set | ||
199 | |||
200 | # | ||
201 | # Userspace binary formats | ||
202 | # | ||
203 | CONFIG_BINFMT_ELF=y | ||
204 | # CONFIG_BINFMT_AOUT is not set | ||
205 | CONFIG_BINFMT_MISC=y | ||
206 | # CONFIG_ARTHUR is not set | ||
207 | |||
208 | # | ||
209 | # Power management options | ||
210 | # | ||
211 | # CONFIG_PM is not set | ||
212 | # CONFIG_APM is not set | ||
213 | |||
214 | # | ||
215 | # Networking | ||
216 | # | ||
217 | CONFIG_NET=y | ||
218 | |||
219 | # | ||
220 | # Networking options | ||
221 | # | ||
222 | # CONFIG_NETDEBUG is not set | ||
223 | CONFIG_PACKET=y | ||
224 | # CONFIG_PACKET_MMAP is not set | ||
225 | CONFIG_UNIX=y | ||
226 | # CONFIG_NET_KEY is not set | ||
227 | CONFIG_INET=y | ||
228 | # CONFIG_IP_MULTICAST is not set | ||
229 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
230 | CONFIG_IP_FIB_HASH=y | ||
231 | # CONFIG_IP_PNP is not set | ||
232 | # CONFIG_NET_IPIP is not set | ||
233 | # CONFIG_NET_IPGRE is not set | ||
234 | # CONFIG_ARPD is not set | ||
235 | # CONFIG_SYN_COOKIES is not set | ||
236 | # CONFIG_INET_AH is not set | ||
237 | # CONFIG_INET_ESP is not set | ||
238 | # CONFIG_INET_IPCOMP is not set | ||
239 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
240 | # CONFIG_INET_TUNNEL is not set | ||
241 | # CONFIG_INET_DIAG is not set | ||
242 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
243 | CONFIG_TCP_CONG_BIC=y | ||
244 | # CONFIG_IPV6 is not set | ||
245 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
246 | # CONFIG_INET6_TUNNEL is not set | ||
247 | # CONFIG_NETFILTER is not set | ||
248 | |||
249 | # | ||
250 | # DCCP Configuration (EXPERIMENTAL) | ||
251 | # | ||
252 | # CONFIG_IP_DCCP is not set | ||
253 | |||
254 | # | ||
255 | # SCTP Configuration (EXPERIMENTAL) | ||
256 | # | ||
257 | # CONFIG_IP_SCTP is not set | ||
258 | |||
259 | # | ||
260 | # TIPC Configuration (EXPERIMENTAL) | ||
261 | # | ||
262 | # CONFIG_TIPC is not set | ||
263 | # CONFIG_ATM is not set | ||
264 | # CONFIG_BRIDGE is not set | ||
265 | # CONFIG_VLAN_8021Q is not set | ||
266 | # CONFIG_DECNET is not set | ||
267 | # CONFIG_LLC2 is not set | ||
268 | # CONFIG_IPX is not set | ||
269 | # CONFIG_ATALK is not set | ||
270 | # CONFIG_X25 is not set | ||
271 | # CONFIG_LAPB is not set | ||
272 | # CONFIG_NET_DIVERT is not set | ||
273 | # CONFIG_ECONET is not set | ||
274 | # CONFIG_WAN_ROUTER is not set | ||
275 | |||
276 | # | ||
277 | # QoS and/or fair queueing | ||
278 | # | ||
279 | # CONFIG_NET_SCHED is not set | ||
280 | |||
281 | # | ||
282 | # Network testing | ||
283 | # | ||
284 | # CONFIG_NET_PKTGEN is not set | ||
285 | # CONFIG_HAMRADIO is not set | ||
286 | # CONFIG_IRDA is not set | ||
287 | # CONFIG_BT is not set | ||
288 | # CONFIG_IEEE80211 is not set | ||
289 | |||
290 | # | ||
291 | # Device Drivers | ||
292 | # | ||
293 | |||
294 | # | ||
295 | # Generic Driver Options | ||
296 | # | ||
297 | CONFIG_STANDALONE=y | ||
298 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
299 | # CONFIG_FW_LOADER is not set | ||
300 | |||
301 | # | ||
302 | # Connector - unified userspace <-> kernelspace linker | ||
303 | # | ||
304 | # CONFIG_CONNECTOR is not set | ||
305 | |||
306 | # | ||
307 | # Memory Technology Devices (MTD) | ||
308 | # | ||
309 | CONFIG_MTD=y | ||
310 | # CONFIG_MTD_DEBUG is not set | ||
311 | # CONFIG_MTD_CONCAT is not set | ||
312 | CONFIG_MTD_PARTITIONS=y | ||
313 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
314 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
315 | # CONFIG_MTD_AFS_PARTS is not set | ||
316 | |||
317 | # | ||
318 | # User Modules And Translation Layers | ||
319 | # | ||
320 | CONFIG_MTD_CHAR=y | ||
321 | # CONFIG_MTD_BLOCK is not set | ||
322 | CONFIG_MTD_BLOCK_RO=y | ||
323 | # CONFIG_FTL is not set | ||
324 | # CONFIG_NFTL is not set | ||
325 | # CONFIG_INFTL is not set | ||
326 | # CONFIG_RFD_FTL is not set | ||
327 | |||
328 | # | ||
329 | # RAM/ROM/Flash chip drivers | ||
330 | # | ||
331 | # CONFIG_MTD_CFI is not set | ||
332 | # CONFIG_MTD_JEDECPROBE is not set | ||
333 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
334 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
335 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
336 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
337 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
338 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
339 | CONFIG_MTD_CFI_I1=y | ||
340 | CONFIG_MTD_CFI_I2=y | ||
341 | # CONFIG_MTD_CFI_I4 is not set | ||
342 | # CONFIG_MTD_CFI_I8 is not set | ||
343 | # CONFIG_MTD_RAM is not set | ||
344 | # CONFIG_MTD_ROM is not set | ||
345 | # CONFIG_MTD_ABSENT is not set | ||
346 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
347 | |||
348 | # | ||
349 | # Mapping drivers for chip access | ||
350 | # | ||
351 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
352 | # CONFIG_MTD_PLATRAM is not set | ||
353 | |||
354 | # | ||
355 | # Self-contained MTD device drivers | ||
356 | # | ||
357 | # CONFIG_MTD_SLRAM is not set | ||
358 | # CONFIG_MTD_PHRAM is not set | ||
359 | # CONFIG_MTD_MTDRAM is not set | ||
360 | # CONFIG_MTD_BLOCK2MTD is not set | ||
361 | |||
362 | # | ||
363 | # Disk-On-Chip Device Drivers | ||
364 | # | ||
365 | # CONFIG_MTD_DOC2000 is not set | ||
366 | # CONFIG_MTD_DOC2001 is not set | ||
367 | # CONFIG_MTD_DOC2001PLUS is not set | ||
368 | CONFIG_MTD_AT91_DATAFLASH=y | ||
369 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
370 | |||
371 | # | ||
372 | # NAND Flash Device Drivers | ||
373 | # | ||
374 | # CONFIG_MTD_NAND is not set | ||
375 | |||
376 | # | ||
377 | # OneNAND Flash Device Drivers | ||
378 | # | ||
379 | # CONFIG_MTD_ONENAND is not set | ||
380 | |||
381 | # | ||
382 | # Parallel port support | ||
383 | # | ||
384 | # CONFIG_PARPORT is not set | ||
385 | |||
386 | # | ||
387 | # Plug and Play support | ||
388 | # | ||
389 | |||
390 | # | ||
391 | # Block devices | ||
392 | # | ||
393 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
394 | # CONFIG_BLK_DEV_LOOP is not set | ||
395 | # CONFIG_BLK_DEV_NBD is not set | ||
396 | # CONFIG_BLK_DEV_RAM is not set | ||
397 | # CONFIG_BLK_DEV_INITRD is not set | ||
398 | # CONFIG_CDROM_PKTCDVD is not set | ||
399 | # CONFIG_ATA_OVER_ETH is not set | ||
400 | |||
401 | # | ||
402 | # SCSI device support | ||
403 | # | ||
404 | # CONFIG_RAID_ATTRS is not set | ||
405 | # CONFIG_SCSI is not set | ||
406 | |||
407 | # | ||
408 | # Multi-device support (RAID and LVM) | ||
409 | # | ||
410 | # CONFIG_MD is not set | ||
411 | |||
412 | # | ||
413 | # Fusion MPT device support | ||
414 | # | ||
415 | # CONFIG_FUSION is not set | ||
416 | |||
417 | # | ||
418 | # IEEE 1394 (FireWire) support | ||
419 | # | ||
420 | |||
421 | # | ||
422 | # I2O device support | ||
423 | # | ||
424 | |||
425 | # | ||
426 | # Network device support | ||
427 | # | ||
428 | CONFIG_NETDEVICES=y | ||
429 | # CONFIG_DUMMY is not set | ||
430 | # CONFIG_BONDING is not set | ||
431 | # CONFIG_EQUALIZER is not set | ||
432 | # CONFIG_TUN is not set | ||
433 | |||
434 | # | ||
435 | # PHY device support | ||
436 | # | ||
437 | CONFIG_PHYLIB=y | ||
438 | |||
439 | # | ||
440 | # MII PHY device drivers | ||
441 | # | ||
442 | # CONFIG_MARVELL_PHY is not set | ||
443 | CONFIG_DAVICOM_PHY=y | ||
444 | # CONFIG_QSEMI_PHY is not set | ||
445 | # CONFIG_LXT_PHY is not set | ||
446 | # CONFIG_CICADA_PHY is not set | ||
447 | |||
448 | # | ||
449 | # Ethernet (10 or 100Mbit) | ||
450 | # | ||
451 | CONFIG_NET_ETHERNET=y | ||
452 | CONFIG_MII=y | ||
453 | CONFIG_ARM_AT91_ETHER=y | ||
454 | # CONFIG_SMC91X is not set | ||
455 | # CONFIG_DM9000 is not set | ||
456 | |||
457 | # | ||
458 | # Ethernet (1000 Mbit) | ||
459 | # | ||
460 | |||
461 | # | ||
462 | # Ethernet (10000 Mbit) | ||
463 | # | ||
464 | |||
465 | # | ||
466 | # Token Ring devices | ||
467 | # | ||
468 | |||
469 | # | ||
470 | # Wireless LAN (non-hamradio) | ||
471 | # | ||
472 | # CONFIG_NET_RADIO is not set | ||
473 | |||
474 | # | ||
475 | # Wan interfaces | ||
476 | # | ||
477 | # CONFIG_WAN is not set | ||
478 | # CONFIG_PPP is not set | ||
479 | # CONFIG_SLIP is not set | ||
480 | # CONFIG_SHAPER is not set | ||
481 | # CONFIG_NETCONSOLE is not set | ||
482 | # CONFIG_NETPOLL is not set | ||
483 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
484 | |||
485 | # | ||
486 | # ISDN subsystem | ||
487 | # | ||
488 | # CONFIG_ISDN is not set | ||
489 | |||
490 | # | ||
491 | # Input device support | ||
492 | # | ||
493 | CONFIG_INPUT=y | ||
494 | |||
495 | # | ||
496 | # Userland interfaces | ||
497 | # | ||
498 | CONFIG_INPUT_MOUSEDEV=y | ||
499 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
500 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
501 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
502 | # CONFIG_INPUT_JOYDEV is not set | ||
503 | # CONFIG_INPUT_TSDEV is not set | ||
504 | # CONFIG_INPUT_EVDEV is not set | ||
505 | # CONFIG_INPUT_EVBUG is not set | ||
506 | |||
507 | # | ||
508 | # Input Device Drivers | ||
509 | # | ||
510 | # CONFIG_INPUT_KEYBOARD is not set | ||
511 | # CONFIG_INPUT_MOUSE is not set | ||
512 | # CONFIG_INPUT_JOYSTICK is not set | ||
513 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
514 | # CONFIG_INPUT_MISC is not set | ||
515 | |||
516 | # | ||
517 | # Hardware I/O ports | ||
518 | # | ||
519 | # CONFIG_SERIO is not set | ||
520 | # CONFIG_GAMEPORT is not set | ||
521 | |||
522 | # | ||
523 | # Character devices | ||
524 | # | ||
525 | CONFIG_VT=y | ||
526 | CONFIG_VT_CONSOLE=y | ||
527 | CONFIG_HW_CONSOLE=y | ||
528 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
529 | |||
530 | # | ||
531 | # Serial drivers | ||
532 | # | ||
533 | # CONFIG_SERIAL_8250 is not set | ||
534 | |||
535 | # | ||
536 | # Non-8250 serial port support | ||
537 | # | ||
538 | CONFIG_SERIAL_AT91=y | ||
539 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
540 | # CONFIG_SERIAL_AT91_TTYAT is not set | ||
541 | CONFIG_SERIAL_CORE=y | ||
542 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
543 | CONFIG_UNIX98_PTYS=y | ||
544 | CONFIG_LEGACY_PTYS=y | ||
545 | CONFIG_LEGACY_PTY_COUNT=32 | ||
546 | |||
547 | # | ||
548 | # IPMI | ||
549 | # | ||
550 | # CONFIG_IPMI_HANDLER is not set | ||
551 | |||
552 | # | ||
553 | # Watchdog Cards | ||
554 | # | ||
555 | CONFIG_WATCHDOG=y | ||
556 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
557 | |||
558 | # | ||
559 | # Watchdog Device Drivers | ||
560 | # | ||
561 | # CONFIG_SOFT_WATCHDOG is not set | ||
562 | CONFIG_AT91_WATCHDOG=y | ||
563 | # CONFIG_NVRAM is not set | ||
564 | # CONFIG_DTLK is not set | ||
565 | # CONFIG_R3964 is not set | ||
566 | |||
567 | # | ||
568 | # Ftape, the floppy tape device driver | ||
569 | # | ||
570 | # CONFIG_RAW_DRIVER is not set | ||
571 | |||
572 | # | ||
573 | # TPM devices | ||
574 | # | ||
575 | # CONFIG_TCG_TPM is not set | ||
576 | # CONFIG_TELCLOCK is not set | ||
577 | CONFIG_AT91_SPI=y | ||
578 | CONFIG_AT91_SPIDEV=y | ||
579 | |||
580 | # | ||
581 | # I2C support | ||
582 | # | ||
583 | CONFIG_I2C=y | ||
584 | CONFIG_I2C_CHARDEV=y | ||
585 | |||
586 | # | ||
587 | # I2C Algorithms | ||
588 | # | ||
589 | # CONFIG_I2C_ALGOBIT is not set | ||
590 | # CONFIG_I2C_ALGOPCF is not set | ||
591 | # CONFIG_I2C_ALGOPCA is not set | ||
592 | |||
593 | # | ||
594 | # I2C Hardware Bus support | ||
595 | # | ||
596 | CONFIG_I2C_AT91=y | ||
597 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
598 | # CONFIG_I2C_STUB is not set | ||
599 | # CONFIG_I2C_PCA_ISA is not set | ||
600 | |||
601 | # | ||
602 | # Miscellaneous I2C Chip support | ||
603 | # | ||
604 | # CONFIG_SENSORS_DS1337 is not set | ||
605 | # CONFIG_SENSORS_DS1374 is not set | ||
606 | # CONFIG_SENSORS_EEPROM is not set | ||
607 | # CONFIG_SENSORS_PCF8574 is not set | ||
608 | # CONFIG_SENSORS_PCA9539 is not set | ||
609 | # CONFIG_SENSORS_PCF8591 is not set | ||
610 | # CONFIG_SENSORS_MAX6875 is not set | ||
611 | # CONFIG_I2C_DEBUG_CORE is not set | ||
612 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
613 | # CONFIG_I2C_DEBUG_BUS is not set | ||
614 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
615 | |||
616 | # | ||
617 | # SPI support | ||
618 | # | ||
619 | # CONFIG_SPI is not set | ||
620 | # CONFIG_SPI_MASTER is not set | ||
621 | |||
622 | # | ||
623 | # Dallas's 1-wire bus | ||
624 | # | ||
625 | # CONFIG_W1 is not set | ||
626 | |||
627 | # | ||
628 | # Hardware Monitoring support | ||
629 | # | ||
630 | # CONFIG_HWMON is not set | ||
631 | # CONFIG_HWMON_VID is not set | ||
632 | |||
633 | # | ||
634 | # Misc devices | ||
635 | # | ||
636 | |||
637 | # | ||
638 | # LED devices | ||
639 | # | ||
640 | # CONFIG_NEW_LEDS is not set | ||
641 | |||
642 | # | ||
643 | # LED drivers | ||
644 | # | ||
645 | |||
646 | # | ||
647 | # LED Triggers | ||
648 | # | ||
649 | |||
650 | # | ||
651 | # Multimedia devices | ||
652 | # | ||
653 | # CONFIG_VIDEO_DEV is not set | ||
654 | |||
655 | # | ||
656 | # Digital Video Broadcasting Devices | ||
657 | # | ||
658 | # CONFIG_DVB is not set | ||
659 | |||
660 | # | ||
661 | # Graphics support | ||
662 | # | ||
663 | # CONFIG_FB is not set | ||
664 | |||
665 | # | ||
666 | # Console display driver support | ||
667 | # | ||
668 | # CONFIG_VGA_CONSOLE is not set | ||
669 | CONFIG_DUMMY_CONSOLE=y | ||
670 | |||
671 | # | ||
672 | # Sound | ||
673 | # | ||
674 | # CONFIG_SOUND is not set | ||
675 | |||
676 | # | ||
677 | # USB support | ||
678 | # | ||
679 | CONFIG_USB_ARCH_HAS_HCD=y | ||
680 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
681 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
682 | # CONFIG_USB is not set | ||
683 | |||
684 | # | ||
685 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
686 | # | ||
687 | |||
688 | # | ||
689 | # USB Gadget Support | ||
690 | # | ||
691 | # CONFIG_USB_GADGET is not set | ||
692 | |||
693 | # | ||
694 | # MMC/SD Card support | ||
695 | # | ||
696 | # CONFIG_MMC is not set | ||
697 | |||
698 | # | ||
699 | # Real Time Clock | ||
700 | # | ||
701 | CONFIG_RTC_LIB=y | ||
702 | CONFIG_RTC_CLASS=y | ||
703 | # CONFIG_RTC_HCTOSYS is not set | ||
704 | |||
705 | # | ||
706 | # RTC interfaces | ||
707 | # | ||
708 | CONFIG_RTC_INTF_SYSFS=y | ||
709 | CONFIG_RTC_INTF_PROC=y | ||
710 | CONFIG_RTC_INTF_DEV=y | ||
711 | |||
712 | # | ||
713 | # RTC drivers | ||
714 | # | ||
715 | # CONFIG_RTC_DRV_X1205 is not set | ||
716 | # CONFIG_RTC_DRV_DS1672 is not set | ||
717 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
718 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
719 | # CONFIG_RTC_DRV_M48T86 is not set | ||
720 | CONFIG_RTC_DRV_AT91=y | ||
721 | # CONFIG_RTC_DRV_TEST is not set | ||
722 | |||
723 | # | ||
724 | # File systems | ||
725 | # | ||
726 | # CONFIG_EXT2_FS is not set | ||
727 | CONFIG_EXT3_FS=y | ||
728 | # CONFIG_EXT3_FS_XATTR is not set | ||
729 | CONFIG_JBD=y | ||
730 | # CONFIG_JBD_DEBUG is not set | ||
731 | # CONFIG_REISERFS_FS is not set | ||
732 | # CONFIG_JFS_FS is not set | ||
733 | # CONFIG_FS_POSIX_ACL is not set | ||
734 | # CONFIG_XFS_FS is not set | ||
735 | # CONFIG_OCFS2_FS is not set | ||
736 | # CONFIG_MINIX_FS is not set | ||
737 | # CONFIG_ROMFS_FS is not set | ||
738 | # CONFIG_INOTIFY is not set | ||
739 | # CONFIG_QUOTA is not set | ||
740 | CONFIG_DNOTIFY=y | ||
741 | # CONFIG_AUTOFS_FS is not set | ||
742 | # CONFIG_AUTOFS4_FS is not set | ||
743 | # CONFIG_FUSE_FS is not set | ||
744 | |||
745 | # | ||
746 | # CD-ROM/DVD Filesystems | ||
747 | # | ||
748 | # CONFIG_ISO9660_FS is not set | ||
749 | # CONFIG_UDF_FS is not set | ||
750 | |||
751 | # | ||
752 | # DOS/FAT/NT Filesystems | ||
753 | # | ||
754 | # CONFIG_MSDOS_FS is not set | ||
755 | # CONFIG_VFAT_FS is not set | ||
756 | # CONFIG_NTFS_FS is not set | ||
757 | |||
758 | # | ||
759 | # Pseudo filesystems | ||
760 | # | ||
761 | CONFIG_PROC_FS=y | ||
762 | CONFIG_SYSFS=y | ||
763 | CONFIG_TMPFS=y | ||
764 | # CONFIG_HUGETLB_PAGE is not set | ||
765 | CONFIG_RAMFS=y | ||
766 | # CONFIG_CONFIGFS_FS is not set | ||
767 | |||
768 | # | ||
769 | # Miscellaneous filesystems | ||
770 | # | ||
771 | # CONFIG_ADFS_FS is not set | ||
772 | # CONFIG_AFFS_FS is not set | ||
773 | # CONFIG_HFS_FS is not set | ||
774 | # CONFIG_HFSPLUS_FS is not set | ||
775 | # CONFIG_BEFS_FS is not set | ||
776 | # CONFIG_BFS_FS is not set | ||
777 | # CONFIG_EFS_FS is not set | ||
778 | # CONFIG_JFFS_FS is not set | ||
779 | # CONFIG_JFFS2_FS is not set | ||
780 | CONFIG_CRAMFS=y | ||
781 | # CONFIG_VXFS_FS is not set | ||
782 | # CONFIG_HPFS_FS is not set | ||
783 | # CONFIG_QNX4FS_FS is not set | ||
784 | # CONFIG_SYSV_FS is not set | ||
785 | # CONFIG_UFS_FS is not set | ||
786 | |||
787 | # | ||
788 | # Network File Systems | ||
789 | # | ||
790 | CONFIG_NFS_FS=m | ||
791 | CONFIG_NFS_V3=y | ||
792 | # CONFIG_NFS_V3_ACL is not set | ||
793 | # CONFIG_NFS_V4 is not set | ||
794 | # CONFIG_NFS_DIRECTIO is not set | ||
795 | # CONFIG_NFSD is not set | ||
796 | CONFIG_LOCKD=m | ||
797 | CONFIG_LOCKD_V4=y | ||
798 | CONFIG_NFS_COMMON=y | ||
799 | CONFIG_SUNRPC=m | ||
800 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
801 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
802 | # CONFIG_SMB_FS is not set | ||
803 | # CONFIG_CIFS is not set | ||
804 | # CONFIG_NCP_FS is not set | ||
805 | # CONFIG_CODA_FS is not set | ||
806 | # CONFIG_AFS_FS is not set | ||
807 | # CONFIG_9P_FS is not set | ||
808 | |||
809 | # | ||
810 | # Partition Types | ||
811 | # | ||
812 | # CONFIG_PARTITION_ADVANCED is not set | ||
813 | CONFIG_MSDOS_PARTITION=y | ||
814 | |||
815 | # | ||
816 | # Native Language Support | ||
817 | # | ||
818 | # CONFIG_NLS is not set | ||
819 | |||
820 | # | ||
821 | # Profiling support | ||
822 | # | ||
823 | # CONFIG_PROFILING is not set | ||
824 | |||
825 | # | ||
826 | # Kernel hacking | ||
827 | # | ||
828 | # CONFIG_PRINTK_TIME is not set | ||
829 | # CONFIG_MAGIC_SYSRQ is not set | ||
830 | # CONFIG_DEBUG_KERNEL is not set | ||
831 | CONFIG_LOG_BUF_SHIFT=14 | ||
832 | CONFIG_DEBUG_BUGVERBOSE=y | ||
833 | # CONFIG_DEBUG_FS is not set | ||
834 | CONFIG_FRAME_POINTER=y | ||
835 | # CONFIG_UNWIND_INFO is not set | ||
836 | # CONFIG_DEBUG_USER is not set | ||
837 | |||
838 | # | ||
839 | # Security options | ||
840 | # | ||
841 | # CONFIG_KEYS is not set | ||
842 | # CONFIG_SECURITY is not set | ||
843 | |||
844 | # | ||
845 | # Cryptographic options | ||
846 | # | ||
847 | CONFIG_CRYPTO=y | ||
848 | # CONFIG_CRYPTO_HMAC is not set | ||
849 | # CONFIG_CRYPTO_NULL is not set | ||
850 | # CONFIG_CRYPTO_MD4 is not set | ||
851 | CONFIG_CRYPTO_MD5=y | ||
852 | # CONFIG_CRYPTO_SHA1 is not set | ||
853 | # CONFIG_CRYPTO_SHA256 is not set | ||
854 | # CONFIG_CRYPTO_SHA512 is not set | ||
855 | # CONFIG_CRYPTO_WP512 is not set | ||
856 | # CONFIG_CRYPTO_TGR192 is not set | ||
857 | CONFIG_CRYPTO_DES=y | ||
858 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
859 | # CONFIG_CRYPTO_TWOFISH is not set | ||
860 | # CONFIG_CRYPTO_SERPENT is not set | ||
861 | # CONFIG_CRYPTO_AES is not set | ||
862 | # CONFIG_CRYPTO_CAST5 is not set | ||
863 | # CONFIG_CRYPTO_CAST6 is not set | ||
864 | # CONFIG_CRYPTO_TEA is not set | ||
865 | # CONFIG_CRYPTO_ARC4 is not set | ||
866 | # CONFIG_CRYPTO_KHAZAD is not set | ||
867 | # CONFIG_CRYPTO_ANUBIS is not set | ||
868 | # CONFIG_CRYPTO_DEFLATE is not set | ||
869 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
870 | # CONFIG_CRYPTO_CRC32C is not set | ||
871 | # CONFIG_CRYPTO_TEST is not set | ||
872 | |||
873 | # | ||
874 | # Hardware crypto devices | ||
875 | # | ||
876 | |||
877 | # | ||
878 | # Library routines | ||
879 | # | ||
880 | # CONFIG_CRC_CCITT is not set | ||
881 | # CONFIG_CRC16 is not set | ||
882 | CONFIG_CRC32=y | ||
883 | # CONFIG_LIBCRC32C is not set | ||
884 | CONFIG_ZLIB_INFLATE=y | ||
diff --git a/arch/arm/configs/kb9202_defconfig b/arch/arm/configs/kb9202_defconfig new file mode 100644 index 000000000000..fee4f566452e --- /dev/null +++ b/arch/arm/configs/kb9202_defconfig | |||
@@ -0,0 +1,780 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.13-rc2 | ||
4 | # Sun Aug 14 19:26:59 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | |||
12 | # | ||
13 | # Code maturity level options | ||
14 | # | ||
15 | # CONFIG_EXPERIMENTAL is not set | ||
16 | CONFIG_CLEAN_COMPILE=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
19 | |||
20 | # | ||
21 | # General setup | ||
22 | # | ||
23 | CONFIG_LOCALVERSION="" | ||
24 | # CONFIG_SWAP is not set | ||
25 | # CONFIG_SYSVIPC is not set | ||
26 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
27 | CONFIG_SYSCTL=y | ||
28 | # CONFIG_AUDIT is not set | ||
29 | CONFIG_HOTPLUG=y | ||
30 | # CONFIG_KOBJECT_UEVENT is not set | ||
31 | # CONFIG_IKCONFIG is not set | ||
32 | # CONFIG_EMBEDDED is not set | ||
33 | CONFIG_KALLSYMS=y | ||
34 | # CONFIG_KALLSYMS_ALL is not set | ||
35 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
36 | CONFIG_PRINTK=y | ||
37 | CONFIG_BUG=y | ||
38 | CONFIG_BASE_FULL=y | ||
39 | CONFIG_FUTEX=y | ||
40 | CONFIG_EPOLL=y | ||
41 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
42 | CONFIG_SHMEM=y | ||
43 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
44 | CONFIG_CC_ALIGN_LABELS=0 | ||
45 | CONFIG_CC_ALIGN_LOOPS=0 | ||
46 | CONFIG_CC_ALIGN_JUMPS=0 | ||
47 | # CONFIG_TINY_SHMEM is not set | ||
48 | CONFIG_BASE_SMALL=0 | ||
49 | |||
50 | # | ||
51 | # Loadable module support | ||
52 | # | ||
53 | CONFIG_MODULES=y | ||
54 | CONFIG_MODULE_UNLOAD=y | ||
55 | CONFIG_OBSOLETE_MODPARM=y | ||
56 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
57 | CONFIG_KMOD=y | ||
58 | |||
59 | # | ||
60 | # System Type | ||
61 | # | ||
62 | # CONFIG_ARCH_CLPS7500 is not set | ||
63 | # CONFIG_ARCH_CLPS711X is not set | ||
64 | # CONFIG_ARCH_CO285 is not set | ||
65 | # CONFIG_ARCH_EBSA110 is not set | ||
66 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
67 | # CONFIG_ARCH_INTEGRATOR is not set | ||
68 | # CONFIG_ARCH_IOP3XX is not set | ||
69 | # CONFIG_ARCH_IXP4XX is not set | ||
70 | # CONFIG_ARCH_IXP2000 is not set | ||
71 | # CONFIG_ARCH_L7200 is not set | ||
72 | # CONFIG_ARCH_PXA is not set | ||
73 | # CONFIG_ARCH_RPC is not set | ||
74 | # CONFIG_ARCH_SA1100 is not set | ||
75 | # CONFIG_ARCH_S3C2410 is not set | ||
76 | # CONFIG_ARCH_SHARK is not set | ||
77 | # CONFIG_ARCH_LH7A40X is not set | ||
78 | # CONFIG_ARCH_OMAP is not set | ||
79 | # CONFIG_ARCH_VERSATILE is not set | ||
80 | # CONFIG_ARCH_IMX is not set | ||
81 | # CONFIG_ARCH_H720X is not set | ||
82 | # CONFIG_ARCH_AAEC2000 is not set | ||
83 | CONFIG_ARCH_AT91RM9200=y | ||
84 | |||
85 | # | ||
86 | # AT91RM9200 Implementations | ||
87 | # | ||
88 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
89 | # CONFIG_MACH_AT91RM9200EK is not set | ||
90 | # CONFIG_MACH_CSB337 is not set | ||
91 | # CONFIG_MACH_CSB637 is not set | ||
92 | # CONFIG_MACH_CARMEVA is not set | ||
93 | CONFIG_MACH_KB9200=y | ||
94 | |||
95 | # | ||
96 | # Processor Type | ||
97 | # | ||
98 | CONFIG_CPU_32=y | ||
99 | CONFIG_CPU_ARM920T=y | ||
100 | CONFIG_CPU_32v4=y | ||
101 | CONFIG_CPU_ABRT_EV4T=y | ||
102 | CONFIG_CPU_CACHE_V4WT=y | ||
103 | CONFIG_CPU_CACHE_VIVT=y | ||
104 | CONFIG_CPU_COPY_V4WB=y | ||
105 | CONFIG_CPU_TLB_V4WBI=y | ||
106 | |||
107 | # | ||
108 | # Processor Features | ||
109 | # | ||
110 | CONFIG_ARM_THUMB=y | ||
111 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
112 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
113 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
114 | |||
115 | # | ||
116 | # Bus support | ||
117 | # | ||
118 | CONFIG_ISA_DMA_API=y | ||
119 | |||
120 | # | ||
121 | # PCCARD (PCMCIA/CardBus) support | ||
122 | # | ||
123 | # CONFIG_PCCARD is not set | ||
124 | |||
125 | # | ||
126 | # Kernel Features | ||
127 | # | ||
128 | # CONFIG_NO_IDLE_HZ is not set | ||
129 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
130 | CONFIG_FLATMEM=y | ||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
132 | # CONFIG_LEDS is not set | ||
133 | CONFIG_ALIGNMENT_TRAP=y | ||
134 | |||
135 | # | ||
136 | # Boot options | ||
137 | # | ||
138 | CONFIG_ZBOOT_ROM_TEXT=0x10000000 | ||
139 | CONFIG_ZBOOT_ROM_BSS=0x20040000 | ||
140 | CONFIG_ZBOOT_ROM=y | ||
141 | CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/ram rw initrd=0x20210000,654933" | ||
142 | |||
143 | # | ||
144 | # Floating point emulation | ||
145 | # | ||
146 | |||
147 | # | ||
148 | # At least one emulation must be selected | ||
149 | # | ||
150 | CONFIG_FPE_NWFPE=y | ||
151 | # CONFIG_FPE_NWFPE_XP is not set | ||
152 | |||
153 | # | ||
154 | # Userspace binary formats | ||
155 | # | ||
156 | CONFIG_BINFMT_ELF=y | ||
157 | CONFIG_BINFMT_AOUT=y | ||
158 | CONFIG_BINFMT_MISC=y | ||
159 | # CONFIG_ARTHUR is not set | ||
160 | |||
161 | # | ||
162 | # Power management options | ||
163 | # | ||
164 | # CONFIG_PM is not set | ||
165 | |||
166 | # | ||
167 | # Device Drivers | ||
168 | # | ||
169 | |||
170 | # | ||
171 | # Generic Driver Options | ||
172 | # | ||
173 | CONFIG_STANDALONE=y | ||
174 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
175 | # CONFIG_FW_LOADER is not set | ||
176 | CONFIG_DEBUG_DRIVER=y | ||
177 | |||
178 | # | ||
179 | # Memory Technology Devices (MTD) | ||
180 | # | ||
181 | # CONFIG_MTD is not set | ||
182 | |||
183 | # | ||
184 | # Parallel port support | ||
185 | # | ||
186 | # CONFIG_PARPORT is not set | ||
187 | |||
188 | # | ||
189 | # Plug and Play support | ||
190 | # | ||
191 | |||
192 | # | ||
193 | # Block devices | ||
194 | # | ||
195 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
196 | CONFIG_BLK_DEV_LOOP=y | ||
197 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
198 | CONFIG_BLK_DEV_NBD=y | ||
199 | # CONFIG_BLK_DEV_UB is not set | ||
200 | CONFIG_BLK_DEV_RAM=y | ||
201 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
202 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
203 | CONFIG_BLK_DEV_INITRD=y | ||
204 | CONFIG_INITRAMFS_SOURCE="" | ||
205 | # CONFIG_CDROM_PKTCDVD is not set | ||
206 | |||
207 | # | ||
208 | # IO Schedulers | ||
209 | # | ||
210 | CONFIG_IOSCHED_NOOP=y | ||
211 | CONFIG_IOSCHED_AS=y | ||
212 | CONFIG_IOSCHED_DEADLINE=y | ||
213 | CONFIG_IOSCHED_CFQ=y | ||
214 | # CONFIG_ATA_OVER_ETH is not set | ||
215 | |||
216 | # | ||
217 | # SCSI device support | ||
218 | # | ||
219 | CONFIG_SCSI=y | ||
220 | CONFIG_SCSI_PROC_FS=y | ||
221 | |||
222 | # | ||
223 | # SCSI support type (disk, tape, CD-ROM) | ||
224 | # | ||
225 | CONFIG_BLK_DEV_SD=y | ||
226 | # CONFIG_CHR_DEV_ST is not set | ||
227 | # CONFIG_CHR_DEV_OSST is not set | ||
228 | # CONFIG_BLK_DEV_SR is not set | ||
229 | CONFIG_CHR_DEV_SG=y | ||
230 | # CONFIG_CHR_DEV_SCH is not set | ||
231 | |||
232 | # | ||
233 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
234 | # | ||
235 | # CONFIG_SCSI_MULTI_LUN is not set | ||
236 | # CONFIG_SCSI_CONSTANTS is not set | ||
237 | # CONFIG_SCSI_LOGGING is not set | ||
238 | |||
239 | # | ||
240 | # SCSI Transport Attributes | ||
241 | # | ||
242 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
243 | # CONFIG_SCSI_FC_ATTRS is not set | ||
244 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
245 | |||
246 | # | ||
247 | # SCSI low-level drivers | ||
248 | # | ||
249 | # CONFIG_SCSI_SATA is not set | ||
250 | # CONFIG_SCSI_DEBUG is not set | ||
251 | |||
252 | # | ||
253 | # Multi-device support (RAID and LVM) | ||
254 | # | ||
255 | # CONFIG_MD is not set | ||
256 | |||
257 | # | ||
258 | # Fusion MPT device support | ||
259 | # | ||
260 | # CONFIG_FUSION is not set | ||
261 | |||
262 | # | ||
263 | # IEEE 1394 (FireWire) support | ||
264 | # | ||
265 | |||
266 | # | ||
267 | # I2O device support | ||
268 | # | ||
269 | |||
270 | # | ||
271 | # Networking support | ||
272 | # | ||
273 | CONFIG_NET=y | ||
274 | |||
275 | # | ||
276 | # Networking options | ||
277 | # | ||
278 | CONFIG_PACKET=y | ||
279 | # CONFIG_PACKET_MMAP is not set | ||
280 | CONFIG_UNIX=y | ||
281 | # CONFIG_NET_KEY is not set | ||
282 | CONFIG_INET=y | ||
283 | CONFIG_IP_MULTICAST=y | ||
284 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
285 | CONFIG_IP_FIB_HASH=y | ||
286 | CONFIG_IP_PNP=y | ||
287 | CONFIG_IP_PNP_DHCP=y | ||
288 | # CONFIG_IP_PNP_BOOTP is not set | ||
289 | # CONFIG_IP_PNP_RARP is not set | ||
290 | # CONFIG_NET_IPIP is not set | ||
291 | # CONFIG_NET_IPGRE is not set | ||
292 | # CONFIG_IP_MROUTE is not set | ||
293 | # CONFIG_SYN_COOKIES is not set | ||
294 | # CONFIG_INET_AH is not set | ||
295 | # CONFIG_INET_ESP is not set | ||
296 | # CONFIG_INET_IPCOMP is not set | ||
297 | # CONFIG_INET_TUNNEL is not set | ||
298 | # CONFIG_IP_TCPDIAG is not set | ||
299 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
300 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
301 | CONFIG_TCP_CONG_BIC=y | ||
302 | # CONFIG_IPV6 is not set | ||
303 | # CONFIG_NETFILTER is not set | ||
304 | # CONFIG_BRIDGE is not set | ||
305 | # CONFIG_VLAN_8021Q is not set | ||
306 | # CONFIG_DECNET is not set | ||
307 | # CONFIG_LLC2 is not set | ||
308 | # CONFIG_IPX is not set | ||
309 | # CONFIG_ATALK is not set | ||
310 | |||
311 | # | ||
312 | # QoS and/or fair queueing | ||
313 | # | ||
314 | # CONFIG_NET_SCHED is not set | ||
315 | # CONFIG_NET_CLS_ROUTE is not set | ||
316 | |||
317 | # | ||
318 | # Network testing | ||
319 | # | ||
320 | # CONFIG_NET_PKTGEN is not set | ||
321 | # CONFIG_NETPOLL is not set | ||
322 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
323 | # CONFIG_HAMRADIO is not set | ||
324 | # CONFIG_IRDA is not set | ||
325 | # CONFIG_BT is not set | ||
326 | CONFIG_NETDEVICES=y | ||
327 | # CONFIG_DUMMY is not set | ||
328 | # CONFIG_BONDING is not set | ||
329 | # CONFIG_EQUALIZER is not set | ||
330 | # CONFIG_TUN is not set | ||
331 | |||
332 | # | ||
333 | # Ethernet (10 or 100Mbit) | ||
334 | # | ||
335 | CONFIG_NET_ETHERNET=y | ||
336 | CONFIG_MII=y | ||
337 | CONFIG_ARM_AT91_ETHER=y | ||
338 | # CONFIG_SMC91X is not set | ||
339 | # CONFIG_DM9000 is not set | ||
340 | |||
341 | # | ||
342 | # Ethernet (1000 Mbit) | ||
343 | # | ||
344 | |||
345 | # | ||
346 | # Ethernet (10000 Mbit) | ||
347 | # | ||
348 | |||
349 | # | ||
350 | # Token Ring devices | ||
351 | # | ||
352 | |||
353 | # | ||
354 | # Wireless LAN (non-hamradio) | ||
355 | # | ||
356 | # CONFIG_NET_RADIO is not set | ||
357 | |||
358 | # | ||
359 | # Wan interfaces | ||
360 | # | ||
361 | # CONFIG_WAN is not set | ||
362 | # CONFIG_PPP is not set | ||
363 | # CONFIG_SLIP is not set | ||
364 | |||
365 | # | ||
366 | # ISDN subsystem | ||
367 | # | ||
368 | # CONFIG_ISDN is not set | ||
369 | |||
370 | # | ||
371 | # Input device support | ||
372 | # | ||
373 | CONFIG_INPUT=y | ||
374 | |||
375 | # | ||
376 | # Userland interfaces | ||
377 | # | ||
378 | CONFIG_INPUT_MOUSEDEV=y | ||
379 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
380 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
381 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
382 | # CONFIG_INPUT_JOYDEV is not set | ||
383 | # CONFIG_INPUT_TSDEV is not set | ||
384 | # CONFIG_INPUT_EVDEV is not set | ||
385 | # CONFIG_INPUT_EVBUG is not set | ||
386 | |||
387 | # | ||
388 | # Input Device Drivers | ||
389 | # | ||
390 | # CONFIG_INPUT_KEYBOARD is not set | ||
391 | # CONFIG_INPUT_MOUSE is not set | ||
392 | # CONFIG_INPUT_JOYSTICK is not set | ||
393 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
394 | # CONFIG_INPUT_MISC is not set | ||
395 | |||
396 | # | ||
397 | # Hardware I/O ports | ||
398 | # | ||
399 | CONFIG_SERIO=y | ||
400 | # CONFIG_SERIO_SERPORT is not set | ||
401 | # CONFIG_SERIO_RAW is not set | ||
402 | # CONFIG_GAMEPORT is not set | ||
403 | |||
404 | # | ||
405 | # Character devices | ||
406 | # | ||
407 | CONFIG_VT=y | ||
408 | CONFIG_VT_CONSOLE=y | ||
409 | CONFIG_HW_CONSOLE=y | ||
410 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
411 | |||
412 | # | ||
413 | # Serial drivers | ||
414 | # | ||
415 | # CONFIG_SERIAL_8250 is not set | ||
416 | |||
417 | # | ||
418 | # Non-8250 serial port support | ||
419 | # | ||
420 | CONFIG_SERIAL_AT91=y | ||
421 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
422 | CONFIG_SERIAL_CORE=y | ||
423 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
424 | CONFIG_UNIX98_PTYS=y | ||
425 | CONFIG_LEGACY_PTYS=y | ||
426 | CONFIG_LEGACY_PTY_COUNT=256 | ||
427 | |||
428 | # | ||
429 | # IPMI | ||
430 | # | ||
431 | # CONFIG_IPMI_HANDLER is not set | ||
432 | |||
433 | # | ||
434 | # Watchdog Cards | ||
435 | # | ||
436 | # CONFIG_WATCHDOG is not set | ||
437 | # CONFIG_NVRAM is not set | ||
438 | # CONFIG_RTC is not set | ||
439 | # CONFIG_AT91_RTC is not set | ||
440 | # CONFIG_DTLK is not set | ||
441 | # CONFIG_R3964 is not set | ||
442 | |||
443 | # | ||
444 | # Ftape, the floppy tape device driver | ||
445 | # | ||
446 | # CONFIG_RAW_DRIVER is not set | ||
447 | |||
448 | # | ||
449 | # TPM devices | ||
450 | # | ||
451 | # CONFIG_AT91_SPI is not set | ||
452 | |||
453 | # | ||
454 | # I2C support | ||
455 | # | ||
456 | # CONFIG_I2C is not set | ||
457 | |||
458 | # | ||
459 | # Misc devices | ||
460 | # | ||
461 | |||
462 | # | ||
463 | # Multimedia devices | ||
464 | # | ||
465 | # CONFIG_VIDEO_DEV is not set | ||
466 | |||
467 | # | ||
468 | # Digital Video Broadcasting Devices | ||
469 | # | ||
470 | # CONFIG_DVB is not set | ||
471 | |||
472 | # | ||
473 | # Graphics support | ||
474 | # | ||
475 | # CONFIG_FB is not set | ||
476 | |||
477 | # | ||
478 | # Console display driver support | ||
479 | # | ||
480 | # CONFIG_VGA_CONSOLE is not set | ||
481 | CONFIG_DUMMY_CONSOLE=y | ||
482 | |||
483 | # | ||
484 | # Sound | ||
485 | # | ||
486 | # CONFIG_SOUND is not set | ||
487 | |||
488 | # | ||
489 | # USB support | ||
490 | # | ||
491 | CONFIG_USB_ARCH_HAS_HCD=y | ||
492 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
493 | CONFIG_USB=y | ||
494 | CONFIG_USB_DEBUG=y | ||
495 | |||
496 | # | ||
497 | # Miscellaneous USB options | ||
498 | # | ||
499 | CONFIG_USB_DEVICEFS=y | ||
500 | |||
501 | # | ||
502 | # USB Host Controller Drivers | ||
503 | # | ||
504 | # CONFIG_USB_ISP116X_HCD is not set | ||
505 | CONFIG_USB_OHCI_HCD=y | ||
506 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
507 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
508 | # CONFIG_USB_SL811_HCD is not set | ||
509 | |||
510 | # | ||
511 | # USB Device Class drivers | ||
512 | # | ||
513 | # CONFIG_USB_BLUETOOTH_TTY is not set | ||
514 | # CONFIG_USB_ACM is not set | ||
515 | # CONFIG_USB_PRINTER is not set | ||
516 | |||
517 | # | ||
518 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information | ||
519 | # | ||
520 | CONFIG_USB_STORAGE=y | ||
521 | CONFIG_USB_STORAGE_DEBUG=y | ||
522 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
523 | # CONFIG_USB_STORAGE_DPCM is not set | ||
524 | |||
525 | # | ||
526 | # USB Input Devices | ||
527 | # | ||
528 | # CONFIG_USB_HID is not set | ||
529 | |||
530 | # | ||
531 | # USB HID Boot Protocol drivers | ||
532 | # | ||
533 | # CONFIG_USB_KBD is not set | ||
534 | # CONFIG_USB_MOUSE is not set | ||
535 | # CONFIG_USB_AIPTEK is not set | ||
536 | # CONFIG_USB_WACOM is not set | ||
537 | # CONFIG_USB_ACECAD is not set | ||
538 | # CONFIG_USB_KBTAB is not set | ||
539 | # CONFIG_USB_POWERMATE is not set | ||
540 | # CONFIG_USB_MTOUCH is not set | ||
541 | # CONFIG_USB_ITMTOUCH is not set | ||
542 | # CONFIG_USB_EGALAX is not set | ||
543 | # CONFIG_USB_XPAD is not set | ||
544 | # CONFIG_USB_ATI_REMOTE is not set | ||
545 | |||
546 | # | ||
547 | # USB Imaging devices | ||
548 | # | ||
549 | # CONFIG_USB_MICROTEK is not set | ||
550 | |||
551 | # | ||
552 | # USB Multimedia devices | ||
553 | # | ||
554 | # CONFIG_USB_DABUSB is not set | ||
555 | |||
556 | # | ||
557 | # Video4Linux support is needed for USB Multimedia device support | ||
558 | # | ||
559 | |||
560 | # | ||
561 | # USB Network Adapters | ||
562 | # | ||
563 | # CONFIG_USB_KAWETH is not set | ||
564 | # CONFIG_USB_PEGASUS is not set | ||
565 | # CONFIG_USB_USBNET is not set | ||
566 | # CONFIG_USB_MON is not set | ||
567 | |||
568 | # | ||
569 | # USB port drivers | ||
570 | # | ||
571 | |||
572 | # | ||
573 | # USB Serial Converter support | ||
574 | # | ||
575 | # CONFIG_USB_SERIAL is not set | ||
576 | |||
577 | # | ||
578 | # USB Miscellaneous drivers | ||
579 | # | ||
580 | # CONFIG_USB_EMI62 is not set | ||
581 | # CONFIG_USB_EMI26 is not set | ||
582 | # CONFIG_USB_LCD is not set | ||
583 | # CONFIG_USB_LED is not set | ||
584 | # CONFIG_USB_CYTHERM is not set | ||
585 | # CONFIG_USB_PHIDGETKIT is not set | ||
586 | # CONFIG_USB_PHIDGETSERVO is not set | ||
587 | # CONFIG_USB_IDMOUSE is not set | ||
588 | |||
589 | # | ||
590 | # USB DSL modem support | ||
591 | # | ||
592 | |||
593 | # | ||
594 | # USB Gadget Support | ||
595 | # | ||
596 | # CONFIG_USB_GADGET is not set | ||
597 | |||
598 | # | ||
599 | # MMC/SD Card support | ||
600 | # | ||
601 | # CONFIG_MMC is not set | ||
602 | |||
603 | # | ||
604 | # File systems | ||
605 | # | ||
606 | CONFIG_EXT2_FS=y | ||
607 | CONFIG_EXT2_FS_XATTR=y | ||
608 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
609 | # CONFIG_EXT2_FS_SECURITY is not set | ||
610 | # CONFIG_EXT2_FS_XIP is not set | ||
611 | CONFIG_EXT3_FS=y | ||
612 | CONFIG_EXT3_FS_XATTR=y | ||
613 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
614 | # CONFIG_EXT3_FS_SECURITY is not set | ||
615 | CONFIG_JBD=y | ||
616 | # CONFIG_JBD_DEBUG is not set | ||
617 | CONFIG_FS_MBCACHE=y | ||
618 | # CONFIG_REISERFS_FS is not set | ||
619 | # CONFIG_JFS_FS is not set | ||
620 | |||
621 | # | ||
622 | # XFS support | ||
623 | # | ||
624 | # CONFIG_XFS_FS is not set | ||
625 | # CONFIG_MINIX_FS is not set | ||
626 | # CONFIG_ROMFS_FS is not set | ||
627 | # CONFIG_QUOTA is not set | ||
628 | CONFIG_DNOTIFY=y | ||
629 | CONFIG_AUTOFS_FS=y | ||
630 | CONFIG_AUTOFS4_FS=y | ||
631 | |||
632 | # | ||
633 | # CD-ROM/DVD Filesystems | ||
634 | # | ||
635 | # CONFIG_ISO9660_FS is not set | ||
636 | # CONFIG_UDF_FS is not set | ||
637 | |||
638 | # | ||
639 | # DOS/FAT/NT Filesystems | ||
640 | # | ||
641 | CONFIG_FAT_FS=y | ||
642 | CONFIG_MSDOS_FS=y | ||
643 | CONFIG_VFAT_FS=y | ||
644 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
645 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
646 | # CONFIG_NTFS_FS is not set | ||
647 | |||
648 | # | ||
649 | # Pseudo filesystems | ||
650 | # | ||
651 | CONFIG_PROC_FS=y | ||
652 | CONFIG_SYSFS=y | ||
653 | CONFIG_DEVPTS_FS_XATTR=y | ||
654 | # CONFIG_DEVPTS_FS_SECURITY is not set | ||
655 | CONFIG_TMPFS=y | ||
656 | # CONFIG_TMPFS_XATTR is not set | ||
657 | # CONFIG_HUGETLB_PAGE is not set | ||
658 | CONFIG_RAMFS=y | ||
659 | |||
660 | # | ||
661 | # Miscellaneous filesystems | ||
662 | # | ||
663 | # CONFIG_HFSPLUS_FS is not set | ||
664 | # CONFIG_CRAMFS is not set | ||
665 | # CONFIG_VXFS_FS is not set | ||
666 | # CONFIG_HPFS_FS is not set | ||
667 | # CONFIG_QNX4FS_FS is not set | ||
668 | # CONFIG_SYSV_FS is not set | ||
669 | # CONFIG_UFS_FS is not set | ||
670 | |||
671 | # | ||
672 | # Network File Systems | ||
673 | # | ||
674 | CONFIG_NFS_FS=y | ||
675 | CONFIG_NFS_V3=y | ||
676 | # CONFIG_NFS_V3_ACL is not set | ||
677 | # CONFIG_NFSD is not set | ||
678 | CONFIG_ROOT_NFS=y | ||
679 | CONFIG_LOCKD=y | ||
680 | CONFIG_LOCKD_V4=y | ||
681 | CONFIG_NFS_COMMON=y | ||
682 | CONFIG_SUNRPC=y | ||
683 | # CONFIG_SMB_FS is not set | ||
684 | # CONFIG_CIFS is not set | ||
685 | # CONFIG_NCP_FS is not set | ||
686 | # CONFIG_CODA_FS is not set | ||
687 | |||
688 | # | ||
689 | # Partition Types | ||
690 | # | ||
691 | # CONFIG_PARTITION_ADVANCED is not set | ||
692 | CONFIG_MSDOS_PARTITION=y | ||
693 | |||
694 | # | ||
695 | # Native Language Support | ||
696 | # | ||
697 | CONFIG_NLS=y | ||
698 | CONFIG_NLS_DEFAULT="utf8" | ||
699 | CONFIG_NLS_CODEPAGE_437=y | ||
700 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
701 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
702 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
703 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
704 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
705 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
706 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
707 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
708 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
709 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
710 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
711 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
712 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
713 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
714 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
715 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
716 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
717 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
718 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
719 | # CONFIG_NLS_ISO8859_8 is not set | ||
720 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
721 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
722 | CONFIG_NLS_ASCII=y | ||
723 | # CONFIG_NLS_ISO8859_1 is not set | ||
724 | # CONFIG_NLS_ISO8859_2 is not set | ||
725 | # CONFIG_NLS_ISO8859_3 is not set | ||
726 | # CONFIG_NLS_ISO8859_4 is not set | ||
727 | # CONFIG_NLS_ISO8859_5 is not set | ||
728 | # CONFIG_NLS_ISO8859_6 is not set | ||
729 | # CONFIG_NLS_ISO8859_7 is not set | ||
730 | # CONFIG_NLS_ISO8859_9 is not set | ||
731 | # CONFIG_NLS_ISO8859_13 is not set | ||
732 | # CONFIG_NLS_ISO8859_14 is not set | ||
733 | # CONFIG_NLS_ISO8859_15 is not set | ||
734 | # CONFIG_NLS_KOI8_R is not set | ||
735 | # CONFIG_NLS_KOI8_U is not set | ||
736 | # CONFIG_NLS_UTF8 is not set | ||
737 | |||
738 | # | ||
739 | # Kernel hacking | ||
740 | # | ||
741 | # CONFIG_PRINTK_TIME is not set | ||
742 | CONFIG_DEBUG_KERNEL=y | ||
743 | # CONFIG_MAGIC_SYSRQ is not set | ||
744 | CONFIG_LOG_BUF_SHIFT=14 | ||
745 | # CONFIG_SCHEDSTATS is not set | ||
746 | # CONFIG_DEBUG_SLAB is not set | ||
747 | # CONFIG_DEBUG_SPINLOCK is not set | ||
748 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
749 | # CONFIG_DEBUG_KOBJECT is not set | ||
750 | CONFIG_DEBUG_BUGVERBOSE=y | ||
751 | # CONFIG_DEBUG_INFO is not set | ||
752 | # CONFIG_DEBUG_FS is not set | ||
753 | CONFIG_FRAME_POINTER=y | ||
754 | CONFIG_DEBUG_USER=y | ||
755 | # CONFIG_DEBUG_WAITQ is not set | ||
756 | CONFIG_DEBUG_ERRORS=y | ||
757 | CONFIG_DEBUG_LL=y | ||
758 | # CONFIG_DEBUG_ICEDCC is not set | ||
759 | |||
760 | # | ||
761 | # Security options | ||
762 | # | ||
763 | # CONFIG_KEYS is not set | ||
764 | # CONFIG_SECURITY is not set | ||
765 | |||
766 | # | ||
767 | # Cryptographic options | ||
768 | # | ||
769 | # CONFIG_CRYPTO is not set | ||
770 | |||
771 | # | ||
772 | # Hardware crypto devices | ||
773 | # | ||
774 | |||
775 | # | ||
776 | # Library routines | ||
777 | # | ||
778 | # CONFIG_CRC_CCITT is not set | ||
779 | CONFIG_CRC32=y | ||
780 | # CONFIG_LIBCRC32C is not set | ||
diff --git a/arch/arm/configs/lpd7a400_defconfig b/arch/arm/configs/lpd7a400_defconfig index 67eaa26c2647..bf9cf9c6d2df 100644 --- a/arch/arm/configs/lpd7a400_defconfig +++ b/arch/arm/configs/lpd7a400_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.12-rc1-bk2 | 3 | # Linux kernel version: 2.6.12 |
4 | # Mon Mar 28 00:06:33 2005 | 4 | # Thu Nov 3 14:15:32 2005 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
@@ -17,6 +17,7 @@ CONFIG_EXPERIMENTAL=y | |||
17 | CONFIG_CLEAN_COMPILE=y | 17 | CONFIG_CLEAN_COMPILE=y |
18 | CONFIG_BROKEN_ON_SMP=y | 18 | CONFIG_BROKEN_ON_SMP=y |
19 | CONFIG_LOCK_KERNEL=y | 19 | CONFIG_LOCK_KERNEL=y |
20 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | 21 | ||
21 | # | 22 | # |
22 | # General setup | 23 | # General setup |
@@ -36,6 +37,8 @@ CONFIG_EMBEDDED=y | |||
36 | CONFIG_KALLSYMS=y | 37 | CONFIG_KALLSYMS=y |
37 | # CONFIG_KALLSYMS_ALL is not set | 38 | # CONFIG_KALLSYMS_ALL is not set |
38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
40 | CONFIG_PRINTK=y | ||
41 | CONFIG_BUG=y | ||
39 | CONFIG_BASE_FULL=y | 42 | CONFIG_BASE_FULL=y |
40 | CONFIG_FUTEX=y | 43 | CONFIG_FUTEX=y |
41 | # CONFIG_EPOLL is not set | 44 | # CONFIG_EPOLL is not set |
@@ -71,6 +74,7 @@ CONFIG_BASE_SMALL=0 | |||
71 | # CONFIG_ARCH_SA1100 is not set | 74 | # CONFIG_ARCH_SA1100 is not set |
72 | # CONFIG_ARCH_S3C2410 is not set | 75 | # CONFIG_ARCH_S3C2410 is not set |
73 | # CONFIG_ARCH_SHARK is not set | 76 | # CONFIG_ARCH_SHARK is not set |
77 | # CONFIG_ARCH_LH7952X is not set | ||
74 | CONFIG_ARCH_LH7A40X=y | 78 | CONFIG_ARCH_LH7A40X=y |
75 | # CONFIG_ARCH_OMAP is not set | 79 | # CONFIG_ARCH_OMAP is not set |
76 | # CONFIG_ARCH_VERSATILE is not set | 80 | # CONFIG_ARCH_VERSATILE is not set |
@@ -84,6 +88,7 @@ CONFIG_ARCH_LH7A40X=y | |||
84 | CONFIG_MACH_LPD7A400=y | 88 | CONFIG_MACH_LPD7A400=y |
85 | # CONFIG_MACH_LPD7A404 is not set | 89 | # CONFIG_MACH_LPD7A404 is not set |
86 | CONFIG_ARCH_LH7A400=y | 90 | CONFIG_ARCH_LH7A400=y |
91 | CONFIG_LPD7A40X_CPLD_SSP=y | ||
87 | # CONFIG_LH7A40X_CONTIGMEM is not set | 92 | # CONFIG_LH7A40X_CONTIGMEM is not set |
88 | # CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set | 93 | # CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set |
89 | 94 | ||
@@ -110,6 +115,8 @@ CONFIG_ARM_THUMB=y | |||
110 | # | 115 | # |
111 | # Bus support | 116 | # Bus support |
112 | # | 117 | # |
118 | CONFIG_ARM_AMBA=y | ||
119 | CONFIG_ISA_DMA_API=y | ||
113 | 120 | ||
114 | # | 121 | # |
115 | # PCCARD (PCMCIA/CardBus) support | 122 | # PCCARD (PCMCIA/CardBus) support |
@@ -119,6 +126,7 @@ CONFIG_ARM_THUMB=y | |||
119 | # | 126 | # |
120 | # Kernel Features | 127 | # Kernel Features |
121 | # | 128 | # |
129 | # CONFIG_SMP is not set | ||
122 | CONFIG_PREEMPT=y | 130 | CONFIG_PREEMPT=y |
123 | CONFIG_DISCONTIGMEM=y | 131 | CONFIG_DISCONTIGMEM=y |
124 | CONFIG_ALIGNMENT_TRAP=y | 132 | CONFIG_ALIGNMENT_TRAP=y |
@@ -175,7 +183,7 @@ CONFIG_MTD=y | |||
175 | # CONFIG_MTD_CONCAT is not set | 183 | # CONFIG_MTD_CONCAT is not set |
176 | CONFIG_MTD_PARTITIONS=y | 184 | CONFIG_MTD_PARTITIONS=y |
177 | # CONFIG_MTD_REDBOOT_PARTS is not set | 185 | # CONFIG_MTD_REDBOOT_PARTS is not set |
178 | # CONFIG_MTD_CMDLINE_PARTS is not set | 186 | CONFIG_MTD_CMDLINE_PARTS=y |
179 | # CONFIG_MTD_AFS_PARTS is not set | 187 | # CONFIG_MTD_AFS_PARTS is not set |
180 | 188 | ||
181 | # | 189 | # |
@@ -217,7 +225,10 @@ CONFIG_MTD_CFI_UTIL=y | |||
217 | # Mapping drivers for chip access | 225 | # Mapping drivers for chip access |
218 | # | 226 | # |
219 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 227 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
220 | # CONFIG_MTD_PHYSMAP is not set | 228 | CONFIG_MTD_PHYSMAP=y |
229 | CONFIG_MTD_PHYSMAP_START=0x00000000 | ||
230 | CONFIG_MTD_PHYSMAP_LEN=0x04000000 | ||
231 | CONFIG_MTD_PHYSMAP_BANKWIDTH=4 | ||
221 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 232 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
222 | # CONFIG_MTD_EDB7312 is not set | 233 | # CONFIG_MTD_EDB7312 is not set |
223 | 234 | ||
@@ -254,7 +265,6 @@ CONFIG_MTD_CFI_UTIL=y | |||
254 | # | 265 | # |
255 | # Block devices | 266 | # Block devices |
256 | # | 267 | # |
257 | # CONFIG_BLK_DEV_FD is not set | ||
258 | # CONFIG_BLK_DEV_COW_COMMON is not set | 268 | # CONFIG_BLK_DEV_COW_COMMON is not set |
259 | CONFIG_BLK_DEV_LOOP=y | 269 | CONFIG_BLK_DEV_LOOP=y |
260 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 270 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
@@ -288,13 +298,15 @@ CONFIG_BLK_DEV_IDEDISK=y | |||
288 | # CONFIG_BLK_DEV_IDECD is not set | 298 | # CONFIG_BLK_DEV_IDECD is not set |
289 | # CONFIG_BLK_DEV_IDETAPE is not set | 299 | # CONFIG_BLK_DEV_IDETAPE is not set |
290 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | 300 | # CONFIG_BLK_DEV_IDEFLOPPY is not set |
301 | # CONFIG_BLK_DEV_IDESCSI is not set | ||
291 | # CONFIG_IDE_TASK_IOCTL is not set | 302 | # CONFIG_IDE_TASK_IOCTL is not set |
303 | CONFIG_IDE_POLL=y | ||
292 | 304 | ||
293 | # | 305 | # |
294 | # IDE chipset support/bugfixes | 306 | # IDE chipset support/bugfixes |
295 | # | 307 | # |
296 | CONFIG_IDE_GENERIC=y | 308 | CONFIG_IDE_GENERIC=y |
297 | # CONFIG_IDE_ARM is not set | 309 | CONFIG_IDE_ARM=y |
298 | # CONFIG_BLK_DEV_IDEDMA is not set | 310 | # CONFIG_BLK_DEV_IDEDMA is not set |
299 | # CONFIG_IDEDMA_AUTO is not set | 311 | # CONFIG_IDEDMA_AUTO is not set |
300 | # CONFIG_BLK_DEV_HD is not set | 312 | # CONFIG_BLK_DEV_HD is not set |
@@ -302,7 +314,37 @@ CONFIG_IDE_GENERIC=y | |||
302 | # | 314 | # |
303 | # SCSI device support | 315 | # SCSI device support |
304 | # | 316 | # |
305 | # CONFIG_SCSI is not set | 317 | CONFIG_SCSI=y |
318 | # CONFIG_SCSI_PROC_FS is not set | ||
319 | |||
320 | # | ||
321 | # SCSI support type (disk, tape, CD-ROM) | ||
322 | # | ||
323 | # CONFIG_BLK_DEV_SD is not set | ||
324 | # CONFIG_CHR_DEV_ST is not set | ||
325 | # CONFIG_CHR_DEV_OSST is not set | ||
326 | # CONFIG_BLK_DEV_SR is not set | ||
327 | # CONFIG_CHR_DEV_SG is not set | ||
328 | |||
329 | # | ||
330 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
331 | # | ||
332 | # CONFIG_SCSI_MULTI_LUN is not set | ||
333 | # CONFIG_SCSI_CONSTANTS is not set | ||
334 | # CONFIG_SCSI_LOGGING is not set | ||
335 | |||
336 | # | ||
337 | # SCSI Transport Attributes | ||
338 | # | ||
339 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
340 | # CONFIG_SCSI_FC_ATTRS is not set | ||
341 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
342 | |||
343 | # | ||
344 | # SCSI low-level drivers | ||
345 | # | ||
346 | # CONFIG_SCSI_SATA is not set | ||
347 | # CONFIG_SCSI_DEBUG is not set | ||
306 | 348 | ||
307 | # | 349 | # |
308 | # Multi-device support (RAID and LVM) | 350 | # Multi-device support (RAID and LVM) |
@@ -331,7 +373,6 @@ CONFIG_NET=y | |||
331 | # | 373 | # |
332 | CONFIG_PACKET=y | 374 | CONFIG_PACKET=y |
333 | # CONFIG_PACKET_MMAP is not set | 375 | # CONFIG_PACKET_MMAP is not set |
334 | # CONFIG_NETLINK_DEV is not set | ||
335 | CONFIG_UNIX=y | 376 | CONFIG_UNIX=y |
336 | # CONFIG_NET_KEY is not set | 377 | # CONFIG_NET_KEY is not set |
337 | CONFIG_INET=y | 378 | CONFIG_INET=y |
@@ -438,13 +479,10 @@ CONFIG_INPUT=y | |||
438 | # | 479 | # |
439 | # Userland interfaces | 480 | # Userland interfaces |
440 | # | 481 | # |
441 | CONFIG_INPUT_MOUSEDEV=y | 482 | # CONFIG_INPUT_MOUSEDEV is not set |
442 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
443 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
444 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
445 | # CONFIG_INPUT_JOYDEV is not set | 483 | # CONFIG_INPUT_JOYDEV is not set |
446 | # CONFIG_INPUT_TSDEV is not set | 484 | # CONFIG_INPUT_TSDEV is not set |
447 | # CONFIG_INPUT_EVDEV is not set | 485 | CONFIG_INPUT_EVDEV=y |
448 | # CONFIG_INPUT_EVBUG is not set | 486 | # CONFIG_INPUT_EVBUG is not set |
449 | 487 | ||
450 | # | 488 | # |
@@ -453,7 +491,13 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | |||
453 | # CONFIG_INPUT_KEYBOARD is not set | 491 | # CONFIG_INPUT_KEYBOARD is not set |
454 | # CONFIG_INPUT_MOUSE is not set | 492 | # CONFIG_INPUT_MOUSE is not set |
455 | # CONFIG_INPUT_JOYSTICK is not set | 493 | # CONFIG_INPUT_JOYSTICK is not set |
456 | # CONFIG_INPUT_TOUCHSCREEN is not set | 494 | CONFIG_INPUT_TOUCHSCREEN=y |
495 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
496 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
497 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
498 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
499 | CONFIG_TOUCHSCREEN_ADS7843_LH7=y | ||
500 | CONFIG_HAS_TOUCHSCREEN_ADS7843_LH7=y | ||
457 | # CONFIG_INPUT_MISC is not set | 501 | # CONFIG_INPUT_MISC is not set |
458 | 502 | ||
459 | # | 503 | # |
@@ -461,7 +505,6 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | |||
461 | # | 505 | # |
462 | # CONFIG_SERIO is not set | 506 | # CONFIG_SERIO is not set |
463 | # CONFIG_GAMEPORT is not set | 507 | # CONFIG_GAMEPORT is not set |
464 | CONFIG_SOUND_GAMEPORT=y | ||
465 | 508 | ||
466 | # | 509 | # |
467 | # Character devices | 510 | # Character devices |
@@ -479,6 +522,8 @@ CONFIG_HW_CONSOLE=y | |||
479 | # | 522 | # |
480 | # Non-8250 serial port support | 523 | # Non-8250 serial port support |
481 | # | 524 | # |
525 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
526 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
482 | CONFIG_SERIAL_CORE=y | 527 | CONFIG_SERIAL_CORE=y |
483 | CONFIG_SERIAL_CORE_CONSOLE=y | 528 | CONFIG_SERIAL_CORE_CONSOLE=y |
484 | CONFIG_SERIAL_LH7A40X=y | 529 | CONFIG_SERIAL_LH7A40X=y |
@@ -510,7 +555,6 @@ CONFIG_RTC=y | |||
510 | # | 555 | # |
511 | # TPM devices | 556 | # TPM devices |
512 | # | 557 | # |
513 | # CONFIG_TCG_TPM is not set | ||
514 | 558 | ||
515 | # | 559 | # |
516 | # I2C support | 560 | # I2C support |
@@ -534,18 +578,73 @@ CONFIG_RTC=y | |||
534 | # | 578 | # |
535 | # Graphics support | 579 | # Graphics support |
536 | # | 580 | # |
537 | # CONFIG_FB is not set | 581 | CONFIG_FB=y |
582 | CONFIG_FB_CFB_FILLRECT=y | ||
583 | CONFIG_FB_CFB_COPYAREA=y | ||
584 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
585 | CONFIG_FB_SOFT_CURSOR=y | ||
586 | # CONFIG_FB_MACMODES is not set | ||
587 | # CONFIG_FB_MODE_HELPERS is not set | ||
588 | # CONFIG_FB_TILEBLITTING is not set | ||
589 | CONFIG_FB_ARMCLCD=y | ||
590 | CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y | ||
591 | # CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set | ||
592 | # CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set | ||
593 | # CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set | ||
594 | # CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set | ||
595 | # CONFIG_FB_S1D13XXX is not set | ||
596 | # CONFIG_FB_VIRTUAL is not set | ||
538 | 597 | ||
539 | # | 598 | # |
540 | # Console display driver support | 599 | # Console display driver support |
541 | # | 600 | # |
542 | # CONFIG_VGA_CONSOLE is not set | 601 | # CONFIG_VGA_CONSOLE is not set |
543 | CONFIG_DUMMY_CONSOLE=y | 602 | CONFIG_DUMMY_CONSOLE=y |
603 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
604 | |||
605 | # | ||
606 | # Logo configuration | ||
607 | # | ||
608 | # CONFIG_LOGO is not set | ||
609 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
544 | 610 | ||
545 | # | 611 | # |
546 | # Sound | 612 | # Sound |
547 | # | 613 | # |
548 | # CONFIG_SOUND is not set | 614 | CONFIG_SOUND=y |
615 | |||
616 | # | ||
617 | # Advanced Linux Sound Architecture | ||
618 | # | ||
619 | CONFIG_SND=y | ||
620 | CONFIG_SND_TIMER=y | ||
621 | CONFIG_SND_PCM=y | ||
622 | # CONFIG_SND_SEQUENCER is not set | ||
623 | CONFIG_SND_OSSEMUL=y | ||
624 | CONFIG_SND_MIXER_OSS=y | ||
625 | CONFIG_SND_PCM_OSS=y | ||
626 | # CONFIG_SND_RTCTIMER is not set | ||
627 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
628 | # CONFIG_SND_DEBUG is not set | ||
629 | |||
630 | # | ||
631 | # Generic devices | ||
632 | # | ||
633 | # CONFIG_SND_DUMMY is not set | ||
634 | # CONFIG_SND_MTPAV is not set | ||
635 | # CONFIG_SND_SERIAL_U16550 is not set | ||
636 | # CONFIG_SND_MPU401 is not set | ||
637 | CONFIG_SND_AC97_CODEC=y | ||
638 | |||
639 | # | ||
640 | # ALSA ARM devices | ||
641 | # | ||
642 | CONFIG_SND_LH7A40X_AC97=y | ||
643 | |||
644 | # | ||
645 | # Open Sound System | ||
646 | # | ||
647 | # CONFIG_SOUND_PRIME is not set | ||
549 | 648 | ||
550 | # | 649 | # |
551 | # USB support | 650 | # USB support |
diff --git a/arch/arm/configs/lpd7a404_defconfig b/arch/arm/configs/lpd7a404_defconfig index 208d591ebfce..3a57be32e849 100644 --- a/arch/arm/configs/lpd7a404_defconfig +++ b/arch/arm/configs/lpd7a404_defconfig | |||
@@ -1,52 +1,58 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.12-rc1-bk2 | 3 | # Linux kernel version: 2.6.16 |
4 | # Mon Mar 28 00:14:08 2005 | 4 | # Thu Mar 23 17:50:31 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 9 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | 10 | ||
13 | # | 11 | # |
14 | # Code maturity level options | 12 | # Code maturity level options |
15 | # | 13 | # |
16 | CONFIG_EXPERIMENTAL=y | 14 | CONFIG_EXPERIMENTAL=y |
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | 15 | CONFIG_BROKEN_ON_SMP=y |
19 | CONFIG_LOCK_KERNEL=y | 16 | CONFIG_LOCK_KERNEL=y |
17 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | 18 | ||
21 | # | 19 | # |
22 | # General setup | 20 | # General setup |
23 | # | 21 | # |
24 | CONFIG_LOCALVERSION="" | 22 | CONFIG_LOCALVERSION="" |
23 | CONFIG_LOCALVERSION_AUTO=y | ||
25 | # CONFIG_SWAP is not set | 24 | # CONFIG_SWAP is not set |
26 | CONFIG_SYSVIPC=y | 25 | CONFIG_SYSVIPC=y |
27 | # CONFIG_POSIX_MQUEUE is not set | 26 | # CONFIG_POSIX_MQUEUE is not set |
28 | # CONFIG_BSD_PROCESS_ACCT is not set | 27 | # CONFIG_BSD_PROCESS_ACCT is not set |
29 | CONFIG_SYSCTL=y | 28 | CONFIG_SYSCTL=y |
30 | # CONFIG_AUDIT is not set | 29 | # CONFIG_AUDIT is not set |
31 | # CONFIG_HOTPLUG is not set | ||
32 | CONFIG_KOBJECT_UEVENT=y | ||
33 | CONFIG_IKCONFIG=y | 30 | CONFIG_IKCONFIG=y |
34 | # CONFIG_IKCONFIG_PROC is not set | 31 | # CONFIG_IKCONFIG_PROC is not set |
32 | CONFIG_INITRAMFS_SOURCE="" | ||
33 | CONFIG_UID16=y | ||
34 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
35 | CONFIG_EMBEDDED=y | 35 | CONFIG_EMBEDDED=y |
36 | CONFIG_KALLSYMS=y | 36 | CONFIG_KALLSYMS=y |
37 | # CONFIG_KALLSYMS_ALL is not set | 37 | # CONFIG_KALLSYMS_ALL is not set |
38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
39 | # CONFIG_HOTPLUG is not set | ||
40 | CONFIG_PRINTK=y | ||
41 | CONFIG_BUG=y | ||
42 | CONFIG_ELF_CORE=y | ||
39 | CONFIG_BASE_FULL=y | 43 | CONFIG_BASE_FULL=y |
40 | CONFIG_FUTEX=y | 44 | CONFIG_FUTEX=y |
41 | # CONFIG_EPOLL is not set | 45 | # CONFIG_EPOLL is not set |
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SHMEM=y | 46 | CONFIG_SHMEM=y |
44 | CONFIG_CC_ALIGN_FUNCTIONS=0 | 47 | CONFIG_CC_ALIGN_FUNCTIONS=0 |
45 | CONFIG_CC_ALIGN_LABELS=0 | 48 | CONFIG_CC_ALIGN_LABELS=0 |
46 | CONFIG_CC_ALIGN_LOOPS=0 | 49 | CONFIG_CC_ALIGN_LOOPS=0 |
47 | CONFIG_CC_ALIGN_JUMPS=0 | 50 | CONFIG_CC_ALIGN_JUMPS=0 |
51 | CONFIG_SLAB=y | ||
48 | # CONFIG_TINY_SHMEM is not set | 52 | # CONFIG_TINY_SHMEM is not set |
49 | CONFIG_BASE_SMALL=0 | 53 | CONFIG_BASE_SMALL=0 |
54 | # CONFIG_SLOB is not set | ||
55 | CONFIG_OBSOLETE_INTERMODULE=y | ||
50 | 56 | ||
51 | # | 57 | # |
52 | # Loadable module support | 58 | # Loadable module support |
@@ -54,6 +60,23 @@ CONFIG_BASE_SMALL=0 | |||
54 | # CONFIG_MODULES is not set | 60 | # CONFIG_MODULES is not set |
55 | 61 | ||
56 | # | 62 | # |
63 | # Block layer | ||
64 | # | ||
65 | |||
66 | # | ||
67 | # IO Schedulers | ||
68 | # | ||
69 | CONFIG_IOSCHED_NOOP=y | ||
70 | # CONFIG_IOSCHED_AS is not set | ||
71 | # CONFIG_IOSCHED_DEADLINE is not set | ||
72 | CONFIG_IOSCHED_CFQ=y | ||
73 | # CONFIG_DEFAULT_AS is not set | ||
74 | # CONFIG_DEFAULT_DEADLINE is not set | ||
75 | CONFIG_DEFAULT_CFQ=y | ||
76 | # CONFIG_DEFAULT_NOOP is not set | ||
77 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
78 | |||
79 | # | ||
57 | # System Type | 80 | # System Type |
58 | # | 81 | # |
59 | # CONFIG_ARCH_CLPS7500 is not set | 82 | # CONFIG_ARCH_CLPS7500 is not set |
@@ -71,11 +94,15 @@ CONFIG_BASE_SMALL=0 | |||
71 | # CONFIG_ARCH_SA1100 is not set | 94 | # CONFIG_ARCH_SA1100 is not set |
72 | # CONFIG_ARCH_S3C2410 is not set | 95 | # CONFIG_ARCH_S3C2410 is not set |
73 | # CONFIG_ARCH_SHARK is not set | 96 | # CONFIG_ARCH_SHARK is not set |
97 | # CONFIG_ARCH_LH7952X is not set | ||
74 | CONFIG_ARCH_LH7A40X=y | 98 | CONFIG_ARCH_LH7A40X=y |
75 | # CONFIG_ARCH_OMAP is not set | 99 | # CONFIG_ARCH_OMAP is not set |
76 | # CONFIG_ARCH_VERSATILE is not set | 100 | # CONFIG_ARCH_VERSATILE is not set |
101 | # CONFIG_ARCH_REALVIEW is not set | ||
77 | # CONFIG_ARCH_IMX is not set | 102 | # CONFIG_ARCH_IMX is not set |
78 | # CONFIG_ARCH_H720X is not set | 103 | # CONFIG_ARCH_H720X is not set |
104 | # CONFIG_ARCH_AAEC2000 is not set | ||
105 | # CONFIG_ARCH_AT91RM9200 is not set | ||
79 | 106 | ||
80 | # | 107 | # |
81 | # LH7A40X Implementations | 108 | # LH7A40X Implementations |
@@ -110,6 +137,7 @@ CONFIG_ARM_THUMB=y | |||
110 | # | 137 | # |
111 | # Bus support | 138 | # Bus support |
112 | # | 139 | # |
140 | CONFIG_ARM_AMBA=y | ||
113 | 141 | ||
114 | # | 142 | # |
115 | # PCCARD (PCMCIA/CardBus) support | 143 | # PCCARD (PCMCIA/CardBus) support |
@@ -120,7 +148,18 @@ CONFIG_ARM_THUMB=y | |||
120 | # Kernel Features | 148 | # Kernel Features |
121 | # | 149 | # |
122 | CONFIG_PREEMPT=y | 150 | CONFIG_PREEMPT=y |
151 | # CONFIG_NO_IDLE_HZ is not set | ||
152 | # CONFIG_AEABI is not set | ||
153 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y | ||
154 | CONFIG_SELECT_MEMORY_MODEL=y | ||
155 | # CONFIG_FLATMEM_MANUAL is not set | ||
156 | CONFIG_DISCONTIGMEM_MANUAL=y | ||
157 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
123 | CONFIG_DISCONTIGMEM=y | 158 | CONFIG_DISCONTIGMEM=y |
159 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
160 | CONFIG_NEED_MULTIPLE_NODES=y | ||
161 | # CONFIG_SPARSEMEM_STATIC is not set | ||
162 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
124 | CONFIG_ALIGNMENT_TRAP=y | 163 | CONFIG_ALIGNMENT_TRAP=y |
125 | 164 | ||
126 | # | 165 | # |
@@ -154,6 +193,84 @@ CONFIG_BINFMT_ELF=y | |||
154 | # Power management options | 193 | # Power management options |
155 | # | 194 | # |
156 | # CONFIG_PM is not set | 195 | # CONFIG_PM is not set |
196 | # CONFIG_APM is not set | ||
197 | |||
198 | # | ||
199 | # Networking | ||
200 | # | ||
201 | CONFIG_NET=y | ||
202 | |||
203 | # | ||
204 | # Networking options | ||
205 | # | ||
206 | # CONFIG_NETDEBUG is not set | ||
207 | CONFIG_PACKET=y | ||
208 | # CONFIG_PACKET_MMAP is not set | ||
209 | CONFIG_UNIX=y | ||
210 | # CONFIG_NET_KEY is not set | ||
211 | CONFIG_INET=y | ||
212 | # CONFIG_IP_MULTICAST is not set | ||
213 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
214 | CONFIG_IP_FIB_HASH=y | ||
215 | CONFIG_IP_PNP=y | ||
216 | CONFIG_IP_PNP_DHCP=y | ||
217 | CONFIG_IP_PNP_BOOTP=y | ||
218 | CONFIG_IP_PNP_RARP=y | ||
219 | # CONFIG_NET_IPIP is not set | ||
220 | # CONFIG_NET_IPGRE is not set | ||
221 | # CONFIG_ARPD is not set | ||
222 | # CONFIG_SYN_COOKIES is not set | ||
223 | # CONFIG_INET_AH is not set | ||
224 | # CONFIG_INET_ESP is not set | ||
225 | # CONFIG_INET_IPCOMP is not set | ||
226 | # CONFIG_INET_TUNNEL is not set | ||
227 | CONFIG_INET_DIAG=y | ||
228 | CONFIG_INET_TCP_DIAG=y | ||
229 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
230 | CONFIG_TCP_CONG_BIC=y | ||
231 | # CONFIG_IPV6 is not set | ||
232 | # CONFIG_NETFILTER is not set | ||
233 | |||
234 | # | ||
235 | # DCCP Configuration (EXPERIMENTAL) | ||
236 | # | ||
237 | # CONFIG_IP_DCCP is not set | ||
238 | |||
239 | # | ||
240 | # SCTP Configuration (EXPERIMENTAL) | ||
241 | # | ||
242 | # CONFIG_IP_SCTP is not set | ||
243 | |||
244 | # | ||
245 | # TIPC Configuration (EXPERIMENTAL) | ||
246 | # | ||
247 | # CONFIG_TIPC is not set | ||
248 | # CONFIG_ATM is not set | ||
249 | # CONFIG_BRIDGE is not set | ||
250 | # CONFIG_VLAN_8021Q is not set | ||
251 | # CONFIG_DECNET is not set | ||
252 | # CONFIG_LLC2 is not set | ||
253 | # CONFIG_IPX is not set | ||
254 | # CONFIG_ATALK is not set | ||
255 | # CONFIG_X25 is not set | ||
256 | # CONFIG_LAPB is not set | ||
257 | # CONFIG_NET_DIVERT is not set | ||
258 | # CONFIG_ECONET is not set | ||
259 | # CONFIG_WAN_ROUTER is not set | ||
260 | |||
261 | # | ||
262 | # QoS and/or fair queueing | ||
263 | # | ||
264 | # CONFIG_NET_SCHED is not set | ||
265 | |||
266 | # | ||
267 | # Network testing | ||
268 | # | ||
269 | # CONFIG_NET_PKTGEN is not set | ||
270 | # CONFIG_HAMRADIO is not set | ||
271 | # CONFIG_IRDA is not set | ||
272 | # CONFIG_BT is not set | ||
273 | # CONFIG_IEEE80211 is not set | ||
157 | 274 | ||
158 | # | 275 | # |
159 | # Device Drivers | 276 | # Device Drivers |
@@ -168,6 +285,11 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y | |||
168 | # CONFIG_DEBUG_DRIVER is not set | 285 | # CONFIG_DEBUG_DRIVER is not set |
169 | 286 | ||
170 | # | 287 | # |
288 | # Connector - unified userspace <-> kernelspace linker | ||
289 | # | ||
290 | # CONFIG_CONNECTOR is not set | ||
291 | |||
292 | # | ||
171 | # Memory Technology Devices (MTD) | 293 | # Memory Technology Devices (MTD) |
172 | # | 294 | # |
173 | CONFIG_MTD=y | 295 | CONFIG_MTD=y |
@@ -175,7 +297,7 @@ CONFIG_MTD=y | |||
175 | # CONFIG_MTD_CONCAT is not set | 297 | # CONFIG_MTD_CONCAT is not set |
176 | CONFIG_MTD_PARTITIONS=y | 298 | CONFIG_MTD_PARTITIONS=y |
177 | # CONFIG_MTD_REDBOOT_PARTS is not set | 299 | # CONFIG_MTD_REDBOOT_PARTS is not set |
178 | # CONFIG_MTD_CMDLINE_PARTS is not set | 300 | CONFIG_MTD_CMDLINE_PARTS=y |
179 | # CONFIG_MTD_AFS_PARTS is not set | 301 | # CONFIG_MTD_AFS_PARTS is not set |
180 | 302 | ||
181 | # | 303 | # |
@@ -186,6 +308,7 @@ CONFIG_MTD_BLOCK=y | |||
186 | # CONFIG_FTL is not set | 308 | # CONFIG_FTL is not set |
187 | # CONFIG_NFTL is not set | 309 | # CONFIG_NFTL is not set |
188 | # CONFIG_INFTL is not set | 310 | # CONFIG_INFTL is not set |
311 | # CONFIG_RFD_FTL is not set | ||
189 | 312 | ||
190 | # | 313 | # |
191 | # RAM/ROM/Flash chip drivers | 314 | # RAM/ROM/Flash chip drivers |
@@ -211,15 +334,18 @@ CONFIG_MTD_CFI_UTIL=y | |||
211 | # CONFIG_MTD_RAM is not set | 334 | # CONFIG_MTD_RAM is not set |
212 | # CONFIG_MTD_ROM is not set | 335 | # CONFIG_MTD_ROM is not set |
213 | # CONFIG_MTD_ABSENT is not set | 336 | # CONFIG_MTD_ABSENT is not set |
214 | # CONFIG_MTD_XIP is not set | 337 | # CONFIG_MTD_OBSOLETE_CHIPS is not set |
215 | 338 | ||
216 | # | 339 | # |
217 | # Mapping drivers for chip access | 340 | # Mapping drivers for chip access |
218 | # | 341 | # |
219 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 342 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
220 | # CONFIG_MTD_PHYSMAP is not set | 343 | CONFIG_MTD_PHYSMAP=y |
344 | CONFIG_MTD_PHYSMAP_START=0x00000000 | ||
345 | CONFIG_MTD_PHYSMAP_LEN=0x04000000 | ||
346 | CONFIG_MTD_PHYSMAP_BANKWIDTH=4 | ||
221 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 347 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
222 | # CONFIG_MTD_EDB7312 is not set | 348 | # CONFIG_MTD_PLATRAM is not set |
223 | 349 | ||
224 | # | 350 | # |
225 | # Self-contained MTD device drivers | 351 | # Self-contained MTD device drivers |
@@ -243,6 +369,11 @@ CONFIG_MTD_CFI_UTIL=y | |||
243 | # CONFIG_MTD_NAND is not set | 369 | # CONFIG_MTD_NAND is not set |
244 | 370 | ||
245 | # | 371 | # |
372 | # OneNAND Flash Device Drivers | ||
373 | # | ||
374 | # CONFIG_MTD_ONENAND is not set | ||
375 | |||
376 | # | ||
246 | # Parallel port support | 377 | # Parallel port support |
247 | # | 378 | # |
248 | # CONFIG_PARPORT is not set | 379 | # CONFIG_PARPORT is not set |
@@ -254,7 +385,6 @@ CONFIG_MTD_CFI_UTIL=y | |||
254 | # | 385 | # |
255 | # Block devices | 386 | # Block devices |
256 | # | 387 | # |
257 | # CONFIG_BLK_DEV_FD is not set | ||
258 | # CONFIG_BLK_DEV_COW_COMMON is not set | 388 | # CONFIG_BLK_DEV_COW_COMMON is not set |
259 | CONFIG_BLK_DEV_LOOP=y | 389 | CONFIG_BLK_DEV_LOOP=y |
260 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 390 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
@@ -262,16 +392,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
262 | # CONFIG_BLK_DEV_UB is not set | 392 | # CONFIG_BLK_DEV_UB is not set |
263 | # CONFIG_BLK_DEV_RAM is not set | 393 | # CONFIG_BLK_DEV_RAM is not set |
264 | CONFIG_BLK_DEV_RAM_COUNT=16 | 394 | CONFIG_BLK_DEV_RAM_COUNT=16 |
265 | CONFIG_INITRAMFS_SOURCE="" | ||
266 | # CONFIG_CDROM_PKTCDVD is not set | 395 | # CONFIG_CDROM_PKTCDVD is not set |
267 | |||
268 | # | ||
269 | # IO Schedulers | ||
270 | # | ||
271 | CONFIG_IOSCHED_NOOP=y | ||
272 | # CONFIG_IOSCHED_AS is not set | ||
273 | # CONFIG_IOSCHED_DEADLINE is not set | ||
274 | CONFIG_IOSCHED_CFQ=y | ||
275 | # CONFIG_ATA_OVER_ETH is not set | 396 | # CONFIG_ATA_OVER_ETH is not set |
276 | 397 | ||
277 | # | 398 | # |
@@ -291,12 +412,13 @@ CONFIG_BLK_DEV_IDEDISK=y | |||
291 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | 412 | # CONFIG_BLK_DEV_IDEFLOPPY is not set |
292 | # CONFIG_BLK_DEV_IDESCSI is not set | 413 | # CONFIG_BLK_DEV_IDESCSI is not set |
293 | # CONFIG_IDE_TASK_IOCTL is not set | 414 | # CONFIG_IDE_TASK_IOCTL is not set |
415 | CONFIG_IDE_POLL=y | ||
294 | 416 | ||
295 | # | 417 | # |
296 | # IDE chipset support/bugfixes | 418 | # IDE chipset support/bugfixes |
297 | # | 419 | # |
298 | CONFIG_IDE_GENERIC=y | 420 | CONFIG_IDE_GENERIC=y |
299 | # CONFIG_IDE_ARM is not set | 421 | CONFIG_IDE_ARM=y |
300 | # CONFIG_BLK_DEV_IDEDMA is not set | 422 | # CONFIG_BLK_DEV_IDEDMA is not set |
301 | # CONFIG_IDEDMA_AUTO is not set | 423 | # CONFIG_IDEDMA_AUTO is not set |
302 | # CONFIG_BLK_DEV_HD is not set | 424 | # CONFIG_BLK_DEV_HD is not set |
@@ -304,6 +426,7 @@ CONFIG_IDE_GENERIC=y | |||
304 | # | 426 | # |
305 | # SCSI device support | 427 | # SCSI device support |
306 | # | 428 | # |
429 | # CONFIG_RAID_ATTRS is not set | ||
307 | CONFIG_SCSI=y | 430 | CONFIG_SCSI=y |
308 | # CONFIG_SCSI_PROC_FS is not set | 431 | # CONFIG_SCSI_PROC_FS is not set |
309 | 432 | ||
@@ -315,6 +438,7 @@ CONFIG_SCSI=y | |||
315 | # CONFIG_CHR_DEV_OSST is not set | 438 | # CONFIG_CHR_DEV_OSST is not set |
316 | # CONFIG_BLK_DEV_SR is not set | 439 | # CONFIG_BLK_DEV_SR is not set |
317 | # CONFIG_CHR_DEV_SG is not set | 440 | # CONFIG_CHR_DEV_SG is not set |
441 | # CONFIG_CHR_DEV_SCH is not set | ||
318 | 442 | ||
319 | # | 443 | # |
320 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | 444 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs |
@@ -329,10 +453,12 @@ CONFIG_SCSI=y | |||
329 | # CONFIG_SCSI_SPI_ATTRS is not set | 453 | # CONFIG_SCSI_SPI_ATTRS is not set |
330 | # CONFIG_SCSI_FC_ATTRS is not set | 454 | # CONFIG_SCSI_FC_ATTRS is not set |
331 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 455 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
456 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
332 | 457 | ||
333 | # | 458 | # |
334 | # SCSI low-level drivers | 459 | # SCSI low-level drivers |
335 | # | 460 | # |
461 | # CONFIG_ISCSI_TCP is not set | ||
336 | # CONFIG_SCSI_SATA is not set | 462 | # CONFIG_SCSI_SATA is not set |
337 | # CONFIG_SCSI_DEBUG is not set | 463 | # CONFIG_SCSI_DEBUG is not set |
338 | 464 | ||
@@ -344,6 +470,7 @@ CONFIG_SCSI=y | |||
344 | # | 470 | # |
345 | # Fusion MPT device support | 471 | # Fusion MPT device support |
346 | # | 472 | # |
473 | # CONFIG_FUSION is not set | ||
347 | 474 | ||
348 | # | 475 | # |
349 | # IEEE 1394 (FireWire) support | 476 | # IEEE 1394 (FireWire) support |
@@ -354,70 +481,8 @@ CONFIG_SCSI=y | |||
354 | # | 481 | # |
355 | 482 | ||
356 | # | 483 | # |
357 | # Networking support | 484 | # Network device support |
358 | # | 485 | # |
359 | CONFIG_NET=y | ||
360 | |||
361 | # | ||
362 | # Networking options | ||
363 | # | ||
364 | CONFIG_PACKET=y | ||
365 | # CONFIG_PACKET_MMAP is not set | ||
366 | # CONFIG_NETLINK_DEV is not set | ||
367 | CONFIG_UNIX=y | ||
368 | # CONFIG_NET_KEY is not set | ||
369 | CONFIG_INET=y | ||
370 | # CONFIG_IP_MULTICAST is not set | ||
371 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
372 | CONFIG_IP_PNP=y | ||
373 | CONFIG_IP_PNP_DHCP=y | ||
374 | CONFIG_IP_PNP_BOOTP=y | ||
375 | CONFIG_IP_PNP_RARP=y | ||
376 | # CONFIG_NET_IPIP is not set | ||
377 | # CONFIG_NET_IPGRE is not set | ||
378 | # CONFIG_ARPD is not set | ||
379 | # CONFIG_SYN_COOKIES is not set | ||
380 | # CONFIG_INET_AH is not set | ||
381 | # CONFIG_INET_ESP is not set | ||
382 | # CONFIG_INET_IPCOMP is not set | ||
383 | # CONFIG_INET_TUNNEL is not set | ||
384 | # CONFIG_IP_TCPDIAG is not set | ||
385 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
386 | # CONFIG_IPV6 is not set | ||
387 | # CONFIG_NETFILTER is not set | ||
388 | |||
389 | # | ||
390 | # SCTP Configuration (EXPERIMENTAL) | ||
391 | # | ||
392 | # CONFIG_IP_SCTP is not set | ||
393 | # CONFIG_ATM is not set | ||
394 | # CONFIG_BRIDGE is not set | ||
395 | # CONFIG_VLAN_8021Q is not set | ||
396 | # CONFIG_DECNET is not set | ||
397 | # CONFIG_LLC2 is not set | ||
398 | # CONFIG_IPX is not set | ||
399 | # CONFIG_ATALK is not set | ||
400 | # CONFIG_X25 is not set | ||
401 | # CONFIG_LAPB is not set | ||
402 | # CONFIG_NET_DIVERT is not set | ||
403 | # CONFIG_ECONET is not set | ||
404 | # CONFIG_WAN_ROUTER is not set | ||
405 | |||
406 | # | ||
407 | # QoS and/or fair queueing | ||
408 | # | ||
409 | # CONFIG_NET_SCHED is not set | ||
410 | # CONFIG_NET_CLS_ROUTE is not set | ||
411 | |||
412 | # | ||
413 | # Network testing | ||
414 | # | ||
415 | # CONFIG_NET_PKTGEN is not set | ||
416 | # CONFIG_NETPOLL is not set | ||
417 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
418 | # CONFIG_HAMRADIO is not set | ||
419 | # CONFIG_IRDA is not set | ||
420 | # CONFIG_BT is not set | ||
421 | CONFIG_NETDEVICES=y | 486 | CONFIG_NETDEVICES=y |
422 | # CONFIG_DUMMY is not set | 487 | # CONFIG_DUMMY is not set |
423 | # CONFIG_BONDING is not set | 488 | # CONFIG_BONDING is not set |
@@ -425,11 +490,17 @@ CONFIG_NETDEVICES=y | |||
425 | # CONFIG_TUN is not set | 490 | # CONFIG_TUN is not set |
426 | 491 | ||
427 | # | 492 | # |
493 | # PHY device support | ||
494 | # | ||
495 | # CONFIG_PHYLIB is not set | ||
496 | |||
497 | # | ||
428 | # Ethernet (10 or 100Mbit) | 498 | # Ethernet (10 or 100Mbit) |
429 | # | 499 | # |
430 | CONFIG_NET_ETHERNET=y | 500 | CONFIG_NET_ETHERNET=y |
431 | CONFIG_MII=y | 501 | CONFIG_MII=y |
432 | CONFIG_SMC91X=y | 502 | CONFIG_SMC91X=y |
503 | # CONFIG_DM9000 is not set | ||
433 | 504 | ||
434 | # | 505 | # |
435 | # Ethernet (1000 Mbit) | 506 | # Ethernet (1000 Mbit) |
@@ -456,6 +527,8 @@ CONFIG_SMC91X=y | |||
456 | # CONFIG_SLIP is not set | 527 | # CONFIG_SLIP is not set |
457 | # CONFIG_SHAPER is not set | 528 | # CONFIG_SHAPER is not set |
458 | # CONFIG_NETCONSOLE is not set | 529 | # CONFIG_NETCONSOLE is not set |
530 | # CONFIG_NETPOLL is not set | ||
531 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
459 | 532 | ||
460 | # | 533 | # |
461 | # ISDN subsystem | 534 | # ISDN subsystem |
@@ -470,10 +543,13 @@ CONFIG_INPUT=y | |||
470 | # | 543 | # |
471 | # Userland interfaces | 544 | # Userland interfaces |
472 | # | 545 | # |
473 | # CONFIG_INPUT_MOUSEDEV is not set | 546 | CONFIG_INPUT_MOUSEDEV=y |
547 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
548 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
549 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
474 | # CONFIG_INPUT_JOYDEV is not set | 550 | # CONFIG_INPUT_JOYDEV is not set |
475 | # CONFIG_INPUT_TSDEV is not set | 551 | # CONFIG_INPUT_TSDEV is not set |
476 | # CONFIG_INPUT_EVDEV is not set | 552 | CONFIG_INPUT_EVDEV=y |
477 | # CONFIG_INPUT_EVBUG is not set | 553 | # CONFIG_INPUT_EVBUG is not set |
478 | 554 | ||
479 | # | 555 | # |
@@ -482,7 +558,13 @@ CONFIG_INPUT=y | |||
482 | # CONFIG_INPUT_KEYBOARD is not set | 558 | # CONFIG_INPUT_KEYBOARD is not set |
483 | # CONFIG_INPUT_MOUSE is not set | 559 | # CONFIG_INPUT_MOUSE is not set |
484 | # CONFIG_INPUT_JOYSTICK is not set | 560 | # CONFIG_INPUT_JOYSTICK is not set |
485 | # CONFIG_INPUT_TOUCHSCREEN is not set | 561 | CONFIG_INPUT_TOUCHSCREEN=y |
562 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
563 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
564 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
565 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
566 | CONFIG_TOUCHSCREEN_ADC_LH7=y | ||
567 | CONFIG_HAS_TOUCHSCREEN_ADC_LH7=y | ||
486 | # CONFIG_INPUT_MISC is not set | 568 | # CONFIG_INPUT_MISC is not set |
487 | 569 | ||
488 | # | 570 | # |
@@ -490,7 +572,6 @@ CONFIG_INPUT=y | |||
490 | # | 572 | # |
491 | # CONFIG_SERIO is not set | 573 | # CONFIG_SERIO is not set |
492 | # CONFIG_GAMEPORT is not set | 574 | # CONFIG_GAMEPORT is not set |
493 | CONFIG_SOUND_GAMEPORT=y | ||
494 | 575 | ||
495 | # | 576 | # |
496 | # Character devices | 577 | # Character devices |
@@ -508,6 +589,8 @@ CONFIG_HW_CONSOLE=y | |||
508 | # | 589 | # |
509 | # Non-8250 serial port support | 590 | # Non-8250 serial port support |
510 | # | 591 | # |
592 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
593 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
511 | CONFIG_SERIAL_CORE=y | 594 | CONFIG_SERIAL_CORE=y |
512 | CONFIG_SERIAL_CORE_CONSOLE=y | 595 | CONFIG_SERIAL_CORE_CONSOLE=y |
513 | CONFIG_SERIAL_LH7A40X=y | 596 | CONFIG_SERIAL_LH7A40X=y |
@@ -533,13 +616,13 @@ CONFIG_RTC=y | |||
533 | # | 616 | # |
534 | # Ftape, the floppy tape device driver | 617 | # Ftape, the floppy tape device driver |
535 | # | 618 | # |
536 | # CONFIG_DRM is not set | ||
537 | # CONFIG_RAW_DRIVER is not set | 619 | # CONFIG_RAW_DRIVER is not set |
538 | 620 | ||
539 | # | 621 | # |
540 | # TPM devices | 622 | # TPM devices |
541 | # | 623 | # |
542 | # CONFIG_TCG_TPM is not set | 624 | # CONFIG_TCG_TPM is not set |
625 | # CONFIG_TELCLOCK is not set | ||
543 | 626 | ||
544 | # | 627 | # |
545 | # I2C support | 628 | # I2C support |
@@ -547,10 +630,33 @@ CONFIG_RTC=y | |||
547 | # CONFIG_I2C is not set | 630 | # CONFIG_I2C is not set |
548 | 631 | ||
549 | # | 632 | # |
633 | # SPI support | ||
634 | # | ||
635 | # CONFIG_SPI is not set | ||
636 | # CONFIG_SPI_MASTER is not set | ||
637 | |||
638 | # | ||
639 | # Dallas's 1-wire bus | ||
640 | # | ||
641 | # CONFIG_W1 is not set | ||
642 | |||
643 | # | ||
644 | # Hardware Monitoring support | ||
645 | # | ||
646 | CONFIG_HWMON=y | ||
647 | # CONFIG_HWMON_VID is not set | ||
648 | # CONFIG_SENSORS_F71805F is not set | ||
649 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
650 | |||
651 | # | ||
550 | # Misc devices | 652 | # Misc devices |
551 | # | 653 | # |
552 | 654 | ||
553 | # | 655 | # |
656 | # Multimedia Capabilities Port drivers | ||
657 | # | ||
658 | |||
659 | # | ||
554 | # Multimedia devices | 660 | # Multimedia devices |
555 | # | 661 | # |
556 | # CONFIG_VIDEO_DEV is not set | 662 | # CONFIG_VIDEO_DEV is not set |
@@ -563,18 +669,83 @@ CONFIG_RTC=y | |||
563 | # | 669 | # |
564 | # Graphics support | 670 | # Graphics support |
565 | # | 671 | # |
566 | # CONFIG_FB is not set | 672 | CONFIG_FB=y |
673 | CONFIG_FB_CFB_FILLRECT=y | ||
674 | CONFIG_FB_CFB_COPYAREA=y | ||
675 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
676 | # CONFIG_FB_MACMODES is not set | ||
677 | # CONFIG_FB_MODE_HELPERS is not set | ||
678 | # CONFIG_FB_TILEBLITTING is not set | ||
679 | CONFIG_FB_ARMCLCD=y | ||
680 | CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y | ||
681 | # CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set | ||
682 | # CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set | ||
683 | # CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set | ||
684 | # CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set | ||
685 | # CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE is not set | ||
686 | # CONFIG_FB_ARMCLCD_HITACHI is not set | ||
687 | # CONFIG_FB_S1D13XXX is not set | ||
688 | # CONFIG_FB_VIRTUAL is not set | ||
567 | 689 | ||
568 | # | 690 | # |
569 | # Console display driver support | 691 | # Console display driver support |
570 | # | 692 | # |
571 | # CONFIG_VGA_CONSOLE is not set | 693 | # CONFIG_VGA_CONSOLE is not set |
572 | CONFIG_DUMMY_CONSOLE=y | 694 | CONFIG_DUMMY_CONSOLE=y |
695 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
696 | |||
697 | # | ||
698 | # Logo configuration | ||
699 | # | ||
700 | # CONFIG_LOGO is not set | ||
701 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
573 | 702 | ||
574 | # | 703 | # |
575 | # Sound | 704 | # Sound |
576 | # | 705 | # |
577 | # CONFIG_SOUND is not set | 706 | CONFIG_SOUND=y |
707 | |||
708 | # | ||
709 | # Advanced Linux Sound Architecture | ||
710 | # | ||
711 | CONFIG_SND=y | ||
712 | CONFIG_SND_TIMER=y | ||
713 | CONFIG_SND_PCM=y | ||
714 | # CONFIG_SND_SEQUENCER is not set | ||
715 | CONFIG_SND_OSSEMUL=y | ||
716 | CONFIG_SND_MIXER_OSS=y | ||
717 | CONFIG_SND_PCM_OSS=y | ||
718 | # CONFIG_SND_RTCTIMER is not set | ||
719 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
720 | CONFIG_SND_SUPPORT_OLD_API=y | ||
721 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
722 | # CONFIG_SND_DEBUG is not set | ||
723 | |||
724 | # | ||
725 | # Generic devices | ||
726 | # | ||
727 | CONFIG_SND_AC97_CODEC=y | ||
728 | CONFIG_SND_AC97_BUS=y | ||
729 | # CONFIG_SND_DUMMY is not set | ||
730 | # CONFIG_SND_MTPAV is not set | ||
731 | # CONFIG_SND_SERIAL_U16550 is not set | ||
732 | # CONFIG_SND_MPU401 is not set | ||
733 | |||
734 | # | ||
735 | # ALSA ARM devices | ||
736 | # | ||
737 | # CONFIG_SND_ARMAACI is not set | ||
738 | CONFIG_SND_LH7A40X_AC97=y | ||
739 | |||
740 | # | ||
741 | # USB devices | ||
742 | # | ||
743 | # CONFIG_SND_USB_AUDIO is not set | ||
744 | |||
745 | # | ||
746 | # Open Sound System | ||
747 | # | ||
748 | # CONFIG_SOUND_PRIME is not set | ||
578 | 749 | ||
579 | # | 750 | # |
580 | # USB support | 751 | # USB support |
@@ -595,6 +766,7 @@ CONFIG_USB_DEVICEFS=y | |||
595 | # | 766 | # |
596 | # USB Host Controller Drivers | 767 | # USB Host Controller Drivers |
597 | # | 768 | # |
769 | # CONFIG_USB_ISP116X_HCD is not set | ||
598 | CONFIG_USB_OHCI_HCD=y | 770 | CONFIG_USB_OHCI_HCD=y |
599 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | 771 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set |
600 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | 772 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y |
@@ -603,16 +775,19 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
603 | # | 775 | # |
604 | # USB Device Class drivers | 776 | # USB Device Class drivers |
605 | # | 777 | # |
606 | # CONFIG_USB_BLUETOOTH_TTY is not set | 778 | # CONFIG_OBSOLETE_OSS_USB_DRIVER is not set |
607 | # CONFIG_USB_ACM is not set | 779 | # CONFIG_USB_ACM is not set |
608 | # CONFIG_USB_PRINTER is not set | 780 | # CONFIG_USB_PRINTER is not set |
609 | 781 | ||
610 | # | 782 | # |
611 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information | 783 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' |
784 | # | ||
785 | |||
786 | # | ||
787 | # may also be needed; see USB_STORAGE Help for more information | ||
612 | # | 788 | # |
613 | CONFIG_USB_STORAGE=y | 789 | CONFIG_USB_STORAGE=y |
614 | CONFIG_USB_STORAGE_DEBUG=y | 790 | CONFIG_USB_STORAGE_DEBUG=y |
615 | # CONFIG_USB_STORAGE_RW_DETECT is not set | ||
616 | CONFIG_USB_STORAGE_DATAFAB=y | 791 | CONFIG_USB_STORAGE_DATAFAB=y |
617 | # CONFIG_USB_STORAGE_FREECOM is not set | 792 | # CONFIG_USB_STORAGE_FREECOM is not set |
618 | # CONFIG_USB_STORAGE_ISD200 is not set | 793 | # CONFIG_USB_STORAGE_ISD200 is not set |
@@ -621,22 +796,32 @@ CONFIG_USB_STORAGE_DATAFAB=y | |||
621 | # CONFIG_USB_STORAGE_SDDR09 is not set | 796 | # CONFIG_USB_STORAGE_SDDR09 is not set |
622 | # CONFIG_USB_STORAGE_SDDR55 is not set | 797 | # CONFIG_USB_STORAGE_SDDR55 is not set |
623 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 798 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
799 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
800 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
801 | # CONFIG_USB_LIBUSUAL is not set | ||
624 | 802 | ||
625 | # | 803 | # |
626 | # USB Input Devices | 804 | # USB Input Devices |
627 | # | 805 | # |
628 | CONFIG_USB_HID=y | 806 | CONFIG_USB_HID=y |
629 | CONFIG_USB_HIDINPUT=y | 807 | CONFIG_USB_HIDINPUT=y |
808 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
630 | # CONFIG_HID_FF is not set | 809 | # CONFIG_HID_FF is not set |
631 | # CONFIG_USB_HIDDEV is not set | 810 | # CONFIG_USB_HIDDEV is not set |
632 | # CONFIG_USB_AIPTEK is not set | 811 | # CONFIG_USB_AIPTEK is not set |
633 | # CONFIG_USB_WACOM is not set | 812 | # CONFIG_USB_WACOM is not set |
813 | # CONFIG_USB_ACECAD is not set | ||
634 | # CONFIG_USB_KBTAB is not set | 814 | # CONFIG_USB_KBTAB is not set |
635 | # CONFIG_USB_POWERMATE is not set | 815 | # CONFIG_USB_POWERMATE is not set |
636 | # CONFIG_USB_MTOUCH is not set | 816 | # CONFIG_USB_MTOUCH is not set |
817 | # CONFIG_USB_ITMTOUCH is not set | ||
637 | # CONFIG_USB_EGALAX is not set | 818 | # CONFIG_USB_EGALAX is not set |
819 | # CONFIG_USB_YEALINK is not set | ||
638 | # CONFIG_USB_XPAD is not set | 820 | # CONFIG_USB_XPAD is not set |
639 | # CONFIG_USB_ATI_REMOTE is not set | 821 | # CONFIG_USB_ATI_REMOTE is not set |
822 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
823 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
824 | # CONFIG_USB_APPLETOUCH is not set | ||
640 | 825 | ||
641 | # | 826 | # |
642 | # USB Imaging devices | 827 | # USB Imaging devices |
@@ -686,16 +871,33 @@ CONFIG_USB_MON=y | |||
686 | # CONFIG_USB_PHIDGETKIT is not set | 871 | # CONFIG_USB_PHIDGETKIT is not set |
687 | # CONFIG_USB_PHIDGETSERVO is not set | 872 | # CONFIG_USB_PHIDGETSERVO is not set |
688 | # CONFIG_USB_IDMOUSE is not set | 873 | # CONFIG_USB_IDMOUSE is not set |
874 | # CONFIG_USB_LD is not set | ||
689 | # CONFIG_USB_TEST is not set | 875 | # CONFIG_USB_TEST is not set |
690 | 876 | ||
691 | # | 877 | # |
692 | # USB ATM/DSL drivers | 878 | # USB DSL modem support |
693 | # | 879 | # |
694 | 880 | ||
695 | # | 881 | # |
696 | # USB Gadget Support | 882 | # USB Gadget Support |
697 | # | 883 | # |
698 | # CONFIG_USB_GADGET is not set | 884 | CONFIG_USB_GADGET=y |
885 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
886 | CONFIG_USB_GADGET_SELECTED=y | ||
887 | # CONFIG_USB_GADGET_NET2280 is not set | ||
888 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
889 | # CONFIG_USB_GADGET_GOKU is not set | ||
890 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
891 | CONFIG_USB_GADGET_LH7=y | ||
892 | CONFIG_USB_LH7=y | ||
893 | # CONFIG_USB_GADGET_OMAP is not set | ||
894 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
895 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
896 | CONFIG_USB_ZERO=y | ||
897 | # CONFIG_USB_ETH is not set | ||
898 | # CONFIG_USB_GADGETFS is not set | ||
899 | # CONFIG_USB_FILE_STORAGE is not set | ||
900 | # CONFIG_USB_G_SERIAL is not set | ||
699 | 901 | ||
700 | # | 902 | # |
701 | # MMC/SD Card support | 903 | # MMC/SD Card support |
@@ -707,6 +909,7 @@ CONFIG_USB_MON=y | |||
707 | # | 909 | # |
708 | CONFIG_EXT2_FS=y | 910 | CONFIG_EXT2_FS=y |
709 | # CONFIG_EXT2_FS_XATTR is not set | 911 | # CONFIG_EXT2_FS_XATTR is not set |
912 | # CONFIG_EXT2_FS_XIP is not set | ||
710 | CONFIG_EXT3_FS=y | 913 | CONFIG_EXT3_FS=y |
711 | CONFIG_EXT3_FS_XATTR=y | 914 | CONFIG_EXT3_FS_XATTR=y |
712 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 915 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
@@ -716,17 +919,17 @@ CONFIG_JBD=y | |||
716 | CONFIG_FS_MBCACHE=y | 919 | CONFIG_FS_MBCACHE=y |
717 | # CONFIG_REISERFS_FS is not set | 920 | # CONFIG_REISERFS_FS is not set |
718 | # CONFIG_JFS_FS is not set | 921 | # CONFIG_JFS_FS is not set |
719 | 922 | # CONFIG_FS_POSIX_ACL is not set | |
720 | # | ||
721 | # XFS support | ||
722 | # | ||
723 | # CONFIG_XFS_FS is not set | 923 | # CONFIG_XFS_FS is not set |
924 | # CONFIG_OCFS2_FS is not set | ||
724 | # CONFIG_MINIX_FS is not set | 925 | # CONFIG_MINIX_FS is not set |
725 | # CONFIG_ROMFS_FS is not set | 926 | # CONFIG_ROMFS_FS is not set |
927 | CONFIG_INOTIFY=y | ||
726 | # CONFIG_QUOTA is not set | 928 | # CONFIG_QUOTA is not set |
727 | CONFIG_DNOTIFY=y | 929 | CONFIG_DNOTIFY=y |
728 | # CONFIG_AUTOFS_FS is not set | 930 | # CONFIG_AUTOFS_FS is not set |
729 | # CONFIG_AUTOFS4_FS is not set | 931 | # CONFIG_AUTOFS4_FS is not set |
932 | # CONFIG_FUSE_FS is not set | ||
730 | 933 | ||
731 | # | 934 | # |
732 | # CD-ROM/DVD Filesystems | 935 | # CD-ROM/DVD Filesystems |
@@ -749,12 +952,11 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | |||
749 | # | 952 | # |
750 | CONFIG_PROC_FS=y | 953 | CONFIG_PROC_FS=y |
751 | CONFIG_SYSFS=y | 954 | CONFIG_SYSFS=y |
752 | # CONFIG_DEVFS_FS is not set | ||
753 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
754 | CONFIG_TMPFS=y | 955 | CONFIG_TMPFS=y |
755 | # CONFIG_TMPFS_XATTR is not set | ||
756 | # CONFIG_HUGETLB_PAGE is not set | 956 | # CONFIG_HUGETLB_PAGE is not set |
757 | CONFIG_RAMFS=y | 957 | CONFIG_RAMFS=y |
958 | # CONFIG_RELAYFS_FS is not set | ||
959 | # CONFIG_CONFIGFS_FS is not set | ||
758 | 960 | ||
759 | # | 961 | # |
760 | # Miscellaneous filesystems | 962 | # Miscellaneous filesystems |
@@ -769,8 +971,8 @@ CONFIG_RAMFS=y | |||
769 | # CONFIG_JFFS_FS is not set | 971 | # CONFIG_JFFS_FS is not set |
770 | CONFIG_JFFS2_FS=y | 972 | CONFIG_JFFS2_FS=y |
771 | CONFIG_JFFS2_FS_DEBUG=0 | 973 | CONFIG_JFFS2_FS_DEBUG=0 |
772 | # CONFIG_JFFS2_FS_NAND is not set | 974 | CONFIG_JFFS2_FS_WRITEBUFFER=y |
773 | # CONFIG_JFFS2_FS_NOR_ECC is not set | 975 | # CONFIG_JFFS2_SUMMARY is not set |
774 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | 976 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set |
775 | CONFIG_JFFS2_ZLIB=y | 977 | CONFIG_JFFS2_ZLIB=y |
776 | CONFIG_JFFS2_RTIME=y | 978 | CONFIG_JFFS2_RTIME=y |
@@ -787,12 +989,14 @@ CONFIG_CRAMFS=y | |||
787 | # | 989 | # |
788 | CONFIG_NFS_FS=y | 990 | CONFIG_NFS_FS=y |
789 | CONFIG_NFS_V3=y | 991 | CONFIG_NFS_V3=y |
992 | # CONFIG_NFS_V3_ACL is not set | ||
790 | # CONFIG_NFS_V4 is not set | 993 | # CONFIG_NFS_V4 is not set |
791 | # CONFIG_NFS_DIRECTIO is not set | 994 | # CONFIG_NFS_DIRECTIO is not set |
792 | # CONFIG_NFSD is not set | 995 | # CONFIG_NFSD is not set |
793 | CONFIG_ROOT_NFS=y | 996 | CONFIG_ROOT_NFS=y |
794 | CONFIG_LOCKD=y | 997 | CONFIG_LOCKD=y |
795 | CONFIG_LOCKD_V4=y | 998 | CONFIG_LOCKD_V4=y |
999 | CONFIG_NFS_COMMON=y | ||
796 | CONFIG_SUNRPC=y | 1000 | CONFIG_SUNRPC=y |
797 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 1001 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
798 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1002 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
@@ -801,6 +1005,7 @@ CONFIG_SUNRPC=y | |||
801 | # CONFIG_NCP_FS is not set | 1005 | # CONFIG_NCP_FS is not set |
802 | # CONFIG_CODA_FS is not set | 1006 | # CONFIG_CODA_FS is not set |
803 | # CONFIG_AFS_FS is not set | 1007 | # CONFIG_AFS_FS is not set |
1008 | # CONFIG_9P_FS is not set | ||
804 | 1009 | ||
805 | # | 1010 | # |
806 | # Partition Types | 1011 | # Partition Types |
@@ -820,6 +1025,7 @@ CONFIG_MSDOS_PARTITION=y | |||
820 | # CONFIG_SGI_PARTITION is not set | 1025 | # CONFIG_SGI_PARTITION is not set |
821 | # CONFIG_ULTRIX_PARTITION is not set | 1026 | # CONFIG_ULTRIX_PARTITION is not set |
822 | # CONFIG_SUN_PARTITION is not set | 1027 | # CONFIG_SUN_PARTITION is not set |
1028 | # CONFIG_KARMA_PARTITION is not set | ||
823 | # CONFIG_EFI_PARTITION is not set | 1029 | # CONFIG_EFI_PARTITION is not set |
824 | 1030 | ||
825 | # | 1031 | # |
@@ -875,19 +1081,24 @@ CONFIG_NLS_DEFAULT="iso8859-1" | |||
875 | # Kernel hacking | 1081 | # Kernel hacking |
876 | # | 1082 | # |
877 | # CONFIG_PRINTK_TIME is not set | 1083 | # CONFIG_PRINTK_TIME is not set |
878 | CONFIG_DEBUG_KERNEL=y | ||
879 | CONFIG_MAGIC_SYSRQ=y | 1084 | CONFIG_MAGIC_SYSRQ=y |
880 | CONFIG_LOG_BUF_SHIFT=14 | 1085 | CONFIG_DEBUG_KERNEL=y |
1086 | CONFIG_LOG_BUF_SHIFT=16 | ||
1087 | CONFIG_DETECT_SOFTLOCKUP=y | ||
881 | # CONFIG_SCHEDSTATS is not set | 1088 | # CONFIG_SCHEDSTATS is not set |
882 | # CONFIG_DEBUG_SLAB is not set | 1089 | # CONFIG_DEBUG_SLAB is not set |
883 | CONFIG_DEBUG_PREEMPT=y | 1090 | CONFIG_DEBUG_PREEMPT=y |
1091 | CONFIG_DEBUG_MUTEXES=y | ||
884 | # CONFIG_DEBUG_SPINLOCK is not set | 1092 | # CONFIG_DEBUG_SPINLOCK is not set |
885 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 1093 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
886 | # CONFIG_DEBUG_KOBJECT is not set | 1094 | # CONFIG_DEBUG_KOBJECT is not set |
887 | CONFIG_DEBUG_BUGVERBOSE=y | 1095 | CONFIG_DEBUG_BUGVERBOSE=y |
888 | CONFIG_DEBUG_INFO=y | 1096 | CONFIG_DEBUG_INFO=y |
889 | # CONFIG_DEBUG_FS is not set | 1097 | # CONFIG_DEBUG_FS is not set |
1098 | # CONFIG_DEBUG_VM is not set | ||
890 | CONFIG_FRAME_POINTER=y | 1099 | CONFIG_FRAME_POINTER=y |
1100 | CONFIG_FORCED_INLINING=y | ||
1101 | # CONFIG_RCU_TORTURE_TEST is not set | ||
891 | CONFIG_DEBUG_USER=y | 1102 | CONFIG_DEBUG_USER=y |
892 | # CONFIG_DEBUG_WAITQ is not set | 1103 | # CONFIG_DEBUG_WAITQ is not set |
893 | CONFIG_DEBUG_ERRORS=y | 1104 | CONFIG_DEBUG_ERRORS=y |
@@ -912,6 +1123,7 @@ CONFIG_DEBUG_ERRORS=y | |||
912 | # Library routines | 1123 | # Library routines |
913 | # | 1124 | # |
914 | # CONFIG_CRC_CCITT is not set | 1125 | # CONFIG_CRC_CCITT is not set |
1126 | # CONFIG_CRC16 is not set | ||
915 | CONFIG_CRC32=y | 1127 | CONFIG_CRC32=y |
916 | # CONFIG_LIBCRC32C is not set | 1128 | # CONFIG_LIBCRC32C is not set |
917 | CONFIG_ZLIB_INFLATE=y | 1129 | CONFIG_ZLIB_INFLATE=y |
diff --git a/arch/arm/configs/netx_defconfig b/arch/arm/configs/netx_defconfig new file mode 100644 index 000000000000..61115a773382 --- /dev/null +++ b/arch/arm/configs/netx_defconfig | |||
@@ -0,0 +1,926 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc6 | ||
4 | # Tue Jun 6 15:26:53 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | CONFIG_POSIX_MQUEUE=y | ||
29 | CONFIG_BSD_PROCESS_ACCT=y | ||
30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
31 | CONFIG_SYSCTL=y | ||
32 | # CONFIG_AUDIT is not set | ||
33 | CONFIG_IKCONFIG=y | ||
34 | CONFIG_IKCONFIG_PROC=y | ||
35 | # CONFIG_RELAY is not set | ||
36 | CONFIG_INITRAMFS_SOURCE="" | ||
37 | CONFIG_UID16=y | ||
38 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
39 | # CONFIG_EMBEDDED is not set | ||
40 | CONFIG_KALLSYMS=y | ||
41 | # CONFIG_KALLSYMS_ALL is not set | ||
42 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
43 | CONFIG_HOTPLUG=y | ||
44 | CONFIG_PRINTK=y | ||
45 | CONFIG_BUG=y | ||
46 | CONFIG_ELF_CORE=y | ||
47 | CONFIG_BASE_FULL=y | ||
48 | CONFIG_FUTEX=y | ||
49 | CONFIG_EPOLL=y | ||
50 | CONFIG_SHMEM=y | ||
51 | CONFIG_SLAB=y | ||
52 | # CONFIG_TINY_SHMEM is not set | ||
53 | CONFIG_BASE_SMALL=0 | ||
54 | # CONFIG_SLOB is not set | ||
55 | CONFIG_OBSOLETE_INTERMODULE=y | ||
56 | |||
57 | # | ||
58 | # Loadable module support | ||
59 | # | ||
60 | CONFIG_MODULES=y | ||
61 | CONFIG_MODULE_UNLOAD=y | ||
62 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
63 | # CONFIG_MODVERSIONS is not set | ||
64 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
65 | CONFIG_KMOD=y | ||
66 | |||
67 | # | ||
68 | # Block layer | ||
69 | # | ||
70 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
71 | |||
72 | # | ||
73 | # IO Schedulers | ||
74 | # | ||
75 | CONFIG_IOSCHED_NOOP=y | ||
76 | CONFIG_IOSCHED_AS=y | ||
77 | CONFIG_IOSCHED_DEADLINE=y | ||
78 | CONFIG_IOSCHED_CFQ=y | ||
79 | CONFIG_DEFAULT_AS=y | ||
80 | # CONFIG_DEFAULT_DEADLINE is not set | ||
81 | # CONFIG_DEFAULT_CFQ is not set | ||
82 | # CONFIG_DEFAULT_NOOP is not set | ||
83 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
84 | |||
85 | # | ||
86 | # System Type | ||
87 | # | ||
88 | # CONFIG_ARCH_CLPS7500 is not set | ||
89 | # CONFIG_ARCH_CLPS711X is not set | ||
90 | # CONFIG_ARCH_CO285 is not set | ||
91 | # CONFIG_ARCH_EBSA110 is not set | ||
92 | # CONFIG_ARCH_EP93XX is not set | ||
93 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
94 | # CONFIG_ARCH_INTEGRATOR is not set | ||
95 | # CONFIG_ARCH_IOP3XX is not set | ||
96 | # CONFIG_ARCH_IXP4XX is not set | ||
97 | # CONFIG_ARCH_IXP2000 is not set | ||
98 | # CONFIG_ARCH_IXP23XX is not set | ||
99 | # CONFIG_ARCH_L7200 is not set | ||
100 | # CONFIG_ARCH_PXA is not set | ||
101 | # CONFIG_ARCH_RPC is not set | ||
102 | # CONFIG_ARCH_SA1100 is not set | ||
103 | # CONFIG_ARCH_S3C2410 is not set | ||
104 | # CONFIG_ARCH_SHARK is not set | ||
105 | # CONFIG_ARCH_LH7A40X is not set | ||
106 | # CONFIG_ARCH_OMAP is not set | ||
107 | # CONFIG_ARCH_VERSATILE is not set | ||
108 | # CONFIG_ARCH_REALVIEW is not set | ||
109 | # CONFIG_ARCH_IMX is not set | ||
110 | # CONFIG_ARCH_H720X is not set | ||
111 | # CONFIG_ARCH_AAEC2000 is not set | ||
112 | # CONFIG_ARCH_AT91RM9200 is not set | ||
113 | CONFIG_ARCH_NETX=y | ||
114 | |||
115 | # | ||
116 | # NetX Implementations | ||
117 | # | ||
118 | CONFIG_MACH_NXDKN=y | ||
119 | CONFIG_MACH_NXDB500=y | ||
120 | CONFIG_MACH_NXEB500HMI=y | ||
121 | |||
122 | # | ||
123 | # Processor Type | ||
124 | # | ||
125 | CONFIG_CPU_32=y | ||
126 | CONFIG_CPU_ARM926T=y | ||
127 | CONFIG_CPU_32v5=y | ||
128 | CONFIG_CPU_ABRT_EV5TJ=y | ||
129 | CONFIG_CPU_CACHE_VIVT=y | ||
130 | CONFIG_CPU_COPY_V4WB=y | ||
131 | CONFIG_CPU_TLB_V4WBI=y | ||
132 | |||
133 | # | ||
134 | # Processor Features | ||
135 | # | ||
136 | CONFIG_ARM_THUMB=y | ||
137 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
138 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
139 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
140 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
141 | CONFIG_ARM_VIC=y | ||
142 | |||
143 | # | ||
144 | # Bus support | ||
145 | # | ||
146 | CONFIG_ARM_AMBA=y | ||
147 | |||
148 | # | ||
149 | # PCCARD (PCMCIA/CardBus) support | ||
150 | # | ||
151 | # CONFIG_PCCARD is not set | ||
152 | |||
153 | # | ||
154 | # Kernel Features | ||
155 | # | ||
156 | CONFIG_PREEMPT=y | ||
157 | # CONFIG_NO_IDLE_HZ is not set | ||
158 | CONFIG_HZ=100 | ||
159 | # CONFIG_AEABI is not set | ||
160 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
161 | CONFIG_SELECT_MEMORY_MODEL=y | ||
162 | CONFIG_FLATMEM_MANUAL=y | ||
163 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
164 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
165 | CONFIG_FLATMEM=y | ||
166 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
167 | # CONFIG_SPARSEMEM_STATIC is not set | ||
168 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
169 | CONFIG_ALIGNMENT_TRAP=y | ||
170 | |||
171 | # | ||
172 | # Boot options | ||
173 | # | ||
174 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
175 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
176 | CONFIG_CMDLINE="console=ttySMX0,115200" | ||
177 | # CONFIG_XIP_KERNEL is not set | ||
178 | |||
179 | # | ||
180 | # Floating point emulation | ||
181 | # | ||
182 | |||
183 | # | ||
184 | # At least one emulation must be selected | ||
185 | # | ||
186 | # CONFIG_FPE_NWFPE is not set | ||
187 | # CONFIG_FPE_FASTFPE is not set | ||
188 | # CONFIG_VFP is not set | ||
189 | |||
190 | # | ||
191 | # Userspace binary formats | ||
192 | # | ||
193 | CONFIG_BINFMT_ELF=y | ||
194 | # CONFIG_BINFMT_AOUT is not set | ||
195 | # CONFIG_BINFMT_MISC is not set | ||
196 | # CONFIG_ARTHUR is not set | ||
197 | |||
198 | # | ||
199 | # Power management options | ||
200 | # | ||
201 | # CONFIG_PM is not set | ||
202 | # CONFIG_APM is not set | ||
203 | |||
204 | # | ||
205 | # Networking | ||
206 | # | ||
207 | CONFIG_NET=y | ||
208 | |||
209 | # | ||
210 | # Networking options | ||
211 | # | ||
212 | # CONFIG_NETDEBUG is not set | ||
213 | CONFIG_PACKET=y | ||
214 | CONFIG_PACKET_MMAP=y | ||
215 | CONFIG_UNIX=y | ||
216 | CONFIG_XFRM=y | ||
217 | CONFIG_XFRM_USER=m | ||
218 | CONFIG_NET_KEY=y | ||
219 | CONFIG_INET=y | ||
220 | CONFIG_IP_MULTICAST=y | ||
221 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
222 | CONFIG_IP_FIB_HASH=y | ||
223 | CONFIG_IP_PNP=y | ||
224 | CONFIG_IP_PNP_DHCP=y | ||
225 | # CONFIG_IP_PNP_BOOTP is not set | ||
226 | # CONFIG_IP_PNP_RARP is not set | ||
227 | # CONFIG_NET_IPIP is not set | ||
228 | CONFIG_NET_IPGRE=m | ||
229 | # CONFIG_NET_IPGRE_BROADCAST is not set | ||
230 | # CONFIG_IP_MROUTE is not set | ||
231 | # CONFIG_ARPD is not set | ||
232 | CONFIG_SYN_COOKIES=y | ||
233 | CONFIG_INET_AH=y | ||
234 | CONFIG_INET_ESP=y | ||
235 | CONFIG_INET_IPCOMP=y | ||
236 | CONFIG_INET_XFRM_TUNNEL=y | ||
237 | CONFIG_INET_TUNNEL=y | ||
238 | CONFIG_INET_DIAG=y | ||
239 | CONFIG_INET_TCP_DIAG=y | ||
240 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
241 | CONFIG_TCP_CONG_BIC=y | ||
242 | |||
243 | # | ||
244 | # IP: Virtual Server Configuration | ||
245 | # | ||
246 | # CONFIG_IP_VS is not set | ||
247 | CONFIG_IPV6=m | ||
248 | # CONFIG_IPV6_PRIVACY is not set | ||
249 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
250 | CONFIG_INET6_AH=m | ||
251 | CONFIG_INET6_ESP=m | ||
252 | CONFIG_INET6_IPCOMP=m | ||
253 | CONFIG_INET6_XFRM_TUNNEL=m | ||
254 | CONFIG_INET6_TUNNEL=m | ||
255 | # CONFIG_IPV6_TUNNEL is not set | ||
256 | CONFIG_NETFILTER=y | ||
257 | # CONFIG_NETFILTER_DEBUG is not set | ||
258 | |||
259 | # | ||
260 | # Core Netfilter Configuration | ||
261 | # | ||
262 | # CONFIG_NETFILTER_NETLINK is not set | ||
263 | # CONFIG_NETFILTER_XTABLES is not set | ||
264 | |||
265 | # | ||
266 | # IP: Netfilter Configuration | ||
267 | # | ||
268 | CONFIG_IP_NF_CONNTRACK=m | ||
269 | # CONFIG_IP_NF_CT_ACCT is not set | ||
270 | # CONFIG_IP_NF_CONNTRACK_MARK is not set | ||
271 | # CONFIG_IP_NF_CONNTRACK_EVENTS is not set | ||
272 | # CONFIG_IP_NF_CT_PROTO_SCTP is not set | ||
273 | CONFIG_IP_NF_FTP=m | ||
274 | CONFIG_IP_NF_IRC=m | ||
275 | # CONFIG_IP_NF_NETBIOS_NS is not set | ||
276 | CONFIG_IP_NF_TFTP=m | ||
277 | CONFIG_IP_NF_AMANDA=m | ||
278 | # CONFIG_IP_NF_PPTP is not set | ||
279 | # CONFIG_IP_NF_H323 is not set | ||
280 | CONFIG_IP_NF_QUEUE=m | ||
281 | |||
282 | # | ||
283 | # IPv6: Netfilter Configuration (EXPERIMENTAL) | ||
284 | # | ||
285 | # CONFIG_IP6_NF_QUEUE is not set | ||
286 | |||
287 | # | ||
288 | # DCCP Configuration (EXPERIMENTAL) | ||
289 | # | ||
290 | # CONFIG_IP_DCCP is not set | ||
291 | |||
292 | # | ||
293 | # SCTP Configuration (EXPERIMENTAL) | ||
294 | # | ||
295 | # CONFIG_IP_SCTP is not set | ||
296 | |||
297 | # | ||
298 | # TIPC Configuration (EXPERIMENTAL) | ||
299 | # | ||
300 | # CONFIG_TIPC is not set | ||
301 | # CONFIG_ATM is not set | ||
302 | # CONFIG_BRIDGE is not set | ||
303 | # CONFIG_VLAN_8021Q is not set | ||
304 | # CONFIG_DECNET is not set | ||
305 | # CONFIG_LLC2 is not set | ||
306 | # CONFIG_IPX is not set | ||
307 | # CONFIG_ATALK is not set | ||
308 | # CONFIG_X25 is not set | ||
309 | # CONFIG_LAPB is not set | ||
310 | # CONFIG_NET_DIVERT is not set | ||
311 | # CONFIG_ECONET is not set | ||
312 | # CONFIG_WAN_ROUTER is not set | ||
313 | |||
314 | # | ||
315 | # QoS and/or fair queueing | ||
316 | # | ||
317 | # CONFIG_NET_SCHED is not set | ||
318 | |||
319 | # | ||
320 | # Network testing | ||
321 | # | ||
322 | CONFIG_NET_PKTGEN=m | ||
323 | # CONFIG_HAMRADIO is not set | ||
324 | # CONFIG_IRDA is not set | ||
325 | # CONFIG_BT is not set | ||
326 | # CONFIG_IEEE80211 is not set | ||
327 | |||
328 | # | ||
329 | # Device Drivers | ||
330 | # | ||
331 | |||
332 | # | ||
333 | # Generic Driver Options | ||
334 | # | ||
335 | CONFIG_STANDALONE=y | ||
336 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
337 | CONFIG_FW_LOADER=y | ||
338 | # CONFIG_DEBUG_DRIVER is not set | ||
339 | |||
340 | # | ||
341 | # Connector - unified userspace <-> kernelspace linker | ||
342 | # | ||
343 | # CONFIG_CONNECTOR is not set | ||
344 | |||
345 | # | ||
346 | # Memory Technology Devices (MTD) | ||
347 | # | ||
348 | CONFIG_MTD=y | ||
349 | # CONFIG_MTD_DEBUG is not set | ||
350 | # CONFIG_MTD_CONCAT is not set | ||
351 | CONFIG_MTD_PARTITIONS=y | ||
352 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
353 | CONFIG_MTD_CMDLINE_PARTS=y | ||
354 | # CONFIG_MTD_AFS_PARTS is not set | ||
355 | |||
356 | # | ||
357 | # User Modules And Translation Layers | ||
358 | # | ||
359 | CONFIG_MTD_CHAR=y | ||
360 | CONFIG_MTD_BLOCK=y | ||
361 | # CONFIG_FTL is not set | ||
362 | # CONFIG_NFTL is not set | ||
363 | # CONFIG_INFTL is not set | ||
364 | # CONFIG_RFD_FTL is not set | ||
365 | |||
366 | # | ||
367 | # RAM/ROM/Flash chip drivers | ||
368 | # | ||
369 | CONFIG_MTD_CFI=y | ||
370 | # CONFIG_MTD_JEDECPROBE is not set | ||
371 | CONFIG_MTD_GEN_PROBE=y | ||
372 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
373 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
374 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
375 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
376 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
377 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
378 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
379 | CONFIG_MTD_CFI_I1=y | ||
380 | CONFIG_MTD_CFI_I2=y | ||
381 | # CONFIG_MTD_CFI_I4 is not set | ||
382 | # CONFIG_MTD_CFI_I8 is not set | ||
383 | CONFIG_MTD_CFI_INTELEXT=y | ||
384 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
385 | # CONFIG_MTD_CFI_STAA is not set | ||
386 | CONFIG_MTD_CFI_UTIL=y | ||
387 | CONFIG_MTD_RAM=y | ||
388 | # CONFIG_MTD_ROM is not set | ||
389 | # CONFIG_MTD_ABSENT is not set | ||
390 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
391 | |||
392 | # | ||
393 | # Mapping drivers for chip access | ||
394 | # | ||
395 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
396 | # CONFIG_MTD_PHYSMAP is not set | ||
397 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
398 | CONFIG_MTD_PLATRAM=y | ||
399 | |||
400 | # | ||
401 | # Self-contained MTD device drivers | ||
402 | # | ||
403 | # CONFIG_MTD_SLRAM is not set | ||
404 | # CONFIG_MTD_PHRAM is not set | ||
405 | # CONFIG_MTD_MTDRAM is not set | ||
406 | # CONFIG_MTD_BLOCK2MTD is not set | ||
407 | |||
408 | # | ||
409 | # Disk-On-Chip Device Drivers | ||
410 | # | ||
411 | # CONFIG_MTD_DOC2000 is not set | ||
412 | # CONFIG_MTD_DOC2001 is not set | ||
413 | # CONFIG_MTD_DOC2001PLUS is not set | ||
414 | |||
415 | # | ||
416 | # NAND Flash Device Drivers | ||
417 | # | ||
418 | # CONFIG_MTD_NAND is not set | ||
419 | |||
420 | # | ||
421 | # OneNAND Flash Device Drivers | ||
422 | # | ||
423 | # CONFIG_MTD_ONENAND is not set | ||
424 | |||
425 | # | ||
426 | # Parallel port support | ||
427 | # | ||
428 | # CONFIG_PARPORT is not set | ||
429 | |||
430 | # | ||
431 | # Plug and Play support | ||
432 | # | ||
433 | |||
434 | # | ||
435 | # Block devices | ||
436 | # | ||
437 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
438 | CONFIG_BLK_DEV_LOOP=m | ||
439 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
440 | # CONFIG_BLK_DEV_NBD is not set | ||
441 | # CONFIG_BLK_DEV_RAM is not set | ||
442 | # CONFIG_BLK_DEV_INITRD is not set | ||
443 | # CONFIG_CDROM_PKTCDVD is not set | ||
444 | # CONFIG_ATA_OVER_ETH is not set | ||
445 | |||
446 | # | ||
447 | # SCSI device support | ||
448 | # | ||
449 | # CONFIG_RAID_ATTRS is not set | ||
450 | # CONFIG_SCSI is not set | ||
451 | |||
452 | # | ||
453 | # Multi-device support (RAID and LVM) | ||
454 | # | ||
455 | # CONFIG_MD is not set | ||
456 | |||
457 | # | ||
458 | # Fusion MPT device support | ||
459 | # | ||
460 | # CONFIG_FUSION is not set | ||
461 | |||
462 | # | ||
463 | # IEEE 1394 (FireWire) support | ||
464 | # | ||
465 | |||
466 | # | ||
467 | # I2O device support | ||
468 | # | ||
469 | |||
470 | # | ||
471 | # Network device support | ||
472 | # | ||
473 | CONFIG_NETDEVICES=y | ||
474 | # CONFIG_DUMMY is not set | ||
475 | # CONFIG_BONDING is not set | ||
476 | # CONFIG_EQUALIZER is not set | ||
477 | # CONFIG_TUN is not set | ||
478 | |||
479 | # | ||
480 | # PHY device support | ||
481 | # | ||
482 | # CONFIG_PHYLIB is not set | ||
483 | |||
484 | # | ||
485 | # Ethernet (10 or 100Mbit) | ||
486 | # | ||
487 | CONFIG_NET_ETHERNET=y | ||
488 | CONFIG_MII=y | ||
489 | # CONFIG_SMC91X is not set | ||
490 | CONFIG_NET_NETX=y | ||
491 | # CONFIG_DM9000 is not set | ||
492 | |||
493 | # | ||
494 | # Ethernet (1000 Mbit) | ||
495 | # | ||
496 | |||
497 | # | ||
498 | # Ethernet (10000 Mbit) | ||
499 | # | ||
500 | |||
501 | # | ||
502 | # Token Ring devices | ||
503 | # | ||
504 | |||
505 | # | ||
506 | # Wireless LAN (non-hamradio) | ||
507 | # | ||
508 | # CONFIG_NET_RADIO is not set | ||
509 | |||
510 | # | ||
511 | # Wan interfaces | ||
512 | # | ||
513 | # CONFIG_WAN is not set | ||
514 | # CONFIG_PPP is not set | ||
515 | # CONFIG_SLIP is not set | ||
516 | # CONFIG_SHAPER is not set | ||
517 | # CONFIG_NETCONSOLE is not set | ||
518 | # CONFIG_NETPOLL is not set | ||
519 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
520 | |||
521 | # | ||
522 | # ISDN subsystem | ||
523 | # | ||
524 | # CONFIG_ISDN is not set | ||
525 | |||
526 | # | ||
527 | # Input device support | ||
528 | # | ||
529 | CONFIG_INPUT=y | ||
530 | |||
531 | # | ||
532 | # Userland interfaces | ||
533 | # | ||
534 | CONFIG_INPUT_MOUSEDEV=y | ||
535 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
536 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
537 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
538 | # CONFIG_INPUT_JOYDEV is not set | ||
539 | # CONFIG_INPUT_TSDEV is not set | ||
540 | # CONFIG_INPUT_EVDEV is not set | ||
541 | # CONFIG_INPUT_EVBUG is not set | ||
542 | |||
543 | # | ||
544 | # Input Device Drivers | ||
545 | # | ||
546 | # CONFIG_INPUT_KEYBOARD is not set | ||
547 | # CONFIG_INPUT_MOUSE is not set | ||
548 | # CONFIG_INPUT_JOYSTICK is not set | ||
549 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
550 | # CONFIG_INPUT_MISC is not set | ||
551 | |||
552 | # | ||
553 | # Hardware I/O ports | ||
554 | # | ||
555 | CONFIG_SERIO=y | ||
556 | CONFIG_SERIO_SERPORT=y | ||
557 | # CONFIG_SERIO_AMBAKMI is not set | ||
558 | # CONFIG_SERIO_RAW is not set | ||
559 | # CONFIG_GAMEPORT is not set | ||
560 | |||
561 | # | ||
562 | # Character devices | ||
563 | # | ||
564 | CONFIG_VT=y | ||
565 | CONFIG_VT_CONSOLE=y | ||
566 | CONFIG_HW_CONSOLE=y | ||
567 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
568 | |||
569 | # | ||
570 | # Serial drivers | ||
571 | # | ||
572 | # CONFIG_SERIAL_8250 is not set | ||
573 | |||
574 | # | ||
575 | # Non-8250 serial port support | ||
576 | # | ||
577 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
578 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
579 | CONFIG_SERIAL_CORE=y | ||
580 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
581 | CONFIG_SERIAL_NETX=y | ||
582 | CONFIG_SERIAL_NETX_CONSOLE=y | ||
583 | CONFIG_UNIX98_PTYS=y | ||
584 | CONFIG_LEGACY_PTYS=y | ||
585 | CONFIG_LEGACY_PTY_COUNT=256 | ||
586 | |||
587 | # | ||
588 | # IPMI | ||
589 | # | ||
590 | # CONFIG_IPMI_HANDLER is not set | ||
591 | |||
592 | # | ||
593 | # Watchdog Cards | ||
594 | # | ||
595 | # CONFIG_WATCHDOG is not set | ||
596 | CONFIG_NVRAM=m | ||
597 | # CONFIG_DTLK is not set | ||
598 | # CONFIG_R3964 is not set | ||
599 | |||
600 | # | ||
601 | # Ftape, the floppy tape device driver | ||
602 | # | ||
603 | # CONFIG_RAW_DRIVER is not set | ||
604 | |||
605 | # | ||
606 | # TPM devices | ||
607 | # | ||
608 | # CONFIG_TCG_TPM is not set | ||
609 | # CONFIG_TELCLOCK is not set | ||
610 | |||
611 | # | ||
612 | # I2C support | ||
613 | # | ||
614 | # CONFIG_I2C is not set | ||
615 | |||
616 | # | ||
617 | # SPI support | ||
618 | # | ||
619 | # CONFIG_SPI is not set | ||
620 | # CONFIG_SPI_MASTER is not set | ||
621 | |||
622 | # | ||
623 | # Dallas's 1-wire bus | ||
624 | # | ||
625 | # CONFIG_W1 is not set | ||
626 | |||
627 | # | ||
628 | # Hardware Monitoring support | ||
629 | # | ||
630 | # CONFIG_HWMON is not set | ||
631 | # CONFIG_HWMON_VID is not set | ||
632 | |||
633 | # | ||
634 | # Misc devices | ||
635 | # | ||
636 | |||
637 | # | ||
638 | # LED devices | ||
639 | # | ||
640 | # CONFIG_NEW_LEDS is not set | ||
641 | |||
642 | # | ||
643 | # LED drivers | ||
644 | # | ||
645 | |||
646 | # | ||
647 | # LED Triggers | ||
648 | # | ||
649 | |||
650 | # | ||
651 | # Multimedia devices | ||
652 | # | ||
653 | # CONFIG_VIDEO_DEV is not set | ||
654 | CONFIG_VIDEO_V4L2=y | ||
655 | |||
656 | # | ||
657 | # Digital Video Broadcasting Devices | ||
658 | # | ||
659 | # CONFIG_DVB is not set | ||
660 | |||
661 | # | ||
662 | # Graphics support | ||
663 | # | ||
664 | CONFIG_FB=y | ||
665 | CONFIG_FB_CFB_FILLRECT=y | ||
666 | CONFIG_FB_CFB_COPYAREA=y | ||
667 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
668 | # CONFIG_FB_MACMODES is not set | ||
669 | CONFIG_FB_FIRMWARE_EDID=y | ||
670 | # CONFIG_FB_MODE_HELPERS is not set | ||
671 | # CONFIG_FB_TILEBLITTING is not set | ||
672 | CONFIG_FB_ARMCLCD=y | ||
673 | # CONFIG_FB_S1D13XXX is not set | ||
674 | # CONFIG_FB_VIRTUAL is not set | ||
675 | |||
676 | # | ||
677 | # Console display driver support | ||
678 | # | ||
679 | # CONFIG_VGA_CONSOLE is not set | ||
680 | CONFIG_DUMMY_CONSOLE=y | ||
681 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
682 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
683 | # CONFIG_FONTS is not set | ||
684 | CONFIG_FONT_8x8=y | ||
685 | CONFIG_FONT_8x16=y | ||
686 | |||
687 | # | ||
688 | # Logo configuration | ||
689 | # | ||
690 | CONFIG_LOGO=y | ||
691 | CONFIG_LOGO_LINUX_MONO=y | ||
692 | CONFIG_LOGO_LINUX_VGA16=y | ||
693 | CONFIG_LOGO_LINUX_CLUT224=y | ||
694 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
695 | |||
696 | # | ||
697 | # Sound | ||
698 | # | ||
699 | # CONFIG_SOUND is not set | ||
700 | |||
701 | # | ||
702 | # USB support | ||
703 | # | ||
704 | CONFIG_USB_ARCH_HAS_HCD=y | ||
705 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
706 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
707 | # CONFIG_USB is not set | ||
708 | |||
709 | # | ||
710 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
711 | # | ||
712 | |||
713 | # | ||
714 | # USB Gadget Support | ||
715 | # | ||
716 | # CONFIG_USB_GADGET is not set | ||
717 | |||
718 | # | ||
719 | # MMC/SD Card support | ||
720 | # | ||
721 | # CONFIG_MMC is not set | ||
722 | |||
723 | # | ||
724 | # Real Time Clock | ||
725 | # | ||
726 | CONFIG_RTC_LIB=y | ||
727 | CONFIG_RTC_CLASS=m | ||
728 | |||
729 | # | ||
730 | # RTC interfaces | ||
731 | # | ||
732 | CONFIG_RTC_INTF_SYSFS=m | ||
733 | CONFIG_RTC_INTF_PROC=m | ||
734 | CONFIG_RTC_INTF_DEV=m | ||
735 | |||
736 | # | ||
737 | # RTC drivers | ||
738 | # | ||
739 | # CONFIG_RTC_DRV_M48T86 is not set | ||
740 | CONFIG_RTC_DRV_NETX=m | ||
741 | # CONFIG_RTC_DRV_TEST is not set | ||
742 | |||
743 | # | ||
744 | # File systems | ||
745 | # | ||
746 | # CONFIG_EXT2_FS is not set | ||
747 | # CONFIG_EXT3_FS is not set | ||
748 | # CONFIG_REISERFS_FS is not set | ||
749 | # CONFIG_JFS_FS is not set | ||
750 | # CONFIG_FS_POSIX_ACL is not set | ||
751 | # CONFIG_XFS_FS is not set | ||
752 | # CONFIG_OCFS2_FS is not set | ||
753 | # CONFIG_MINIX_FS is not set | ||
754 | # CONFIG_ROMFS_FS is not set | ||
755 | CONFIG_INOTIFY=y | ||
756 | # CONFIG_QUOTA is not set | ||
757 | CONFIG_DNOTIFY=y | ||
758 | # CONFIG_AUTOFS_FS is not set | ||
759 | # CONFIG_AUTOFS4_FS is not set | ||
760 | # CONFIG_FUSE_FS is not set | ||
761 | |||
762 | # | ||
763 | # CD-ROM/DVD Filesystems | ||
764 | # | ||
765 | # CONFIG_ISO9660_FS is not set | ||
766 | # CONFIG_UDF_FS is not set | ||
767 | |||
768 | # | ||
769 | # DOS/FAT/NT Filesystems | ||
770 | # | ||
771 | # CONFIG_MSDOS_FS is not set | ||
772 | # CONFIG_VFAT_FS is not set | ||
773 | # CONFIG_NTFS_FS is not set | ||
774 | |||
775 | # | ||
776 | # Pseudo filesystems | ||
777 | # | ||
778 | CONFIG_PROC_FS=y | ||
779 | CONFIG_SYSFS=y | ||
780 | CONFIG_TMPFS=y | ||
781 | # CONFIG_HUGETLB_PAGE is not set | ||
782 | CONFIG_RAMFS=y | ||
783 | # CONFIG_CONFIGFS_FS is not set | ||
784 | |||
785 | # | ||
786 | # Miscellaneous filesystems | ||
787 | # | ||
788 | # CONFIG_ADFS_FS is not set | ||
789 | # CONFIG_AFFS_FS is not set | ||
790 | # CONFIG_HFS_FS is not set | ||
791 | # CONFIG_HFSPLUS_FS is not set | ||
792 | # CONFIG_BEFS_FS is not set | ||
793 | # CONFIG_BFS_FS is not set | ||
794 | # CONFIG_EFS_FS is not set | ||
795 | # CONFIG_JFFS_FS is not set | ||
796 | CONFIG_JFFS2_FS=y | ||
797 | CONFIG_JFFS2_FS_DEBUG=0 | ||
798 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
799 | # CONFIG_JFFS2_SUMMARY is not set | ||
800 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
801 | CONFIG_JFFS2_ZLIB=y | ||
802 | CONFIG_JFFS2_RTIME=y | ||
803 | # CONFIG_JFFS2_RUBIN is not set | ||
804 | # CONFIG_CRAMFS is not set | ||
805 | # CONFIG_VXFS_FS is not set | ||
806 | # CONFIG_HPFS_FS is not set | ||
807 | # CONFIG_QNX4FS_FS is not set | ||
808 | # CONFIG_SYSV_FS is not set | ||
809 | # CONFIG_UFS_FS is not set | ||
810 | |||
811 | # | ||
812 | # Network File Systems | ||
813 | # | ||
814 | CONFIG_NFS_FS=y | ||
815 | CONFIG_NFS_V3=y | ||
816 | # CONFIG_NFS_V3_ACL is not set | ||
817 | CONFIG_NFS_V4=y | ||
818 | CONFIG_NFS_DIRECTIO=y | ||
819 | # CONFIG_NFSD is not set | ||
820 | CONFIG_ROOT_NFS=y | ||
821 | CONFIG_LOCKD=y | ||
822 | CONFIG_LOCKD_V4=y | ||
823 | CONFIG_NFS_COMMON=y | ||
824 | CONFIG_SUNRPC=y | ||
825 | CONFIG_SUNRPC_GSS=y | ||
826 | CONFIG_RPCSEC_GSS_KRB5=y | ||
827 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
828 | # CONFIG_SMB_FS is not set | ||
829 | # CONFIG_CIFS is not set | ||
830 | # CONFIG_NCP_FS is not set | ||
831 | # CONFIG_CODA_FS is not set | ||
832 | # CONFIG_AFS_FS is not set | ||
833 | # CONFIG_9P_FS is not set | ||
834 | |||
835 | # | ||
836 | # Partition Types | ||
837 | # | ||
838 | # CONFIG_PARTITION_ADVANCED is not set | ||
839 | CONFIG_MSDOS_PARTITION=y | ||
840 | |||
841 | # | ||
842 | # Native Language Support | ||
843 | # | ||
844 | # CONFIG_NLS is not set | ||
845 | |||
846 | # | ||
847 | # Profiling support | ||
848 | # | ||
849 | # CONFIG_PROFILING is not set | ||
850 | |||
851 | # | ||
852 | # Kernel hacking | ||
853 | # | ||
854 | # CONFIG_PRINTK_TIME is not set | ||
855 | CONFIG_MAGIC_SYSRQ=y | ||
856 | CONFIG_DEBUG_KERNEL=y | ||
857 | CONFIG_LOG_BUF_SHIFT=17 | ||
858 | CONFIG_DETECT_SOFTLOCKUP=y | ||
859 | # CONFIG_SCHEDSTATS is not set | ||
860 | # CONFIG_DEBUG_SLAB is not set | ||
861 | CONFIG_DEBUG_PREEMPT=y | ||
862 | # CONFIG_DEBUG_MUTEXES is not set | ||
863 | # CONFIG_DEBUG_SPINLOCK is not set | ||
864 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
865 | # CONFIG_DEBUG_KOBJECT is not set | ||
866 | CONFIG_DEBUG_BUGVERBOSE=y | ||
867 | # CONFIG_DEBUG_INFO is not set | ||
868 | # CONFIG_DEBUG_FS is not set | ||
869 | # CONFIG_DEBUG_VM is not set | ||
870 | CONFIG_FRAME_POINTER=y | ||
871 | # CONFIG_UNWIND_INFO is not set | ||
872 | CONFIG_FORCED_INLINING=y | ||
873 | # CONFIG_RCU_TORTURE_TEST is not set | ||
874 | # CONFIG_DEBUG_USER is not set | ||
875 | # CONFIG_DEBUG_WAITQ is not set | ||
876 | CONFIG_DEBUG_ERRORS=y | ||
877 | # CONFIG_DEBUG_LL is not set | ||
878 | |||
879 | # | ||
880 | # Security options | ||
881 | # | ||
882 | # CONFIG_KEYS is not set | ||
883 | # CONFIG_SECURITY is not set | ||
884 | |||
885 | # | ||
886 | # Cryptographic options | ||
887 | # | ||
888 | CONFIG_CRYPTO=y | ||
889 | CONFIG_CRYPTO_HMAC=y | ||
890 | CONFIG_CRYPTO_NULL=m | ||
891 | CONFIG_CRYPTO_MD4=m | ||
892 | CONFIG_CRYPTO_MD5=y | ||
893 | CONFIG_CRYPTO_SHA1=y | ||
894 | CONFIG_CRYPTO_SHA256=m | ||
895 | CONFIG_CRYPTO_SHA512=m | ||
896 | # CONFIG_CRYPTO_WP512 is not set | ||
897 | # CONFIG_CRYPTO_TGR192 is not set | ||
898 | CONFIG_CRYPTO_DES=y | ||
899 | CONFIG_CRYPTO_BLOWFISH=m | ||
900 | CONFIG_CRYPTO_TWOFISH=m | ||
901 | CONFIG_CRYPTO_SERPENT=m | ||
902 | CONFIG_CRYPTO_AES=m | ||
903 | CONFIG_CRYPTO_CAST5=m | ||
904 | CONFIG_CRYPTO_CAST6=m | ||
905 | # CONFIG_CRYPTO_TEA is not set | ||
906 | CONFIG_CRYPTO_ARC4=m | ||
907 | # CONFIG_CRYPTO_KHAZAD is not set | ||
908 | # CONFIG_CRYPTO_ANUBIS is not set | ||
909 | CONFIG_CRYPTO_DEFLATE=y | ||
910 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
911 | CONFIG_CRYPTO_CRC32C=m | ||
912 | # CONFIG_CRYPTO_TEST is not set | ||
913 | |||
914 | # | ||
915 | # Hardware crypto devices | ||
916 | # | ||
917 | |||
918 | # | ||
919 | # Library routines | ||
920 | # | ||
921 | CONFIG_CRC_CCITT=m | ||
922 | # CONFIG_CRC16 is not set | ||
923 | CONFIG_CRC32=y | ||
924 | CONFIG_LIBCRC32C=m | ||
925 | CONFIG_ZLIB_INFLATE=y | ||
926 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/pnx4008_defconfig b/arch/arm/configs/pnx4008_defconfig new file mode 100644 index 000000000000..8a078d479d57 --- /dev/null +++ b/arch/arm/configs/pnx4008_defconfig | |||
@@ -0,0 +1,2072 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc1 | ||
4 | # Thu Apr 6 17:05:58 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | CONFIG_POSIX_MQUEUE=y | ||
29 | CONFIG_BSD_PROCESS_ACCT=y | ||
30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
31 | CONFIG_SYSCTL=y | ||
32 | CONFIG_AUDIT=y | ||
33 | # CONFIG_IKCONFIG is not set | ||
34 | # CONFIG_RELAY is not set | ||
35 | CONFIG_INITRAMFS_SOURCE="" | ||
36 | CONFIG_UID16=y | ||
37 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
38 | CONFIG_EMBEDDED=y | ||
39 | CONFIG_KALLSYMS=y | ||
40 | # CONFIG_KALLSYMS_ALL is not set | ||
41 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
42 | CONFIG_HOTPLUG=y | ||
43 | CONFIG_PRINTK=y | ||
44 | CONFIG_BUG=y | ||
45 | CONFIG_ELF_CORE=y | ||
46 | CONFIG_BASE_FULL=y | ||
47 | CONFIG_FUTEX=y | ||
48 | CONFIG_EPOLL=y | ||
49 | CONFIG_SHMEM=y | ||
50 | CONFIG_SLAB=y | ||
51 | # CONFIG_TINY_SHMEM is not set | ||
52 | CONFIG_BASE_SMALL=0 | ||
53 | # CONFIG_SLOB is not set | ||
54 | CONFIG_OBSOLETE_INTERMODULE=m | ||
55 | |||
56 | # | ||
57 | # Loadable module support | ||
58 | # | ||
59 | CONFIG_MODULES=y | ||
60 | CONFIG_MODULE_UNLOAD=y | ||
61 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
62 | CONFIG_MODVERSIONS=y | ||
63 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
64 | CONFIG_KMOD=y | ||
65 | |||
66 | # | ||
67 | # Block layer | ||
68 | # | ||
69 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
70 | |||
71 | # | ||
72 | # IO Schedulers | ||
73 | # | ||
74 | CONFIG_IOSCHED_NOOP=y | ||
75 | CONFIG_IOSCHED_AS=y | ||
76 | CONFIG_IOSCHED_DEADLINE=y | ||
77 | CONFIG_IOSCHED_CFQ=y | ||
78 | CONFIG_DEFAULT_AS=y | ||
79 | # CONFIG_DEFAULT_DEADLINE is not set | ||
80 | # CONFIG_DEFAULT_CFQ is not set | ||
81 | # CONFIG_DEFAULT_NOOP is not set | ||
82 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
83 | |||
84 | # | ||
85 | # System Type | ||
86 | # | ||
87 | # CONFIG_ARCH_CLPS7500 is not set | ||
88 | # CONFIG_ARCH_CLPS711X is not set | ||
89 | # CONFIG_ARCH_CO285 is not set | ||
90 | # CONFIG_ARCH_EBSA110 is not set | ||
91 | # CONFIG_ARCH_EP93XX is not set | ||
92 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
93 | # CONFIG_ARCH_INTEGRATOR is not set | ||
94 | # CONFIG_ARCH_IOP3XX is not set | ||
95 | # CONFIG_ARCH_IXP4XX is not set | ||
96 | # CONFIG_ARCH_IXP2000 is not set | ||
97 | # CONFIG_ARCH_IXP23XX is not set | ||
98 | # CONFIG_ARCH_L7200 is not set | ||
99 | # CONFIG_ARCH_PXA is not set | ||
100 | # CONFIG_ARCH_RPC is not set | ||
101 | # CONFIG_ARCH_SA1100 is not set | ||
102 | # CONFIG_ARCH_S3C2410 is not set | ||
103 | # CONFIG_ARCH_SHARK is not set | ||
104 | # CONFIG_ARCH_LH7A40X is not set | ||
105 | # CONFIG_ARCH_OMAP is not set | ||
106 | # CONFIG_ARCH_VERSATILE is not set | ||
107 | # CONFIG_ARCH_REALVIEW is not set | ||
108 | # CONFIG_ARCH_IMX is not set | ||
109 | # CONFIG_ARCH_H720X is not set | ||
110 | # CONFIG_ARCH_AAEC2000 is not set | ||
111 | # CONFIG_ARCH_AT91RM9200 is not set | ||
112 | CONFIG_ARCH_PNX4008=y | ||
113 | |||
114 | # | ||
115 | # Processor Type | ||
116 | # | ||
117 | CONFIG_CPU_32=y | ||
118 | CONFIG_CPU_ARM926T=y | ||
119 | CONFIG_CPU_32v5=y | ||
120 | CONFIG_CPU_ABRT_EV5TJ=y | ||
121 | CONFIG_CPU_CACHE_VIVT=y | ||
122 | CONFIG_CPU_COPY_V4WB=y | ||
123 | CONFIG_CPU_TLB_V4WBI=y | ||
124 | |||
125 | # | ||
126 | # Processor Features | ||
127 | # | ||
128 | CONFIG_ARM_THUMB=y | ||
129 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
130 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
131 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
132 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
133 | |||
134 | # | ||
135 | # Bus support | ||
136 | # | ||
137 | |||
138 | # | ||
139 | # PCCARD (PCMCIA/CardBus) support | ||
140 | # | ||
141 | CONFIG_PCCARD=m | ||
142 | # CONFIG_PCMCIA_DEBUG is not set | ||
143 | CONFIG_PCMCIA=m | ||
144 | CONFIG_PCMCIA_LOAD_CIS=y | ||
145 | CONFIG_PCMCIA_IOCTL=y | ||
146 | |||
147 | # | ||
148 | # PC-card bridges | ||
149 | # | ||
150 | |||
151 | # | ||
152 | # Kernel Features | ||
153 | # | ||
154 | CONFIG_PREEMPT=y | ||
155 | # CONFIG_NO_IDLE_HZ is not set | ||
156 | CONFIG_HZ=100 | ||
157 | # CONFIG_AEABI is not set | ||
158 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
159 | CONFIG_SELECT_MEMORY_MODEL=y | ||
160 | CONFIG_FLATMEM_MANUAL=y | ||
161 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
162 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
163 | CONFIG_FLATMEM=y | ||
164 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
165 | # CONFIG_SPARSEMEM_STATIC is not set | ||
166 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
167 | CONFIG_ALIGNMENT_TRAP=y | ||
168 | |||
169 | # | ||
170 | # Boot options | ||
171 | # | ||
172 | CONFIG_ZBOOT_ROM_TEXT=0 | ||
173 | CONFIG_ZBOOT_ROM_BSS=0 | ||
174 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200" | ||
175 | # CONFIG_XIP_KERNEL is not set | ||
176 | |||
177 | # | ||
178 | # Floating point emulation | ||
179 | # | ||
180 | |||
181 | # | ||
182 | # At least one emulation must be selected | ||
183 | # | ||
184 | # CONFIG_FPE_NWFPE is not set | ||
185 | # CONFIG_FPE_FASTFPE is not set | ||
186 | # CONFIG_VFP is not set | ||
187 | |||
188 | # | ||
189 | # Userspace binary formats | ||
190 | # | ||
191 | CONFIG_BINFMT_ELF=y | ||
192 | CONFIG_BINFMT_AOUT=m | ||
193 | CONFIG_BINFMT_MISC=m | ||
194 | # CONFIG_ARTHUR is not set | ||
195 | |||
196 | # | ||
197 | # Power management options | ||
198 | # | ||
199 | CONFIG_PM=y | ||
200 | CONFIG_PM_LEGACY=y | ||
201 | # CONFIG_PM_DEBUG is not set | ||
202 | CONFIG_APM=m | ||
203 | |||
204 | # | ||
205 | # Networking | ||
206 | # | ||
207 | CONFIG_NET=y | ||
208 | |||
209 | # | ||
210 | # Networking options | ||
211 | # | ||
212 | # CONFIG_NETDEBUG is not set | ||
213 | CONFIG_PACKET=m | ||
214 | CONFIG_PACKET_MMAP=y | ||
215 | CONFIG_UNIX=m | ||
216 | CONFIG_XFRM=y | ||
217 | CONFIG_XFRM_USER=m | ||
218 | CONFIG_NET_KEY=m | ||
219 | CONFIG_INET=y | ||
220 | CONFIG_IP_MULTICAST=y | ||
221 | CONFIG_IP_ADVANCED_ROUTER=y | ||
222 | CONFIG_ASK_IP_FIB_HASH=y | ||
223 | # CONFIG_IP_FIB_TRIE is not set | ||
224 | CONFIG_IP_FIB_HASH=y | ||
225 | CONFIG_IP_MULTIPLE_TABLES=y | ||
226 | CONFIG_IP_ROUTE_FWMARK=y | ||
227 | CONFIG_IP_ROUTE_MULTIPATH=y | ||
228 | # CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set | ||
229 | CONFIG_IP_ROUTE_VERBOSE=y | ||
230 | # CONFIG_IP_PNP is not set | ||
231 | CONFIG_NET_IPIP=m | ||
232 | CONFIG_NET_IPGRE=m | ||
233 | CONFIG_NET_IPGRE_BROADCAST=y | ||
234 | CONFIG_IP_MROUTE=y | ||
235 | CONFIG_IP_PIMSM_V1=y | ||
236 | CONFIG_IP_PIMSM_V2=y | ||
237 | # CONFIG_ARPD is not set | ||
238 | CONFIG_SYN_COOKIES=y | ||
239 | CONFIG_INET_AH=m | ||
240 | CONFIG_INET_ESP=m | ||
241 | CONFIG_INET_IPCOMP=m | ||
242 | CONFIG_INET_XFRM_TUNNEL=m | ||
243 | CONFIG_INET_TUNNEL=m | ||
244 | CONFIG_INET_DIAG=y | ||
245 | CONFIG_INET_TCP_DIAG=y | ||
246 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
247 | CONFIG_TCP_CONG_BIC=y | ||
248 | |||
249 | # | ||
250 | # IP: Virtual Server Configuration | ||
251 | # | ||
252 | CONFIG_IP_VS=m | ||
253 | # CONFIG_IP_VS_DEBUG is not set | ||
254 | CONFIG_IP_VS_TAB_BITS=12 | ||
255 | |||
256 | # | ||
257 | # IPVS transport protocol load balancing support | ||
258 | # | ||
259 | CONFIG_IP_VS_PROTO_TCP=y | ||
260 | CONFIG_IP_VS_PROTO_UDP=y | ||
261 | CONFIG_IP_VS_PROTO_ESP=y | ||
262 | CONFIG_IP_VS_PROTO_AH=y | ||
263 | |||
264 | # | ||
265 | # IPVS scheduler | ||
266 | # | ||
267 | CONFIG_IP_VS_RR=m | ||
268 | CONFIG_IP_VS_WRR=m | ||
269 | CONFIG_IP_VS_LC=m | ||
270 | CONFIG_IP_VS_WLC=m | ||
271 | CONFIG_IP_VS_LBLC=m | ||
272 | CONFIG_IP_VS_LBLCR=m | ||
273 | CONFIG_IP_VS_DH=m | ||
274 | CONFIG_IP_VS_SH=m | ||
275 | CONFIG_IP_VS_SED=m | ||
276 | CONFIG_IP_VS_NQ=m | ||
277 | |||
278 | # | ||
279 | # IPVS application helper | ||
280 | # | ||
281 | CONFIG_IP_VS_FTP=m | ||
282 | CONFIG_IPV6=m | ||
283 | CONFIG_IPV6_PRIVACY=y | ||
284 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
285 | CONFIG_INET6_AH=m | ||
286 | CONFIG_INET6_ESP=m | ||
287 | CONFIG_INET6_IPCOMP=m | ||
288 | CONFIG_INET6_XFRM_TUNNEL=m | ||
289 | CONFIG_INET6_TUNNEL=m | ||
290 | CONFIG_IPV6_TUNNEL=m | ||
291 | CONFIG_NETFILTER=y | ||
292 | # CONFIG_NETFILTER_DEBUG is not set | ||
293 | CONFIG_BRIDGE_NETFILTER=y | ||
294 | |||
295 | # | ||
296 | # Core Netfilter Configuration | ||
297 | # | ||
298 | # CONFIG_NETFILTER_NETLINK is not set | ||
299 | # CONFIG_NETFILTER_XTABLES is not set | ||
300 | |||
301 | # | ||
302 | # IP: Netfilter Configuration | ||
303 | # | ||
304 | CONFIG_IP_NF_CONNTRACK=m | ||
305 | CONFIG_IP_NF_CT_ACCT=y | ||
306 | CONFIG_IP_NF_CONNTRACK_MARK=y | ||
307 | # CONFIG_IP_NF_CONNTRACK_EVENTS is not set | ||
308 | CONFIG_IP_NF_CT_PROTO_SCTP=m | ||
309 | CONFIG_IP_NF_FTP=m | ||
310 | CONFIG_IP_NF_IRC=m | ||
311 | # CONFIG_IP_NF_NETBIOS_NS is not set | ||
312 | CONFIG_IP_NF_TFTP=m | ||
313 | CONFIG_IP_NF_AMANDA=m | ||
314 | # CONFIG_IP_NF_PPTP is not set | ||
315 | # CONFIG_IP_NF_H323 is not set | ||
316 | CONFIG_IP_NF_QUEUE=m | ||
317 | |||
318 | # | ||
319 | # IPv6: Netfilter Configuration (EXPERIMENTAL) | ||
320 | # | ||
321 | CONFIG_IP6_NF_QUEUE=m | ||
322 | |||
323 | # | ||
324 | # DECnet: Netfilter Configuration | ||
325 | # | ||
326 | CONFIG_DECNET_NF_GRABULATOR=m | ||
327 | |||
328 | # | ||
329 | # Bridge: Netfilter Configuration | ||
330 | # | ||
331 | CONFIG_BRIDGE_NF_EBTABLES=m | ||
332 | CONFIG_BRIDGE_EBT_BROUTE=m | ||
333 | CONFIG_BRIDGE_EBT_T_FILTER=m | ||
334 | CONFIG_BRIDGE_EBT_T_NAT=m | ||
335 | CONFIG_BRIDGE_EBT_802_3=m | ||
336 | CONFIG_BRIDGE_EBT_AMONG=m | ||
337 | CONFIG_BRIDGE_EBT_ARP=m | ||
338 | CONFIG_BRIDGE_EBT_IP=m | ||
339 | CONFIG_BRIDGE_EBT_LIMIT=m | ||
340 | CONFIG_BRIDGE_EBT_MARK=m | ||
341 | CONFIG_BRIDGE_EBT_PKTTYPE=m | ||
342 | CONFIG_BRIDGE_EBT_STP=m | ||
343 | CONFIG_BRIDGE_EBT_VLAN=m | ||
344 | CONFIG_BRIDGE_EBT_ARPREPLY=m | ||
345 | CONFIG_BRIDGE_EBT_DNAT=m | ||
346 | CONFIG_BRIDGE_EBT_MARK_T=m | ||
347 | CONFIG_BRIDGE_EBT_REDIRECT=m | ||
348 | CONFIG_BRIDGE_EBT_SNAT=m | ||
349 | CONFIG_BRIDGE_EBT_LOG=m | ||
350 | # CONFIG_BRIDGE_EBT_ULOG is not set | ||
351 | |||
352 | # | ||
353 | # DCCP Configuration (EXPERIMENTAL) | ||
354 | # | ||
355 | # CONFIG_IP_DCCP is not set | ||
356 | |||
357 | # | ||
358 | # SCTP Configuration (EXPERIMENTAL) | ||
359 | # | ||
360 | CONFIG_IP_SCTP=m | ||
361 | # CONFIG_SCTP_DBG_MSG is not set | ||
362 | # CONFIG_SCTP_DBG_OBJCNT is not set | ||
363 | # CONFIG_SCTP_HMAC_NONE is not set | ||
364 | # CONFIG_SCTP_HMAC_SHA1 is not set | ||
365 | CONFIG_SCTP_HMAC_MD5=y | ||
366 | |||
367 | # | ||
368 | # TIPC Configuration (EXPERIMENTAL) | ||
369 | # | ||
370 | # CONFIG_TIPC is not set | ||
371 | CONFIG_ATM=y | ||
372 | CONFIG_ATM_CLIP=y | ||
373 | # CONFIG_ATM_CLIP_NO_ICMP is not set | ||
374 | CONFIG_ATM_LANE=m | ||
375 | CONFIG_ATM_MPOA=m | ||
376 | CONFIG_ATM_BR2684=m | ||
377 | # CONFIG_ATM_BR2684_IPFILTER is not set | ||
378 | CONFIG_BRIDGE=m | ||
379 | CONFIG_VLAN_8021Q=m | ||
380 | CONFIG_DECNET=m | ||
381 | # CONFIG_DECNET_ROUTER is not set | ||
382 | CONFIG_LLC=m | ||
383 | CONFIG_LLC2=m | ||
384 | CONFIG_IPX=m | ||
385 | # CONFIG_IPX_INTERN is not set | ||
386 | CONFIG_ATALK=m | ||
387 | CONFIG_DEV_APPLETALK=y | ||
388 | CONFIG_IPDDP=m | ||
389 | CONFIG_IPDDP_ENCAP=y | ||
390 | CONFIG_IPDDP_DECAP=y | ||
391 | CONFIG_X25=m | ||
392 | CONFIG_LAPB=m | ||
393 | # CONFIG_NET_DIVERT is not set | ||
394 | CONFIG_ECONET=m | ||
395 | CONFIG_ECONET_AUNUDP=y | ||
396 | CONFIG_ECONET_NATIVE=y | ||
397 | CONFIG_WAN_ROUTER=m | ||
398 | |||
399 | # | ||
400 | # QoS and/or fair queueing | ||
401 | # | ||
402 | CONFIG_NET_SCHED=y | ||
403 | CONFIG_NET_SCH_CLK_JIFFIES=y | ||
404 | # CONFIG_NET_SCH_CLK_GETTIMEOFDAY is not set | ||
405 | # CONFIG_NET_SCH_CLK_CPU is not set | ||
406 | |||
407 | # | ||
408 | # Queueing/Scheduling | ||
409 | # | ||
410 | CONFIG_NET_SCH_CBQ=m | ||
411 | CONFIG_NET_SCH_HTB=m | ||
412 | CONFIG_NET_SCH_HFSC=m | ||
413 | CONFIG_NET_SCH_ATM=m | ||
414 | CONFIG_NET_SCH_PRIO=m | ||
415 | CONFIG_NET_SCH_RED=m | ||
416 | CONFIG_NET_SCH_SFQ=m | ||
417 | CONFIG_NET_SCH_TEQL=m | ||
418 | CONFIG_NET_SCH_TBF=m | ||
419 | CONFIG_NET_SCH_GRED=m | ||
420 | CONFIG_NET_SCH_DSMARK=m | ||
421 | CONFIG_NET_SCH_NETEM=m | ||
422 | CONFIG_NET_SCH_INGRESS=m | ||
423 | |||
424 | # | ||
425 | # Classification | ||
426 | # | ||
427 | CONFIG_NET_CLS=y | ||
428 | # CONFIG_NET_CLS_BASIC is not set | ||
429 | CONFIG_NET_CLS_TCINDEX=m | ||
430 | CONFIG_NET_CLS_ROUTE4=m | ||
431 | CONFIG_NET_CLS_ROUTE=y | ||
432 | CONFIG_NET_CLS_FW=m | ||
433 | CONFIG_NET_CLS_U32=m | ||
434 | # CONFIG_CLS_U32_PERF is not set | ||
435 | # CONFIG_CLS_U32_MARK is not set | ||
436 | CONFIG_NET_CLS_RSVP=m | ||
437 | CONFIG_NET_CLS_RSVP6=m | ||
438 | # CONFIG_NET_EMATCH is not set | ||
439 | # CONFIG_NET_CLS_ACT is not set | ||
440 | CONFIG_NET_CLS_POLICE=y | ||
441 | # CONFIG_NET_CLS_IND is not set | ||
442 | CONFIG_NET_ESTIMATOR=y | ||
443 | |||
444 | # | ||
445 | # Network testing | ||
446 | # | ||
447 | CONFIG_NET_PKTGEN=m | ||
448 | CONFIG_HAMRADIO=y | ||
449 | |||
450 | # | ||
451 | # Packet Radio protocols | ||
452 | # | ||
453 | CONFIG_AX25=m | ||
454 | # CONFIG_AX25_DAMA_SLAVE is not set | ||
455 | CONFIG_NETROM=m | ||
456 | CONFIG_ROSE=m | ||
457 | |||
458 | # | ||
459 | # AX.25 network device drivers | ||
460 | # | ||
461 | CONFIG_MKISS=m | ||
462 | CONFIG_6PACK=m | ||
463 | CONFIG_BPQETHER=m | ||
464 | CONFIG_BAYCOM_SER_FDX=m | ||
465 | CONFIG_BAYCOM_SER_HDX=m | ||
466 | CONFIG_BAYCOM_PAR=m | ||
467 | CONFIG_BAYCOM_EPP=m | ||
468 | CONFIG_YAM=m | ||
469 | CONFIG_IRDA=m | ||
470 | |||
471 | # | ||
472 | # IrDA protocols | ||
473 | # | ||
474 | CONFIG_IRLAN=m | ||
475 | CONFIG_IRNET=m | ||
476 | CONFIG_IRCOMM=m | ||
477 | # CONFIG_IRDA_ULTRA is not set | ||
478 | |||
479 | # | ||
480 | # IrDA options | ||
481 | # | ||
482 | CONFIG_IRDA_CACHE_LAST_LSAP=y | ||
483 | CONFIG_IRDA_FAST_RR=y | ||
484 | CONFIG_IRDA_DEBUG=y | ||
485 | |||
486 | # | ||
487 | # Infrared-port device drivers | ||
488 | # | ||
489 | |||
490 | # | ||
491 | # SIR device drivers | ||
492 | # | ||
493 | CONFIG_IRTTY_SIR=m | ||
494 | |||
495 | # | ||
496 | # Dongle support | ||
497 | # | ||
498 | CONFIG_DONGLE=y | ||
499 | CONFIG_ESI_DONGLE=m | ||
500 | CONFIG_ACTISYS_DONGLE=m | ||
501 | CONFIG_TEKRAM_DONGLE=m | ||
502 | # CONFIG_TOIM3232_DONGLE is not set | ||
503 | CONFIG_LITELINK_DONGLE=m | ||
504 | CONFIG_MA600_DONGLE=m | ||
505 | CONFIG_GIRBIL_DONGLE=m | ||
506 | CONFIG_MCP2120_DONGLE=m | ||
507 | CONFIG_OLD_BELKIN_DONGLE=m | ||
508 | CONFIG_ACT200L_DONGLE=m | ||
509 | |||
510 | # | ||
511 | # Old SIR device drivers | ||
512 | # | ||
513 | CONFIG_IRPORT_SIR=m | ||
514 | |||
515 | # | ||
516 | # Old Serial dongle support | ||
517 | # | ||
518 | # CONFIG_DONGLE_OLD is not set | ||
519 | |||
520 | # | ||
521 | # FIR device drivers | ||
522 | # | ||
523 | CONFIG_USB_IRDA=m | ||
524 | CONFIG_SIGMATEL_FIR=m | ||
525 | CONFIG_BT=m | ||
526 | CONFIG_BT_L2CAP=m | ||
527 | CONFIG_BT_SCO=m | ||
528 | CONFIG_BT_RFCOMM=m | ||
529 | CONFIG_BT_RFCOMM_TTY=y | ||
530 | CONFIG_BT_BNEP=m | ||
531 | CONFIG_BT_BNEP_MC_FILTER=y | ||
532 | CONFIG_BT_BNEP_PROTO_FILTER=y | ||
533 | CONFIG_BT_CMTP=m | ||
534 | CONFIG_BT_HIDP=m | ||
535 | |||
536 | # | ||
537 | # Bluetooth device drivers | ||
538 | # | ||
539 | CONFIG_BT_HCIUSB=m | ||
540 | CONFIG_BT_HCIUSB_SCO=y | ||
541 | CONFIG_BT_HCIUART=m | ||
542 | CONFIG_BT_HCIUART_H4=y | ||
543 | CONFIG_BT_HCIUART_BCSP=y | ||
544 | CONFIG_BT_HCIBCM203X=m | ||
545 | # CONFIG_BT_HCIBPA10X is not set | ||
546 | CONFIG_BT_HCIBFUSB=m | ||
547 | CONFIG_BT_HCIDTL1=m | ||
548 | CONFIG_BT_HCIBT3C=m | ||
549 | CONFIG_BT_HCIBLUECARD=m | ||
550 | CONFIG_BT_HCIBTUART=m | ||
551 | CONFIG_BT_HCIVHCI=m | ||
552 | CONFIG_IEEE80211=m | ||
553 | # CONFIG_IEEE80211_DEBUG is not set | ||
554 | # CONFIG_IEEE80211_CRYPT_WEP is not set | ||
555 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
556 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
557 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
558 | CONFIG_WIRELESS_EXT=y | ||
559 | |||
560 | # | ||
561 | # Device Drivers | ||
562 | # | ||
563 | |||
564 | # | ||
565 | # Generic Driver Options | ||
566 | # | ||
567 | CONFIG_STANDALONE=y | ||
568 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
569 | CONFIG_FW_LOADER=m | ||
570 | # CONFIG_DEBUG_DRIVER is not set | ||
571 | |||
572 | # | ||
573 | # Connector - unified userspace <-> kernelspace linker | ||
574 | # | ||
575 | # CONFIG_CONNECTOR is not set | ||
576 | |||
577 | # | ||
578 | # Memory Technology Devices (MTD) | ||
579 | # | ||
580 | CONFIG_MTD=m | ||
581 | # CONFIG_MTD_DEBUG is not set | ||
582 | CONFIG_MTD_CONCAT=m | ||
583 | CONFIG_MTD_PARTITIONS=y | ||
584 | CONFIG_MTD_REDBOOT_PARTS=m | ||
585 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | ||
586 | # CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set | ||
587 | # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set | ||
588 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
589 | # CONFIG_MTD_AFS_PARTS is not set | ||
590 | |||
591 | # | ||
592 | # User Modules And Translation Layers | ||
593 | # | ||
594 | CONFIG_MTD_CHAR=m | ||
595 | CONFIG_MTD_BLOCK=m | ||
596 | CONFIG_MTD_BLOCK_RO=m | ||
597 | CONFIG_FTL=m | ||
598 | CONFIG_NFTL=m | ||
599 | CONFIG_NFTL_RW=y | ||
600 | CONFIG_INFTL=m | ||
601 | # CONFIG_RFD_FTL is not set | ||
602 | |||
603 | # | ||
604 | # RAM/ROM/Flash chip drivers | ||
605 | # | ||
606 | CONFIG_MTD_CFI=m | ||
607 | CONFIG_MTD_JEDECPROBE=m | ||
608 | CONFIG_MTD_GEN_PROBE=m | ||
609 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
610 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
611 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
612 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
613 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
614 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
615 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
616 | CONFIG_MTD_CFI_I1=y | ||
617 | CONFIG_MTD_CFI_I2=y | ||
618 | # CONFIG_MTD_CFI_I4 is not set | ||
619 | # CONFIG_MTD_CFI_I8 is not set | ||
620 | CONFIG_MTD_CFI_INTELEXT=m | ||
621 | CONFIG_MTD_CFI_AMDSTD=m | ||
622 | CONFIG_MTD_CFI_STAA=m | ||
623 | CONFIG_MTD_CFI_UTIL=m | ||
624 | CONFIG_MTD_RAM=m | ||
625 | CONFIG_MTD_ROM=m | ||
626 | CONFIG_MTD_ABSENT=m | ||
627 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
628 | |||
629 | # | ||
630 | # Mapping drivers for chip access | ||
631 | # | ||
632 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
633 | CONFIG_MTD_PHYSMAP=m | ||
634 | CONFIG_MTD_PHYSMAP_START=0x8000000 | ||
635 | CONFIG_MTD_PHYSMAP_LEN=0x4000000 | ||
636 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
637 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
638 | # CONFIG_MTD_IMPA7 is not set | ||
639 | # CONFIG_MTD_PLATRAM is not set | ||
640 | |||
641 | # | ||
642 | # Self-contained MTD device drivers | ||
643 | # | ||
644 | CONFIG_MTD_SLRAM=m | ||
645 | CONFIG_MTD_PHRAM=m | ||
646 | CONFIG_MTD_MTDRAM=m | ||
647 | CONFIG_MTDRAM_TOTAL_SIZE=4096 | ||
648 | CONFIG_MTDRAM_ERASE_SIZE=128 | ||
649 | CONFIG_MTD_BLKMTD=m | ||
650 | # CONFIG_MTD_BLOCK2MTD is not set | ||
651 | |||
652 | # | ||
653 | # Disk-On-Chip Device Drivers | ||
654 | # | ||
655 | CONFIG_MTD_DOC2000=m | ||
656 | CONFIG_MTD_DOC2001=m | ||
657 | CONFIG_MTD_DOC2001PLUS=m | ||
658 | CONFIG_MTD_DOCPROBE=m | ||
659 | CONFIG_MTD_DOCECC=m | ||
660 | # CONFIG_MTD_DOCPROBE_ADVANCED is not set | ||
661 | CONFIG_MTD_DOCPROBE_ADDRESS=0 | ||
662 | |||
663 | # | ||
664 | # NAND Flash Device Drivers | ||
665 | # | ||
666 | CONFIG_MTD_NAND=m | ||
667 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
668 | CONFIG_MTD_NAND_IDS=m | ||
669 | CONFIG_MTD_NAND_DISKONCHIP=m | ||
670 | # CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED is not set | ||
671 | CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0 | ||
672 | # CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE is not set | ||
673 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
674 | |||
675 | # | ||
676 | # OneNAND Flash Device Drivers | ||
677 | # | ||
678 | # CONFIG_MTD_ONENAND is not set | ||
679 | |||
680 | # | ||
681 | # Parallel port support | ||
682 | # | ||
683 | CONFIG_PARPORT=m | ||
684 | CONFIG_PARPORT_PC=m | ||
685 | CONFIG_PARPORT_PC_FIFO=y | ||
686 | # CONFIG_PARPORT_PC_SUPERIO is not set | ||
687 | CONFIG_PARPORT_PC_PCMCIA=m | ||
688 | CONFIG_PARPORT_NOT_PC=y | ||
689 | # CONFIG_PARPORT_ARC is not set | ||
690 | # CONFIG_PARPORT_GSC is not set | ||
691 | CONFIG_PARPORT_1284=y | ||
692 | |||
693 | # | ||
694 | # Plug and Play support | ||
695 | # | ||
696 | |||
697 | # | ||
698 | # Block devices | ||
699 | # | ||
700 | CONFIG_PARIDE=m | ||
701 | CONFIG_PARIDE_PARPORT=m | ||
702 | |||
703 | # | ||
704 | # Parallel IDE high-level drivers | ||
705 | # | ||
706 | CONFIG_PARIDE_PD=m | ||
707 | CONFIG_PARIDE_PCD=m | ||
708 | CONFIG_PARIDE_PF=m | ||
709 | CONFIG_PARIDE_PT=m | ||
710 | CONFIG_PARIDE_PG=m | ||
711 | |||
712 | # | ||
713 | # Parallel IDE protocol modules | ||
714 | # | ||
715 | CONFIG_PARIDE_ATEN=m | ||
716 | CONFIG_PARIDE_BPCK=m | ||
717 | CONFIG_PARIDE_BPCK6=m | ||
718 | CONFIG_PARIDE_COMM=m | ||
719 | CONFIG_PARIDE_DSTR=m | ||
720 | CONFIG_PARIDE_FIT2=m | ||
721 | CONFIG_PARIDE_FIT3=m | ||
722 | CONFIG_PARIDE_EPAT=m | ||
723 | # CONFIG_PARIDE_EPATC8 is not set | ||
724 | CONFIG_PARIDE_EPIA=m | ||
725 | CONFIG_PARIDE_FRIQ=m | ||
726 | CONFIG_PARIDE_FRPW=m | ||
727 | CONFIG_PARIDE_KBIC=m | ||
728 | CONFIG_PARIDE_KTTI=m | ||
729 | CONFIG_PARIDE_ON20=m | ||
730 | CONFIG_PARIDE_ON26=m | ||
731 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
732 | CONFIG_BLK_DEV_LOOP=m | ||
733 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
734 | CONFIG_BLK_DEV_NBD=m | ||
735 | # CONFIG_BLK_DEV_UB is not set | ||
736 | CONFIG_BLK_DEV_RAM=y | ||
737 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
738 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
739 | CONFIG_BLK_DEV_INITRD=y | ||
740 | CONFIG_CDROM_PKTCDVD=m | ||
741 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 | ||
742 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set | ||
743 | # CONFIG_ATA_OVER_ETH is not set | ||
744 | |||
745 | # | ||
746 | # ATA/ATAPI/MFM/RLL support | ||
747 | # | ||
748 | CONFIG_IDE=m | ||
749 | CONFIG_BLK_DEV_IDE=m | ||
750 | |||
751 | # | ||
752 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
753 | # | ||
754 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
755 | CONFIG_BLK_DEV_IDEDISK=m | ||
756 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
757 | CONFIG_BLK_DEV_IDECS=m | ||
758 | CONFIG_BLK_DEV_IDECD=m | ||
759 | CONFIG_BLK_DEV_IDETAPE=m | ||
760 | CONFIG_BLK_DEV_IDEFLOPPY=m | ||
761 | CONFIG_BLK_DEV_IDESCSI=m | ||
762 | # CONFIG_IDE_TASK_IOCTL is not set | ||
763 | |||
764 | # | ||
765 | # IDE chipset support/bugfixes | ||
766 | # | ||
767 | CONFIG_IDE_GENERIC=m | ||
768 | # CONFIG_IDE_ARM is not set | ||
769 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
770 | # CONFIG_IDEDMA_AUTO is not set | ||
771 | # CONFIG_BLK_DEV_HD is not set | ||
772 | |||
773 | # | ||
774 | # SCSI device support | ||
775 | # | ||
776 | # CONFIG_RAID_ATTRS is not set | ||
777 | CONFIG_SCSI=m | ||
778 | CONFIG_SCSI_PROC_FS=y | ||
779 | |||
780 | # | ||
781 | # SCSI support type (disk, tape, CD-ROM) | ||
782 | # | ||
783 | CONFIG_BLK_DEV_SD=m | ||
784 | CONFIG_CHR_DEV_ST=m | ||
785 | CONFIG_CHR_DEV_OSST=m | ||
786 | CONFIG_BLK_DEV_SR=m | ||
787 | # CONFIG_BLK_DEV_SR_VENDOR is not set | ||
788 | CONFIG_CHR_DEV_SG=m | ||
789 | CONFIG_CHR_DEV_SCH=m | ||
790 | |||
791 | # | ||
792 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
793 | # | ||
794 | CONFIG_SCSI_MULTI_LUN=y | ||
795 | CONFIG_SCSI_CONSTANTS=y | ||
796 | CONFIG_SCSI_LOGGING=y | ||
797 | |||
798 | # | ||
799 | # SCSI Transport Attributes | ||
800 | # | ||
801 | CONFIG_SCSI_SPI_ATTRS=m | ||
802 | CONFIG_SCSI_FC_ATTRS=m | ||
803 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
804 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
805 | |||
806 | # | ||
807 | # SCSI low-level drivers | ||
808 | # | ||
809 | # CONFIG_ISCSI_TCP is not set | ||
810 | CONFIG_SCSI_SATA=m | ||
811 | CONFIG_SCSI_PPA=m | ||
812 | CONFIG_SCSI_IMM=m | ||
813 | # CONFIG_SCSI_IZIP_EPP16 is not set | ||
814 | # CONFIG_SCSI_IZIP_SLOW_CTR is not set | ||
815 | CONFIG_SCSI_DEBUG=m | ||
816 | |||
817 | # | ||
818 | # PCMCIA SCSI adapter support | ||
819 | # | ||
820 | CONFIG_PCMCIA_AHA152X=m | ||
821 | CONFIG_PCMCIA_FDOMAIN=m | ||
822 | CONFIG_PCMCIA_NINJA_SCSI=m | ||
823 | CONFIG_PCMCIA_QLOGIC=m | ||
824 | CONFIG_PCMCIA_SYM53C500=m | ||
825 | |||
826 | # | ||
827 | # Multi-device support (RAID and LVM) | ||
828 | # | ||
829 | CONFIG_MD=y | ||
830 | CONFIG_BLK_DEV_MD=m | ||
831 | CONFIG_MD_LINEAR=m | ||
832 | CONFIG_MD_RAID0=m | ||
833 | CONFIG_MD_RAID1=m | ||
834 | CONFIG_MD_RAID10=m | ||
835 | CONFIG_MD_RAID5=m | ||
836 | # CONFIG_MD_RAID5_RESHAPE is not set | ||
837 | CONFIG_MD_RAID6=m | ||
838 | CONFIG_MD_MULTIPATH=m | ||
839 | CONFIG_MD_FAULTY=m | ||
840 | CONFIG_BLK_DEV_DM=m | ||
841 | CONFIG_DM_CRYPT=m | ||
842 | CONFIG_DM_SNAPSHOT=m | ||
843 | CONFIG_DM_MIRROR=m | ||
844 | CONFIG_DM_ZERO=m | ||
845 | # CONFIG_DM_MULTIPATH is not set | ||
846 | |||
847 | # | ||
848 | # Fusion MPT device support | ||
849 | # | ||
850 | # CONFIG_FUSION is not set | ||
851 | |||
852 | # | ||
853 | # IEEE 1394 (FireWire) support | ||
854 | # | ||
855 | |||
856 | # | ||
857 | # I2O device support | ||
858 | # | ||
859 | |||
860 | # | ||
861 | # Network device support | ||
862 | # | ||
863 | CONFIG_NETDEVICES=y | ||
864 | CONFIG_DUMMY=m | ||
865 | CONFIG_BONDING=m | ||
866 | CONFIG_EQUALIZER=m | ||
867 | CONFIG_TUN=m | ||
868 | |||
869 | # | ||
870 | # PHY device support | ||
871 | # | ||
872 | # CONFIG_PHYLIB is not set | ||
873 | |||
874 | # | ||
875 | # Ethernet (10 or 100Mbit) | ||
876 | # | ||
877 | CONFIG_NET_ETHERNET=y | ||
878 | CONFIG_MII=m | ||
879 | # CONFIG_SMC91X is not set | ||
880 | # CONFIG_DM9000 is not set | ||
881 | CONFIG_NET_POCKET=y | ||
882 | CONFIG_DE600=m | ||
883 | CONFIG_DE620=m | ||
884 | |||
885 | # | ||
886 | # Ethernet (1000 Mbit) | ||
887 | # | ||
888 | |||
889 | # | ||
890 | # Ethernet (10000 Mbit) | ||
891 | # | ||
892 | |||
893 | # | ||
894 | # Token Ring devices | ||
895 | # | ||
896 | |||
897 | # | ||
898 | # Wireless LAN (non-hamradio) | ||
899 | # | ||
900 | CONFIG_NET_RADIO=y | ||
901 | # CONFIG_NET_WIRELESS_RTNETLINK is not set | ||
902 | |||
903 | # | ||
904 | # Obsolete Wireless cards support (pre-802.11) | ||
905 | # | ||
906 | CONFIG_STRIP=m | ||
907 | CONFIG_PCMCIA_WAVELAN=m | ||
908 | CONFIG_PCMCIA_NETWAVE=m | ||
909 | |||
910 | # | ||
911 | # Wireless 802.11 Frequency Hopping cards support | ||
912 | # | ||
913 | CONFIG_PCMCIA_RAYCS=m | ||
914 | |||
915 | # | ||
916 | # Wireless 802.11b ISA/PCI cards support | ||
917 | # | ||
918 | CONFIG_HERMES=m | ||
919 | CONFIG_ATMEL=m | ||
920 | |||
921 | # | ||
922 | # Wireless 802.11b Pcmcia/Cardbus cards support | ||
923 | # | ||
924 | CONFIG_PCMCIA_HERMES=m | ||
925 | # CONFIG_PCMCIA_SPECTRUM is not set | ||
926 | CONFIG_AIRO_CS=m | ||
927 | CONFIG_PCMCIA_ATMEL=m | ||
928 | CONFIG_PCMCIA_WL3501=m | ||
929 | # CONFIG_HOSTAP is not set | ||
930 | CONFIG_NET_WIRELESS=y | ||
931 | |||
932 | # | ||
933 | # PCMCIA network device support | ||
934 | # | ||
935 | CONFIG_NET_PCMCIA=y | ||
936 | CONFIG_PCMCIA_3C589=m | ||
937 | CONFIG_PCMCIA_3C574=m | ||
938 | CONFIG_PCMCIA_FMVJ18X=m | ||
939 | CONFIG_PCMCIA_PCNET=m | ||
940 | CONFIG_PCMCIA_NMCLAN=m | ||
941 | CONFIG_PCMCIA_SMC91C92=m | ||
942 | CONFIG_PCMCIA_XIRC2PS=m | ||
943 | CONFIG_PCMCIA_AXNET=m | ||
944 | |||
945 | # | ||
946 | # Wan interfaces | ||
947 | # | ||
948 | CONFIG_WAN=y | ||
949 | CONFIG_SYNCLINK_SYNCPPP=m | ||
950 | CONFIG_HDLC=m | ||
951 | CONFIG_HDLC_RAW=y | ||
952 | CONFIG_HDLC_RAW_ETH=y | ||
953 | CONFIG_HDLC_CISCO=y | ||
954 | CONFIG_HDLC_FR=y | ||
955 | CONFIG_HDLC_PPP=y | ||
956 | CONFIG_HDLC_X25=y | ||
957 | CONFIG_DLCI=m | ||
958 | CONFIG_DLCI_COUNT=24 | ||
959 | CONFIG_DLCI_MAX=8 | ||
960 | CONFIG_WAN_ROUTER_DRIVERS=y | ||
961 | CONFIG_LAPBETHER=m | ||
962 | CONFIG_X25_ASY=m | ||
963 | |||
964 | # | ||
965 | # ATM drivers | ||
966 | # | ||
967 | # CONFIG_ATM_DUMMY is not set | ||
968 | CONFIG_ATM_TCP=m | ||
969 | CONFIG_PLIP=m | ||
970 | CONFIG_PPP=m | ||
971 | CONFIG_PPP_MULTILINK=y | ||
972 | CONFIG_PPP_FILTER=y | ||
973 | CONFIG_PPP_ASYNC=m | ||
974 | CONFIG_PPP_SYNC_TTY=m | ||
975 | CONFIG_PPP_DEFLATE=m | ||
976 | CONFIG_PPP_BSDCOMP=m | ||
977 | CONFIG_PPP_MPPE=m | ||
978 | CONFIG_PPPOE=m | ||
979 | CONFIG_PPPOATM=m | ||
980 | CONFIG_SLIP=m | ||
981 | CONFIG_SLIP_COMPRESSED=y | ||
982 | CONFIG_SLIP_SMART=y | ||
983 | CONFIG_SLIP_MODE_SLIP6=y | ||
984 | CONFIG_SHAPER=m | ||
985 | CONFIG_NETCONSOLE=m | ||
986 | CONFIG_NETPOLL=y | ||
987 | # CONFIG_NETPOLL_RX is not set | ||
988 | # CONFIG_NETPOLL_TRAP is not set | ||
989 | CONFIG_NET_POLL_CONTROLLER=y | ||
990 | |||
991 | # | ||
992 | # ISDN subsystem | ||
993 | # | ||
994 | CONFIG_ISDN=m | ||
995 | |||
996 | # | ||
997 | # Old ISDN4Linux | ||
998 | # | ||
999 | CONFIG_ISDN_I4L=m | ||
1000 | CONFIG_ISDN_PPP=y | ||
1001 | CONFIG_ISDN_PPP_VJ=y | ||
1002 | CONFIG_ISDN_MPP=y | ||
1003 | CONFIG_IPPP_FILTER=y | ||
1004 | CONFIG_ISDN_PPP_BSDCOMP=m | ||
1005 | CONFIG_ISDN_AUDIO=y | ||
1006 | CONFIG_ISDN_TTY_FAX=y | ||
1007 | CONFIG_ISDN_X25=y | ||
1008 | |||
1009 | # | ||
1010 | # ISDN feature submodules | ||
1011 | # | ||
1012 | CONFIG_ISDN_DRV_LOOP=m | ||
1013 | CONFIG_ISDN_DIVERSION=m | ||
1014 | |||
1015 | # | ||
1016 | # ISDN4Linux hardware drivers | ||
1017 | # | ||
1018 | |||
1019 | # | ||
1020 | # Passive cards | ||
1021 | # | ||
1022 | CONFIG_ISDN_DRV_HISAX=m | ||
1023 | |||
1024 | # | ||
1025 | # D-channel protocol features | ||
1026 | # | ||
1027 | CONFIG_HISAX_EURO=y | ||
1028 | CONFIG_DE_AOC=y | ||
1029 | # CONFIG_HISAX_NO_SENDCOMPLETE is not set | ||
1030 | # CONFIG_HISAX_NO_LLC is not set | ||
1031 | # CONFIG_HISAX_NO_KEYPAD is not set | ||
1032 | CONFIG_HISAX_1TR6=y | ||
1033 | CONFIG_HISAX_NI1=y | ||
1034 | CONFIG_HISAX_MAX_CARDS=8 | ||
1035 | |||
1036 | # | ||
1037 | # HiSax supported cards | ||
1038 | # | ||
1039 | CONFIG_HISAX_16_3=y | ||
1040 | CONFIG_HISAX_S0BOX=y | ||
1041 | CONFIG_HISAX_FRITZPCI=y | ||
1042 | CONFIG_HISAX_AVM_A1_PCMCIA=y | ||
1043 | CONFIG_HISAX_ELSA=y | ||
1044 | CONFIG_HISAX_DIEHLDIVA=y | ||
1045 | CONFIG_HISAX_SEDLBAUER=y | ||
1046 | CONFIG_HISAX_NICCY=y | ||
1047 | CONFIG_HISAX_GAZEL=y | ||
1048 | CONFIG_HISAX_HFC_SX=y | ||
1049 | # CONFIG_HISAX_DEBUG is not set | ||
1050 | |||
1051 | # | ||
1052 | # HiSax PCMCIA card service modules | ||
1053 | # | ||
1054 | CONFIG_HISAX_SEDLBAUER_CS=m | ||
1055 | CONFIG_HISAX_ELSA_CS=m | ||
1056 | CONFIG_HISAX_AVM_A1_CS=m | ||
1057 | CONFIG_HISAX_TELES_CS=m | ||
1058 | |||
1059 | # | ||
1060 | # HiSax sub driver modules | ||
1061 | # | ||
1062 | CONFIG_HISAX_ST5481=m | ||
1063 | CONFIG_HISAX_HFCUSB=m | ||
1064 | # CONFIG_HISAX_HFC4S8S is not set | ||
1065 | CONFIG_HISAX_HDLC=y | ||
1066 | |||
1067 | # | ||
1068 | # Active cards | ||
1069 | # | ||
1070 | |||
1071 | # | ||
1072 | # Siemens Gigaset | ||
1073 | # | ||
1074 | # CONFIG_ISDN_DRV_GIGASET is not set | ||
1075 | |||
1076 | # | ||
1077 | # CAPI subsystem | ||
1078 | # | ||
1079 | CONFIG_ISDN_CAPI=m | ||
1080 | CONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON=y | ||
1081 | CONFIG_ISDN_CAPI_MIDDLEWARE=y | ||
1082 | CONFIG_ISDN_CAPI_CAPI20=m | ||
1083 | CONFIG_ISDN_CAPI_CAPIFS_BOOL=y | ||
1084 | CONFIG_ISDN_CAPI_CAPIFS=m | ||
1085 | CONFIG_ISDN_CAPI_CAPIDRV=m | ||
1086 | |||
1087 | # | ||
1088 | # CAPI hardware drivers | ||
1089 | # | ||
1090 | |||
1091 | # | ||
1092 | # Active AVM cards | ||
1093 | # | ||
1094 | CONFIG_CAPI_AVM=y | ||
1095 | CONFIG_ISDN_DRV_AVMB1_B1PCMCIA=m | ||
1096 | CONFIG_ISDN_DRV_AVMB1_AVM_CS=m | ||
1097 | |||
1098 | # | ||
1099 | # Active Eicon DIVA Server cards | ||
1100 | # | ||
1101 | CONFIG_CAPI_EICON=y | ||
1102 | |||
1103 | # | ||
1104 | # Input device support | ||
1105 | # | ||
1106 | CONFIG_INPUT=y | ||
1107 | |||
1108 | # | ||
1109 | # Userland interfaces | ||
1110 | # | ||
1111 | CONFIG_INPUT_MOUSEDEV=m | ||
1112 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
1113 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
1114 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
1115 | CONFIG_INPUT_JOYDEV=m | ||
1116 | CONFIG_INPUT_TSDEV=m | ||
1117 | CONFIG_INPUT_TSDEV_SCREEN_X=240 | ||
1118 | CONFIG_INPUT_TSDEV_SCREEN_Y=320 | ||
1119 | CONFIG_INPUT_EVDEV=m | ||
1120 | CONFIG_INPUT_EVBUG=m | ||
1121 | |||
1122 | # | ||
1123 | # Input Device Drivers | ||
1124 | # | ||
1125 | CONFIG_INPUT_KEYBOARD=y | ||
1126 | CONFIG_KEYBOARD_ATKBD=y | ||
1127 | CONFIG_KEYBOARD_SUNKBD=m | ||
1128 | CONFIG_KEYBOARD_LKKBD=m | ||
1129 | CONFIG_KEYBOARD_XTKBD=m | ||
1130 | CONFIG_KEYBOARD_NEWTON=m | ||
1131 | CONFIG_INPUT_MOUSE=y | ||
1132 | CONFIG_MOUSE_PS2=m | ||
1133 | CONFIG_MOUSE_SERIAL=m | ||
1134 | CONFIG_MOUSE_VSXXXAA=m | ||
1135 | CONFIG_INPUT_JOYSTICK=y | ||
1136 | CONFIG_JOYSTICK_ANALOG=m | ||
1137 | CONFIG_JOYSTICK_A3D=m | ||
1138 | CONFIG_JOYSTICK_ADI=m | ||
1139 | CONFIG_JOYSTICK_COBRA=m | ||
1140 | CONFIG_JOYSTICK_GF2K=m | ||
1141 | CONFIG_JOYSTICK_GRIP=m | ||
1142 | CONFIG_JOYSTICK_GRIP_MP=m | ||
1143 | CONFIG_JOYSTICK_GUILLEMOT=m | ||
1144 | CONFIG_JOYSTICK_INTERACT=m | ||
1145 | CONFIG_JOYSTICK_SIDEWINDER=m | ||
1146 | CONFIG_JOYSTICK_TMDC=m | ||
1147 | CONFIG_JOYSTICK_IFORCE=m | ||
1148 | CONFIG_JOYSTICK_IFORCE_USB=y | ||
1149 | CONFIG_JOYSTICK_IFORCE_232=y | ||
1150 | CONFIG_JOYSTICK_WARRIOR=m | ||
1151 | CONFIG_JOYSTICK_MAGELLAN=m | ||
1152 | CONFIG_JOYSTICK_SPACEORB=m | ||
1153 | CONFIG_JOYSTICK_SPACEBALL=m | ||
1154 | CONFIG_JOYSTICK_STINGER=m | ||
1155 | # CONFIG_JOYSTICK_TWIDJOY is not set | ||
1156 | CONFIG_JOYSTICK_DB9=m | ||
1157 | CONFIG_JOYSTICK_GAMECON=m | ||
1158 | CONFIG_JOYSTICK_TURBOGRAFX=m | ||
1159 | CONFIG_JOYSTICK_JOYDUMP=m | ||
1160 | CONFIG_INPUT_TOUCHSCREEN=y | ||
1161 | CONFIG_TOUCHSCREEN_GUNZE=m | ||
1162 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
1163 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
1164 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
1165 | CONFIG_INPUT_MISC=y | ||
1166 | CONFIG_INPUT_UINPUT=m | ||
1167 | |||
1168 | # | ||
1169 | # Hardware I/O ports | ||
1170 | # | ||
1171 | CONFIG_SERIO=y | ||
1172 | CONFIG_SERIO_SERPORT=m | ||
1173 | CONFIG_SERIO_PARKBD=m | ||
1174 | CONFIG_SERIO_LIBPS2=y | ||
1175 | CONFIG_SERIO_RAW=m | ||
1176 | CONFIG_GAMEPORT=m | ||
1177 | CONFIG_GAMEPORT_NS558=m | ||
1178 | CONFIG_GAMEPORT_L4=m | ||
1179 | |||
1180 | # | ||
1181 | # Character devices | ||
1182 | # | ||
1183 | CONFIG_VT=y | ||
1184 | CONFIG_VT_CONSOLE=y | ||
1185 | CONFIG_HW_CONSOLE=y | ||
1186 | CONFIG_SERIAL_NONSTANDARD=y | ||
1187 | CONFIG_COMPUTONE=m | ||
1188 | CONFIG_ROCKETPORT=m | ||
1189 | CONFIG_CYCLADES=m | ||
1190 | # CONFIG_CYZ_INTR is not set | ||
1191 | CONFIG_DIGIEPCA=m | ||
1192 | CONFIG_MOXA_INTELLIO=m | ||
1193 | CONFIG_MOXA_SMARTIO=m | ||
1194 | # CONFIG_ISI is not set | ||
1195 | CONFIG_SYNCLINKMP=m | ||
1196 | CONFIG_N_HDLC=m | ||
1197 | # CONFIG_RISCOM8 is not set | ||
1198 | # CONFIG_SPECIALIX is not set | ||
1199 | CONFIG_SX=m | ||
1200 | CONFIG_RIO=m | ||
1201 | CONFIG_RIO_OLDPCI=y | ||
1202 | CONFIG_STALDRV=y | ||
1203 | CONFIG_STALLION=m | ||
1204 | CONFIG_ISTALLION=m | ||
1205 | |||
1206 | # | ||
1207 | # Serial drivers | ||
1208 | # | ||
1209 | CONFIG_SERIAL_8250=y | ||
1210 | CONFIG_SERIAL_8250_CONSOLE=y | ||
1211 | CONFIG_SERIAL_8250_CS=m | ||
1212 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
1213 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
1214 | CONFIG_SERIAL_8250_EXTENDED=y | ||
1215 | CONFIG_SERIAL_8250_MANY_PORTS=y | ||
1216 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
1217 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
1218 | CONFIG_SERIAL_8250_RSA=y | ||
1219 | |||
1220 | # | ||
1221 | # Non-8250 serial port support | ||
1222 | # | ||
1223 | CONFIG_SERIAL_CORE=y | ||
1224 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
1225 | CONFIG_UNIX98_PTYS=y | ||
1226 | CONFIG_LEGACY_PTYS=y | ||
1227 | CONFIG_LEGACY_PTY_COUNT=256 | ||
1228 | CONFIG_PRINTER=m | ||
1229 | # CONFIG_LP_CONSOLE is not set | ||
1230 | CONFIG_PPDEV=m | ||
1231 | CONFIG_TIPAR=m | ||
1232 | |||
1233 | # | ||
1234 | # IPMI | ||
1235 | # | ||
1236 | CONFIG_IPMI_HANDLER=m | ||
1237 | # CONFIG_IPMI_PANIC_EVENT is not set | ||
1238 | CONFIG_IPMI_DEVICE_INTERFACE=m | ||
1239 | CONFIG_IPMI_SI=m | ||
1240 | CONFIG_IPMI_WATCHDOG=m | ||
1241 | CONFIG_IPMI_POWEROFF=m | ||
1242 | |||
1243 | # | ||
1244 | # Watchdog Cards | ||
1245 | # | ||
1246 | CONFIG_WATCHDOG=y | ||
1247 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
1248 | |||
1249 | # | ||
1250 | # Watchdog Device Drivers | ||
1251 | # | ||
1252 | CONFIG_SOFT_WATCHDOG=m | ||
1253 | |||
1254 | # | ||
1255 | # USB-based Watchdog Cards | ||
1256 | # | ||
1257 | CONFIG_USBPCWATCHDOG=m | ||
1258 | CONFIG_NVRAM=m | ||
1259 | CONFIG_DTLK=m | ||
1260 | CONFIG_R3964=m | ||
1261 | |||
1262 | # | ||
1263 | # Ftape, the floppy tape device driver | ||
1264 | # | ||
1265 | |||
1266 | # | ||
1267 | # PCMCIA character devices | ||
1268 | # | ||
1269 | CONFIG_SYNCLINK_CS=m | ||
1270 | # CONFIG_CARDMAN_4000 is not set | ||
1271 | # CONFIG_CARDMAN_4040 is not set | ||
1272 | CONFIG_RAW_DRIVER=m | ||
1273 | CONFIG_MAX_RAW_DEVS=256 | ||
1274 | |||
1275 | # | ||
1276 | # TPM devices | ||
1277 | # | ||
1278 | # CONFIG_TCG_TPM is not set | ||
1279 | # CONFIG_TELCLOCK is not set | ||
1280 | |||
1281 | # | ||
1282 | # I2C support | ||
1283 | # | ||
1284 | CONFIG_I2C=m | ||
1285 | CONFIG_I2C_CHARDEV=m | ||
1286 | |||
1287 | # | ||
1288 | # I2C Algorithms | ||
1289 | # | ||
1290 | CONFIG_I2C_ALGOBIT=m | ||
1291 | CONFIG_I2C_ALGOPCF=m | ||
1292 | CONFIG_I2C_ALGOPCA=m | ||
1293 | |||
1294 | # | ||
1295 | # I2C Hardware Bus support | ||
1296 | # | ||
1297 | CONFIG_I2C_ISA=m | ||
1298 | CONFIG_I2C_PARPORT=m | ||
1299 | CONFIG_I2C_PARPORT_LIGHT=m | ||
1300 | CONFIG_I2C_STUB=m | ||
1301 | CONFIG_I2C_PCA_ISA=m | ||
1302 | |||
1303 | # | ||
1304 | # Miscellaneous I2C Chip support | ||
1305 | # | ||
1306 | # CONFIG_SENSORS_DS1337 is not set | ||
1307 | # CONFIG_SENSORS_DS1374 is not set | ||
1308 | CONFIG_SENSORS_EEPROM=m | ||
1309 | CONFIG_SENSORS_PCF8574=m | ||
1310 | # CONFIG_SENSORS_PCA9539 is not set | ||
1311 | CONFIG_SENSORS_PCF8591=m | ||
1312 | # CONFIG_SENSORS_MAX6875 is not set | ||
1313 | # CONFIG_I2C_DEBUG_CORE is not set | ||
1314 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
1315 | # CONFIG_I2C_DEBUG_BUS is not set | ||
1316 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
1317 | |||
1318 | # | ||
1319 | # SPI support | ||
1320 | # | ||
1321 | # CONFIG_SPI is not set | ||
1322 | # CONFIG_SPI_MASTER is not set | ||
1323 | |||
1324 | # | ||
1325 | # Dallas's 1-wire bus | ||
1326 | # | ||
1327 | CONFIG_W1=m | ||
1328 | |||
1329 | # | ||
1330 | # 1-wire Bus Masters | ||
1331 | # | ||
1332 | # CONFIG_W1_MASTER_DS9490 is not set | ||
1333 | # CONFIG_W1_MASTER_DS2482 is not set | ||
1334 | |||
1335 | # | ||
1336 | # 1-wire Slaves | ||
1337 | # | ||
1338 | # CONFIG_W1_SLAVE_THERM is not set | ||
1339 | # CONFIG_W1_SLAVE_SMEM is not set | ||
1340 | # CONFIG_W1_SLAVE_DS2433 is not set | ||
1341 | |||
1342 | # | ||
1343 | # Hardware Monitoring support | ||
1344 | # | ||
1345 | CONFIG_HWMON=y | ||
1346 | CONFIG_HWMON_VID=m | ||
1347 | CONFIG_SENSORS_ADM1021=m | ||
1348 | CONFIG_SENSORS_ADM1025=m | ||
1349 | CONFIG_SENSORS_ADM1026=m | ||
1350 | CONFIG_SENSORS_ADM1031=m | ||
1351 | # CONFIG_SENSORS_ADM9240 is not set | ||
1352 | CONFIG_SENSORS_ASB100=m | ||
1353 | # CONFIG_SENSORS_ATXP1 is not set | ||
1354 | CONFIG_SENSORS_DS1621=m | ||
1355 | # CONFIG_SENSORS_F71805F is not set | ||
1356 | CONFIG_SENSORS_FSCHER=m | ||
1357 | # CONFIG_SENSORS_FSCPOS is not set | ||
1358 | CONFIG_SENSORS_GL518SM=m | ||
1359 | # CONFIG_SENSORS_GL520SM is not set | ||
1360 | CONFIG_SENSORS_IT87=m | ||
1361 | CONFIG_SENSORS_LM63=m | ||
1362 | CONFIG_SENSORS_LM75=m | ||
1363 | CONFIG_SENSORS_LM77=m | ||
1364 | CONFIG_SENSORS_LM78=m | ||
1365 | CONFIG_SENSORS_LM80=m | ||
1366 | CONFIG_SENSORS_LM83=m | ||
1367 | CONFIG_SENSORS_LM85=m | ||
1368 | CONFIG_SENSORS_LM87=m | ||
1369 | CONFIG_SENSORS_LM90=m | ||
1370 | # CONFIG_SENSORS_LM92 is not set | ||
1371 | CONFIG_SENSORS_MAX1619=m | ||
1372 | CONFIG_SENSORS_PC87360=m | ||
1373 | CONFIG_SENSORS_SMSC47M1=m | ||
1374 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
1375 | CONFIG_SENSORS_W83781D=m | ||
1376 | # CONFIG_SENSORS_W83792D is not set | ||
1377 | CONFIG_SENSORS_W83L785TS=m | ||
1378 | CONFIG_SENSORS_W83627HF=m | ||
1379 | # CONFIG_SENSORS_W83627EHF is not set | ||
1380 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1381 | |||
1382 | # | ||
1383 | # Misc devices | ||
1384 | # | ||
1385 | |||
1386 | # | ||
1387 | # LED devices | ||
1388 | # | ||
1389 | # CONFIG_NEW_LEDS is not set | ||
1390 | |||
1391 | # | ||
1392 | # Multimedia devices | ||
1393 | # | ||
1394 | # CONFIG_VIDEO_DEV is not set | ||
1395 | |||
1396 | # | ||
1397 | # Digital Video Broadcasting Devices | ||
1398 | # | ||
1399 | CONFIG_DVB=y | ||
1400 | CONFIG_DVB_CORE=m | ||
1401 | |||
1402 | # | ||
1403 | # Supported USB Adapters | ||
1404 | # | ||
1405 | # CONFIG_DVB_USB is not set | ||
1406 | CONFIG_DVB_TTUSB_BUDGET=m | ||
1407 | CONFIG_DVB_TTUSB_DEC=m | ||
1408 | CONFIG_DVB_CINERGYT2=m | ||
1409 | CONFIG_DVB_CINERGYT2_TUNING=y | ||
1410 | CONFIG_DVB_CINERGYT2_STREAM_URB_COUNT=32 | ||
1411 | CONFIG_DVB_CINERGYT2_STREAM_BUF_SIZE=512 | ||
1412 | CONFIG_DVB_CINERGYT2_QUERY_INTERVAL=250 | ||
1413 | CONFIG_DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE=y | ||
1414 | CONFIG_DVB_CINERGYT2_RC_QUERY_INTERVAL=100 | ||
1415 | |||
1416 | # | ||
1417 | # Supported FlexCopII (B2C2) Adapters | ||
1418 | # | ||
1419 | # CONFIG_DVB_B2C2_FLEXCOP is not set | ||
1420 | |||
1421 | # | ||
1422 | # Supported DVB Frontends | ||
1423 | # | ||
1424 | |||
1425 | # | ||
1426 | # Customise DVB Frontends | ||
1427 | # | ||
1428 | |||
1429 | # | ||
1430 | # DVB-S (satellite) frontends | ||
1431 | # | ||
1432 | CONFIG_DVB_STV0299=m | ||
1433 | CONFIG_DVB_CX24110=m | ||
1434 | # CONFIG_DVB_CX24123 is not set | ||
1435 | CONFIG_DVB_TDA8083=m | ||
1436 | CONFIG_DVB_MT312=m | ||
1437 | CONFIG_DVB_VES1X93=m | ||
1438 | # CONFIG_DVB_S5H1420 is not set | ||
1439 | |||
1440 | # | ||
1441 | # DVB-T (terrestrial) frontends | ||
1442 | # | ||
1443 | CONFIG_DVB_SP8870=m | ||
1444 | CONFIG_DVB_SP887X=m | ||
1445 | CONFIG_DVB_CX22700=m | ||
1446 | CONFIG_DVB_CX22702=m | ||
1447 | CONFIG_DVB_L64781=m | ||
1448 | CONFIG_DVB_TDA1004X=m | ||
1449 | CONFIG_DVB_NXT6000=m | ||
1450 | CONFIG_DVB_MT352=m | ||
1451 | # CONFIG_DVB_ZL10353 is not set | ||
1452 | CONFIG_DVB_DIB3000MB=m | ||
1453 | CONFIG_DVB_DIB3000MC=m | ||
1454 | |||
1455 | # | ||
1456 | # DVB-C (cable) frontends | ||
1457 | # | ||
1458 | CONFIG_DVB_VES1820=m | ||
1459 | CONFIG_DVB_TDA10021=m | ||
1460 | CONFIG_DVB_STV0297=m | ||
1461 | |||
1462 | # | ||
1463 | # ATSC (North American/Korean Terresterial DTV) frontends | ||
1464 | # | ||
1465 | # CONFIG_DVB_NXT200X is not set | ||
1466 | # CONFIG_DVB_OR51211 is not set | ||
1467 | # CONFIG_DVB_OR51132 is not set | ||
1468 | # CONFIG_DVB_BCM3510 is not set | ||
1469 | # CONFIG_DVB_LGDT330X is not set | ||
1470 | # CONFIG_USB_DABUSB is not set | ||
1471 | |||
1472 | # | ||
1473 | # Graphics support | ||
1474 | # | ||
1475 | # CONFIG_FB is not set | ||
1476 | |||
1477 | # | ||
1478 | # Console display driver support | ||
1479 | # | ||
1480 | # CONFIG_VGA_CONSOLE is not set | ||
1481 | CONFIG_DUMMY_CONSOLE=y | ||
1482 | |||
1483 | # | ||
1484 | # Sound | ||
1485 | # | ||
1486 | CONFIG_SOUND=m | ||
1487 | |||
1488 | # | ||
1489 | # Advanced Linux Sound Architecture | ||
1490 | # | ||
1491 | CONFIG_SND=m | ||
1492 | CONFIG_SND_TIMER=m | ||
1493 | CONFIG_SND_PCM=m | ||
1494 | CONFIG_SND_HWDEP=m | ||
1495 | CONFIG_SND_RAWMIDI=m | ||
1496 | CONFIG_SND_SEQUENCER=m | ||
1497 | CONFIG_SND_SEQ_DUMMY=m | ||
1498 | CONFIG_SND_OSSEMUL=y | ||
1499 | CONFIG_SND_MIXER_OSS=m | ||
1500 | CONFIG_SND_PCM_OSS=m | ||
1501 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1502 | CONFIG_SND_SEQUENCER_OSS=y | ||
1503 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1504 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1505 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1506 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1507 | # CONFIG_SND_DEBUG is not set | ||
1508 | |||
1509 | # | ||
1510 | # Generic devices | ||
1511 | # | ||
1512 | CONFIG_SND_MPU401_UART=m | ||
1513 | CONFIG_SND_DUMMY=m | ||
1514 | CONFIG_SND_VIRMIDI=m | ||
1515 | CONFIG_SND_MTPAV=m | ||
1516 | CONFIG_SND_SERIAL_U16550=m | ||
1517 | CONFIG_SND_MPU401=m | ||
1518 | |||
1519 | # | ||
1520 | # ALSA ARM devices | ||
1521 | # | ||
1522 | |||
1523 | # | ||
1524 | # USB devices | ||
1525 | # | ||
1526 | CONFIG_SND_USB_AUDIO=m | ||
1527 | |||
1528 | # | ||
1529 | # PCMCIA devices | ||
1530 | # | ||
1531 | |||
1532 | # | ||
1533 | # Open Sound System | ||
1534 | # | ||
1535 | CONFIG_SOUND_PRIME=m | ||
1536 | # CONFIG_OBSOLETE_OSS_DRIVER is not set | ||
1537 | # CONFIG_SOUND_MSNDCLAS is not set | ||
1538 | # CONFIG_SOUND_MSNDPIN is not set | ||
1539 | CONFIG_SOUND_TVMIXER=m | ||
1540 | |||
1541 | # | ||
1542 | # USB support | ||
1543 | # | ||
1544 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1545 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
1546 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
1547 | CONFIG_USB=m | ||
1548 | # CONFIG_USB_DEBUG is not set | ||
1549 | |||
1550 | # | ||
1551 | # Miscellaneous USB options | ||
1552 | # | ||
1553 | CONFIG_USB_DEVICEFS=y | ||
1554 | CONFIG_USB_BANDWIDTH=y | ||
1555 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1556 | # CONFIG_USB_SUSPEND is not set | ||
1557 | # CONFIG_USB_OTG is not set | ||
1558 | |||
1559 | # | ||
1560 | # USB Host Controller Drivers | ||
1561 | # | ||
1562 | # CONFIG_USB_ISP116X_HCD is not set | ||
1563 | CONFIG_USB_SL811_HCD=m | ||
1564 | # CONFIG_USB_SL811_CS is not set | ||
1565 | |||
1566 | # | ||
1567 | # USB Device Class drivers | ||
1568 | # | ||
1569 | CONFIG_USB_ACM=m | ||
1570 | CONFIG_USB_PRINTER=m | ||
1571 | |||
1572 | # | ||
1573 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
1574 | # | ||
1575 | |||
1576 | # | ||
1577 | # may also be needed; see USB_STORAGE Help for more information | ||
1578 | # | ||
1579 | CONFIG_USB_STORAGE=m | ||
1580 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
1581 | CONFIG_USB_STORAGE_DATAFAB=y | ||
1582 | CONFIG_USB_STORAGE_FREECOM=y | ||
1583 | CONFIG_USB_STORAGE_ISD200=y | ||
1584 | CONFIG_USB_STORAGE_DPCM=y | ||
1585 | CONFIG_USB_STORAGE_USBAT=y | ||
1586 | CONFIG_USB_STORAGE_SDDR09=y | ||
1587 | CONFIG_USB_STORAGE_SDDR55=y | ||
1588 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
1589 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1590 | # CONFIG_USB_LIBUSUAL is not set | ||
1591 | |||
1592 | # | ||
1593 | # USB Input Devices | ||
1594 | # | ||
1595 | CONFIG_USB_HID=m | ||
1596 | CONFIG_USB_HIDINPUT=y | ||
1597 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
1598 | # CONFIG_HID_FF is not set | ||
1599 | CONFIG_USB_HIDDEV=y | ||
1600 | |||
1601 | # | ||
1602 | # USB HID Boot Protocol drivers | ||
1603 | # | ||
1604 | CONFIG_USB_KBD=m | ||
1605 | CONFIG_USB_MOUSE=m | ||
1606 | CONFIG_USB_AIPTEK=m | ||
1607 | CONFIG_USB_WACOM=m | ||
1608 | # CONFIG_USB_ACECAD is not set | ||
1609 | CONFIG_USB_KBTAB=m | ||
1610 | CONFIG_USB_POWERMATE=m | ||
1611 | CONFIG_USB_MTOUCH=m | ||
1612 | # CONFIG_USB_ITMTOUCH is not set | ||
1613 | CONFIG_USB_EGALAX=m | ||
1614 | # CONFIG_USB_YEALINK is not set | ||
1615 | CONFIG_USB_XPAD=m | ||
1616 | CONFIG_USB_ATI_REMOTE=m | ||
1617 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
1618 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
1619 | # CONFIG_USB_APPLETOUCH is not set | ||
1620 | |||
1621 | # | ||
1622 | # USB Imaging devices | ||
1623 | # | ||
1624 | CONFIG_USB_MDC800=m | ||
1625 | CONFIG_USB_MICROTEK=m | ||
1626 | |||
1627 | # | ||
1628 | # USB Network Adapters | ||
1629 | # | ||
1630 | CONFIG_USB_CATC=m | ||
1631 | CONFIG_USB_KAWETH=m | ||
1632 | CONFIG_USB_PEGASUS=m | ||
1633 | CONFIG_USB_RTL8150=m | ||
1634 | CONFIG_USB_USBNET=m | ||
1635 | CONFIG_USB_NET_AX8817X=m | ||
1636 | CONFIG_USB_NET_CDCETHER=m | ||
1637 | # CONFIG_USB_NET_GL620A is not set | ||
1638 | CONFIG_USB_NET_NET1080=m | ||
1639 | # CONFIG_USB_NET_PLUSB is not set | ||
1640 | # CONFIG_USB_NET_RNDIS_HOST is not set | ||
1641 | # CONFIG_USB_NET_CDC_SUBSET is not set | ||
1642 | CONFIG_USB_NET_ZAURUS=m | ||
1643 | # CONFIG_USB_ZD1201 is not set | ||
1644 | CONFIG_USB_MON=y | ||
1645 | |||
1646 | # | ||
1647 | # USB port drivers | ||
1648 | # | ||
1649 | CONFIG_USB_USS720=m | ||
1650 | |||
1651 | # | ||
1652 | # USB Serial Converter support | ||
1653 | # | ||
1654 | CONFIG_USB_SERIAL=m | ||
1655 | CONFIG_USB_SERIAL_GENERIC=y | ||
1656 | # CONFIG_USB_SERIAL_AIRPRIME is not set | ||
1657 | # CONFIG_USB_SERIAL_ANYDATA is not set | ||
1658 | CONFIG_USB_SERIAL_BELKIN=m | ||
1659 | CONFIG_USB_SERIAL_WHITEHEAT=m | ||
1660 | CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m | ||
1661 | # CONFIG_USB_SERIAL_CP2101 is not set | ||
1662 | CONFIG_USB_SERIAL_CYPRESS_M8=m | ||
1663 | CONFIG_USB_SERIAL_EMPEG=m | ||
1664 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
1665 | CONFIG_USB_SERIAL_VISOR=m | ||
1666 | CONFIG_USB_SERIAL_IPAQ=m | ||
1667 | CONFIG_USB_SERIAL_IR=m | ||
1668 | CONFIG_USB_SERIAL_EDGEPORT=m | ||
1669 | CONFIG_USB_SERIAL_EDGEPORT_TI=m | ||
1670 | # CONFIG_USB_SERIAL_GARMIN is not set | ||
1671 | CONFIG_USB_SERIAL_IPW=m | ||
1672 | CONFIG_USB_SERIAL_KEYSPAN_PDA=m | ||
1673 | CONFIG_USB_SERIAL_KEYSPAN=m | ||
1674 | # CONFIG_USB_SERIAL_KEYSPAN_MPR is not set | ||
1675 | # CONFIG_USB_SERIAL_KEYSPAN_USA28 is not set | ||
1676 | # CONFIG_USB_SERIAL_KEYSPAN_USA28X is not set | ||
1677 | # CONFIG_USB_SERIAL_KEYSPAN_USA28XA is not set | ||
1678 | # CONFIG_USB_SERIAL_KEYSPAN_USA28XB is not set | ||
1679 | # CONFIG_USB_SERIAL_KEYSPAN_USA19 is not set | ||
1680 | # CONFIG_USB_SERIAL_KEYSPAN_USA18X is not set | ||
1681 | # CONFIG_USB_SERIAL_KEYSPAN_USA19W is not set | ||
1682 | # CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set | ||
1683 | # CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set | ||
1684 | # CONFIG_USB_SERIAL_KEYSPAN_USA49W is not set | ||
1685 | # CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set | ||
1686 | CONFIG_USB_SERIAL_KLSI=m | ||
1687 | CONFIG_USB_SERIAL_KOBIL_SCT=m | ||
1688 | CONFIG_USB_SERIAL_MCT_U232=m | ||
1689 | # CONFIG_USB_SERIAL_NAVMAN is not set | ||
1690 | CONFIG_USB_SERIAL_PL2303=m | ||
1691 | # CONFIG_USB_SERIAL_HP4X is not set | ||
1692 | CONFIG_USB_SERIAL_SAFE=m | ||
1693 | # CONFIG_USB_SERIAL_SAFE_PADDED is not set | ||
1694 | # CONFIG_USB_SERIAL_TI is not set | ||
1695 | CONFIG_USB_SERIAL_CYBERJACK=m | ||
1696 | CONFIG_USB_SERIAL_XIRCOM=m | ||
1697 | CONFIG_USB_SERIAL_OMNINET=m | ||
1698 | CONFIG_USB_EZUSB=y | ||
1699 | |||
1700 | # | ||
1701 | # USB Miscellaneous drivers | ||
1702 | # | ||
1703 | # CONFIG_USB_EMI62 is not set | ||
1704 | # CONFIG_USB_EMI26 is not set | ||
1705 | CONFIG_USB_AUERSWALD=m | ||
1706 | CONFIG_USB_RIO500=m | ||
1707 | CONFIG_USB_LEGOTOWER=m | ||
1708 | CONFIG_USB_LCD=m | ||
1709 | CONFIG_USB_LED=m | ||
1710 | CONFIG_USB_CYTHERM=m | ||
1711 | CONFIG_USB_PHIDGETKIT=m | ||
1712 | CONFIG_USB_PHIDGETSERVO=m | ||
1713 | # CONFIG_USB_IDMOUSE is not set | ||
1714 | # CONFIG_USB_LD is not set | ||
1715 | CONFIG_USB_TEST=m | ||
1716 | |||
1717 | # | ||
1718 | # USB DSL modem support | ||
1719 | # | ||
1720 | CONFIG_USB_ATM=m | ||
1721 | CONFIG_USB_SPEEDTOUCH=m | ||
1722 | # CONFIG_USB_CXACRU is not set | ||
1723 | # CONFIG_USB_UEAGLEATM is not set | ||
1724 | # CONFIG_USB_XUSBATM is not set | ||
1725 | |||
1726 | # | ||
1727 | # USB Gadget Support | ||
1728 | # | ||
1729 | CONFIG_USB_GADGET=m | ||
1730 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1731 | CONFIG_USB_GADGET_SELECTED=y | ||
1732 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1733 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1734 | # CONFIG_USB_GADGET_GOKU is not set | ||
1735 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1736 | # CONFIG_USB_GADGET_OMAP is not set | ||
1737 | # CONFIG_USB_GADGET_AT91 is not set | ||
1738 | CONFIG_USB_GADGET_DUMMY_HCD=y | ||
1739 | CONFIG_USB_DUMMY_HCD=m | ||
1740 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1741 | CONFIG_USB_ZERO=m | ||
1742 | CONFIG_USB_ETH=m | ||
1743 | CONFIG_USB_ETH_RNDIS=y | ||
1744 | CONFIG_USB_GADGETFS=m | ||
1745 | CONFIG_USB_FILE_STORAGE=m | ||
1746 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1747 | CONFIG_USB_G_SERIAL=m | ||
1748 | |||
1749 | # | ||
1750 | # MMC/SD Card support | ||
1751 | # | ||
1752 | CONFIG_MMC=m | ||
1753 | # CONFIG_MMC_DEBUG is not set | ||
1754 | CONFIG_MMC_BLOCK=m | ||
1755 | |||
1756 | # | ||
1757 | # Real Time Clock | ||
1758 | # | ||
1759 | CONFIG_RTC_LIB=y | ||
1760 | # CONFIG_RTC_CLASS is not set | ||
1761 | |||
1762 | # | ||
1763 | # File systems | ||
1764 | # | ||
1765 | CONFIG_EXT2_FS=y | ||
1766 | CONFIG_EXT2_FS_XATTR=y | ||
1767 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
1768 | CONFIG_EXT2_FS_SECURITY=y | ||
1769 | # CONFIG_EXT2_FS_XIP is not set | ||
1770 | CONFIG_EXT3_FS=m | ||
1771 | CONFIG_EXT3_FS_XATTR=y | ||
1772 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
1773 | CONFIG_EXT3_FS_SECURITY=y | ||
1774 | CONFIG_JBD=m | ||
1775 | # CONFIG_JBD_DEBUG is not set | ||
1776 | CONFIG_FS_MBCACHE=y | ||
1777 | CONFIG_REISERFS_FS=m | ||
1778 | # CONFIG_REISERFS_CHECK is not set | ||
1779 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1780 | CONFIG_REISERFS_FS_XATTR=y | ||
1781 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
1782 | CONFIG_REISERFS_FS_SECURITY=y | ||
1783 | CONFIG_JFS_FS=m | ||
1784 | CONFIG_JFS_POSIX_ACL=y | ||
1785 | # CONFIG_JFS_SECURITY is not set | ||
1786 | # CONFIG_JFS_DEBUG is not set | ||
1787 | CONFIG_JFS_STATISTICS=y | ||
1788 | CONFIG_FS_POSIX_ACL=y | ||
1789 | CONFIG_XFS_FS=m | ||
1790 | CONFIG_XFS_EXPORT=y | ||
1791 | CONFIG_XFS_QUOTA=y | ||
1792 | CONFIG_XFS_SECURITY=y | ||
1793 | CONFIG_XFS_POSIX_ACL=y | ||
1794 | CONFIG_XFS_RT=y | ||
1795 | # CONFIG_OCFS2_FS is not set | ||
1796 | CONFIG_MINIX_FS=m | ||
1797 | CONFIG_ROMFS_FS=m | ||
1798 | CONFIG_INOTIFY=y | ||
1799 | CONFIG_QUOTA=y | ||
1800 | CONFIG_QFMT_V1=m | ||
1801 | CONFIG_QFMT_V2=m | ||
1802 | CONFIG_QUOTACTL=y | ||
1803 | CONFIG_DNOTIFY=y | ||
1804 | CONFIG_AUTOFS_FS=m | ||
1805 | CONFIG_AUTOFS4_FS=m | ||
1806 | # CONFIG_FUSE_FS is not set | ||
1807 | |||
1808 | # | ||
1809 | # CD-ROM/DVD Filesystems | ||
1810 | # | ||
1811 | CONFIG_ISO9660_FS=m | ||
1812 | CONFIG_JOLIET=y | ||
1813 | CONFIG_ZISOFS=y | ||
1814 | CONFIG_ZISOFS_FS=m | ||
1815 | CONFIG_UDF_FS=m | ||
1816 | CONFIG_UDF_NLS=y | ||
1817 | |||
1818 | # | ||
1819 | # DOS/FAT/NT Filesystems | ||
1820 | # | ||
1821 | CONFIG_FAT_FS=m | ||
1822 | CONFIG_MSDOS_FS=m | ||
1823 | CONFIG_VFAT_FS=m | ||
1824 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1825 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1826 | CONFIG_NTFS_FS=m | ||
1827 | # CONFIG_NTFS_DEBUG is not set | ||
1828 | # CONFIG_NTFS_RW is not set | ||
1829 | |||
1830 | # | ||
1831 | # Pseudo filesystems | ||
1832 | # | ||
1833 | CONFIG_PROC_FS=y | ||
1834 | CONFIG_SYSFS=y | ||
1835 | CONFIG_TMPFS=y | ||
1836 | # CONFIG_HUGETLB_PAGE is not set | ||
1837 | CONFIG_RAMFS=y | ||
1838 | # CONFIG_CONFIGFS_FS is not set | ||
1839 | |||
1840 | # | ||
1841 | # Miscellaneous filesystems | ||
1842 | # | ||
1843 | CONFIG_ADFS_FS=m | ||
1844 | # CONFIG_ADFS_FS_RW is not set | ||
1845 | CONFIG_AFFS_FS=m | ||
1846 | CONFIG_HFS_FS=m | ||
1847 | CONFIG_HFSPLUS_FS=m | ||
1848 | CONFIG_BEFS_FS=m | ||
1849 | # CONFIG_BEFS_DEBUG is not set | ||
1850 | CONFIG_BFS_FS=m | ||
1851 | CONFIG_EFS_FS=m | ||
1852 | CONFIG_JFFS_FS=m | ||
1853 | CONFIG_JFFS_FS_VERBOSE=0 | ||
1854 | CONFIG_JFFS_PROC_FS=y | ||
1855 | CONFIG_JFFS2_FS=m | ||
1856 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1857 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1858 | # CONFIG_JFFS2_SUMMARY is not set | ||
1859 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1860 | CONFIG_JFFS2_ZLIB=y | ||
1861 | CONFIG_JFFS2_RTIME=y | ||
1862 | # CONFIG_JFFS2_RUBIN is not set | ||
1863 | CONFIG_CRAMFS=y | ||
1864 | CONFIG_VXFS_FS=m | ||
1865 | CONFIG_HPFS_FS=m | ||
1866 | CONFIG_QNX4FS_FS=m | ||
1867 | CONFIG_SYSV_FS=m | ||
1868 | CONFIG_UFS_FS=m | ||
1869 | |||
1870 | # | ||
1871 | # Network File Systems | ||
1872 | # | ||
1873 | CONFIG_NFS_FS=m | ||
1874 | CONFIG_NFS_V3=y | ||
1875 | # CONFIG_NFS_V3_ACL is not set | ||
1876 | CONFIG_NFS_V4=y | ||
1877 | CONFIG_NFS_DIRECTIO=y | ||
1878 | CONFIG_NFSD=m | ||
1879 | CONFIG_NFSD_V3=y | ||
1880 | # CONFIG_NFSD_V3_ACL is not set | ||
1881 | CONFIG_NFSD_V4=y | ||
1882 | CONFIG_NFSD_TCP=y | ||
1883 | CONFIG_LOCKD=m | ||
1884 | CONFIG_LOCKD_V4=y | ||
1885 | CONFIG_EXPORTFS=m | ||
1886 | CONFIG_NFS_COMMON=y | ||
1887 | CONFIG_SUNRPC=m | ||
1888 | CONFIG_SUNRPC_GSS=m | ||
1889 | CONFIG_RPCSEC_GSS_KRB5=m | ||
1890 | CONFIG_RPCSEC_GSS_SPKM3=m | ||
1891 | CONFIG_SMB_FS=m | ||
1892 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1893 | CONFIG_CIFS=m | ||
1894 | # CONFIG_CIFS_STATS is not set | ||
1895 | # CONFIG_CIFS_XATTR is not set | ||
1896 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1897 | CONFIG_NCP_FS=m | ||
1898 | CONFIG_NCPFS_PACKET_SIGNING=y | ||
1899 | CONFIG_NCPFS_IOCTL_LOCKING=y | ||
1900 | CONFIG_NCPFS_STRONG=y | ||
1901 | CONFIG_NCPFS_NFS_NS=y | ||
1902 | CONFIG_NCPFS_OS2_NS=y | ||
1903 | # CONFIG_NCPFS_SMALLDOS is not set | ||
1904 | CONFIG_NCPFS_NLS=y | ||
1905 | CONFIG_NCPFS_EXTRAS=y | ||
1906 | CONFIG_CODA_FS=m | ||
1907 | # CONFIG_CODA_FS_OLD_API is not set | ||
1908 | CONFIG_AFS_FS=m | ||
1909 | CONFIG_RXRPC=m | ||
1910 | # CONFIG_9P_FS is not set | ||
1911 | |||
1912 | # | ||
1913 | # Partition Types | ||
1914 | # | ||
1915 | CONFIG_PARTITION_ADVANCED=y | ||
1916 | CONFIG_ACORN_PARTITION=y | ||
1917 | # CONFIG_ACORN_PARTITION_CUMANA is not set | ||
1918 | # CONFIG_ACORN_PARTITION_EESOX is not set | ||
1919 | CONFIG_ACORN_PARTITION_ICS=y | ||
1920 | # CONFIG_ACORN_PARTITION_ADFS is not set | ||
1921 | # CONFIG_ACORN_PARTITION_POWERTEC is not set | ||
1922 | CONFIG_ACORN_PARTITION_RISCIX=y | ||
1923 | CONFIG_OSF_PARTITION=y | ||
1924 | CONFIG_AMIGA_PARTITION=y | ||
1925 | CONFIG_ATARI_PARTITION=y | ||
1926 | CONFIG_MAC_PARTITION=y | ||
1927 | CONFIG_MSDOS_PARTITION=y | ||
1928 | CONFIG_BSD_DISKLABEL=y | ||
1929 | CONFIG_MINIX_SUBPARTITION=y | ||
1930 | CONFIG_SOLARIS_X86_PARTITION=y | ||
1931 | CONFIG_UNIXWARE_DISKLABEL=y | ||
1932 | CONFIG_LDM_PARTITION=y | ||
1933 | # CONFIG_LDM_DEBUG is not set | ||
1934 | CONFIG_SGI_PARTITION=y | ||
1935 | CONFIG_ULTRIX_PARTITION=y | ||
1936 | CONFIG_SUN_PARTITION=y | ||
1937 | # CONFIG_KARMA_PARTITION is not set | ||
1938 | # CONFIG_EFI_PARTITION is not set | ||
1939 | |||
1940 | # | ||
1941 | # Native Language Support | ||
1942 | # | ||
1943 | CONFIG_NLS=y | ||
1944 | CONFIG_NLS_DEFAULT="cp437" | ||
1945 | CONFIG_NLS_CODEPAGE_437=m | ||
1946 | CONFIG_NLS_CODEPAGE_737=m | ||
1947 | CONFIG_NLS_CODEPAGE_775=m | ||
1948 | CONFIG_NLS_CODEPAGE_850=m | ||
1949 | CONFIG_NLS_CODEPAGE_852=m | ||
1950 | CONFIG_NLS_CODEPAGE_855=m | ||
1951 | CONFIG_NLS_CODEPAGE_857=m | ||
1952 | CONFIG_NLS_CODEPAGE_860=m | ||
1953 | CONFIG_NLS_CODEPAGE_861=m | ||
1954 | CONFIG_NLS_CODEPAGE_862=m | ||
1955 | CONFIG_NLS_CODEPAGE_863=m | ||
1956 | CONFIG_NLS_CODEPAGE_864=m | ||
1957 | CONFIG_NLS_CODEPAGE_865=m | ||
1958 | CONFIG_NLS_CODEPAGE_866=m | ||
1959 | CONFIG_NLS_CODEPAGE_869=m | ||
1960 | CONFIG_NLS_CODEPAGE_936=m | ||
1961 | CONFIG_NLS_CODEPAGE_950=m | ||
1962 | CONFIG_NLS_CODEPAGE_932=m | ||
1963 | CONFIG_NLS_CODEPAGE_949=m | ||
1964 | CONFIG_NLS_CODEPAGE_874=m | ||
1965 | CONFIG_NLS_ISO8859_8=m | ||
1966 | CONFIG_NLS_CODEPAGE_1250=m | ||
1967 | CONFIG_NLS_CODEPAGE_1251=m | ||
1968 | CONFIG_NLS_ASCII=m | ||
1969 | CONFIG_NLS_ISO8859_1=m | ||
1970 | CONFIG_NLS_ISO8859_2=m | ||
1971 | CONFIG_NLS_ISO8859_3=m | ||
1972 | CONFIG_NLS_ISO8859_4=m | ||
1973 | CONFIG_NLS_ISO8859_5=m | ||
1974 | CONFIG_NLS_ISO8859_6=m | ||
1975 | CONFIG_NLS_ISO8859_7=m | ||
1976 | CONFIG_NLS_ISO8859_9=m | ||
1977 | CONFIG_NLS_ISO8859_13=m | ||
1978 | CONFIG_NLS_ISO8859_14=m | ||
1979 | CONFIG_NLS_ISO8859_15=m | ||
1980 | CONFIG_NLS_KOI8_R=m | ||
1981 | CONFIG_NLS_KOI8_U=m | ||
1982 | CONFIG_NLS_UTF8=m | ||
1983 | |||
1984 | # | ||
1985 | # Profiling support | ||
1986 | # | ||
1987 | CONFIG_PROFILING=y | ||
1988 | CONFIG_OPROFILE=m | ||
1989 | |||
1990 | # | ||
1991 | # Kernel hacking | ||
1992 | # | ||
1993 | # CONFIG_PRINTK_TIME is not set | ||
1994 | CONFIG_MAGIC_SYSRQ=y | ||
1995 | CONFIG_DEBUG_KERNEL=y | ||
1996 | CONFIG_LOG_BUF_SHIFT=14 | ||
1997 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1998 | # CONFIG_SCHEDSTATS is not set | ||
1999 | # CONFIG_DEBUG_SLAB is not set | ||
2000 | CONFIG_DEBUG_PREEMPT=y | ||
2001 | CONFIG_DEBUG_MUTEXES=y | ||
2002 | # CONFIG_DEBUG_SPINLOCK is not set | ||
2003 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
2004 | # CONFIG_DEBUG_KOBJECT is not set | ||
2005 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
2006 | CONFIG_DEBUG_INFO=y | ||
2007 | # CONFIG_DEBUG_FS is not set | ||
2008 | # CONFIG_DEBUG_VM is not set | ||
2009 | CONFIG_FRAME_POINTER=y | ||
2010 | # CONFIG_UNWIND_INFO is not set | ||
2011 | CONFIG_FORCED_INLINING=y | ||
2012 | # CONFIG_RCU_TORTURE_TEST is not set | ||
2013 | # CONFIG_DEBUG_USER is not set | ||
2014 | # CONFIG_DEBUG_WAITQ is not set | ||
2015 | # CONFIG_DEBUG_ERRORS is not set | ||
2016 | CONFIG_DEBUG_LL=y | ||
2017 | # CONFIG_DEBUG_ICEDCC is not set | ||
2018 | |||
2019 | # | ||
2020 | # Security options | ||
2021 | # | ||
2022 | # CONFIG_KEYS is not set | ||
2023 | CONFIG_SECURITY=y | ||
2024 | # CONFIG_SECURITY_NETWORK is not set | ||
2025 | CONFIG_SECURITY_CAPABILITIES=m | ||
2026 | CONFIG_SECURITY_ROOTPLUG=m | ||
2027 | CONFIG_SECURITY_SECLVL=m | ||
2028 | |||
2029 | # | ||
2030 | # Cryptographic options | ||
2031 | # | ||
2032 | CONFIG_CRYPTO=y | ||
2033 | CONFIG_CRYPTO_HMAC=y | ||
2034 | CONFIG_CRYPTO_NULL=m | ||
2035 | CONFIG_CRYPTO_MD4=m | ||
2036 | CONFIG_CRYPTO_MD5=y | ||
2037 | CONFIG_CRYPTO_SHA1=m | ||
2038 | CONFIG_CRYPTO_SHA256=m | ||
2039 | CONFIG_CRYPTO_SHA512=m | ||
2040 | CONFIG_CRYPTO_WP512=m | ||
2041 | # CONFIG_CRYPTO_TGR192 is not set | ||
2042 | CONFIG_CRYPTO_DES=m | ||
2043 | CONFIG_CRYPTO_BLOWFISH=m | ||
2044 | CONFIG_CRYPTO_TWOFISH=m | ||
2045 | CONFIG_CRYPTO_SERPENT=m | ||
2046 | CONFIG_CRYPTO_AES=m | ||
2047 | CONFIG_CRYPTO_CAST5=m | ||
2048 | CONFIG_CRYPTO_CAST6=m | ||
2049 | CONFIG_CRYPTO_TEA=m | ||
2050 | CONFIG_CRYPTO_ARC4=m | ||
2051 | CONFIG_CRYPTO_KHAZAD=m | ||
2052 | CONFIG_CRYPTO_ANUBIS=m | ||
2053 | CONFIG_CRYPTO_DEFLATE=m | ||
2054 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
2055 | CONFIG_CRYPTO_CRC32C=m | ||
2056 | CONFIG_CRYPTO_TEST=m | ||
2057 | |||
2058 | # | ||
2059 | # Hardware crypto devices | ||
2060 | # | ||
2061 | |||
2062 | # | ||
2063 | # Library routines | ||
2064 | # | ||
2065 | CONFIG_CRC_CCITT=m | ||
2066 | CONFIG_CRC16=m | ||
2067 | CONFIG_CRC32=y | ||
2068 | CONFIG_LIBCRC32C=m | ||
2069 | CONFIG_ZLIB_INFLATE=y | ||
2070 | CONFIG_ZLIB_DEFLATE=m | ||
2071 | CONFIG_REED_SOLOMON=m | ||
2072 | CONFIG_REED_SOLOMON_DEC16=y | ||
diff --git a/arch/arm/configs/s3c2410_defconfig b/arch/arm/configs/s3c2410_defconfig index 3cec29d56c8e..e17661380096 100644 --- a/arch/arm/configs/s3c2410_defconfig +++ b/arch/arm/configs/s3c2410_defconfig | |||
@@ -1,12 +1,14 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.16 | 3 | # Linux kernel version: 2.6.17 |
4 | # Mon Mar 20 20:36:02 2006 | 4 | # Tue Jun 20 18:57:01 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
9 | CONFIG_GENERIC_HWEIGHT=y | ||
9 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
10 | 12 | ||
11 | # | 13 | # |
12 | # Code maturity level options | 14 | # Code maturity level options |
@@ -27,6 +29,7 @@ CONFIG_SYSVIPC=y | |||
27 | CONFIG_SYSCTL=y | 29 | CONFIG_SYSCTL=y |
28 | # CONFIG_AUDIT is not set | 30 | # CONFIG_AUDIT is not set |
29 | # CONFIG_IKCONFIG is not set | 31 | # CONFIG_IKCONFIG is not set |
32 | # CONFIG_RELAY is not set | ||
30 | CONFIG_INITRAMFS_SOURCE="" | 33 | CONFIG_INITRAMFS_SOURCE="" |
31 | CONFIG_UID16=y | 34 | CONFIG_UID16=y |
32 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 35 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
@@ -42,10 +45,6 @@ CONFIG_BASE_FULL=y | |||
42 | CONFIG_FUTEX=y | 45 | CONFIG_FUTEX=y |
43 | CONFIG_EPOLL=y | 46 | CONFIG_EPOLL=y |
44 | CONFIG_SHMEM=y | 47 | CONFIG_SHMEM=y |
45 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
46 | CONFIG_CC_ALIGN_LABELS=0 | ||
47 | CONFIG_CC_ALIGN_LOOPS=0 | ||
48 | CONFIG_CC_ALIGN_JUMPS=0 | ||
49 | CONFIG_SLAB=y | 48 | CONFIG_SLAB=y |
50 | # CONFIG_TINY_SHMEM is not set | 49 | # CONFIG_TINY_SHMEM is not set |
51 | CONFIG_BASE_SMALL=0 | 50 | CONFIG_BASE_SMALL=0 |
@@ -57,7 +56,6 @@ CONFIG_OBSOLETE_INTERMODULE=y | |||
57 | # | 56 | # |
58 | CONFIG_MODULES=y | 57 | CONFIG_MODULES=y |
59 | # CONFIG_MODULE_UNLOAD is not set | 58 | # CONFIG_MODULE_UNLOAD is not set |
60 | CONFIG_OBSOLETE_MODPARM=y | ||
61 | # CONFIG_MODVERSIONS is not set | 59 | # CONFIG_MODVERSIONS is not set |
62 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 60 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
63 | CONFIG_KMOD=y | 61 | CONFIG_KMOD=y |
@@ -65,6 +63,7 @@ CONFIG_KMOD=y | |||
65 | # | 63 | # |
66 | # Block layer | 64 | # Block layer |
67 | # | 65 | # |
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
68 | 67 | ||
69 | # | 68 | # |
70 | # IO Schedulers | 69 | # IO Schedulers |
@@ -92,6 +91,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
92 | # CONFIG_ARCH_IOP3XX is not set | 91 | # CONFIG_ARCH_IOP3XX is not set |
93 | # CONFIG_ARCH_IXP4XX is not set | 92 | # CONFIG_ARCH_IXP4XX is not set |
94 | # CONFIG_ARCH_IXP2000 is not set | 93 | # CONFIG_ARCH_IXP2000 is not set |
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | 95 | # CONFIG_ARCH_L7200 is not set |
96 | # CONFIG_ARCH_PXA is not set | 96 | # CONFIG_ARCH_PXA is not set |
97 | # CONFIG_ARCH_RPC is not set | 97 | # CONFIG_ARCH_RPC is not set |
@@ -106,6 +106,8 @@ CONFIG_ARCH_S3C2410=y | |||
106 | # CONFIG_ARCH_H720X is not set | 106 | # CONFIG_ARCH_H720X is not set |
107 | # CONFIG_ARCH_AAEC2000 is not set | 107 | # CONFIG_ARCH_AAEC2000 is not set |
108 | # CONFIG_ARCH_AT91RM9200 is not set | 108 | # CONFIG_ARCH_AT91RM9200 is not set |
109 | # CONFIG_ARCH_PNX4008 is not set | ||
110 | # CONFIG_ARCH_NETX is not set | ||
109 | 111 | ||
110 | # | 112 | # |
111 | # S3C24XX Implementations | 113 | # S3C24XX Implementations |
@@ -116,14 +118,19 @@ CONFIG_ARCH_BAST=y | |||
116 | CONFIG_BAST_PC104_IRQ=y | 118 | CONFIG_BAST_PC104_IRQ=y |
117 | CONFIG_ARCH_H1940=y | 119 | CONFIG_ARCH_H1940=y |
118 | CONFIG_MACH_N30=y | 120 | CONFIG_MACH_N30=y |
121 | CONFIG_MACH_SMDK=y | ||
119 | CONFIG_ARCH_SMDK2410=y | 122 | CONFIG_ARCH_SMDK2410=y |
120 | CONFIG_ARCH_S3C2440=y | 123 | CONFIG_ARCH_S3C2440=y |
124 | CONFIG_SMDK2440_CPU2440=y | ||
125 | CONFIG_SMDK2440_CPU2442=y | ||
121 | CONFIG_MACH_VR1000=y | 126 | CONFIG_MACH_VR1000=y |
122 | CONFIG_MACH_RX3715=y | 127 | CONFIG_MACH_RX3715=y |
123 | CONFIG_MACH_OTOM=y | 128 | CONFIG_MACH_OTOM=y |
124 | CONFIG_MACH_NEXCODER_2440=y | 129 | CONFIG_MACH_NEXCODER_2440=y |
125 | CONFIG_CPU_S3C2410=y | 130 | CONFIG_CPU_S3C2410=y |
131 | CONFIG_CPU_S3C244X=y | ||
126 | CONFIG_CPU_S3C2440=y | 132 | CONFIG_CPU_S3C2440=y |
133 | CONFIG_CPU_S3C2442=y | ||
127 | 134 | ||
128 | # | 135 | # |
129 | # S3C2410 Boot | 136 | # S3C2410 Boot |
@@ -251,12 +258,15 @@ CONFIG_IP_PNP_BOOTP=y | |||
251 | # CONFIG_INET_AH is not set | 258 | # CONFIG_INET_AH is not set |
252 | # CONFIG_INET_ESP is not set | 259 | # CONFIG_INET_ESP is not set |
253 | # CONFIG_INET_IPCOMP is not set | 260 | # CONFIG_INET_IPCOMP is not set |
261 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
254 | # CONFIG_INET_TUNNEL is not set | 262 | # CONFIG_INET_TUNNEL is not set |
255 | CONFIG_INET_DIAG=y | 263 | CONFIG_INET_DIAG=y |
256 | CONFIG_INET_TCP_DIAG=y | 264 | CONFIG_INET_TCP_DIAG=y |
257 | # CONFIG_TCP_CONG_ADVANCED is not set | 265 | # CONFIG_TCP_CONG_ADVANCED is not set |
258 | CONFIG_TCP_CONG_BIC=y | 266 | CONFIG_TCP_CONG_BIC=y |
259 | # CONFIG_IPV6 is not set | 267 | # CONFIG_IPV6 is not set |
268 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
269 | # CONFIG_INET6_TUNNEL is not set | ||
260 | # CONFIG_NETFILTER is not set | 270 | # CONFIG_NETFILTER is not set |
261 | 271 | ||
262 | # | 272 | # |
@@ -360,7 +370,6 @@ CONFIG_MTD_CFI_I2=y | |||
360 | # CONFIG_MTD_CFI_I8 is not set | 370 | # CONFIG_MTD_CFI_I8 is not set |
361 | CONFIG_MTD_CFI_INTELEXT=y | 371 | CONFIG_MTD_CFI_INTELEXT=y |
362 | CONFIG_MTD_CFI_AMDSTD=y | 372 | CONFIG_MTD_CFI_AMDSTD=y |
363 | CONFIG_MTD_CFI_AMDSTD_RETRY=0 | ||
364 | # CONFIG_MTD_CFI_STAA is not set | 373 | # CONFIG_MTD_CFI_STAA is not set |
365 | CONFIG_MTD_CFI_UTIL=y | 374 | CONFIG_MTD_CFI_UTIL=y |
366 | # CONFIG_MTD_RAM is not set | 375 | # CONFIG_MTD_RAM is not set |
@@ -385,7 +394,6 @@ CONFIG_MTD_BAST_MAXSIZE=4 | |||
385 | # CONFIG_MTD_SLRAM is not set | 394 | # CONFIG_MTD_SLRAM is not set |
386 | # CONFIG_MTD_PHRAM is not set | 395 | # CONFIG_MTD_PHRAM is not set |
387 | # CONFIG_MTD_MTDRAM is not set | 396 | # CONFIG_MTD_MTDRAM is not set |
388 | # CONFIG_MTD_BLKMTD is not set | ||
389 | # CONFIG_MTD_BLOCK2MTD is not set | 397 | # CONFIG_MTD_BLOCK2MTD is not set |
390 | 398 | ||
391 | # | 399 | # |
@@ -694,7 +702,6 @@ CONFIG_S3C2410_WATCHDOG=y | |||
694 | # | 702 | # |
695 | # CONFIG_USBPCWATCHDOG is not set | 703 | # CONFIG_USBPCWATCHDOG is not set |
696 | # CONFIG_NVRAM is not set | 704 | # CONFIG_NVRAM is not set |
697 | # CONFIG_RTC is not set | ||
698 | CONFIG_S3C2410_RTC=y | 705 | CONFIG_S3C2410_RTC=y |
699 | # CONFIG_DTLK is not set | 706 | # CONFIG_DTLK is not set |
700 | # CONFIG_R3964 is not set | 707 | # CONFIG_R3964 is not set |
@@ -743,9 +750,7 @@ CONFIG_SENSORS_EEPROM=m | |||
743 | # CONFIG_SENSORS_PCF8574 is not set | 750 | # CONFIG_SENSORS_PCF8574 is not set |
744 | # CONFIG_SENSORS_PCA9539 is not set | 751 | # CONFIG_SENSORS_PCA9539 is not set |
745 | # CONFIG_SENSORS_PCF8591 is not set | 752 | # CONFIG_SENSORS_PCF8591 is not set |
746 | # CONFIG_SENSORS_RTC8564 is not set | ||
747 | # CONFIG_SENSORS_MAX6875 is not set | 753 | # CONFIG_SENSORS_MAX6875 is not set |
748 | # CONFIG_RTC_X1205_I2C is not set | ||
749 | # CONFIG_I2C_DEBUG_CORE is not set | 754 | # CONFIG_I2C_DEBUG_CORE is not set |
750 | # CONFIG_I2C_DEBUG_ALGO is not set | 755 | # CONFIG_I2C_DEBUG_ALGO is not set |
751 | # CONFIG_I2C_DEBUG_BUS is not set | 756 | # CONFIG_I2C_DEBUG_BUS is not set |
@@ -807,18 +812,29 @@ CONFIG_SENSORS_LM85=m | |||
807 | # | 812 | # |
808 | 813 | ||
809 | # | 814 | # |
810 | # Multimedia Capabilities Port drivers | 815 | # LED devices |
816 | # | ||
817 | # CONFIG_NEW_LEDS is not set | ||
818 | |||
819 | # | ||
820 | # LED drivers | ||
821 | # | ||
822 | |||
823 | # | ||
824 | # LED Triggers | ||
811 | # | 825 | # |
812 | 826 | ||
813 | # | 827 | # |
814 | # Multimedia devices | 828 | # Multimedia devices |
815 | # | 829 | # |
816 | # CONFIG_VIDEO_DEV is not set | 830 | # CONFIG_VIDEO_DEV is not set |
831 | CONFIG_VIDEO_V4L2=y | ||
817 | 832 | ||
818 | # | 833 | # |
819 | # Digital Video Broadcasting Devices | 834 | # Digital Video Broadcasting Devices |
820 | # | 835 | # |
821 | # CONFIG_DVB is not set | 836 | # CONFIG_DVB is not set |
837 | # CONFIG_USB_DABUSB is not set | ||
822 | 838 | ||
823 | # | 839 | # |
824 | # Graphics support | 840 | # Graphics support |
@@ -828,6 +844,7 @@ CONFIG_FB_CFB_FILLRECT=y | |||
828 | CONFIG_FB_CFB_COPYAREA=y | 844 | CONFIG_FB_CFB_COPYAREA=y |
829 | CONFIG_FB_CFB_IMAGEBLIT=y | 845 | CONFIG_FB_CFB_IMAGEBLIT=y |
830 | # CONFIG_FB_MACMODES is not set | 846 | # CONFIG_FB_MACMODES is not set |
847 | CONFIG_FB_FIRMWARE_EDID=y | ||
831 | CONFIG_FB_MODE_HELPERS=y | 848 | CONFIG_FB_MODE_HELPERS=y |
832 | # CONFIG_FB_TILEBLITTING is not set | 849 | # CONFIG_FB_TILEBLITTING is not set |
833 | # CONFIG_FB_S1D13XXX is not set | 850 | # CONFIG_FB_S1D13XXX is not set |
@@ -863,6 +880,7 @@ CONFIG_FONT_8x16=y | |||
863 | # | 880 | # |
864 | CONFIG_USB_ARCH_HAS_HCD=y | 881 | CONFIG_USB_ARCH_HAS_HCD=y |
865 | CONFIG_USB_ARCH_HAS_OHCI=y | 882 | CONFIG_USB_ARCH_HAS_OHCI=y |
883 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
866 | CONFIG_USB=y | 884 | CONFIG_USB=y |
867 | # CONFIG_USB_DEBUG is not set | 885 | # CONFIG_USB_DEBUG is not set |
868 | 886 | ||
@@ -915,9 +933,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
915 | # CONFIG_USB_ACECAD is not set | 933 | # CONFIG_USB_ACECAD is not set |
916 | # CONFIG_USB_KBTAB is not set | 934 | # CONFIG_USB_KBTAB is not set |
917 | # CONFIG_USB_POWERMATE is not set | 935 | # CONFIG_USB_POWERMATE is not set |
918 | # CONFIG_USB_MTOUCH is not set | 936 | # CONFIG_USB_TOUCHSCREEN is not set |
919 | # CONFIG_USB_ITMTOUCH is not set | ||
920 | # CONFIG_USB_EGALAX is not set | ||
921 | # CONFIG_USB_YEALINK is not set | 937 | # CONFIG_USB_YEALINK is not set |
922 | # CONFIG_USB_XPAD is not set | 938 | # CONFIG_USB_XPAD is not set |
923 | # CONFIG_USB_ATI_REMOTE is not set | 939 | # CONFIG_USB_ATI_REMOTE is not set |
@@ -931,15 +947,6 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
931 | # CONFIG_USB_MDC800 is not set | 947 | # CONFIG_USB_MDC800 is not set |
932 | 948 | ||
933 | # | 949 | # |
934 | # USB Multimedia devices | ||
935 | # | ||
936 | # CONFIG_USB_DABUSB is not set | ||
937 | |||
938 | # | ||
939 | # Video4Linux support is needed for USB Multimedia device support | ||
940 | # | ||
941 | |||
942 | # | ||
943 | # USB Network Adapters | 950 | # USB Network Adapters |
944 | # | 951 | # |
945 | # CONFIG_USB_CATC is not set | 952 | # CONFIG_USB_CATC is not set |
@@ -984,17 +991,6 @@ CONFIG_USB_MON=y | |||
984 | # USB Gadget Support | 991 | # USB Gadget Support |
985 | # | 992 | # |
986 | # CONFIG_USB_GADGET is not set | 993 | # CONFIG_USB_GADGET is not set |
987 | # CONFIG_USB_GADGET_NET2280 is not set | ||
988 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
989 | # CONFIG_USB_GADGET_GOKU is not set | ||
990 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
991 | # CONFIG_USB_GADGET_OMAP is not set | ||
992 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
993 | # CONFIG_USB_ZERO is not set | ||
994 | # CONFIG_USB_ETH is not set | ||
995 | # CONFIG_USB_GADGETFS is not set | ||
996 | # CONFIG_USB_FILE_STORAGE is not set | ||
997 | # CONFIG_USB_G_SERIAL is not set | ||
998 | 994 | ||
999 | # | 995 | # |
1000 | # MMC/SD Card support | 996 | # MMC/SD Card support |
@@ -1002,6 +998,12 @@ CONFIG_USB_MON=y | |||
1002 | # CONFIG_MMC is not set | 998 | # CONFIG_MMC is not set |
1003 | 999 | ||
1004 | # | 1000 | # |
1001 | # Real Time Clock | ||
1002 | # | ||
1003 | CONFIG_RTC_LIB=y | ||
1004 | # CONFIG_RTC_CLASS is not set | ||
1005 | |||
1006 | # | ||
1005 | # File systems | 1007 | # File systems |
1006 | # | 1008 | # |
1007 | CONFIG_EXT2_FS=y | 1009 | CONFIG_EXT2_FS=y |
@@ -1052,7 +1054,6 @@ CONFIG_SYSFS=y | |||
1052 | # CONFIG_TMPFS is not set | 1054 | # CONFIG_TMPFS is not set |
1053 | # CONFIG_HUGETLB_PAGE is not set | 1055 | # CONFIG_HUGETLB_PAGE is not set |
1054 | CONFIG_RAMFS=y | 1056 | CONFIG_RAMFS=y |
1055 | # CONFIG_RELAYFS_FS is not set | ||
1056 | # CONFIG_CONFIGFS_FS is not set | 1057 | # CONFIG_CONFIGFS_FS is not set |
1057 | 1058 | ||
1058 | # | 1059 | # |
@@ -1193,6 +1194,7 @@ CONFIG_DEBUG_INFO=y | |||
1193 | # CONFIG_DEBUG_FS is not set | 1194 | # CONFIG_DEBUG_FS is not set |
1194 | # CONFIG_DEBUG_VM is not set | 1195 | # CONFIG_DEBUG_VM is not set |
1195 | CONFIG_FRAME_POINTER=y | 1196 | CONFIG_FRAME_POINTER=y |
1197 | # CONFIG_UNWIND_INFO is not set | ||
1196 | CONFIG_FORCED_INLINING=y | 1198 | CONFIG_FORCED_INLINING=y |
1197 | # CONFIG_RCU_TORTURE_TEST is not set | 1199 | # CONFIG_RCU_TORTURE_TEST is not set |
1198 | CONFIG_DEBUG_USER=y | 1200 | CONFIG_DEBUG_USER=y |
diff --git a/arch/arm/configs/versatile_defconfig b/arch/arm/configs/versatile_defconfig index 2687a225aa6a..96b7a7762426 100644 --- a/arch/arm/configs/versatile_defconfig +++ b/arch/arm/configs/versatile_defconfig | |||
@@ -1,50 +1,55 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.12-rc1-bk2 | 3 | # Linux kernel version: 2.6.17-rc3 |
4 | # Mon Mar 28 00:20:50 2005 | 4 | # Mon May 8 20:15:57 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_GENERIC_IOMAP=y | 11 | CONFIG_VECTORS_BASE=0xffff0000 |
12 | 12 | ||
13 | # | 13 | # |
14 | # Code maturity level options | 14 | # Code maturity level options |
15 | # | 15 | # |
16 | CONFIG_EXPERIMENTAL=y | 16 | CONFIG_EXPERIMENTAL=y |
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | 17 | CONFIG_BROKEN_ON_SMP=y |
18 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
19 | 19 | ||
20 | # | 20 | # |
21 | # General setup | 21 | # General setup |
22 | # | 22 | # |
23 | CONFIG_LOCALVERSION="" | 23 | CONFIG_LOCALVERSION="" |
24 | # CONFIG_LOCALVERSION_AUTO is not set | ||
24 | CONFIG_SWAP=y | 25 | CONFIG_SWAP=y |
25 | CONFIG_SYSVIPC=y | 26 | CONFIG_SYSVIPC=y |
26 | # CONFIG_POSIX_MQUEUE is not set | 27 | # CONFIG_POSIX_MQUEUE is not set |
27 | # CONFIG_BSD_PROCESS_ACCT is not set | 28 | # CONFIG_BSD_PROCESS_ACCT is not set |
28 | CONFIG_SYSCTL=y | 29 | CONFIG_SYSCTL=y |
29 | # CONFIG_AUDIT is not set | 30 | # CONFIG_AUDIT is not set |
30 | CONFIG_HOTPLUG=y | ||
31 | CONFIG_KOBJECT_UEVENT=y | ||
32 | # CONFIG_IKCONFIG is not set | 31 | # CONFIG_IKCONFIG is not set |
32 | # CONFIG_RELAY is not set | ||
33 | CONFIG_INITRAMFS_SOURCE="" | ||
34 | CONFIG_UID16=y | ||
35 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
33 | # CONFIG_EMBEDDED is not set | 36 | # CONFIG_EMBEDDED is not set |
34 | CONFIG_KALLSYMS=y | 37 | CONFIG_KALLSYMS=y |
35 | # CONFIG_KALLSYMS_ALL is not set | 38 | # CONFIG_KALLSYMS_ALL is not set |
36 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
40 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | ||
42 | CONFIG_BUG=y | ||
43 | CONFIG_ELF_CORE=y | ||
37 | CONFIG_BASE_FULL=y | 44 | CONFIG_BASE_FULL=y |
38 | CONFIG_FUTEX=y | 45 | CONFIG_FUTEX=y |
39 | CONFIG_EPOLL=y | 46 | CONFIG_EPOLL=y |
40 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
41 | CONFIG_SHMEM=y | 47 | CONFIG_SHMEM=y |
42 | CONFIG_CC_ALIGN_FUNCTIONS=0 | 48 | CONFIG_SLAB=y |
43 | CONFIG_CC_ALIGN_LABELS=0 | ||
44 | CONFIG_CC_ALIGN_LOOPS=0 | ||
45 | CONFIG_CC_ALIGN_JUMPS=0 | ||
46 | # CONFIG_TINY_SHMEM is not set | 49 | # CONFIG_TINY_SHMEM is not set |
47 | CONFIG_BASE_SMALL=0 | 50 | CONFIG_BASE_SMALL=0 |
51 | # CONFIG_SLOB is not set | ||
52 | CONFIG_OBSOLETE_INTERMODULE=y | ||
48 | 53 | ||
49 | # | 54 | # |
50 | # Loadable module support | 55 | # Loadable module support |
@@ -52,23 +57,42 @@ CONFIG_BASE_SMALL=0 | |||
52 | CONFIG_MODULES=y | 57 | CONFIG_MODULES=y |
53 | CONFIG_MODULE_UNLOAD=y | 58 | CONFIG_MODULE_UNLOAD=y |
54 | # CONFIG_MODULE_FORCE_UNLOAD is not set | 59 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
55 | CONFIG_OBSOLETE_MODPARM=y | ||
56 | # CONFIG_MODVERSIONS is not set | 60 | # CONFIG_MODVERSIONS is not set |
57 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 61 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
58 | CONFIG_KMOD=y | 62 | CONFIG_KMOD=y |
59 | 63 | ||
60 | # | 64 | # |
65 | # Block layer | ||
66 | # | ||
67 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
68 | |||
69 | # | ||
70 | # IO Schedulers | ||
71 | # | ||
72 | CONFIG_IOSCHED_NOOP=y | ||
73 | CONFIG_IOSCHED_AS=y | ||
74 | CONFIG_IOSCHED_DEADLINE=y | ||
75 | CONFIG_IOSCHED_CFQ=y | ||
76 | CONFIG_DEFAULT_AS=y | ||
77 | # CONFIG_DEFAULT_DEADLINE is not set | ||
78 | # CONFIG_DEFAULT_CFQ is not set | ||
79 | # CONFIG_DEFAULT_NOOP is not set | ||
80 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
81 | |||
82 | # | ||
61 | # System Type | 83 | # System Type |
62 | # | 84 | # |
63 | # CONFIG_ARCH_CLPS7500 is not set | 85 | # CONFIG_ARCH_CLPS7500 is not set |
64 | # CONFIG_ARCH_CLPS711X is not set | 86 | # CONFIG_ARCH_CLPS711X is not set |
65 | # CONFIG_ARCH_CO285 is not set | 87 | # CONFIG_ARCH_CO285 is not set |
66 | # CONFIG_ARCH_EBSA110 is not set | 88 | # CONFIG_ARCH_EBSA110 is not set |
89 | # CONFIG_ARCH_EP93XX is not set | ||
67 | # CONFIG_ARCH_FOOTBRIDGE is not set | 90 | # CONFIG_ARCH_FOOTBRIDGE is not set |
68 | # CONFIG_ARCH_INTEGRATOR is not set | 91 | # CONFIG_ARCH_INTEGRATOR is not set |
69 | # CONFIG_ARCH_IOP3XX is not set | 92 | # CONFIG_ARCH_IOP3XX is not set |
70 | # CONFIG_ARCH_IXP4XX is not set | 93 | # CONFIG_ARCH_IXP4XX is not set |
71 | # CONFIG_ARCH_IXP2000 is not set | 94 | # CONFIG_ARCH_IXP2000 is not set |
95 | # CONFIG_ARCH_IXP23XX is not set | ||
72 | # CONFIG_ARCH_L7200 is not set | 96 | # CONFIG_ARCH_L7200 is not set |
73 | # CONFIG_ARCH_PXA is not set | 97 | # CONFIG_ARCH_PXA is not set |
74 | # CONFIG_ARCH_RPC is not set | 98 | # CONFIG_ARCH_RPC is not set |
@@ -78,14 +102,17 @@ CONFIG_KMOD=y | |||
78 | # CONFIG_ARCH_LH7A40X is not set | 102 | # CONFIG_ARCH_LH7A40X is not set |
79 | # CONFIG_ARCH_OMAP is not set | 103 | # CONFIG_ARCH_OMAP is not set |
80 | CONFIG_ARCH_VERSATILE=y | 104 | CONFIG_ARCH_VERSATILE=y |
105 | # CONFIG_ARCH_REALVIEW is not set | ||
81 | # CONFIG_ARCH_IMX is not set | 106 | # CONFIG_ARCH_IMX is not set |
82 | # CONFIG_ARCH_H720X is not set | 107 | # CONFIG_ARCH_H720X is not set |
108 | # CONFIG_ARCH_AAEC2000 is not set | ||
109 | # CONFIG_ARCH_AT91RM9200 is not set | ||
83 | 110 | ||
84 | # | 111 | # |
85 | # Versatile platform type | 112 | # Versatile platform type |
86 | # | 113 | # |
87 | CONFIG_ARCH_VERSATILE_PB=y | 114 | CONFIG_ARCH_VERSATILE_PB=y |
88 | # CONFIG_MACH_VERSATILE_AB is not set | 115 | CONFIG_MACH_VERSATILE_AB=y |
89 | 116 | ||
90 | # | 117 | # |
91 | # Processor Type | 118 | # Processor Type |
@@ -106,12 +133,14 @@ CONFIG_ARM_THUMB=y | |||
106 | # CONFIG_CPU_DCACHE_DISABLE is not set | 133 | # CONFIG_CPU_DCACHE_DISABLE is not set |
107 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | 134 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set |
108 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | 135 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set |
136 | CONFIG_ARM_VIC=y | ||
109 | CONFIG_ICST307=y | 137 | CONFIG_ICST307=y |
110 | 138 | ||
111 | # | 139 | # |
112 | # Bus support | 140 | # Bus support |
113 | # | 141 | # |
114 | CONFIG_ARM_AMBA=y | 142 | CONFIG_ARM_AMBA=y |
143 | # CONFIG_PCI is not set | ||
115 | 144 | ||
116 | # | 145 | # |
117 | # PCCARD (PCMCIA/CardBus) support | 146 | # PCCARD (PCMCIA/CardBus) support |
@@ -122,6 +151,18 @@ CONFIG_ARM_AMBA=y | |||
122 | # Kernel Features | 151 | # Kernel Features |
123 | # | 152 | # |
124 | # CONFIG_PREEMPT is not set | 153 | # CONFIG_PREEMPT is not set |
154 | # CONFIG_NO_IDLE_HZ is not set | ||
155 | CONFIG_HZ=100 | ||
156 | # CONFIG_AEABI is not set | ||
157 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
158 | CONFIG_SELECT_MEMORY_MODEL=y | ||
159 | CONFIG_FLATMEM_MANUAL=y | ||
160 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
161 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
162 | CONFIG_FLATMEM=y | ||
163 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
164 | # CONFIG_SPARSEMEM_STATIC is not set | ||
165 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
125 | CONFIG_LEDS=y | 166 | CONFIG_LEDS=y |
126 | CONFIG_LEDS_TIMER=y | 167 | CONFIG_LEDS_TIMER=y |
127 | CONFIG_LEDS_CPU=y | 168 | CONFIG_LEDS_CPU=y |
@@ -145,7 +186,7 @@ CONFIG_CMDLINE="root=1f03 mem=32M" | |||
145 | CONFIG_FPE_NWFPE=y | 186 | CONFIG_FPE_NWFPE=y |
146 | # CONFIG_FPE_NWFPE_XP is not set | 187 | # CONFIG_FPE_NWFPE_XP is not set |
147 | # CONFIG_FPE_FASTFPE is not set | 188 | # CONFIG_FPE_FASTFPE is not set |
148 | # CONFIG_VFP is not set | 189 | CONFIG_VFP=y |
149 | 190 | ||
150 | # | 191 | # |
151 | # Userspace binary formats | 192 | # Userspace binary formats |
@@ -159,9 +200,92 @@ CONFIG_BINFMT_ELF=y | |||
159 | # Power management options | 200 | # Power management options |
160 | # | 201 | # |
161 | CONFIG_PM=y | 202 | CONFIG_PM=y |
203 | CONFIG_PM_LEGACY=y | ||
204 | # CONFIG_PM_DEBUG is not set | ||
162 | # CONFIG_APM is not set | 205 | # CONFIG_APM is not set |
163 | 206 | ||
164 | # | 207 | # |
208 | # Networking | ||
209 | # | ||
210 | CONFIG_NET=y | ||
211 | |||
212 | # | ||
213 | # Networking options | ||
214 | # | ||
215 | # CONFIG_NETDEBUG is not set | ||
216 | CONFIG_PACKET=y | ||
217 | CONFIG_PACKET_MMAP=y | ||
218 | CONFIG_UNIX=y | ||
219 | # CONFIG_NET_KEY is not set | ||
220 | CONFIG_INET=y | ||
221 | CONFIG_IP_MULTICAST=y | ||
222 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
223 | CONFIG_IP_FIB_HASH=y | ||
224 | CONFIG_IP_PNP=y | ||
225 | # CONFIG_IP_PNP_DHCP is not set | ||
226 | CONFIG_IP_PNP_BOOTP=y | ||
227 | # CONFIG_IP_PNP_RARP is not set | ||
228 | # CONFIG_NET_IPIP is not set | ||
229 | # CONFIG_NET_IPGRE is not set | ||
230 | # CONFIG_IP_MROUTE is not set | ||
231 | # CONFIG_ARPD is not set | ||
232 | # CONFIG_SYN_COOKIES is not set | ||
233 | # CONFIG_INET_AH is not set | ||
234 | # CONFIG_INET_ESP is not set | ||
235 | # CONFIG_INET_IPCOMP is not set | ||
236 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
237 | # CONFIG_INET_TUNNEL is not set | ||
238 | # CONFIG_INET_DIAG is not set | ||
239 | CONFIG_INET_TCP_DIAG=y | ||
240 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
241 | CONFIG_TCP_CONG_BIC=y | ||
242 | # CONFIG_IPV6 is not set | ||
243 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
244 | # CONFIG_INET6_TUNNEL is not set | ||
245 | # CONFIG_NETFILTER is not set | ||
246 | |||
247 | # | ||
248 | # DCCP Configuration (EXPERIMENTAL) | ||
249 | # | ||
250 | # CONFIG_IP_DCCP is not set | ||
251 | |||
252 | # | ||
253 | # SCTP Configuration (EXPERIMENTAL) | ||
254 | # | ||
255 | # CONFIG_IP_SCTP is not set | ||
256 | |||
257 | # | ||
258 | # TIPC Configuration (EXPERIMENTAL) | ||
259 | # | ||
260 | # CONFIG_TIPC is not set | ||
261 | # CONFIG_ATM is not set | ||
262 | # CONFIG_BRIDGE is not set | ||
263 | # CONFIG_VLAN_8021Q is not set | ||
264 | # CONFIG_DECNET is not set | ||
265 | # CONFIG_LLC2 is not set | ||
266 | # CONFIG_IPX is not set | ||
267 | # CONFIG_ATALK is not set | ||
268 | # CONFIG_X25 is not set | ||
269 | # CONFIG_LAPB is not set | ||
270 | # CONFIG_NET_DIVERT is not set | ||
271 | # CONFIG_ECONET is not set | ||
272 | # CONFIG_WAN_ROUTER is not set | ||
273 | |||
274 | # | ||
275 | # QoS and/or fair queueing | ||
276 | # | ||
277 | # CONFIG_NET_SCHED is not set | ||
278 | |||
279 | # | ||
280 | # Network testing | ||
281 | # | ||
282 | # CONFIG_NET_PKTGEN is not set | ||
283 | # CONFIG_HAMRADIO is not set | ||
284 | # CONFIG_IRDA is not set | ||
285 | # CONFIG_BT is not set | ||
286 | # CONFIG_IEEE80211 is not set | ||
287 | |||
288 | # | ||
165 | # Device Drivers | 289 | # Device Drivers |
166 | # | 290 | # |
167 | 291 | ||
@@ -174,6 +298,11 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y | |||
174 | # CONFIG_DEBUG_DRIVER is not set | 298 | # CONFIG_DEBUG_DRIVER is not set |
175 | 299 | ||
176 | # | 300 | # |
301 | # Connector - unified userspace <-> kernelspace linker | ||
302 | # | ||
303 | # CONFIG_CONNECTOR is not set | ||
304 | |||
305 | # | ||
177 | # Memory Technology Devices (MTD) | 306 | # Memory Technology Devices (MTD) |
178 | # | 307 | # |
179 | CONFIG_MTD=y | 308 | CONFIG_MTD=y |
@@ -192,6 +321,7 @@ CONFIG_MTD_BLOCK=y | |||
192 | # CONFIG_FTL is not set | 321 | # CONFIG_FTL is not set |
193 | # CONFIG_NFTL is not set | 322 | # CONFIG_NFTL is not set |
194 | # CONFIG_INFTL is not set | 323 | # CONFIG_INFTL is not set |
324 | # CONFIG_RFD_FTL is not set | ||
195 | 325 | ||
196 | # | 326 | # |
197 | # RAM/ROM/Flash chip drivers | 327 | # RAM/ROM/Flash chip drivers |
@@ -214,6 +344,7 @@ CONFIG_MTD_CFI_I1=y | |||
214 | CONFIG_MTD_CFI_I2=y | 344 | CONFIG_MTD_CFI_I2=y |
215 | # CONFIG_MTD_CFI_I4 is not set | 345 | # CONFIG_MTD_CFI_I4 is not set |
216 | # CONFIG_MTD_CFI_I8 is not set | 346 | # CONFIG_MTD_CFI_I8 is not set |
347 | # CONFIG_MTD_OTP is not set | ||
217 | CONFIG_MTD_CFI_INTELEXT=y | 348 | CONFIG_MTD_CFI_INTELEXT=y |
218 | # CONFIG_MTD_CFI_AMDSTD is not set | 349 | # CONFIG_MTD_CFI_AMDSTD is not set |
219 | # CONFIG_MTD_CFI_STAA is not set | 350 | # CONFIG_MTD_CFI_STAA is not set |
@@ -221,7 +352,7 @@ CONFIG_MTD_CFI_UTIL=y | |||
221 | # CONFIG_MTD_RAM is not set | 352 | # CONFIG_MTD_RAM is not set |
222 | # CONFIG_MTD_ROM is not set | 353 | # CONFIG_MTD_ROM is not set |
223 | # CONFIG_MTD_ABSENT is not set | 354 | # CONFIG_MTD_ABSENT is not set |
224 | # CONFIG_MTD_XIP is not set | 355 | # CONFIG_MTD_OBSOLETE_CHIPS is not set |
225 | 356 | ||
226 | # | 357 | # |
227 | # Mapping drivers for chip access | 358 | # Mapping drivers for chip access |
@@ -229,7 +360,7 @@ CONFIG_MTD_CFI_UTIL=y | |||
229 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 360 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
230 | # CONFIG_MTD_PHYSMAP is not set | 361 | # CONFIG_MTD_PHYSMAP is not set |
231 | CONFIG_MTD_ARM_INTEGRATOR=y | 362 | CONFIG_MTD_ARM_INTEGRATOR=y |
232 | # CONFIG_MTD_EDB7312 is not set | 363 | # CONFIG_MTD_PLATRAM is not set |
233 | 364 | ||
234 | # | 365 | # |
235 | # Self-contained MTD device drivers | 366 | # Self-contained MTD device drivers |
@@ -237,7 +368,6 @@ CONFIG_MTD_ARM_INTEGRATOR=y | |||
237 | # CONFIG_MTD_SLRAM is not set | 368 | # CONFIG_MTD_SLRAM is not set |
238 | # CONFIG_MTD_PHRAM is not set | 369 | # CONFIG_MTD_PHRAM is not set |
239 | # CONFIG_MTD_MTDRAM is not set | 370 | # CONFIG_MTD_MTDRAM is not set |
240 | # CONFIG_MTD_BLKMTD is not set | ||
241 | # CONFIG_MTD_BLOCK2MTD is not set | 371 | # CONFIG_MTD_BLOCK2MTD is not set |
242 | 372 | ||
243 | # | 373 | # |
@@ -253,6 +383,11 @@ CONFIG_MTD_ARM_INTEGRATOR=y | |||
253 | # CONFIG_MTD_NAND is not set | 383 | # CONFIG_MTD_NAND is not set |
254 | 384 | ||
255 | # | 385 | # |
386 | # OneNAND Flash Device Drivers | ||
387 | # | ||
388 | # CONFIG_MTD_ONENAND is not set | ||
389 | |||
390 | # | ||
256 | # Parallel port support | 391 | # Parallel port support |
257 | # | 392 | # |
258 | # CONFIG_PARPORT is not set | 393 | # CONFIG_PARPORT is not set |
@@ -264,7 +399,6 @@ CONFIG_MTD_ARM_INTEGRATOR=y | |||
264 | # | 399 | # |
265 | # Block devices | 400 | # Block devices |
266 | # | 401 | # |
267 | # CONFIG_BLK_DEV_FD is not set | ||
268 | # CONFIG_BLK_DEV_COW_COMMON is not set | 402 | # CONFIG_BLK_DEV_COW_COMMON is not set |
269 | # CONFIG_BLK_DEV_LOOP is not set | 403 | # CONFIG_BLK_DEV_LOOP is not set |
270 | # CONFIG_BLK_DEV_NBD is not set | 404 | # CONFIG_BLK_DEV_NBD is not set |
@@ -272,21 +406,13 @@ CONFIG_BLK_DEV_RAM=y | |||
272 | CONFIG_BLK_DEV_RAM_COUNT=16 | 406 | CONFIG_BLK_DEV_RAM_COUNT=16 |
273 | CONFIG_BLK_DEV_RAM_SIZE=4096 | 407 | CONFIG_BLK_DEV_RAM_SIZE=4096 |
274 | CONFIG_BLK_DEV_INITRD=y | 408 | CONFIG_BLK_DEV_INITRD=y |
275 | CONFIG_INITRAMFS_SOURCE="" | ||
276 | # CONFIG_CDROM_PKTCDVD is not set | 409 | # CONFIG_CDROM_PKTCDVD is not set |
277 | |||
278 | # | ||
279 | # IO Schedulers | ||
280 | # | ||
281 | CONFIG_IOSCHED_NOOP=y | ||
282 | CONFIG_IOSCHED_AS=y | ||
283 | CONFIG_IOSCHED_DEADLINE=y | ||
284 | CONFIG_IOSCHED_CFQ=y | ||
285 | # CONFIG_ATA_OVER_ETH is not set | 410 | # CONFIG_ATA_OVER_ETH is not set |
286 | 411 | ||
287 | # | 412 | # |
288 | # SCSI device support | 413 | # SCSI device support |
289 | # | 414 | # |
415 | # CONFIG_RAID_ATTRS is not set | ||
290 | # CONFIG_SCSI is not set | 416 | # CONFIG_SCSI is not set |
291 | 417 | ||
292 | # | 418 | # |
@@ -297,6 +423,7 @@ CONFIG_IOSCHED_CFQ=y | |||
297 | # | 423 | # |
298 | # Fusion MPT device support | 424 | # Fusion MPT device support |
299 | # | 425 | # |
426 | # CONFIG_FUSION is not set | ||
300 | 427 | ||
301 | # | 428 | # |
302 | # IEEE 1394 (FireWire) support | 429 | # IEEE 1394 (FireWire) support |
@@ -307,71 +434,8 @@ CONFIG_IOSCHED_CFQ=y | |||
307 | # | 434 | # |
308 | 435 | ||
309 | # | 436 | # |
310 | # Networking support | 437 | # Network device support |
311 | # | ||
312 | CONFIG_NET=y | ||
313 | |||
314 | # | ||
315 | # Networking options | ||
316 | # | ||
317 | CONFIG_PACKET=y | ||
318 | CONFIG_PACKET_MMAP=y | ||
319 | # CONFIG_NETLINK_DEV is not set | ||
320 | CONFIG_UNIX=y | ||
321 | # CONFIG_NET_KEY is not set | ||
322 | CONFIG_INET=y | ||
323 | CONFIG_IP_MULTICAST=y | ||
324 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
325 | CONFIG_IP_PNP=y | ||
326 | # CONFIG_IP_PNP_DHCP is not set | ||
327 | CONFIG_IP_PNP_BOOTP=y | ||
328 | # CONFIG_IP_PNP_RARP is not set | ||
329 | # CONFIG_NET_IPIP is not set | ||
330 | # CONFIG_NET_IPGRE is not set | ||
331 | # CONFIG_IP_MROUTE is not set | ||
332 | # CONFIG_ARPD is not set | ||
333 | # CONFIG_SYN_COOKIES is not set | ||
334 | # CONFIG_INET_AH is not set | ||
335 | # CONFIG_INET_ESP is not set | ||
336 | # CONFIG_INET_IPCOMP is not set | ||
337 | # CONFIG_INET_TUNNEL is not set | ||
338 | # CONFIG_IP_TCPDIAG is not set | ||
339 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
340 | # CONFIG_IPV6 is not set | ||
341 | # CONFIG_NETFILTER is not set | ||
342 | |||
343 | # | ||
344 | # SCTP Configuration (EXPERIMENTAL) | ||
345 | # | ||
346 | # CONFIG_IP_SCTP is not set | ||
347 | # CONFIG_ATM is not set | ||
348 | # CONFIG_BRIDGE is not set | ||
349 | # CONFIG_VLAN_8021Q is not set | ||
350 | # CONFIG_DECNET is not set | ||
351 | # CONFIG_LLC2 is not set | ||
352 | # CONFIG_IPX is not set | ||
353 | # CONFIG_ATALK is not set | ||
354 | # CONFIG_X25 is not set | ||
355 | # CONFIG_LAPB is not set | ||
356 | # CONFIG_NET_DIVERT is not set | ||
357 | # CONFIG_ECONET is not set | ||
358 | # CONFIG_WAN_ROUTER is not set | ||
359 | |||
360 | # | ||
361 | # QoS and/or fair queueing | ||
362 | # | ||
363 | # CONFIG_NET_SCHED is not set | ||
364 | # CONFIG_NET_CLS_ROUTE is not set | ||
365 | |||
366 | # | ||
367 | # Network testing | ||
368 | # | 438 | # |
369 | # CONFIG_NET_PKTGEN is not set | ||
370 | # CONFIG_NETPOLL is not set | ||
371 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
372 | # CONFIG_HAMRADIO is not set | ||
373 | # CONFIG_IRDA is not set | ||
374 | # CONFIG_BT is not set | ||
375 | CONFIG_NETDEVICES=y | 439 | CONFIG_NETDEVICES=y |
376 | # CONFIG_DUMMY is not set | 440 | # CONFIG_DUMMY is not set |
377 | # CONFIG_BONDING is not set | 441 | # CONFIG_BONDING is not set |
@@ -379,11 +443,17 @@ CONFIG_NETDEVICES=y | |||
379 | # CONFIG_TUN is not set | 443 | # CONFIG_TUN is not set |
380 | 444 | ||
381 | # | 445 | # |
446 | # PHY device support | ||
447 | # | ||
448 | # CONFIG_PHYLIB is not set | ||
449 | |||
450 | # | ||
382 | # Ethernet (10 or 100Mbit) | 451 | # Ethernet (10 or 100Mbit) |
383 | # | 452 | # |
384 | CONFIG_NET_ETHERNET=y | 453 | CONFIG_NET_ETHERNET=y |
385 | CONFIG_MII=y | 454 | CONFIG_MII=y |
386 | CONFIG_SMC91X=y | 455 | CONFIG_SMC91X=y |
456 | # CONFIG_DM9000 is not set | ||
387 | 457 | ||
388 | # | 458 | # |
389 | # Ethernet (1000 Mbit) | 459 | # Ethernet (1000 Mbit) |
@@ -410,6 +480,8 @@ CONFIG_SMC91X=y | |||
410 | # CONFIG_SLIP is not set | 480 | # CONFIG_SLIP is not set |
411 | # CONFIG_SHAPER is not set | 481 | # CONFIG_SHAPER is not set |
412 | # CONFIG_NETCONSOLE is not set | 482 | # CONFIG_NETCONSOLE is not set |
483 | # CONFIG_NETPOLL is not set | ||
484 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
413 | 485 | ||
414 | # | 486 | # |
415 | # ISDN subsystem | 487 | # ISDN subsystem |
@@ -459,7 +531,6 @@ CONFIG_SERIO_AMBAKMI=y | |||
459 | CONFIG_SERIO_LIBPS2=y | 531 | CONFIG_SERIO_LIBPS2=y |
460 | # CONFIG_SERIO_RAW is not set | 532 | # CONFIG_SERIO_RAW is not set |
461 | # CONFIG_GAMEPORT is not set | 533 | # CONFIG_GAMEPORT is not set |
462 | CONFIG_SOUND_GAMEPORT=y | ||
463 | 534 | ||
464 | # | 535 | # |
465 | # Character devices | 536 | # Character devices |
@@ -474,17 +545,16 @@ CONFIG_HW_CONSOLE=y | |||
474 | # | 545 | # |
475 | CONFIG_SERIAL_8250=m | 546 | CONFIG_SERIAL_8250=m |
476 | CONFIG_SERIAL_8250_NR_UARTS=4 | 547 | CONFIG_SERIAL_8250_NR_UARTS=4 |
548 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
477 | CONFIG_SERIAL_8250_EXTENDED=y | 549 | CONFIG_SERIAL_8250_EXTENDED=y |
478 | CONFIG_SERIAL_8250_MANY_PORTS=y | 550 | CONFIG_SERIAL_8250_MANY_PORTS=y |
479 | CONFIG_SERIAL_8250_SHARE_IRQ=y | 551 | CONFIG_SERIAL_8250_SHARE_IRQ=y |
480 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | 552 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set |
481 | CONFIG_SERIAL_8250_MULTIPORT=y | ||
482 | CONFIG_SERIAL_8250_RSA=y | 553 | CONFIG_SERIAL_8250_RSA=y |
483 | 554 | ||
484 | # | 555 | # |
485 | # Non-8250 serial port support | 556 | # Non-8250 serial port support |
486 | # | 557 | # |
487 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
488 | CONFIG_SERIAL_AMBA_PL011=y | 558 | CONFIG_SERIAL_AMBA_PL011=y |
489 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y | 559 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y |
490 | CONFIG_SERIAL_CORE=y | 560 | CONFIG_SERIAL_CORE=y |
@@ -503,20 +573,19 @@ CONFIG_LEGACY_PTY_COUNT=16 | |||
503 | # | 573 | # |
504 | # CONFIG_WATCHDOG is not set | 574 | # CONFIG_WATCHDOG is not set |
505 | # CONFIG_NVRAM is not set | 575 | # CONFIG_NVRAM is not set |
506 | # CONFIG_RTC is not set | ||
507 | # CONFIG_DTLK is not set | 576 | # CONFIG_DTLK is not set |
508 | # CONFIG_R3964 is not set | 577 | # CONFIG_R3964 is not set |
509 | 578 | ||
510 | # | 579 | # |
511 | # Ftape, the floppy tape device driver | 580 | # Ftape, the floppy tape device driver |
512 | # | 581 | # |
513 | # CONFIG_DRM is not set | ||
514 | # CONFIG_RAW_DRIVER is not set | 582 | # CONFIG_RAW_DRIVER is not set |
515 | 583 | ||
516 | # | 584 | # |
517 | # TPM devices | 585 | # TPM devices |
518 | # | 586 | # |
519 | # CONFIG_TCG_TPM is not set | 587 | # CONFIG_TCG_TPM is not set |
588 | # CONFIG_TELCLOCK is not set | ||
520 | 589 | ||
521 | # | 590 | # |
522 | # I2C support | 591 | # I2C support |
@@ -534,60 +603,60 @@ CONFIG_I2C_ALGOBIT=y | |||
534 | # | 603 | # |
535 | # I2C Hardware Bus support | 604 | # I2C Hardware Bus support |
536 | # | 605 | # |
537 | # CONFIG_I2C_ISA is not set | ||
538 | # CONFIG_I2C_PARPORT_LIGHT is not set | 606 | # CONFIG_I2C_PARPORT_LIGHT is not set |
539 | # CONFIG_I2C_STUB is not set | 607 | # CONFIG_I2C_STUB is not set |
540 | # CONFIG_I2C_PCA_ISA is not set | 608 | # CONFIG_I2C_PCA_ISA is not set |
541 | 609 | ||
542 | # | 610 | # |
543 | # Hardware Sensors Chip support | 611 | # Miscellaneous I2C Chip support |
544 | # | ||
545 | CONFIG_I2C_SENSOR=m | ||
546 | # CONFIG_SENSORS_ADM1021 is not set | ||
547 | # CONFIG_SENSORS_ADM1025 is not set | ||
548 | # CONFIG_SENSORS_ADM1026 is not set | ||
549 | # CONFIG_SENSORS_ADM1031 is not set | ||
550 | # CONFIG_SENSORS_ASB100 is not set | ||
551 | # CONFIG_SENSORS_DS1621 is not set | ||
552 | # CONFIG_SENSORS_FSCHER is not set | ||
553 | # CONFIG_SENSORS_FSCPOS is not set | ||
554 | # CONFIG_SENSORS_GL518SM is not set | ||
555 | # CONFIG_SENSORS_GL520SM is not set | ||
556 | # CONFIG_SENSORS_IT87 is not set | ||
557 | # CONFIG_SENSORS_LM63 is not set | ||
558 | # CONFIG_SENSORS_LM75 is not set | ||
559 | # CONFIG_SENSORS_LM77 is not set | ||
560 | # CONFIG_SENSORS_LM78 is not set | ||
561 | # CONFIG_SENSORS_LM80 is not set | ||
562 | # CONFIG_SENSORS_LM83 is not set | ||
563 | # CONFIG_SENSORS_LM85 is not set | ||
564 | # CONFIG_SENSORS_LM87 is not set | ||
565 | # CONFIG_SENSORS_LM90 is not set | ||
566 | # CONFIG_SENSORS_MAX1619 is not set | ||
567 | # CONFIG_SENSORS_PC87360 is not set | ||
568 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
569 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
570 | # CONFIG_SENSORS_W83781D is not set | ||
571 | # CONFIG_SENSORS_W83L785TS is not set | ||
572 | # CONFIG_SENSORS_W83627HF is not set | ||
573 | |||
574 | # | ||
575 | # Other I2C Chip support | ||
576 | # | 612 | # |
613 | # CONFIG_SENSORS_DS1337 is not set | ||
614 | # CONFIG_SENSORS_DS1374 is not set | ||
577 | CONFIG_SENSORS_EEPROM=m | 615 | CONFIG_SENSORS_EEPROM=m |
578 | # CONFIG_SENSORS_PCF8574 is not set | 616 | # CONFIG_SENSORS_PCF8574 is not set |
617 | # CONFIG_SENSORS_PCA9539 is not set | ||
579 | # CONFIG_SENSORS_PCF8591 is not set | 618 | # CONFIG_SENSORS_PCF8591 is not set |
580 | # CONFIG_SENSORS_RTC8564 is not set | 619 | # CONFIG_SENSORS_MAX6875 is not set |
581 | # CONFIG_I2C_DEBUG_CORE is not set | 620 | # CONFIG_I2C_DEBUG_CORE is not set |
582 | # CONFIG_I2C_DEBUG_ALGO is not set | 621 | # CONFIG_I2C_DEBUG_ALGO is not set |
583 | # CONFIG_I2C_DEBUG_BUS is not set | 622 | # CONFIG_I2C_DEBUG_BUS is not set |
584 | # CONFIG_I2C_DEBUG_CHIP is not set | 623 | # CONFIG_I2C_DEBUG_CHIP is not set |
585 | 624 | ||
586 | # | 625 | # |
626 | # SPI support | ||
627 | # | ||
628 | # CONFIG_SPI is not set | ||
629 | # CONFIG_SPI_MASTER is not set | ||
630 | |||
631 | # | ||
632 | # Dallas's 1-wire bus | ||
633 | # | ||
634 | # CONFIG_W1 is not set | ||
635 | |||
636 | # | ||
637 | # Hardware Monitoring support | ||
638 | # | ||
639 | # CONFIG_HWMON is not set | ||
640 | # CONFIG_HWMON_VID is not set | ||
641 | |||
642 | # | ||
587 | # Misc devices | 643 | # Misc devices |
588 | # | 644 | # |
589 | 645 | ||
590 | # | 646 | # |
647 | # LED devices | ||
648 | # | ||
649 | # CONFIG_NEW_LEDS is not set | ||
650 | |||
651 | # | ||
652 | # LED drivers | ||
653 | # | ||
654 | |||
655 | # | ||
656 | # LED Triggers | ||
657 | # | ||
658 | |||
659 | # | ||
591 | # Multimedia devices | 660 | # Multimedia devices |
592 | # | 661 | # |
593 | # CONFIG_VIDEO_DEV is not set | 662 | # CONFIG_VIDEO_DEV is not set |
@@ -604,27 +673,31 @@ CONFIG_FB=y | |||
604 | CONFIG_FB_CFB_FILLRECT=y | 673 | CONFIG_FB_CFB_FILLRECT=y |
605 | CONFIG_FB_CFB_COPYAREA=y | 674 | CONFIG_FB_CFB_COPYAREA=y |
606 | CONFIG_FB_CFB_IMAGEBLIT=y | 675 | CONFIG_FB_CFB_IMAGEBLIT=y |
607 | CONFIG_FB_SOFT_CURSOR=y | 676 | # CONFIG_FB_MACMODES is not set |
677 | # CONFIG_FB_FIRMWARE_EDID is not set | ||
608 | # CONFIG_FB_MODE_HELPERS is not set | 678 | # CONFIG_FB_MODE_HELPERS is not set |
609 | # CONFIG_FB_TILEBLITTING is not set | 679 | # CONFIG_FB_TILEBLITTING is not set |
610 | CONFIG_FB_ARMCLCD=y | 680 | CONFIG_FB_ARMCLCD=y |
681 | # CONFIG_FB_S1D13XXX is not set | ||
611 | # CONFIG_FB_VIRTUAL is not set | 682 | # CONFIG_FB_VIRTUAL is not set |
612 | 683 | ||
613 | # | 684 | # |
614 | # Console display driver support | 685 | # Console display driver support |
615 | # | 686 | # |
616 | # CONFIG_VGA_CONSOLE is not set | ||
617 | CONFIG_DUMMY_CONSOLE=y | 687 | CONFIG_DUMMY_CONSOLE=y |
618 | CONFIG_FRAMEBUFFER_CONSOLE=y | 688 | CONFIG_FRAMEBUFFER_CONSOLE=y |
689 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
619 | CONFIG_FONTS=y | 690 | CONFIG_FONTS=y |
620 | # CONFIG_FONT_8x8 is not set | 691 | # CONFIG_FONT_8x8 is not set |
621 | # CONFIG_FONT_8x16 is not set | 692 | # CONFIG_FONT_8x16 is not set |
622 | # CONFIG_FONT_6x11 is not set | 693 | # CONFIG_FONT_6x11 is not set |
694 | # CONFIG_FONT_7x14 is not set | ||
623 | # CONFIG_FONT_PEARL_8x8 is not set | 695 | # CONFIG_FONT_PEARL_8x8 is not set |
624 | CONFIG_FONT_ACORN_8x8=y | 696 | CONFIG_FONT_ACORN_8x8=y |
625 | # CONFIG_FONT_MINI_4x6 is not set | 697 | # CONFIG_FONT_MINI_4x6 is not set |
626 | # CONFIG_FONT_SUN8x16 is not set | 698 | # CONFIG_FONT_SUN8x16 is not set |
627 | # CONFIG_FONT_SUN12x22 is not set | 699 | # CONFIG_FONT_SUN12x22 is not set |
700 | # CONFIG_FONT_10x18 is not set | ||
628 | 701 | ||
629 | # | 702 | # |
630 | # Logo configuration | 703 | # Logo configuration |
@@ -647,12 +720,18 @@ CONFIG_SND_PCM=m | |||
647 | CONFIG_SND_OSSEMUL=y | 720 | CONFIG_SND_OSSEMUL=y |
648 | CONFIG_SND_MIXER_OSS=m | 721 | CONFIG_SND_MIXER_OSS=m |
649 | CONFIG_SND_PCM_OSS=m | 722 | CONFIG_SND_PCM_OSS=m |
723 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
724 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
725 | CONFIG_SND_SUPPORT_OLD_API=y | ||
726 | CONFIG_SND_VERBOSE_PROCFS=y | ||
650 | # CONFIG_SND_VERBOSE_PRINTK is not set | 727 | # CONFIG_SND_VERBOSE_PRINTK is not set |
651 | # CONFIG_SND_DEBUG is not set | 728 | # CONFIG_SND_DEBUG is not set |
652 | 729 | ||
653 | # | 730 | # |
654 | # Generic devices | 731 | # Generic devices |
655 | # | 732 | # |
733 | CONFIG_SND_AC97_CODEC=m | ||
734 | CONFIG_SND_AC97_BUS=m | ||
656 | # CONFIG_SND_DUMMY is not set | 735 | # CONFIG_SND_DUMMY is not set |
657 | # CONFIG_SND_MTPAV is not set | 736 | # CONFIG_SND_MTPAV is not set |
658 | # CONFIG_SND_SERIAL_U16550 is not set | 737 | # CONFIG_SND_SERIAL_U16550 is not set |
@@ -661,6 +740,7 @@ CONFIG_SND_PCM_OSS=m | |||
661 | # | 740 | # |
662 | # ALSA ARM devices | 741 | # ALSA ARM devices |
663 | # | 742 | # |
743 | CONFIG_SND_ARMAACI=m | ||
664 | 744 | ||
665 | # | 745 | # |
666 | # Open Sound System | 746 | # Open Sound System |
@@ -672,9 +752,14 @@ CONFIG_SND_PCM_OSS=m | |||
672 | # | 752 | # |
673 | CONFIG_USB_ARCH_HAS_HCD=y | 753 | CONFIG_USB_ARCH_HAS_HCD=y |
674 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 754 | # CONFIG_USB_ARCH_HAS_OHCI is not set |
755 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
675 | # CONFIG_USB is not set | 756 | # CONFIG_USB is not set |
676 | 757 | ||
677 | # | 758 | # |
759 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
760 | # | ||
761 | |||
762 | # | ||
678 | # USB Gadget Support | 763 | # USB Gadget Support |
679 | # | 764 | # |
680 | # CONFIG_USB_GADGET is not set | 765 | # CONFIG_USB_GADGET is not set |
@@ -688,25 +773,31 @@ CONFIG_MMC_BLOCK=y | |||
688 | CONFIG_MMC_ARMMMCI=m | 773 | CONFIG_MMC_ARMMMCI=m |
689 | 774 | ||
690 | # | 775 | # |
776 | # Real Time Clock | ||
777 | # | ||
778 | CONFIG_RTC_LIB=y | ||
779 | # CONFIG_RTC_CLASS is not set | ||
780 | |||
781 | # | ||
691 | # File systems | 782 | # File systems |
692 | # | 783 | # |
693 | CONFIG_EXT2_FS=y | 784 | CONFIG_EXT2_FS=y |
694 | # CONFIG_EXT2_FS_XATTR is not set | 785 | # CONFIG_EXT2_FS_XATTR is not set |
786 | # CONFIG_EXT2_FS_XIP is not set | ||
695 | # CONFIG_EXT3_FS is not set | 787 | # CONFIG_EXT3_FS is not set |
696 | # CONFIG_JBD is not set | ||
697 | # CONFIG_REISERFS_FS is not set | 788 | # CONFIG_REISERFS_FS is not set |
698 | # CONFIG_JFS_FS is not set | 789 | # CONFIG_JFS_FS is not set |
699 | 790 | # CONFIG_FS_POSIX_ACL is not set | |
700 | # | ||
701 | # XFS support | ||
702 | # | ||
703 | # CONFIG_XFS_FS is not set | 791 | # CONFIG_XFS_FS is not set |
792 | # CONFIG_OCFS2_FS is not set | ||
704 | CONFIG_MINIX_FS=y | 793 | CONFIG_MINIX_FS=y |
705 | CONFIG_ROMFS_FS=y | 794 | CONFIG_ROMFS_FS=y |
795 | # CONFIG_INOTIFY is not set | ||
706 | # CONFIG_QUOTA is not set | 796 | # CONFIG_QUOTA is not set |
707 | CONFIG_DNOTIFY=y | 797 | CONFIG_DNOTIFY=y |
708 | # CONFIG_AUTOFS_FS is not set | 798 | # CONFIG_AUTOFS_FS is not set |
709 | # CONFIG_AUTOFS4_FS is not set | 799 | # CONFIG_AUTOFS4_FS is not set |
800 | # CONFIG_FUSE_FS is not set | ||
710 | 801 | ||
711 | # | 802 | # |
712 | # CD-ROM/DVD Filesystems | 803 | # CD-ROM/DVD Filesystems |
@@ -729,11 +820,10 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | |||
729 | # | 820 | # |
730 | CONFIG_PROC_FS=y | 821 | CONFIG_PROC_FS=y |
731 | CONFIG_SYSFS=y | 822 | CONFIG_SYSFS=y |
732 | # CONFIG_DEVFS_FS is not set | ||
733 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
734 | # CONFIG_TMPFS is not set | 823 | # CONFIG_TMPFS is not set |
735 | # CONFIG_HUGETLB_PAGE is not set | 824 | # CONFIG_HUGETLB_PAGE is not set |
736 | CONFIG_RAMFS=y | 825 | CONFIG_RAMFS=y |
826 | # CONFIG_CONFIGFS_FS is not set | ||
737 | 827 | ||
738 | # | 828 | # |
739 | # Miscellaneous filesystems | 829 | # Miscellaneous filesystems |
@@ -748,8 +838,8 @@ CONFIG_RAMFS=y | |||
748 | # CONFIG_JFFS_FS is not set | 838 | # CONFIG_JFFS_FS is not set |
749 | CONFIG_JFFS2_FS=y | 839 | CONFIG_JFFS2_FS=y |
750 | CONFIG_JFFS2_FS_DEBUG=0 | 840 | CONFIG_JFFS2_FS_DEBUG=0 |
751 | # CONFIG_JFFS2_FS_NAND is not set | 841 | CONFIG_JFFS2_FS_WRITEBUFFER=y |
752 | # CONFIG_JFFS2_FS_NOR_ECC is not set | 842 | # CONFIG_JFFS2_SUMMARY is not set |
753 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | 843 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set |
754 | CONFIG_JFFS2_ZLIB=y | 844 | CONFIG_JFFS2_ZLIB=y |
755 | CONFIG_JFFS2_RTIME=y | 845 | CONFIG_JFFS2_RTIME=y |
@@ -766,16 +856,19 @@ CONFIG_CRAMFS=y | |||
766 | # | 856 | # |
767 | CONFIG_NFS_FS=y | 857 | CONFIG_NFS_FS=y |
768 | CONFIG_NFS_V3=y | 858 | CONFIG_NFS_V3=y |
859 | # CONFIG_NFS_V3_ACL is not set | ||
769 | # CONFIG_NFS_V4 is not set | 860 | # CONFIG_NFS_V4 is not set |
770 | # CONFIG_NFS_DIRECTIO is not set | 861 | # CONFIG_NFS_DIRECTIO is not set |
771 | CONFIG_NFSD=y | 862 | CONFIG_NFSD=y |
772 | CONFIG_NFSD_V3=y | 863 | CONFIG_NFSD_V3=y |
864 | # CONFIG_NFSD_V3_ACL is not set | ||
773 | # CONFIG_NFSD_V4 is not set | 865 | # CONFIG_NFSD_V4 is not set |
774 | # CONFIG_NFSD_TCP is not set | 866 | # CONFIG_NFSD_TCP is not set |
775 | CONFIG_ROOT_NFS=y | 867 | CONFIG_ROOT_NFS=y |
776 | CONFIG_LOCKD=y | 868 | CONFIG_LOCKD=y |
777 | CONFIG_LOCKD_V4=y | 869 | CONFIG_LOCKD_V4=y |
778 | CONFIG_EXPORTFS=y | 870 | CONFIG_EXPORTFS=y |
871 | CONFIG_NFS_COMMON=y | ||
779 | CONFIG_SUNRPC=y | 872 | CONFIG_SUNRPC=y |
780 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 873 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
781 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 874 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
@@ -784,6 +877,7 @@ CONFIG_SUNRPC=y | |||
784 | # CONFIG_NCP_FS is not set | 877 | # CONFIG_NCP_FS is not set |
785 | # CONFIG_CODA_FS is not set | 878 | # CONFIG_CODA_FS is not set |
786 | # CONFIG_AFS_FS is not set | 879 | # CONFIG_AFS_FS is not set |
880 | # CONFIG_9P_FS is not set | ||
787 | 881 | ||
788 | # | 882 | # |
789 | # Partition Types | 883 | # Partition Types |
@@ -803,6 +897,7 @@ CONFIG_MSDOS_PARTITION=y | |||
803 | # CONFIG_SGI_PARTITION is not set | 897 | # CONFIG_SGI_PARTITION is not set |
804 | # CONFIG_ULTRIX_PARTITION is not set | 898 | # CONFIG_ULTRIX_PARTITION is not set |
805 | # CONFIG_SUN_PARTITION is not set | 899 | # CONFIG_SUN_PARTITION is not set |
900 | # CONFIG_KARMA_PARTITION is not set | ||
806 | # CONFIG_EFI_PARTITION is not set | 901 | # CONFIG_EFI_PARTITION is not set |
807 | 902 | ||
808 | # | 903 | # |
@@ -858,18 +953,24 @@ CONFIG_NLS_ISO8859_1=m | |||
858 | # Kernel hacking | 953 | # Kernel hacking |
859 | # | 954 | # |
860 | # CONFIG_PRINTK_TIME is not set | 955 | # CONFIG_PRINTK_TIME is not set |
861 | CONFIG_DEBUG_KERNEL=y | ||
862 | CONFIG_MAGIC_SYSRQ=y | 956 | CONFIG_MAGIC_SYSRQ=y |
957 | CONFIG_DEBUG_KERNEL=y | ||
863 | CONFIG_LOG_BUF_SHIFT=14 | 958 | CONFIG_LOG_BUF_SHIFT=14 |
959 | CONFIG_DETECT_SOFTLOCKUP=y | ||
864 | # CONFIG_SCHEDSTATS is not set | 960 | # CONFIG_SCHEDSTATS is not set |
865 | # CONFIG_DEBUG_SLAB is not set | 961 | # CONFIG_DEBUG_SLAB is not set |
962 | # CONFIG_DEBUG_MUTEXES is not set | ||
866 | # CONFIG_DEBUG_SPINLOCK is not set | 963 | # CONFIG_DEBUG_SPINLOCK is not set |
867 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 964 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
868 | # CONFIG_DEBUG_KOBJECT is not set | 965 | # CONFIG_DEBUG_KOBJECT is not set |
869 | CONFIG_DEBUG_BUGVERBOSE=y | 966 | CONFIG_DEBUG_BUGVERBOSE=y |
870 | # CONFIG_DEBUG_INFO is not set | 967 | # CONFIG_DEBUG_INFO is not set |
871 | # CONFIG_DEBUG_FS is not set | 968 | # CONFIG_DEBUG_FS is not set |
969 | # CONFIG_DEBUG_VM is not set | ||
872 | CONFIG_FRAME_POINTER=y | 970 | CONFIG_FRAME_POINTER=y |
971 | # CONFIG_UNWIND_INFO is not set | ||
972 | CONFIG_FORCED_INLINING=y | ||
973 | # CONFIG_RCU_TORTURE_TEST is not set | ||
873 | CONFIG_DEBUG_USER=y | 974 | CONFIG_DEBUG_USER=y |
874 | # CONFIG_DEBUG_WAITQ is not set | 975 | # CONFIG_DEBUG_WAITQ is not set |
875 | CONFIG_DEBUG_ERRORS=y | 976 | CONFIG_DEBUG_ERRORS=y |
@@ -895,6 +996,7 @@ CONFIG_DEBUG_LL=y | |||
895 | # Library routines | 996 | # Library routines |
896 | # | 997 | # |
897 | # CONFIG_CRC_CCITT is not set | 998 | # CONFIG_CRC_CCITT is not set |
999 | # CONFIG_CRC16 is not set | ||
898 | CONFIG_CRC32=y | 1000 | CONFIG_CRC32=y |
899 | # CONFIG_LIBCRC32C is not set | 1001 | # CONFIG_LIBCRC32C is not set |
900 | CONFIG_ZLIB_INFLATE=y | 1002 | CONFIG_ZLIB_INFLATE=y |
diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c index 45fdf4a51a2a..396efba9bacd 100644 --- a/arch/arm/kernel/asm-offsets.c +++ b/arch/arm/kernel/asm-offsets.c | |||
@@ -99,6 +99,8 @@ int main(void) | |||
99 | DEFINE(MACHINFO_NAME, offsetof(struct machine_desc, name)); | 99 | DEFINE(MACHINFO_NAME, offsetof(struct machine_desc, name)); |
100 | DEFINE(MACHINFO_PHYSIO, offsetof(struct machine_desc, phys_io)); | 100 | DEFINE(MACHINFO_PHYSIO, offsetof(struct machine_desc, phys_io)); |
101 | DEFINE(MACHINFO_PGOFFIO, offsetof(struct machine_desc, io_pg_offst)); | 101 | DEFINE(MACHINFO_PGOFFIO, offsetof(struct machine_desc, io_pg_offst)); |
102 | BLANK(); | ||
103 | DEFINE(PROC_INFO_SZ, sizeof(struct proc_info_list)); | ||
102 | DEFINE(PROCINFO_INITFUNC, offsetof(struct proc_info_list, __cpu_flush)); | 104 | DEFINE(PROCINFO_INITFUNC, offsetof(struct proc_info_list, __cpu_flush)); |
103 | DEFINE(PROCINFO_MMUFLAGS, offsetof(struct proc_info_list, __cpu_mmu_flags)); | 105 | DEFINE(PROCINFO_MMUFLAGS, offsetof(struct proc_info_list, __cpu_mmu_flags)); |
104 | return 0; | 106 | return 0; |
diff --git a/arch/arm/kernel/dma-isa.c b/arch/arm/kernel/dma-isa.c index 03532769a97f..0a3e9ad297d8 100644 --- a/arch/arm/kernel/dma-isa.c +++ b/arch/arm/kernel/dma-isa.c | |||
@@ -143,12 +143,23 @@ static struct dma_ops isa_dma_ops = { | |||
143 | .residue = isa_get_dma_residue, | 143 | .residue = isa_get_dma_residue, |
144 | }; | 144 | }; |
145 | 145 | ||
146 | static struct resource dma_resources[] = { | 146 | static struct resource dma_resources[] = { { |
147 | { "dma1", 0x0000, 0x000f }, | 147 | .name = "dma1", |
148 | { "dma low page", 0x0080, 0x008f }, | 148 | .start = 0x0000, |
149 | { "dma2", 0x00c0, 0x00df }, | 149 | .end = 0x000f |
150 | { "dma high page", 0x0480, 0x048f } | 150 | }, { |
151 | }; | 151 | .name = "dma low page", |
152 | .start = 0x0080, | ||
153 | .end = 0x008f | ||
154 | }, { | ||
155 | .name = "dma2", | ||
156 | .start = 0x00c0, | ||
157 | .end = 0x00df | ||
158 | }, { | ||
159 | .name = "dma high page", | ||
160 | .start = 0x0480, | ||
161 | .end = 0x048f | ||
162 | } }; | ||
152 | 163 | ||
153 | void __init isa_init_dma(dma_t *dma) | 164 | void __init isa_init_dma(dma_t *dma) |
154 | { | 165 | { |
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index dbcb11a31f78..b5bcebca1cd6 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -271,7 +271,7 @@ ENTRY(sys_call_table) | |||
271 | @ r8 = syscall table | 271 | @ r8 = syscall table |
272 | .type sys_syscall, #function | 272 | .type sys_syscall, #function |
273 | sys_syscall: | 273 | sys_syscall: |
274 | eor scno, r0, #__NR_OABI_SYSCALL_BASE | 274 | bic scno, r0, #__NR_OABI_SYSCALL_BASE |
275 | cmp scno, #__NR_syscall - __NR_SYSCALL_BASE | 275 | cmp scno, #__NR_syscall - __NR_SYSCALL_BASE |
276 | cmpne scno, #NR_syscalls @ check range | 276 | cmpne scno, #NR_syscalls @ check range |
277 | stmloia sp, {r5, r6} @ shuffle args | 277 | stmloia sp, {r5, r6} @ shuffle args |
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 2d5896b36181..bcc19fbb32df 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -342,10 +342,10 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs) | |||
342 | 342 | ||
343 | #ifdef CONFIG_NO_IDLE_HZ | 343 | #ifdef CONFIG_NO_IDLE_HZ |
344 | if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) { | 344 | if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) { |
345 | write_seqlock(&xtime_lock); | 345 | spin_lock(&system_timer->dyn_tick->lock); |
346 | if (system_timer->dyn_tick->state & DYN_TICK_ENABLED) | 346 | if (system_timer->dyn_tick->state & DYN_TICK_ENABLED) |
347 | system_timer->dyn_tick->handler(irq, 0, regs); | 347 | system_timer->dyn_tick->handler(irq, 0, regs); |
348 | write_sequnlock(&xtime_lock); | 348 | spin_unlock(&system_timer->dyn_tick->lock); |
349 | } | 349 | } |
350 | #endif | 350 | #endif |
351 | 351 | ||
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 1ff75cee4b0d..17c38dbf2f3c 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/cpu.h> | 29 | #include <linux/cpu.h> |
30 | #include <linux/elfcore.h> | 30 | #include <linux/elfcore.h> |
31 | #include <linux/pm.h> | ||
31 | 32 | ||
32 | #include <asm/leds.h> | 33 | #include <asm/leds.h> |
33 | #include <asm/processor.h> | 34 | #include <asm/processor.h> |
@@ -71,8 +72,36 @@ static int __init hlt_setup(char *__unused) | |||
71 | __setup("nohlt", nohlt_setup); | 72 | __setup("nohlt", nohlt_setup); |
72 | __setup("hlt", hlt_setup); | 73 | __setup("hlt", hlt_setup); |
73 | 74 | ||
75 | void arm_machine_restart(char mode) | ||
76 | { | ||
77 | /* | ||
78 | * Clean and disable cache, and turn off interrupts | ||
79 | */ | ||
80 | cpu_proc_fin(); | ||
81 | |||
82 | /* | ||
83 | * Tell the mm system that we are going to reboot - | ||
84 | * we may need it to insert some 1:1 mappings so that | ||
85 | * soft boot works. | ||
86 | */ | ||
87 | setup_mm_for_reboot(mode); | ||
88 | |||
89 | /* | ||
90 | * Now call the architecture specific reboot code. | ||
91 | */ | ||
92 | arch_reset(mode); | ||
93 | |||
94 | /* | ||
95 | * Whoops - the architecture was unable to reboot. | ||
96 | * Tell the user! | ||
97 | */ | ||
98 | mdelay(1000); | ||
99 | printk("Reboot failed -- System halted\n"); | ||
100 | while (1); | ||
101 | } | ||
102 | |||
74 | /* | 103 | /* |
75 | * The following aren't currently used. | 104 | * Function pointers to optional machine specific functions |
76 | */ | 105 | */ |
77 | void (*pm_idle)(void); | 106 | void (*pm_idle)(void); |
78 | EXPORT_SYMBOL(pm_idle); | 107 | EXPORT_SYMBOL(pm_idle); |
@@ -80,6 +109,10 @@ EXPORT_SYMBOL(pm_idle); | |||
80 | void (*pm_power_off)(void); | 109 | void (*pm_power_off)(void); |
81 | EXPORT_SYMBOL(pm_power_off); | 110 | EXPORT_SYMBOL(pm_power_off); |
82 | 111 | ||
112 | void (*arm_pm_restart)(char str) = arm_machine_restart; | ||
113 | EXPORT_SYMBOL_GPL(arm_pm_restart); | ||
114 | |||
115 | |||
83 | /* | 116 | /* |
84 | * This is our default idle handler. We need to disable | 117 | * This is our default idle handler. We need to disable |
85 | * interrupts here to ensure we don't miss a wakeup call. | 118 | * interrupts here to ensure we don't miss a wakeup call. |
@@ -151,33 +184,9 @@ void machine_power_off(void) | |||
151 | pm_power_off(); | 184 | pm_power_off(); |
152 | } | 185 | } |
153 | 186 | ||
154 | |||
155 | void machine_restart(char * __unused) | 187 | void machine_restart(char * __unused) |
156 | { | 188 | { |
157 | /* | 189 | arm_pm_restart(reboot_mode); |
158 | * Clean and disable cache, and turn off interrupts | ||
159 | */ | ||
160 | cpu_proc_fin(); | ||
161 | |||
162 | /* | ||
163 | * Tell the mm system that we are going to reboot - | ||
164 | * we may need it to insert some 1:1 mappings so that | ||
165 | * soft boot works. | ||
166 | */ | ||
167 | setup_mm_for_reboot(reboot_mode); | ||
168 | |||
169 | /* | ||
170 | * Now call the architecture specific reboot code. | ||
171 | */ | ||
172 | arch_reset(reboot_mode); | ||
173 | |||
174 | /* | ||
175 | * Whoops - the architecture was unable to reboot. | ||
176 | * Tell the user! | ||
177 | */ | ||
178 | mdelay(1000); | ||
179 | printk("Reboot failed -- System halted\n"); | ||
180 | while (1); | ||
181 | } | 190 | } |
182 | 191 | ||
183 | void __show_regs(struct pt_regs *regs) | 192 | void __show_regs(struct pt_regs *regs) |
@@ -264,8 +273,12 @@ void show_fpregs(struct user_fp *regs) | |||
264 | /* | 273 | /* |
265 | * Task structure and kernel stack allocation. | 274 | * Task structure and kernel stack allocation. |
266 | */ | 275 | */ |
267 | static unsigned long *thread_info_head; | 276 | struct thread_info_list { |
268 | static unsigned int nr_thread_info; | 277 | unsigned long *head; |
278 | unsigned int nr; | ||
279 | }; | ||
280 | |||
281 | static DEFINE_PER_CPU(struct thread_info_list, thread_info_list) = { NULL, 0 }; | ||
269 | 282 | ||
270 | #define EXTRA_TASK_STRUCT 4 | 283 | #define EXTRA_TASK_STRUCT 4 |
271 | 284 | ||
@@ -274,12 +287,15 @@ struct thread_info *alloc_thread_info(struct task_struct *task) | |||
274 | struct thread_info *thread = NULL; | 287 | struct thread_info *thread = NULL; |
275 | 288 | ||
276 | if (EXTRA_TASK_STRUCT) { | 289 | if (EXTRA_TASK_STRUCT) { |
277 | unsigned long *p = thread_info_head; | 290 | struct thread_info_list *th = &get_cpu_var(thread_info_list); |
291 | unsigned long *p = th->head; | ||
278 | 292 | ||
279 | if (p) { | 293 | if (p) { |
280 | thread_info_head = (unsigned long *)p[0]; | 294 | th->head = (unsigned long *)p[0]; |
281 | nr_thread_info -= 1; | 295 | th->nr -= 1; |
282 | } | 296 | } |
297 | put_cpu_var(thread_info_list); | ||
298 | |||
283 | thread = (struct thread_info *)p; | 299 | thread = (struct thread_info *)p; |
284 | } | 300 | } |
285 | 301 | ||
@@ -300,13 +316,19 @@ struct thread_info *alloc_thread_info(struct task_struct *task) | |||
300 | 316 | ||
301 | void free_thread_info(struct thread_info *thread) | 317 | void free_thread_info(struct thread_info *thread) |
302 | { | 318 | { |
303 | if (EXTRA_TASK_STRUCT && nr_thread_info < EXTRA_TASK_STRUCT) { | 319 | if (EXTRA_TASK_STRUCT) { |
304 | unsigned long *p = (unsigned long *)thread; | 320 | struct thread_info_list *th = &get_cpu_var(thread_info_list); |
305 | p[0] = (unsigned long)thread_info_head; | 321 | if (th->nr < EXTRA_TASK_STRUCT) { |
306 | thread_info_head = p; | 322 | unsigned long *p = (unsigned long *)thread; |
307 | nr_thread_info += 1; | 323 | p[0] = (unsigned long)th->head; |
308 | } else | 324 | th->head = p; |
309 | free_pages((unsigned long)thread, THREAD_SIZE_ORDER); | 325 | th->nr += 1; |
326 | put_cpu_var(thread_info_list); | ||
327 | return; | ||
328 | } | ||
329 | put_cpu_var(thread_info_list); | ||
330 | } | ||
331 | free_pages((unsigned long)thread, THREAD_SIZE_ORDER); | ||
310 | } | 332 | } |
311 | 333 | ||
312 | /* | 334 | /* |
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index d6bd435a6857..9c12d4fefbd3 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -379,7 +379,7 @@ static int timer_dyn_tick_enable(void) | |||
379 | int ret = -ENODEV; | 379 | int ret = -ENODEV; |
380 | 380 | ||
381 | if (dyn_tick) { | 381 | if (dyn_tick) { |
382 | write_seqlock_irqsave(&xtime_lock, flags); | 382 | spin_lock_irqsave(&dyn_tick->lock, flags); |
383 | ret = 0; | 383 | ret = 0; |
384 | if (!(dyn_tick->state & DYN_TICK_ENABLED)) { | 384 | if (!(dyn_tick->state & DYN_TICK_ENABLED)) { |
385 | ret = dyn_tick->enable(); | 385 | ret = dyn_tick->enable(); |
@@ -387,7 +387,7 @@ static int timer_dyn_tick_enable(void) | |||
387 | if (ret == 0) | 387 | if (ret == 0) |
388 | dyn_tick->state |= DYN_TICK_ENABLED; | 388 | dyn_tick->state |= DYN_TICK_ENABLED; |
389 | } | 389 | } |
390 | write_sequnlock_irqrestore(&xtime_lock, flags); | 390 | spin_unlock_irqrestore(&dyn_tick->lock, flags); |
391 | } | 391 | } |
392 | 392 | ||
393 | return ret; | 393 | return ret; |
@@ -400,7 +400,7 @@ static int timer_dyn_tick_disable(void) | |||
400 | int ret = -ENODEV; | 400 | int ret = -ENODEV; |
401 | 401 | ||
402 | if (dyn_tick) { | 402 | if (dyn_tick) { |
403 | write_seqlock_irqsave(&xtime_lock, flags); | 403 | spin_lock_irqsave(&dyn_tick->lock, flags); |
404 | ret = 0; | 404 | ret = 0; |
405 | if (dyn_tick->state & DYN_TICK_ENABLED) { | 405 | if (dyn_tick->state & DYN_TICK_ENABLED) { |
406 | ret = dyn_tick->disable(); | 406 | ret = dyn_tick->disable(); |
@@ -408,7 +408,7 @@ static int timer_dyn_tick_disable(void) | |||
408 | if (ret == 0) | 408 | if (ret == 0) |
409 | dyn_tick->state &= ~DYN_TICK_ENABLED; | 409 | dyn_tick->state &= ~DYN_TICK_ENABLED; |
410 | } | 410 | } |
411 | write_sequnlock_irqrestore(&xtime_lock, flags); | 411 | spin_unlock_irqrestore(&dyn_tick->lock, flags); |
412 | } | 412 | } |
413 | 413 | ||
414 | return ret; | 414 | return ret; |
@@ -422,15 +422,20 @@ static int timer_dyn_tick_disable(void) | |||
422 | void timer_dyn_reprogram(void) | 422 | void timer_dyn_reprogram(void) |
423 | { | 423 | { |
424 | struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick; | 424 | struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick; |
425 | unsigned long next, seq; | 425 | unsigned long next, seq, flags; |
426 | 426 | ||
427 | if (dyn_tick && (dyn_tick->state & DYN_TICK_ENABLED)) { | 427 | if (!dyn_tick) |
428 | return; | ||
429 | |||
430 | spin_lock_irqsave(&dyn_tick->lock, flags); | ||
431 | if (dyn_tick->state & DYN_TICK_ENABLED) { | ||
428 | next = next_timer_interrupt(); | 432 | next = next_timer_interrupt(); |
429 | do { | 433 | do { |
430 | seq = read_seqbegin(&xtime_lock); | 434 | seq = read_seqbegin(&xtime_lock); |
431 | dyn_tick->reprogram(next_timer_interrupt() - jiffies); | 435 | dyn_tick->reprogram(next - jiffies); |
432 | } while (read_seqretry(&xtime_lock, seq)); | 436 | } while (read_seqretry(&xtime_lock, seq)); |
433 | } | 437 | } |
438 | spin_unlock_irqrestore(&dyn_tick->lock, flags); | ||
434 | } | 439 | } |
435 | 440 | ||
436 | static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf) | 441 | static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf) |
@@ -499,5 +504,10 @@ void __init time_init(void) | |||
499 | if (system_timer->offset == NULL) | 504 | if (system_timer->offset == NULL) |
500 | system_timer->offset = dummy_gettimeoffset; | 505 | system_timer->offset = dummy_gettimeoffset; |
501 | system_timer->init(); | 506 | system_timer->init(); |
507 | |||
508 | #ifdef CONFIG_NO_IDLE_HZ | ||
509 | if (system_timer->dyn_tick) | ||
510 | system_timer->dyn_tick->lock = SPIN_LOCK_UNLOCKED; | ||
511 | #endif | ||
502 | } | 512 | } |
503 | 513 | ||
diff --git a/arch/arm/lib/backtrace.S b/arch/arm/lib/backtrace.S index 3bdc8c6949c5..16153c86c3f8 100644 --- a/arch/arm/lib/backtrace.S +++ b/arch/arm/lib/backtrace.S | |||
@@ -122,7 +122,7 @@ ENTRY(c_backtrace) | |||
122 | #define reg r5 | 122 | #define reg r5 |
123 | #define stack r6 | 123 | #define stack r6 |
124 | 124 | ||
125 | .Ldumpstm: stmfd sp!, {instr, reg, stack, r7, lr} | 125 | .Ldumpstm: stmfd sp!, {instr, reg, stack, r7, r8, lr} |
126 | mov stack, r0 | 126 | mov stack, r0 |
127 | mov instr, r1 | 127 | mov instr, r1 |
128 | mov reg, #9 | 128 | mov reg, #9 |
@@ -145,7 +145,7 @@ ENTRY(c_backtrace) | |||
145 | adrne r0, .Lcr | 145 | adrne r0, .Lcr |
146 | blne printk | 146 | blne printk |
147 | mov r0, stack | 147 | mov r0, stack |
148 | LOADREGS(fd, sp!, {instr, reg, stack, r7, pc}) | 148 | LOADREGS(fd, sp!, {instr, reg, stack, r7, r8, pc}) |
149 | 149 | ||
150 | .Lfp: .asciz " r%d = %08X%c" | 150 | .Lfp: .asciz " r%d = %08X%c" |
151 | .Lcr: .asciz "\n" | 151 | .Lcr: .asciz "\n" |
diff --git a/arch/arm/lib/div64.S b/arch/arm/lib/div64.S index ec9a1cd6176f..58eef6607629 100644 --- a/arch/arm/lib/div64.S +++ b/arch/arm/lib/div64.S | |||
@@ -189,12 +189,12 @@ ENTRY(__do_div64) | |||
189 | moveq pc, lr | 189 | moveq pc, lr |
190 | 190 | ||
191 | @ Division by 0: | 191 | @ Division by 0: |
192 | str lr, [sp, #-4]! | 192 | str lr, [sp, #-8]! |
193 | bl __div0 | 193 | bl __div0 |
194 | 194 | ||
195 | @ as wrong as it could be... | 195 | @ as wrong as it could be... |
196 | mov yl, #0 | 196 | mov yl, #0 |
197 | mov yh, #0 | 197 | mov yh, #0 |
198 | mov xh, #0 | 198 | mov xh, #0 |
199 | ldr pc, [sp], #4 | 199 | ldr pc, [sp], #8 |
200 | 200 | ||
diff --git a/arch/arm/mach-at91rm9200/Kconfig b/arch/arm/mach-at91rm9200/Kconfig index 4b7218fc3eb1..1ab5b7828318 100644 --- a/arch/arm/mach-at91rm9200/Kconfig +++ b/arch/arm/mach-at91rm9200/Kconfig | |||
@@ -40,6 +40,18 @@ config MACH_KB9200 | |||
40 | help | 40 | help |
41 | Select this if you are using KwikByte's KB920x board | 41 | Select this if you are using KwikByte's KB920x board |
42 | 42 | ||
43 | config MACH_ATEB9200 | ||
44 | bool "Embest's ATEB9200" | ||
45 | depends on ARCH_AT91RM9200 | ||
46 | help | ||
47 | Select this if you are using Embest's ATEB9200 board | ||
48 | |||
49 | config MACH_KAFA | ||
50 | bool "Sperry-Sun KAFA board" | ||
51 | depends on ARCH_AT91RM9200 | ||
52 | help | ||
53 | Select this if you are using Sperry-Sun's KAFA board | ||
54 | |||
43 | 55 | ||
44 | comment "AT91RM9200 Feature Selections" | 56 | comment "AT91RM9200 Feature Selections" |
45 | 57 | ||
diff --git a/arch/arm/mach-at91rm9200/Makefile b/arch/arm/mach-at91rm9200/Makefile index ef88c4128edc..81ebc6684ad2 100644 --- a/arch/arm/mach-at91rm9200/Makefile +++ b/arch/arm/mach-at91rm9200/Makefile | |||
@@ -7,22 +7,31 @@ obj-m := | |||
7 | obj-n := | 7 | obj-n := |
8 | obj- := | 8 | obj- := |
9 | 9 | ||
10 | obj-$(CONFIG_PM) += pm.o | ||
11 | |||
10 | # Board-specific support | 12 | # Board-specific support |
11 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o | 13 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o |
12 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o | 14 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o |
13 | obj-$(CONFIG_MACH_CSB337) += board-csb337.o | 15 | obj-$(CONFIG_MACH_CSB337) += board-csb337.o |
14 | obj-$(CONFIG_MACH_CSB637) += board-csb637.o | 16 | obj-$(CONFIG_MACH_CSB637) += board-csb637.o |
15 | #obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o | 17 | obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o |
16 | #obj-$(CONFIG_MACH_KB9200) += board-kb9202.o | 18 | obj-$(CONFIG_MACH_KB9200) += board-kb9202.o |
19 | obj-$(CONFIG_MACH_ATEB9200) += board-eb9200.o | ||
20 | obj-$(CONFIG_MACH_KAFA) += board-kafa.o | ||
17 | 21 | ||
18 | # LEDs support | 22 | # LEDs support |
19 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o | 23 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o |
20 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o | 24 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o |
21 | led-$(CONFIG_MACH_CSB337) += leds.o | 25 | led-$(CONFIG_MACH_CSB337) += leds.o |
22 | led-$(CONFIG_MACH_CSB637) += leds.o | 26 | led-$(CONFIG_MACH_CSB637) += leds.o |
23 | #led-$(CONFIG_MACH_KB9200) += leds.o | 27 | led-$(CONFIG_MACH_KB9200) += leds.o |
24 | #led-$(CONFIG_MACH_KAFA) += leds.o | 28 | led-$(CONFIG_MACH_KAFA) += leds.o |
25 | obj-$(CONFIG_LEDS) += $(led-y) | 29 | obj-$(CONFIG_LEDS) += $(led-y) |
26 | 30 | ||
27 | # VGA support | 31 | # VGA support |
28 | #obj-$(CONFIG_FB_S1D13XXX) += ics1523.o | 32 | #obj-$(CONFIG_FB_S1D13XXX) += ics1523.o |
33 | |||
34 | |||
35 | ifeq ($(CONFIG_PM_DEBUG),y) | ||
36 | CFLAGS_pm.o += -DDEBUG | ||
37 | endif | ||
diff --git a/arch/arm/mach-at91rm9200/board-carmeva.c b/arch/arm/mach-at91rm9200/board-carmeva.c new file mode 100644 index 000000000000..2c138b542ebe --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-carmeva.c | |||
@@ -0,0 +1,131 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-carmeva.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Peer Georgi | ||
5 | * Conitec Datasystems | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/platform_device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init carmeva_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(BGA_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata carmeva_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init carmeva_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 20.000 MHz crystal */ | ||
69 | at91_clock_init(20000000); | ||
70 | |||
71 | /* Setup the serial ports and console */ | ||
72 | at91_init_serial(&carmeva_uart_config); | ||
73 | } | ||
74 | |||
75 | static struct at91_eth_data __initdata carmeva_eth_data = { | ||
76 | .phy_irq_pin = AT91_PIN_PC4, | ||
77 | .is_rmii = 1, | ||
78 | }; | ||
79 | |||
80 | static struct at91_usbh_data __initdata carmeva_usbh_data = { | ||
81 | .ports = 2, | ||
82 | }; | ||
83 | |||
84 | static struct at91_udc_data __initdata carmeva_udc_data = { | ||
85 | .vbus_pin = AT91_PIN_PD12, | ||
86 | .pullup_pin = AT91_PIN_PD9, | ||
87 | }; | ||
88 | |||
89 | /* FIXME: user dependend */ | ||
90 | // static struct at91_cf_data __initdata carmeva_cf_data = { | ||
91 | // .det_pin = AT91_PIN_PB0, | ||
92 | // .rst_pin = AT91_PIN_PC5, | ||
93 | // .irq_pin = ... not connected | ||
94 | // .vcc_pin = ... always powered | ||
95 | // }; | ||
96 | |||
97 | static struct at91_mmc_data __initdata carmeva_mmc_data = { | ||
98 | .is_b = 0, | ||
99 | .wire4 = 1, | ||
100 | }; | ||
101 | |||
102 | static void __init carmeva_board_init(void) | ||
103 | { | ||
104 | /* Serial */ | ||
105 | at91_add_device_serial(); | ||
106 | /* Ethernet */ | ||
107 | at91_add_device_eth(&carmeva_eth_data); | ||
108 | /* USB Host */ | ||
109 | at91_add_device_usbh(&carmeva_usbh_data); | ||
110 | /* USB Device */ | ||
111 | at91_add_device_udc(&carmeva_udc_data); | ||
112 | /* I2C */ | ||
113 | at91_add_device_i2c(); | ||
114 | /* Compact Flash */ | ||
115 | // at91_add_device_cf(&carmeva_cf_data); | ||
116 | /* SPI */ | ||
117 | // at91_add_device_spi(NULL, 0); | ||
118 | /* MMC */ | ||
119 | at91_add_device_mmc(&carmeva_mmc_data); | ||
120 | } | ||
121 | |||
122 | MACHINE_START(CARMEVA, "Carmeva") | ||
123 | /* Maintainer: Conitec Datasystems */ | ||
124 | .phys_io = AT91_BASE_SYS, | ||
125 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
126 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
127 | .timer = &at91rm9200_timer, | ||
128 | .map_io = carmeva_map_io, | ||
129 | .init_irq = carmeva_init_irq, | ||
130 | .init_machine = carmeva_board_init, | ||
131 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-csb337.c b/arch/arm/mach-at91rm9200/board-csb337.c index f45104ceea8f..e94645d77f7a 100644 --- a/arch/arm/mach-at91rm9200/board-csb337.c +++ b/arch/arm/mach-at91rm9200/board-csb337.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/mm.h> | 24 | #include <linux/mm.h> |
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/spi/spi.h> | ||
27 | 28 | ||
28 | #include <asm/hardware.h> | 29 | #include <asm/hardware.h> |
29 | #include <asm/setup.h> | 30 | #include <asm/setup.h> |
@@ -34,9 +35,9 @@ | |||
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 36 | #include <asm/mach/irq.h> |
36 | 37 | ||
37 | #include <asm/arch/hardware.h> | 38 | #include <asm/hardware.h> |
38 | #include <asm/mach/serial_at91rm9200.h> | ||
39 | #include <asm/arch/board.h> | 39 | #include <asm/arch/board.h> |
40 | #include <asm/arch/gpio.h> | ||
40 | 41 | ||
41 | #include "generic.h" | 42 | #include "generic.h" |
42 | 43 | ||
@@ -54,32 +55,24 @@ static void __init csb337_init_irq(void) | |||
54 | * 0 .. 3 = USART0 .. USART3 | 55 | * 0 .. 3 = USART0 .. USART3 |
55 | * 4 = DBGU | 56 | * 4 = DBGU |
56 | */ | 57 | */ |
57 | #define CSB337_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 58 | static struct at91_uart_config __initdata csb337_uart_config = { |
58 | #define CSB337_SERIAL_CONSOLE 0 /* ttyS0 */ | 59 | .console_tty = 0, /* ttyS0 */ |
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
59 | 63 | ||
60 | static void __init csb337_map_io(void) | 64 | static void __init csb337_map_io(void) |
61 | { | 65 | { |
62 | int serial[AT91_NR_UART] = CSB337_UART_MAP; | ||
63 | int i; | ||
64 | |||
65 | at91rm9200_map_io(); | 66 | at91rm9200_map_io(); |
66 | 67 | ||
67 | /* Initialize clocks: 3.6864 MHz crystal */ | 68 | /* Initialize clocks: 3.6864 MHz crystal */ |
68 | at91_clock_init(3686400); | 69 | at91_clock_init(3686400); |
69 | 70 | ||
70 | /* Setup the LEDs */ | 71 | /* Setup the LEDs */ |
71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 72 | at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); |
72 | 73 | ||
73 | #ifdef CONFIG_SERIAL_AT91 | 74 | /* Setup the serial ports and console */ |
74 | at91_console_port = CSB337_SERIAL_CONSOLE; | 75 | at91_init_serial(&csb337_uart_config); |
75 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
76 | |||
77 | /* Register UARTs */ | ||
78 | for (i = 0; i < AT91_NR_UART; i++) { | ||
79 | if (serial[i] >= 0) | ||
80 | at91_register_uart(i, serial[i]); | ||
81 | } | ||
82 | #endif | ||
83 | } | 76 | } |
84 | 77 | ||
85 | static struct at91_eth_data __initdata csb337_eth_data = { | 78 | static struct at91_eth_data __initdata csb337_eth_data = { |
@@ -118,17 +111,31 @@ static struct at91_mmc_data __initdata csb337_mmc_data = { | |||
118 | .wp_pin = AT91_PIN_PD6, | 111 | .wp_pin = AT91_PIN_PD6, |
119 | }; | 112 | }; |
120 | 113 | ||
114 | static struct spi_board_info csb337_spi_devices[] = { | ||
115 | { /* CAN controller */ | ||
116 | .modalias = "sak82c900", | ||
117 | .chip_select = 0, | ||
118 | .max_speed_hz = 6 * 1000 * 1000, | ||
119 | }, | ||
120 | }; | ||
121 | |||
121 | static void __init csb337_board_init(void) | 122 | static void __init csb337_board_init(void) |
122 | { | 123 | { |
124 | /* Serial */ | ||
125 | at91_add_device_serial(); | ||
123 | /* Ethernet */ | 126 | /* Ethernet */ |
124 | at91_add_device_eth(&csb337_eth_data); | 127 | at91_add_device_eth(&csb337_eth_data); |
125 | /* USB Host */ | 128 | /* USB Host */ |
126 | at91_add_device_usbh(&csb337_usbh_data); | 129 | at91_add_device_usbh(&csb337_usbh_data); |
127 | /* USB Device */ | 130 | /* USB Device */ |
128 | at91_add_device_udc(&csb337_udc_data); | 131 | at91_add_device_udc(&csb337_udc_data); |
132 | /* I2C */ | ||
133 | at91_add_device_i2c(); | ||
129 | /* Compact Flash */ | 134 | /* Compact Flash */ |
130 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ | 135 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ |
131 | at91_add_device_cf(&csb337_cf_data); | 136 | at91_add_device_cf(&csb337_cf_data); |
137 | /* SPI */ | ||
138 | at91_add_device_spi(csb337_spi_devices, ARRAY_SIZE(csb337_spi_devices)); | ||
132 | /* MMC */ | 139 | /* MMC */ |
133 | at91_add_device_mmc(&csb337_mmc_data); | 140 | at91_add_device_mmc(&csb337_mmc_data); |
134 | } | 141 | } |
diff --git a/arch/arm/mach-at91rm9200/board-csb637.c b/arch/arm/mach-at91rm9200/board-csb637.c index f2c2d6e79bc6..67d5f7786cdb 100644 --- a/arch/arm/mach-at91rm9200/board-csb637.c +++ b/arch/arm/mach-at91rm9200/board-csb637.c | |||
@@ -34,9 +34,9 @@ | |||
34 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 35 | #include <asm/mach/irq.h> |
36 | 36 | ||
37 | #include <asm/arch/hardware.h> | 37 | #include <asm/hardware.h> |
38 | #include <asm/mach/serial_at91rm9200.h> | ||
39 | #include <asm/arch/board.h> | 38 | #include <asm/arch/board.h> |
39 | #include <asm/arch/gpio.h> | ||
40 | 40 | ||
41 | #include "generic.h" | 41 | #include "generic.h" |
42 | 42 | ||
@@ -54,14 +54,14 @@ static void __init csb637_init_irq(void) | |||
54 | * 0 .. 3 = USART0 .. USART3 | 54 | * 0 .. 3 = USART0 .. USART3 |
55 | * 4 = DBGU | 55 | * 4 = DBGU |
56 | */ | 56 | */ |
57 | #define CSB637_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 57 | static struct at91_uart_config __initdata csb637_uart_config = { |
58 | #define CSB637_SERIAL_CONSOLE 0 /* ttyS0 */ | 58 | .console_tty = 0, /* ttyS0 */ |
59 | .nr_tty = 2, | ||
60 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
61 | }; | ||
59 | 62 | ||
60 | static void __init csb637_map_io(void) | 63 | static void __init csb637_map_io(void) |
61 | { | 64 | { |
62 | int serial[AT91_NR_UART] = CSB637_UART_MAP; | ||
63 | int i; | ||
64 | |||
65 | at91rm9200_map_io(); | 65 | at91rm9200_map_io(); |
66 | 66 | ||
67 | /* Initialize clocks: 3.6864 MHz crystal */ | 67 | /* Initialize clocks: 3.6864 MHz crystal */ |
@@ -70,16 +70,8 @@ static void __init csb637_map_io(void) | |||
70 | /* Setup the LEDs */ | 70 | /* Setup the LEDs */ |
71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); |
72 | 72 | ||
73 | #ifdef CONFIG_SERIAL_AT91 | 73 | /* Setup the serial ports and console */ |
74 | at91_console_port = CSB637_SERIAL_CONSOLE; | 74 | at91_init_serial(&csb637_uart_config); |
75 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
76 | |||
77 | /* Register UARTs */ | ||
78 | for (i = 0; i < AT91_NR_UART; i++) { | ||
79 | if (serial[i] >= 0) | ||
80 | at91_register_uart(i, serial[i]); | ||
81 | } | ||
82 | #endif | ||
83 | } | 75 | } |
84 | 76 | ||
85 | static struct at91_eth_data __initdata csb637_eth_data = { | 77 | static struct at91_eth_data __initdata csb637_eth_data = { |
@@ -98,12 +90,18 @@ static struct at91_udc_data __initdata csb637_udc_data = { | |||
98 | 90 | ||
99 | static void __init csb637_board_init(void) | 91 | static void __init csb637_board_init(void) |
100 | { | 92 | { |
93 | /* Serial */ | ||
94 | at91_add_device_serial(); | ||
101 | /* Ethernet */ | 95 | /* Ethernet */ |
102 | at91_add_device_eth(&csb637_eth_data); | 96 | at91_add_device_eth(&csb637_eth_data); |
103 | /* USB Host */ | 97 | /* USB Host */ |
104 | at91_add_device_usbh(&csb637_usbh_data); | 98 | at91_add_device_usbh(&csb637_usbh_data); |
105 | /* USB Device */ | 99 | /* USB Device */ |
106 | at91_add_device_udc(&csb637_udc_data); | 100 | at91_add_device_udc(&csb637_udc_data); |
101 | /* I2C */ | ||
102 | at91_add_device_i2c(); | ||
103 | /* SPI */ | ||
104 | at91_add_device_spi(NULL, 0); | ||
107 | } | 105 | } |
108 | 106 | ||
109 | MACHINE_START(CSB637, "Cogent CSB637") | 107 | MACHINE_START(CSB637, "Cogent CSB637") |
diff --git a/arch/arm/mach-at91rm9200/board-dk.c b/arch/arm/mach-at91rm9200/board-dk.c index 2d7200ed66ed..48d7390fa584 100644 --- a/arch/arm/mach-at91rm9200/board-dk.c +++ b/arch/arm/mach-at91rm9200/board-dk.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/spi/spi.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -37,9 +38,9 @@ | |||
37 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
39 | 40 | ||
40 | #include <asm/arch/hardware.h> | 41 | #include <asm/hardware.h> |
41 | #include <asm/mach/serial_at91rm9200.h> | ||
42 | #include <asm/arch/board.h> | 42 | #include <asm/arch/board.h> |
43 | #include <asm/arch/gpio.h> | ||
43 | 44 | ||
44 | #include "generic.h" | 45 | #include "generic.h" |
45 | 46 | ||
@@ -57,14 +58,14 @@ static void __init dk_init_irq(void) | |||
57 | * 0 .. 3 = USART0 .. USART3 | 58 | * 0 .. 3 = USART0 .. USART3 |
58 | * 4 = DBGU | 59 | * 4 = DBGU |
59 | */ | 60 | */ |
60 | #define DK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 61 | static struct at91_uart_config __initdata dk_uart_config = { |
61 | #define DK_SERIAL_CONSOLE 0 /* ttyS0 */ | 62 | .console_tty = 0, /* ttyS0 */ |
63 | .nr_tty = 2, | ||
64 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
65 | }; | ||
62 | 66 | ||
63 | static void __init dk_map_io(void) | 67 | static void __init dk_map_io(void) |
64 | { | 68 | { |
65 | int serial[AT91_NR_UART] = DK_UART_MAP; | ||
66 | int i; | ||
67 | |||
68 | at91rm9200_map_io(); | 69 | at91rm9200_map_io(); |
69 | 70 | ||
70 | /* Initialize clocks: 18.432 MHz crystal */ | 71 | /* Initialize clocks: 18.432 MHz crystal */ |
@@ -73,16 +74,8 @@ static void __init dk_map_io(void) | |||
73 | /* Setup the LEDs */ | 74 | /* Setup the LEDs */ |
74 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 75 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); |
75 | 76 | ||
76 | #ifdef CONFIG_SERIAL_AT91 | 77 | /* Setup the serial ports and console */ |
77 | at91_console_port = DK_SERIAL_CONSOLE; | 78 | at91_init_serial(&dk_uart_config); |
78 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
79 | |||
80 | /* Register UARTs */ | ||
81 | for (i = 0; i < AT91_NR_UART; i++) { | ||
82 | if (at91_serial_map[i] >= 0) | ||
83 | at91_register_uart(i, at91_serial_map[i]); | ||
84 | } | ||
85 | #endif | ||
86 | } | 79 | } |
87 | 80 | ||
88 | static struct at91_eth_data __initdata dk_eth_data = { | 81 | static struct at91_eth_data __initdata dk_eth_data = { |
@@ -111,16 +104,48 @@ static struct at91_mmc_data __initdata dk_mmc_data = { | |||
111 | .wire4 = 1, | 104 | .wire4 = 1, |
112 | }; | 105 | }; |
113 | 106 | ||
107 | static struct spi_board_info dk_spi_devices[] = { | ||
108 | { /* DataFlash chip */ | ||
109 | .modalias = "mtd_dataflash", | ||
110 | .chip_select = 0, | ||
111 | .max_speed_hz = 15 * 1000 * 1000, | ||
112 | }, | ||
113 | { /* UR6HCPS2-SP40 PS2-to-SPI adapter */ | ||
114 | .modalias = "ur6hcps2", | ||
115 | .chip_select = 1, | ||
116 | .max_speed_hz = 250 * 1000, | ||
117 | }, | ||
118 | { /* TLV1504 ADC, 4 channels, 10 bits; one is a temp sensor */ | ||
119 | .modalias = "tlv1504", | ||
120 | .chip_select = 2, | ||
121 | .max_speed_hz = 20 * 1000 * 1000, | ||
122 | }, | ||
123 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | ||
124 | { /* DataFlash card */ | ||
125 | .modalias = "mtd_dataflash", | ||
126 | .chip_select = 3, | ||
127 | .max_speed_hz = 15 * 1000 * 1000, | ||
128 | } | ||
129 | #endif | ||
130 | }; | ||
131 | |||
114 | static void __init dk_board_init(void) | 132 | static void __init dk_board_init(void) |
115 | { | 133 | { |
134 | /* Serial */ | ||
135 | at91_add_device_serial(); | ||
116 | /* Ethernet */ | 136 | /* Ethernet */ |
117 | at91_add_device_eth(&dk_eth_data); | 137 | at91_add_device_eth(&dk_eth_data); |
118 | /* USB Host */ | 138 | /* USB Host */ |
119 | at91_add_device_usbh(&dk_usbh_data); | 139 | at91_add_device_usbh(&dk_usbh_data); |
120 | /* USB Device */ | 140 | /* USB Device */ |
121 | at91_add_device_udc(&dk_udc_data); | 141 | at91_add_device_udc(&dk_udc_data); |
142 | at91_set_multi_drive(dk_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */ | ||
122 | /* Compact Flash */ | 143 | /* Compact Flash */ |
123 | at91_add_device_cf(&dk_cf_data); | 144 | at91_add_device_cf(&dk_cf_data); |
145 | /* I2C */ | ||
146 | at91_add_device_i2c(); | ||
147 | /* SPI */ | ||
148 | at91_add_device_spi(dk_spi_devices, ARRAY_SIZE(dk_spi_devices)); | ||
124 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | 149 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD |
125 | /* DataFlash card */ | 150 | /* DataFlash card */ |
126 | at91_set_gpio_output(AT91_PIN_PB7, 0); | 151 | at91_set_gpio_output(AT91_PIN_PB7, 0); |
diff --git a/arch/arm/mach-at91rm9200/board-eb9200.c b/arch/arm/mach-at91rm9200/board-eb9200.c new file mode 100644 index 000000000000..a3e2df968a66 --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-eb9200.c | |||
@@ -0,0 +1,130 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-eb9200.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People, adapted for ATEB9200 from Embest | ||
5 | * by Andrew Patrikalakis | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init eb9200_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(BGA_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata eb9200_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init eb9200_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 18.432 MHz crystal */ | ||
69 | at91_clock_init(18432000); | ||
70 | |||
71 | /* Setup the serial ports and console */ | ||
72 | at91_init_serial(&eb9200_uart_config); | ||
73 | } | ||
74 | |||
75 | static struct at91_eth_data __initdata eb9200_eth_data = { | ||
76 | .phy_irq_pin = AT91_PIN_PC4, | ||
77 | .is_rmii = 1, | ||
78 | }; | ||
79 | |||
80 | static struct at91_usbh_data __initdata eb9200_usbh_data = { | ||
81 | .ports = 2, | ||
82 | }; | ||
83 | |||
84 | static struct at91_udc_data __initdata eb9200_udc_data = { | ||
85 | .vbus_pin = AT91_PIN_PD4, | ||
86 | .pullup_pin = AT91_PIN_PD5, | ||
87 | }; | ||
88 | |||
89 | static struct at91_cf_data __initdata eb9200_cf_data = { | ||
90 | .det_pin = AT91_PIN_PB0, | ||
91 | .rst_pin = AT91_PIN_PC5, | ||
92 | // .irq_pin = ... not connected | ||
93 | // .vcc_pin = ... always powered | ||
94 | }; | ||
95 | |||
96 | static struct at91_mmc_data __initdata eb9200_mmc_data = { | ||
97 | .is_b = 0, | ||
98 | .wire4 = 1, | ||
99 | }; | ||
100 | |||
101 | static void __init eb9200_board_init(void) | ||
102 | { | ||
103 | /* Serial */ | ||
104 | at91_add_device_serial(); | ||
105 | /* Ethernet */ | ||
106 | at91_add_device_eth(&eb9200_eth_data); | ||
107 | /* USB Host */ | ||
108 | at91_add_device_usbh(&eb9200_usbh_data); | ||
109 | /* USB Device */ | ||
110 | at91_add_device_udc(&eb9200_udc_data); | ||
111 | /* I2C */ | ||
112 | at91_add_device_i2c(); | ||
113 | /* Compact Flash */ | ||
114 | at91_add_device_cf(&eb9200_cf_data); | ||
115 | /* SPI */ | ||
116 | at91_add_device_spi(NULL, 0); | ||
117 | /* MMC */ | ||
118 | /* only supports 1 or 4 bit interface, not wired through to SPI */ | ||
119 | at91_add_device_mmc(&eb9200_mmc_data); | ||
120 | } | ||
121 | |||
122 | MACHINE_START(ATEB9200, "Embest ATEB9200") | ||
123 | .phys_io = AT91_BASE_SYS, | ||
124 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
125 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
126 | .timer = &at91rm9200_timer, | ||
127 | .map_io = eb9200_map_io, | ||
128 | .init_irq = eb9200_init_irq, | ||
129 | .init_machine = eb9200_board_init, | ||
130 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-ek.c b/arch/arm/mach-at91rm9200/board-ek.c index 80d90f5135a1..72202ed830ad 100644 --- a/arch/arm/mach-at91rm9200/board-ek.c +++ b/arch/arm/mach-at91rm9200/board-ek.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/spi/spi.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -37,9 +38,9 @@ | |||
37 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
39 | 40 | ||
40 | #include <asm/arch/hardware.h> | 41 | #include <asm/hardware.h> |
41 | #include <asm/mach/serial_at91rm9200.h> | ||
42 | #include <asm/arch/board.h> | 42 | #include <asm/arch/board.h> |
43 | #include <asm/arch/gpio.h> | ||
43 | 44 | ||
44 | #include "generic.h" | 45 | #include "generic.h" |
45 | 46 | ||
@@ -57,14 +58,14 @@ static void __init ek_init_irq(void) | |||
57 | * 0 .. 3 = USART0 .. USART3 | 58 | * 0 .. 3 = USART0 .. USART3 |
58 | * 4 = DBGU | 59 | * 4 = DBGU |
59 | */ | 60 | */ |
60 | #define EK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 61 | static struct at91_uart_config __initdata ek_uart_config = { |
61 | #define EK_SERIAL_CONSOLE 0 /* ttyS0 */ | 62 | .console_tty = 0, /* ttyS0 */ |
63 | .nr_tty = 2, | ||
64 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
65 | }; | ||
62 | 66 | ||
63 | static void __init ek_map_io(void) | 67 | static void __init ek_map_io(void) |
64 | { | 68 | { |
65 | int serial[AT91_NR_UART] = EK_UART_MAP; | ||
66 | int i; | ||
67 | |||
68 | at91rm9200_map_io(); | 69 | at91rm9200_map_io(); |
69 | 70 | ||
70 | /* Initialize clocks: 18.432 MHz crystal */ | 71 | /* Initialize clocks: 18.432 MHz crystal */ |
@@ -73,16 +74,8 @@ static void __init ek_map_io(void) | |||
73 | /* Setup the LEDs */ | 74 | /* Setup the LEDs */ |
74 | at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); | 75 | at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); |
75 | 76 | ||
76 | #ifdef CONFIG_SERIAL_AT91 | 77 | /* Setup the serial ports and console */ |
77 | at91_console_port = EK_SERIAL_CONSOLE; | 78 | at91_init_serial(&ek_uart_config); |
78 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
79 | |||
80 | /* Register UARTs */ | ||
81 | for (i = 0; i < AT91_NR_UART; i++) { | ||
82 | if (serial[i] >= 0) | ||
83 | at91_register_uart(i, serial[i]); | ||
84 | } | ||
85 | #endif | ||
86 | } | 79 | } |
87 | 80 | ||
88 | static struct at91_eth_data __initdata ek_eth_data = { | 81 | static struct at91_eth_data __initdata ek_eth_data = { |
@@ -106,14 +99,36 @@ static struct at91_mmc_data __initdata ek_mmc_data = { | |||
106 | .wp_pin = AT91_PIN_PA17, | 99 | .wp_pin = AT91_PIN_PA17, |
107 | }; | 100 | }; |
108 | 101 | ||
102 | static struct spi_board_info ek_spi_devices[] = { | ||
103 | { /* DataFlash chip */ | ||
104 | .modalias = "mtd_dataflash", | ||
105 | .chip_select = 0, | ||
106 | .max_speed_hz = 15 * 1000 * 1000, | ||
107 | }, | ||
108 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | ||
109 | { /* DataFlash card */ | ||
110 | .modalias = "mtd_dataflash", | ||
111 | .chip_select = 3, | ||
112 | .max_speed_hz = 15 * 1000 * 1000, | ||
113 | }, | ||
114 | #endif | ||
115 | }; | ||
116 | |||
109 | static void __init ek_board_init(void) | 117 | static void __init ek_board_init(void) |
110 | { | 118 | { |
119 | /* Serial */ | ||
120 | at91_add_device_serial(); | ||
111 | /* Ethernet */ | 121 | /* Ethernet */ |
112 | at91_add_device_eth(&ek_eth_data); | 122 | at91_add_device_eth(&ek_eth_data); |
113 | /* USB Host */ | 123 | /* USB Host */ |
114 | at91_add_device_usbh(&ek_usbh_data); | 124 | at91_add_device_usbh(&ek_usbh_data); |
115 | /* USB Device */ | 125 | /* USB Device */ |
116 | at91_add_device_udc(&ek_udc_data); | 126 | at91_add_device_udc(&ek_udc_data); |
127 | at91_set_multi_drive(ek_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */ | ||
128 | /* I2C */ | ||
129 | at91_add_device_i2c(); | ||
130 | /* SPI */ | ||
131 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | ||
117 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | 132 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD |
118 | /* DataFlash card */ | 133 | /* DataFlash card */ |
119 | at91_set_gpio_output(AT91_PIN_PB22, 0); | 134 | at91_set_gpio_output(AT91_PIN_PB22, 0); |
diff --git a/arch/arm/mach-at91rm9200/board-kafa.c b/arch/arm/mach-at91rm9200/board-kafa.c new file mode 100644 index 000000000000..bf760c5e0c46 --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-kafa.c | |||
@@ -0,0 +1,116 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-kafa.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Sperry-Sun | ||
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, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/config.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/mm.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/platform_device.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/setup.h> | ||
30 | #include <asm/mach-types.h> | ||
31 | #include <asm/irq.h> | ||
32 | |||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | #include <asm/mach/irq.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | #include <asm/arch/board.h> | ||
39 | #include <asm/arch/gpio.h> | ||
40 | |||
41 | #include "generic.h" | ||
42 | |||
43 | static void __init kafa_init_irq(void) | ||
44 | { | ||
45 | /* Initialize AIC controller */ | ||
46 | at91rm9200_init_irq(NULL); | ||
47 | |||
48 | /* Set up the GPIO interrupts */ | ||
49 | at91_gpio_irq_setup(PQFP_GPIO_BANKS); | ||
50 | } | ||
51 | |||
52 | /* | ||
53 | * Serial port configuration. | ||
54 | * 0 .. 3 = USART0 .. USART3 | ||
55 | * 4 = DBGU | ||
56 | */ | ||
57 | static struct at91_uart_config __initdata kafa_uart_config = { | ||
58 | .console_tty = 0, /* ttyS0 */ | ||
59 | .nr_tty = 2, | ||
60 | .tty_map = { 4, 0, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
61 | }; | ||
62 | |||
63 | static void __init kafa_map_io(void) | ||
64 | { | ||
65 | at91rm9200_map_io(); | ||
66 | |||
67 | /* Initialize clocks: 18.432 MHz crystal */ | ||
68 | at91_clock_init(18432000); | ||
69 | |||
70 | /* Set up the LEDs */ | ||
71 | at91_init_leds(AT91_PIN_PB4, AT91_PIN_PB4); | ||
72 | |||
73 | /* Setup the serial ports and console */ | ||
74 | at91_init_serial(&kafa_uart_config); | ||
75 | } | ||
76 | |||
77 | static struct at91_eth_data __initdata kafa_eth_data = { | ||
78 | .phy_irq_pin = AT91_PIN_PC4, | ||
79 | .is_rmii = 0, | ||
80 | }; | ||
81 | |||
82 | static struct at91_usbh_data __initdata kafa_usbh_data = { | ||
83 | .ports = 1, | ||
84 | }; | ||
85 | |||
86 | static struct at91_udc_data __initdata kafa_udc_data = { | ||
87 | .vbus_pin = AT91_PIN_PB6, | ||
88 | .pullup_pin = AT91_PIN_PB7, | ||
89 | }; | ||
90 | |||
91 | static void __init kafa_board_init(void) | ||
92 | { | ||
93 | /* Serial */ | ||
94 | at91_add_device_serial(); | ||
95 | /* Ethernet */ | ||
96 | at91_add_device_eth(&kafa_eth_data); | ||
97 | /* USB Host */ | ||
98 | at91_add_device_usbh(&kafa_usbh_data); | ||
99 | /* USB Device */ | ||
100 | at91_add_device_udc(&kafa_udc_data); | ||
101 | /* I2C */ | ||
102 | at91_add_device_i2c(); | ||
103 | /* SPI */ | ||
104 | at91_add_device_spi(NULL, 0); | ||
105 | } | ||
106 | |||
107 | MACHINE_START(KAFA, "Sperry-Sun KAFA") | ||
108 | /* Maintainer: Sergei Sharonov */ | ||
109 | .phys_io = AT91_BASE_SYS, | ||
110 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
111 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
112 | .timer = &at91rm9200_timer, | ||
113 | .map_io = kafa_map_io, | ||
114 | .init_irq = kafa_init_irq, | ||
115 | .init_machine = kafa_board_init, | ||
116 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-kb9202.c b/arch/arm/mach-at91rm9200/board-kb9202.c new file mode 100644 index 000000000000..f06d2b54cc9a --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-kb9202.c | |||
@@ -0,0 +1,125 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-kb9202.c | ||
3 | * | ||
4 | * Copyright (c) 2005 kb_admin | ||
5 | * KwikByte, Inc. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/platform_device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init kb9202_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(PQFP_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata kb9202_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 3, | ||
61 | .tty_map = { 4, 0, 1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init kb9202_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 10 MHz crystal */ | ||
69 | at91_clock_init(10000000); | ||
70 | |||
71 | /* Set up the LEDs */ | ||
72 | at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); | ||
73 | |||
74 | /* Setup the serial ports and console */ | ||
75 | at91_init_serial(&kb9202_uart_config); | ||
76 | } | ||
77 | |||
78 | static struct at91_eth_data __initdata kb9202_eth_data = { | ||
79 | .phy_irq_pin = AT91_PIN_PB29, | ||
80 | .is_rmii = 0, | ||
81 | }; | ||
82 | |||
83 | static struct at91_usbh_data __initdata kb9202_usbh_data = { | ||
84 | .ports = 1, | ||
85 | }; | ||
86 | |||
87 | static struct at91_udc_data __initdata kb9202_udc_data = { | ||
88 | .vbus_pin = AT91_PIN_PB24, | ||
89 | .pullup_pin = AT91_PIN_PB22, | ||
90 | }; | ||
91 | |||
92 | static struct at91_mmc_data __initdata kb9202_mmc_data = { | ||
93 | .det_pin = AT91_PIN_PB2, | ||
94 | .is_b = 0, | ||
95 | .wire4 = 1, | ||
96 | }; | ||
97 | |||
98 | static void __init kb9202_board_init(void) | ||
99 | { | ||
100 | /* Serial */ | ||
101 | at91_add_device_serial(); | ||
102 | /* Ethernet */ | ||
103 | at91_add_device_eth(&kb9202_eth_data); | ||
104 | /* USB Host */ | ||
105 | at91_add_device_usbh(&kb9202_usbh_data); | ||
106 | /* USB Device */ | ||
107 | at91_add_device_udc(&kb9202_udc_data); | ||
108 | /* MMC */ | ||
109 | at91_add_device_mmc(&kb9202_mmc_data); | ||
110 | /* I2C */ | ||
111 | at91_add_device_i2c(); | ||
112 | /* SPI */ | ||
113 | at91_add_device_spi(NULL, 0); | ||
114 | } | ||
115 | |||
116 | MACHINE_START(KB9200, "KB920x") | ||
117 | /* Maintainer: KwikByte, Inc. */ | ||
118 | .phys_io = AT91_BASE_SYS, | ||
119 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
120 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
121 | .timer = &at91rm9200_timer, | ||
122 | .map_io = kb9202_map_io, | ||
123 | .init_irq = kb9202_init_irq, | ||
124 | .init_machine = kb9202_board_init, | ||
125 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/clock.c b/arch/arm/mach-at91rm9200/clock.c index 8b95467c6d61..edc2cc837ae6 100644 --- a/arch/arm/mach-at91rm9200/clock.c +++ b/arch/arm/mach-at91rm9200/clock.c | |||
@@ -27,12 +27,10 @@ | |||
27 | #include <asm/io.h> | 27 | #include <asm/io.h> |
28 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
29 | 29 | ||
30 | #include <asm/arch/hardware.h> | 30 | #include <asm/hardware.h> |
31 | #include <asm/arch/board.h> /* for master clock global */ | ||
32 | 31 | ||
33 | #include "generic.h" | 32 | #include "generic.h" |
34 | 33 | ||
35 | #undef DEBUG | ||
36 | 34 | ||
37 | /* | 35 | /* |
38 | * There's a lot more which can be done with clocks, including cpufreq | 36 | * There's a lot more which can be done with clocks, including cpufreq |
@@ -41,7 +39,9 @@ | |||
41 | */ | 39 | */ |
42 | 40 | ||
43 | struct clk { | 41 | struct clk { |
44 | const char *name; | 42 | const char *name; /* unique clock name */ |
43 | const char *function; /* function of the clock */ | ||
44 | struct device *dev; /* device associated with function */ | ||
45 | unsigned long rate_hz; | 45 | unsigned long rate_hz; |
46 | struct clk *parent; | 46 | struct clk *parent; |
47 | u32 pmc_mask; | 47 | u32 pmc_mask; |
@@ -71,15 +71,14 @@ static struct clk clk32k = { | |||
71 | }; | 71 | }; |
72 | static struct clk main_clk = { | 72 | static struct clk main_clk = { |
73 | .name = "main", | 73 | .name = "main", |
74 | .pmc_mask = 1 << 0, /* in PMC_SR */ | 74 | .pmc_mask = AT91_PMC_MOSCS, /* in PMC_SR */ |
75 | .users = 1, | ||
76 | .id = 1, | 75 | .id = 1, |
77 | .primary = 1, | 76 | .primary = 1, |
78 | }; | 77 | }; |
79 | static struct clk plla = { | 78 | static struct clk plla = { |
80 | .name = "plla", | 79 | .name = "plla", |
81 | .parent = &main_clk, | 80 | .parent = &main_clk, |
82 | .pmc_mask = 1 << 1, /* in PMC_SR */ | 81 | .pmc_mask = AT91_PMC_LOCKA, /* in PMC_SR */ |
83 | .id = 2, | 82 | .id = 2, |
84 | .primary = 1, | 83 | .primary = 1, |
85 | .pll = 1, | 84 | .pll = 1, |
@@ -105,7 +104,7 @@ static void pllb_mode(struct clk *clk, int is_on) | |||
105 | static struct clk pllb = { | 104 | static struct clk pllb = { |
106 | .name = "pllb", | 105 | .name = "pllb", |
107 | .parent = &main_clk, | 106 | .parent = &main_clk, |
108 | .pmc_mask = 1 << 2, /* in PMC_SR */ | 107 | .pmc_mask = AT91_PMC_LOCKB, /* in PMC_SR */ |
109 | .mode = pllb_mode, | 108 | .mode = pllb_mode, |
110 | .id = 3, | 109 | .id = 3, |
111 | .primary = 1, | 110 | .primary = 1, |
@@ -177,8 +176,7 @@ static struct clk pck3 = { | |||
177 | */ | 176 | */ |
178 | static struct clk mck = { | 177 | static struct clk mck = { |
179 | .name = "mck", | 178 | .name = "mck", |
180 | .pmc_mask = 1 << 3, /* in PMC_SR */ | 179 | .pmc_mask = AT91_PMC_MCKRDY, /* in PMC_SR */ |
181 | .users = 1, /* (must be) always on */ | ||
182 | }; | 180 | }; |
183 | 181 | ||
184 | static void pmc_periph_mode(struct clk *clk, int is_on) | 182 | static void pmc_periph_mode(struct clk *clk, int is_on) |
@@ -249,6 +247,30 @@ static struct clk spi_clk = { | |||
249 | .pmc_mask = 1 << AT91_ID_SPI, | 247 | .pmc_mask = 1 << AT91_ID_SPI, |
250 | .mode = pmc_periph_mode, | 248 | .mode = pmc_periph_mode, |
251 | }; | 249 | }; |
250 | static struct clk pioA_clk = { | ||
251 | .name = "pioA_clk", | ||
252 | .parent = &mck, | ||
253 | .pmc_mask = 1 << AT91_ID_PIOA, | ||
254 | .mode = pmc_periph_mode, | ||
255 | }; | ||
256 | static struct clk pioB_clk = { | ||
257 | .name = "pioB_clk", | ||
258 | .parent = &mck, | ||
259 | .pmc_mask = 1 << AT91_ID_PIOB, | ||
260 | .mode = pmc_periph_mode, | ||
261 | }; | ||
262 | static struct clk pioC_clk = { | ||
263 | .name = "pioC_clk", | ||
264 | .parent = &mck, | ||
265 | .pmc_mask = 1 << AT91_ID_PIOC, | ||
266 | .mode = pmc_periph_mode, | ||
267 | }; | ||
268 | static struct clk pioD_clk = { | ||
269 | .name = "pioD_clk", | ||
270 | .parent = &mck, | ||
271 | .pmc_mask = 1 << AT91_ID_PIOD, | ||
272 | .mode = pmc_periph_mode, | ||
273 | }; | ||
252 | 274 | ||
253 | static struct clk *const clock_list[] = { | 275 | static struct clk *const clock_list[] = { |
254 | /* four primary clocks -- MUST BE FIRST! */ | 276 | /* four primary clocks -- MUST BE FIRST! */ |
@@ -279,21 +301,46 @@ static struct clk *const clock_list[] = { | |||
279 | &udc_clk, | 301 | &udc_clk, |
280 | &twi_clk, | 302 | &twi_clk, |
281 | &spi_clk, | 303 | &spi_clk, |
304 | &pioA_clk, | ||
305 | &pioB_clk, | ||
306 | &pioC_clk, | ||
307 | &pioD_clk, | ||
282 | // ssc0..ssc2 | 308 | // ssc0..ssc2 |
283 | // tc0..tc5 | 309 | // tc0..tc5 |
310 | // irq0..irq6 | ||
284 | &ohci_clk, | 311 | &ohci_clk, |
285 | ðer_clk, | 312 | ðer_clk, |
286 | }; | 313 | }; |
287 | 314 | ||
288 | 315 | ||
316 | /* | ||
317 | * Associate a particular clock with a function (eg, "uart") and device. | ||
318 | * The drivers can then request the same 'function' with several different | ||
319 | * devices and not care about which clock name to use. | ||
320 | */ | ||
321 | void __init at91_clock_associate(const char *id, struct device *dev, const char *func) | ||
322 | { | ||
323 | struct clk *clk = clk_get(NULL, id); | ||
324 | |||
325 | if (!dev || !clk || !IS_ERR(clk_get(dev, func))) | ||
326 | return; | ||
327 | |||
328 | clk->function = func; | ||
329 | clk->dev = dev; | ||
330 | } | ||
331 | |||
289 | /* clocks are all static for now; no refcounting necessary */ | 332 | /* clocks are all static for now; no refcounting necessary */ |
290 | struct clk *clk_get(struct device *dev, const char *id) | 333 | struct clk *clk_get(struct device *dev, const char *id) |
291 | { | 334 | { |
292 | int i; | 335 | int i; |
293 | 336 | ||
294 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { | 337 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { |
295 | if (strcmp(id, clock_list[i]->name) == 0) | 338 | struct clk *clk = clock_list[i]; |
296 | return clock_list[i]; | 339 | |
340 | if (strcmp(id, clk->name) == 0) | ||
341 | return clk; | ||
342 | if (clk->function && (dev == clk->dev) && strcmp(id, clk->function) == 0) | ||
343 | return clk; | ||
297 | } | 344 | } |
298 | 345 | ||
299 | return ERR_PTR(-ENOENT); | 346 | return ERR_PTR(-ENOENT); |
@@ -593,6 +640,30 @@ fail: | |||
593 | return 0; | 640 | return 0; |
594 | } | 641 | } |
595 | 642 | ||
643 | |||
644 | /* | ||
645 | * Several unused clocks may be active. Turn them off. | ||
646 | */ | ||
647 | static void at91_periphclk_reset(void) | ||
648 | { | ||
649 | unsigned long reg; | ||
650 | int i; | ||
651 | |||
652 | reg = at91_sys_read(AT91_PMC_PCSR); | ||
653 | |||
654 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { | ||
655 | struct clk *clk = clock_list[i]; | ||
656 | |||
657 | if (clk->mode != pmc_periph_mode) | ||
658 | continue; | ||
659 | |||
660 | if (clk->users > 0) | ||
661 | reg &= ~clk->pmc_mask; | ||
662 | } | ||
663 | |||
664 | at91_sys_write(AT91_PMC_PCDR, reg); | ||
665 | } | ||
666 | |||
596 | int __init at91_clock_init(unsigned long main_clock) | 667 | int __init at91_clock_init(unsigned long main_clock) |
597 | { | 668 | { |
598 | unsigned tmp, freq, mckr; | 669 | unsigned tmp, freq, mckr; |
@@ -626,7 +697,6 @@ int __init at91_clock_init(unsigned long main_clock) | |||
626 | */ | 697 | */ |
627 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; | 698 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; |
628 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); | 699 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); |
629 | at91_sys_write(AT91_PMC_PCDR, (1 << AT91_ID_UHP) | (1 << AT91_ID_UDP)); | ||
630 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP); | 700 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP); |
631 | at91_sys_write(AT91_CKGR_PLLBR, 0); | 701 | at91_sys_write(AT91_CKGR_PLLBR, 0); |
632 | at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP); | 702 | at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP); |
@@ -640,19 +710,18 @@ int __init at91_clock_init(unsigned long main_clock) | |||
640 | */ | 710 | */ |
641 | mckr = at91_sys_read(AT91_PMC_MCKR); | 711 | mckr = at91_sys_read(AT91_PMC_MCKR); |
642 | mck.parent = clock_list[mckr & AT91_PMC_CSS]; | 712 | mck.parent = clock_list[mckr & AT91_PMC_CSS]; |
643 | mck.parent->users++; | ||
644 | freq = mck.parent->rate_hz; | 713 | freq = mck.parent->rate_hz; |
645 | freq /= (1 << ((mckr >> 2) & 3)); /* prescale */ | 714 | freq /= (1 << ((mckr >> 2) & 3)); /* prescale */ |
646 | mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */ | 715 | mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */ |
647 | 716 | ||
717 | /* MCK and CPU clock are "always on" */ | ||
718 | clk_enable(&mck); | ||
719 | |||
648 | printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", | 720 | printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", |
649 | freq / 1000000, (unsigned) mck.rate_hz / 1000000, | 721 | freq / 1000000, (unsigned) mck.rate_hz / 1000000, |
650 | (unsigned) main_clock / 1000000, | 722 | (unsigned) main_clock / 1000000, |
651 | ((unsigned) main_clock % 1000000) / 1000); | 723 | ((unsigned) main_clock % 1000000) / 1000); |
652 | 724 | ||
653 | /* FIXME get rid of master_clock global */ | ||
654 | at91_master_clock = mck.rate_hz; | ||
655 | |||
656 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | 725 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS |
657 | /* establish PCK0..PCK3 parentage */ | 726 | /* establish PCK0..PCK3 parentage */ |
658 | for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) { | 727 | for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) { |
@@ -663,19 +732,28 @@ int __init at91_clock_init(unsigned long main_clock) | |||
663 | continue; | 732 | continue; |
664 | 733 | ||
665 | pckr = at91_sys_read(AT91_PMC_PCKR(clk->id)); | 734 | pckr = at91_sys_read(AT91_PMC_PCKR(clk->id)); |
666 | parent = clock_list[pckr & 3]; | 735 | parent = clock_list[pckr & AT91_PMC_CSS]; |
667 | clk->parent = parent; | 736 | clk->parent = parent; |
668 | clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3)); | 737 | clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3)); |
738 | |||
739 | if (clk->users == 0) { | ||
740 | /* not being used, so switch it off */ | ||
741 | at91_sys_write(AT91_PMC_SCDR, clk->pmc_mask); | ||
742 | } | ||
669 | } | 743 | } |
670 | #else | 744 | #else |
671 | /* disable unused clocks */ | 745 | /* disable all programmable clocks */ |
672 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3); | 746 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3); |
673 | #endif /* CONFIG_AT91_PROGRAMMABLE_CLOCKS */ | 747 | #endif |
674 | 748 | ||
675 | /* FIXME several unused clocks may still be active... provide | 749 | /* enable the PIO clocks */ |
676 | * a CONFIG option to turn off all unused clocks at some point | 750 | clk_enable(&pioA_clk); |
677 | * before driver init starts. | 751 | clk_enable(&pioB_clk); |
678 | */ | 752 | clk_enable(&pioC_clk); |
753 | clk_enable(&pioD_clk); | ||
754 | |||
755 | /* disable all other unused peripheral clocks */ | ||
756 | at91_periphclk_reset(); | ||
679 | 757 | ||
680 | return 0; | 758 | return 0; |
681 | } | 759 | } |
diff --git a/arch/arm/mach-at91rm9200/common.c b/arch/arm/mach-at91rm9200/common.c index 3848fd2d5596..e836f8537a1d 100644 --- a/arch/arm/mach-at91rm9200/common.c +++ b/arch/arm/mach-at91rm9200/common.c | |||
@@ -16,7 +16,8 @@ | |||
16 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
18 | 18 | ||
19 | #include <asm/arch/hardware.h> | 19 | #include <asm/hardware.h> |
20 | #include "generic.h" | ||
20 | 21 | ||
21 | static struct map_desc at91rm9200_io_desc[] __initdata = { | 22 | static struct map_desc at91rm9200_io_desc[] __initdata = { |
22 | { | 23 | { |
@@ -94,6 +95,11 @@ static struct map_desc at91rm9200_io_desc[] __initdata = { | |||
94 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), | 95 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), |
95 | .length = SZ_16K, | 96 | .length = SZ_16K, |
96 | .type = MT_DEVICE, | 97 | .type = MT_DEVICE, |
98 | }, { | ||
99 | .virtual = AT91_SRAM_VIRT_BASE, | ||
100 | .pfn = __phys_to_pfn(AT91_SRAM_BASE), | ||
101 | .length = AT91_SRAM_SIZE, | ||
102 | .type = MT_DEVICE, | ||
97 | }, | 103 | }, |
98 | }; | 104 | }; |
99 | 105 | ||
@@ -102,14 +108,3 @@ void __init at91rm9200_map_io(void) | |||
102 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); | 108 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); |
103 | } | 109 | } |
104 | 110 | ||
105 | |||
106 | unsigned long at91_master_clock; | ||
107 | |||
108 | EXPORT_SYMBOL(at91_master_clock); | ||
109 | |||
110 | |||
111 | int at91_serial_map[AT91_NR_UART]; | ||
112 | int at91_console_port; | ||
113 | |||
114 | EXPORT_SYMBOL(at91_serial_map); | ||
115 | EXPORT_SYMBOL(at91_console_port); | ||
diff --git a/arch/arm/mach-at91rm9200/devices.c b/arch/arm/mach-at91rm9200/devices.c index bfe47bd6e50c..1cf85d231baa 100644 --- a/arch/arm/mach-at91rm9200/devices.c +++ b/arch/arm/mach-at91rm9200/devices.c | |||
@@ -16,9 +16,15 @@ | |||
16 | #include <linux/config.h> | 16 | #include <linux/config.h> |
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | 18 | ||
19 | #include <asm/hardware.h> | ||
19 | #include <asm/arch/board.h> | 20 | #include <asm/arch/board.h> |
20 | #include <asm/arch/pio.h> | 21 | #include <asm/arch/gpio.h> |
21 | 22 | ||
23 | #include "generic.h" | ||
24 | |||
25 | #define SZ_512 0x00000200 | ||
26 | #define SZ_256 0x00000100 | ||
27 | #define SZ_16 0x00000010 | ||
22 | 28 | ||
23 | /* -------------------------------------------------------------------- | 29 | /* -------------------------------------------------------------------- |
24 | * USB Host | 30 | * USB Host |
@@ -28,7 +34,7 @@ | |||
28 | static u64 ohci_dmamask = 0xffffffffUL; | 34 | static u64 ohci_dmamask = 0xffffffffUL; |
29 | static struct at91_usbh_data usbh_data; | 35 | static struct at91_usbh_data usbh_data; |
30 | 36 | ||
31 | static struct resource at91_usbh_resource[] = { | 37 | static struct resource at91_usbh_resources[] = { |
32 | [0] = { | 38 | [0] = { |
33 | .start = AT91_UHP_BASE, | 39 | .start = AT91_UHP_BASE, |
34 | .end = AT91_UHP_BASE + SZ_1M - 1, | 40 | .end = AT91_UHP_BASE + SZ_1M - 1, |
@@ -42,15 +48,15 @@ static struct resource at91_usbh_resource[] = { | |||
42 | }; | 48 | }; |
43 | 49 | ||
44 | static struct platform_device at91rm9200_usbh_device = { | 50 | static struct platform_device at91rm9200_usbh_device = { |
45 | .name = "at91rm9200-ohci", | 51 | .name = "at91_ohci", |
46 | .id = -1, | 52 | .id = -1, |
47 | .dev = { | 53 | .dev = { |
48 | .dma_mask = &ohci_dmamask, | 54 | .dma_mask = &ohci_dmamask, |
49 | .coherent_dma_mask = 0xffffffff, | 55 | .coherent_dma_mask = 0xffffffff, |
50 | .platform_data = &usbh_data, | 56 | .platform_data = &usbh_data, |
51 | }, | 57 | }, |
52 | .resource = at91_usbh_resource, | 58 | .resource = at91_usbh_resources, |
53 | .num_resources = ARRAY_SIZE(at91_usbh_resource), | 59 | .num_resources = ARRAY_SIZE(at91_usbh_resources), |
54 | }; | 60 | }; |
55 | 61 | ||
56 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | 62 | void __init at91_add_device_usbh(struct at91_usbh_data *data) |
@@ -74,11 +80,16 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {} | |||
74 | static struct at91_udc_data udc_data; | 80 | static struct at91_udc_data udc_data; |
75 | 81 | ||
76 | static struct resource at91_udc_resources[] = { | 82 | static struct resource at91_udc_resources[] = { |
77 | { | 83 | [0] = { |
78 | .start = AT91_BASE_UDP, | 84 | .start = AT91_BASE_UDP, |
79 | .end = AT91_BASE_UDP + SZ_16K - 1, | 85 | .end = AT91_BASE_UDP + SZ_16K - 1, |
80 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
81 | } | 87 | }, |
88 | [1] = { | ||
89 | .start = AT91_ID_UDP, | ||
90 | .end = AT91_ID_UDP, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
82 | }; | 93 | }; |
83 | 94 | ||
84 | static struct platform_device at91rm9200_udc_device = { | 95 | static struct platform_device at91rm9200_udc_device = { |
@@ -100,10 +111,8 @@ void __init at91_add_device_udc(struct at91_udc_data *data) | |||
100 | at91_set_gpio_input(data->vbus_pin, 0); | 111 | at91_set_gpio_input(data->vbus_pin, 0); |
101 | at91_set_deglitch(data->vbus_pin, 1); | 112 | at91_set_deglitch(data->vbus_pin, 1); |
102 | } | 113 | } |
103 | if (data->pullup_pin) { | 114 | if (data->pullup_pin) |
104 | at91_set_gpio_output(data->pullup_pin, 0); | 115 | at91_set_gpio_output(data->pullup_pin, 0); |
105 | at91_set_multi_drive(data->pullup_pin, 1); | ||
106 | } | ||
107 | 116 | ||
108 | udc_data = *data; | 117 | udc_data = *data; |
109 | platform_device_register(&at91rm9200_udc_device); | 118 | platform_device_register(&at91rm9200_udc_device); |
@@ -197,7 +206,7 @@ static struct at91_cf_data cf_data; | |||
197 | static struct resource at91_cf_resources[] = { | 206 | static struct resource at91_cf_resources[] = { |
198 | [0] = { | 207 | [0] = { |
199 | .start = AT91_CF_BASE, | 208 | .start = AT91_CF_BASE, |
200 | /* ties up CS4, CS5, and CS6 */ | 209 | /* ties up CS4, CS5 and CS6 */ |
201 | .end = AT91_CF_BASE + (0x30000000 - 1), | 210 | .end = AT91_CF_BASE + (0x30000000 - 1), |
202 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, | 211 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, |
203 | }, | 212 | }, |
@@ -231,6 +240,12 @@ void __init at91_add_device_cf(struct at91_cf_data *data) | |||
231 | at91_set_gpio_output(data->vcc_pin, 0); | 240 | at91_set_gpio_output(data->vcc_pin, 0); |
232 | at91_set_gpio_output(data->rst_pin, 0); | 241 | at91_set_gpio_output(data->rst_pin, 0); |
233 | 242 | ||
243 | /* force poweron defaults for these pins ... */ | ||
244 | at91_set_A_periph(AT91_PIN_PC9, 0); /* A25/CFRNW */ | ||
245 | at91_set_A_periph(AT91_PIN_PC10, 0); /* NCS4/CFCS */ | ||
246 | at91_set_A_periph(AT91_PIN_PC11, 0); /* NCS5/CFCE1 */ | ||
247 | at91_set_A_periph(AT91_PIN_PC12, 0); /* NCS6/CFCE2 */ | ||
248 | |||
234 | cf_data = *data; | 249 | cf_data = *data; |
235 | platform_device_register(&at91rm9200_cf_device); | 250 | platform_device_register(&at91rm9200_cf_device); |
236 | } | 251 | } |
@@ -319,6 +334,7 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data) | |||
319 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} | 334 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} |
320 | #endif | 335 | #endif |
321 | 336 | ||
337 | |||
322 | /* -------------------------------------------------------------------- | 338 | /* -------------------------------------------------------------------- |
323 | * NAND / SmartMedia | 339 | * NAND / SmartMedia |
324 | * -------------------------------------------------------------------- */ | 340 | * -------------------------------------------------------------------- */ |
@@ -400,22 +416,110 @@ void __init at91_add_device_i2c(void) {} | |||
400 | 416 | ||
401 | 417 | ||
402 | /* -------------------------------------------------------------------- | 418 | /* -------------------------------------------------------------------- |
419 | * SPI | ||
420 | * -------------------------------------------------------------------- */ | ||
421 | |||
422 | #if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE) | ||
423 | static u64 spi_dmamask = 0xffffffffUL; | ||
424 | |||
425 | static struct resource at91_spi_resources[] = { | ||
426 | [0] = { | ||
427 | .start = AT91_BASE_SPI, | ||
428 | .end = AT91_BASE_SPI + SZ_16K - 1, | ||
429 | .flags = IORESOURCE_MEM, | ||
430 | }, | ||
431 | [1] = { | ||
432 | .start = AT91_ID_SPI, | ||
433 | .end = AT91_ID_SPI, | ||
434 | .flags = IORESOURCE_IRQ, | ||
435 | }, | ||
436 | }; | ||
437 | |||
438 | static struct platform_device at91rm9200_spi_device = { | ||
439 | .name = "at91_spi", | ||
440 | .id = 0, | ||
441 | .dev = { | ||
442 | .dma_mask = &spi_dmamask, | ||
443 | .coherent_dma_mask = 0xffffffff, | ||
444 | }, | ||
445 | .resource = at91_spi_resources, | ||
446 | .num_resources = ARRAY_SIZE(at91_spi_resources), | ||
447 | }; | ||
448 | |||
449 | static const unsigned at91_spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 }; | ||
450 | |||
451 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | ||
452 | { | ||
453 | int i; | ||
454 | unsigned long cs_pin; | ||
455 | |||
456 | at91_set_A_periph(AT91_PIN_PA0, 0); /* MISO */ | ||
457 | at91_set_A_periph(AT91_PIN_PA1, 0); /* MOSI */ | ||
458 | at91_set_A_periph(AT91_PIN_PA2, 0); /* SPCK */ | ||
459 | |||
460 | /* Enable SPI chip-selects */ | ||
461 | for (i = 0; i < nr_devices; i++) { | ||
462 | if (devices[i].controller_data) | ||
463 | cs_pin = (unsigned long) devices[i].controller_data; | ||
464 | else | ||
465 | cs_pin = at91_spi_standard_cs[devices[i].chip_select]; | ||
466 | |||
467 | #ifdef CONFIG_SPI_AT91_MANUAL_CS | ||
468 | at91_set_gpio_output(cs_pin, 1); | ||
469 | #else | ||
470 | at91_set_A_periph(cs_pin, 0); | ||
471 | #endif | ||
472 | |||
473 | /* pass chip-select pin to driver */ | ||
474 | devices[i].controller_data = (void *) cs_pin; | ||
475 | } | ||
476 | |||
477 | spi_register_board_info(devices, nr_devices); | ||
478 | at91_clock_associate("spi0_clk", &at91rm9200_spi_device.dev, "spi"); | ||
479 | platform_device_register(&at91rm9200_spi_device); | ||
480 | } | ||
481 | #else | ||
482 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {} | ||
483 | #endif | ||
484 | |||
485 | |||
486 | /* -------------------------------------------------------------------- | ||
403 | * RTC | 487 | * RTC |
404 | * -------------------------------------------------------------------- */ | 488 | * -------------------------------------------------------------------- */ |
405 | 489 | ||
406 | #if defined(CONFIG_AT91_RTC) || defined(CONFIG_AT91_RTC_MODULE) | 490 | #if defined(CONFIG_RTC_DRV_AT91) || defined(CONFIG_RTC_DRV_AT91_MODULE) |
407 | static struct platform_device at91rm9200_rtc_device = { | 491 | static struct platform_device at91rm9200_rtc_device = { |
408 | .name = "at91_rtc", | 492 | .name = "at91_rtc", |
409 | .id = -1, | 493 | .id = -1, |
410 | .num_resources = 0, | 494 | .num_resources = 0, |
411 | }; | 495 | }; |
412 | 496 | ||
413 | void __init at91_add_device_rtc(void) | 497 | static void __init at91_add_device_rtc(void) |
414 | { | 498 | { |
415 | platform_device_register(&at91rm9200_rtc_device); | 499 | platform_device_register(&at91rm9200_rtc_device); |
416 | } | 500 | } |
417 | #else | 501 | #else |
418 | void __init at91_add_device_rtc(void) {} | 502 | static void __init at91_add_device_rtc(void) {} |
503 | #endif | ||
504 | |||
505 | |||
506 | /* -------------------------------------------------------------------- | ||
507 | * Watchdog | ||
508 | * -------------------------------------------------------------------- */ | ||
509 | |||
510 | #if defined(CONFIG_AT91_WATCHDOG) || defined(CONFIG_AT91_WATCHDOG_MODULE) | ||
511 | static struct platform_device at91rm9200_wdt_device = { | ||
512 | .name = "at91_wdt", | ||
513 | .id = -1, | ||
514 | .num_resources = 0, | ||
515 | }; | ||
516 | |||
517 | static void __init at91_add_device_watchdog(void) | ||
518 | { | ||
519 | platform_device_register(&at91rm9200_wdt_device); | ||
520 | } | ||
521 | #else | ||
522 | static void __init at91_add_device_watchdog(void) {} | ||
419 | #endif | 523 | #endif |
420 | 524 | ||
421 | 525 | ||
@@ -429,13 +533,281 @@ u8 at91_leds_timer; | |||
429 | 533 | ||
430 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | 534 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) |
431 | { | 535 | { |
432 | at91_leds_cpu = cpu_led; | 536 | at91_leds_cpu = cpu_led; |
433 | at91_leds_timer = timer_led; | 537 | at91_leds_timer = timer_led; |
434 | } | 538 | } |
435 | |||
436 | #else | 539 | #else |
437 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} | 540 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} |
438 | #endif | 541 | #endif |
439 | 542 | ||
440 | 543 | ||
544 | /* -------------------------------------------------------------------- | ||
545 | * UART | ||
546 | * -------------------------------------------------------------------- */ | ||
547 | |||
548 | #if defined(CONFIG_SERIAL_AT91) | ||
549 | static struct resource dbgu_resources[] = { | ||
550 | [0] = { | ||
551 | .start = AT91_VA_BASE_SYS + AT91_DBGU, | ||
552 | .end = AT91_VA_BASE_SYS + AT91_DBGU + SZ_512 - 1, | ||
553 | .flags = IORESOURCE_MEM, | ||
554 | }, | ||
555 | [1] = { | ||
556 | .start = AT91_ID_SYS, | ||
557 | .end = AT91_ID_SYS, | ||
558 | .flags = IORESOURCE_IRQ, | ||
559 | }, | ||
560 | }; | ||
561 | |||
562 | static struct at91_uart_data dbgu_data = { | ||
563 | .use_dma_tx = 0, | ||
564 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ | ||
565 | }; | ||
566 | |||
567 | static struct platform_device at91rm9200_dbgu_device = { | ||
568 | .name = "at91_usart", | ||
569 | .id = 0, | ||
570 | .dev = { | ||
571 | .platform_data = &dbgu_data, | ||
572 | .coherent_dma_mask = 0xffffffff, | ||
573 | }, | ||
574 | .resource = dbgu_resources, | ||
575 | .num_resources = ARRAY_SIZE(dbgu_resources), | ||
576 | }; | ||
577 | |||
578 | static inline void configure_dbgu_pins(void) | ||
579 | { | ||
580 | at91_set_A_periph(AT91_PIN_PA30, 0); /* DRXD */ | ||
581 | at91_set_A_periph(AT91_PIN_PA31, 1); /* DTXD */ | ||
582 | } | ||
583 | |||
584 | static struct resource uart0_resources[] = { | ||
585 | [0] = { | ||
586 | .start = AT91_BASE_US0, | ||
587 | .end = AT91_BASE_US0 + SZ_16K - 1, | ||
588 | .flags = IORESOURCE_MEM, | ||
589 | }, | ||
590 | [1] = { | ||
591 | .start = AT91_ID_US0, | ||
592 | .end = AT91_ID_US0, | ||
593 | .flags = IORESOURCE_IRQ, | ||
594 | }, | ||
595 | }; | ||
596 | |||
597 | static struct at91_uart_data uart0_data = { | ||
598 | .use_dma_tx = 1, | ||
599 | .use_dma_rx = 1, | ||
600 | }; | ||
601 | |||
602 | static struct platform_device at91rm9200_uart0_device = { | ||
603 | .name = "at91_usart", | ||
604 | .id = 1, | ||
605 | .dev = { | ||
606 | .platform_data = &uart0_data, | ||
607 | .coherent_dma_mask = 0xffffffff, | ||
608 | }, | ||
609 | .resource = uart0_resources, | ||
610 | .num_resources = ARRAY_SIZE(uart0_resources), | ||
611 | }; | ||
612 | |||
613 | static inline void configure_usart0_pins(void) | ||
614 | { | ||
615 | at91_set_A_periph(AT91_PIN_PA17, 1); /* TXD0 */ | ||
616 | at91_set_A_periph(AT91_PIN_PA18, 0); /* RXD0 */ | ||
617 | at91_set_A_periph(AT91_PIN_PA20, 0); /* CTS0 */ | ||
618 | |||
619 | /* | ||
620 | * AT91RM9200 Errata #39 - RTS0 is not internally connected to PA21. | ||
621 | * We need to drive the pin manually. Default is off (RTS is active low). | ||
622 | */ | ||
623 | at91_set_gpio_output(AT91_PIN_PA21, 1); | ||
624 | } | ||
625 | |||
626 | static struct resource uart1_resources[] = { | ||
627 | [0] = { | ||
628 | .start = AT91_BASE_US1, | ||
629 | .end = AT91_BASE_US1 + SZ_16K - 1, | ||
630 | .flags = IORESOURCE_MEM, | ||
631 | }, | ||
632 | [1] = { | ||
633 | .start = AT91_ID_US1, | ||
634 | .end = AT91_ID_US1, | ||
635 | .flags = IORESOURCE_IRQ, | ||
636 | }, | ||
637 | }; | ||
638 | |||
639 | static struct at91_uart_data uart1_data = { | ||
640 | .use_dma_tx = 1, | ||
641 | .use_dma_rx = 1, | ||
642 | }; | ||
643 | |||
644 | static struct platform_device at91rm9200_uart1_device = { | ||
645 | .name = "at91_usart", | ||
646 | .id = 2, | ||
647 | .dev = { | ||
648 | .platform_data = &uart1_data, | ||
649 | .coherent_dma_mask = 0xffffffff, | ||
650 | }, | ||
651 | .resource = uart1_resources, | ||
652 | .num_resources = ARRAY_SIZE(uart1_resources), | ||
653 | }; | ||
654 | |||
655 | static inline void configure_usart1_pins(void) | ||
656 | { | ||
657 | at91_set_A_periph(AT91_PIN_PB18, 0); /* RI1 */ | ||
658 | at91_set_A_periph(AT91_PIN_PB19, 0); /* DTR1 */ | ||
659 | at91_set_A_periph(AT91_PIN_PB20, 1); /* TXD1 */ | ||
660 | at91_set_A_periph(AT91_PIN_PB21, 0); /* RXD1 */ | ||
661 | at91_set_A_periph(AT91_PIN_PB23, 0); /* DCD1 */ | ||
662 | at91_set_A_periph(AT91_PIN_PB24, 0); /* CTS1 */ | ||
663 | at91_set_A_periph(AT91_PIN_PB25, 0); /* DSR1 */ | ||
664 | at91_set_A_periph(AT91_PIN_PB26, 0); /* RTS1 */ | ||
665 | } | ||
666 | |||
667 | static struct resource uart2_resources[] = { | ||
668 | [0] = { | ||
669 | .start = AT91_BASE_US2, | ||
670 | .end = AT91_BASE_US2 + SZ_16K - 1, | ||
671 | .flags = IORESOURCE_MEM, | ||
672 | }, | ||
673 | [1] = { | ||
674 | .start = AT91_ID_US2, | ||
675 | .end = AT91_ID_US2, | ||
676 | .flags = IORESOURCE_IRQ, | ||
677 | }, | ||
678 | }; | ||
679 | |||
680 | static struct at91_uart_data uart2_data = { | ||
681 | .use_dma_tx = 1, | ||
682 | .use_dma_rx = 1, | ||
683 | }; | ||
684 | |||
685 | static struct platform_device at91rm9200_uart2_device = { | ||
686 | .name = "at91_usart", | ||
687 | .id = 3, | ||
688 | .dev = { | ||
689 | .platform_data = &uart2_data, | ||
690 | .coherent_dma_mask = 0xffffffff, | ||
691 | }, | ||
692 | .resource = uart2_resources, | ||
693 | .num_resources = ARRAY_SIZE(uart2_resources), | ||
694 | }; | ||
695 | |||
696 | static inline void configure_usart2_pins(void) | ||
697 | { | ||
698 | at91_set_A_periph(AT91_PIN_PA22, 0); /* RXD2 */ | ||
699 | at91_set_A_periph(AT91_PIN_PA23, 1); /* TXD2 */ | ||
700 | } | ||
701 | |||
702 | static struct resource uart3_resources[] = { | ||
703 | [0] = { | ||
704 | .start = AT91_BASE_US3, | ||
705 | .end = AT91_BASE_US3 + SZ_16K - 1, | ||
706 | .flags = IORESOURCE_MEM, | ||
707 | }, | ||
708 | [1] = { | ||
709 | .start = AT91_ID_US3, | ||
710 | .end = AT91_ID_US3, | ||
711 | .flags = IORESOURCE_IRQ, | ||
712 | }, | ||
713 | }; | ||
714 | |||
715 | static struct at91_uart_data uart3_data = { | ||
716 | .use_dma_tx = 1, | ||
717 | .use_dma_rx = 1, | ||
718 | }; | ||
719 | |||
720 | static struct platform_device at91rm9200_uart3_device = { | ||
721 | .name = "at91_usart", | ||
722 | .id = 4, | ||
723 | .dev = { | ||
724 | .platform_data = &uart3_data, | ||
725 | .coherent_dma_mask = 0xffffffff, | ||
726 | }, | ||
727 | .resource = uart3_resources, | ||
728 | .num_resources = ARRAY_SIZE(uart3_resources), | ||
729 | }; | ||
730 | |||
731 | static inline void configure_usart3_pins(void) | ||
732 | { | ||
733 | at91_set_B_periph(AT91_PIN_PA5, 1); /* TXD3 */ | ||
734 | at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */ | ||
735 | } | ||
736 | |||
737 | struct platform_device *at91_uarts[AT91_NR_UART]; /* the UARTs to use */ | ||
738 | struct platform_device *at91_default_console_device; /* the serial console device */ | ||
739 | |||
740 | void __init at91_init_serial(struct at91_uart_config *config) | ||
741 | { | ||
742 | int i; | ||
743 | |||
744 | /* Fill in list of supported UARTs */ | ||
745 | for (i = 0; i < config->nr_tty; i++) { | ||
746 | switch (config->tty_map[i]) { | ||
747 | case 0: | ||
748 | configure_usart0_pins(); | ||
749 | at91_uarts[i] = &at91rm9200_uart0_device; | ||
750 | at91_clock_associate("usart0_clk", &at91rm9200_uart0_device.dev, "usart"); | ||
751 | break; | ||
752 | case 1: | ||
753 | configure_usart1_pins(); | ||
754 | at91_uarts[i] = &at91rm9200_uart1_device; | ||
755 | at91_clock_associate("usart1_clk", &at91rm9200_uart1_device.dev, "usart"); | ||
756 | break; | ||
757 | case 2: | ||
758 | configure_usart2_pins(); | ||
759 | at91_uarts[i] = &at91rm9200_uart2_device; | ||
760 | at91_clock_associate("usart2_clk", &at91rm9200_uart2_device.dev, "usart"); | ||
761 | break; | ||
762 | case 3: | ||
763 | configure_usart3_pins(); | ||
764 | at91_uarts[i] = &at91rm9200_uart3_device; | ||
765 | at91_clock_associate("usart3_clk", &at91rm9200_uart3_device.dev, "usart"); | ||
766 | break; | ||
767 | case 4: | ||
768 | configure_dbgu_pins(); | ||
769 | at91_uarts[i] = &at91rm9200_dbgu_device; | ||
770 | at91_clock_associate("mck", &at91rm9200_dbgu_device.dev, "usart"); | ||
771 | break; | ||
772 | default: | ||
773 | continue; | ||
774 | } | ||
775 | at91_uarts[i]->id = i; /* update ID number to mapped ID */ | ||
776 | } | ||
777 | |||
778 | /* Set serial console device */ | ||
779 | if (config->console_tty < AT91_NR_UART) | ||
780 | at91_default_console_device = at91_uarts[config->console_tty]; | ||
781 | if (!at91_default_console_device) | ||
782 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
783 | } | ||
784 | |||
785 | void __init at91_add_device_serial(void) | ||
786 | { | ||
787 | int i; | ||
788 | |||
789 | for (i = 0; i < AT91_NR_UART; i++) { | ||
790 | if (at91_uarts[i]) | ||
791 | platform_device_register(at91_uarts[i]); | ||
792 | } | ||
793 | } | ||
794 | #else | ||
795 | void __init at91_init_serial(struct at91_uart_config *config) {} | ||
796 | void __init at91_add_device_serial(void) {} | ||
797 | #endif | ||
798 | |||
799 | |||
441 | /* -------------------------------------------------------------------- */ | 800 | /* -------------------------------------------------------------------- */ |
801 | |||
802 | /* | ||
803 | * These devices are always present and don't need any board-specific | ||
804 | * setup. | ||
805 | */ | ||
806 | static int __init at91_add_standard_devices(void) | ||
807 | { | ||
808 | at91_add_device_rtc(); | ||
809 | at91_add_device_watchdog(); | ||
810 | return 0; | ||
811 | } | ||
812 | |||
813 | arch_initcall(at91_add_standard_devices); | ||
diff --git a/arch/arm/mach-at91rm9200/generic.h b/arch/arm/mach-at91rm9200/generic.h index 9bd541eba0a0..f0d969d7d874 100644 --- a/arch/arm/mach-at91rm9200/generic.h +++ b/arch/arm/mach-at91rm9200/generic.h | |||
@@ -16,3 +16,10 @@ extern struct sys_timer at91rm9200_timer; | |||
16 | extern void __init at91rm9200_map_io(void); | 16 | extern void __init at91rm9200_map_io(void); |
17 | 17 | ||
18 | extern int __init at91_clock_init(unsigned long main_clock); | 18 | extern int __init at91_clock_init(unsigned long main_clock); |
19 | struct device; | ||
20 | extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func); | ||
21 | |||
22 | /* Power Management */ | ||
23 | extern void at91_irq_suspend(void); | ||
24 | extern void at91_irq_resume(void); | ||
25 | |||
diff --git a/arch/arm/mach-at91rm9200/gpio.c b/arch/arm/mach-at91rm9200/gpio.c index 5ab46274e1a3..83c34747087b 100644 --- a/arch/arm/mach-at91rm9200/gpio.c +++ b/arch/arm/mach-at91rm9200/gpio.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/mach/irq.h> | 18 | #include <asm/mach/irq.h> |
19 | #include <asm/arch/hardware.h> | 19 | #include <asm/hardware.h> |
20 | #include <asm/arch/gpio.h> | 20 | #include <asm/arch/gpio.h> |
21 | 21 | ||
22 | static const u32 pio_controller_offset[4] = { | 22 | static const u32 pio_controller_offset[4] = { |
@@ -213,6 +213,84 @@ EXPORT_SYMBOL(at91_get_gpio_value); | |||
213 | 213 | ||
214 | /*--------------------------------------------------------------------------*/ | 214 | /*--------------------------------------------------------------------------*/ |
215 | 215 | ||
216 | #ifdef CONFIG_PM | ||
217 | |||
218 | static u32 wakeups[BGA_GPIO_BANKS]; | ||
219 | static u32 backups[BGA_GPIO_BANKS]; | ||
220 | |||
221 | static int gpio_irq_set_wake(unsigned pin, unsigned state) | ||
222 | { | ||
223 | unsigned mask = pin_to_mask(pin); | ||
224 | |||
225 | pin -= PIN_BASE; | ||
226 | pin /= 32; | ||
227 | |||
228 | if (unlikely(pin >= BGA_GPIO_BANKS)) | ||
229 | return -EINVAL; | ||
230 | |||
231 | if (state) | ||
232 | wakeups[pin] |= mask; | ||
233 | else | ||
234 | wakeups[pin] &= ~mask; | ||
235 | |||
236 | return 0; | ||
237 | } | ||
238 | |||
239 | void at91_gpio_suspend(void) | ||
240 | { | ||
241 | int i; | ||
242 | |||
243 | for (i = 0; i < BGA_GPIO_BANKS; i++) { | ||
244 | u32 pio = pio_controller_offset[i]; | ||
245 | |||
246 | /* | ||
247 | * Note: drivers should have disabled GPIO interrupts that | ||
248 | * aren't supposed to be wakeup sources. | ||
249 | * But that is not much good on ARM..... disable_irq() does | ||
250 | * not update the hardware immediately, so the hardware mask | ||
251 | * (IMR) has the wrong value (not current, too much is | ||
252 | * permitted). | ||
253 | * | ||
254 | * Our workaround is to disable all non-wakeup IRQs ... | ||
255 | * which is exactly what correct drivers asked for in the | ||
256 | * first place! | ||
257 | */ | ||
258 | backups[i] = at91_sys_read(pio + PIO_IMR); | ||
259 | at91_sys_write(pio_controller_offset[i] + PIO_IDR, backups[i]); | ||
260 | at91_sys_write(pio_controller_offset[i] + PIO_IER, wakeups[i]); | ||
261 | |||
262 | if (!wakeups[i]) { | ||
263 | disable_irq_wake(AT91_ID_PIOA + i); | ||
264 | at91_sys_write(AT91_PMC_PCDR, 1 << (AT91_ID_PIOA + i)); | ||
265 | } else { | ||
266 | enable_irq_wake(AT91_ID_PIOA + i); | ||
267 | #ifdef CONFIG_PM_DEBUG | ||
268 | printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", "ABCD"[i], wakeups[i]); | ||
269 | #endif | ||
270 | } | ||
271 | } | ||
272 | } | ||
273 | |||
274 | void at91_gpio_resume(void) | ||
275 | { | ||
276 | int i; | ||
277 | |||
278 | for (i = 0; i < BGA_GPIO_BANKS; i++) { | ||
279 | at91_sys_write(pio_controller_offset[i] + PIO_IDR, wakeups[i]); | ||
280 | at91_sys_write(pio_controller_offset[i] + PIO_IER, backups[i]); | ||
281 | } | ||
282 | |||
283 | at91_sys_write(AT91_PMC_PCER, | ||
284 | (1 << AT91_ID_PIOA) | ||
285 | | (1 << AT91_ID_PIOB) | ||
286 | | (1 << AT91_ID_PIOC) | ||
287 | | (1 << AT91_ID_PIOD)); | ||
288 | } | ||
289 | |||
290 | #else | ||
291 | #define gpio_irq_set_wake NULL | ||
292 | #endif | ||
293 | |||
216 | 294 | ||
217 | /* Several AIC controller irqs are dispatched through this GPIO handler. | 295 | /* Several AIC controller irqs are dispatched through this GPIO handler. |
218 | * To use any AT91_PIN_* as an externally triggered IRQ, first call | 296 | * To use any AT91_PIN_* as an externally triggered IRQ, first call |
@@ -252,6 +330,7 @@ static struct irqchip gpio_irqchip = { | |||
252 | .mask = gpio_irq_mask, | 330 | .mask = gpio_irq_mask, |
253 | .unmask = gpio_irq_unmask, | 331 | .unmask = gpio_irq_unmask, |
254 | .set_type = gpio_irq_type, | 332 | .set_type = gpio_irq_type, |
333 | .set_wake = gpio_irq_set_wake, | ||
255 | }; | 334 | }; |
256 | 335 | ||
257 | static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs) | 336 | static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs) |
@@ -266,6 +345,7 @@ static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs | |||
266 | /* temporarily mask (level sensitive) parent IRQ */ | 345 | /* temporarily mask (level sensitive) parent IRQ */ |
267 | desc->chip->ack(irq); | 346 | desc->chip->ack(irq); |
268 | for (;;) { | 347 | for (;;) { |
348 | /* reading ISR acks the pending (edge triggered) GPIO interrupt */ | ||
269 | isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR); | 349 | isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR); |
270 | if (!isr) | 350 | if (!isr) |
271 | break; | 351 | break; |
@@ -315,15 +395,16 @@ void __init at91_gpio_irq_setup(unsigned banks) | |||
315 | set_irq_chipdata(id, controller); | 395 | set_irq_chipdata(id, controller); |
316 | 396 | ||
317 | for (i = 0; i < 32; i++, pin++) { | 397 | for (i = 0; i < 32; i++, pin++) { |
398 | /* | ||
399 | * Can use the "simple" and not "edge" handler since it's | ||
400 | * shorter, and the AIC handles interupts sanely. | ||
401 | */ | ||
318 | set_irq_chip(pin, &gpio_irqchip); | 402 | set_irq_chip(pin, &gpio_irqchip); |
319 | set_irq_handler(pin, do_simple_IRQ); | 403 | set_irq_handler(pin, do_simple_IRQ); |
320 | set_irq_flags(pin, IRQF_VALID); | 404 | set_irq_flags(pin, IRQF_VALID); |
321 | } | 405 | } |
322 | 406 | ||
323 | set_irq_chained_handler(id, gpio_irq_handler); | 407 | set_irq_chained_handler(id, gpio_irq_handler); |
324 | |||
325 | /* enable the PIO peripheral clock */ | ||
326 | at91_sys_write(AT91_PMC_PCER, 1 << id); | ||
327 | } | 408 | } |
328 | pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks); | 409 | pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks); |
329 | } | 410 | } |
diff --git a/arch/arm/mach-at91rm9200/irq.c b/arch/arm/mach-at91rm9200/irq.c index cb62bc83a1dd..70f4d7ac1533 100644 --- a/arch/arm/mach-at91rm9200/irq.c +++ b/arch/arm/mach-at91rm9200/irq.c | |||
@@ -92,10 +92,6 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
92 | { | 92 | { |
93 | unsigned int smr, srctype; | 93 | unsigned int smr, srctype; |
94 | 94 | ||
95 | /* change triggering only for FIQ and external IRQ0..IRQ6 */ | ||
96 | if ((irq < AT91_ID_IRQ0) && (irq != AT91_ID_FIQ)) | ||
97 | return -EINVAL; | ||
98 | |||
99 | switch (type) { | 95 | switch (type) { |
100 | case IRQT_HIGH: | 96 | case IRQT_HIGH: |
101 | srctype = AT91_AIC_SRCTYPE_HIGH; | 97 | srctype = AT91_AIC_SRCTYPE_HIGH; |
@@ -104,9 +100,13 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
104 | srctype = AT91_AIC_SRCTYPE_RISING; | 100 | srctype = AT91_AIC_SRCTYPE_RISING; |
105 | break; | 101 | break; |
106 | case IRQT_LOW: | 102 | case IRQT_LOW: |
103 | if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */ | ||
104 | return -EINVAL; | ||
107 | srctype = AT91_AIC_SRCTYPE_LOW; | 105 | srctype = AT91_AIC_SRCTYPE_LOW; |
108 | break; | 106 | break; |
109 | case IRQT_FALLING: | 107 | case IRQT_FALLING: |
108 | if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */ | ||
109 | return -EINVAL; | ||
110 | srctype = AT91_AIC_SRCTYPE_FALLING; | 110 | srctype = AT91_AIC_SRCTYPE_FALLING; |
111 | break; | 111 | break; |
112 | default: | 112 | default: |
@@ -118,11 +118,47 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
118 | return 0; | 118 | return 0; |
119 | } | 119 | } |
120 | 120 | ||
121 | #ifdef CONFIG_PM | ||
122 | |||
123 | static u32 wakeups; | ||
124 | static u32 backups; | ||
125 | |||
126 | static int at91rm9200_irq_set_wake(unsigned irq, unsigned value) | ||
127 | { | ||
128 | if (unlikely(irq >= 32)) | ||
129 | return -EINVAL; | ||
130 | |||
131 | if (value) | ||
132 | wakeups |= (1 << irq); | ||
133 | else | ||
134 | wakeups &= ~(1 << irq); | ||
135 | |||
136 | return 0; | ||
137 | } | ||
138 | |||
139 | void at91_irq_suspend(void) | ||
140 | { | ||
141 | backups = at91_sys_read(AT91_AIC_IMR); | ||
142 | at91_sys_write(AT91_AIC_IDCR, backups); | ||
143 | at91_sys_write(AT91_AIC_IECR, wakeups); | ||
144 | } | ||
145 | |||
146 | void at91_irq_resume(void) | ||
147 | { | ||
148 | at91_sys_write(AT91_AIC_IDCR, wakeups); | ||
149 | at91_sys_write(AT91_AIC_IECR, backups); | ||
150 | } | ||
151 | |||
152 | #else | ||
153 | #define at91rm9200_irq_set_wake NULL | ||
154 | #endif | ||
155 | |||
121 | static struct irqchip at91rm9200_irq_chip = { | 156 | static struct irqchip at91rm9200_irq_chip = { |
122 | .ack = at91rm9200_mask_irq, | 157 | .ack = at91rm9200_mask_irq, |
123 | .mask = at91rm9200_mask_irq, | 158 | .mask = at91rm9200_mask_irq, |
124 | .unmask = at91rm9200_unmask_irq, | 159 | .unmask = at91rm9200_unmask_irq, |
125 | .set_type = at91rm9200_irq_type, | 160 | .set_type = at91rm9200_irq_type, |
161 | .set_wake = at91rm9200_irq_set_wake, | ||
126 | }; | 162 | }; |
127 | 163 | ||
128 | /* | 164 | /* |
diff --git a/arch/arm/mach-at91rm9200/pm.c b/arch/arm/mach-at91rm9200/pm.c new file mode 100644 index 000000000000..47e5480feb7e --- /dev/null +++ b/arch/arm/mach-at91rm9200/pm.c | |||
@@ -0,0 +1,225 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/pm.c | ||
3 | * AT91 Power Management | ||
4 | * | ||
5 | * Copyright (C) 2005 David Brownell | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/pm.h> | ||
14 | #include <linux/sched.h> | ||
15 | #include <linux/proc_fs.h> | ||
16 | #include <linux/pm.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/sysfs.h> | ||
19 | #include <linux/module.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | |||
22 | #include <asm/io.h> | ||
23 | #include <asm/irq.h> | ||
24 | #include <asm/atomic.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | #include <asm/mach/irq.h> | ||
27 | #include <asm/mach-types.h> | ||
28 | |||
29 | #include <asm/arch/gpio.h> | ||
30 | |||
31 | #include "generic.h" | ||
32 | |||
33 | |||
34 | static int at91_pm_valid_state(suspend_state_t state) | ||
35 | { | ||
36 | switch (state) { | ||
37 | case PM_SUSPEND_ON: | ||
38 | case PM_SUSPEND_STANDBY: | ||
39 | case PM_SUSPEND_MEM: | ||
40 | return 1; | ||
41 | |||
42 | default: | ||
43 | return 0; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | |||
48 | static suspend_state_t target_state; | ||
49 | |||
50 | /* | ||
51 | * Called after processes are frozen, but before we shutdown devices. | ||
52 | */ | ||
53 | static int at91_pm_prepare(suspend_state_t state) | ||
54 | { | ||
55 | target_state = state; | ||
56 | return 0; | ||
57 | } | ||
58 | |||
59 | /* | ||
60 | * Verify that all the clocks are correct before entering | ||
61 | * slow-clock mode. | ||
62 | */ | ||
63 | static int at91_pm_verify_clocks(void) | ||
64 | { | ||
65 | unsigned long scsr; | ||
66 | int i; | ||
67 | |||
68 | scsr = at91_sys_read(AT91_PMC_SCSR); | ||
69 | |||
70 | /* USB must not be using PLLB */ | ||
71 | if ((scsr & (AT91_PMC_UHP | AT91_PMC_UDP)) != 0) { | ||
72 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); | ||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | ||
77 | /* PCK0..PCK3 must be disabled, or configured to use clk32k */ | ||
78 | for (i = 0; i < 4; i++) { | ||
79 | u32 css; | ||
80 | |||
81 | if ((scsr & (AT91_PMC_PCK0 << i)) == 0) | ||
82 | continue; | ||
83 | |||
84 | css = at91_sys_read(AT91_PMC_PCKR(i)) & AT91_PMC_CSS; | ||
85 | if (css != AT91_PMC_CSS_SLOW) { | ||
86 | pr_debug("AT91: PM - Suspend-to-RAM with PCK%d src %d\n", i, css); | ||
87 | return 0; | ||
88 | } | ||
89 | } | ||
90 | #endif | ||
91 | |||
92 | return 1; | ||
93 | } | ||
94 | |||
95 | /* | ||
96 | * Call this from platform driver suspend() to see how deeply to suspend. | ||
97 | * For example, some controllers (like OHCI) need one of the PLL clocks | ||
98 | * in order to act as a wakeup source, and those are not available when | ||
99 | * going into slow clock mode. | ||
100 | * | ||
101 | * REVISIT: generalize as clk_will_be_available(clk)? Other platforms have | ||
102 | * the very same problem (but not using at91 main_clk), and it'd be better | ||
103 | * to add one generic API rather than lots of platform-specific ones. | ||
104 | */ | ||
105 | int at91_suspend_entering_slow_clock(void) | ||
106 | { | ||
107 | return (target_state == PM_SUSPEND_MEM); | ||
108 | } | ||
109 | EXPORT_SYMBOL(at91_suspend_entering_slow_clock); | ||
110 | |||
111 | |||
112 | static void (*slow_clock)(void); | ||
113 | |||
114 | |||
115 | |||
116 | static int at91_pm_enter(suspend_state_t state) | ||
117 | { | ||
118 | at91_gpio_suspend(); | ||
119 | at91_irq_suspend(); | ||
120 | |||
121 | pr_debug("AT91: PM - wake mask %08x, pm state %d\n", | ||
122 | /* remember all the always-wake irqs */ | ||
123 | (at91_sys_read(AT91_PMC_PCSR) | ||
124 | | (1 << AT91_ID_FIQ) | ||
125 | | (1 << AT91_ID_SYS) | ||
126 | | (1 << AT91_ID_IRQ0) | ||
127 | | (1 << AT91_ID_IRQ1) | ||
128 | | (1 << AT91_ID_IRQ2) | ||
129 | | (1 << AT91_ID_IRQ3) | ||
130 | | (1 << AT91_ID_IRQ4) | ||
131 | | (1 << AT91_ID_IRQ5) | ||
132 | | (1 << AT91_ID_IRQ6)) | ||
133 | & at91_sys_read(AT91_AIC_IMR), | ||
134 | state); | ||
135 | |||
136 | switch (state) { | ||
137 | /* | ||
138 | * Suspend-to-RAM is like STANDBY plus slow clock mode, so | ||
139 | * drivers must suspend more deeply: only the master clock | ||
140 | * controller may be using the main oscillator. | ||
141 | */ | ||
142 | case PM_SUSPEND_MEM: | ||
143 | /* | ||
144 | * Ensure that clocks are in a valid state. | ||
145 | */ | ||
146 | if (!at91_pm_verify_clocks()) | ||
147 | goto error; | ||
148 | |||
149 | /* | ||
150 | * Enter slow clock mode by switching over to clk32k and | ||
151 | * turning off the main oscillator; reverse on wakeup. | ||
152 | */ | ||
153 | if (slow_clock) { | ||
154 | slow_clock(); | ||
155 | break; | ||
156 | } else { | ||
157 | /* DEVELOPMENT ONLY */ | ||
158 | pr_info("AT91: PM - no slow clock mode yet ...\n"); | ||
159 | /* FALLTHROUGH leaving master clock alone */ | ||
160 | } | ||
161 | |||
162 | /* | ||
163 | * STANDBY mode has *all* drivers suspended; ignores irqs not | ||
164 | * marked as 'wakeup' event sources; and reduces DRAM power. | ||
165 | * But otherwise it's identical to PM_SUSPEND_ON: cpu idle, and | ||
166 | * nothing fancy done with main or cpu clocks. | ||
167 | */ | ||
168 | case PM_SUSPEND_STANDBY: | ||
169 | /* | ||
170 | * NOTE: the Wait-for-Interrupt instruction needs to be | ||
171 | * in icache so the SDRAM stays in self-refresh mode until | ||
172 | * the wakeup IRQ occurs. | ||
173 | */ | ||
174 | asm("b 1f; .align 5; 1:"); | ||
175 | asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */ | ||
176 | at91_sys_write(AT91_SDRAMC_SRR, 1); /* self-refresh mode */ | ||
177 | /* fall though to next state */ | ||
178 | |||
179 | case PM_SUSPEND_ON: | ||
180 | asm("mcr p15, 0, r0, c7, c0, 4"); /* wait for interrupt */ | ||
181 | break; | ||
182 | |||
183 | default: | ||
184 | pr_debug("AT91: PM - bogus suspend state %d\n", state); | ||
185 | goto error; | ||
186 | } | ||
187 | |||
188 | pr_debug("AT91: PM - wakeup %08x\n", | ||
189 | at91_sys_read(AT91_AIC_IPR) & at91_sys_read(AT91_AIC_IMR)); | ||
190 | |||
191 | error: | ||
192 | target_state = PM_SUSPEND_ON; | ||
193 | at91_irq_resume(); | ||
194 | at91_gpio_resume(); | ||
195 | return 0; | ||
196 | } | ||
197 | |||
198 | |||
199 | static struct pm_ops at91_pm_ops ={ | ||
200 | .pm_disk_mode = 0, | ||
201 | .valid = at91_pm_valid_state, | ||
202 | .prepare = at91_pm_prepare, | ||
203 | .enter = at91_pm_enter, | ||
204 | }; | ||
205 | |||
206 | static int __init at91_pm_init(void) | ||
207 | { | ||
208 | printk("AT91: Power Management\n"); | ||
209 | |||
210 | #ifdef CONFIG_AT91_PM_SLOW_CLOCK | ||
211 | /* REVISIT allocations of SRAM should be dynamically managed. | ||
212 | * FIQ handlers and other components will want SRAM/TCM too... | ||
213 | */ | ||
214 | slow_clock = (void *) (AT91_VA_BASE_SRAM + (3 * SZ_4K)); | ||
215 | memcpy(slow_clock, at91rm9200_slow_clock, at91rm9200_slow_clock_sz); | ||
216 | #endif | ||
217 | |||
218 | /* Disable SDRAM low-power mode. Cannot be used with self-refresh. */ | ||
219 | at91_sys_write(AT91_SDRAMC_LPR, 0); | ||
220 | |||
221 | pm_set_ops(&at91_pm_ops); | ||
222 | |||
223 | return 0; | ||
224 | } | ||
225 | arch_initcall(at91_pm_init); | ||
diff --git a/arch/arm/mach-at91rm9200/time.c b/arch/arm/mach-at91rm9200/time.c index 7ffcf443b99f..fc2d7d5e4637 100644 --- a/arch/arm/mach-at91rm9200/time.c +++ b/arch/arm/mach-at91rm9200/time.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/mach/time.h> | 32 | #include <asm/mach/time.h> |
33 | 33 | ||
34 | static unsigned long last_crtr; | ||
35 | |||
34 | /* | 36 | /* |
35 | * The ST_CRTR is updated asynchronously to the master clock. It is therefore | 37 | * The ST_CRTR is updated asynchronously to the master clock. It is therefore |
36 | * necessary to read it twice (with the same value) to ensure accuracy. | 38 | * necessary to read it twice (with the same value) to ensure accuracy. |
@@ -56,7 +58,7 @@ static unsigned long at91rm9200_gettimeoffset(void) | |||
56 | { | 58 | { |
57 | unsigned long elapsed; | 59 | unsigned long elapsed; |
58 | 60 | ||
59 | elapsed = (read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV; | 61 | elapsed = (read_CRTR() - last_crtr) & AT91_ST_ALMV; |
60 | 62 | ||
61 | return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH; | 63 | return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH; |
62 | } | 64 | } |
@@ -66,15 +68,12 @@ static unsigned long at91rm9200_gettimeoffset(void) | |||
66 | */ | 68 | */ |
67 | static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 69 | static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) |
68 | { | 70 | { |
69 | unsigned long rtar; | ||
70 | |||
71 | if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */ | 71 | if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */ |
72 | write_seqlock(&xtime_lock); | 72 | write_seqlock(&xtime_lock); |
73 | 73 | ||
74 | while (((read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV) >= LATCH) { | 74 | while (((read_CRTR() - last_crtr) & AT91_ST_ALMV) >= LATCH) { |
75 | timer_tick(regs); | 75 | timer_tick(regs); |
76 | rtar = (at91_sys_read(AT91_ST_RTAR) + LATCH) & AT91_ST_ALMV; | 76 | last_crtr = (last_crtr + LATCH) & AT91_ST_ALMV; |
77 | at91_sys_write(AT91_ST_RTAR, rtar); | ||
78 | } | 77 | } |
79 | 78 | ||
80 | write_sequnlock(&xtime_lock); | 79 | write_sequnlock(&xtime_lock); |
@@ -87,10 +86,24 @@ static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_r | |||
87 | 86 | ||
88 | static struct irqaction at91rm9200_timer_irq = { | 87 | static struct irqaction at91rm9200_timer_irq = { |
89 | .name = "at91_tick", | 88 | .name = "at91_tick", |
90 | .flags = SA_SHIRQ | SA_INTERRUPT, | 89 | .flags = SA_SHIRQ | SA_INTERRUPT | SA_TIMER, |
91 | .handler = at91rm9200_timer_interrupt | 90 | .handler = at91rm9200_timer_interrupt |
92 | }; | 91 | }; |
93 | 92 | ||
93 | void at91rm9200_timer_reset(void) | ||
94 | { | ||
95 | last_crtr = 0; | ||
96 | |||
97 | /* Real time counter incremented every 30.51758 microseconds */ | ||
98 | at91_sys_write(AT91_ST_RTMR, 1); | ||
99 | |||
100 | /* Set Period Interval timer */ | ||
101 | at91_sys_write(AT91_ST_PIMR, LATCH); | ||
102 | |||
103 | /* Enable Period Interval Timer interrupt */ | ||
104 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | ||
105 | } | ||
106 | |||
94 | /* | 107 | /* |
95 | * Set up timer interrupt. | 108 | * Set up timer interrupt. |
96 | */ | 109 | */ |
@@ -100,28 +113,30 @@ void __init at91rm9200_timer_init(void) | |||
100 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS); | 113 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS); |
101 | (void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */ | 114 | (void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */ |
102 | 115 | ||
103 | /* | 116 | /* Make IRQs happen for the system timer */ |
104 | * Make IRQs happen for the system timer. | ||
105 | */ | ||
106 | setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq); | 117 | setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq); |
107 | 118 | ||
108 | /* Set initial alarm to 0 */ | ||
109 | at91_sys_write(AT91_ST_RTAR, 0); | ||
110 | |||
111 | /* Real time counter incremented every 30.51758 microseconds */ | ||
112 | at91_sys_write(AT91_ST_RTMR, 1); | ||
113 | |||
114 | /* Set Period Interval timer */ | ||
115 | at91_sys_write(AT91_ST_PIMR, LATCH); | ||
116 | |||
117 | /* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */ | 119 | /* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */ |
118 | tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE; | 120 | tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE; |
119 | 121 | ||
120 | /* Enable Period Interval Timer interrupt */ | 122 | /* Initialize and enable the timer interrupt */ |
121 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | 123 | at91rm9200_timer_reset(); |
124 | } | ||
125 | |||
126 | #ifdef CONFIG_PM | ||
127 | static void at91rm9200_timer_suspend(void) | ||
128 | { | ||
129 | /* disable Period Interval Timer interrupt */ | ||
130 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS); | ||
122 | } | 131 | } |
132 | #else | ||
133 | #define at91rm9200_timer_suspend NULL | ||
134 | #endif | ||
123 | 135 | ||
124 | struct sys_timer at91rm9200_timer = { | 136 | struct sys_timer at91rm9200_timer = { |
125 | .init = at91rm9200_timer_init, | 137 | .init = at91rm9200_timer_init, |
126 | .offset = at91rm9200_gettimeoffset, | 138 | .offset = at91rm9200_gettimeoffset, |
139 | .suspend = at91rm9200_timer_suspend, | ||
140 | .resume = at91rm9200_timer_reset, | ||
127 | }; | 141 | }; |
142 | |||
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index 9be01b0c3f48..e24566b88a78 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c | |||
@@ -111,21 +111,21 @@ static void __init ts72xx_map_io(void) | |||
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||
114 | static unsigned char ts72xx_rtc_readb(unsigned long addr) | 114 | static unsigned char ts72xx_rtc_readbyte(unsigned long addr) |
115 | { | 115 | { |
116 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); | 116 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); |
117 | return __raw_readb(TS72XX_RTC_DATA_VIRT_BASE); | 117 | return __raw_readb(TS72XX_RTC_DATA_VIRT_BASE); |
118 | } | 118 | } |
119 | 119 | ||
120 | static void ts72xx_rtc_writeb(unsigned char value, unsigned long addr) | 120 | static void ts72xx_rtc_writebyte(unsigned char value, unsigned long addr) |
121 | { | 121 | { |
122 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); | 122 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); |
123 | __raw_writeb(value, TS72XX_RTC_DATA_VIRT_BASE); | 123 | __raw_writeb(value, TS72XX_RTC_DATA_VIRT_BASE); |
124 | } | 124 | } |
125 | 125 | ||
126 | static struct m48t86_ops ts72xx_rtc_ops = { | 126 | static struct m48t86_ops ts72xx_rtc_ops = { |
127 | .readb = ts72xx_rtc_readb, | 127 | .readbyte = ts72xx_rtc_readbyte, |
128 | .writeb = ts72xx_rtc_writeb, | 128 | .writebyte = ts72xx_rtc_writebyte, |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static struct platform_device ts72xx_rtc_device = { | 131 | static struct platform_device ts72xx_rtc_device = { |
diff --git a/arch/arm/mach-imx/irq.c b/arch/arm/mach-imx/irq.c index eeb8a6d4a399..a5de5f1da9f2 100644 --- a/arch/arm/mach-imx/irq.c +++ b/arch/arm/mach-imx/irq.c | |||
@@ -127,7 +127,7 @@ static void | |||
127 | imx_gpio_ack_irq(unsigned int irq) | 127 | imx_gpio_ack_irq(unsigned int irq) |
128 | { | 128 | { |
129 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, irq); | 129 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, irq); |
130 | ISR(IRQ_TO_REG(irq)) |= 1 << ((irq - IRQ_GPIOA(0)) % 32); | 130 | ISR(IRQ_TO_REG(irq)) = 1 << ((irq - IRQ_GPIOA(0)) % 32); |
131 | } | 131 | } |
132 | 132 | ||
133 | static void | 133 | static void |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index a0724f2b24ce..9f55f5ae1044 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -232,8 +232,6 @@ static void __init intcp_init_irq(void) | |||
232 | for (i = IRQ_PIC_START; i <= IRQ_PIC_END; i++) { | 232 | for (i = IRQ_PIC_START; i <= IRQ_PIC_END; i++) { |
233 | if (i == 11) | 233 | if (i == 11) |
234 | i = 22; | 234 | i = 22; |
235 | if (i == IRQ_CP_CPPLDINT) | ||
236 | i++; | ||
237 | if (i == 29) | 235 | if (i == 29) |
238 | break; | 236 | break; |
239 | set_irq_chip(i, &pic_chip); | 237 | set_irq_chip(i, &pic_chip); |
@@ -259,8 +257,7 @@ static void __init intcp_init_irq(void) | |||
259 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); | 257 | set_irq_flags(i, IRQF_VALID | IRQF_PROBE); |
260 | } | 258 | } |
261 | 259 | ||
262 | set_irq_handler(IRQ_CP_CPPLDINT, sic_handle_irq); | 260 | set_irq_chained_handler(IRQ_CP_CPPLDINT, sic_handle_irq); |
263 | pic_unmask_irq(IRQ_CP_CPPLDINT); | ||
264 | } | 261 | } |
265 | 262 | ||
266 | /* | 263 | /* |
diff --git a/arch/arm/mach-ixp23xx/core.c b/arch/arm/mach-ixp23xx/core.c index 092ee12ced42..affd1d5d7440 100644 --- a/arch/arm/mach-ixp23xx/core.c +++ b/arch/arm/mach-ixp23xx/core.c | |||
@@ -178,8 +178,12 @@ static int ixp23xx_irq_set_type(unsigned int irq, unsigned int type) | |||
178 | 178 | ||
179 | static void ixp23xx_irq_mask(unsigned int irq) | 179 | static void ixp23xx_irq_mask(unsigned int irq) |
180 | { | 180 | { |
181 | volatile unsigned long *intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | 181 | volatile unsigned long *intr_reg; |
182 | 182 | ||
183 | if (irq >= 56) | ||
184 | irq += 8; | ||
185 | |||
186 | intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | ||
183 | *intr_reg &= ~(1 << (irq % 32)); | 187 | *intr_reg &= ~(1 << (irq % 32)); |
184 | } | 188 | } |
185 | 189 | ||
@@ -199,17 +203,25 @@ static void ixp23xx_irq_ack(unsigned int irq) | |||
199 | */ | 203 | */ |
200 | static void ixp23xx_irq_level_unmask(unsigned int irq) | 204 | static void ixp23xx_irq_level_unmask(unsigned int irq) |
201 | { | 205 | { |
202 | volatile unsigned long *intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | 206 | volatile unsigned long *intr_reg; |
203 | 207 | ||
204 | ixp23xx_irq_ack(irq); | 208 | ixp23xx_irq_ack(irq); |
205 | 209 | ||
210 | if (irq >= 56) | ||
211 | irq += 8; | ||
212 | |||
213 | intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | ||
206 | *intr_reg |= (1 << (irq % 32)); | 214 | *intr_reg |= (1 << (irq % 32)); |
207 | } | 215 | } |
208 | 216 | ||
209 | static void ixp23xx_irq_edge_unmask(unsigned int irq) | 217 | static void ixp23xx_irq_edge_unmask(unsigned int irq) |
210 | { | 218 | { |
211 | volatile unsigned long *intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | 219 | volatile unsigned long *intr_reg; |
220 | |||
221 | if (irq >= 56) | ||
222 | irq += 8; | ||
212 | 223 | ||
224 | intr_reg = IXP23XX_INTR_EN1 + (irq / 32); | ||
213 | *intr_reg |= (1 << (irq % 32)); | 225 | *intr_reg |= (1 << (irq % 32)); |
214 | } | 226 | } |
215 | 227 | ||
diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index 2a39f9e481ad..3b23f43cb160 100644 --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig | |||
@@ -141,7 +141,7 @@ config IXP4XX_INDIRECT_PCI | |||
141 | 2) If > 64MB of memory space is required, the IXP4xx can be | 141 | 2) If > 64MB of memory space is required, the IXP4xx can be |
142 | configured to use indirect registers to access PCI This allows | 142 | configured to use indirect registers to access PCI This allows |
143 | for up to 128MB (0x48000000 to 0x4fffffff) of memory on the bus. | 143 | for up to 128MB (0x48000000 to 0x4fffffff) of memory on the bus. |
144 | The disadvantadge of this is that every PCI access requires | 144 | The disadvantage of this is that every PCI access requires |
145 | three local register accesses plus a spinlock, but in some | 145 | three local register accesses plus a spinlock, but in some |
146 | cases the performance hit is acceptable. In addition, you cannot | 146 | cases the performance hit is acceptable. In addition, you cannot |
147 | mmap() PCI devices in this case due to the indirect nature | 147 | mmap() PCI devices in this case due to the indirect nature |
diff --git a/arch/arm/mach-lh7a40x/Kconfig b/arch/arm/mach-lh7a40x/Kconfig index 8a17867a6a24..558a34f53b1c 100644 --- a/arch/arm/mach-lh7a40x/Kconfig +++ b/arch/arm/mach-lh7a40x/Kconfig | |||
@@ -14,6 +14,7 @@ config MACH_LPD7A400 | |||
14 | bool "LPD7A400 Card Engine" | 14 | bool "LPD7A400 Card Engine" |
15 | select ARCH_LH7A400 | 15 | select ARCH_LH7A400 |
16 | # select IDE_POLL | 16 | # select IDE_POLL |
17 | select HAS_TOUCHSCREEN_ADS7843_LH7 | ||
17 | help | 18 | help |
18 | Say Y here if you are using Logic Product Development's | 19 | Say Y here if you are using Logic Product Development's |
19 | LPD7A400 CardEngine. For the time being, the LPD7A400 and | 20 | LPD7A400 CardEngine. For the time being, the LPD7A400 and |
@@ -23,6 +24,7 @@ config MACH_LPD7A404 | |||
23 | bool "LPD7A404 Card Engine" | 24 | bool "LPD7A404 Card Engine" |
24 | select ARCH_LH7A404 | 25 | select ARCH_LH7A404 |
25 | # select IDE_POLL | 26 | # select IDE_POLL |
27 | select HAS_TOUCHSCREEN_ADC_LH7 | ||
26 | help | 28 | help |
27 | Say Y here if you are using Logic Product Development's | 29 | Say Y here if you are using Logic Product Development's |
28 | LPD7A404 CardEngine. For the time being, the LPD7A400 and | 30 | LPD7A404 CardEngine. For the time being, the LPD7A400 and |
@@ -34,6 +36,9 @@ config ARCH_LH7A400 | |||
34 | config ARCH_LH7A404 | 36 | config ARCH_LH7A404 |
35 | bool | 37 | bool |
36 | 38 | ||
39 | config LPD7A40X_CPLD_SSP | ||
40 | bool | ||
41 | |||
37 | config LH7A40X_CONTIGMEM | 42 | config LH7A40X_CONTIGMEM |
38 | bool "Disable NUMA Support" | 43 | bool "Disable NUMA Support" |
39 | depends on ARCH_LH7A40X | 44 | depends on ARCH_LH7A40X |
diff --git a/arch/arm/mach-lh7a40x/Makefile b/arch/arm/mach-lh7a40x/Makefile index e90512dbc2d6..94b8615fb3c3 100644 --- a/arch/arm/mach-lh7a40x/Makefile +++ b/arch/arm/mach-lh7a40x/Makefile | |||
@@ -4,11 +4,14 @@ | |||
4 | 4 | ||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := time.o | 7 | obj-y := time.o clocks.o |
8 | obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o | 8 | obj-m := |
9 | obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o | 9 | obj-n := |
10 | obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o | 10 | obj- := |
11 | 11 | ||
12 | obj-m := | 12 | obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o |
13 | obj-n := | 13 | obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o |
14 | obj- := | 14 | obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o |
15 | obj-$(CONFIG_LPD7A40X_CPLD_SSP) += ssp-cpld.o | ||
16 | obj-$(CONFIG_FB_ARMCLCD) += clcd.o | ||
17 | |||
diff --git a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c index 12e23277c5ea..c0e6854289f1 100644 --- a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c +++ b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c | |||
@@ -23,6 +23,28 @@ | |||
23 | 23 | ||
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | #define CPLD_INT_NETHERNET (1<<0) | ||
27 | #define CPLD_INTMASK_ETHERNET (1<<2) | ||
28 | #if defined (CONFIG_MACH_LPD7A400) | ||
29 | # define CPLD_INT_NTOUCH (1<<1) | ||
30 | # define CPLD_INTMASK_TOUCH (1<<3) | ||
31 | # define CPLD_INT_PEN (1<<4) | ||
32 | # define CPLD_INTMASK_PEN (1<<4) | ||
33 | # define CPLD_INT_PIRQ (1<<4) | ||
34 | #endif | ||
35 | #define CPLD_INTMASK_CPLD (1<<7) | ||
36 | #define CPLD_INT_CPLD (1<<6) | ||
37 | |||
38 | #define CPLD_CONTROL_SWINT (1<<7) /* Disable all CPLD IRQs */ | ||
39 | #define CPLD_CONTROL_OCMSK (1<<6) /* Mask USB1 connect IRQ */ | ||
40 | #define CPLD_CONTROL_PDRV (1<<5) /* PCC_nDRV high */ | ||
41 | #define CPLD_CONTROL_USB1C (1<<4) /* USB1 connect IRQ active */ | ||
42 | #define CPLD_CONTROL_USB1P (1<<3) /* USB1 power disable */ | ||
43 | #define CPLD_CONTROL_AWKP (1<<2) /* Auto-wakeup disabled */ | ||
44 | #define CPLD_CONTROL_LCD_ENABLE (1<<1) /* LCD Vee enable */ | ||
45 | #define CPLD_CONTROL_WRLAN_NENABLE (1<<0) /* SMC91x power disable */ | ||
46 | |||
47 | |||
26 | static struct resource smc91x_resources[] = { | 48 | static struct resource smc91x_resources[] = { |
27 | [0] = { | 49 | [0] = { |
28 | .start = CPLD00_PHYS, | 50 | .start = CPLD00_PHYS, |
@@ -48,12 +70,12 @@ static struct platform_device smc91x_device = { | |||
48 | static struct resource lh7a40x_usbclient_resources[] = { | 70 | static struct resource lh7a40x_usbclient_resources[] = { |
49 | [0] = { | 71 | [0] = { |
50 | .start = USB_PHYS, | 72 | .start = USB_PHYS, |
51 | .end = (USB_PHYS + 0xFF), | 73 | .end = (USB_PHYS + PAGE_SIZE), |
52 | .flags = IORESOURCE_MEM, | 74 | .flags = IORESOURCE_MEM, |
53 | }, | 75 | }, |
54 | [1] = { | 76 | [1] = { |
55 | .start = IRQ_USBINTR, | 77 | .start = IRQ_USB, |
56 | .end = IRQ_USBINTR, | 78 | .end = IRQ_USB, |
57 | .flags = IORESOURCE_IRQ, | 79 | .flags = IORESOURCE_IRQ, |
58 | }, | 80 | }, |
59 | }; | 81 | }; |
@@ -61,7 +83,8 @@ static struct resource lh7a40x_usbclient_resources[] = { | |||
61 | static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; | 83 | static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; |
62 | 84 | ||
63 | static struct platform_device lh7a40x_usbclient_device = { | 85 | static struct platform_device lh7a40x_usbclient_device = { |
64 | .name = "lh7a40x_udc", | 86 | // .name = "lh7a40x_udc", |
87 | .name = "lh7-udc", | ||
65 | .id = 0, | 88 | .id = 0, |
66 | .dev = { | 89 | .dev = { |
67 | .dma_mask = &lh7a40x_usbclient_dma_mask, | 90 | .dma_mask = &lh7a40x_usbclient_dma_mask, |
@@ -101,7 +124,7 @@ static struct platform_device lh7a404_usbhost_device = { | |||
101 | 124 | ||
102 | #endif | 125 | #endif |
103 | 126 | ||
104 | static struct platform_device *lpd7a40x_devs[] __initdata = { | 127 | static struct platform_device* lpd7a40x_devs[] __initdata = { |
105 | &smc91x_device, | 128 | &smc91x_device, |
106 | &lh7a40x_usbclient_device, | 129 | &lh7a40x_usbclient_device, |
107 | #if defined (CONFIG_ARCH_LH7A404) | 130 | #if defined (CONFIG_ARCH_LH7A404) |
@@ -113,29 +136,52 @@ extern void lpd7a400_map_io (void); | |||
113 | 136 | ||
114 | static void __init lpd7a40x_init (void) | 137 | static void __init lpd7a40x_init (void) |
115 | { | 138 | { |
116 | CPLD_CONTROL |= (1<<6); /* Mask USB1 connection IRQ */ | 139 | #if defined (CONFIG_MACH_LPD7A400) |
140 | CPLD_CONTROL |= 0 | ||
141 | | CPLD_CONTROL_SWINT /* Disable software interrupt */ | ||
142 | | CPLD_CONTROL_OCMSK; /* Mask USB1 connection IRQ */ | ||
117 | CPLD_CONTROL &= ~(0 | 143 | CPLD_CONTROL &= ~(0 |
118 | | (1<<1) /* Disable LCD */ | 144 | | CPLD_CONTROL_LCD_ENABLE /* Disable LCD */ |
119 | | (1<<0) /* Enable WLAN */ | 145 | | CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */ |
120 | ); | 146 | ); |
147 | #endif | ||
148 | |||
149 | #if defined (CONFIG_MACH_LPD7A404) | ||
150 | CPLD_CONTROL &= ~(0 | ||
151 | | CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */ | ||
152 | ); | ||
153 | #endif | ||
121 | 154 | ||
122 | platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs)); | 155 | platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs)); |
156 | #if defined (CONFIG_FB_ARMCLCD) | ||
157 | lh7a40x_clcd_init (); | ||
158 | #endif | ||
123 | } | 159 | } |
124 | 160 | ||
125 | static void lh7a40x_ack_cpld_irq (u32 irq) | 161 | static void lh7a40x_ack_cpld_irq (u32 irq) |
126 | { | 162 | { |
127 | /* CPLD doesn't have ack capability */ | 163 | /* CPLD doesn't have ack capability, but some devices may */ |
164 | |||
165 | #if defined (CPLD_INTMASK_TOUCH) | ||
166 | /* The touch control *must* mask the the interrupt because the | ||
167 | * interrupt bit is read by the driver to determine if the pen | ||
168 | * is still down. */ | ||
169 | if (irq == IRQ_TOUCH) | ||
170 | CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH; | ||
171 | #endif | ||
128 | } | 172 | } |
129 | 173 | ||
130 | static void lh7a40x_mask_cpld_irq (u32 irq) | 174 | static void lh7a40x_mask_cpld_irq (u32 irq) |
131 | { | 175 | { |
132 | switch (irq) { | 176 | switch (irq) { |
133 | case IRQ_LPD7A40X_ETH_INT: | 177 | case IRQ_LPD7A40X_ETH_INT: |
134 | CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x4; | 178 | CPLD_INTERRUPTS |= CPLD_INTMASK_ETHERNET; |
135 | break; | 179 | break; |
136 | case IRQ_LPD7A400_TS: | 180 | #if defined (IRQ_TOUCH) |
137 | CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x8; | 181 | case IRQ_TOUCH: |
182 | CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH; | ||
138 | break; | 183 | break; |
184 | #endif | ||
139 | } | 185 | } |
140 | } | 186 | } |
141 | 187 | ||
@@ -143,11 +189,13 @@ static void lh7a40x_unmask_cpld_irq (u32 irq) | |||
143 | { | 189 | { |
144 | switch (irq) { | 190 | switch (irq) { |
145 | case IRQ_LPD7A40X_ETH_INT: | 191 | case IRQ_LPD7A40X_ETH_INT: |
146 | CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x4; | 192 | CPLD_INTERRUPTS &= ~CPLD_INTMASK_ETHERNET; |
147 | break; | 193 | break; |
148 | case IRQ_LPD7A400_TS: | 194 | #if defined (IRQ_TOUCH) |
149 | CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x8; | 195 | case IRQ_TOUCH: |
196 | CPLD_INTERRUPTS &= ~CPLD_INTMASK_TOUCH; | ||
150 | break; | 197 | break; |
198 | #endif | ||
151 | } | 199 | } |
152 | } | 200 | } |
153 | 201 | ||
@@ -164,11 +212,13 @@ static void lpd7a40x_cpld_handler (unsigned int irq, struct irqdesc *desc, | |||
164 | 212 | ||
165 | desc->chip->ack (irq); | 213 | desc->chip->ack (irq); |
166 | 214 | ||
167 | if ((mask & 0x1) == 0) /* WLAN */ | 215 | if ((mask & (1<<0)) == 0) /* WLAN */ |
168 | IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT); | 216 | IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT); |
169 | 217 | ||
170 | if ((mask & 0x2) == 0) /* Touch */ | 218 | #if defined (IRQ_TOUCH) |
171 | IRQ_DISPATCH (IRQ_LPD7A400_TS); | 219 | if ((mask & (1<<1)) == 0) /* Touch */ |
220 | IRQ_DISPATCH (IRQ_TOUCH); | ||
221 | #endif | ||
172 | 222 | ||
173 | desc->chip->unmask (irq); /* Level-triggered need this */ | 223 | desc->chip->unmask (irq); /* Level-triggered need this */ |
174 | } | 224 | } |
@@ -204,9 +254,21 @@ void __init lh7a40x_init_board_irq (void) | |||
204 | 254 | ||
205 | /* Then, configure CPLD interrupt */ | 255 | /* Then, configure CPLD interrupt */ |
206 | 256 | ||
207 | CPLD_INTERRUPTS = 0x9c; /* Disable all CPLD interrupts */ | 257 | /* Disable all CPLD interrupts */ |
258 | #if defined (CONFIG_MACH_LPD7A400) | ||
259 | CPLD_INTERRUPTS = CPLD_INTMASK_TOUCH | CPLD_INTMASK_PEN | ||
260 | | CPLD_INTMASK_ETHERNET; | ||
261 | /* *** FIXME: don't know why we need 7 and 4. 7 is way wrong | ||
262 | and 4 is uncefined. */ | ||
263 | // (1<<7)|(1<<4)|(1<<3)|(1<<2); | ||
264 | #endif | ||
265 | #if defined (CONFIG_MACH_LPD7A404) | ||
266 | CPLD_INTERRUPTS = CPLD_INTMASK_ETHERNET; | ||
267 | /* *** FIXME: don't know why we need 6 and 5, neither is defined. */ | ||
268 | // (1<<6)|(1<<5)|(1<<3); | ||
269 | #endif | ||
208 | GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */ | 270 | GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */ |
209 | GPIO_INTTYPE1 |= (1 << pinCPLD); /* Edge triggered */ | 271 | GPIO_INTTYPE1 &= ~(1 << pinCPLD); /* Level triggered */ |
210 | GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */ | 272 | GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */ |
211 | barrier (); | 273 | barrier (); |
212 | GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */ | 274 | GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */ |
@@ -216,7 +278,7 @@ void __init lh7a40x_init_board_irq (void) | |||
216 | for (irq = IRQ_BOARD_START; | 278 | for (irq = IRQ_BOARD_START; |
217 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { | 279 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { |
218 | set_irq_chip (irq, &lpd7a40x_cpld_chip); | 280 | set_irq_chip (irq, &lpd7a40x_cpld_chip); |
219 | set_irq_handler (irq, do_edge_IRQ); | 281 | set_irq_handler (irq, do_level_IRQ); |
220 | set_irq_flags (irq, IRQF_VALID); | 282 | set_irq_flags (irq, IRQF_VALID); |
221 | } | 283 | } |
222 | 284 | ||
@@ -226,91 +288,109 @@ void __init lh7a40x_init_board_irq (void) | |||
226 | lpd7a40x_cpld_handler); | 288 | lpd7a40x_cpld_handler); |
227 | } | 289 | } |
228 | 290 | ||
229 | static struct map_desc lpd7a400_io_desc[] __initdata = { | 291 | static struct map_desc lpd7a40x_io_desc[] __initdata = { |
230 | { | 292 | { |
231 | .virtual = IO_VIRT, | 293 | .virtual = IO_VIRT, |
232 | .pfn = __phys_to_pfn(IO_PHYS), | 294 | .pfn = __phys_to_pfn(IO_PHYS), |
233 | .length = IO_SIZE, | 295 | .length = IO_SIZE, |
234 | .type = MT_DEVICE | 296 | .type = MT_DEVICE |
235 | }, { /* Mapping added to work around chip select problems */ | 297 | }, |
298 | { /* Mapping added to work around chip select problems */ | ||
236 | .virtual = IOBARRIER_VIRT, | 299 | .virtual = IOBARRIER_VIRT, |
237 | .pfn = __phys_to_pfn(IOBARRIER_PHYS), | 300 | .pfn = __phys_to_pfn(IOBARRIER_PHYS), |
238 | .length = IOBARRIER_SIZE, | 301 | .length = IOBARRIER_SIZE, |
239 | .type = MT_DEVICE | 302 | .type = MT_DEVICE |
240 | }, { | 303 | }, |
304 | { | ||
241 | .virtual = CF_VIRT, | 305 | .virtual = CF_VIRT, |
242 | .pfn = __phys_to_pfn(CF_PHYS), | 306 | .pfn = __phys_to_pfn(CF_PHYS), |
243 | .length = CF_SIZE, | 307 | .length = CF_SIZE, |
244 | .type = MT_DEVICE | 308 | .type = MT_DEVICE |
245 | }, { | 309 | }, |
310 | { | ||
246 | .virtual = CPLD02_VIRT, | 311 | .virtual = CPLD02_VIRT, |
247 | .pfn = __phys_to_pfn(CPLD02_PHYS), | 312 | .pfn = __phys_to_pfn(CPLD02_PHYS), |
248 | .length = CPLD02_SIZE, | 313 | .length = CPLD02_SIZE, |
249 | .type = MT_DEVICE | 314 | .type = MT_DEVICE |
250 | }, { | 315 | }, |
316 | { | ||
251 | .virtual = CPLD06_VIRT, | 317 | .virtual = CPLD06_VIRT, |
252 | .pfn = __phys_to_pfn(CPLD06_PHYS), | 318 | .pfn = __phys_to_pfn(CPLD06_PHYS), |
253 | .length = CPLD06_SIZE, | 319 | .length = CPLD06_SIZE, |
320 | .type = MT_DEVICE | ||
321 | }, | ||
322 | { | ||
323 | .virtual = CPLD08_VIRT, | ||
324 | .pfn = __phys_to_pfn(CPLD08_PHYS), | ||
325 | .length = CPLD08_SIZE, | ||
254 | .type = MT_DEVICE | 326 | .type = MT_DEVICE |
255 | }, { | 327 | }, |
328 | { | ||
256 | .virtual = CPLD08_VIRT, | 329 | .virtual = CPLD08_VIRT, |
257 | .pfn = __phys_to_pfn(CPLD08_PHYS), | 330 | .pfn = __phys_to_pfn(CPLD08_PHYS), |
258 | .length = CPLD08_SIZE, | 331 | .length = CPLD08_SIZE, |
259 | .type = MT_DEVICE | 332 | .type = MT_DEVICE |
260 | }, { | 333 | }, |
334 | { | ||
335 | .virtual = CPLD0A_VIRT, | ||
336 | .pfn = __phys_to_pfn(CPLD0A_PHYS), | ||
337 | .length = CPLD0A_SIZE, | ||
338 | .type = MT_DEVICE | ||
339 | }, | ||
340 | { | ||
261 | .virtual = CPLD0C_VIRT, | 341 | .virtual = CPLD0C_VIRT, |
262 | .pfn = __phys_to_pfn(CPLD0C_PHYS), | 342 | .pfn = __phys_to_pfn(CPLD0C_PHYS), |
263 | .length = CPLD0C_SIZE, | 343 | .length = CPLD0C_SIZE, |
264 | .type = MT_DEVICE | 344 | .type = MT_DEVICE |
265 | }, { | 345 | }, |
346 | { | ||
266 | .virtual = CPLD0E_VIRT, | 347 | .virtual = CPLD0E_VIRT, |
267 | .pfn = __phys_to_pfn(CPLD0E_PHYS), | 348 | .pfn = __phys_to_pfn(CPLD0E_PHYS), |
268 | .length = CPLD0E_SIZE, | 349 | .length = CPLD0E_SIZE, |
269 | .type = MT_DEVICE | 350 | .type = MT_DEVICE |
270 | }, { | 351 | }, |
352 | { | ||
271 | .virtual = CPLD10_VIRT, | 353 | .virtual = CPLD10_VIRT, |
272 | .pfn = __phys_to_pfn(CPLD10_PHYS), | 354 | .pfn = __phys_to_pfn(CPLD10_PHYS), |
273 | .length = CPLD10_SIZE, | 355 | .length = CPLD10_SIZE, |
274 | .type = MT_DEVICE | 356 | .type = MT_DEVICE |
275 | }, { | 357 | }, |
358 | { | ||
276 | .virtual = CPLD12_VIRT, | 359 | .virtual = CPLD12_VIRT, |
277 | .pfn = __phys_to_pfn(CPLD12_PHYS), | 360 | .pfn = __phys_to_pfn(CPLD12_PHYS), |
278 | .length = CPLD12_SIZE, | 361 | .length = CPLD12_SIZE, |
279 | .type = MT_DEVICE | 362 | .type = MT_DEVICE |
280 | }, { | 363 | }, |
364 | { | ||
281 | .virtual = CPLD14_VIRT, | 365 | .virtual = CPLD14_VIRT, |
282 | .pfn = __phys_to_pfn(CPLD14_PHYS), | 366 | .pfn = __phys_to_pfn(CPLD14_PHYS), |
283 | .length = CPLD14_SIZE, | 367 | .length = CPLD14_SIZE, |
284 | .type = MT_DEVICE | 368 | .type = MT_DEVICE |
285 | }, { | 369 | }, |
370 | { | ||
286 | .virtual = CPLD16_VIRT, | 371 | .virtual = CPLD16_VIRT, |
287 | .pfn = __phys_to_pfn(CPLD16_PHYS), | 372 | .pfn = __phys_to_pfn(CPLD16_PHYS), |
288 | .length = CPLD16_SIZE, | 373 | .length = CPLD16_SIZE, |
289 | .type = MT_DEVICE | 374 | .type = MT_DEVICE |
290 | }, { | 375 | }, |
376 | { | ||
291 | .virtual = CPLD18_VIRT, | 377 | .virtual = CPLD18_VIRT, |
292 | .pfn = __phys_to_pfn(CPLD18_PHYS), | 378 | .pfn = __phys_to_pfn(CPLD18_PHYS), |
293 | .length = CPLD18_SIZE, | 379 | .length = CPLD18_SIZE, |
294 | .type = MT_DEVICE | 380 | .type = MT_DEVICE |
295 | }, { | 381 | }, |
382 | { | ||
296 | .virtual = CPLD1A_VIRT, | 383 | .virtual = CPLD1A_VIRT, |
297 | .pfn = __phys_to_pfn(CPLD1A_PHYS), | 384 | .pfn = __phys_to_pfn(CPLD1A_PHYS), |
298 | .length = CPLD1A_SIZE, | 385 | .length = CPLD1A_SIZE, |
299 | .type = MT_DEVICE | 386 | .type = MT_DEVICE |
300 | }, | 387 | }, |
301 | /* This mapping is redundant since the smc driver performs another. */ | ||
302 | /* { CPLD00_VIRT, CPLD00_PHYS, CPLD00_SIZE, MT_DEVICE }, */ | ||
303 | }; | 388 | }; |
304 | 389 | ||
305 | void __init | 390 | void __init |
306 | lpd7a400_map_io(void) | 391 | lpd7a40x_map_io(void) |
307 | { | 392 | { |
308 | iotable_init (lpd7a400_io_desc, ARRAY_SIZE (lpd7a400_io_desc)); | 393 | iotable_init (lpd7a40x_io_desc, ARRAY_SIZE (lpd7a40x_io_desc)); |
309 | |||
310 | /* Fixup (improve) Static Memory Controller settings */ | ||
311 | SMC_BCR0 = 0x200039af; /* Boot Flash */ | ||
312 | SMC_BCR6 = 0x1000fbe0; /* CPLD */ | ||
313 | SMC_BCR7 = 0x1000b2c2; /* Compact Flash */ | ||
314 | } | 394 | } |
315 | 395 | ||
316 | #ifdef CONFIG_MACH_LPD7A400 | 396 | #ifdef CONFIG_MACH_LPD7A400 |
@@ -320,7 +400,7 @@ MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10") | |||
320 | .phys_io = 0x80000000, | 400 | .phys_io = 0x80000000, |
321 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, | 401 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, |
322 | .boot_params = 0xc0000100, | 402 | .boot_params = 0xc0000100, |
323 | .map_io = lpd7a400_map_io, | 403 | .map_io = lpd7a40x_map_io, |
324 | .init_irq = lh7a400_init_irq, | 404 | .init_irq = lh7a400_init_irq, |
325 | .timer = &lh7a40x_timer, | 405 | .timer = &lh7a40x_timer, |
326 | .init_machine = lpd7a40x_init, | 406 | .init_machine = lpd7a40x_init, |
@@ -335,7 +415,7 @@ MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10") | |||
335 | .phys_io = 0x80000000, | 415 | .phys_io = 0x80000000, |
336 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, | 416 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, |
337 | .boot_params = 0xc0000100, | 417 | .boot_params = 0xc0000100, |
338 | .map_io = lpd7a400_map_io, | 418 | .map_io = lpd7a40x_map_io, |
339 | .init_irq = lh7a404_init_irq, | 419 | .init_irq = lh7a404_init_irq, |
340 | .timer = &lh7a40x_timer, | 420 | .timer = &lh7a40x_timer, |
341 | .init_machine = lpd7a40x_init, | 421 | .init_machine = lpd7a40x_init, |
diff --git a/arch/arm/mach-lh7a40x/clcd.c b/arch/arm/mach-lh7a40x/clcd.c new file mode 100644 index 000000000000..93751fee793d --- /dev/null +++ b/arch/arm/mach-lh7a40x/clcd.c | |||
@@ -0,0 +1,241 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-lh7a40x/clcd.c | ||
3 | * | ||
4 | * Copyright (C) 2004 Marc Singer | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * version 2 as published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | #include <linux/config.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/device.h> | ||
14 | #include <linux/dma-mapping.h> | ||
15 | #include <linux/sysdev.h> | ||
16 | #include <linux/interrupt.h> | ||
17 | |||
18 | //#include <linux/module.h> | ||
19 | //#include <linux/time.h> | ||
20 | //#include <asm/hardware.h> | ||
21 | |||
22 | //#include <asm/mach/time.h> | ||
23 | #include <asm/irq.h> | ||
24 | #include <asm/mach/irq.h> | ||
25 | |||
26 | #include <asm/system.h> | ||
27 | #include <asm/hardware.h> | ||
28 | #include <linux/amba/bus.h> | ||
29 | #include <linux/amba/clcd.h> | ||
30 | |||
31 | #define HRTFTC_HRSETUP __REG(HRTFTC_PHYS + 0x00) | ||
32 | #define HRTFTC_HRCON __REG(HRTFTC_PHYS + 0x04) | ||
33 | #define HRTFTC_HRTIMING1 __REG(HRTFTC_PHYS + 0x08) | ||
34 | #define HRTFTC_HRTIMING2 __REG(HRTFTC_PHYS + 0x0c) | ||
35 | |||
36 | #define ALI_SETUP __REG(ALI_PHYS + 0x00) | ||
37 | #define ALI_CONTROL __REG(ALI_PHYS + 0x04) | ||
38 | #define ALI_TIMING1 __REG(ALI_PHYS + 0x08) | ||
39 | #define ALI_TIMING2 __REG(ALI_PHYS + 0x0c) | ||
40 | |||
41 | #include "lcd-panel.h" | ||
42 | |||
43 | static void lh7a40x_clcd_disable (struct clcd_fb *fb) | ||
44 | { | ||
45 | #if defined (CONFIG_MACH_LPD7A400) | ||
46 | CPLD_CONTROL &= ~(1<<1); /* Disable LCD Vee */ | ||
47 | #endif | ||
48 | |||
49 | #if defined (CONFIG_MACH_LPD7A404) | ||
50 | GPIO_PCD &= ~(1<<3); /* Disable LCD Vee */ | ||
51 | #endif | ||
52 | |||
53 | #if defined (CONFIG_ARCH_LH7A400) | ||
54 | HRTFTC_HRSETUP &= ~(1<<13); /* Disable HRTFT controller */ | ||
55 | #endif | ||
56 | |||
57 | #if defined (CONFIG_ARCH_LH7A404) | ||
58 | ALI_SETUP &= ~(1<<13); /* Disable ALI */ | ||
59 | #endif | ||
60 | } | ||
61 | |||
62 | static void lh7a40x_clcd_enable (struct clcd_fb *fb) | ||
63 | { | ||
64 | struct clcd_panel_extra* extra | ||
65 | = (struct clcd_panel_extra*) fb->board_data; | ||
66 | |||
67 | #if defined (CONFIG_MACH_LPD7A400) | ||
68 | CPLD_CONTROL |= (1<<1); /* Enable LCD Vee */ | ||
69 | #endif | ||
70 | |||
71 | #if defined (CONFIG_MACH_LPD7A404) | ||
72 | GPIO_PCDD &= ~(1<<3); /* Enable LCD Vee */ | ||
73 | GPIO_PCD |= (1<<3); | ||
74 | #endif | ||
75 | |||
76 | #if defined (CONFIG_ARCH_LH7A400) | ||
77 | |||
78 | if (extra) { | ||
79 | HRTFTC_HRSETUP | ||
80 | = (1 << 13) | ||
81 | | ((fb->fb.var.xres - 1) << 4) | ||
82 | | 0xc | ||
83 | | (extra->hrmode ? 1 : 0); | ||
84 | HRTFTC_HRCON | ||
85 | = ((extra->clsen ? 1 : 0) << 1) | ||
86 | | ((extra->spsen ? 1 : 0) << 0); | ||
87 | HRTFTC_HRTIMING1 | ||
88 | = (extra->pcdel << 8) | ||
89 | | (extra->revdel << 4) | ||
90 | | (extra->lpdel << 0); | ||
91 | HRTFTC_HRTIMING2 | ||
92 | = (extra->spldel << 9) | ||
93 | | (extra->pc2del << 0); | ||
94 | } | ||
95 | else | ||
96 | HRTFTC_HRSETUP | ||
97 | = (1 << 13) | ||
98 | | 0xc; | ||
99 | #endif | ||
100 | |||
101 | #if defined (CONFIG_ARCH_LH7A404) | ||
102 | |||
103 | if (extra) { | ||
104 | ALI_SETUP | ||
105 | = (1 << 13) | ||
106 | | ((fb->fb.var.xres - 1) << 4) | ||
107 | | 0xc | ||
108 | | (extra->hrmode ? 1 : 0); | ||
109 | ALI_CONTROL | ||
110 | = ((extra->clsen ? 1 : 0) << 1) | ||
111 | | ((extra->spsen ? 1 : 0) << 0); | ||
112 | ALI_TIMING1 | ||
113 | = (extra->pcdel << 8) | ||
114 | | (extra->revdel << 4) | ||
115 | | (extra->lpdel << 0); | ||
116 | ALI_TIMING2 | ||
117 | = (extra->spldel << 9) | ||
118 | | (extra->pc2del << 0); | ||
119 | } | ||
120 | else | ||
121 | ALI_SETUP | ||
122 | = (1 << 13) | ||
123 | | 0xc; | ||
124 | #endif | ||
125 | |||
126 | } | ||
127 | |||
128 | #define FRAMESIZE(s) (((s) + PAGE_SIZE - 1)&PAGE_MASK) | ||
129 | |||
130 | static int lh7a40x_clcd_setup (struct clcd_fb *fb) | ||
131 | { | ||
132 | dma_addr_t dma; | ||
133 | u32 len = FRAMESIZE (lcd_panel.mode.xres*lcd_panel.mode.yres | ||
134 | *(lcd_panel.bpp/8)); | ||
135 | |||
136 | fb->panel = &lcd_panel; | ||
137 | |||
138 | /* Enforce the sync polarity defaults */ | ||
139 | if (!(fb->panel->tim2 & TIM2_IHS)) | ||
140 | fb->fb.var.sync |= FB_SYNC_HOR_HIGH_ACT; | ||
141 | if (!(fb->panel->tim2 & TIM2_IVS)) | ||
142 | fb->fb.var.sync |= FB_SYNC_VERT_HIGH_ACT; | ||
143 | |||
144 | #if defined (HAS_LCD_PANEL_EXTRA) | ||
145 | fb->board_data = &lcd_panel_extra; | ||
146 | #endif | ||
147 | |||
148 | fb->fb.screen_base | ||
149 | = dma_alloc_writecombine (&fb->dev->dev, len, | ||
150 | &dma, GFP_KERNEL); | ||
151 | printk ("CLCD: LCD setup fb virt 0x%p phys 0x%p l %x io 0x%p \n", | ||
152 | fb->fb.screen_base, (void*) dma, len, | ||
153 | (void*) io_p2v (CLCDC_PHYS)); | ||
154 | printk ("CLCD: pixclock %d\n", lcd_panel.mode.pixclock); | ||
155 | |||
156 | if (!fb->fb.screen_base) { | ||
157 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); | ||
158 | return -ENOMEM; | ||
159 | } | ||
160 | |||
161 | #if defined (USE_RGB555) | ||
162 | fb->fb.var.green.length = 5; /* Panel uses RGB 5:5:5 */ | ||
163 | #endif | ||
164 | |||
165 | fb->fb.fix.smem_start = dma; | ||
166 | fb->fb.fix.smem_len = len; | ||
167 | |||
168 | /* Drive PE4 high to prevent CPLD crash */ | ||
169 | GPIO_PEDD |= (1<<4); | ||
170 | GPIO_PED |= (1<<4); | ||
171 | |||
172 | GPIO_PINMUX |= (1<<1) | (1<<0); /* LCDVD[15:4] */ | ||
173 | |||
174 | // fb->fb.fbops->fb_check_var (&fb->fb.var, &fb->fb); | ||
175 | // fb->fb.fbops->fb_set_par (&fb->fb); | ||
176 | |||
177 | return 0; | ||
178 | } | ||
179 | |||
180 | static int lh7a40x_clcd_mmap (struct clcd_fb *fb, struct vm_area_struct *vma) | ||
181 | { | ||
182 | return dma_mmap_writecombine(&fb->dev->dev, vma, | ||
183 | fb->fb.screen_base, | ||
184 | fb->fb.fix.smem_start, | ||
185 | fb->fb.fix.smem_len); | ||
186 | } | ||
187 | |||
188 | static void lh7a40x_clcd_remove (struct clcd_fb *fb) | ||
189 | { | ||
190 | dma_free_writecombine (&fb->dev->dev, fb->fb.fix.smem_len, | ||
191 | fb->fb.screen_base, fb->fb.fix.smem_start); | ||
192 | } | ||
193 | |||
194 | static struct clcd_board clcd_platform_data = { | ||
195 | .name = "lh7a40x FB", | ||
196 | .check = clcdfb_check, | ||
197 | .decode = clcdfb_decode, | ||
198 | .enable = lh7a40x_clcd_enable, | ||
199 | .setup = lh7a40x_clcd_setup, | ||
200 | .mmap = lh7a40x_clcd_mmap, | ||
201 | .remove = lh7a40x_clcd_remove, | ||
202 | .disable = lh7a40x_clcd_disable, | ||
203 | }; | ||
204 | |||
205 | #define IRQ_CLCDC (IRQ_LCDINTR) | ||
206 | |||
207 | #define AMBA_DEVICE(name,busid,base,plat,pid) \ | ||
208 | static struct amba_device name##_device = { \ | ||
209 | .dev = { \ | ||
210 | .coherent_dma_mask = ~0, \ | ||
211 | .bus_id = busid, \ | ||
212 | .platform_data = plat, \ | ||
213 | }, \ | ||
214 | .res = { \ | ||
215 | .start = base##_PHYS, \ | ||
216 | .end = (base##_PHYS) + (4*1024) - 1, \ | ||
217 | .flags = IORESOURCE_MEM, \ | ||
218 | }, \ | ||
219 | .dma_mask = ~0, \ | ||
220 | .irq = { IRQ_##base, }, \ | ||
221 | /* .dma = base##_DMA,*/ \ | ||
222 | .periphid = pid, \ | ||
223 | } | ||
224 | |||
225 | AMBA_DEVICE(clcd, "cldc-lh7a40x", CLCDC, &clcd_platform_data, 0x41110); | ||
226 | |||
227 | static struct amba_device *amba_devs[] __initdata = { | ||
228 | &clcd_device, | ||
229 | }; | ||
230 | |||
231 | void __init lh7a40x_clcd_init (void) | ||
232 | { | ||
233 | int i; | ||
234 | int result; | ||
235 | printk ("CLCD: registering amba devices\n"); | ||
236 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | ||
237 | struct amba_device *d = amba_devs[i]; | ||
238 | result = amba_device_register(d, &iomem_resource); | ||
239 | printk (" %d -> %d\n", i ,result); | ||
240 | } | ||
241 | } | ||
diff --git a/arch/arm/mach-lh7a40x/clocks.c b/arch/arm/mach-lh7a40x/clocks.c new file mode 100644 index 000000000000..2291afe9f23e --- /dev/null +++ b/arch/arm/mach-lh7a40x/clocks.c | |||
@@ -0,0 +1,199 @@ | |||
1 | /* arch/arm/mach-lh7a40x/clocks.c | ||
2 | * | ||
3 | * Copyright (C) 2004 Marc Singer | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | #include <linux/config.h> | ||
12 | #include <linux/cpufreq.h> | ||
13 | #include <asm/hardware.h> | ||
14 | #include <asm/arch/clocks.h> | ||
15 | #include <linux/err.h> | ||
16 | |||
17 | struct module; | ||
18 | struct icst525_params; | ||
19 | |||
20 | struct clk { | ||
21 | struct list_head node; | ||
22 | unsigned long rate; | ||
23 | struct module *owner; | ||
24 | const char *name; | ||
25 | // void *data; | ||
26 | // const struct icst525_params *params; | ||
27 | // void (*setvco)(struct clk *, struct icst525_vco vco); | ||
28 | }; | ||
29 | |||
30 | int clk_register(struct clk *clk); | ||
31 | void clk_unregister(struct clk *clk); | ||
32 | |||
33 | /* ----- */ | ||
34 | |||
35 | #define MAINDIV1(c) (((c) >> 7) & 0x0f) | ||
36 | #define MAINDIV2(c) (((c) >> 11) & 0x1f) | ||
37 | #define PS(c) (((c) >> 18) & 0x03) | ||
38 | #define PREDIV(c) (((c) >> 2) & 0x1f) | ||
39 | #define HCLKDIV(c) (((c) >> 0) & 0x02) | ||
40 | #define PCLKDIV(c) (((c) >> 16) & 0x03) | ||
41 | |||
42 | unsigned int cpufreq_get (unsigned int cpu) /* in kHz */ | ||
43 | { | ||
44 | return fclkfreq_get ()/1000; | ||
45 | } | ||
46 | EXPORT_SYMBOL(cpufreq_get); | ||
47 | |||
48 | unsigned int fclkfreq_get (void) | ||
49 | { | ||
50 | unsigned int clkset = CSC_CLKSET; | ||
51 | unsigned int gclk | ||
52 | = XTAL_IN | ||
53 | / (1 << PS(clkset)) | ||
54 | * (MAINDIV1(clkset) + 2) | ||
55 | / (PREDIV(clkset) + 2) | ||
56 | * (MAINDIV2(clkset) + 2) | ||
57 | ; | ||
58 | return gclk; | ||
59 | } | ||
60 | |||
61 | unsigned int hclkfreq_get (void) | ||
62 | { | ||
63 | unsigned int clkset = CSC_CLKSET; | ||
64 | unsigned int hclk = fclkfreq_get () / (HCLKDIV(clkset) + 1); | ||
65 | |||
66 | return hclk; | ||
67 | } | ||
68 | |||
69 | unsigned int pclkfreq_get (void) | ||
70 | { | ||
71 | unsigned int clkset = CSC_CLKSET; | ||
72 | int pclkdiv = PCLKDIV(clkset); | ||
73 | unsigned int pclk; | ||
74 | if (pclkdiv == 0x3) | ||
75 | pclkdiv = 0x2; | ||
76 | pclk = hclkfreq_get () / (1 << pclkdiv); | ||
77 | |||
78 | return pclk; | ||
79 | } | ||
80 | |||
81 | /* ----- */ | ||
82 | |||
83 | static LIST_HEAD(clocks); | ||
84 | static DECLARE_MUTEX(clocks_sem); | ||
85 | |||
86 | struct clk *clk_get (struct device *dev, const char *id) | ||
87 | { | ||
88 | struct clk *p; | ||
89 | struct clk *clk = ERR_PTR(-ENOENT); | ||
90 | |||
91 | down (&clocks_sem); | ||
92 | list_for_each_entry (p, &clocks, node) { | ||
93 | if (strcmp (id, p->name) == 0 | ||
94 | && try_module_get(p->owner)) { | ||
95 | clk = p; | ||
96 | break; | ||
97 | } | ||
98 | } | ||
99 | up (&clocks_sem); | ||
100 | |||
101 | return clk; | ||
102 | } | ||
103 | EXPORT_SYMBOL(clk_get); | ||
104 | |||
105 | void clk_put (struct clk *clk) | ||
106 | { | ||
107 | module_put(clk->owner); | ||
108 | } | ||
109 | EXPORT_SYMBOL(clk_put); | ||
110 | |||
111 | int clk_enable (struct clk *clk) | ||
112 | { | ||
113 | return 0; | ||
114 | } | ||
115 | EXPORT_SYMBOL(clk_enable); | ||
116 | |||
117 | void clk_disable (struct clk *clk) | ||
118 | { | ||
119 | } | ||
120 | EXPORT_SYMBOL(clk_disable); | ||
121 | |||
122 | int clk_use (struct clk *clk) | ||
123 | { | ||
124 | return 0; | ||
125 | } | ||
126 | EXPORT_SYMBOL(clk_use); | ||
127 | |||
128 | void clk_unuse (struct clk *clk) | ||
129 | { | ||
130 | } | ||
131 | EXPORT_SYMBOL(clk_unuse); | ||
132 | |||
133 | unsigned long clk_get_rate (struct clk *clk) | ||
134 | { | ||
135 | return clk->rate; | ||
136 | } | ||
137 | EXPORT_SYMBOL(clk_get_rate); | ||
138 | |||
139 | long clk_round_rate (struct clk *clk, unsigned long rate) | ||
140 | { | ||
141 | return rate; | ||
142 | } | ||
143 | EXPORT_SYMBOL(clk_round_rate); | ||
144 | |||
145 | int clk_set_rate (struct clk *clk, unsigned long rate) | ||
146 | { | ||
147 | int ret = -EIO; | ||
148 | return ret; | ||
149 | } | ||
150 | EXPORT_SYMBOL(clk_set_rate); | ||
151 | |||
152 | #if 0 | ||
153 | /* | ||
154 | * These are fixed clocks. | ||
155 | */ | ||
156 | static struct clk kmi_clk = { | ||
157 | .name = "KMIREFCLK", | ||
158 | .rate = 24000000, | ||
159 | }; | ||
160 | |||
161 | static struct clk uart_clk = { | ||
162 | .name = "UARTCLK", | ||
163 | .rate = 24000000, | ||
164 | }; | ||
165 | |||
166 | static struct clk mmci_clk = { | ||
167 | .name = "MCLK", | ||
168 | .rate = 33000000, | ||
169 | }; | ||
170 | #endif | ||
171 | |||
172 | static struct clk clcd_clk = { | ||
173 | .name = "CLCDCLK", | ||
174 | .rate = 0, | ||
175 | }; | ||
176 | |||
177 | int clk_register (struct clk *clk) | ||
178 | { | ||
179 | down (&clocks_sem); | ||
180 | list_add (&clk->node, &clocks); | ||
181 | up (&clocks_sem); | ||
182 | return 0; | ||
183 | } | ||
184 | EXPORT_SYMBOL(clk_register); | ||
185 | |||
186 | void clk_unregister (struct clk *clk) | ||
187 | { | ||
188 | down (&clocks_sem); | ||
189 | list_del (&clk->node); | ||
190 | up (&clocks_sem); | ||
191 | } | ||
192 | EXPORT_SYMBOL(clk_unregister); | ||
193 | |||
194 | static int __init clk_init (void) | ||
195 | { | ||
196 | clk_register(&clcd_clk); | ||
197 | return 0; | ||
198 | } | ||
199 | arch_initcall(clk_init); | ||
diff --git a/arch/arm/mach-lh7a40x/common.h b/arch/arm/mach-lh7a40x/common.h index ea8de7e3ab1b..18e8bb4eb202 100644 --- a/arch/arm/mach-lh7a40x/common.h +++ b/arch/arm/mach-lh7a40x/common.h | |||
@@ -12,6 +12,7 @@ extern struct sys_timer lh7a40x_timer; | |||
12 | 12 | ||
13 | extern void lh7a400_init_irq (void); | 13 | extern void lh7a400_init_irq (void); |
14 | extern void lh7a404_init_irq (void); | 14 | extern void lh7a404_init_irq (void); |
15 | extern void lh7a40x_clcd_init (void); | ||
15 | extern void lh7a40x_init_board_irq (void); | 16 | extern void lh7a40x_init_board_irq (void); |
16 | 17 | ||
17 | #define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs) | 18 | #define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs) |
diff --git a/arch/arm/mach-lh7a40x/irq-lh7a404.c b/arch/arm/mach-lh7a40x/irq-lh7a404.c index e902e3d87da4..2685a81454d2 100644 --- a/arch/arm/mach-lh7a40x/irq-lh7a404.c +++ b/arch/arm/mach-lh7a40x/irq-lh7a404.c | |||
@@ -28,13 +28,17 @@ | |||
28 | 28 | ||
29 | static unsigned char irq_pri_vic1[] = { | 29 | static unsigned char irq_pri_vic1[] = { |
30 | #if defined (USE_PRIORITIES) | 30 | #if defined (USE_PRIORITIES) |
31 | IRQ_GPIO3INTR, | 31 | IRQ_GPIO3INTR, /* CPLD */ |
32 | IRQ_DMAM2P4, IRQ_DMAM2P5, /* AC97 */ | ||
32 | #endif | 33 | #endif |
33 | }; | 34 | }; |
34 | static unsigned char irq_pri_vic2[] = { | 35 | static unsigned char irq_pri_vic2[] = { |
35 | #if defined (USE_PRIORITIES) | 36 | #if defined (USE_PRIORITIES) |
36 | IRQ_T3UI, IRQ_GPIO7INTR, | 37 | IRQ_T3UI, /* Timer */ |
38 | IRQ_GPIO7INTR, /* CPLD */ | ||
37 | IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR, | 39 | IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR, |
40 | IRQ_LCDINTR, /* LCD */ | ||
41 | IRQ_TSCINTR, /* ADC/Touchscreen */ | ||
38 | #endif | 42 | #endif |
39 | }; | 43 | }; |
40 | 44 | ||
@@ -98,10 +102,19 @@ static struct irqchip lh7a404_gpio_vic2_chip = { | |||
98 | 102 | ||
99 | /* IRQ initialization */ | 103 | /* IRQ initialization */ |
100 | 104 | ||
105 | #if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404) | ||
106 | extern void* branch_irq_lh7a400; | ||
107 | #endif | ||
108 | |||
101 | void __init lh7a404_init_irq (void) | 109 | void __init lh7a404_init_irq (void) |
102 | { | 110 | { |
103 | int irq; | 111 | int irq; |
104 | 112 | ||
113 | #if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404) | ||
114 | #define NOP 0xe1a00000 /* mov r0, r0 */ | ||
115 | branch_irq_lh7a400 = NOP; | ||
116 | #endif | ||
117 | |||
105 | VIC1_INTENCLR = 0xffffffff; | 118 | VIC1_INTENCLR = 0xffffffff; |
106 | VIC2_INTENCLR = 0xffffffff; | 119 | VIC2_INTENCLR = 0xffffffff; |
107 | VIC1_INTSEL = 0; /* All IRQs */ | 120 | VIC1_INTSEL = 0; /* All IRQs */ |
diff --git a/arch/arm/mach-lh7a40x/lcd-panel.h b/arch/arm/mach-lh7a40x/lcd-panel.h new file mode 100644 index 000000000000..4fb2efc4950f --- /dev/null +++ b/arch/arm/mach-lh7a40x/lcd-panel.h | |||
@@ -0,0 +1,346 @@ | |||
1 | /* lcd-panel.h | ||
2 | $Id$ | ||
3 | |||
4 | written by Marc Singer | ||
5 | 18 Jul 2005 | ||
6 | |||
7 | Copyright (C) 2005 Marc Singer | ||
8 | |||
9 | ----------- | ||
10 | DESCRIPTION | ||
11 | ----------- | ||
12 | |||
13 | Only one panel may be defined at a time. | ||
14 | |||
15 | The pixel clock is calculated to be no greater than the target. | ||
16 | |||
17 | Each timing value is accompanied by a specification comment. | ||
18 | |||
19 | UNITS/MIN/TYP/MAX | ||
20 | |||
21 | Most of the units will be in clocks. | ||
22 | |||
23 | USE_RGB555 | ||
24 | |||
25 | Define this macro to configure the AMBA LCD controller to use an | ||
26 | RGB555 encoding for the pels instead of the normal RGB565. | ||
27 | |||
28 | LPD9520, LPD79524, LPD7A400, LPD7A404-10, LPD7A404-11 | ||
29 | |||
30 | These boards are best approximated by 555 for all panels. Some | ||
31 | can use an extra low-order bit of blue in bit 16 of the color | ||
32 | value, but we don't have a way to communicate this non-linear | ||
33 | mapping to the kernel. | ||
34 | |||
35 | */ | ||
36 | |||
37 | #if !defined (__LCD_PANEL_H__) | ||
38 | # define __LCD_PANEL_H__ | ||
39 | |||
40 | #if defined (MACH_LPD79520)\ | ||
41 | || defined (MACH_LPD79524)\ | ||
42 | || defined (MACH_LPD7A400)\ | ||
43 | || defined (MACH_LPD7A404) | ||
44 | # define USE_RGB555 | ||
45 | #endif | ||
46 | |||
47 | struct clcd_panel_extra { | ||
48 | unsigned int hrmode; | ||
49 | unsigned int clsen; | ||
50 | unsigned int spsen; | ||
51 | unsigned int pcdel; | ||
52 | unsigned int revdel; | ||
53 | unsigned int lpdel; | ||
54 | unsigned int spldel; | ||
55 | unsigned int pc2del; | ||
56 | }; | ||
57 | |||
58 | #define NS_TO_CLOCK(ns,c) ((((ns)*((c)/1000) + (1000000 - 1))/1000000)) | ||
59 | #define CLOCK_TO_DIV(e,c) (((c) + (e) - 1)/(e)) | ||
60 | |||
61 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT | ||
62 | |||
63 | /* Logic Product Development LCD 3.5" QVGA HRTFT -10 */ | ||
64 | /* Sharp PN LQ035Q7DB02 w/HRTFT controller chip */ | ||
65 | |||
66 | #define PIX_CLOCK_TARGET (6800000) | ||
67 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
68 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
69 | |||
70 | static struct clcd_panel lcd_panel = { | ||
71 | .mode = { | ||
72 | .name = "3.5in QVGA (LQ035Q7DB02)", | ||
73 | .xres = 240, | ||
74 | .yres = 320, | ||
75 | .pixclock = PIX_CLOCK, | ||
76 | .left_margin = 16, | ||
77 | .right_margin = 21, | ||
78 | .upper_margin = 8, // line/8/8/8 | ||
79 | .lower_margin = 5, | ||
80 | .hsync_len = 61, | ||
81 | .vsync_len = NS_TO_CLOCK (60, PIX_CLOCK), | ||
82 | .vmode = FB_VMODE_NONINTERLACED, | ||
83 | }, | ||
84 | .width = -1, | ||
85 | .height = -1, | ||
86 | .tim2 = TIM2_IPC | (PIX_CLOCK_DIVIDER - 2), | ||
87 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
88 | .bpp = 16, | ||
89 | }; | ||
90 | |||
91 | #define HAS_LCD_PANEL_EXTRA | ||
92 | |||
93 | static struct clcd_panel_extra lcd_panel_extra = { | ||
94 | .hrmode = 1, | ||
95 | .clsen = 1, | ||
96 | .spsen = 1, | ||
97 | .pcdel = 8, | ||
98 | .revdel = 7, | ||
99 | .lpdel = 13, | ||
100 | .spldel = 77, | ||
101 | .pc2del = 208, | ||
102 | }; | ||
103 | |||
104 | #endif | ||
105 | |||
106 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 | ||
107 | |||
108 | /* Logic Product Development LCD 5.7" QVGA -10 */ | ||
109 | /* Sharp PN LQ057Q3DC02 */ | ||
110 | /* QVGA mode, V/Q=LOW */ | ||
111 | |||
112 | /* From Sharp on 2006.1.3. I believe some of the values are incorrect | ||
113 | * based on the datasheet. | ||
114 | |||
115 | Timing0 TIMING1 TIMING2 CONTROL | ||
116 | 0x140A0C4C 0x080504EF 0x013F380D 0x00000829 | ||
117 | HBP= 20 VBP= 8 BCD= 0 | ||
118 | HFP= 10 VFP= 5 CPL=319 | ||
119 | HSW= 12 VSW= 1 IOE= 0 | ||
120 | PPL= 19 LPP=239 IPC= 1 | ||
121 | IHS= 1 | ||
122 | IVS= 1 | ||
123 | ACB= 0 | ||
124 | CSEL= 0 | ||
125 | PCD= 13 | ||
126 | |||
127 | */ | ||
128 | |||
129 | /* The full horozontal cycle (Th) is clock/360/400/450. */ | ||
130 | /* The full vertical cycle (Tv) is line/251/262/280. */ | ||
131 | |||
132 | #define PIX_CLOCK_TARGET (6300000) /* -/6.3/7 MHz */ | ||
133 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
134 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
135 | |||
136 | static struct clcd_panel lcd_panel = { | ||
137 | .mode = { | ||
138 | .name = "5.7in QVGA (LQ057Q3DC02)", | ||
139 | .xres = 320, | ||
140 | .yres = 240, | ||
141 | .pixclock = PIX_CLOCK, | ||
142 | .left_margin = 11, | ||
143 | .right_margin = 400-11-320-2, | ||
144 | .upper_margin = 7, // line/7/7/7 | ||
145 | .lower_margin = 262-7-240-2, | ||
146 | .hsync_len = 2, // clk/2/96/200 | ||
147 | .vsync_len = 2, // line/2/-/34 | ||
148 | .vmode = FB_VMODE_NONINTERLACED, | ||
149 | }, | ||
150 | .width = -1, | ||
151 | .height = -1, | ||
152 | .tim2 = TIM2_IHS | TIM2_IVS | ||
153 | | (PIX_CLOCK_DIVIDER - 2), | ||
154 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
155 | .bpp = 16, | ||
156 | }; | ||
157 | |||
158 | #endif | ||
159 | |||
160 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ64D343 | ||
161 | |||
162 | /* Logic Product Development LCD 6.4" VGA -10 */ | ||
163 | /* Sharp PN LQ64D343 */ | ||
164 | |||
165 | /* The full horozontal cycle (Th) is clock/750/800/900. */ | ||
166 | /* The full vertical cycle (Tv) is line/515/525/560. */ | ||
167 | |||
168 | #define PIX_CLOCK_TARGET (28330000) | ||
169 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
170 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
171 | |||
172 | static struct clcd_panel lcd_panel = { | ||
173 | .mode = { | ||
174 | .name = "6.4in QVGA (LQ64D343)", | ||
175 | .xres = 640, | ||
176 | .yres = 480, | ||
177 | .pixclock = PIX_CLOCK, | ||
178 | .left_margin = 32, | ||
179 | .right_margin = 800-32-640-96, | ||
180 | .upper_margin = 32, // line/34/34/34 | ||
181 | .lower_margin = 540-32-480-2, | ||
182 | .hsync_len = 96, // clk/2/96/200 | ||
183 | .vsync_len = 2, // line/2/-/34 | ||
184 | .vmode = FB_VMODE_NONINTERLACED, | ||
185 | }, | ||
186 | .width = -1, | ||
187 | .height = -1, | ||
188 | .tim2 = TIM2_IHS | TIM2_IVS | ||
189 | | (PIX_CLOCK_DIVIDER - 2), | ||
190 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
191 | .bpp = 16, | ||
192 | }; | ||
193 | |||
194 | #endif | ||
195 | |||
196 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ10D368 | ||
197 | |||
198 | /* Logic Product Development LCD 10.4" VGA -10 */ | ||
199 | /* Sharp PN LQ10D368 */ | ||
200 | |||
201 | #define PIX_CLOCK_TARGET (28330000) | ||
202 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
203 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
204 | |||
205 | static struct clcd_panel lcd_panel = { | ||
206 | .mode = { | ||
207 | .name = "10.4in VGA (LQ10D368)", | ||
208 | .xres = 640, | ||
209 | .yres = 480, | ||
210 | .pixclock = PIX_CLOCK, | ||
211 | .left_margin = 21, | ||
212 | .right_margin = 15, | ||
213 | .upper_margin = 34, | ||
214 | .lower_margin = 5, | ||
215 | .hsync_len = 96, | ||
216 | .vsync_len = 16, | ||
217 | .vmode = FB_VMODE_NONINTERLACED, | ||
218 | }, | ||
219 | .width = -1, | ||
220 | .height = -1, | ||
221 | .tim2 = TIM2_IHS | TIM2_IVS | ||
222 | | (PIX_CLOCK_DIVIDER - 2), | ||
223 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
224 | .bpp = 16, | ||
225 | }; | ||
226 | |||
227 | #endif | ||
228 | |||
229 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 | ||
230 | |||
231 | /* Logic Product Development LCD 12.1" SVGA -10 */ | ||
232 | /* Sharp PN LQ121S1DG41, was LQ121S1DG31 */ | ||
233 | |||
234 | /* Note that with a 99993900 Hz HCLK, it is not possible to hit the | ||
235 | * target clock frequency range of 35MHz to 42MHz. */ | ||
236 | |||
237 | /* If the target pixel clock is substantially lower than the panel | ||
238 | * spec, this is done to prevent the LCD display from glitching when | ||
239 | * the CPU is under load. A pixel clock higher than 25MHz | ||
240 | * (empirically determined) will compete with the CPU for bus cycles | ||
241 | * for the Ethernet chip. However, even a pixel clock of 10MHz | ||
242 | * competes with Compact Flash interface during some operations | ||
243 | * (fdisk, e2fsck). And, at that speed the display may have a visible | ||
244 | * flicker. */ | ||
245 | |||
246 | /* The full horozontal cycle (Th) is clock/832/1056/1395. */ | ||
247 | |||
248 | #define PIX_CLOCK_TARGET (20000000) | ||
249 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
250 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
251 | |||
252 | static struct clcd_panel lcd_panel = { | ||
253 | .mode = { | ||
254 | .name = "12.1in SVGA (LQ121S1DG41)", | ||
255 | .xres = 800, | ||
256 | .yres = 600, | ||
257 | .pixclock = PIX_CLOCK, | ||
258 | .left_margin = 89, // ns/5/-/(1/PIX_CLOCK)-10 | ||
259 | .right_margin = 1056-800-89-128, | ||
260 | .upper_margin = 23, // line/23/23/23 | ||
261 | .lower_margin = 44, | ||
262 | .hsync_len = 128, // clk/2/128/200 | ||
263 | .vsync_len = 4, // line/2/4/6 | ||
264 | .vmode = FB_VMODE_NONINTERLACED, | ||
265 | }, | ||
266 | .width = -1, | ||
267 | .height = -1, | ||
268 | .tim2 = TIM2_IHS | TIM2_IVS | ||
269 | | (PIX_CLOCK_DIVIDER - 2), | ||
270 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
271 | .bpp = 16, | ||
272 | }; | ||
273 | |||
274 | #endif | ||
275 | |||
276 | #if defined CONFIG_FB_ARMCLCD_HITACHI | ||
277 | |||
278 | /* Hitachi*/ | ||
279 | /* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */ | ||
280 | |||
281 | #define PIX_CLOCK_TARGET (49000000) | ||
282 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
283 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
284 | |||
285 | static struct clcd_panel lcd_panel = { | ||
286 | .mode = { | ||
287 | .name = "Hitachi 800x480", | ||
288 | .xres = 800, | ||
289 | .yres = 480, | ||
290 | .pixclock = PIX_CLOCK, | ||
291 | .left_margin = 88, | ||
292 | .right_margin = 40, | ||
293 | .upper_margin = 32, | ||
294 | .lower_margin = 11, | ||
295 | .hsync_len = 128, | ||
296 | .vsync_len = 2, | ||
297 | .vmode = FB_VMODE_NONINTERLACED, | ||
298 | }, | ||
299 | .width = -1, | ||
300 | .height = -1, | ||
301 | .tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS | ||
302 | | (PIX_CLOCK_DIVIDER - 2), | ||
303 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
304 | .bpp = 16, | ||
305 | }; | ||
306 | |||
307 | #endif | ||
308 | |||
309 | |||
310 | #if defined CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE | ||
311 | |||
312 | /* AU Optotronics A070VW01 7.0 Wide Screen color Display*/ | ||
313 | /* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */ | ||
314 | |||
315 | #define PIX_CLOCK_TARGET (10000000) | ||
316 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
317 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
318 | |||
319 | static struct clcd_panel lcd_panel = { | ||
320 | .mode = { | ||
321 | .name = "7.0in Wide (A070VW01)", | ||
322 | .xres = 480, | ||
323 | .yres = 234, | ||
324 | .pixclock = PIX_CLOCK, | ||
325 | .left_margin = 30, | ||
326 | .right_margin = 25, | ||
327 | .upper_margin = 14, | ||
328 | .lower_margin = 12, | ||
329 | .hsync_len = 100, | ||
330 | .vsync_len = 1, | ||
331 | .vmode = FB_VMODE_NONINTERLACED, | ||
332 | }, | ||
333 | .width = -1, | ||
334 | .height = -1, | ||
335 | .tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS | ||
336 | | (PIX_CLOCK_DIVIDER - 2), | ||
337 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
338 | .bpp = 16, | ||
339 | }; | ||
340 | |||
341 | #endif | ||
342 | |||
343 | #undef NS_TO_CLOCK | ||
344 | #undef CLOCK_TO_DIV | ||
345 | |||
346 | #endif /* __LCD_PANEL_H__ */ | ||
diff --git a/arch/arm/mach-lh7a40x/ssp-cpld.c b/arch/arm/mach-lh7a40x/ssp-cpld.c new file mode 100644 index 000000000000..a10830186dac --- /dev/null +++ b/arch/arm/mach-lh7a40x/ssp-cpld.c | |||
@@ -0,0 +1,343 @@ | |||
1 | /* arch/arm/mach-lh7a40x/ssp-cpld.c | ||
2 | * | ||
3 | * Copyright (C) 2004,2005 Marc Singer | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * SSP/SPI driver for the CardEngine CPLD. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | /* NOTES | ||
14 | ----- | ||
15 | |||
16 | o *** This driver is cribbed from the 7952x implementation. | ||
17 | Some comments may not apply. | ||
18 | |||
19 | o This driver contains sufficient logic to control either the | ||
20 | serial EEPROMs or the audio codec. It is included in the kernel | ||
21 | to support the codec. The EEPROMs are really the responsibility | ||
22 | of the boot loader and should probably be left alone. | ||
23 | |||
24 | o The code must be augmented to cope with multiple, simultaneous | ||
25 | clients. | ||
26 | o The audio codec writes to the codec chip whenever playback | ||
27 | starts. | ||
28 | o The touchscreen driver writes to the ads chip every time it | ||
29 | samples. | ||
30 | o The audio codec must write 16 bits, but the touch chip writes | ||
31 | are 8 bits long. | ||
32 | o We need to be able to keep these configurations separate while | ||
33 | simultaneously active. | ||
34 | |||
35 | */ | ||
36 | |||
37 | #include <linux/module.h> | ||
38 | #include <linux/kernel.h> | ||
39 | //#include <linux/sched.h> | ||
40 | #include <linux/errno.h> | ||
41 | #include <linux/interrupt.h> | ||
42 | //#include <linux/ioport.h> | ||
43 | #include <linux/init.h> | ||
44 | #include <linux/delay.h> | ||
45 | #include <linux/spinlock.h> | ||
46 | |||
47 | #include <asm/io.h> | ||
48 | #include <asm/irq.h> | ||
49 | #include <asm/hardware.h> | ||
50 | |||
51 | #include <asm/arch/ssp.h> | ||
52 | |||
53 | //#define TALK | ||
54 | |||
55 | #if defined (TALK) | ||
56 | #define PRINTK(f...) printk (f) | ||
57 | #else | ||
58 | #define PRINTK(f...) do {} while (0) | ||
59 | #endif | ||
60 | |||
61 | #if defined (CONFIG_ARCH_LH7A400) | ||
62 | # define CPLD_SPID __REGP16(CPLD06_VIRT) /* SPI data */ | ||
63 | # define CPLD_SPIC __REGP16(CPLD08_VIRT) /* SPI control */ | ||
64 | # define CPLD_SPIC_CS_CODEC (1<<0) | ||
65 | # define CPLD_SPIC_CS_TOUCH (1<<1) | ||
66 | # define CPLD_SPIC_WRITE (0<<2) | ||
67 | # define CPLD_SPIC_READ (1<<2) | ||
68 | # define CPLD_SPIC_DONE (1<<3) /* r/o */ | ||
69 | # define CPLD_SPIC_LOAD (1<<4) | ||
70 | # define CPLD_SPIC_START (1<<4) | ||
71 | # define CPLD_SPIC_LOADED (1<<5) /* r/o */ | ||
72 | #endif | ||
73 | |||
74 | #define CPLD_SPI __REGP16(CPLD0A_VIRT) /* SPI operation */ | ||
75 | #define CPLD_SPI_CS_EEPROM (1<<3) | ||
76 | #define CPLD_SPI_SCLK (1<<2) | ||
77 | #define CPLD_SPI_TX_SHIFT (1) | ||
78 | #define CPLD_SPI_TX (1<<CPLD_SPI_TX_SHIFT) | ||
79 | #define CPLD_SPI_RX_SHIFT (0) | ||
80 | #define CPLD_SPI_RX (1<<CPLD_SPI_RX_SHIFT) | ||
81 | |||
82 | /* *** FIXME: these timing values are substantially larger than the | ||
83 | *** chip requires. We may implement an nsleep () function. */ | ||
84 | #define T_SKH 1 /* Clock time high (us) */ | ||
85 | #define T_SKL 1 /* Clock time low (us) */ | ||
86 | #define T_CS 1 /* Minimum chip select low time (us) */ | ||
87 | #define T_CSS 1 /* Minimum chip select setup time (us) */ | ||
88 | #define T_DIS 1 /* Data setup time (us) */ | ||
89 | |||
90 | /* EEPROM SPI bits */ | ||
91 | #define P_START (1<<9) | ||
92 | #define P_WRITE (1<<7) | ||
93 | #define P_READ (2<<7) | ||
94 | #define P_ERASE (3<<7) | ||
95 | #define P_EWDS (0<<7) | ||
96 | #define P_WRAL (0<<7) | ||
97 | #define P_ERAL (0<<7) | ||
98 | #define P_EWEN (0<<7) | ||
99 | #define P_A_EWDS (0<<5) | ||
100 | #define P_A_WRAL (1<<5) | ||
101 | #define P_A_ERAL (2<<5) | ||
102 | #define P_A_EWEN (3<<5) | ||
103 | |||
104 | struct ssp_configuration { | ||
105 | int device; | ||
106 | int mode; | ||
107 | int speed; | ||
108 | int frame_size_write; | ||
109 | int frame_size_read; | ||
110 | }; | ||
111 | |||
112 | static struct ssp_configuration ssp_configuration; | ||
113 | static spinlock_t ssp_lock; | ||
114 | |||
115 | static void enable_cs (void) | ||
116 | { | ||
117 | switch (ssp_configuration.device) { | ||
118 | case DEVICE_EEPROM: | ||
119 | CPLD_SPI |= CPLD_SPI_CS_EEPROM; | ||
120 | break; | ||
121 | } | ||
122 | udelay (T_CSS); | ||
123 | } | ||
124 | |||
125 | static void disable_cs (void) | ||
126 | { | ||
127 | switch (ssp_configuration.device) { | ||
128 | case DEVICE_EEPROM: | ||
129 | CPLD_SPI &= ~CPLD_SPI_CS_EEPROM; | ||
130 | break; | ||
131 | } | ||
132 | udelay (T_CS); | ||
133 | } | ||
134 | |||
135 | static void pulse_clock (void) | ||
136 | { | ||
137 | CPLD_SPI |= CPLD_SPI_SCLK; | ||
138 | udelay (T_SKH); | ||
139 | CPLD_SPI &= ~CPLD_SPI_SCLK; | ||
140 | udelay (T_SKL); | ||
141 | } | ||
142 | |||
143 | |||
144 | /* execute_spi_command | ||
145 | |||
146 | sends an spi command to a device. It first sends cwrite bits from | ||
147 | v. If cread is greater than zero it will read cread bits | ||
148 | (discarding the leading 0 bit) and return them. If cread is less | ||
149 | than zero it will check for completetion status and return 0 on | ||
150 | success or -1 on timeout. If cread is zero it does nothing other | ||
151 | than sending the command. | ||
152 | |||
153 | On the LPD7A400, we can only read or write multiples of 8 bits on | ||
154 | the codec and the touch screen device. Here, we round up. | ||
155 | |||
156 | */ | ||
157 | |||
158 | static int execute_spi_command (int v, int cwrite, int cread) | ||
159 | { | ||
160 | unsigned long l = 0; | ||
161 | |||
162 | #if defined (CONFIG_MACH_LPD7A400) | ||
163 | /* The codec and touch devices cannot be bit-banged. Instead, | ||
164 | * the CPLD provides an eight-bit shift register and a crude | ||
165 | * interface. */ | ||
166 | if ( ssp_configuration.device == DEVICE_CODEC | ||
167 | || ssp_configuration.device == DEVICE_TOUCH) { | ||
168 | int select = 0; | ||
169 | |||
170 | PRINTK ("spi(%d %d.%d) 0x%04x", | ||
171 | ssp_configuration.device, cwrite, cread, | ||
172 | v); | ||
173 | #if defined (TALK) | ||
174 | if (ssp_configuration.device == DEVICE_CODEC) | ||
175 | PRINTK (" 0x%03x -> %2d", v & 0x1ff, (v >> 9) & 0x7f); | ||
176 | #endif | ||
177 | PRINTK ("\n"); | ||
178 | |||
179 | if (ssp_configuration.device == DEVICE_CODEC) | ||
180 | select = CPLD_SPIC_CS_CODEC; | ||
181 | if (ssp_configuration.device == DEVICE_TOUCH) | ||
182 | select = CPLD_SPIC_CS_TOUCH; | ||
183 | if (cwrite) { | ||
184 | for (cwrite = (cwrite + 7)/8; cwrite-- > 0; ) { | ||
185 | CPLD_SPID = (v >> (8*cwrite)) & 0xff; | ||
186 | CPLD_SPIC = select | CPLD_SPIC_LOAD; | ||
187 | while (!(CPLD_SPIC & CPLD_SPIC_LOADED)) | ||
188 | ; | ||
189 | CPLD_SPIC = select; | ||
190 | while (!(CPLD_SPIC & CPLD_SPIC_DONE)) | ||
191 | ; | ||
192 | } | ||
193 | v = 0; | ||
194 | } | ||
195 | if (cread) { | ||
196 | mdelay (2); /* *** FIXME: required by ads7843? */ | ||
197 | v = 0; | ||
198 | for (cread = (cread + 7)/8; cread-- > 0;) { | ||
199 | CPLD_SPID = 0; | ||
200 | CPLD_SPIC = select | CPLD_SPIC_READ | ||
201 | | CPLD_SPIC_START; | ||
202 | while (!(CPLD_SPIC & CPLD_SPIC_LOADED)) | ||
203 | ; | ||
204 | CPLD_SPIC = select | CPLD_SPIC_READ; | ||
205 | while (!(CPLD_SPIC & CPLD_SPIC_DONE)) | ||
206 | ; | ||
207 | v = (v << 8) | CPLD_SPID; | ||
208 | } | ||
209 | } | ||
210 | return v; | ||
211 | } | ||
212 | #endif | ||
213 | |||
214 | PRINTK ("spi(%d) 0x%04x -> 0x%x\r\n", ssp_configuration.device, | ||
215 | v & 0x1ff, (v >> 9) & 0x7f); | ||
216 | |||
217 | enable_cs (); | ||
218 | |||
219 | v <<= CPLD_SPI_TX_SHIFT; /* Correction for position of SPI_TX bit */ | ||
220 | while (cwrite--) { | ||
221 | CPLD_SPI | ||
222 | = (CPLD_SPI & ~CPLD_SPI_TX) | ||
223 | | ((v >> cwrite) & CPLD_SPI_TX); | ||
224 | udelay (T_DIS); | ||
225 | pulse_clock (); | ||
226 | } | ||
227 | |||
228 | if (cread < 0) { | ||
229 | int delay = 10; | ||
230 | disable_cs (); | ||
231 | udelay (1); | ||
232 | enable_cs (); | ||
233 | |||
234 | l = -1; | ||
235 | do { | ||
236 | if (CPLD_SPI & CPLD_SPI_RX) { | ||
237 | l = 0; | ||
238 | break; | ||
239 | } | ||
240 | } while (udelay (1), --delay); | ||
241 | } | ||
242 | else | ||
243 | /* We pulse the clock before the data to skip the leading zero. */ | ||
244 | while (cread-- > 0) { | ||
245 | pulse_clock (); | ||
246 | l = (l<<1) | ||
247 | | (((CPLD_SPI & CPLD_SPI_RX) | ||
248 | >> CPLD_SPI_RX_SHIFT) & 0x1); | ||
249 | } | ||
250 | |||
251 | disable_cs (); | ||
252 | return l; | ||
253 | } | ||
254 | |||
255 | static int ssp_init (void) | ||
256 | { | ||
257 | spin_lock_init (&ssp_lock); | ||
258 | memset (&ssp_configuration, 0, sizeof (ssp_configuration)); | ||
259 | return 0; | ||
260 | } | ||
261 | |||
262 | |||
263 | /* ssp_chip_select | ||
264 | |||
265 | drops the chip select line for the CPLD shift-register controlled | ||
266 | devices. It doesn't enable chip | ||
267 | |||
268 | */ | ||
269 | |||
270 | static void ssp_chip_select (int enable) | ||
271 | { | ||
272 | #if defined (CONFIG_MACH_LPD7A400) | ||
273 | int select; | ||
274 | |||
275 | if (ssp_configuration.device == DEVICE_CODEC) | ||
276 | select = CPLD_SPIC_CS_CODEC; | ||
277 | else if (ssp_configuration.device == DEVICE_TOUCH) | ||
278 | select = CPLD_SPIC_CS_TOUCH; | ||
279 | else | ||
280 | return; | ||
281 | |||
282 | if (enable) | ||
283 | CPLD_SPIC = select; | ||
284 | else | ||
285 | CPLD_SPIC = 0; | ||
286 | #endif | ||
287 | } | ||
288 | |||
289 | static void ssp_acquire (void) | ||
290 | { | ||
291 | spin_lock (&ssp_lock); | ||
292 | } | ||
293 | |||
294 | static void ssp_release (void) | ||
295 | { | ||
296 | ssp_chip_select (0); /* just in case */ | ||
297 | spin_unlock (&ssp_lock); | ||
298 | } | ||
299 | |||
300 | static int ssp_configure (int device, int mode, int speed, | ||
301 | int frame_size_write, int frame_size_read) | ||
302 | { | ||
303 | ssp_configuration.device = device; | ||
304 | ssp_configuration.mode = mode; | ||
305 | ssp_configuration.speed = speed; | ||
306 | ssp_configuration.frame_size_write = frame_size_write; | ||
307 | ssp_configuration.frame_size_read = frame_size_read; | ||
308 | |||
309 | return 0; | ||
310 | } | ||
311 | |||
312 | static int ssp_read (void) | ||
313 | { | ||
314 | return execute_spi_command (0, 0, ssp_configuration.frame_size_read); | ||
315 | } | ||
316 | |||
317 | static int ssp_write (u16 data) | ||
318 | { | ||
319 | execute_spi_command (data, ssp_configuration.frame_size_write, 0); | ||
320 | return 0; | ||
321 | } | ||
322 | |||
323 | static int ssp_write_read (u16 data) | ||
324 | { | ||
325 | return execute_spi_command (data, ssp_configuration.frame_size_write, | ||
326 | ssp_configuration.frame_size_read); | ||
327 | } | ||
328 | |||
329 | struct ssp_driver lh7a40x_cpld_ssp_driver = { | ||
330 | .init = ssp_init, | ||
331 | .acquire = ssp_acquire, | ||
332 | .release = ssp_release, | ||
333 | .configure = ssp_configure, | ||
334 | .chip_select = ssp_chip_select, | ||
335 | .read = ssp_read, | ||
336 | .write = ssp_write, | ||
337 | .write_read = ssp_write_read, | ||
338 | }; | ||
339 | |||
340 | |||
341 | MODULE_AUTHOR("Marc Singer"); | ||
342 | MODULE_DESCRIPTION("LPD7A40X CPLD SPI driver"); | ||
343 | MODULE_LICENSE("GPL"); | ||
diff --git a/arch/arm/mach-lh7a40x/time.c b/arch/arm/mach-lh7a40x/time.c index be377e331f25..ef9af375fcc4 100644 --- a/arch/arm/mach-lh7a40x/time.c +++ b/arch/arm/mach-lh7a40x/time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-lh7a40x/time.c | 2 | * arch/arm/mach-lh7a40x/time.c |
3 | * | 3 | * |
4 | * Copyright (C) 2004 Logic Product Development | 4 | * Copyright (C) 2004 Logic Product Development |
@@ -57,7 +57,7 @@ static struct irqaction lh7a40x_timer_irq = { | |||
57 | .handler = lh7a40x_timer_interrupt, | 57 | .handler = lh7a40x_timer_interrupt, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static void __init lh7a40x_timer_init(void) | 60 | static void __init lh7a40x_timer_init (void) |
61 | { | 61 | { |
62 | /* Stop/disable all timers */ | 62 | /* Stop/disable all timers */ |
63 | TIMER_CONTROL1 = 0; | 63 | TIMER_CONTROL1 = 0; |
diff --git a/arch/arm/mach-netx/Kconfig b/arch/arm/mach-netx/Kconfig new file mode 100644 index 000000000000..3d90ef19be2b --- /dev/null +++ b/arch/arm/mach-netx/Kconfig | |||
@@ -0,0 +1,24 @@ | |||
1 | menu "NetX Implementations" | ||
2 | depends on ARCH_NETX | ||
3 | |||
4 | config MACH_NXDKN | ||
5 | bool "Enable Hilscher nxdkn Eval Board support" | ||
6 | depends on ARCH_NETX | ||
7 | help | ||
8 | Board support for the Hilscher NetX Eval Board | ||
9 | |||
10 | config MACH_NXDB500 | ||
11 | bool "Enable Hilscher nxdb500 Eval Board support" | ||
12 | depends on ARCH_NETX | ||
13 | select ARM_AMBA | ||
14 | help | ||
15 | Board support for the Hilscher nxdb500 Eval Board | ||
16 | |||
17 | config MACH_NXEB500HMI | ||
18 | bool "Enable Hilscher nxeb500hmi Eval Board support" | ||
19 | depends on ARCH_NETX | ||
20 | select ARM_AMBA | ||
21 | help | ||
22 | Board support for the Hilscher nxeb500hmi Eval Board | ||
23 | |||
24 | endmenu | ||
diff --git a/arch/arm/mach-netx/Makefile b/arch/arm/mach-netx/Makefile new file mode 100644 index 000000000000..18785ff37657 --- /dev/null +++ b/arch/arm/mach-netx/Makefile | |||
@@ -0,0 +1,15 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | # Note! Dependencies are done automagically by 'make dep', which also | ||
5 | # removes any old dependencies. DON'T put your own dependencies here | ||
6 | # unless it's something special (ie not a .c file). | ||
7 | |||
8 | # Object file lists. | ||
9 | |||
10 | obj-y += time.o generic.o pfifo.o xc.o | ||
11 | |||
12 | # Specific board support | ||
13 | obj-$(CONFIG_MACH_NXDKN) += nxdkn.o | ||
14 | obj-$(CONFIG_MACH_NXDB500) += nxdb500.o fb.o | ||
15 | obj-$(CONFIG_MACH_NXEB500HMI) += nxeb500hmi.o fb.o | ||
diff --git a/arch/arm/mach-netx/Makefile.boot b/arch/arm/mach-netx/Makefile.boot new file mode 100644 index 000000000000..b81cf6aff0ac --- /dev/null +++ b/arch/arm/mach-netx/Makefile.boot | |||
@@ -0,0 +1,2 @@ | |||
1 | zreladdr-y := 0x80008000 | ||
2 | |||
diff --git a/arch/arm/mach-netx/fb.c b/arch/arm/mach-netx/fb.c new file mode 100644 index 000000000000..ef0ab6115c0b --- /dev/null +++ b/arch/arm/mach-netx/fb.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/fb.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/device.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/amba/bus.h> | ||
24 | #include <linux/amba/clcd.h> | ||
25 | |||
26 | #include <asm/arch/netx-regs.h> | ||
27 | #include <asm/hardware.h> | ||
28 | |||
29 | struct clk {}; | ||
30 | |||
31 | static struct clk fb_clk; | ||
32 | |||
33 | static struct clcd_panel *netx_panel; | ||
34 | |||
35 | void netx_clcd_enable(struct clcd_fb *fb) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | int netx_clcd_setup(struct clcd_fb *fb) | ||
40 | { | ||
41 | dma_addr_t dma; | ||
42 | |||
43 | fb->panel = netx_panel; | ||
44 | |||
45 | fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, 1024*1024, | ||
46 | &dma, GFP_KERNEL); | ||
47 | if (!fb->fb.screen_base) { | ||
48 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); | ||
49 | return -ENOMEM; | ||
50 | } | ||
51 | |||
52 | fb->fb.fix.smem_start = dma; | ||
53 | fb->fb.fix.smem_len = 1024*1024; | ||
54 | |||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) | ||
59 | { | ||
60 | return dma_mmap_writecombine(&fb->dev->dev, vma, | ||
61 | fb->fb.screen_base, | ||
62 | fb->fb.fix.smem_start, | ||
63 | fb->fb.fix.smem_len); | ||
64 | } | ||
65 | |||
66 | void netx_clcd_remove(struct clcd_fb *fb) | ||
67 | { | ||
68 | dma_free_writecombine(&fb->dev->dev, fb->fb.fix.smem_len, | ||
69 | fb->fb.screen_base, fb->fb.fix.smem_start); | ||
70 | } | ||
71 | |||
72 | void clk_disable(struct clk *clk) | ||
73 | { | ||
74 | } | ||
75 | |||
76 | int clk_set_rate(struct clk *clk, unsigned long rate) | ||
77 | { | ||
78 | return 0; | ||
79 | } | ||
80 | |||
81 | int clk_enable(struct clk *clk) | ||
82 | { | ||
83 | return 0; | ||
84 | } | ||
85 | |||
86 | struct clk *clk_get(struct device *dev, const char *id) | ||
87 | { | ||
88 | return &fb_clk; | ||
89 | } | ||
90 | |||
91 | void clk_put(struct clk *clk) | ||
92 | { | ||
93 | } | ||
94 | |||
95 | static struct amba_device fb_device = { | ||
96 | .dev = { | ||
97 | .bus_id = "fb", | ||
98 | .coherent_dma_mask = ~0, | ||
99 | }, | ||
100 | .res = { | ||
101 | .start = 0x00104000, | ||
102 | .end = 0x00104fff, | ||
103 | .flags = IORESOURCE_MEM, | ||
104 | }, | ||
105 | .irq = { NETX_IRQ_LCD, NO_IRQ }, | ||
106 | .periphid = 0x10112400, | ||
107 | }; | ||
108 | |||
109 | int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel) | ||
110 | { | ||
111 | netx_panel = panel; | ||
112 | fb_device.dev.platform_data = board; | ||
113 | return amba_device_register(&fb_device, &iomem_resource); | ||
114 | } | ||
diff --git a/arch/arm/mach-netx/fb.h b/arch/arm/mach-netx/fb.h new file mode 100644 index 000000000000..4919cf33a5f3 --- /dev/null +++ b/arch/arm/mach-netx/fb.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/fb.h | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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 | void netx_clcd_enable(struct clcd_fb *fb); | ||
21 | int netx_clcd_setup(struct clcd_fb *fb); | ||
22 | int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma); | ||
23 | void netx_clcd_remove(struct clcd_fb *fb); | ||
24 | int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel); | ||
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c new file mode 100644 index 000000000000..af0b13534cfd --- /dev/null +++ b/arch/arm/mach-netx/generic.c | |||
@@ -0,0 +1,193 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/generic.c | ||
3 | * | ||
4 | * Copyright (C) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/device.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/mach/map.h> | ||
27 | #include <asm/hardware/vic.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/arch/netx-regs.h> | ||
30 | #include <asm/mach/irq.h> | ||
31 | |||
32 | static struct map_desc netx_io_desc[] __initdata = { | ||
33 | { | ||
34 | .virtual = NETX_IO_VIRT, | ||
35 | .pfn = __phys_to_pfn(NETX_IO_PHYS), | ||
36 | .length = NETX_IO_SIZE, | ||
37 | .type = MT_DEVICE | ||
38 | } | ||
39 | }; | ||
40 | |||
41 | void __init netx_map_io(void) | ||
42 | { | ||
43 | iotable_init(netx_io_desc, ARRAY_SIZE(netx_io_desc)); | ||
44 | } | ||
45 | |||
46 | static struct resource netx_rtc_resources[] = { | ||
47 | [0] = { | ||
48 | .start = 0x00101200, | ||
49 | .end = 0x00101220, | ||
50 | .flags = IORESOURCE_MEM, | ||
51 | }, | ||
52 | }; | ||
53 | |||
54 | static struct platform_device netx_rtc_device = { | ||
55 | .name = "netx-rtc", | ||
56 | .id = 0, | ||
57 | .num_resources = ARRAY_SIZE(netx_rtc_resources), | ||
58 | .resource = netx_rtc_resources, | ||
59 | }; | ||
60 | |||
61 | static struct platform_device *devices[] __initdata = { | ||
62 | &netx_rtc_device, | ||
63 | }; | ||
64 | |||
65 | #if 0 | ||
66 | #define DEBUG_IRQ(fmt...) printk(fmt) | ||
67 | #else | ||
68 | #define DEBUG_IRQ(fmt...) while (0) {} | ||
69 | #endif | ||
70 | |||
71 | static void | ||
72 | netx_hif_demux_handler(unsigned int irq_unused, struct irqdesc *desc, | ||
73 | struct pt_regs *regs) | ||
74 | { | ||
75 | unsigned int irq = NETX_IRQ_HIF_CHAINED(0); | ||
76 | unsigned int stat; | ||
77 | |||
78 | stat = ((readl(NETX_DPMAS_INT_EN) & | ||
79 | readl(NETX_DPMAS_INT_STAT)) >> 24) & 0x1f; | ||
80 | |||
81 | desc = irq_desc + NETX_IRQ_HIF_CHAINED(0); | ||
82 | |||
83 | while (stat) { | ||
84 | if (stat & 1) { | ||
85 | DEBUG_IRQ("handling irq %d\n", irq); | ||
86 | desc_handle_irq(irq, desc, regs); | ||
87 | } | ||
88 | irq++; | ||
89 | desc++; | ||
90 | stat >>= 1; | ||
91 | } | ||
92 | } | ||
93 | |||
94 | static int | ||
95 | netx_hif_irq_type(unsigned int _irq, unsigned int type) | ||
96 | { | ||
97 | unsigned int val, irq; | ||
98 | |||
99 | val = readl(NETX_DPMAS_IF_CONF1); | ||
100 | |||
101 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
102 | |||
103 | if (type & __IRQT_RISEDGE) { | ||
104 | DEBUG_IRQ("rising edges\n"); | ||
105 | val |= (1 << 26) << irq; | ||
106 | } | ||
107 | if (type & __IRQT_FALEDGE) { | ||
108 | DEBUG_IRQ("falling edges\n"); | ||
109 | val &= ~((1 << 26) << irq); | ||
110 | } | ||
111 | if (type & __IRQT_LOWLVL) { | ||
112 | DEBUG_IRQ("low level\n"); | ||
113 | val &= ~((1 << 26) << irq); | ||
114 | } | ||
115 | if (type & __IRQT_HIGHLVL) { | ||
116 | DEBUG_IRQ("high level\n"); | ||
117 | val |= (1 << 26) << irq; | ||
118 | } | ||
119 | |||
120 | writel(val, NETX_DPMAS_IF_CONF1); | ||
121 | |||
122 | return 0; | ||
123 | } | ||
124 | |||
125 | static void | ||
126 | netx_hif_ack_irq(unsigned int _irq) | ||
127 | { | ||
128 | unsigned int val, irq; | ||
129 | |||
130 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
131 | writel((1 << 24) << irq, NETX_DPMAS_INT_STAT); | ||
132 | |||
133 | val = readl(NETX_DPMAS_INT_EN); | ||
134 | val &= ~((1 << 24) << irq); | ||
135 | writel(val, NETX_DPMAS_INT_EN); | ||
136 | |||
137 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
138 | } | ||
139 | |||
140 | static void | ||
141 | netx_hif_mask_irq(unsigned int _irq) | ||
142 | { | ||
143 | unsigned int val, irq; | ||
144 | |||
145 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
146 | val = readl(NETX_DPMAS_INT_EN); | ||
147 | val &= ~((1 << 24) << irq); | ||
148 | writel(val, NETX_DPMAS_INT_EN); | ||
149 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
150 | } | ||
151 | |||
152 | static void | ||
153 | netx_hif_unmask_irq(unsigned int _irq) | ||
154 | { | ||
155 | unsigned int val, irq; | ||
156 | |||
157 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
158 | val = readl(NETX_DPMAS_INT_EN); | ||
159 | val |= (1 << 24) << irq; | ||
160 | writel(val, NETX_DPMAS_INT_EN); | ||
161 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
162 | } | ||
163 | |||
164 | static struct irqchip netx_hif_chip = { | ||
165 | .ack = netx_hif_ack_irq, | ||
166 | .mask = netx_hif_mask_irq, | ||
167 | .unmask = netx_hif_unmask_irq, | ||
168 | .set_type = netx_hif_irq_type, | ||
169 | }; | ||
170 | |||
171 | void __init netx_init_irq(void) | ||
172 | { | ||
173 | int irq; | ||
174 | |||
175 | vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0); | ||
176 | |||
177 | for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) { | ||
178 | set_irq_chip(irq, &netx_hif_chip); | ||
179 | set_irq_handler(irq, do_level_IRQ); | ||
180 | set_irq_flags(irq, IRQF_VALID); | ||
181 | } | ||
182 | |||
183 | writel(NETX_DPMAS_INT_EN_GLB_EN, NETX_DPMAS_INT_EN); | ||
184 | set_irq_chained_handler(NETX_IRQ_HIF, netx_hif_demux_handler); | ||
185 | } | ||
186 | |||
187 | static int __init netx_init(void) | ||
188 | { | ||
189 | return platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
190 | } | ||
191 | |||
192 | subsys_initcall(netx_init); | ||
193 | |||
diff --git a/arch/arm/mach-netx/generic.h b/arch/arm/mach-netx/generic.h new file mode 100644 index 000000000000..ede2d35341c3 --- /dev/null +++ b/arch/arm/mach-netx/generic.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/generic.h | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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 | extern void __init netx_map_io(void); | ||
21 | extern void __init netx_init_irq(void); | ||
22 | |||
23 | struct sys_timer; | ||
24 | extern struct sys_timer netx_timer; | ||
diff --git a/arch/arm/mach-netx/nxdb500.c b/arch/arm/mach-netx/nxdb500.c new file mode 100644 index 000000000000..e4a133d62846 --- /dev/null +++ b/arch/arm/mach-netx/nxdb500.c | |||
@@ -0,0 +1,210 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxdb500.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | #include "fb.h" | ||
36 | |||
37 | static struct clcd_panel qvga = { | ||
38 | .mode = { | ||
39 | .name = "QVGA", | ||
40 | .refresh = 60, | ||
41 | .xres = 240, | ||
42 | .yres = 320, | ||
43 | .pixclock = 187617, | ||
44 | .left_margin = 6, | ||
45 | .right_margin = 26, | ||
46 | .upper_margin = 0, | ||
47 | .lower_margin = 6, | ||
48 | .hsync_len = 6, | ||
49 | .vsync_len = 1, | ||
50 | .sync = 0, | ||
51 | .vmode = FB_VMODE_NONINTERLACED, | ||
52 | }, | ||
53 | .width = -1, | ||
54 | .height = -1, | ||
55 | .tim2 = 16, | ||
56 | .cntl = CNTL_LCDTFT | CNTL_BGR, | ||
57 | .bpp = 16, | ||
58 | .grayscale = 0, | ||
59 | }; | ||
60 | |||
61 | static inline int nxdb500_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) | ||
62 | { | ||
63 | var->green.length = 5; | ||
64 | var->green.msb_right = 0; | ||
65 | |||
66 | return clcdfb_check(fb, var); | ||
67 | } | ||
68 | |||
69 | static int nxdb500_clcd_setup(struct clcd_fb *fb) | ||
70 | { | ||
71 | unsigned int val; | ||
72 | |||
73 | fb->fb.var.green.length = 5; | ||
74 | fb->fb.var.green.msb_right = 0; | ||
75 | |||
76 | /* enable asic control */ | ||
77 | val = readl(NETX_SYSTEM_IOC_ACCESS_KEY); | ||
78 | writel(val, NETX_SYSTEM_IOC_ACCESS_KEY); | ||
79 | |||
80 | writel(3, NETX_SYSTEM_IOC_CR); | ||
81 | |||
82 | val = readl(NETX_PIO_OUTPIO); | ||
83 | writel(val | 1, NETX_PIO_OUTPIO); | ||
84 | |||
85 | val = readl(NETX_PIO_OEPIO); | ||
86 | writel(val | 1, NETX_PIO_OEPIO); | ||
87 | return netx_clcd_setup(fb); | ||
88 | } | ||
89 | |||
90 | static struct clcd_board clcd_data = { | ||
91 | .name = "netX", | ||
92 | .check = nxdb500_check, | ||
93 | .decode = clcdfb_decode, | ||
94 | .enable = netx_clcd_enable, | ||
95 | .setup = nxdb500_clcd_setup, | ||
96 | .mmap = netx_clcd_mmap, | ||
97 | .remove = netx_clcd_remove, | ||
98 | }; | ||
99 | |||
100 | static struct netxeth_platform_data eth0_platform_data = { | ||
101 | .xcno = 0, | ||
102 | }; | ||
103 | |||
104 | static struct platform_device netx_eth0_device = { | ||
105 | .name = "netx-eth", | ||
106 | .id = 0, | ||
107 | .num_resources = 0, | ||
108 | .resource = NULL, | ||
109 | .dev = { | ||
110 | .platform_data = ð0_platform_data, | ||
111 | } | ||
112 | }; | ||
113 | |||
114 | static struct netxeth_platform_data eth1_platform_data = { | ||
115 | .xcno = 1, | ||
116 | }; | ||
117 | |||
118 | static struct platform_device netx_eth1_device = { | ||
119 | .name = "netx-eth", | ||
120 | .id = 1, | ||
121 | .num_resources = 0, | ||
122 | .resource = NULL, | ||
123 | .dev = { | ||
124 | .platform_data = ð1_platform_data, | ||
125 | } | ||
126 | }; | ||
127 | |||
128 | static struct resource netx_uart0_resources[] = { | ||
129 | [0] = { | ||
130 | .start = 0x00100A00, | ||
131 | .end = 0x00100A3F, | ||
132 | .flags = IORESOURCE_MEM, | ||
133 | }, | ||
134 | [1] = { | ||
135 | .start = (NETX_IRQ_UART0), | ||
136 | .end = (NETX_IRQ_UART0), | ||
137 | .flags = IORESOURCE_IRQ, | ||
138 | }, | ||
139 | }; | ||
140 | |||
141 | static struct platform_device netx_uart0_device = { | ||
142 | .name = "netx-uart", | ||
143 | .id = 0, | ||
144 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
145 | .resource = netx_uart0_resources, | ||
146 | }; | ||
147 | |||
148 | static struct resource netx_uart1_resources[] = { | ||
149 | [0] = { | ||
150 | .start = 0x00100A40, | ||
151 | .end = 0x00100A7F, | ||
152 | .flags = IORESOURCE_MEM, | ||
153 | }, | ||
154 | [1] = { | ||
155 | .start = (NETX_IRQ_UART1), | ||
156 | .end = (NETX_IRQ_UART1), | ||
157 | .flags = IORESOURCE_IRQ, | ||
158 | }, | ||
159 | }; | ||
160 | |||
161 | static struct platform_device netx_uart1_device = { | ||
162 | .name = "netx-uart", | ||
163 | .id = 1, | ||
164 | .num_resources = ARRAY_SIZE(netx_uart1_resources), | ||
165 | .resource = netx_uart1_resources, | ||
166 | }; | ||
167 | |||
168 | static struct resource netx_uart2_resources[] = { | ||
169 | [0] = { | ||
170 | .start = 0x00100A80, | ||
171 | .end = 0x00100ABF, | ||
172 | .flags = IORESOURCE_MEM, | ||
173 | }, | ||
174 | [1] = { | ||
175 | .start = (NETX_IRQ_UART2), | ||
176 | .end = (NETX_IRQ_UART2), | ||
177 | .flags = IORESOURCE_IRQ, | ||
178 | }, | ||
179 | }; | ||
180 | |||
181 | static struct platform_device netx_uart2_device = { | ||
182 | .name = "netx-uart", | ||
183 | .id = 2, | ||
184 | .num_resources = ARRAY_SIZE(netx_uart2_resources), | ||
185 | .resource = netx_uart2_resources, | ||
186 | }; | ||
187 | |||
188 | static struct platform_device *devices[] __initdata = { | ||
189 | &netx_eth0_device, | ||
190 | &netx_eth1_device, | ||
191 | &netx_uart0_device, | ||
192 | &netx_uart1_device, | ||
193 | &netx_uart2_device, | ||
194 | }; | ||
195 | |||
196 | static void __init nxdb500_init(void) | ||
197 | { | ||
198 | netx_fb_init(&clcd_data, &qvga); | ||
199 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
200 | } | ||
201 | |||
202 | MACHINE_START(NXDB500, "Hilscher nxdb500") | ||
203 | .phys_io = 0x00100000, | ||
204 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
205 | .boot_params = 0x80000100, | ||
206 | .map_io = netx_map_io, | ||
207 | .init_irq = netx_init_irq, | ||
208 | .timer = &netx_timer, | ||
209 | .init_machine = nxdb500_init, | ||
210 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/nxdkn.c b/arch/arm/mach-netx/nxdkn.c new file mode 100644 index 000000000000..7e26c42d1ac7 --- /dev/null +++ b/arch/arm/mach-netx/nxdkn.c | |||
@@ -0,0 +1,103 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxdkn.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | |||
36 | static struct netxeth_platform_data eth0_platform_data = { | ||
37 | .xcno = 0, | ||
38 | }; | ||
39 | |||
40 | static struct platform_device nxdkn_eth0_device = { | ||
41 | .name = "netx-eth", | ||
42 | .id = 0, | ||
43 | .num_resources = 0, | ||
44 | .resource = NULL, | ||
45 | .dev = { | ||
46 | .platform_data = ð0_platform_data, | ||
47 | } | ||
48 | }; | ||
49 | |||
50 | static struct netxeth_platform_data eth1_platform_data = { | ||
51 | .xcno = 1, | ||
52 | }; | ||
53 | |||
54 | static struct platform_device nxdkn_eth1_device = { | ||
55 | .name = "netx-eth", | ||
56 | .id = 1, | ||
57 | .num_resources = 0, | ||
58 | .resource = NULL, | ||
59 | .dev = { | ||
60 | .platform_data = ð1_platform_data, | ||
61 | } | ||
62 | }; | ||
63 | |||
64 | static struct resource netx_uart0_resources[] = { | ||
65 | [0] = { | ||
66 | .start = 0x00100A00, | ||
67 | .end = 0x00100A3F, | ||
68 | .flags = IORESOURCE_MEM, | ||
69 | }, | ||
70 | [1] = { | ||
71 | .start = (NETX_IRQ_UART0), | ||
72 | .end = (NETX_IRQ_UART0), | ||
73 | .flags = IORESOURCE_IRQ, | ||
74 | }, | ||
75 | }; | ||
76 | |||
77 | static struct platform_device netx_uart0_device = { | ||
78 | .name = "netx-uart", | ||
79 | .id = 0, | ||
80 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
81 | .resource = netx_uart0_resources, | ||
82 | }; | ||
83 | |||
84 | static struct platform_device *devices[] __initdata = { | ||
85 | &nxdkn_eth0_device, | ||
86 | &nxdkn_eth1_device, | ||
87 | &netx_uart0_device, | ||
88 | }; | ||
89 | |||
90 | static void __init nxdkn_init(void) | ||
91 | { | ||
92 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
93 | } | ||
94 | |||
95 | MACHINE_START(NXDKN, "Hilscher nxdkn") | ||
96 | .phys_io = 0x00100000, | ||
97 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
98 | .boot_params = 0x80000100, | ||
99 | .map_io = netx_map_io, | ||
100 | .init_irq = netx_init_irq, | ||
101 | .timer = &netx_timer, | ||
102 | .init_machine = nxdkn_init, | ||
103 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/nxeb500hmi.c b/arch/arm/mach-netx/nxeb500hmi.c new file mode 100644 index 000000000000..53e10a9849f9 --- /dev/null +++ b/arch/arm/mach-netx/nxeb500hmi.c | |||
@@ -0,0 +1,187 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxeb500hmi.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | #include "fb.h" | ||
36 | |||
37 | static struct clcd_panel qvga = { | ||
38 | .mode = { | ||
39 | .name = "QVGA", | ||
40 | .refresh = 60, | ||
41 | .xres = 240, | ||
42 | .yres = 320, | ||
43 | .pixclock = 187617, | ||
44 | .left_margin = 6, | ||
45 | .right_margin = 26, | ||
46 | .upper_margin = 0, | ||
47 | .lower_margin = 6, | ||
48 | .hsync_len = 6, | ||
49 | .vsync_len = 1, | ||
50 | .sync = 0, | ||
51 | .vmode = FB_VMODE_NONINTERLACED, | ||
52 | }, | ||
53 | .width = -1, | ||
54 | .height = -1, | ||
55 | .tim2 = 16, | ||
56 | .cntl = CNTL_LCDTFT | CNTL_BGR, | ||
57 | .bpp = 16, | ||
58 | .grayscale = 0, | ||
59 | }; | ||
60 | |||
61 | static inline int nxeb500hmi_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) | ||
62 | { | ||
63 | var->green.length = 5; | ||
64 | var->green.msb_right = 0; | ||
65 | |||
66 | return clcdfb_check(fb, var); | ||
67 | } | ||
68 | |||
69 | static int nxeb500hmi_clcd_setup(struct clcd_fb *fb) | ||
70 | { | ||
71 | unsigned int val; | ||
72 | |||
73 | fb->fb.var.green.length = 5; | ||
74 | fb->fb.var.green.msb_right = 0; | ||
75 | |||
76 | /* enable asic control */ | ||
77 | val = readl(NETX_SYSTEM_IOC_ACCESS_KEY); | ||
78 | writel(val, NETX_SYSTEM_IOC_ACCESS_KEY); | ||
79 | |||
80 | writel(3, NETX_SYSTEM_IOC_CR); | ||
81 | |||
82 | /* GPIO 14 is used for display enable on newer boards */ | ||
83 | writel(9, NETX_GPIO_CFG(14)); | ||
84 | |||
85 | val = readl(NETX_PIO_OUTPIO); | ||
86 | writel(val | 1, NETX_PIO_OUTPIO); | ||
87 | |||
88 | val = readl(NETX_PIO_OEPIO); | ||
89 | writel(val | 1, NETX_PIO_OEPIO); | ||
90 | return netx_clcd_setup(fb); | ||
91 | } | ||
92 | |||
93 | static struct clcd_board clcd_data = { | ||
94 | .name = "netX", | ||
95 | .check = nxeb500hmi_check, | ||
96 | .decode = clcdfb_decode, | ||
97 | .enable = netx_clcd_enable, | ||
98 | .setup = nxeb500hmi_clcd_setup, | ||
99 | .mmap = netx_clcd_mmap, | ||
100 | .remove = netx_clcd_remove, | ||
101 | }; | ||
102 | |||
103 | static struct netxeth_platform_data eth0_platform_data = { | ||
104 | .xcno = 0, | ||
105 | }; | ||
106 | |||
107 | static struct platform_device netx_eth0_device = { | ||
108 | .name = "netx-eth", | ||
109 | .id = 0, | ||
110 | .num_resources = 0, | ||
111 | .resource = NULL, | ||
112 | .dev = { | ||
113 | .platform_data = ð0_platform_data, | ||
114 | } | ||
115 | }; | ||
116 | |||
117 | static struct netxeth_platform_data eth1_platform_data = { | ||
118 | .xcno = 1, | ||
119 | }; | ||
120 | |||
121 | static struct platform_device netx_eth1_device = { | ||
122 | .name = "netx-eth", | ||
123 | .id = 1, | ||
124 | .num_resources = 0, | ||
125 | .resource = NULL, | ||
126 | .dev = { | ||
127 | .platform_data = ð1_platform_data, | ||
128 | } | ||
129 | }; | ||
130 | |||
131 | static struct resource netx_cf_resources[] = { | ||
132 | [0] = { | ||
133 | .start = 0x20000000, | ||
134 | .end = 0x25ffffff, | ||
135 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, | ||
136 | }, | ||
137 | }; | ||
138 | |||
139 | static struct platform_device netx_cf_device = { | ||
140 | .name = "netx-cf", | ||
141 | .id = 0, | ||
142 | .resource = netx_cf_resources, | ||
143 | .num_resources = ARRAY_SIZE(netx_cf_resources), | ||
144 | }; | ||
145 | |||
146 | static struct resource netx_uart0_resources[] = { | ||
147 | [0] = { | ||
148 | .start = 0x00100A00, | ||
149 | .end = 0x00100A3F, | ||
150 | .flags = IORESOURCE_MEM, | ||
151 | }, | ||
152 | [1] = { | ||
153 | .start = (NETX_IRQ_UART0), | ||
154 | .end = (NETX_IRQ_UART0), | ||
155 | .flags = IORESOURCE_IRQ, | ||
156 | }, | ||
157 | }; | ||
158 | |||
159 | static struct platform_device netx_uart0_device = { | ||
160 | .name = "netx-uart", | ||
161 | .id = 0, | ||
162 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
163 | .resource = netx_uart0_resources, | ||
164 | }; | ||
165 | |||
166 | static struct platform_device *devices[] __initdata = { | ||
167 | &netx_eth0_device, | ||
168 | &netx_eth1_device, | ||
169 | &netx_cf_device, | ||
170 | &netx_uart0_device, | ||
171 | }; | ||
172 | |||
173 | static void __init nxeb500hmi_init(void) | ||
174 | { | ||
175 | netx_fb_init(&clcd_data, &qvga); | ||
176 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
177 | } | ||
178 | |||
179 | MACHINE_START(NXEB500HMI, "Hilscher nxeb500hmi") | ||
180 | .phys_io = 0x00100000, | ||
181 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
182 | .boot_params = 0x80000100, | ||
183 | .map_io = netx_map_io, | ||
184 | .init_irq = netx_init_irq, | ||
185 | .timer = &netx_timer, | ||
186 | .init_machine = nxeb500hmi_init, | ||
187 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/pfifo.c b/arch/arm/mach-netx/pfifo.c new file mode 100644 index 000000000000..44dea61a9de4 --- /dev/null +++ b/arch/arm/mach-netx/pfifo.c | |||
@@ -0,0 +1,68 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/pfifo.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/module.h> | ||
22 | #include <linux/mutex.h> | ||
23 | |||
24 | #include <asm/io.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/arch/netx-regs.h> | ||
27 | #include <asm/arch/pfifo.h> | ||
28 | |||
29 | static DEFINE_MUTEX(pfifo_lock); | ||
30 | |||
31 | static unsigned int pfifo_used = 0; | ||
32 | |||
33 | int pfifo_request(unsigned int pfifo_mask) | ||
34 | { | ||
35 | int err = 0; | ||
36 | unsigned int val; | ||
37 | |||
38 | mutex_lock(&pfifo_lock); | ||
39 | |||
40 | if (pfifo_mask & pfifo_used) { | ||
41 | err = -EBUSY; | ||
42 | goto out; | ||
43 | } | ||
44 | |||
45 | pfifo_used |= pfifo_mask; | ||
46 | |||
47 | val = readl(NETX_PFIFO_RESET); | ||
48 | writel(val | pfifo_mask, NETX_PFIFO_RESET); | ||
49 | writel(val, NETX_PFIFO_RESET); | ||
50 | |||
51 | out: | ||
52 | mutex_unlock(&pfifo_lock); | ||
53 | return err; | ||
54 | } | ||
55 | |||
56 | void pfifo_free(unsigned int pfifo_mask) | ||
57 | { | ||
58 | mutex_lock(&pfifo_lock); | ||
59 | pfifo_used &= ~pfifo_mask; | ||
60 | mutex_unlock(&pfifo_lock); | ||
61 | } | ||
62 | |||
63 | EXPORT_SYMBOL(pfifo_push); | ||
64 | EXPORT_SYMBOL(pfifo_pop); | ||
65 | EXPORT_SYMBOL(pfifo_fill_level); | ||
66 | EXPORT_SYMBOL(pfifo_empty); | ||
67 | EXPORT_SYMBOL(pfifo_request); | ||
68 | EXPORT_SYMBOL(pfifo_free); | ||
diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c new file mode 100644 index 000000000000..edfbdf40c600 --- /dev/null +++ b/arch/arm/mach-netx/time.c | |||
@@ -0,0 +1,88 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/time.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/interrupt.h> | ||
22 | |||
23 | #include <asm/hardware.h> | ||
24 | #include <asm/io.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | #include <asm/arch/netx-regs.h> | ||
27 | |||
28 | /* | ||
29 | * Returns number of us since last clock interrupt. Note that interrupts | ||
30 | * will have been disabled by do_gettimeoffset() | ||
31 | */ | ||
32 | static unsigned long netx_gettimeoffset(void) | ||
33 | { | ||
34 | return readl(NETX_GPIO_COUNTER_CURRENT(0)) / 100; | ||
35 | } | ||
36 | |||
37 | /* | ||
38 | * IRQ handler for the timer | ||
39 | */ | ||
40 | static irqreturn_t | ||
41 | netx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | ||
42 | { | ||
43 | write_seqlock(&xtime_lock); | ||
44 | |||
45 | timer_tick(regs); | ||
46 | write_sequnlock(&xtime_lock); | ||
47 | |||
48 | /* acknowledge interrupt */ | ||
49 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ); | ||
50 | |||
51 | return IRQ_HANDLED; | ||
52 | } | ||
53 | |||
54 | |||
55 | static struct irqaction netx_timer_irq = { | ||
56 | .name = "NetX Timer Tick", | ||
57 | .flags = SA_INTERRUPT | SA_TIMER, | ||
58 | .handler = netx_timer_interrupt, | ||
59 | }; | ||
60 | |||
61 | /* | ||
62 | * Set up timer interrupt | ||
63 | */ | ||
64 | static void __init netx_timer_init(void) | ||
65 | { | ||
66 | /* disable timer initially */ | ||
67 | writel(0, NETX_GPIO_COUNTER_CTRL(0)); | ||
68 | |||
69 | /* Reset the timer value to zero */ | ||
70 | writel(0, NETX_GPIO_COUNTER_CURRENT(0)); | ||
71 | |||
72 | writel(LATCH, NETX_GPIO_COUNTER_MAX(0)); | ||
73 | |||
74 | /* acknowledge interrupt */ | ||
75 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ); | ||
76 | |||
77 | /* Enable the interrupt in the specific timer register and start timer */ | ||
78 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ_ENABLE); | ||
79 | writel(NETX_GPIO_COUNTER_CTRL_IRQ_EN | NETX_GPIO_COUNTER_CTRL_RUN, | ||
80 | NETX_GPIO_COUNTER_CTRL(0)); | ||
81 | |||
82 | setup_irq(NETX_IRQ_TIMER0, &netx_timer_irq); | ||
83 | } | ||
84 | |||
85 | struct sys_timer netx_timer = { | ||
86 | .init = netx_timer_init, | ||
87 | .offset = netx_gettimeoffset, | ||
88 | }; | ||
diff --git a/arch/arm/mach-netx/xc.c b/arch/arm/mach-netx/xc.c new file mode 100644 index 000000000000..172a058ddd66 --- /dev/null +++ b/arch/arm/mach-netx/xc.c | |||
@@ -0,0 +1,255 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/xc.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
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 version 2 | ||
8 | * as published by the Free Software Foundation. | ||
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/device.h> | ||
22 | #include <linux/firmware.h> | ||
23 | #include <linux/mutex.h> | ||
24 | |||
25 | #include <asm/io.h> | ||
26 | #include <asm/hardware.h> | ||
27 | #include <asm/arch/netx-regs.h> | ||
28 | |||
29 | #include <asm/arch/xc.h> | ||
30 | |||
31 | static DEFINE_MUTEX(xc_lock); | ||
32 | |||
33 | static int xc_in_use = 0; | ||
34 | |||
35 | struct fw_desc { | ||
36 | unsigned int ofs; | ||
37 | unsigned int size; | ||
38 | unsigned int patch_ofs; | ||
39 | unsigned int patch_entries; | ||
40 | }; | ||
41 | |||
42 | struct fw_header { | ||
43 | unsigned int magic; | ||
44 | unsigned int type; | ||
45 | unsigned int version; | ||
46 | unsigned int reserved[5]; | ||
47 | struct fw_desc fw_desc[3]; | ||
48 | } __attribute__ ((packed)); | ||
49 | |||
50 | int xc_stop(struct xc *x) | ||
51 | { | ||
52 | writel(RPU_HOLD_PC, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS); | ||
53 | writel(TPU_HOLD_PC, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS); | ||
54 | writel(XPU_HOLD_PC, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS); | ||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | int xc_start(struct xc *x) | ||
59 | { | ||
60 | writel(0, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS); | ||
61 | writel(0, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS); | ||
62 | writel(0, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS); | ||
63 | return 0; | ||
64 | } | ||
65 | |||
66 | int xc_running(struct xc *x) | ||
67 | { | ||
68 | return (readl(x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS) & RPU_HOLD_PC) | ||
69 | || (readl(x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS) & TPU_HOLD_PC) | ||
70 | || (readl(x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS) & XPU_HOLD_PC) ? | ||
71 | 0 : 1; | ||
72 | } | ||
73 | |||
74 | int xc_reset(struct xc *x) | ||
75 | { | ||
76 | writel(0, x->xpec_base + NETX_XPEC_PC_OFS); | ||
77 | return 0; | ||
78 | } | ||
79 | |||
80 | static int xc_check_ptr(struct xc *x, unsigned long adr, unsigned int size) | ||
81 | { | ||
82 | if (adr >= NETX_PA_XMAC(x->no) && | ||
83 | adr + size < NETX_PA_XMAC(x->no) + XMAC_MEM_SIZE) | ||
84 | return 0; | ||
85 | |||
86 | if (adr >= NETX_PA_XPEC(x->no) && | ||
87 | adr + size < NETX_PA_XPEC(x->no) + XPEC_MEM_SIZE) | ||
88 | return 0; | ||
89 | |||
90 | dev_err(x->dev, "Illegal pointer in firmware found. aborting\n"); | ||
91 | |||
92 | return -1; | ||
93 | } | ||
94 | |||
95 | static int xc_patch(struct xc *x, void *patch, int count) | ||
96 | { | ||
97 | unsigned int val, adr; | ||
98 | unsigned int *data = patch; | ||
99 | |||
100 | int i; | ||
101 | for (i = 0; i < count; i++) { | ||
102 | adr = *data++; | ||
103 | val = *data++; | ||
104 | if (xc_check_ptr(x, adr, 4) < 0) | ||
105 | return -EINVAL; | ||
106 | |||
107 | writel(val, (void __iomem *)io_p2v(adr)); | ||
108 | } | ||
109 | return 0; | ||
110 | } | ||
111 | |||
112 | int xc_request_firmware(struct xc *x) | ||
113 | { | ||
114 | int ret; | ||
115 | char name[16]; | ||
116 | const struct firmware *fw; | ||
117 | struct fw_header *head; | ||
118 | unsigned int size; | ||
119 | int i; | ||
120 | void *src; | ||
121 | unsigned long dst; | ||
122 | |||
123 | sprintf(name, "xc%d.bin", x->no); | ||
124 | |||
125 | ret = request_firmware(&fw, name, x->dev); | ||
126 | |||
127 | if (ret < 0) { | ||
128 | dev_err(x->dev, "request_firmware failed\n"); | ||
129 | return ret; | ||
130 | } | ||
131 | |||
132 | head = (struct fw_header *)fw->data; | ||
133 | if (head->magic != 0x4e657458) { | ||
134 | if (head->magic == 0x5874654e) { | ||
135 | dev_err(x->dev, | ||
136 | "firmware magic is 'XteN'. Endianess problems?\n"); | ||
137 | ret = -ENODEV; | ||
138 | goto exit_release_firmware; | ||
139 | } | ||
140 | dev_err(x->dev, "unrecognized firmware magic 0x%08x\n", | ||
141 | head->magic); | ||
142 | ret = -ENODEV; | ||
143 | goto exit_release_firmware; | ||
144 | } | ||
145 | |||
146 | x->type = head->type; | ||
147 | x->version = head->version; | ||
148 | |||
149 | ret = -EINVAL; | ||
150 | |||
151 | for (i = 0; i < 3; i++) { | ||
152 | src = fw->data + head->fw_desc[i].ofs; | ||
153 | dst = *(unsigned int *)src; | ||
154 | src += sizeof (unsigned int); | ||
155 | size = head->fw_desc[i].size - sizeof (unsigned int); | ||
156 | |||
157 | if (xc_check_ptr(x, dst, size)) | ||
158 | goto exit_release_firmware; | ||
159 | |||
160 | memcpy((void *)io_p2v(dst), src, size); | ||
161 | |||
162 | src = fw->data + head->fw_desc[i].patch_ofs; | ||
163 | size = head->fw_desc[i].patch_entries; | ||
164 | ret = xc_patch(x, src, size); | ||
165 | if (ret < 0) | ||
166 | goto exit_release_firmware; | ||
167 | } | ||
168 | |||
169 | ret = 0; | ||
170 | |||
171 | exit_release_firmware: | ||
172 | release_firmware(fw); | ||
173 | |||
174 | return ret; | ||
175 | } | ||
176 | |||
177 | struct xc *request_xc(int xcno, struct device *dev) | ||
178 | { | ||
179 | struct xc *x = NULL; | ||
180 | |||
181 | mutex_lock(&xc_lock); | ||
182 | |||
183 | if (xcno > 3) | ||
184 | goto exit; | ||
185 | if (xc_in_use & (1 << xcno)) | ||
186 | goto exit; | ||
187 | |||
188 | x = kmalloc(sizeof (struct xc), GFP_KERNEL); | ||
189 | if (!x) | ||
190 | goto exit; | ||
191 | |||
192 | if (!request_mem_region | ||
193 | (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, dev->kobj.name)) | ||
194 | goto exit_free; | ||
195 | |||
196 | if (!request_mem_region | ||
197 | (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, dev->kobj.name)) | ||
198 | goto exit_release_1; | ||
199 | |||
200 | if (!request_mem_region | ||
201 | (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, dev->kobj.name)) | ||
202 | goto exit_release_2; | ||
203 | |||
204 | x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); | ||
205 | x->xmac_base = (void * __iomem)io_p2v(NETX_PA_XMAC(xcno)); | ||
206 | x->sram_base = ioremap(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
207 | if (!x->sram_base) | ||
208 | goto exit_release_3; | ||
209 | |||
210 | x->irq = NETX_IRQ_XPEC(xcno); | ||
211 | |||
212 | x->no = xcno; | ||
213 | x->dev = dev; | ||
214 | |||
215 | xc_in_use |= (1 << xcno); | ||
216 | |||
217 | goto exit; | ||
218 | |||
219 | exit_release_3: | ||
220 | release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
221 | exit_release_2: | ||
222 | release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); | ||
223 | exit_release_1: | ||
224 | release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); | ||
225 | exit_free: | ||
226 | kfree(x); | ||
227 | x = NULL; | ||
228 | exit: | ||
229 | mutex_unlock(&xc_lock); | ||
230 | return x; | ||
231 | } | ||
232 | |||
233 | void free_xc(struct xc *x) | ||
234 | { | ||
235 | int xcno = x->no; | ||
236 | |||
237 | mutex_lock(&xc_lock); | ||
238 | |||
239 | iounmap(x->sram_base); | ||
240 | release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
241 | release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); | ||
242 | release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); | ||
243 | xc_in_use &= ~(1 << x->no); | ||
244 | kfree(x); | ||
245 | |||
246 | mutex_unlock(&xc_lock); | ||
247 | } | ||
248 | |||
249 | EXPORT_SYMBOL(free_xc); | ||
250 | EXPORT_SYMBOL(request_xc); | ||
251 | EXPORT_SYMBOL(xc_request_firmware); | ||
252 | EXPORT_SYMBOL(xc_reset); | ||
253 | EXPORT_SYMBOL(xc_running); | ||
254 | EXPORT_SYMBOL(xc_start); | ||
255 | EXPORT_SYMBOL(xc_stop); | ||
diff --git a/arch/arm/mach-pnx4008/Makefile b/arch/arm/mach-pnx4008/Makefile new file mode 100644 index 000000000000..b457ca0a431a --- /dev/null +++ b/arch/arm/mach-pnx4008/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | obj-y := core.o irq.o time.o clock.o gpio.o serial.o dma.o | ||
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | |||
10 | # Power Management | ||
11 | obj-$(CONFIG_PM) += pm.o sleep.o | ||
12 | |||
diff --git a/arch/arm/mach-pnx4008/Makefile.boot b/arch/arm/mach-pnx4008/Makefile.boot new file mode 100644 index 000000000000..44c7117e20dd --- /dev/null +++ b/arch/arm/mach-pnx4008/Makefile.boot | |||
@@ -0,0 +1,4 @@ | |||
1 | zreladdr-y := 0x80008000 | ||
2 | params_phys-y := 0x80000100 | ||
3 | initrd_phys-y := 0x80800000 | ||
4 | |||
diff --git a/arch/arm/mach-pnx4008/clock.c b/arch/arm/mach-pnx4008/clock.c new file mode 100644 index 000000000000..285b22f631e9 --- /dev/null +++ b/arch/arm/mach-pnx4008/clock.c | |||
@@ -0,0 +1,1010 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/clock.c | ||
3 | * | ||
4 | * Clock control driver for PNX4008 | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev <source@mvista.com> | ||
7 | * Generic clock management functions are partially based on: | ||
8 | * linux/arch/arm/mach-omap/clock.c | ||
9 | * | ||
10 | * 2005-2006 (c) MontaVista Software, Inc. This file is licensed under | ||
11 | * the terms of the GNU General Public License version 2. This program | ||
12 | * is licensed "as is" without any warranty of any kind, whether express | ||
13 | * or implied. | ||
14 | */ | ||
15 | |||
16 | #include <linux/module.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/list.h> | ||
19 | #include <linux/errno.h> | ||
20 | #include <linux/device.h> | ||
21 | #include <linux/err.h> | ||
22 | #include <linux/delay.h> | ||
23 | |||
24 | #include <asm/semaphore.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/io.h> | ||
27 | |||
28 | #include <asm/arch/clock.h> | ||
29 | #include "clock.h" | ||
30 | |||
31 | /*forward declaration*/ | ||
32 | static struct clk per_ck; | ||
33 | static struct clk hclk_ck; | ||
34 | static struct clk ck_1MHz; | ||
35 | static struct clk ck_13MHz; | ||
36 | static struct clk ck_pll1; | ||
37 | static int local_set_rate(struct clk *clk, u32 rate); | ||
38 | |||
39 | static inline void clock_lock(void) | ||
40 | { | ||
41 | local_irq_disable(); | ||
42 | } | ||
43 | |||
44 | static inline void clock_unlock(void) | ||
45 | { | ||
46 | local_irq_enable(); | ||
47 | } | ||
48 | |||
49 | static void propagate_rate(struct clk *clk) | ||
50 | { | ||
51 | struct clk *tmp_clk; | ||
52 | |||
53 | tmp_clk = clk; | ||
54 | while (tmp_clk->propagate_next) { | ||
55 | tmp_clk = tmp_clk->propagate_next; | ||
56 | local_set_rate(tmp_clk, tmp_clk->user_rate); | ||
57 | } | ||
58 | } | ||
59 | |||
60 | static inline void clk_reg_disable(struct clk *clk) | ||
61 | { | ||
62 | if (clk->enable_reg) | ||
63 | __raw_writel(__raw_readl(clk->enable_reg) & | ||
64 | ~(1 << clk->enable_shift), clk->enable_reg); | ||
65 | } | ||
66 | |||
67 | static inline void clk_reg_enable(struct clk *clk) | ||
68 | { | ||
69 | if (clk->enable_reg) | ||
70 | __raw_writel(__raw_readl(clk->enable_reg) | | ||
71 | (1 << clk->enable_shift), clk->enable_reg); | ||
72 | } | ||
73 | |||
74 | static inline void clk_reg_disable1(struct clk *clk) | ||
75 | { | ||
76 | if (clk->enable_reg1) | ||
77 | __raw_writel(__raw_readl(clk->enable_reg1) & | ||
78 | ~(1 << clk->enable_shift1), clk->enable_reg1); | ||
79 | } | ||
80 | |||
81 | static inline void clk_reg_enable1(struct clk *clk) | ||
82 | { | ||
83 | if (clk->enable_reg1) | ||
84 | __raw_writel(__raw_readl(clk->enable_reg1) | | ||
85 | (1 << clk->enable_shift1), clk->enable_reg1); | ||
86 | } | ||
87 | |||
88 | static int clk_wait_for_pll_lock(struct clk *clk) | ||
89 | { | ||
90 | int i; | ||
91 | i = 0; | ||
92 | while (i++ < 0xFFF && !(__raw_readl(clk->scale_reg) & 1)) ; /*wait for PLL to lock */ | ||
93 | |||
94 | if (!(__raw_readl(clk->scale_reg) & 1)) { | ||
95 | printk(KERN_ERR | ||
96 | "%s ERROR: failed to lock, scale reg data: %x\n", | ||
97 | clk->name, __raw_readl(clk->scale_reg)); | ||
98 | return -1; | ||
99 | } | ||
100 | return 0; | ||
101 | } | ||
102 | |||
103 | static int switch_to_dirty_13mhz(struct clk *clk) | ||
104 | { | ||
105 | int i; | ||
106 | int ret; | ||
107 | u32 tmp_reg; | ||
108 | |||
109 | ret = 0; | ||
110 | |||
111 | if (!clk->rate) | ||
112 | clk_reg_enable1(clk); | ||
113 | |||
114 | tmp_reg = __raw_readl(clk->parent_switch_reg); | ||
115 | /*if 13Mhz clock selected, select 13'MHz (dirty) source from OSC */ | ||
116 | if (!(tmp_reg & 1)) { | ||
117 | tmp_reg |= (1 << 1); /* Trigger switch to 13'MHz (dirty) clock */ | ||
118 | __raw_writel(tmp_reg, clk->parent_switch_reg); | ||
119 | i = 0; | ||
120 | while (i++ < 0xFFF && !(__raw_readl(clk->parent_switch_reg) & 1)) ; /*wait for 13'MHz selection status */ | ||
121 | |||
122 | if (!(__raw_readl(clk->parent_switch_reg) & 1)) { | ||
123 | printk(KERN_ERR | ||
124 | "%s ERROR: failed to select 13'MHz, parent sw reg data: %x\n", | ||
125 | clk->name, __raw_readl(clk->parent_switch_reg)); | ||
126 | ret = -1; | ||
127 | } | ||
128 | } | ||
129 | |||
130 | if (!clk->rate) | ||
131 | clk_reg_disable1(clk); | ||
132 | |||
133 | return ret; | ||
134 | } | ||
135 | |||
136 | static int switch_to_clean_13mhz(struct clk *clk) | ||
137 | { | ||
138 | int i; | ||
139 | int ret; | ||
140 | u32 tmp_reg; | ||
141 | |||
142 | ret = 0; | ||
143 | |||
144 | if (!clk->rate) | ||
145 | clk_reg_enable1(clk); | ||
146 | |||
147 | tmp_reg = __raw_readl(clk->parent_switch_reg); | ||
148 | /*if 13'Mhz clock selected, select 13MHz (clean) source from OSC */ | ||
149 | if (tmp_reg & 1) { | ||
150 | tmp_reg &= ~(1 << 1); /* Trigger switch to 13MHz (clean) clock */ | ||
151 | __raw_writel(tmp_reg, clk->parent_switch_reg); | ||
152 | i = 0; | ||
153 | while (i++ < 0xFFF && (__raw_readl(clk->parent_switch_reg) & 1)) ; /*wait for 13MHz selection status */ | ||
154 | |||
155 | if (__raw_readl(clk->parent_switch_reg) & 1) { | ||
156 | printk(KERN_ERR | ||
157 | "%s ERROR: failed to select 13MHz, parent sw reg data: %x\n", | ||
158 | clk->name, __raw_readl(clk->parent_switch_reg)); | ||
159 | ret = -1; | ||
160 | } | ||
161 | } | ||
162 | |||
163 | if (!clk->rate) | ||
164 | clk_reg_disable1(clk); | ||
165 | |||
166 | return ret; | ||
167 | } | ||
168 | |||
169 | static int set_13MHz_parent(struct clk *clk, struct clk *parent) | ||
170 | { | ||
171 | int ret = -EINVAL; | ||
172 | |||
173 | if (parent == &ck_13MHz) | ||
174 | ret = switch_to_clean_13mhz(clk); | ||
175 | else if (parent == &ck_pll1) | ||
176 | ret = switch_to_dirty_13mhz(clk); | ||
177 | |||
178 | return ret; | ||
179 | } | ||
180 | |||
181 | #define PLL160_MIN_FCCO 156000 | ||
182 | #define PLL160_MAX_FCCO 320000 | ||
183 | |||
184 | /* | ||
185 | * Calculate pll160 settings. | ||
186 | * Possible input: up to 320MHz with step of clk->parent->rate. | ||
187 | * In PNX4008 parent rate for pll160s may be either 1 or 13MHz. | ||
188 | * Ignored paths: "feedback" (bit 13 set), "div-by-N". | ||
189 | * Setting ARM PLL4 rate to 0 will put CPU into direct run mode. | ||
190 | * Setting PLL5 and PLL3 rate to 0 will disable USB and DSP clock input. | ||
191 | * Please refer to PNX4008 IC manual for details. | ||
192 | */ | ||
193 | |||
194 | static int pll160_set_rate(struct clk *clk, u32 rate) | ||
195 | { | ||
196 | u32 tmp_reg, tmp_m, tmp_2p, i; | ||
197 | u32 parent_rate; | ||
198 | int ret = -EINVAL; | ||
199 | |||
200 | parent_rate = clk->parent->rate; | ||
201 | |||
202 | if (!parent_rate) | ||
203 | goto out; | ||
204 | |||
205 | /* set direct run for ARM or disable output for others */ | ||
206 | clk_reg_disable(clk); | ||
207 | |||
208 | /* disable source input as well (ignored for ARM) */ | ||
209 | clk_reg_disable1(clk); | ||
210 | |||
211 | tmp_reg = __raw_readl(clk->scale_reg); | ||
212 | tmp_reg &= ~0x1ffff; /*clear all settings, power down */ | ||
213 | __raw_writel(tmp_reg, clk->scale_reg); | ||
214 | |||
215 | rate -= rate % parent_rate; /*round down the input */ | ||
216 | |||
217 | if (rate > PLL160_MAX_FCCO) | ||
218 | rate = PLL160_MAX_FCCO; | ||
219 | |||
220 | if (!rate) { | ||
221 | clk->rate = 0; | ||
222 | ret = 0; | ||
223 | goto out; | ||
224 | } | ||
225 | |||
226 | clk_reg_enable1(clk); | ||
227 | tmp_reg = __raw_readl(clk->scale_reg); | ||
228 | |||
229 | if (rate == parent_rate) { | ||
230 | /*enter direct bypass mode */ | ||
231 | tmp_reg |= ((1 << 14) | (1 << 15)); | ||
232 | __raw_writel(tmp_reg, clk->scale_reg); | ||
233 | clk->rate = parent_rate; | ||
234 | clk_reg_enable(clk); | ||
235 | ret = 0; | ||
236 | goto out; | ||
237 | } | ||
238 | |||
239 | i = 0; | ||
240 | for (tmp_2p = 1; tmp_2p < 16; tmp_2p <<= 1) { | ||
241 | if (rate * tmp_2p >= PLL160_MIN_FCCO) | ||
242 | break; | ||
243 | i++; | ||
244 | } | ||
245 | |||
246 | if (tmp_2p > 1) | ||
247 | tmp_reg |= ((i - 1) << 11); | ||
248 | else | ||
249 | tmp_reg |= (1 << 14); /*direct mode, no divide */ | ||
250 | |||
251 | tmp_m = rate * tmp_2p; | ||
252 | tmp_m /= parent_rate; | ||
253 | |||
254 | tmp_reg |= (tmp_m - 1) << 1; /*calculate M */ | ||
255 | tmp_reg |= (1 << 16); /*power up PLL */ | ||
256 | __raw_writel(tmp_reg, clk->scale_reg); | ||
257 | |||
258 | if (clk_wait_for_pll_lock(clk) < 0) { | ||
259 | clk_reg_disable(clk); | ||
260 | clk_reg_disable1(clk); | ||
261 | |||
262 | tmp_reg = __raw_readl(clk->scale_reg); | ||
263 | tmp_reg &= ~0x1ffff; /*clear all settings, power down */ | ||
264 | __raw_writel(tmp_reg, clk->scale_reg); | ||
265 | clk->rate = 0; | ||
266 | ret = -EFAULT; | ||
267 | goto out; | ||
268 | } | ||
269 | |||
270 | clk->rate = (tmp_m * parent_rate) / tmp_2p; | ||
271 | |||
272 | if (clk->flags & RATE_PROPAGATES) | ||
273 | propagate_rate(clk); | ||
274 | |||
275 | clk_reg_enable(clk); | ||
276 | ret = 0; | ||
277 | |||
278 | out: | ||
279 | return ret; | ||
280 | } | ||
281 | |||
282 | /*configure PER_CLK*/ | ||
283 | static int per_clk_set_rate(struct clk *clk, u32 rate) | ||
284 | { | ||
285 | u32 tmp; | ||
286 | |||
287 | tmp = __raw_readl(clk->scale_reg); | ||
288 | tmp &= ~(0x1f << 2); | ||
289 | tmp |= ((clk->parent->rate / clk->rate) - 1) << 2; | ||
290 | __raw_writel(tmp, clk->scale_reg); | ||
291 | clk->rate = rate; | ||
292 | return 0; | ||
293 | } | ||
294 | |||
295 | /*configure HCLK*/ | ||
296 | static int hclk_set_rate(struct clk *clk, u32 rate) | ||
297 | { | ||
298 | u32 tmp; | ||
299 | tmp = __raw_readl(clk->scale_reg); | ||
300 | tmp = tmp & ~0x3; | ||
301 | switch (rate) { | ||
302 | case 1: | ||
303 | break; | ||
304 | case 2: | ||
305 | tmp |= 1; | ||
306 | break; | ||
307 | case 4: | ||
308 | tmp |= 2; | ||
309 | break; | ||
310 | } | ||
311 | |||
312 | __raw_writel(tmp, clk->scale_reg); | ||
313 | clk->rate = rate; | ||
314 | return 0; | ||
315 | } | ||
316 | |||
317 | static u32 hclk_round_rate(struct clk *clk, u32 rate) | ||
318 | { | ||
319 | switch (rate) { | ||
320 | case 1: | ||
321 | case 4: | ||
322 | return rate; | ||
323 | } | ||
324 | return 2; | ||
325 | } | ||
326 | |||
327 | static u32 per_clk_round_rate(struct clk *clk, u32 rate) | ||
328 | { | ||
329 | return CLK_RATE_13MHZ; | ||
330 | } | ||
331 | |||
332 | static int on_off_set_rate(struct clk *clk, u32 rate) | ||
333 | { | ||
334 | if (rate) { | ||
335 | clk_reg_enable(clk); | ||
336 | clk->rate = 1; | ||
337 | } else { | ||
338 | clk_reg_disable(clk); | ||
339 | clk->rate = 0; | ||
340 | } | ||
341 | return 0; | ||
342 | } | ||
343 | |||
344 | static int on_off_inv_set_rate(struct clk *clk, u32 rate) | ||
345 | { | ||
346 | if (rate) { | ||
347 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
348 | clk->rate = 1; | ||
349 | } else { | ||
350 | clk_reg_enable(clk); | ||
351 | clk->rate = 0; | ||
352 | } | ||
353 | return 0; | ||
354 | } | ||
355 | |||
356 | static u32 on_off_round_rate(struct clk *clk, u32 rate) | ||
357 | { | ||
358 | return (rate ? 1 : 0); | ||
359 | } | ||
360 | |||
361 | static u32 pll4_round_rate(struct clk *clk, u32 rate) | ||
362 | { | ||
363 | if (rate > CLK_RATE_208MHZ) | ||
364 | rate = CLK_RATE_208MHZ; | ||
365 | if (rate == CLK_RATE_208MHZ && hclk_ck.user_rate == 1) | ||
366 | rate = CLK_RATE_208MHZ - CLK_RATE_13MHZ; | ||
367 | return (rate - (rate % (hclk_ck.user_rate * CLK_RATE_13MHZ))); | ||
368 | } | ||
369 | |||
370 | static u32 pll3_round_rate(struct clk *clk, u32 rate) | ||
371 | { | ||
372 | if (rate > CLK_RATE_208MHZ) | ||
373 | rate = CLK_RATE_208MHZ; | ||
374 | return (rate - rate % CLK_RATE_13MHZ); | ||
375 | } | ||
376 | |||
377 | static u32 pll5_round_rate(struct clk *clk, u32 rate) | ||
378 | { | ||
379 | return (rate ? CLK_RATE_48MHZ : 0); | ||
380 | } | ||
381 | |||
382 | static u32 ck_13MHz_round_rate(struct clk *clk, u32 rate) | ||
383 | { | ||
384 | return (rate ? CLK_RATE_13MHZ : 0); | ||
385 | } | ||
386 | |||
387 | static int ck_13MHz_set_rate(struct clk *clk, u32 rate) | ||
388 | { | ||
389 | if (rate) { | ||
390 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
391 | udelay(500); | ||
392 | clk->rate = CLK_RATE_13MHZ; | ||
393 | ck_1MHz.rate = CLK_RATE_1MHZ; | ||
394 | } else { | ||
395 | clk_reg_enable(clk); | ||
396 | clk->rate = 0; | ||
397 | ck_1MHz.rate = 0; | ||
398 | } | ||
399 | return 0; | ||
400 | } | ||
401 | |||
402 | static int pll1_set_rate(struct clk *clk, u32 rate) | ||
403 | { | ||
404 | #if 0 /* doesn't work on some boards, probably a HW BUG */ | ||
405 | if (rate) { | ||
406 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
407 | if (!clk_wait_for_pll_lock(clk)) { | ||
408 | clk->rate = CLK_RATE_13MHZ; | ||
409 | } else { | ||
410 | clk_reg_enable(clk); | ||
411 | clk->rate = 0; | ||
412 | } | ||
413 | |||
414 | } else { | ||
415 | clk_reg_enable(clk); | ||
416 | clk->rate = 0; | ||
417 | } | ||
418 | #endif | ||
419 | return 0; | ||
420 | } | ||
421 | |||
422 | /* Clock sources */ | ||
423 | |||
424 | static struct clk osc_13MHz = { | ||
425 | .name = "osc_13MHz", | ||
426 | .flags = FIXED_RATE, | ||
427 | .rate = CLK_RATE_13MHZ, | ||
428 | }; | ||
429 | |||
430 | static struct clk ck_13MHz = { | ||
431 | .name = "ck_13MHz", | ||
432 | .parent = &osc_13MHz, | ||
433 | .flags = NEEDS_INITIALIZATION, | ||
434 | .round_rate = &ck_13MHz_round_rate, | ||
435 | .set_rate = &ck_13MHz_set_rate, | ||
436 | .enable_reg = OSC13CTRL_REG, | ||
437 | .enable_shift = 0, | ||
438 | .rate = CLK_RATE_13MHZ, | ||
439 | }; | ||
440 | |||
441 | static struct clk osc_32KHz = { | ||
442 | .name = "osc_32KHz", | ||
443 | .flags = FIXED_RATE, | ||
444 | .rate = CLK_RATE_32KHZ, | ||
445 | }; | ||
446 | |||
447 | /*attached to PLL5*/ | ||
448 | static struct clk ck_1MHz = { | ||
449 | .name = "ck_1MHz", | ||
450 | .flags = FIXED_RATE | PARENT_SET_RATE, | ||
451 | .parent = &ck_13MHz, | ||
452 | }; | ||
453 | |||
454 | /* PLL1 (397) - provides 13' MHz clock */ | ||
455 | static struct clk ck_pll1 = { | ||
456 | .name = "ck_pll1", | ||
457 | .parent = &osc_32KHz, | ||
458 | .flags = NEEDS_INITIALIZATION, | ||
459 | .round_rate = &ck_13MHz_round_rate, | ||
460 | .set_rate = &pll1_set_rate, | ||
461 | .enable_reg = PLLCTRL_REG, | ||
462 | .enable_shift = 1, | ||
463 | .scale_reg = PLLCTRL_REG, | ||
464 | .rate = CLK_RATE_13MHZ, | ||
465 | }; | ||
466 | |||
467 | /* CPU/Bus PLL */ | ||
468 | static struct clk ck_pll4 = { | ||
469 | .name = "ck_pll4", | ||
470 | .parent = &ck_pll1, | ||
471 | .flags = RATE_PROPAGATES | NEEDS_INITIALIZATION, | ||
472 | .propagate_next = &per_ck, | ||
473 | .round_rate = &pll4_round_rate, | ||
474 | .set_rate = &pll160_set_rate, | ||
475 | .rate = CLK_RATE_208MHZ, | ||
476 | .scale_reg = HCLKPLLCTRL_REG, | ||
477 | .enable_reg = PWRCTRL_REG, | ||
478 | .enable_shift = 2, | ||
479 | .parent_switch_reg = SYSCLKCTRL_REG, | ||
480 | .set_parent = &set_13MHz_parent, | ||
481 | }; | ||
482 | |||
483 | /* USB PLL */ | ||
484 | static struct clk ck_pll5 = { | ||
485 | .name = "ck_pll5", | ||
486 | .parent = &ck_1MHz, | ||
487 | .flags = NEEDS_INITIALIZATION, | ||
488 | .round_rate = &pll5_round_rate, | ||
489 | .set_rate = &pll160_set_rate, | ||
490 | .scale_reg = USBCTRL_REG, | ||
491 | .enable_reg = USBCTRL_REG, | ||
492 | .enable_shift = 18, | ||
493 | .enable_reg1 = USBCTRL_REG, | ||
494 | .enable_shift1 = 17, | ||
495 | }; | ||
496 | |||
497 | /* XPERTTeak DSP PLL */ | ||
498 | static struct clk ck_pll3 = { | ||
499 | .name = "ck_pll3", | ||
500 | .parent = &ck_pll1, | ||
501 | .flags = NEEDS_INITIALIZATION, | ||
502 | .round_rate = &pll3_round_rate, | ||
503 | .set_rate = &pll160_set_rate, | ||
504 | .scale_reg = DSPPLLCTRL_REG, | ||
505 | .enable_reg = DSPCLKCTRL_REG, | ||
506 | .enable_shift = 3, | ||
507 | .enable_reg1 = DSPCLKCTRL_REG, | ||
508 | .enable_shift1 = 2, | ||
509 | .parent_switch_reg = DSPCLKCTRL_REG, | ||
510 | .set_parent = &set_13MHz_parent, | ||
511 | }; | ||
512 | |||
513 | static struct clk hclk_ck = { | ||
514 | .name = "hclk_ck", | ||
515 | .parent = &ck_pll4, | ||
516 | .flags = PARENT_SET_RATE, | ||
517 | .set_rate = &hclk_set_rate, | ||
518 | .round_rate = &hclk_round_rate, | ||
519 | .scale_reg = HCLKDIVCTRL_REG, | ||
520 | .rate = 2, | ||
521 | .user_rate = 2, | ||
522 | }; | ||
523 | |||
524 | static struct clk per_ck = { | ||
525 | .name = "per_ck", | ||
526 | .parent = &ck_pll4, | ||
527 | .flags = FIXED_RATE, | ||
528 | .propagate_next = &hclk_ck, | ||
529 | .set_rate = &per_clk_set_rate, | ||
530 | .round_rate = &per_clk_round_rate, | ||
531 | .scale_reg = HCLKDIVCTRL_REG, | ||
532 | .rate = CLK_RATE_13MHZ, | ||
533 | .user_rate = CLK_RATE_13MHZ, | ||
534 | }; | ||
535 | |||
536 | static struct clk m2hclk_ck = { | ||
537 | .name = "m2hclk_ck", | ||
538 | .parent = &hclk_ck, | ||
539 | .flags = NEEDS_INITIALIZATION, | ||
540 | .round_rate = &on_off_round_rate, | ||
541 | .set_rate = &on_off_inv_set_rate, | ||
542 | .rate = 1, | ||
543 | .enable_shift = 6, | ||
544 | .enable_reg = PWRCTRL_REG, | ||
545 | }; | ||
546 | |||
547 | static struct clk vfp9_ck = { | ||
548 | .name = "vfp9_ck", | ||
549 | .parent = &ck_pll4, | ||
550 | .flags = NEEDS_INITIALIZATION, | ||
551 | .round_rate = &on_off_round_rate, | ||
552 | .set_rate = &on_off_set_rate, | ||
553 | .rate = 1, | ||
554 | .enable_shift = 4, | ||
555 | .enable_reg = VFP9CLKCTRL_REG, | ||
556 | }; | ||
557 | |||
558 | static struct clk keyscan_ck = { | ||
559 | .name = "keyscan_ck", | ||
560 | .parent = &osc_32KHz, | ||
561 | .flags = NEEDS_INITIALIZATION, | ||
562 | .round_rate = &on_off_round_rate, | ||
563 | .set_rate = &on_off_set_rate, | ||
564 | .enable_shift = 0, | ||
565 | .enable_reg = KEYCLKCTRL_REG, | ||
566 | }; | ||
567 | |||
568 | static struct clk touch_ck = { | ||
569 | .name = "touch_ck", | ||
570 | .parent = &osc_32KHz, | ||
571 | .flags = NEEDS_INITIALIZATION, | ||
572 | .round_rate = &on_off_round_rate, | ||
573 | .set_rate = &on_off_set_rate, | ||
574 | .enable_shift = 0, | ||
575 | .enable_reg = TSCLKCTRL_REG, | ||
576 | }; | ||
577 | |||
578 | static struct clk pwm1_ck = { | ||
579 | .name = "pwm1_ck", | ||
580 | .parent = &osc_32KHz, | ||
581 | .flags = NEEDS_INITIALIZATION, | ||
582 | .round_rate = &on_off_round_rate, | ||
583 | .set_rate = &on_off_set_rate, | ||
584 | .enable_shift = 0, | ||
585 | .enable_reg = PWMCLKCTRL_REG, | ||
586 | }; | ||
587 | |||
588 | static struct clk pwm2_ck = { | ||
589 | .name = "pwm2_ck", | ||
590 | .parent = &osc_32KHz, | ||
591 | .flags = NEEDS_INITIALIZATION, | ||
592 | .round_rate = &on_off_round_rate, | ||
593 | .set_rate = &on_off_set_rate, | ||
594 | .enable_shift = 2, | ||
595 | .enable_reg = PWMCLKCTRL_REG, | ||
596 | }; | ||
597 | |||
598 | static struct clk jpeg_ck = { | ||
599 | .name = "jpeg_ck", | ||
600 | .parent = &hclk_ck, | ||
601 | .flags = NEEDS_INITIALIZATION, | ||
602 | .round_rate = &on_off_round_rate, | ||
603 | .set_rate = &on_off_set_rate, | ||
604 | .enable_shift = 0, | ||
605 | .enable_reg = JPEGCLKCTRL_REG, | ||
606 | }; | ||
607 | |||
608 | static struct clk ms_ck = { | ||
609 | .name = "ms_ck", | ||
610 | .parent = &ck_pll4, | ||
611 | .flags = NEEDS_INITIALIZATION, | ||
612 | .round_rate = &on_off_round_rate, | ||
613 | .set_rate = &on_off_set_rate, | ||
614 | .enable_shift = 5, | ||
615 | .enable_reg = MSCTRL_REG, | ||
616 | }; | ||
617 | |||
618 | static struct clk dum_ck = { | ||
619 | .name = "dum_ck", | ||
620 | .parent = &hclk_ck, | ||
621 | .flags = NEEDS_INITIALIZATION, | ||
622 | .round_rate = &on_off_round_rate, | ||
623 | .set_rate = &on_off_set_rate, | ||
624 | .enable_shift = 0, | ||
625 | .enable_reg = DUMCLKCTRL_REG, | ||
626 | }; | ||
627 | |||
628 | static struct clk flash_ck = { | ||
629 | .name = "flash_ck", | ||
630 | .parent = &hclk_ck, | ||
631 | .round_rate = &on_off_round_rate, | ||
632 | .set_rate = &on_off_set_rate, | ||
633 | .enable_shift = 1, /* Only MLC clock supported */ | ||
634 | .enable_reg = FLASHCLKCTRL_REG, | ||
635 | }; | ||
636 | |||
637 | static struct clk i2c0_ck = { | ||
638 | .name = "i2c0_ck", | ||
639 | .parent = &per_ck, | ||
640 | .flags = NEEDS_INITIALIZATION, | ||
641 | .round_rate = &on_off_round_rate, | ||
642 | .set_rate = &on_off_set_rate, | ||
643 | .enable_shift = 0, | ||
644 | .enable_reg = I2CCLKCTRL_REG, | ||
645 | }; | ||
646 | |||
647 | static struct clk i2c1_ck = { | ||
648 | .name = "i2c1_ck", | ||
649 | .parent = &per_ck, | ||
650 | .flags = NEEDS_INITIALIZATION, | ||
651 | .round_rate = &on_off_round_rate, | ||
652 | .set_rate = &on_off_set_rate, | ||
653 | .enable_shift = 1, | ||
654 | .enable_reg = I2CCLKCTRL_REG, | ||
655 | }; | ||
656 | |||
657 | static struct clk i2c2_ck = { | ||
658 | .name = "i2c2_ck", | ||
659 | .parent = &per_ck, | ||
660 | .flags = NEEDS_INITIALIZATION, | ||
661 | .round_rate = &on_off_round_rate, | ||
662 | .set_rate = &on_off_set_rate, | ||
663 | .enable_shift = 2, | ||
664 | .enable_reg = USB_OTG_CLKCTRL_REG, | ||
665 | }; | ||
666 | |||
667 | static struct clk spi0_ck = { | ||
668 | .name = "spi0_ck", | ||
669 | .parent = &hclk_ck, | ||
670 | .flags = NEEDS_INITIALIZATION, | ||
671 | .round_rate = &on_off_round_rate, | ||
672 | .set_rate = &on_off_set_rate, | ||
673 | .enable_shift = 0, | ||
674 | .enable_reg = SPICTRL_REG, | ||
675 | }; | ||
676 | |||
677 | static struct clk spi1_ck = { | ||
678 | .name = "spi1_ck", | ||
679 | .parent = &hclk_ck, | ||
680 | .flags = NEEDS_INITIALIZATION, | ||
681 | .round_rate = &on_off_round_rate, | ||
682 | .set_rate = &on_off_set_rate, | ||
683 | .enable_shift = 4, | ||
684 | .enable_reg = SPICTRL_REG, | ||
685 | }; | ||
686 | |||
687 | static struct clk dma_ck = { | ||
688 | .name = "dma_ck", | ||
689 | .parent = &hclk_ck, | ||
690 | .round_rate = &on_off_round_rate, | ||
691 | .set_rate = &on_off_set_rate, | ||
692 | .enable_shift = 0, | ||
693 | .enable_reg = DMACLKCTRL_REG, | ||
694 | }; | ||
695 | |||
696 | static struct clk uart3_ck = { | ||
697 | .name = "uart3_ck", | ||
698 | .parent = &per_ck, | ||
699 | .flags = NEEDS_INITIALIZATION, | ||
700 | .round_rate = &on_off_round_rate, | ||
701 | .set_rate = &on_off_set_rate, | ||
702 | .rate = 1, | ||
703 | .enable_shift = 0, | ||
704 | .enable_reg = UARTCLKCTRL_REG, | ||
705 | }; | ||
706 | |||
707 | static struct clk uart4_ck = { | ||
708 | .name = "uart4_ck", | ||
709 | .parent = &per_ck, | ||
710 | .flags = NEEDS_INITIALIZATION, | ||
711 | .round_rate = &on_off_round_rate, | ||
712 | .set_rate = &on_off_set_rate, | ||
713 | .enable_shift = 1, | ||
714 | .enable_reg = UARTCLKCTRL_REG, | ||
715 | }; | ||
716 | |||
717 | static struct clk uart5_ck = { | ||
718 | .name = "uart5_ck", | ||
719 | .parent = &per_ck, | ||
720 | .flags = NEEDS_INITIALIZATION, | ||
721 | .round_rate = &on_off_round_rate, | ||
722 | .set_rate = &on_off_set_rate, | ||
723 | .rate = 1, | ||
724 | .enable_shift = 2, | ||
725 | .enable_reg = UARTCLKCTRL_REG, | ||
726 | }; | ||
727 | |||
728 | static struct clk uart6_ck = { | ||
729 | .name = "uart6_ck", | ||
730 | .parent = &per_ck, | ||
731 | .flags = NEEDS_INITIALIZATION, | ||
732 | .round_rate = &on_off_round_rate, | ||
733 | .set_rate = &on_off_set_rate, | ||
734 | .enable_shift = 3, | ||
735 | .enable_reg = UARTCLKCTRL_REG, | ||
736 | }; | ||
737 | |||
738 | /* These clocks are visible outside this module | ||
739 | * and can be initialized | ||
740 | */ | ||
741 | static struct clk *onchip_clks[] = { | ||
742 | &ck_13MHz, | ||
743 | &ck_pll1, | ||
744 | &ck_pll4, | ||
745 | &ck_pll5, | ||
746 | &ck_pll3, | ||
747 | &vfp9_ck, | ||
748 | &m2hclk_ck, | ||
749 | &hclk_ck, | ||
750 | &dma_ck, | ||
751 | &flash_ck, | ||
752 | &dum_ck, | ||
753 | &keyscan_ck, | ||
754 | &pwm1_ck, | ||
755 | &pwm2_ck, | ||
756 | &jpeg_ck, | ||
757 | &ms_ck, | ||
758 | &touch_ck, | ||
759 | &i2c0_ck, | ||
760 | &i2c1_ck, | ||
761 | &i2c2_ck, | ||
762 | &spi0_ck, | ||
763 | &spi1_ck, | ||
764 | &uart3_ck, | ||
765 | &uart4_ck, | ||
766 | &uart5_ck, | ||
767 | &uart6_ck, | ||
768 | }; | ||
769 | |||
770 | static int local_set_rate(struct clk *clk, u32 rate) | ||
771 | { | ||
772 | int ret = -EINVAL; | ||
773 | if (clk->set_rate) { | ||
774 | |||
775 | if (clk->user_rate == clk->rate && clk->parent->rate) { | ||
776 | /* if clock enabled or rate not set */ | ||
777 | clk->user_rate = clk->round_rate(clk, rate); | ||
778 | ret = clk->set_rate(clk, clk->user_rate); | ||
779 | } else | ||
780 | clk->user_rate = clk->round_rate(clk, rate); | ||
781 | ret = 0; | ||
782 | } | ||
783 | return ret; | ||
784 | } | ||
785 | |||
786 | int clk_set_rate(struct clk *clk, unsigned long rate) | ||
787 | { | ||
788 | int ret = -EINVAL; | ||
789 | |||
790 | if (clk->flags & FIXED_RATE) | ||
791 | goto out; | ||
792 | |||
793 | clock_lock(); | ||
794 | if ((clk->flags & PARENT_SET_RATE) && clk->parent) { | ||
795 | |||
796 | clk->user_rate = clk->round_rate(clk, rate); | ||
797 | /* parent clock needs to be refreshed | ||
798 | for the setting to take effect */ | ||
799 | } else { | ||
800 | ret = local_set_rate(clk, rate); | ||
801 | } | ||
802 | ret = 0; | ||
803 | clock_unlock(); | ||
804 | |||
805 | out: | ||
806 | return ret; | ||
807 | } | ||
808 | |||
809 | EXPORT_SYMBOL(clk_set_rate); | ||
810 | |||
811 | struct clk *clk_get(struct device *dev, const char *id) | ||
812 | { | ||
813 | struct clk *clk = ERR_PTR(-ENOENT); | ||
814 | struct clk **clkp; | ||
815 | |||
816 | clock_lock(); | ||
817 | for (clkp = onchip_clks; clkp < onchip_clks + ARRAY_SIZE(onchip_clks); | ||
818 | clkp++) { | ||
819 | if (strcmp(id, (*clkp)->name) == 0 | ||
820 | && try_module_get((*clkp)->owner)) { | ||
821 | clk = (*clkp); | ||
822 | break; | ||
823 | } | ||
824 | } | ||
825 | clock_unlock(); | ||
826 | |||
827 | return clk; | ||
828 | } | ||
829 | EXPORT_SYMBOL(clk_get); | ||
830 | |||
831 | void clk_put(struct clk *clk) | ||
832 | { | ||
833 | clock_lock(); | ||
834 | if (clk && !IS_ERR(clk)) | ||
835 | module_put(clk->owner); | ||
836 | clock_unlock(); | ||
837 | } | ||
838 | EXPORT_SYMBOL(clk_put); | ||
839 | |||
840 | unsigned long clk_get_rate(struct clk *clk) | ||
841 | { | ||
842 | unsigned long ret; | ||
843 | clock_lock(); | ||
844 | ret = clk->rate; | ||
845 | clock_unlock(); | ||
846 | return ret; | ||
847 | } | ||
848 | EXPORT_SYMBOL(clk_get_rate); | ||
849 | |||
850 | static int local_clk_enable(struct clk *clk) | ||
851 | { | ||
852 | int ret = 0; | ||
853 | |||
854 | if (!(clk->flags & FIXED_RATE) && !clk->rate && clk->set_rate | ||
855 | && clk->user_rate) | ||
856 | ret = clk->set_rate(clk, clk->user_rate); | ||
857 | return ret; | ||
858 | } | ||
859 | |||
860 | static void local_clk_disable(struct clk *clk) | ||
861 | { | ||
862 | if (!(clk->flags & FIXED_RATE) && clk->rate && clk->set_rate) | ||
863 | clk->set_rate(clk, 0); | ||
864 | } | ||
865 | |||
866 | int clk_enable(struct clk *clk) | ||
867 | { | ||
868 | int ret = 0; | ||
869 | |||
870 | clock_lock(); | ||
871 | ret = local_clk_enable(clk); | ||
872 | clock_unlock(); | ||
873 | return ret; | ||
874 | } | ||
875 | |||
876 | EXPORT_SYMBOL(clk_enable); | ||
877 | |||
878 | void clk_disable(struct clk *clk) | ||
879 | { | ||
880 | clock_lock(); | ||
881 | local_clk_disable(clk); | ||
882 | clock_unlock(); | ||
883 | } | ||
884 | |||
885 | EXPORT_SYMBOL(clk_disable); | ||
886 | |||
887 | static void local_clk_unuse(struct clk *clk) | ||
888 | { | ||
889 | if (clk->usecount > 0 && !(--clk->usecount)) { | ||
890 | local_clk_disable(clk); | ||
891 | if (clk->parent) | ||
892 | local_clk_unuse(clk->parent); | ||
893 | } | ||
894 | } | ||
895 | |||
896 | static int local_clk_use(struct clk *clk) | ||
897 | { | ||
898 | int ret = 0; | ||
899 | if (clk->usecount++ == 0) { | ||
900 | if (clk->parent) | ||
901 | ret = local_clk_use(clk->parent); | ||
902 | |||
903 | if (ret != 0) { | ||
904 | clk->usecount--; | ||
905 | goto out; | ||
906 | } | ||
907 | |||
908 | ret = local_clk_enable(clk); | ||
909 | |||
910 | if (ret != 0 && clk->parent) { | ||
911 | local_clk_unuse(clk->parent); | ||
912 | clk->usecount--; | ||
913 | } | ||
914 | } | ||
915 | out: | ||
916 | return ret; | ||
917 | } | ||
918 | |||
919 | /* The main purpose of clk_use ans clk_unuse functions | ||
920 | * is to control switching 13MHz oscillator and PLL1 (13'MHz), | ||
921 | * so that they are disabled whenever none of PLL2-5 is using them. | ||
922 | * Although in theory these functions should work with any clock, | ||
923 | * please use them only on PLL2 - PLL5 to avoid confusion. | ||
924 | */ | ||
925 | int clk_use(struct clk *clk) | ||
926 | { | ||
927 | int ret = 0; | ||
928 | |||
929 | clock_lock(); | ||
930 | ret = local_clk_use(clk); | ||
931 | clock_unlock(); | ||
932 | return ret; | ||
933 | } | ||
934 | EXPORT_SYMBOL(clk_use); | ||
935 | |||
936 | void clk_unuse(struct clk *clk) | ||
937 | { | ||
938 | |||
939 | clock_lock(); | ||
940 | local_clk_unuse(clk); | ||
941 | clock_unlock(); | ||
942 | } | ||
943 | |||
944 | EXPORT_SYMBOL(clk_unuse); | ||
945 | |||
946 | long clk_round_rate(struct clk *clk, unsigned long rate) | ||
947 | { | ||
948 | long ret; | ||
949 | clock_lock(); | ||
950 | if (clk->round_rate) | ||
951 | ret = clk->round_rate(clk, rate); | ||
952 | else | ||
953 | ret = clk->rate; | ||
954 | clock_unlock(); | ||
955 | return ret; | ||
956 | } | ||
957 | |||
958 | EXPORT_SYMBOL(clk_round_rate); | ||
959 | |||
960 | int clk_set_parent(struct clk *clk, struct clk *parent) | ||
961 | { | ||
962 | int ret = -ENODEV; | ||
963 | if (!clk->set_parent) | ||
964 | goto out; | ||
965 | |||
966 | clock_lock(); | ||
967 | ret = clk->set_parent(clk, parent); | ||
968 | if (!ret) | ||
969 | clk->parent = parent; | ||
970 | clock_unlock(); | ||
971 | |||
972 | out: | ||
973 | return ret; | ||
974 | } | ||
975 | |||
976 | EXPORT_SYMBOL(clk_set_parent); | ||
977 | |||
978 | static int __init clk_init(void) | ||
979 | { | ||
980 | struct clk **clkp; | ||
981 | |||
982 | /* Disable autoclocking, as it doesn't seem to work */ | ||
983 | __raw_writel(0xff, AUTOCLK_CTRL); | ||
984 | |||
985 | for (clkp = onchip_clks; clkp < onchip_clks + ARRAY_SIZE(onchip_clks); | ||
986 | clkp++) { | ||
987 | if (((*clkp)->flags & NEEDS_INITIALIZATION) | ||
988 | && ((*clkp)->set_rate)) { | ||
989 | (*clkp)->user_rate = (*clkp)->rate; | ||
990 | local_set_rate((*clkp), (*clkp)->user_rate); | ||
991 | if ((*clkp)->set_parent) | ||
992 | (*clkp)->set_parent((*clkp), (*clkp)->parent); | ||
993 | } | ||
994 | pr_debug("%s: clock %s, rate %ld\n", | ||
995 | __FUNCTION__, (*clkp)->name, (*clkp)->rate); | ||
996 | } | ||
997 | |||
998 | clk_use(&ck_pll4); | ||
999 | |||
1000 | /* if ck_13MHz is not used, disable it. */ | ||
1001 | if (ck_13MHz.usecount == 0) | ||
1002 | local_clk_disable(&ck_13MHz); | ||
1003 | |||
1004 | /* Disable autoclocking */ | ||
1005 | __raw_writeb(0xff, AUTOCLK_CTRL); | ||
1006 | |||
1007 | return 0; | ||
1008 | } | ||
1009 | |||
1010 | arch_initcall(clk_init); | ||
diff --git a/arch/arm/mach-pnx4008/clock.h b/arch/arm/mach-pnx4008/clock.h new file mode 100644 index 000000000000..cd58f372cfd0 --- /dev/null +++ b/arch/arm/mach-pnx4008/clock.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/clock.h | ||
3 | * | ||
4 | * Clock control driver for PNX4008 - internal header file | ||
5 | * | ||
6 | * Author: Vitaly Wool <source@mvista.com> | ||
7 | * | ||
8 | * 2006 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PNX4008_CLOCK_H__ | ||
14 | #define __ARCH_ARM_PNX4008_CLOCK_H__ | ||
15 | |||
16 | struct clk { | ||
17 | struct list_head node; | ||
18 | struct module *owner; | ||
19 | const char *name; | ||
20 | struct clk *parent; | ||
21 | struct clk *propagate_next; | ||
22 | u32 rate; | ||
23 | u32 user_rate; | ||
24 | s8 usecount; | ||
25 | u32 flags; | ||
26 | u32 scale_reg; | ||
27 | u8 enable_shift; | ||
28 | u32 enable_reg; | ||
29 | u8 enable_shift1; | ||
30 | u32 enable_reg1; | ||
31 | u32 parent_switch_reg; | ||
32 | u32(*round_rate) (struct clk *, u32); | ||
33 | int (*set_rate) (struct clk *, u32); | ||
34 | int (*set_parent) (struct clk * clk, struct clk * parent); | ||
35 | }; | ||
36 | |||
37 | /* Flags */ | ||
38 | #define RATE_PROPAGATES (1<<0) | ||
39 | #define NEEDS_INITIALIZATION (1<<1) | ||
40 | #define PARENT_SET_RATE (1<<2) | ||
41 | #define FIXED_RATE (1<<3) | ||
42 | |||
43 | #endif | ||
diff --git a/arch/arm/mach-pnx4008/core.c b/arch/arm/mach-pnx4008/core.c new file mode 100644 index 000000000000..ba91daad64fb --- /dev/null +++ b/arch/arm/mach-pnx4008/core.c | |||
@@ -0,0 +1,207 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/core.c | ||
3 | * | ||
4 | * PNX4008 core startup code | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev, | ||
7 | * Grigory Tolstolytkin, Dmitry Pervushin <source@mvista.com> | ||
8 | * | ||
9 | * Based on reference code received from Philips: | ||
10 | * Copyright (C) 2003 Philips Semiconductors | ||
11 | * | ||
12 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
13 | * the terms of the GNU General Public License version 2. This program | ||
14 | * is licensed "as is" without any warranty of any kind, whether express | ||
15 | * or implied. | ||
16 | */ | ||
17 | |||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/types.h> | ||
20 | #include <linux/mm.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/list.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/serial_8250.h> | ||
26 | #include <linux/device.h> | ||
27 | #include <linux/spi/spi.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/irq.h> | ||
31 | #include <asm/io.h> | ||
32 | #include <asm/setup.h> | ||
33 | #include <asm/mach-types.h> | ||
34 | #include <asm/pgtable.h> | ||
35 | #include <asm/page.h> | ||
36 | #include <asm/system.h> | ||
37 | |||
38 | #include <asm/mach/arch.h> | ||
39 | #include <asm/mach/irq.h> | ||
40 | #include <asm/mach/map.h> | ||
41 | #include <asm/mach/time.h> | ||
42 | |||
43 | #include <asm/arch/irq.h> | ||
44 | #include <asm/arch/clock.h> | ||
45 | #include <asm/arch/dma.h> | ||
46 | |||
47 | struct resource spipnx_0_resources[] = { | ||
48 | { | ||
49 | .start = PNX4008_SPI1_BASE, | ||
50 | .end = PNX4008_SPI1_BASE + SZ_4K, | ||
51 | .flags = IORESOURCE_MEM, | ||
52 | }, { | ||
53 | .start = PER_SPI1_REC_XMIT, | ||
54 | .flags = IORESOURCE_DMA, | ||
55 | }, { | ||
56 | .start = SPI1_INT, | ||
57 | .flags = IORESOURCE_IRQ, | ||
58 | }, { | ||
59 | .flags = 0, | ||
60 | }, | ||
61 | }; | ||
62 | |||
63 | struct resource spipnx_1_resources[] = { | ||
64 | { | ||
65 | .start = PNX4008_SPI2_BASE, | ||
66 | .end = PNX4008_SPI2_BASE + SZ_4K, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, { | ||
69 | .start = PER_SPI2_REC_XMIT, | ||
70 | .flags = IORESOURCE_DMA, | ||
71 | }, { | ||
72 | .start = SPI2_INT, | ||
73 | .flags = IORESOURCE_IRQ, | ||
74 | }, { | ||
75 | .flags = 0, | ||
76 | } | ||
77 | }; | ||
78 | |||
79 | static struct spi_board_info spi_board_info[] __initdata = { | ||
80 | { | ||
81 | .modalias = "m25p80", | ||
82 | .max_speed_hz = 1000000, | ||
83 | .bus_num = 1, | ||
84 | .chip_select = 0, | ||
85 | }, | ||
86 | }; | ||
87 | |||
88 | static struct platform_device spipnx_1 = { | ||
89 | .name = "spipnx", | ||
90 | .id = 1, | ||
91 | .num_resources = ARRAY_SIZE(spipnx_0_resources), | ||
92 | .resource = spipnx_0_resources, | ||
93 | .dev = { | ||
94 | .coherent_dma_mask = 0xFFFFFFFF, | ||
95 | }, | ||
96 | }; | ||
97 | |||
98 | static struct platform_device spipnx_2 = { | ||
99 | .name = "spipnx", | ||
100 | .id = 2, | ||
101 | .num_resources = ARRAY_SIZE(spipnx_1_resources), | ||
102 | .resource = spipnx_1_resources, | ||
103 | .dev = { | ||
104 | .coherent_dma_mask = 0xFFFFFFFF, | ||
105 | }, | ||
106 | }; | ||
107 | |||
108 | static struct plat_serial8250_port platform_serial_ports[] = { | ||
109 | { | ||
110 | .membase = (void *)__iomem(IO_ADDRESS(PNX4008_UART5_BASE)), | ||
111 | .mapbase = (unsigned long)PNX4008_UART5_BASE, | ||
112 | .irq = IIR5_INT, | ||
113 | .uartclk = PNX4008_UART_CLK, | ||
114 | .regshift = 2, | ||
115 | .iotype = UPIO_MEM, | ||
116 | .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART | UPF_SKIP_TEST, | ||
117 | }, | ||
118 | { | ||
119 | .membase = (void *)__iomem(IO_ADDRESS(PNX4008_UART3_BASE)), | ||
120 | .mapbase = (unsigned long)PNX4008_UART3_BASE, | ||
121 | .irq = IIR3_INT, | ||
122 | .uartclk = PNX4008_UART_CLK, | ||
123 | .regshift = 2, | ||
124 | .iotype = UPIO_MEM, | ||
125 | .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART | UPF_SKIP_TEST, | ||
126 | }, | ||
127 | {} | ||
128 | }; | ||
129 | |||
130 | static struct platform_device serial_device = { | ||
131 | .name = "serial8250", | ||
132 | .id = PLAT8250_DEV_PLATFORM, | ||
133 | .dev = { | ||
134 | .platform_data = &platform_serial_ports, | ||
135 | }, | ||
136 | }; | ||
137 | |||
138 | static struct platform_device *devices[] __initdata = { | ||
139 | &spipnx_1, | ||
140 | &spipnx_2, | ||
141 | &serial_device, | ||
142 | }; | ||
143 | |||
144 | |||
145 | extern void pnx4008_uart_init(void); | ||
146 | |||
147 | static void __init pnx4008_init(void) | ||
148 | { | ||
149 | /*disable all START interrupt sources, | ||
150 | and clear all START interrupt flags */ | ||
151 | __raw_writel(0, START_INT_ER_REG(SE_PIN_BASE_INT)); | ||
152 | __raw_writel(0, START_INT_ER_REG(SE_INT_BASE_INT)); | ||
153 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_PIN_BASE_INT)); | ||
154 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_INT_BASE_INT)); | ||
155 | |||
156 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
157 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | ||
158 | /* Switch on the UART clocks */ | ||
159 | pnx4008_uart_init(); | ||
160 | } | ||
161 | |||
162 | static struct map_desc pnx4008_io_desc[] __initdata = { | ||
163 | { | ||
164 | .virtual = IO_ADDRESS(PNX4008_IRAM_BASE), | ||
165 | .pfn = __phys_to_pfn(PNX4008_IRAM_BASE), | ||
166 | .length = SZ_64K, | ||
167 | .type = MT_DEVICE, | ||
168 | }, { | ||
169 | .virtual = IO_ADDRESS(PNX4008_NDF_FLASH_BASE), | ||
170 | .pfn = __phys_to_pfn(PNX4008_NDF_FLASH_BASE), | ||
171 | .length = SZ_1M - SZ_128K, | ||
172 | .type = MT_DEVICE, | ||
173 | }, { | ||
174 | .virtual = IO_ADDRESS(PNX4008_JPEG_CONFIG_BASE), | ||
175 | .pfn = __phys_to_pfn(PNX4008_JPEG_CONFIG_BASE), | ||
176 | .length = SZ_128K * 3, | ||
177 | .type = MT_DEVICE, | ||
178 | }, { | ||
179 | .virtual = IO_ADDRESS(PNX4008_DMA_CONFIG_BASE), | ||
180 | .pfn = __phys_to_pfn(PNX4008_DMA_CONFIG_BASE), | ||
181 | .length = SZ_1M, | ||
182 | .type = MT_DEVICE, | ||
183 | }, { | ||
184 | .virtual = IO_ADDRESS(PNX4008_AHB2FAB_BASE), | ||
185 | .pfn = __phys_to_pfn(PNX4008_AHB2FAB_BASE), | ||
186 | .length = SZ_1M, | ||
187 | .type = MT_DEVICE, | ||
188 | }, | ||
189 | }; | ||
190 | |||
191 | void __init pnx4008_map_io(void) | ||
192 | { | ||
193 | iotable_init(pnx4008_io_desc, ARRAY_SIZE(pnx4008_io_desc)); | ||
194 | } | ||
195 | |||
196 | extern struct sys_timer pnx4008_timer; | ||
197 | |||
198 | MACHINE_START(PNX4008, "Philips PNX4008") | ||
199 | /* Maintainer: MontaVista Software Inc. */ | ||
200 | .phys_io = 0x40090000, | ||
201 | .io_pg_offst = (0xf4090000 >> 18) & 0xfffc, | ||
202 | .boot_params = 0x80000100, | ||
203 | .map_io = pnx4008_map_io, | ||
204 | .init_irq = pnx4008_init_irq, | ||
205 | .init_machine = pnx4008_init, | ||
206 | .timer = &pnx4008_timer, | ||
207 | MACHINE_END | ||
diff --git a/arch/arm/mach-pnx4008/dma.c b/arch/arm/mach-pnx4008/dma.c new file mode 100644 index 000000000000..981aa9dcdede --- /dev/null +++ b/arch/arm/mach-pnx4008/dma.c | |||
@@ -0,0 +1,1109 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/dma.c | ||
3 | * | ||
4 | * PNX4008 DMA registration and IRQ dispatching | ||
5 | * | ||
6 | * Author: Vitaly Wool | ||
7 | * Copyright: MontaVista Software Inc. (c) 2005 | ||
8 | * | ||
9 | * Based on the code from Nicolas Pitre | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/module.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/errno.h> | ||
21 | #include <linux/err.h> | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/clk.h> | ||
24 | |||
25 | #include <asm/system.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/dma.h> | ||
29 | #include <asm/dma-mapping.h> | ||
30 | #include <asm/io.h> | ||
31 | #include <asm/mach/dma.h> | ||
32 | #include <asm/arch/clock.h> | ||
33 | |||
34 | static struct dma_channel { | ||
35 | char *name; | ||
36 | void (*irq_handler) (int, int, void *, struct pt_regs *); | ||
37 | void *data; | ||
38 | struct pnx4008_dma_ll *ll; | ||
39 | u32 ll_dma; | ||
40 | void *target_addr; | ||
41 | int target_id; | ||
42 | } dma_channels[MAX_DMA_CHANNELS]; | ||
43 | |||
44 | static struct ll_pool { | ||
45 | void *vaddr; | ||
46 | void *cur; | ||
47 | dma_addr_t dma_addr; | ||
48 | int count; | ||
49 | } ll_pool; | ||
50 | |||
51 | static spinlock_t ll_lock = SPIN_LOCK_UNLOCKED; | ||
52 | |||
53 | struct pnx4008_dma_ll *pnx4008_alloc_ll_entry(dma_addr_t * ll_dma) | ||
54 | { | ||
55 | struct pnx4008_dma_ll *ll = NULL; | ||
56 | unsigned long flags; | ||
57 | |||
58 | spin_lock_irqsave(&ll_lock, flags); | ||
59 | if (ll_pool.count > 4) { /* can give one more */ | ||
60 | ll = *(struct pnx4008_dma_ll **) ll_pool.cur; | ||
61 | *ll_dma = ll_pool.dma_addr + ((void *)ll - ll_pool.vaddr); | ||
62 | *(void **)ll_pool.cur = **(void ***)ll_pool.cur; | ||
63 | memset(ll, 0, sizeof(*ll)); | ||
64 | ll_pool.count--; | ||
65 | } | ||
66 | spin_unlock_irqrestore(&ll_lock, flags); | ||
67 | |||
68 | return ll; | ||
69 | } | ||
70 | |||
71 | EXPORT_SYMBOL_GPL(pnx4008_alloc_ll_entry); | ||
72 | |||
73 | void pnx4008_free_ll_entry(struct pnx4008_dma_ll * ll, dma_addr_t ll_dma) | ||
74 | { | ||
75 | unsigned long flags; | ||
76 | |||
77 | if (ll) { | ||
78 | if ((unsigned long)((long)ll - (long)ll_pool.vaddr) > 0x4000) { | ||
79 | printk(KERN_ERR "Trying to free entry not allocated by DMA\n"); | ||
80 | BUG(); | ||
81 | } | ||
82 | |||
83 | if (ll->flags & DMA_BUFFER_ALLOCATED) | ||
84 | ll->free(ll->alloc_data); | ||
85 | |||
86 | spin_lock_irqsave(&ll_lock, flags); | ||
87 | *(long *)ll = *(long *)ll_pool.cur; | ||
88 | *(long *)ll_pool.cur = (long)ll; | ||
89 | ll_pool.count++; | ||
90 | spin_unlock_irqrestore(&ll_lock, flags); | ||
91 | } | ||
92 | } | ||
93 | |||
94 | EXPORT_SYMBOL_GPL(pnx4008_free_ll_entry); | ||
95 | |||
96 | void pnx4008_free_ll(u32 ll_dma, struct pnx4008_dma_ll * ll) | ||
97 | { | ||
98 | struct pnx4008_dma_ll *ptr; | ||
99 | u32 dma; | ||
100 | |||
101 | while (ll) { | ||
102 | dma = ll->next_dma; | ||
103 | ptr = ll->next; | ||
104 | pnx4008_free_ll_entry(ll, ll_dma); | ||
105 | |||
106 | ll_dma = dma; | ||
107 | ll = ptr; | ||
108 | } | ||
109 | } | ||
110 | |||
111 | EXPORT_SYMBOL_GPL(pnx4008_free_ll); | ||
112 | |||
113 | static int dma_channels_requested = 0; | ||
114 | |||
115 | static inline void dma_increment_usage(void) | ||
116 | { | ||
117 | if (!dma_channels_requested++) { | ||
118 | struct clk *clk = clk_get(0, "dma_ck"); | ||
119 | if (!IS_ERR(clk)) { | ||
120 | clk_set_rate(clk, 1); | ||
121 | clk_put(clk); | ||
122 | } | ||
123 | pnx4008_config_dma(-1, -1, 1); | ||
124 | } | ||
125 | } | ||
126 | static inline void dma_decrement_usage(void) | ||
127 | { | ||
128 | if (!--dma_channels_requested) { | ||
129 | struct clk *clk = clk_get(0, "dma_ck"); | ||
130 | if (!IS_ERR(clk)) { | ||
131 | clk_set_rate(clk, 0); | ||
132 | clk_put(clk); | ||
133 | } | ||
134 | pnx4008_config_dma(-1, -1, 0); | ||
135 | |||
136 | } | ||
137 | } | ||
138 | |||
139 | static spinlock_t dma_lock = SPIN_LOCK_UNLOCKED; | ||
140 | |||
141 | static inline void pnx4008_dma_lock(void) | ||
142 | { | ||
143 | spin_lock_irq(&dma_lock); | ||
144 | } | ||
145 | |||
146 | static inline void pnx4008_dma_unlock(void) | ||
147 | { | ||
148 | spin_unlock_irq(&dma_lock); | ||
149 | } | ||
150 | |||
151 | #define VALID_CHANNEL(c) (((c) >= 0) && ((c) < MAX_DMA_CHANNELS)) | ||
152 | |||
153 | int pnx4008_request_channel(char *name, int ch, | ||
154 | void (*irq_handler) (int, int, void *, | ||
155 | struct pt_regs *), void *data) | ||
156 | { | ||
157 | int i, found = 0; | ||
158 | |||
159 | /* basic sanity checks */ | ||
160 | if (!name || (ch != -1 && !VALID_CHANNEL(ch))) | ||
161 | return -EINVAL; | ||
162 | |||
163 | pnx4008_dma_lock(); | ||
164 | |||
165 | /* try grabbing a DMA channel with the requested priority */ | ||
166 | for (i = MAX_DMA_CHANNELS - 1; i >= 0; i--) { | ||
167 | if (!dma_channels[i].name && (ch == -1 || ch == i)) { | ||
168 | found = 1; | ||
169 | break; | ||
170 | } | ||
171 | } | ||
172 | |||
173 | if (found) { | ||
174 | dma_increment_usage(); | ||
175 | dma_channels[i].name = name; | ||
176 | dma_channels[i].irq_handler = irq_handler; | ||
177 | dma_channels[i].data = data; | ||
178 | dma_channels[i].ll = NULL; | ||
179 | dma_channels[i].ll_dma = 0; | ||
180 | } else { | ||
181 | printk(KERN_WARNING "No more available DMA channels for %s\n", | ||
182 | name); | ||
183 | i = -ENODEV; | ||
184 | } | ||
185 | |||
186 | pnx4008_dma_unlock(); | ||
187 | return i; | ||
188 | } | ||
189 | |||
190 | EXPORT_SYMBOL_GPL(pnx4008_request_channel); | ||
191 | |||
192 | void pnx4008_free_channel(int ch) | ||
193 | { | ||
194 | if (!dma_channels[ch].name) { | ||
195 | printk(KERN_CRIT | ||
196 | "%s: trying to free channel %d which is already freed\n", | ||
197 | __FUNCTION__, ch); | ||
198 | return; | ||
199 | } | ||
200 | |||
201 | pnx4008_dma_lock(); | ||
202 | pnx4008_free_ll(dma_channels[ch].ll_dma, dma_channels[ch].ll); | ||
203 | dma_channels[ch].ll = NULL; | ||
204 | dma_decrement_usage(); | ||
205 | |||
206 | dma_channels[ch].name = NULL; | ||
207 | pnx4008_dma_unlock(); | ||
208 | } | ||
209 | |||
210 | EXPORT_SYMBOL_GPL(pnx4008_free_channel); | ||
211 | |||
212 | int pnx4008_config_dma(int ahb_m1_be, int ahb_m2_be, int enable) | ||
213 | { | ||
214 | unsigned long dma_cfg = __raw_readl(DMAC_CONFIG); | ||
215 | |||
216 | switch (ahb_m1_be) { | ||
217 | case 0: | ||
218 | dma_cfg &= ~(1 << 1); | ||
219 | break; | ||
220 | case 1: | ||
221 | dma_cfg |= (1 << 1); | ||
222 | break; | ||
223 | default: | ||
224 | break; | ||
225 | } | ||
226 | |||
227 | switch (ahb_m2_be) { | ||
228 | case 0: | ||
229 | dma_cfg &= ~(1 << 2); | ||
230 | break; | ||
231 | case 1: | ||
232 | dma_cfg |= (1 << 2); | ||
233 | break; | ||
234 | default: | ||
235 | break; | ||
236 | } | ||
237 | |||
238 | switch (enable) { | ||
239 | case 0: | ||
240 | dma_cfg &= ~(1 << 0); | ||
241 | break; | ||
242 | case 1: | ||
243 | dma_cfg |= (1 << 0); | ||
244 | break; | ||
245 | default: | ||
246 | break; | ||
247 | } | ||
248 | |||
249 | pnx4008_dma_lock(); | ||
250 | __raw_writel(dma_cfg, DMAC_CONFIG); | ||
251 | pnx4008_dma_unlock(); | ||
252 | |||
253 | return 0; | ||
254 | } | ||
255 | |||
256 | EXPORT_SYMBOL_GPL(pnx4008_config_dma); | ||
257 | |||
258 | int pnx4008_dma_pack_control(const struct pnx4008_dma_ch_ctrl * ch_ctrl, | ||
259 | unsigned long *ctrl) | ||
260 | { | ||
261 | int i = 0, dbsize, sbsize, err = 0; | ||
262 | |||
263 | if (!ctrl || !ch_ctrl) { | ||
264 | err = -EINVAL; | ||
265 | goto out; | ||
266 | } | ||
267 | |||
268 | *ctrl = 0; | ||
269 | |||
270 | switch (ch_ctrl->tc_mask) { | ||
271 | case 0: | ||
272 | break; | ||
273 | case 1: | ||
274 | *ctrl |= (1 << 31); | ||
275 | break; | ||
276 | |||
277 | default: | ||
278 | err = -EINVAL; | ||
279 | goto out; | ||
280 | } | ||
281 | |||
282 | switch (ch_ctrl->cacheable) { | ||
283 | case 0: | ||
284 | break; | ||
285 | case 1: | ||
286 | *ctrl |= (1 << 30); | ||
287 | break; | ||
288 | |||
289 | default: | ||
290 | err = -EINVAL; | ||
291 | goto out; | ||
292 | } | ||
293 | switch (ch_ctrl->bufferable) { | ||
294 | case 0: | ||
295 | break; | ||
296 | case 1: | ||
297 | *ctrl |= (1 << 29); | ||
298 | break; | ||
299 | |||
300 | default: | ||
301 | err = -EINVAL; | ||
302 | goto out; | ||
303 | } | ||
304 | switch (ch_ctrl->priv_mode) { | ||
305 | case 0: | ||
306 | break; | ||
307 | case 1: | ||
308 | *ctrl |= (1 << 28); | ||
309 | break; | ||
310 | |||
311 | default: | ||
312 | err = -EINVAL; | ||
313 | goto out; | ||
314 | } | ||
315 | switch (ch_ctrl->di) { | ||
316 | case 0: | ||
317 | break; | ||
318 | case 1: | ||
319 | *ctrl |= (1 << 27); | ||
320 | break; | ||
321 | |||
322 | default: | ||
323 | err = -EINVAL; | ||
324 | goto out; | ||
325 | } | ||
326 | switch (ch_ctrl->si) { | ||
327 | case 0: | ||
328 | break; | ||
329 | case 1: | ||
330 | *ctrl |= (1 << 26); | ||
331 | break; | ||
332 | |||
333 | default: | ||
334 | err = -EINVAL; | ||
335 | goto out; | ||
336 | } | ||
337 | switch (ch_ctrl->dest_ahb1) { | ||
338 | case 0: | ||
339 | break; | ||
340 | case 1: | ||
341 | *ctrl |= (1 << 25); | ||
342 | break; | ||
343 | |||
344 | default: | ||
345 | err = -EINVAL; | ||
346 | goto out; | ||
347 | } | ||
348 | switch (ch_ctrl->src_ahb1) { | ||
349 | case 0: | ||
350 | break; | ||
351 | case 1: | ||
352 | *ctrl |= (1 << 24); | ||
353 | break; | ||
354 | |||
355 | default: | ||
356 | err = -EINVAL; | ||
357 | goto out; | ||
358 | } | ||
359 | switch (ch_ctrl->dwidth) { | ||
360 | case WIDTH_BYTE: | ||
361 | *ctrl &= ~(7 << 21); | ||
362 | break; | ||
363 | case WIDTH_HWORD: | ||
364 | *ctrl &= ~(7 << 21); | ||
365 | *ctrl |= (1 << 21); | ||
366 | break; | ||
367 | case WIDTH_WORD: | ||
368 | *ctrl &= ~(7 << 21); | ||
369 | *ctrl |= (2 << 21); | ||
370 | break; | ||
371 | |||
372 | default: | ||
373 | err = -EINVAL; | ||
374 | goto out; | ||
375 | } | ||
376 | switch (ch_ctrl->swidth) { | ||
377 | case WIDTH_BYTE: | ||
378 | *ctrl &= ~(7 << 18); | ||
379 | break; | ||
380 | case WIDTH_HWORD: | ||
381 | *ctrl &= ~(7 << 18); | ||
382 | *ctrl |= (1 << 18); | ||
383 | break; | ||
384 | case WIDTH_WORD: | ||
385 | *ctrl &= ~(7 << 18); | ||
386 | *ctrl |= (2 << 18); | ||
387 | break; | ||
388 | |||
389 | default: | ||
390 | err = -EINVAL; | ||
391 | goto out; | ||
392 | } | ||
393 | dbsize = ch_ctrl->dbsize; | ||
394 | while (!(dbsize & 1)) { | ||
395 | i++; | ||
396 | dbsize >>= 1; | ||
397 | } | ||
398 | if (ch_ctrl->dbsize != 1 || i > 8 || i == 1) { | ||
399 | err = -EINVAL; | ||
400 | goto out; | ||
401 | } else if (i > 1) | ||
402 | i--; | ||
403 | *ctrl &= ~(7 << 15); | ||
404 | *ctrl |= (i << 15); | ||
405 | |||
406 | sbsize = ch_ctrl->sbsize; | ||
407 | while (!(sbsize & 1)) { | ||
408 | i++; | ||
409 | sbsize >>= 1; | ||
410 | } | ||
411 | if (ch_ctrl->sbsize != 1 || i > 8 || i == 1) { | ||
412 | err = -EINVAL; | ||
413 | goto out; | ||
414 | } else if (i > 1) | ||
415 | i--; | ||
416 | *ctrl &= ~(7 << 12); | ||
417 | *ctrl |= (i << 12); | ||
418 | |||
419 | if (ch_ctrl->tr_size > 0x7ff) { | ||
420 | err = -E2BIG; | ||
421 | goto out; | ||
422 | } | ||
423 | *ctrl &= ~0x7ff; | ||
424 | *ctrl |= ch_ctrl->tr_size & 0x7ff; | ||
425 | |||
426 | out: | ||
427 | return err; | ||
428 | } | ||
429 | |||
430 | EXPORT_SYMBOL_GPL(pnx4008_dma_pack_control); | ||
431 | |||
432 | int pnx4008_dma_parse_control(unsigned long ctrl, | ||
433 | struct pnx4008_dma_ch_ctrl * ch_ctrl) | ||
434 | { | ||
435 | int err = 0; | ||
436 | |||
437 | if (!ch_ctrl) { | ||
438 | err = -EINVAL; | ||
439 | goto out; | ||
440 | } | ||
441 | |||
442 | ch_ctrl->tr_size = ctrl & 0x7ff; | ||
443 | ctrl >>= 12; | ||
444 | |||
445 | ch_ctrl->sbsize = 1 << (ctrl & 7); | ||
446 | if (ch_ctrl->sbsize > 1) | ||
447 | ch_ctrl->sbsize <<= 1; | ||
448 | ctrl >>= 3; | ||
449 | |||
450 | ch_ctrl->dbsize = 1 << (ctrl & 7); | ||
451 | if (ch_ctrl->dbsize > 1) | ||
452 | ch_ctrl->dbsize <<= 1; | ||
453 | ctrl >>= 3; | ||
454 | |||
455 | switch (ctrl & 7) { | ||
456 | case 0: | ||
457 | ch_ctrl->swidth = WIDTH_BYTE; | ||
458 | break; | ||
459 | case 1: | ||
460 | ch_ctrl->swidth = WIDTH_HWORD; | ||
461 | break; | ||
462 | case 2: | ||
463 | ch_ctrl->swidth = WIDTH_WORD; | ||
464 | break; | ||
465 | default: | ||
466 | err = -EINVAL; | ||
467 | goto out; | ||
468 | } | ||
469 | ctrl >>= 3; | ||
470 | |||
471 | switch (ctrl & 7) { | ||
472 | case 0: | ||
473 | ch_ctrl->dwidth = WIDTH_BYTE; | ||
474 | break; | ||
475 | case 1: | ||
476 | ch_ctrl->dwidth = WIDTH_HWORD; | ||
477 | break; | ||
478 | case 2: | ||
479 | ch_ctrl->dwidth = WIDTH_WORD; | ||
480 | break; | ||
481 | default: | ||
482 | err = -EINVAL; | ||
483 | goto out; | ||
484 | } | ||
485 | ctrl >>= 3; | ||
486 | |||
487 | ch_ctrl->src_ahb1 = ctrl & 1; | ||
488 | ctrl >>= 1; | ||
489 | |||
490 | ch_ctrl->dest_ahb1 = ctrl & 1; | ||
491 | ctrl >>= 1; | ||
492 | |||
493 | ch_ctrl->si = ctrl & 1; | ||
494 | ctrl >>= 1; | ||
495 | |||
496 | ch_ctrl->di = ctrl & 1; | ||
497 | ctrl >>= 1; | ||
498 | |||
499 | ch_ctrl->priv_mode = ctrl & 1; | ||
500 | ctrl >>= 1; | ||
501 | |||
502 | ch_ctrl->bufferable = ctrl & 1; | ||
503 | ctrl >>= 1; | ||
504 | |||
505 | ch_ctrl->cacheable = ctrl & 1; | ||
506 | ctrl >>= 1; | ||
507 | |||
508 | ch_ctrl->tc_mask = ctrl & 1; | ||
509 | |||
510 | out: | ||
511 | return err; | ||
512 | } | ||
513 | |||
514 | EXPORT_SYMBOL_GPL(pnx4008_dma_parse_control); | ||
515 | |||
516 | int pnx4008_dma_pack_config(const struct pnx4008_dma_ch_config * ch_cfg, | ||
517 | unsigned long *cfg) | ||
518 | { | ||
519 | int err = 0; | ||
520 | |||
521 | if (!cfg || !ch_cfg) { | ||
522 | err = -EINVAL; | ||
523 | goto out; | ||
524 | } | ||
525 | |||
526 | *cfg = 0; | ||
527 | |||
528 | switch (ch_cfg->halt) { | ||
529 | case 0: | ||
530 | break; | ||
531 | case 1: | ||
532 | *cfg |= (1 << 18); | ||
533 | break; | ||
534 | |||
535 | default: | ||
536 | err = -EINVAL; | ||
537 | goto out; | ||
538 | } | ||
539 | switch (ch_cfg->active) { | ||
540 | case 0: | ||
541 | break; | ||
542 | case 1: | ||
543 | *cfg |= (1 << 17); | ||
544 | break; | ||
545 | |||
546 | default: | ||
547 | err = -EINVAL; | ||
548 | goto out; | ||
549 | } | ||
550 | switch (ch_cfg->lock) { | ||
551 | case 0: | ||
552 | break; | ||
553 | case 1: | ||
554 | *cfg |= (1 << 16); | ||
555 | break; | ||
556 | |||
557 | default: | ||
558 | err = -EINVAL; | ||
559 | goto out; | ||
560 | } | ||
561 | switch (ch_cfg->itc) { | ||
562 | case 0: | ||
563 | break; | ||
564 | case 1: | ||
565 | *cfg |= (1 << 15); | ||
566 | break; | ||
567 | |||
568 | default: | ||
569 | err = -EINVAL; | ||
570 | goto out; | ||
571 | } | ||
572 | switch (ch_cfg->ie) { | ||
573 | case 0: | ||
574 | break; | ||
575 | case 1: | ||
576 | *cfg |= (1 << 14); | ||
577 | break; | ||
578 | |||
579 | default: | ||
580 | err = -EINVAL; | ||
581 | goto out; | ||
582 | } | ||
583 | switch (ch_cfg->flow_cntrl) { | ||
584 | case FC_MEM2MEM_DMA: | ||
585 | *cfg &= ~(7 << 11); | ||
586 | break; | ||
587 | case FC_MEM2PER_DMA: | ||
588 | *cfg &= ~(7 << 11); | ||
589 | *cfg |= (1 << 11); | ||
590 | break; | ||
591 | case FC_PER2MEM_DMA: | ||
592 | *cfg &= ~(7 << 11); | ||
593 | *cfg |= (2 << 11); | ||
594 | break; | ||
595 | case FC_PER2PER_DMA: | ||
596 | *cfg &= ~(7 << 11); | ||
597 | *cfg |= (3 << 11); | ||
598 | break; | ||
599 | case FC_PER2PER_DPER: | ||
600 | *cfg &= ~(7 << 11); | ||
601 | *cfg |= (4 << 11); | ||
602 | break; | ||
603 | case FC_MEM2PER_PER: | ||
604 | *cfg &= ~(7 << 11); | ||
605 | *cfg |= (5 << 11); | ||
606 | break; | ||
607 | case FC_PER2MEM_PER: | ||
608 | *cfg &= ~(7 << 11); | ||
609 | *cfg |= (6 << 11); | ||
610 | break; | ||
611 | case FC_PER2PER_SPER: | ||
612 | *cfg |= (7 << 11); | ||
613 | break; | ||
614 | |||
615 | default: | ||
616 | err = -EINVAL; | ||
617 | goto out; | ||
618 | } | ||
619 | *cfg &= ~(0x1f << 6); | ||
620 | *cfg |= ((ch_cfg->dest_per & 0x1f) << 6); | ||
621 | |||
622 | *cfg &= ~(0x1f << 1); | ||
623 | *cfg |= ((ch_cfg->src_per & 0x1f) << 1); | ||
624 | |||
625 | out: | ||
626 | return err; | ||
627 | } | ||
628 | |||
629 | EXPORT_SYMBOL_GPL(pnx4008_dma_pack_config); | ||
630 | |||
631 | int pnx4008_dma_parse_config(unsigned long cfg, | ||
632 | struct pnx4008_dma_ch_config * ch_cfg) | ||
633 | { | ||
634 | int err = 0; | ||
635 | |||
636 | if (!ch_cfg) { | ||
637 | err = -EINVAL; | ||
638 | goto out; | ||
639 | } | ||
640 | |||
641 | cfg >>= 1; | ||
642 | |||
643 | ch_cfg->src_per = cfg & 0x1f; | ||
644 | cfg >>= 5; | ||
645 | |||
646 | ch_cfg->dest_per = cfg & 0x1f; | ||
647 | cfg >>= 5; | ||
648 | |||
649 | switch (cfg & 7) { | ||
650 | case 0: | ||
651 | ch_cfg->flow_cntrl = FC_MEM2MEM_DMA; | ||
652 | break; | ||
653 | case 1: | ||
654 | ch_cfg->flow_cntrl = FC_MEM2PER_DMA; | ||
655 | break; | ||
656 | case 2: | ||
657 | ch_cfg->flow_cntrl = FC_PER2MEM_DMA; | ||
658 | break; | ||
659 | case 3: | ||
660 | ch_cfg->flow_cntrl = FC_PER2PER_DMA; | ||
661 | break; | ||
662 | case 4: | ||
663 | ch_cfg->flow_cntrl = FC_PER2PER_DPER; | ||
664 | break; | ||
665 | case 5: | ||
666 | ch_cfg->flow_cntrl = FC_MEM2PER_PER; | ||
667 | break; | ||
668 | case 6: | ||
669 | ch_cfg->flow_cntrl = FC_PER2MEM_PER; | ||
670 | break; | ||
671 | case 7: | ||
672 | ch_cfg->flow_cntrl = FC_PER2PER_SPER; | ||
673 | } | ||
674 | cfg >>= 3; | ||
675 | |||
676 | ch_cfg->ie = cfg & 1; | ||
677 | cfg >>= 1; | ||
678 | |||
679 | ch_cfg->itc = cfg & 1; | ||
680 | cfg >>= 1; | ||
681 | |||
682 | ch_cfg->lock = cfg & 1; | ||
683 | cfg >>= 1; | ||
684 | |||
685 | ch_cfg->active = cfg & 1; | ||
686 | cfg >>= 1; | ||
687 | |||
688 | ch_cfg->halt = cfg & 1; | ||
689 | |||
690 | out: | ||
691 | return err; | ||
692 | } | ||
693 | |||
694 | EXPORT_SYMBOL_GPL(pnx4008_dma_parse_config); | ||
695 | |||
696 | void pnx4008_dma_split_head_entry(struct pnx4008_dma_config * config, | ||
697 | struct pnx4008_dma_ch_ctrl * ctrl) | ||
698 | { | ||
699 | int new_len = ctrl->tr_size, num_entries = 0; | ||
700 | int old_len = new_len; | ||
701 | int src_width, dest_width, count = 1; | ||
702 | |||
703 | switch (ctrl->swidth) { | ||
704 | case WIDTH_BYTE: | ||
705 | src_width = 1; | ||
706 | break; | ||
707 | case WIDTH_HWORD: | ||
708 | src_width = 2; | ||
709 | break; | ||
710 | case WIDTH_WORD: | ||
711 | src_width = 4; | ||
712 | break; | ||
713 | default: | ||
714 | return; | ||
715 | } | ||
716 | |||
717 | switch (ctrl->dwidth) { | ||
718 | case WIDTH_BYTE: | ||
719 | dest_width = 1; | ||
720 | break; | ||
721 | case WIDTH_HWORD: | ||
722 | dest_width = 2; | ||
723 | break; | ||
724 | case WIDTH_WORD: | ||
725 | dest_width = 4; | ||
726 | break; | ||
727 | default: | ||
728 | return; | ||
729 | } | ||
730 | |||
731 | while (new_len > 0x7FF) { | ||
732 | num_entries++; | ||
733 | new_len = (ctrl->tr_size + num_entries) / (num_entries + 1); | ||
734 | } | ||
735 | if (num_entries != 0) { | ||
736 | struct pnx4008_dma_ll *ll = NULL; | ||
737 | config->ch_ctrl &= ~0x7ff; | ||
738 | config->ch_ctrl |= new_len; | ||
739 | if (!config->is_ll) { | ||
740 | config->is_ll = 1; | ||
741 | while (num_entries) { | ||
742 | if (!ll) { | ||
743 | config->ll = | ||
744 | pnx4008_alloc_ll_entry(&config-> | ||
745 | ll_dma); | ||
746 | ll = config->ll; | ||
747 | } else { | ||
748 | ll->next = | ||
749 | pnx4008_alloc_ll_entry(&ll-> | ||
750 | next_dma); | ||
751 | ll = ll->next; | ||
752 | } | ||
753 | |||
754 | if (ctrl->si) | ||
755 | ll->src_addr = | ||
756 | config->src_addr + | ||
757 | src_width * new_len * count; | ||
758 | else | ||
759 | ll->src_addr = config->src_addr; | ||
760 | if (ctrl->di) | ||
761 | ll->dest_addr = | ||
762 | config->dest_addr + | ||
763 | dest_width * new_len * count; | ||
764 | else | ||
765 | ll->dest_addr = config->dest_addr; | ||
766 | ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; | ||
767 | ll->next_dma = 0; | ||
768 | ll->next = NULL; | ||
769 | num_entries--; | ||
770 | count++; | ||
771 | } | ||
772 | } else { | ||
773 | struct pnx4008_dma_ll *ll_old = config->ll; | ||
774 | unsigned long ll_dma_old = config->ll_dma; | ||
775 | while (num_entries) { | ||
776 | if (!ll) { | ||
777 | config->ll = | ||
778 | pnx4008_alloc_ll_entry(&config-> | ||
779 | ll_dma); | ||
780 | ll = config->ll; | ||
781 | } else { | ||
782 | ll->next = | ||
783 | pnx4008_alloc_ll_entry(&ll-> | ||
784 | next_dma); | ||
785 | ll = ll->next; | ||
786 | } | ||
787 | |||
788 | if (ctrl->si) | ||
789 | ll->src_addr = | ||
790 | config->src_addr + | ||
791 | src_width * new_len * count; | ||
792 | else | ||
793 | ll->src_addr = config->src_addr; | ||
794 | if (ctrl->di) | ||
795 | ll->dest_addr = | ||
796 | config->dest_addr + | ||
797 | dest_width * new_len * count; | ||
798 | else | ||
799 | ll->dest_addr = config->dest_addr; | ||
800 | ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; | ||
801 | ll->next_dma = 0; | ||
802 | ll->next = NULL; | ||
803 | num_entries--; | ||
804 | count++; | ||
805 | } | ||
806 | ll->next_dma = ll_dma_old; | ||
807 | ll->next = ll_old; | ||
808 | } | ||
809 | /* adjust last length/tc */ | ||
810 | ll->ch_ctrl = config->ch_ctrl & (~0x7ff); | ||
811 | ll->ch_ctrl |= old_len - new_len * (count - 1); | ||
812 | config->ch_ctrl &= 0x7fffffff; | ||
813 | } | ||
814 | } | ||
815 | |||
816 | EXPORT_SYMBOL_GPL(pnx4008_dma_split_head_entry); | ||
817 | |||
818 | void pnx4008_dma_split_ll_entry(struct pnx4008_dma_ll * cur_ll, | ||
819 | struct pnx4008_dma_ch_ctrl * ctrl) | ||
820 | { | ||
821 | int new_len = ctrl->tr_size, num_entries = 0; | ||
822 | int old_len = new_len; | ||
823 | int src_width, dest_width, count = 1; | ||
824 | |||
825 | switch (ctrl->swidth) { | ||
826 | case WIDTH_BYTE: | ||
827 | src_width = 1; | ||
828 | break; | ||
829 | case WIDTH_HWORD: | ||
830 | src_width = 2; | ||
831 | break; | ||
832 | case WIDTH_WORD: | ||
833 | src_width = 4; | ||
834 | break; | ||
835 | default: | ||
836 | return; | ||
837 | } | ||
838 | |||
839 | switch (ctrl->dwidth) { | ||
840 | case WIDTH_BYTE: | ||
841 | dest_width = 1; | ||
842 | break; | ||
843 | case WIDTH_HWORD: | ||
844 | dest_width = 2; | ||
845 | break; | ||
846 | case WIDTH_WORD: | ||
847 | dest_width = 4; | ||
848 | break; | ||
849 | default: | ||
850 | return; | ||
851 | } | ||
852 | |||
853 | while (new_len > 0x7FF) { | ||
854 | num_entries++; | ||
855 | new_len = (ctrl->tr_size + num_entries) / (num_entries + 1); | ||
856 | } | ||
857 | if (num_entries != 0) { | ||
858 | struct pnx4008_dma_ll *ll = NULL; | ||
859 | cur_ll->ch_ctrl &= ~0x7ff; | ||
860 | cur_ll->ch_ctrl |= new_len; | ||
861 | if (!cur_ll->next) { | ||
862 | while (num_entries) { | ||
863 | if (!ll) { | ||
864 | cur_ll->next = | ||
865 | pnx4008_alloc_ll_entry(&cur_ll-> | ||
866 | next_dma); | ||
867 | ll = cur_ll->next; | ||
868 | } else { | ||
869 | ll->next = | ||
870 | pnx4008_alloc_ll_entry(&ll-> | ||
871 | next_dma); | ||
872 | ll = ll->next; | ||
873 | } | ||
874 | |||
875 | if (ctrl->si) | ||
876 | ll->src_addr = | ||
877 | cur_ll->src_addr + | ||
878 | src_width * new_len * count; | ||
879 | else | ||
880 | ll->src_addr = cur_ll->src_addr; | ||
881 | if (ctrl->di) | ||
882 | ll->dest_addr = | ||
883 | cur_ll->dest_addr + | ||
884 | dest_width * new_len * count; | ||
885 | else | ||
886 | ll->dest_addr = cur_ll->dest_addr; | ||
887 | ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; | ||
888 | ll->next_dma = 0; | ||
889 | ll->next = NULL; | ||
890 | num_entries--; | ||
891 | count++; | ||
892 | } | ||
893 | } else { | ||
894 | struct pnx4008_dma_ll *ll_old = cur_ll->next; | ||
895 | unsigned long ll_dma_old = cur_ll->next_dma; | ||
896 | while (num_entries) { | ||
897 | if (!ll) { | ||
898 | cur_ll->next = | ||
899 | pnx4008_alloc_ll_entry(&cur_ll-> | ||
900 | next_dma); | ||
901 | ll = cur_ll->next; | ||
902 | } else { | ||
903 | ll->next = | ||
904 | pnx4008_alloc_ll_entry(&ll-> | ||
905 | next_dma); | ||
906 | ll = ll->next; | ||
907 | } | ||
908 | |||
909 | if (ctrl->si) | ||
910 | ll->src_addr = | ||
911 | cur_ll->src_addr + | ||
912 | src_width * new_len * count; | ||
913 | else | ||
914 | ll->src_addr = cur_ll->src_addr; | ||
915 | if (ctrl->di) | ||
916 | ll->dest_addr = | ||
917 | cur_ll->dest_addr + | ||
918 | dest_width * new_len * count; | ||
919 | else | ||
920 | ll->dest_addr = cur_ll->dest_addr; | ||
921 | ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; | ||
922 | ll->next_dma = 0; | ||
923 | ll->next = NULL; | ||
924 | num_entries--; | ||
925 | count++; | ||
926 | } | ||
927 | |||
928 | ll->next_dma = ll_dma_old; | ||
929 | ll->next = ll_old; | ||
930 | } | ||
931 | /* adjust last length/tc */ | ||
932 | ll->ch_ctrl = cur_ll->ch_ctrl & (~0x7ff); | ||
933 | ll->ch_ctrl |= old_len - new_len * (count - 1); | ||
934 | cur_ll->ch_ctrl &= 0x7fffffff; | ||
935 | } | ||
936 | } | ||
937 | |||
938 | EXPORT_SYMBOL_GPL(pnx4008_dma_split_ll_entry); | ||
939 | |||
940 | int pnx4008_config_channel(int ch, struct pnx4008_dma_config * config) | ||
941 | { | ||
942 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
943 | return -EINVAL; | ||
944 | |||
945 | pnx4008_dma_lock(); | ||
946 | __raw_writel(config->src_addr, DMAC_Cx_SRC_ADDR(ch)); | ||
947 | __raw_writel(config->dest_addr, DMAC_Cx_DEST_ADDR(ch)); | ||
948 | |||
949 | if (config->is_ll) | ||
950 | __raw_writel(config->ll_dma, DMAC_Cx_LLI(ch)); | ||
951 | else | ||
952 | __raw_writel(0, DMAC_Cx_LLI(ch)); | ||
953 | |||
954 | __raw_writel(config->ch_ctrl, DMAC_Cx_CONTROL(ch)); | ||
955 | __raw_writel(config->ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
956 | pnx4008_dma_unlock(); | ||
957 | |||
958 | return 0; | ||
959 | |||
960 | } | ||
961 | |||
962 | EXPORT_SYMBOL_GPL(pnx4008_config_channel); | ||
963 | |||
964 | int pnx4008_channel_get_config(int ch, struct pnx4008_dma_config * config) | ||
965 | { | ||
966 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name || !config) | ||
967 | return -EINVAL; | ||
968 | |||
969 | pnx4008_dma_lock(); | ||
970 | config->ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
971 | config->ch_ctrl = __raw_readl(DMAC_Cx_CONTROL(ch)); | ||
972 | |||
973 | config->ll_dma = __raw_readl(DMAC_Cx_LLI(ch)); | ||
974 | config->is_ll = config->ll_dma ? 1 : 0; | ||
975 | |||
976 | config->src_addr = __raw_readl(DMAC_Cx_SRC_ADDR(ch)); | ||
977 | config->dest_addr = __raw_readl(DMAC_Cx_DEST_ADDR(ch)); | ||
978 | pnx4008_dma_unlock(); | ||
979 | |||
980 | return 0; | ||
981 | } | ||
982 | |||
983 | EXPORT_SYMBOL_GPL(pnx4008_channel_get_config); | ||
984 | |||
985 | int pnx4008_dma_ch_enable(int ch) | ||
986 | { | ||
987 | unsigned long ch_cfg; | ||
988 | |||
989 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
990 | return -EINVAL; | ||
991 | |||
992 | pnx4008_dma_lock(); | ||
993 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
994 | ch_cfg |= 1; | ||
995 | __raw_writel(ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
996 | pnx4008_dma_unlock(); | ||
997 | |||
998 | return 0; | ||
999 | } | ||
1000 | |||
1001 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_enable); | ||
1002 | |||
1003 | int pnx4008_dma_ch_disable(int ch) | ||
1004 | { | ||
1005 | unsigned long ch_cfg; | ||
1006 | |||
1007 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
1008 | return -EINVAL; | ||
1009 | |||
1010 | pnx4008_dma_lock(); | ||
1011 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
1012 | ch_cfg &= ~1; | ||
1013 | __raw_writel(ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
1014 | pnx4008_dma_unlock(); | ||
1015 | |||
1016 | return 0; | ||
1017 | } | ||
1018 | |||
1019 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_disable); | ||
1020 | |||
1021 | int pnx4008_dma_ch_enabled(int ch) | ||
1022 | { | ||
1023 | unsigned long ch_cfg; | ||
1024 | |||
1025 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
1026 | return -EINVAL; | ||
1027 | |||
1028 | pnx4008_dma_lock(); | ||
1029 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
1030 | pnx4008_dma_unlock(); | ||
1031 | |||
1032 | return ch_cfg & 1; | ||
1033 | } | ||
1034 | |||
1035 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_enabled); | ||
1036 | |||
1037 | static irqreturn_t dma_irq_handler(int irq, void *dev_id, struct pt_regs *regs) | ||
1038 | { | ||
1039 | int i; | ||
1040 | unsigned long dint = __raw_readl(DMAC_INT_STAT); | ||
1041 | unsigned long tcint = __raw_readl(DMAC_INT_TC_STAT); | ||
1042 | unsigned long eint = __raw_readl(DMAC_INT_ERR_STAT); | ||
1043 | unsigned long i_bit; | ||
1044 | |||
1045 | for (i = MAX_DMA_CHANNELS - 1; i >= 0; i--) { | ||
1046 | i_bit = 1 << i; | ||
1047 | if (dint & i_bit) { | ||
1048 | struct dma_channel *channel = &dma_channels[i]; | ||
1049 | |||
1050 | if (channel->name && channel->irq_handler) { | ||
1051 | int cause = 0; | ||
1052 | |||
1053 | if (eint & i_bit) | ||
1054 | cause |= DMA_ERR_INT; | ||
1055 | if (tcint & i_bit) | ||
1056 | cause |= DMA_TC_INT; | ||
1057 | channel->irq_handler(i, cause, channel->data, | ||
1058 | regs); | ||
1059 | } else { | ||
1060 | /* | ||
1061 | * IRQ for an unregistered DMA channel | ||
1062 | */ | ||
1063 | printk(KERN_WARNING | ||
1064 | "spurious IRQ for DMA channel %d\n", i); | ||
1065 | } | ||
1066 | if (tcint & i_bit) | ||
1067 | __raw_writel(i_bit, DMAC_INT_TC_CLEAR); | ||
1068 | if (eint & i_bit) | ||
1069 | __raw_writel(i_bit, DMAC_INT_ERR_CLEAR); | ||
1070 | } | ||
1071 | } | ||
1072 | return IRQ_HANDLED; | ||
1073 | } | ||
1074 | |||
1075 | static int __init pnx4008_dma_init(void) | ||
1076 | { | ||
1077 | int ret, i; | ||
1078 | |||
1079 | ret = request_irq(DMA_INT, dma_irq_handler, 0, "DMA", NULL); | ||
1080 | if (ret) { | ||
1081 | printk(KERN_CRIT "Wow! Can't register IRQ for DMA\n"); | ||
1082 | goto out; | ||
1083 | } | ||
1084 | |||
1085 | ll_pool.count = 0x4000 / sizeof(struct pnx4008_dma_ll); | ||
1086 | ll_pool.cur = ll_pool.vaddr = | ||
1087 | dma_alloc_coherent(NULL, ll_pool.count * sizeof(struct pnx4008_dma_ll), | ||
1088 | &ll_pool.dma_addr, GFP_KERNEL); | ||
1089 | |||
1090 | if (!ll_pool.vaddr) { | ||
1091 | ret = -ENOMEM; | ||
1092 | free_irq(DMA_INT, NULL); | ||
1093 | goto out; | ||
1094 | } | ||
1095 | |||
1096 | for (i = 0; i < ll_pool.count - 1; i++) { | ||
1097 | void **addr = ll_pool.vaddr + i * sizeof(struct pnx4008_dma_ll); | ||
1098 | *addr = (void *)addr + sizeof(struct pnx4008_dma_ll); | ||
1099 | } | ||
1100 | *(long *)(ll_pool.vaddr + | ||
1101 | (ll_pool.count - 1) * sizeof(struct pnx4008_dma_ll)) = | ||
1102 | (long)ll_pool.vaddr; | ||
1103 | |||
1104 | __raw_writel(1, DMAC_CONFIG); | ||
1105 | |||
1106 | out: | ||
1107 | return ret; | ||
1108 | } | ||
1109 | arch_initcall(pnx4008_dma_init); | ||
diff --git a/arch/arm/mach-pnx4008/gpio.c b/arch/arm/mach-pnx4008/gpio.c new file mode 100644 index 000000000000..e1ce050d8fe0 --- /dev/null +++ b/arch/arm/mach-pnx4008/gpio.c | |||
@@ -0,0 +1,330 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/gpio.c | ||
3 | * | ||
4 | * PNX4008 GPIO driver | ||
5 | * | ||
6 | * Author: Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * Based on reference code by Iwo Mergler and Z.Tabaaloute from Philips: | ||
9 | * Copyright (c) 2005 Koninklijke Philips Electronics N.V. | ||
10 | * | ||
11 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | */ | ||
16 | |||
17 | #include <linux/config.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <asm/semaphore.h> | ||
22 | #include <asm/io.h> | ||
23 | #include <asm/arch/platform.h> | ||
24 | #include <asm/arch/gpio.h> | ||
25 | |||
26 | /* register definitions */ | ||
27 | #define PIO_VA_BASE IO_ADDRESS(PNX4008_PIO_BASE) | ||
28 | |||
29 | #define PIO_INP_STATE (0x00U) | ||
30 | #define PIO_OUTP_SET (0x04U) | ||
31 | #define PIO_OUTP_CLR (0x08U) | ||
32 | #define PIO_OUTP_STATE (0x0CU) | ||
33 | #define PIO_DRV_SET (0x10U) | ||
34 | #define PIO_DRV_CLR (0x14U) | ||
35 | #define PIO_DRV_STATE (0x18U) | ||
36 | #define PIO_SDINP_STATE (0x1CU) | ||
37 | #define PIO_SDOUTP_SET (0x20U) | ||
38 | #define PIO_SDOUTP_CLR (0x24U) | ||
39 | #define PIO_MUX_SET (0x28U) | ||
40 | #define PIO_MUX_CLR (0x2CU) | ||
41 | #define PIO_MUX_STATE (0x30U) | ||
42 | |||
43 | static inline void gpio_lock(void) | ||
44 | { | ||
45 | local_irq_disable(); | ||
46 | } | ||
47 | |||
48 | static inline void gpio_unlock(void) | ||
49 | { | ||
50 | local_irq_enable(); | ||
51 | } | ||
52 | |||
53 | /* Inline functions */ | ||
54 | static inline int gpio_read_bit(u32 reg, int gpio) | ||
55 | { | ||
56 | u32 bit, val; | ||
57 | int ret = -EFAULT; | ||
58 | |||
59 | if (gpio < 0) | ||
60 | goto out; | ||
61 | |||
62 | bit = GPIO_BIT(gpio); | ||
63 | if (bit) { | ||
64 | val = __raw_readl(PIO_VA_BASE + reg); | ||
65 | ret = (val & bit) ? 1 : 0; | ||
66 | } | ||
67 | out: | ||
68 | return ret; | ||
69 | } | ||
70 | |||
71 | static inline int gpio_set_bit(u32 reg, int gpio) | ||
72 | { | ||
73 | u32 bit, val; | ||
74 | int ret = -EFAULT; | ||
75 | |||
76 | if (gpio < 0) | ||
77 | goto out; | ||
78 | |||
79 | bit = GPIO_BIT(gpio); | ||
80 | if (bit) { | ||
81 | val = __raw_readl(PIO_VA_BASE + reg); | ||
82 | val |= bit; | ||
83 | __raw_writel(val, PIO_VA_BASE + reg); | ||
84 | ret = 0; | ||
85 | } | ||
86 | out: | ||
87 | return ret; | ||
88 | } | ||
89 | |||
90 | /* Very simple access control, bitmap for allocated/free */ | ||
91 | static unsigned long access_map[4]; | ||
92 | #define INP_INDEX 0 | ||
93 | #define OUTP_INDEX 1 | ||
94 | #define GPIO_INDEX 2 | ||
95 | #define MUX_INDEX 3 | ||
96 | |||
97 | /*GPIO to Input Mapping */ | ||
98 | static short gpio_to_inp_map[32] = { | ||
99 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
100 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
101 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
102 | -1, 10, 11, 12, 13, 14, 24, -1 | ||
103 | }; | ||
104 | |||
105 | /*GPIO to Mux Mapping */ | ||
106 | static short gpio_to_mux_map[32] = { | ||
107 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
108 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
109 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
110 | -1, -1, -1, 0, 1, 4, 5, -1 | ||
111 | }; | ||
112 | |||
113 | /*Output to Mux Mapping */ | ||
114 | static short outp_to_mux_map[32] = { | ||
115 | -1, -1, -1, 6, -1, -1, -1, -1, | ||
116 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
117 | -1, -1, -1, -1, -1, 2, -1, -1, | ||
118 | -1, -1, -1, -1, -1, -1, -1, -1 | ||
119 | }; | ||
120 | |||
121 | int pnx4008_gpio_register_pin(unsigned short pin) | ||
122 | { | ||
123 | unsigned long bit = GPIO_BIT(pin); | ||
124 | int ret = -EBUSY; /* Already in use */ | ||
125 | |||
126 | gpio_lock(); | ||
127 | |||
128 | if (GPIO_ISBID(pin)) { | ||
129 | if (access_map[GPIO_INDEX] & bit) | ||
130 | goto out; | ||
131 | access_map[GPIO_INDEX] |= bit; | ||
132 | |||
133 | } else if (GPIO_ISRAM(pin)) { | ||
134 | if (access_map[GPIO_INDEX] & bit) | ||
135 | goto out; | ||
136 | access_map[GPIO_INDEX] |= bit; | ||
137 | |||
138 | } else if (GPIO_ISMUX(pin)) { | ||
139 | if (access_map[MUX_INDEX] & bit) | ||
140 | goto out; | ||
141 | access_map[MUX_INDEX] |= bit; | ||
142 | |||
143 | } else if (GPIO_ISOUT(pin)) { | ||
144 | if (access_map[OUTP_INDEX] & bit) | ||
145 | goto out; | ||
146 | access_map[OUTP_INDEX] |= bit; | ||
147 | |||
148 | } else if (GPIO_ISIN(pin)) { | ||
149 | if (access_map[INP_INDEX] & bit) | ||
150 | goto out; | ||
151 | access_map[INP_INDEX] |= bit; | ||
152 | } else | ||
153 | goto out; | ||
154 | ret = 0; | ||
155 | |||
156 | out: | ||
157 | gpio_unlock(); | ||
158 | return ret; | ||
159 | } | ||
160 | |||
161 | EXPORT_SYMBOL(pnx4008_gpio_register_pin); | ||
162 | |||
163 | int pnx4008_gpio_unregister_pin(unsigned short pin) | ||
164 | { | ||
165 | unsigned long bit = GPIO_BIT(pin); | ||
166 | int ret = -EFAULT; /* Not registered */ | ||
167 | |||
168 | gpio_lock(); | ||
169 | |||
170 | if (GPIO_ISBID(pin)) { | ||
171 | if (~access_map[GPIO_INDEX] & bit) | ||
172 | goto out; | ||
173 | access_map[GPIO_INDEX] &= ~bit; | ||
174 | } else if (GPIO_ISRAM(pin)) { | ||
175 | if (~access_map[GPIO_INDEX] & bit) | ||
176 | goto out; | ||
177 | access_map[GPIO_INDEX] &= ~bit; | ||
178 | } else if (GPIO_ISMUX(pin)) { | ||
179 | if (~access_map[MUX_INDEX] & bit) | ||
180 | goto out; | ||
181 | access_map[MUX_INDEX] &= ~bit; | ||
182 | } else if (GPIO_ISOUT(pin)) { | ||
183 | if (~access_map[OUTP_INDEX] & bit) | ||
184 | goto out; | ||
185 | access_map[OUTP_INDEX] &= ~bit; | ||
186 | } else if (GPIO_ISIN(pin)) { | ||
187 | if (~access_map[INP_INDEX] & bit) | ||
188 | goto out; | ||
189 | access_map[INP_INDEX] &= ~bit; | ||
190 | } else | ||
191 | goto out; | ||
192 | ret = 0; | ||
193 | |||
194 | out: | ||
195 | gpio_unlock(); | ||
196 | return ret; | ||
197 | } | ||
198 | |||
199 | EXPORT_SYMBOL(pnx4008_gpio_unregister_pin); | ||
200 | |||
201 | unsigned long pnx4008_gpio_read_pin(unsigned short pin) | ||
202 | { | ||
203 | unsigned long ret = -EFAULT; | ||
204 | int gpio = GPIO_BIT_MASK(pin); | ||
205 | gpio_lock(); | ||
206 | if (GPIO_ISOUT(pin)) { | ||
207 | ret = gpio_read_bit(PIO_OUTP_STATE, gpio); | ||
208 | } else if (GPIO_ISRAM(pin)) { | ||
209 | if (gpio_read_bit(PIO_DRV_STATE, gpio) == 0) { | ||
210 | ret = gpio_read_bit(PIO_SDINP_STATE, gpio); | ||
211 | } | ||
212 | } else if (GPIO_ISBID(pin)) { | ||
213 | ret = gpio_read_bit(PIO_DRV_STATE, gpio); | ||
214 | if (ret > 0) | ||
215 | ret = gpio_read_bit(PIO_OUTP_STATE, gpio); | ||
216 | else if (ret == 0) | ||
217 | ret = | ||
218 | gpio_read_bit(PIO_INP_STATE, gpio_to_inp_map[gpio]); | ||
219 | } else if (GPIO_ISIN(pin)) { | ||
220 | ret = gpio_read_bit(PIO_INP_STATE, gpio); | ||
221 | } | ||
222 | gpio_unlock(); | ||
223 | return ret; | ||
224 | } | ||
225 | |||
226 | EXPORT_SYMBOL(pnx4008_gpio_read_pin); | ||
227 | |||
228 | /* Write Value to output */ | ||
229 | int pnx4008_gpio_write_pin(unsigned short pin, int output) | ||
230 | { | ||
231 | int gpio = GPIO_BIT_MASK(pin); | ||
232 | int ret = -EFAULT; | ||
233 | |||
234 | gpio_lock(); | ||
235 | if (GPIO_ISOUT(pin)) { | ||
236 | printk( "writing '%x' to '%x'\n", | ||
237 | gpio, output ? PIO_OUTP_SET : PIO_OUTP_CLR ); | ||
238 | ret = gpio_set_bit(output ? PIO_OUTP_SET : PIO_OUTP_CLR, gpio); | ||
239 | } else if (GPIO_ISRAM(pin)) { | ||
240 | if (gpio_read_bit(PIO_DRV_STATE, gpio) > 0) | ||
241 | ret = gpio_set_bit(output ? PIO_SDOUTP_SET : | ||
242 | PIO_SDOUTP_CLR, gpio); | ||
243 | } else if (GPIO_ISBID(pin)) { | ||
244 | if (gpio_read_bit(PIO_DRV_STATE, gpio) > 0) | ||
245 | ret = gpio_set_bit(output ? PIO_OUTP_SET : | ||
246 | PIO_OUTP_CLR, gpio); | ||
247 | } | ||
248 | gpio_unlock(); | ||
249 | return ret; | ||
250 | } | ||
251 | |||
252 | EXPORT_SYMBOL(pnx4008_gpio_write_pin); | ||
253 | |||
254 | /* Value = 1 : Set GPIO pin as output */ | ||
255 | /* Value = 0 : Set GPIO pin as input */ | ||
256 | int pnx4008_gpio_set_pin_direction(unsigned short pin, int output) | ||
257 | { | ||
258 | int gpio = GPIO_BIT_MASK(pin); | ||
259 | int ret = -EFAULT; | ||
260 | |||
261 | gpio_lock(); | ||
262 | if (GPIO_ISBID(pin) || GPIO_ISRAM(pin)) { | ||
263 | ret = gpio_set_bit(output ? PIO_DRV_SET : PIO_DRV_CLR, gpio); | ||
264 | } | ||
265 | gpio_unlock(); | ||
266 | return ret; | ||
267 | } | ||
268 | |||
269 | EXPORT_SYMBOL(pnx4008_gpio_set_pin_direction); | ||
270 | |||
271 | /* Read GPIO pin direction: 0= pin used as input, 1= pin used as output*/ | ||
272 | int pnx4008_gpio_read_pin_direction(unsigned short pin) | ||
273 | { | ||
274 | int gpio = GPIO_BIT_MASK(pin); | ||
275 | int ret = -EFAULT; | ||
276 | |||
277 | gpio_lock(); | ||
278 | if (GPIO_ISBID(pin) || GPIO_ISRAM(pin)) { | ||
279 | ret = gpio_read_bit(PIO_DRV_STATE, gpio); | ||
280 | } | ||
281 | gpio_unlock(); | ||
282 | return ret; | ||
283 | } | ||
284 | |||
285 | EXPORT_SYMBOL(pnx4008_gpio_read_pin_direction); | ||
286 | |||
287 | /* Value = 1 : Set pin to muxed function */ | ||
288 | /* Value = 0 : Set pin as GPIO */ | ||
289 | int pnx4008_gpio_set_pin_mux(unsigned short pin, int output) | ||
290 | { | ||
291 | int gpio = GPIO_BIT_MASK(pin); | ||
292 | int ret = -EFAULT; | ||
293 | |||
294 | gpio_lock(); | ||
295 | if (GPIO_ISBID(pin)) { | ||
296 | ret = | ||
297 | gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, | ||
298 | gpio_to_mux_map[gpio]); | ||
299 | } else if (GPIO_ISOUT(pin)) { | ||
300 | ret = | ||
301 | gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, | ||
302 | outp_to_mux_map[gpio]); | ||
303 | } else if (GPIO_ISMUX(pin)) { | ||
304 | ret = gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, gpio); | ||
305 | } | ||
306 | gpio_unlock(); | ||
307 | return ret; | ||
308 | } | ||
309 | |||
310 | EXPORT_SYMBOL(pnx4008_gpio_set_pin_mux); | ||
311 | |||
312 | /* Read pin mux function: 0= pin used as GPIO, 1= pin used for muxed function*/ | ||
313 | int pnx4008_gpio_read_pin_mux(unsigned short pin) | ||
314 | { | ||
315 | int gpio = GPIO_BIT_MASK(pin); | ||
316 | int ret = -EFAULT; | ||
317 | |||
318 | gpio_lock(); | ||
319 | if (GPIO_ISBID(pin)) { | ||
320 | ret = gpio_read_bit(PIO_MUX_STATE, gpio_to_mux_map[gpio]); | ||
321 | } else if (GPIO_ISOUT(pin)) { | ||
322 | ret = gpio_read_bit(PIO_MUX_STATE, outp_to_mux_map[gpio]); | ||
323 | } else if (GPIO_ISMUX(pin)) { | ||
324 | ret = gpio_read_bit(PIO_MUX_STATE, gpio); | ||
325 | } | ||
326 | gpio_unlock(); | ||
327 | return ret; | ||
328 | } | ||
329 | |||
330 | EXPORT_SYMBOL(pnx4008_gpio_read_pin_mux); | ||
diff --git a/arch/arm/mach-pnx4008/irq.c b/arch/arm/mach-pnx4008/irq.c new file mode 100644 index 000000000000..9b0a8e084e99 --- /dev/null +++ b/arch/arm/mach-pnx4008/irq.c | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/irq.c | ||
3 | * | ||
4 | * PNX4008 IRQ controller driver | ||
5 | * | ||
6 | * Author: Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * Based on reference code received from Philips: | ||
9 | * Copyright (C) 2003 Philips Semiconductors | ||
10 | * | ||
11 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | */ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/mm.h> | ||
20 | #include <linux/interrupt.h> | ||
21 | #include <linux/list.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/ioport.h> | ||
24 | #include <linux/device.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/io.h> | ||
28 | #include <asm/setup.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/pgtable.h> | ||
31 | #include <asm/page.h> | ||
32 | #include <asm/system.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/irq.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/arch/irq.h> | ||
37 | |||
38 | static u8 pnx4008_irq_type[NR_IRQS] = PNX4008_IRQ_TYPES; | ||
39 | |||
40 | static void pnx4008_mask_irq(unsigned int irq) | ||
41 | { | ||
42 | __raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq)); /* mask interrupt */ | ||
43 | } | ||
44 | |||
45 | static void pnx4008_unmask_irq(unsigned int irq) | ||
46 | { | ||
47 | __raw_writel(__raw_readl(INTC_ER(irq)) | INTC_BIT(irq), INTC_ER(irq)); /* unmask interrupt */ | ||
48 | } | ||
49 | |||
50 | static void pnx4008_mask_ack_irq(unsigned int irq) | ||
51 | { | ||
52 | __raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq)); /* mask interrupt */ | ||
53 | __raw_writel(INTC_BIT(irq), INTC_SR(irq)); /* clear interrupt status */ | ||
54 | } | ||
55 | |||
56 | static int pnx4008_set_irq_type(unsigned int irq, unsigned int type) | ||
57 | { | ||
58 | switch (type) { | ||
59 | case IRQT_RISING: | ||
60 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | ||
61 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /*rising edge */ | ||
62 | set_irq_handler(irq, do_edge_IRQ); | ||
63 | break; | ||
64 | case IRQT_FALLING: | ||
65 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | ||
66 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*falling edge */ | ||
67 | set_irq_handler(irq, do_edge_IRQ); | ||
68 | break; | ||
69 | case IRQT_LOW: | ||
70 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | ||
71 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*low level */ | ||
72 | set_irq_handler(irq, do_level_IRQ); | ||
73 | break; | ||
74 | case IRQT_HIGH: | ||
75 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | ||
76 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /* high level */ | ||
77 | set_irq_handler(irq, do_level_IRQ); | ||
78 | break; | ||
79 | |||
80 | /* IRQT_BOTHEDGE is not supported */ | ||
81 | default: | ||
82 | printk(KERN_ERR "PNX4008 IRQ: Unsupported irq type %d\n", type); | ||
83 | return -1; | ||
84 | } | ||
85 | return 0; | ||
86 | } | ||
87 | |||
88 | static struct irqchip pnx4008_irq_chip = { | ||
89 | .ack = pnx4008_mask_ack_irq, | ||
90 | .mask = pnx4008_mask_irq, | ||
91 | .unmask = pnx4008_unmask_irq, | ||
92 | .set_type = pnx4008_set_irq_type, | ||
93 | }; | ||
94 | |||
95 | void __init pnx4008_init_irq(void) | ||
96 | { | ||
97 | unsigned int i; | ||
98 | |||
99 | /* configure and enable IRQ 0,1,30,31 (cascade interrupts) mask all others */ | ||
100 | pnx4008_set_irq_type(SUB1_IRQ_N, pnx4008_irq_type[SUB1_IRQ_N]); | ||
101 | pnx4008_set_irq_type(SUB2_IRQ_N, pnx4008_irq_type[SUB2_IRQ_N]); | ||
102 | pnx4008_set_irq_type(SUB1_FIQ_N, pnx4008_irq_type[SUB1_FIQ_N]); | ||
103 | pnx4008_set_irq_type(SUB2_FIQ_N, pnx4008_irq_type[SUB2_FIQ_N]); | ||
104 | |||
105 | __raw_writel((1 << SUB2_FIQ_N) | (1 << SUB1_FIQ_N) | | ||
106 | (1 << SUB2_IRQ_N) | (1 << SUB1_IRQ_N), | ||
107 | INTC_ER(MAIN_BASE_INT)); | ||
108 | __raw_writel(0, INTC_ER(SIC1_BASE_INT)); | ||
109 | __raw_writel(0, INTC_ER(SIC2_BASE_INT)); | ||
110 | |||
111 | /* configure all other IRQ's */ | ||
112 | for (i = 0; i < NR_IRQS; i++) { | ||
113 | if (i == SUB2_FIQ_N || i == SUB1_FIQ_N || | ||
114 | i == SUB2_IRQ_N || i == SUB1_IRQ_N) | ||
115 | continue; | ||
116 | set_irq_flags(i, IRQF_VALID); | ||
117 | set_irq_chip(i, &pnx4008_irq_chip); | ||
118 | pnx4008_set_irq_type(i, pnx4008_irq_type[i]); | ||
119 | } | ||
120 | } | ||
121 | |||
diff --git a/arch/arm/mach-pnx4008/pm.c b/arch/arm/mach-pnx4008/pm.c new file mode 100644 index 000000000000..3649cd3dfc9a --- /dev/null +++ b/arch/arm/mach-pnx4008/pm.c | |||
@@ -0,0 +1,184 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/pm.c | ||
3 | * | ||
4 | * Power Management driver for PNX4008 | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/pm.h> | ||
15 | #include <linux/rtc.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/proc_fs.h> | ||
18 | #include <linux/pm.h> | ||
19 | #include <linux/delay.h> | ||
20 | #include <linux/clk.h> | ||
21 | |||
22 | #include <asm/io.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/cacheflush.h> | ||
25 | #include <asm/arch/pm.h> | ||
26 | #include <asm/arch/clock.h> | ||
27 | |||
28 | #define SRAM_VA IO_ADDRESS(PNX4008_IRAM_BASE) | ||
29 | |||
30 | static void *saved_sram; | ||
31 | |||
32 | static struct clk *pll4_clk; | ||
33 | |||
34 | static inline void pnx4008_standby(void) | ||
35 | { | ||
36 | void (*pnx4008_cpu_standby_ptr) (void); | ||
37 | |||
38 | local_irq_disable(); | ||
39 | local_fiq_disable(); | ||
40 | |||
41 | clk_disable(pll4_clk); | ||
42 | |||
43 | /*saving portion of SRAM to be used by suspend function. */ | ||
44 | memcpy(saved_sram, (void *)SRAM_VA, pnx4008_cpu_standby_sz); | ||
45 | |||
46 | /*make sure SRAM copy gets physically written into SDRAM. | ||
47 | SDRAM will be placed into self-refresh during power down */ | ||
48 | flush_cache_all(); | ||
49 | |||
50 | /*copy suspend function into SRAM */ | ||
51 | memcpy((void *)SRAM_VA, pnx4008_cpu_standby, pnx4008_cpu_standby_sz); | ||
52 | |||
53 | /*do suspend */ | ||
54 | pnx4008_cpu_standby_ptr = (void *)SRAM_VA; | ||
55 | pnx4008_cpu_standby_ptr(); | ||
56 | |||
57 | /*restoring portion of SRAM that was used by suspend function */ | ||
58 | memcpy((void *)SRAM_VA, saved_sram, pnx4008_cpu_standby_sz); | ||
59 | |||
60 | clk_enable(pll4_clk); | ||
61 | |||
62 | local_fiq_enable(); | ||
63 | local_irq_enable(); | ||
64 | } | ||
65 | |||
66 | static inline void pnx4008_suspend(void) | ||
67 | { | ||
68 | void (*pnx4008_cpu_suspend_ptr) (void); | ||
69 | |||
70 | local_irq_disable(); | ||
71 | local_fiq_disable(); | ||
72 | |||
73 | clk_disable(pll4_clk); | ||
74 | |||
75 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_PIN_BASE_INT)); | ||
76 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_INT_BASE_INT)); | ||
77 | |||
78 | /*saving portion of SRAM to be used by suspend function. */ | ||
79 | memcpy(saved_sram, (void *)SRAM_VA, pnx4008_cpu_suspend_sz); | ||
80 | |||
81 | /*make sure SRAM copy gets physically written into SDRAM. | ||
82 | SDRAM will be placed into self-refresh during power down */ | ||
83 | flush_cache_all(); | ||
84 | |||
85 | /*copy suspend function into SRAM */ | ||
86 | memcpy((void *)SRAM_VA, pnx4008_cpu_suspend, pnx4008_cpu_suspend_sz); | ||
87 | |||
88 | /*do suspend */ | ||
89 | pnx4008_cpu_suspend_ptr = (void *)SRAM_VA; | ||
90 | pnx4008_cpu_suspend_ptr(); | ||
91 | |||
92 | /*restoring portion of SRAM that was used by suspend function */ | ||
93 | memcpy((void *)SRAM_VA, saved_sram, pnx4008_cpu_suspend_sz); | ||
94 | |||
95 | clk_enable(pll4_clk); | ||
96 | |||
97 | local_fiq_enable(); | ||
98 | local_irq_enable(); | ||
99 | } | ||
100 | |||
101 | static int pnx4008_pm_enter(suspend_state_t state) | ||
102 | { | ||
103 | switch (state) { | ||
104 | case PM_SUSPEND_STANDBY: | ||
105 | pnx4008_standby(); | ||
106 | break; | ||
107 | case PM_SUSPEND_MEM: | ||
108 | pnx4008_suspend(); | ||
109 | break; | ||
110 | case PM_SUSPEND_DISK: | ||
111 | return -ENOTSUPP; | ||
112 | default: | ||
113 | return -EINVAL; | ||
114 | } | ||
115 | return 0; | ||
116 | } | ||
117 | |||
118 | /* | ||
119 | * Called after processes are frozen, but before we shut down devices. | ||
120 | */ | ||
121 | static int pnx4008_pm_prepare(suspend_state_t state) | ||
122 | { | ||
123 | switch (state) { | ||
124 | case PM_SUSPEND_STANDBY: | ||
125 | case PM_SUSPEND_MEM: | ||
126 | break; | ||
127 | |||
128 | case PM_SUSPEND_DISK: | ||
129 | return -ENOTSUPP; | ||
130 | break; | ||
131 | |||
132 | default: | ||
133 | return -EINVAL; | ||
134 | break; | ||
135 | } | ||
136 | return 0; | ||
137 | } | ||
138 | |||
139 | /* | ||
140 | * Called after devices are re-setup, but before processes are thawed. | ||
141 | */ | ||
142 | static int pnx4008_pm_finish(suspend_state_t state) | ||
143 | { | ||
144 | return 0; | ||
145 | } | ||
146 | |||
147 | /* | ||
148 | * Set to PM_DISK_FIRMWARE so we can quickly veto suspend-to-disk. | ||
149 | */ | ||
150 | static struct pm_ops pnx4008_pm_ops = { | ||
151 | .prepare = pnx4008_pm_prepare, | ||
152 | .enter = pnx4008_pm_enter, | ||
153 | .finish = pnx4008_pm_finish, | ||
154 | }; | ||
155 | |||
156 | static int __init pnx4008_pm_init(void) | ||
157 | { | ||
158 | u32 sram_size_to_allocate; | ||
159 | |||
160 | pll4_clk = clk_get(0, "ck_pll4"); | ||
161 | if (IS_ERR(pll4_clk)) { | ||
162 | printk(KERN_ERR | ||
163 | "PM Suspend cannot acquire ARM(PLL4) clock control\n"); | ||
164 | return PTR_ERR(pll4_clk); | ||
165 | } | ||
166 | |||
167 | if (pnx4008_cpu_standby_sz > pnx4008_cpu_suspend_sz) | ||
168 | sram_size_to_allocate = pnx4008_cpu_standby_sz; | ||
169 | else | ||
170 | sram_size_to_allocate = pnx4008_cpu_suspend_sz; | ||
171 | |||
172 | saved_sram = kmalloc(sram_size_to_allocate, GFP_ATOMIC); | ||
173 | if (!saved_sram) { | ||
174 | printk(KERN_ERR | ||
175 | "PM Suspend: cannot allocate memory to save portion of SRAM\n"); | ||
176 | clk_put(pll4_clk); | ||
177 | return -ENOMEM; | ||
178 | } | ||
179 | |||
180 | pm_set_ops(&pnx4008_pm_ops); | ||
181 | return 0; | ||
182 | } | ||
183 | |||
184 | late_initcall(pnx4008_pm_init); | ||
diff --git a/arch/arm/mach-pnx4008/serial.c b/arch/arm/mach-pnx4008/serial.c new file mode 100644 index 000000000000..10322384e45d --- /dev/null +++ b/arch/arm/mach-pnx4008/serial.c | |||
@@ -0,0 +1,69 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/serial.c | ||
3 | * | ||
4 | * PNX4008 UART initialization | ||
5 | * | ||
6 | * Copyright: MontaVista Software Inc. (c) 2005 | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | |||
16 | #include <asm/io.h> | ||
17 | |||
18 | #include <asm/arch/platform.h> | ||
19 | #include <asm/hardware.h> | ||
20 | |||
21 | #include <linux/serial_core.h> | ||
22 | #include <linux/serial_reg.h> | ||
23 | #include <asm/arch/pm.h> | ||
24 | |||
25 | #include <asm/arch/clock.h> | ||
26 | |||
27 | #define UART_3 0 | ||
28 | #define UART_4 1 | ||
29 | #define UART_5 2 | ||
30 | #define UART_6 3 | ||
31 | #define UART_UNKNOWN (-1) | ||
32 | |||
33 | #define UART3_BASE_VA IO_ADDRESS(PNX4008_UART3_BASE) | ||
34 | #define UART4_BASE_VA IO_ADDRESS(PNX4008_UART4_BASE) | ||
35 | #define UART5_BASE_VA IO_ADDRESS(PNX4008_UART5_BASE) | ||
36 | #define UART6_BASE_VA IO_ADDRESS(PNX4008_UART6_BASE) | ||
37 | |||
38 | #define UART_FCR_OFFSET 8 | ||
39 | #define UART_FIFO_SIZE 64 | ||
40 | |||
41 | void pnx4008_uart_init(void) | ||
42 | { | ||
43 | u32 tmp; | ||
44 | int i = UART_FIFO_SIZE; | ||
45 | |||
46 | __raw_writel(0xC1, UART5_BASE_VA + UART_FCR_OFFSET); | ||
47 | __raw_writel(0xC1, UART3_BASE_VA + UART_FCR_OFFSET); | ||
48 | |||
49 | /* Send a NULL to fix the UART HW bug */ | ||
50 | __raw_writel(0x00, UART5_BASE_VA); | ||
51 | __raw_writel(0x00, UART3_BASE_VA); | ||
52 | |||
53 | while (i--) { | ||
54 | tmp = __raw_readl(UART5_BASE_VA); | ||
55 | tmp = __raw_readl(UART3_BASE_VA); | ||
56 | } | ||
57 | __raw_writel(0, UART5_BASE_VA + UART_FCR_OFFSET); | ||
58 | __raw_writel(0, UART3_BASE_VA + UART_FCR_OFFSET); | ||
59 | |||
60 | /* setup wakeup interrupt */ | ||
61 | start_int_set_rising_edge(SE_U3_RX_INT); | ||
62 | start_int_ack(SE_U3_RX_INT); | ||
63 | start_int_umask(SE_U3_RX_INT); | ||
64 | |||
65 | start_int_set_rising_edge(SE_U5_RX_INT); | ||
66 | start_int_ack(SE_U5_RX_INT); | ||
67 | start_int_umask(SE_U5_RX_INT); | ||
68 | } | ||
69 | |||
diff --git a/arch/arm/mach-pnx4008/sleep.S b/arch/arm/mach-pnx4008/sleep.S new file mode 100644 index 000000000000..93c802bac269 --- /dev/null +++ b/arch/arm/mach-pnx4008/sleep.S | |||
@@ -0,0 +1,196 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/sleep.S | ||
3 | * | ||
4 | * PNX4008 support for STOP mode and SDRAM self-refresh | ||
5 | * | ||
6 | * Authors: Dmitry Chigirev, Vitaly Wool <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/config.h> | ||
15 | #include <linux/linkage.h> | ||
16 | #include <asm/assembler.h> | ||
17 | #include <asm/hardware.h> | ||
18 | |||
19 | #define PWRMAN_VA_BASE IO_ADDRESS(PNX4008_PWRMAN_BASE) | ||
20 | #define PWR_CTRL_REG_OFFS 0x44 | ||
21 | |||
22 | #define SDRAM_CFG_VA_BASE IO_ADDRESS(PNX4008_SDRAM_CFG_BASE) | ||
23 | #define MPMC_STATUS_REG_OFFS 0x4 | ||
24 | |||
25 | .text | ||
26 | |||
27 | ENTRY(pnx4008_cpu_suspend) | ||
28 | @this function should be entered in Direct run mode. | ||
29 | |||
30 | @ save registers on stack | ||
31 | stmfd sp!, {r0 - r6, lr} | ||
32 | |||
33 | @ setup Power Manager base address in r4 | ||
34 | @ and put it's value in r5 | ||
35 | mov r4, #(PWRMAN_VA_BASE & 0xff000000) | ||
36 | orr r4, r4, #(PWRMAN_VA_BASE & 0x00ff0000) | ||
37 | orr r4, r4, #(PWRMAN_VA_BASE & 0x0000ff00) | ||
38 | orr r4, r4, #(PWRMAN_VA_BASE & 0x000000ff) | ||
39 | ldr r5, [r4, #PWR_CTRL_REG_OFFS] | ||
40 | |||
41 | @ setup SDRAM controller base address in r2 | ||
42 | @ and put it's value in r3 | ||
43 | mov r2, #(SDRAM_CFG_VA_BASE & 0xff000000) | ||
44 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x00ff0000) | ||
45 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x0000ff00) | ||
46 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x000000ff) | ||
47 | ldr r3, [r2, #MPMC_STATUS_REG_OFFS] @extra read - HW bug workaround | ||
48 | |||
49 | @ clear SDRAM self-refresh bit latch | ||
50 | and r5, r5, #(~(1 << 8)) | ||
51 | @ clear SDRAM self-refresh bit | ||
52 | and r5, r5, #(~(1 << 9)) | ||
53 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
54 | |||
55 | @ do save current bit settings in r1 | ||
56 | mov r1, r5 | ||
57 | |||
58 | @ set SDRAM self-refresh bit | ||
59 | orr r5, r5, #(1 << 9) | ||
60 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
61 | |||
62 | @ set SDRAM self-refresh bit latch | ||
63 | orr r5, r5, #(1 << 8) | ||
64 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
65 | |||
66 | @ clear SDRAM self-refresh bit latch | ||
67 | and r5, r5, #(~(1 << 8)) | ||
68 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
69 | |||
70 | @ clear SDRAM self-refresh bit | ||
71 | and r5, r5, #(~(1 << 9)) | ||
72 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
73 | |||
74 | @ wait for SDRAM to get into self-refresh mode | ||
75 | 2: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
76 | tst r3, #(1 << 2) | ||
77 | beq 2b | ||
78 | |||
79 | @ to prepare SDRAM to get out of self-refresh mode after wakeup | ||
80 | orr r5, r5, #(1 << 7) | ||
81 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
82 | |||
83 | @ do enter stop mode | ||
84 | orr r5, r5, #(1 << 0) | ||
85 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
86 | nop | ||
87 | nop | ||
88 | nop | ||
89 | nop | ||
90 | nop | ||
91 | nop | ||
92 | nop | ||
93 | nop | ||
94 | nop | ||
95 | |||
96 | @ sleeping now... | ||
97 | |||
98 | @ coming out of STOP mode into Direct Run mode | ||
99 | @ clear STOP mode and SDRAM self-refresh bits | ||
100 | str r1, [r4, #PWR_CTRL_REG_OFFS] | ||
101 | |||
102 | @ wait for SDRAM to get out self-refresh mode | ||
103 | 3: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
104 | tst r3, #5 | ||
105 | bne 3b | ||
106 | |||
107 | @ restore regs and return | ||
108 | ldmfd sp!, {r0 - r6, pc} | ||
109 | |||
110 | ENTRY(pnx4008_cpu_suspend_sz) | ||
111 | .word . - pnx4008_cpu_suspend | ||
112 | |||
113 | ENTRY(pnx4008_cpu_standby) | ||
114 | @ save registers on stack | ||
115 | stmfd sp!, {r0 - r6, lr} | ||
116 | |||
117 | @ setup Power Manager base address in r4 | ||
118 | @ and put it's value in r5 | ||
119 | mov r4, #(PWRMAN_VA_BASE & 0xff000000) | ||
120 | orr r4, r4, #(PWRMAN_VA_BASE & 0x00ff0000) | ||
121 | orr r4, r4, #(PWRMAN_VA_BASE & 0x0000ff00) | ||
122 | orr r4, r4, #(PWRMAN_VA_BASE & 0x000000ff) | ||
123 | ldr r5, [r4, #PWR_CTRL_REG_OFFS] | ||
124 | |||
125 | @ setup SDRAM controller base address in r2 | ||
126 | @ and put it's value in r3 | ||
127 | mov r2, #(SDRAM_CFG_VA_BASE & 0xff000000) | ||
128 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x00ff0000) | ||
129 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x0000ff00) | ||
130 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x000000ff) | ||
131 | ldr r3, [r2, #MPMC_STATUS_REG_OFFS] @extra read - HW bug workaround | ||
132 | |||
133 | @ clear SDRAM self-refresh bit latch | ||
134 | and r5, r5, #(~(1 << 8)) | ||
135 | @ clear SDRAM self-refresh bit | ||
136 | and r5, r5, #(~(1 << 9)) | ||
137 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
138 | |||
139 | @ do save current bit settings in r1 | ||
140 | mov r1, r5 | ||
141 | |||
142 | @ set SDRAM self-refresh bit | ||
143 | orr r5, r5, #(1 << 9) | ||
144 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
145 | |||
146 | @ set SDRAM self-refresh bit latch | ||
147 | orr r5, r5, #(1 << 8) | ||
148 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
149 | |||
150 | @ clear SDRAM self-refresh bit latch | ||
151 | and r5, r5, #(~(1 << 8)) | ||
152 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
153 | |||
154 | @ clear SDRAM self-refresh bit | ||
155 | and r5, r5, #(~(1 << 9)) | ||
156 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
157 | |||
158 | @ wait for SDRAM to get into self-refresh mode | ||
159 | 2: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
160 | tst r3, #(1 << 2) | ||
161 | beq 2b | ||
162 | |||
163 | @ set 'get out of self-refresh mode after wakeup' bit | ||
164 | orr r5, r5, #(1 << 7) | ||
165 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
166 | |||
167 | mcr p15, 0, r0, c7, c0, 4 @ kinda sleeping now... | ||
168 | |||
169 | @ set SDRAM self-refresh bit latch | ||
170 | orr r5, r5, #(1 << 8) | ||
171 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
172 | |||
173 | @ clear SDRAM self-refresh bit latch | ||
174 | and r5, r5, #(~(1 << 8)) | ||
175 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
176 | |||
177 | @ wait for SDRAM to get out self-refresh mode | ||
178 | 3: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
179 | tst r3, #5 | ||
180 | bne 3b | ||
181 | |||
182 | @ restore regs and return | ||
183 | ldmfd sp!, {r0 - r6, pc} | ||
184 | |||
185 | ENTRY(pnx4008_cpu_standby_sz) | ||
186 | .word . - pnx4008_cpu_standby | ||
187 | |||
188 | ENTRY(pnx4008_cache_clean_invalidate) | ||
189 | stmfd sp!, {r0 - r6, lr} | ||
190 | #ifdef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
191 | mcr p15, 0, ip, c7, c6, 0 @ invalidate D cache | ||
192 | #else | ||
193 | 1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate | ||
194 | bne 1b | ||
195 | #endif | ||
196 | ldmfd sp!, {r0 - r6, pc} | ||
diff --git a/arch/arm/mach-pnx4008/time.c b/arch/arm/mach-pnx4008/time.c new file mode 100644 index 000000000000..4ce680698529 --- /dev/null +++ b/arch/arm/mach-pnx4008/time.c | |||
@@ -0,0 +1,141 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/time.c | ||
3 | * | ||
4 | * PNX4008 Timers | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev, Grigory Tolstolytkin <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/config.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/interrupt.h> | ||
19 | #include <linux/sched.h> | ||
20 | #include <linux/spinlock.h> | ||
21 | #include <linux/module.h> | ||
22 | #include <linux/kallsyms.h> | ||
23 | |||
24 | #include <asm/system.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/io.h> | ||
27 | #include <asm/leds.h> | ||
28 | #include <asm/irq.h> | ||
29 | #include <asm/mach/irq.h> | ||
30 | #include <asm/mach/time.h> | ||
31 | |||
32 | #include <linux/time.h> | ||
33 | #include <linux/timex.h> | ||
34 | #include <asm/errno.h> | ||
35 | |||
36 | /*! Note: all timers are UPCOUNTING */ | ||
37 | |||
38 | /*! | ||
39 | * Returns number of us since last clock interrupt. Note that interrupts | ||
40 | * will have been disabled by do_gettimeoffset() | ||
41 | */ | ||
42 | static unsigned long pnx4008_gettimeoffset(void) | ||
43 | { | ||
44 | u32 ticks_to_match = | ||
45 | __raw_readl(HSTIM_MATCH0) - __raw_readl(HSTIM_COUNTER); | ||
46 | u32 elapsed = LATCH - ticks_to_match; | ||
47 | return (elapsed * (tick_nsec / 1000)) / LATCH; | ||
48 | } | ||
49 | |||
50 | /*! | ||
51 | * IRQ handler for the timer | ||
52 | */ | ||
53 | static irqreturn_t pnx4008_timer_interrupt(int irq, void *dev_id, | ||
54 | struct pt_regs *regs) | ||
55 | { | ||
56 | if (__raw_readl(HSTIM_INT) & MATCH0_INT) { | ||
57 | |||
58 | write_seqlock(&xtime_lock); | ||
59 | |||
60 | do { | ||
61 | timer_tick(regs); | ||
62 | |||
63 | /* | ||
64 | * this algorithm takes care of possible delay | ||
65 | * for this interrupt handling longer than a normal | ||
66 | * timer period | ||
67 | */ | ||
68 | __raw_writel(__raw_readl(HSTIM_MATCH0) + LATCH, | ||
69 | HSTIM_MATCH0); | ||
70 | __raw_writel(MATCH0_INT, HSTIM_INT); /* clear interrupt */ | ||
71 | |||
72 | /* | ||
73 | * The goal is to keep incrementing HSTIM_MATCH0 | ||
74 | * register until HSTIM_MATCH0 indicates time after | ||
75 | * what HSTIM_COUNTER indicates. | ||
76 | */ | ||
77 | } while ((signed) | ||
78 | (__raw_readl(HSTIM_MATCH0) - | ||
79 | __raw_readl(HSTIM_COUNTER)) < 0); | ||
80 | |||
81 | write_sequnlock(&xtime_lock); | ||
82 | } | ||
83 | |||
84 | return IRQ_HANDLED; | ||
85 | } | ||
86 | |||
87 | static struct irqaction pnx4008_timer_irq = { | ||
88 | .name = "PNX4008 Tick Timer", | ||
89 | .flags = SA_INTERRUPT | SA_TIMER, | ||
90 | .handler = pnx4008_timer_interrupt | ||
91 | }; | ||
92 | |||
93 | /*! | ||
94 | * Set up timer and timer interrupt. | ||
95 | */ | ||
96 | static __init void pnx4008_setup_timer(void) | ||
97 | { | ||
98 | __raw_writel(RESET_COUNT, MSTIM_CTRL); | ||
99 | while (__raw_readl(MSTIM_COUNTER)) ; /* wait for reset to complete. 100% guarantee event */ | ||
100 | __raw_writel(0, MSTIM_CTRL); /* stop the timer */ | ||
101 | __raw_writel(0, MSTIM_MCTRL); | ||
102 | |||
103 | __raw_writel(RESET_COUNT, HSTIM_CTRL); | ||
104 | while (__raw_readl(HSTIM_COUNTER)) ; /* wait for reset to complete. 100% guarantee event */ | ||
105 | __raw_writel(0, HSTIM_CTRL); | ||
106 | __raw_writel(0, HSTIM_MCTRL); | ||
107 | __raw_writel(0, HSTIM_CCR); | ||
108 | __raw_writel(12, HSTIM_PMATCH); /* scale down to 1 MHZ */ | ||
109 | __raw_writel(LATCH, HSTIM_MATCH0); | ||
110 | __raw_writel(MR0_INT, HSTIM_MCTRL); | ||
111 | |||
112 | setup_irq(HSTIMER_INT, &pnx4008_timer_irq); | ||
113 | |||
114 | __raw_writel(COUNT_ENAB | DEBUG_EN, HSTIM_CTRL); /*start timer, stop when JTAG active */ | ||
115 | } | ||
116 | |||
117 | /* Timer Clock Control in PM register */ | ||
118 | #define TIMCLK_CTRL_REG IO_ADDRESS((PNX4008_PWRMAN_BASE + 0xBC)) | ||
119 | #define WATCHDOG_CLK_EN 1 | ||
120 | #define TIMER_CLK_EN 2 /* HS and MS timers? */ | ||
121 | |||
122 | static u32 timclk_ctrl_reg_save; | ||
123 | |||
124 | void pnx4008_timer_suspend(void) | ||
125 | { | ||
126 | timclk_ctrl_reg_save = __raw_readl(TIMCLK_CTRL_REG); | ||
127 | __raw_writel(0, TIMCLK_CTRL_REG); /* disable timers */ | ||
128 | } | ||
129 | |||
130 | void pnx4008_timer_resume(void) | ||
131 | { | ||
132 | __raw_writel(timclk_ctrl_reg_save, TIMCLK_CTRL_REG); /* enable timers */ | ||
133 | } | ||
134 | |||
135 | struct sys_timer pnx4008_timer = { | ||
136 | .init = pnx4008_setup_timer, | ||
137 | .offset = pnx4008_gettimeoffset, | ||
138 | .suspend = pnx4008_timer_suspend, | ||
139 | .resume = pnx4008_timer_resume, | ||
140 | }; | ||
141 | |||
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 0104fd142e70..ea5137f319c4 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -61,6 +61,7 @@ config MACH_POODLE | |||
61 | bool "Enable Sharp SL-5600 (Poodle) Support" | 61 | bool "Enable Sharp SL-5600 (Poodle) Support" |
62 | depends PXA_SHARPSL_25x | 62 | depends PXA_SHARPSL_25x |
63 | select SHARP_LOCOMO | 63 | select SHARP_LOCOMO |
64 | select PXA_SSP | ||
64 | 65 | ||
65 | config MACH_CORGI | 66 | config MACH_CORGI |
66 | bool "Enable Sharp SL-C700 (Corgi) Support" | 67 | bool "Enable Sharp SL-C700 (Corgi) Support" |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 4e8a983e2b83..1610690be419 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -15,7 +15,7 @@ obj-$(CONFIG_ARCH_PXA_IDP) += idp.o | |||
15 | obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o | 15 | obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o |
16 | obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o | 16 | obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o |
17 | obj-$(CONFIG_MACH_AKITA) += akita-ioexp.o | 17 | obj-$(CONFIG_MACH_AKITA) += akita-ioexp.o |
18 | obj-$(CONFIG_MACH_POODLE) += poodle.o | 18 | obj-$(CONFIG_MACH_POODLE) += poodle.o corgi_ssp.o |
19 | obj-$(CONFIG_MACH_TOSA) += tosa.o | 19 | obj-$(CONFIG_MACH_TOSA) += tosa.o |
20 | 20 | ||
21 | # Support for blinky lights | 21 | # Support for blinky lights |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index d6d726036361..bf6648a83901 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/mmc/host.h> | 21 | #include <linux/mmc/host.h> |
22 | #include <linux/pm.h> | ||
22 | 23 | ||
23 | #include <asm/setup.h> | 24 | #include <asm/setup.h> |
24 | #include <asm/memory.h> | 25 | #include <asm/memory.h> |
@@ -26,6 +27,7 @@ | |||
26 | #include <asm/hardware.h> | 27 | #include <asm/hardware.h> |
27 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
28 | #include <asm/io.h> | 29 | #include <asm/io.h> |
30 | #include <asm/system.h> | ||
29 | 31 | ||
30 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
@@ -310,8 +312,31 @@ static struct platform_device *devices[] __initdata = { | |||
310 | &corgiled_device, | 312 | &corgiled_device, |
311 | }; | 313 | }; |
312 | 314 | ||
315 | static void corgi_poweroff(void) | ||
316 | { | ||
317 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
318 | |||
319 | if (!machine_is_corgi()) | ||
320 | /* Green LED off tells the bootloader to halt */ | ||
321 | reset_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); | ||
322 | arm_machine_restart('h'); | ||
323 | } | ||
324 | |||
325 | static void corgi_restart(char mode) | ||
326 | { | ||
327 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
328 | |||
329 | if (!machine_is_corgi()) | ||
330 | /* Green LED on tells the bootloader to reboot */ | ||
331 | set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); | ||
332 | arm_machine_restart('h'); | ||
333 | } | ||
334 | |||
313 | static void __init corgi_init(void) | 335 | static void __init corgi_init(void) |
314 | { | 336 | { |
337 | pm_power_off = corgi_poweroff; | ||
338 | arm_pm_restart = corgi_restart; | ||
339 | |||
315 | /* setup sleep mode values */ | 340 | /* setup sleep mode values */ |
316 | PWER = 0x00000002; | 341 | PWER = 0x00000002; |
317 | PFER = 0x00000000; | 342 | PFER = 0x00000000; |
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c index 7a1ab73e9e10..4c3de4008a43 100644 --- a/arch/arm/mach-pxa/corgi_pm.c +++ b/arch/arm/mach-pxa/corgi_pm.c | |||
@@ -27,6 +27,13 @@ | |||
27 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
28 | #include "sharpsl.h" | 28 | #include "sharpsl.h" |
29 | 29 | ||
30 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
31 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
32 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
33 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
34 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
35 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
36 | |||
30 | static void corgi_charger_init(void) | 37 | static void corgi_charger_init(void) |
31 | { | 38 | { |
32 | pxa_gpio_mode(CORGI_GPIO_ADC_TEMP_ON | GPIO_OUT); | 39 | pxa_gpio_mode(CORGI_GPIO_ADC_TEMP_ON | GPIO_OUT); |
@@ -195,9 +202,16 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = { | |||
195 | .read_devdata = corgipm_read_devdata, | 202 | .read_devdata = corgipm_read_devdata, |
196 | .charger_wakeup = corgi_charger_wakeup, | 203 | .charger_wakeup = corgi_charger_wakeup, |
197 | .should_wakeup = corgi_should_wakeup, | 204 | .should_wakeup = corgi_should_wakeup, |
198 | .bat_levels = 40, | 205 | .backlight_limit = corgibl_limit_intensity, |
199 | .bat_levels_noac = spitz_battery_levels_noac, | 206 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, |
200 | .bat_levels_acin = spitz_battery_levels_acin, | 207 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, |
208 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | ||
209 | .charge_acin_low = SHARPSL_CHARGE_ON_ACIN_LOW, | ||
210 | .fatal_acin_volt = SHARPSL_FATAL_ACIN_VOLT, | ||
211 | .fatal_noacin_volt= SHARPSL_FATAL_NOACIN_VOLT, | ||
212 | .bat_levels = 40, | ||
213 | .bat_levels_noac = spitz_battery_levels_noac, | ||
214 | .bat_levels_acin = spitz_battery_levels_acin, | ||
201 | .status_high_acin = 188, | 215 | .status_high_acin = 188, |
202 | .status_low_acin = 178, | 216 | .status_low_acin = 178, |
203 | .status_high_noac = 185, | 217 | .status_high_noac = 185, |
@@ -214,6 +228,9 @@ static int __devinit corgipm_init(void) | |||
214 | if (!corgipm_device) | 228 | if (!corgipm_device) |
215 | return -ENOMEM; | 229 | return -ENOMEM; |
216 | 230 | ||
231 | if (!machine_is_corgi()) | ||
232 | corgi_pm_machinfo.batfull_irq = 1; | ||
233 | |||
217 | corgipm_device->dev.platform_data = &corgi_pm_machinfo; | 234 | corgipm_device->dev.platform_data = &corgi_pm_machinfo; |
218 | ret = platform_device_add(corgipm_device); | 235 | ret = platform_device_add(corgipm_device); |
219 | 236 | ||
diff --git a/arch/arm/mach-pxa/corgi_ssp.c b/arch/arm/mach-pxa/corgi_ssp.c index 8a25a1c8019f..f9421318cb7a 100644 --- a/arch/arm/mach-pxa/corgi_ssp.c +++ b/arch/arm/mach-pxa/corgi_ssp.c | |||
@@ -50,12 +50,14 @@ unsigned long corgi_ssp_ads7846_putget(ulong data) | |||
50 | unsigned long ret,flag; | 50 | unsigned long ret,flag; |
51 | 51 | ||
52 | spin_lock_irqsave(&corgi_ssp_lock, flag); | 52 | spin_lock_irqsave(&corgi_ssp_lock, flag); |
53 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 53 | if (ssp_machinfo->cs_ads7846 >= 0) |
54 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
54 | 55 | ||
55 | ssp_write_word(&corgi_ssp_dev,data); | 56 | ssp_write_word(&corgi_ssp_dev,data); |
56 | ret = ssp_read_word(&corgi_ssp_dev); | 57 | ret = ssp_read_word(&corgi_ssp_dev); |
57 | 58 | ||
58 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 59 | if (ssp_machinfo->cs_ads7846 >= 0) |
60 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
59 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); | 61 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); |
60 | 62 | ||
61 | return ret; | 63 | return ret; |
@@ -68,12 +70,14 @@ unsigned long corgi_ssp_ads7846_putget(ulong data) | |||
68 | void corgi_ssp_ads7846_lock(void) | 70 | void corgi_ssp_ads7846_lock(void) |
69 | { | 71 | { |
70 | spin_lock(&corgi_ssp_lock); | 72 | spin_lock(&corgi_ssp_lock); |
71 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 73 | if (ssp_machinfo->cs_ads7846 >= 0) |
74 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
72 | } | 75 | } |
73 | 76 | ||
74 | void corgi_ssp_ads7846_unlock(void) | 77 | void corgi_ssp_ads7846_unlock(void) |
75 | { | 78 | { |
76 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 79 | if (ssp_machinfo->cs_ads7846 >= 0) |
80 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
77 | spin_unlock(&corgi_ssp_lock); | 81 | spin_unlock(&corgi_ssp_lock); |
78 | } | 82 | } |
79 | 83 | ||
@@ -110,11 +114,13 @@ unsigned long corgi_ssp_dac_put(ulong data) | |||
110 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), sscr1, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_lcdcon)); | 114 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), sscr1, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_lcdcon)); |
111 | ssp_enable(&corgi_ssp_dev); | 115 | ssp_enable(&corgi_ssp_dev); |
112 | 116 | ||
113 | GPCR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | 117 | if (ssp_machinfo->cs_lcdcon >= 0) |
118 | GPCR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | ||
114 | ssp_write_word(&corgi_ssp_dev,data); | 119 | ssp_write_word(&corgi_ssp_dev,data); |
115 | /* Read null data back from device to prevent SSP overflow */ | 120 | /* Read null data back from device to prevent SSP overflow */ |
116 | ssp_read_word(&corgi_ssp_dev); | 121 | ssp_read_word(&corgi_ssp_dev); |
117 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | 122 | if (ssp_machinfo->cs_lcdcon >= 0) |
123 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | ||
118 | 124 | ||
119 | ssp_disable(&corgi_ssp_dev); | 125 | ssp_disable(&corgi_ssp_dev); |
120 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); | 126 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); |
@@ -147,7 +153,8 @@ int corgi_ssp_max1111_get(ulong data) | |||
147 | int voltage,voltage1,voltage2; | 153 | int voltage,voltage1,voltage2; |
148 | 154 | ||
149 | spin_lock_irqsave(&corgi_ssp_lock, flag); | 155 | spin_lock_irqsave(&corgi_ssp_lock, flag); |
150 | GPCR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | 156 | if (ssp_machinfo->cs_max1111 >= 0) |
157 | GPCR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | ||
151 | ssp_disable(&corgi_ssp_dev); | 158 | ssp_disable(&corgi_ssp_dev); |
152 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_max1111)); | 159 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_max1111)); |
153 | ssp_enable(&corgi_ssp_dev); | 160 | ssp_enable(&corgi_ssp_dev); |
@@ -169,7 +176,8 @@ int corgi_ssp_max1111_get(ulong data) | |||
169 | ssp_disable(&corgi_ssp_dev); | 176 | ssp_disable(&corgi_ssp_dev); |
170 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); | 177 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); |
171 | ssp_enable(&corgi_ssp_dev); | 178 | ssp_enable(&corgi_ssp_dev); |
172 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | 179 | if (ssp_machinfo->cs_max1111 >= 0) |
180 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | ||
173 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); | 181 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); |
174 | 182 | ||
175 | if (voltage1 & 0xc0 || voltage2 & 0x3f) | 183 | if (voltage1 & 0xc0 || voltage2 & 0x3f) |
@@ -196,9 +204,12 @@ static int __init corgi_ssp_probe(struct platform_device *dev) | |||
196 | int ret; | 204 | int ret; |
197 | 205 | ||
198 | /* Chip Select - Disable All */ | 206 | /* Chip Select - Disable All */ |
199 | pxa_gpio_mode(ssp_machinfo->cs_lcdcon | GPIO_OUT | GPIO_DFLT_HIGH); | 207 | if (ssp_machinfo->cs_lcdcon >= 0) |
200 | pxa_gpio_mode(ssp_machinfo->cs_max1111 | GPIO_OUT | GPIO_DFLT_HIGH); | 208 | pxa_gpio_mode(ssp_machinfo->cs_lcdcon | GPIO_OUT | GPIO_DFLT_HIGH); |
201 | pxa_gpio_mode(ssp_machinfo->cs_ads7846 | GPIO_OUT | GPIO_DFLT_HIGH); | 209 | if (ssp_machinfo->cs_max1111 >= 0) |
210 | pxa_gpio_mode(ssp_machinfo->cs_max1111 | GPIO_OUT | GPIO_DFLT_HIGH); | ||
211 | if (ssp_machinfo->cs_ads7846 >= 0) | ||
212 | pxa_gpio_mode(ssp_machinfo->cs_ads7846 | GPIO_OUT | GPIO_DFLT_HIGH); | ||
202 | 213 | ||
203 | ret = ssp_init(&corgi_ssp_dev, ssp_machinfo->port, 0); | 214 | ret = ssp_init(&corgi_ssp_dev, ssp_machinfo->port, 0); |
204 | 215 | ||
@@ -229,9 +240,12 @@ static int corgi_ssp_suspend(struct platform_device *dev, pm_message_t state) | |||
229 | 240 | ||
230 | static int corgi_ssp_resume(struct platform_device *dev) | 241 | static int corgi_ssp_resume(struct platform_device *dev) |
231 | { | 242 | { |
232 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); /* High - Disable LCD Control/Timing Gen */ | 243 | if (ssp_machinfo->cs_lcdcon >= 0) |
233 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); /* High - Disable MAX1111*/ | 244 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); /* High - Disable LCD Control/Timing Gen */ |
234 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); /* High - Disable ADS7846*/ | 245 | if (ssp_machinfo->cs_max1111 >= 0) |
246 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); /* High - Disable MAX1111*/ | ||
247 | if (ssp_machinfo->cs_ads7846 >= 0) | ||
248 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); /* High - Disable ADS7846*/ | ||
235 | ssp_restore_state(&corgi_ssp_dev,&corgi_ssp_state); | 249 | ssp_restore_state(&corgi_ssp_dev,&corgi_ssp_state); |
236 | ssp_enable(&corgi_ssp_dev); | 250 | ssp_enable(&corgi_ssp_dev); |
237 | 251 | ||
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 3e26d7ce5bb2..1ab26c6914f2 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -22,6 +22,10 @@ | |||
22 | #include <linux/mtd/mtd.h> | 22 | #include <linux/mtd/mtd.h> |
23 | #include <linux/mtd/partitions.h> | 23 | #include <linux/mtd/partitions.h> |
24 | 24 | ||
25 | #include <linux/spi/spi.h> | ||
26 | #include <linux/spi/ads7846.h> | ||
27 | #include <asm/arch/pxa2xx_spi.h> | ||
28 | |||
25 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
26 | #include <asm/memory.h> | 30 | #include <asm/memory.h> |
27 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
@@ -196,6 +200,78 @@ static struct resource smc91x_resources[] = { | |||
196 | }, | 200 | }, |
197 | }; | 201 | }; |
198 | 202 | ||
203 | /* ADS7846 is connected through SSP ... and if your board has J5 populated, | ||
204 | * you can select it to replace the ucb1400 by switching the touchscreen cable | ||
205 | * (to J5) and poking board registers (as done below). Else it's only useful | ||
206 | * for the temperature sensors. | ||
207 | */ | ||
208 | static struct resource pxa_ssp_resources[] = { | ||
209 | [0] = { | ||
210 | .start = __PREG(SSCR0_P(1)), | ||
211 | .end = __PREG(SSCR0_P(1)) + 0x14, | ||
212 | .flags = IORESOURCE_MEM, | ||
213 | }, | ||
214 | [1] = { | ||
215 | .start = IRQ_SSP, | ||
216 | .end = IRQ_SSP, | ||
217 | .flags = IORESOURCE_IRQ, | ||
218 | }, | ||
219 | }; | ||
220 | |||
221 | static struct pxa2xx_spi_master pxa_ssp_master_info = { | ||
222 | .ssp_type = PXA25x_SSP, | ||
223 | .clock_enable = CKEN3_SSP, | ||
224 | .num_chipselect = 0, | ||
225 | }; | ||
226 | |||
227 | static struct platform_device pxa_ssp = { | ||
228 | .name = "pxa2xx-spi", | ||
229 | .id = 1, | ||
230 | .resource = pxa_ssp_resources, | ||
231 | .num_resources = ARRAY_SIZE(pxa_ssp_resources), | ||
232 | .dev = { | ||
233 | .platform_data = &pxa_ssp_master_info, | ||
234 | }, | ||
235 | }; | ||
236 | |||
237 | static int lubbock_ads7846_pendown_state(void) | ||
238 | { | ||
239 | /* TS_BUSY is bit 8 in LUB_MISC_RD, but pendown is irq-only */ | ||
240 | return 0; | ||
241 | } | ||
242 | |||
243 | static struct ads7846_platform_data ads_info = { | ||
244 | .model = 7846, | ||
245 | .vref_delay_usecs = 100, /* internal, no cap */ | ||
246 | .get_pendown_state = lubbock_ads7846_pendown_state, | ||
247 | // .x_plate_ohms = 500, /* GUESS! */ | ||
248 | // .y_plate_ohms = 500, /* GUESS! */ | ||
249 | }; | ||
250 | |||
251 | static void ads7846_cs(u32 command) | ||
252 | { | ||
253 | static const unsigned TS_nCS = 1 << 11; | ||
254 | lubbock_set_misc_wr(TS_nCS, (command == PXA2XX_CS_ASSERT) ? 0 : TS_nCS); | ||
255 | } | ||
256 | |||
257 | static struct pxa2xx_spi_chip ads_hw = { | ||
258 | .tx_threshold = 1, | ||
259 | .rx_threshold = 2, | ||
260 | .cs_control = ads7846_cs, | ||
261 | }; | ||
262 | |||
263 | static struct spi_board_info spi_board_info[] __initdata = { { | ||
264 | .modalias = "ads7846", | ||
265 | .platform_data = &ads_info, | ||
266 | .controller_data = &ads_hw, | ||
267 | .irq = LUBBOCK_BB_IRQ, | ||
268 | .max_speed_hz = 120000 /* max sample rate at 3V */ | ||
269 | * 26 /* command + data + overhead */, | ||
270 | .bus_num = 1, | ||
271 | .chip_select = 0, | ||
272 | }, | ||
273 | }; | ||
274 | |||
199 | static struct platform_device smc91x_device = { | 275 | static struct platform_device smc91x_device = { |
200 | .name = "smc91x", | 276 | .name = "smc91x", |
201 | .id = -1, | 277 | .id = -1, |
@@ -272,6 +348,7 @@ static struct platform_device *devices[] __initdata = { | |||
272 | &smc91x_device, | 348 | &smc91x_device, |
273 | &lubbock_flash_device[0], | 349 | &lubbock_flash_device[0], |
274 | &lubbock_flash_device[1], | 350 | &lubbock_flash_device[1], |
351 | &pxa_ssp, | ||
275 | }; | 352 | }; |
276 | 353 | ||
277 | static struct pxafb_mach_info sharp_lm8v31 __initdata = { | 354 | static struct pxafb_mach_info sharp_lm8v31 __initdata = { |
@@ -400,6 +477,8 @@ static void __init lubbock_init(void) | |||
400 | lubbock_flash_data[flashboot^1].name = "application-flash"; | 477 | lubbock_flash_data[flashboot^1].name = "application-flash"; |
401 | lubbock_flash_data[flashboot].name = "boot-rom"; | 478 | lubbock_flash_data[flashboot].name = "boot-rom"; |
402 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); | 479 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); |
480 | |||
481 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | ||
403 | } | 482 | } |
404 | 483 | ||
405 | static struct map_desc lubbock_io_desc[] __initdata = { | 484 | static struct map_desc lubbock_io_desc[] __initdata = { |
@@ -416,6 +495,11 @@ static void __init lubbock_map_io(void) | |||
416 | pxa_map_io(); | 495 | pxa_map_io(); |
417 | iotable_init(lubbock_io_desc, ARRAY_SIZE(lubbock_io_desc)); | 496 | iotable_init(lubbock_io_desc, ARRAY_SIZE(lubbock_io_desc)); |
418 | 497 | ||
498 | /* SSP data pins */ | ||
499 | pxa_gpio_mode(GPIO23_SCLK_MD); | ||
500 | pxa_gpio_mode(GPIO25_STXD_MD); | ||
501 | pxa_gpio_mode(GPIO26_SRXD_MD); | ||
502 | |||
419 | /* This enables the BTUART */ | 503 | /* This enables the BTUART */ |
420 | pxa_gpio_mode(GPIO42_BTRXD_MD); | 504 | pxa_gpio_mode(GPIO42_BTRXD_MD); |
421 | pxa_gpio_mode(GPIO43_BTTXD_MD); | 505 | pxa_gpio_mode(GPIO43_BTTXD_MD); |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 98356f810007..b307f11951df 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -95,7 +95,10 @@ static void __init mainstone_init_irq(void) | |||
95 | for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) { | 95 | for(irq = MAINSTONE_IRQ(0); irq <= MAINSTONE_IRQ(15); irq++) { |
96 | set_irq_chip(irq, &mainstone_irq_chip); | 96 | set_irq_chip(irq, &mainstone_irq_chip); |
97 | set_irq_handler(irq, do_level_IRQ); | 97 | set_irq_handler(irq, do_level_IRQ); |
98 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 98 | if (irq == MAINSTONE_IRQ(10) || irq == MAINSTONE_IRQ(14)) |
99 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE | IRQF_NOAUTOEN); | ||
100 | else | ||
101 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
99 | } | 102 | } |
100 | set_irq_flags(MAINSTONE_IRQ(8), 0); | 103 | set_irq_flags(MAINSTONE_IRQ(8), 0); |
101 | set_irq_flags(MAINSTONE_IRQ(12), 0); | 104 | set_irq_flags(MAINSTONE_IRQ(12), 0); |
@@ -490,6 +493,7 @@ static void __init mainstone_map_io(void) | |||
490 | MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") | 493 | MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") |
491 | /* Maintainer: MontaVista Software Inc. */ | 494 | /* Maintainer: MontaVista Software Inc. */ |
492 | .phys_io = 0x40000000, | 495 | .phys_io = 0x40000000, |
496 | .boot_params = 0xa0000100, /* BLOB boot parameter setting */ | ||
493 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | 497 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
494 | .map_io = mainstone_map_io, | 498 | .map_io = mainstone_map_io, |
495 | .init_irq = mainstone_init_irq, | 499 | .init_irq = mainstone_init_irq, |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index a042473deedd..9a9fa87cea9f 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -18,11 +18,14 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/fb.h> | 20 | #include <linux/fb.h> |
21 | #include <linux/pm.h> | ||
22 | #include <linux/delay.h> | ||
21 | 23 | ||
22 | #include <asm/hardware.h> | 24 | #include <asm/hardware.h> |
23 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
24 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
25 | #include <asm/setup.h> | 27 | #include <asm/setup.h> |
28 | #include <asm/system.h> | ||
26 | 29 | ||
27 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
@@ -34,12 +37,15 @@ | |||
34 | #include <asm/arch/irda.h> | 37 | #include <asm/arch/irda.h> |
35 | #include <asm/arch/poodle.h> | 38 | #include <asm/arch/poodle.h> |
36 | #include <asm/arch/pxafb.h> | 39 | #include <asm/arch/pxafb.h> |
40 | #include <asm/arch/sharpsl.h> | ||
41 | #include <asm/arch/ssp.h> | ||
37 | 42 | ||
38 | #include <asm/hardware/scoop.h> | 43 | #include <asm/hardware/scoop.h> |
39 | #include <asm/hardware/locomo.h> | 44 | #include <asm/hardware/locomo.h> |
40 | #include <asm/mach/sharpsl_param.h> | 45 | #include <asm/mach/sharpsl_param.h> |
41 | 46 | ||
42 | #include "generic.h" | 47 | #include "generic.h" |
48 | #include "sharpsl.h" | ||
43 | 49 | ||
44 | static struct resource poodle_scoop_resources[] = { | 50 | static struct resource poodle_scoop_resources[] = { |
45 | [0] = { | 51 | [0] = { |
@@ -117,13 +123,71 @@ static struct resource locomo_resources[] = { | |||
117 | }, | 123 | }, |
118 | }; | 124 | }; |
119 | 125 | ||
120 | static struct platform_device locomo_device = { | 126 | struct platform_device poodle_locomo_device = { |
121 | .name = "locomo", | 127 | .name = "locomo", |
122 | .id = 0, | 128 | .id = 0, |
123 | .num_resources = ARRAY_SIZE(locomo_resources), | 129 | .num_resources = ARRAY_SIZE(locomo_resources), |
124 | .resource = locomo_resources, | 130 | .resource = locomo_resources, |
125 | }; | 131 | }; |
126 | 132 | ||
133 | EXPORT_SYMBOL(poodle_locomo_device); | ||
134 | |||
135 | /* | ||
136 | * Poodle SSP Device | ||
137 | */ | ||
138 | |||
139 | struct platform_device poodle_ssp_device = { | ||
140 | .name = "corgi-ssp", | ||
141 | .id = -1, | ||
142 | }; | ||
143 | |||
144 | struct corgissp_machinfo poodle_ssp_machinfo = { | ||
145 | .port = 1, | ||
146 | .cs_lcdcon = -1, | ||
147 | .cs_ads7846 = -1, | ||
148 | .cs_max1111 = -1, | ||
149 | .clk_lcdcon = 2, | ||
150 | .clk_ads7846 = 36, | ||
151 | .clk_max1111 = 2, | ||
152 | }; | ||
153 | |||
154 | |||
155 | /* | ||
156 | * Poodle Touch Screen Device | ||
157 | */ | ||
158 | static struct resource poodlets_resources[] = { | ||
159 | [0] = { | ||
160 | .start = POODLE_IRQ_GPIO_TP_INT, | ||
161 | .end = POODLE_IRQ_GPIO_TP_INT, | ||
162 | .flags = IORESOURCE_IRQ, | ||
163 | }, | ||
164 | }; | ||
165 | |||
166 | static unsigned long poodle_get_hsync_len(void) | ||
167 | { | ||
168 | return 0; | ||
169 | } | ||
170 | |||
171 | static void poodle_null_hsync(void) | ||
172 | { | ||
173 | } | ||
174 | |||
175 | static struct corgits_machinfo poodle_ts_machinfo = { | ||
176 | .get_hsync_len = poodle_get_hsync_len, | ||
177 | .put_hsync = poodle_null_hsync, | ||
178 | .wait_hsync = poodle_null_hsync, | ||
179 | }; | ||
180 | |||
181 | static struct platform_device poodle_ts_device = { | ||
182 | .name = "corgi-ts", | ||
183 | .dev = { | ||
184 | .platform_data = &poodle_ts_machinfo, | ||
185 | }, | ||
186 | .id = -1, | ||
187 | .num_resources = ARRAY_SIZE(poodlets_resources), | ||
188 | .resource = poodlets_resources, | ||
189 | }; | ||
190 | |||
127 | 191 | ||
128 | /* | 192 | /* |
129 | * MMC/SD Device | 193 | * MMC/SD Device |
@@ -141,7 +205,9 @@ static int poodle_mci_init(struct device *dev, irqreturn_t (*poodle_detect_int)( | |||
141 | pxa_gpio_mode(GPIO6_MMCCLK_MD); | 205 | pxa_gpio_mode(GPIO6_MMCCLK_MD); |
142 | pxa_gpio_mode(GPIO8_MMCCS0_MD); | 206 | pxa_gpio_mode(GPIO8_MMCCS0_MD); |
143 | pxa_gpio_mode(POODLE_GPIO_nSD_DETECT | GPIO_IN); | 207 | pxa_gpio_mode(POODLE_GPIO_nSD_DETECT | GPIO_IN); |
208 | pxa_gpio_mode(POODLE_GPIO_nSD_WP | GPIO_IN); | ||
144 | pxa_gpio_mode(POODLE_GPIO_SD_PWR | GPIO_OUT); | 209 | pxa_gpio_mode(POODLE_GPIO_SD_PWR | GPIO_OUT); |
210 | pxa_gpio_mode(POODLE_GPIO_SD_PWR1 | GPIO_OUT); | ||
145 | 211 | ||
146 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); | 212 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); |
147 | 213 | ||
@@ -160,12 +226,22 @@ static void poodle_mci_setpower(struct device *dev, unsigned int vdd) | |||
160 | { | 226 | { |
161 | struct pxamci_platform_data* p_d = dev->platform_data; | 227 | struct pxamci_platform_data* p_d = dev->platform_data; |
162 | 228 | ||
163 | if (( 1 << vdd) & p_d->ocr_mask) | 229 | if (( 1 << vdd) & p_d->ocr_mask) { |
164 | GPSR1 = GPIO_bit(POODLE_GPIO_SD_PWR); | 230 | GPSR(POODLE_GPIO_SD_PWR) = GPIO_bit(POODLE_GPIO_SD_PWR); |
165 | else | 231 | mdelay(2); |
166 | GPCR1 = GPIO_bit(POODLE_GPIO_SD_PWR); | 232 | GPSR(POODLE_GPIO_SD_PWR1) = GPIO_bit(POODLE_GPIO_SD_PWR1); |
233 | } else { | ||
234 | GPCR(POODLE_GPIO_SD_PWR1) = GPIO_bit(POODLE_GPIO_SD_PWR1); | ||
235 | GPCR(POODLE_GPIO_SD_PWR) = GPIO_bit(POODLE_GPIO_SD_PWR); | ||
236 | } | ||
237 | } | ||
238 | |||
239 | static int poodle_mci_get_ro(struct device *dev) | ||
240 | { | ||
241 | return GPLR(POODLE_GPIO_nSD_WP) & GPIO_bit(POODLE_GPIO_nSD_WP); | ||
167 | } | 242 | } |
168 | 243 | ||
244 | |||
169 | static void poodle_mci_exit(struct device *dev, void *data) | 245 | static void poodle_mci_exit(struct device *dev, void *data) |
170 | { | 246 | { |
171 | free_irq(POODLE_IRQ_GPIO_nSD_DETECT, data); | 247 | free_irq(POODLE_IRQ_GPIO_nSD_DETECT, data); |
@@ -174,6 +250,7 @@ static void poodle_mci_exit(struct device *dev, void *data) | |||
174 | static struct pxamci_platform_data poodle_mci_platform_data = { | 250 | static struct pxamci_platform_data poodle_mci_platform_data = { |
175 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 251 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
176 | .init = poodle_mci_init, | 252 | .init = poodle_mci_init, |
253 | .get_ro = poodle_mci_get_ro, | ||
177 | .setpower = poodle_mci_setpower, | 254 | .setpower = poodle_mci_setpower, |
178 | .exit = poodle_mci_exit, | 255 | .exit = poodle_mci_exit, |
179 | }; | 256 | }; |
@@ -243,14 +320,31 @@ static struct pxafb_mach_info poodle_fb_info __initdata = { | |||
243 | }; | 320 | }; |
244 | 321 | ||
245 | static struct platform_device *devices[] __initdata = { | 322 | static struct platform_device *devices[] __initdata = { |
246 | &locomo_device, | 323 | &poodle_locomo_device, |
247 | &poodle_scoop_device, | 324 | &poodle_scoop_device, |
325 | &poodle_ssp_device, | ||
326 | &poodle_ts_device, | ||
248 | }; | 327 | }; |
249 | 328 | ||
329 | static void poodle_poweroff(void) | ||
330 | { | ||
331 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
332 | arm_machine_restart('h'); | ||
333 | } | ||
334 | |||
335 | static void poodle_restart(char mode) | ||
336 | { | ||
337 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
338 | arm_machine_restart('h'); | ||
339 | } | ||
340 | |||
250 | static void __init poodle_init(void) | 341 | static void __init poodle_init(void) |
251 | { | 342 | { |
252 | int ret = 0; | 343 | int ret = 0; |
253 | 344 | ||
345 | pm_power_off = poodle_poweroff; | ||
346 | arm_pm_restart = poodle_restart; | ||
347 | |||
254 | /* setup sleep mode values */ | 348 | /* setup sleep mode values */ |
255 | PWER = 0x00000002; | 349 | PWER = 0x00000002; |
256 | PFER = 0x00000000; | 350 | PFER = 0x00000000; |
@@ -288,6 +382,7 @@ static void __init poodle_init(void) | |||
288 | GPSR1 = 0x00000000; | 382 | GPSR1 = 0x00000000; |
289 | GPSR2 = 0x00000000; | 383 | GPSR2 = 0x00000000; |
290 | 384 | ||
385 | set_pxa_fb_parent(&poodle_locomo_device.dev); | ||
291 | set_pxa_fb_info(&poodle_fb_info); | 386 | set_pxa_fb_info(&poodle_fb_info); |
292 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); | 387 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); |
293 | pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT); | 388 | pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT); |
@@ -301,6 +396,7 @@ static void __init poodle_init(void) | |||
301 | if (ret) { | 396 | if (ret) { |
302 | printk(KERN_WARNING "poodle: Unable to register LoCoMo device\n"); | 397 | printk(KERN_WARNING "poodle: Unable to register LoCoMo device\n"); |
303 | } | 398 | } |
399 | corgi_ssp_set_machinfo(&poodle_ssp_machinfo); | ||
304 | } | 400 | } |
305 | 401 | ||
306 | static void __init fixup_poodle(struct machine_desc *desc, | 402 | static void __init fixup_poodle(struct machine_desc *desc, |
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index 6d402b262d8a..0f1648780c41 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c | |||
@@ -128,6 +128,9 @@ struct battery_thresh spitz_battery_levels_noac[] = { | |||
128 | */ | 128 | */ |
129 | int sharpsl_pm_pxa_read_max1111(int channel) | 129 | int sharpsl_pm_pxa_read_max1111(int channel) |
130 | { | 130 | { |
131 | if (machine_is_tosa()) // Ugly, better move this function into another module | ||
132 | return 0; | ||
133 | |||
131 | return corgi_ssp_max1111_get((channel << MAXCTRL_SEL_SH) | MAXCTRL_PD0 | MAXCTRL_PD1 | 134 | return corgi_ssp_max1111_get((channel << MAXCTRL_SEL_SH) | MAXCTRL_PD0 | MAXCTRL_PD1 |
132 | | MAXCTRL_SGL | MAXCTRL_UNI | MAXCTRL_STR); | 135 | | MAXCTRL_SGL | MAXCTRL_UNI | MAXCTRL_STR); |
133 | } | 136 | } |
@@ -156,7 +159,7 @@ void sharpsl_pm_pxa_init(void) | |||
156 | else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal),IRQT_FALLING); | 159 | else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal),IRQT_FALLING); |
157 | } | 160 | } |
158 | 161 | ||
159 | if (!machine_is_corgi()) | 162 | if (sharpsl_pm.machinfo->batfull_irq) |
160 | { | 163 | { |
161 | /* Register interrupt handler. */ | 164 | /* Register interrupt handler. */ |
162 | if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, SA_INTERRUPT, "CO", sharpsl_chrg_full_isr)) { | 165 | if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, SA_INTERRUPT, "CO", sharpsl_chrg_full_isr)) { |
@@ -174,6 +177,6 @@ void sharpsl_pm_pxa_remove(void) | |||
174 | if (sharpsl_pm.machinfo->gpio_fatal) | 177 | if (sharpsl_pm.machinfo->gpio_fatal) |
175 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); | 178 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); |
176 | 179 | ||
177 | if (!machine_is_corgi()) | 180 | if (sharpsl_pm.machinfo->batfull_irq) |
178 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); | 181 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); |
179 | } | 182 | } |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 19b372df544a..eb9937f6f5cd 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/mmc/host.h> | 22 | #include <linux/mmc/host.h> |
23 | #include <linux/pm.h> | ||
23 | 24 | ||
24 | #include <asm/setup.h> | 25 | #include <asm/setup.h> |
25 | #include <asm/memory.h> | 26 | #include <asm/memory.h> |
@@ -27,6 +28,7 @@ | |||
27 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
28 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
29 | #include <asm/io.h> | 30 | #include <asm/io.h> |
31 | #include <asm/system.h> | ||
30 | 32 | ||
31 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
@@ -371,6 +373,7 @@ static int spitz_ohci_init(struct device *dev) | |||
371 | static struct pxaohci_platform_data spitz_ohci_platform_data = { | 373 | static struct pxaohci_platform_data spitz_ohci_platform_data = { |
372 | .port_mode = PMM_NPS_MODE, | 374 | .port_mode = PMM_NPS_MODE, |
373 | .init = spitz_ohci_init, | 375 | .init = spitz_ohci_init, |
376 | .power_budget = 150, | ||
374 | }; | 377 | }; |
375 | 378 | ||
376 | 379 | ||
@@ -431,8 +434,31 @@ static struct platform_device *devices[] __initdata = { | |||
431 | &spitzled_device, | 434 | &spitzled_device, |
432 | }; | 435 | }; |
433 | 436 | ||
437 | static void spitz_poweroff(void) | ||
438 | { | ||
439 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
440 | |||
441 | pxa_gpio_mode(SPITZ_GPIO_ON_RESET | GPIO_OUT); | ||
442 | GPSR(SPITZ_GPIO_ON_RESET) = GPIO_bit(SPITZ_GPIO_ON_RESET); | ||
443 | |||
444 | mdelay(1000); | ||
445 | arm_machine_restart('h'); | ||
446 | } | ||
447 | |||
448 | static void spitz_restart(char mode) | ||
449 | { | ||
450 | /* Bootloader magic for a reboot */ | ||
451 | if((MSC0 & 0xffff0000) == 0x7ff00000) | ||
452 | MSC0 = (MSC0 & 0xffff) | 0x7ee00000; | ||
453 | |||
454 | spitz_poweroff(); | ||
455 | } | ||
456 | |||
434 | static void __init common_init(void) | 457 | static void __init common_init(void) |
435 | { | 458 | { |
459 | pm_power_off = spitz_poweroff; | ||
460 | arm_pm_restart = spitz_restart; | ||
461 | |||
436 | PMCR = 0x00; | 462 | PMCR = 0x00; |
437 | 463 | ||
438 | /* setup sleep mode values */ | 464 | /* setup sleep mode values */ |
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c index 5e5bdc898482..40be833079c7 100644 --- a/arch/arm/mach-pxa/spitz_pm.c +++ b/arch/arm/mach-pxa/spitz_pm.c | |||
@@ -27,6 +27,13 @@ | |||
27 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
28 | #include "sharpsl.h" | 28 | #include "sharpsl.h" |
29 | 29 | ||
30 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
31 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
32 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
33 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
34 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
35 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
36 | |||
30 | static int spitz_last_ac_status; | 37 | static int spitz_last_ac_status; |
31 | 38 | ||
32 | static void spitz_charger_init(void) | 39 | static void spitz_charger_init(void) |
@@ -190,6 +197,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
190 | .gpio_batlock = SPITZ_GPIO_BAT_COVER, | 197 | .gpio_batlock = SPITZ_GPIO_BAT_COVER, |
191 | .gpio_acin = SPITZ_GPIO_AC_IN, | 198 | .gpio_acin = SPITZ_GPIO_AC_IN, |
192 | .gpio_batfull = SPITZ_GPIO_CHRG_FULL, | 199 | .gpio_batfull = SPITZ_GPIO_CHRG_FULL, |
200 | .batfull_irq = 1, | ||
193 | .gpio_fatal = SPITZ_GPIO_FATAL_BAT, | 201 | .gpio_fatal = SPITZ_GPIO_FATAL_BAT, |
194 | .discharge = spitz_discharge, | 202 | .discharge = spitz_discharge, |
195 | .discharge1 = spitz_discharge1, | 203 | .discharge1 = spitz_discharge1, |
@@ -200,6 +208,13 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
200 | .read_devdata = spitzpm_read_devdata, | 208 | .read_devdata = spitzpm_read_devdata, |
201 | .charger_wakeup = spitz_charger_wakeup, | 209 | .charger_wakeup = spitz_charger_wakeup, |
202 | .should_wakeup = spitz_should_wakeup, | 210 | .should_wakeup = spitz_should_wakeup, |
211 | .backlight_limit = corgibl_limit_intensity, | ||
212 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, | ||
213 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, | ||
214 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | ||
215 | .charge_acin_low = SHARPSL_CHARGE_ON_ACIN_LOW, | ||
216 | .fatal_acin_volt = SHARPSL_FATAL_ACIN_VOLT, | ||
217 | .fatal_noacin_volt= SHARPSL_FATAL_NOACIN_VOLT, | ||
203 | .bat_levels = 40, | 218 | .bat_levels = 40, |
204 | .bat_levels_noac = spitz_battery_levels_noac, | 219 | .bat_levels_noac = spitz_battery_levels_noac, |
205 | .bat_levels_acin = spitz_battery_levels_acin, | 220 | .bat_levels_acin = spitz_battery_levels_acin, |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 76c0e7f0a219..7152bc13680f 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -19,12 +19,15 @@ | |||
19 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/mmc/host.h> | 21 | #include <linux/mmc/host.h> |
22 | #include <linux/pm.h> | ||
23 | #include <linux/delay.h> | ||
22 | 24 | ||
23 | #include <asm/setup.h> | 25 | #include <asm/setup.h> |
24 | #include <asm/memory.h> | 26 | #include <asm/memory.h> |
25 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
26 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
27 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
30 | #include <asm/system.h> | ||
28 | #include <asm/arch/irda.h> | 31 | #include <asm/arch/irda.h> |
29 | #include <asm/arch/mmc.h> | 32 | #include <asm/arch/mmc.h> |
30 | #include <asm/arch/udc.h> | 33 | #include <asm/arch/udc.h> |
@@ -266,8 +269,31 @@ static struct platform_device *devices[] __initdata = { | |||
266 | &tosaled_device, | 269 | &tosaled_device, |
267 | }; | 270 | }; |
268 | 271 | ||
272 | static void tosa_poweroff(void) | ||
273 | { | ||
274 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
275 | |||
276 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_OUT); | ||
277 | GPSR(TOSA_GPIO_ON_RESET) = GPIO_bit(TOSA_GPIO_ON_RESET); | ||
278 | |||
279 | mdelay(1000); | ||
280 | arm_machine_restart('h'); | ||
281 | } | ||
282 | |||
283 | static void tosa_restart(char mode) | ||
284 | { | ||
285 | /* Bootloader magic for a reboot */ | ||
286 | if((MSC0 & 0xffff0000) == 0x7ff00000) | ||
287 | MSC0 = (MSC0 & 0xffff) | 0x7ee00000; | ||
288 | |||
289 | tosa_poweroff(); | ||
290 | } | ||
291 | |||
269 | static void __init tosa_init(void) | 292 | static void __init tosa_init(void) |
270 | { | 293 | { |
294 | pm_power_off = tosa_poweroff; | ||
295 | arm_pm_restart = tosa_restart; | ||
296 | |||
271 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_IN); | 297 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_IN); |
272 | pxa_gpio_mode(TOSA_GPIO_TC6393_INT | GPIO_IN); | 298 | pxa_gpio_mode(TOSA_GPIO_TC6393_INT | GPIO_IN); |
273 | pxa_gpio_mode(TOSA_GPIO_USB_IN | GPIO_IN); | 299 | pxa_gpio_mode(TOSA_GPIO_USB_IN | GPIO_IN); |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index d4a586e38d5b..693fb1e396e0 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -137,8 +137,11 @@ static struct amba_device *amba_devs[] __initdata = { | |||
137 | static void __init gic_init_irq(void) | 137 | static void __init gic_init_irq(void) |
138 | { | 138 | { |
139 | #ifdef CONFIG_REALVIEW_MPCORE | 139 | #ifdef CONFIG_REALVIEW_MPCORE |
140 | unsigned int pldctrl; | ||
140 | writel(0x0000a05f, __io_address(REALVIEW_SYS_LOCK)); | 141 | writel(0x0000a05f, __io_address(REALVIEW_SYS_LOCK)); |
141 | writel(0x008003c0, __io_address(REALVIEW_SYS_BASE) + 0xd8); | 142 | pldctrl = readl(__io_address(REALVIEW_SYS_BASE) + 0xd8); |
143 | pldctrl |= 0x00800000; /* New irq mode */ | ||
144 | writel(pldctrl, __io_address(REALVIEW_SYS_BASE) + 0xd8); | ||
142 | writel(0x00000000, __io_address(REALVIEW_SYS_LOCK)); | 145 | writel(0x00000000, __io_address(REALVIEW_SYS_LOCK)); |
143 | #endif | 146 | #endif |
144 | gic_dist_init(__io_address(REALVIEW_GIC_DIST_BASE)); | 147 | gic_dist_init(__io_address(REALVIEW_GIC_DIST_BASE)); |
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index ce7d81000695..0c334136db7c 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig | |||
@@ -70,6 +70,18 @@ config ARCH_S3C2440 | |||
70 | help | 70 | help |
71 | Say Y here if you are using the SMDK2440. | 71 | Say Y here if you are using the SMDK2440. |
72 | 72 | ||
73 | config SMDK2440_CPU2440 | ||
74 | bool "SMDK2440 with S3C2440 cpu module" | ||
75 | depends on ARCH_S3C2440 | ||
76 | default y if ARCH_S3C2440 | ||
77 | select CPU_S3C2440 | ||
78 | |||
79 | config SMDK2440_CPU2442 | ||
80 | bool "SMDM2440 with S3C2442 cpu module" | ||
81 | depends on ARCH_S3C2440 | ||
82 | select CPU_S3C2442 | ||
83 | |||
84 | |||
73 | config MACH_VR1000 | 85 | config MACH_VR1000 |
74 | bool "Thorcom VR1000" | 86 | bool "Thorcom VR1000" |
75 | select CPU_S3C2410 | 87 | select CPU_S3C2410 |
@@ -109,12 +121,26 @@ config CPU_S3C2410 | |||
109 | Support for S3C2410 and S3C2410A family from the S3C24XX line | 121 | Support for S3C2410 and S3C2410A family from the S3C24XX line |
110 | of Samsung Mobile CPUs. | 122 | of Samsung Mobile CPUs. |
111 | 123 | ||
124 | config CPU_S3C244X | ||
125 | bool | ||
126 | depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442) | ||
127 | help | ||
128 | Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems. | ||
129 | |||
112 | config CPU_S3C2440 | 130 | config CPU_S3C2440 |
113 | bool | 131 | bool |
114 | depends on ARCH_S3C2410 | 132 | depends on ARCH_S3C2410 |
133 | select CPU_S3C244X | ||
115 | help | 134 | help |
116 | Support for S3C2440 Samsung Mobile CPU based systems. | 135 | Support for S3C2440 Samsung Mobile CPU based systems. |
117 | 136 | ||
137 | config CPU_S3C2442 | ||
138 | bool | ||
139 | depends on ARCH_S3C2420 | ||
140 | select CPU_S3C244X | ||
141 | help | ||
142 | Support for S3C2442 Samsung Mobile CPU based systems. | ||
143 | |||
118 | comment "S3C2410 Boot" | 144 | comment "S3C2410 Boot" |
119 | 145 | ||
120 | config S3C2410_BOOT_WATCHDOG | 146 | config S3C2410_BOOT_WATCHDOG |
@@ -170,7 +196,7 @@ config S3C2410_PM_DEBUG | |||
170 | depends on ARCH_S3C2410 && PM | 196 | depends on ARCH_S3C2410 && PM |
171 | help | 197 | help |
172 | Say Y here if you want verbose debugging from the PM Suspend and | 198 | Say Y here if you want verbose debugging from the PM Suspend and |
173 | Resume code. See `Documentation/arm/Samsing-S3C24XX/Suspend.txt` | 199 | Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
174 | for more information. | 200 | for more information. |
175 | 201 | ||
176 | config S3C2410_PM_CHECK | 202 | config S3C2410_PM_CHECK |
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index 3e5712db6b52..5e09355cd4f4 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile | |||
@@ -24,6 +24,11 @@ obj-$(CONFIG_S3C2410_DMA) += dma.o | |||
24 | obj-$(CONFIG_PM) += pm.o sleep.o | 24 | obj-$(CONFIG_PM) += pm.o sleep.o |
25 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o | 25 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o |
26 | 26 | ||
27 | # S3C244X support | ||
28 | |||
29 | obj-$(CONFIG_CPU_S3C244X) += s3c244x.o | ||
30 | obj-$(CONFIG_CPU_S3C244X) += s3c244x-irq.o | ||
31 | |||
27 | # S3C2440 support | 32 | # S3C2440 support |
28 | 33 | ||
29 | obj-$(CONFIG_CPU_S3C2440) += s3c2440.o s3c2440-dsc.o | 34 | obj-$(CONFIG_CPU_S3C2440) += s3c2440.o s3c2440-dsc.o |
@@ -31,6 +36,11 @@ obj-$(CONFIG_CPU_S3C2440) += s3c2440-irq.o | |||
31 | obj-$(CONFIG_CPU_S3C2440) += s3c2440-clock.o | 36 | obj-$(CONFIG_CPU_S3C2440) += s3c2440-clock.o |
32 | obj-$(CONFIG_CPU_S3C2440) += s3c2410-gpio.o | 37 | obj-$(CONFIG_CPU_S3C2440) += s3c2410-gpio.o |
33 | 38 | ||
39 | # S3C2442 support | ||
40 | |||
41 | obj-$(CONFIG_CPU_S3C2442) += s3c2442.o | ||
42 | obj-$(CONFIG_CPU_S3C2442) += s3c2442-clock.o | ||
43 | |||
34 | # bast extras | 44 | # bast extras |
35 | 45 | ||
36 | obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o | 46 | obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o |
diff --git a/arch/arm/mach-s3c2410/clock.c b/arch/arm/mach-s3c2410/clock.c index 6de713ad319a..99d174612b53 100644 --- a/arch/arm/mach-s3c2410/clock.c +++ b/arch/arm/mach-s3c2410/clock.c | |||
@@ -70,7 +70,7 @@ void inline s3c24xx_clk_enable(unsigned int clocks, unsigned int enable) | |||
70 | clkcon &= ~clocks; | 70 | clkcon &= ~clocks; |
71 | 71 | ||
72 | /* ensure none of the special function bits set */ | 72 | /* ensure none of the special function bits set */ |
73 | clkcon &= ~(S3C2410_CLKCON_IDLE|S3C2410_CLKCON_POWER); | 73 | clkcon &= ~(S3C2410_CLKCON_IDLE|S3C2410_CLKCON_POWER | 3); |
74 | 74 | ||
75 | __raw_writel(clkcon, S3C2410_CLKCON); | 75 | __raw_writel(clkcon, S3C2410_CLKCON); |
76 | } | 76 | } |
diff --git a/arch/arm/mach-s3c2410/common-smdk.c b/arch/arm/mach-s3c2410/common-smdk.c index c940890f621f..a40eaa656177 100644 --- a/arch/arm/mach-s3c2410/common-smdk.c +++ b/arch/arm/mach-s3c2410/common-smdk.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
35 | 35 | ||
36 | #include <asm/arch/regs-gpio.h> | 36 | #include <asm/arch/regs-gpio.h> |
37 | #include <asm/arch/leds-gpio.h> | ||
37 | 38 | ||
38 | #include <asm/arch/nand.h> | 39 | #include <asm/arch/nand.h> |
39 | 40 | ||
@@ -41,6 +42,66 @@ | |||
41 | #include "devs.h" | 42 | #include "devs.h" |
42 | #include "pm.h" | 43 | #include "pm.h" |
43 | 44 | ||
45 | /* LED devices */ | ||
46 | |||
47 | static struct s3c24xx_led_platdata smdk_pdata_led4 = { | ||
48 | .gpio = S3C2410_GPF4, | ||
49 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
50 | .name = "led4", | ||
51 | .def_trigger = "timer", | ||
52 | }; | ||
53 | |||
54 | static struct s3c24xx_led_platdata smdk_pdata_led5 = { | ||
55 | .gpio = S3C2410_GPF5, | ||
56 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
57 | .name = "led5", | ||
58 | .def_trigger = "nand-disk", | ||
59 | }; | ||
60 | |||
61 | static struct s3c24xx_led_platdata smdk_pdata_led6 = { | ||
62 | .gpio = S3C2410_GPF6, | ||
63 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
64 | .name = "led6", | ||
65 | }; | ||
66 | |||
67 | static struct s3c24xx_led_platdata smdk_pdata_led7 = { | ||
68 | .gpio = S3C2410_GPF7, | ||
69 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
70 | .name = "led7", | ||
71 | }; | ||
72 | |||
73 | static struct platform_device smdk_led4 = { | ||
74 | .name = "s3c24xx_led", | ||
75 | .id = 0, | ||
76 | .dev = { | ||
77 | .platform_data = &smdk_pdata_led4, | ||
78 | }, | ||
79 | }; | ||
80 | |||
81 | static struct platform_device smdk_led5 = { | ||
82 | .name = "s3c24xx_led", | ||
83 | .id = 1, | ||
84 | .dev = { | ||
85 | .platform_data = &smdk_pdata_led5, | ||
86 | }, | ||
87 | }; | ||
88 | |||
89 | static struct platform_device smdk_led6 = { | ||
90 | .name = "s3c24xx_led", | ||
91 | .id = 2, | ||
92 | .dev = { | ||
93 | .platform_data = &smdk_pdata_led6, | ||
94 | }, | ||
95 | }; | ||
96 | |||
97 | static struct platform_device smdk_led7 = { | ||
98 | .name = "s3c24xx_led", | ||
99 | .id = 3, | ||
100 | .dev = { | ||
101 | .platform_data = &smdk_pdata_led7, | ||
102 | }, | ||
103 | }; | ||
104 | |||
44 | /* NAND parititon from 2.4.18-swl5 */ | 105 | /* NAND parititon from 2.4.18-swl5 */ |
45 | 106 | ||
46 | static struct mtd_partition smdk_default_nand_part[] = { | 107 | static struct mtd_partition smdk_default_nand_part[] = { |
@@ -111,6 +172,10 @@ static struct s3c2410_platform_nand smdk_nand_info = { | |||
111 | 172 | ||
112 | static struct platform_device __initdata *smdk_devs[] = { | 173 | static struct platform_device __initdata *smdk_devs[] = { |
113 | &s3c_device_nand, | 174 | &s3c_device_nand, |
175 | &smdk_led4, | ||
176 | &smdk_led5, | ||
177 | &smdk_led6, | ||
178 | &smdk_led7, | ||
114 | }; | 179 | }; |
115 | 180 | ||
116 | void __init smdk_machine_init(void) | 181 | void __init smdk_machine_init(void) |
diff --git a/arch/arm/mach-s3c2410/cpu.c b/arch/arm/mach-s3c2410/cpu.c index 70c34fcf7858..52842e6e86e6 100644 --- a/arch/arm/mach-s3c2410/cpu.c +++ b/arch/arm/mach-s3c2410/cpu.c | |||
@@ -37,12 +37,16 @@ | |||
37 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
38 | 38 | ||
39 | #include <asm/arch/regs-gpio.h> | 39 | #include <asm/arch/regs-gpio.h> |
40 | #include <asm/arch/regs-serial.h> | ||
40 | 41 | ||
41 | #include "cpu.h" | 42 | #include "cpu.h" |
43 | #include "devs.h" | ||
42 | #include "clock.h" | 44 | #include "clock.h" |
43 | #include "s3c2400.h" | 45 | #include "s3c2400.h" |
44 | #include "s3c2410.h" | 46 | #include "s3c2410.h" |
47 | #include "s3c244x.h" | ||
45 | #include "s3c2440.h" | 48 | #include "s3c2440.h" |
49 | #include "s3c2442.h" | ||
46 | 50 | ||
47 | struct cpu_table { | 51 | struct cpu_table { |
48 | unsigned long idcode; | 52 | unsigned long idcode; |
@@ -59,6 +63,7 @@ struct cpu_table { | |||
59 | static const char name_s3c2400[] = "S3C2400"; | 63 | static const char name_s3c2400[] = "S3C2400"; |
60 | static const char name_s3c2410[] = "S3C2410"; | 64 | static const char name_s3c2410[] = "S3C2410"; |
61 | static const char name_s3c2440[] = "S3C2440"; | 65 | static const char name_s3c2440[] = "S3C2440"; |
66 | static const char name_s3c2442[] = "S3C2442"; | ||
62 | static const char name_s3c2410a[] = "S3C2410A"; | 67 | static const char name_s3c2410a[] = "S3C2410A"; |
63 | static const char name_s3c2440a[] = "S3C2440A"; | 68 | static const char name_s3c2440a[] = "S3C2440A"; |
64 | 69 | ||
@@ -84,22 +89,31 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
84 | { | 89 | { |
85 | .idcode = 0x32440000, | 90 | .idcode = 0x32440000, |
86 | .idmask = 0xffffffff, | 91 | .idmask = 0xffffffff, |
87 | .map_io = s3c2440_map_io, | 92 | .map_io = s3c244x_map_io, |
88 | .init_clocks = s3c2440_init_clocks, | 93 | .init_clocks = s3c244x_init_clocks, |
89 | .init_uarts = s3c2440_init_uarts, | 94 | .init_uarts = s3c244x_init_uarts, |
90 | .init = s3c2440_init, | 95 | .init = s3c2440_init, |
91 | .name = name_s3c2440 | 96 | .name = name_s3c2440 |
92 | }, | 97 | }, |
93 | { | 98 | { |
94 | .idcode = 0x32440001, | 99 | .idcode = 0x32440001, |
95 | .idmask = 0xffffffff, | 100 | .idmask = 0xffffffff, |
96 | .map_io = s3c2440_map_io, | 101 | .map_io = s3c244x_map_io, |
97 | .init_clocks = s3c2440_init_clocks, | 102 | .init_clocks = s3c244x_init_clocks, |
98 | .init_uarts = s3c2440_init_uarts, | 103 | .init_uarts = s3c244x_init_uarts, |
99 | .init = s3c2440_init, | 104 | .init = s3c2440_init, |
100 | .name = name_s3c2440a | 105 | .name = name_s3c2440a |
101 | }, | 106 | }, |
102 | { | 107 | { |
108 | .idcode = 0x32440aaa, | ||
109 | .idmask = 0xffffffff, | ||
110 | .map_io = s3c244x_map_io, | ||
111 | .init_clocks = s3c244x_init_clocks, | ||
112 | .init_uarts = s3c244x_init_uarts, | ||
113 | .init = s3c2442_init, | ||
114 | .name = name_s3c2442 | ||
115 | }, | ||
116 | { | ||
103 | .idcode = 0x0, /* S3C2400 doesn't have an idcode */ | 117 | .idcode = 0x0, /* S3C2400 doesn't have an idcode */ |
104 | .idmask = 0xffffffff, | 118 | .idmask = 0xffffffff, |
105 | .map_io = s3c2400_map_io, | 119 | .map_io = s3c2400_map_io, |
@@ -175,13 +189,13 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) | |||
175 | panic("Unknown S3C24XX CPU"); | 189 | panic("Unknown S3C24XX CPU"); |
176 | } | 190 | } |
177 | 191 | ||
192 | printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); | ||
193 | |||
178 | if (cpu->map_io == NULL || cpu->init == NULL) { | 194 | if (cpu->map_io == NULL || cpu->init == NULL) { |
179 | printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); | 195 | printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); |
180 | panic("Unsupported S3C24XX CPU"); | 196 | panic("Unsupported S3C24XX CPU"); |
181 | } | 197 | } |
182 | 198 | ||
183 | printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); | ||
184 | |||
185 | (cpu->map_io)(mach_desc, size); | 199 | (cpu->map_io)(mach_desc, size); |
186 | } | 200 | } |
187 | 201 | ||
@@ -208,6 +222,49 @@ void __init s3c24xx_init_clocks(int xtal) | |||
208 | (cpu->init_clocks)(xtal); | 222 | (cpu->init_clocks)(xtal); |
209 | } | 223 | } |
210 | 224 | ||
225 | /* uart management */ | ||
226 | |||
227 | static int nr_uarts __initdata = 0; | ||
228 | |||
229 | static struct s3c2410_uartcfg uart_cfgs[3]; | ||
230 | |||
231 | /* s3c24xx_init_uartdevs | ||
232 | * | ||
233 | * copy the specified platform data and configuration into our central | ||
234 | * set of devices, before the data is thrown away after the init process. | ||
235 | * | ||
236 | * This also fills in the array passed to the serial driver for the | ||
237 | * early initialisation of the console. | ||
238 | */ | ||
239 | |||
240 | void __init s3c24xx_init_uartdevs(char *name, | ||
241 | struct s3c24xx_uart_resources *res, | ||
242 | struct s3c2410_uartcfg *cfg, int no) | ||
243 | { | ||
244 | struct platform_device *platdev; | ||
245 | struct s3c2410_uartcfg *cfgptr = uart_cfgs; | ||
246 | struct s3c24xx_uart_resources *resp; | ||
247 | int uart; | ||
248 | |||
249 | memcpy(cfgptr, cfg, sizeof(struct s3c2410_uartcfg) * no); | ||
250 | |||
251 | for (uart = 0; uart < no; uart++, cfg++, cfgptr++) { | ||
252 | platdev = s3c24xx_uart_src[cfgptr->hwport]; | ||
253 | |||
254 | resp = res + cfgptr->hwport; | ||
255 | |||
256 | s3c24xx_uart_devs[uart] = platdev; | ||
257 | |||
258 | platdev->name = name; | ||
259 | platdev->resource = resp->resources; | ||
260 | platdev->num_resources = resp->nr_resources; | ||
261 | |||
262 | platdev->dev.platform_data = cfgptr; | ||
263 | } | ||
264 | |||
265 | nr_uarts = no; | ||
266 | } | ||
267 | |||
211 | void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 268 | void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
212 | { | 269 | { |
213 | if (cpu == NULL) | 270 | if (cpu == NULL) |
@@ -232,6 +289,10 @@ static int __init s3c_arch_init(void) | |||
232 | if (ret != 0) | 289 | if (ret != 0) |
233 | return ret; | 290 | return ret; |
234 | 291 | ||
292 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); | ||
293 | if (ret != 0) | ||
294 | return ret; | ||
295 | |||
235 | if (board != NULL) { | 296 | if (board != NULL) { |
236 | struct platform_device **ptr = board->devices; | 297 | struct platform_device **ptr = board->devices; |
237 | int i; | 298 | int i; |
diff --git a/arch/arm/mach-s3c2410/cpu.h b/arch/arm/mach-s3c2410/cpu.h index fc1067783f6d..40862899b2f1 100644 --- a/arch/arm/mach-s3c2410/cpu.h +++ b/arch/arm/mach-s3c2410/cpu.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000) | 31 | #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000) |
32 | 32 | ||
33 | /* forward declaration */ | 33 | /* forward declaration */ |
34 | struct s3c24xx_uart_resources; | ||
35 | struct platform_device; | ||
34 | struct s3c2410_uartcfg; | 36 | struct s3c2410_uartcfg; |
35 | struct map_desc; | 37 | struct map_desc; |
36 | 38 | ||
@@ -44,6 +46,10 @@ extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |||
44 | 46 | ||
45 | extern void s3c24xx_init_clocks(int xtal); | 47 | extern void s3c24xx_init_clocks(int xtal); |
46 | 48 | ||
49 | extern void s3c24xx_init_uartdevs(char *name, | ||
50 | struct s3c24xx_uart_resources *res, | ||
51 | struct s3c2410_uartcfg *cfg, int no); | ||
52 | |||
47 | /* the board structure is used at first initialsation time | 53 | /* the board structure is used at first initialsation time |
48 | * to get info such as the devices to register for this | 54 | * to get info such as the devices to register for this |
49 | * board. This is done because platfrom_add_devices() cannot | 55 | * board. This is done because platfrom_add_devices() cannot |
@@ -68,3 +74,4 @@ extern struct sys_timer s3c24xx_timer; | |||
68 | /* system device classes */ | 74 | /* system device classes */ |
69 | 75 | ||
70 | extern struct sysdev_class s3c2440_sysclass; | 76 | extern struct sysdev_class s3c2440_sysclass; |
77 | extern struct sysdev_class s3c2442_sysclass; | ||
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index ca09ba516e4c..ad3845e329ba 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -38,10 +38,86 @@ | |||
38 | #include <asm/arch/regs-serial.h> | 38 | #include <asm/arch/regs-serial.h> |
39 | 39 | ||
40 | #include "devs.h" | 40 | #include "devs.h" |
41 | #include "cpu.h" | ||
41 | 42 | ||
42 | /* Serial port registrations */ | 43 | /* Serial port registrations */ |
43 | 44 | ||
44 | struct platform_device *s3c24xx_uart_devs[3]; | 45 | static struct resource s3c2410_uart0_resource[] = { |
46 | [0] = { | ||
47 | .start = S3C2410_PA_UART0, | ||
48 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
49 | .flags = IORESOURCE_MEM, | ||
50 | }, | ||
51 | [1] = { | ||
52 | .start = IRQ_S3CUART_RX0, | ||
53 | .end = IRQ_S3CUART_ERR0, | ||
54 | .flags = IORESOURCE_IRQ, | ||
55 | } | ||
56 | }; | ||
57 | |||
58 | static struct resource s3c2410_uart1_resource[] = { | ||
59 | [0] = { | ||
60 | .start = S3C2410_PA_UART1, | ||
61 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
62 | .flags = IORESOURCE_MEM, | ||
63 | }, | ||
64 | [1] = { | ||
65 | .start = IRQ_S3CUART_RX1, | ||
66 | .end = IRQ_S3CUART_ERR1, | ||
67 | .flags = IORESOURCE_IRQ, | ||
68 | } | ||
69 | }; | ||
70 | |||
71 | static struct resource s3c2410_uart2_resource[] = { | ||
72 | [0] = { | ||
73 | .start = S3C2410_PA_UART2, | ||
74 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
75 | .flags = IORESOURCE_MEM, | ||
76 | }, | ||
77 | [1] = { | ||
78 | .start = IRQ_S3CUART_RX2, | ||
79 | .end = IRQ_S3CUART_ERR2, | ||
80 | .flags = IORESOURCE_IRQ, | ||
81 | } | ||
82 | }; | ||
83 | |||
84 | struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { | ||
85 | [0] = { | ||
86 | .resources = s3c2410_uart0_resource, | ||
87 | .nr_resources = ARRAY_SIZE(s3c2410_uart0_resource), | ||
88 | }, | ||
89 | [1] = { | ||
90 | .resources = s3c2410_uart1_resource, | ||
91 | .nr_resources = ARRAY_SIZE(s3c2410_uart1_resource), | ||
92 | }, | ||
93 | [2] = { | ||
94 | .resources = s3c2410_uart2_resource, | ||
95 | .nr_resources = ARRAY_SIZE(s3c2410_uart2_resource), | ||
96 | }, | ||
97 | }; | ||
98 | |||
99 | /* yart devices */ | ||
100 | |||
101 | static struct platform_device s3c24xx_uart_device0 = { | ||
102 | .id = 0, | ||
103 | }; | ||
104 | |||
105 | static struct platform_device s3c24xx_uart_device1 = { | ||
106 | .id = 1, | ||
107 | }; | ||
108 | |||
109 | static struct platform_device s3c24xx_uart_device2 = { | ||
110 | .id = 2, | ||
111 | }; | ||
112 | |||
113 | struct platform_device *s3c24xx_uart_src[3] = { | ||
114 | &s3c24xx_uart_device0, | ||
115 | &s3c24xx_uart_device1, | ||
116 | &s3c24xx_uart_device2, | ||
117 | }; | ||
118 | |||
119 | struct platform_device *s3c24xx_uart_devs[3] = { | ||
120 | }; | ||
45 | 121 | ||
46 | /* USB Host Controller */ | 122 | /* USB Host Controller */ |
47 | 123 | ||
diff --git a/arch/arm/mach-s3c2410/devs.h b/arch/arm/mach-s3c2410/devs.h index 52c4bab5c761..fa124ed920e0 100644 --- a/arch/arm/mach-s3c2410/devs.h +++ b/arch/arm/mach-s3c2410/devs.h | |||
@@ -17,7 +17,15 @@ | |||
17 | #include <linux/config.h> | 17 | #include <linux/config.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | ||
20 | struct s3c24xx_uart_resources { | ||
21 | struct resource *resources; | ||
22 | unsigned long nr_resources; | ||
23 | }; | ||
24 | |||
25 | extern struct s3c24xx_uart_resources s3c2410_uart_resources[]; | ||
26 | |||
20 | extern struct platform_device *s3c24xx_uart_devs[]; | 27 | extern struct platform_device *s3c24xx_uart_devs[]; |
28 | extern struct platform_device *s3c24xx_uart_src[]; | ||
21 | 29 | ||
22 | extern struct platform_device s3c_device_usb; | 30 | extern struct platform_device s3c_device_usb; |
23 | extern struct platform_device s3c_device_lcd; | 31 | extern struct platform_device s3c_device_lcd; |
diff --git a/arch/arm/mach-s3c2410/mach-anubis.c b/arch/arm/mach-s3c2410/mach-anubis.c index cc97fbf66291..4a92d6f92d6b 100644 --- a/arch/arm/mach-s3c2410/mach-anubis.c +++ b/arch/arm/mach-s3c2410/mach-anubis.c | |||
@@ -131,7 +131,7 @@ static struct s3c24xx_uart_clksrc anubis_serial_clocks[] = { | |||
131 | }; | 131 | }; |
132 | 132 | ||
133 | 133 | ||
134 | static struct s3c2410_uartcfg anubis_uartcfgs[] = { | 134 | static struct s3c2410_uartcfg anubis_uartcfgs[] __initdata = { |
135 | [0] = { | 135 | [0] = { |
136 | .hwport = 0, | 136 | .hwport = 0, |
137 | .flags = 0, | 137 | .flags = 0, |
@@ -239,6 +239,54 @@ static struct s3c2410_platform_nand anubis_nand_info = { | |||
239 | .select_chip = anubis_nand_select, | 239 | .select_chip = anubis_nand_select, |
240 | }; | 240 | }; |
241 | 241 | ||
242 | /* IDE channels */ | ||
243 | |||
244 | static struct resource anubis_ide0_resource[] = { | ||
245 | { | ||
246 | .start = S3C2410_CS3, | ||
247 | .end = S3C2410_CS3 + (8*32) - 1, | ||
248 | .flags = IORESOURCE_MEM, | ||
249 | }, { | ||
250 | .start = S3C2410_CS3 + (1<<26), | ||
251 | .end = S3C2410_CS3 + (1<<26) + (8*32) - 1, | ||
252 | .flags = IORESOURCE_MEM, | ||
253 | }, { | ||
254 | .start = IRQ_IDE0, | ||
255 | .end = IRQ_IDE0, | ||
256 | .flags = IORESOURCE_IRQ, | ||
257 | }, | ||
258 | }; | ||
259 | |||
260 | static struct platform_device anubis_device_ide0 = { | ||
261 | .name = "simtec-ide", | ||
262 | .id = 0, | ||
263 | .num_resources = ARRAY_SIZE(anubis_ide0_resource), | ||
264 | .resource = anubis_ide0_resource, | ||
265 | }; | ||
266 | |||
267 | static struct resource anubis_ide1_resource[] = { | ||
268 | { | ||
269 | .start = S3C2410_CS4, | ||
270 | .end = S3C2410_CS4 + (8*32) - 1, | ||
271 | .flags = IORESOURCE_MEM, | ||
272 | }, { | ||
273 | .start = S3C2410_CS4 + (1<<26), | ||
274 | .end = S3C2410_CS4 + (1<<26) + (8*32) - 1, | ||
275 | .flags = IORESOURCE_MEM, | ||
276 | }, { | ||
277 | .start = IRQ_IDE0, | ||
278 | .end = IRQ_IDE0, | ||
279 | .flags = IORESOURCE_IRQ, | ||
280 | }, | ||
281 | }; | ||
282 | |||
283 | |||
284 | static struct platform_device anubis_device_ide1 = { | ||
285 | .name = "simtec-ide", | ||
286 | .id = 1, | ||
287 | .num_resources = ARRAY_SIZE(anubis_ide1_resource), | ||
288 | .resource = anubis_ide1_resource, | ||
289 | }; | ||
242 | 290 | ||
243 | /* Standard Anubis devices */ | 291 | /* Standard Anubis devices */ |
244 | 292 | ||
@@ -249,6 +297,8 @@ static struct platform_device *anubis_devices[] __initdata = { | |||
249 | &s3c_device_i2c, | 297 | &s3c_device_i2c, |
250 | &s3c_device_rtc, | 298 | &s3c_device_rtc, |
251 | &s3c_device_nand, | 299 | &s3c_device_nand, |
300 | &anubis_device_ide0, | ||
301 | &anubis_device_ide1, | ||
252 | }; | 302 | }; |
253 | 303 | ||
254 | static struct clk *anubis_clocks[] = { | 304 | static struct clk *anubis_clocks[] = { |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 995bb8add331..947234df8160 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -208,7 +208,7 @@ static struct s3c24xx_uart_clksrc bast_serial_clocks[] = { | |||
208 | }; | 208 | }; |
209 | 209 | ||
210 | 210 | ||
211 | static struct s3c2410_uartcfg bast_uartcfgs[] = { | 211 | static struct s3c2410_uartcfg bast_uartcfgs[] __initdata = { |
212 | [0] = { | 212 | [0] = { |
213 | .hwport = 0, | 213 | .hwport = 0, |
214 | .flags = 0, | 214 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index 646a3a5d33a5..aec431b2830a 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -72,7 +72,7 @@ static struct map_desc h1940_iodesc[] __initdata = { | |||
72 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 72 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
73 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 73 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
74 | 74 | ||
75 | static struct s3c2410_uartcfg h1940_uartcfgs[] = { | 75 | static struct s3c2410_uartcfg h1940_uartcfgs[] __initdata = { |
76 | [0] = { | 76 | [0] = { |
77 | .hwport = 0, | 77 | .hwport = 0, |
78 | .flags = 0, | 78 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-nexcoder.c b/arch/arm/mach-s3c2410/mach-nexcoder.c index 07d09509a626..065a1d4e860b 100644 --- a/arch/arm/mach-s3c2410/mach-nexcoder.c +++ b/arch/arm/mach-s3c2410/mach-nexcoder.c | |||
@@ -51,7 +51,7 @@ static struct map_desc nexcoder_iodesc[] __initdata = { | |||
51 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 51 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
52 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE | 52 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE |
53 | 53 | ||
54 | static struct s3c2410_uartcfg nexcoder_uartcfgs[] = { | 54 | static struct s3c2410_uartcfg nexcoder_uartcfgs[] __initdata = { |
55 | [0] = { | 55 | [0] = { |
56 | .hwport = 0, | 56 | .hwport = 0, |
57 | .flags = 0, | 57 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-osiris.c b/arch/arm/mach-s3c2410/mach-osiris.c index ae0787557751..858fd03c6bc5 100644 --- a/arch/arm/mach-s3c2410/mach-osiris.c +++ b/arch/arm/mach-s3c2410/mach-osiris.c | |||
@@ -95,8 +95,7 @@ static struct s3c24xx_uart_clksrc osiris_serial_clocks[] = { | |||
95 | } | 95 | } |
96 | }; | 96 | }; |
97 | 97 | ||
98 | 98 | static struct s3c2410_uartcfg osiris_uartcfgs[] __initdata = { | |
99 | static struct s3c2410_uartcfg osiris_uartcfgs[] = { | ||
100 | [0] = { | 99 | [0] = { |
101 | .hwport = 0, | 100 | .hwport = 0, |
102 | .flags = 0, | 101 | .flags = 0, |
@@ -107,7 +106,7 @@ static struct s3c2410_uartcfg osiris_uartcfgs[] = { | |||
107 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks) | 106 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks) |
108 | }, | 107 | }, |
109 | [1] = { | 108 | [1] = { |
110 | .hwport = 2, | 109 | .hwport = 1, |
111 | .flags = 0, | 110 | .flags = 0, |
112 | .ucon = UCON, | 111 | .ucon = UCON, |
113 | .ulcon = ULCON, | 112 | .ulcon = ULCON, |
diff --git a/arch/arm/mach-s3c2410/mach-otom.c b/arch/arm/mach-s3c2410/mach-otom.c index b39daedf93ca..c71673fd9955 100644 --- a/arch/arm/mach-s3c2410/mach-otom.c +++ b/arch/arm/mach-s3c2410/mach-otom.c | |||
@@ -45,7 +45,7 @@ static struct map_desc otom11_iodesc[] __initdata = { | |||
45 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 45 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
46 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE | 46 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE |
47 | 47 | ||
48 | static struct s3c2410_uartcfg otom11_uartcfgs[] = { | 48 | static struct s3c2410_uartcfg otom11_uartcfgs[] __initdata = { |
49 | [0] = { | 49 | [0] = { |
50 | .hwport = 0, | 50 | .hwport = 0, |
51 | .flags = 0, | 51 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index 2db932d72c5a..25f7e9f4dcee 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
@@ -65,7 +65,7 @@ static struct map_desc smdk2410_iodesc[] __initdata = { | |||
65 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 65 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
66 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 66 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
67 | 67 | ||
68 | static struct s3c2410_uartcfg smdk2410_uartcfgs[] = { | 68 | static struct s3c2410_uartcfg smdk2410_uartcfgs[] __initdata = { |
69 | [0] = { | 69 | [0] = { |
70 | .hwport = 0, | 70 | .hwport = 0, |
71 | .flags = 0, | 71 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2440.c b/arch/arm/mach-s3c2410/mach-smdk2440.c index 5fffd1d51047..d661c6b7ff56 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2440.c +++ b/arch/arm/mach-s3c2410/mach-smdk2440.c | |||
@@ -86,7 +86,7 @@ static struct map_desc smdk2440_iodesc[] __initdata = { | |||
86 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 86 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
87 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 87 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
88 | 88 | ||
89 | static struct s3c2410_uartcfg smdk2440_uartcfgs[] = { | 89 | static struct s3c2410_uartcfg smdk2440_uartcfgs[] __initdata = { |
90 | [0] = { | 90 | [0] = { |
91 | .hwport = 0, | 91 | .hwport = 0, |
92 | .flags = 0, | 92 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 785fc9cdcf7c..d18efb279d3d 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -166,7 +166,7 @@ static struct s3c24xx_uart_clksrc vr1000_serial_clocks[] = { | |||
166 | } | 166 | } |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static struct s3c2410_uartcfg vr1000_uartcfgs[] = { | 169 | static struct s3c2410_uartcfg vr1000_uartcfgs[] __initdata = { |
170 | [0] = { | 170 | [0] = { |
171 | .hwport = 0, | 171 | .hwport = 0, |
172 | .flags = 0, | 172 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c index fe57d966a34d..43e9a550a203 100644 --- a/arch/arm/mach-s3c2410/pm.c +++ b/arch/arm/mach-s3c2410/pm.c | |||
@@ -58,7 +58,11 @@ unsigned long s3c_pm_flags; | |||
58 | 58 | ||
59 | /* cache functions from arch/arm/mm/proc-arm920.S */ | 59 | /* cache functions from arch/arm/mm/proc-arm920.S */ |
60 | 60 | ||
61 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
61 | extern void arm920_flush_kern_cache_all(void); | 62 | extern void arm920_flush_kern_cache_all(void); |
63 | #else | ||
64 | static void arm920_flush_kern_cache_all(void) { } | ||
65 | #endif | ||
62 | 66 | ||
63 | #define PFX "s3c24xx-pm: " | 67 | #define PFX "s3c24xx-pm: " |
64 | 68 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c index 0a2013a76549..0852e87a79c4 100644 --- a/arch/arm/mach-s3c2410/s3c2410.c +++ b/arch/arm/mach-s3c2410/s3c2410.c | |||
@@ -42,6 +42,7 @@ | |||
42 | 42 | ||
43 | #include "s3c2410.h" | 43 | #include "s3c2410.h" |
44 | #include "cpu.h" | 44 | #include "cpu.h" |
45 | #include "devs.h" | ||
45 | #include "clock.h" | 46 | #include "clock.h" |
46 | 47 | ||
47 | /* Initial IO mappings */ | 48 | /* Initial IO mappings */ |
@@ -55,93 +56,13 @@ static struct map_desc s3c2410_iodesc[] __initdata = { | |||
55 | IODESC_ENT(WATCHDOG), | 56 | IODESC_ENT(WATCHDOG), |
56 | }; | 57 | }; |
57 | 58 | ||
58 | static struct resource s3c_uart0_resource[] = { | ||
59 | [0] = { | ||
60 | .start = S3C2410_PA_UART0, | ||
61 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
62 | .flags = IORESOURCE_MEM, | ||
63 | }, | ||
64 | [1] = { | ||
65 | .start = IRQ_S3CUART_RX0, | ||
66 | .end = IRQ_S3CUART_ERR0, | ||
67 | .flags = IORESOURCE_IRQ, | ||
68 | } | ||
69 | |||
70 | }; | ||
71 | |||
72 | static struct resource s3c_uart1_resource[] = { | ||
73 | [0] = { | ||
74 | .start = S3C2410_PA_UART1, | ||
75 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
76 | .flags = IORESOURCE_MEM, | ||
77 | }, | ||
78 | [1] = { | ||
79 | .start = IRQ_S3CUART_RX1, | ||
80 | .end = IRQ_S3CUART_ERR1, | ||
81 | .flags = IORESOURCE_IRQ, | ||
82 | } | ||
83 | }; | ||
84 | |||
85 | static struct resource s3c_uart2_resource[] = { | ||
86 | [0] = { | ||
87 | .start = S3C2410_PA_UART2, | ||
88 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
89 | .flags = IORESOURCE_MEM, | ||
90 | }, | ||
91 | [1] = { | ||
92 | .start = IRQ_S3CUART_RX2, | ||
93 | .end = IRQ_S3CUART_ERR2, | ||
94 | .flags = IORESOURCE_IRQ, | ||
95 | } | ||
96 | }; | ||
97 | |||
98 | /* our uart devices */ | 59 | /* our uart devices */ |
99 | 60 | ||
100 | static struct platform_device s3c_uart0 = { | ||
101 | .name = "s3c2410-uart", | ||
102 | .id = 0, | ||
103 | .num_resources = ARRAY_SIZE(s3c_uart0_resource), | ||
104 | .resource = s3c_uart0_resource, | ||
105 | }; | ||
106 | |||
107 | |||
108 | static struct platform_device s3c_uart1 = { | ||
109 | .name = "s3c2410-uart", | ||
110 | .id = 1, | ||
111 | .num_resources = ARRAY_SIZE(s3c_uart1_resource), | ||
112 | .resource = s3c_uart1_resource, | ||
113 | }; | ||
114 | |||
115 | static struct platform_device s3c_uart2 = { | ||
116 | .name = "s3c2410-uart", | ||
117 | .id = 2, | ||
118 | .num_resources = ARRAY_SIZE(s3c_uart2_resource), | ||
119 | .resource = s3c_uart2_resource, | ||
120 | }; | ||
121 | |||
122 | static struct platform_device *uart_devices[] __initdata = { | ||
123 | &s3c_uart0, | ||
124 | &s3c_uart1, | ||
125 | &s3c_uart2 | ||
126 | }; | ||
127 | |||
128 | static int s3c2410_uart_count = 0; | ||
129 | |||
130 | /* uart registration process */ | 61 | /* uart registration process */ |
131 | 62 | ||
132 | void __init s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 63 | void __init s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
133 | { | 64 | { |
134 | struct platform_device *platdev; | 65 | s3c24xx_init_uartdevs("s3c2410-uart", s3c2410_uart_resources, cfg, no); |
135 | int uart; | ||
136 | |||
137 | for (uart = 0; uart < no; uart++, cfg++) { | ||
138 | platdev = uart_devices[cfg->hwport]; | ||
139 | |||
140 | s3c24xx_uart_devs[uart] = platdev; | ||
141 | platdev->dev.platform_data = cfg; | ||
142 | } | ||
143 | |||
144 | s3c2410_uart_count = uart; | ||
145 | } | 66 | } |
146 | 67 | ||
147 | /* s3c2410_map_io | 68 | /* s3c2410_map_io |
@@ -193,5 +114,5 @@ int __init s3c2410_init(void) | |||
193 | { | 114 | { |
194 | printk("S3C2410: Initialising architecture\n"); | 115 | printk("S3C2410: Initialising architecture\n"); |
195 | 116 | ||
196 | return platform_add_devices(s3c24xx_uart_devs, s3c2410_uart_count); | 117 | return 0; |
197 | } | 118 | } |
diff --git a/arch/arm/mach-s3c2410/s3c2440-irq.c b/arch/arm/mach-s3c2410/s3c2440-irq.c index 278d0044c85d..acfe3870727b 100644 --- a/arch/arm/mach-s3c2410/s3c2440-irq.c +++ b/arch/arm/mach-s3c2410/s3c2440-irq.c | |||
@@ -100,73 +100,12 @@ static struct irqchip s3c_irq_wdtac97 = { | |||
100 | .ack = s3c_irq_wdtac97_ack, | 100 | .ack = s3c_irq_wdtac97_ack, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | /* camera irq */ | ||
104 | |||
105 | static void s3c_irq_demux_cam(unsigned int irq, | ||
106 | struct irqdesc *desc, | ||
107 | struct pt_regs *regs) | ||
108 | { | ||
109 | unsigned int subsrc, submsk; | ||
110 | struct irqdesc *mydesc; | ||
111 | |||
112 | /* read the current pending interrupts, and the mask | ||
113 | * for what it is available */ | ||
114 | |||
115 | subsrc = __raw_readl(S3C2410_SUBSRCPND); | ||
116 | submsk = __raw_readl(S3C2410_INTSUBMSK); | ||
117 | |||
118 | subsrc &= ~submsk; | ||
119 | subsrc >>= 11; | ||
120 | subsrc &= 3; | ||
121 | |||
122 | if (subsrc != 0) { | ||
123 | if (subsrc & 1) { | ||
124 | mydesc = irq_desc + IRQ_S3C2440_CAM_C; | ||
125 | desc_handle_irq(IRQ_S3C2440_CAM_C, mydesc, regs); | ||
126 | } | ||
127 | if (subsrc & 2) { | ||
128 | mydesc = irq_desc + IRQ_S3C2440_CAM_P; | ||
129 | desc_handle_irq(IRQ_S3C2440_CAM_P, mydesc, regs); | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | |||
134 | #define INTMSK_CAM (1UL << (IRQ_CAM - IRQ_EINT0)) | ||
135 | |||
136 | static void | ||
137 | s3c_irq_cam_mask(unsigned int irqno) | ||
138 | { | ||
139 | s3c_irqsub_mask(irqno, INTMSK_CAM, 3<<11); | ||
140 | } | ||
141 | |||
142 | static void | ||
143 | s3c_irq_cam_unmask(unsigned int irqno) | ||
144 | { | ||
145 | s3c_irqsub_unmask(irqno, INTMSK_CAM); | ||
146 | } | ||
147 | |||
148 | static void | ||
149 | s3c_irq_cam_ack(unsigned int irqno) | ||
150 | { | ||
151 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); | ||
152 | } | ||
153 | |||
154 | static struct irqchip s3c_irq_cam = { | ||
155 | .mask = s3c_irq_cam_mask, | ||
156 | .unmask = s3c_irq_cam_unmask, | ||
157 | .ack = s3c_irq_cam_ack, | ||
158 | }; | ||
159 | |||
160 | static int s3c2440_irq_add(struct sys_device *sysdev) | 103 | static int s3c2440_irq_add(struct sys_device *sysdev) |
161 | { | 104 | { |
162 | unsigned int irqno; | 105 | unsigned int irqno; |
163 | 106 | ||
164 | printk("S3C2440: IRQ Support\n"); | 107 | printk("S3C2440: IRQ Support\n"); |
165 | 108 | ||
166 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); | ||
167 | set_irq_handler(IRQ_NFCON, do_level_IRQ); | ||
168 | set_irq_flags(IRQ_NFCON, IRQF_VALID); | ||
169 | |||
170 | /* add new chained handler for wdt, ac7 */ | 109 | /* add new chained handler for wdt, ac7 */ |
171 | 110 | ||
172 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); | 111 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); |
@@ -179,18 +118,6 @@ static int s3c2440_irq_add(struct sys_device *sysdev) | |||
179 | set_irq_flags(irqno, IRQF_VALID); | 118 | set_irq_flags(irqno, IRQF_VALID); |
180 | } | 119 | } |
181 | 120 | ||
182 | /* add chained handler for camera */ | ||
183 | |||
184 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); | ||
185 | set_irq_handler(IRQ_CAM, do_level_IRQ); | ||
186 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); | ||
187 | |||
188 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { | ||
189 | set_irq_chip(irqno, &s3c_irq_cam); | ||
190 | set_irq_handler(irqno, do_level_IRQ); | ||
191 | set_irq_flags(irqno, IRQF_VALID); | ||
192 | } | ||
193 | |||
194 | return 0; | 121 | return 0; |
195 | } | 122 | } |
196 | 123 | ||
@@ -198,10 +125,10 @@ static struct sysdev_driver s3c2440_irq_driver = { | |||
198 | .add = s3c2440_irq_add, | 125 | .add = s3c2440_irq_add, |
199 | }; | 126 | }; |
200 | 127 | ||
201 | static int s3c24xx_irq_driver(void) | 128 | static int s3c2440_irq_init(void) |
202 | { | 129 | { |
203 | return sysdev_driver_register(&s3c2440_sysclass, &s3c2440_irq_driver); | 130 | return sysdev_driver_register(&s3c2440_sysclass, &s3c2440_irq_driver); |
204 | } | 131 | } |
205 | 132 | ||
206 | arch_initcall(s3c24xx_irq_driver); | 133 | arch_initcall(s3c2440_irq_init); |
207 | 134 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440.c b/arch/arm/mach-s3c2410/s3c2440.c index b7fe6d9453fb..0ab50f44f318 100644 --- a/arch/arm/mach-s3c2410/s3c2440.c +++ b/arch/arm/mach-s3c2410/s3c2440.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c |
2 | * | 2 | * |
3 | * Copyright (c) 2004-2005 Simtec Electronics | 3 | * Copyright (c) 2004-2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Samsung S3C2440 Mobile CPU support | 6 | * Samsung S3C2440 Mobile CPU support |
@@ -8,16 +8,6 @@ | |||
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | ||
12 | * Modifications: | ||
13 | * 24-Aug-2004 BJD Start of s3c2440 support | ||
14 | * 12-Oct-2004 BJD Moved clock info out to clock.c | ||
15 | * 01-Nov-2004 BJD Fixed clock build code | ||
16 | * 09-Nov-2004 BJD Added sysdev for power management | ||
17 | * 04-Nov-2004 BJD New serial registration | ||
18 | * 15-Nov-2004 BJD Rename the i2c device for the s3c2440 | ||
19 | * 14-Jan-2005 BJD Moved clock init code into seperate function | ||
20 | * 14-Jan-2005 BJD Removed un-used clock bits | ||
21 | */ | 11 | */ |
22 | 12 | ||
23 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
@@ -50,234 +40,20 @@ | |||
50 | #include "cpu.h" | 40 | #include "cpu.h" |
51 | #include "pm.h" | 41 | #include "pm.h" |
52 | 42 | ||
53 | |||
54 | static struct map_desc s3c2440_iodesc[] __initdata = { | ||
55 | IODESC_ENT(USBHOST), | ||
56 | IODESC_ENT(CLKPWR), | ||
57 | IODESC_ENT(LCD), | ||
58 | IODESC_ENT(TIMER), | ||
59 | IODESC_ENT(ADC), | ||
60 | IODESC_ENT(WATCHDOG), | ||
61 | }; | ||
62 | |||
63 | static struct resource s3c_uart0_resource[] = { | ||
64 | [0] = { | ||
65 | .start = S3C2410_PA_UART0, | ||
66 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, | ||
69 | [1] = { | ||
70 | .start = IRQ_S3CUART_RX0, | ||
71 | .end = IRQ_S3CUART_ERR0, | ||
72 | .flags = IORESOURCE_IRQ, | ||
73 | } | ||
74 | |||
75 | }; | ||
76 | |||
77 | static struct resource s3c_uart1_resource[] = { | ||
78 | [0] = { | ||
79 | .start = S3C2410_PA_UART1, | ||
80 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | }, | ||
83 | [1] = { | ||
84 | .start = IRQ_S3CUART_RX1, | ||
85 | .end = IRQ_S3CUART_ERR1, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | } | ||
88 | }; | ||
89 | |||
90 | static struct resource s3c_uart2_resource[] = { | ||
91 | [0] = { | ||
92 | .start = S3C2410_PA_UART2, | ||
93 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
94 | .flags = IORESOURCE_MEM, | ||
95 | }, | ||
96 | [1] = { | ||
97 | .start = IRQ_S3CUART_RX2, | ||
98 | .end = IRQ_S3CUART_ERR2, | ||
99 | .flags = IORESOURCE_IRQ, | ||
100 | } | ||
101 | }; | ||
102 | |||
103 | /* our uart devices */ | ||
104 | |||
105 | static struct platform_device s3c_uart0 = { | ||
106 | .name = "s3c2440-uart", | ||
107 | .id = 0, | ||
108 | .num_resources = ARRAY_SIZE(s3c_uart0_resource), | ||
109 | .resource = s3c_uart0_resource, | ||
110 | }; | ||
111 | |||
112 | static struct platform_device s3c_uart1 = { | ||
113 | .name = "s3c2440-uart", | ||
114 | .id = 1, | ||
115 | .num_resources = ARRAY_SIZE(s3c_uart1_resource), | ||
116 | .resource = s3c_uart1_resource, | ||
117 | }; | ||
118 | |||
119 | static struct platform_device s3c_uart2 = { | ||
120 | .name = "s3c2440-uart", | ||
121 | .id = 2, | ||
122 | .num_resources = ARRAY_SIZE(s3c_uart2_resource), | ||
123 | .resource = s3c_uart2_resource, | ||
124 | }; | ||
125 | |||
126 | static struct platform_device *uart_devices[] __initdata = { | ||
127 | &s3c_uart0, | ||
128 | &s3c_uart1, | ||
129 | &s3c_uart2 | ||
130 | }; | ||
131 | |||
132 | /* uart initialisation */ | ||
133 | |||
134 | static int __initdata s3c2440_uart_count; | ||
135 | |||
136 | void __init s3c2440_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
137 | { | ||
138 | struct platform_device *platdev; | ||
139 | int uart; | ||
140 | |||
141 | for (uart = 0; uart < no; uart++, cfg++) { | ||
142 | platdev = uart_devices[cfg->hwport]; | ||
143 | |||
144 | s3c24xx_uart_devs[uart] = platdev; | ||
145 | platdev->dev.platform_data = cfg; | ||
146 | } | ||
147 | |||
148 | s3c2440_uart_count = uart; | ||
149 | } | ||
150 | |||
151 | |||
152 | #ifdef CONFIG_PM | ||
153 | |||
154 | static struct sleep_save s3c2440_sleep[] = { | ||
155 | SAVE_ITEM(S3C2440_DSC0), | ||
156 | SAVE_ITEM(S3C2440_DSC1), | ||
157 | SAVE_ITEM(S3C2440_GPJDAT), | ||
158 | SAVE_ITEM(S3C2440_GPJCON), | ||
159 | SAVE_ITEM(S3C2440_GPJUP) | ||
160 | }; | ||
161 | |||
162 | static int s3c2440_suspend(struct sys_device *dev, pm_message_t state) | ||
163 | { | ||
164 | s3c2410_pm_do_save(s3c2440_sleep, ARRAY_SIZE(s3c2440_sleep)); | ||
165 | return 0; | ||
166 | } | ||
167 | |||
168 | static int s3c2440_resume(struct sys_device *dev) | ||
169 | { | ||
170 | s3c2410_pm_do_restore(s3c2440_sleep, ARRAY_SIZE(s3c2440_sleep)); | ||
171 | return 0; | ||
172 | } | ||
173 | |||
174 | #else | ||
175 | #define s3c2440_suspend NULL | ||
176 | #define s3c2440_resume NULL | ||
177 | #endif | ||
178 | |||
179 | struct sysdev_class s3c2440_sysclass = { | ||
180 | set_kset_name("s3c2440-core"), | ||
181 | .suspend = s3c2440_suspend, | ||
182 | .resume = s3c2440_resume | ||
183 | }; | ||
184 | |||
185 | static struct sys_device s3c2440_sysdev = { | 43 | static struct sys_device s3c2440_sysdev = { |
186 | .cls = &s3c2440_sysclass, | 44 | .cls = &s3c2440_sysclass, |
187 | }; | 45 | }; |
188 | 46 | ||
189 | void __init s3c2440_map_io(struct map_desc *mach_desc, int size) | 47 | int __init s3c2440_init(void) |
190 | { | 48 | { |
191 | /* register our io-tables */ | 49 | printk("S3C2440: Initialising architecture\n"); |
192 | |||
193 | iotable_init(s3c2440_iodesc, ARRAY_SIZE(s3c2440_iodesc)); | ||
194 | iotable_init(mach_desc, size); | ||
195 | |||
196 | /* rename any peripherals used differing from the s3c2410 */ | ||
197 | |||
198 | s3c_device_i2c.name = "s3c2440-i2c"; | ||
199 | s3c_device_nand.name = "s3c2440-nand"; | ||
200 | 50 | ||
201 | /* change irq for watchdog */ | 51 | /* change irq for watchdog */ |
202 | 52 | ||
203 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; | 53 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; |
204 | s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT; | 54 | s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT; |
205 | } | ||
206 | |||
207 | void __init s3c2440_init_clocks(int xtal) | ||
208 | { | ||
209 | unsigned long clkdiv; | ||
210 | unsigned long camdiv; | ||
211 | unsigned long hclk, fclk, pclk; | ||
212 | int hdiv = 1; | ||
213 | |||
214 | /* now we've got our machine bits initialised, work out what | ||
215 | * clocks we've got */ | ||
216 | |||
217 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; | ||
218 | |||
219 | clkdiv = __raw_readl(S3C2410_CLKDIVN); | ||
220 | camdiv = __raw_readl(S3C2440_CAMDIVN); | ||
221 | |||
222 | /* work out clock scalings */ | ||
223 | |||
224 | switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { | ||
225 | case S3C2440_CLKDIVN_HDIVN_1: | ||
226 | hdiv = 1; | ||
227 | break; | ||
228 | |||
229 | case S3C2440_CLKDIVN_HDIVN_2: | ||
230 | hdiv = 2; | ||
231 | break; | ||
232 | |||
233 | case S3C2440_CLKDIVN_HDIVN_4_8: | ||
234 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4; | ||
235 | break; | ||
236 | |||
237 | case S3C2440_CLKDIVN_HDIVN_3_6: | ||
238 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3; | ||
239 | break; | ||
240 | } | ||
241 | |||
242 | hclk = fclk / hdiv; | ||
243 | pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN)? 2:1); | ||
244 | |||
245 | /* print brief summary of clocks, etc */ | ||
246 | |||
247 | printk("S3C2440: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n", | ||
248 | print_mhz(fclk), print_mhz(hclk), print_mhz(pclk)); | ||
249 | |||
250 | /* initialise the clocks here, to allow other things like the | ||
251 | * console to use them, and to add new ones after the initialisation | ||
252 | */ | ||
253 | |||
254 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | ||
255 | } | ||
256 | |||
257 | /* need to register class before we actually register the device, and | ||
258 | * we also need to ensure that it has been initialised before any of the | ||
259 | * drivers even try to use it (even if not on an s3c2440 based system) | ||
260 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
261 | */ | ||
262 | |||
263 | static int __init s3c2440_core_init(void) | ||
264 | { | ||
265 | return sysdev_class_register(&s3c2440_sysclass); | ||
266 | } | ||
267 | |||
268 | core_initcall(s3c2440_core_init); | ||
269 | |||
270 | int __init s3c2440_init(void) | ||
271 | { | ||
272 | int ret; | ||
273 | |||
274 | printk("S3C2440: Initialising architecture\n"); | ||
275 | 55 | ||
276 | ret = sysdev_register(&s3c2440_sysdev); | 56 | /* register our system device for everything else */ |
277 | if (ret != 0) | ||
278 | printk(KERN_ERR "failed to register sysdev for s3c2440\n"); | ||
279 | else | ||
280 | ret = platform_add_devices(s3c24xx_uart_devs, s3c2440_uart_count); | ||
281 | 57 | ||
282 | return ret; | 58 | return sysdev_register(&s3c2440_sysdev); |
283 | } | 59 | } |
diff --git a/arch/arm/mach-s3c2410/s3c2442-clock.c b/arch/arm/mach-s3c2410/s3c2442-clock.c new file mode 100644 index 000000000000..5b7b301eb522 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442-clock.c | |||
@@ -0,0 +1,171 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2442-clock.c | ||
2 | * | ||
3 | * Copyright (c) 2004-2005 Simtec Electronics | ||
4 | * http://armlinux.simtec.co.uk/ | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * | ||
7 | * S3C2442 Clock support | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | |||
24 | #include <linux/init.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/list.h> | ||
28 | #include <linux/errno.h> | ||
29 | #include <linux/err.h> | ||
30 | #include <linux/device.h> | ||
31 | #include <linux/sysdev.h> | ||
32 | #include <linux/interrupt.h> | ||
33 | #include <linux/ioport.h> | ||
34 | #include <linux/mutex.h> | ||
35 | #include <linux/clk.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | #include <asm/atomic.h> | ||
39 | #include <asm/irq.h> | ||
40 | #include <asm/io.h> | ||
41 | |||
42 | #include <asm/arch/regs-clock.h> | ||
43 | |||
44 | #include "clock.h" | ||
45 | #include "cpu.h" | ||
46 | |||
47 | /* S3C2442 extended clock support */ | ||
48 | |||
49 | static unsigned long s3c2442_camif_upll_round(struct clk *clk, | ||
50 | unsigned long rate) | ||
51 | { | ||
52 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
53 | int div; | ||
54 | |||
55 | if (rate > parent_rate) | ||
56 | return parent_rate; | ||
57 | |||
58 | div = parent_rate / rate; | ||
59 | |||
60 | if (div == 3) | ||
61 | return parent_rate / 3; | ||
62 | |||
63 | /* note, we remove the +/- 1 calculations for the divisor */ | ||
64 | |||
65 | div /= 2; | ||
66 | |||
67 | if (div < 1) | ||
68 | div = 1; | ||
69 | else if (div > 16) | ||
70 | div = 16; | ||
71 | |||
72 | return parent_rate / (div * 2); | ||
73 | } | ||
74 | |||
75 | static int s3c2442_camif_upll_setrate(struct clk *clk, unsigned long rate) | ||
76 | { | ||
77 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
78 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | ||
79 | |||
80 | rate = s3c2442_camif_upll_round(clk, rate); | ||
81 | |||
82 | camdivn &= ~S3C2442_CAMDIVN_CAMCLK_DIV3; | ||
83 | |||
84 | if (rate == parent_rate) { | ||
85 | camdivn &= ~S3C2440_CAMDIVN_CAMCLK_SEL; | ||
86 | } else if ((parent_rate / rate) == 3) { | ||
87 | camdivn |= S3C2440_CAMDIVN_CAMCLK_SEL; | ||
88 | camdivn |= S3C2442_CAMDIVN_CAMCLK_DIV3; | ||
89 | } else { | ||
90 | camdivn &= ~S3C2440_CAMDIVN_CAMCLK_MASK; | ||
91 | camdivn |= S3C2440_CAMDIVN_CAMCLK_SEL; | ||
92 | camdivn |= (((parent_rate / rate) / 2) - 1); | ||
93 | } | ||
94 | |||
95 | __raw_writel(camdivn, S3C2440_CAMDIVN); | ||
96 | |||
97 | return 0; | ||
98 | } | ||
99 | |||
100 | /* Extra S3C2442 clocks */ | ||
101 | |||
102 | static struct clk s3c2442_clk_cam = { | ||
103 | .name = "camif", | ||
104 | .id = -1, | ||
105 | .enable = s3c24xx_clkcon_enable, | ||
106 | .ctrlbit = S3C2440_CLKCON_CAMERA, | ||
107 | }; | ||
108 | |||
109 | static struct clk s3c2442_clk_cam_upll = { | ||
110 | .name = "camif-upll", | ||
111 | .id = -1, | ||
112 | .set_rate = s3c2442_camif_upll_setrate, | ||
113 | .round_rate = s3c2442_camif_upll_round, | ||
114 | }; | ||
115 | |||
116 | static int s3c2442_clk_add(struct sys_device *sysdev) | ||
117 | { | ||
118 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | ||
119 | unsigned long clkdivn; | ||
120 | struct clk *clk_h; | ||
121 | struct clk *clk_p; | ||
122 | struct clk *clk_upll; | ||
123 | |||
124 | printk("S3C2442: Clock Support, DVS %s\n", | ||
125 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); | ||
126 | |||
127 | clk_p = clk_get(NULL, "pclk"); | ||
128 | clk_h = clk_get(NULL, "hclk"); | ||
129 | clk_upll = clk_get(NULL, "upll"); | ||
130 | |||
131 | if (IS_ERR(clk_p) || IS_ERR(clk_h) || IS_ERR(clk_upll)) { | ||
132 | printk(KERN_ERR "S3C2442: Failed to get parent clocks\n"); | ||
133 | return -EINVAL; | ||
134 | } | ||
135 | |||
136 | /* check rate of UPLL, and if it is near 96MHz, then change | ||
137 | * to using half the UPLL rate for the system */ | ||
138 | |||
139 | if (clk_get_rate(clk_upll) > (94 * MHZ)) { | ||
140 | clk_usb_bus.rate = clk_get_rate(clk_upll) / 2; | ||
141 | |||
142 | mutex_lock(&clocks_mutex); | ||
143 | |||
144 | clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
145 | clkdivn |= S3C2440_CLKDIVN_UCLK; | ||
146 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
147 | |||
148 | mutex_unlock(&clocks_mutex); | ||
149 | } | ||
150 | |||
151 | s3c2442_clk_cam.parent = clk_h; | ||
152 | s3c2442_clk_cam_upll.parent = clk_upll; | ||
153 | |||
154 | s3c24xx_register_clock(&s3c2442_clk_cam); | ||
155 | s3c24xx_register_clock(&s3c2442_clk_cam_upll); | ||
156 | |||
157 | clk_disable(&s3c2442_clk_cam); | ||
158 | |||
159 | return 0; | ||
160 | } | ||
161 | |||
162 | static struct sysdev_driver s3c2442_clk_driver = { | ||
163 | .add = s3c2442_clk_add, | ||
164 | }; | ||
165 | |||
166 | static __init int s3c2442_clk_init(void) | ||
167 | { | ||
168 | return sysdev_driver_register(&s3c2442_sysclass, &s3c2442_clk_driver); | ||
169 | } | ||
170 | |||
171 | arch_initcall(s3c2442_clk_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c2442.c b/arch/arm/mach-s3c2410/s3c2442.c new file mode 100644 index 000000000000..debae2430557 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442.c | |||
@@ -0,0 +1,52 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Samsung S3C2442 Mobile CPU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/list.h> | ||
17 | #include <linux/timer.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/sysdev.h> | ||
21 | #include <linux/clk.h> | ||
22 | |||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/mach/irq.h> | ||
26 | |||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/irq.h> | ||
30 | |||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | |||
37 | #include "s3c2442.h" | ||
38 | #include "clock.h" | ||
39 | #include "devs.h" | ||
40 | #include "cpu.h" | ||
41 | #include "pm.h" | ||
42 | |||
43 | static struct sys_device s3c2442_sysdev = { | ||
44 | .cls = &s3c2442_sysclass, | ||
45 | }; | ||
46 | |||
47 | int __init s3c2442_init(void) | ||
48 | { | ||
49 | printk("S3C2442: Initialising architecture\n"); | ||
50 | |||
51 | return sysdev_register(&s3c2442_sysdev); | ||
52 | } | ||
diff --git a/arch/arm/mach-s3c2410/s3c2442.h b/arch/arm/mach-s3c2410/s3c2442.h new file mode 100644 index 000000000000..0ae37d24866c --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* arch/arm/mach-s3c2410/s3c2442.h | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for s3c2442 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifdef CONFIG_CPU_S3C2442 | ||
14 | extern int s3c2442_init(void); | ||
15 | #else | ||
16 | #define s3c2442_init NULL | ||
17 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x-irq.c b/arch/arm/mach-s3c2410/s3c244x-irq.c new file mode 100644 index 000000000000..2aadca1ce7eb --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x-irq.c | |||
@@ -0,0 +1,142 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440-irq.c | ||
2 | * | ||
3 | * Copyright (c) 2003,2004 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
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, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | * Changelog: | ||
21 | * 25-Jul-2005 BJD Split from irq.c | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #include <linux/init.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/ioport.h> | ||
29 | #include <linux/ptrace.h> | ||
30 | #include <linux/sysdev.h> | ||
31 | |||
32 | #include <asm/hardware.h> | ||
33 | #include <asm/irq.h> | ||
34 | #include <asm/io.h> | ||
35 | |||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/arch/regs-irq.h> | ||
39 | #include <asm/arch/regs-gpio.h> | ||
40 | |||
41 | #include "cpu.h" | ||
42 | #include "pm.h" | ||
43 | #include "irq.h" | ||
44 | |||
45 | /* camera irq */ | ||
46 | |||
47 | static void s3c_irq_demux_cam(unsigned int irq, | ||
48 | struct irqdesc *desc, | ||
49 | struct pt_regs *regs) | ||
50 | { | ||
51 | unsigned int subsrc, submsk; | ||
52 | struct irqdesc *mydesc; | ||
53 | |||
54 | /* read the current pending interrupts, and the mask | ||
55 | * for what it is available */ | ||
56 | |||
57 | subsrc = __raw_readl(S3C2410_SUBSRCPND); | ||
58 | submsk = __raw_readl(S3C2410_INTSUBMSK); | ||
59 | |||
60 | subsrc &= ~submsk; | ||
61 | subsrc >>= 11; | ||
62 | subsrc &= 3; | ||
63 | |||
64 | if (subsrc != 0) { | ||
65 | if (subsrc & 1) { | ||
66 | mydesc = irq_desc + IRQ_S3C2440_CAM_C; | ||
67 | desc_handle_irq(IRQ_S3C2440_CAM_C, mydesc, regs); | ||
68 | } | ||
69 | if (subsrc & 2) { | ||
70 | mydesc = irq_desc + IRQ_S3C2440_CAM_P; | ||
71 | desc_handle_irq(IRQ_S3C2440_CAM_P, mydesc, regs); | ||
72 | } | ||
73 | } | ||
74 | } | ||
75 | |||
76 | #define INTMSK_CAM (1UL << (IRQ_CAM - IRQ_EINT0)) | ||
77 | |||
78 | static void | ||
79 | s3c_irq_cam_mask(unsigned int irqno) | ||
80 | { | ||
81 | s3c_irqsub_mask(irqno, INTMSK_CAM, 3<<11); | ||
82 | } | ||
83 | |||
84 | static void | ||
85 | s3c_irq_cam_unmask(unsigned int irqno) | ||
86 | { | ||
87 | s3c_irqsub_unmask(irqno, INTMSK_CAM); | ||
88 | } | ||
89 | |||
90 | static void | ||
91 | s3c_irq_cam_ack(unsigned int irqno) | ||
92 | { | ||
93 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); | ||
94 | } | ||
95 | |||
96 | static struct irqchip s3c_irq_cam = { | ||
97 | .mask = s3c_irq_cam_mask, | ||
98 | .unmask = s3c_irq_cam_unmask, | ||
99 | .ack = s3c_irq_cam_ack, | ||
100 | }; | ||
101 | |||
102 | static int s3c244x_irq_add(struct sys_device *sysdev) | ||
103 | { | ||
104 | unsigned int irqno; | ||
105 | |||
106 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); | ||
107 | set_irq_handler(IRQ_NFCON, do_level_IRQ); | ||
108 | set_irq_flags(IRQ_NFCON, IRQF_VALID); | ||
109 | |||
110 | /* add chained handler for camera */ | ||
111 | |||
112 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); | ||
113 | set_irq_handler(IRQ_CAM, do_level_IRQ); | ||
114 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); | ||
115 | |||
116 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { | ||
117 | set_irq_chip(irqno, &s3c_irq_cam); | ||
118 | set_irq_handler(irqno, do_level_IRQ); | ||
119 | set_irq_flags(irqno, IRQF_VALID); | ||
120 | } | ||
121 | |||
122 | return 0; | ||
123 | } | ||
124 | |||
125 | static struct sysdev_driver s3c244x_irq_driver = { | ||
126 | .add = s3c244x_irq_add, | ||
127 | }; | ||
128 | |||
129 | static int s3c2440_irq_init(void) | ||
130 | { | ||
131 | return sysdev_driver_register(&s3c2440_sysclass, &s3c244x_irq_driver); | ||
132 | } | ||
133 | |||
134 | arch_initcall(s3c2440_irq_init); | ||
135 | |||
136 | |||
137 | static int s3c2442_irq_init(void) | ||
138 | { | ||
139 | return sysdev_driver_register(&s3c2442_sysclass, &s3c244x_irq_driver); | ||
140 | } | ||
141 | |||
142 | arch_initcall(s3c2442_irq_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x.c b/arch/arm/mach-s3c2410/s3c244x.c new file mode 100644 index 000000000000..96852a7000db --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x.c | |||
@@ -0,0 +1,182 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c244x.c | ||
2 | * | ||
3 | * Copyright (c) 2004-2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Samsung S3C2440 and S3C2442 Mobile CPU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/list.h> | ||
17 | #include <linux/timer.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/sysdev.h> | ||
21 | #include <linux/clk.h> | ||
22 | |||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/mach/irq.h> | ||
26 | |||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/irq.h> | ||
30 | |||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | |||
37 | #include "s3c2440.h" | ||
38 | #include "s3c244x.h" | ||
39 | #include "clock.h" | ||
40 | #include "devs.h" | ||
41 | #include "cpu.h" | ||
42 | #include "pm.h" | ||
43 | |||
44 | static struct map_desc s3c244x_iodesc[] __initdata = { | ||
45 | IODESC_ENT(CLKPWR), | ||
46 | IODESC_ENT(TIMER), | ||
47 | IODESC_ENT(WATCHDOG), | ||
48 | IODESC_ENT(LCD), | ||
49 | IODESC_ENT(ADC), | ||
50 | IODESC_ENT(USBHOST), | ||
51 | }; | ||
52 | |||
53 | /* uart initialisation */ | ||
54 | |||
55 | void __init s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
56 | { | ||
57 | s3c24xx_init_uartdevs("s3c2440-uart", s3c2410_uart_resources, cfg, no); | ||
58 | } | ||
59 | |||
60 | void __init s3c244x_map_io(struct map_desc *mach_desc, int size) | ||
61 | { | ||
62 | /* register our io-tables */ | ||
63 | |||
64 | iotable_init(s3c244x_iodesc, ARRAY_SIZE(s3c244x_iodesc)); | ||
65 | iotable_init(mach_desc, size); | ||
66 | |||
67 | /* rename any peripherals used differing from the s3c2410 */ | ||
68 | |||
69 | s3c_device_i2c.name = "s3c2440-i2c"; | ||
70 | s3c_device_nand.name = "s3c2440-nand"; | ||
71 | } | ||
72 | |||
73 | void __init s3c244x_init_clocks(int xtal) | ||
74 | { | ||
75 | unsigned long clkdiv; | ||
76 | unsigned long camdiv; | ||
77 | unsigned long hclk, fclk, pclk; | ||
78 | int hdiv = 1; | ||
79 | |||
80 | /* now we've got our machine bits initialised, work out what | ||
81 | * clocks we've got */ | ||
82 | |||
83 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; | ||
84 | |||
85 | clkdiv = __raw_readl(S3C2410_CLKDIVN); | ||
86 | camdiv = __raw_readl(S3C2440_CAMDIVN); | ||
87 | |||
88 | /* work out clock scalings */ | ||
89 | |||
90 | switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { | ||
91 | case S3C2440_CLKDIVN_HDIVN_1: | ||
92 | hdiv = 1; | ||
93 | break; | ||
94 | |||
95 | case S3C2440_CLKDIVN_HDIVN_2: | ||
96 | hdiv = 2; | ||
97 | break; | ||
98 | |||
99 | case S3C2440_CLKDIVN_HDIVN_4_8: | ||
100 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4; | ||
101 | break; | ||
102 | |||
103 | case S3C2440_CLKDIVN_HDIVN_3_6: | ||
104 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3; | ||
105 | break; | ||
106 | } | ||
107 | |||
108 | hclk = fclk / hdiv; | ||
109 | pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN)? 2:1); | ||
110 | |||
111 | /* print brief summary of clocks, etc */ | ||
112 | |||
113 | printk("S3C244X: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n", | ||
114 | print_mhz(fclk), print_mhz(hclk), print_mhz(pclk)); | ||
115 | |||
116 | /* initialise the clocks here, to allow other things like the | ||
117 | * console to use them, and to add new ones after the initialisation | ||
118 | */ | ||
119 | |||
120 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | ||
121 | } | ||
122 | |||
123 | #ifdef CONFIG_PM | ||
124 | |||
125 | static struct sleep_save s3c244x_sleep[] = { | ||
126 | SAVE_ITEM(S3C2440_DSC0), | ||
127 | SAVE_ITEM(S3C2440_DSC1), | ||
128 | SAVE_ITEM(S3C2440_GPJDAT), | ||
129 | SAVE_ITEM(S3C2440_GPJCON), | ||
130 | SAVE_ITEM(S3C2440_GPJUP) | ||
131 | }; | ||
132 | |||
133 | static int s3c244x_suspend(struct sys_device *dev, pm_message_t state) | ||
134 | { | ||
135 | s3c2410_pm_do_save(s3c244x_sleep, ARRAY_SIZE(s3c244x_sleep)); | ||
136 | return 0; | ||
137 | } | ||
138 | |||
139 | static int s3c244x_resume(struct sys_device *dev) | ||
140 | { | ||
141 | s3c2410_pm_do_restore(s3c244x_sleep, ARRAY_SIZE(s3c244x_sleep)); | ||
142 | return 0; | ||
143 | } | ||
144 | |||
145 | #else | ||
146 | #define s3c244x_suspend NULL | ||
147 | #define s3c244x_resume NULL | ||
148 | #endif | ||
149 | |||
150 | /* Since the S3C2442 and S3C2440 share items, put both sysclasses here */ | ||
151 | |||
152 | struct sysdev_class s3c2440_sysclass = { | ||
153 | set_kset_name("s3c2440-core"), | ||
154 | .suspend = s3c244x_suspend, | ||
155 | .resume = s3c244x_resume | ||
156 | }; | ||
157 | |||
158 | struct sysdev_class s3c2442_sysclass = { | ||
159 | set_kset_name("s3c2442-core"), | ||
160 | .suspend = s3c244x_suspend, | ||
161 | .resume = s3c244x_resume | ||
162 | }; | ||
163 | |||
164 | /* need to register class before we actually register the device, and | ||
165 | * we also need to ensure that it has been initialised before any of the | ||
166 | * drivers even try to use it (even if not on an s3c2440 based system) | ||
167 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
168 | */ | ||
169 | |||
170 | static int __init s3c2440_core_init(void) | ||
171 | { | ||
172 | return sysdev_class_register(&s3c2440_sysclass); | ||
173 | } | ||
174 | |||
175 | core_initcall(s3c2440_core_init); | ||
176 | |||
177 | static int __init s3c2442_core_init(void) | ||
178 | { | ||
179 | return sysdev_class_register(&s3c2442_sysclass); | ||
180 | } | ||
181 | |||
182 | core_initcall(s3c2442_core_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x.h b/arch/arm/mach-s3c2410/s3c244x.h new file mode 100644 index 000000000000..3e7f5f75134d --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* arch/arm/mach-s3c2410/s3c2440.h | ||
2 | * | ||
3 | * Copyright (c) 2004-2005 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for S3C2440 and S3C2442 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) | ||
14 | |||
15 | extern void s3c244x_map_io(struct map_desc *mach_desc, int size); | ||
16 | |||
17 | extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
18 | |||
19 | extern void s3c244x_init_clocks(int xtal); | ||
20 | |||
21 | #else | ||
22 | #define s3c244x_init_clocks NULL | ||
23 | #define s3c244x_init_uarts NULL | ||
24 | #define s3c244x_map_io NULL | ||
25 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/sleep.S b/arch/arm/mach-s3c2410/sleep.S index 832fb86a03b4..5f6761ed96b2 100644 --- a/arch/arm/mach-s3c2410/sleep.S +++ b/arch/arm/mach-s3c2410/sleep.S | |||
@@ -59,15 +59,16 @@ ENTRY(s3c2410_cpu_suspend) | |||
59 | mrc p15, 0, r5, c13, c0, 0 @ PID | 59 | mrc p15, 0, r5, c13, c0, 0 @ PID |
60 | mrc p15, 0, r6, c3, c0, 0 @ Domain ID | 60 | mrc p15, 0, r6, c3, c0, 0 @ Domain ID |
61 | mrc p15, 0, r7, c2, c0, 0 @ translation table base address | 61 | mrc p15, 0, r7, c2, c0, 0 @ translation table base address |
62 | mrc p15, 0, r8, c2, c0, 0 @ auxiliary control register | 62 | mrc p15, 0, r8, c1, c0, 0 @ control register |
63 | mrc p15, 0, r9, c1, c0, 0 @ control register | ||
64 | 63 | ||
65 | stmia r0, { r4 - r13 } | 64 | stmia r0, { r4 - r13 } |
66 | 65 | ||
67 | @@ flush the caches to ensure everything is back out to | 66 | @@ flush the caches to ensure everything is back out to |
68 | @@ SDRAM before the core powers down | 67 | @@ SDRAM before the core powers down |
69 | 68 | ||
69 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
70 | bl arm920_flush_kern_cache_all | 70 | bl arm920_flush_kern_cache_all |
71 | #endif | ||
71 | 72 | ||
72 | @@ prepare cpu to sleep | 73 | @@ prepare cpu to sleep |
73 | 74 | ||
@@ -165,7 +166,6 @@ ENTRY(s3c2410_cpu_resume) | |||
165 | mcr p15, 0, r5, c13, c0, 0 @ PID | 166 | mcr p15, 0, r5, c13, c0, 0 @ PID |
166 | mcr p15, 0, r6, c3, c0, 0 @ Domain ID | 167 | mcr p15, 0, r6, c3, c0, 0 @ Domain ID |
167 | mcr p15, 0, r7, c2, c0, 0 @ translation table base | 168 | mcr p15, 0, r7, c2, c0, 0 @ translation table base |
168 | mcr p15, 0, r8, c1, c1, 0 @ auxilliary control | ||
169 | 169 | ||
170 | #ifdef CONFIG_DEBUG_RESUME | 170 | #ifdef CONFIG_DEBUG_RESUME |
171 | mov r3, #'R' | 171 | mov r3, #'R' |
@@ -173,7 +173,7 @@ ENTRY(s3c2410_cpu_resume) | |||
173 | #endif | 173 | #endif |
174 | 174 | ||
175 | ldr r2, =resume_with_mmu | 175 | ldr r2, =resume_with_mmu |
176 | mcr p15, 0, r9, c1, c0, 0 @ turn on MMU, etc | 176 | mcr p15, 0, r8, c1, c0, 0 @ turn on MMU, etc |
177 | nop @ second-to-last before mmu | 177 | nop @ second-to-last before mmu |
178 | mov pc, r2 @ go back to virtual address | 178 | mov pc, r2 @ go back to virtual address |
179 | 179 | ||
diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c index 9e02bc3712a0..af6d2775cf82 100644 --- a/arch/arm/mach-sa1100/neponset.c +++ b/arch/arm/mach-sa1100/neponset.c | |||
@@ -59,6 +59,14 @@ neponset_irq_handler(unsigned int irq, struct irqdesc *desc, struct pt_regs *reg | |||
59 | if (irr & (IRR_ETHERNET | IRR_USAR)) { | 59 | if (irr & (IRR_ETHERNET | IRR_USAR)) { |
60 | desc->chip->mask(irq); | 60 | desc->chip->mask(irq); |
61 | 61 | ||
62 | /* | ||
63 | * Ack the interrupt now to prevent re-entering | ||
64 | * this neponset handler. Again, this is safe | ||
65 | * since we'll check the IRR register prior to | ||
66 | * leaving. | ||
67 | */ | ||
68 | desc->chip->ack(irq); | ||
69 | |||
62 | if (irr & IRR_ETHERNET) { | 70 | if (irr & IRR_ETHERNET) { |
63 | d = irq_desc + IRQ_NEPONSET_SMC9196; | 71 | d = irq_desc + IRQ_NEPONSET_SMC9196; |
64 | desc_handle_irq(IRQ_NEPONSET_SMC9196, d, regs); | 72 | desc_handle_irq(IRQ_NEPONSET_SMC9196, d, regs); |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 799697d32dec..cebd48a3dae4 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -112,10 +112,9 @@ void __init versatile_init_irq(void) | |||
112 | { | 112 | { |
113 | unsigned int i; | 113 | unsigned int i; |
114 | 114 | ||
115 | vic_init(VA_VIC_BASE, IRQ_VIC_START, ~(1 << 31)); | 115 | vic_init(VA_VIC_BASE, IRQ_VIC_START, ~0); |
116 | 116 | ||
117 | set_irq_handler(IRQ_VICSOURCE31, sic_handle_irq); | 117 | set_irq_chained_handler(IRQ_VICSOURCE31, sic_handle_irq); |
118 | enable_irq(IRQ_VICSOURCE31); | ||
119 | 118 | ||
120 | /* Do second interrupt controller */ | 119 | /* Do second interrupt controller */ |
121 | writel(~0, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR); | 120 | writel(~0, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR); |
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index c55b739e10ba..4221d054a1e9 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -121,8 +121,8 @@ config CPU_ARM925T | |||
121 | # ARM926T | 121 | # ARM926T |
122 | config CPU_ARM926T | 122 | config CPU_ARM926T |
123 | bool "Support ARM926T processor" | 123 | bool "Support ARM926T processor" |
124 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB | 124 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX |
125 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX | 125 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX |
126 | select CPU_32v5 | 126 | select CPU_32v5 |
127 | select CPU_ABRT_EV5TJ | 127 | select CPU_ABRT_EV5TJ |
128 | select CPU_CACHE_VIVT | 128 | select CPU_CACHE_VIVT |
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 25e0ca3e598c..c1f7180c7bed 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c | |||
@@ -141,7 +141,7 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, | |||
141 | return NULL; | 141 | return NULL; |
142 | addr = (unsigned long)area->addr; | 142 | addr = (unsigned long)area->addr; |
143 | if (remap_area_pages(addr, pfn, size, flags)) { | 143 | if (remap_area_pages(addr, pfn, size, flags)) { |
144 | vfree((void *)addr); | 144 | vunmap((void *)addr); |
145 | return NULL; | 145 | return NULL; |
146 | } | 146 | } |
147 | return (void __iomem *) (offset + (char *)addr); | 147 | return (void __iomem *) (offset + (char *)addr); |
@@ -173,7 +173,7 @@ EXPORT_SYMBOL(__ioremap); | |||
173 | 173 | ||
174 | void __iounmap(void __iomem *addr) | 174 | void __iounmap(void __iomem *addr) |
175 | { | 175 | { |
176 | vfree((void *) (PAGE_MASK & (unsigned long) addr)); | 176 | vunmap((void *)(PAGE_MASK & (unsigned long)addr)); |
177 | } | 177 | } |
178 | EXPORT_SYMBOL(__iounmap); | 178 | EXPORT_SYMBOL(__iounmap); |
179 | 179 | ||
diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index f14b2d0f3690..95273de4f772 100644 --- a/arch/arm/mm/mm-armv.c +++ b/arch/arm/mm/mm-armv.c | |||
@@ -376,7 +376,7 @@ void __init build_mem_type_table(void) | |||
376 | ecc_mask = 0; | 376 | ecc_mask = 0; |
377 | } | 377 | } |
378 | 378 | ||
379 | if (cpu_arch <= CPU_ARCH_ARMv5TEJ) { | 379 | if (cpu_arch <= CPU_ARCH_ARMv5TEJ && !cpu_is_xscale()) { |
380 | for (i = 0; i < ARRAY_SIZE(mem_types); i++) { | 380 | for (i = 0; i < ARRAY_SIZE(mem_types); i++) { |
381 | if (mem_types[i].prot_l1) | 381 | if (mem_types[i].prot_l1) |
382 | mem_types[i].prot_l1 |= PMD_BIT4; | 382 | mem_types[i].prot_l1 |= PMD_BIT4; |
@@ -631,7 +631,7 @@ void setup_mm_for_reboot(char mode) | |||
631 | pgd = init_mm.pgd; | 631 | pgd = init_mm.pgd; |
632 | 632 | ||
633 | base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT; | 633 | base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT; |
634 | if (cpu_architecture() <= CPU_ARCH_ARMv5TEJ) | 634 | if (cpu_architecture() <= CPU_ARCH_ARMv5TEJ && !cpu_is_xscale()) |
635 | base_pmdval |= PMD_BIT4; | 635 | base_pmdval |= PMD_BIT4; |
636 | 636 | ||
637 | for (i = 0; i < FIRST_USER_PGD_NR + USER_PTRS_PER_PGD; i++, pgd++) { | 637 | for (i = 0; i < FIRST_USER_PGD_NR + USER_PTRS_PER_PGD; i++, pgd++) { |
diff --git a/arch/arm/mm/proc-xsc3.S b/arch/arm/mm/proc-xsc3.S index 80873b36c3f7..8d32e21fe151 100644 --- a/arch/arm/mm/proc-xsc3.S +++ b/arch/arm/mm/proc-xsc3.S | |||
@@ -427,12 +427,13 @@ __xsc3_setup: | |||
427 | #endif | 427 | #endif |
428 | mcr p15, 0, r0, c1, c0, 1 @ set auxiliary control reg | 428 | mcr p15, 0, r0, c1, c0, 1 @ set auxiliary control reg |
429 | mrc p15, 0, r0, c1, c0, 0 @ get control register | 429 | mrc p15, 0, r0, c1, c0, 0 @ get control register |
430 | bic r0, r0, #0x0200 @ .... ..R. .... .... | ||
431 | bic r0, r0, #0x0002 @ .... .... .... ..A. | 430 | bic r0, r0, #0x0002 @ .... .... .... ..A. |
432 | orr r0, r0, #0x0005 @ .... .... .... .C.M | 431 | orr r0, r0, #0x0005 @ .... .... .... .C.M |
433 | #if BTB_ENABLE | 432 | #if BTB_ENABLE |
433 | bic r0, r0, #0x0200 @ .... ..R. .... .... | ||
434 | orr r0, r0, #0x3900 @ ..VI Z..S .... .... | 434 | orr r0, r0, #0x3900 @ ..VI Z..S .... .... |
435 | #else | 435 | #else |
436 | bic r0, r0, #0x0a00 @ .... Z.R. .... .... | ||
436 | orr r0, r0, #0x3100 @ ..VI ...S .... .... | 437 | orr r0, r0, #0x3100 @ ..VI ...S .... .... |
437 | #endif | 438 | #endif |
438 | #if L2_CACHE_ENABLE | 439 | #if L2_CACHE_ENABLE |
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index 8ab5300dcb94..6d7de9c0412f 100644 --- a/arch/arm/tools/mach-types +++ b/arch/arm/tools/mach-types | |||
@@ -12,7 +12,7 @@ | |||
12 | # | 12 | # |
13 | # http://www.arm.linux.org.uk/developer/machines/?action=new | 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new |
14 | # | 14 | # |
15 | # Last update: Mon Feb 20 10:18:02 2006 | 15 | # Last update: Mon May 8 20:11:05 2006 |
16 | # | 16 | # |
17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
18 | # | 18 | # |
@@ -566,8 +566,8 @@ switchgrass MACH_SWITCHGRASS SWITCHGRASS 549 | |||
566 | ens_cmu MACH_ENS_CMU ENS_CMU 550 | 566 | ens_cmu MACH_ENS_CMU ENS_CMU 550 |
567 | mm6_sdb MACH_MM6_SDB MM6_SDB 551 | 567 | mm6_sdb MACH_MM6_SDB MM6_SDB 551 |
568 | saturn MACH_SATURN SATURN 552 | 568 | saturn MACH_SATURN SATURN 552 |
569 | argonplusevb MACH_ARGONPLUSEVB ARGONPLUSEVB 553 | 569 | i30030evb MACH_ARGONPLUSEVB ARGONPLUSEVB 553 |
570 | scma11evb MACH_SCMA11EVB SCMA11EVB 554 | 570 | mxc27530evb MACH_SCMA11EVB SCMA11EVB 554 |
571 | smdk2800 MACH_SMDK2800 SMDK2800 555 | 571 | smdk2800 MACH_SMDK2800 SMDK2800 555 |
572 | mtwilson MACH_MTWILSON MTWILSON 556 | 572 | mtwilson MACH_MTWILSON MTWILSON 556 |
573 | ziti MACH_ZITI ZITI 557 | 573 | ziti MACH_ZITI ZITI 557 |
@@ -647,7 +647,7 @@ sendt MACH_SENDT SENDT 630 | |||
647 | mx2jazz MACH_MX2JAZZ MX2JAZZ 631 | 647 | mx2jazz MACH_MX2JAZZ MX2JAZZ 631 |
648 | multiio MACH_MULTIIO MULTIIO 632 | 648 | multiio MACH_MULTIIO MULTIIO 632 |
649 | hrdisplay MACH_HRDISPLAY HRDISPLAY 633 | 649 | hrdisplay MACH_HRDISPLAY HRDISPLAY 633 |
650 | scma11bb MACH_SCMA11BB SCMA11BB 634 | 650 | mxc27530ads MACH_SCMA11BB SCMA11BB 634 |
651 | trizeps3 MACH_TRIZEPS3 TRIZEPS3 635 | 651 | trizeps3 MACH_TRIZEPS3 TRIZEPS3 635 |
652 | zefeerdza MACH_ZEFEERDZA ZEFEERDZA 636 | 652 | zefeerdza MACH_ZEFEERDZA ZEFEERDZA 636 |
653 | zefeerdzb MACH_ZEFEERDZB ZEFEERDZB 637 | 653 | zefeerdzb MACH_ZEFEERDZB ZEFEERDZB 637 |
@@ -721,7 +721,7 @@ gp32 MACH_GP32 GP32 706 | |||
721 | gem MACH_GEM GEM 707 | 721 | gem MACH_GEM GEM 707 |
722 | i858 MACH_I858 I858 708 | 722 | i858 MACH_I858 I858 708 |
723 | hx2750 MACH_HX2750 HX2750 709 | 723 | hx2750 MACH_HX2750 HX2750 709 |
724 | zeusevb MACH_ZEUSEVB ZEUSEVB 710 | 724 | mxc91131evb MACH_ZEUSEVB ZEUSEVB 710 |
725 | p700 MACH_P700 P700 711 | 725 | p700 MACH_P700 P700 711 |
726 | cpe MACH_CPE CPE 712 | 726 | cpe MACH_CPE CPE 712 |
727 | spitz MACH_SPITZ SPITZ 713 | 727 | spitz MACH_SPITZ SPITZ 713 |
@@ -802,7 +802,7 @@ cpuat91 MACH_CPUAT91 CPUAT91 787 | |||
802 | rea9200 MACH_REA9200 REA9200 788 | 802 | rea9200 MACH_REA9200 REA9200 788 |
803 | acts_pune_sa1110 MACH_ACTS_PUNE_SA1110 ACTS_PUNE_SA1110 789 | 803 | acts_pune_sa1110 MACH_ACTS_PUNE_SA1110 ACTS_PUNE_SA1110 789 |
804 | ixp425 MACH_IXP425 IXP425 790 | 804 | ixp425 MACH_IXP425 IXP425 790 |
805 | argonplusodyssey MACH_ARGONPLUSODYSSEY ARGONPLUSODYSSEY 791 | 805 | i30030ads MACH_ARGONPLUSODYSSEY ARGONPLUSODYSSEY 791 |
806 | perch MACH_PERCH PERCH 792 | 806 | perch MACH_PERCH PERCH 792 |
807 | eis05r1 MACH_EIS05R1 EIS05R1 793 | 807 | eis05r1 MACH_EIS05R1 EIS05R1 793 |
808 | pepperpad MACH_PEPPERPAD PEPPERPAD 794 | 808 | pepperpad MACH_PEPPERPAD PEPPERPAD 794 |
@@ -827,7 +827,7 @@ micro9l MACH_MICRO9L MICRO9L 812 | |||
827 | uc5471dsp MACH_UC5471DSP UC5471DSP 813 | 827 | uc5471dsp MACH_UC5471DSP UC5471DSP 813 |
828 | sj5471eng MACH_SJ5471ENG SJ5471ENG 814 | 828 | sj5471eng MACH_SJ5471ENG SJ5471ENG 814 |
829 | none MACH_CMPXA26X CMPXA26X 815 | 829 | none MACH_CMPXA26X CMPXA26X 815 |
830 | nc MACH_NC NC 816 | 830 | nc1 MACH_NC NC 816 |
831 | omap_palmte MACH_OMAP_PALMTE OMAP_PALMTE 817 | 831 | omap_palmte MACH_OMAP_PALMTE OMAP_PALMTE 817 |
832 | ajax52x MACH_AJAX52X AJAX52X 818 | 832 | ajax52x MACH_AJAX52X AJAX52X 818 |
833 | siriustar MACH_SIRIUSTAR SIRIUSTAR 819 | 833 | siriustar MACH_SIRIUSTAR SIRIUSTAR 819 |
@@ -930,7 +930,7 @@ netclient MACH_NETCLIENT NETCLIENT 916 | |||
930 | xscale_palmtt5 MACH_XSCALE_PALMTT5 XSCALE_PALMTT5 917 | 930 | xscale_palmtt5 MACH_XSCALE_PALMTT5 XSCALE_PALMTT5 917 |
931 | xscale_palmtc MACH_OMAP_PALMTC OMAP_PALMTC 918 | 931 | xscale_palmtc MACH_OMAP_PALMTC OMAP_PALMTC 918 |
932 | omap_apollon MACH_OMAP_APOLLON OMAP_APOLLON 919 | 932 | omap_apollon MACH_OMAP_APOLLON OMAP_APOLLON 919 |
933 | argonlvevb MACH_ARGONLVEVB ARGONLVEVB 920 | 933 | mxc30030evb MACH_ARGONLVEVB ARGONLVEVB 920 |
934 | rea_2d MACH_REA_2D REA_2D 921 | 934 | rea_2d MACH_REA_2D REA_2D 921 |
935 | eti3e524 MACH_TI3E524 TI3E524 922 | 935 | eti3e524 MACH_TI3E524 TI3E524 922 |
936 | ateb9200 MACH_ATEB9200 ATEB9200 923 | 936 | ateb9200 MACH_ATEB9200 ATEB9200 923 |
@@ -965,7 +965,78 @@ sisteron MACH_SISTERON SISTERON 951 | |||
965 | rx1950 MACH_RX1950 RX1950 952 | 965 | rx1950 MACH_RX1950 RX1950 952 |
966 | tsc_venus MACH_TSC_VENUS TSC_VENUS 953 | 966 | tsc_venus MACH_TSC_VENUS TSC_VENUS 953 |
967 | ds101j MACH_DS101J DS101J 954 | 967 | ds101j MACH_DS101J DS101J 954 |
968 | mxc300_30ads MACH_MXC30030ADS MXC30030ADS 955 | 968 | mxc30030ads MACH_MXC30030ADS MXC30030ADS 955 |
969 | fujitsu_wimaxsoc MACH_FUJITSU_WIMAXSOC FUJITSU_WIMAXSOC 956 | 969 | fujitsu_wimaxsoc MACH_FUJITSU_WIMAXSOC FUJITSU_WIMAXSOC 956 |
970 | dualpcmodem MACH_DUALPCMODEM DUALPCMODEM 957 | 970 | dualpcmodem MACH_DUALPCMODEM DUALPCMODEM 957 |
971 | gesbc9312 MACH_GESBC9312 GESBC9312 958 | 971 | gesbc9312 MACH_GESBC9312 GESBC9312 958 |
972 | htcapache MACH_HTCAPACHE HTCAPACHE 959 | ||
973 | ixdp435 MACH_IXDP435 IXDP435 960 | ||
974 | catprovt100 MACH_CATPROVT100 CATPROVT100 961 | ||
975 | picotux1xx MACH_PICOTUX1XX PICOTUX1XX 962 | ||
976 | picotux2xx MACH_PICOTUX2XX PICOTUX2XX 963 | ||
977 | dsmg600 MACH_DSMG600 DSMG600 964 | ||
978 | empc2 MACH_EMPC2 EMPC2 965 | ||
979 | ventura MACH_VENTURA VENTURA 966 | ||
980 | phidget_sbc MACH_PHIDGET_SBC PHIDGET_SBC 967 | ||
981 | ij3k MACH_IJ3K IJ3K 968 | ||
982 | pisgah MACH_PISGAH PISGAH 969 | ||
983 | omap_fsample MACH_OMAP_FSAMPLE OMAP_FSAMPLE 970 | ||
984 | sg720 MACH_SG720 SG720 971 | ||
985 | redfox MACH_REDFOX REDFOX 972 | ||
986 | mysh_ep9315_1 MACH_MYSH_EP9315_1 MYSH_EP9315_1 973 | ||
987 | tpf106 MACH_TPF106 TPF106 974 | ||
988 | at91rm9200kg MACH_AT91RM9200KG AT91RM9200KG 975 | ||
989 | racemt2 MACH_SLEDB SLEDB 976 | ||
990 | ontrack MACH_ONTRACK ONTRACK 977 | ||
991 | pm1200 MACH_PM1200 PM1200 978 | ||
992 | ess24562 MACH_ESS24XXX ESS24XXX 979 | ||
993 | coremp7 MACH_COREMP7 COREMP7 980 | ||
994 | nexcoder_6446 MACH_NEXCODER_6446 NEXCODER_6446 981 | ||
995 | stvc8380 MACH_STVC8380 STVC8380 982 | ||
996 | teklynx MACH_TEKLYNX TEKLYNX 983 | ||
997 | carbonado MACH_CARBONADO CARBONADO 984 | ||
998 | sysmos_mp730 MACH_SYSMOS_MP730 SYSMOS_MP730 985 | ||
999 | snapper_cl15 MACH_SNAPPER_CL15 SNAPPER_CL15 986 | ||
1000 | pgigim MACH_PGIGIM PGIGIM 987 | ||
1001 | ptx9160p2 MACH_PTX9160P2 PTX9160P2 988 | ||
1002 | dcore1 MACH_DCORE1 DCORE1 989 | ||
1003 | victorpxa MACH_VICTORPXA VICTORPXA 990 | ||
1004 | mx2dtb MACH_MX2DTB MX2DTB 991 | ||
1005 | pxa_irex_er0100 MACH_PXA_IREX_ER0100 PXA_IREX_ER0100 992 | ||
1006 | omap_palmz71 MACH_OMAP_PALMZ71 OMAP_PALMZ71 993 | ||
1007 | bartec_deg MACH_BARTEC_DEG BARTEC_DEG 994 | ||
1008 | hw50251 MACH_HW50251 HW50251 995 | ||
1009 | ibox MACH_IBOX IBOX 996 | ||
1010 | atlaslh7a404 MACH_ATLASLH7A404 ATLASLH7A404 997 | ||
1011 | pt2026 MACH_PT2026 PT2026 998 | ||
1012 | htcalpine MACH_HTCALPINE HTCALPINE 999 | ||
1013 | bartec_vtu MACH_BARTEC_VTU BARTEC_VTU 1000 | ||
1014 | vcoreii MACH_VCOREII VCOREII 1001 | ||
1015 | pdnb3 MACH_PDNB3 PDNB3 1002 | ||
1016 | htcbeetles MACH_HTCBEETLES HTCBEETLES 1003 | ||
1017 | s3c6400 MACH_S3C6400 S3C6400 1004 | ||
1018 | s3c2443 MACH_S3C2443 S3C2443 1005 | ||
1019 | omap_ldk MACH_OMAP_LDK OMAP_LDK 1006 | ||
1020 | smdk2460 MACH_SMDK2460 SMDK2460 1007 | ||
1021 | smdk2440 MACH_SMDK2440 SMDK2440 1008 | ||
1022 | smdk2412 MACH_SMDK2412 SMDK2412 1009 | ||
1023 | webbox MACH_WEBBOX WEBBOX 1010 | ||
1024 | cwwndp MACH_CWWNDP CWWNDP 1011 | ||
1025 | dragon MACH_DRAGON DRAGON 1012 | ||
1026 | opendo_cpu_board MACH_OPENDO_CPU_BOARD OPENDO_CPU_BOARD 1013 | ||
1027 | ccm2200 MACH_CCM2200 CCM2200 1014 | ||
1028 | etwarm MACH_ETWARM ETWARM 1015 | ||
1029 | m93030 MACH_M93030 M93030 1016 | ||
1030 | cc7u MACH_CC7U CC7U 1017 | ||
1031 | mtt_ranger MACH_MTT_RANGER MTT_RANGER 1018 | ||
1032 | nexus MACH_NEXUS NEXUS 1019 | ||
1033 | desman MACH_DESMAN DESMAN 1020 | ||
1034 | bkde303 MACH_BKDE303 BKDE303 1021 | ||
1035 | smdk2413 MACH_SMDK2413 SMDK2413 1022 | ||
1036 | aml_m7200 MACH_AML_M7200 AML_M7200 1023 | ||
1037 | aml_m5900 MACH_AML_M5900 AML_M5900 1024 | ||
1038 | sg640 MACH_SG640 SG640 1025 | ||
1039 | edg79524 MACH_EDG79524 EDG79524 1026 | ||
1040 | ai2410 MACH_AI2410 AI2410 1027 | ||
1041 | ixp465 MACH_IXP465 IXP465 1028 | ||
1042 | balloon3 MACH_BALLOON3 BALLOON3 1029 | ||
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index c6fe99e57a05..8dfa3054f10f 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -758,10 +758,10 @@ config HOTPLUG_CPU | |||
758 | bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" | 758 | bool "Support for hot-pluggable CPUs (EXPERIMENTAL)" |
759 | depends on SMP && HOTPLUG && EXPERIMENTAL && !X86_VOYAGER | 759 | depends on SMP && HOTPLUG && EXPERIMENTAL && !X86_VOYAGER |
760 | ---help--- | 760 | ---help--- |
761 | Say Y here to experiment with turning CPUs off and on. CPUs | 761 | Say Y here to experiment with turning CPUs off and on, and to |
762 | can be controlled through /sys/devices/system/cpu. | 762 | enable suspend on SMP systems. CPUs can be controlled through |
763 | /sys/devices/system/cpu. | ||
763 | 764 | ||
764 | Say N. | ||
765 | 765 | ||
766 | endmenu | 766 | endmenu |
767 | 767 | ||
diff --git a/arch/i386/kernel/acpi/earlyquirk.c b/arch/i386/kernel/acpi/earlyquirk.c index 2e3b643a4dc4..1649a175a206 100644 --- a/arch/i386/kernel/acpi/earlyquirk.c +++ b/arch/i386/kernel/acpi/earlyquirk.c | |||
@@ -5,17 +5,34 @@ | |||
5 | #include <linux/init.h> | 5 | #include <linux/init.h> |
6 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
7 | #include <linux/pci.h> | 7 | #include <linux/pci.h> |
8 | #include <linux/acpi.h> | ||
9 | |||
8 | #include <asm/pci-direct.h> | 10 | #include <asm/pci-direct.h> |
9 | #include <asm/acpi.h> | 11 | #include <asm/acpi.h> |
10 | #include <asm/apic.h> | 12 | #include <asm/apic.h> |
11 | 13 | ||
14 | #ifdef CONFIG_ACPI | ||
15 | |||
16 | static int nvidia_hpet_detected __initdata; | ||
17 | |||
18 | static int __init nvidia_hpet_check(unsigned long phys, unsigned long size) | ||
19 | { | ||
20 | nvidia_hpet_detected = 1; | ||
21 | return 0; | ||
22 | } | ||
23 | #endif | ||
24 | |||
12 | static int __init check_bridge(int vendor, int device) | 25 | static int __init check_bridge(int vendor, int device) |
13 | { | 26 | { |
14 | #ifdef CONFIG_ACPI | 27 | #ifdef CONFIG_ACPI |
15 | /* According to Nvidia all timer overrides are bogus. Just ignore | 28 | /* According to Nvidia all timer overrides are bogus unless HPET |
16 | them all. */ | 29 | is enabled. */ |
17 | if (vendor == PCI_VENDOR_ID_NVIDIA) { | 30 | if (vendor == PCI_VENDOR_ID_NVIDIA) { |
18 | acpi_skip_timer_override = 1; | 31 | nvidia_hpet_detected = 0; |
32 | acpi_table_parse(ACPI_HPET, nvidia_hpet_check); | ||
33 | if (nvidia_hpet_detected == 0) { | ||
34 | acpi_skip_timer_override = 1; | ||
35 | } | ||
19 | } | 36 | } |
20 | #endif | 37 | #endif |
21 | if (vendor == PCI_VENDOR_ID_ATI && timer_over_8254 == 1) { | 38 | if (vendor == PCI_VENDOR_ID_ATI && timer_over_8254 == 1) { |
diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c index 013b85df18c6..3d4b2f3d116a 100644 --- a/arch/i386/kernel/apic.c +++ b/arch/i386/kernel/apic.c | |||
@@ -1341,6 +1341,14 @@ int __init APIC_init_uniprocessor (void) | |||
1341 | 1341 | ||
1342 | connect_bsp_APIC(); | 1342 | connect_bsp_APIC(); |
1343 | 1343 | ||
1344 | /* | ||
1345 | * Hack: In case of kdump, after a crash, kernel might be booting | ||
1346 | * on a cpu with non-zero lapic id. But boot_cpu_physical_apicid | ||
1347 | * might be zero if read from MP tables. Get it from LAPIC. | ||
1348 | */ | ||
1349 | #ifdef CONFIG_CRASH_DUMP | ||
1350 | boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); | ||
1351 | #endif | ||
1344 | phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid); | 1352 | phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid); |
1345 | 1353 | ||
1346 | setup_local_APIC(); | 1354 | setup_local_APIC(); |
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c index 3852d0a4c1b5..1a7bdcef1926 100644 --- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -104,7 +104,7 @@ acpi_processor_set_performance ( | |||
104 | { | 104 | { |
105 | u16 port = 0; | 105 | u16 port = 0; |
106 | u8 bit_width = 0; | 106 | u8 bit_width = 0; |
107 | int ret = 0; | 107 | int ret; |
108 | u32 value = 0; | 108 | u32 value = 0; |
109 | int i = 0; | 109 | int i = 0; |
110 | struct cpufreq_freqs cpufreq_freqs; | 110 | struct cpufreq_freqs cpufreq_freqs; |
@@ -195,7 +195,6 @@ acpi_processor_set_performance ( | |||
195 | udelay(10); | 195 | udelay(10); |
196 | } | 196 | } |
197 | } else { | 197 | } else { |
198 | i = 0; | ||
199 | value = (u32) data->acpi_data.states[state].status; | 198 | value = (u32) data->acpi_data.states[state].status; |
200 | } | 199 | } |
201 | 200 | ||
@@ -444,14 +443,15 @@ static struct freq_attr* acpi_cpufreq_attr[] = { | |||
444 | }; | 443 | }; |
445 | 444 | ||
446 | static struct cpufreq_driver acpi_cpufreq_driver = { | 445 | static struct cpufreq_driver acpi_cpufreq_driver = { |
447 | .verify = acpi_cpufreq_verify, | 446 | .verify = acpi_cpufreq_verify, |
448 | .target = acpi_cpufreq_target, | 447 | .target = acpi_cpufreq_target, |
449 | .init = acpi_cpufreq_cpu_init, | 448 | .init = acpi_cpufreq_cpu_init, |
450 | .exit = acpi_cpufreq_cpu_exit, | 449 | .exit = acpi_cpufreq_cpu_exit, |
451 | .resume = acpi_cpufreq_resume, | 450 | .resume = acpi_cpufreq_resume, |
452 | .name = "acpi-cpufreq", | 451 | .name = "acpi-cpufreq", |
453 | .owner = THIS_MODULE, | 452 | .owner = THIS_MODULE, |
454 | .attr = acpi_cpufreq_attr, | 453 | .attr = acpi_cpufreq_attr, |
454 | .flags = CPUFREQ_STICKY, | ||
455 | }; | 455 | }; |
456 | 456 | ||
457 | 457 | ||
diff --git a/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c b/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c index f275e0d4aee5..0d49d73d1b71 100644 --- a/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c +++ b/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * (C) 2004 Sebastian Witt <se.witt@gmx.net> | 2 | * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net> |
3 | * | 3 | * |
4 | * Licensed under the terms of the GNU GPL License version 2. | 4 | * Licensed under the terms of the GNU GPL License version 2. |
5 | * Based upon reverse engineered information | 5 | * Based upon reverse engineered information |
@@ -90,7 +90,7 @@ static int nforce2_calc_pll(unsigned int fsb) | |||
90 | 90 | ||
91 | /* Try to calculate multiplier and divider up to 4 times */ | 91 | /* Try to calculate multiplier and divider up to 4 times */ |
92 | while (((mul == 0) || (div == 0)) && (tried <= 3)) { | 92 | while (((mul == 0) || (div == 0)) && (tried <= 3)) { |
93 | for (xdiv = 1; xdiv <= 0x80; xdiv++) | 93 | for (xdiv = 2; xdiv <= 0x80; xdiv++) |
94 | for (xmul = 1; xmul <= 0xfe; xmul++) | 94 | for (xmul = 1; xmul <= 0xfe; xmul++) |
95 | if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == | 95 | if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == |
96 | fsb + tried) { | 96 | fsb + tried) { |
@@ -117,8 +117,7 @@ static void nforce2_write_pll(int pll) | |||
117 | int temp; | 117 | int temp; |
118 | 118 | ||
119 | /* Set the pll addr. to 0x00 */ | 119 | /* Set the pll addr. to 0x00 */ |
120 | temp = 0x00; | 120 | pci_write_config_dword(nforce2_chipset_dev, NFORCE2_PLLADR, 0); |
121 | pci_write_config_dword(nforce2_chipset_dev, NFORCE2_PLLADR, temp); | ||
122 | 121 | ||
123 | /* Now write the value in all 64 registers */ | 122 | /* Now write the value in all 64 registers */ |
124 | for (temp = 0; temp <= 0x3f; temp++) | 123 | for (temp = 0; temp <= 0x3f; temp++) |
@@ -266,7 +265,7 @@ static int nforce2_target(struct cpufreq_policy *policy, | |||
266 | if (freqs.old == freqs.new) | 265 | if (freqs.old == freqs.new) |
267 | return 0; | 266 | return 0; |
268 | 267 | ||
269 | dprintk(KERN_INFO "cpufreq: Old CPU frequency %d kHz, new %d kHz\n", | 268 | dprintk("Old CPU frequency %d kHz, new %d kHz\n", |
270 | freqs.old, freqs.new); | 269 | freqs.old, freqs.new); |
271 | 270 | ||
272 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 271 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); |
@@ -278,7 +277,7 @@ static int nforce2_target(struct cpufreq_policy *policy, | |||
278 | printk(KERN_ERR "cpufreq: Changing FSB to %d failed\n", | 277 | printk(KERN_ERR "cpufreq: Changing FSB to %d failed\n", |
279 | target_fsb); | 278 | target_fsb); |
280 | else | 279 | else |
281 | dprintk(KERN_INFO "cpufreq: Changed FSB successfully to %d\n", | 280 | dprintk("Changed FSB successfully to %d\n", |
282 | target_fsb); | 281 | target_fsb); |
283 | 282 | ||
284 | /* Enable IRQs */ | 283 | /* Enable IRQs */ |
diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c index 8ef38544453c..146f607e9c44 100644 --- a/arch/i386/kernel/cpu/cpufreq/longhaul.c +++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c | |||
@@ -77,13 +77,17 @@ static char speedbuffer[8]; | |||
77 | 77 | ||
78 | static char *print_speed(int speed) | 78 | static char *print_speed(int speed) |
79 | { | 79 | { |
80 | if (speed > 1000) { | 80 | if (speed < 1000) { |
81 | if (speed%1000 == 0) | 81 | snprintf(speedbuffer, sizeof(speedbuffer),"%dMHz", speed); |
82 | sprintf (speedbuffer, "%dGHz", speed/1000); | 82 | return speedbuffer; |
83 | else | 83 | } |
84 | sprintf (speedbuffer, "%d.%dGHz", speed/1000, (speed%1000)/100); | 84 | |
85 | } else | 85 | if (speed%1000 == 0) |
86 | sprintf (speedbuffer, "%dMHz", speed); | 86 | snprintf(speedbuffer, sizeof(speedbuffer), |
87 | "%dGHz", speed/1000); | ||
88 | else | ||
89 | snprintf(speedbuffer, sizeof(speedbuffer), | ||
90 | "%d.%dGHz", speed/1000, (speed%1000)/100); | ||
87 | 91 | ||
88 | return speedbuffer; | 92 | return speedbuffer; |
89 | } | 93 | } |
@@ -675,7 +679,7 @@ static int __init longhaul_init(void) | |||
675 | 679 | ||
676 | static void __exit longhaul_exit(void) | 680 | static void __exit longhaul_exit(void) |
677 | { | 681 | { |
678 | int i=0; | 682 | int i; |
679 | 683 | ||
680 | for (i=0; i < numscales; i++) { | 684 | for (i=0; i < numscales; i++) { |
681 | if (clock_ratio[i] == maxmult) { | 685 | if (clock_ratio[i] == maxmult) { |
diff --git a/arch/i386/kernel/cpu/cpufreq/longrun.c b/arch/i386/kernel/cpu/cpufreq/longrun.c index e3868de4dc2e..b2689514295a 100644 --- a/arch/i386/kernel/cpu/cpufreq/longrun.c +++ b/arch/i386/kernel/cpu/cpufreq/longrun.c | |||
@@ -223,7 +223,6 @@ static unsigned int __init longrun_determine_freqs(unsigned int *low_freq, | |||
223 | /* set to 0 to try_hi perf_pctg */ | 223 | /* set to 0 to try_hi perf_pctg */ |
224 | msr_lo &= 0xFFFFFF80; | 224 | msr_lo &= 0xFFFFFF80; |
225 | msr_hi &= 0xFFFFFF80; | 225 | msr_hi &= 0xFFFFFF80; |
226 | msr_lo |= 0; | ||
227 | msr_hi |= try_hi; | 226 | msr_hi |= try_hi; |
228 | wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); | 227 | wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); |
229 | 228 | ||
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c index 2bf4237cb94e..694d4793bf6a 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c | |||
@@ -452,23 +452,23 @@ static int powernow_decode_bios (int maxfid, int startvid) | |||
452 | 452 | ||
453 | pst = (struct pst_s *) p; | 453 | pst = (struct pst_s *) p; |
454 | 454 | ||
455 | for (i = 0 ; i <psb->numpst; i++) { | 455 | for (j=0; j<psb->numpst; j++) { |
456 | pst = (struct pst_s *) p; | 456 | pst = (struct pst_s *) p; |
457 | number_scales = pst->numpstates; | 457 | number_scales = pst->numpstates; |
458 | 458 | ||
459 | if ((etuple == pst->cpuid) && check_fsb(pst->fsbspeed) && | 459 | if ((etuple == pst->cpuid) && check_fsb(pst->fsbspeed) && |
460 | (maxfid==pst->maxfid) && (startvid==pst->startvid)) | 460 | (maxfid==pst->maxfid) && (startvid==pst->startvid)) |
461 | { | 461 | { |
462 | dprintk ("PST:%d (@%p)\n", i, pst); | 462 | dprintk ("PST:%d (@%p)\n", j, pst); |
463 | dprintk (" cpuid: 0x%x fsb: %d maxFID: 0x%x startvid: 0x%x\n", | 463 | dprintk (" cpuid: 0x%x fsb: %d maxFID: 0x%x startvid: 0x%x\n", |
464 | pst->cpuid, pst->fsbspeed, pst->maxfid, pst->startvid); | 464 | pst->cpuid, pst->fsbspeed, pst->maxfid, pst->startvid); |
465 | 465 | ||
466 | ret = get_ranges ((char *) pst + sizeof (struct pst_s)); | 466 | ret = get_ranges ((char *) pst + sizeof (struct pst_s)); |
467 | return ret; | 467 | return ret; |
468 | |||
469 | } else { | 468 | } else { |
469 | unsigned int k; | ||
470 | p = (char *) pst + sizeof (struct pst_s); | 470 | p = (char *) pst + sizeof (struct pst_s); |
471 | for (j=0 ; j < number_scales; j++) | 471 | for (k=0; k<number_scales; k++) |
472 | p+=2; | 472 | p+=2; |
473 | } | 473 | } |
474 | } | 474 | } |
@@ -581,10 +581,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy) | |||
581 | 581 | ||
582 | rdmsrl (MSR_K7_FID_VID_STATUS, fidvidstatus.val); | 582 | rdmsrl (MSR_K7_FID_VID_STATUS, fidvidstatus.val); |
583 | 583 | ||
584 | /* recalibrate cpu_khz */ | 584 | recalibrate_cpu_khz(); |
585 | result = recalibrate_cpu_khz(); | ||
586 | if (result) | ||
587 | return result; | ||
588 | 585 | ||
589 | fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID]; | 586 | fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID]; |
590 | if (!fsb) { | 587 | if (!fsb) { |
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index 71fffa174425..b4277f58f40c 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * (c) 2003, 2004, 2005 Advanced Micro Devices, Inc. | 2 | * (c) 2003-2006 Advanced Micro Devices, Inc. |
3 | * Your use of this code is subject to the terms and conditions of the | 3 | * Your use of this code is subject to the terms and conditions of the |
4 | * GNU general public license version 2. See "COPYING" or | 4 | * GNU general public license version 2. See "COPYING" or |
5 | * http://www.gnu.org/licenses/gpl.html | 5 | * http://www.gnu.org/licenses/gpl.html |
@@ -14,13 +14,13 @@ | |||
14 | * Based upon datasheets & sample CPUs kindly provided by AMD. | 14 | * Based upon datasheets & sample CPUs kindly provided by AMD. |
15 | * | 15 | * |
16 | * Valuable input gratefully received from Dave Jones, Pavel Machek, | 16 | * Valuable input gratefully received from Dave Jones, Pavel Machek, |
17 | * Dominik Brodowski, and others. | 17 | * Dominik Brodowski, Jacob Shin, and others. |
18 | * Originally developed by Paul Devriendt. | 18 | * Originally developed by Paul Devriendt. |
19 | * Processor information obtained from Chapter 9 (Power and Thermal Management) | 19 | * Processor information obtained from Chapter 9 (Power and Thermal Management) |
20 | * of the "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD | 20 | * of the "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD |
21 | * Opteron Processors" available for download from www.amd.com | 21 | * Opteron Processors" available for download from www.amd.com |
22 | * | 22 | * |
23 | * Tables for specific CPUs can be infrerred from | 23 | * Tables for specific CPUs can be inferred from |
24 | * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/30430.pdf | 24 | * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/30430.pdf |
25 | */ | 25 | */ |
26 | 26 | ||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | #define PFX "powernow-k8: " | 47 | #define PFX "powernow-k8: " |
48 | #define BFX PFX "BIOS error: " | 48 | #define BFX PFX "BIOS error: " |
49 | #define VERSION "version 1.60.2" | 49 | #define VERSION "version 2.00.00" |
50 | #include "powernow-k8.h" | 50 | #include "powernow-k8.h" |
51 | 51 | ||
52 | /* serialize freq changes */ | 52 | /* serialize freq changes */ |
@@ -54,6 +54,8 @@ static DEFINE_MUTEX(fidvid_mutex); | |||
54 | 54 | ||
55 | static struct powernow_k8_data *powernow_data[NR_CPUS]; | 55 | static struct powernow_k8_data *powernow_data[NR_CPUS]; |
56 | 56 | ||
57 | static int cpu_family = CPU_OPTERON; | ||
58 | |||
57 | #ifndef CONFIG_SMP | 59 | #ifndef CONFIG_SMP |
58 | static cpumask_t cpu_core_map[1]; | 60 | static cpumask_t cpu_core_map[1]; |
59 | #endif | 61 | #endif |
@@ -64,16 +66,36 @@ static u32 find_freq_from_fid(u32 fid) | |||
64 | return 800 + (fid * 100); | 66 | return 800 + (fid * 100); |
65 | } | 67 | } |
66 | 68 | ||
69 | |||
67 | /* Return a frequency in KHz, given an input fid */ | 70 | /* Return a frequency in KHz, given an input fid */ |
68 | static u32 find_khz_freq_from_fid(u32 fid) | 71 | static u32 find_khz_freq_from_fid(u32 fid) |
69 | { | 72 | { |
70 | return 1000 * find_freq_from_fid(fid); | 73 | return 1000 * find_freq_from_fid(fid); |
71 | } | 74 | } |
72 | 75 | ||
73 | /* Return a voltage in miliVolts, given an input vid */ | 76 | /* Return a frequency in MHz, given an input fid and did */ |
74 | static u32 find_millivolts_from_vid(struct powernow_k8_data *data, u32 vid) | 77 | static u32 find_freq_from_fiddid(u32 fid, u32 did) |
78 | { | ||
79 | return 100 * (fid + 0x10) >> did; | ||
80 | } | ||
81 | |||
82 | static u32 find_khz_freq_from_fiddid(u32 fid, u32 did) | ||
75 | { | 83 | { |
76 | return 1550-vid*25; | 84 | return 1000 * find_freq_from_fiddid(fid, did); |
85 | } | ||
86 | |||
87 | static u32 find_fid_from_pstate(u32 pstate) | ||
88 | { | ||
89 | u32 hi, lo; | ||
90 | rdmsr(MSR_PSTATE_DEF_BASE + pstate, lo, hi); | ||
91 | return lo & HW_PSTATE_FID_MASK; | ||
92 | } | ||
93 | |||
94 | static u32 find_did_from_pstate(u32 pstate) | ||
95 | { | ||
96 | u32 hi, lo; | ||
97 | rdmsr(MSR_PSTATE_DEF_BASE + pstate, lo, hi); | ||
98 | return (lo & HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT; | ||
77 | } | 99 | } |
78 | 100 | ||
79 | /* Return the vco fid for an input fid | 101 | /* Return the vco fid for an input fid |
@@ -98,6 +120,9 @@ static int pending_bit_stuck(void) | |||
98 | { | 120 | { |
99 | u32 lo, hi; | 121 | u32 lo, hi; |
100 | 122 | ||
123 | if (cpu_family) | ||
124 | return 0; | ||
125 | |||
101 | rdmsr(MSR_FIDVID_STATUS, lo, hi); | 126 | rdmsr(MSR_FIDVID_STATUS, lo, hi); |
102 | return lo & MSR_S_LO_CHANGE_PENDING ? 1 : 0; | 127 | return lo & MSR_S_LO_CHANGE_PENDING ? 1 : 0; |
103 | } | 128 | } |
@@ -111,6 +136,14 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data) | |||
111 | u32 lo, hi; | 136 | u32 lo, hi; |
112 | u32 i = 0; | 137 | u32 i = 0; |
113 | 138 | ||
139 | if (cpu_family) { | ||
140 | rdmsr(MSR_PSTATE_STATUS, lo, hi); | ||
141 | i = lo & HW_PSTATE_MASK; | ||
142 | rdmsr(MSR_PSTATE_DEF_BASE + i, lo, hi); | ||
143 | data->currfid = lo & HW_PSTATE_FID_MASK; | ||
144 | data->currdid = (lo & HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT; | ||
145 | return 0; | ||
146 | } | ||
114 | do { | 147 | do { |
115 | if (i++ > 10000) { | 148 | if (i++ > 10000) { |
116 | dprintk("detected change pending stuck\n"); | 149 | dprintk("detected change pending stuck\n"); |
@@ -175,7 +208,7 @@ static int write_new_fid(struct powernow_k8_data *data, u32 fid) | |||
175 | do { | 208 | do { |
176 | wrmsr(MSR_FIDVID_CTL, lo, data->plllock * PLL_LOCK_CONVERSION); | 209 | wrmsr(MSR_FIDVID_CTL, lo, data->plllock * PLL_LOCK_CONVERSION); |
177 | if (i++ > 100) { | 210 | if (i++ > 100) { |
178 | printk(KERN_ERR PFX "internal error - pending bit very stuck - no further pstate changes possible\n"); | 211 | printk(KERN_ERR PFX "Hardware error - pending bit very stuck - no further pstate changes possible\n"); |
179 | return 1; | 212 | return 1; |
180 | } | 213 | } |
181 | } while (query_current_values_with_pending_wait(data)); | 214 | } while (query_current_values_with_pending_wait(data)); |
@@ -255,7 +288,15 @@ static int decrease_vid_code_by_step(struct powernow_k8_data *data, u32 reqvid, | |||
255 | return 0; | 288 | return 0; |
256 | } | 289 | } |
257 | 290 | ||
258 | /* Change the fid and vid, by the 3 phases. */ | 291 | /* Change hardware pstate by single MSR write */ |
292 | static int transition_pstate(struct powernow_k8_data *data, u32 pstate) | ||
293 | { | ||
294 | wrmsr(MSR_PSTATE_CTRL, pstate, 0); | ||
295 | data->currfid = find_fid_from_pstate(pstate); | ||
296 | return 0; | ||
297 | } | ||
298 | |||
299 | /* Change Opteron/Athlon64 fid and vid, by the 3 phases. */ | ||
259 | static int transition_fid_vid(struct powernow_k8_data *data, u32 reqfid, u32 reqvid) | 300 | static int transition_fid_vid(struct powernow_k8_data *data, u32 reqfid, u32 reqvid) |
260 | { | 301 | { |
261 | if (core_voltage_pre_transition(data, reqvid)) | 302 | if (core_voltage_pre_transition(data, reqvid)) |
@@ -474,26 +515,35 @@ static int check_supported_cpu(unsigned int cpu) | |||
474 | goto out; | 515 | goto out; |
475 | 516 | ||
476 | eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE); | 517 | eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE); |
477 | if ((eax & CPUID_XFAM) != CPUID_XFAM_K8) | 518 | if (((eax & CPUID_XFAM) != CPUID_XFAM_K8) && |
519 | ((eax & CPUID_XFAM) < CPUID_XFAM_10H)) | ||
478 | goto out; | 520 | goto out; |
479 | 521 | ||
480 | if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) || | 522 | if ((eax & CPUID_XFAM) == CPUID_XFAM_K8) { |
481 | ((eax & CPUID_XMOD) > CPUID_XMOD_REV_G)) { | 523 | if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) || |
482 | printk(KERN_INFO PFX "Processor cpuid %x not supported\n", eax); | 524 | ((eax & CPUID_XMOD) > CPUID_XMOD_REV_G)) { |
483 | goto out; | 525 | printk(KERN_INFO PFX "Processor cpuid %x not supported\n", eax); |
484 | } | 526 | goto out; |
527 | } | ||
485 | 528 | ||
486 | eax = cpuid_eax(CPUID_GET_MAX_CAPABILITIES); | 529 | eax = cpuid_eax(CPUID_GET_MAX_CAPABILITIES); |
487 | if (eax < CPUID_FREQ_VOLT_CAPABILITIES) { | 530 | if (eax < CPUID_FREQ_VOLT_CAPABILITIES) { |
488 | printk(KERN_INFO PFX | 531 | printk(KERN_INFO PFX |
489 | "No frequency change capabilities detected\n"); | 532 | "No frequency change capabilities detected\n"); |
490 | goto out; | 533 | goto out; |
491 | } | 534 | } |
492 | 535 | ||
493 | cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); | 536 | cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); |
494 | if ((edx & P_STATE_TRANSITION_CAPABLE) != P_STATE_TRANSITION_CAPABLE) { | 537 | if ((edx & P_STATE_TRANSITION_CAPABLE) != P_STATE_TRANSITION_CAPABLE) { |
495 | printk(KERN_INFO PFX "Power state transitions not supported\n"); | 538 | printk(KERN_INFO PFX "Power state transitions not supported\n"); |
496 | goto out; | 539 | goto out; |
540 | } | ||
541 | } else { /* must be a HW Pstate capable processor */ | ||
542 | cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); | ||
543 | if ((edx & USE_HW_PSTATE) == USE_HW_PSTATE) | ||
544 | cpu_family = CPU_HW_PSTATE; | ||
545 | else | ||
546 | goto out; | ||
497 | } | 547 | } |
498 | 548 | ||
499 | rc = 1; | 549 | rc = 1; |
@@ -547,12 +597,18 @@ static void print_basics(struct powernow_k8_data *data) | |||
547 | { | 597 | { |
548 | int j; | 598 | int j; |
549 | for (j = 0; j < data->numps; j++) { | 599 | for (j = 0; j < data->numps; j++) { |
550 | if (data->powernow_table[j].frequency != CPUFREQ_ENTRY_INVALID) | 600 | if (data->powernow_table[j].frequency != CPUFREQ_ENTRY_INVALID) { |
551 | printk(KERN_INFO PFX " %d : fid 0x%x (%d MHz), vid 0x%x (%d mV)\n", j, | 601 | if (cpu_family) { |
602 | printk(KERN_INFO PFX " %d : fid 0x%x gid 0x%x (%d MHz)\n", j, (data->powernow_table[j].index & 0xff00) >> 8, | ||
603 | (data->powernow_table[j].index & 0xff0000) >> 16, | ||
604 | data->powernow_table[j].frequency/1000); | ||
605 | } else { | ||
606 | printk(KERN_INFO PFX " %d : fid 0x%x (%d MHz), vid 0x%x\n", j, | ||
552 | data->powernow_table[j].index & 0xff, | 607 | data->powernow_table[j].index & 0xff, |
553 | data->powernow_table[j].frequency/1000, | 608 | data->powernow_table[j].frequency/1000, |
554 | data->powernow_table[j].index >> 8, | 609 | data->powernow_table[j].index >> 8); |
555 | find_millivolts_from_vid(data, data->powernow_table[j].index >> 8)); | 610 | } |
611 | } | ||
556 | } | 612 | } |
557 | if (data->batps) | 613 | if (data->batps) |
558 | printk(KERN_INFO PFX "Only %d pstates on battery\n", data->batps); | 614 | printk(KERN_INFO PFX "Only %d pstates on battery\n", data->batps); |
@@ -702,7 +758,7 @@ static int find_psb_table(struct powernow_k8_data *data) | |||
702 | #ifdef CONFIG_X86_POWERNOW_K8_ACPI | 758 | #ifdef CONFIG_X86_POWERNOW_K8_ACPI |
703 | static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned int index) | 759 | static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned int index) |
704 | { | 760 | { |
705 | if (!data->acpi_data.state_count) | 761 | if (!data->acpi_data.state_count || cpu_family) |
706 | return; | 762 | return; |
707 | 763 | ||
708 | data->irt = (data->acpi_data.states[index].control >> IRT_SHIFT) & IRT_MASK; | 764 | data->irt = (data->acpi_data.states[index].control >> IRT_SHIFT) & IRT_MASK; |
@@ -715,9 +771,8 @@ static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned | |||
715 | 771 | ||
716 | static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | 772 | static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) |
717 | { | 773 | { |
718 | int i; | ||
719 | int cntlofreq = 0; | ||
720 | struct cpufreq_frequency_table *powernow_table; | 774 | struct cpufreq_frequency_table *powernow_table; |
775 | int ret_val; | ||
721 | 776 | ||
722 | if (acpi_processor_register_performance(&data->acpi_data, data->cpu)) { | 777 | if (acpi_processor_register_performance(&data->acpi_data, data->cpu)) { |
723 | dprintk("register performance failed: bad ACPI data\n"); | 778 | dprintk("register performance failed: bad ACPI data\n"); |
@@ -746,6 +801,85 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | |||
746 | goto err_out; | 801 | goto err_out; |
747 | } | 802 | } |
748 | 803 | ||
804 | if (cpu_family) | ||
805 | ret_val = fill_powernow_table_pstate(data, powernow_table); | ||
806 | else | ||
807 | ret_val = fill_powernow_table_fidvid(data, powernow_table); | ||
808 | if (ret_val) | ||
809 | goto err_out_mem; | ||
810 | |||
811 | powernow_table[data->acpi_data.state_count].frequency = CPUFREQ_TABLE_END; | ||
812 | powernow_table[data->acpi_data.state_count].index = 0; | ||
813 | data->powernow_table = powernow_table; | ||
814 | |||
815 | /* fill in data */ | ||
816 | data->numps = data->acpi_data.state_count; | ||
817 | print_basics(data); | ||
818 | powernow_k8_acpi_pst_values(data, 0); | ||
819 | |||
820 | /* notify BIOS that we exist */ | ||
821 | acpi_processor_notify_smm(THIS_MODULE); | ||
822 | |||
823 | return 0; | ||
824 | |||
825 | err_out_mem: | ||
826 | kfree(powernow_table); | ||
827 | |||
828 | err_out: | ||
829 | acpi_processor_unregister_performance(&data->acpi_data, data->cpu); | ||
830 | |||
831 | /* data->acpi_data.state_count informs us at ->exit() whether ACPI was used */ | ||
832 | data->acpi_data.state_count = 0; | ||
833 | |||
834 | return -ENODEV; | ||
835 | } | ||
836 | |||
837 | static int fill_powernow_table_pstate(struct powernow_k8_data *data, struct cpufreq_frequency_table *powernow_table) | ||
838 | { | ||
839 | int i; | ||
840 | |||
841 | for (i = 0; i < data->acpi_data.state_count; i++) { | ||
842 | u32 index; | ||
843 | u32 hi = 0, lo = 0; | ||
844 | u32 fid; | ||
845 | u32 did; | ||
846 | |||
847 | index = data->acpi_data.states[i].control & HW_PSTATE_MASK; | ||
848 | if (index > MAX_HW_PSTATE) { | ||
849 | printk(KERN_ERR PFX "invalid pstate %d - bad value %d.\n", i, index); | ||
850 | printk(KERN_ERR PFX "Please report to BIOS manufacturer\n"); | ||
851 | } | ||
852 | rdmsr(MSR_PSTATE_DEF_BASE + index, lo, hi); | ||
853 | if (!(hi & HW_PSTATE_VALID_MASK)) { | ||
854 | dprintk("invalid pstate %d, ignoring\n", index); | ||
855 | powernow_table[i].frequency = CPUFREQ_ENTRY_INVALID; | ||
856 | continue; | ||
857 | } | ||
858 | |||
859 | fid = lo & HW_PSTATE_FID_MASK; | ||
860 | did = (lo & HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT; | ||
861 | |||
862 | dprintk(" %d : fid 0x%x, did 0x%x\n", index, fid, did); | ||
863 | |||
864 | powernow_table[i].index = index | (fid << HW_FID_INDEX_SHIFT) | (did << HW_DID_INDEX_SHIFT); | ||
865 | |||
866 | powernow_table[i].frequency = find_khz_freq_from_fiddid(fid, did); | ||
867 | |||
868 | if (powernow_table[i].frequency != (data->acpi_data.states[i].core_frequency * 1000)) { | ||
869 | printk(KERN_INFO PFX "invalid freq entries %u kHz vs. %u kHz\n", | ||
870 | powernow_table[i].frequency, | ||
871 | (unsigned int) (data->acpi_data.states[i].core_frequency * 1000)); | ||
872 | powernow_table[i].frequency = CPUFREQ_ENTRY_INVALID; | ||
873 | continue; | ||
874 | } | ||
875 | } | ||
876 | return 0; | ||
877 | } | ||
878 | |||
879 | static int fill_powernow_table_fidvid(struct powernow_k8_data *data, struct cpufreq_frequency_table *powernow_table) | ||
880 | { | ||
881 | int i; | ||
882 | int cntlofreq = 0; | ||
749 | for (i = 0; i < data->acpi_data.state_count; i++) { | 883 | for (i = 0; i < data->acpi_data.state_count; i++) { |
750 | u32 fid; | 884 | u32 fid; |
751 | u32 vid; | 885 | u32 vid; |
@@ -786,7 +920,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | |||
786 | if ((powernow_table[i].frequency != powernow_table[cntlofreq].frequency) || | 920 | if ((powernow_table[i].frequency != powernow_table[cntlofreq].frequency) || |
787 | (powernow_table[i].index != powernow_table[cntlofreq].index)) { | 921 | (powernow_table[i].index != powernow_table[cntlofreq].index)) { |
788 | printk(KERN_ERR PFX "Too many lo freq table entries\n"); | 922 | printk(KERN_ERR PFX "Too many lo freq table entries\n"); |
789 | goto err_out_mem; | 923 | return 1; |
790 | } | 924 | } |
791 | 925 | ||
792 | dprintk("double low frequency table entry, ignoring it.\n"); | 926 | dprintk("double low frequency table entry, ignoring it.\n"); |
@@ -804,31 +938,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | |||
804 | continue; | 938 | continue; |
805 | } | 939 | } |
806 | } | 940 | } |
807 | |||
808 | powernow_table[data->acpi_data.state_count].frequency = CPUFREQ_TABLE_END; | ||
809 | powernow_table[data->acpi_data.state_count].index = 0; | ||
810 | data->powernow_table = powernow_table; | ||
811 | |||
812 | /* fill in data */ | ||
813 | data->numps = data->acpi_data.state_count; | ||
814 | print_basics(data); | ||
815 | powernow_k8_acpi_pst_values(data, 0); | ||
816 | |||
817 | /* notify BIOS that we exist */ | ||
818 | acpi_processor_notify_smm(THIS_MODULE); | ||
819 | |||
820 | return 0; | 941 | return 0; |
821 | |||
822 | err_out_mem: | ||
823 | kfree(powernow_table); | ||
824 | |||
825 | err_out: | ||
826 | acpi_processor_unregister_performance(&data->acpi_data, data->cpu); | ||
827 | |||
828 | /* data->acpi_data.state_count informs us at ->exit() whether ACPI was used */ | ||
829 | data->acpi_data.state_count = 0; | ||
830 | |||
831 | return -ENODEV; | ||
832 | } | 942 | } |
833 | 943 | ||
834 | static void powernow_k8_cpu_exit_acpi(struct powernow_k8_data *data) | 944 | static void powernow_k8_cpu_exit_acpi(struct powernow_k8_data *data) |
@@ -844,20 +954,20 @@ static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned | |||
844 | #endif /* CONFIG_X86_POWERNOW_K8_ACPI */ | 954 | #endif /* CONFIG_X86_POWERNOW_K8_ACPI */ |
845 | 955 | ||
846 | /* Take a frequency, and issue the fid/vid transition command */ | 956 | /* Take a frequency, and issue the fid/vid transition command */ |
847 | static int transition_frequency(struct powernow_k8_data *data, unsigned int index) | 957 | static int transition_frequency_fidvid(struct powernow_k8_data *data, unsigned int index) |
848 | { | 958 | { |
849 | u32 fid; | 959 | u32 fid = 0; |
850 | u32 vid; | 960 | u32 vid = 0; |
851 | int res, i; | 961 | int res, i; |
852 | struct cpufreq_freqs freqs; | 962 | struct cpufreq_freqs freqs; |
853 | 963 | ||
854 | dprintk("cpu %d transition to index %u\n", smp_processor_id(), index); | 964 | dprintk("cpu %d transition to index %u\n", smp_processor_id(), index); |
855 | 965 | ||
966 | /* fid/vid correctness check for k8 */ | ||
856 | /* fid are the lower 8 bits of the index we stored into | 967 | /* fid are the lower 8 bits of the index we stored into |
857 | * the cpufreq frequency table in find_psb_table, vid are | 968 | * the cpufreq frequency table in find_psb_table, vid |
858 | * the upper 8 bits. | 969 | * are the upper 8 bits. |
859 | */ | 970 | */ |
860 | |||
861 | fid = data->powernow_table[index].index & 0xFF; | 971 | fid = data->powernow_table[index].index & 0xFF; |
862 | vid = (data->powernow_table[index].index & 0xFF00) >> 8; | 972 | vid = (data->powernow_table[index].index & 0xFF00) >> 8; |
863 | 973 | ||
@@ -881,22 +991,58 @@ static int transition_frequency(struct powernow_k8_data *data, unsigned int inde | |||
881 | 991 | ||
882 | dprintk("cpu %d, changing to fid 0x%x, vid 0x%x\n", | 992 | dprintk("cpu %d, changing to fid 0x%x, vid 0x%x\n", |
883 | smp_processor_id(), fid, vid); | 993 | smp_processor_id(), fid, vid); |
884 | |||
885 | freqs.cpu = data->cpu; | ||
886 | freqs.old = find_khz_freq_from_fid(data->currfid); | 994 | freqs.old = find_khz_freq_from_fid(data->currfid); |
887 | freqs.new = find_khz_freq_from_fid(fid); | 995 | freqs.new = find_khz_freq_from_fid(fid); |
888 | for_each_cpu_mask(i, cpu_core_map[data->cpu]) { | 996 | |
997 | for_each_cpu_mask(i, *(data->available_cores)) { | ||
889 | freqs.cpu = i; | 998 | freqs.cpu = i; |
890 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 999 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); |
891 | } | 1000 | } |
892 | 1001 | ||
893 | res = transition_fid_vid(data, fid, vid); | 1002 | res = transition_fid_vid(data, fid, vid); |
894 | |||
895 | freqs.new = find_khz_freq_from_fid(data->currfid); | 1003 | freqs.new = find_khz_freq_from_fid(data->currfid); |
896 | for_each_cpu_mask(i, cpu_core_map[data->cpu]) { | 1004 | |
1005 | for_each_cpu_mask(i, *(data->available_cores)) { | ||
897 | freqs.cpu = i; | 1006 | freqs.cpu = i; |
898 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | 1007 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); |
899 | } | 1008 | } |
1009 | return res; | ||
1010 | } | ||
1011 | |||
1012 | /* Take a frequency, and issue the hardware pstate transition command */ | ||
1013 | static int transition_frequency_pstate(struct powernow_k8_data *data, unsigned int index) | ||
1014 | { | ||
1015 | u32 fid = 0; | ||
1016 | u32 did = 0; | ||
1017 | u32 pstate = 0; | ||
1018 | int res, i; | ||
1019 | struct cpufreq_freqs freqs; | ||
1020 | |||
1021 | dprintk("cpu %d transition to index %u\n", smp_processor_id(), index); | ||
1022 | |||
1023 | /* get fid did for hardware pstate transition */ | ||
1024 | pstate = index & HW_PSTATE_MASK; | ||
1025 | if (pstate > MAX_HW_PSTATE) | ||
1026 | return 0; | ||
1027 | fid = (index & HW_FID_INDEX_MASK) >> HW_FID_INDEX_SHIFT; | ||
1028 | did = (index & HW_DID_INDEX_MASK) >> HW_DID_INDEX_SHIFT; | ||
1029 | freqs.old = find_khz_freq_from_fiddid(data->currfid, data->currdid); | ||
1030 | freqs.new = find_khz_freq_from_fiddid(fid, did); | ||
1031 | |||
1032 | for_each_cpu_mask(i, *(data->available_cores)) { | ||
1033 | freqs.cpu = i; | ||
1034 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | ||
1035 | } | ||
1036 | |||
1037 | res = transition_pstate(data, pstate); | ||
1038 | data->currfid = find_fid_from_pstate(pstate); | ||
1039 | data->currdid = find_did_from_pstate(pstate); | ||
1040 | freqs.new = find_khz_freq_from_fiddid(data->currfid, data->currdid); | ||
1041 | |||
1042 | for_each_cpu_mask(i, *(data->available_cores)) { | ||
1043 | freqs.cpu = i; | ||
1044 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | ||
1045 | } | ||
900 | return res; | 1046 | return res; |
901 | } | 1047 | } |
902 | 1048 | ||
@@ -933,18 +1079,21 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi | |||
933 | dprintk("targ: cpu %d, %d kHz, min %d, max %d, relation %d\n", | 1079 | dprintk("targ: cpu %d, %d kHz, min %d, max %d, relation %d\n", |
934 | pol->cpu, targfreq, pol->min, pol->max, relation); | 1080 | pol->cpu, targfreq, pol->min, pol->max, relation); |
935 | 1081 | ||
936 | if (query_current_values_with_pending_wait(data)) { | 1082 | if (query_current_values_with_pending_wait(data)) |
937 | ret = -EIO; | ||
938 | goto err_out; | 1083 | goto err_out; |
939 | } | ||
940 | 1084 | ||
941 | dprintk("targ: curr fid 0x%x, vid 0x%x\n", | 1085 | if (cpu_family) |
1086 | dprintk("targ: curr fid 0x%x, did 0x%x\n", | ||
1087 | data->currfid, data->currvid); | ||
1088 | else { | ||
1089 | dprintk("targ: curr fid 0x%x, vid 0x%x\n", | ||
942 | data->currfid, data->currvid); | 1090 | data->currfid, data->currvid); |
943 | 1091 | ||
944 | if ((checkvid != data->currvid) || (checkfid != data->currfid)) { | 1092 | if ((checkvid != data->currvid) || (checkfid != data->currfid)) { |
945 | printk(KERN_INFO PFX | 1093 | printk(KERN_INFO PFX |
946 | "error - out of sync, fix 0x%x 0x%x, vid 0x%x 0x%x\n", | 1094 | "error - out of sync, fix 0x%x 0x%x, vid 0x%x 0x%x\n", |
947 | checkfid, data->currfid, checkvid, data->currvid); | 1095 | checkfid, data->currfid, checkvid, data->currvid); |
1096 | } | ||
948 | } | 1097 | } |
949 | 1098 | ||
950 | if (cpufreq_frequency_table_target(pol, data->powernow_table, targfreq, relation, &newstate)) | 1099 | if (cpufreq_frequency_table_target(pol, data->powernow_table, targfreq, relation, &newstate)) |
@@ -954,7 +1103,11 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi | |||
954 | 1103 | ||
955 | powernow_k8_acpi_pst_values(data, newstate); | 1104 | powernow_k8_acpi_pst_values(data, newstate); |
956 | 1105 | ||
957 | if (transition_frequency(data, newstate)) { | 1106 | if (cpu_family) |
1107 | ret = transition_frequency_pstate(data, newstate); | ||
1108 | else | ||
1109 | ret = transition_frequency_fidvid(data, newstate); | ||
1110 | if (ret) { | ||
958 | printk(KERN_ERR PFX "transition frequency failed\n"); | 1111 | printk(KERN_ERR PFX "transition frequency failed\n"); |
959 | ret = 1; | 1112 | ret = 1; |
960 | mutex_unlock(&fidvid_mutex); | 1113 | mutex_unlock(&fidvid_mutex); |
@@ -962,7 +1115,10 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi | |||
962 | } | 1115 | } |
963 | mutex_unlock(&fidvid_mutex); | 1116 | mutex_unlock(&fidvid_mutex); |
964 | 1117 | ||
965 | pol->cur = find_khz_freq_from_fid(data->currfid); | 1118 | if (cpu_family) |
1119 | pol->cur = find_khz_freq_from_fiddid(data->currfid, data->currdid); | ||
1120 | else | ||
1121 | pol->cur = find_khz_freq_from_fid(data->currfid); | ||
966 | ret = 0; | 1122 | ret = 0; |
967 | 1123 | ||
968 | err_out: | 1124 | err_out: |
@@ -1007,14 +1163,13 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) | |||
1007 | * Use the PSB BIOS structure. This is only availabe on | 1163 | * Use the PSB BIOS structure. This is only availabe on |
1008 | * an UP version, and is deprecated by AMD. | 1164 | * an UP version, and is deprecated by AMD. |
1009 | */ | 1165 | */ |
1010 | |||
1011 | if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) { | 1166 | if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) { |
1012 | printk(KERN_ERR PFX "MP systems not supported by PSB BIOS structure\n"); | 1167 | printk(KERN_ERR PFX "MP systems not supported by PSB BIOS structure\n"); |
1013 | kfree(data); | 1168 | kfree(data); |
1014 | return -ENODEV; | 1169 | return -ENODEV; |
1015 | } | 1170 | } |
1016 | if (pol->cpu != 0) { | 1171 | if (pol->cpu != 0) { |
1017 | printk(KERN_ERR PFX "init not cpu 0\n"); | 1172 | printk(KERN_ERR PFX "No _PSS objects for CPU other than CPU0\n"); |
1018 | kfree(data); | 1173 | kfree(data); |
1019 | return -ENODEV; | 1174 | return -ENODEV; |
1020 | } | 1175 | } |
@@ -1042,20 +1197,28 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) | |||
1042 | if (query_current_values_with_pending_wait(data)) | 1197 | if (query_current_values_with_pending_wait(data)) |
1043 | goto err_out; | 1198 | goto err_out; |
1044 | 1199 | ||
1045 | fidvid_msr_init(); | 1200 | if (!cpu_family) |
1201 | fidvid_msr_init(); | ||
1046 | 1202 | ||
1047 | /* run on any CPU again */ | 1203 | /* run on any CPU again */ |
1048 | set_cpus_allowed(current, oldmask); | 1204 | set_cpus_allowed(current, oldmask); |
1049 | 1205 | ||
1050 | pol->governor = CPUFREQ_DEFAULT_GOVERNOR; | 1206 | pol->governor = CPUFREQ_DEFAULT_GOVERNOR; |
1051 | pol->cpus = cpu_core_map[pol->cpu]; | 1207 | if (cpu_family) |
1208 | pol->cpus = cpumask_of_cpu(pol->cpu); | ||
1209 | else | ||
1210 | pol->cpus = cpu_core_map[pol->cpu]; | ||
1211 | data->available_cores = &(pol->cpus); | ||
1052 | 1212 | ||
1053 | /* Take a crude guess here. | 1213 | /* Take a crude guess here. |
1054 | * That guess was in microseconds, so multiply with 1000 */ | 1214 | * That guess was in microseconds, so multiply with 1000 */ |
1055 | pol->cpuinfo.transition_latency = (((data->rvo + 8) * data->vstable * VST_UNITS_20US) | 1215 | pol->cpuinfo.transition_latency = (((data->rvo + 8) * data->vstable * VST_UNITS_20US) |
1056 | + (3 * (1 << data->irt) * 10)) * 1000; | 1216 | + (3 * (1 << data->irt) * 10)) * 1000; |
1057 | 1217 | ||
1058 | pol->cur = find_khz_freq_from_fid(data->currfid); | 1218 | if (cpu_family) |
1219 | pol->cur = find_khz_freq_from_fiddid(data->currfid, data->currdid); | ||
1220 | else | ||
1221 | pol->cur = find_khz_freq_from_fid(data->currfid); | ||
1059 | dprintk("policy current frequency %d kHz\n", pol->cur); | 1222 | dprintk("policy current frequency %d kHz\n", pol->cur); |
1060 | 1223 | ||
1061 | /* min/max the cpu is capable of */ | 1224 | /* min/max the cpu is capable of */ |
@@ -1069,8 +1232,12 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) | |||
1069 | 1232 | ||
1070 | cpufreq_frequency_table_get_attr(data->powernow_table, pol->cpu); | 1233 | cpufreq_frequency_table_get_attr(data->powernow_table, pol->cpu); |
1071 | 1234 | ||
1072 | printk("cpu_init done, current fid 0x%x, vid 0x%x\n", | 1235 | if (cpu_family) |
1073 | data->currfid, data->currvid); | 1236 | dprintk("cpu_init done, current fid 0x%x, did 0x%x\n", |
1237 | data->currfid, data->currdid); | ||
1238 | else | ||
1239 | dprintk("cpu_init done, current fid 0x%x, vid 0x%x\n", | ||
1240 | data->currfid, data->currvid); | ||
1074 | 1241 | ||
1075 | powernow_data[pol->cpu] = data; | 1242 | powernow_data[pol->cpu] = data; |
1076 | 1243 | ||
@@ -1156,8 +1323,9 @@ static int __cpuinit powernowk8_init(void) | |||
1156 | } | 1323 | } |
1157 | 1324 | ||
1158 | if (supported_cpus == num_online_cpus()) { | 1325 | if (supported_cpus == num_online_cpus()) { |
1159 | printk(KERN_INFO PFX "Found %d AMD Athlon 64 / Opteron " | 1326 | printk(KERN_INFO PFX "Found %d %s " |
1160 | "processors (" VERSION ")\n", supported_cpus); | 1327 | "processors (" VERSION ")\n", supported_cpus, |
1328 | boot_cpu_data.x86_model_id); | ||
1161 | return cpufreq_register_driver(&cpufreq_amd64_driver); | 1329 | return cpufreq_register_driver(&cpufreq_amd64_driver); |
1162 | } | 1330 | } |
1163 | 1331 | ||
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.h b/arch/i386/kernel/cpu/cpufreq/powernow-k8.h index 79a7c5c87edc..bf8ad9e43da3 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.h +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * (c) 2003, 2004, 2005 Advanced Micro Devices, Inc. | 2 | * (c) 2003-2006 Advanced Micro Devices, Inc. |
3 | * Your use of this code is subject to the terms and conditions of the | 3 | * Your use of this code is subject to the terms and conditions of the |
4 | * GNU general public license version 2. See "COPYING" or | 4 | * GNU general public license version 2. See "COPYING" or |
5 | * http://www.gnu.org/licenses/gpl.html | 5 | * http://www.gnu.org/licenses/gpl.html |
@@ -21,8 +21,8 @@ struct powernow_k8_data { | |||
21 | u32 plllock; /* pll lock time, units 1 us */ | 21 | u32 plllock; /* pll lock time, units 1 us */ |
22 | u32 exttype; /* extended interface = 1 */ | 22 | u32 exttype; /* extended interface = 1 */ |
23 | 23 | ||
24 | /* keep track of the current fid / vid */ | 24 | /* keep track of the current fid / vid or did */ |
25 | u32 currvid, currfid; | 25 | u32 currvid, currfid, currdid; |
26 | 26 | ||
27 | /* the powernow_table includes all frequency and vid/fid pairings: | 27 | /* the powernow_table includes all frequency and vid/fid pairings: |
28 | * fid are the lower 8 bits of the index, vid are the upper 8 bits. | 28 | * fid are the lower 8 bits of the index, vid are the upper 8 bits. |
@@ -34,6 +34,10 @@ struct powernow_k8_data { | |||
34 | * used to determine valid frequency/vid/fid states */ | 34 | * used to determine valid frequency/vid/fid states */ |
35 | struct acpi_processor_performance acpi_data; | 35 | struct acpi_processor_performance acpi_data; |
36 | #endif | 36 | #endif |
37 | /* we need to keep track of associated cores, but let cpufreq | ||
38 | * handle hotplug events - so just point at cpufreq pol->cpus | ||
39 | * structure */ | ||
40 | cpumask_t *available_cores; | ||
37 | }; | 41 | }; |
38 | 42 | ||
39 | 43 | ||
@@ -43,6 +47,7 @@ struct powernow_k8_data { | |||
43 | #define CPUID_XFAM_K8 0 | 47 | #define CPUID_XFAM_K8 0 |
44 | #define CPUID_XMOD 0x000f0000 /* extended model */ | 48 | #define CPUID_XMOD 0x000f0000 /* extended model */ |
45 | #define CPUID_XMOD_REV_G 0x00060000 | 49 | #define CPUID_XMOD_REV_G 0x00060000 |
50 | #define CPUID_XFAM_10H 0x00100000 /* family 0x10 */ | ||
46 | #define CPUID_USE_XFAM_XMOD 0x00000f00 | 51 | #define CPUID_USE_XFAM_XMOD 0x00000f00 |
47 | #define CPUID_GET_MAX_CAPABILITIES 0x80000000 | 52 | #define CPUID_GET_MAX_CAPABILITIES 0x80000000 |
48 | #define CPUID_FREQ_VOLT_CAPABILITIES 0x80000007 | 53 | #define CPUID_FREQ_VOLT_CAPABILITIES 0x80000007 |
@@ -79,6 +84,32 @@ struct powernow_k8_data { | |||
79 | #define MSR_S_HI_CURRENT_VID 0x0000003f | 84 | #define MSR_S_HI_CURRENT_VID 0x0000003f |
80 | #define MSR_C_HI_STP_GNT_BENIGN 0x00000001 | 85 | #define MSR_C_HI_STP_GNT_BENIGN 0x00000001 |
81 | 86 | ||
87 | |||
88 | /* Hardware Pstate _PSS and MSR definitions */ | ||
89 | #define USE_HW_PSTATE 0x00000080 | ||
90 | #define HW_PSTATE_FID_MASK 0x0000003f | ||
91 | #define HW_PSTATE_DID_MASK 0x000001c0 | ||
92 | #define HW_PSTATE_DID_SHIFT 6 | ||
93 | #define HW_PSTATE_MASK 0x00000007 | ||
94 | #define HW_PSTATE_VALID_MASK 0x80000000 | ||
95 | #define HW_FID_INDEX_SHIFT 8 | ||
96 | #define HW_FID_INDEX_MASK 0x0000ff00 | ||
97 | #define HW_DID_INDEX_SHIFT 16 | ||
98 | #define HW_DID_INDEX_MASK 0x00ff0000 | ||
99 | #define HW_WATTS_MASK 0xff | ||
100 | #define HW_PWR_DVR_MASK 0x300 | ||
101 | #define HW_PWR_DVR_SHIFT 8 | ||
102 | #define HW_PWR_MAX_MULT 3 | ||
103 | #define MAX_HW_PSTATE 8 /* hw pstate supports up to 8 */ | ||
104 | #define MSR_PSTATE_DEF_BASE 0xc0010064 /* base of Pstate MSRs */ | ||
105 | #define MSR_PSTATE_STATUS 0xc0010063 /* Pstate Status MSR */ | ||
106 | #define MSR_PSTATE_CTRL 0xc0010062 /* Pstate control MSR */ | ||
107 | |||
108 | /* define the two driver architectures */ | ||
109 | #define CPU_OPTERON 0 | ||
110 | #define CPU_HW_PSTATE 1 | ||
111 | |||
112 | |||
82 | /* | 113 | /* |
83 | * There are restrictions frequencies have to follow: | 114 | * There are restrictions frequencies have to follow: |
84 | * - only 1 entry in the low fid table ( <=1.4GHz ) | 115 | * - only 1 entry in the low fid table ( <=1.4GHz ) |
@@ -182,6 +213,9 @@ static int core_frequency_transition(struct powernow_k8_data *data, u32 reqfid); | |||
182 | 213 | ||
183 | static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned int index); | 214 | static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned int index); |
184 | 215 | ||
216 | static int fill_powernow_table_pstate(struct powernow_k8_data *data, struct cpufreq_frequency_table *powernow_table); | ||
217 | static int fill_powernow_table_fidvid(struct powernow_k8_data *data, struct cpufreq_frequency_table *powernow_table); | ||
218 | |||
185 | #ifdef CONFIG_SMP | 219 | #ifdef CONFIG_SMP |
186 | static inline void define_siblings(int cpu, cpumask_t cpu_sharedcore_mask[]) | 220 | static inline void define_siblings(int cpu, cpumask_t cpu_sharedcore_mask[]) |
187 | { | 221 | { |
diff --git a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c index b0ff9075708c..ce54ff12c15d 100644 --- a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c +++ b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | |||
@@ -250,7 +250,7 @@ static int centrino_cpu_init_table(struct cpufreq_policy *policy) | |||
250 | 250 | ||
251 | if (model->cpu_id == NULL) { | 251 | if (model->cpu_id == NULL) { |
252 | /* No match at all */ | 252 | /* No match at all */ |
253 | dprintk(KERN_INFO PFX "no support for CPU model \"%s\": " | 253 | dprintk("no support for CPU model \"%s\": " |
254 | "send /proc/cpuinfo to " MAINTAINER "\n", | 254 | "send /proc/cpuinfo to " MAINTAINER "\n", |
255 | cpu->x86_model_id); | 255 | cpu->x86_model_id); |
256 | return -ENOENT; | 256 | return -ENOENT; |
@@ -258,10 +258,10 @@ static int centrino_cpu_init_table(struct cpufreq_policy *policy) | |||
258 | 258 | ||
259 | if (model->op_points == NULL) { | 259 | if (model->op_points == NULL) { |
260 | /* Matched a non-match */ | 260 | /* Matched a non-match */ |
261 | dprintk(KERN_INFO PFX "no table support for CPU model \"%s\"\n", | 261 | dprintk("no table support for CPU model \"%s\"\n", |
262 | cpu->x86_model_id); | 262 | cpu->x86_model_id); |
263 | #ifndef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI | 263 | #ifndef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI |
264 | dprintk(KERN_INFO PFX "try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled\n"); | 264 | dprintk("try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled\n"); |
265 | #endif | 265 | #endif |
266 | return -ENOENT; | 266 | return -ENOENT; |
267 | } | 267 | } |
@@ -368,7 +368,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy) | |||
368 | 368 | ||
369 | /* register with ACPI core */ | 369 | /* register with ACPI core */ |
370 | if (acpi_processor_register_performance(&p, cpu)) { | 370 | if (acpi_processor_register_performance(&p, cpu)) { |
371 | dprintk(KERN_INFO PFX "obtaining ACPI data failed\n"); | 371 | dprintk("obtaining ACPI data failed\n"); |
372 | return -EIO; | 372 | return -EIO; |
373 | } | 373 | } |
374 | 374 | ||
@@ -465,7 +465,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy) | |||
465 | kfree(centrino_model[cpu]); | 465 | kfree(centrino_model[cpu]); |
466 | err_unreg: | 466 | err_unreg: |
467 | acpi_processor_unregister_performance(&p, cpu); | 467 | acpi_processor_unregister_performance(&p, cpu); |
468 | dprintk(KERN_INFO PFX "invalid ACPI data\n"); | 468 | dprintk("invalid ACPI data\n"); |
469 | return (result); | 469 | return (result); |
470 | } | 470 | } |
471 | #else | 471 | #else |
@@ -499,7 +499,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy) | |||
499 | centrino_cpu[policy->cpu] = &cpu_ids[i]; | 499 | centrino_cpu[policy->cpu] = &cpu_ids[i]; |
500 | 500 | ||
501 | if (!centrino_cpu[policy->cpu]) { | 501 | if (!centrino_cpu[policy->cpu]) { |
502 | dprintk(KERN_INFO PFX "found unsupported CPU with " | 502 | dprintk("found unsupported CPU with " |
503 | "Enhanced SpeedStep: send /proc/cpuinfo to " | 503 | "Enhanced SpeedStep: send /proc/cpuinfo to " |
504 | MAINTAINER "\n"); | 504 | MAINTAINER "\n"); |
505 | return -ENODEV; | 505 | return -ENODEV; |
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index d77e89ac0d54..dd6b0e3386ce 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -1320,6 +1320,8 @@ legacy_init_iomem_resources(struct resource *code_resource, struct resource *dat | |||
1320 | probe_roms(); | 1320 | probe_roms(); |
1321 | for (i = 0; i < e820.nr_map; i++) { | 1321 | for (i = 0; i < e820.nr_map; i++) { |
1322 | struct resource *res; | 1322 | struct resource *res; |
1323 | if (e820.map[i].addr + e820.map[i].size > 0x100000000ULL) | ||
1324 | continue; | ||
1323 | res = kzalloc(sizeof(struct resource), GFP_ATOMIC); | 1325 | res = kzalloc(sizeof(struct resource), GFP_ATOMIC); |
1324 | switch (e820.map[i].type) { | 1326 | switch (e820.map[i].type) { |
1325 | case E820_RAM: res->name = "System RAM"; break; | 1327 | case E820_RAM: res->name = "System RAM"; break; |
@@ -1545,15 +1547,18 @@ void __init setup_arch(char **cmdline_p) | |||
1545 | if (efi_enabled) | 1547 | if (efi_enabled) |
1546 | efi_map_memmap(); | 1548 | efi_map_memmap(); |
1547 | 1549 | ||
1548 | #ifdef CONFIG_X86_IO_APIC | ||
1549 | check_acpi_pci(); /* Checks more than just ACPI actually */ | ||
1550 | #endif | ||
1551 | |||
1552 | #ifdef CONFIG_ACPI | 1550 | #ifdef CONFIG_ACPI |
1553 | /* | 1551 | /* |
1554 | * Parse the ACPI tables for possible boot-time SMP configuration. | 1552 | * Parse the ACPI tables for possible boot-time SMP configuration. |
1555 | */ | 1553 | */ |
1556 | acpi_boot_table_init(); | 1554 | acpi_boot_table_init(); |
1555 | #endif | ||
1556 | |||
1557 | #ifdef CONFIG_X86_IO_APIC | ||
1558 | check_acpi_pci(); /* Checks more than just ACPI actually */ | ||
1559 | #endif | ||
1560 | |||
1561 | #ifdef CONFIG_ACPI | ||
1557 | acpi_boot_init(); | 1562 | acpi_boot_init(); |
1558 | 1563 | ||
1559 | #if defined(CONFIG_SMP) && defined(CONFIG_X86_PC) | 1564 | #if defined(CONFIG_SMP) && defined(CONFIG_X86_PC) |
diff --git a/arch/i386/kernel/syscall_table.S b/arch/i386/kernel/syscall_table.S index f48bef15b4f0..af56987f69b0 100644 --- a/arch/i386/kernel/syscall_table.S +++ b/arch/i386/kernel/syscall_table.S | |||
@@ -315,3 +315,4 @@ ENTRY(sys_call_table) | |||
315 | .long sys_splice | 315 | .long sys_splice |
316 | .long sys_sync_file_range | 316 | .long sys_sync_file_range |
317 | .long sys_tee /* 315 */ | 317 | .long sys_tee /* 315 */ |
318 | .long sys_vmsplice | ||
diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index 2d22f5761b1d..0e498369f35e 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c | |||
@@ -130,9 +130,8 @@ static inline int print_addr_and_symbol(unsigned long addr, char *log_lvl, | |||
130 | print_symbol("%s", addr); | 130 | print_symbol("%s", addr); |
131 | 131 | ||
132 | printed = (printed + 1) % CONFIG_STACK_BACKTRACE_COLS; | 132 | printed = (printed + 1) % CONFIG_STACK_BACKTRACE_COLS; |
133 | |||
134 | if (printed) | 133 | if (printed) |
135 | printk(" "); | 134 | printk(" "); |
136 | else | 135 | else |
137 | printk("\n"); | 136 | printk("\n"); |
138 | 137 | ||
@@ -212,7 +211,6 @@ static void show_stack_log_lvl(struct task_struct *task, unsigned long *esp, | |||
212 | } | 211 | } |
213 | 212 | ||
214 | stack = esp; | 213 | stack = esp; |
215 | printk(log_lvl); | ||
216 | for(i = 0; i < kstack_depth_to_print; i++) { | 214 | for(i = 0; i < kstack_depth_to_print; i++) { |
217 | if (kstack_end(stack)) | 215 | if (kstack_end(stack)) |
218 | break; | 216 | break; |
diff --git a/arch/i386/mach-generic/probe.c b/arch/i386/mach-generic/probe.c index cea5b3ce4b57..d55fa7b187ab 100644 --- a/arch/i386/mach-generic/probe.c +++ b/arch/i386/mach-generic/probe.c | |||
@@ -93,9 +93,11 @@ int __init mps_oem_check(struct mp_config_table *mpc, char *oem, char *productid | |||
93 | int i; | 93 | int i; |
94 | for (i = 0; apic_probe[i]; ++i) { | 94 | for (i = 0; apic_probe[i]; ++i) { |
95 | if (apic_probe[i]->mps_oem_check(mpc,oem,productid)) { | 95 | if (apic_probe[i]->mps_oem_check(mpc,oem,productid)) { |
96 | genapic = apic_probe[i]; | 96 | if (!cmdline_apic) { |
97 | printk(KERN_INFO "Switched to APIC driver `%s'.\n", | 97 | genapic = apic_probe[i]; |
98 | genapic->name); | 98 | printk(KERN_INFO "Switched to APIC driver `%s'.\n", |
99 | genapic->name); | ||
100 | } | ||
99 | return 1; | 101 | return 1; |
100 | } | 102 | } |
101 | } | 103 | } |
@@ -107,9 +109,11 @@ int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id) | |||
107 | int i; | 109 | int i; |
108 | for (i = 0; apic_probe[i]; ++i) { | 110 | for (i = 0; apic_probe[i]; ++i) { |
109 | if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) { | 111 | if (apic_probe[i]->acpi_madt_oem_check(oem_id, oem_table_id)) { |
110 | genapic = apic_probe[i]; | 112 | if (!cmdline_apic) { |
111 | printk(KERN_INFO "Switched to APIC driver `%s'.\n", | 113 | genapic = apic_probe[i]; |
112 | genapic->name); | 114 | printk(KERN_INFO "Switched to APIC driver `%s'.\n", |
115 | genapic->name); | ||
116 | } | ||
113 | return 1; | 117 | return 1; |
114 | } | 118 | } |
115 | } | 119 | } |
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index ae6534ad8161..3df1371d4520 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c | |||
@@ -651,7 +651,7 @@ void __init mem_init(void) | |||
651 | * Specifically, in the case of x86, we will always add | 651 | * Specifically, in the case of x86, we will always add |
652 | * memory to the highmem for now. | 652 | * memory to the highmem for now. |
653 | */ | 653 | */ |
654 | #ifdef CONFIG_HOTPLUG_MEMORY | 654 | #ifdef CONFIG_MEMORY_HOTPLUG |
655 | #ifndef CONFIG_NEED_MULTIPLE_NODES | 655 | #ifndef CONFIG_NEED_MULTIPLE_NODES |
656 | int add_memory(u64 start, u64 size) | 656 | int add_memory(u64 start, u64 size) |
657 | { | 657 | { |
diff --git a/arch/i386/oprofile/nmi_int.c b/arch/i386/oprofile/nmi_int.c index 1a2076ce6f6a..ec0fd3cfa774 100644 --- a/arch/i386/oprofile/nmi_int.c +++ b/arch/i386/oprofile/nmi_int.c | |||
@@ -332,10 +332,11 @@ static int __init ppro_init(char ** cpu_type) | |||
332 | { | 332 | { |
333 | __u8 cpu_model = boot_cpu_data.x86_model; | 333 | __u8 cpu_model = boot_cpu_data.x86_model; |
334 | 334 | ||
335 | if (cpu_model > 0xd) | 335 | if (cpu_model == 14) |
336 | *cpu_type = "i386/core"; | ||
337 | else if (cpu_model > 0xd) | ||
336 | return 0; | 338 | return 0; |
337 | 339 | else if (cpu_model == 9) { | |
338 | if (cpu_model == 9) { | ||
339 | *cpu_type = "i386/p6_mobile"; | 340 | *cpu_type = "i386/p6_mobile"; |
340 | } else if (cpu_model > 5) { | 341 | } else if (cpu_model > 5) { |
341 | *cpu_type = "i386/piii"; | 342 | *cpu_type = "i386/piii"; |
diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c index 50a0bef8c85f..79b2370c7fac 100644 --- a/arch/i386/power/cpu.c +++ b/arch/i386/power/cpu.c | |||
@@ -92,7 +92,7 @@ void __restore_processor_state(struct saved_context *ctxt) | |||
92 | write_cr4(ctxt->cr4); | 92 | write_cr4(ctxt->cr4); |
93 | write_cr3(ctxt->cr3); | 93 | write_cr3(ctxt->cr3); |
94 | write_cr2(ctxt->cr2); | 94 | write_cr2(ctxt->cr2); |
95 | write_cr2(ctxt->cr0); | 95 | write_cr0(ctxt->cr0); |
96 | 96 | ||
97 | /* | 97 | /* |
98 | * now restore the descriptor tables to their proper values | 98 | * now restore the descriptor tables to their proper values |
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 0f3076a820c3..cd2051f5c9ce 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -449,6 +449,8 @@ config PCI_DOMAINS | |||
449 | bool | 449 | bool |
450 | default PCI | 450 | default PCI |
451 | 451 | ||
452 | source "drivers/pci/pcie/Kconfig" | ||
453 | |||
452 | source "drivers/pci/Kconfig" | 454 | source "drivers/pci/Kconfig" |
453 | 455 | ||
454 | source "drivers/pci/hotplug/Kconfig" | 456 | source "drivers/pci/hotplug/Kconfig" |
diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile index 80ea7506fa1a..21033ed83307 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile | |||
@@ -71,6 +71,8 @@ all: compressed unwcheck | |||
71 | 71 | ||
72 | compressed: vmlinux.gz | 72 | compressed: vmlinux.gz |
73 | 73 | ||
74 | vmlinuz: vmlinux.gz | ||
75 | |||
74 | vmlinux.gz: vmlinux | 76 | vmlinux.gz: vmlinux |
75 | $(Q)$(MAKE) $(build)=$(boot) $@ | 77 | $(Q)$(MAKE) $(build)=$(boot) $@ |
76 | 78 | ||
diff --git a/arch/ia64/configs/sn2_defconfig b/arch/ia64/configs/sn2_defconfig index f6a8853cd1b4..9ea35398e10d 100644 --- a/arch/ia64/configs/sn2_defconfig +++ b/arch/ia64/configs/sn2_defconfig | |||
@@ -134,7 +134,7 @@ CONFIG_ARCH_FLATMEM_ENABLE=y | |||
134 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | 134 | CONFIG_ARCH_SPARSEMEM_ENABLE=y |
135 | CONFIG_ARCH_DISCONTIGMEM_DEFAULT=y | 135 | CONFIG_ARCH_DISCONTIGMEM_DEFAULT=y |
136 | CONFIG_NUMA=y | 136 | CONFIG_NUMA=y |
137 | CONFIG_NODES_SHIFT=8 | 137 | CONFIG_NODES_SHIFT=10 |
138 | CONFIG_VIRTUAL_MEM_MAP=y | 138 | CONFIG_VIRTUAL_MEM_MAP=y |
139 | CONFIG_HOLES_IN_ZONE=y | 139 | CONFIG_HOLES_IN_ZONE=y |
140 | CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID=y | 140 | CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID=y |
@@ -1159,7 +1159,7 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
1159 | # CONFIG_SCHEDSTATS is not set | 1159 | # CONFIG_SCHEDSTATS is not set |
1160 | # CONFIG_DEBUG_SLAB is not set | 1160 | # CONFIG_DEBUG_SLAB is not set |
1161 | CONFIG_DEBUG_PREEMPT=y | 1161 | CONFIG_DEBUG_PREEMPT=y |
1162 | CONFIG_DEBUG_MUTEXES=y | 1162 | # CONFIG_DEBUG_MUTEXES is not set |
1163 | # CONFIG_DEBUG_SPINLOCK is not set | 1163 | # CONFIG_DEBUG_SPINLOCK is not set |
1164 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 1164 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
1165 | # CONFIG_DEBUG_KOBJECT is not set | 1165 | # CONFIG_DEBUG_KOBJECT is not set |
diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c index 77225659e968..16e7b6600ae6 100644 --- a/arch/ia64/kernel/asm-offsets.c +++ b/arch/ia64/kernel/asm-offsets.c | |||
@@ -217,16 +217,24 @@ void foo(void) | |||
217 | DEFINE(IA64_MCA_CPU_INIT_STACK_OFFSET, | 217 | DEFINE(IA64_MCA_CPU_INIT_STACK_OFFSET, |
218 | offsetof (struct ia64_mca_cpu, init_stack)); | 218 | offsetof (struct ia64_mca_cpu, init_stack)); |
219 | BLANK(); | 219 | BLANK(); |
220 | DEFINE(IA64_SAL_OS_STATE_COMMON_OFFSET, | ||
221 | offsetof (struct ia64_sal_os_state, sal_ra)); | ||
222 | DEFINE(IA64_SAL_OS_STATE_OS_GP_OFFSET, | 220 | DEFINE(IA64_SAL_OS_STATE_OS_GP_OFFSET, |
223 | offsetof (struct ia64_sal_os_state, os_gp)); | 221 | offsetof (struct ia64_sal_os_state, os_gp)); |
224 | DEFINE(IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET, | ||
225 | offsetof (struct ia64_sal_os_state, pal_min_state)); | ||
226 | DEFINE(IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET, | 222 | DEFINE(IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET, |
227 | offsetof (struct ia64_sal_os_state, proc_state_param)); | 223 | offsetof (struct ia64_sal_os_state, proc_state_param)); |
224 | DEFINE(IA64_SAL_OS_STATE_SAL_RA_OFFSET, | ||
225 | offsetof (struct ia64_sal_os_state, sal_ra)); | ||
226 | DEFINE(IA64_SAL_OS_STATE_SAL_GP_OFFSET, | ||
227 | offsetof (struct ia64_sal_os_state, sal_gp)); | ||
228 | DEFINE(IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET, | ||
229 | offsetof (struct ia64_sal_os_state, pal_min_state)); | ||
230 | DEFINE(IA64_SAL_OS_STATE_OS_STATUS_OFFSET, | ||
231 | offsetof (struct ia64_sal_os_state, os_status)); | ||
232 | DEFINE(IA64_SAL_OS_STATE_CONTEXT_OFFSET, | ||
233 | offsetof (struct ia64_sal_os_state, context)); | ||
228 | DEFINE(IA64_SAL_OS_STATE_SIZE, | 234 | DEFINE(IA64_SAL_OS_STATE_SIZE, |
229 | sizeof (struct ia64_sal_os_state)); | 235 | sizeof (struct ia64_sal_os_state)); |
236 | BLANK(); | ||
237 | |||
230 | DEFINE(IA64_PMSA_GR_OFFSET, | 238 | DEFINE(IA64_PMSA_GR_OFFSET, |
231 | offsetof (struct pal_min_state_area_s, pmsa_gr)); | 239 | offsetof (struct pal_min_state_area_s, pmsa_gr)); |
232 | DEFINE(IA64_PMSA_BANK1_GR_OFFSET, | 240 | DEFINE(IA64_PMSA_BANK1_GR_OFFSET, |
diff --git a/arch/ia64/kernel/efi_stub.S b/arch/ia64/kernel/efi_stub.S index 5a7fe70212a9..a56e161d7515 100644 --- a/arch/ia64/kernel/efi_stub.S +++ b/arch/ia64/kernel/efi_stub.S | |||
@@ -61,7 +61,7 @@ GLOBAL_ENTRY(efi_call_phys) | |||
61 | or loc3=loc3,r17 | 61 | or loc3=loc3,r17 |
62 | mov b6=r2 | 62 | mov b6=r2 |
63 | ;; | 63 | ;; |
64 | andcm r16=loc3,r16 // get psr with IT, DT, and RT bits cleared | 64 | andcm r16=loc3,r16 // get psr with IT, DT, and RT bits cleared |
65 | br.call.sptk.many rp=ia64_switch_mode_phys | 65 | br.call.sptk.many rp=ia64_switch_mode_phys |
66 | .ret0: mov out4=in5 | 66 | .ret0: mov out4=in5 |
67 | mov out0=in1 | 67 | mov out0=in1 |
diff --git a/arch/ia64/kernel/entry.h b/arch/ia64/kernel/entry.h index 78eeb0793419..ebc3dfb88826 100644 --- a/arch/ia64/kernel/entry.h +++ b/arch/ia64/kernel/entry.h | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #define PT(f) (IA64_PT_REGS_##f##_OFFSET) | 24 | #define PT(f) (IA64_PT_REGS_##f##_OFFSET) |
25 | #define SW(f) (IA64_SWITCH_STACK_##f##_OFFSET) | 25 | #define SW(f) (IA64_SWITCH_STACK_##f##_OFFSET) |
26 | #define SOS(f) (IA64_SAL_OS_STATE_##f##_OFFSET) | ||
26 | 27 | ||
27 | #define PT_REGS_SAVES(off) \ | 28 | #define PT_REGS_SAVES(off) \ |
28 | .unwabi 3, 'i'; \ | 29 | .unwabi 3, 'i'; \ |
diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c index 7956eb9058fc..d58c1c5c903a 100644 --- a/arch/ia64/kernel/iosapic.c +++ b/arch/ia64/kernel/iosapic.c | |||
@@ -416,7 +416,7 @@ iosapic_end_level_irq (unsigned int irq) | |||
416 | ia64_vector vec = irq_to_vector(irq); | 416 | ia64_vector vec = irq_to_vector(irq); |
417 | struct iosapic_rte_info *rte; | 417 | struct iosapic_rte_info *rte; |
418 | 418 | ||
419 | move_irq(irq); | 419 | move_native_irq(irq); |
420 | list_for_each_entry(rte, &iosapic_intr_info[vec].rtes, rte_list) | 420 | list_for_each_entry(rte, &iosapic_intr_info[vec].rtes, rte_list) |
421 | iosapic_eoi(rte->addr, vec); | 421 | iosapic_eoi(rte->addr, vec); |
422 | } | 422 | } |
@@ -458,7 +458,7 @@ iosapic_ack_edge_irq (unsigned int irq) | |||
458 | { | 458 | { |
459 | irq_desc_t *idesc = irq_descp(irq); | 459 | irq_desc_t *idesc = irq_descp(irq); |
460 | 460 | ||
461 | move_irq(irq); | 461 | move_native_irq(irq); |
462 | /* | 462 | /* |
463 | * Once we have recorded IRQ_PENDING already, we can mask the | 463 | * Once we have recorded IRQ_PENDING already, we can mask the |
464 | * interrupt for real. This prevents IRQ storms from unhandled | 464 | * interrupt for real. This prevents IRQ storms from unhandled |
diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c index 5ce908ef9c95..9c72ea3f6432 100644 --- a/arch/ia64/kernel/irq.c +++ b/arch/ia64/kernel/irq.c | |||
@@ -101,7 +101,6 @@ void set_irq_affinity_info (unsigned int irq, int hwid, int redir) | |||
101 | 101 | ||
102 | if (irq < NR_IRQS) { | 102 | if (irq < NR_IRQS) { |
103 | irq_affinity[irq] = mask; | 103 | irq_affinity[irq] = mask; |
104 | set_irq_info(irq, mask); | ||
105 | irq_redir[irq] = (char) (redir & 0xff); | 104 | irq_redir[irq] = (char) (redir & 0xff); |
106 | } | 105 | } |
107 | } | 106 | } |
diff --git a/arch/ia64/kernel/mca_asm.S b/arch/ia64/kernel/mca_asm.S index 6dff024cd62b..c1bd1feffab0 100644 --- a/arch/ia64/kernel/mca_asm.S +++ b/arch/ia64/kernel/mca_asm.S | |||
@@ -159,7 +159,7 @@ ia64_os_mca_spin: | |||
159 | GET_IA64_MCA_DATA(r2) | 159 | GET_IA64_MCA_DATA(r2) |
160 | // Using MCA stack, struct ia64_sal_os_state, variable proc_state_param | 160 | // Using MCA stack, struct ia64_sal_os_state, variable proc_state_param |
161 | ;; | 161 | ;; |
162 | add r3=IA64_MCA_CPU_MCA_STACK_OFFSET+MCA_SOS_OFFSET+IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET, r2 | 162 | add r3=IA64_MCA_CPU_MCA_STACK_OFFSET+MCA_SOS_OFFSET+SOS(PROC_STATE_PARAM), r2 |
163 | ;; | 163 | ;; |
164 | ld8 r18=[r3] // Get processor state parameter on existing PALE_CHECK. | 164 | ld8 r18=[r3] // Get processor state parameter on existing PALE_CHECK. |
165 | ;; | 165 | ;; |
@@ -479,9 +479,11 @@ ia64_state_save: | |||
479 | st8 [temp2]=r11,16 // rv_rc | 479 | st8 [temp2]=r11,16 // rv_rc |
480 | mov r11=cr.iipa | 480 | mov r11=cr.iipa |
481 | ;; | 481 | ;; |
482 | st8 [temp1]=r18,16 // proc_state_param | 482 | st8 [temp1]=r18 // proc_state_param |
483 | st8 [temp2]=r19,16 // monarch | 483 | st8 [temp2]=r19 // monarch |
484 | mov r6=IA64_KR(CURRENT) | 484 | mov r6=IA64_KR(CURRENT) |
485 | add temp1=SOS(SAL_RA), regs | ||
486 | add temp2=SOS(SAL_GP), regs | ||
485 | ;; | 487 | ;; |
486 | st8 [temp1]=r12,16 // sal_ra | 488 | st8 [temp1]=r12,16 // sal_ra |
487 | st8 [temp2]=r10,16 // sal_gp | 489 | st8 [temp2]=r10,16 // sal_gp |
@@ -503,12 +505,14 @@ ia64_state_save: | |||
503 | st8 [temp2]=r11,16 // cr.iipa | 505 | st8 [temp2]=r11,16 // cr.iipa |
504 | mov r12=cr.iim | 506 | mov r12=cr.iim |
505 | ;; | 507 | ;; |
506 | st8 [temp1]=r12,16 // cr.iim | 508 | st8 [temp1]=r12 // cr.iim |
507 | (p1) mov r12=IA64_MCA_COLD_BOOT | 509 | (p1) mov r12=IA64_MCA_COLD_BOOT |
508 | (p2) mov r12=IA64_INIT_WARM_BOOT | 510 | (p2) mov r12=IA64_INIT_WARM_BOOT |
509 | mov r6=cr.iha | 511 | mov r6=cr.iha |
512 | add temp1=SOS(OS_STATUS), regs | ||
510 | ;; | 513 | ;; |
511 | st8 [temp2]=r6,16 // cr.iha | 514 | st8 [temp2]=r6 // cr.iha |
515 | add temp2=SOS(CONTEXT), regs | ||
512 | st8 [temp1]=r12 // os_status, default is cold boot | 516 | st8 [temp1]=r12 // os_status, default is cold boot |
513 | mov r6=IA64_MCA_SAME_CONTEXT | 517 | mov r6=IA64_MCA_SAME_CONTEXT |
514 | ;; | 518 | ;; |
@@ -820,8 +824,8 @@ ia64_state_restore: | |||
820 | // Restore the SAL to OS state. The previous code left regs at pt_regs. | 824 | // Restore the SAL to OS state. The previous code left regs at pt_regs. |
821 | add regs=MCA_SOS_OFFSET-MCA_PT_REGS_OFFSET, regs | 825 | add regs=MCA_SOS_OFFSET-MCA_PT_REGS_OFFSET, regs |
822 | ;; | 826 | ;; |
823 | add temp1=IA64_SAL_OS_STATE_COMMON_OFFSET, regs | 827 | add temp1=SOS(SAL_RA), regs |
824 | add temp2=IA64_SAL_OS_STATE_COMMON_OFFSET+8, regs | 828 | add temp2=SOS(SAL_GP), regs |
825 | ;; | 829 | ;; |
826 | ld8 r12=[temp1],16 // sal_ra | 830 | ld8 r12=[temp1],16 // sal_ra |
827 | ld8 r9=[temp2],16 // sal_gp | 831 | ld8 r9=[temp2],16 // sal_gp |
@@ -842,8 +846,10 @@ ia64_state_restore: | |||
842 | ;; | 846 | ;; |
843 | mov cr.itir=temp3 | 847 | mov cr.itir=temp3 |
844 | mov cr.iipa=temp4 | 848 | mov cr.iipa=temp4 |
845 | ld8 temp3=[temp1],16 // cr.iim | 849 | ld8 temp3=[temp1] // cr.iim |
846 | ld8 temp4=[temp2],16 // cr.iha | 850 | ld8 temp4=[temp2] // cr.iha |
851 | add temp1=SOS(OS_STATUS), regs | ||
852 | add temp2=SOS(CONTEXT), regs | ||
847 | ;; | 853 | ;; |
848 | mov cr.iim=temp3 | 854 | mov cr.iim=temp3 |
849 | mov cr.iha=temp4 | 855 | mov cr.iha=temp4 |
@@ -916,7 +922,7 @@ ia64_state_restore: | |||
916 | 922 | ||
917 | ia64_new_stack: | 923 | ia64_new_stack: |
918 | add regs=MCA_PT_REGS_OFFSET, r3 | 924 | add regs=MCA_PT_REGS_OFFSET, r3 |
919 | add temp2=MCA_SOS_OFFSET+IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET, r3 | 925 | add temp2=MCA_SOS_OFFSET+SOS(PAL_MIN_STATE), r3 |
920 | mov b0=r2 // save return address | 926 | mov b0=r2 // save return address |
921 | GET_IA64_MCA_DATA(temp1) | 927 | GET_IA64_MCA_DATA(temp1) |
922 | invala | 928 | invala |
@@ -1020,7 +1026,7 @@ ia64_old_stack: | |||
1020 | 1026 | ||
1021 | ia64_set_kernel_registers: | 1027 | ia64_set_kernel_registers: |
1022 | add temp3=MCA_SP_OFFSET, r3 | 1028 | add temp3=MCA_SP_OFFSET, r3 |
1023 | add temp4=MCA_SOS_OFFSET+IA64_SAL_OS_STATE_OS_GP_OFFSET, r3 | 1029 | add temp4=MCA_SOS_OFFSET+SOS(OS_GP), r3 |
1024 | mov b0=r2 // save return address | 1030 | mov b0=r2 // save return address |
1025 | GET_IA64_MCA_DATA(temp1) | 1031 | GET_IA64_MCA_DATA(temp1) |
1026 | ;; | 1032 | ;; |
diff --git a/arch/ia64/kernel/sal.c b/arch/ia64/kernel/sal.c index 056f7a6eedc7..77fa65903d94 100644 --- a/arch/ia64/kernel/sal.c +++ b/arch/ia64/kernel/sal.c | |||
@@ -227,7 +227,7 @@ static int sal_cache_flush_drops_interrupts; | |||
227 | static void __init | 227 | static void __init |
228 | check_sal_cache_flush (void) | 228 | check_sal_cache_flush (void) |
229 | { | 229 | { |
230 | unsigned long flags, itv; | 230 | unsigned long flags; |
231 | int cpu; | 231 | int cpu; |
232 | u64 vector; | 232 | u64 vector; |
233 | 233 | ||
@@ -238,9 +238,6 @@ check_sal_cache_flush (void) | |||
238 | * Schedule a timer interrupt, wait until it's reported, and see if | 238 | * Schedule a timer interrupt, wait until it's reported, and see if |
239 | * SAL_CACHE_FLUSH drops it. | 239 | * SAL_CACHE_FLUSH drops it. |
240 | */ | 240 | */ |
241 | itv = ia64_get_itv(); | ||
242 | BUG_ON((itv & (1 << 16)) == 0); | ||
243 | |||
244 | ia64_set_itv(IA64_TIMER_VECTOR); | 241 | ia64_set_itv(IA64_TIMER_VECTOR); |
245 | ia64_set_itm(ia64_get_itc() + 1000); | 242 | ia64_set_itm(ia64_get_itc() + 1000); |
246 | 243 | ||
@@ -260,7 +257,6 @@ check_sal_cache_flush (void) | |||
260 | ia64_eoi(); | 257 | ia64_eoi(); |
261 | } | 258 | } |
262 | 259 | ||
263 | ia64_set_itv(itv); | ||
264 | local_irq_restore(flags); | 260 | local_irq_restore(flags); |
265 | put_cpu(); | 261 | put_cpu(); |
266 | } | 262 | } |
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index e4dfda1eb7dd..6dba2d63f24d 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c | |||
@@ -260,6 +260,7 @@ reserve_memory (void) | |||
260 | n++; | 260 | n++; |
261 | 261 | ||
262 | num_rsvd_regions = n; | 262 | num_rsvd_regions = n; |
263 | BUG_ON(IA64_MAX_RSVD_REGIONS + 1 < n); | ||
263 | 264 | ||
264 | sort_regions(rsvd_region, num_rsvd_regions); | 265 | sort_regions(rsvd_region, num_rsvd_regions); |
265 | } | 266 | } |
diff --git a/arch/ia64/sn/kernel/sn2/sn_hwperf.c b/arch/ia64/sn/kernel/sn2/sn_hwperf.c index 739c948dc504..9a8a29339d2d 100644 --- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c +++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c | |||
@@ -51,6 +51,8 @@ static nasid_t sn_hwperf_master_nasid = INVALID_NASID; | |||
51 | static int sn_hwperf_init(void); | 51 | static int sn_hwperf_init(void); |
52 | static DECLARE_MUTEX(sn_hwperf_init_mutex); | 52 | static DECLARE_MUTEX(sn_hwperf_init_mutex); |
53 | 53 | ||
54 | #define cnode_possible(n) ((n) < num_cnodes) | ||
55 | |||
54 | static int sn_hwperf_enum_objects(int *nobj, struct sn_hwperf_object_info **ret) | 56 | static int sn_hwperf_enum_objects(int *nobj, struct sn_hwperf_object_info **ret) |
55 | { | 57 | { |
56 | int e; | 58 | int e; |
@@ -127,14 +129,14 @@ static int sn_hwperf_geoid_to_cnode(char *location) | |||
127 | } | 129 | } |
128 | } | 130 | } |
129 | 131 | ||
130 | return node_possible(cnode) ? cnode : -1; | 132 | return cnode_possible(cnode) ? cnode : -1; |
131 | } | 133 | } |
132 | 134 | ||
133 | static int sn_hwperf_obj_to_cnode(struct sn_hwperf_object_info * obj) | 135 | static int sn_hwperf_obj_to_cnode(struct sn_hwperf_object_info * obj) |
134 | { | 136 | { |
135 | if (!SN_HWPERF_IS_NODE(obj) && !SN_HWPERF_IS_IONODE(obj)) | 137 | if (!SN_HWPERF_IS_NODE(obj) && !SN_HWPERF_IS_IONODE(obj)) |
136 | BUG(); | 138 | BUG(); |
137 | if (!obj->sn_hwp_this_part) | 139 | if (SN_HWPERF_FOREIGN(obj)) |
138 | return -1; | 140 | return -1; |
139 | return sn_hwperf_geoid_to_cnode(obj->location); | 141 | return sn_hwperf_geoid_to_cnode(obj->location); |
140 | } | 142 | } |
@@ -199,12 +201,12 @@ static void print_pci_topology(struct seq_file *s) | |||
199 | 201 | ||
200 | static inline int sn_hwperf_has_cpus(cnodeid_t node) | 202 | static inline int sn_hwperf_has_cpus(cnodeid_t node) |
201 | { | 203 | { |
202 | return node_online(node) && nr_cpus_node(node); | 204 | return node < MAX_NUMNODES && node_online(node) && nr_cpus_node(node); |
203 | } | 205 | } |
204 | 206 | ||
205 | static inline int sn_hwperf_has_mem(cnodeid_t node) | 207 | static inline int sn_hwperf_has_mem(cnodeid_t node) |
206 | { | 208 | { |
207 | return node_online(node) && NODE_DATA(node)->node_present_pages; | 209 | return node < MAX_NUMNODES && node_online(node) && NODE_DATA(node)->node_present_pages; |
208 | } | 210 | } |
209 | 211 | ||
210 | static struct sn_hwperf_object_info * | 212 | static struct sn_hwperf_object_info * |
@@ -237,7 +239,7 @@ static int sn_hwperf_get_nearest_node_objdata(struct sn_hwperf_object_info *objb | |||
237 | int found_mem = 0; | 239 | int found_mem = 0; |
238 | int found_cpu = 0; | 240 | int found_cpu = 0; |
239 | 241 | ||
240 | if (!node_possible(node)) | 242 | if (!cnode_possible(node)) |
241 | return -EINVAL; | 243 | return -EINVAL; |
242 | 244 | ||
243 | if (sn_hwperf_has_cpus(node)) { | 245 | if (sn_hwperf_has_cpus(node)) { |
@@ -442,7 +444,7 @@ static int sn_topology_show(struct seq_file *s, void *d) | |||
442 | seq_printf(s, "%s %d %s %s asic %s", slabname, ordinal, obj->location, | 444 | seq_printf(s, "%s %d %s %s asic %s", slabname, ordinal, obj->location, |
443 | obj->sn_hwp_this_part ? "local" : "shared", obj->name); | 445 | obj->sn_hwp_this_part ? "local" : "shared", obj->name); |
444 | 446 | ||
445 | if (!SN_HWPERF_IS_NODE(obj) && !SN_HWPERF_IS_IONODE(obj)) | 447 | if (ordinal < 0 || (!SN_HWPERF_IS_NODE(obj) && !SN_HWPERF_IS_IONODE(obj))) |
446 | seq_putc(s, '\n'); | 448 | seq_putc(s, '\n'); |
447 | else { | 449 | else { |
448 | cnodeid_t near_mem = -1; | 450 | cnodeid_t near_mem = -1; |
@@ -468,22 +470,24 @@ static int sn_topology_show(struct seq_file *s, void *d) | |||
468 | /* | 470 | /* |
469 | * CPUs on this node, if any | 471 | * CPUs on this node, if any |
470 | */ | 472 | */ |
471 | cpumask = node_to_cpumask(ordinal); | 473 | if (!SN_HWPERF_IS_IONODE(obj)) { |
472 | for_each_online_cpu(i) { | 474 | cpumask = node_to_cpumask(ordinal); |
473 | if (cpu_isset(i, cpumask)) { | 475 | for_each_online_cpu(i) { |
474 | slice = 'a' + cpuid_to_slice(i); | 476 | if (cpu_isset(i, cpumask)) { |
475 | c = cpu_data(i); | 477 | slice = 'a' + cpuid_to_slice(i); |
476 | seq_printf(s, "cpu %d %s%c local" | 478 | c = cpu_data(i); |
477 | " freq %luMHz, arch ia64", | 479 | seq_printf(s, "cpu %d %s%c local" |
478 | i, obj->location, slice, | 480 | " freq %luMHz, arch ia64", |
479 | c->proc_freq / 1000000); | 481 | i, obj->location, slice, |
480 | for_each_online_cpu(j) { | 482 | c->proc_freq / 1000000); |
481 | seq_printf(s, j ? ":%d" : ", dist %d", | 483 | for_each_online_cpu(j) { |
482 | node_distance( | 484 | seq_printf(s, j ? ":%d" : ", dist %d", |
483 | cpu_to_node(i), | 485 | node_distance( |
484 | cpu_to_node(j))); | 486 | cpu_to_node(i), |
487 | cpu_to_node(j))); | ||
488 | } | ||
489 | seq_putc(s, '\n'); | ||
485 | } | 490 | } |
486 | seq_putc(s, '\n'); | ||
487 | } | 491 | } |
488 | } | 492 | } |
489 | } | 493 | } |
@@ -523,7 +527,7 @@ static int sn_topology_show(struct seq_file *s, void *d) | |||
523 | if (obj->sn_hwp_this_part && p->sn_hwp_this_part) | 527 | if (obj->sn_hwp_this_part && p->sn_hwp_this_part) |
524 | /* both ends local to this partition */ | 528 | /* both ends local to this partition */ |
525 | seq_puts(s, " local"); | 529 | seq_puts(s, " local"); |
526 | else if (!obj->sn_hwp_this_part && !p->sn_hwp_this_part) | 530 | else if (SN_HWPERF_FOREIGN(p)) |
527 | /* both ends of the link in foreign partiton */ | 531 | /* both ends of the link in foreign partiton */ |
528 | seq_puts(s, " foreign"); | 532 | seq_puts(s, " foreign"); |
529 | else | 533 | else |
@@ -776,7 +780,7 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, u64 arg) | |||
776 | 780 | ||
777 | case SN_HWPERF_GET_NODE_NASID: | 781 | case SN_HWPERF_GET_NODE_NASID: |
778 | if (a.sz != sizeof(u64) || | 782 | if (a.sz != sizeof(u64) || |
779 | (node = a.arg) < 0 || !node_possible(node)) { | 783 | (node = a.arg) < 0 || !cnode_possible(node)) { |
780 | r = -EINVAL; | 784 | r = -EINVAL; |
781 | goto error; | 785 | goto error; |
782 | } | 786 | } |
diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c index 833295624e5d..85f3b3d4c606 100644 --- a/arch/ia64/sn/pci/tioce_provider.c +++ b/arch/ia64/sn/pci/tioce_provider.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 2003-2005 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (C) 2003-2006 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/types.h> | 9 | #include <linux/types.h> |
@@ -1002,7 +1002,7 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont | |||
1002 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_adm_int_status_alias, ~0ULL); | 1002 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_adm_int_status_alias, ~0ULL); |
1003 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_adm_error_summary_alias, | 1003 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_adm_error_summary_alias, |
1004 | ~0ULL); | 1004 | ~0ULL); |
1005 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_dre_comp_err_addr, ~0ULL); | 1005 | tioce_mmr_seti(tioce_kern, &tioce_mmr->ce_dre_comp_err_addr, 0ULL); |
1006 | 1006 | ||
1007 | if (request_irq(SGI_PCIASIC_ERROR, | 1007 | if (request_irq(SGI_PCIASIC_ERROR, |
1008 | tioce_error_intr_handler, | 1008 | tioce_error_intr_handler, |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ee5fbb02b28f..35e038a974c6 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -13,7 +13,7 @@ choice | |||
13 | default SGI_IP22 | 13 | default SGI_IP22 |
14 | 14 | ||
15 | config MIPS_MTX1 | 15 | config MIPS_MTX1 |
16 | bool "Support for 4G Systems MTX-1 board" | 16 | bool "4G Systems MTX-1 board" |
17 | select DMA_NONCOHERENT | 17 | select DMA_NONCOHERENT |
18 | select HW_HAS_PCI | 18 | select HW_HAS_PCI |
19 | select SOC_AU1500 | 19 | select SOC_AU1500 |
@@ -119,8 +119,34 @@ config MIPS_MIRAGE | |||
119 | select SYS_HAS_CPU_MIPS32_R1 | 119 | select SYS_HAS_CPU_MIPS32_R1 |
120 | select SYS_SUPPORTS_LITTLE_ENDIAN | 120 | select SYS_SUPPORTS_LITTLE_ENDIAN |
121 | 121 | ||
122 | config BASLER_EXCITE | ||
123 | bool "Basler eXcite smart camera support" | ||
124 | select DMA_COHERENT | ||
125 | select HW_HAS_PCI | ||
126 | select IRQ_CPU | ||
127 | select IRQ_CPU_RM7K | ||
128 | select IRQ_CPU_RM9K | ||
129 | select SERIAL_RM9000 | ||
130 | select SYS_HAS_CPU_RM9000 | ||
131 | select SYS_SUPPORTS_32BIT_KERNEL | ||
132 | select SYS_SUPPORTS_64BIT_KERNEL | ||
133 | select SYS_SUPPORTS_BIG_ENDIAN | ||
134 | help | ||
135 | The eXcite is a smart camera platform manufactured by | ||
136 | Basler Vision Technologies AG | ||
137 | |||
138 | config BASLER_EXCITE_PROTOTYPE | ||
139 | bool "Support for pre-release units" | ||
140 | depends on BASLER_EXCITE | ||
141 | default n | ||
142 | help | ||
143 | Pre-series (prototype) units are different from later ones in | ||
144 | some ways. Select this option if you have one of these. Please | ||
145 | note that a kernel built with this option selected will not be | ||
146 | able to run on normal units. | ||
147 | |||
122 | config MIPS_COBALT | 148 | config MIPS_COBALT |
123 | bool "Support for Cobalt Server" | 149 | bool "Cobalt Server" |
124 | select DMA_NONCOHERENT | 150 | select DMA_NONCOHERENT |
125 | select HW_HAS_PCI | 151 | select HW_HAS_PCI |
126 | select I8259 | 152 | select I8259 |
@@ -132,7 +158,7 @@ config MIPS_COBALT | |||
132 | select SYS_SUPPORTS_LITTLE_ENDIAN | 158 | select SYS_SUPPORTS_LITTLE_ENDIAN |
133 | 159 | ||
134 | config MACH_DECSTATION | 160 | config MACH_DECSTATION |
135 | bool "Support for DECstations" | 161 | bool "DECstations" |
136 | select BOOT_ELF32 | 162 | select BOOT_ELF32 |
137 | select DMA_NONCOHERENT | 163 | select DMA_NONCOHERENT |
138 | select EARLY_PRINTK | 164 | select EARLY_PRINTK |
@@ -142,6 +168,9 @@ config MACH_DECSTATION | |||
142 | select SYS_SUPPORTS_32BIT_KERNEL | 168 | select SYS_SUPPORTS_32BIT_KERNEL |
143 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | 169 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL |
144 | select SYS_SUPPORTS_LITTLE_ENDIAN | 170 | select SYS_SUPPORTS_LITTLE_ENDIAN |
171 | select SYS_SUPPORTS_128HZ | ||
172 | select SYS_SUPPORTS_256HZ | ||
173 | select SYS_SUPPORTS_1024HZ | ||
145 | help | 174 | help |
146 | This enables support for DEC's MIPS based workstations. For details | 175 | This enables support for DEC's MIPS based workstations. For details |
147 | see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the | 176 | see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the |
@@ -158,7 +187,7 @@ config MACH_DECSTATION | |||
158 | otherwise choose R3000. | 187 | otherwise choose R3000. |
159 | 188 | ||
160 | config MIPS_EV64120 | 189 | config MIPS_EV64120 |
161 | bool "Support for Galileo EV64120 Evaluation board (EXPERIMENTAL)" | 190 | bool "Galileo EV64120 Evaluation board (EXPERIMENTAL)" |
162 | depends on EXPERIMENTAL | 191 | depends on EXPERIMENTAL |
163 | select DMA_NONCOHERENT | 192 | select DMA_NONCOHERENT |
164 | select HW_HAS_PCI | 193 | select HW_HAS_PCI |
@@ -175,7 +204,7 @@ config MIPS_EV64120 | |||
175 | kernel for this platform. | 204 | kernel for this platform. |
176 | 205 | ||
177 | config MIPS_EV96100 | 206 | config MIPS_EV96100 |
178 | bool "Support for Galileo EV96100 Evaluation board (EXPERIMENTAL)" | 207 | bool "Galileo EV96100 Evaluation board (EXPERIMENTAL)" |
179 | depends on EXPERIMENTAL | 208 | depends on EXPERIMENTAL |
180 | select DMA_NONCOHERENT | 209 | select DMA_NONCOHERENT |
181 | select HW_HAS_PCI | 210 | select HW_HAS_PCI |
@@ -195,7 +224,7 @@ config MIPS_EV96100 | |||
195 | here if you wish to build a kernel for this platform. | 224 | here if you wish to build a kernel for this platform. |
196 | 225 | ||
197 | config MIPS_IVR | 226 | config MIPS_IVR |
198 | bool "Support for Globespan IVR board" | 227 | bool "Globespan IVR board" |
199 | select DMA_NONCOHERENT | 228 | select DMA_NONCOHERENT |
200 | select HW_HAS_PCI | 229 | select HW_HAS_PCI |
201 | select ITE_BOARD_GEN | 230 | select ITE_BOARD_GEN |
@@ -211,7 +240,7 @@ config MIPS_IVR | |||
211 | build a kernel for this platform. | 240 | build a kernel for this platform. |
212 | 241 | ||
213 | config MIPS_ITE8172 | 242 | config MIPS_ITE8172 |
214 | bool "Support for ITE 8172G board" | 243 | bool "ITE 8172G board" |
215 | select DMA_NONCOHERENT | 244 | select DMA_NONCOHERENT |
216 | select HW_HAS_PCI | 245 | select HW_HAS_PCI |
217 | select ITE_BOARD_GEN | 246 | select ITE_BOARD_GEN |
@@ -228,7 +257,7 @@ config MIPS_ITE8172 | |||
228 | a kernel for this platform. | 257 | a kernel for this platform. |
229 | 258 | ||
230 | config MACH_JAZZ | 259 | config MACH_JAZZ |
231 | bool "Support for the Jazz family of machines" | 260 | bool "Jazz family of machines" |
232 | select ARC | 261 | select ARC |
233 | select ARC32 | 262 | select ARC32 |
234 | select ARCH_MAY_HAVE_PC_FDC | 263 | select ARCH_MAY_HAVE_PC_FDC |
@@ -239,6 +268,7 @@ config MACH_JAZZ | |||
239 | select SYS_HAS_CPU_R4X00 | 268 | select SYS_HAS_CPU_R4X00 |
240 | select SYS_SUPPORTS_32BIT_KERNEL | 269 | select SYS_SUPPORTS_32BIT_KERNEL |
241 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | 270 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL |
271 | select SYS_SUPPORTS_100HZ | ||
242 | help | 272 | help |
243 | This a family of machines based on the MIPS R4030 chipset which was | 273 | This a family of machines based on the MIPS R4030 chipset which was |
244 | used by several vendors to build RISC/os and Windows NT workstations. | 274 | used by several vendors to build RISC/os and Windows NT workstations. |
@@ -246,7 +276,7 @@ config MACH_JAZZ | |||
246 | Olivetti M700-10 workstations. | 276 | Olivetti M700-10 workstations. |
247 | 277 | ||
248 | config LASAT | 278 | config LASAT |
249 | bool "Support for LASAT Networks platforms" | 279 | bool "LASAT Networks platforms" |
250 | select DMA_NONCOHERENT | 280 | select DMA_NONCOHERENT |
251 | select HW_HAS_PCI | 281 | select HW_HAS_PCI |
252 | select MIPS_GT64120 | 282 | select MIPS_GT64120 |
@@ -258,7 +288,7 @@ config LASAT | |||
258 | select SYS_SUPPORTS_LITTLE_ENDIAN | 288 | select SYS_SUPPORTS_LITTLE_ENDIAN |
259 | 289 | ||
260 | config MIPS_ATLAS | 290 | config MIPS_ATLAS |
261 | bool "Support for MIPS Atlas board" | 291 | bool "MIPS Atlas board" |
262 | select BOOT_ELF32 | 292 | select BOOT_ELF32 |
263 | select DMA_NONCOHERENT | 293 | select DMA_NONCOHERENT |
264 | select IRQ_CPU | 294 | select IRQ_CPU |
@@ -283,7 +313,7 @@ config MIPS_ATLAS | |||
283 | board. | 313 | board. |
284 | 314 | ||
285 | config MIPS_MALTA | 315 | config MIPS_MALTA |
286 | bool "Support for MIPS Malta board" | 316 | bool "MIPS Malta board" |
287 | select ARCH_MAY_HAVE_PC_FDC | 317 | select ARCH_MAY_HAVE_PC_FDC |
288 | select BOOT_ELF32 | 318 | select BOOT_ELF32 |
289 | select HAVE_STD_PC_SERIAL_PORT | 319 | select HAVE_STD_PC_SERIAL_PORT |
@@ -311,7 +341,7 @@ config MIPS_MALTA | |||
311 | board. | 341 | board. |
312 | 342 | ||
313 | config MIPS_SEAD | 343 | config MIPS_SEAD |
314 | bool "Support for MIPS SEAD board (EXPERIMENTAL)" | 344 | bool "MIPS SEAD board (EXPERIMENTAL)" |
315 | depends on EXPERIMENTAL | 345 | depends on EXPERIMENTAL |
316 | select IRQ_CPU | 346 | select IRQ_CPU |
317 | select DMA_NONCOHERENT | 347 | select DMA_NONCOHERENT |
@@ -327,8 +357,29 @@ config MIPS_SEAD | |||
327 | This enables support for the MIPS Technologies SEAD evaluation | 357 | This enables support for the MIPS Technologies SEAD evaluation |
328 | board. | 358 | board. |
329 | 359 | ||
360 | config WR_PPMC | ||
361 | bool "Support for Wind River PPMC board" | ||
362 | select IRQ_CPU | ||
363 | select BOOT_ELF32 | ||
364 | select DMA_NONCOHERENT | ||
365 | select HW_HAS_PCI | ||
366 | select MIPS_GT64120 | ||
367 | select SWAP_IO_SPACE | ||
368 | select SYS_HAS_CPU_MIPS32_R1 | ||
369 | select SYS_HAS_CPU_MIPS32_R2 | ||
370 | select SYS_HAS_CPU_MIPS64_R1 | ||
371 | select SYS_HAS_CPU_NEVADA | ||
372 | select SYS_HAS_CPU_RM7000 | ||
373 | select SYS_SUPPORTS_32BIT_KERNEL | ||
374 | select SYS_SUPPORTS_64BIT_KERNEL | ||
375 | select SYS_SUPPORTS_BIG_ENDIAN | ||
376 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
377 | help | ||
378 | This enables support for the Wind River MIPS32 4KC PPMC evaluation | ||
379 | board, which is based on GT64120 bridge chip. | ||
380 | |||
330 | config MIPS_SIM | 381 | config MIPS_SIM |
331 | bool 'Support for MIPS simulator (MIPSsim)' | 382 | bool 'MIPS simulator (MIPSsim)' |
332 | select DMA_NONCOHERENT | 383 | select DMA_NONCOHERENT |
333 | select IRQ_CPU | 384 | select IRQ_CPU |
334 | select SYS_HAS_CPU_MIPS32_R1 | 385 | select SYS_HAS_CPU_MIPS32_R1 |
@@ -341,7 +392,7 @@ config MIPS_SIM | |||
341 | emulator. | 392 | emulator. |
342 | 393 | ||
343 | config MOMENCO_JAGUAR_ATX | 394 | config MOMENCO_JAGUAR_ATX |
344 | bool "Support for Momentum Jaguar board" | 395 | bool "Momentum Jaguar board" |
345 | select BOOT_ELF32 | 396 | select BOOT_ELF32 |
346 | select DMA_NONCOHERENT | 397 | select DMA_NONCOHERENT |
347 | select HW_HAS_PCI | 398 | select HW_HAS_PCI |
@@ -361,7 +412,7 @@ config MOMENCO_JAGUAR_ATX | |||
361 | Momentum Computer <http://www.momenco.com/>. | 412 | Momentum Computer <http://www.momenco.com/>. |
362 | 413 | ||
363 | config MOMENCO_OCELOT | 414 | config MOMENCO_OCELOT |
364 | bool "Support for Momentum Ocelot board" | 415 | bool "Momentum Ocelot board" |
365 | select DMA_NONCOHERENT | 416 | select DMA_NONCOHERENT |
366 | select HW_HAS_PCI | 417 | select HW_HAS_PCI |
367 | select IRQ_CPU | 418 | select IRQ_CPU |
@@ -378,7 +429,7 @@ config MOMENCO_OCELOT | |||
378 | Momentum Computer <http://www.momenco.com/>. | 429 | Momentum Computer <http://www.momenco.com/>. |
379 | 430 | ||
380 | config MOMENCO_OCELOT_3 | 431 | config MOMENCO_OCELOT_3 |
381 | bool "Support for Momentum Ocelot-3 board" | 432 | bool "Momentum Ocelot-3 board" |
382 | select BOOT_ELF32 | 433 | select BOOT_ELF32 |
383 | select DMA_NONCOHERENT | 434 | select DMA_NONCOHERENT |
384 | select HW_HAS_PCI | 435 | select HW_HAS_PCI |
@@ -397,7 +448,7 @@ config MOMENCO_OCELOT_3 | |||
397 | PMC-Sierra Rm79000 core. | 448 | PMC-Sierra Rm79000 core. |
398 | 449 | ||
399 | config MOMENCO_OCELOT_C | 450 | config MOMENCO_OCELOT_C |
400 | bool "Support for Momentum Ocelot-C board" | 451 | bool "Momentum Ocelot-C board" |
401 | select DMA_NONCOHERENT | 452 | select DMA_NONCOHERENT |
402 | select HW_HAS_PCI | 453 | select HW_HAS_PCI |
403 | select IRQ_CPU | 454 | select IRQ_CPU |
@@ -414,7 +465,7 @@ config MOMENCO_OCELOT_C | |||
414 | Momentum Computer <http://www.momenco.com/>. | 465 | Momentum Computer <http://www.momenco.com/>. |
415 | 466 | ||
416 | config MOMENCO_OCELOT_G | 467 | config MOMENCO_OCELOT_G |
417 | bool "Support for Momentum Ocelot-G board" | 468 | bool "Momentum Ocelot-G board" |
418 | select DMA_NONCOHERENT | 469 | select DMA_NONCOHERENT |
419 | select HW_HAS_PCI | 470 | select HW_HAS_PCI |
420 | select IRQ_CPU | 471 | select IRQ_CPU |
@@ -431,62 +482,25 @@ config MOMENCO_OCELOT_G | |||
431 | Momentum Computer <http://www.momenco.com/>. | 482 | Momentum Computer <http://www.momenco.com/>. |
432 | 483 | ||
433 | config MIPS_XXS1500 | 484 | config MIPS_XXS1500 |
434 | bool "Support for MyCable XXS1500 board" | 485 | bool "MyCable XXS1500 board" |
435 | select DMA_NONCOHERENT | 486 | select DMA_NONCOHERENT |
436 | select SOC_AU1500 | 487 | select SOC_AU1500 |
437 | select SYS_SUPPORTS_LITTLE_ENDIAN | 488 | select SYS_SUPPORTS_LITTLE_ENDIAN |
438 | 489 | ||
439 | config PNX8550_V2PCI | 490 | config PNX8550_V2PCI |
440 | bool "Support for Philips PNX8550 based Viper2-PCI board" | 491 | bool "Philips PNX8550 based Viper2-PCI board" |
492 | depends on BROKEN | ||
441 | select PNX8550 | 493 | select PNX8550 |
442 | select SYS_SUPPORTS_LITTLE_ENDIAN | 494 | select SYS_SUPPORTS_LITTLE_ENDIAN |
443 | 495 | ||
444 | config PNX8550_JBS | 496 | config PNX8550_JBS |
445 | bool "Support for Philips PNX8550 based JBS board" | 497 | bool "Philips PNX8550 based JBS board" |
498 | depends on BROKEN | ||
446 | select PNX8550 | 499 | select PNX8550 |
447 | select SYS_SUPPORTS_LITTLE_ENDIAN | 500 | select SYS_SUPPORTS_LITTLE_ENDIAN |
448 | 501 | ||
449 | config DDB5074 | ||
450 | bool "Support for NEC DDB Vrc-5074 (EXPERIMENTAL)" | ||
451 | depends on EXPERIMENTAL | ||
452 | select DDB5XXX_COMMON | ||
453 | select DMA_NONCOHERENT | ||
454 | select HAVE_STD_PC_SERIAL_PORT | ||
455 | select HW_HAS_PCI | ||
456 | select IRQ_CPU | ||
457 | select I8259 | ||
458 | select ISA | ||
459 | select SYS_HAS_CPU_R5000 | ||
460 | select SYS_SUPPORTS_32BIT_KERNEL | ||
461 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | ||
462 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
463 | help | ||
464 | This enables support for the VR5000-based NEC DDB Vrc-5074 | ||
465 | evaluation board. | ||
466 | |||
467 | config DDB5476 | ||
468 | bool "Support for NEC DDB Vrc-5476" | ||
469 | select DDB5XXX_COMMON | ||
470 | select DMA_NONCOHERENT | ||
471 | select HAVE_STD_PC_SERIAL_PORT | ||
472 | select HW_HAS_PCI | ||
473 | select IRQ_CPU | ||
474 | select I8259 | ||
475 | select ISA | ||
476 | select SYS_HAS_CPU_R5432 | ||
477 | select SYS_SUPPORTS_32BIT_KERNEL | ||
478 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | ||
479 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
480 | help | ||
481 | This enables support for the R5432-based NEC DDB Vrc-5476 | ||
482 | evaluation board. | ||
483 | |||
484 | Features : kernel debugging, serial terminal, NFS root fs, on-board | ||
485 | ether port USB, AC97, PCI, PCI VGA card & framebuffer console, | ||
486 | IDE controller, PS2 keyboard, PS2 mouse, etc. | ||
487 | |||
488 | config DDB5477 | 502 | config DDB5477 |
489 | bool "Support for NEC DDB Vrc-5477" | 503 | bool "NEC DDB Vrc-5477" |
490 | select DDB5XXX_COMMON | 504 | select DDB5XXX_COMMON |
491 | select DMA_NONCOHERENT | 505 | select DMA_NONCOHERENT |
492 | select HW_HAS_PCI | 506 | select HW_HAS_PCI |
@@ -504,13 +518,13 @@ config DDB5477 | |||
504 | ether port USB, AC97, PCI, etc. | 518 | ether port USB, AC97, PCI, etc. |
505 | 519 | ||
506 | config MACH_VR41XX | 520 | config MACH_VR41XX |
507 | bool "Support for NEC VR4100 series based machines" | 521 | bool "NEC VR41XX-based machines" |
508 | select SYS_HAS_CPU_VR41XX | 522 | select SYS_HAS_CPU_VR41XX |
509 | select SYS_SUPPORTS_32BIT_KERNEL | 523 | select SYS_SUPPORTS_32BIT_KERNEL |
510 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | 524 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL |
511 | 525 | ||
512 | config PMC_YOSEMITE | 526 | config PMC_YOSEMITE |
513 | bool "Support for PMC-Sierra Yosemite eval board" | 527 | bool "PMC-Sierra Yosemite eval board" |
514 | select DMA_COHERENT | 528 | select DMA_COHERENT |
515 | select HW_HAS_PCI | 529 | select HW_HAS_PCI |
516 | select IRQ_CPU | 530 | select IRQ_CPU |
@@ -527,7 +541,7 @@ config PMC_YOSEMITE | |||
527 | manufactured by PMC-Sierra. | 541 | manufactured by PMC-Sierra. |
528 | 542 | ||
529 | config QEMU | 543 | config QEMU |
530 | bool "Support for Qemu" | 544 | bool "Qemu" |
531 | select DMA_COHERENT | 545 | select DMA_COHERENT |
532 | select GENERIC_ISA_DMA | 546 | select GENERIC_ISA_DMA |
533 | select HAVE_STD_PC_SERIAL_PORT | 547 | select HAVE_STD_PC_SERIAL_PORT |
@@ -546,8 +560,22 @@ config QEMU | |||
546 | simulate actual MIPS hardware platforms. More information on Qemu | 560 | simulate actual MIPS hardware platforms. More information on Qemu |
547 | can be found at http://www.linux-mips.org/wiki/Qemu. | 561 | can be found at http://www.linux-mips.org/wiki/Qemu. |
548 | 562 | ||
563 | config MARKEINS | ||
564 | bool "Support for NEC EMMA2RH Mark-eins" | ||
565 | select DMA_NONCOHERENT | ||
566 | select HW_HAS_PCI | ||
567 | select IRQ_CPU | ||
568 | select SWAP_IO_SPACE | ||
569 | select SYS_SUPPORTS_32BIT_KERNEL | ||
570 | select SYS_SUPPORTS_BIG_ENDIAN | ||
571 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
572 | select SYS_HAS_CPU_R5000 | ||
573 | help | ||
574 | This enables support for the R5432-based NEC Mark-eins | ||
575 | boards with R5500 CPU. | ||
576 | |||
549 | config SGI_IP22 | 577 | config SGI_IP22 |
550 | bool "Support for SGI IP22 (Indy/Indigo2)" | 578 | bool "SGI IP22 (Indy/Indigo2)" |
551 | select ARC | 579 | select ARC |
552 | select ARC32 | 580 | select ARC32 |
553 | select BOOT_ELF32 | 581 | select BOOT_ELF32 |
@@ -555,6 +583,7 @@ config SGI_IP22 | |||
555 | select HW_HAS_EISA | 583 | select HW_HAS_EISA |
556 | select IP22_CPU_SCACHE | 584 | select IP22_CPU_SCACHE |
557 | select IRQ_CPU | 585 | select IRQ_CPU |
586 | select NO_ISA if ISA | ||
558 | select SWAP_IO_SPACE | 587 | select SWAP_IO_SPACE |
559 | select SYS_HAS_CPU_R4X00 | 588 | select SYS_HAS_CPU_R4X00 |
560 | select SYS_HAS_CPU_R5000 | 589 | select SYS_HAS_CPU_R5000 |
@@ -567,7 +596,7 @@ config SGI_IP22 | |||
567 | that runs on these, say Y here. | 596 | that runs on these, say Y here. |
568 | 597 | ||
569 | config SGI_IP27 | 598 | config SGI_IP27 |
570 | bool "Support for SGI IP27 (Origin200/2000)" | 599 | bool "SGI IP27 (Origin200/2000)" |
571 | select ARC | 600 | select ARC |
572 | select ARC64 | 601 | select ARC64 |
573 | select BOOT_ELF64 | 602 | select BOOT_ELF64 |
@@ -577,13 +606,14 @@ config SGI_IP27 | |||
577 | select SYS_HAS_CPU_R10000 | 606 | select SYS_HAS_CPU_R10000 |
578 | select SYS_SUPPORTS_64BIT_KERNEL | 607 | select SYS_SUPPORTS_64BIT_KERNEL |
579 | select SYS_SUPPORTS_BIG_ENDIAN | 608 | select SYS_SUPPORTS_BIG_ENDIAN |
609 | select SYS_SUPPORTS_NUMA | ||
580 | help | 610 | help |
581 | This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics | 611 | This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics |
582 | workstations. To compile a Linux kernel that runs on these, say Y | 612 | workstations. To compile a Linux kernel that runs on these, say Y |
583 | here. | 613 | here. |
584 | 614 | ||
585 | config SGI_IP32 | 615 | config SGI_IP32 |
586 | bool "Support for SGI IP32 (O2) (EXPERIMENTAL)" | 616 | bool "SGI IP32 (O2) (EXPERIMENTAL)" |
587 | depends on EXPERIMENTAL | 617 | depends on EXPERIMENTAL |
588 | select ARC | 618 | select ARC |
589 | select ARC32 | 619 | select ARC32 |
@@ -604,7 +634,7 @@ config SGI_IP32 | |||
604 | If you want this kernel to run on SGI O2 workstation, say Y here. | 634 | If you want this kernel to run on SGI O2 workstation, say Y here. |
605 | 635 | ||
606 | config SIBYTE_BIGSUR | 636 | config SIBYTE_BIGSUR |
607 | bool "Support for Sibyte BCM91480B-BigSur" | 637 | bool "Sibyte BCM91480B-BigSur" |
608 | select BOOT_ELF32 | 638 | select BOOT_ELF32 |
609 | select DMA_COHERENT | 639 | select DMA_COHERENT |
610 | select PCI_DOMAINS | 640 | select PCI_DOMAINS |
@@ -615,7 +645,7 @@ config SIBYTE_BIGSUR | |||
615 | select SYS_SUPPORTS_LITTLE_ENDIAN | 645 | select SYS_SUPPORTS_LITTLE_ENDIAN |
616 | 646 | ||
617 | config SIBYTE_SWARM | 647 | config SIBYTE_SWARM |
618 | bool "Support for Sibyte BCM91250A-SWARM" | 648 | bool "Sibyte BCM91250A-SWARM" |
619 | select BOOT_ELF32 | 649 | select BOOT_ELF32 |
620 | select DMA_COHERENT | 650 | select DMA_COHERENT |
621 | select SIBYTE_SB1250 | 651 | select SIBYTE_SB1250 |
@@ -626,7 +656,7 @@ config SIBYTE_SWARM | |||
626 | select SYS_SUPPORTS_LITTLE_ENDIAN | 656 | select SYS_SUPPORTS_LITTLE_ENDIAN |
627 | 657 | ||
628 | config SIBYTE_SENTOSA | 658 | config SIBYTE_SENTOSA |
629 | bool "Support for Sibyte BCM91250E-Sentosa" | 659 | bool "Sibyte BCM91250E-Sentosa" |
630 | depends on EXPERIMENTAL | 660 | depends on EXPERIMENTAL |
631 | select BOOT_ELF32 | 661 | select BOOT_ELF32 |
632 | select DMA_COHERENT | 662 | select DMA_COHERENT |
@@ -637,7 +667,7 @@ config SIBYTE_SENTOSA | |||
637 | select SYS_SUPPORTS_LITTLE_ENDIAN | 667 | select SYS_SUPPORTS_LITTLE_ENDIAN |
638 | 668 | ||
639 | config SIBYTE_RHONE | 669 | config SIBYTE_RHONE |
640 | bool "Support for Sibyte BCM91125E-Rhone" | 670 | bool "Sibyte BCM91125E-Rhone" |
641 | depends on EXPERIMENTAL | 671 | depends on EXPERIMENTAL |
642 | select BOOT_ELF32 | 672 | select BOOT_ELF32 |
643 | select DMA_COHERENT | 673 | select DMA_COHERENT |
@@ -648,7 +678,7 @@ config SIBYTE_RHONE | |||
648 | select SYS_SUPPORTS_LITTLE_ENDIAN | 678 | select SYS_SUPPORTS_LITTLE_ENDIAN |
649 | 679 | ||
650 | config SIBYTE_CARMEL | 680 | config SIBYTE_CARMEL |
651 | bool "Support for Sibyte BCM91120x-Carmel" | 681 | bool "Sibyte BCM91120x-Carmel" |
652 | depends on EXPERIMENTAL | 682 | depends on EXPERIMENTAL |
653 | select BOOT_ELF32 | 683 | select BOOT_ELF32 |
654 | select DMA_COHERENT | 684 | select DMA_COHERENT |
@@ -659,7 +689,7 @@ config SIBYTE_CARMEL | |||
659 | select SYS_SUPPORTS_LITTLE_ENDIAN | 689 | select SYS_SUPPORTS_LITTLE_ENDIAN |
660 | 690 | ||
661 | config SIBYTE_PTSWARM | 691 | config SIBYTE_PTSWARM |
662 | bool "Support for Sibyte BCM91250PT-PTSWARM" | 692 | bool "Sibyte BCM91250PT-PTSWARM" |
663 | depends on EXPERIMENTAL | 693 | depends on EXPERIMENTAL |
664 | select BOOT_ELF32 | 694 | select BOOT_ELF32 |
665 | select DMA_COHERENT | 695 | select DMA_COHERENT |
@@ -671,7 +701,7 @@ config SIBYTE_PTSWARM | |||
671 | select SYS_SUPPORTS_LITTLE_ENDIAN | 701 | select SYS_SUPPORTS_LITTLE_ENDIAN |
672 | 702 | ||
673 | config SIBYTE_LITTLESUR | 703 | config SIBYTE_LITTLESUR |
674 | bool "Support for Sibyte BCM91250C2-LittleSur" | 704 | bool "Sibyte BCM91250C2-LittleSur" |
675 | depends on EXPERIMENTAL | 705 | depends on EXPERIMENTAL |
676 | select BOOT_ELF32 | 706 | select BOOT_ELF32 |
677 | select DMA_COHERENT | 707 | select DMA_COHERENT |
@@ -683,7 +713,7 @@ config SIBYTE_LITTLESUR | |||
683 | select SYS_SUPPORTS_LITTLE_ENDIAN | 713 | select SYS_SUPPORTS_LITTLE_ENDIAN |
684 | 714 | ||
685 | config SIBYTE_CRHINE | 715 | config SIBYTE_CRHINE |
686 | bool "Support for Sibyte BCM91120C-CRhine" | 716 | bool "Sibyte BCM91120C-CRhine" |
687 | depends on EXPERIMENTAL | 717 | depends on EXPERIMENTAL |
688 | select BOOT_ELF32 | 718 | select BOOT_ELF32 |
689 | select DMA_COHERENT | 719 | select DMA_COHERENT |
@@ -694,7 +724,7 @@ config SIBYTE_CRHINE | |||
694 | select SYS_SUPPORTS_LITTLE_ENDIAN | 724 | select SYS_SUPPORTS_LITTLE_ENDIAN |
695 | 725 | ||
696 | config SIBYTE_CRHONE | 726 | config SIBYTE_CRHONE |
697 | bool "Support for Sibyte BCM91125C-CRhone" | 727 | bool "Sibyte BCM91125C-CRhone" |
698 | depends on EXPERIMENTAL | 728 | depends on EXPERIMENTAL |
699 | select BOOT_ELF32 | 729 | select BOOT_ELF32 |
700 | select DMA_COHERENT | 730 | select DMA_COHERENT |
@@ -706,9 +736,9 @@ config SIBYTE_CRHONE | |||
706 | select SYS_SUPPORTS_LITTLE_ENDIAN | 736 | select SYS_SUPPORTS_LITTLE_ENDIAN |
707 | 737 | ||
708 | config SNI_RM200_PCI | 738 | config SNI_RM200_PCI |
709 | bool "Support for SNI RM200 PCI" | 739 | bool "SNI RM200 PCI" |
710 | select ARC | 740 | select ARC if CPU_LITTLE_ENDIAN |
711 | select ARC32 | 741 | select ARC32 if CPU_LITTLE_ENDIAN |
712 | select ARCH_MAY_HAVE_PC_FDC | 742 | select ARCH_MAY_HAVE_PC_FDC |
713 | select BOOT_ELF32 | 743 | select BOOT_ELF32 |
714 | select DMA_NONCOHERENT | 744 | select DMA_NONCOHERENT |
@@ -719,10 +749,13 @@ config SNI_RM200_PCI | |||
719 | select I8253 | 749 | select I8253 |
720 | select I8259 | 750 | select I8259 |
721 | select ISA | 751 | select ISA |
752 | select SWAP_IO_SPACE if CPU_BIG_ENDIAN | ||
722 | select SYS_HAS_CPU_R4X00 | 753 | select SYS_HAS_CPU_R4X00 |
754 | select SYS_HAS_CPU_R5000 | ||
755 | select R5000_CPU_SCACHE | ||
723 | select SYS_SUPPORTS_32BIT_KERNEL | 756 | select SYS_SUPPORTS_32BIT_KERNEL |
724 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL | 757 | select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL |
725 | select SYS_SUPPORTS_BIG_ENDIAN if EXPERIMENTAL | 758 | select SYS_SUPPORTS_BIG_ENDIAN |
726 | select SYS_SUPPORTS_HIGHMEM | 759 | select SYS_SUPPORTS_HIGHMEM |
727 | select SYS_SUPPORTS_LITTLE_ENDIAN | 760 | select SYS_SUPPORTS_LITTLE_ENDIAN |
728 | help | 761 | help |
@@ -732,7 +765,7 @@ config SNI_RM200_PCI | |||
732 | support this machine type. | 765 | support this machine type. |
733 | 766 | ||
734 | config TOSHIBA_JMR3927 | 767 | config TOSHIBA_JMR3927 |
735 | bool "Support for Toshiba JMR-TX3927 board" | 768 | bool "Toshiba JMR-TX3927 board" |
736 | select DMA_NONCOHERENT | 769 | select DMA_NONCOHERENT |
737 | select HW_HAS_PCI | 770 | select HW_HAS_PCI |
738 | select MIPS_TX3927 | 771 | select MIPS_TX3927 |
@@ -743,7 +776,7 @@ config TOSHIBA_JMR3927 | |||
743 | select TOSHIBA_BOARDS | 776 | select TOSHIBA_BOARDS |
744 | 777 | ||
745 | config TOSHIBA_RBTX4927 | 778 | config TOSHIBA_RBTX4927 |
746 | bool "Support for Toshiba TBTX49[23]7 board" | 779 | bool "Toshiba TBTX49[23]7 board" |
747 | select DMA_NONCOHERENT | 780 | select DMA_NONCOHERENT |
748 | select HAS_TXX9_SERIAL | 781 | select HAS_TXX9_SERIAL |
749 | select HW_HAS_PCI | 782 | select HW_HAS_PCI |
@@ -760,7 +793,7 @@ config TOSHIBA_RBTX4927 | |||
760 | support this machine type | 793 | support this machine type |
761 | 794 | ||
762 | config TOSHIBA_RBTX4938 | 795 | config TOSHIBA_RBTX4938 |
763 | bool "Support for Toshiba RBTX4938 board" | 796 | bool "Toshiba RBTX4938 board" |
764 | select HAVE_STD_PC_SERIAL_PORT | 797 | select HAVE_STD_PC_SERIAL_PORT |
765 | select DMA_NONCOHERENT | 798 | select DMA_NONCOHERENT |
766 | select GENERIC_ISA_DMA | 799 | select GENERIC_ISA_DMA |
@@ -979,6 +1012,11 @@ config SOC_PNX8550 | |||
979 | config SWAP_IO_SPACE | 1012 | config SWAP_IO_SPACE |
980 | bool | 1013 | bool |
981 | 1014 | ||
1015 | config EMMA2RH | ||
1016 | bool | ||
1017 | depends on MARKEINS | ||
1018 | default y | ||
1019 | |||
982 | # | 1020 | # |
983 | # Unfortunately not all GT64120 systems run the chip at the same clock. | 1021 | # Unfortunately not all GT64120 systems run the chip at the same clock. |
984 | # As the user for the clock rate and try to minimize the available options. | 1022 | # As the user for the clock rate and try to minimize the available options. |
@@ -1411,13 +1449,12 @@ config PAGE_SIZE_8KB | |||
1411 | 1449 | ||
1412 | config PAGE_SIZE_16KB | 1450 | config PAGE_SIZE_16KB |
1413 | bool "16kB" | 1451 | bool "16kB" |
1414 | depends on EXPERIMENTAL && !CPU_R3000 && !CPU_TX39XX | 1452 | depends on !CPU_R3000 && !CPU_TX39XX |
1415 | help | 1453 | help |
1416 | Using 16kB page size will result in higher performance kernel at | 1454 | Using 16kB page size will result in higher performance kernel at |
1417 | the price of higher memory consumption. This option is available on | 1455 | the price of higher memory consumption. This option is available on |
1418 | all non-R3000 family processor. Not that at the time of this | 1456 | all non-R3000 family processors. Note that you will need a suitable |
1419 | writing this option is still high experimental; there are also | 1457 | Linux distribution to support this. |
1420 | issues with compatibility of user applications. | ||
1421 | 1458 | ||
1422 | config PAGE_SIZE_64KB | 1459 | config PAGE_SIZE_64KB |
1423 | bool "64kB" | 1460 | bool "64kB" |
@@ -1426,8 +1463,7 @@ config PAGE_SIZE_64KB | |||
1426 | Using 64kB page size will result in higher performance kernel at | 1463 | Using 64kB page size will result in higher performance kernel at |
1427 | the price of higher memory consumption. This option is available on | 1464 | the price of higher memory consumption. This option is available on |
1428 | all non-R3000 family processor. Not that at the time of this | 1465 | all non-R3000 family processor. Not that at the time of this |
1429 | writing this option is still high experimental; there are also | 1466 | writing this option is still high experimental. |
1430 | issues with compatibility of user applications. | ||
1431 | 1467 | ||
1432 | endchoice | 1468 | endchoice |
1433 | 1469 | ||
@@ -1609,6 +1645,28 @@ config ARCH_FLATMEM_ENABLE | |||
1609 | def_bool y | 1645 | def_bool y |
1610 | depends on !NUMA | 1646 | depends on !NUMA |
1611 | 1647 | ||
1648 | config ARCH_DISCONTIGMEM_ENABLE | ||
1649 | bool | ||
1650 | default y if SGI_IP27 | ||
1651 | help | ||
1652 | Say Y to upport efficient handling of discontiguous physical memory, | ||
1653 | for architectures which are either NUMA (Non-Uniform Memory Access) | ||
1654 | or have huge holes in the physical address space for other reasons. | ||
1655 | See <file:Documentation/vm/numa> for more. | ||
1656 | |||
1657 | config NUMA | ||
1658 | bool "NUMA Support" | ||
1659 | depends on SYS_SUPPORTS_NUMA | ||
1660 | help | ||
1661 | Say Y to compile the kernel to support NUMA (Non-Uniform Memory | ||
1662 | Access). This option improves performance on systems with more | ||
1663 | than two nodes; on two node systems it is generally better to | ||
1664 | leave it disabled; on single node systems disable this option | ||
1665 | disabled. | ||
1666 | |||
1667 | config SYS_SUPPORTS_NUMA | ||
1668 | bool | ||
1669 | |||
1612 | config NODES_SHIFT | 1670 | config NODES_SHIFT |
1613 | int | 1671 | int |
1614 | default "6" | 1672 | default "6" |
@@ -1653,6 +1711,77 @@ config NR_CPUS | |||
1653 | This is purely to save memory - each supported CPU adds | 1711 | This is purely to save memory - each supported CPU adds |
1654 | approximately eight kilobytes to the kernel image. | 1712 | approximately eight kilobytes to the kernel image. |
1655 | 1713 | ||
1714 | # | ||
1715 | # Timer Interrupt Frequency Configuration | ||
1716 | # | ||
1717 | |||
1718 | choice | ||
1719 | prompt "Timer frequency" | ||
1720 | default HZ_250 | ||
1721 | help | ||
1722 | Allows the configuration of the timer frequency. | ||
1723 | |||
1724 | config HZ_48 | ||
1725 | bool "48 HZ" if SYS_SUPPORTS_48HZ | ||
1726 | |||
1727 | config HZ_100 | ||
1728 | bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1729 | |||
1730 | config HZ_128 | ||
1731 | bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1732 | |||
1733 | config HZ_250 | ||
1734 | bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1735 | |||
1736 | config HZ_256 | ||
1737 | bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1738 | |||
1739 | config HZ_1000 | ||
1740 | bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1741 | |||
1742 | config HZ_1024 | ||
1743 | bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ | ||
1744 | |||
1745 | endchoice | ||
1746 | |||
1747 | config SYS_SUPPORTS_48HZ | ||
1748 | bool | ||
1749 | |||
1750 | config SYS_SUPPORTS_100HZ | ||
1751 | bool | ||
1752 | |||
1753 | config SYS_SUPPORTS_128HZ | ||
1754 | bool | ||
1755 | |||
1756 | config SYS_SUPPORTS_250HZ | ||
1757 | bool | ||
1758 | |||
1759 | config SYS_SUPPORTS_256HZ | ||
1760 | bool | ||
1761 | |||
1762 | config SYS_SUPPORTS_1000HZ | ||
1763 | bool | ||
1764 | |||
1765 | config SYS_SUPPORTS_1024HZ | ||
1766 | bool | ||
1767 | |||
1768 | config SYS_SUPPORTS_ARBIT_HZ | ||
1769 | bool | ||
1770 | default y if !SYS_SUPPORTS_48HZ && !SYS_SUPPORTS_100HZ && \ | ||
1771 | !SYS_SUPPORTS_128HZ && !SYS_SUPPORTS_250HZ && \ | ||
1772 | !SYS_SUPPORTS_256HZ && !SYS_SUPPORTS_1000HZ && \ | ||
1773 | !SYS_SUPPORTS_1024HZ | ||
1774 | |||
1775 | config HZ | ||
1776 | int | ||
1777 | default 48 if HZ_48 | ||
1778 | default 100 if HZ_100 | ||
1779 | default 128 if HZ_128 | ||
1780 | default 250 if HZ_250 | ||
1781 | default 256 if HZ_256 | ||
1782 | default 1000 if HZ_1000 | ||
1783 | default 1024 if HZ_1024 | ||
1784 | |||
1656 | source "kernel/Kconfig.preempt" | 1785 | source "kernel/Kconfig.preempt" |
1657 | 1786 | ||
1658 | config RTC_DS1742 | 1787 | config RTC_DS1742 |
@@ -1712,6 +1841,9 @@ source "drivers/pci/Kconfig" | |||
1712 | config ISA | 1841 | config ISA |
1713 | bool | 1842 | bool |
1714 | 1843 | ||
1844 | config NO_ISA | ||
1845 | bool | ||
1846 | |||
1715 | config EISA | 1847 | config EISA |
1716 | bool "EISA support" | 1848 | bool "EISA support" |
1717 | depends on HW_HAS_EISA | 1849 | depends on HW_HAS_EISA |
@@ -1842,6 +1974,32 @@ config PM | |||
1842 | bool "Power Management support (EXPERIMENTAL)" | 1974 | bool "Power Management support (EXPERIMENTAL)" |
1843 | depends on EXPERIMENTAL && SOC_AU1X00 | 1975 | depends on EXPERIMENTAL && SOC_AU1X00 |
1844 | 1976 | ||
1977 | config APM | ||
1978 | tristate "Advanced Power Management Emulation" | ||
1979 | depends on PM | ||
1980 | ---help--- | ||
1981 | APM is a BIOS specification for saving power using several different | ||
1982 | techniques. This is mostly useful for battery powered systems with | ||
1983 | APM compliant BIOSes. If you say Y here, the system time will be | ||
1984 | reset after a RESUME operation, the /proc/apm device will provide | ||
1985 | battery status information, and user-space programs will receive | ||
1986 | notification of APM "events" (e.g. battery status change). | ||
1987 | |||
1988 | In order to use APM, you will need supporting software. For location | ||
1989 | and more information, read <file:Documentation/pm.txt> and the | ||
1990 | Battery Powered Linux mini-HOWTO, available from | ||
1991 | <http://www.tldp.org/docs.html#howto>. | ||
1992 | |||
1993 | This driver does not spin down disk drives (see the hdparm(8) | ||
1994 | manpage ("man 8 hdparm") for that), and it doesn't turn off | ||
1995 | VESA-compliant "green" monitors. | ||
1996 | |||
1997 | Generally, if you don't have a battery in your machine, there isn't | ||
1998 | much point in using this driver and you should say N. If you get | ||
1999 | random kernel OOPSes or reboots that don't seem to be related to | ||
2000 | anything, try disabling/enabling this option (or disabling/enabling | ||
2001 | APM in your BIOS). | ||
2002 | |||
1845 | endmenu | 2003 | endmenu |
1846 | 2004 | ||
1847 | source "net/Kconfig" | 2005 | source "net/Kconfig" |
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 133900aca992..d5930148495a 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -83,6 +83,8 @@ cflags-y += -msoft-float | |||
83 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib | 83 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib |
84 | MODFLAGS += -mlong-calls | 84 | MODFLAGS += -mlong-calls |
85 | 85 | ||
86 | cflags-y += -ffreestanding | ||
87 | |||
86 | # | 88 | # |
87 | # We explicitly add the endianness specifier if needed, this allows | 89 | # We explicitly add the endianness specifier if needed, this allows |
88 | # to compile kernels with a toolchain for the other endianness. We | 90 | # to compile kernels with a toolchain for the other endianness. We |
@@ -285,6 +287,13 @@ cflags-$(CONFIG_MIPS_EV96100) += -Iinclude/asm-mips/mach-ev96100 | |||
285 | load-$(CONFIG_MIPS_EV96100) += 0xffffffff80100000 | 287 | load-$(CONFIG_MIPS_EV96100) += 0xffffffff80100000 |
286 | 288 | ||
287 | # | 289 | # |
290 | # Wind River PPMC Board (4KC + GT64120) | ||
291 | # | ||
292 | core-$(CONFIG_WR_PPMC) += arch/mips/gt64120/wrppmc/ | ||
293 | cflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc | ||
294 | load-$(CONFIG_WR_PPMC) += 0xffffffff80100000 | ||
295 | |||
296 | # | ||
288 | # Globespan IVR eval board with QED 5231 CPU | 297 | # Globespan IVR eval board with QED 5231 CPU |
289 | # | 298 | # |
290 | core-$(CONFIG_ITE_BOARD_GEN) += arch/mips/ite-boards/generic/ | 299 | core-$(CONFIG_ITE_BOARD_GEN) += arch/mips/ite-boards/generic/ |
@@ -379,6 +388,13 @@ cflags-$(CONFIG_MOMENCO_OCELOT_3) += -Iinclude/asm-mips/mach-ocelot3 | |||
379 | load-$(CONFIG_MOMENCO_OCELOT_3) += 0xffffffff80100000 | 388 | load-$(CONFIG_MOMENCO_OCELOT_3) += 0xffffffff80100000 |
380 | 389 | ||
381 | # | 390 | # |
391 | # Basler eXcite | ||
392 | # | ||
393 | core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ | ||
394 | cflags-$(CONFIG_BASLER_EXCITE) += -Iinclude/asm-mips/mach-excite | ||
395 | load-$(CONFIG_BASLER_EXCITE) += 0x80100000 | ||
396 | |||
397 | # | ||
382 | # Momentum Jaguar ATX | 398 | # Momentum Jaguar ATX |
383 | # | 399 | # |
384 | core-$(CONFIG_MOMENCO_JAGUAR_ATX) += arch/mips/momentum/jaguar_atx/ | 400 | core-$(CONFIG_MOMENCO_JAGUAR_ATX) += arch/mips/momentum/jaguar_atx/ |
@@ -395,18 +411,6 @@ load-$(CONFIG_MOMENCO_JAGUAR_ATX) += 0xffffffff80100000 | |||
395 | core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/ | 411 | core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/ |
396 | 412 | ||
397 | # | 413 | # |
398 | # NEC DDB Vrc-5074 | ||
399 | # | ||
400 | core-$(CONFIG_DDB5074) += arch/mips/ddb5xxx/ddb5074/ | ||
401 | load-$(CONFIG_DDB5074) += 0xffffffff80080000 | ||
402 | |||
403 | # | ||
404 | # NEC DDB Vrc-5476 | ||
405 | # | ||
406 | core-$(CONFIG_DDB5476) += arch/mips/ddb5xxx/ddb5476/ | ||
407 | load-$(CONFIG_DDB5476) += 0xffffffff80080000 | ||
408 | |||
409 | # | ||
410 | # NEC DDB Vrc-5477 | 414 | # NEC DDB Vrc-5477 |
411 | # | 415 | # |
412 | core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ | 416 | core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ |
@@ -468,6 +472,15 @@ libs-$(CONFIG_PNX8550_JBS) += arch/mips/philips/pnx8550/jbs/ | |||
468 | #cflags-$(CONFIG_PNX8550_JBS) += -Iinclude/asm-mips/mach-pnx8550 | 472 | #cflags-$(CONFIG_PNX8550_JBS) += -Iinclude/asm-mips/mach-pnx8550 |
469 | load-$(CONFIG_PNX8550_JBS) += 0xffffffff80060000 | 473 | load-$(CONFIG_PNX8550_JBS) += 0xffffffff80060000 |
470 | 474 | ||
475 | # NEC EMMA2RH boards | ||
476 | # | ||
477 | core-$(CONFIG_EMMA2RH) += arch/mips/emma2rh/common/ | ||
478 | cflags-$(CONFIG_EMMA2RH) += -Iinclude/asm-mips/mach-emma2rh | ||
479 | |||
480 | # NEC EMMA2RH Mark-eins | ||
481 | core-$(CONFIG_MARKEINS) += arch/mips/emma2rh/markeins/ | ||
482 | load-$(CONFIG_MARKEINS) += 0xffffffff88100000 | ||
483 | |||
471 | # | 484 | # |
472 | # SGI IP22 (Indy/Indigo2) | 485 | # SGI IP22 (Indy/Indigo2) |
473 | # | 486 | # |
diff --git a/arch/mips/au1000/common/au1xxx_irqmap.c b/arch/mips/au1000/common/au1xxx_irqmap.c index 0b2c03c52319..5a1e3687cafa 100644 --- a/arch/mips/au1000/common/au1xxx_irqmap.c +++ b/arch/mips/au1000/common/au1xxx_irqmap.c | |||
@@ -55,7 +55,7 @@ | |||
55 | * Careful if you change match 2 request! | 55 | * Careful if you change match 2 request! |
56 | * The interrupt handler is called directly from the low level dispatch code. | 56 | * The interrupt handler is called directly from the low level dispatch code. |
57 | */ | 57 | */ |
58 | au1xxx_irq_map_t au1xxx_ic0_map[] = { | 58 | au1xxx_irq_map_t __initdata au1xxx_ic0_map[] = { |
59 | 59 | ||
60 | #if defined(CONFIG_SOC_AU1000) | 60 | #if defined(CONFIG_SOC_AU1000) |
61 | { AU1000_UART0_INT, INTC_INT_HIGH_LEVEL, 0}, | 61 | { AU1000_UART0_INT, INTC_INT_HIGH_LEVEL, 0}, |
@@ -220,5 +220,5 @@ au1xxx_irq_map_t au1xxx_ic0_map[] = { | |||
220 | 220 | ||
221 | }; | 221 | }; |
222 | 222 | ||
223 | int au1xxx_ic0_nr_irqs = sizeof(au1xxx_ic0_map)/sizeof(au1xxx_irq_map_t); | 223 | int __initdata au1xxx_ic0_nr_irqs = ARRAY_SIZE(au1xxx_ic0_map); |
224 | 224 | ||
diff --git a/arch/mips/au1000/common/irq.c b/arch/mips/au1000/common/irq.c index da61de776154..afe05ec12c27 100644 --- a/arch/mips/au1000/common/irq.c +++ b/arch/mips/au1000/common/irq.c | |||
@@ -68,6 +68,7 @@ | |||
68 | 68 | ||
69 | extern void set_debug_traps(void); | 69 | extern void set_debug_traps(void); |
70 | extern irq_cpustat_t irq_stat [NR_CPUS]; | 70 | extern irq_cpustat_t irq_stat [NR_CPUS]; |
71 | extern void mips_timer_interrupt(struct pt_regs *regs); | ||
71 | 72 | ||
72 | static void setup_local_irq(unsigned int irq, int type, int int_req); | 73 | static void setup_local_irq(unsigned int irq, int type, int int_req); |
73 | static unsigned int startup_irq(unsigned int irq); | 74 | static unsigned int startup_irq(unsigned int irq); |
diff --git a/arch/mips/au1000/common/pci.c b/arch/mips/au1000/common/pci.c index 4e5a6e1a9a6e..b1392abac809 100644 --- a/arch/mips/au1000/common/pci.c +++ b/arch/mips/au1000/common/pci.c | |||
@@ -40,17 +40,17 @@ | |||
40 | 40 | ||
41 | /* TBD */ | 41 | /* TBD */ |
42 | static struct resource pci_io_resource = { | 42 | static struct resource pci_io_resource = { |
43 | "pci IO space", | 43 | .start = PCI_IO_START, |
44 | (u32)PCI_IO_START, | 44 | .end = PCI_IO_END, |
45 | (u32)PCI_IO_END, | 45 | .name = "PCI IO space", |
46 | IORESOURCE_IO | 46 | .flags = IORESOURCE_IO |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct resource pci_mem_resource = { | 49 | static struct resource pci_mem_resource = { |
50 | "pci memory space", | 50 | .start = PCI_MEM_START, |
51 | (u32)PCI_MEM_START, | 51 | .end = PCI_MEM_END, |
52 | (u32)PCI_MEM_END, | 52 | .name = "PCI memory space", |
53 | IORESOURCE_MEM | 53 | .flags = IORESOURCE_MEM |
54 | }; | 54 | }; |
55 | 55 | ||
56 | extern struct pci_ops au1x_pci_ops; | 56 | extern struct pci_ops au1x_pci_ops; |
diff --git a/arch/mips/au1000/common/prom.c b/arch/mips/au1000/common/prom.c index 9c171afd9a53..ae7d8c57bf3f 100644 --- a/arch/mips/au1000/common/prom.c +++ b/arch/mips/au1000/common/prom.c | |||
@@ -1,10 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * BRIEF MODULE DESCRIPTION | 3 | * BRIEF MODULE DESCRIPTION |
4 | * PROM library initialisation code, assuming a version of | 4 | * PROM library initialisation code, assuming YAMON is the boot loader. |
5 | * pmon is the boot code. | ||
6 | * | 5 | * |
7 | * Copyright 2000,2001 MontaVista Software Inc. | 6 | * Copyright 2000, 2001, 2006 MontaVista Software Inc. |
8 | * Author: MontaVista Software, Inc. | 7 | * Author: MontaVista Software, Inc. |
9 | * ppopov@mvista.com or source@mvista.com | 8 | * ppopov@mvista.com or source@mvista.com |
10 | * | 9 | * |
@@ -49,9 +48,9 @@ extern char **prom_argv, **prom_envp; | |||
49 | 48 | ||
50 | typedef struct | 49 | typedef struct |
51 | { | 50 | { |
52 | char *name; | 51 | char *name; |
53 | /* char *val; */ | 52 | char *val; |
54 | }t_env_var; | 53 | } t_env_var; |
55 | 54 | ||
56 | 55 | ||
57 | char * prom_getcmdline(void) | 56 | char * prom_getcmdline(void) |
@@ -85,21 +84,16 @@ char *prom_getenv(char *envname) | |||
85 | { | 84 | { |
86 | /* | 85 | /* |
87 | * Return a pointer to the given environment variable. | 86 | * Return a pointer to the given environment variable. |
88 | * Environment variables are stored in the form of "memsize=64". | ||
89 | */ | 87 | */ |
90 | 88 | ||
91 | t_env_var *env = (t_env_var *)prom_envp; | 89 | t_env_var *env = (t_env_var *)prom_envp; |
92 | int i; | ||
93 | |||
94 | i = strlen(envname); | ||
95 | 90 | ||
96 | while(env->name) { | 91 | while (env->name) { |
97 | if(strncmp(envname, env->name, i) == 0) { | 92 | if (strcmp(envname, env->name) == 0) |
98 | return(env->name + strlen(envname) + 1); | 93 | return env->val; |
99 | } | ||
100 | env++; | 94 | env++; |
101 | } | 95 | } |
102 | return(NULL); | 96 | return NULL; |
103 | } | 97 | } |
104 | 98 | ||
105 | inline unsigned char str2hexnum(unsigned char c) | 99 | inline unsigned char str2hexnum(unsigned char c) |
diff --git a/arch/mips/au1000/common/setup.c b/arch/mips/au1000/common/setup.c index 307e98c29ddc..97165b6b3894 100644 --- a/arch/mips/au1000/common/setup.c +++ b/arch/mips/au1000/common/setup.c | |||
@@ -49,17 +49,13 @@ extern void __init board_setup(void); | |||
49 | extern void au1000_restart(char *); | 49 | extern void au1000_restart(char *); |
50 | extern void au1000_halt(void); | 50 | extern void au1000_halt(void); |
51 | extern void au1000_power_off(void); | 51 | extern void au1000_power_off(void); |
52 | extern struct resource ioport_resource; | ||
53 | extern struct resource iomem_resource; | ||
54 | extern void (*board_time_init)(void); | ||
55 | extern void au1x_time_init(void); | 52 | extern void au1x_time_init(void); |
56 | extern void (*board_timer_setup)(struct irqaction *irq); | ||
57 | extern void au1x_timer_setup(struct irqaction *irq); | 53 | extern void au1x_timer_setup(struct irqaction *irq); |
58 | extern void au1xxx_time_init(void); | 54 | extern void au1xxx_time_init(void); |
59 | extern void au1xxx_timer_setup(struct irqaction *irq); | 55 | extern void au1xxx_timer_setup(struct irqaction *irq); |
60 | extern void set_cpuspec(void); | 56 | extern void set_cpuspec(void); |
61 | 57 | ||
62 | void __init plat_setup(void) | 58 | void __init plat_mem_setup(void) |
63 | { | 59 | { |
64 | struct cpu_spec *sp; | 60 | struct cpu_spec *sp; |
65 | char *argptr; | 61 | char *argptr; |
diff --git a/arch/mips/au1000/common/sleeper.S b/arch/mips/au1000/common/sleeper.S index 44dac3b0df3b..683d9da84b66 100644 --- a/arch/mips/au1000/common/sleeper.S +++ b/arch/mips/au1000/common/sleeper.S | |||
@@ -112,6 +112,11 @@ sdsleep: | |||
112 | mtc0 k0, CP0_PAGEMASK | 112 | mtc0 k0, CP0_PAGEMASK |
113 | lw k0, 0x14(sp) | 113 | lw k0, 0x14(sp) |
114 | mtc0 k0, CP0_CONFIG | 114 | mtc0 k0, CP0_CONFIG |
115 | |||
116 | /* We need to catch the ealry Alchemy SOCs with | ||
117 | * the write-only Config[OD] bit and set it back to one... | ||
118 | */ | ||
119 | jal au1x00_fixup_config_od | ||
115 | lw $1, PT_R1(sp) | 120 | lw $1, PT_R1(sp) |
116 | lw $2, PT_R2(sp) | 121 | lw $2, PT_R2(sp) |
117 | lw $3, PT_R3(sp) | 122 | lw $3, PT_R3(sp) |
diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index f85f1524b366..842e1b5ac4a1 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c | |||
@@ -50,10 +50,6 @@ | |||
50 | #include <linux/mc146818rtc.h> | 50 | #include <linux/mc146818rtc.h> |
51 | #include <linux/timex.h> | 51 | #include <linux/timex.h> |
52 | 52 | ||
53 | extern void do_softirq(void); | ||
54 | extern volatile unsigned long wall_jiffies; | ||
55 | unsigned long missed_heart_beats = 0; | ||
56 | |||
57 | static unsigned long r4k_offset; /* Amount to increment compare reg each time */ | 53 | static unsigned long r4k_offset; /* Amount to increment compare reg each time */ |
58 | static unsigned long r4k_cur; /* What counter should be at next timer irq */ | 54 | static unsigned long r4k_cur; /* What counter should be at next timer irq */ |
59 | int no_au1xxx_32khz; | 55 | int no_au1xxx_32khz; |
@@ -116,6 +112,7 @@ void mips_timer_interrupt(struct pt_regs *regs) | |||
116 | 112 | ||
117 | null: | 113 | null: |
118 | ack_r4ktimer(0); | 114 | ack_r4ktimer(0); |
115 | irq_exit(); | ||
119 | } | 116 | } |
120 | 117 | ||
121 | #ifdef CONFIG_PM | 118 | #ifdef CONFIG_PM |
@@ -387,10 +384,9 @@ static unsigned long do_fast_pm_gettimeoffset(void) | |||
387 | } | 384 | } |
388 | #endif | 385 | #endif |
389 | 386 | ||
390 | void au1xxx_timer_setup(struct irqaction *irq) | 387 | void __init au1xxx_timer_setup(struct irqaction *irq) |
391 | { | 388 | { |
392 | unsigned int est_freq; | 389 | unsigned int est_freq; |
393 | extern unsigned long (*do_gettimeoffset)(void); | ||
394 | 390 | ||
395 | printk("calculating r4koff... "); | 391 | printk("calculating r4koff... "); |
396 | r4k_offset = cal_r4koff(); | 392 | r4k_offset = cal_r4koff(); |
diff --git a/arch/mips/au1000/csb250/irqmap.c b/arch/mips/au1000/csb250/irqmap.c index 5cb1166be35c..57d60401905e 100644 --- a/arch/mips/au1000/csb250/irqmap.c +++ b/arch/mips/au1000/csb250/irqmap.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
48 | #include <asm/au1000.h> | 48 | #include <asm/au1000.h> |
49 | 49 | ||
50 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 50 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
51 | 51 | ||
52 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, | 52 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, |
53 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, | 53 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, |
@@ -57,4 +57,4 @@ au1xxx_irq_map_t au1xxx_irq_map[] = { | |||
57 | { AU1500_GPIO_207, INTC_INT_LOW_LEVEL, 0 }, | 57 | { AU1500_GPIO_207, INTC_INT_LOW_LEVEL, 0 }, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 60 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/db1x00/irqmap.c b/arch/mips/au1000/db1x00/irqmap.c index f63024a9893a..0138c5b7c860 100644 --- a/arch/mips/au1000/db1x00/irqmap.c +++ b/arch/mips/au1000/db1x00/irqmap.c | |||
@@ -80,7 +80,7 @@ char irq_tab_alchemy[][5] __initdata = { | |||
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | 82 | ||
83 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 83 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
84 | 84 | ||
85 | #ifndef CONFIG_MIPS_MIRAGE | 85 | #ifndef CONFIG_MIPS_MIRAGE |
86 | #ifdef CONFIG_MIPS_DB1550 | 86 | #ifdef CONFIG_MIPS_DB1550 |
@@ -101,4 +101,4 @@ au1xxx_irq_map_t au1xxx_irq_map[] = { | |||
101 | 101 | ||
102 | }; | 102 | }; |
103 | 103 | ||
104 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 104 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/hydrogen3/irqmap.c b/arch/mips/au1000/hydrogen3/irqmap.c index 6eacaa0daa49..14e1ed37cf6b 100644 --- a/arch/mips/au1000/hydrogen3/irqmap.c +++ b/arch/mips/au1000/hydrogen3/irqmap.c | |||
@@ -47,10 +47,10 @@ | |||
47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
48 | #include <asm/au1000.h> | 48 | #include <asm/au1000.h> |
49 | 49 | ||
50 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 50 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
51 | 51 | ||
52 | /* { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, */ | 52 | /* { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, */ |
53 | { AU1000_GPIO_21, INTC_INT_LOW_LEVEL, 0 }, | 53 | { AU1000_GPIO_21, INTC_INT_LOW_LEVEL, 0 }, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 56 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/mtx-1/irqmap.c b/arch/mips/au1000/mtx-1/irqmap.c index f9a0a8b9def2..4693a4eb2b82 100644 --- a/arch/mips/au1000/mtx-1/irqmap.c +++ b/arch/mips/au1000/mtx-1/irqmap.c | |||
@@ -58,7 +58,7 @@ char irq_tab_alchemy[][5] __initdata = { | |||
58 | [7] = { -1, INTD, INTC, INTX, INTX}, /* IDSEL 07 - AdapterD-Slot1 (bottom) */ | 58 | [7] = { -1, INTD, INTC, INTX, INTX}, /* IDSEL 07 - AdapterD-Slot1 (bottom) */ |
59 | }; | 59 | }; |
60 | 60 | ||
61 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 61 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
62 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, | 62 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, |
63 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, | 63 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, |
64 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, | 64 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, |
@@ -66,4 +66,4 @@ au1xxx_irq_map_t au1xxx_irq_map[] = { | |||
66 | { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, | 66 | { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 69 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/pb1000/irqmap.c b/arch/mips/au1000/pb1000/irqmap.c index a3c460e3c23e..156500ba467f 100644 --- a/arch/mips/au1000/pb1000/irqmap.c +++ b/arch/mips/au1000/pb1000/irqmap.c | |||
@@ -47,8 +47,8 @@ | |||
47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
48 | #include <asm/mach-au1x00/au1000.h> | 48 | #include <asm/mach-au1x00/au1000.h> |
49 | 49 | ||
50 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 50 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
51 | { AU1000_GPIO_15, INTC_INT_LOW_LEVEL, 0 }, | 51 | { AU1000_GPIO_15, INTC_INT_LOW_LEVEL, 0 }, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 54 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/pb1100/irqmap.c b/arch/mips/au1000/pb1100/irqmap.c index 43be7158b9ab..d986916221b7 100644 --- a/arch/mips/au1000/pb1100/irqmap.c +++ b/arch/mips/au1000/pb1100/irqmap.c | |||
@@ -47,11 +47,11 @@ | |||
47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
48 | #include <asm/mach-au1x00/au1000.h> | 48 | #include <asm/mach-au1x00/au1000.h> |
49 | 49 | ||
50 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 50 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
51 | { AU1000_GPIO_9, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card Fully_Interted# | 51 | { AU1000_GPIO_9, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card Fully_Interted# |
52 | { AU1000_GPIO_10, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card STSCHG# | 52 | { AU1000_GPIO_10, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card STSCHG# |
53 | { AU1000_GPIO_11, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card IRQ# | 53 | { AU1000_GPIO_11, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card IRQ# |
54 | { AU1000_GPIO_13, INTC_INT_LOW_LEVEL, 0 }, // DC_IRQ# | 54 | { AU1000_GPIO_13, INTC_INT_LOW_LEVEL, 0 }, // DC_IRQ# |
55 | }; | 55 | }; |
56 | 56 | ||
57 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 57 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/pb1200/irqmap.c b/arch/mips/au1000/pb1200/irqmap.c index 59e70e5cf325..bacc0c6bfe67 100644 --- a/arch/mips/au1000/pb1200/irqmap.c +++ b/arch/mips/au1000/pb1200/irqmap.c | |||
@@ -55,11 +55,11 @@ | |||
55 | #define PB1200_INT_END DB1200_INT_END | 55 | #define PB1200_INT_END DB1200_INT_END |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 58 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
59 | { AU1000_GPIO_7, INTC_INT_LOW_LEVEL, 0 }, // This is exteranl interrupt cascade | 59 | { AU1000_GPIO_7, INTC_INT_LOW_LEVEL, 0 }, // This is exteranl interrupt cascade |
60 | }; | 60 | }; |
61 | 61 | ||
62 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 62 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * Support for External interrupts on the PbAu1200 Development platform. | 65 | * Support for External interrupts on the PbAu1200 Development platform. |
diff --git a/arch/mips/au1000/pb1500/irqmap.c b/arch/mips/au1000/pb1500/irqmap.c index 8cb76c2edb5e..409d1612bb63 100644 --- a/arch/mips/au1000/pb1500/irqmap.c +++ b/arch/mips/au1000/pb1500/irqmap.c | |||
@@ -52,7 +52,7 @@ char irq_tab_alchemy[][5] __initdata = { | |||
52 | [13] = { -1, INTA, INTB, INTC, INTD}, /* IDSEL 13 - PCI slot */ | 52 | [13] = { -1, INTA, INTB, INTC, INTD}, /* IDSEL 13 - PCI slot */ |
53 | }; | 53 | }; |
54 | 54 | ||
55 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 55 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
56 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, | 56 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, |
57 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, | 57 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, |
58 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, | 58 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, |
@@ -60,4 +60,4 @@ au1xxx_irq_map_t au1xxx_irq_map[] = { | |||
60 | { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, | 60 | { AU1500_GPIO_205, INTC_INT_LOW_LEVEL, 0 }, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 63 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/pb1550/irqmap.c b/arch/mips/au1000/pb1550/irqmap.c index 47c7a1c19f4b..24a9d186cf5a 100644 --- a/arch/mips/au1000/pb1550/irqmap.c +++ b/arch/mips/au1000/pb1550/irqmap.c | |||
@@ -52,9 +52,9 @@ char irq_tab_alchemy[][5] __initdata = { | |||
52 | [13] = { -1, INTA, INTB, INTC, INTD}, /* IDSEL 13 - PCI slot 1 (right) */ | 52 | [13] = { -1, INTA, INTB, INTC, INTD}, /* IDSEL 13 - PCI slot 1 (right) */ |
53 | }; | 53 | }; |
54 | 54 | ||
55 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 55 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
56 | { AU1000_GPIO_0, INTC_INT_LOW_LEVEL, 0 }, | 56 | { AU1000_GPIO_0, INTC_INT_LOW_LEVEL, 0 }, |
57 | { AU1000_GPIO_1, INTC_INT_LOW_LEVEL, 0 }, | 57 | { AU1000_GPIO_1, INTC_INT_LOW_LEVEL, 0 }, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 60 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/au1000/xxs1500/irqmap.c b/arch/mips/au1000/xxs1500/irqmap.c index 52f2f7daeb05..3844c6429e27 100644 --- a/arch/mips/au1000/xxs1500/irqmap.c +++ b/arch/mips/au1000/xxs1500/irqmap.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
48 | #include <asm/au1000.h> | 48 | #include <asm/au1000.h> |
49 | 49 | ||
50 | au1xxx_irq_map_t au1xxx_irq_map[] = { | 50 | au1xxx_irq_map_t __initdata au1xxx_irq_map[] = { |
51 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, | 51 | { AU1500_GPIO_204, INTC_INT_HIGH_LEVEL, 0}, |
52 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, | 52 | { AU1500_GPIO_201, INTC_INT_LOW_LEVEL, 0 }, |
53 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, | 53 | { AU1500_GPIO_202, INTC_INT_LOW_LEVEL, 0 }, |
@@ -63,4 +63,4 @@ au1xxx_irq_map_t au1xxx_irq_map[] = { | |||
63 | { AU1000_GPIO_5, INTC_INT_LOW_LEVEL, 0 }, | 63 | { AU1000_GPIO_5, INTC_INT_LOW_LEVEL, 0 }, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t); | 66 | int __initdata au1xxx_nr_irqs = ARRAY_SIZE(au1xxx_irq_map); |
diff --git a/arch/mips/basler/excite/Makefile b/arch/mips/basler/excite/Makefile new file mode 100644 index 000000000000..519142c2e4ef --- /dev/null +++ b/arch/mips/basler/excite/Makefile | |||
@@ -0,0 +1,9 @@ | |||
1 | # | ||
2 | # Makefile for Basler eXcite | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_BASLER_EXCITE) += excite_irq.o excite_prom.o excite_setup.o \ | ||
6 | excite_device.o excite_procfs.o | ||
7 | |||
8 | obj-$(CONFIG_KGDB) += excite_dbg_io.o | ||
9 | obj-m += excite_iodev.o | ||
diff --git a/arch/mips/basler/excite/excite_dbg_io.c b/arch/mips/basler/excite/excite_dbg_io.c new file mode 100644 index 000000000000..83f6bddf578b --- /dev/null +++ b/arch/mips/basler/excite/excite_dbg_io.c | |||
@@ -0,0 +1,122 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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/config.h> | ||
21 | #include <linux/linkage.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/kernel.h> | ||
24 | #include <asm/gdb-stub.h> | ||
25 | #include <asm/rm9k-ocd.h> | ||
26 | #include <excite.h> | ||
27 | |||
28 | #if defined(CONFIG_SERIAL_8250) && CONFIG_SERIAL_8250_NR_UARTS > 1 | ||
29 | #error Debug port used by serial driver | ||
30 | #endif | ||
31 | |||
32 | #define UART_CLK 25000000 | ||
33 | #define BASE_BAUD (UART_CLK / 16) | ||
34 | #define REGISTER_BASE_0 0x0208UL | ||
35 | #define REGISTER_BASE_1 0x0238UL | ||
36 | |||
37 | #define REGISTER_BASE_DBG REGISTER_BASE_1 | ||
38 | |||
39 | #define CPRR 0x0004 | ||
40 | #define UACFG 0x0200 | ||
41 | #define UAINTS 0x0204 | ||
42 | #define UARBR (REGISTER_BASE_DBG + 0x0000) | ||
43 | #define UATHR (REGISTER_BASE_DBG + 0x0004) | ||
44 | #define UADLL (REGISTER_BASE_DBG + 0x0008) | ||
45 | #define UAIER (REGISTER_BASE_DBG + 0x000c) | ||
46 | #define UADLH (REGISTER_BASE_DBG + 0x0010) | ||
47 | #define UAIIR (REGISTER_BASE_DBG + 0x0014) | ||
48 | #define UAFCR (REGISTER_BASE_DBG + 0x0018) | ||
49 | #define UALCR (REGISTER_BASE_DBG + 0x001c) | ||
50 | #define UAMCR (REGISTER_BASE_DBG + 0x0020) | ||
51 | #define UALSR (REGISTER_BASE_DBG + 0x0024) | ||
52 | #define UAMSR (REGISTER_BASE_DBG + 0x0028) | ||
53 | #define UASCR (REGISTER_BASE_DBG + 0x002c) | ||
54 | |||
55 | #define PARITY_NONE 0 | ||
56 | #define PARITY_ODD 0x08 | ||
57 | #define PARITY_EVEN 0x18 | ||
58 | #define PARITY_MARK 0x28 | ||
59 | #define PARITY_SPACE 0x38 | ||
60 | |||
61 | #define DATA_5BIT 0x0 | ||
62 | #define DATA_6BIT 0x1 | ||
63 | #define DATA_7BIT 0x2 | ||
64 | #define DATA_8BIT 0x3 | ||
65 | |||
66 | #define STOP_1BIT 0x0 | ||
67 | #define STOP_2BIT 0x4 | ||
68 | |||
69 | #define BAUD_DBG 57600 | ||
70 | #define PARITY_DBG PARITY_NONE | ||
71 | #define DATA_DBG DATA_8BIT | ||
72 | #define STOP_DBG STOP_1BIT | ||
73 | |||
74 | /* Initialize the serial port for KGDB debugging */ | ||
75 | void __init excite_kgdb_init(void) | ||
76 | { | ||
77 | const u32 divisor = BASE_BAUD / BAUD_DBG; | ||
78 | |||
79 | /* Take the UART out of reset */ | ||
80 | titan_writel(0x00ff1cff, CPRR); | ||
81 | titan_writel(0x00000000, UACFG); | ||
82 | titan_writel(0x00000002, UACFG); | ||
83 | |||
84 | titan_writel(0x0, UALCR); | ||
85 | titan_writel(0x0, UAIER); | ||
86 | |||
87 | /* Disable FIFOs */ | ||
88 | titan_writel(0x00, UAFCR); | ||
89 | |||
90 | titan_writel(0x80, UALCR); | ||
91 | titan_writel(divisor & 0xff, UADLL); | ||
92 | titan_writel((divisor & 0xff00) >> 8, UADLH); | ||
93 | titan_writel(0x0, UALCR); | ||
94 | |||
95 | titan_writel(DATA_DBG | PARITY_DBG | STOP_DBG, UALCR); | ||
96 | |||
97 | /* Enable receiver interrupt */ | ||
98 | titan_readl(UARBR); | ||
99 | titan_writel(0x1, UAIER); | ||
100 | } | ||
101 | |||
102 | int getDebugChar(void) | ||
103 | { | ||
104 | while (!(titan_readl(UALSR) & 0x1)); | ||
105 | return titan_readl(UARBR); | ||
106 | } | ||
107 | |||
108 | int putDebugChar(int data) | ||
109 | { | ||
110 | while (!(titan_readl(UALSR) & 0x20)); | ||
111 | titan_writel(data, UATHR); | ||
112 | return 1; | ||
113 | } | ||
114 | |||
115 | /* KGDB interrupt handler */ | ||
116 | asmlinkage void excite_kgdb_inthdl(struct pt_regs *regs) | ||
117 | { | ||
118 | if (unlikely( | ||
119 | ((titan_readl(UAIIR) & 0x7) == 4) | ||
120 | && ((titan_readl(UARBR) & 0xff) == 0x3))) | ||
121 | set_async_breakpoint(®s->cp0_epc); | ||
122 | } | ||
diff --git a/arch/mips/basler/excite/excite_device.c b/arch/mips/basler/excite/excite_device.c new file mode 100644 index 000000000000..34ec76716fa0 --- /dev/null +++ b/arch/mips/basler/excite/excite_device.c | |||
@@ -0,0 +1,404 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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/config.h> | ||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/platform_device.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/err.h> | ||
26 | #include <linux/jiffies.h> | ||
27 | #include <linux/sched.h> | ||
28 | #include <asm/types.h> | ||
29 | #include <asm/rm9k-ocd.h> | ||
30 | |||
31 | #include <excite.h> | ||
32 | #include <rm9k_eth.h> | ||
33 | #include <rm9k_wdt.h> | ||
34 | #include <rm9k_xicap.h> | ||
35 | #include <excite_nandflash.h> | ||
36 | |||
37 | #include "excite_iodev.h" | ||
38 | |||
39 | #define RM9K_GE_UNIT 0 | ||
40 | #define XICAP_UNIT 0 | ||
41 | #define NAND_UNIT 0 | ||
42 | |||
43 | #define DLL_TIMEOUT 3 /* seconds */ | ||
44 | |||
45 | |||
46 | #define RINIT(__start__, __end__, __name__, __parent__) { \ | ||
47 | .name = __name__ "_0", \ | ||
48 | .start = (__start__), \ | ||
49 | .end = (__end__), \ | ||
50 | .flags = 0, \ | ||
51 | .parent = (__parent__) \ | ||
52 | } | ||
53 | |||
54 | #define RINIT_IRQ(__irq__, __name__) { \ | ||
55 | .name = __name__ "_0", \ | ||
56 | .start = (__irq__), \ | ||
57 | .end = (__irq__), \ | ||
58 | .flags = IORESOURCE_IRQ, \ | ||
59 | .parent = NULL \ | ||
60 | } | ||
61 | |||
62 | |||
63 | |||
64 | enum { | ||
65 | slice_xicap, | ||
66 | slice_eth | ||
67 | }; | ||
68 | |||
69 | |||
70 | |||
71 | static struct resource | ||
72 | excite_ctr_resource = { | ||
73 | .name = "GPI counters", | ||
74 | .start = 0, | ||
75 | .end = 5, | ||
76 | .flags = 0, | ||
77 | .parent = NULL, | ||
78 | .sibling = NULL, | ||
79 | .child = NULL | ||
80 | }, | ||
81 | excite_gpislice_resource = { | ||
82 | .name = "GPI slices", | ||
83 | .start = 0, | ||
84 | .end = 1, | ||
85 | .flags = 0, | ||
86 | .parent = NULL, | ||
87 | .sibling = NULL, | ||
88 | .child = NULL | ||
89 | }, | ||
90 | excite_mdio_channel_resource = { | ||
91 | .name = "MDIO channels", | ||
92 | .start = 0, | ||
93 | .end = 1, | ||
94 | .flags = 0, | ||
95 | .parent = NULL, | ||
96 | .sibling = NULL, | ||
97 | .child = NULL | ||
98 | }, | ||
99 | excite_fifomem_resource = { | ||
100 | .name = "FIFO memory", | ||
101 | .start = 0, | ||
102 | .end = 767, | ||
103 | .flags = 0, | ||
104 | .parent = NULL, | ||
105 | .sibling = NULL, | ||
106 | .child = NULL | ||
107 | }, | ||
108 | excite_scram_resource = { | ||
109 | .name = "Scratch RAM", | ||
110 | .start = EXCITE_PHYS_SCRAM, | ||
111 | .end = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1, | ||
112 | .flags = IORESOURCE_MEM, | ||
113 | .parent = NULL, | ||
114 | .sibling = NULL, | ||
115 | .child = NULL | ||
116 | }, | ||
117 | excite_fpga_resource = { | ||
118 | .name = "System FPGA", | ||
119 | .start = EXCITE_PHYS_FPGA, | ||
120 | .end = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1, | ||
121 | .flags = IORESOURCE_MEM, | ||
122 | .parent = NULL, | ||
123 | .sibling = NULL, | ||
124 | .child = NULL | ||
125 | }, | ||
126 | excite_nand_resource = { | ||
127 | .name = "NAND flash control", | ||
128 | .start = EXCITE_PHYS_NAND, | ||
129 | .end = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1, | ||
130 | .flags = IORESOURCE_MEM, | ||
131 | .parent = NULL, | ||
132 | .sibling = NULL, | ||
133 | .child = NULL | ||
134 | }, | ||
135 | excite_titan_resource = { | ||
136 | .name = "TITAN registers", | ||
137 | .start = EXCITE_PHYS_TITAN, | ||
138 | .end = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1, | ||
139 | .flags = IORESOURCE_MEM, | ||
140 | .parent = NULL, | ||
141 | .sibling = NULL, | ||
142 | .child = NULL | ||
143 | }; | ||
144 | |||
145 | |||
146 | |||
147 | static void adjust_resources(struct resource *res, unsigned int n) | ||
148 | { | ||
149 | struct resource *p; | ||
150 | const unsigned long mask = IORESOURCE_IO | IORESOURCE_MEM | ||
151 | | IORESOURCE_IRQ | IORESOURCE_DMA; | ||
152 | |||
153 | for (p = res; p < res + n; p++) { | ||
154 | const struct resource * const parent = p->parent; | ||
155 | if (parent) { | ||
156 | p->start += parent->start; | ||
157 | p->end += parent->start; | ||
158 | p->flags = parent->flags & mask; | ||
159 | } | ||
160 | } | ||
161 | } | ||
162 | |||
163 | |||
164 | |||
165 | #if defined(CONFIG_EXCITE_FCAP_GPI) || defined(CONFIG_EXCITE_FCAP_GPI_MODULE) | ||
166 | static struct resource xicap_rsrc[] = { | ||
167 | RINIT(0x4840, 0x486f, XICAP_RESOURCE_FIFO_RX, &excite_titan_resource), | ||
168 | RINIT(0x4940, 0x494b, XICAP_RESOURCE_FIFO_TX, &excite_titan_resource), | ||
169 | RINIT(0x5040, 0x5127, XICAP_RESOURCE_XDMA, &excite_titan_resource), | ||
170 | RINIT(0x1000, 0x112f, XICAP_RESOURCE_PKTPROC, &excite_titan_resource), | ||
171 | RINIT(0x1100, 0x110f, XICAP_RESOURCE_PKT_STREAM, &excite_fpga_resource), | ||
172 | RINIT(0x0800, 0x0bff, XICAP_RESOURCE_DMADESC, &excite_scram_resource), | ||
173 | RINIT(slice_xicap, slice_xicap, XICAP_RESOURCE_GPI_SLICE, &excite_gpislice_resource), | ||
174 | RINIT(0x0100, 0x02ff, XICAP_RESOURCE_FIFO_BLK, &excite_fifomem_resource), | ||
175 | RINIT_IRQ(TITAN_IRQ, XICAP_RESOURCE_IRQ) | ||
176 | }; | ||
177 | |||
178 | static struct platform_device xicap_pdev = { | ||
179 | .name = XICAP_NAME, | ||
180 | .id = XICAP_UNIT, | ||
181 | .num_resources = ARRAY_SIZE(xicap_rsrc), | ||
182 | .resource = xicap_rsrc | ||
183 | }; | ||
184 | |||
185 | /* | ||
186 | * Create a platform device for the GPI port that receives the | ||
187 | * image data from the embedded camera. | ||
188 | */ | ||
189 | static int __init xicap_devinit(void) | ||
190 | { | ||
191 | unsigned long tend; | ||
192 | u32 reg; | ||
193 | int retval; | ||
194 | |||
195 | adjust_resources(xicap_rsrc, ARRAY_SIZE(xicap_rsrc)); | ||
196 | |||
197 | /* Power up the slice and configure it. */ | ||
198 | reg = titan_readl(CPTC1R); | ||
199 | reg &= ~(0x11100 << slice_xicap); | ||
200 | titan_writel(reg, CPTC1R); | ||
201 | |||
202 | /* Enable slice & DLL. */ | ||
203 | reg= titan_readl(CPRR); | ||
204 | reg &= ~(0x00030003 << (slice_xicap * 2)); | ||
205 | titan_writel(reg, CPRR); | ||
206 | |||
207 | /* Wait for DLLs to lock */ | ||
208 | tend = jiffies + DLL_TIMEOUT * HZ; | ||
209 | while (time_before(jiffies, tend)) { | ||
210 | if (!(~titan_readl(CPDSR) & (0x1 << (slice_xicap * 4)))) | ||
211 | break; | ||
212 | yield(); | ||
213 | } | ||
214 | |||
215 | if (~titan_readl(CPDSR) & (0x1 << (slice_xicap * 4))) { | ||
216 | printk(KERN_ERR "%s: DLL not locked after %u seconds\n", | ||
217 | xicap_pdev.name, DLL_TIMEOUT); | ||
218 | retval = -ETIME; | ||
219 | } else { | ||
220 | /* Register platform device */ | ||
221 | retval = platform_device_register(&xicap_pdev); | ||
222 | } | ||
223 | |||
224 | return retval; | ||
225 | } | ||
226 | |||
227 | device_initcall(xicap_devinit); | ||
228 | #endif /* defined(CONFIG_EXCITE_FCAP_GPI) || defined(CONFIG_EXCITE_FCAP_GPI_MODULE) */ | ||
229 | |||
230 | |||
231 | |||
232 | #if defined(CONFIG_WDT_RM9K_GPI) || defined(CONFIG_WDT_RM9K_GPI_MODULE) | ||
233 | static struct resource wdt_rsrc[] = { | ||
234 | RINIT(0, 0, WDT_RESOURCE_COUNTER, &excite_ctr_resource), | ||
235 | RINIT(0x0084, 0x008f, WDT_RESOURCE_REGS, &excite_titan_resource), | ||
236 | RINIT_IRQ(TITAN_IRQ, WDT_RESOURCE_IRQ) | ||
237 | }; | ||
238 | |||
239 | static struct platform_device wdt_pdev = { | ||
240 | .name = WDT_NAME, | ||
241 | .id = -1, | ||
242 | .num_resources = ARRAY_SIZE(wdt_rsrc), | ||
243 | .resource = wdt_rsrc | ||
244 | }; | ||
245 | |||
246 | /* | ||
247 | * Create a platform device for the GPI port that receives the | ||
248 | * image data from the embedded camera. | ||
249 | */ | ||
250 | static int __init wdt_devinit(void) | ||
251 | { | ||
252 | adjust_resources(wdt_rsrc, ARRAY_SIZE(wdt_rsrc)); | ||
253 | return platform_device_register(&wdt_pdev); | ||
254 | } | ||
255 | |||
256 | device_initcall(wdt_devinit); | ||
257 | #endif /* defined(CONFIG_WDT_RM9K_GPI) || defined(CONFIG_WDT_RM9K_GPI_MODULE) */ | ||
258 | |||
259 | |||
260 | |||
261 | static struct resource excite_nandflash_rsrc[] = { | ||
262 | RINIT(0x2000, 0x201f, EXCITE_NANDFLASH_RESOURCE_REGS, &excite_nand_resource) | ||
263 | }; | ||
264 | |||
265 | static struct platform_device excite_nandflash_pdev = { | ||
266 | .name = "excite_nand", | ||
267 | .id = NAND_UNIT, | ||
268 | .num_resources = ARRAY_SIZE(excite_nandflash_rsrc), | ||
269 | .resource = excite_nandflash_rsrc | ||
270 | }; | ||
271 | |||
272 | /* | ||
273 | * Create a platform device for the access to the nand-flash | ||
274 | * port | ||
275 | */ | ||
276 | static int __init excite_nandflash_devinit(void) | ||
277 | { | ||
278 | adjust_resources(excite_nandflash_rsrc, ARRAY_SIZE(excite_nandflash_rsrc)); | ||
279 | |||
280 | /* nothing to be done here */ | ||
281 | |||
282 | /* Register platform device */ | ||
283 | return platform_device_register(&excite_nandflash_pdev); | ||
284 | } | ||
285 | |||
286 | device_initcall(excite_nandflash_devinit); | ||
287 | |||
288 | |||
289 | |||
290 | static struct resource iodev_rsrc[] = { | ||
291 | RINIT_IRQ(FPGA1_IRQ, IODEV_RESOURCE_IRQ) | ||
292 | }; | ||
293 | |||
294 | static struct platform_device io_pdev = { | ||
295 | .name = IODEV_NAME, | ||
296 | .id = -1, | ||
297 | .num_resources = ARRAY_SIZE(iodev_rsrc), | ||
298 | .resource = iodev_rsrc | ||
299 | }; | ||
300 | |||
301 | /* | ||
302 | * Create a platform device for the external I/O ports. | ||
303 | */ | ||
304 | static int __init io_devinit(void) | ||
305 | { | ||
306 | adjust_resources(iodev_rsrc, ARRAY_SIZE(iodev_rsrc)); | ||
307 | return platform_device_register(&io_pdev); | ||
308 | } | ||
309 | |||
310 | device_initcall(io_devinit); | ||
311 | |||
312 | |||
313 | |||
314 | |||
315 | #if defined(CONFIG_RM9K_GE) || defined(CONFIG_RM9K_GE_MODULE) | ||
316 | static struct resource rm9k_ge_rsrc[] = { | ||
317 | RINIT(0x2200, 0x27ff, RM9K_GE_RESOURCE_MAC, &excite_titan_resource), | ||
318 | RINIT(0x1800, 0x1fff, RM9K_GE_RESOURCE_MSTAT, &excite_titan_resource), | ||
319 | RINIT(0x2000, 0x212f, RM9K_GE_RESOURCE_PKTPROC, &excite_titan_resource), | ||
320 | RINIT(0x5140, 0x5227, RM9K_GE_RESOURCE_XDMA, &excite_titan_resource), | ||
321 | RINIT(0x4870, 0x489f, RM9K_GE_RESOURCE_FIFO_RX, &excite_titan_resource), | ||
322 | RINIT(0x494c, 0x4957, RM9K_GE_RESOURCE_FIFO_TX, &excite_titan_resource), | ||
323 | RINIT(0x0000, 0x007f, RM9K_GE_RESOURCE_FIFOMEM_RX, &excite_fifomem_resource), | ||
324 | RINIT(0x0080, 0x00ff, RM9K_GE_RESOURCE_FIFOMEM_TX, &excite_fifomem_resource), | ||
325 | RINIT(0x0180, 0x019f, RM9K_GE_RESOURCE_PHY, &excite_titan_resource), | ||
326 | RINIT(0x0000, 0x03ff, RM9K_GE_RESOURCE_DMADESC_RX, &excite_scram_resource), | ||
327 | RINIT(0x0400, 0x07ff, RM9K_GE_RESOURCE_DMADESC_TX, &excite_scram_resource), | ||
328 | RINIT(slice_eth, slice_eth, RM9K_GE_RESOURCE_GPI_SLICE, &excite_gpislice_resource), | ||
329 | RINIT(0, 0, RM9K_GE_RESOURCE_MDIO_CHANNEL, &excite_mdio_channel_resource), | ||
330 | RINIT_IRQ(TITAN_IRQ, RM9K_GE_RESOURCE_IRQ_MAIN), | ||
331 | RINIT_IRQ(PHY_IRQ, RM9K_GE_RESOURCE_IRQ_PHY) | ||
332 | }; | ||
333 | |||
334 | static struct platform_device rm9k_ge_pdev = { | ||
335 | .name = RM9K_GE_NAME, | ||
336 | .id = RM9K_GE_UNIT, | ||
337 | .num_resources = ARRAY_SIZE(rm9k_ge_rsrc), | ||
338 | .resource = rm9k_ge_rsrc | ||
339 | }; | ||
340 | |||
341 | |||
342 | |||
343 | /* | ||
344 | * Create a platform device for the Ethernet port. | ||
345 | */ | ||
346 | static int __init rm9k_ge_devinit(void) | ||
347 | { | ||
348 | u32 reg; | ||
349 | |||
350 | adjust_resources(rm9k_ge_rsrc, ARRAY_SIZE(rm9k_ge_rsrc)); | ||
351 | |||
352 | /* Power up the slice and configure it. */ | ||
353 | reg = titan_readl(CPTC1R); | ||
354 | reg &= ~(0x11000 << slice_eth); | ||
355 | reg |= 0x100 << slice_eth; | ||
356 | titan_writel(reg, CPTC1R); | ||
357 | |||
358 | /* Take the MAC out of reset, reset the DLLs. */ | ||
359 | reg = titan_readl(CPRR); | ||
360 | reg &= ~(0x00030000 << (slice_eth * 2)); | ||
361 | reg |= 0x3 << (slice_eth * 2); | ||
362 | titan_writel(reg, CPRR); | ||
363 | |||
364 | return platform_device_register(&rm9k_ge_pdev); | ||
365 | } | ||
366 | |||
367 | device_initcall(rm9k_ge_devinit); | ||
368 | #endif /* defined(CONFIG_RM9K_GE) || defined(CONFIG_RM9K_GE_MODULE) */ | ||
369 | |||
370 | |||
371 | |||
372 | static int __init excite_setup_devs(void) | ||
373 | { | ||
374 | int res; | ||
375 | u32 reg; | ||
376 | |||
377 | /* Enable xdma and fifo interrupts */ | ||
378 | reg = titan_readl(0x0050); | ||
379 | titan_writel(reg | 0x18000000, 0x0050); | ||
380 | |||
381 | res = request_resource(&iomem_resource, &excite_titan_resource); | ||
382 | if (res) | ||
383 | return res; | ||
384 | res = request_resource(&iomem_resource, &excite_scram_resource); | ||
385 | if (res) | ||
386 | return res; | ||
387 | res = request_resource(&iomem_resource, &excite_fpga_resource); | ||
388 | if (res) | ||
389 | return res; | ||
390 | res = request_resource(&iomem_resource, &excite_nand_resource); | ||
391 | if (res) | ||
392 | return res; | ||
393 | excite_fpga_resource.flags = excite_fpga_resource.parent->flags & | ||
394 | ( IORESOURCE_IO | IORESOURCE_MEM | ||
395 | | IORESOURCE_IRQ | IORESOURCE_DMA); | ||
396 | excite_nand_resource.flags = excite_nand_resource.parent->flags & | ||
397 | ( IORESOURCE_IO | IORESOURCE_MEM | ||
398 | | IORESOURCE_IRQ | IORESOURCE_DMA); | ||
399 | |||
400 | return 0; | ||
401 | } | ||
402 | |||
403 | arch_initcall(excite_setup_devs); | ||
404 | |||
diff --git a/arch/mips/basler/excite/excite_flashtest.c b/arch/mips/basler/excite/excite_flashtest.c new file mode 100644 index 000000000000..f0024a8e3294 --- /dev/null +++ b/arch/mips/basler/excite/excite_flashtest.c | |||
@@ -0,0 +1,294 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2005 by Basler Vision Technologies AG | ||
3 | * Author: Thies Moeller <thies.moeller@baslerweb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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/module.h> | ||
21 | #include <linux/types.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/kernel.h> | ||
24 | #include <linux/string.h> | ||
25 | #include <linux/ioport.h> | ||
26 | #include <linux/device.h> | ||
27 | #include <linux/delay.h> | ||
28 | #include <linux/err.h> | ||
29 | #include <linux/kernel.h> | ||
30 | |||
31 | #include <excite.h> | ||
32 | |||
33 | #include <asm/io.h> | ||
34 | |||
35 | #include <linux/mtd/mtd.h> | ||
36 | #include <linux/mtd/nand.h> | ||
37 | #include <linux/mtd/nand_ecc.h> | ||
38 | #include <linux/mtd/partitions.h> | ||
39 | #include <asm/rm9k-ocd.h> // for ocd_write | ||
40 | #include <linux/workqueue.h> // for queue | ||
41 | |||
42 | #include "excite_nandflash.h" | ||
43 | #include "nandflash.h" | ||
44 | |||
45 | #define PFX "excite flashtest: " | ||
46 | typedef void __iomem *io_reg_t; | ||
47 | |||
48 | #define io_readb(__a__) __raw_readb((__a__)) | ||
49 | #define io_writeb(__v__, __a__) __raw_writeb((__v__), (__a__)) | ||
50 | |||
51 | |||
52 | |||
53 | static inline const struct resource *excite_nandflash_get_resource( | ||
54 | struct platform_device *d, unsigned long flags, const char *basename) | ||
55 | { | ||
56 | const char fmt[] = "%s_%u"; | ||
57 | char buf[80]; | ||
58 | |||
59 | if (unlikely(snprintf(buf, sizeof buf, fmt, basename, d->id) >= sizeof buf)) | ||
60 | return NULL; | ||
61 | |||
62 | return platform_get_resource_byname(d, flags, buf); | ||
63 | } | ||
64 | |||
65 | static inline io_reg_t | ||
66 | excite_nandflash_map_regs(struct platform_device *d, const char *basename) | ||
67 | { | ||
68 | void *result = NULL; | ||
69 | const struct resource *const r = | ||
70 | excite_nandflash_get_resource(d, IORESOURCE_MEM, basename); | ||
71 | if (r) | ||
72 | result = ioremap_nocache(r->start, r->end + 1 - r->start); | ||
73 | return result; | ||
74 | } | ||
75 | |||
76 | /* controller and mtd information */ | ||
77 | |||
78 | struct excite_nandflash_drvdata { | ||
79 | struct mtd_info board_mtd; | ||
80 | struct nand_chip board_chip; | ||
81 | io_reg_t regs; | ||
82 | }; | ||
83 | |||
84 | |||
85 | /* command and control functions */ | ||
86 | static void excite_nandflash_hwcontrol(struct mtd_info *mtd, int cmd) | ||
87 | { | ||
88 | struct nand_chip *this = mtd->priv; | ||
89 | io_reg_t regs = container_of(mtd,struct excite_nandflash_drvdata,board_mtd)->regs; | ||
90 | |||
91 | switch (cmd) { | ||
92 | /* Select the command latch */ | ||
93 | case NAND_CTL_SETCLE: this->IO_ADDR_W = regs + EXCITE_NANDFLASH_CMD; | ||
94 | break; | ||
95 | /* Deselect the command latch */ | ||
96 | case NAND_CTL_CLRCLE: this->IO_ADDR_W = regs + EXCITE_NANDFLASH_DATA; | ||
97 | break; | ||
98 | /* Select the address latch */ | ||
99 | case NAND_CTL_SETALE: this->IO_ADDR_W = regs + EXCITE_NANDFLASH_ADDR; | ||
100 | break; | ||
101 | /* Deselect the address latch */ | ||
102 | case NAND_CTL_CLRALE: this->IO_ADDR_W = regs + EXCITE_NANDFLASH_DATA; | ||
103 | break; | ||
104 | /* Select the chip -- not used */ | ||
105 | case NAND_CTL_SETNCE: | ||
106 | break; | ||
107 | /* Deselect the chip -- not used */ | ||
108 | case NAND_CTL_CLRNCE: | ||
109 | break; | ||
110 | } | ||
111 | |||
112 | this->IO_ADDR_R = this->IO_ADDR_W; | ||
113 | } | ||
114 | |||
115 | /* excite_nandflash_devready() | ||
116 | * | ||
117 | * returns 0 if the nand is busy, 1 if it is ready | ||
118 | */ | ||
119 | static int excite_nandflash_devready(struct mtd_info *mtd) | ||
120 | { | ||
121 | struct excite_nandflash_drvdata *drvdata = | ||
122 | container_of(mtd, struct excite_nandflash_drvdata, board_mtd); | ||
123 | |||
124 | return io_readb(drvdata->regs + EXCITE_NANDFLASH_STATUS); | ||
125 | } | ||
126 | |||
127 | /* device management functions */ | ||
128 | |||
129 | /* excite_nandflash_remove | ||
130 | * | ||
131 | * called by device layer to remove the driver | ||
132 | * the binding to the mtd and all allocated | ||
133 | * resources are released | ||
134 | */ | ||
135 | static int excite_nandflash_remove(struct device *dev) | ||
136 | { | ||
137 | struct excite_nandflash_drvdata *this = dev_get_drvdata(dev); | ||
138 | |||
139 | pr_info(PFX "remove"); | ||
140 | |||
141 | dev_set_drvdata(dev, NULL); | ||
142 | |||
143 | if (this == NULL) { | ||
144 | pr_debug(PFX "call remove without private data!!"); | ||
145 | return 0; | ||
146 | } | ||
147 | |||
148 | |||
149 | /* free the common resources */ | ||
150 | if (this->regs != NULL) { | ||
151 | iounmap(this->regs); | ||
152 | this->regs = NULL; | ||
153 | } | ||
154 | |||
155 | kfree(this); | ||
156 | |||
157 | return 0; | ||
158 | } | ||
159 | |||
160 | static int elapsed; | ||
161 | |||
162 | void my_workqueue_handler(void *arg) | ||
163 | { | ||
164 | elapsed = 1; | ||
165 | } | ||
166 | |||
167 | DECLARE_WORK(sigElapsed, my_workqueue_handler, 0); | ||
168 | |||
169 | |||
170 | /* excite_nandflash_probe | ||
171 | * | ||
172 | * called by device layer when it finds a device matching | ||
173 | * one our driver can handled. This code checks to see if | ||
174 | * it can allocate all necessary resources then calls the | ||
175 | * nand layer to look for devices | ||
176 | */ | ||
177 | static int excite_nandflash_probe(struct device *dev) | ||
178 | { | ||
179 | struct platform_device *pdev = to_platform_device(dev); | ||
180 | |||
181 | struct excite_nandflash_drvdata *drvdata; /* private driver data */ | ||
182 | struct nand_chip *board_chip; /* private flash chip data */ | ||
183 | struct mtd_info *board_mtd; /* mtd info for this board */ | ||
184 | |||
185 | int err = 0; | ||
186 | int count = 0; | ||
187 | struct timeval tv,endtv; | ||
188 | unsigned int dt; | ||
189 | |||
190 | pr_info(PFX "probe dev: (%p)\n", dev); | ||
191 | |||
192 | pr_info(PFX "adjust LB timing\n"); | ||
193 | ocd_writel(0x00000330, LDP2); | ||
194 | |||
195 | drvdata = kmalloc(sizeof(*drvdata), GFP_KERNEL); | ||
196 | if (unlikely(!drvdata)) { | ||
197 | printk(KERN_ERR PFX "no memory for drvdata\n"); | ||
198 | err = -ENOMEM; | ||
199 | goto mem_error; | ||
200 | } | ||
201 | |||
202 | /* Initialize structures */ | ||
203 | memset(drvdata, 0, sizeof(*drvdata)); | ||
204 | |||
205 | /* bind private data into driver */ | ||
206 | dev_set_drvdata(dev, drvdata); | ||
207 | |||
208 | /* allocate and map the resource */ | ||
209 | drvdata->regs = | ||
210 | excite_nandflash_map_regs(pdev, EXCITE_NANDFLASH_RESOURCE_REGS); | ||
211 | |||
212 | if (unlikely(!drvdata->regs)) { | ||
213 | printk(KERN_ERR PFX "cannot reserve register region\n"); | ||
214 | err = -ENXIO; | ||
215 | goto io_error; | ||
216 | } | ||
217 | |||
218 | /* initialise our chip */ | ||
219 | board_chip = &drvdata->board_chip; | ||
220 | |||
221 | board_chip->IO_ADDR_R = drvdata->regs + EXCITE_NANDFLASH_DATA; | ||
222 | board_chip->IO_ADDR_W = drvdata->regs + EXCITE_NANDFLASH_DATA; | ||
223 | |||
224 | board_chip->hwcontrol = excite_nandflash_hwcontrol; | ||
225 | board_chip->dev_ready = excite_nandflash_devready; | ||
226 | |||
227 | board_chip->chip_delay = 25; | ||
228 | #if 0 | ||
229 | /* TODO: speedup the initial scan */ | ||
230 | board_chip->options = NAND_USE_FLASH_BBT; | ||
231 | #endif | ||
232 | board_chip->eccmode = NAND_ECC_SOFT; | ||
233 | |||
234 | /* link chip to mtd */ | ||
235 | board_mtd = &drvdata->board_mtd; | ||
236 | board_mtd->priv = board_chip; | ||
237 | |||
238 | |||
239 | pr_info(PFX "FlashTest\n"); | ||
240 | elapsed = 0; | ||
241 | /* schedule_delayed_work(&sigElapsed, 1*HZ); | ||
242 | while (!elapsed) { | ||
243 | io_readb(drvdata->regs + EXCITE_NANDFLASH_STATUS); | ||
244 | count++; | ||
245 | } | ||
246 | pr_info(PFX "reads in 1 sec --> %d\n",count); | ||
247 | */ | ||
248 | do_gettimeofday(&tv); | ||
249 | for (count = 0 ; count < 1000000; count ++) { | ||
250 | io_readb(drvdata->regs + EXCITE_NANDFLASH_STATUS); | ||
251 | } | ||
252 | do_gettimeofday(&endtv); | ||
253 | dt = (endtv.tv_sec - tv.tv_sec) * 1000000 + endtv.tv_usec - tv.tv_usec; | ||
254 | pr_info(PFX "%8d us timeval\n",dt); | ||
255 | pr_info(PFX "EndFlashTest\n"); | ||
256 | |||
257 | /* return with error to unload everything | ||
258 | */ | ||
259 | io_error: | ||
260 | iounmap(drvdata->regs); | ||
261 | |||
262 | mem_error: | ||
263 | kfree(drvdata); | ||
264 | |||
265 | if (err == 0) | ||
266 | err = -EINVAL; | ||
267 | return err; | ||
268 | } | ||
269 | |||
270 | static struct device_driver excite_nandflash_driver = { | ||
271 | .name = "excite_nand", | ||
272 | .bus = &platform_bus_type, | ||
273 | .probe = excite_nandflash_probe, | ||
274 | .remove = excite_nandflash_remove, | ||
275 | }; | ||
276 | |||
277 | static int __init excite_nandflash_init(void) | ||
278 | { | ||
279 | pr_info(PFX "register Driver (Rev: $Revision:$)\n"); | ||
280 | return driver_register(&excite_nandflash_driver); | ||
281 | } | ||
282 | |||
283 | static void __exit excite_nandflash_exit(void) | ||
284 | { | ||
285 | driver_unregister(&excite_nandflash_driver); | ||
286 | pr_info(PFX "Driver unregistered"); | ||
287 | } | ||
288 | |||
289 | module_init(excite_nandflash_init); | ||
290 | module_exit(excite_nandflash_exit); | ||
291 | |||
292 | MODULE_AUTHOR("Thies Moeller <thies.moeller@baslerweb.com>"); | ||
293 | MODULE_DESCRIPTION("Basler eXcite NAND-Flash driver"); | ||
294 | MODULE_LICENSE("GPL"); | ||
diff --git a/arch/mips/basler/excite/excite_fpga.h b/arch/mips/basler/excite/excite_fpga.h new file mode 100644 index 000000000000..38fcda703a0b --- /dev/null +++ b/arch/mips/basler/excite/excite_fpga.h | |||
@@ -0,0 +1,80 @@ | |||
1 | #ifndef EXCITE_FPGA_H_INCLUDED | ||
2 | #define EXCITE_FPGA_H_INCLUDED | ||
3 | |||
4 | |||
5 | /** | ||
6 | * Adress alignment of the individual FPGA bytes. | ||
7 | * The address arrangement of the individual bytes of the FPGA is two | ||
8 | * byte aligned at the embedded MK2 platform. | ||
9 | */ | ||
10 | #ifdef EXCITE_CCI_FPGA_MK2 | ||
11 | typedef unsigned char excite_cci_fpga_align_t __attribute__ ((aligned(2))); | ||
12 | #else | ||
13 | typedef unsigned char excite_cci_fpga_align_t; | ||
14 | #endif | ||
15 | |||
16 | |||
17 | /** | ||
18 | * Size of Dual Ported RAM. | ||
19 | */ | ||
20 | #define EXCITE_DPR_SIZE 263 | ||
21 | |||
22 | |||
23 | /** | ||
24 | * Size of Reserved Status Fields in Dual Ported RAM. | ||
25 | */ | ||
26 | #define EXCITE_DPR_STATUS_SIZE 7 | ||
27 | |||
28 | |||
29 | |||
30 | /** | ||
31 | * FPGA. | ||
32 | * Hardware register layout of the FPGA interface. The FPGA must accessed | ||
33 | * byte wise solely. | ||
34 | * @see EXCITE_CCI_DPR_MK2 | ||
35 | */ | ||
36 | typedef struct excite_fpga { | ||
37 | |||
38 | /** | ||
39 | * Dual Ported RAM. | ||
40 | */ | ||
41 | excite_cci_fpga_align_t dpr[EXCITE_DPR_SIZE]; | ||
42 | |||
43 | /** | ||
44 | * Status. | ||
45 | */ | ||
46 | excite_cci_fpga_align_t status[EXCITE_DPR_STATUS_SIZE]; | ||
47 | |||
48 | #ifdef EXCITE_CCI_FPGA_MK2 | ||
49 | /** | ||
50 | * RM9000 Interrupt. | ||
51 | * Write access initiates interrupt at the RM9000 (MIPS) processor of the eXcite. | ||
52 | */ | ||
53 | excite_cci_fpga_align_t rm9k_int; | ||
54 | #else | ||
55 | /** | ||
56 | * MK2 Interrupt. | ||
57 | * Write access initiates interrupt at the ARM processor of the MK2. | ||
58 | */ | ||
59 | excite_cci_fpga_align_t mk2_int; | ||
60 | |||
61 | excite_cci_fpga_align_t gap[0x1000-0x10f]; | ||
62 | |||
63 | /** | ||
64 | * IRQ Source/Acknowledge. | ||
65 | */ | ||
66 | excite_cci_fpga_align_t rm9k_irq_src; | ||
67 | |||
68 | /** | ||
69 | * IRQ Mask. | ||
70 | * Set bits enable the related interrupt. | ||
71 | */ | ||
72 | excite_cci_fpga_align_t rm9k_irq_mask; | ||
73 | #endif | ||
74 | |||
75 | |||
76 | } excite_fpga; | ||
77 | |||
78 | |||
79 | |||
80 | #endif /* ndef EXCITE_FPGA_H_INCLUDED */ | ||
diff --git a/arch/mips/basler/excite/excite_iodev.c b/arch/mips/basler/excite/excite_iodev.c new file mode 100644 index 000000000000..91121e523043 --- /dev/null +++ b/arch/mips/basler/excite/excite_iodev.c | |||
@@ -0,0 +1,183 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2005 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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/config.h> | ||
21 | #include <linux/compiler.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <linux/sched.h> | ||
25 | #include <linux/wait.h> | ||
26 | #include <linux/poll.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/platform_device.h> | ||
29 | #include <linux/miscdevice.h> | ||
30 | |||
31 | #include "excite_iodev.h" | ||
32 | |||
33 | |||
34 | |||
35 | static const struct resource *iodev_get_resource(struct platform_device *, const char *, unsigned int); | ||
36 | static int __init iodev_probe(struct device *); | ||
37 | static int __exit iodev_remove(struct device *); | ||
38 | static int iodev_open(struct inode *, struct file *); | ||
39 | static int iodev_release(struct inode *, struct file *); | ||
40 | static ssize_t iodev_read(struct file *, char __user *, size_t s, loff_t *); | ||
41 | static unsigned int iodev_poll(struct file *, struct poll_table_struct *); | ||
42 | static irqreturn_t iodev_irqhdl(int, void *, struct pt_regs *); | ||
43 | |||
44 | |||
45 | |||
46 | static const char iodev_name[] = "iodev"; | ||
47 | static unsigned int iodev_irq; | ||
48 | static DECLARE_WAIT_QUEUE_HEAD(wq); | ||
49 | |||
50 | |||
51 | |||
52 | static struct file_operations fops = | ||
53 | { | ||
54 | .owner = THIS_MODULE, | ||
55 | .open = iodev_open, | ||
56 | .release = iodev_release, | ||
57 | .read = iodev_read, | ||
58 | .poll = iodev_poll | ||
59 | }; | ||
60 | |||
61 | static struct miscdevice miscdev = | ||
62 | { | ||
63 | .minor = MISC_DYNAMIC_MINOR, | ||
64 | .name = iodev_name, | ||
65 | .fops = &fops | ||
66 | }; | ||
67 | |||
68 | static struct device_driver iodev_driver = | ||
69 | { | ||
70 | .name = (char *) iodev_name, | ||
71 | .bus = &platform_bus_type, | ||
72 | .owner = THIS_MODULE, | ||
73 | .probe = iodev_probe, | ||
74 | .remove = __exit_p(iodev_remove) | ||
75 | }; | ||
76 | |||
77 | |||
78 | |||
79 | static const struct resource * | ||
80 | iodev_get_resource(struct platform_device *pdv, const char *name, | ||
81 | unsigned int type) | ||
82 | { | ||
83 | char buf[80]; | ||
84 | if (snprintf(buf, sizeof buf, "%s_0", name) >= sizeof buf) | ||
85 | return NULL; | ||
86 | return platform_get_resource_byname(pdv, type, buf); | ||
87 | } | ||
88 | |||
89 | |||
90 | |||
91 | /* No hotplugging on the platform bus - use __init */ | ||
92 | static int __init iodev_probe(struct device *dev) | ||
93 | { | ||
94 | struct platform_device * const pdv = to_platform_device(dev); | ||
95 | const struct resource * const ri = | ||
96 | iodev_get_resource(pdv, IODEV_RESOURCE_IRQ, IORESOURCE_IRQ); | ||
97 | |||
98 | if (unlikely(!ri)) | ||
99 | return -ENXIO; | ||
100 | |||
101 | iodev_irq = ri->start; | ||
102 | return misc_register(&miscdev); | ||
103 | } | ||
104 | |||
105 | |||
106 | |||
107 | static int __exit iodev_remove(struct device *dev) | ||
108 | { | ||
109 | return misc_deregister(&miscdev); | ||
110 | } | ||
111 | |||
112 | |||
113 | |||
114 | static int iodev_open(struct inode *i, struct file *f) | ||
115 | { | ||
116 | return request_irq(iodev_irq, iodev_irqhdl, SA_INTERRUPT, | ||
117 | iodev_name, &miscdev); | ||
118 | } | ||
119 | |||
120 | |||
121 | |||
122 | static int iodev_release(struct inode *i, struct file *f) | ||
123 | { | ||
124 | free_irq(iodev_irq, &miscdev); | ||
125 | return 0; | ||
126 | } | ||
127 | |||
128 | |||
129 | |||
130 | |||
131 | static ssize_t | ||
132 | iodev_read(struct file *f, char __user *d, size_t s, loff_t *o) | ||
133 | { | ||
134 | ssize_t ret; | ||
135 | DEFINE_WAIT(w); | ||
136 | |||
137 | prepare_to_wait(&wq, &w, TASK_INTERRUPTIBLE); | ||
138 | if (!signal_pending(current)) | ||
139 | schedule(); | ||
140 | ret = signal_pending(current) ? -ERESTARTSYS : 0; | ||
141 | finish_wait(&wq, &w); | ||
142 | return ret; | ||
143 | } | ||
144 | |||
145 | |||
146 | static unsigned int iodev_poll(struct file *f, struct poll_table_struct *p) | ||
147 | { | ||
148 | poll_wait(f, &wq, p); | ||
149 | return POLLOUT | POLLWRNORM; | ||
150 | } | ||
151 | |||
152 | |||
153 | |||
154 | |||
155 | static irqreturn_t iodev_irqhdl(int irq, void *ctxt, struct pt_regs *regs) | ||
156 | { | ||
157 | wake_up(&wq); | ||
158 | return IRQ_HANDLED; | ||
159 | } | ||
160 | |||
161 | |||
162 | |||
163 | static int __init iodev_init_module(void) | ||
164 | { | ||
165 | return driver_register(&iodev_driver); | ||
166 | } | ||
167 | |||
168 | |||
169 | |||
170 | static void __exit iodev_cleanup_module(void) | ||
171 | { | ||
172 | driver_unregister(&iodev_driver); | ||
173 | } | ||
174 | |||
175 | module_init(iodev_init_module); | ||
176 | module_exit(iodev_cleanup_module); | ||
177 | |||
178 | |||
179 | |||
180 | MODULE_AUTHOR("Thomas Koeller <thomas.koeller@baslerweb.com>"); | ||
181 | MODULE_DESCRIPTION("Basler eXcite i/o interrupt handler"); | ||
182 | MODULE_VERSION("0.0"); | ||
183 | MODULE_LICENSE("GPL"); | ||
diff --git a/arch/mips/basler/excite/excite_iodev.h b/arch/mips/basler/excite/excite_iodev.h new file mode 100644 index 000000000000..cbfbb5d2ee62 --- /dev/null +++ b/arch/mips/basler/excite/excite_iodev.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef __EXCITE_IODEV_H__ | ||
2 | #define __EXCITE_IODEV_H__ | ||
3 | |||
4 | /* Device name */ | ||
5 | #define IODEV_NAME "iodev" | ||
6 | |||
7 | /* Resource names */ | ||
8 | #define IODEV_RESOURCE_IRQ "excite_iodev_irq" | ||
9 | |||
10 | #endif /* __EXCITE_IODEV_H__ */ | ||
diff --git a/arch/mips/basler/excite/excite_irq.c b/arch/mips/basler/excite/excite_irq.c new file mode 100644 index 000000000000..511ad8730f54 --- /dev/null +++ b/arch/mips/basler/excite/excite_irq.c | |||
@@ -0,0 +1,129 @@ | |||
1 | /* | ||
2 | * Copyright (C) by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslereb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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/errno.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/kernel_stat.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <linux/signal.h> | ||
25 | #include <linux/sched.h> | ||
26 | #include <linux/types.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/ioport.h> | ||
29 | #include <linux/timex.h> | ||
30 | #include <linux/slab.h> | ||
31 | #include <linux/random.h> | ||
32 | #include <asm/bitops.h> | ||
33 | #include <asm/bootinfo.h> | ||
34 | #include <asm/io.h> | ||
35 | #include <asm/irq.h> | ||
36 | #include <asm/irq_cpu.h> | ||
37 | #include <asm/mipsregs.h> | ||
38 | #include <asm/system.h> | ||
39 | #include <asm/rm9k-ocd.h> | ||
40 | |||
41 | #include <excite.h> | ||
42 | |||
43 | extern asmlinkage void excite_handle_int(void); | ||
44 | |||
45 | /* | ||
46 | * Initialize the interrupt handler | ||
47 | */ | ||
48 | void __init arch_init_irq(void) | ||
49 | { | ||
50 | mips_cpu_irq_init(0); | ||
51 | rm7k_cpu_irq_init(8); | ||
52 | rm9k_cpu_irq_init(12); | ||
53 | |||
54 | #ifdef CONFIG_KGDB | ||
55 | excite_kgdb_init(); | ||
56 | #endif | ||
57 | } | ||
58 | |||
59 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | ||
60 | { | ||
61 | const u32 | ||
62 | interrupts = read_c0_cause() >> 8, | ||
63 | mask = ((read_c0_status() >> 8) & 0x000000ff) | | ||
64 | (read_c0_intcontrol() & 0x0000ff00), | ||
65 | pending = interrupts & mask; | ||
66 | u32 msgintflags, msgintmask, msgint; | ||
67 | |||
68 | /* process timer interrupt */ | ||
69 | if (pending & (1 << TIMER_IRQ)) { | ||
70 | do_IRQ(TIMER_IRQ, regs); | ||
71 | return; | ||
72 | } | ||
73 | |||
74 | /* Process PCI interrupts */ | ||
75 | #if USB_IRQ < 10 | ||
76 | msgintflags = ocd_readl(INTP0Status0 + (USB_MSGINT / 0x20 * 0x10)); | ||
77 | msgintmask = ocd_readl(INTP0Mask0 + (USB_MSGINT / 0x20 * 0x10)); | ||
78 | msgint = msgintflags & msgintmask & (0x1 << (USB_MSGINT % 0x20)); | ||
79 | if ((pending & (1 << USB_IRQ)) && msgint) { | ||
80 | #else | ||
81 | if (pending & (1 << USB_IRQ)) { | ||
82 | #endif | ||
83 | do_IRQ(USB_IRQ, regs); | ||
84 | return; | ||
85 | } | ||
86 | |||
87 | /* Process TITAN interrupts */ | ||
88 | msgintflags = ocd_readl(INTP0Status0 + (TITAN_MSGINT / 0x20 * 0x10)); | ||
89 | msgintmask = ocd_readl(INTP0Mask0 + (TITAN_MSGINT / 0x20 * 0x10)); | ||
90 | msgint = msgintflags & msgintmask & (0x1 << (TITAN_MSGINT % 0x20)); | ||
91 | if ((pending & (1 << TITAN_IRQ)) && msgint) { | ||
92 | ocd_writel(msgint, INTP0Clear0 + (TITAN_MSGINT / 0x20 * 0x10)); | ||
93 | #if defined(CONFIG_KGDB) | ||
94 | excite_kgdb_inthdl(regs); | ||
95 | #endif | ||
96 | do_IRQ(TITAN_IRQ, regs); | ||
97 | return; | ||
98 | } | ||
99 | |||
100 | /* Process FPGA line #0 interrupts */ | ||
101 | msgintflags = ocd_readl(INTP0Status0 + (FPGA0_MSGINT / 0x20 * 0x10)); | ||
102 | msgintmask = ocd_readl(INTP0Mask0 + (FPGA0_MSGINT / 0x20 * 0x10)); | ||
103 | msgint = msgintflags & msgintmask & (0x1 << (FPGA0_MSGINT % 0x20)); | ||
104 | if ((pending & (1 << FPGA0_IRQ)) && msgint) { | ||
105 | do_IRQ(FPGA0_IRQ, regs); | ||
106 | return; | ||
107 | } | ||
108 | |||
109 | /* Process FPGA line #1 interrupts */ | ||
110 | msgintflags = ocd_readl(INTP0Status0 + (FPGA1_MSGINT / 0x20 * 0x10)); | ||
111 | msgintmask = ocd_readl(INTP0Mask0 + (FPGA1_MSGINT / 0x20 * 0x10)); | ||
112 | msgint = msgintflags & msgintmask & (0x1 << (FPGA1_MSGINT % 0x20)); | ||
113 | if ((pending & (1 << FPGA1_IRQ)) && msgint) { | ||
114 | do_IRQ(FPGA1_IRQ, regs); | ||
115 | return; | ||
116 | } | ||
117 | |||
118 | /* Process PHY interrupts */ | ||
119 | msgintflags = ocd_readl(INTP0Status0 + (PHY_MSGINT / 0x20 * 0x10)); | ||
120 | msgintmask = ocd_readl(INTP0Mask0 + (PHY_MSGINT / 0x20 * 0x10)); | ||
121 | msgint = msgintflags & msgintmask & (0x1 << (PHY_MSGINT % 0x20)); | ||
122 | if ((pending & (1 << PHY_IRQ)) && msgint) { | ||
123 | do_IRQ(PHY_IRQ, regs); | ||
124 | return; | ||
125 | } | ||
126 | |||
127 | /* Process spurious interrupts */ | ||
128 | spurious_interrupt(regs); | ||
129 | } | ||
diff --git a/arch/mips/basler/excite/excite_procfs.c b/arch/mips/basler/excite/excite_procfs.c new file mode 100644 index 000000000000..c62be0341fb8 --- /dev/null +++ b/arch/mips/basler/excite/excite_procfs.c | |||
@@ -0,0 +1,81 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2005 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * | ||
5 | * Procfs support for Basler eXcite | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/proc_fs.h> | ||
24 | #include <linux/stat.h> | ||
25 | #include <asm/page.h> | ||
26 | #include <asm/io.h> | ||
27 | #include <asm/system.h> | ||
28 | #include <asm/rm9k-ocd.h> | ||
29 | |||
30 | #include <excite.h> | ||
31 | |||
32 | static int excite_get_unit_id(char *buf, char **addr, off_t offs, int size) | ||
33 | { | ||
34 | const int len = snprintf(buf, PAGE_SIZE, "%06x", unit_id); | ||
35 | const int w = len - offs; | ||
36 | *addr = buf + offs; | ||
37 | return w < size ? w : size; | ||
38 | } | ||
39 | |||
40 | static int | ||
41 | excite_bootrom_read(char *page, char **start, off_t off, int count, | ||
42 | int *eof, void *data) | ||
43 | { | ||
44 | void __iomem * src; | ||
45 | |||
46 | if (off >= EXCITE_SIZE_BOOTROM) { | ||
47 | *eof = 1; | ||
48 | return 0; | ||
49 | } | ||
50 | |||
51 | if ((off + count) > EXCITE_SIZE_BOOTROM) | ||
52 | count = EXCITE_SIZE_BOOTROM - off; | ||
53 | |||
54 | src = ioremap(EXCITE_PHYS_BOOTROM + off, count); | ||
55 | if (src) { | ||
56 | memcpy_fromio(page, src, count); | ||
57 | iounmap(src); | ||
58 | *start = page; | ||
59 | } else { | ||
60 | count = -ENOMEM; | ||
61 | } | ||
62 | |||
63 | return count; | ||
64 | } | ||
65 | |||
66 | void excite_procfs_init(void) | ||
67 | { | ||
68 | /* Create & populate /proc/excite */ | ||
69 | struct proc_dir_entry * const pdir = proc_mkdir("excite", &proc_root); | ||
70 | if (pdir) { | ||
71 | struct proc_dir_entry * e; | ||
72 | |||
73 | e = create_proc_info_entry("unit_id", S_IRUGO, pdir, | ||
74 | excite_get_unit_id); | ||
75 | if (e) e->size = 6; | ||
76 | |||
77 | e = create_proc_read_entry("bootrom", S_IRUGO, pdir, | ||
78 | excite_bootrom_read, NULL); | ||
79 | if (e) e->size = EXCITE_SIZE_BOOTROM; | ||
80 | } | ||
81 | } | ||
diff --git a/arch/mips/basler/excite/excite_prom.c b/arch/mips/basler/excite/excite_prom.c new file mode 100644 index 000000000000..84724b270753 --- /dev/null +++ b/arch/mips/basler/excite/excite_prom.c | |||
@@ -0,0 +1,148 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2005 by Thomas Koeller (thomas.koeller@baslerweb.com) | ||
3 | * Based on the PMC-Sierra Yosemite board support by Ralf Baechle and | ||
4 | * Manish Lachwani. | ||
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, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/config.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/sched.h> | ||
24 | #include <linux/mm.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/smp.h> | ||
27 | #include <linux/module.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/pgtable.h> | ||
30 | #include <asm/processor.h> | ||
31 | #include <asm/reboot.h> | ||
32 | #include <asm/system.h> | ||
33 | #include <asm/bootinfo.h> | ||
34 | #include <asm/string.h> | ||
35 | |||
36 | #include <excite.h> | ||
37 | |||
38 | /* This struct is used by Redboot to pass arguments to the kernel */ | ||
39 | typedef struct | ||
40 | { | ||
41 | char *name; | ||
42 | char *val; | ||
43 | } t_env_var; | ||
44 | |||
45 | struct parmblock { | ||
46 | t_env_var memsize; | ||
47 | t_env_var modetty0; | ||
48 | t_env_var ethaddr; | ||
49 | t_env_var env_end; | ||
50 | char *argv[2]; | ||
51 | char text[0]; | ||
52 | }; | ||
53 | |||
54 | static unsigned int prom_argc; | ||
55 | static const char ** prom_argv; | ||
56 | static const t_env_var * prom_env; | ||
57 | |||
58 | static void prom_halt(void) __attribute__((noreturn)); | ||
59 | static void prom_exit(void) __attribute__((noreturn)); | ||
60 | |||
61 | |||
62 | |||
63 | const char *get_system_type(void) | ||
64 | { | ||
65 | return "Basler eXcite"; | ||
66 | } | ||
67 | |||
68 | /* | ||
69 | * Halt the system | ||
70 | */ | ||
71 | static void prom_halt(void) | ||
72 | { | ||
73 | printk(KERN_NOTICE "\n** System halted.\n"); | ||
74 | while (1) | ||
75 | asm volatile ( | ||
76 | "\t.set\tmips3\n" | ||
77 | "\twait\n" | ||
78 | "\t.set\tmips0\n" | ||
79 | ); | ||
80 | } | ||
81 | |||
82 | /* | ||
83 | * Reset the CPU and re-enter Redboot | ||
84 | */ | ||
85 | static void prom_exit(void) | ||
86 | { | ||
87 | unsigned int i; | ||
88 | volatile unsigned char * const flg = | ||
89 | (volatile unsigned char *) (EXCITE_ADDR_FPGA + EXCITE_FPGA_DPR); | ||
90 | |||
91 | /* Clear the watchdog reset flag, set the reboot flag */ | ||
92 | *flg &= ~0x01; | ||
93 | *flg |= 0x80; | ||
94 | |||
95 | for (i = 0; i < 10; i++) { | ||
96 | *(volatile unsigned char *) (EXCITE_ADDR_FPGA + EXCITE_FPGA_SYSCTL) = 0x02; | ||
97 | iob(); | ||
98 | mdelay(1000); | ||
99 | } | ||
100 | |||
101 | printk(KERN_NOTICE "Reset failed\n"); | ||
102 | prom_halt(); | ||
103 | } | ||
104 | |||
105 | static const char __init *prom_getenv(char *name) | ||
106 | { | ||
107 | const t_env_var * p; | ||
108 | for (p = prom_env; p->name != NULL; p++) | ||
109 | if(strcmp(name, p->name) == 0) | ||
110 | break; | ||
111 | return p->val; | ||
112 | } | ||
113 | |||
114 | /* | ||
115 | * Init routine which accepts the variables from Redboot | ||
116 | */ | ||
117 | void __init prom_init(void) | ||
118 | { | ||
119 | const struct parmblock * const pb = (struct parmblock *) fw_arg2; | ||
120 | |||
121 | prom_argc = fw_arg0; | ||
122 | prom_argv = (const char **) fw_arg1; | ||
123 | prom_env = &pb->memsize; | ||
124 | |||
125 | /* Callbacks for halt, restart */ | ||
126 | _machine_restart = (void (*)(char *)) prom_exit; | ||
127 | _machine_halt = prom_halt; | ||
128 | |||
129 | #ifdef CONFIG_32BIT | ||
130 | /* copy command line */ | ||
131 | strcpy(arcs_cmdline, prom_argv[1]); | ||
132 | memsize = simple_strtol(prom_getenv("memsize"), NULL, 16); | ||
133 | strcpy(modetty, prom_getenv("modetty0")); | ||
134 | #endif /* CONFIG_32BIT */ | ||
135 | |||
136 | #ifdef CONFIG_64BIT | ||
137 | # error 64 bit support not implemented | ||
138 | #endif /* CONFIG_64BIT */ | ||
139 | |||
140 | mips_machgroup = MACH_GROUP_TITAN; | ||
141 | mips_machtype = MACH_TITAN_EXCITE; | ||
142 | } | ||
143 | |||
144 | /* This is called from free_initmem(), so we need to provide it */ | ||
145 | void __init prom_free_prom_memory(void) | ||
146 | { | ||
147 | /* Nothing to do */ | ||
148 | } | ||
diff --git a/arch/mips/basler/excite/excite_setup.c b/arch/mips/basler/excite/excite_setup.c new file mode 100644 index 000000000000..005b025605e6 --- /dev/null +++ b/arch/mips/basler/excite/excite_setup.c | |||
@@ -0,0 +1,307 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2005 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * Based on the PMC-Sierra Yosemite board support by Ralf Baechle and | ||
5 | * Manish Lachwani. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/kernel.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/string.h> | ||
27 | #include <linux/tty.h> | ||
28 | #include <linux/serial_core.h> | ||
29 | #include <linux/serial.h> | ||
30 | #include <linux/ioport.h> | ||
31 | #include <linux/spinlock.h> | ||
32 | #include <asm/bootinfo.h> | ||
33 | #include <asm/mipsregs.h> | ||
34 | #include <asm/pgtable-32.h> | ||
35 | #include <asm/io.h> | ||
36 | #include <asm/time.h> | ||
37 | #include <asm/rm9k-ocd.h> | ||
38 | |||
39 | #include <excite.h> | ||
40 | |||
41 | #define TITAN_UART_CLK 25000000 | ||
42 | |||
43 | #if 1 | ||
44 | /* normal serial port assignment */ | ||
45 | #define REGBASE_SER0 0x0208 | ||
46 | #define REGBASE_SER1 0x0238 | ||
47 | #define MASK_SER0 0x1 | ||
48 | #define MASK_SER1 0x2 | ||
49 | #else | ||
50 | /* serial ports swapped */ | ||
51 | #define REGBASE_SER0 0x0238 | ||
52 | #define REGBASE_SER1 0x0208 | ||
53 | #define MASK_SER0 0x2 | ||
54 | #define MASK_SER1 0x1 | ||
55 | #endif | ||
56 | |||
57 | unsigned long memsize; | ||
58 | char modetty[30]; | ||
59 | unsigned int titan_irq = TITAN_IRQ; | ||
60 | static void __iomem * ctl_regs; | ||
61 | u32 unit_id; | ||
62 | |||
63 | volatile void __iomem * const ocd_base = (void *) (EXCITE_ADDR_OCD); | ||
64 | volatile void __iomem * const titan_base = (void *) (EXCITE_ADDR_TITAN); | ||
65 | |||
66 | /* Protect access to shared GPI registers */ | ||
67 | spinlock_t titan_lock = SPIN_LOCK_UNLOCKED; | ||
68 | int titan_irqflags; | ||
69 | |||
70 | |||
71 | static void excite_timer_init(void) | ||
72 | { | ||
73 | const u32 modebit5 = ocd_readl(0x00e4); | ||
74 | unsigned int | ||
75 | mult = ((modebit5 >> 11) & 0x1f) + 2, | ||
76 | div = ((modebit5 >> 16) & 0x1f) + 2; | ||
77 | |||
78 | if (div == 33) div = 1; | ||
79 | mips_hpt_frequency = EXCITE_CPU_EXT_CLOCK * mult / div / 2; | ||
80 | } | ||
81 | |||
82 | static void excite_timer_setup(struct irqaction *irq) | ||
83 | { | ||
84 | /* The eXcite platform uses the alternate timer interrupt */ | ||
85 | set_c0_intcontrol(0x80); | ||
86 | setup_irq(TIMER_IRQ, irq); | ||
87 | } | ||
88 | |||
89 | static int __init excite_init_console(void) | ||
90 | { | ||
91 | #if defined(CONFIG_SERIAL_8250) | ||
92 | static __initdata char serr[] = | ||
93 | KERN_ERR "Serial port #%u setup failed\n"; | ||
94 | struct uart_port up; | ||
95 | |||
96 | /* Take the DUART out of reset */ | ||
97 | titan_writel(0x00ff1cff, CPRR); | ||
98 | |||
99 | #if defined(CONFIG_KGDB) || (CONFIG_SERIAL_8250_NR_UARTS > 1) | ||
100 | /* Enable both ports */ | ||
101 | titan_writel(MASK_SER0 | MASK_SER1, UACFG); | ||
102 | #else | ||
103 | /* Enable port #0 only */ | ||
104 | titan_writel(MASK_SER0, UACFG); | ||
105 | #endif /* defined(CONFIG_KGDB) */ | ||
106 | |||
107 | /* | ||
108 | * Set up serial port #0. Do not use autodetection; the result is | ||
109 | * not what we want. | ||
110 | */ | ||
111 | memset(&up, 0, sizeof(up)); | ||
112 | up.membase = (char *) titan_addr(REGBASE_SER0); | ||
113 | up.irq = TITAN_IRQ; | ||
114 | up.uartclk = TITAN_UART_CLK; | ||
115 | up.regshift = 0; | ||
116 | up.iotype = UPIO_MEM32; | ||
117 | up.type = PORT_RM9000; | ||
118 | up.flags = UPF_SHARE_IRQ; | ||
119 | up.line = 0; | ||
120 | if (early_serial_setup(&up)) | ||
121 | printk(serr, up.line); | ||
122 | |||
123 | #if CONFIG_SERIAL_8250_NR_UARTS > 1 | ||
124 | /* And now for port #1. */ | ||
125 | up.membase = (char *) titan_addr(REGBASE_SER1); | ||
126 | up.line = 1; | ||
127 | if (early_serial_setup(&up)) | ||
128 | printk(serr, up.line); | ||
129 | #endif /* CONFIG_SERIAL_8250_NR_UARTS > 1 */ | ||
130 | #else | ||
131 | /* Leave the DUART in reset */ | ||
132 | titan_writel(0x00ff3cff, CPRR); | ||
133 | #endif /* defined(CONFIG_SERIAL_8250) */ | ||
134 | |||
135 | return 0; | ||
136 | } | ||
137 | |||
138 | static int __init excite_platform_init(void) | ||
139 | { | ||
140 | unsigned int i; | ||
141 | unsigned char buf[3]; | ||
142 | u8 reg; | ||
143 | void __iomem * dpr; | ||
144 | |||
145 | /* BIU buffer allocations */ | ||
146 | ocd_writel(8, CPURSLMT); /* CPU */ | ||
147 | titan_writel(4, CPGRWL); /* GPI / Ethernet */ | ||
148 | |||
149 | /* Map control registers located in FPGA */ | ||
150 | ctl_regs = ioremap_nocache(EXCITE_PHYS_FPGA + EXCITE_FPGA_SYSCTL, 16); | ||
151 | if (!ctl_regs) | ||
152 | panic("eXcite: failed to map platform control registers\n"); | ||
153 | memcpy_fromio(buf, ctl_regs + 2, ARRAY_SIZE(buf)); | ||
154 | unit_id = buf[0] | (buf[1] << 8) | (buf[2] << 16); | ||
155 | |||
156 | /* Clear the reboot flag */ | ||
157 | dpr = ioremap_nocache(EXCITE_PHYS_FPGA + EXCITE_FPGA_DPR, 1); | ||
158 | reg = __raw_readb(dpr); | ||
159 | __raw_writeb(reg & 0x7f, dpr); | ||
160 | iounmap(dpr); | ||
161 | |||
162 | /* Interrupt controller setup */ | ||
163 | for (i = INTP0Status0; i < INTP0Status0 + 0x80; i += 0x10) { | ||
164 | ocd_writel(0x00000000, i + 0x04); | ||
165 | ocd_writel(0xffffffff, i + 0x0c); | ||
166 | } | ||
167 | ocd_writel(0x2, NMICONFIG); | ||
168 | |||
169 | ocd_writel(0x1 << (TITAN_MSGINT % 0x20), | ||
170 | INTP0Mask0 + (0x10 * (TITAN_MSGINT / 0x20))); | ||
171 | ocd_writel((0x1 << (FPGA0_MSGINT % 0x20)) | ||
172 | | ocd_readl(INTP0Mask0 + (0x10 * (FPGA0_MSGINT / 0x20))), | ||
173 | INTP0Mask0 + (0x10 * (FPGA0_MSGINT / 0x20))); | ||
174 | ocd_writel((0x1 << (FPGA1_MSGINT % 0x20)) | ||
175 | | ocd_readl(INTP0Mask0 + (0x10 * (FPGA1_MSGINT / 0x20))), | ||
176 | INTP0Mask0 + (0x10 * (FPGA1_MSGINT / 0x20))); | ||
177 | ocd_writel((0x1 << (PHY_MSGINT % 0x20)) | ||
178 | | ocd_readl(INTP0Mask0 + (0x10 * (PHY_MSGINT / 0x20))), | ||
179 | INTP0Mask0 + (0x10 * (PHY_MSGINT / 0x20))); | ||
180 | #if USB_IRQ < 10 | ||
181 | ocd_writel((0x1 << (USB_MSGINT % 0x20)) | ||
182 | | ocd_readl(INTP0Mask0 + (0x10 * (USB_MSGINT / 0x20))), | ||
183 | INTP0Mask0 + (0x10 * (USB_MSGINT / 0x20))); | ||
184 | #endif | ||
185 | /* Enable the packet FIFO, XDMA and XDMA arbiter */ | ||
186 | titan_writel(0x00ff18ff, CPRR); | ||
187 | |||
188 | /* | ||
189 | * Set up the PADMUX. Power down all ethernet slices, | ||
190 | * they will be powered up and configured at device startup. | ||
191 | */ | ||
192 | titan_writel(0x00878206, CPTC1R); | ||
193 | titan_writel(0x00001100, CPTC0R); /* latch PADMUX, enable WCIMODE */ | ||
194 | |||
195 | /* Reset and enable the FIFO block */ | ||
196 | titan_writel(0x00000001, SDRXFCIE); | ||
197 | titan_writel(0x00000001, SDTXFCIE); | ||
198 | titan_writel(0x00000100, SDRXFCIE); | ||
199 | titan_writel(0x00000000, SDTXFCIE); | ||
200 | |||
201 | /* | ||
202 | * Initialize the common interrupt shared by all components of | ||
203 | * the GPI/Ethernet subsystem. | ||
204 | */ | ||
205 | titan_writel((EXCITE_PHYS_OCD >> 12), CPCFG0); | ||
206 | titan_writel(TITAN_MSGINT, CPCFG1); | ||
207 | |||
208 | /* | ||
209 | * XDMA configuration. | ||
210 | * In order for the XDMA to be sharable among multiple drivers, | ||
211 | * the setup must be done here in the platform. The reason is that | ||
212 | * this setup can only be done while the XDMA is in reset. If this | ||
213 | * were done in a driver, it would interrupt all other drivers | ||
214 | * using the XDMA. | ||
215 | */ | ||
216 | titan_writel(0x80021dff, GXCFG); /* XDMA reset */ | ||
217 | titan_writel(0x00000000, CPXCISRA); | ||
218 | titan_writel(0x00000000, CPXCISRB); /* clear pending interrupts */ | ||
219 | #if defined (CONFIG_HIGHMEM) | ||
220 | # error change for HIGHMEM support! | ||
221 | #else | ||
222 | titan_writel(0x00000000, GXDMADRPFX); /* buffer address prefix */ | ||
223 | #endif | ||
224 | titan_writel(0, GXDMA_DESCADR); | ||
225 | |||
226 | for (i = 0x5040; i <= 0x5300; i += 0x0040) | ||
227 | titan_writel(0x80080000, i); /* reset channel */ | ||
228 | |||
229 | titan_writel((0x1 << 29) /* no sparse tx descr. */ | ||
230 | | (0x1 << 28) /* no sparse rx descr. */ | ||
231 | | (0x1 << 23) | (0x1 << 24) /* descriptor coherency */ | ||
232 | | (0x1 << 21) | (0x1 << 22) /* data coherency */ | ||
233 | | (0x1 << 17) | ||
234 | | 0x1dff, | ||
235 | GXCFG); | ||
236 | |||
237 | #if defined(CONFIG_SMP) | ||
238 | # error No SMP support | ||
239 | #else | ||
240 | /* All interrupts go to core #0 only. */ | ||
241 | titan_writel(0x1f007fff, CPDST0A); | ||
242 | titan_writel(0x00000000, CPDST0B); | ||
243 | titan_writel(0x0000ff3f, CPDST1A); | ||
244 | titan_writel(0x00000000, CPDST1B); | ||
245 | titan_writel(0x00ffffff, CPXDSTA); | ||
246 | titan_writel(0x00000000, CPXDSTB); | ||
247 | #endif | ||
248 | |||
249 | /* Enable DUART interrupts, disable everything else. */ | ||
250 | titan_writel(0x04000000, CPGIG0ER); | ||
251 | titan_writel(0x000000c0, CPGIG1ER); | ||
252 | |||
253 | excite_procfs_init(); | ||
254 | return 0; | ||
255 | } | ||
256 | |||
257 | void __init plat_setup(void) | ||
258 | { | ||
259 | volatile u32 * const boot_ocd_base = (u32 *) 0xbf7fc000; | ||
260 | |||
261 | /* Announce RAM to system */ | ||
262 | add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); | ||
263 | |||
264 | /* Set up timer initialization hooks */ | ||
265 | board_time_init = excite_timer_init; | ||
266 | board_timer_setup = excite_timer_setup; | ||
267 | |||
268 | /* Set up the peripheral address map */ | ||
269 | *(boot_ocd_base + (LKB9 / sizeof (u32))) = 0; | ||
270 | *(boot_ocd_base + (LKB10 / sizeof (u32))) = 0; | ||
271 | *(boot_ocd_base + (LKB11 / sizeof (u32))) = 0; | ||
272 | *(boot_ocd_base + (LKB12 / sizeof (u32))) = 0; | ||
273 | wmb(); | ||
274 | *(boot_ocd_base + (LKB0 / sizeof (u32))) = EXCITE_PHYS_OCD >> 4; | ||
275 | wmb(); | ||
276 | |||
277 | ocd_writel((EXCITE_PHYS_TITAN >> 4) | 0x1UL, LKB5); | ||
278 | ocd_writel(((EXCITE_SIZE_TITAN >> 4) & 0x7fffff00) - 0x100, LKM5); | ||
279 | ocd_writel((EXCITE_PHYS_SCRAM >> 4) | 0x1UL, LKB13); | ||
280 | ocd_writel(((EXCITE_SIZE_SCRAM >> 4) & 0xffffff00) - 0x100, LKM13); | ||
281 | |||
282 | /* Local bus slot #0 */ | ||
283 | ocd_writel(0x00040510, LDP0); | ||
284 | ocd_writel((EXCITE_PHYS_BOOTROM >> 4) | 0x1UL, LKB9); | ||
285 | ocd_writel(((EXCITE_SIZE_BOOTROM >> 4) & 0x03ffff00) - 0x100, LKM9); | ||
286 | |||
287 | /* Local bus slot #2 */ | ||
288 | ocd_writel(0x00000330, LDP2); | ||
289 | ocd_writel((EXCITE_PHYS_FPGA >> 4) | 0x1, LKB11); | ||
290 | ocd_writel(((EXCITE_SIZE_FPGA >> 4) - 0x100) & 0x03ffff00, LKM11); | ||
291 | |||
292 | /* Local bus slot #3 */ | ||
293 | ocd_writel(0x00123413, LDP3); | ||
294 | ocd_writel((EXCITE_PHYS_NAND >> 4) | 0x1, LKB12); | ||
295 | ocd_writel(((EXCITE_SIZE_NAND >> 4) - 0x100) & 0x03ffff00, LKM12); | ||
296 | } | ||
297 | |||
298 | |||
299 | |||
300 | console_initcall(excite_init_console); | ||
301 | arch_initcall(excite_platform_init); | ||
302 | |||
303 | EXPORT_SYMBOL(titan_lock); | ||
304 | EXPORT_SYMBOL(titan_irqflags); | ||
305 | EXPORT_SYMBOL(titan_irq); | ||
306 | EXPORT_SYMBOL(ocd_base); | ||
307 | EXPORT_SYMBOL(titan_base); | ||
diff --git a/arch/mips/cobalt/console.c b/arch/mips/cobalt/console.c index 45c2d27c7564..300797d5f558 100644 --- a/arch/mips/cobalt/console.c +++ b/arch/mips/cobalt/console.c | |||
@@ -41,3 +41,8 @@ void __init cobalt_early_console(void) | |||
41 | 41 | ||
42 | printk("Cobalt: early console registered\n"); | 42 | printk("Cobalt: early console registered\n"); |
43 | } | 43 | } |
44 | |||
45 | void __init disable_early_printk(void) | ||
46 | { | ||
47 | unregister_console(&cons_info); | ||
48 | } | ||
diff --git a/arch/mips/cobalt/setup.c b/arch/mips/cobalt/setup.c index 4f9ea1210023..ca719d6398bd 100644 --- a/arch/mips/cobalt/setup.c +++ b/arch/mips/cobalt/setup.c | |||
@@ -68,19 +68,46 @@ static void __init cobalt_timer_setup(struct irqaction *irq) | |||
68 | extern struct pci_ops gt64111_pci_ops; | 68 | extern struct pci_ops gt64111_pci_ops; |
69 | 69 | ||
70 | static struct resource cobalt_mem_resource = { | 70 | static struct resource cobalt_mem_resource = { |
71 | "PCI memory", GT64111_MEM_BASE, GT64111_MEM_END, IORESOURCE_MEM | 71 | .start = GT64111_MEM_BASE, |
72 | .end = GT64111_MEM_END, | ||
73 | .name = "PCI memory", | ||
74 | .flags = IORESOURCE_MEM | ||
72 | }; | 75 | }; |
73 | 76 | ||
74 | static struct resource cobalt_io_resource = { | 77 | static struct resource cobalt_io_resource = { |
75 | "PCI I/O", 0x1000, 0xffff, IORESOURCE_IO | 78 | .start = 0x1000, |
79 | .end = 0xffff, | ||
80 | .name = "PCI I/O", | ||
81 | .flags = IORESOURCE_IO | ||
76 | }; | 82 | }; |
77 | 83 | ||
78 | static struct resource cobalt_io_resources[] = { | 84 | static struct resource cobalt_io_resources[] = { |
79 | { "dma1", 0x00, 0x1f, IORESOURCE_BUSY }, | 85 | { |
80 | { "timer", 0x40, 0x5f, IORESOURCE_BUSY }, | 86 | .start = 0x00, |
81 | { "keyboard", 0x60, 0x6f, IORESOURCE_BUSY }, | 87 | .end = 0x1f, |
82 | { "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY }, | 88 | .name = "dma1", |
83 | { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY }, | 89 | .flags = IORESOURCE_BUSY |
90 | }, { | ||
91 | .start = 0x40, | ||
92 | .end = 0x5f, | ||
93 | .name = "timer", | ||
94 | .flags = IORESOURCE_BUSY | ||
95 | }, { | ||
96 | .start = 0x60, | ||
97 | .end = 0x6f, | ||
98 | .name = "keyboard", | ||
99 | .flags = IORESOURCE_BUSY | ||
100 | }, { | ||
101 | .start = 0x80, | ||
102 | .end = 0x8f, | ||
103 | .name = "dma page reg", | ||
104 | .flags = IORESOURCE_BUSY | ||
105 | }, { | ||
106 | .start = 0xc0, | ||
107 | .end = 0xdf, | ||
108 | .name = "dma2", | ||
109 | .flags = IORESOURCE_BUSY | ||
110 | }, | ||
84 | }; | 111 | }; |
85 | 112 | ||
86 | #define COBALT_IO_RESOURCES (sizeof(cobalt_io_resources)/sizeof(struct resource)) | 113 | #define COBALT_IO_RESOURCES (sizeof(cobalt_io_resources)/sizeof(struct resource)) |
@@ -93,7 +120,7 @@ static struct pci_controller cobalt_pci_controller = { | |||
93 | .io_offset = 0 - GT64111_IO_BASE | 120 | .io_offset = 0 - GT64111_IO_BASE |
94 | }; | 121 | }; |
95 | 122 | ||
96 | void __init plat_setup(void) | 123 | void __init plat_mem_setup(void) |
97 | { | 124 | { |
98 | static struct uart_port uart; | 125 | static struct uart_port uart; |
99 | unsigned int devfn = PCI_DEVFN(COBALT_PCICONF_VIA, 0); | 126 | unsigned int devfn = PCI_DEVFN(COBALT_PCICONF_VIA, 0); |
diff --git a/arch/mips/configs/atlas_defconfig b/arch/mips/configs/atlas_defconfig index 4b080bcb258f..0cc1b3c51959 100644 --- a/arch/mips/configs/atlas_defconfig +++ b/arch/mips/configs/atlas_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_ATLAS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -143,6 +141,15 @@ CONFIG_FLATMEM=y | |||
143 | CONFIG_FLAT_NODE_MEM_MAP=y | 141 | CONFIG_FLAT_NODE_MEM_MAP=y |
144 | # CONFIG_SPARSEMEM_STATIC is not set | 142 | # CONFIG_SPARSEMEM_STATIC is not set |
145 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 143 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
144 | # CONFIG_HZ_48 is not set | ||
145 | CONFIG_HZ_100=y | ||
146 | # CONFIG_HZ_128 is not set | ||
147 | # CONFIG_HZ_250 is not set | ||
148 | # CONFIG_HZ_256 is not set | ||
149 | # CONFIG_HZ_1000 is not set | ||
150 | # CONFIG_HZ_1024 is not set | ||
151 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
152 | CONFIG_HZ=100 | ||
146 | CONFIG_PREEMPT_NONE=y | 153 | CONFIG_PREEMPT_NONE=y |
147 | # CONFIG_PREEMPT_VOLUNTARY is not set | 154 | # CONFIG_PREEMPT_VOLUNTARY is not set |
148 | # CONFIG_PREEMPT is not set | 155 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/bigsur_defconfig b/arch/mips/configs/bigsur_defconfig index d85cda58d650..dabf90a94b21 100644 --- a/arch/mips/configs/bigsur_defconfig +++ b/arch/mips/configs/bigsur_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -145,6 +143,15 @@ CONFIG_FLATMEM=y | |||
145 | CONFIG_FLAT_NODE_MEM_MAP=y | 143 | CONFIG_FLAT_NODE_MEM_MAP=y |
146 | # CONFIG_SPARSEMEM_STATIC is not set | 144 | # CONFIG_SPARSEMEM_STATIC is not set |
147 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 145 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
146 | # CONFIG_HZ_48 is not set | ||
147 | # CONFIG_HZ_100 is not set | ||
148 | # CONFIG_HZ_128 is not set | ||
149 | # CONFIG_HZ_250 is not set | ||
150 | # CONFIG_HZ_256 is not set | ||
151 | CONFIG_HZ_1000=y | ||
152 | # CONFIG_HZ_1024 is not set | ||
153 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
154 | CONFIG_HZ=1000 | ||
148 | CONFIG_SMP=y | 155 | CONFIG_SMP=y |
149 | CONFIG_NR_CPUS=4 | 156 | CONFIG_NR_CPUS=4 |
150 | CONFIG_PREEMPT_NONE=y | 157 | CONFIG_PREEMPT_NONE=y |
diff --git a/arch/mips/configs/capcella_defconfig b/arch/mips/configs/capcella_defconfig index ca0af1683a00..aeb7be804799 100644 --- a/arch/mips/configs/capcella_defconfig +++ b/arch/mips/configs/capcella_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -132,6 +130,15 @@ CONFIG_FLATMEM=y | |||
132 | CONFIG_FLAT_NODE_MEM_MAP=y | 130 | CONFIG_FLAT_NODE_MEM_MAP=y |
133 | # CONFIG_SPARSEMEM_STATIC is not set | 131 | # CONFIG_SPARSEMEM_STATIC is not set |
134 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 132 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
133 | # CONFIG_HZ_48 is not set | ||
134 | # CONFIG_HZ_100 is not set | ||
135 | # CONFIG_HZ_128 is not set | ||
136 | # CONFIG_HZ_250 is not set | ||
137 | # CONFIG_HZ_256 is not set | ||
138 | CONFIG_HZ_1000=y | ||
139 | # CONFIG_HZ_1024 is not set | ||
140 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
141 | CONFIG_HZ=1000 | ||
135 | CONFIG_PREEMPT_NONE=y | 142 | CONFIG_PREEMPT_NONE=y |
136 | # CONFIG_PREEMPT_VOLUNTARY is not set | 143 | # CONFIG_PREEMPT_VOLUNTARY is not set |
137 | # CONFIG_PREEMPT is not set | 144 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/cobalt_defconfig b/arch/mips/configs/cobalt_defconfig index 7d269e609282..d680d3e17112 100644 --- a/arch/mips/configs/cobalt_defconfig +++ b/arch/mips/configs/cobalt_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_COBALT=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -129,6 +127,15 @@ CONFIG_FLATMEM=y | |||
129 | CONFIG_FLAT_NODE_MEM_MAP=y | 127 | CONFIG_FLAT_NODE_MEM_MAP=y |
130 | # CONFIG_SPARSEMEM_STATIC is not set | 128 | # CONFIG_SPARSEMEM_STATIC is not set |
131 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 129 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
130 | # CONFIG_HZ_48 is not set | ||
131 | # CONFIG_HZ_100 is not set | ||
132 | # CONFIG_HZ_128 is not set | ||
133 | # CONFIG_HZ_250 is not set | ||
134 | # CONFIG_HZ_256 is not set | ||
135 | CONFIG_HZ_1000=y | ||
136 | # CONFIG_HZ_1024 is not set | ||
137 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
138 | CONFIG_HZ=1000 | ||
132 | CONFIG_PREEMPT_NONE=y | 139 | CONFIG_PREEMPT_NONE=y |
133 | # CONFIG_PREEMPT_VOLUNTARY is not set | 140 | # CONFIG_PREEMPT_VOLUNTARY is not set |
134 | # CONFIG_PREEMPT is not set | 141 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/db1000_defconfig b/arch/mips/configs/db1000_defconfig index 579b665e3339..6a7aa401462f 100644 --- a/arch/mips/configs/db1000_defconfig +++ b/arch/mips/configs/db1000_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_DB1000=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/db1100_defconfig b/arch/mips/configs/db1100_defconfig index e5eb53867422..5c2da563e528 100644 --- a/arch/mips/configs/db1100_defconfig +++ b/arch/mips/configs/db1100_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_DB1100=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/db1200_defconfig b/arch/mips/configs/db1200_defconfig index a43fb2329fd5..85ef90ce0944 100644 --- a/arch/mips/configs/db1200_defconfig +++ b/arch/mips/configs/db1200_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_DB1200=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/db1500_defconfig b/arch/mips/configs/db1500_defconfig index ad632d87c4ef..6f757d8a5a6c 100644 --- a/arch/mips/configs/db1500_defconfig +++ b/arch/mips/configs/db1500_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_DB1500=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -132,6 +130,15 @@ CONFIG_FLATMEM=y | |||
132 | CONFIG_FLAT_NODE_MEM_MAP=y | 130 | CONFIG_FLAT_NODE_MEM_MAP=y |
133 | # CONFIG_SPARSEMEM_STATIC is not set | 131 | # CONFIG_SPARSEMEM_STATIC is not set |
134 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 132 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
133 | # CONFIG_HZ_48 is not set | ||
134 | # CONFIG_HZ_100 is not set | ||
135 | # CONFIG_HZ_128 is not set | ||
136 | # CONFIG_HZ_250 is not set | ||
137 | # CONFIG_HZ_256 is not set | ||
138 | CONFIG_HZ_1000=y | ||
139 | # CONFIG_HZ_1024 is not set | ||
140 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
141 | CONFIG_HZ=1000 | ||
135 | CONFIG_PREEMPT_NONE=y | 142 | CONFIG_PREEMPT_NONE=y |
136 | # CONFIG_PREEMPT_VOLUNTARY is not set | 143 | # CONFIG_PREEMPT_VOLUNTARY is not set |
137 | # CONFIG_PREEMPT is not set | 144 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/db1550_defconfig b/arch/mips/configs/db1550_defconfig index 8130e23dc255..da4c7e811bef 100644 --- a/arch/mips/configs/db1550_defconfig +++ b/arch/mips/configs/db1550_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_DB1550=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -131,6 +129,15 @@ CONFIG_FLATMEM=y | |||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | 129 | CONFIG_FLAT_NODE_MEM_MAP=y |
132 | # CONFIG_SPARSEMEM_STATIC is not set | 130 | # CONFIG_SPARSEMEM_STATIC is not set |
133 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 131 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
132 | # CONFIG_HZ_48 is not set | ||
133 | # CONFIG_HZ_100 is not set | ||
134 | # CONFIG_HZ_128 is not set | ||
135 | # CONFIG_HZ_250 is not set | ||
136 | # CONFIG_HZ_256 is not set | ||
137 | CONFIG_HZ_1000=y | ||
138 | # CONFIG_HZ_1024 is not set | ||
139 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
140 | CONFIG_HZ=1000 | ||
134 | CONFIG_PREEMPT_NONE=y | 141 | CONFIG_PREEMPT_NONE=y |
135 | # CONFIG_PREEMPT_VOLUNTARY is not set | 142 | # CONFIG_PREEMPT_VOLUNTARY is not set |
136 | # CONFIG_PREEMPT is not set | 143 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ddb5477_defconfig b/arch/mips/configs/ddb5477_defconfig index 8c911b671415..c1c6bfee970e 100644 --- a/arch/mips/configs/ddb5477_defconfig +++ b/arch/mips/configs/ddb5477_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | CONFIG_DDB5477=y | 44 | CONFIG_DDB5477=y |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -129,6 +127,15 @@ CONFIG_FLATMEM=y | |||
129 | CONFIG_FLAT_NODE_MEM_MAP=y | 127 | CONFIG_FLAT_NODE_MEM_MAP=y |
130 | # CONFIG_SPARSEMEM_STATIC is not set | 128 | # CONFIG_SPARSEMEM_STATIC is not set |
131 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 129 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
130 | # CONFIG_HZ_48 is not set | ||
131 | # CONFIG_HZ_100 is not set | ||
132 | # CONFIG_HZ_128 is not set | ||
133 | # CONFIG_HZ_250 is not set | ||
134 | # CONFIG_HZ_256 is not set | ||
135 | CONFIG_HZ_1000=y | ||
136 | # CONFIG_HZ_1024 is not set | ||
137 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
138 | CONFIG_HZ=1000 | ||
132 | CONFIG_PREEMPT_NONE=y | 139 | CONFIG_PREEMPT_NONE=y |
133 | # CONFIG_PREEMPT_VOLUNTARY is not set | 140 | # CONFIG_PREEMPT_VOLUNTARY is not set |
134 | # CONFIG_PREEMPT is not set | 141 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/decstation_defconfig b/arch/mips/configs/decstation_defconfig index d838496e114f..d5d0d3faae94 100644 --- a/arch/mips/configs/decstation_defconfig +++ b/arch/mips/configs/decstation_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MACH_DECSTATION=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -128,6 +126,17 @@ CONFIG_FLATMEM=y | |||
128 | CONFIG_FLAT_NODE_MEM_MAP=y | 126 | CONFIG_FLAT_NODE_MEM_MAP=y |
129 | # CONFIG_SPARSEMEM_STATIC is not set | 127 | # CONFIG_SPARSEMEM_STATIC is not set |
130 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 128 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
129 | # CONFIG_HZ_48 is not set | ||
130 | # CONFIG_HZ_100 is not set | ||
131 | CONFIG_HZ_128=y | ||
132 | # CONFIG_HZ_250 is not set | ||
133 | # CONFIG_HZ_256 is not set | ||
134 | # CONFIG_HZ_1000 is not set | ||
135 | # CONFIG_HZ_1024 is not set | ||
136 | CONFIG_SYS_SUPPORTS_128HZ=y | ||
137 | CONFIG_SYS_SUPPORTS_256HZ=y | ||
138 | CONFIG_SYS_SUPPORTS_1024HZ=y | ||
139 | CONFIG_HZ=128 | ||
131 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
132 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
133 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/e55_defconfig b/arch/mips/configs/e55_defconfig index 0760f4318910..439677ba751c 100644 --- a/arch/mips/configs/e55_defconfig +++ b/arch/mips/configs/e55_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/emma2rh_defconfig b/arch/mips/configs/emma2rh_defconfig new file mode 100644 index 000000000000..01f29f44f3e8 --- /dev/null +++ b/arch/mips/configs/emma2rh_defconfig | |||
@@ -0,0 +1,1207 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17 | ||
4 | # Sun Jun 18 13:46:53 2006 | ||
5 | # | ||
6 | CONFIG_MIPS=y | ||
7 | |||
8 | # | ||
9 | # Machine selection | ||
10 | # | ||
11 | # CONFIG_MIPS_MTX1 is not set | ||
12 | # CONFIG_MIPS_BOSPORUS is not set | ||
13 | # CONFIG_MIPS_PB1000 is not set | ||
14 | # CONFIG_MIPS_PB1100 is not set | ||
15 | # CONFIG_MIPS_PB1500 is not set | ||
16 | # CONFIG_MIPS_PB1550 is not set | ||
17 | # CONFIG_MIPS_PB1200 is not set | ||
18 | # CONFIG_MIPS_DB1000 is not set | ||
19 | # CONFIG_MIPS_DB1100 is not set | ||
20 | # CONFIG_MIPS_DB1500 is not set | ||
21 | # CONFIG_MIPS_DB1550 is not set | ||
22 | # CONFIG_MIPS_DB1200 is not set | ||
23 | # CONFIG_MIPS_MIRAGE is not set | ||
24 | # CONFIG_MIPS_COBALT is not set | ||
25 | # CONFIG_MACH_DECSTATION is not set | ||
26 | # CONFIG_MIPS_EV64120 is not set | ||
27 | # CONFIG_MIPS_EV96100 is not set | ||
28 | # CONFIG_MIPS_IVR is not set | ||
29 | # CONFIG_MIPS_ITE8172 is not set | ||
30 | # CONFIG_MACH_JAZZ is not set | ||
31 | # CONFIG_LASAT is not set | ||
32 | # CONFIG_MIPS_ATLAS is not set | ||
33 | # CONFIG_MIPS_MALTA is not set | ||
34 | # CONFIG_MIPS_SEAD is not set | ||
35 | # CONFIG_WR_PPMC is not set | ||
36 | # CONFIG_MIPS_SIM is not set | ||
37 | # CONFIG_MOMENCO_JAGUAR_ATX is not set | ||
38 | # CONFIG_MOMENCO_OCELOT is not set | ||
39 | # CONFIG_MOMENCO_OCELOT_3 is not set | ||
40 | # CONFIG_MOMENCO_OCELOT_C is not set | ||
41 | # CONFIG_MOMENCO_OCELOT_G is not set | ||
42 | # CONFIG_MIPS_XXS1500 is not set | ||
43 | # CONFIG_PNX8550_V2PCI is not set | ||
44 | # CONFIG_PNX8550_JBS is not set | ||
45 | # CONFIG_DDB5477 is not set | ||
46 | # CONFIG_MACH_VR41XX is not set | ||
47 | # CONFIG_PMC_YOSEMITE is not set | ||
48 | # CONFIG_QEMU is not set | ||
49 | CONFIG_MARKEINS=y | ||
50 | # CONFIG_SGI_IP22 is not set | ||
51 | # CONFIG_SGI_IP27 is not set | ||
52 | # CONFIG_SGI_IP32 is not set | ||
53 | # CONFIG_SIBYTE_BIGSUR is not set | ||
54 | # CONFIG_SIBYTE_SWARM is not set | ||
55 | # CONFIG_SIBYTE_SENTOSA is not set | ||
56 | # CONFIG_SIBYTE_RHONE is not set | ||
57 | # CONFIG_SIBYTE_CARMEL is not set | ||
58 | # CONFIG_SIBYTE_PTSWARM is not set | ||
59 | # CONFIG_SIBYTE_LITTLESUR is not set | ||
60 | # CONFIG_SIBYTE_CRHINE is not set | ||
61 | # CONFIG_SIBYTE_CRHONE is not set | ||
62 | # CONFIG_SNI_RM200_PCI is not set | ||
63 | # CONFIG_TOSHIBA_JMR3927 is not set | ||
64 | # CONFIG_TOSHIBA_RBTX4927 is not set | ||
65 | # CONFIG_TOSHIBA_RBTX4938 is not set | ||
66 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
67 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
68 | CONFIG_GENERIC_HWEIGHT=y | ||
69 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
70 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
71 | CONFIG_DMA_NONCOHERENT=y | ||
72 | CONFIG_DMA_NEED_PCI_MAP_STATE=y | ||
73 | CONFIG_CPU_BIG_ENDIAN=y | ||
74 | # CONFIG_CPU_LITTLE_ENDIAN is not set | ||
75 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | ||
76 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y | ||
77 | CONFIG_IRQ_CPU=y | ||
78 | CONFIG_SWAP_IO_SPACE=y | ||
79 | CONFIG_EMMA2RH=y | ||
80 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | ||
81 | |||
82 | # | ||
83 | # CPU selection | ||
84 | # | ||
85 | # CONFIG_CPU_MIPS32_R1 is not set | ||
86 | # CONFIG_CPU_MIPS32_R2 is not set | ||
87 | # CONFIG_CPU_MIPS64_R1 is not set | ||
88 | # CONFIG_CPU_MIPS64_R2 is not set | ||
89 | # CONFIG_CPU_R3000 is not set | ||
90 | # CONFIG_CPU_TX39XX is not set | ||
91 | # CONFIG_CPU_VR41XX is not set | ||
92 | # CONFIG_CPU_R4300 is not set | ||
93 | # CONFIG_CPU_R4X00 is not set | ||
94 | # CONFIG_CPU_TX49XX is not set | ||
95 | CONFIG_CPU_R5000=y | ||
96 | # CONFIG_CPU_R5432 is not set | ||
97 | # CONFIG_CPU_R6000 is not set | ||
98 | # CONFIG_CPU_NEVADA is not set | ||
99 | # CONFIG_CPU_R8000 is not set | ||
100 | # CONFIG_CPU_R10000 is not set | ||
101 | # CONFIG_CPU_RM7000 is not set | ||
102 | # CONFIG_CPU_RM9000 is not set | ||
103 | # CONFIG_CPU_SB1 is not set | ||
104 | CONFIG_SYS_HAS_CPU_R5000=y | ||
105 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | ||
106 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||
107 | CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y | ||
108 | |||
109 | # | ||
110 | # Kernel type | ||
111 | # | ||
112 | CONFIG_32BIT=y | ||
113 | # CONFIG_64BIT is not set | ||
114 | CONFIG_PAGE_SIZE_4KB=y | ||
115 | # CONFIG_PAGE_SIZE_8KB is not set | ||
116 | # CONFIG_PAGE_SIZE_16KB is not set | ||
117 | # CONFIG_PAGE_SIZE_64KB is not set | ||
118 | CONFIG_MIPS_MT_DISABLED=y | ||
119 | # CONFIG_MIPS_MT_SMTC is not set | ||
120 | # CONFIG_MIPS_MT_SMP is not set | ||
121 | # CONFIG_MIPS_VPE_LOADER is not set | ||
122 | # CONFIG_64BIT_PHYS_ADDR is not set | ||
123 | CONFIG_CPU_HAS_LLSC=y | ||
124 | CONFIG_CPU_HAS_SYNC=y | ||
125 | CONFIG_GENERIC_HARDIRQS=y | ||
126 | CONFIG_GENERIC_IRQ_PROBE=y | ||
127 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
128 | CONFIG_SELECT_MEMORY_MODEL=y | ||
129 | CONFIG_FLATMEM_MANUAL=y | ||
130 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
131 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
132 | CONFIG_FLATMEM=y | ||
133 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
134 | # CONFIG_SPARSEMEM_STATIC is not set | ||
135 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
136 | # CONFIG_HZ_48 is not set | ||
137 | # CONFIG_HZ_100 is not set | ||
138 | # CONFIG_HZ_128 is not set | ||
139 | # CONFIG_HZ_250 is not set | ||
140 | # CONFIG_HZ_256 is not set | ||
141 | CONFIG_HZ_1000=y | ||
142 | # CONFIG_HZ_1024 is not set | ||
143 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
144 | CONFIG_HZ=1000 | ||
145 | # CONFIG_PREEMPT_NONE is not set | ||
146 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
147 | CONFIG_PREEMPT=y | ||
148 | CONFIG_PREEMPT_BKL=y | ||
149 | |||
150 | # | ||
151 | # Code maturity level options | ||
152 | # | ||
153 | CONFIG_EXPERIMENTAL=y | ||
154 | CONFIG_BROKEN_ON_SMP=y | ||
155 | CONFIG_LOCK_KERNEL=y | ||
156 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
157 | |||
158 | # | ||
159 | # General setup | ||
160 | # | ||
161 | CONFIG_LOCALVERSION="" | ||
162 | CONFIG_LOCALVERSION_AUTO=y | ||
163 | CONFIG_SWAP=y | ||
164 | CONFIG_SYSVIPC=y | ||
165 | CONFIG_POSIX_MQUEUE=y | ||
166 | CONFIG_BSD_PROCESS_ACCT=y | ||
167 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
168 | CONFIG_SYSCTL=y | ||
169 | # CONFIG_AUDIT is not set | ||
170 | CONFIG_IKCONFIG=y | ||
171 | CONFIG_IKCONFIG_PROC=y | ||
172 | # CONFIG_RELAY is not set | ||
173 | CONFIG_INITRAMFS_SOURCE="" | ||
174 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
175 | CONFIG_EMBEDDED=y | ||
176 | CONFIG_KALLSYMS=y | ||
177 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
178 | CONFIG_HOTPLUG=y | ||
179 | CONFIG_PRINTK=y | ||
180 | CONFIG_BUG=y | ||
181 | CONFIG_ELF_CORE=y | ||
182 | CONFIG_BASE_FULL=y | ||
183 | CONFIG_FUTEX=y | ||
184 | CONFIG_EPOLL=y | ||
185 | CONFIG_SHMEM=y | ||
186 | CONFIG_SLAB=y | ||
187 | # CONFIG_TINY_SHMEM is not set | ||
188 | CONFIG_BASE_SMALL=0 | ||
189 | # CONFIG_SLOB is not set | ||
190 | CONFIG_OBSOLETE_INTERMODULE=y | ||
191 | |||
192 | # | ||
193 | # Loadable module support | ||
194 | # | ||
195 | CONFIG_MODULES=y | ||
196 | CONFIG_MODULE_UNLOAD=y | ||
197 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
198 | CONFIG_MODVERSIONS=y | ||
199 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
200 | CONFIG_KMOD=y | ||
201 | |||
202 | # | ||
203 | # Block layer | ||
204 | # | ||
205 | CONFIG_LBD=y | ||
206 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
207 | # CONFIG_LSF is not set | ||
208 | |||
209 | # | ||
210 | # IO Schedulers | ||
211 | # | ||
212 | CONFIG_IOSCHED_NOOP=y | ||
213 | CONFIG_IOSCHED_AS=y | ||
214 | CONFIG_IOSCHED_DEADLINE=y | ||
215 | CONFIG_IOSCHED_CFQ=y | ||
216 | CONFIG_DEFAULT_AS=y | ||
217 | # CONFIG_DEFAULT_DEADLINE is not set | ||
218 | # CONFIG_DEFAULT_CFQ is not set | ||
219 | # CONFIG_DEFAULT_NOOP is not set | ||
220 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
221 | |||
222 | # | ||
223 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | ||
224 | # | ||
225 | CONFIG_HW_HAS_PCI=y | ||
226 | CONFIG_PCI=y | ||
227 | CONFIG_MMU=y | ||
228 | |||
229 | # | ||
230 | # PCCARD (PCMCIA/CardBus) support | ||
231 | # | ||
232 | # CONFIG_PCCARD is not set | ||
233 | |||
234 | # | ||
235 | # PCI Hotplug Support | ||
236 | # | ||
237 | # CONFIG_HOTPLUG_PCI is not set | ||
238 | |||
239 | # | ||
240 | # Executable file formats | ||
241 | # | ||
242 | CONFIG_BINFMT_ELF=y | ||
243 | # CONFIG_BINFMT_MISC is not set | ||
244 | CONFIG_TRAD_SIGNALS=y | ||
245 | |||
246 | # | ||
247 | # Networking | ||
248 | # | ||
249 | CONFIG_NET=y | ||
250 | |||
251 | # | ||
252 | # Networking options | ||
253 | # | ||
254 | # CONFIG_NETDEBUG is not set | ||
255 | CONFIG_PACKET=y | ||
256 | CONFIG_PACKET_MMAP=y | ||
257 | CONFIG_UNIX=y | ||
258 | CONFIG_XFRM=y | ||
259 | # CONFIG_XFRM_USER is not set | ||
260 | CONFIG_NET_KEY=y | ||
261 | CONFIG_INET=y | ||
262 | CONFIG_IP_MULTICAST=y | ||
263 | CONFIG_IP_ADVANCED_ROUTER=y | ||
264 | CONFIG_ASK_IP_FIB_HASH=y | ||
265 | # CONFIG_IP_FIB_TRIE is not set | ||
266 | CONFIG_IP_FIB_HASH=y | ||
267 | CONFIG_IP_MULTIPLE_TABLES=y | ||
268 | # CONFIG_IP_ROUTE_FWMARK is not set | ||
269 | CONFIG_IP_ROUTE_MULTIPATH=y | ||
270 | # CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set | ||
271 | CONFIG_IP_ROUTE_VERBOSE=y | ||
272 | CONFIG_IP_PNP=y | ||
273 | # CONFIG_IP_PNP_DHCP is not set | ||
274 | CONFIG_IP_PNP_BOOTP=y | ||
275 | # CONFIG_IP_PNP_RARP is not set | ||
276 | # CONFIG_NET_IPIP is not set | ||
277 | # CONFIG_NET_IPGRE is not set | ||
278 | # CONFIG_IP_MROUTE is not set | ||
279 | # CONFIG_ARPD is not set | ||
280 | CONFIG_SYN_COOKIES=y | ||
281 | # CONFIG_INET_AH is not set | ||
282 | # CONFIG_INET_ESP is not set | ||
283 | # CONFIG_INET_IPCOMP is not set | ||
284 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
285 | # CONFIG_INET_TUNNEL is not set | ||
286 | CONFIG_INET_DIAG=y | ||
287 | CONFIG_INET_TCP_DIAG=y | ||
288 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
289 | CONFIG_TCP_CONG_BIC=y | ||
290 | |||
291 | # | ||
292 | # IP: Virtual Server Configuration | ||
293 | # | ||
294 | # CONFIG_IP_VS is not set | ||
295 | CONFIG_IPV6=m | ||
296 | # CONFIG_IPV6_PRIVACY is not set | ||
297 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
298 | # CONFIG_INET6_AH is not set | ||
299 | # CONFIG_INET6_ESP is not set | ||
300 | # CONFIG_INET6_IPCOMP is not set | ||
301 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
302 | # CONFIG_INET6_TUNNEL is not set | ||
303 | # CONFIG_IPV6_TUNNEL is not set | ||
304 | CONFIG_NETFILTER=y | ||
305 | # CONFIG_NETFILTER_DEBUG is not set | ||
306 | |||
307 | # | ||
308 | # Core Netfilter Configuration | ||
309 | # | ||
310 | # CONFIG_NETFILTER_NETLINK is not set | ||
311 | # CONFIG_NF_CONNTRACK is not set | ||
312 | # CONFIG_NETFILTER_XTABLES is not set | ||
313 | |||
314 | # | ||
315 | # IP: Netfilter Configuration | ||
316 | # | ||
317 | # CONFIG_IP_NF_CONNTRACK is not set | ||
318 | # CONFIG_IP_NF_QUEUE is not set | ||
319 | |||
320 | # | ||
321 | # IPv6: Netfilter Configuration (EXPERIMENTAL) | ||
322 | # | ||
323 | # CONFIG_IP6_NF_QUEUE is not set | ||
324 | |||
325 | # | ||
326 | # DCCP Configuration (EXPERIMENTAL) | ||
327 | # | ||
328 | # CONFIG_IP_DCCP is not set | ||
329 | |||
330 | # | ||
331 | # SCTP Configuration (EXPERIMENTAL) | ||
332 | # | ||
333 | CONFIG_IP_SCTP=m | ||
334 | # CONFIG_SCTP_DBG_MSG is not set | ||
335 | # CONFIG_SCTP_DBG_OBJCNT is not set | ||
336 | # CONFIG_SCTP_HMAC_NONE is not set | ||
337 | # CONFIG_SCTP_HMAC_SHA1 is not set | ||
338 | CONFIG_SCTP_HMAC_MD5=y | ||
339 | |||
340 | # | ||
341 | # TIPC Configuration (EXPERIMENTAL) | ||
342 | # | ||
343 | # CONFIG_TIPC is not set | ||
344 | # CONFIG_ATM is not set | ||
345 | # CONFIG_BRIDGE is not set | ||
346 | # CONFIG_VLAN_8021Q is not set | ||
347 | # CONFIG_DECNET is not set | ||
348 | # CONFIG_LLC2 is not set | ||
349 | # CONFIG_IPX is not set | ||
350 | # CONFIG_ATALK is not set | ||
351 | # CONFIG_X25 is not set | ||
352 | # CONFIG_LAPB is not set | ||
353 | # CONFIG_NET_DIVERT is not set | ||
354 | # CONFIG_ECONET is not set | ||
355 | # CONFIG_WAN_ROUTER is not set | ||
356 | |||
357 | # | ||
358 | # QoS and/or fair queueing | ||
359 | # | ||
360 | # CONFIG_NET_SCHED is not set | ||
361 | |||
362 | # | ||
363 | # Network testing | ||
364 | # | ||
365 | # CONFIG_NET_PKTGEN is not set | ||
366 | # CONFIG_HAMRADIO is not set | ||
367 | # CONFIG_IRDA is not set | ||
368 | # CONFIG_BT is not set | ||
369 | # CONFIG_IEEE80211 is not set | ||
370 | |||
371 | # | ||
372 | # Device Drivers | ||
373 | # | ||
374 | |||
375 | # | ||
376 | # Generic Driver Options | ||
377 | # | ||
378 | CONFIG_STANDALONE=y | ||
379 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
380 | # CONFIG_FW_LOADER is not set | ||
381 | |||
382 | # | ||
383 | # Connector - unified userspace <-> kernelspace linker | ||
384 | # | ||
385 | # CONFIG_CONNECTOR is not set | ||
386 | |||
387 | # | ||
388 | # Memory Technology Devices (MTD) | ||
389 | # | ||
390 | CONFIG_MTD=y | ||
391 | # CONFIG_MTD_DEBUG is not set | ||
392 | # CONFIG_MTD_CONCAT is not set | ||
393 | CONFIG_MTD_PARTITIONS=y | ||
394 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
395 | CONFIG_MTD_CMDLINE_PARTS=y | ||
396 | |||
397 | # | ||
398 | # User Modules And Translation Layers | ||
399 | # | ||
400 | CONFIG_MTD_CHAR=y | ||
401 | CONFIG_MTD_BLOCK=y | ||
402 | # CONFIG_FTL is not set | ||
403 | # CONFIG_NFTL is not set | ||
404 | # CONFIG_INFTL is not set | ||
405 | # CONFIG_RFD_FTL is not set | ||
406 | |||
407 | # | ||
408 | # RAM/ROM/Flash chip drivers | ||
409 | # | ||
410 | CONFIG_MTD_CFI=y | ||
411 | # CONFIG_MTD_JEDECPROBE is not set | ||
412 | CONFIG_MTD_GEN_PROBE=y | ||
413 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
414 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
415 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
416 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
417 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
418 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
419 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
420 | CONFIG_MTD_CFI_I1=y | ||
421 | CONFIG_MTD_CFI_I2=y | ||
422 | # CONFIG_MTD_CFI_I4 is not set | ||
423 | # CONFIG_MTD_CFI_I8 is not set | ||
424 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
425 | CONFIG_MTD_CFI_AMDSTD=y | ||
426 | # CONFIG_MTD_CFI_STAA is not set | ||
427 | CONFIG_MTD_CFI_UTIL=y | ||
428 | # CONFIG_MTD_RAM is not set | ||
429 | # CONFIG_MTD_ROM is not set | ||
430 | # CONFIG_MTD_ABSENT is not set | ||
431 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
432 | |||
433 | # | ||
434 | # Mapping drivers for chip access | ||
435 | # | ||
436 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
437 | CONFIG_MTD_PHYSMAP=y | ||
438 | CONFIG_MTD_PHYSMAP_START=0x1e000000 | ||
439 | CONFIG_MTD_PHYSMAP_LEN=0x02000000 | ||
440 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
441 | # CONFIG_MTD_PLATRAM is not set | ||
442 | |||
443 | # | ||
444 | # Self-contained MTD device drivers | ||
445 | # | ||
446 | # CONFIG_MTD_PMC551 is not set | ||
447 | # CONFIG_MTD_SLRAM is not set | ||
448 | # CONFIG_MTD_PHRAM is not set | ||
449 | # CONFIG_MTD_MTDRAM is not set | ||
450 | # CONFIG_MTD_BLOCK2MTD is not set | ||
451 | |||
452 | # | ||
453 | # Disk-On-Chip Device Drivers | ||
454 | # | ||
455 | # CONFIG_MTD_DOC2000 is not set | ||
456 | # CONFIG_MTD_DOC2001 is not set | ||
457 | # CONFIG_MTD_DOC2001PLUS is not set | ||
458 | |||
459 | # | ||
460 | # NAND Flash Device Drivers | ||
461 | # | ||
462 | # CONFIG_MTD_NAND is not set | ||
463 | |||
464 | # | ||
465 | # OneNAND Flash Device Drivers | ||
466 | # | ||
467 | # CONFIG_MTD_ONENAND is not set | ||
468 | |||
469 | # | ||
470 | # Parallel port support | ||
471 | # | ||
472 | # CONFIG_PARPORT is not set | ||
473 | |||
474 | # | ||
475 | # Plug and Play support | ||
476 | # | ||
477 | |||
478 | # | ||
479 | # Block devices | ||
480 | # | ||
481 | # CONFIG_BLK_CPQ_DA is not set | ||
482 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
483 | # CONFIG_BLK_DEV_DAC960 is not set | ||
484 | # CONFIG_BLK_DEV_UMEM is not set | ||
485 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
486 | CONFIG_BLK_DEV_LOOP=m | ||
487 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
488 | # CONFIG_BLK_DEV_NBD is not set | ||
489 | # CONFIG_BLK_DEV_SX8 is not set | ||
490 | # CONFIG_BLK_DEV_RAM is not set | ||
491 | # CONFIG_BLK_DEV_INITRD is not set | ||
492 | # CONFIG_CDROM_PKTCDVD is not set | ||
493 | # CONFIG_ATA_OVER_ETH is not set | ||
494 | |||
495 | # | ||
496 | # ATA/ATAPI/MFM/RLL support | ||
497 | # | ||
498 | # CONFIG_IDE is not set | ||
499 | |||
500 | # | ||
501 | # SCSI device support | ||
502 | # | ||
503 | # CONFIG_RAID_ATTRS is not set | ||
504 | CONFIG_SCSI=m | ||
505 | # CONFIG_SCSI_PROC_FS is not set | ||
506 | |||
507 | # | ||
508 | # SCSI support type (disk, tape, CD-ROM) | ||
509 | # | ||
510 | CONFIG_BLK_DEV_SD=m | ||
511 | # CONFIG_CHR_DEV_ST is not set | ||
512 | # CONFIG_CHR_DEV_OSST is not set | ||
513 | # CONFIG_BLK_DEV_SR is not set | ||
514 | CONFIG_CHR_DEV_SG=m | ||
515 | # CONFIG_CHR_DEV_SCH is not set | ||
516 | |||
517 | # | ||
518 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
519 | # | ||
520 | # CONFIG_SCSI_MULTI_LUN is not set | ||
521 | # CONFIG_SCSI_CONSTANTS is not set | ||
522 | # CONFIG_SCSI_LOGGING is not set | ||
523 | |||
524 | # | ||
525 | # SCSI Transport Attributes | ||
526 | # | ||
527 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
528 | # CONFIG_SCSI_FC_ATTRS is not set | ||
529 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
530 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
531 | |||
532 | # | ||
533 | # SCSI low-level drivers | ||
534 | # | ||
535 | # CONFIG_ISCSI_TCP is not set | ||
536 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
537 | # CONFIG_SCSI_3W_9XXX is not set | ||
538 | # CONFIG_SCSI_ACARD is not set | ||
539 | # CONFIG_SCSI_AACRAID is not set | ||
540 | # CONFIG_SCSI_AIC7XXX is not set | ||
541 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
542 | # CONFIG_SCSI_AIC79XX is not set | ||
543 | # CONFIG_SCSI_DPT_I2O is not set | ||
544 | # CONFIG_MEGARAID_NEWGEN is not set | ||
545 | # CONFIG_MEGARAID_LEGACY is not set | ||
546 | # CONFIG_MEGARAID_SAS is not set | ||
547 | # CONFIG_SCSI_SATA is not set | ||
548 | # CONFIG_SCSI_DMX3191D is not set | ||
549 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
550 | # CONFIG_SCSI_IPS is not set | ||
551 | # CONFIG_SCSI_INITIO is not set | ||
552 | # CONFIG_SCSI_INIA100 is not set | ||
553 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
554 | # CONFIG_SCSI_IPR is not set | ||
555 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
556 | # CONFIG_SCSI_QLA_FC is not set | ||
557 | # CONFIG_SCSI_LPFC is not set | ||
558 | # CONFIG_SCSI_DC395x is not set | ||
559 | # CONFIG_SCSI_DC390T is not set | ||
560 | # CONFIG_SCSI_NSP32 is not set | ||
561 | # CONFIG_SCSI_DEBUG is not set | ||
562 | |||
563 | # | ||
564 | # Multi-device support (RAID and LVM) | ||
565 | # | ||
566 | # CONFIG_MD is not set | ||
567 | |||
568 | # | ||
569 | # Fusion MPT device support | ||
570 | # | ||
571 | # CONFIG_FUSION is not set | ||
572 | # CONFIG_FUSION_SPI is not set | ||
573 | # CONFIG_FUSION_FC is not set | ||
574 | # CONFIG_FUSION_SAS is not set | ||
575 | |||
576 | # | ||
577 | # IEEE 1394 (FireWire) support | ||
578 | # | ||
579 | # CONFIG_IEEE1394 is not set | ||
580 | |||
581 | # | ||
582 | # I2O device support | ||
583 | # | ||
584 | # CONFIG_I2O is not set | ||
585 | |||
586 | # | ||
587 | # Network device support | ||
588 | # | ||
589 | CONFIG_NETDEVICES=y | ||
590 | # CONFIG_DUMMY is not set | ||
591 | # CONFIG_BONDING is not set | ||
592 | # CONFIG_EQUALIZER is not set | ||
593 | CONFIG_TUN=m | ||
594 | |||
595 | # | ||
596 | # ARCnet devices | ||
597 | # | ||
598 | # CONFIG_ARCNET is not set | ||
599 | |||
600 | # | ||
601 | # PHY device support | ||
602 | # | ||
603 | # CONFIG_PHYLIB is not set | ||
604 | |||
605 | # | ||
606 | # Ethernet (10 or 100Mbit) | ||
607 | # | ||
608 | CONFIG_NET_ETHERNET=y | ||
609 | CONFIG_MII=y | ||
610 | # CONFIG_HAPPYMEAL is not set | ||
611 | # CONFIG_SUNGEM is not set | ||
612 | # CONFIG_CASSINI is not set | ||
613 | # CONFIG_NET_VENDOR_3COM is not set | ||
614 | # CONFIG_DM9000 is not set | ||
615 | |||
616 | # | ||
617 | # Tulip family network device support | ||
618 | # | ||
619 | # CONFIG_NET_TULIP is not set | ||
620 | # CONFIG_HP100 is not set | ||
621 | CONFIG_NET_PCI=y | ||
622 | # CONFIG_PCNET32 is not set | ||
623 | # CONFIG_AMD8111_ETH is not set | ||
624 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
625 | # CONFIG_B44 is not set | ||
626 | # CONFIG_FORCEDETH is not set | ||
627 | # CONFIG_DGRS is not set | ||
628 | # CONFIG_EEPRO100 is not set | ||
629 | # CONFIG_E100 is not set | ||
630 | # CONFIG_FEALNX is not set | ||
631 | CONFIG_NATSEMI=y | ||
632 | # CONFIG_NE2K_PCI is not set | ||
633 | # CONFIG_8139CP is not set | ||
634 | # CONFIG_8139TOO is not set | ||
635 | # CONFIG_SIS900 is not set | ||
636 | # CONFIG_EPIC100 is not set | ||
637 | # CONFIG_SUNDANCE is not set | ||
638 | # CONFIG_TLAN is not set | ||
639 | # CONFIG_VIA_RHINE is not set | ||
640 | # CONFIG_LAN_SAA9730 is not set | ||
641 | |||
642 | # | ||
643 | # Ethernet (1000 Mbit) | ||
644 | # | ||
645 | # CONFIG_ACENIC is not set | ||
646 | # CONFIG_DL2K is not set | ||
647 | # CONFIG_E1000 is not set | ||
648 | # CONFIG_NS83820 is not set | ||
649 | # CONFIG_HAMACHI is not set | ||
650 | # CONFIG_YELLOWFIN is not set | ||
651 | # CONFIG_R8169 is not set | ||
652 | # CONFIG_SIS190 is not set | ||
653 | # CONFIG_SKGE is not set | ||
654 | # CONFIG_SKY2 is not set | ||
655 | # CONFIG_SK98LIN is not set | ||
656 | # CONFIG_VIA_VELOCITY is not set | ||
657 | # CONFIG_TIGON3 is not set | ||
658 | # CONFIG_BNX2 is not set | ||
659 | |||
660 | # | ||
661 | # Ethernet (10000 Mbit) | ||
662 | # | ||
663 | # CONFIG_CHELSIO_T1 is not set | ||
664 | # CONFIG_IXGB is not set | ||
665 | # CONFIG_S2IO is not set | ||
666 | |||
667 | # | ||
668 | # Token Ring devices | ||
669 | # | ||
670 | # CONFIG_TR is not set | ||
671 | |||
672 | # | ||
673 | # Wireless LAN (non-hamradio) | ||
674 | # | ||
675 | # CONFIG_NET_RADIO is not set | ||
676 | |||
677 | # | ||
678 | # Wan interfaces | ||
679 | # | ||
680 | # CONFIG_WAN is not set | ||
681 | # CONFIG_FDDI is not set | ||
682 | # CONFIG_HIPPI is not set | ||
683 | CONFIG_PPP=m | ||
684 | # CONFIG_PPP_MULTILINK is not set | ||
685 | # CONFIG_PPP_FILTER is not set | ||
686 | CONFIG_PPP_ASYNC=m | ||
687 | CONFIG_PPP_SYNC_TTY=m | ||
688 | CONFIG_PPP_DEFLATE=m | ||
689 | # CONFIG_PPP_BSDCOMP is not set | ||
690 | # CONFIG_PPP_MPPE is not set | ||
691 | # CONFIG_PPPOE is not set | ||
692 | # CONFIG_SLIP is not set | ||
693 | # CONFIG_NET_FC is not set | ||
694 | # CONFIG_SHAPER is not set | ||
695 | # CONFIG_NETCONSOLE is not set | ||
696 | # CONFIG_NETPOLL is not set | ||
697 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
698 | |||
699 | # | ||
700 | # ISDN subsystem | ||
701 | # | ||
702 | # CONFIG_ISDN is not set | ||
703 | |||
704 | # | ||
705 | # Telephony Support | ||
706 | # | ||
707 | # CONFIG_PHONE is not set | ||
708 | |||
709 | # | ||
710 | # Input device support | ||
711 | # | ||
712 | CONFIG_INPUT=y | ||
713 | |||
714 | # | ||
715 | # Userland interfaces | ||
716 | # | ||
717 | # CONFIG_INPUT_MOUSEDEV is not set | ||
718 | # CONFIG_INPUT_JOYDEV is not set | ||
719 | # CONFIG_INPUT_TSDEV is not set | ||
720 | CONFIG_INPUT_EVDEV=m | ||
721 | # CONFIG_INPUT_EVBUG is not set | ||
722 | |||
723 | # | ||
724 | # Input Device Drivers | ||
725 | # | ||
726 | # CONFIG_INPUT_KEYBOARD is not set | ||
727 | # CONFIG_INPUT_MOUSE is not set | ||
728 | # CONFIG_INPUT_JOYSTICK is not set | ||
729 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
730 | # CONFIG_INPUT_MISC is not set | ||
731 | |||
732 | # | ||
733 | # Hardware I/O ports | ||
734 | # | ||
735 | # CONFIG_SERIO is not set | ||
736 | # CONFIG_GAMEPORT is not set | ||
737 | |||
738 | # | ||
739 | # Character devices | ||
740 | # | ||
741 | # CONFIG_VT is not set | ||
742 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
743 | |||
744 | # | ||
745 | # Serial drivers | ||
746 | # | ||
747 | CONFIG_SERIAL_8250=y | ||
748 | CONFIG_SERIAL_8250_CONSOLE=y | ||
749 | CONFIG_SERIAL_8250_PCI=y | ||
750 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
751 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
752 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
753 | |||
754 | # | ||
755 | # Non-8250 serial port support | ||
756 | # | ||
757 | CONFIG_SERIAL_CORE=y | ||
758 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
759 | # CONFIG_SERIAL_JSM is not set | ||
760 | CONFIG_UNIX98_PTYS=y | ||
761 | CONFIG_LEGACY_PTYS=y | ||
762 | CONFIG_LEGACY_PTY_COUNT=256 | ||
763 | |||
764 | # | ||
765 | # IPMI | ||
766 | # | ||
767 | # CONFIG_IPMI_HANDLER is not set | ||
768 | |||
769 | # | ||
770 | # Watchdog Cards | ||
771 | # | ||
772 | # CONFIG_WATCHDOG is not set | ||
773 | CONFIG_RTC=m | ||
774 | CONFIG_GEN_RTC=m | ||
775 | CONFIG_GEN_RTC_X=y | ||
776 | # CONFIG_DTLK is not set | ||
777 | # CONFIG_R3964 is not set | ||
778 | # CONFIG_APPLICOM is not set | ||
779 | |||
780 | # | ||
781 | # Ftape, the floppy tape device driver | ||
782 | # | ||
783 | # CONFIG_DRM is not set | ||
784 | # CONFIG_RAW_DRIVER is not set | ||
785 | |||
786 | # | ||
787 | # TPM devices | ||
788 | # | ||
789 | # CONFIG_TCG_TPM is not set | ||
790 | # CONFIG_TELCLOCK is not set | ||
791 | |||
792 | # | ||
793 | # I2C support | ||
794 | # | ||
795 | CONFIG_I2C=y | ||
796 | CONFIG_I2C_CHARDEV=y | ||
797 | |||
798 | # | ||
799 | # I2C Algorithms | ||
800 | # | ||
801 | # CONFIG_I2C_ALGOBIT is not set | ||
802 | # CONFIG_I2C_ALGOPCF is not set | ||
803 | # CONFIG_I2C_ALGOPCA is not set | ||
804 | |||
805 | # | ||
806 | # I2C Hardware Bus support | ||
807 | # | ||
808 | # CONFIG_I2C_ALI1535 is not set | ||
809 | # CONFIG_I2C_ALI1563 is not set | ||
810 | # CONFIG_I2C_ALI15X3 is not set | ||
811 | # CONFIG_I2C_AMD756 is not set | ||
812 | # CONFIG_I2C_AMD8111 is not set | ||
813 | # CONFIG_I2C_I801 is not set | ||
814 | # CONFIG_I2C_I810 is not set | ||
815 | # CONFIG_I2C_PIIX4 is not set | ||
816 | # CONFIG_I2C_NFORCE2 is not set | ||
817 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
818 | # CONFIG_I2C_PROSAVAGE is not set | ||
819 | # CONFIG_I2C_SAVAGE4 is not set | ||
820 | # CONFIG_I2C_SIS5595 is not set | ||
821 | # CONFIG_I2C_SIS630 is not set | ||
822 | # CONFIG_I2C_SIS96X is not set | ||
823 | # CONFIG_I2C_STUB is not set | ||
824 | # CONFIG_I2C_VIA is not set | ||
825 | # CONFIG_I2C_VIAPRO is not set | ||
826 | # CONFIG_I2C_VOODOO3 is not set | ||
827 | # CONFIG_I2C_PCA_ISA is not set | ||
828 | |||
829 | # | ||
830 | # Miscellaneous I2C Chip support | ||
831 | # | ||
832 | # CONFIG_SENSORS_DS1337 is not set | ||
833 | # CONFIG_SENSORS_DS1374 is not set | ||
834 | # CONFIG_SENSORS_EEPROM is not set | ||
835 | # CONFIG_SENSORS_PCF8574 is not set | ||
836 | # CONFIG_SENSORS_PCA9539 is not set | ||
837 | # CONFIG_SENSORS_PCF8591 is not set | ||
838 | # CONFIG_SENSORS_MAX6875 is not set | ||
839 | CONFIG_I2C_DEBUG_CORE=y | ||
840 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
841 | CONFIG_I2C_DEBUG_BUS=y | ||
842 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
843 | |||
844 | # | ||
845 | # SPI support | ||
846 | # | ||
847 | # CONFIG_SPI is not set | ||
848 | # CONFIG_SPI_MASTER is not set | ||
849 | |||
850 | # | ||
851 | # Dallas's 1-wire bus | ||
852 | # | ||
853 | # CONFIG_W1 is not set | ||
854 | |||
855 | # | ||
856 | # Hardware Monitoring support | ||
857 | # | ||
858 | CONFIG_HWMON=y | ||
859 | # CONFIG_HWMON_VID is not set | ||
860 | # CONFIG_SENSORS_ADM1021 is not set | ||
861 | # CONFIG_SENSORS_ADM1025 is not set | ||
862 | # CONFIG_SENSORS_ADM1026 is not set | ||
863 | # CONFIG_SENSORS_ADM1031 is not set | ||
864 | # CONFIG_SENSORS_ADM9240 is not set | ||
865 | # CONFIG_SENSORS_ASB100 is not set | ||
866 | # CONFIG_SENSORS_ATXP1 is not set | ||
867 | # CONFIG_SENSORS_DS1621 is not set | ||
868 | # CONFIG_SENSORS_F71805F is not set | ||
869 | # CONFIG_SENSORS_FSCHER is not set | ||
870 | # CONFIG_SENSORS_FSCPOS is not set | ||
871 | # CONFIG_SENSORS_GL518SM is not set | ||
872 | # CONFIG_SENSORS_GL520SM is not set | ||
873 | # CONFIG_SENSORS_IT87 is not set | ||
874 | # CONFIG_SENSORS_LM63 is not set | ||
875 | # CONFIG_SENSORS_LM75 is not set | ||
876 | # CONFIG_SENSORS_LM77 is not set | ||
877 | # CONFIG_SENSORS_LM78 is not set | ||
878 | # CONFIG_SENSORS_LM80 is not set | ||
879 | # CONFIG_SENSORS_LM83 is not set | ||
880 | # CONFIG_SENSORS_LM85 is not set | ||
881 | # CONFIG_SENSORS_LM87 is not set | ||
882 | # CONFIG_SENSORS_LM90 is not set | ||
883 | # CONFIG_SENSORS_LM92 is not set | ||
884 | # CONFIG_SENSORS_MAX1619 is not set | ||
885 | # CONFIG_SENSORS_PC87360 is not set | ||
886 | # CONFIG_SENSORS_SIS5595 is not set | ||
887 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
888 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
889 | # CONFIG_SENSORS_VIA686A is not set | ||
890 | # CONFIG_SENSORS_VT8231 is not set | ||
891 | # CONFIG_SENSORS_W83781D is not set | ||
892 | # CONFIG_SENSORS_W83792D is not set | ||
893 | # CONFIG_SENSORS_W83L785TS is not set | ||
894 | # CONFIG_SENSORS_W83627HF is not set | ||
895 | # CONFIG_SENSORS_W83627EHF is not set | ||
896 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
897 | |||
898 | # | ||
899 | # Misc devices | ||
900 | # | ||
901 | |||
902 | # | ||
903 | # Multimedia devices | ||
904 | # | ||
905 | # CONFIG_VIDEO_DEV is not set | ||
906 | CONFIG_VIDEO_V4L2=y | ||
907 | |||
908 | # | ||
909 | # Digital Video Broadcasting Devices | ||
910 | # | ||
911 | # CONFIG_DVB is not set | ||
912 | |||
913 | # | ||
914 | # Graphics support | ||
915 | # | ||
916 | # CONFIG_FB is not set | ||
917 | |||
918 | # | ||
919 | # Sound | ||
920 | # | ||
921 | # CONFIG_SOUND is not set | ||
922 | |||
923 | # | ||
924 | # USB support | ||
925 | # | ||
926 | CONFIG_USB_ARCH_HAS_HCD=y | ||
927 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
928 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
929 | # CONFIG_USB is not set | ||
930 | |||
931 | # | ||
932 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
933 | # | ||
934 | |||
935 | # | ||
936 | # USB Gadget Support | ||
937 | # | ||
938 | # CONFIG_USB_GADGET is not set | ||
939 | |||
940 | # | ||
941 | # MMC/SD Card support | ||
942 | # | ||
943 | # CONFIG_MMC is not set | ||
944 | |||
945 | # | ||
946 | # LED devices | ||
947 | # | ||
948 | # CONFIG_NEW_LEDS is not set | ||
949 | |||
950 | # | ||
951 | # LED drivers | ||
952 | # | ||
953 | |||
954 | # | ||
955 | # LED Triggers | ||
956 | # | ||
957 | |||
958 | # | ||
959 | # InfiniBand support | ||
960 | # | ||
961 | # CONFIG_INFINIBAND is not set | ||
962 | |||
963 | # | ||
964 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
965 | # | ||
966 | |||
967 | # | ||
968 | # Real Time Clock | ||
969 | # | ||
970 | # CONFIG_RTC_CLASS is not set | ||
971 | |||
972 | # | ||
973 | # File systems | ||
974 | # | ||
975 | CONFIG_EXT2_FS=y | ||
976 | CONFIG_EXT2_FS_XATTR=y | ||
977 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
978 | CONFIG_EXT2_FS_SECURITY=y | ||
979 | # CONFIG_EXT2_FS_XIP is not set | ||
980 | CONFIG_EXT3_FS=m | ||
981 | CONFIG_EXT3_FS_XATTR=y | ||
982 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
983 | # CONFIG_EXT3_FS_SECURITY is not set | ||
984 | CONFIG_JBD=m | ||
985 | # CONFIG_JBD_DEBUG is not set | ||
986 | CONFIG_FS_MBCACHE=y | ||
987 | # CONFIG_REISERFS_FS is not set | ||
988 | # CONFIG_JFS_FS is not set | ||
989 | CONFIG_FS_POSIX_ACL=y | ||
990 | CONFIG_XFS_FS=m | ||
991 | CONFIG_XFS_EXPORT=y | ||
992 | # CONFIG_XFS_QUOTA is not set | ||
993 | # CONFIG_XFS_SECURITY is not set | ||
994 | # CONFIG_XFS_POSIX_ACL is not set | ||
995 | # CONFIG_XFS_RT is not set | ||
996 | # CONFIG_OCFS2_FS is not set | ||
997 | # CONFIG_MINIX_FS is not set | ||
998 | # CONFIG_ROMFS_FS is not set | ||
999 | CONFIG_INOTIFY=y | ||
1000 | # CONFIG_QUOTA is not set | ||
1001 | # CONFIG_DNOTIFY is not set | ||
1002 | # CONFIG_AUTOFS_FS is not set | ||
1003 | CONFIG_AUTOFS4_FS=m | ||
1004 | # CONFIG_FUSE_FS is not set | ||
1005 | |||
1006 | # | ||
1007 | # CD-ROM/DVD Filesystems | ||
1008 | # | ||
1009 | # CONFIG_ISO9660_FS is not set | ||
1010 | # CONFIG_UDF_FS is not set | ||
1011 | |||
1012 | # | ||
1013 | # DOS/FAT/NT Filesystems | ||
1014 | # | ||
1015 | CONFIG_FAT_FS=y | ||
1016 | CONFIG_MSDOS_FS=y | ||
1017 | CONFIG_VFAT_FS=y | ||
1018 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1019 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1020 | CONFIG_NTFS_FS=m | ||
1021 | # CONFIG_NTFS_DEBUG is not set | ||
1022 | # CONFIG_NTFS_RW is not set | ||
1023 | |||
1024 | # | ||
1025 | # Pseudo filesystems | ||
1026 | # | ||
1027 | CONFIG_PROC_FS=y | ||
1028 | CONFIG_PROC_KCORE=y | ||
1029 | CONFIG_SYSFS=y | ||
1030 | CONFIG_TMPFS=y | ||
1031 | # CONFIG_HUGETLB_PAGE is not set | ||
1032 | CONFIG_RAMFS=y | ||
1033 | # CONFIG_CONFIGFS_FS is not set | ||
1034 | |||
1035 | # | ||
1036 | # Miscellaneous filesystems | ||
1037 | # | ||
1038 | # CONFIG_ADFS_FS is not set | ||
1039 | # CONFIG_AFFS_FS is not set | ||
1040 | # CONFIG_HFS_FS is not set | ||
1041 | # CONFIG_HFSPLUS_FS is not set | ||
1042 | # CONFIG_BEFS_FS is not set | ||
1043 | # CONFIG_BFS_FS is not set | ||
1044 | # CONFIG_EFS_FS is not set | ||
1045 | # CONFIG_JFFS_FS is not set | ||
1046 | CONFIG_JFFS2_FS=y | ||
1047 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1048 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1049 | # CONFIG_JFFS2_SUMMARY is not set | ||
1050 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
1051 | CONFIG_JFFS2_ZLIB=y | ||
1052 | CONFIG_JFFS2_RTIME=y | ||
1053 | # CONFIG_JFFS2_RUBIN is not set | ||
1054 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
1055 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
1056 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
1057 | CONFIG_CRAMFS=y | ||
1058 | # CONFIG_VXFS_FS is not set | ||
1059 | # CONFIG_HPFS_FS is not set | ||
1060 | # CONFIG_QNX4FS_FS is not set | ||
1061 | # CONFIG_SYSV_FS is not set | ||
1062 | # CONFIG_UFS_FS is not set | ||
1063 | |||
1064 | # | ||
1065 | # Network File Systems | ||
1066 | # | ||
1067 | CONFIG_NFS_FS=y | ||
1068 | CONFIG_NFS_V3=y | ||
1069 | # CONFIG_NFS_V3_ACL is not set | ||
1070 | CONFIG_NFS_V4=y | ||
1071 | CONFIG_NFS_DIRECTIO=y | ||
1072 | CONFIG_NFSD=m | ||
1073 | CONFIG_NFSD_V3=y | ||
1074 | # CONFIG_NFSD_V3_ACL is not set | ||
1075 | # CONFIG_NFSD_V4 is not set | ||
1076 | CONFIG_NFSD_TCP=y | ||
1077 | CONFIG_ROOT_NFS=y | ||
1078 | CONFIG_LOCKD=y | ||
1079 | CONFIG_LOCKD_V4=y | ||
1080 | CONFIG_EXPORTFS=m | ||
1081 | CONFIG_NFS_COMMON=y | ||
1082 | CONFIG_SUNRPC=y | ||
1083 | CONFIG_SUNRPC_GSS=y | ||
1084 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1085 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1086 | CONFIG_SMB_FS=m | ||
1087 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1088 | # CONFIG_CIFS is not set | ||
1089 | # CONFIG_NCP_FS is not set | ||
1090 | # CONFIG_CODA_FS is not set | ||
1091 | # CONFIG_AFS_FS is not set | ||
1092 | # CONFIG_9P_FS is not set | ||
1093 | |||
1094 | # | ||
1095 | # Partition Types | ||
1096 | # | ||
1097 | # CONFIG_PARTITION_ADVANCED is not set | ||
1098 | CONFIG_MSDOS_PARTITION=y | ||
1099 | |||
1100 | # | ||
1101 | # Native Language Support | ||
1102 | # | ||
1103 | CONFIG_NLS=y | ||
1104 | CONFIG_NLS_DEFAULT="" | ||
1105 | CONFIG_NLS_CODEPAGE_437=m | ||
1106 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1107 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1108 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1109 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1110 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1111 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1112 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1113 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1114 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1115 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1116 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1117 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1118 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1119 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1120 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1121 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1122 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1123 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1124 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1125 | # CONFIG_NLS_ISO8859_8 is not set | ||
1126 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1127 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1128 | CONFIG_NLS_ASCII=m | ||
1129 | CONFIG_NLS_ISO8859_1=m | ||
1130 | # CONFIG_NLS_ISO8859_2 is not set | ||
1131 | # CONFIG_NLS_ISO8859_3 is not set | ||
1132 | # CONFIG_NLS_ISO8859_4 is not set | ||
1133 | # CONFIG_NLS_ISO8859_5 is not set | ||
1134 | # CONFIG_NLS_ISO8859_6 is not set | ||
1135 | # CONFIG_NLS_ISO8859_7 is not set | ||
1136 | # CONFIG_NLS_ISO8859_9 is not set | ||
1137 | # CONFIG_NLS_ISO8859_13 is not set | ||
1138 | # CONFIG_NLS_ISO8859_14 is not set | ||
1139 | # CONFIG_NLS_ISO8859_15 is not set | ||
1140 | # CONFIG_NLS_KOI8_R is not set | ||
1141 | # CONFIG_NLS_KOI8_U is not set | ||
1142 | CONFIG_NLS_UTF8=m | ||
1143 | |||
1144 | # | ||
1145 | # Profiling support | ||
1146 | # | ||
1147 | # CONFIG_PROFILING is not set | ||
1148 | |||
1149 | # | ||
1150 | # Kernel hacking | ||
1151 | # | ||
1152 | # CONFIG_PRINTK_TIME is not set | ||
1153 | # CONFIG_MAGIC_SYSRQ is not set | ||
1154 | # CONFIG_DEBUG_KERNEL is not set | ||
1155 | CONFIG_LOG_BUF_SHIFT=14 | ||
1156 | # CONFIG_DEBUG_FS is not set | ||
1157 | CONFIG_CROSSCOMPILE=y | ||
1158 | CONFIG_CMDLINE="console=ttyS0,115200 mem=192m ip=bootp root=/dev/nfs rw" | ||
1159 | |||
1160 | # | ||
1161 | # Security options | ||
1162 | # | ||
1163 | # CONFIG_KEYS is not set | ||
1164 | # CONFIG_SECURITY is not set | ||
1165 | |||
1166 | # | ||
1167 | # Cryptographic options | ||
1168 | # | ||
1169 | CONFIG_CRYPTO=y | ||
1170 | CONFIG_CRYPTO_HMAC=y | ||
1171 | # CONFIG_CRYPTO_NULL is not set | ||
1172 | # CONFIG_CRYPTO_MD4 is not set | ||
1173 | CONFIG_CRYPTO_MD5=y | ||
1174 | # CONFIG_CRYPTO_SHA1 is not set | ||
1175 | # CONFIG_CRYPTO_SHA256 is not set | ||
1176 | # CONFIG_CRYPTO_SHA512 is not set | ||
1177 | # CONFIG_CRYPTO_WP512 is not set | ||
1178 | # CONFIG_CRYPTO_TGR192 is not set | ||
1179 | CONFIG_CRYPTO_DES=y | ||
1180 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1181 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1182 | # CONFIG_CRYPTO_SERPENT is not set | ||
1183 | # CONFIG_CRYPTO_AES is not set | ||
1184 | # CONFIG_CRYPTO_CAST5 is not set | ||
1185 | # CONFIG_CRYPTO_CAST6 is not set | ||
1186 | # CONFIG_CRYPTO_TEA is not set | ||
1187 | # CONFIG_CRYPTO_ARC4 is not set | ||
1188 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1189 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1190 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1191 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1192 | # CONFIG_CRYPTO_CRC32C is not set | ||
1193 | # CONFIG_CRYPTO_TEST is not set | ||
1194 | |||
1195 | # | ||
1196 | # Hardware crypto devices | ||
1197 | # | ||
1198 | |||
1199 | # | ||
1200 | # Library routines | ||
1201 | # | ||
1202 | CONFIG_CRC_CCITT=m | ||
1203 | # CONFIG_CRC16 is not set | ||
1204 | CONFIG_CRC32=y | ||
1205 | # CONFIG_LIBCRC32C is not set | ||
1206 | CONFIG_ZLIB_INFLATE=y | ||
1207 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/mips/configs/ev64120_defconfig b/arch/mips/configs/ev64120_defconfig index 7067f608b22c..5248a1d8131d 100644 --- a/arch/mips/configs/ev64120_defconfig +++ b/arch/mips/configs/ev64120_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_EV64120=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -131,6 +129,15 @@ CONFIG_FLATMEM=y | |||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | 129 | CONFIG_FLAT_NODE_MEM_MAP=y |
132 | # CONFIG_SPARSEMEM_STATIC is not set | 130 | # CONFIG_SPARSEMEM_STATIC is not set |
133 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 131 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
132 | # CONFIG_HZ_48 is not set | ||
133 | # CONFIG_HZ_100 is not set | ||
134 | # CONFIG_HZ_128 is not set | ||
135 | # CONFIG_HZ_250 is not set | ||
136 | # CONFIG_HZ_256 is not set | ||
137 | CONFIG_HZ_1000=y | ||
138 | # CONFIG_HZ_1024 is not set | ||
139 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
140 | CONFIG_HZ=1000 | ||
134 | CONFIG_PREEMPT_NONE=y | 141 | CONFIG_PREEMPT_NONE=y |
135 | # CONFIG_PREEMPT_VOLUNTARY is not set | 142 | # CONFIG_PREEMPT_VOLUNTARY is not set |
136 | # CONFIG_PREEMPT is not set | 143 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ev96100_defconfig b/arch/mips/configs/ev96100_defconfig index 00b56ed0e638..4858491ce669 100644 --- a/arch/mips/configs/ev96100_defconfig +++ b/arch/mips/configs/ev96100_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_EV96100=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -135,6 +133,15 @@ CONFIG_FLATMEM=y | |||
135 | CONFIG_FLAT_NODE_MEM_MAP=y | 133 | CONFIG_FLAT_NODE_MEM_MAP=y |
136 | # CONFIG_SPARSEMEM_STATIC is not set | 134 | # CONFIG_SPARSEMEM_STATIC is not set |
137 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 135 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
136 | # CONFIG_HZ_48 is not set | ||
137 | # CONFIG_HZ_100 is not set | ||
138 | # CONFIG_HZ_128 is not set | ||
139 | # CONFIG_HZ_250 is not set | ||
140 | # CONFIG_HZ_256 is not set | ||
141 | CONFIG_HZ_1000=y | ||
142 | # CONFIG_HZ_1024 is not set | ||
143 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
144 | CONFIG_HZ=1000 | ||
138 | CONFIG_PREEMPT_NONE=y | 145 | CONFIG_PREEMPT_NONE=y |
139 | # CONFIG_PREEMPT_VOLUNTARY is not set | 146 | # CONFIG_PREEMPT_VOLUNTARY is not set |
140 | # CONFIG_PREEMPT is not set | 147 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/excite_defconfig b/arch/mips/configs/excite_defconfig new file mode 100644 index 000000000000..f2ce64cb41a8 --- /dev/null +++ b/arch/mips/configs/excite_defconfig | |||
@@ -0,0 +1,1220 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.16-rc4 | ||
4 | # Thu Feb 23 13:15:27 2006 | ||
5 | # | ||
6 | CONFIG_MIPS=y | ||
7 | |||
8 | # | ||
9 | # Machine selection | ||
10 | # | ||
11 | # CONFIG_MIPS_MTX1 is not set | ||
12 | # CONFIG_MIPS_BOSPORUS is not set | ||
13 | # CONFIG_MIPS_PB1000 is not set | ||
14 | # CONFIG_MIPS_PB1100 is not set | ||
15 | # CONFIG_MIPS_PB1500 is not set | ||
16 | # CONFIG_MIPS_PB1550 is not set | ||
17 | # CONFIG_MIPS_PB1200 is not set | ||
18 | # CONFIG_MIPS_DB1000 is not set | ||
19 | # CONFIG_MIPS_DB1100 is not set | ||
20 | # CONFIG_MIPS_DB1500 is not set | ||
21 | # CONFIG_MIPS_DB1550 is not set | ||
22 | # CONFIG_MIPS_DB1200 is not set | ||
23 | # CONFIG_MIPS_MIRAGE is not set | ||
24 | # CONFIG_MIPS_COBALT is not set | ||
25 | # CONFIG_MACH_DECSTATION is not set | ||
26 | # CONFIG_MIPS_EV64120 is not set | ||
27 | # CONFIG_MIPS_EV96100 is not set | ||
28 | # CONFIG_MIPS_IVR is not set | ||
29 | # CONFIG_MIPS_ITE8172 is not set | ||
30 | # CONFIG_MACH_JAZZ is not set | ||
31 | # CONFIG_LASAT is not set | ||
32 | # CONFIG_MIPS_ATLAS is not set | ||
33 | # CONFIG_MIPS_MALTA is not set | ||
34 | # CONFIG_MIPS_SEAD is not set | ||
35 | # CONFIG_MIPS_SIM is not set | ||
36 | # CONFIG_MOMENCO_JAGUAR_ATX is not set | ||
37 | # CONFIG_MOMENCO_OCELOT is not set | ||
38 | # CONFIG_MOMENCO_OCELOT_3 is not set | ||
39 | # CONFIG_MOMENCO_OCELOT_C is not set | ||
40 | # CONFIG_MOMENCO_OCELOT_G is not set | ||
41 | # CONFIG_MIPS_XXS1500 is not set | ||
42 | # CONFIG_PNX8550_V2PCI is not set | ||
43 | # CONFIG_PNX8550_JBS is not set | ||
44 | CONFIG_BASLER_EXCITE=y | ||
45 | # CONFIG_BASLER_EXCITE_PROTOTYPE is not set | ||
46 | # CONFIG_DDB5074 is not set | ||
47 | # CONFIG_DDB5476 is not set | ||
48 | # CONFIG_DDB5477 is not set | ||
49 | # CONFIG_MACH_VR41XX is not set | ||
50 | # CONFIG_PMC_YOSEMITE is not set | ||
51 | # CONFIG_QEMU is not set | ||
52 | # CONFIG_SGI_IP22 is not set | ||
53 | # CONFIG_SGI_IP27 is not set | ||
54 | # CONFIG_SGI_IP32 is not set | ||
55 | # CONFIG_SIBYTE_BIGSUR is not set | ||
56 | # CONFIG_SIBYTE_SWARM is not set | ||
57 | # CONFIG_SIBYTE_SENTOSA is not set | ||
58 | # CONFIG_SIBYTE_RHONE is not set | ||
59 | # CONFIG_SIBYTE_CARMEL is not set | ||
60 | # CONFIG_SIBYTE_PTSWARM is not set | ||
61 | # CONFIG_SIBYTE_LITTLESUR is not set | ||
62 | # CONFIG_SIBYTE_CRHINE is not set | ||
63 | # CONFIG_SIBYTE_CRHONE is not set | ||
64 | # CONFIG_SNI_RM200_PCI is not set | ||
65 | # CONFIG_TOSHIBA_JMR3927 is not set | ||
66 | # CONFIG_TOSHIBA_RBTX4927 is not set | ||
67 | # CONFIG_TOSHIBA_RBTX4938 is not set | ||
68 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
69 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
70 | CONFIG_DMA_COHERENT=y | ||
71 | CONFIG_SERIAL_RM9000=y | ||
72 | CONFIG_CPU_BIG_ENDIAN=y | ||
73 | # CONFIG_CPU_LITTLE_ENDIAN is not set | ||
74 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | ||
75 | CONFIG_IRQ_CPU=y | ||
76 | CONFIG_IRQ_CPU_RM7K=y | ||
77 | CONFIG_IRQ_CPU_RM9K=y | ||
78 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | ||
79 | |||
80 | # | ||
81 | # CPU selection | ||
82 | # | ||
83 | # CONFIG_CPU_MIPS32_R1 is not set | ||
84 | # CONFIG_CPU_MIPS32_R2 is not set | ||
85 | # CONFIG_CPU_MIPS64_R1 is not set | ||
86 | # CONFIG_CPU_MIPS64_R2 is not set | ||
87 | # CONFIG_CPU_R3000 is not set | ||
88 | # CONFIG_CPU_TX39XX is not set | ||
89 | # CONFIG_CPU_VR41XX is not set | ||
90 | # CONFIG_CPU_R4300 is not set | ||
91 | # CONFIG_CPU_R4X00 is not set | ||
92 | # CONFIG_CPU_TX49XX is not set | ||
93 | # CONFIG_CPU_R5000 is not set | ||
94 | # CONFIG_CPU_R5432 is not set | ||
95 | # CONFIG_CPU_R6000 is not set | ||
96 | # CONFIG_CPU_NEVADA is not set | ||
97 | # CONFIG_CPU_R8000 is not set | ||
98 | # CONFIG_CPU_R10000 is not set | ||
99 | # CONFIG_CPU_RM7000 is not set | ||
100 | CONFIG_CPU_RM9000=y | ||
101 | # CONFIG_CPU_SB1 is not set | ||
102 | CONFIG_SYS_HAS_CPU_RM9000=y | ||
103 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | ||
104 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y | ||
105 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||
106 | CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y | ||
107 | |||
108 | # | ||
109 | # Kernel type | ||
110 | # | ||
111 | CONFIG_32BIT=y | ||
112 | # CONFIG_64BIT is not set | ||
113 | CONFIG_PAGE_SIZE_4KB=y | ||
114 | # CONFIG_PAGE_SIZE_8KB is not set | ||
115 | # CONFIG_PAGE_SIZE_16KB is not set | ||
116 | # CONFIG_PAGE_SIZE_64KB is not set | ||
117 | CONFIG_CPU_HAS_PREFETCH=y | ||
118 | # CONFIG_MIPS_MT is not set | ||
119 | # CONFIG_64BIT_PHYS_ADDR is not set | ||
120 | # CONFIG_CPU_ADVANCED is not set | ||
121 | CONFIG_CPU_HAS_LLSC=y | ||
122 | CONFIG_CPU_HAS_SYNC=y | ||
123 | CONFIG_GENERIC_HARDIRQS=y | ||
124 | CONFIG_GENERIC_IRQ_PROBE=y | ||
125 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||
126 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
127 | CONFIG_SELECT_MEMORY_MODEL=y | ||
128 | CONFIG_FLATMEM_MANUAL=y | ||
129 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
130 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
131 | CONFIG_FLATMEM=y | ||
132 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
133 | # CONFIG_SPARSEMEM_STATIC is not set | ||
134 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
135 | # CONFIG_HZ_48 is not set | ||
136 | # CONFIG_HZ_100 is not set | ||
137 | # CONFIG_HZ_128 is not set | ||
138 | # CONFIG_HZ_250 is not set | ||
139 | # CONFIG_HZ_256 is not set | ||
140 | CONFIG_HZ_1000=y | ||
141 | # CONFIG_HZ_1024 is not set | ||
142 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
143 | CONFIG_HZ=1000 | ||
144 | # CONFIG_SMP is not set | ||
145 | # CONFIG_PREEMPT_NONE is not set | ||
146 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
147 | CONFIG_PREEMPT=y | ||
148 | CONFIG_PREEMPT_BKL=y | ||
149 | |||
150 | # | ||
151 | # Code maturity level options | ||
152 | # | ||
153 | CONFIG_EXPERIMENTAL=y | ||
154 | CONFIG_BROKEN_ON_SMP=y | ||
155 | CONFIG_LOCK_KERNEL=y | ||
156 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
157 | |||
158 | # | ||
159 | # General setup | ||
160 | # | ||
161 | CONFIG_LOCALVERSION="" | ||
162 | # CONFIG_LOCALVERSION_AUTO is not set | ||
163 | CONFIG_SWAP=y | ||
164 | CONFIG_SYSVIPC=y | ||
165 | CONFIG_POSIX_MQUEUE=y | ||
166 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
167 | CONFIG_SYSCTL=y | ||
168 | # CONFIG_AUDIT is not set | ||
169 | # CONFIG_IKCONFIG is not set | ||
170 | CONFIG_INITRAMFS_SOURCE="" | ||
171 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
172 | CONFIG_EMBEDDED=y | ||
173 | CONFIG_KALLSYMS=y | ||
174 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
175 | CONFIG_HOTPLUG=y | ||
176 | CONFIG_PRINTK=y | ||
177 | CONFIG_BUG=y | ||
178 | CONFIG_ELF_CORE=y | ||
179 | CONFIG_BASE_FULL=y | ||
180 | CONFIG_FUTEX=y | ||
181 | CONFIG_EPOLL=y | ||
182 | CONFIG_SHMEM=y | ||
183 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
184 | CONFIG_CC_ALIGN_LABELS=0 | ||
185 | CONFIG_CC_ALIGN_LOOPS=0 | ||
186 | CONFIG_CC_ALIGN_JUMPS=0 | ||
187 | CONFIG_SLAB=y | ||
188 | # CONFIG_TINY_SHMEM is not set | ||
189 | CONFIG_BASE_SMALL=0 | ||
190 | # CONFIG_SLOB is not set | ||
191 | |||
192 | # | ||
193 | # Loadable module support | ||
194 | # | ||
195 | CONFIG_MODULES=y | ||
196 | CONFIG_MODULE_UNLOAD=y | ||
197 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
198 | CONFIG_OBSOLETE_MODPARM=y | ||
199 | # CONFIG_MODVERSIONS is not set | ||
200 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
201 | CONFIG_KMOD=y | ||
202 | |||
203 | # | ||
204 | # Block layer | ||
205 | # | ||
206 | # CONFIG_LBD is not set | ||
207 | |||
208 | # | ||
209 | # IO Schedulers | ||
210 | # | ||
211 | CONFIG_IOSCHED_NOOP=y | ||
212 | CONFIG_IOSCHED_AS=y | ||
213 | CONFIG_IOSCHED_DEADLINE=y | ||
214 | CONFIG_IOSCHED_CFQ=y | ||
215 | CONFIG_DEFAULT_AS=y | ||
216 | # CONFIG_DEFAULT_DEADLINE is not set | ||
217 | # CONFIG_DEFAULT_CFQ is not set | ||
218 | # CONFIG_DEFAULT_NOOP is not set | ||
219 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
220 | |||
221 | # | ||
222 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | ||
223 | # | ||
224 | CONFIG_HW_HAS_PCI=y | ||
225 | CONFIG_PCI=y | ||
226 | # CONFIG_PCI_LEGACY_PROC is not set | ||
227 | CONFIG_MMU=y | ||
228 | |||
229 | # | ||
230 | # PCCARD (PCMCIA/CardBus) support | ||
231 | # | ||
232 | # CONFIG_PCCARD is not set | ||
233 | |||
234 | # | ||
235 | # PCI Hotplug Support | ||
236 | # | ||
237 | # CONFIG_HOTPLUG_PCI is not set | ||
238 | |||
239 | # | ||
240 | # Executable file formats | ||
241 | # | ||
242 | CONFIG_BINFMT_ELF=y | ||
243 | # CONFIG_BINFMT_MISC is not set | ||
244 | CONFIG_TRAD_SIGNALS=y | ||
245 | |||
246 | # | ||
247 | # Networking | ||
248 | # | ||
249 | CONFIG_NET=y | ||
250 | |||
251 | # | ||
252 | # Networking options | ||
253 | # | ||
254 | # CONFIG_NETDEBUG is not set | ||
255 | CONFIG_PACKET=y | ||
256 | CONFIG_PACKET_MMAP=y | ||
257 | CONFIG_UNIX=y | ||
258 | # CONFIG_NET_KEY is not set | ||
259 | CONFIG_INET=y | ||
260 | # CONFIG_IP_MULTICAST is not set | ||
261 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
262 | CONFIG_IP_FIB_HASH=y | ||
263 | CONFIG_IP_PNP=y | ||
264 | CONFIG_IP_PNP_DHCP=y | ||
265 | # CONFIG_IP_PNP_BOOTP is not set | ||
266 | # CONFIG_IP_PNP_RARP is not set | ||
267 | # CONFIG_NET_IPIP is not set | ||
268 | # CONFIG_NET_IPGRE is not set | ||
269 | # CONFIG_ARPD is not set | ||
270 | # CONFIG_SYN_COOKIES is not set | ||
271 | # CONFIG_INET_AH is not set | ||
272 | # CONFIG_INET_ESP is not set | ||
273 | # CONFIG_INET_IPCOMP is not set | ||
274 | # CONFIG_INET_TUNNEL is not set | ||
275 | CONFIG_INET_DIAG=y | ||
276 | CONFIG_INET_TCP_DIAG=y | ||
277 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
278 | CONFIG_TCP_CONG_BIC=y | ||
279 | # CONFIG_IPV6 is not set | ||
280 | # CONFIG_NETFILTER is not set | ||
281 | |||
282 | # | ||
283 | # DCCP Configuration (EXPERIMENTAL) | ||
284 | # | ||
285 | # CONFIG_IP_DCCP is not set | ||
286 | |||
287 | # | ||
288 | # SCTP Configuration (EXPERIMENTAL) | ||
289 | # | ||
290 | # CONFIG_IP_SCTP is not set | ||
291 | |||
292 | # | ||
293 | # TIPC Configuration (EXPERIMENTAL) | ||
294 | # | ||
295 | # CONFIG_TIPC is not set | ||
296 | # CONFIG_ATM is not set | ||
297 | # CONFIG_BRIDGE is not set | ||
298 | # CONFIG_VLAN_8021Q is not set | ||
299 | # CONFIG_DECNET is not set | ||
300 | # CONFIG_LLC2 is not set | ||
301 | # CONFIG_IPX is not set | ||
302 | # CONFIG_ATALK is not set | ||
303 | # CONFIG_X25 is not set | ||
304 | # CONFIG_LAPB is not set | ||
305 | # CONFIG_NET_DIVERT is not set | ||
306 | # CONFIG_ECONET is not set | ||
307 | # CONFIG_WAN_ROUTER is not set | ||
308 | |||
309 | # | ||
310 | # QoS and/or fair queueing | ||
311 | # | ||
312 | # CONFIG_NET_SCHED is not set | ||
313 | |||
314 | # | ||
315 | # Network testing | ||
316 | # | ||
317 | # CONFIG_NET_PKTGEN is not set | ||
318 | # CONFIG_HAMRADIO is not set | ||
319 | # CONFIG_IRDA is not set | ||
320 | # CONFIG_BT is not set | ||
321 | # CONFIG_IEEE80211 is not set | ||
322 | |||
323 | # | ||
324 | # Device Drivers | ||
325 | # | ||
326 | |||
327 | # | ||
328 | # Generic Driver Options | ||
329 | # | ||
330 | CONFIG_STANDALONE=y | ||
331 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
332 | # CONFIG_FW_LOADER is not set | ||
333 | |||
334 | # | ||
335 | # Connector - unified userspace <-> kernelspace linker | ||
336 | # | ||
337 | # CONFIG_CONNECTOR is not set | ||
338 | |||
339 | # | ||
340 | # Memory Technology Devices (MTD) | ||
341 | # | ||
342 | CONFIG_MTD=y | ||
343 | # CONFIG_MTD_DEBUG is not set | ||
344 | # CONFIG_MTD_CONCAT is not set | ||
345 | CONFIG_MTD_PARTITIONS=y | ||
346 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
347 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
348 | |||
349 | # | ||
350 | # User Modules And Translation Layers | ||
351 | # | ||
352 | CONFIG_MTD_CHAR=y | ||
353 | CONFIG_MTD_BLOCK=y | ||
354 | # CONFIG_FTL is not set | ||
355 | # CONFIG_NFTL is not set | ||
356 | # CONFIG_INFTL is not set | ||
357 | # CONFIG_RFD_FTL is not set | ||
358 | |||
359 | # | ||
360 | # RAM/ROM/Flash chip drivers | ||
361 | # | ||
362 | # CONFIG_MTD_CFI is not set | ||
363 | # CONFIG_MTD_JEDECPROBE is not set | ||
364 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
365 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
366 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
367 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
368 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
369 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
370 | CONFIG_MTD_CFI_I1=y | ||
371 | CONFIG_MTD_CFI_I2=y | ||
372 | # CONFIG_MTD_CFI_I4 is not set | ||
373 | # CONFIG_MTD_CFI_I8 is not set | ||
374 | # CONFIG_MTD_RAM is not set | ||
375 | # CONFIG_MTD_ROM is not set | ||
376 | # CONFIG_MTD_ABSENT is not set | ||
377 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
378 | |||
379 | # | ||
380 | # Mapping drivers for chip access | ||
381 | # | ||
382 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
383 | # CONFIG_MTD_PLATRAM is not set | ||
384 | |||
385 | # | ||
386 | # Self-contained MTD device drivers | ||
387 | # | ||
388 | # CONFIG_MTD_PMC551 is not set | ||
389 | # CONFIG_MTD_SLRAM is not set | ||
390 | # CONFIG_MTD_PHRAM is not set | ||
391 | # CONFIG_MTD_MTDRAM is not set | ||
392 | # CONFIG_MTD_BLKMTD is not set | ||
393 | # CONFIG_MTD_BLOCK2MTD is not set | ||
394 | |||
395 | # | ||
396 | # Disk-On-Chip Device Drivers | ||
397 | # | ||
398 | # CONFIG_MTD_DOC2000 is not set | ||
399 | # CONFIG_MTD_DOC2001 is not set | ||
400 | # CONFIG_MTD_DOC2001PLUS is not set | ||
401 | |||
402 | # | ||
403 | # NAND Flash Device Drivers | ||
404 | # | ||
405 | CONFIG_MTD_NAND=y | ||
406 | CONFIG_MTD_NAND_VERIFY_WRITE=y | ||
407 | CONFIG_MTD_NAND_IDS=y | ||
408 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
409 | CONFIG_MTD_NAND_BASLER_EXCITE=y | ||
410 | # CONFIG_MTD_NAND_BASLER_EXCITE_RDNBY is not set | ||
411 | # CONFIG_MTD_NAND_BASLER_EXCITE_PERF is not set | ||
412 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
413 | |||
414 | # | ||
415 | # OneNAND Flash Device Drivers | ||
416 | # | ||
417 | # CONFIG_MTD_ONENAND is not set | ||
418 | |||
419 | # | ||
420 | # Parallel port support | ||
421 | # | ||
422 | # CONFIG_PARPORT is not set | ||
423 | |||
424 | # | ||
425 | # Plug and Play support | ||
426 | # | ||
427 | |||
428 | # | ||
429 | # Block devices | ||
430 | # | ||
431 | # CONFIG_BLK_CPQ_DA is not set | ||
432 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
433 | # CONFIG_BLK_DEV_DAC960 is not set | ||
434 | # CONFIG_BLK_DEV_UMEM is not set | ||
435 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
436 | CONFIG_BLK_DEV_LOOP=m | ||
437 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
438 | # CONFIG_BLK_DEV_NBD is not set | ||
439 | # CONFIG_BLK_DEV_SX8 is not set | ||
440 | # CONFIG_BLK_DEV_UB is not set | ||
441 | # CONFIG_BLK_DEV_RAM is not set | ||
442 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
443 | # CONFIG_CDROM_PKTCDVD is not set | ||
444 | # CONFIG_ATA_OVER_ETH is not set | ||
445 | |||
446 | # | ||
447 | # ATA/ATAPI/MFM/RLL support | ||
448 | # | ||
449 | # CONFIG_IDE is not set | ||
450 | |||
451 | # | ||
452 | # SCSI device support | ||
453 | # | ||
454 | # CONFIG_RAID_ATTRS is not set | ||
455 | CONFIG_SCSI=y | ||
456 | # CONFIG_SCSI_PROC_FS is not set | ||
457 | |||
458 | # | ||
459 | # SCSI support type (disk, tape, CD-ROM) | ||
460 | # | ||
461 | CONFIG_BLK_DEV_SD=y | ||
462 | # CONFIG_CHR_DEV_ST is not set | ||
463 | # CONFIG_CHR_DEV_OSST is not set | ||
464 | # CONFIG_BLK_DEV_SR is not set | ||
465 | # CONFIG_CHR_DEV_SG is not set | ||
466 | # CONFIG_CHR_DEV_SCH is not set | ||
467 | |||
468 | # | ||
469 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
470 | # | ||
471 | # CONFIG_SCSI_MULTI_LUN is not set | ||
472 | # CONFIG_SCSI_CONSTANTS is not set | ||
473 | # CONFIG_SCSI_LOGGING is not set | ||
474 | |||
475 | # | ||
476 | # SCSI Transport Attributes | ||
477 | # | ||
478 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
479 | # CONFIG_SCSI_FC_ATTRS is not set | ||
480 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
481 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
482 | |||
483 | # | ||
484 | # SCSI low-level drivers | ||
485 | # | ||
486 | # CONFIG_ISCSI_TCP is not set | ||
487 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
488 | # CONFIG_SCSI_3W_9XXX is not set | ||
489 | # CONFIG_SCSI_ACARD is not set | ||
490 | # CONFIG_SCSI_AACRAID is not set | ||
491 | # CONFIG_SCSI_AIC7XXX is not set | ||
492 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
493 | # CONFIG_SCSI_AIC79XX is not set | ||
494 | # CONFIG_SCSI_DPT_I2O is not set | ||
495 | # CONFIG_MEGARAID_NEWGEN is not set | ||
496 | # CONFIG_MEGARAID_LEGACY is not set | ||
497 | # CONFIG_MEGARAID_SAS is not set | ||
498 | # CONFIG_SCSI_SATA is not set | ||
499 | # CONFIG_SCSI_DMX3191D is not set | ||
500 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
501 | # CONFIG_SCSI_IPS is not set | ||
502 | # CONFIG_SCSI_INITIO is not set | ||
503 | # CONFIG_SCSI_INIA100 is not set | ||
504 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
505 | # CONFIG_SCSI_IPR is not set | ||
506 | # CONFIG_SCSI_QLOGIC_FC is not set | ||
507 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
508 | # CONFIG_SCSI_QLA_FC is not set | ||
509 | # CONFIG_SCSI_LPFC is not set | ||
510 | # CONFIG_SCSI_DC395x is not set | ||
511 | # CONFIG_SCSI_DC390T is not set | ||
512 | # CONFIG_SCSI_NSP32 is not set | ||
513 | # CONFIG_SCSI_DEBUG is not set | ||
514 | |||
515 | # | ||
516 | # Multi-device support (RAID and LVM) | ||
517 | # | ||
518 | # CONFIG_MD is not set | ||
519 | |||
520 | # | ||
521 | # Fusion MPT device support | ||
522 | # | ||
523 | # CONFIG_FUSION is not set | ||
524 | # CONFIG_FUSION_SPI is not set | ||
525 | # CONFIG_FUSION_FC is not set | ||
526 | # CONFIG_FUSION_SAS is not set | ||
527 | |||
528 | # | ||
529 | # IEEE 1394 (FireWire) support | ||
530 | # | ||
531 | # CONFIG_IEEE1394 is not set | ||
532 | |||
533 | # | ||
534 | # I2O device support | ||
535 | # | ||
536 | # CONFIG_I2O is not set | ||
537 | |||
538 | # | ||
539 | # Network device support | ||
540 | # | ||
541 | CONFIG_NETDEVICES=y | ||
542 | # CONFIG_DUMMY is not set | ||
543 | # CONFIG_BONDING is not set | ||
544 | # CONFIG_EQUALIZER is not set | ||
545 | # CONFIG_TUN is not set | ||
546 | |||
547 | # | ||
548 | # ARCnet devices | ||
549 | # | ||
550 | # CONFIG_ARCNET is not set | ||
551 | |||
552 | # | ||
553 | # PHY device support | ||
554 | # | ||
555 | |||
556 | # | ||
557 | # Ethernet (10 or 100Mbit) | ||
558 | # | ||
559 | # CONFIG_NET_ETHERNET is not set | ||
560 | |||
561 | # | ||
562 | # Ethernet (1000 Mbit) | ||
563 | # | ||
564 | # CONFIG_ACENIC is not set | ||
565 | # CONFIG_DL2K is not set | ||
566 | # CONFIG_E1000 is not set | ||
567 | # CONFIG_NS83820 is not set | ||
568 | # CONFIG_HAMACHI is not set | ||
569 | # CONFIG_YELLOWFIN is not set | ||
570 | # CONFIG_R8169 is not set | ||
571 | # CONFIG_SIS190 is not set | ||
572 | # CONFIG_SKGE is not set | ||
573 | # CONFIG_SKY2 is not set | ||
574 | # CONFIG_SK98LIN is not set | ||
575 | # CONFIG_TIGON3 is not set | ||
576 | # CONFIG_BNX2 is not set | ||
577 | # CONFIG_TITAN_GE is not set | ||
578 | CONFIG_RM9K_GE=m | ||
579 | |||
580 | # | ||
581 | # Ethernet (10000 Mbit) | ||
582 | # | ||
583 | # CONFIG_CHELSIO_T1 is not set | ||
584 | # CONFIG_IXGB is not set | ||
585 | # CONFIG_S2IO is not set | ||
586 | |||
587 | # | ||
588 | # Token Ring devices | ||
589 | # | ||
590 | # CONFIG_TR is not set | ||
591 | |||
592 | # | ||
593 | # Wireless LAN (non-hamradio) | ||
594 | # | ||
595 | # CONFIG_NET_RADIO is not set | ||
596 | |||
597 | # | ||
598 | # Wan interfaces | ||
599 | # | ||
600 | # CONFIG_WAN is not set | ||
601 | # CONFIG_FDDI is not set | ||
602 | # CONFIG_HIPPI is not set | ||
603 | # CONFIG_PPP is not set | ||
604 | # CONFIG_SLIP is not set | ||
605 | # CONFIG_NET_FC is not set | ||
606 | # CONFIG_SHAPER is not set | ||
607 | # CONFIG_NETCONSOLE is not set | ||
608 | # CONFIG_NETPOLL is not set | ||
609 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
610 | |||
611 | # | ||
612 | # ISDN subsystem | ||
613 | # | ||
614 | # CONFIG_ISDN is not set | ||
615 | |||
616 | # | ||
617 | # Telephony Support | ||
618 | # | ||
619 | # CONFIG_PHONE is not set | ||
620 | |||
621 | # | ||
622 | # Input device support | ||
623 | # | ||
624 | CONFIG_INPUT=y | ||
625 | |||
626 | # | ||
627 | # Userland interfaces | ||
628 | # | ||
629 | CONFIG_INPUT_MOUSEDEV=m | ||
630 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
631 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
632 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
633 | # CONFIG_INPUT_JOYDEV is not set | ||
634 | # CONFIG_INPUT_TSDEV is not set | ||
635 | CONFIG_INPUT_EVDEV=m | ||
636 | # CONFIG_INPUT_EVBUG is not set | ||
637 | |||
638 | # | ||
639 | # Input Device Drivers | ||
640 | # | ||
641 | # CONFIG_INPUT_KEYBOARD is not set | ||
642 | # CONFIG_INPUT_MOUSE is not set | ||
643 | # CONFIG_INPUT_JOYSTICK is not set | ||
644 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
645 | # CONFIG_INPUT_MISC is not set | ||
646 | |||
647 | # | ||
648 | # Hardware I/O ports | ||
649 | # | ||
650 | # CONFIG_SERIO is not set | ||
651 | # CONFIG_GAMEPORT is not set | ||
652 | |||
653 | # | ||
654 | # Character devices | ||
655 | # | ||
656 | CONFIG_VT=y | ||
657 | CONFIG_VT_CONSOLE=y | ||
658 | CONFIG_HW_CONSOLE=y | ||
659 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
660 | |||
661 | # | ||
662 | # Serial drivers | ||
663 | # | ||
664 | CONFIG_SERIAL_8250=y | ||
665 | CONFIG_SERIAL_8250_CONSOLE=y | ||
666 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
667 | CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
668 | CONFIG_SERIAL_8250_EXTENDED=y | ||
669 | # CONFIG_SERIAL_8250_MANY_PORTS is not set | ||
670 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
671 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
672 | # CONFIG_SERIAL_8250_RSA is not set | ||
673 | |||
674 | # | ||
675 | # Non-8250 serial port support | ||
676 | # | ||
677 | CONFIG_SERIAL_CORE=y | ||
678 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
679 | # CONFIG_SERIAL_JSM is not set | ||
680 | CONFIG_UNIX98_PTYS=y | ||
681 | # CONFIG_LEGACY_PTYS is not set | ||
682 | |||
683 | # | ||
684 | # IPMI | ||
685 | # | ||
686 | # CONFIG_IPMI_HANDLER is not set | ||
687 | |||
688 | # | ||
689 | # Watchdog Cards | ||
690 | # | ||
691 | CONFIG_WATCHDOG=y | ||
692 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
693 | |||
694 | # | ||
695 | # Watchdog Device Drivers | ||
696 | # | ||
697 | # CONFIG_SOFT_WATCHDOG is not set | ||
698 | CONFIG_WDT_RM9K_GPI=m | ||
699 | |||
700 | # | ||
701 | # PCI-based Watchdog Cards | ||
702 | # | ||
703 | # CONFIG_PCIPCWATCHDOG is not set | ||
704 | # CONFIG_WDTPCI is not set | ||
705 | |||
706 | # | ||
707 | # USB-based Watchdog Cards | ||
708 | # | ||
709 | # CONFIG_USBPCWATCHDOG is not set | ||
710 | # CONFIG_RTC is not set | ||
711 | # CONFIG_GEN_RTC is not set | ||
712 | # CONFIG_DTLK is not set | ||
713 | # CONFIG_R3964 is not set | ||
714 | # CONFIG_APPLICOM is not set | ||
715 | |||
716 | # | ||
717 | # Ftape, the floppy tape device driver | ||
718 | # | ||
719 | # CONFIG_DRM is not set | ||
720 | # CONFIG_RAW_DRIVER is not set | ||
721 | |||
722 | # | ||
723 | # TPM devices | ||
724 | # | ||
725 | # CONFIG_TCG_TPM is not set | ||
726 | # CONFIG_TELCLOCK is not set | ||
727 | |||
728 | # | ||
729 | # I2C support | ||
730 | # | ||
731 | # CONFIG_I2C is not set | ||
732 | |||
733 | # | ||
734 | # SPI support | ||
735 | # | ||
736 | # CONFIG_SPI is not set | ||
737 | # CONFIG_SPI_MASTER is not set | ||
738 | |||
739 | # | ||
740 | # Dallas's 1-wire bus | ||
741 | # | ||
742 | # CONFIG_W1 is not set | ||
743 | |||
744 | # | ||
745 | # Hardware Monitoring support | ||
746 | # | ||
747 | # CONFIG_HWMON is not set | ||
748 | # CONFIG_HWMON_VID is not set | ||
749 | |||
750 | # | ||
751 | # Misc devices | ||
752 | # | ||
753 | |||
754 | # | ||
755 | # Multimedia Capabilities Port drivers | ||
756 | # | ||
757 | |||
758 | # | ||
759 | # Multimedia devices | ||
760 | # | ||
761 | # CONFIG_VIDEO_DEV is not set | ||
762 | |||
763 | # | ||
764 | # Digital Video Broadcasting Devices | ||
765 | # | ||
766 | # CONFIG_DVB is not set | ||
767 | |||
768 | # | ||
769 | # Graphics support | ||
770 | # | ||
771 | CONFIG_FB=y | ||
772 | CONFIG_FB_CFB_FILLRECT=y | ||
773 | CONFIG_FB_CFB_COPYAREA=y | ||
774 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
775 | # CONFIG_FB_MACMODES is not set | ||
776 | # CONFIG_FB_MODE_HELPERS is not set | ||
777 | # CONFIG_FB_TILEBLITTING is not set | ||
778 | # CONFIG_FB_CIRRUS is not set | ||
779 | # CONFIG_FB_PM2 is not set | ||
780 | # CONFIG_FB_CYBER2000 is not set | ||
781 | # CONFIG_FB_ASILIANT is not set | ||
782 | # CONFIG_FB_IMSTT is not set | ||
783 | # CONFIG_FB_S1D13XXX is not set | ||
784 | # CONFIG_FB_NVIDIA is not set | ||
785 | # CONFIG_FB_RIVA is not set | ||
786 | # CONFIG_FB_MATROX is not set | ||
787 | # CONFIG_FB_RADEON_OLD is not set | ||
788 | # CONFIG_FB_RADEON is not set | ||
789 | # CONFIG_FB_ATY128 is not set | ||
790 | # CONFIG_FB_ATY is not set | ||
791 | # CONFIG_FB_SAVAGE is not set | ||
792 | # CONFIG_FB_SIS is not set | ||
793 | # CONFIG_FB_NEOMAGIC is not set | ||
794 | # CONFIG_FB_KYRO is not set | ||
795 | # CONFIG_FB_3DFX is not set | ||
796 | # CONFIG_FB_VOODOO1 is not set | ||
797 | # CONFIG_FB_SMIVGX is not set | ||
798 | # CONFIG_FB_TRIDENT is not set | ||
799 | # CONFIG_FB_VIRTUAL is not set | ||
800 | CONFIG_FB_DD=y | ||
801 | |||
802 | # | ||
803 | # Console display driver support | ||
804 | # | ||
805 | # CONFIG_VGA_CONSOLE is not set | ||
806 | CONFIG_DUMMY_CONSOLE=y | ||
807 | CONFIG_FRAMEBUFFER_CONSOLE=m | ||
808 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
809 | # CONFIG_FONTS is not set | ||
810 | CONFIG_FONT_8x8=y | ||
811 | CONFIG_FONT_8x16=y | ||
812 | |||
813 | # | ||
814 | # Logo configuration | ||
815 | # | ||
816 | # CONFIG_LOGO is not set | ||
817 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
818 | |||
819 | # | ||
820 | # Sound | ||
821 | # | ||
822 | # CONFIG_SOUND is not set | ||
823 | |||
824 | # | ||
825 | # USB support | ||
826 | # | ||
827 | CONFIG_USB_ARCH_HAS_HCD=y | ||
828 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
829 | CONFIG_USB=y | ||
830 | # CONFIG_USB_DEBUG is not set | ||
831 | |||
832 | # | ||
833 | # Miscellaneous USB options | ||
834 | # | ||
835 | CONFIG_USB_DEVICEFS=y | ||
836 | # CONFIG_USB_BANDWIDTH is not set | ||
837 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
838 | # CONFIG_USB_OTG is not set | ||
839 | |||
840 | # | ||
841 | # USB Host Controller Drivers | ||
842 | # | ||
843 | CONFIG_USB_EHCI_HCD=y | ||
844 | # CONFIG_USB_EHCI_SPLIT_ISO is not set | ||
845 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set | ||
846 | # CONFIG_USB_ISP116X_HCD is not set | ||
847 | CONFIG_USB_OHCI_HCD=y | ||
848 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
849 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
850 | # CONFIG_USB_UHCI_HCD is not set | ||
851 | # CONFIG_USB_SL811_HCD is not set | ||
852 | |||
853 | # | ||
854 | # USB Device Class drivers | ||
855 | # | ||
856 | # CONFIG_USB_ACM is not set | ||
857 | # CONFIG_USB_PRINTER is not set | ||
858 | |||
859 | # | ||
860 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
861 | # | ||
862 | |||
863 | # | ||
864 | # may also be needed; see USB_STORAGE Help for more information | ||
865 | # | ||
866 | CONFIG_USB_STORAGE=y | ||
867 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
868 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
869 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
870 | # CONFIG_USB_STORAGE_DPCM is not set | ||
871 | # CONFIG_USB_STORAGE_USBAT is not set | ||
872 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
873 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
874 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
875 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
876 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
877 | # CONFIG_USB_LIBUSUAL is not set | ||
878 | |||
879 | # | ||
880 | # USB Input Devices | ||
881 | # | ||
882 | CONFIG_USB_HID=m | ||
883 | CONFIG_USB_HIDINPUT=y | ||
884 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
885 | # CONFIG_HID_FF is not set | ||
886 | # CONFIG_USB_HIDDEV is not set | ||
887 | |||
888 | # | ||
889 | # USB HID Boot Protocol drivers | ||
890 | # | ||
891 | # CONFIG_USB_KBD is not set | ||
892 | # CONFIG_USB_MOUSE is not set | ||
893 | # CONFIG_USB_AIPTEK is not set | ||
894 | # CONFIG_USB_WACOM is not set | ||
895 | # CONFIG_USB_ACECAD is not set | ||
896 | # CONFIG_USB_KBTAB is not set | ||
897 | # CONFIG_USB_POWERMATE is not set | ||
898 | # CONFIG_USB_MTOUCH is not set | ||
899 | # CONFIG_USB_ITMTOUCH is not set | ||
900 | # CONFIG_USB_EGALAX is not set | ||
901 | # CONFIG_USB_YEALINK is not set | ||
902 | # CONFIG_USB_XPAD is not set | ||
903 | # CONFIG_USB_ATI_REMOTE is not set | ||
904 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
905 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
906 | # CONFIG_USB_APPLETOUCH is not set | ||
907 | |||
908 | # | ||
909 | # USB Imaging devices | ||
910 | # | ||
911 | # CONFIG_USB_MDC800 is not set | ||
912 | # CONFIG_USB_MICROTEK is not set | ||
913 | |||
914 | # | ||
915 | # USB Multimedia devices | ||
916 | # | ||
917 | # CONFIG_USB_DABUSB is not set | ||
918 | |||
919 | # | ||
920 | # Video4Linux support is needed for USB Multimedia device support | ||
921 | # | ||
922 | |||
923 | # | ||
924 | # USB Network Adapters | ||
925 | # | ||
926 | # CONFIG_USB_CATC is not set | ||
927 | # CONFIG_USB_KAWETH is not set | ||
928 | # CONFIG_USB_PEGASUS is not set | ||
929 | # CONFIG_USB_RTL8150 is not set | ||
930 | # CONFIG_USB_USBNET is not set | ||
931 | # CONFIG_USB_MON is not set | ||
932 | |||
933 | # | ||
934 | # USB port drivers | ||
935 | # | ||
936 | |||
937 | # | ||
938 | # USB Serial Converter support | ||
939 | # | ||
940 | # CONFIG_USB_SERIAL is not set | ||
941 | |||
942 | # | ||
943 | # USB Miscellaneous drivers | ||
944 | # | ||
945 | # CONFIG_USB_EMI62 is not set | ||
946 | # CONFIG_USB_EMI26 is not set | ||
947 | # CONFIG_USB_AUERSWALD is not set | ||
948 | # CONFIG_USB_RIO500 is not set | ||
949 | CONFIG_USB_ARTTFT=m | ||
950 | # CONFIG_USB_ARTTOUCH is not set | ||
951 | # CONFIG_USB_LEGOTOWER is not set | ||
952 | # CONFIG_USB_LCD is not set | ||
953 | # CONFIG_USB_LED is not set | ||
954 | # CONFIG_USB_CYTHERM is not set | ||
955 | # CONFIG_USB_PHIDGETKIT is not set | ||
956 | # CONFIG_USB_PHIDGETSERVO is not set | ||
957 | # CONFIG_USB_IDMOUSE is not set | ||
958 | # CONFIG_USB_SISUSBVGA is not set | ||
959 | # CONFIG_USB_LD is not set | ||
960 | # CONFIG_USB_TEST is not set | ||
961 | |||
962 | # | ||
963 | # USB DSL modem support | ||
964 | # | ||
965 | |||
966 | # | ||
967 | # USB Gadget Support | ||
968 | # | ||
969 | # CONFIG_USB_GADGET is not set | ||
970 | |||
971 | # | ||
972 | # MMC/SD Card support | ||
973 | # | ||
974 | # CONFIG_MMC is not set | ||
975 | |||
976 | # | ||
977 | # InfiniBand support | ||
978 | # | ||
979 | # CONFIG_INFINIBAND is not set | ||
980 | |||
981 | # | ||
982 | # SN Devices | ||
983 | # | ||
984 | |||
985 | # | ||
986 | # EDAC - error detection and reporting (RAS) | ||
987 | # | ||
988 | |||
989 | # | ||
990 | # eXcite frame capture support | ||
991 | # | ||
992 | CONFIG_EXCITE_FCAP=m | ||
993 | CONFIG_EXCITE_FCAP_GPI=m | ||
994 | |||
995 | # | ||
996 | # File systems | ||
997 | # | ||
998 | CONFIG_EXT2_FS=y | ||
999 | # CONFIG_EXT2_FS_XATTR is not set | ||
1000 | # CONFIG_EXT2_FS_XIP is not set | ||
1001 | # CONFIG_EXT3_FS is not set | ||
1002 | # CONFIG_REISERFS_FS is not set | ||
1003 | # CONFIG_JFS_FS is not set | ||
1004 | # CONFIG_FS_POSIX_ACL is not set | ||
1005 | # CONFIG_XFS_FS is not set | ||
1006 | # CONFIG_OCFS2_FS is not set | ||
1007 | # CONFIG_MINIX_FS is not set | ||
1008 | # CONFIG_ROMFS_FS is not set | ||
1009 | CONFIG_INOTIFY=y | ||
1010 | # CONFIG_QUOTA is not set | ||
1011 | # CONFIG_DNOTIFY is not set | ||
1012 | # CONFIG_AUTOFS_FS is not set | ||
1013 | # CONFIG_AUTOFS4_FS is not set | ||
1014 | # CONFIG_FUSE_FS is not set | ||
1015 | |||
1016 | # | ||
1017 | # CD-ROM/DVD Filesystems | ||
1018 | # | ||
1019 | # CONFIG_ISO9660_FS is not set | ||
1020 | # CONFIG_UDF_FS is not set | ||
1021 | |||
1022 | # | ||
1023 | # DOS/FAT/NT Filesystems | ||
1024 | # | ||
1025 | CONFIG_FAT_FS=m | ||
1026 | CONFIG_MSDOS_FS=m | ||
1027 | CONFIG_VFAT_FS=m | ||
1028 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1029 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1030 | # CONFIG_NTFS_FS is not set | ||
1031 | |||
1032 | # | ||
1033 | # Pseudo filesystems | ||
1034 | # | ||
1035 | CONFIG_PROC_FS=y | ||
1036 | CONFIG_PROC_KCORE=y | ||
1037 | CONFIG_SYSFS=y | ||
1038 | CONFIG_TMPFS=y | ||
1039 | # CONFIG_HUGETLB_PAGE is not set | ||
1040 | CONFIG_RAMFS=y | ||
1041 | # CONFIG_RELAYFS_FS is not set | ||
1042 | # CONFIG_CONFIGFS_FS is not set | ||
1043 | |||
1044 | # | ||
1045 | # Miscellaneous filesystems | ||
1046 | # | ||
1047 | # CONFIG_ADFS_FS is not set | ||
1048 | # CONFIG_AFFS_FS is not set | ||
1049 | # CONFIG_HFS_FS is not set | ||
1050 | # CONFIG_HFSPLUS_FS is not set | ||
1051 | # CONFIG_BEFS_FS is not set | ||
1052 | # CONFIG_BFS_FS is not set | ||
1053 | # CONFIG_EFS_FS is not set | ||
1054 | # CONFIG_JFFS_FS is not set | ||
1055 | CONFIG_JFFS2_FS=y | ||
1056 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1057 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1058 | # CONFIG_JFFS2_SUMMARY is not set | ||
1059 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1060 | CONFIG_JFFS2_ZLIB=y | ||
1061 | CONFIG_JFFS2_RTIME=y | ||
1062 | # CONFIG_JFFS2_RUBIN is not set | ||
1063 | # CONFIG_CRAMFS is not set | ||
1064 | # CONFIG_VXFS_FS is not set | ||
1065 | # CONFIG_HPFS_FS is not set | ||
1066 | # CONFIG_QNX4FS_FS is not set | ||
1067 | # CONFIG_SYSV_FS is not set | ||
1068 | # CONFIG_UFS_FS is not set | ||
1069 | |||
1070 | # | ||
1071 | # Network File Systems | ||
1072 | # | ||
1073 | CONFIG_NFS_FS=y | ||
1074 | CONFIG_NFS_V3=y | ||
1075 | # CONFIG_NFS_V3_ACL is not set | ||
1076 | # CONFIG_NFS_V4 is not set | ||
1077 | # CONFIG_NFS_DIRECTIO is not set | ||
1078 | # CONFIG_NFSD is not set | ||
1079 | CONFIG_ROOT_NFS=y | ||
1080 | CONFIG_LOCKD=y | ||
1081 | CONFIG_LOCKD_V4=y | ||
1082 | CONFIG_NFS_COMMON=y | ||
1083 | CONFIG_SUNRPC=y | ||
1084 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1085 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1086 | # CONFIG_SMB_FS is not set | ||
1087 | # CONFIG_CIFS is not set | ||
1088 | # CONFIG_NCP_FS is not set | ||
1089 | # CONFIG_CODA_FS is not set | ||
1090 | # CONFIG_AFS_FS is not set | ||
1091 | # CONFIG_9P_FS is not set | ||
1092 | |||
1093 | # | ||
1094 | # Partition Types | ||
1095 | # | ||
1096 | CONFIG_PARTITION_ADVANCED=y | ||
1097 | # CONFIG_ACORN_PARTITION is not set | ||
1098 | # CONFIG_OSF_PARTITION is not set | ||
1099 | # CONFIG_AMIGA_PARTITION is not set | ||
1100 | # CONFIG_ATARI_PARTITION is not set | ||
1101 | # CONFIG_MAC_PARTITION is not set | ||
1102 | CONFIG_MSDOS_PARTITION=y | ||
1103 | # CONFIG_BSD_DISKLABEL is not set | ||
1104 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1105 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1106 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1107 | # CONFIG_LDM_PARTITION is not set | ||
1108 | # CONFIG_SGI_PARTITION is not set | ||
1109 | # CONFIG_ULTRIX_PARTITION is not set | ||
1110 | # CONFIG_SUN_PARTITION is not set | ||
1111 | # CONFIG_KARMA_PARTITION is not set | ||
1112 | # CONFIG_EFI_PARTITION is not set | ||
1113 | |||
1114 | # | ||
1115 | # Native Language Support | ||
1116 | # | ||
1117 | CONFIG_NLS=y | ||
1118 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1119 | CONFIG_NLS_CODEPAGE_437=m | ||
1120 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1121 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1122 | CONFIG_NLS_CODEPAGE_850=m | ||
1123 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1124 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1125 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1126 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1127 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1128 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1129 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1130 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1131 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1132 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1133 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1134 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1135 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1136 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1137 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1138 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1139 | # CONFIG_NLS_ISO8859_8 is not set | ||
1140 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1141 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1142 | # CONFIG_NLS_ASCII is not set | ||
1143 | CONFIG_NLS_ISO8859_1=m | ||
1144 | # CONFIG_NLS_ISO8859_2 is not set | ||
1145 | # CONFIG_NLS_ISO8859_3 is not set | ||
1146 | # CONFIG_NLS_ISO8859_4 is not set | ||
1147 | # CONFIG_NLS_ISO8859_5 is not set | ||
1148 | # CONFIG_NLS_ISO8859_6 is not set | ||
1149 | # CONFIG_NLS_ISO8859_7 is not set | ||
1150 | # CONFIG_NLS_ISO8859_9 is not set | ||
1151 | # CONFIG_NLS_ISO8859_13 is not set | ||
1152 | # CONFIG_NLS_ISO8859_14 is not set | ||
1153 | # CONFIG_NLS_ISO8859_15 is not set | ||
1154 | # CONFIG_NLS_KOI8_R is not set | ||
1155 | # CONFIG_NLS_KOI8_U is not set | ||
1156 | # CONFIG_NLS_UTF8 is not set | ||
1157 | |||
1158 | # | ||
1159 | # Profiling support | ||
1160 | # | ||
1161 | # CONFIG_PROFILING is not set | ||
1162 | |||
1163 | # | ||
1164 | # Kernel hacking | ||
1165 | # | ||
1166 | # CONFIG_PRINTK_TIME is not set | ||
1167 | # CONFIG_MAGIC_SYSRQ is not set | ||
1168 | # CONFIG_DEBUG_KERNEL is not set | ||
1169 | CONFIG_LOG_BUF_SHIFT=14 | ||
1170 | CONFIG_CROSSCOMPILE=y | ||
1171 | CONFIG_CMDLINE="" | ||
1172 | |||
1173 | # | ||
1174 | # Security options | ||
1175 | # | ||
1176 | # CONFIG_KEYS is not set | ||
1177 | # CONFIG_SECURITY is not set | ||
1178 | |||
1179 | # | ||
1180 | # Cryptographic options | ||
1181 | # | ||
1182 | CONFIG_CRYPTO=y | ||
1183 | # CONFIG_CRYPTO_HMAC is not set | ||
1184 | # CONFIG_CRYPTO_NULL is not set | ||
1185 | # CONFIG_CRYPTO_MD4 is not set | ||
1186 | # CONFIG_CRYPTO_MD5 is not set | ||
1187 | # CONFIG_CRYPTO_SHA1 is not set | ||
1188 | # CONFIG_CRYPTO_SHA256 is not set | ||
1189 | # CONFIG_CRYPTO_SHA512 is not set | ||
1190 | # CONFIG_CRYPTO_WP512 is not set | ||
1191 | # CONFIG_CRYPTO_TGR192 is not set | ||
1192 | # CONFIG_CRYPTO_DES is not set | ||
1193 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1194 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1195 | # CONFIG_CRYPTO_SERPENT is not set | ||
1196 | # CONFIG_CRYPTO_AES is not set | ||
1197 | # CONFIG_CRYPTO_CAST5 is not set | ||
1198 | # CONFIG_CRYPTO_CAST6 is not set | ||
1199 | # CONFIG_CRYPTO_TEA is not set | ||
1200 | # CONFIG_CRYPTO_ARC4 is not set | ||
1201 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1202 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1203 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1204 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1205 | # CONFIG_CRYPTO_CRC32C is not set | ||
1206 | # CONFIG_CRYPTO_TEST is not set | ||
1207 | |||
1208 | # | ||
1209 | # Hardware crypto devices | ||
1210 | # | ||
1211 | |||
1212 | # | ||
1213 | # Library routines | ||
1214 | # | ||
1215 | # CONFIG_CRC_CCITT is not set | ||
1216 | # CONFIG_CRC16 is not set | ||
1217 | CONFIG_CRC32=y | ||
1218 | # CONFIG_LIBCRC32C is not set | ||
1219 | CONFIG_ZLIB_INFLATE=y | ||
1220 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/mips/configs/ip22_defconfig b/arch/mips/configs/ip22_defconfig index 607e2985ffe3..879ba1ad99ca 100644 --- a/arch/mips/configs/ip22_defconfig +++ b/arch/mips/configs/ip22_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | # CONFIG_PREEMPT_NONE is not set | 146 | # CONFIG_PREEMPT_NONE is not set |
140 | CONFIG_PREEMPT_VOLUNTARY=y | 147 | CONFIG_PREEMPT_VOLUNTARY=y |
141 | # CONFIG_PREEMPT is not set | 148 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ip27_defconfig b/arch/mips/configs/ip27_defconfig index f724b4b2ecf2..bb1426806430 100644 --- a/arch/mips/configs/ip27_defconfig +++ b/arch/mips/configs/ip27_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -63,7 +61,7 @@ CONFIG_SGI_IP27=y | |||
63 | # CONFIG_TOSHIBA_JMR3927 is not set | 61 | # CONFIG_TOSHIBA_JMR3927 is not set |
64 | # CONFIG_TOSHIBA_RBTX4927 is not set | 62 | # CONFIG_TOSHIBA_RBTX4927 is not set |
65 | # CONFIG_TOSHIBA_RBTX4938 is not set | 63 | # CONFIG_TOSHIBA_RBTX4938 is not set |
66 | # CONFIG_SGI_SN0_N_MODE is not set | 64 | # CONFIG_SGI_SN_N_MODE is not set |
67 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y | 65 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y |
68 | CONFIG_NUMA=y | 66 | CONFIG_NUMA=y |
69 | # CONFIG_MAPPED_KERNEL is not set | 67 | # CONFIG_MAPPED_KERNEL is not set |
@@ -135,6 +133,15 @@ CONFIG_FLAT_NODE_MEM_MAP=y | |||
135 | CONFIG_NEED_MULTIPLE_NODES=y | 133 | CONFIG_NEED_MULTIPLE_NODES=y |
136 | # CONFIG_SPARSEMEM_STATIC is not set | 134 | # CONFIG_SPARSEMEM_STATIC is not set |
137 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 135 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
136 | # CONFIG_HZ_48 is not set | ||
137 | # CONFIG_HZ_100 is not set | ||
138 | # CONFIG_HZ_128 is not set | ||
139 | # CONFIG_HZ_250 is not set | ||
140 | # CONFIG_HZ_256 is not set | ||
141 | CONFIG_HZ_1000=y | ||
142 | # CONFIG_HZ_1024 is not set | ||
143 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
144 | CONFIG_HZ=1000 | ||
138 | CONFIG_MIGRATION=y | 145 | CONFIG_MIGRATION=y |
139 | CONFIG_SMP=y | 146 | CONFIG_SMP=y |
140 | CONFIG_NR_CPUS=64 | 147 | CONFIG_NR_CPUS=64 |
diff --git a/arch/mips/configs/ip32_defconfig b/arch/mips/configs/ip32_defconfig index 8f11d3565b2d..31b3c92a3841 100644 --- a/arch/mips/configs/ip32_defconfig +++ b/arch/mips/configs/ip32_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | # CONFIG_PREEMPT_NONE is not set | 146 | # CONFIG_PREEMPT_NONE is not set |
140 | CONFIG_PREEMPT_VOLUNTARY=y | 147 | CONFIG_PREEMPT_VOLUNTARY=y |
141 | # CONFIG_PREEMPT is not set | 148 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/it8172_defconfig b/arch/mips/configs/it8172_defconfig index 757adf23853d..809bae9013ac 100644 --- a/arch/mips/configs/it8172_defconfig +++ b/arch/mips/configs/it8172_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_ITE8172=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ivr_defconfig b/arch/mips/configs/ivr_defconfig index 021761a8a237..55108fd67844 100644 --- a/arch/mips/configs/ivr_defconfig +++ b/arch/mips/configs/ivr_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_IVR=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -127,6 +125,15 @@ CONFIG_FLATMEM=y | |||
127 | CONFIG_FLAT_NODE_MEM_MAP=y | 125 | CONFIG_FLAT_NODE_MEM_MAP=y |
128 | # CONFIG_SPARSEMEM_STATIC is not set | 126 | # CONFIG_SPARSEMEM_STATIC is not set |
129 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 127 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
128 | # CONFIG_HZ_48 is not set | ||
129 | # CONFIG_HZ_100 is not set | ||
130 | # CONFIG_HZ_128 is not set | ||
131 | # CONFIG_HZ_250 is not set | ||
132 | # CONFIG_HZ_256 is not set | ||
133 | CONFIG_HZ_1000=y | ||
134 | # CONFIG_HZ_1024 is not set | ||
135 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
136 | CONFIG_HZ=1000 | ||
130 | CONFIG_PREEMPT_NONE=y | 137 | CONFIG_PREEMPT_NONE=y |
131 | # CONFIG_PREEMPT_VOLUNTARY is not set | 138 | # CONFIG_PREEMPT_VOLUNTARY is not set |
132 | # CONFIG_PREEMPT is not set | 139 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/jaguar-atx_defconfig b/arch/mips/configs/jaguar-atx_defconfig index 08f6c30b0abc..ef2843436057 100644 --- a/arch/mips/configs/jaguar-atx_defconfig +++ b/arch/mips/configs/jaguar-atx_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MOMENCO_JAGUAR_ATX=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | # CONFIG_SMP is not set | 146 | # CONFIG_SMP is not set |
140 | CONFIG_PREEMPT_NONE=y | 147 | CONFIG_PREEMPT_NONE=y |
141 | # CONFIG_PREEMPT_VOLUNTARY is not set | 148 | # CONFIG_PREEMPT_VOLUNTARY is not set |
diff --git a/arch/mips/configs/jmr3927_defconfig b/arch/mips/configs/jmr3927_defconfig index 38b1e026e10d..5ef5a08289a5 100644 --- a/arch/mips/configs/jmr3927_defconfig +++ b/arch/mips/configs/jmr3927_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -125,6 +123,15 @@ CONFIG_FLATMEM=y | |||
125 | CONFIG_FLAT_NODE_MEM_MAP=y | 123 | CONFIG_FLAT_NODE_MEM_MAP=y |
126 | # CONFIG_SPARSEMEM_STATIC is not set | 124 | # CONFIG_SPARSEMEM_STATIC is not set |
127 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 125 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
126 | # CONFIG_HZ_48 is not set | ||
127 | # CONFIG_HZ_100 is not set | ||
128 | # CONFIG_HZ_128 is not set | ||
129 | # CONFIG_HZ_250 is not set | ||
130 | # CONFIG_HZ_256 is not set | ||
131 | CONFIG_HZ_1000=y | ||
132 | # CONFIG_HZ_1024 is not set | ||
133 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
134 | CONFIG_HZ=1000 | ||
128 | CONFIG_PREEMPT_NONE=y | 135 | CONFIG_PREEMPT_NONE=y |
129 | # CONFIG_PREEMPT_VOLUNTARY is not set | 136 | # CONFIG_PREEMPT_VOLUNTARY is not set |
130 | # CONFIG_PREEMPT is not set | 137 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/lasat200_defconfig b/arch/mips/configs/lasat200_defconfig index 4d25990a0a05..eabcff26fc0e 100644 --- a/arch/mips/configs/lasat200_defconfig +++ b/arch/mips/configs/lasat200_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_LASAT=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -134,6 +132,15 @@ CONFIG_FLATMEM=y | |||
134 | CONFIG_FLAT_NODE_MEM_MAP=y | 132 | CONFIG_FLAT_NODE_MEM_MAP=y |
135 | # CONFIG_SPARSEMEM_STATIC is not set | 133 | # CONFIG_SPARSEMEM_STATIC is not set |
136 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 134 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
135 | # CONFIG_HZ_48 is not set | ||
136 | # CONFIG_HZ_100 is not set | ||
137 | # CONFIG_HZ_128 is not set | ||
138 | # CONFIG_HZ_250 is not set | ||
139 | # CONFIG_HZ_256 is not set | ||
140 | CONFIG_HZ_1000=y | ||
141 | # CONFIG_HZ_1024 is not set | ||
142 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
143 | CONFIG_HZ=1000 | ||
137 | CONFIG_PREEMPT_NONE=y | 144 | CONFIG_PREEMPT_NONE=y |
138 | # CONFIG_PREEMPT_VOLUNTARY is not set | 145 | # CONFIG_PREEMPT_VOLUNTARY is not set |
139 | # CONFIG_PREEMPT is not set | 146 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/malta_defconfig b/arch/mips/configs/malta_defconfig index 977f52be51dc..b73cff0d83ca 100644 --- a/arch/mips/configs/malta_defconfig +++ b/arch/mips/configs/malta_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_MALTA=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -154,6 +152,15 @@ CONFIG_FLATMEM=y | |||
154 | CONFIG_FLAT_NODE_MEM_MAP=y | 152 | CONFIG_FLAT_NODE_MEM_MAP=y |
155 | # CONFIG_SPARSEMEM_STATIC is not set | 153 | # CONFIG_SPARSEMEM_STATIC is not set |
156 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 154 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
155 | # CONFIG_HZ_48 is not set | ||
156 | CONFIG_HZ_100=y | ||
157 | # CONFIG_HZ_128 is not set | ||
158 | # CONFIG_HZ_250 is not set | ||
159 | # CONFIG_HZ_256 is not set | ||
160 | # CONFIG_HZ_1000 is not set | ||
161 | # CONFIG_HZ_1024 is not set | ||
162 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
163 | CONFIG_HZ=100 | ||
157 | CONFIG_PREEMPT_NONE=y | 164 | CONFIG_PREEMPT_NONE=y |
158 | # CONFIG_PREEMPT_VOLUNTARY is not set | 165 | # CONFIG_PREEMPT_VOLUNTARY is not set |
159 | # CONFIG_PREEMPT is not set | 166 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/mipssim_defconfig b/arch/mips/configs/mipssim_defconfig index 00560e0143f1..8dd27b55413d 100644 --- a/arch/mips/configs/mipssim_defconfig +++ b/arch/mips/configs/mipssim_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_SIM=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -138,6 +136,15 @@ CONFIG_FLATMEM=y | |||
138 | CONFIG_FLAT_NODE_MEM_MAP=y | 136 | CONFIG_FLAT_NODE_MEM_MAP=y |
139 | # CONFIG_SPARSEMEM_STATIC is not set | 137 | # CONFIG_SPARSEMEM_STATIC is not set |
140 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 138 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
139 | # CONFIG_HZ_48 is not set | ||
140 | # CONFIG_HZ_100 is not set | ||
141 | # CONFIG_HZ_128 is not set | ||
142 | # CONFIG_HZ_250 is not set | ||
143 | # CONFIG_HZ_256 is not set | ||
144 | CONFIG_HZ_1000=y | ||
145 | # CONFIG_HZ_1024 is not set | ||
146 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
147 | CONFIG_HZ=1000 | ||
141 | CONFIG_PREEMPT_NONE=y | 148 | CONFIG_PREEMPT_NONE=y |
142 | # CONFIG_PREEMPT_VOLUNTARY is not set | 149 | # CONFIG_PREEMPT_VOLUNTARY is not set |
143 | # CONFIG_PREEMPT is not set | 150 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/mpc30x_defconfig b/arch/mips/configs/mpc30x_defconfig index 286a018375b2..5d6ff3c352c9 100644 --- a/arch/mips/configs/mpc30x_defconfig +++ b/arch/mips/configs/mpc30x_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -132,6 +130,15 @@ CONFIG_FLATMEM=y | |||
132 | CONFIG_FLAT_NODE_MEM_MAP=y | 130 | CONFIG_FLAT_NODE_MEM_MAP=y |
133 | # CONFIG_SPARSEMEM_STATIC is not set | 131 | # CONFIG_SPARSEMEM_STATIC is not set |
134 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 132 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
133 | # CONFIG_HZ_48 is not set | ||
134 | # CONFIG_HZ_100 is not set | ||
135 | # CONFIG_HZ_128 is not set | ||
136 | # CONFIG_HZ_250 is not set | ||
137 | # CONFIG_HZ_256 is not set | ||
138 | CONFIG_HZ_1000=y | ||
139 | # CONFIG_HZ_1024 is not set | ||
140 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
141 | CONFIG_HZ=1000 | ||
135 | CONFIG_PREEMPT_NONE=y | 142 | CONFIG_PREEMPT_NONE=y |
136 | # CONFIG_PREEMPT_VOLUNTARY is not set | 143 | # CONFIG_PREEMPT_VOLUNTARY is not set |
137 | # CONFIG_PREEMPT is not set | 144 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ocelot_3_defconfig b/arch/mips/configs/ocelot_3_defconfig index 1ce4310fd92a..fe5e3dd915f5 100644 --- a/arch/mips/configs/ocelot_3_defconfig +++ b/arch/mips/configs/ocelot_3_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MOMENCO_OCELOT_3=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | # CONFIG_SMP is not set | 146 | # CONFIG_SMP is not set |
140 | CONFIG_PREEMPT_NONE=y | 147 | CONFIG_PREEMPT_NONE=y |
141 | # CONFIG_PREEMPT_VOLUNTARY is not set | 148 | # CONFIG_PREEMPT_VOLUNTARY is not set |
diff --git a/arch/mips/configs/ocelot_c_defconfig b/arch/mips/configs/ocelot_c_defconfig index 8a6aa5012f89..f4a33ce47e50 100644 --- a/arch/mips/configs/ocelot_c_defconfig +++ b/arch/mips/configs/ocelot_c_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MOMENCO_OCELOT_C=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -133,6 +131,15 @@ CONFIG_FLATMEM=y | |||
133 | CONFIG_FLAT_NODE_MEM_MAP=y | 131 | CONFIG_FLAT_NODE_MEM_MAP=y |
134 | # CONFIG_SPARSEMEM_STATIC is not set | 132 | # CONFIG_SPARSEMEM_STATIC is not set |
135 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 133 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
134 | # CONFIG_HZ_48 is not set | ||
135 | # CONFIG_HZ_100 is not set | ||
136 | # CONFIG_HZ_128 is not set | ||
137 | # CONFIG_HZ_250 is not set | ||
138 | # CONFIG_HZ_256 is not set | ||
139 | CONFIG_HZ_1000=y | ||
140 | # CONFIG_HZ_1024 is not set | ||
141 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
142 | CONFIG_HZ=1000 | ||
136 | CONFIG_PREEMPT_NONE=y | 143 | CONFIG_PREEMPT_NONE=y |
137 | # CONFIG_PREEMPT_VOLUNTARY is not set | 144 | # CONFIG_PREEMPT_VOLUNTARY is not set |
138 | # CONFIG_PREEMPT is not set | 145 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ocelot_defconfig b/arch/mips/configs/ocelot_defconfig index f9ee35eeb762..21dea9549feb 100644 --- a/arch/mips/configs/ocelot_defconfig +++ b/arch/mips/configs/ocelot_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MOMENCO_OCELOT=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -137,6 +135,15 @@ CONFIG_FLATMEM=y | |||
137 | CONFIG_FLAT_NODE_MEM_MAP=y | 135 | CONFIG_FLAT_NODE_MEM_MAP=y |
138 | # CONFIG_SPARSEMEM_STATIC is not set | 136 | # CONFIG_SPARSEMEM_STATIC is not set |
139 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 137 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
138 | # CONFIG_HZ_48 is not set | ||
139 | # CONFIG_HZ_100 is not set | ||
140 | # CONFIG_HZ_128 is not set | ||
141 | # CONFIG_HZ_250 is not set | ||
142 | # CONFIG_HZ_256 is not set | ||
143 | CONFIG_HZ_1000=y | ||
144 | # CONFIG_HZ_1024 is not set | ||
145 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
146 | CONFIG_HZ=1000 | ||
140 | CONFIG_PREEMPT_NONE=y | 147 | CONFIG_PREEMPT_NONE=y |
141 | # CONFIG_PREEMPT_VOLUNTARY is not set | 148 | # CONFIG_PREEMPT_VOLUNTARY is not set |
142 | # CONFIG_PREEMPT is not set | 149 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ocelot_g_defconfig b/arch/mips/configs/ocelot_g_defconfig index b48bdee2411f..c63b1ca8c8b3 100644 --- a/arch/mips/configs/ocelot_g_defconfig +++ b/arch/mips/configs/ocelot_g_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MOMENCO_OCELOT_G=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | CONFIG_PREEMPT_NONE=y | 146 | CONFIG_PREEMPT_NONE=y |
140 | # CONFIG_PREEMPT_VOLUNTARY is not set | 147 | # CONFIG_PREEMPT_VOLUNTARY is not set |
141 | # CONFIG_PREEMPT is not set | 148 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/pb1100_defconfig b/arch/mips/configs/pb1100_defconfig index 01aac40634b4..6f5c7261e9de 100644 --- a/arch/mips/configs/pb1100_defconfig +++ b/arch/mips/configs/pb1100_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_PB1100=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -132,6 +130,15 @@ CONFIG_FLATMEM=y | |||
132 | CONFIG_FLAT_NODE_MEM_MAP=y | 130 | CONFIG_FLAT_NODE_MEM_MAP=y |
133 | # CONFIG_SPARSEMEM_STATIC is not set | 131 | # CONFIG_SPARSEMEM_STATIC is not set |
134 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 132 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
133 | # CONFIG_HZ_48 is not set | ||
134 | # CONFIG_HZ_100 is not set | ||
135 | # CONFIG_HZ_128 is not set | ||
136 | # CONFIG_HZ_250 is not set | ||
137 | # CONFIG_HZ_256 is not set | ||
138 | CONFIG_HZ_1000=y | ||
139 | # CONFIG_HZ_1024 is not set | ||
140 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
141 | CONFIG_HZ=1000 | ||
135 | CONFIG_PREEMPT_NONE=y | 142 | CONFIG_PREEMPT_NONE=y |
136 | # CONFIG_PREEMPT_VOLUNTARY is not set | 143 | # CONFIG_PREEMPT_VOLUNTARY is not set |
137 | # CONFIG_PREEMPT is not set | 144 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/pb1500_defconfig b/arch/mips/configs/pb1500_defconfig index 398c3c265b9f..5676f3747fd5 100644 --- a/arch/mips/configs/pb1500_defconfig +++ b/arch/mips/configs/pb1500_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_PB1500=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -131,6 +129,15 @@ CONFIG_FLATMEM=y | |||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | 129 | CONFIG_FLAT_NODE_MEM_MAP=y |
132 | # CONFIG_SPARSEMEM_STATIC is not set | 130 | # CONFIG_SPARSEMEM_STATIC is not set |
133 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 131 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
132 | # CONFIG_HZ_48 is not set | ||
133 | # CONFIG_HZ_100 is not set | ||
134 | # CONFIG_HZ_128 is not set | ||
135 | # CONFIG_HZ_250 is not set | ||
136 | # CONFIG_HZ_256 is not set | ||
137 | CONFIG_HZ_1000=y | ||
138 | # CONFIG_HZ_1024 is not set | ||
139 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
140 | CONFIG_HZ=1000 | ||
134 | CONFIG_PREEMPT_NONE=y | 141 | CONFIG_PREEMPT_NONE=y |
135 | # CONFIG_PREEMPT_VOLUNTARY is not set | 142 | # CONFIG_PREEMPT_VOLUNTARY is not set |
136 | # CONFIG_PREEMPT is not set | 143 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/pb1550_defconfig b/arch/mips/configs/pb1550_defconfig index ea282a53bb66..a1c479fa613b 100644 --- a/arch/mips/configs/pb1550_defconfig +++ b/arch/mips/configs/pb1550_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_PB1550=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -131,6 +129,15 @@ CONFIG_FLATMEM=y | |||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | 129 | CONFIG_FLAT_NODE_MEM_MAP=y |
132 | # CONFIG_SPARSEMEM_STATIC is not set | 130 | # CONFIG_SPARSEMEM_STATIC is not set |
133 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 131 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
132 | # CONFIG_HZ_48 is not set | ||
133 | # CONFIG_HZ_100 is not set | ||
134 | # CONFIG_HZ_128 is not set | ||
135 | # CONFIG_HZ_250 is not set | ||
136 | # CONFIG_HZ_256 is not set | ||
137 | CONFIG_HZ_1000=y | ||
138 | # CONFIG_HZ_1024 is not set | ||
139 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
140 | CONFIG_HZ=1000 | ||
134 | CONFIG_PREEMPT_NONE=y | 141 | CONFIG_PREEMPT_NONE=y |
135 | # CONFIG_PREEMPT_VOLUNTARY is not set | 142 | # CONFIG_PREEMPT_VOLUNTARY is not set |
136 | # CONFIG_PREEMPT is not set | 143 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/pnx8550-jbs_defconfig b/arch/mips/configs/pnx8550-jbs_defconfig index 4c57e564db0b..b2d991b80309 100644 --- a/arch/mips/configs/pnx8550-jbs_defconfig +++ b/arch/mips/configs/pnx8550-jbs_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | CONFIG_PNX8550_JBS=y | 43 | CONFIG_PNX8550_JBS=y |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/pnx8550-v2pci_defconfig b/arch/mips/configs/pnx8550-v2pci_defconfig index 3c8f35162fec..fe092ac92e89 100644 --- a/arch/mips/configs/pnx8550-v2pci_defconfig +++ b/arch/mips/configs/pnx8550-v2pci_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | CONFIG_PNX8550_V2PCI=y | 42 | CONFIG_PNX8550_V2PCI=y |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/qemu_defconfig b/arch/mips/configs/qemu_defconfig index 4bcc01dea041..db8701344cee 100644 --- a/arch/mips/configs/qemu_defconfig +++ b/arch/mips/configs/qemu_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -128,6 +126,15 @@ CONFIG_FLAT_NODE_MEM_MAP=y | |||
128 | # CONFIG_SPARSEMEM_STATIC is not set | 126 | # CONFIG_SPARSEMEM_STATIC is not set |
129 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 127 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
130 | # CONFIG_SMP is not set | 128 | # CONFIG_SMP is not set |
129 | # CONFIG_HZ_48 is not set | ||
130 | CONFIG_HZ_100=y | ||
131 | # CONFIG_HZ_128 is not set | ||
132 | # CONFIG_HZ_250 is not set | ||
133 | # CONFIG_HZ_256 is not set | ||
134 | # CONFIG_HZ_1000 is not set | ||
135 | # CONFIG_HZ_1024 is not set | ||
136 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
137 | CONFIG_HZ=100 | ||
131 | CONFIG_PREEMPT_NONE=y | 138 | CONFIG_PREEMPT_NONE=y |
132 | # CONFIG_PREEMPT_VOLUNTARY is not set | 139 | # CONFIG_PREEMPT_VOLUNTARY is not set |
133 | # CONFIG_PREEMPT is not set | 140 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/rbhma4500_defconfig b/arch/mips/configs/rbhma4500_defconfig index 3d441932e43a..b16731f3684b 100644 --- a/arch/mips/configs/rbhma4500_defconfig +++ b/arch/mips/configs/rbhma4500_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -138,6 +136,15 @@ CONFIG_FLATMEM=y | |||
138 | CONFIG_FLAT_NODE_MEM_MAP=y | 136 | CONFIG_FLAT_NODE_MEM_MAP=y |
139 | # CONFIG_SPARSEMEM_STATIC is not set | 137 | # CONFIG_SPARSEMEM_STATIC is not set |
140 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 138 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
139 | # CONFIG_HZ_48 is not set | ||
140 | # CONFIG_HZ_100 is not set | ||
141 | # CONFIG_HZ_128 is not set | ||
142 | # CONFIG_HZ_250 is not set | ||
143 | # CONFIG_HZ_256 is not set | ||
144 | CONFIG_HZ_1000=y | ||
145 | # CONFIG_HZ_1024 is not set | ||
146 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
147 | CONFIG_HZ=1000 | ||
141 | CONFIG_PREEMPT_NONE=y | 148 | CONFIG_PREEMPT_NONE=y |
142 | # CONFIG_PREEMPT_VOLUNTARY is not set | 149 | # CONFIG_PREEMPT_VOLUNTARY is not set |
143 | # CONFIG_PREEMPT is not set | 150 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/rm200_defconfig b/arch/mips/configs/rm200_defconfig index edfb9679a25a..8b0dd8651264 100644 --- a/arch/mips/configs/rm200_defconfig +++ b/arch/mips/configs/rm200_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -138,6 +136,15 @@ CONFIG_FLATMEM=y | |||
138 | CONFIG_FLAT_NODE_MEM_MAP=y | 136 | CONFIG_FLAT_NODE_MEM_MAP=y |
139 | # CONFIG_SPARSEMEM_STATIC is not set | 137 | # CONFIG_SPARSEMEM_STATIC is not set |
140 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 138 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
139 | # CONFIG_HZ_48 is not set | ||
140 | # CONFIG_HZ_100 is not set | ||
141 | # CONFIG_HZ_128 is not set | ||
142 | # CONFIG_HZ_250 is not set | ||
143 | # CONFIG_HZ_256 is not set | ||
144 | CONFIG_HZ_1000=y | ||
145 | # CONFIG_HZ_1024 is not set | ||
146 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
147 | CONFIG_HZ=1000 | ||
141 | # CONFIG_PREEMPT_NONE is not set | 148 | # CONFIG_PREEMPT_NONE is not set |
142 | CONFIG_PREEMPT_VOLUNTARY=y | 149 | CONFIG_PREEMPT_VOLUNTARY=y |
143 | # CONFIG_PREEMPT is not set | 150 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/sb1250-swarm_defconfig b/arch/mips/configs/sb1250-swarm_defconfig index e388a3dae0a9..ff34ed66fe65 100644 --- a/arch/mips/configs/sb1250-swarm_defconfig +++ b/arch/mips/configs/sb1250-swarm_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -149,6 +147,15 @@ CONFIG_FLATMEM=y | |||
149 | CONFIG_FLAT_NODE_MEM_MAP=y | 147 | CONFIG_FLAT_NODE_MEM_MAP=y |
150 | # CONFIG_SPARSEMEM_STATIC is not set | 148 | # CONFIG_SPARSEMEM_STATIC is not set |
151 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 149 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
150 | # CONFIG_HZ_48 is not set | ||
151 | # CONFIG_HZ_100 is not set | ||
152 | # CONFIG_HZ_128 is not set | ||
153 | # CONFIG_HZ_250 is not set | ||
154 | # CONFIG_HZ_256 is not set | ||
155 | CONFIG_HZ_1000=y | ||
156 | # CONFIG_HZ_1024 is not set | ||
157 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
158 | CONFIG_HZ=1000 | ||
152 | CONFIG_SMP=y | 159 | CONFIG_SMP=y |
153 | CONFIG_NR_CPUS=2 | 160 | CONFIG_NR_CPUS=2 |
154 | CONFIG_PREEMPT_NONE=y | 161 | CONFIG_PREEMPT_NONE=y |
diff --git a/arch/mips/configs/sead_defconfig b/arch/mips/configs/sead_defconfig index 6b8a6a416a25..77edeae7f018 100644 --- a/arch/mips/configs/sead_defconfig +++ b/arch/mips/configs/sead_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS_SEAD=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -134,6 +132,15 @@ CONFIG_FLATMEM=y | |||
134 | CONFIG_FLAT_NODE_MEM_MAP=y | 132 | CONFIG_FLAT_NODE_MEM_MAP=y |
135 | # CONFIG_SPARSEMEM_STATIC is not set | 133 | # CONFIG_SPARSEMEM_STATIC is not set |
136 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 134 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
135 | # CONFIG_HZ_48 is not set | ||
136 | # CONFIG_HZ_100 is not set | ||
137 | # CONFIG_HZ_128 is not set | ||
138 | # CONFIG_HZ_250 is not set | ||
139 | # CONFIG_HZ_256 is not set | ||
140 | CONFIG_HZ_1000=y | ||
141 | # CONFIG_HZ_1024 is not set | ||
142 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
143 | CONFIG_HZ=1000 | ||
137 | CONFIG_PREEMPT_NONE=y | 144 | CONFIG_PREEMPT_NONE=y |
138 | # CONFIG_PREEMPT_VOLUNTARY is not set | 145 | # CONFIG_PREEMPT_VOLUNTARY is not set |
139 | # CONFIG_PREEMPT is not set | 146 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/tb0226_defconfig b/arch/mips/configs/tb0226_defconfig index dba0bdcdcf29..6aa229d54851 100644 --- a/arch/mips/configs/tb0226_defconfig +++ b/arch/mips/configs/tb0226_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -134,6 +132,15 @@ CONFIG_FLATMEM=y | |||
134 | CONFIG_FLAT_NODE_MEM_MAP=y | 132 | CONFIG_FLAT_NODE_MEM_MAP=y |
135 | # CONFIG_SPARSEMEM_STATIC is not set | 133 | # CONFIG_SPARSEMEM_STATIC is not set |
136 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 134 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
135 | # CONFIG_HZ_48 is not set | ||
136 | # CONFIG_HZ_100 is not set | ||
137 | # CONFIG_HZ_128 is not set | ||
138 | # CONFIG_HZ_250 is not set | ||
139 | # CONFIG_HZ_256 is not set | ||
140 | CONFIG_HZ_1000=y | ||
141 | # CONFIG_HZ_1024 is not set | ||
142 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
143 | CONFIG_HZ=1000 | ||
137 | CONFIG_PREEMPT_NONE=y | 144 | CONFIG_PREEMPT_NONE=y |
138 | # CONFIG_PREEMPT_VOLUNTARY is not set | 145 | # CONFIG_PREEMPT_VOLUNTARY is not set |
139 | # CONFIG_PREEMPT is not set | 146 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/tb0229_defconfig b/arch/mips/configs/tb0229_defconfig index 5a924c1a5803..a187b1f0004c 100644 --- a/arch/mips/configs/tb0229_defconfig +++ b/arch/mips/configs/tb0229_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -134,6 +132,15 @@ CONFIG_FLATMEM=y | |||
134 | CONFIG_FLAT_NODE_MEM_MAP=y | 132 | CONFIG_FLAT_NODE_MEM_MAP=y |
135 | # CONFIG_SPARSEMEM_STATIC is not set | 133 | # CONFIG_SPARSEMEM_STATIC is not set |
136 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 134 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
135 | # CONFIG_HZ_48 is not set | ||
136 | # CONFIG_HZ_100 is not set | ||
137 | # CONFIG_HZ_128 is not set | ||
138 | # CONFIG_HZ_250 is not set | ||
139 | # CONFIG_HZ_256 is not set | ||
140 | CONFIG_HZ_1000=y | ||
141 | # CONFIG_HZ_1024 is not set | ||
142 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
143 | CONFIG_HZ=1000 | ||
137 | CONFIG_PREEMPT_NONE=y | 144 | CONFIG_PREEMPT_NONE=y |
138 | # CONFIG_PREEMPT_VOLUNTARY is not set | 145 | # CONFIG_PREEMPT_VOLUNTARY is not set |
139 | # CONFIG_PREEMPT is not set | 146 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/tb0287_defconfig b/arch/mips/configs/tb0287_defconfig index 9f215ea350dc..258457fcbe11 100644 --- a/arch/mips/configs/tb0287_defconfig +++ b/arch/mips/configs/tb0287_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -135,6 +133,15 @@ CONFIG_FLATMEM=y | |||
135 | CONFIG_FLAT_NODE_MEM_MAP=y | 133 | CONFIG_FLAT_NODE_MEM_MAP=y |
136 | # CONFIG_SPARSEMEM_STATIC is not set | 134 | # CONFIG_SPARSEMEM_STATIC is not set |
137 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 135 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
136 | # CONFIG_HZ_48 is not set | ||
137 | # CONFIG_HZ_100 is not set | ||
138 | # CONFIG_HZ_128 is not set | ||
139 | # CONFIG_HZ_250 is not set | ||
140 | # CONFIG_HZ_256 is not set | ||
141 | CONFIG_HZ_1000=y | ||
142 | # CONFIG_HZ_1024 is not set | ||
143 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
144 | CONFIG_HZ=1000 | ||
138 | CONFIG_PREEMPT_NONE=y | 145 | CONFIG_PREEMPT_NONE=y |
139 | # CONFIG_PREEMPT_VOLUNTARY is not set | 146 | # CONFIG_PREEMPT_VOLUNTARY is not set |
140 | # CONFIG_PREEMPT is not set | 147 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/workpad_defconfig b/arch/mips/configs/workpad_defconfig index ac7765eb8da7..68af54f746e1 100644 --- a/arch/mips/configs/workpad_defconfig +++ b/arch/mips/configs/workpad_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | CONFIG_MACH_VR41XX=y | 45 | CONFIG_MACH_VR41XX=y |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_PREEMPT_NONE=y | 140 | CONFIG_PREEMPT_NONE=y |
134 | # CONFIG_PREEMPT_VOLUNTARY is not set | 141 | # CONFIG_PREEMPT_VOLUNTARY is not set |
135 | # CONFIG_PREEMPT is not set | 142 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/configs/ddb5476_defconfig b/arch/mips/configs/wrppmc_defconfig index 8d88ac1bbfeb..40572a3c8cac 100644 --- a/arch/mips/configs/ddb5476_defconfig +++ b/arch/mips/configs/wrppmc_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.17-rc2 | 3 | # Linux kernel version: 2.6.16.11 |
4 | # Mon Apr 24 14:51:00 2006 | 4 | # Fri May 5 17:11:22 2006 |
5 | # | 5 | # |
6 | CONFIG_MIPS=y | 6 | CONFIG_MIPS=y |
7 | 7 | ||
@@ -32,6 +32,7 @@ CONFIG_MIPS=y | |||
32 | # CONFIG_MIPS_ATLAS is not set | 32 | # CONFIG_MIPS_ATLAS is not set |
33 | # CONFIG_MIPS_MALTA is not set | 33 | # CONFIG_MIPS_MALTA is not set |
34 | # CONFIG_MIPS_SEAD is not set | 34 | # CONFIG_MIPS_SEAD is not set |
35 | CONFIG_WR_PPMC=y | ||
35 | # CONFIG_MIPS_SIM is not set | 36 | # CONFIG_MIPS_SIM is not set |
36 | # CONFIG_MOMENCO_JAGUAR_ATX is not set | 37 | # CONFIG_MOMENCO_JAGUAR_ATX is not set |
37 | # CONFIG_MOMENCO_OCELOT is not set | 38 | # CONFIG_MOMENCO_OCELOT is not set |
@@ -41,8 +42,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 42 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 43 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 44 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | CONFIG_DDB5476=y | ||
46 | # CONFIG_DDB5477 is not set | 45 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 46 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 47 | # CONFIG_PMC_YOSEMITE is not set |
@@ -64,24 +63,23 @@ CONFIG_DDB5476=y | |||
64 | # CONFIG_TOSHIBA_RBTX4927 is not set | 63 | # CONFIG_TOSHIBA_RBTX4927 is not set |
65 | # CONFIG_TOSHIBA_RBTX4938 is not set | 64 | # CONFIG_TOSHIBA_RBTX4938 is not set |
66 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 65 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
67 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
68 | CONFIG_GENERIC_HWEIGHT=y | ||
69 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 66 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
70 | CONFIG_DMA_NONCOHERENT=y | 67 | CONFIG_DMA_NONCOHERENT=y |
71 | CONFIG_DMA_NEED_PCI_MAP_STATE=y | 68 | CONFIG_DMA_NEED_PCI_MAP_STATE=y |
72 | CONFIG_I8259=y | 69 | CONFIG_CPU_BIG_ENDIAN=y |
73 | # CONFIG_CPU_BIG_ENDIAN is not set | 70 | # CONFIG_CPU_LITTLE_ENDIAN is not set |
74 | CONFIG_CPU_LITTLE_ENDIAN=y | 71 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y |
75 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y | 72 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y |
76 | CONFIG_IRQ_CPU=y | 73 | CONFIG_IRQ_CPU=y |
77 | CONFIG_DDB5XXX_COMMON=y | 74 | CONFIG_MIPS_GT64120=y |
75 | CONFIG_SWAP_IO_SPACE=y | ||
76 | CONFIG_BOOT_ELF32=y | ||
78 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | 77 | CONFIG_MIPS_L1_CACHE_SHIFT=5 |
79 | CONFIG_HAVE_STD_PC_SERIAL_PORT=y | ||
80 | 78 | ||
81 | # | 79 | # |
82 | # CPU selection | 80 | # CPU selection |
83 | # | 81 | # |
84 | # CONFIG_CPU_MIPS32_R1 is not set | 82 | CONFIG_CPU_MIPS32_R1=y |
85 | # CONFIG_CPU_MIPS32_R2 is not set | 83 | # CONFIG_CPU_MIPS32_R2 is not set |
86 | # CONFIG_CPU_MIPS64_R1 is not set | 84 | # CONFIG_CPU_MIPS64_R1 is not set |
87 | # CONFIG_CPU_MIPS64_R2 is not set | 85 | # CONFIG_CPU_MIPS64_R2 is not set |
@@ -92,7 +90,7 @@ CONFIG_HAVE_STD_PC_SERIAL_PORT=y | |||
92 | # CONFIG_CPU_R4X00 is not set | 90 | # CONFIG_CPU_R4X00 is not set |
93 | # CONFIG_CPU_TX49XX is not set | 91 | # CONFIG_CPU_TX49XX is not set |
94 | # CONFIG_CPU_R5000 is not set | 92 | # CONFIG_CPU_R5000 is not set |
95 | CONFIG_CPU_R5432=y | 93 | # CONFIG_CPU_R5432 is not set |
96 | # CONFIG_CPU_R6000 is not set | 94 | # CONFIG_CPU_R6000 is not set |
97 | # CONFIG_CPU_NEVADA is not set | 95 | # CONFIG_CPU_NEVADA is not set |
98 | # CONFIG_CPU_R8000 is not set | 96 | # CONFIG_CPU_R8000 is not set |
@@ -100,11 +98,16 @@ CONFIG_CPU_R5432=y | |||
100 | # CONFIG_CPU_RM7000 is not set | 98 | # CONFIG_CPU_RM7000 is not set |
101 | # CONFIG_CPU_RM9000 is not set | 99 | # CONFIG_CPU_RM9000 is not set |
102 | # CONFIG_CPU_SB1 is not set | 100 | # CONFIG_CPU_SB1 is not set |
103 | CONFIG_SYS_HAS_CPU_R5432=y | 101 | CONFIG_SYS_HAS_CPU_MIPS32_R1=y |
102 | CONFIG_SYS_HAS_CPU_MIPS32_R2=y | ||
103 | CONFIG_SYS_HAS_CPU_MIPS64_R1=y | ||
104 | CONFIG_SYS_HAS_CPU_NEVADA=y | ||
105 | CONFIG_SYS_HAS_CPU_RM7000=y | ||
106 | CONFIG_CPU_MIPS32=y | ||
107 | CONFIG_CPU_MIPSR1=y | ||
104 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | 108 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y |
105 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y | 109 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y |
106 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | 110 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y |
107 | CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y | ||
108 | 111 | ||
109 | # | 112 | # |
110 | # Kernel type | 113 | # Kernel type |
@@ -115,11 +118,15 @@ CONFIG_PAGE_SIZE_4KB=y | |||
115 | # CONFIG_PAGE_SIZE_8KB is not set | 118 | # CONFIG_PAGE_SIZE_8KB is not set |
116 | # CONFIG_PAGE_SIZE_16KB is not set | 119 | # CONFIG_PAGE_SIZE_16KB is not set |
117 | # CONFIG_PAGE_SIZE_64KB is not set | 120 | # CONFIG_PAGE_SIZE_64KB is not set |
121 | CONFIG_CPU_HAS_PREFETCH=y | ||
118 | # CONFIG_MIPS_MT is not set | 122 | # CONFIG_MIPS_MT is not set |
123 | # CONFIG_64BIT_PHYS_ADDR is not set | ||
124 | # CONFIG_CPU_ADVANCED is not set | ||
119 | CONFIG_CPU_HAS_LLSC=y | 125 | CONFIG_CPU_HAS_LLSC=y |
120 | CONFIG_CPU_HAS_SYNC=y | 126 | CONFIG_CPU_HAS_SYNC=y |
121 | CONFIG_GENERIC_HARDIRQS=y | 127 | CONFIG_GENERIC_HARDIRQS=y |
122 | CONFIG_GENERIC_IRQ_PROBE=y | 128 | CONFIG_GENERIC_IRQ_PROBE=y |
129 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||
123 | CONFIG_ARCH_FLATMEM_ENABLE=y | 130 | CONFIG_ARCH_FLATMEM_ENABLE=y |
124 | CONFIG_SELECT_MEMORY_MODEL=y | 131 | CONFIG_SELECT_MEMORY_MODEL=y |
125 | CONFIG_FLATMEM_MANUAL=y | 132 | CONFIG_FLATMEM_MANUAL=y |
@@ -129,6 +136,15 @@ CONFIG_FLATMEM=y | |||
129 | CONFIG_FLAT_NODE_MEM_MAP=y | 136 | CONFIG_FLAT_NODE_MEM_MAP=y |
130 | # CONFIG_SPARSEMEM_STATIC is not set | 137 | # CONFIG_SPARSEMEM_STATIC is not set |
131 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 138 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
139 | # CONFIG_HZ_48 is not set | ||
140 | # CONFIG_HZ_100 is not set | ||
141 | # CONFIG_HZ_128 is not set | ||
142 | # CONFIG_HZ_250 is not set | ||
143 | # CONFIG_HZ_256 is not set | ||
144 | CONFIG_HZ_1000=y | ||
145 | # CONFIG_HZ_1024 is not set | ||
146 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
147 | CONFIG_HZ=1000 | ||
132 | CONFIG_PREEMPT_NONE=y | 148 | CONFIG_PREEMPT_NONE=y |
133 | # CONFIG_PREEMPT_VOLUNTARY is not set | 149 | # CONFIG_PREEMPT_VOLUNTARY is not set |
134 | # CONFIG_PREEMPT is not set | 150 | # CONFIG_PREEMPT is not set |
@@ -145,27 +161,31 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 | |||
145 | # | 161 | # |
146 | CONFIG_LOCALVERSION="" | 162 | CONFIG_LOCALVERSION="" |
147 | CONFIG_LOCALVERSION_AUTO=y | 163 | CONFIG_LOCALVERSION_AUTO=y |
148 | CONFIG_SWAP=y | 164 | # CONFIG_SWAP is not set |
149 | CONFIG_SYSVIPC=y | 165 | CONFIG_SYSVIPC=y |
150 | # CONFIG_POSIX_MQUEUE is not set | 166 | # CONFIG_POSIX_MQUEUE is not set |
151 | # CONFIG_BSD_PROCESS_ACCT is not set | 167 | CONFIG_BSD_PROCESS_ACCT=y |
168 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
152 | CONFIG_SYSCTL=y | 169 | CONFIG_SYSCTL=y |
153 | # CONFIG_AUDIT is not set | 170 | # CONFIG_AUDIT is not set |
154 | # CONFIG_IKCONFIG is not set | 171 | # CONFIG_IKCONFIG is not set |
155 | CONFIG_RELAY=y | ||
156 | CONFIG_INITRAMFS_SOURCE="" | 172 | CONFIG_INITRAMFS_SOURCE="" |
157 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 173 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
158 | CONFIG_EMBEDDED=y | 174 | CONFIG_EMBEDDED=y |
159 | CONFIG_KALLSYMS=y | 175 | CONFIG_KALLSYMS=y |
160 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 176 | CONFIG_KALLSYMS_EXTRA_PASS=y |
161 | CONFIG_HOTPLUG=y | 177 | CONFIG_HOTPLUG=y |
162 | CONFIG_PRINTK=y | 178 | CONFIG_PRINTK=y |
163 | CONFIG_BUG=y | 179 | CONFIG_BUG=y |
164 | CONFIG_ELF_CORE=y | 180 | CONFIG_ELF_CORE=y |
165 | CONFIG_BASE_FULL=y | 181 | CONFIG_BASE_FULL=y |
166 | CONFIG_FUTEX=y | 182 | CONFIG_FUTEX=y |
167 | CONFIG_EPOLL=y | 183 | # CONFIG_EPOLL is not set |
168 | CONFIG_SHMEM=y | 184 | CONFIG_SHMEM=y |
185 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
186 | CONFIG_CC_ALIGN_LABELS=0 | ||
187 | CONFIG_CC_ALIGN_LOOPS=0 | ||
188 | CONFIG_CC_ALIGN_JUMPS=0 | ||
169 | CONFIG_SLAB=y | 189 | CONFIG_SLAB=y |
170 | # CONFIG_TINY_SHMEM is not set | 190 | # CONFIG_TINY_SHMEM is not set |
171 | CONFIG_BASE_SMALL=0 | 191 | CONFIG_BASE_SMALL=0 |
@@ -174,14 +194,18 @@ CONFIG_BASE_SMALL=0 | |||
174 | # | 194 | # |
175 | # Loadable module support | 195 | # Loadable module support |
176 | # | 196 | # |
177 | # CONFIG_MODULES is not set | 197 | CONFIG_MODULES=y |
198 | CONFIG_MODULE_UNLOAD=y | ||
199 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
200 | CONFIG_OBSOLETE_MODPARM=y | ||
201 | CONFIG_MODVERSIONS=y | ||
202 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
203 | # CONFIG_KMOD is not set | ||
178 | 204 | ||
179 | # | 205 | # |
180 | # Block layer | 206 | # Block layer |
181 | # | 207 | # |
182 | # CONFIG_LBD is not set | 208 | # CONFIG_LBD is not set |
183 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
184 | # CONFIG_LSF is not set | ||
185 | 209 | ||
186 | # | 210 | # |
187 | # IO Schedulers | 211 | # IO Schedulers |
@@ -201,7 +225,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
201 | # | 225 | # |
202 | CONFIG_HW_HAS_PCI=y | 226 | CONFIG_HW_HAS_PCI=y |
203 | CONFIG_PCI=y | 227 | CONFIG_PCI=y |
204 | CONFIG_ISA=y | 228 | CONFIG_PCI_LEGACY_PROC=y |
205 | CONFIG_MMU=y | 229 | CONFIG_MMU=y |
206 | 230 | ||
207 | # | 231 | # |
@@ -212,13 +236,16 @@ CONFIG_MMU=y | |||
212 | # | 236 | # |
213 | # PCI Hotplug Support | 237 | # PCI Hotplug Support |
214 | # | 238 | # |
215 | # CONFIG_HOTPLUG_PCI is not set | 239 | CONFIG_HOTPLUG_PCI=y |
240 | # CONFIG_HOTPLUG_PCI_FAKE is not set | ||
241 | # CONFIG_HOTPLUG_PCI_CPCI is not set | ||
242 | # CONFIG_HOTPLUG_PCI_SHPC is not set | ||
216 | 243 | ||
217 | # | 244 | # |
218 | # Executable file formats | 245 | # Executable file formats |
219 | # | 246 | # |
220 | CONFIG_BINFMT_ELF=y | 247 | CONFIG_BINFMT_ELF=y |
221 | # CONFIG_BINFMT_MISC is not set | 248 | CONFIG_BINFMT_MISC=y |
222 | CONFIG_TRAD_SIGNALS=y | 249 | CONFIG_TRAD_SIGNALS=y |
223 | 250 | ||
224 | # | 251 | # |
@@ -231,35 +258,33 @@ CONFIG_NET=y | |||
231 | # | 258 | # |
232 | # CONFIG_NETDEBUG is not set | 259 | # CONFIG_NETDEBUG is not set |
233 | CONFIG_PACKET=y | 260 | CONFIG_PACKET=y |
234 | # CONFIG_PACKET_MMAP is not set | 261 | CONFIG_PACKET_MMAP=y |
235 | CONFIG_UNIX=y | 262 | CONFIG_UNIX=y |
236 | CONFIG_XFRM=y | 263 | # CONFIG_NET_KEY is not set |
237 | CONFIG_XFRM_USER=y | ||
238 | CONFIG_NET_KEY=y | ||
239 | CONFIG_INET=y | 264 | CONFIG_INET=y |
240 | # CONFIG_IP_MULTICAST is not set | 265 | CONFIG_IP_MULTICAST=y |
241 | # CONFIG_IP_ADVANCED_ROUTER is not set | 266 | # CONFIG_IP_ADVANCED_ROUTER is not set |
242 | CONFIG_IP_FIB_HASH=y | 267 | CONFIG_IP_FIB_HASH=y |
243 | CONFIG_IP_PNP=y | 268 | CONFIG_IP_PNP=y |
244 | # CONFIG_IP_PNP_DHCP is not set | 269 | CONFIG_IP_PNP_DHCP=y |
245 | CONFIG_IP_PNP_BOOTP=y | 270 | CONFIG_IP_PNP_BOOTP=y |
246 | # CONFIG_IP_PNP_RARP is not set | 271 | CONFIG_IP_PNP_RARP=y |
247 | # CONFIG_NET_IPIP is not set | 272 | # CONFIG_NET_IPIP is not set |
248 | # CONFIG_NET_IPGRE is not set | 273 | # CONFIG_NET_IPGRE is not set |
249 | # CONFIG_ARPD is not set | 274 | CONFIG_IP_MROUTE=y |
275 | # CONFIG_IP_PIMSM_V1 is not set | ||
276 | # CONFIG_IP_PIMSM_V2 is not set | ||
277 | CONFIG_ARPD=y | ||
250 | # CONFIG_SYN_COOKIES is not set | 278 | # CONFIG_SYN_COOKIES is not set |
251 | # CONFIG_INET_AH is not set | 279 | # CONFIG_INET_AH is not set |
252 | # CONFIG_INET_ESP is not set | 280 | # CONFIG_INET_ESP is not set |
253 | # CONFIG_INET_IPCOMP is not set | 281 | # CONFIG_INET_IPCOMP is not set |
254 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
255 | # CONFIG_INET_TUNNEL is not set | 282 | # CONFIG_INET_TUNNEL is not set |
256 | CONFIG_INET_DIAG=y | 283 | CONFIG_INET_DIAG=y |
257 | CONFIG_INET_TCP_DIAG=y | 284 | CONFIG_INET_TCP_DIAG=y |
258 | # CONFIG_TCP_CONG_ADVANCED is not set | 285 | # CONFIG_TCP_CONG_ADVANCED is not set |
259 | CONFIG_TCP_CONG_BIC=y | 286 | CONFIG_TCP_CONG_BIC=y |
260 | # CONFIG_IPV6 is not set | 287 | # CONFIG_IPV6 is not set |
261 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
262 | # CONFIG_INET6_TUNNEL is not set | ||
263 | # CONFIG_NETFILTER is not set | 288 | # CONFIG_NETFILTER is not set |
264 | 289 | ||
265 | # | 290 | # |
@@ -301,13 +326,7 @@ CONFIG_TCP_CONG_BIC=y | |||
301 | # CONFIG_HAMRADIO is not set | 326 | # CONFIG_HAMRADIO is not set |
302 | # CONFIG_IRDA is not set | 327 | # CONFIG_IRDA is not set |
303 | # CONFIG_BT is not set | 328 | # CONFIG_BT is not set |
304 | CONFIG_IEEE80211=y | 329 | # CONFIG_IEEE80211 is not set |
305 | # CONFIG_IEEE80211_DEBUG is not set | ||
306 | CONFIG_IEEE80211_CRYPT_WEP=y | ||
307 | CONFIG_IEEE80211_CRYPT_CCMP=y | ||
308 | CONFIG_IEEE80211_SOFTMAC=y | ||
309 | # CONFIG_IEEE80211_SOFTMAC_DEBUG is not set | ||
310 | CONFIG_WIRELESS_EXT=y | ||
311 | 330 | ||
312 | # | 331 | # |
313 | # Device Drivers | 332 | # Device Drivers |
@@ -318,13 +337,12 @@ CONFIG_WIRELESS_EXT=y | |||
318 | # | 337 | # |
319 | CONFIG_STANDALONE=y | 338 | CONFIG_STANDALONE=y |
320 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 339 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
321 | CONFIG_FW_LOADER=y | 340 | # CONFIG_FW_LOADER is not set |
322 | 341 | ||
323 | # | 342 | # |
324 | # Connector - unified userspace <-> kernelspace linker | 343 | # Connector - unified userspace <-> kernelspace linker |
325 | # | 344 | # |
326 | CONFIG_CONNECTOR=y | 345 | # CONFIG_CONNECTOR is not set |
327 | CONFIG_PROC_EVENTS=y | ||
328 | 346 | ||
329 | # | 347 | # |
330 | # Memory Technology Devices (MTD) | 348 | # Memory Technology Devices (MTD) |
@@ -339,7 +357,6 @@ CONFIG_PROC_EVENTS=y | |||
339 | # | 357 | # |
340 | # Plug and Play support | 358 | # Plug and Play support |
341 | # | 359 | # |
342 | # CONFIG_PNP is not set | ||
343 | 360 | ||
344 | # | 361 | # |
345 | # Block devices | 362 | # Block devices |
@@ -352,53 +369,25 @@ CONFIG_PROC_EVENTS=y | |||
352 | # CONFIG_BLK_DEV_LOOP is not set | 369 | # CONFIG_BLK_DEV_LOOP is not set |
353 | # CONFIG_BLK_DEV_NBD is not set | 370 | # CONFIG_BLK_DEV_NBD is not set |
354 | # CONFIG_BLK_DEV_SX8 is not set | 371 | # CONFIG_BLK_DEV_SX8 is not set |
355 | # CONFIG_BLK_DEV_RAM is not set | 372 | CONFIG_BLK_DEV_RAM=y |
356 | # CONFIG_BLK_DEV_INITRD is not set | 373 | CONFIG_BLK_DEV_RAM_COUNT=16 |
357 | CONFIG_CDROM_PKTCDVD=y | 374 | CONFIG_BLK_DEV_RAM_SIZE=4096 |
358 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 | 375 | CONFIG_BLK_DEV_INITRD=y |
359 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set | 376 | # CONFIG_CDROM_PKTCDVD is not set |
360 | CONFIG_ATA_OVER_ETH=y | 377 | # CONFIG_ATA_OVER_ETH is not set |
361 | 378 | ||
362 | # | 379 | # |
363 | # ATA/ATAPI/MFM/RLL support | 380 | # ATA/ATAPI/MFM/RLL support |
364 | # | 381 | # |
365 | CONFIG_IDE=y | 382 | # CONFIG_IDE is not set |
366 | CONFIG_BLK_DEV_IDE=y | ||
367 | |||
368 | # | ||
369 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
370 | # | ||
371 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
372 | CONFIG_BLK_DEV_IDEDISK=y | ||
373 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
374 | # CONFIG_BLK_DEV_IDECD is not set | ||
375 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
376 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
377 | # CONFIG_IDE_TASK_IOCTL is not set | ||
378 | |||
379 | # | ||
380 | # IDE chipset support/bugfixes | ||
381 | # | ||
382 | CONFIG_IDE_GENERIC=y | ||
383 | # CONFIG_BLK_DEV_IDEPCI is not set | ||
384 | # CONFIG_IDE_ARM is not set | ||
385 | # CONFIG_IDE_CHIPSETS is not set | ||
386 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
387 | # CONFIG_IDEDMA_AUTO is not set | ||
388 | # CONFIG_BLK_DEV_HD is not set | ||
389 | 383 | ||
390 | # | 384 | # |
391 | # SCSI device support | 385 | # SCSI device support |
392 | # | 386 | # |
393 | CONFIG_RAID_ATTRS=y | 387 | # CONFIG_RAID_ATTRS is not set |
394 | # CONFIG_SCSI is not set | 388 | # CONFIG_SCSI is not set |
395 | 389 | ||
396 | # | 390 | # |
397 | # Old CD-ROM drivers (not SCSI, not IDE) | ||
398 | # | ||
399 | # CONFIG_CD_NO_IDESCSI is not set | ||
400 | |||
401 | # | ||
402 | # Multi-device support (RAID and LVM) | 391 | # Multi-device support (RAID and LVM) |
403 | # | 392 | # |
404 | # CONFIG_MD is not set | 393 | # CONFIG_MD is not set |
@@ -440,34 +429,48 @@ CONFIG_PHYLIB=y | |||
440 | # | 429 | # |
441 | # MII PHY device drivers | 430 | # MII PHY device drivers |
442 | # | 431 | # |
443 | CONFIG_MARVELL_PHY=y | 432 | # CONFIG_MARVELL_PHY is not set |
444 | CONFIG_DAVICOM_PHY=y | 433 | # CONFIG_DAVICOM_PHY is not set |
445 | CONFIG_QSEMI_PHY=y | 434 | # CONFIG_QSEMI_PHY is not set |
446 | CONFIG_LXT_PHY=y | 435 | # CONFIG_LXT_PHY is not set |
447 | CONFIG_CICADA_PHY=y | 436 | # CONFIG_CICADA_PHY is not set |
448 | 437 | ||
449 | # | 438 | # |
450 | # Ethernet (10 or 100Mbit) | 439 | # Ethernet (10 or 100Mbit) |
451 | # | 440 | # |
452 | CONFIG_NET_ETHERNET=y | 441 | CONFIG_NET_ETHERNET=y |
453 | # CONFIG_MII is not set | 442 | CONFIG_MII=y |
454 | # CONFIG_HAPPYMEAL is not set | 443 | # CONFIG_HAPPYMEAL is not set |
455 | # CONFIG_SUNGEM is not set | 444 | # CONFIG_SUNGEM is not set |
456 | # CONFIG_CASSINI is not set | 445 | # CONFIG_CASSINI is not set |
457 | # CONFIG_NET_VENDOR_3COM is not set | 446 | # CONFIG_NET_VENDOR_3COM is not set |
458 | # CONFIG_NET_VENDOR_SMC is not set | ||
459 | # CONFIG_DM9000 is not set | 447 | # CONFIG_DM9000 is not set |
460 | # CONFIG_NET_VENDOR_RACAL is not set | ||
461 | 448 | ||
462 | # | 449 | # |
463 | # Tulip family network device support | 450 | # Tulip family network device support |
464 | # | 451 | # |
465 | # CONFIG_NET_TULIP is not set | 452 | # CONFIG_NET_TULIP is not set |
466 | # CONFIG_AT1700 is not set | ||
467 | # CONFIG_DEPCA is not set | ||
468 | # CONFIG_HP100 is not set | 453 | # CONFIG_HP100 is not set |
469 | # CONFIG_NET_ISA is not set | 454 | CONFIG_NET_PCI=y |
470 | # CONFIG_NET_PCI is not set | 455 | # CONFIG_PCNET32 is not set |
456 | # CONFIG_AMD8111_ETH is not set | ||
457 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
458 | # CONFIG_B44 is not set | ||
459 | # CONFIG_FORCEDETH is not set | ||
460 | # CONFIG_DGRS is not set | ||
461 | # CONFIG_EEPRO100 is not set | ||
462 | CONFIG_E100=y | ||
463 | # CONFIG_FEALNX is not set | ||
464 | # CONFIG_NATSEMI is not set | ||
465 | # CONFIG_NE2K_PCI is not set | ||
466 | # CONFIG_8139CP is not set | ||
467 | # CONFIG_8139TOO is not set | ||
468 | # CONFIG_SIS900 is not set | ||
469 | # CONFIG_EPIC100 is not set | ||
470 | # CONFIG_SUNDANCE is not set | ||
471 | # CONFIG_TLAN is not set | ||
472 | # CONFIG_VIA_RHINE is not set | ||
473 | # CONFIG_LAN_SAA9730 is not set | ||
471 | 474 | ||
472 | # | 475 | # |
473 | # Ethernet (1000 Mbit) | 476 | # Ethernet (1000 Mbit) |
@@ -483,6 +486,7 @@ CONFIG_NET_ETHERNET=y | |||
483 | # CONFIG_SKGE is not set | 486 | # CONFIG_SKGE is not set |
484 | # CONFIG_SKY2 is not set | 487 | # CONFIG_SKY2 is not set |
485 | # CONFIG_SK98LIN is not set | 488 | # CONFIG_SK98LIN is not set |
489 | # CONFIG_VIA_VELOCITY is not set | ||
486 | # CONFIG_TIGON3 is not set | 490 | # CONFIG_TIGON3 is not set |
487 | # CONFIG_BNX2 is not set | 491 | # CONFIG_BNX2 is not set |
488 | 492 | ||
@@ -529,46 +533,18 @@ CONFIG_NET_ETHERNET=y | |||
529 | # | 533 | # |
530 | # Input device support | 534 | # Input device support |
531 | # | 535 | # |
532 | CONFIG_INPUT=y | 536 | # CONFIG_INPUT is not set |
533 | |||
534 | # | ||
535 | # Userland interfaces | ||
536 | # | ||
537 | CONFIG_INPUT_MOUSEDEV=y | ||
538 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
539 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
540 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
541 | # CONFIG_INPUT_JOYDEV is not set | ||
542 | # CONFIG_INPUT_TSDEV is not set | ||
543 | # CONFIG_INPUT_EVDEV is not set | ||
544 | # CONFIG_INPUT_EVBUG is not set | ||
545 | |||
546 | # | ||
547 | # Input Device Drivers | ||
548 | # | ||
549 | # CONFIG_INPUT_KEYBOARD is not set | ||
550 | # CONFIG_INPUT_MOUSE is not set | ||
551 | # CONFIG_INPUT_JOYSTICK is not set | ||
552 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
553 | # CONFIG_INPUT_MISC is not set | ||
554 | 537 | ||
555 | # | 538 | # |
556 | # Hardware I/O ports | 539 | # Hardware I/O ports |
557 | # | 540 | # |
558 | CONFIG_SERIO=y | 541 | # CONFIG_SERIO is not set |
559 | # CONFIG_SERIO_I8042 is not set | ||
560 | CONFIG_SERIO_SERPORT=y | ||
561 | # CONFIG_SERIO_PCIPS2 is not set | ||
562 | # CONFIG_SERIO_LIBPS2 is not set | ||
563 | CONFIG_SERIO_RAW=y | ||
564 | # CONFIG_GAMEPORT is not set | 542 | # CONFIG_GAMEPORT is not set |
565 | 543 | ||
566 | # | 544 | # |
567 | # Character devices | 545 | # Character devices |
568 | # | 546 | # |
569 | CONFIG_VT=y | 547 | # CONFIG_VT is not set |
570 | CONFIG_VT_CONSOLE=y | ||
571 | CONFIG_HW_CONSOLE=y | ||
572 | # CONFIG_SERIAL_NONSTANDARD is not set | 548 | # CONFIG_SERIAL_NONSTANDARD is not set |
573 | 549 | ||
574 | # | 550 | # |
@@ -576,9 +552,8 @@ CONFIG_HW_CONSOLE=y | |||
576 | # | 552 | # |
577 | CONFIG_SERIAL_8250=y | 553 | CONFIG_SERIAL_8250=y |
578 | CONFIG_SERIAL_8250_CONSOLE=y | 554 | CONFIG_SERIAL_8250_CONSOLE=y |
579 | CONFIG_SERIAL_8250_PCI=y | 555 | CONFIG_SERIAL_8250_NR_UARTS=1 |
580 | CONFIG_SERIAL_8250_NR_UARTS=4 | 556 | CONFIG_SERIAL_8250_RUNTIME_UARTS=1 |
581 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
582 | # CONFIG_SERIAL_8250_EXTENDED is not set | 557 | # CONFIG_SERIAL_8250_EXTENDED is not set |
583 | 558 | ||
584 | # | 559 | # |
@@ -600,8 +575,7 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
600 | # Watchdog Cards | 575 | # Watchdog Cards |
601 | # | 576 | # |
602 | # CONFIG_WATCHDOG is not set | 577 | # CONFIG_WATCHDOG is not set |
603 | # CONFIG_RTC is not set | 578 | CONFIG_RTC=y |
604 | # CONFIG_GEN_RTC is not set | ||
605 | # CONFIG_DTLK is not set | 579 | # CONFIG_DTLK is not set |
606 | # CONFIG_R3964 is not set | 580 | # CONFIG_R3964 is not set |
607 | # CONFIG_APPLICOM is not set | 581 | # CONFIG_APPLICOM is not set |
@@ -637,14 +611,20 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
637 | # | 611 | # |
638 | # Hardware Monitoring support | 612 | # Hardware Monitoring support |
639 | # | 613 | # |
640 | # CONFIG_HWMON is not set | 614 | CONFIG_HWMON=y |
641 | # CONFIG_HWMON_VID is not set | 615 | # CONFIG_HWMON_VID is not set |
616 | # CONFIG_SENSORS_F71805F is not set | ||
617 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
642 | 618 | ||
643 | # | 619 | # |
644 | # Misc devices | 620 | # Misc devices |
645 | # | 621 | # |
646 | 622 | ||
647 | # | 623 | # |
624 | # Multimedia Capabilities Port drivers | ||
625 | # | ||
626 | |||
627 | # | ||
648 | # Multimedia devices | 628 | # Multimedia devices |
649 | # | 629 | # |
650 | # CONFIG_VIDEO_DEV is not set | 630 | # CONFIG_VIDEO_DEV is not set |
@@ -657,49 +637,7 @@ CONFIG_LEGACY_PTY_COUNT=256 | |||
657 | # | 637 | # |
658 | # Graphics support | 638 | # Graphics support |
659 | # | 639 | # |
660 | CONFIG_FB=y | 640 | # CONFIG_FB is not set |
661 | # CONFIG_FB_CFB_FILLRECT is not set | ||
662 | # CONFIG_FB_CFB_COPYAREA is not set | ||
663 | # CONFIG_FB_CFB_IMAGEBLIT is not set | ||
664 | # CONFIG_FB_MACMODES is not set | ||
665 | CONFIG_FB_FIRMWARE_EDID=y | ||
666 | # CONFIG_FB_MODE_HELPERS is not set | ||
667 | # CONFIG_FB_TILEBLITTING is not set | ||
668 | # CONFIG_FB_CIRRUS is not set | ||
669 | # CONFIG_FB_PM2 is not set | ||
670 | # CONFIG_FB_CYBER2000 is not set | ||
671 | # CONFIG_FB_ASILIANT is not set | ||
672 | # CONFIG_FB_IMSTT is not set | ||
673 | # CONFIG_FB_S1D13XXX is not set | ||
674 | # CONFIG_FB_NVIDIA is not set | ||
675 | # CONFIG_FB_RIVA is not set | ||
676 | # CONFIG_FB_MATROX is not set | ||
677 | # CONFIG_FB_RADEON is not set | ||
678 | # CONFIG_FB_ATY128 is not set | ||
679 | # CONFIG_FB_ATY is not set | ||
680 | # CONFIG_FB_SAVAGE is not set | ||
681 | # CONFIG_FB_SIS is not set | ||
682 | # CONFIG_FB_NEOMAGIC is not set | ||
683 | # CONFIG_FB_KYRO is not set | ||
684 | # CONFIG_FB_3DFX is not set | ||
685 | # CONFIG_FB_VOODOO1 is not set | ||
686 | # CONFIG_FB_SMIVGX is not set | ||
687 | # CONFIG_FB_TRIDENT is not set | ||
688 | # CONFIG_FB_VIRTUAL is not set | ||
689 | |||
690 | # | ||
691 | # Console display driver support | ||
692 | # | ||
693 | # CONFIG_VGA_CONSOLE is not set | ||
694 | # CONFIG_MDA_CONSOLE is not set | ||
695 | CONFIG_DUMMY_CONSOLE=y | ||
696 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
697 | |||
698 | # | ||
699 | # Logo configuration | ||
700 | # | ||
701 | # CONFIG_LOGO is not set | ||
702 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
703 | 641 | ||
704 | # | 642 | # |
705 | # Sound | 643 | # Sound |
@@ -711,7 +649,6 @@ CONFIG_DUMMY_CONSOLE=y | |||
711 | # | 649 | # |
712 | CONFIG_USB_ARCH_HAS_HCD=y | 650 | CONFIG_USB_ARCH_HAS_HCD=y |
713 | CONFIG_USB_ARCH_HAS_OHCI=y | 651 | CONFIG_USB_ARCH_HAS_OHCI=y |
714 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
715 | # CONFIG_USB is not set | 652 | # CONFIG_USB is not set |
716 | 653 | ||
717 | # | 654 | # |
@@ -729,19 +666,6 @@ CONFIG_USB_ARCH_HAS_EHCI=y | |||
729 | # CONFIG_MMC is not set | 666 | # CONFIG_MMC is not set |
730 | 667 | ||
731 | # | 668 | # |
732 | # LED devices | ||
733 | # | ||
734 | # CONFIG_NEW_LEDS is not set | ||
735 | |||
736 | # | ||
737 | # LED drivers | ||
738 | # | ||
739 | |||
740 | # | ||
741 | # LED Triggers | ||
742 | # | ||
743 | |||
744 | # | ||
745 | # InfiniBand support | 669 | # InfiniBand support |
746 | # | 670 | # |
747 | # CONFIG_INFINIBAND is not set | 671 | # CONFIG_INFINIBAND is not set |
@@ -751,16 +675,9 @@ CONFIG_USB_ARCH_HAS_EHCI=y | |||
751 | # | 675 | # |
752 | 676 | ||
753 | # | 677 | # |
754 | # Real Time Clock | ||
755 | # | ||
756 | # CONFIG_RTC_CLASS is not set | ||
757 | |||
758 | # | ||
759 | # File systems | 678 | # File systems |
760 | # | 679 | # |
761 | CONFIG_EXT2_FS=y | 680 | # CONFIG_EXT2_FS is not set |
762 | # CONFIG_EXT2_FS_XATTR is not set | ||
763 | # CONFIG_EXT2_FS_XIP is not set | ||
764 | # CONFIG_EXT3_FS is not set | 681 | # CONFIG_EXT3_FS is not set |
765 | # CONFIG_REISERFS_FS is not set | 682 | # CONFIG_REISERFS_FS is not set |
766 | # CONFIG_JFS_FS is not set | 683 | # CONFIG_JFS_FS is not set |
@@ -774,7 +691,7 @@ CONFIG_INOTIFY=y | |||
774 | CONFIG_DNOTIFY=y | 691 | CONFIG_DNOTIFY=y |
775 | # CONFIG_AUTOFS_FS is not set | 692 | # CONFIG_AUTOFS_FS is not set |
776 | # CONFIG_AUTOFS4_FS is not set | 693 | # CONFIG_AUTOFS4_FS is not set |
777 | CONFIG_FUSE_FS=y | 694 | # CONFIG_FUSE_FS is not set |
778 | 695 | ||
779 | # | 696 | # |
780 | # CD-ROM/DVD Filesystems | 697 | # CD-ROM/DVD Filesystems |
@@ -795,9 +712,10 @@ CONFIG_FUSE_FS=y | |||
795 | CONFIG_PROC_FS=y | 712 | CONFIG_PROC_FS=y |
796 | CONFIG_PROC_KCORE=y | 713 | CONFIG_PROC_KCORE=y |
797 | CONFIG_SYSFS=y | 714 | CONFIG_SYSFS=y |
798 | # CONFIG_TMPFS is not set | 715 | CONFIG_TMPFS=y |
799 | # CONFIG_HUGETLB_PAGE is not set | 716 | # CONFIG_HUGETLB_PAGE is not set |
800 | CONFIG_RAMFS=y | 717 | CONFIG_RAMFS=y |
718 | # CONFIG_RELAYFS_FS is not set | ||
801 | # CONFIG_CONFIGFS_FS is not set | 719 | # CONFIG_CONFIGFS_FS is not set |
802 | 720 | ||
803 | # | 721 | # |
@@ -821,12 +739,14 @@ CONFIG_RAMFS=y | |||
821 | # Network File Systems | 739 | # Network File Systems |
822 | # | 740 | # |
823 | CONFIG_NFS_FS=y | 741 | CONFIG_NFS_FS=y |
824 | # CONFIG_NFS_V3 is not set | 742 | CONFIG_NFS_V3=y |
743 | # CONFIG_NFS_V3_ACL is not set | ||
825 | # CONFIG_NFS_V4 is not set | 744 | # CONFIG_NFS_V4 is not set |
826 | # CONFIG_NFS_DIRECTIO is not set | 745 | # CONFIG_NFS_DIRECTIO is not set |
827 | # CONFIG_NFSD is not set | 746 | # CONFIG_NFSD is not set |
828 | CONFIG_ROOT_NFS=y | 747 | CONFIG_ROOT_NFS=y |
829 | CONFIG_LOCKD=y | 748 | CONFIG_LOCKD=y |
749 | CONFIG_LOCKD_V4=y | ||
830 | CONFIG_NFS_COMMON=y | 750 | CONFIG_NFS_COMMON=y |
831 | CONFIG_SUNRPC=y | 751 | CONFIG_SUNRPC=y |
832 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 752 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
@@ -861,46 +781,19 @@ CONFIG_MSDOS_PARTITION=y | |||
861 | # CONFIG_MAGIC_SYSRQ is not set | 781 | # CONFIG_MAGIC_SYSRQ is not set |
862 | # CONFIG_DEBUG_KERNEL is not set | 782 | # CONFIG_DEBUG_KERNEL is not set |
863 | CONFIG_LOG_BUF_SHIFT=14 | 783 | CONFIG_LOG_BUF_SHIFT=14 |
864 | # CONFIG_DEBUG_FS is not set | ||
865 | # CONFIG_UNWIND_INFO is not set | ||
866 | CONFIG_CROSSCOMPILE=y | 784 | CONFIG_CROSSCOMPILE=y |
867 | CONFIG_CMDLINE="ip=any" | 785 | CONFIG_CMDLINE="console=ttyS0,115200n8" |
868 | 786 | ||
869 | # | 787 | # |
870 | # Security options | 788 | # Security options |
871 | # | 789 | # |
872 | CONFIG_KEYS=y | 790 | # CONFIG_KEYS is not set |
873 | CONFIG_KEYS_DEBUG_PROC_KEYS=y | ||
874 | # CONFIG_SECURITY is not set | 791 | # CONFIG_SECURITY is not set |
875 | 792 | ||
876 | # | 793 | # |
877 | # Cryptographic options | 794 | # Cryptographic options |
878 | # | 795 | # |
879 | CONFIG_CRYPTO=y | 796 | # CONFIG_CRYPTO is not set |
880 | CONFIG_CRYPTO_HMAC=y | ||
881 | CONFIG_CRYPTO_NULL=y | ||
882 | CONFIG_CRYPTO_MD4=y | ||
883 | CONFIG_CRYPTO_MD5=y | ||
884 | CONFIG_CRYPTO_SHA1=y | ||
885 | CONFIG_CRYPTO_SHA256=y | ||
886 | CONFIG_CRYPTO_SHA512=y | ||
887 | CONFIG_CRYPTO_WP512=y | ||
888 | CONFIG_CRYPTO_TGR192=y | ||
889 | CONFIG_CRYPTO_DES=y | ||
890 | CONFIG_CRYPTO_BLOWFISH=y | ||
891 | CONFIG_CRYPTO_TWOFISH=y | ||
892 | CONFIG_CRYPTO_SERPENT=y | ||
893 | CONFIG_CRYPTO_AES=y | ||
894 | CONFIG_CRYPTO_CAST5=y | ||
895 | CONFIG_CRYPTO_CAST6=y | ||
896 | CONFIG_CRYPTO_TEA=y | ||
897 | CONFIG_CRYPTO_ARC4=y | ||
898 | CONFIG_CRYPTO_KHAZAD=y | ||
899 | CONFIG_CRYPTO_ANUBIS=y | ||
900 | CONFIG_CRYPTO_DEFLATE=y | ||
901 | CONFIG_CRYPTO_MICHAEL_MIC=y | ||
902 | CONFIG_CRYPTO_CRC32C=y | ||
903 | # CONFIG_CRYPTO_TEST is not set | ||
904 | 797 | ||
905 | # | 798 | # |
906 | # Hardware crypto devices | 799 | # Hardware crypto devices |
@@ -909,9 +802,7 @@ CONFIG_CRYPTO_CRC32C=y | |||
909 | # | 802 | # |
910 | # Library routines | 803 | # Library routines |
911 | # | 804 | # |
912 | # CONFIG_CRC_CCITT is not set | 805 | CONFIG_CRC_CCITT=y |
913 | CONFIG_CRC16=y | 806 | CONFIG_CRC16=y |
914 | CONFIG_CRC32=y | 807 | CONFIG_CRC32=y |
915 | CONFIG_LIBCRC32C=y | 808 | CONFIG_LIBCRC32C=y |
916 | CONFIG_ZLIB_INFLATE=y | ||
917 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/mips/configs/yosemite_defconfig b/arch/mips/configs/yosemite_defconfig index b52d709de962..7ece2c008e9b 100644 --- a/arch/mips/configs/yosemite_defconfig +++ b/arch/mips/configs/yosemite_defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | CONFIG_PMC_YOSEMITE=y | 46 | CONFIG_PMC_YOSEMITE=y |
@@ -130,6 +128,15 @@ CONFIG_FLATMEM=y | |||
130 | CONFIG_FLAT_NODE_MEM_MAP=y | 128 | CONFIG_FLAT_NODE_MEM_MAP=y |
131 | # CONFIG_SPARSEMEM_STATIC is not set | 129 | # CONFIG_SPARSEMEM_STATIC is not set |
132 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 130 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
131 | # CONFIG_HZ_48 is not set | ||
132 | # CONFIG_HZ_100 is not set | ||
133 | # CONFIG_HZ_128 is not set | ||
134 | # CONFIG_HZ_250 is not set | ||
135 | # CONFIG_HZ_256 is not set | ||
136 | CONFIG_HZ_1000=y | ||
137 | # CONFIG_HZ_1024 is not set | ||
138 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
139 | CONFIG_HZ=1000 | ||
133 | CONFIG_SMP=y | 140 | CONFIG_SMP=y |
134 | CONFIG_NR_CPUS=2 | 141 | CONFIG_NR_CPUS=2 |
135 | CONFIG_PREEMPT_NONE=y | 142 | CONFIG_PREEMPT_NONE=y |
diff --git a/arch/mips/ddb5xxx/common/prom.c b/arch/mips/ddb5xxx/common/prom.c index b8d1f7489f3b..00c62c1c28a3 100644 --- a/arch/mips/ddb5xxx/common/prom.c +++ b/arch/mips/ddb5xxx/common/prom.c | |||
@@ -56,13 +56,7 @@ void __init prom_init(void) | |||
56 | 56 | ||
57 | mips_machgroup = MACH_GROUP_NEC_DDB; | 57 | mips_machgroup = MACH_GROUP_NEC_DDB; |
58 | 58 | ||
59 | #if defined(CONFIG_DDB5074) | 59 | #if defined(CONFIG_DDB5477) |
60 | mips_machtype = MACH_NEC_DDB5074; | ||
61 | add_memory_region(0, DDB_SDRAM_SIZE, BOOT_MEM_RAM); | ||
62 | #elif defined(CONFIG_DDB5476) | ||
63 | mips_machtype = MACH_NEC_DDB5476; | ||
64 | add_memory_region(0, DDB_SDRAM_SIZE, BOOT_MEM_RAM); | ||
65 | #elif defined(CONFIG_DDB5477) | ||
66 | ddb5477_runtime_detection(); | 60 | ddb5477_runtime_detection(); |
67 | add_memory_region(0, board_ram_size, BOOT_MEM_RAM); | 61 | add_memory_region(0, board_ram_size, BOOT_MEM_RAM); |
68 | #endif | 62 | #endif |
diff --git a/arch/mips/ddb5xxx/ddb5074/Makefile b/arch/mips/ddb5xxx/ddb5074/Makefile deleted file mode 100644 index 304c02107b46..000000000000 --- a/arch/mips/ddb5xxx/ddb5074/Makefile +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for the NEC DDB Vrc-5074 specific kernel interface routines | ||
3 | # under Linux. | ||
4 | # | ||
5 | |||
6 | obj-y += setup.o irq.o nile4_pic.o | ||
7 | |||
8 | EXTRA_AFLAGS := $(CFLAGS) | ||
diff --git a/arch/mips/ddb5xxx/ddb5074/irq.c b/arch/mips/ddb5xxx/ddb5074/irq.c deleted file mode 100644 index 60c087b7738c..000000000000 --- a/arch/mips/ddb5xxx/ddb5074/irq.c +++ /dev/null | |||
@@ -1,169 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5074/irq.c -- NEC DDB Vrc-5074 interrupt routines | ||
3 | * | ||
4 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
5 | * Sony Software Development Center Europe (SDCE), Brussels | ||
6 | */ | ||
7 | #include <linux/init.h> | ||
8 | #include <linux/irq.h> | ||
9 | #include <linux/signal.h> | ||
10 | #include <linux/sched.h> | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/interrupt.h> | ||
13 | #include <linux/ioport.h> | ||
14 | |||
15 | #include <asm/i8259.h> | ||
16 | #include <asm/io.h> | ||
17 | #include <asm/irq_cpu.h> | ||
18 | #include <asm/ptrace.h> | ||
19 | #include <asm/nile4.h> | ||
20 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
21 | #include <asm/ddb5xxx/ddb5074.h> | ||
22 | |||
23 | |||
24 | static struct irqaction irq_cascade = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL }; | ||
25 | |||
26 | #define M1543_PNP_CONFIG 0x03f0 /* PnP Config Port */ | ||
27 | #define M1543_PNP_INDEX 0x03f0 /* PnP Index Port */ | ||
28 | #define M1543_PNP_DATA 0x03f1 /* PnP Data Port */ | ||
29 | |||
30 | #define M1543_PNP_ALT_CONFIG 0x0370 /* Alternative PnP Config Port */ | ||
31 | #define M1543_PNP_ALT_INDEX 0x0370 /* Alternative PnP Index Port */ | ||
32 | #define M1543_PNP_ALT_DATA 0x0371 /* Alternative PnP Data Port */ | ||
33 | |||
34 | #define M1543_INT1_MASTER_CTRL 0x0020 /* INT_1 (master) Control Register */ | ||
35 | #define M1543_INT1_MASTER_MASK 0x0021 /* INT_1 (master) Mask Register */ | ||
36 | |||
37 | #define M1543_INT1_SLAVE_CTRL 0x00a0 /* INT_1 (slave) Control Register */ | ||
38 | #define M1543_INT1_SLAVE_MASK 0x00a1 /* INT_1 (slave) Mask Register */ | ||
39 | |||
40 | #define M1543_INT1_MASTER_ELCR 0x04d0 /* INT_1 (master) Edge/Level Control */ | ||
41 | #define M1543_INT1_SLAVE_ELCR 0x04d1 /* INT_1 (slave) Edge/Level Control */ | ||
42 | |||
43 | |||
44 | static void m1543_irq_setup(void) | ||
45 | { | ||
46 | /* | ||
47 | * The ALI M1543 has 13 interrupt inputs, IRQ1..IRQ13. Not all | ||
48 | * the possible IO sources in the M1543 are in use by us. We will | ||
49 | * use the following mapping: | ||
50 | * | ||
51 | * IRQ1 - keyboard (default set by M1543) | ||
52 | * IRQ3 - reserved for UART B (default set by M1543) (note that | ||
53 | * the schematics for the DDB Vrc-5074 board seem to | ||
54 | * indicate that IRQ3 is connected to the DS1386 | ||
55 | * watchdog timer interrupt output so we might have | ||
56 | * a conflict) | ||
57 | * IRQ4 - reserved for UART A (default set by M1543) | ||
58 | * IRQ5 - parallel (default set by M1543) | ||
59 | * IRQ8 - DS1386 time of day (RTC) interrupt | ||
60 | * IRQ12 - mouse | ||
61 | */ | ||
62 | |||
63 | /* | ||
64 | * Assing mouse interrupt to IRQ12 | ||
65 | */ | ||
66 | |||
67 | /* Enter configuration mode */ | ||
68 | outb(0x51, M1543_PNP_CONFIG); | ||
69 | outb(0x23, M1543_PNP_CONFIG); | ||
70 | |||
71 | /* Select logical device 7 (Keyboard) */ | ||
72 | outb(0x07, M1543_PNP_INDEX); | ||
73 | outb(0x07, M1543_PNP_DATA); | ||
74 | |||
75 | /* Select IRQ12 */ | ||
76 | outb(0x72, M1543_PNP_INDEX); | ||
77 | outb(0x0c, M1543_PNP_DATA); | ||
78 | |||
79 | outb(0x30, M1543_PNP_INDEX); | ||
80 | printk("device 7, 0x30: %02x\n",inb(M1543_PNP_DATA)); | ||
81 | |||
82 | outb(0x70, M1543_PNP_INDEX); | ||
83 | printk("device 7, 0x70: %02x\n",inb(M1543_PNP_DATA)); | ||
84 | |||
85 | /* Leave configration mode */ | ||
86 | outb(0xbb, M1543_PNP_CONFIG); | ||
87 | |||
88 | |||
89 | } | ||
90 | |||
91 | static void ddb_local0_irqdispatch(struct pt_regs *regs) | ||
92 | { | ||
93 | u32 mask; | ||
94 | int nile4_irq; | ||
95 | |||
96 | mask = nile4_get_irq_stat(0); | ||
97 | |||
98 | /* Handle the timer interrupt first */ | ||
99 | #if 0 | ||
100 | if (mask & (1 << NILE4_INT_GPT)) { | ||
101 | do_IRQ(nile4_to_irq(NILE4_INT_GPT), regs); | ||
102 | mask &= ~(1 << NILE4_INT_GPT); | ||
103 | } | ||
104 | #endif | ||
105 | for (nile4_irq = 0; mask; nile4_irq++, mask >>= 1) | ||
106 | if (mask & 1) { | ||
107 | if (nile4_irq == NILE4_INT_INTE) { | ||
108 | int i8259_irq; | ||
109 | |||
110 | nile4_clear_irq(NILE4_INT_INTE); | ||
111 | i8259_irq = nile4_i8259_iack(); | ||
112 | do_IRQ(i8259_irq, regs); | ||
113 | } else | ||
114 | do_IRQ(nile4_to_irq(nile4_irq), regs); | ||
115 | |||
116 | } | ||
117 | } | ||
118 | |||
119 | static void ddb_local1_irqdispatch(void) | ||
120 | { | ||
121 | printk("ddb_local1_irqdispatch called\n"); | ||
122 | } | ||
123 | |||
124 | static void ddb_buserror_irq(void) | ||
125 | { | ||
126 | printk("ddb_buserror_irq called\n"); | ||
127 | } | ||
128 | |||
129 | static void ddb_8254timer_irq(void) | ||
130 | { | ||
131 | printk("ddb_8254timer_irq called\n"); | ||
132 | } | ||
133 | |||
134 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | ||
135 | { | ||
136 | unsigned int pending = read_c0_cause() & read_c0_status(); | ||
137 | |||
138 | if (pending & CAUSEF_IP2) | ||
139 | ddb_local0_irqdispatch(regs); | ||
140 | else if (pending & CAUSEF_IP3) | ||
141 | ddb_local1_irqdispatch(); | ||
142 | else if (pending & CAUSEF_IP6) | ||
143 | ddb_buserror_irq(); | ||
144 | else if (pending & (CAUSEF_IP4 | CAUSEF_IP5)) | ||
145 | ddb_8254timer_irq(); | ||
146 | } | ||
147 | |||
148 | void __init arch_init_irq(void) | ||
149 | { | ||
150 | /* setup cascade interrupts */ | ||
151 | setup_irq(NILE4_IRQ_BASE + NILE4_INT_INTE, &irq_cascade); | ||
152 | setup_irq(CPU_IRQ_BASE + CPU_NILE4_CASCADE, &irq_cascade); | ||
153 | |||
154 | nile4_irq_setup(NILE4_IRQ_BASE); | ||
155 | m1543_irq_setup(); | ||
156 | init_i8259_irqs(); | ||
157 | |||
158 | |||
159 | printk("CPU_IRQ_BASE: %d\n",CPU_IRQ_BASE); | ||
160 | |||
161 | mips_cpu_irq_init(CPU_IRQ_BASE); | ||
162 | |||
163 | printk("enabling 8259 cascade\n"); | ||
164 | |||
165 | ddb5074_led_hex(0); | ||
166 | |||
167 | /* Enable the interrupt cascade */ | ||
168 | nile4_enable_irq(NILE4_IRQ_BASE+IRQ_I8259_CASCADE); | ||
169 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5074/nile4_pic.c b/arch/mips/ddb5xxx/ddb5074/nile4_pic.c deleted file mode 100644 index 8743ffce8653..000000000000 --- a/arch/mips/ddb5xxx/ddb5074/nile4_pic.c +++ /dev/null | |||
@@ -1,286 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5476/nile4.c -- | ||
3 | * low-level PIC code for NEC Vrc-5476 (Nile 4) | ||
4 | * | ||
5 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
6 | * Sony Software Development Center Europe (SDCE), Brussels | ||
7 | * | ||
8 | * Copyright 2001 MontaVista Software Inc. | ||
9 | * Author: jsun@mvista.com or jsun@junsun.net | ||
10 | * | ||
11 | */ | ||
12 | #include <linux/config.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/ioport.h> | ||
17 | |||
18 | #include <asm/addrspace.h> | ||
19 | |||
20 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
21 | |||
22 | static int irq_base; | ||
23 | |||
24 | /* | ||
25 | * Interrupt Programming | ||
26 | */ | ||
27 | void nile4_map_irq(int nile4_irq, int cpu_irq) | ||
28 | { | ||
29 | u32 offset, t; | ||
30 | |||
31 | offset = DDB_INTCTRL; | ||
32 | if (nile4_irq >= 8) { | ||
33 | offset += 4; | ||
34 | nile4_irq -= 8; | ||
35 | } | ||
36 | t = ddb_in32(offset); | ||
37 | t &= ~(7 << (nile4_irq * 4)); | ||
38 | t |= cpu_irq << (nile4_irq * 4); | ||
39 | ddb_out32(offset, t); | ||
40 | } | ||
41 | |||
42 | void nile4_map_irq_all(int cpu_irq) | ||
43 | { | ||
44 | u32 all, t; | ||
45 | |||
46 | all = cpu_irq; | ||
47 | all |= all << 4; | ||
48 | all |= all << 8; | ||
49 | all |= all << 16; | ||
50 | t = ddb_in32(DDB_INTCTRL); | ||
51 | t &= 0x88888888; | ||
52 | t |= all; | ||
53 | ddb_out32(DDB_INTCTRL, t); | ||
54 | t = ddb_in32(DDB_INTCTRL + 4); | ||
55 | t &= 0x88888888; | ||
56 | t |= all; | ||
57 | ddb_out32(DDB_INTCTRL + 4, t); | ||
58 | } | ||
59 | |||
60 | void nile4_enable_irq(unsigned int nile4_irq) | ||
61 | { | ||
62 | u32 offset, t; | ||
63 | |||
64 | nile4_irq-=irq_base; | ||
65 | |||
66 | ddb5074_led_hex(8); | ||
67 | |||
68 | offset = DDB_INTCTRL; | ||
69 | if (nile4_irq >= 8) { | ||
70 | offset += 4; | ||
71 | nile4_irq -= 8; | ||
72 | } | ||
73 | ddb5074_led_hex(9); | ||
74 | t = ddb_in32(offset); | ||
75 | ddb5074_led_hex(0xa); | ||
76 | t |= 8 << (nile4_irq * 4); | ||
77 | ddb_out32(offset, t); | ||
78 | ddb5074_led_hex(0xb); | ||
79 | } | ||
80 | |||
81 | void nile4_disable_irq(unsigned int nile4_irq) | ||
82 | { | ||
83 | u32 offset, t; | ||
84 | |||
85 | nile4_irq-=irq_base; | ||
86 | |||
87 | offset = DDB_INTCTRL; | ||
88 | if (nile4_irq >= 8) { | ||
89 | offset += 4; | ||
90 | nile4_irq -= 8; | ||
91 | } | ||
92 | t = ddb_in32(offset); | ||
93 | t &= ~(8 << (nile4_irq * 4)); | ||
94 | ddb_out32(offset, t); | ||
95 | } | ||
96 | |||
97 | void nile4_disable_irq_all(void) | ||
98 | { | ||
99 | ddb_out32(DDB_INTCTRL, 0); | ||
100 | ddb_out32(DDB_INTCTRL + 4, 0); | ||
101 | } | ||
102 | |||
103 | u16 nile4_get_irq_stat(int cpu_irq) | ||
104 | { | ||
105 | return ddb_in16(DDB_INTSTAT0 + cpu_irq * 2); | ||
106 | } | ||
107 | |||
108 | void nile4_enable_irq_output(int cpu_irq) | ||
109 | { | ||
110 | u32 t; | ||
111 | |||
112 | t = ddb_in32(DDB_INTSTAT1 + 4); | ||
113 | t |= 1 << (16 + cpu_irq); | ||
114 | ddb_out32(DDB_INTSTAT1, t); | ||
115 | } | ||
116 | |||
117 | void nile4_disable_irq_output(int cpu_irq) | ||
118 | { | ||
119 | u32 t; | ||
120 | |||
121 | t = ddb_in32(DDB_INTSTAT1 + 4); | ||
122 | t &= ~(1 << (16 + cpu_irq)); | ||
123 | ddb_out32(DDB_INTSTAT1, t); | ||
124 | } | ||
125 | |||
126 | void nile4_set_pci_irq_polarity(int pci_irq, int high) | ||
127 | { | ||
128 | u32 t; | ||
129 | |||
130 | t = ddb_in32(DDB_INTPPES); | ||
131 | if (high) | ||
132 | t &= ~(1 << (pci_irq * 2)); | ||
133 | else | ||
134 | t |= 1 << (pci_irq * 2); | ||
135 | ddb_out32(DDB_INTPPES, t); | ||
136 | } | ||
137 | |||
138 | void nile4_set_pci_irq_level_or_edge(int pci_irq, int level) | ||
139 | { | ||
140 | u32 t; | ||
141 | |||
142 | t = ddb_in32(DDB_INTPPES); | ||
143 | if (level) | ||
144 | t |= 2 << (pci_irq * 2); | ||
145 | else | ||
146 | t &= ~(2 << (pci_irq * 2)); | ||
147 | ddb_out32(DDB_INTPPES, t); | ||
148 | } | ||
149 | |||
150 | void nile4_clear_irq(int nile4_irq) | ||
151 | { | ||
152 | nile4_irq-=irq_base; | ||
153 | ddb_out32(DDB_INTCLR, 1 << nile4_irq); | ||
154 | } | ||
155 | |||
156 | void nile4_clear_irq_mask(u32 mask) | ||
157 | { | ||
158 | ddb_out32(DDB_INTCLR, mask); | ||
159 | } | ||
160 | |||
161 | u8 nile4_i8259_iack(void) | ||
162 | { | ||
163 | u8 irq; | ||
164 | u32 reg; | ||
165 | |||
166 | /* Set window 0 for interrupt acknowledge */ | ||
167 | reg = ddb_in32(DDB_PCIINIT0); | ||
168 | |||
169 | ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IACK, 0, DDB_PCI_ACCESS_32); | ||
170 | irq = *(volatile u8 *) KSEG1ADDR(DDB_PCI_IACK_BASE); | ||
171 | /* restore window 0 for PCI I/O space */ | ||
172 | // ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IO, 0, DDB_PCI_ACCESS_32); | ||
173 | ddb_out32(DDB_PCIINIT0, reg); | ||
174 | |||
175 | /* i8269.c set the base vector to be 0x0 */ | ||
176 | return irq ; | ||
177 | } | ||
178 | |||
179 | static unsigned int nile4_irq_startup(unsigned int irq) { | ||
180 | |||
181 | nile4_enable_irq(irq); | ||
182 | return 0; | ||
183 | |||
184 | } | ||
185 | |||
186 | static void nile4_ack_irq(unsigned int irq) { | ||
187 | |||
188 | ddb5074_led_hex(4); | ||
189 | |||
190 | nile4_clear_irq(irq); | ||
191 | ddb5074_led_hex(2); | ||
192 | nile4_disable_irq(irq); | ||
193 | |||
194 | ddb5074_led_hex(0); | ||
195 | } | ||
196 | |||
197 | static void nile4_irq_end(unsigned int irq) { | ||
198 | |||
199 | ddb5074_led_hex(3); | ||
200 | if(!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) { | ||
201 | ddb5074_led_hex(5); | ||
202 | nile4_enable_irq(irq); | ||
203 | ddb5074_led_hex(7); | ||
204 | } | ||
205 | |||
206 | ddb5074_led_hex(1); | ||
207 | } | ||
208 | |||
209 | #define nile4_irq_shutdown nile4_disable_irq | ||
210 | |||
211 | static hw_irq_controller nile4_irq_controller = { | ||
212 | .typename = "nile4", | ||
213 | .startup = nile4_irq_startup, | ||
214 | .shutdown = nile4_irq_shutdown, | ||
215 | .enable = nile4_enable_irq, | ||
216 | .disable = nile4_disable_irq, | ||
217 | .ack = nile4_ack_irq, | ||
218 | .end = nile4_irq_end, | ||
219 | }; | ||
220 | |||
221 | void nile4_irq_setup(u32 base) { | ||
222 | |||
223 | int i; | ||
224 | |||
225 | irq_base=base; | ||
226 | |||
227 | /* Map all interrupts to CPU int #0 */ | ||
228 | nile4_map_irq_all(0); | ||
229 | |||
230 | /* PCI INTA#-E# must be level triggered */ | ||
231 | nile4_set_pci_irq_level_or_edge(0, 1); | ||
232 | nile4_set_pci_irq_level_or_edge(1, 1); | ||
233 | nile4_set_pci_irq_level_or_edge(2, 1); | ||
234 | nile4_set_pci_irq_level_or_edge(3, 1); | ||
235 | nile4_set_pci_irq_level_or_edge(4, 1); | ||
236 | |||
237 | /* PCI INTA#-D# must be active low, INTE# must be active high */ | ||
238 | nile4_set_pci_irq_polarity(0, 0); | ||
239 | nile4_set_pci_irq_polarity(1, 0); | ||
240 | nile4_set_pci_irq_polarity(2, 0); | ||
241 | nile4_set_pci_irq_polarity(3, 0); | ||
242 | nile4_set_pci_irq_polarity(4, 1); | ||
243 | |||
244 | |||
245 | for (i = 0; i < 16; i++) { | ||
246 | nile4_clear_irq(i); | ||
247 | nile4_disable_irq(i); | ||
248 | } | ||
249 | |||
250 | /* Enable CPU int #0 */ | ||
251 | nile4_enable_irq_output(0); | ||
252 | |||
253 | for (i= base; i< base + NUM_NILE4_INTERRUPTS; i++) { | ||
254 | irq_desc[i].status = IRQ_DISABLED; | ||
255 | irq_desc[i].action = NULL; | ||
256 | irq_desc[i].depth = 1; | ||
257 | irq_desc[i].handler = &nile4_irq_controller; | ||
258 | } | ||
259 | } | ||
260 | |||
261 | #if defined(CONFIG_RUNTIME_DEBUG) | ||
262 | void nile4_dump_irq_status(void) | ||
263 | { | ||
264 | printk(KERN_DEBUG " | ||
265 | CPUSTAT = %p:%p\n", (void *) ddb_in32(DDB_CPUSTAT + 4), | ||
266 | (void *) ddb_in32(DDB_CPUSTAT)); | ||
267 | printk(KERN_DEBUG " | ||
268 | INTCTRL = %p:%p\n", (void *) ddb_in32(DDB_INTCTRL + 4), | ||
269 | (void *) ddb_in32(DDB_INTCTRL)); | ||
270 | printk(KERN_DEBUG | ||
271 | "INTSTAT0 = %p:%p\n", | ||
272 | (void *) ddb_in32(DDB_INTSTAT0 + 4), | ||
273 | (void *) ddb_in32(DDB_INTSTAT0)); | ||
274 | printk(KERN_DEBUG | ||
275 | "INTSTAT1 = %p:%p\n", | ||
276 | (void *) ddb_in32(DDB_INTSTAT1 + 4), | ||
277 | (void *) ddb_in32(DDB_INTSTAT1)); | ||
278 | printk(KERN_DEBUG | ||
279 | "INTCLR = %p:%p\n", (void *) ddb_in32(DDB_INTCLR + 4), | ||
280 | (void *) ddb_in32(DDB_INTCLR)); | ||
281 | printk(KERN_DEBUG | ||
282 | "INTPPES = %p:%p\n", (void *) ddb_in32(DDB_INTPPES + 4), | ||
283 | (void *) ddb_in32(DDB_INTPPES)); | ||
284 | } | ||
285 | |||
286 | #endif | ||
diff --git a/arch/mips/ddb5xxx/ddb5074/setup.c b/arch/mips/ddb5xxx/ddb5074/setup.c deleted file mode 100644 index 91456b068c2e..000000000000 --- a/arch/mips/ddb5xxx/ddb5074/setup.c +++ /dev/null | |||
@@ -1,234 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5074/setup.c -- NEC DDB Vrc-5074 setup routines | ||
3 | * | ||
4 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
5 | * Sony Software Development Center Europe (SDCE), Brussels | ||
6 | */ | ||
7 | #include <linux/init.h> | ||
8 | #include <linux/kbd_ll.h> | ||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/kdev_t.h> | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/sched.h> | ||
13 | #include <linux/pci.h> | ||
14 | #include <linux/ide.h> | ||
15 | #include <linux/ioport.h> | ||
16 | #include <linux/irq.h> | ||
17 | #include <linux/pm.h> | ||
18 | |||
19 | #include <asm/addrspace.h> | ||
20 | #include <asm/bcache.h> | ||
21 | #include <asm/irq.h> | ||
22 | #include <asm/reboot.h> | ||
23 | #include <asm/gdb-stub.h> | ||
24 | #include <asm/time.h> | ||
25 | #include <asm/nile4.h> | ||
26 | #include <asm/ddb5xxx/ddb5074.h> | ||
27 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
28 | |||
29 | static void (*back_to_prom) (void) = (void (*)(void)) 0xbfc00000; | ||
30 | |||
31 | static void ddb_machine_restart(char *command) | ||
32 | { | ||
33 | u32 t; | ||
34 | |||
35 | /* PCI cold reset */ | ||
36 | t = nile4_in32(NILE4_PCICTRL + 4); | ||
37 | t |= 0x40000000; | ||
38 | nile4_out32(NILE4_PCICTRL + 4, t); | ||
39 | /* CPU cold reset */ | ||
40 | t = nile4_in32(NILE4_CPUSTAT); | ||
41 | t |= 1; | ||
42 | nile4_out32(NILE4_CPUSTAT, t); | ||
43 | /* Call the PROM */ | ||
44 | back_to_prom(); | ||
45 | } | ||
46 | |||
47 | static void ddb_machine_halt(void) | ||
48 | { | ||
49 | printk("DDB Vrc-5074 halted.\n"); | ||
50 | do { | ||
51 | } while (1); | ||
52 | } | ||
53 | |||
54 | static void ddb_machine_power_off(void) | ||
55 | { | ||
56 | printk("DDB Vrc-5074 halted. Please turn off the power.\n"); | ||
57 | do { | ||
58 | } while (1); | ||
59 | } | ||
60 | |||
61 | extern void rtc_ds1386_init(unsigned long base); | ||
62 | |||
63 | extern void (*board_timer_setup) (struct irqaction * irq); | ||
64 | |||
65 | static void __init ddb_timer_init(struct irqaction *irq) | ||
66 | { | ||
67 | /* set the clock to 1 Hz */ | ||
68 | nile4_out32(NILE4_T2CTRL, 1000000); | ||
69 | /* enable the General-Purpose Timer */ | ||
70 | nile4_out32(NILE4_T2CTRL + 4, 0x00000001); | ||
71 | /* reset timer */ | ||
72 | nile4_out32(NILE4_T2CNTR, 0); | ||
73 | /* enable interrupt */ | ||
74 | setup_irq(nile4_to_irq(NILE4_INT_GPT), irq); | ||
75 | nile4_enable_irq(nile4_to_irq(NILE4_INT_GPT)); | ||
76 | change_c0_status(ST0_IM, | ||
77 | IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4); | ||
78 | |||
79 | } | ||
80 | |||
81 | static void __init ddb_time_init(void) | ||
82 | { | ||
83 | /* we have ds1396 RTC chip */ | ||
84 | rtc_ds1386_init(KSEG1ADDR(DDB_PCI_MEM_BASE)); | ||
85 | } | ||
86 | |||
87 | |||
88 | |||
89 | void __init plat_setup(void) | ||
90 | { | ||
91 | set_io_port_base(NILE4_PCI_IO_BASE); | ||
92 | isa_slot_offset = NILE4_PCI_MEM_BASE; | ||
93 | board_timer_setup = ddb_timer_init; | ||
94 | board_time_init = ddb_time_init; | ||
95 | |||
96 | |||
97 | _machine_restart = ddb_machine_restart; | ||
98 | _machine_halt = ddb_machine_halt; | ||
99 | pm_power_off = ddb_machine_power_off; | ||
100 | |||
101 | ddb_out32(DDB_BAR0, 0); | ||
102 | |||
103 | ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IO, 0, 0x10); | ||
104 | ddb_set_pmr(DDB_PCIINIT1, DDB_PCICMD_MEM, DDB_PCI_MEM_BASE , 0x10); | ||
105 | |||
106 | /* Reboot on panic */ | ||
107 | panic_timeout = 180; | ||
108 | } | ||
109 | |||
110 | #define USE_NILE4_SERIAL 0 | ||
111 | |||
112 | #if USE_NILE4_SERIAL | ||
113 | #define ns16550_in(reg) nile4_in8((reg)*8) | ||
114 | #define ns16550_out(reg, val) nile4_out8((reg)*8, (val)) | ||
115 | #else | ||
116 | #define NS16550_BASE (NILE4_PCI_IO_BASE+0x03f8) | ||
117 | static inline u8 ns16550_in(u32 reg) | ||
118 | { | ||
119 | return *(volatile u8 *) (NS16550_BASE + reg); | ||
120 | } | ||
121 | |||
122 | static inline void ns16550_out(u32 reg, u8 val) | ||
123 | { | ||
124 | *(volatile u8 *) (NS16550_BASE + reg) = val; | ||
125 | } | ||
126 | #endif | ||
127 | |||
128 | #define NS16550_RBR 0 | ||
129 | #define NS16550_THR 0 | ||
130 | #define NS16550_DLL 0 | ||
131 | #define NS16550_IER 1 | ||
132 | #define NS16550_DLM 1 | ||
133 | #define NS16550_FCR 2 | ||
134 | #define NS16550_IIR 2 | ||
135 | #define NS16550_LCR 3 | ||
136 | #define NS16550_MCR 4 | ||
137 | #define NS16550_LSR 5 | ||
138 | #define NS16550_MSR 6 | ||
139 | #define NS16550_SCR 7 | ||
140 | |||
141 | #define NS16550_LSR_DR 0x01 /* Data ready */ | ||
142 | #define NS16550_LSR_OE 0x02 /* Overrun */ | ||
143 | #define NS16550_LSR_PE 0x04 /* Parity error */ | ||
144 | #define NS16550_LSR_FE 0x08 /* Framing error */ | ||
145 | #define NS16550_LSR_BI 0x10 /* Break */ | ||
146 | #define NS16550_LSR_THRE 0x20 /* Xmit holding register empty */ | ||
147 | #define NS16550_LSR_TEMT 0x40 /* Xmitter empty */ | ||
148 | #define NS16550_LSR_ERR 0x80 /* Error */ | ||
149 | |||
150 | |||
151 | void _serinit(void) | ||
152 | { | ||
153 | #if USE_NILE4_SERIAL | ||
154 | ns16550_out(NS16550_LCR, 0x80); | ||
155 | ns16550_out(NS16550_DLM, 0x00); | ||
156 | ns16550_out(NS16550_DLL, 0x36); /* 9600 baud */ | ||
157 | ns16550_out(NS16550_LCR, 0x00); | ||
158 | ns16550_out(NS16550_LCR, 0x03); | ||
159 | ns16550_out(NS16550_FCR, 0x47); | ||
160 | #else | ||
161 | /* done by PMON */ | ||
162 | #endif | ||
163 | } | ||
164 | |||
165 | void _putc(char c) | ||
166 | { | ||
167 | while (!(ns16550_in(NS16550_LSR) & NS16550_LSR_THRE)); | ||
168 | ns16550_out(NS16550_THR, c); | ||
169 | if (c == '\n') { | ||
170 | while (!(ns16550_in(NS16550_LSR) & NS16550_LSR_THRE)); | ||
171 | ns16550_out(NS16550_THR, '\r'); | ||
172 | } | ||
173 | } | ||
174 | |||
175 | void _puts(const char *s) | ||
176 | { | ||
177 | char c; | ||
178 | while ((c = *s++)) | ||
179 | _putc(c); | ||
180 | } | ||
181 | |||
182 | char _getc(void) | ||
183 | { | ||
184 | while (!(ns16550_in(NS16550_LSR) & NS16550_LSR_DR)); | ||
185 | return ns16550_in(NS16550_RBR); | ||
186 | } | ||
187 | |||
188 | int _testc(void) | ||
189 | { | ||
190 | return (ns16550_in(NS16550_LSR) & NS16550_LSR_DR) != 0; | ||
191 | } | ||
192 | |||
193 | |||
194 | /* | ||
195 | * Hexadecimal 7-segment LED | ||
196 | */ | ||
197 | void ddb5074_led_hex(int hex) | ||
198 | { | ||
199 | outb(hex, 0x80); | ||
200 | } | ||
201 | |||
202 | |||
203 | /* | ||
204 | * LEDs D2 and D3, connected to the GPIO pins of the PMU in the ALi M1543 | ||
205 | */ | ||
206 | struct pci_dev *pci_pmu = NULL; | ||
207 | |||
208 | void ddb5074_led_d2(int on) | ||
209 | { | ||
210 | u8 t; | ||
211 | |||
212 | if (pci_pmu) { | ||
213 | pci_read_config_byte(pci_pmu, 0x7e, &t); | ||
214 | if (on) | ||
215 | t &= 0x7f; | ||
216 | else | ||
217 | t |= 0x80; | ||
218 | pci_write_config_byte(pci_pmu, 0x7e, t); | ||
219 | } | ||
220 | } | ||
221 | |||
222 | void ddb5074_led_d3(int on) | ||
223 | { | ||
224 | u8 t; | ||
225 | |||
226 | if (pci_pmu) { | ||
227 | pci_read_config_byte(pci_pmu, 0x7e, &t); | ||
228 | if (on) | ||
229 | t &= 0xbf; | ||
230 | else | ||
231 | t |= 0x40; | ||
232 | pci_write_config_byte(pci_pmu, 0x7e, t); | ||
233 | } | ||
234 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/Makefile b/arch/mips/ddb5xxx/ddb5476/Makefile deleted file mode 100644 index ab0312cb47b4..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/Makefile +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # | ||
2 | # Makefile for the NEC DDB Vrc-5476 specific kernel interface routines | ||
3 | # under Linux. | ||
4 | # | ||
5 | |||
6 | obj-y += setup.o irq.o nile4_pic.o vrc5476_irq.o | ||
7 | obj-$(CONFIG_KGDB) += dbg_io.o | ||
8 | |||
9 | EXTRA_AFLAGS := $(CFLAGS) | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/dbg_io.c b/arch/mips/ddb5xxx/ddb5476/dbg_io.c deleted file mode 100644 index 85e9e5013679..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/dbg_io.c +++ /dev/null | |||
@@ -1,136 +0,0 @@ | |||
1 | /* | ||
2 | * kgdb io functions for DDB5476. We use the second serial port. | ||
3 | * | ||
4 | * Copyright (C) 2001 MontaVista Software Inc. | ||
5 | * Author: jsun@mvista.com or jsun@junsun.net | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License as published by the | ||
9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
10 | * option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | /* ======================= CONFIG ======================== */ | ||
15 | |||
16 | /* [jsun] we use the second serial port for kdb */ | ||
17 | #define BASE 0xa60002f8 | ||
18 | #define MAX_BAUD 115200 | ||
19 | |||
20 | /* distance in bytes between two serial registers */ | ||
21 | #define REG_OFFSET 1 | ||
22 | |||
23 | /* | ||
24 | * 0 - kgdb does serial init | ||
25 | * 1 - kgdb skip serial init | ||
26 | */ | ||
27 | static int remoteDebugInitialized = 0; | ||
28 | |||
29 | /* | ||
30 | * the default baud rate *if* kgdb does serial init | ||
31 | */ | ||
32 | #define BAUD_DEFAULT UART16550_BAUD_38400 | ||
33 | |||
34 | /* ======================= END OF CONFIG ======================== */ | ||
35 | |||
36 | typedef unsigned char uint8; | ||
37 | typedef unsigned int uint32; | ||
38 | |||
39 | #define UART16550_BAUD_2400 2400 | ||
40 | #define UART16550_BAUD_4800 4800 | ||
41 | #define UART16550_BAUD_9600 9600 | ||
42 | #define UART16550_BAUD_19200 19200 | ||
43 | #define UART16550_BAUD_38400 38400 | ||
44 | #define UART16550_BAUD_57600 57600 | ||
45 | #define UART16550_BAUD_115200 115200 | ||
46 | |||
47 | #define UART16550_PARITY_NONE 0 | ||
48 | #define UART16550_PARITY_ODD 0x08 | ||
49 | #define UART16550_PARITY_EVEN 0x18 | ||
50 | #define UART16550_PARITY_MARK 0x28 | ||
51 | #define UART16550_PARITY_SPACE 0x38 | ||
52 | |||
53 | #define UART16550_DATA_5BIT 0x0 | ||
54 | #define UART16550_DATA_6BIT 0x1 | ||
55 | #define UART16550_DATA_7BIT 0x2 | ||
56 | #define UART16550_DATA_8BIT 0x3 | ||
57 | |||
58 | #define UART16550_STOP_1BIT 0x0 | ||
59 | #define UART16550_STOP_2BIT 0x4 | ||
60 | |||
61 | /* register offset */ | ||
62 | #define OFS_RCV_BUFFER 0 | ||
63 | #define OFS_TRANS_HOLD 0 | ||
64 | #define OFS_SEND_BUFFER 0 | ||
65 | #define OFS_INTR_ENABLE (1*REG_OFFSET) | ||
66 | #define OFS_INTR_ID (2*REG_OFFSET) | ||
67 | #define OFS_DATA_FORMAT (3*REG_OFFSET) | ||
68 | #define OFS_LINE_CONTROL (3*REG_OFFSET) | ||
69 | #define OFS_MODEM_CONTROL (4*REG_OFFSET) | ||
70 | #define OFS_RS232_OUTPUT (4*REG_OFFSET) | ||
71 | #define OFS_LINE_STATUS (5*REG_OFFSET) | ||
72 | #define OFS_MODEM_STATUS (6*REG_OFFSET) | ||
73 | #define OFS_RS232_INPUT (6*REG_OFFSET) | ||
74 | #define OFS_SCRATCH_PAD (7*REG_OFFSET) | ||
75 | |||
76 | #define OFS_DIVISOR_LSB (0*REG_OFFSET) | ||
77 | #define OFS_DIVISOR_MSB (1*REG_OFFSET) | ||
78 | |||
79 | |||
80 | /* memory-mapped read/write of the port */ | ||
81 | #define UART16550_READ(y) (*((volatile uint8*)(BASE + y))) | ||
82 | #define UART16550_WRITE(y, z) ((*((volatile uint8*)(BASE + y))) = z) | ||
83 | |||
84 | void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | ||
85 | { | ||
86 | /* disable interrupts */ | ||
87 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | ||
88 | |||
89 | /* set up buad rate */ | ||
90 | { | ||
91 | uint32 divisor; | ||
92 | |||
93 | /* set DIAB bit */ | ||
94 | UART16550_WRITE(OFS_LINE_CONTROL, 0x80); | ||
95 | |||
96 | /* set divisor */ | ||
97 | divisor = MAX_BAUD / baud; | ||
98 | UART16550_WRITE(OFS_DIVISOR_LSB, divisor & 0xff); | ||
99 | UART16550_WRITE(OFS_DIVISOR_MSB, (divisor & 0xff00) >> 8); | ||
100 | |||
101 | /* clear DIAB bit */ | ||
102 | UART16550_WRITE(OFS_LINE_CONTROL, 0x0); | ||
103 | } | ||
104 | |||
105 | /* set data format */ | ||
106 | UART16550_WRITE(OFS_DATA_FORMAT, data | parity | stop); | ||
107 | } | ||
108 | |||
109 | |||
110 | uint8 getDebugChar(void) | ||
111 | { | ||
112 | if (!remoteDebugInitialized) { | ||
113 | remoteDebugInitialized = 1; | ||
114 | debugInit(BAUD_DEFAULT, | ||
115 | UART16550_DATA_8BIT, | ||
116 | UART16550_PARITY_NONE, UART16550_STOP_1BIT); | ||
117 | } | ||
118 | |||
119 | while ((UART16550_READ(OFS_LINE_STATUS) & 0x1) == 0); | ||
120 | return UART16550_READ(OFS_RCV_BUFFER); | ||
121 | } | ||
122 | |||
123 | |||
124 | int putDebugChar(uint8 byte) | ||
125 | { | ||
126 | if (!remoteDebugInitialized) { | ||
127 | remoteDebugInitialized = 1; | ||
128 | debugInit(BAUD_DEFAULT, | ||
129 | UART16550_DATA_8BIT, | ||
130 | UART16550_PARITY_NONE, UART16550_STOP_1BIT); | ||
131 | } | ||
132 | |||
133 | while ((UART16550_READ(OFS_LINE_STATUS) & 0x20) == 0); | ||
134 | UART16550_WRITE(OFS_SEND_BUFFER, byte); | ||
135 | return 1; | ||
136 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/irq.c b/arch/mips/ddb5xxx/ddb5476/irq.c deleted file mode 100644 index 7583a1f30711..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/irq.c +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5476/irq.c -- NEC DDB Vrc-5476 interrupt routines | ||
3 | * | ||
4 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
5 | * Sony Software Development Center Europe (SDCE), Brussels | ||
6 | * | ||
7 | * Re-write the whole thing to use new irq.c file. | ||
8 | * Copyright (C) 2001 MontaVista Software Inc. | ||
9 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | ||
10 | * | ||
11 | */ | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/sched.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | |||
17 | #include <asm/i8259.h> | ||
18 | #include <asm/io.h> | ||
19 | #include <asm/ptrace.h> | ||
20 | |||
21 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
22 | |||
23 | #define M1543_PNP_CONFIG 0x03f0 /* PnP Config Port */ | ||
24 | #define M1543_PNP_INDEX 0x03f0 /* PnP Index Port */ | ||
25 | #define M1543_PNP_DATA 0x03f1 /* PnP Data Port */ | ||
26 | |||
27 | #define M1543_PNP_ALT_CONFIG 0x0370 /* Alternative PnP Config Port */ | ||
28 | #define M1543_PNP_ALT_INDEX 0x0370 /* Alternative PnP Index Port */ | ||
29 | #define M1543_PNP_ALT_DATA 0x0371 /* Alternative PnP Data Port */ | ||
30 | |||
31 | #define M1543_INT1_MASTER_CTRL 0x0020 /* INT_1 (master) Control Register */ | ||
32 | #define M1543_INT1_MASTER_MASK 0x0021 /* INT_1 (master) Mask Register */ | ||
33 | |||
34 | #define M1543_INT1_SLAVE_CTRL 0x00a0 /* INT_1 (slave) Control Register */ | ||
35 | #define M1543_INT1_SLAVE_MASK 0x00a1 /* INT_1 (slave) Mask Register */ | ||
36 | |||
37 | #define M1543_INT1_MASTER_ELCR 0x04d0 /* INT_1 (master) Edge/Level Control */ | ||
38 | #define M1543_INT1_SLAVE_ELCR 0x04d1 /* INT_1 (slave) Edge/Level Control */ | ||
39 | |||
40 | static void m1543_irq_setup(void) | ||
41 | { | ||
42 | /* | ||
43 | * The ALI M1543 has 13 interrupt inputs, IRQ1..IRQ13. Not all | ||
44 | * the possible IO sources in the M1543 are in use by us. We will | ||
45 | * use the following mapping: | ||
46 | * | ||
47 | * IRQ1 - keyboard (default set by M1543) | ||
48 | * IRQ3 - reserved for UART B (default set by M1543) (note that | ||
49 | * the schematics for the DDB Vrc-5476 board seem to | ||
50 | * indicate that IRQ3 is connected to the DS1386 | ||
51 | * watchdog timer interrupt output so we might have | ||
52 | * a conflict) | ||
53 | * IRQ4 - reserved for UART A (default set by M1543) | ||
54 | * IRQ5 - parallel (default set by M1543) | ||
55 | * IRQ8 - DS1386 time of day (RTC) interrupt | ||
56 | * IRQ9 - USB (hardwired in ddb_setup) | ||
57 | * IRQ10 - PMU (hardwired in ddb_setup) | ||
58 | * IRQ12 - mouse | ||
59 | * IRQ14,15 - IDE controller (need to be confirmed, jsun) | ||
60 | */ | ||
61 | |||
62 | /* | ||
63 | * Assing mouse interrupt to IRQ12 | ||
64 | */ | ||
65 | |||
66 | /* Enter configuration mode */ | ||
67 | outb(0x51, M1543_PNP_CONFIG); | ||
68 | outb(0x23, M1543_PNP_CONFIG); | ||
69 | |||
70 | /* Select logical device 7 (Keyboard) */ | ||
71 | outb(0x07, M1543_PNP_INDEX); | ||
72 | outb(0x07, M1543_PNP_DATA); | ||
73 | |||
74 | /* Select IRQ12 */ | ||
75 | outb(0x72, M1543_PNP_INDEX); | ||
76 | outb(0x0c, M1543_PNP_DATA); | ||
77 | |||
78 | /* Leave configration mode */ | ||
79 | outb(0xbb, M1543_PNP_CONFIG); | ||
80 | } | ||
81 | |||
82 | static void nile4_irq_setup(void) | ||
83 | { | ||
84 | int i; | ||
85 | |||
86 | /* Map all interrupts to CPU int #0 (IP2) */ | ||
87 | nile4_map_irq_all(0); | ||
88 | |||
89 | /* PCI INTA#-E# must be level triggered */ | ||
90 | nile4_set_pci_irq_level_or_edge(0, 1); | ||
91 | nile4_set_pci_irq_level_or_edge(1, 1); | ||
92 | nile4_set_pci_irq_level_or_edge(2, 1); | ||
93 | nile4_set_pci_irq_level_or_edge(3, 1); | ||
94 | |||
95 | /* PCI INTA#, B#, D# must be active low, INTC# must be active high */ | ||
96 | nile4_set_pci_irq_polarity(0, 0); | ||
97 | nile4_set_pci_irq_polarity(1, 0); | ||
98 | nile4_set_pci_irq_polarity(2, 1); | ||
99 | nile4_set_pci_irq_polarity(3, 0); | ||
100 | |||
101 | for (i = 0; i < 16; i++) | ||
102 | nile4_clear_irq(i); | ||
103 | |||
104 | /* Enable CPU int #0 */ | ||
105 | nile4_enable_irq_output(0); | ||
106 | |||
107 | /* memory resource acquire in ddb_setup */ | ||
108 | } | ||
109 | |||
110 | static struct irqaction irq_cascade = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL }; | ||
111 | static struct irqaction irq_error = { no_action, 0, CPU_MASK_NONE, "error", NULL, NULL }; | ||
112 | |||
113 | extern int setup_irq(unsigned int irq, struct irqaction *irqaction); | ||
114 | extern void mips_cpu_irq_init(u32 irq_base); | ||
115 | extern void vrc5476_irq_init(u32 irq_base); | ||
116 | |||
117 | extern void vrc5476_irq_dispatch(struct pt_regs *regs); | ||
118 | |||
119 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | ||
120 | { | ||
121 | unsigned int pending = read_c0_cause() & read_c0_status(); | ||
122 | |||
123 | if (pending & STATUSF_IP7) | ||
124 | do_IRQ(CPU_IRQ_BASE + 7, regs); | ||
125 | else if (pending & STATUSF_IP2) | ||
126 | vrc5476_irq_dispatch(regs); | ||
127 | else if (pending & STATUSF_IP3) | ||
128 | do_IRQ(CPU_IRQ_BASE + 3, regs); | ||
129 | else if (pending & STATUSF_IP4) | ||
130 | do_IRQ(CPU_IRQ_BASE + 4, regs); | ||
131 | else if (pending & STATUSF_IP5) | ||
132 | do_IRQ(CPU_IRQ_BASE + 5, regs); | ||
133 | else if (pending & STATUSF_IP6) | ||
134 | do_IRQ(CPU_IRQ_BASE + 6, regs); | ||
135 | else if (pending & STATUSF_IP0) | ||
136 | do_IRQ(CPU_IRQ_BASE, regs); | ||
137 | else if (pending & STATUSF_IP1) | ||
138 | do_IRQ(CPU_IRQ_BASE + 1, regs); | ||
139 | |||
140 | vrc5476_irq_dispatch(regs); | ||
141 | } | ||
142 | |||
143 | void __init arch_init_irq(void) | ||
144 | { | ||
145 | /* hardware initialization */ | ||
146 | nile4_irq_setup(); | ||
147 | m1543_irq_setup(); | ||
148 | |||
149 | /* controller setup */ | ||
150 | init_i8259_irqs(); | ||
151 | vrc5476_irq_init(VRC5476_IRQ_BASE); | ||
152 | mips_cpu_irq_init(CPU_IRQ_BASE); | ||
153 | |||
154 | /* setup cascade interrupts */ | ||
155 | setup_irq(VRC5476_IRQ_BASE + VRC5476_I8259_CASCADE, &irq_cascade); | ||
156 | setup_irq(CPU_IRQ_BASE + CPU_VRC5476_CASCADE, &irq_cascade); | ||
157 | |||
158 | /* setup error interrupts for debugging */ | ||
159 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_CPCE, &irq_error); | ||
160 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_CNTD, &irq_error); | ||
161 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_MCE, &irq_error); | ||
162 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_LBRT, &irq_error); | ||
163 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_PCIS, &irq_error); | ||
164 | setup_irq(VRC5476_IRQ_BASE + VRC5476_IRQ_PCI, &irq_error); | ||
165 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/nile4_pic.c b/arch/mips/ddb5xxx/ddb5476/nile4_pic.c deleted file mode 100644 index e930cee7944f..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/nile4_pic.c +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5476/nile4.c -- | ||
3 | * low-level PIC code for NEC Vrc-5476 (Nile 4) | ||
4 | * | ||
5 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
6 | * Sony Software Development Center Europe (SDCE), Brussels | ||
7 | * | ||
8 | * Copyright 2001 MontaVista Software Inc. | ||
9 | * Author: jsun@mvista.com or jsun@junsun.net | ||
10 | * | ||
11 | */ | ||
12 | #include <linux/config.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | |||
16 | #include <asm/addrspace.h> | ||
17 | |||
18 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
19 | |||
20 | |||
21 | /* | ||
22 | * Interrupt Programming | ||
23 | */ | ||
24 | void nile4_map_irq(int nile4_irq, int cpu_irq) | ||
25 | { | ||
26 | u32 offset, t; | ||
27 | |||
28 | offset = DDB_INTCTRL; | ||
29 | if (nile4_irq >= 8) { | ||
30 | offset += 4; | ||
31 | nile4_irq -= 8; | ||
32 | } | ||
33 | t = ddb_in32(offset); | ||
34 | t &= ~(7 << (nile4_irq * 4)); | ||
35 | t |= cpu_irq << (nile4_irq * 4); | ||
36 | ddb_out32(offset, t); | ||
37 | } | ||
38 | |||
39 | void nile4_map_irq_all(int cpu_irq) | ||
40 | { | ||
41 | u32 all, t; | ||
42 | |||
43 | all = cpu_irq; | ||
44 | all |= all << 4; | ||
45 | all |= all << 8; | ||
46 | all |= all << 16; | ||
47 | t = ddb_in32(DDB_INTCTRL); | ||
48 | t &= 0x88888888; | ||
49 | t |= all; | ||
50 | ddb_out32(DDB_INTCTRL, t); | ||
51 | t = ddb_in32(DDB_INTCTRL + 4); | ||
52 | t &= 0x88888888; | ||
53 | t |= all; | ||
54 | ddb_out32(DDB_INTCTRL + 4, t); | ||
55 | } | ||
56 | |||
57 | void nile4_enable_irq(int nile4_irq) | ||
58 | { | ||
59 | u32 offset, t; | ||
60 | |||
61 | offset = DDB_INTCTRL; | ||
62 | if (nile4_irq >= 8) { | ||
63 | offset += 4; | ||
64 | nile4_irq -= 8; | ||
65 | } | ||
66 | t = ddb_in32(offset); | ||
67 | t |= 8 << (nile4_irq * 4); | ||
68 | ddb_out32(offset, t); | ||
69 | } | ||
70 | |||
71 | void nile4_disable_irq(int nile4_irq) | ||
72 | { | ||
73 | u32 offset, t; | ||
74 | |||
75 | offset = DDB_INTCTRL; | ||
76 | if (nile4_irq >= 8) { | ||
77 | offset += 4; | ||
78 | nile4_irq -= 8; | ||
79 | } | ||
80 | t = ddb_in32(offset); | ||
81 | t &= ~(8 << (nile4_irq * 4)); | ||
82 | ddb_out32(offset, t); | ||
83 | } | ||
84 | |||
85 | void nile4_disable_irq_all(void) | ||
86 | { | ||
87 | ddb_out32(DDB_INTCTRL, 0); | ||
88 | ddb_out32(DDB_INTCTRL + 4, 0); | ||
89 | } | ||
90 | |||
91 | u16 nile4_get_irq_stat(int cpu_irq) | ||
92 | { | ||
93 | return ddb_in16(DDB_INTSTAT0 + cpu_irq * 2); | ||
94 | } | ||
95 | |||
96 | void nile4_enable_irq_output(int cpu_irq) | ||
97 | { | ||
98 | u32 t; | ||
99 | |||
100 | t = ddb_in32(DDB_INTSTAT1 + 4); | ||
101 | t |= 1 << (16 + cpu_irq); | ||
102 | ddb_out32(DDB_INTSTAT1, t); | ||
103 | } | ||
104 | |||
105 | void nile4_disable_irq_output(int cpu_irq) | ||
106 | { | ||
107 | u32 t; | ||
108 | |||
109 | t = ddb_in32(DDB_INTSTAT1 + 4); | ||
110 | t &= ~(1 << (16 + cpu_irq)); | ||
111 | ddb_out32(DDB_INTSTAT1, t); | ||
112 | } | ||
113 | |||
114 | void nile4_set_pci_irq_polarity(int pci_irq, int high) | ||
115 | { | ||
116 | u32 t; | ||
117 | |||
118 | t = ddb_in32(DDB_INTPPES); | ||
119 | if (high) | ||
120 | t &= ~(1 << (pci_irq * 2)); | ||
121 | else | ||
122 | t |= 1 << (pci_irq * 2); | ||
123 | ddb_out32(DDB_INTPPES, t); | ||
124 | } | ||
125 | |||
126 | void nile4_set_pci_irq_level_or_edge(int pci_irq, int level) | ||
127 | { | ||
128 | u32 t; | ||
129 | |||
130 | t = ddb_in32(DDB_INTPPES); | ||
131 | if (level) | ||
132 | t |= 2 << (pci_irq * 2); | ||
133 | else | ||
134 | t &= ~(2 << (pci_irq * 2)); | ||
135 | ddb_out32(DDB_INTPPES, t); | ||
136 | } | ||
137 | |||
138 | void nile4_clear_irq(int nile4_irq) | ||
139 | { | ||
140 | ddb_out32(DDB_INTCLR, 1 << nile4_irq); | ||
141 | } | ||
142 | |||
143 | void nile4_clear_irq_mask(u32 mask) | ||
144 | { | ||
145 | ddb_out32(DDB_INTCLR, mask); | ||
146 | } | ||
147 | |||
148 | u8 nile4_i8259_iack(void) | ||
149 | { | ||
150 | u8 irq; | ||
151 | u32 reg; | ||
152 | |||
153 | /* Set window 0 for interrupt acknowledge */ | ||
154 | reg = ddb_in32(DDB_PCIINIT0); | ||
155 | |||
156 | ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IACK, 0, DDB_PCI_ACCESS_32); | ||
157 | irq = *(volatile u8 *) KSEG1ADDR(DDB_PCI_IACK_BASE); | ||
158 | /* restore window 0 for PCI I/O space */ | ||
159 | // ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IO, 0, DDB_PCI_ACCESS_32); | ||
160 | ddb_out32(DDB_PCIINIT0, reg); | ||
161 | |||
162 | /* i8269.c set the base vector to be 0x0 */ | ||
163 | return irq + I8259_IRQ_BASE; | ||
164 | } | ||
165 | |||
166 | #if defined(CONFIG_RUNTIME_DEBUG) | ||
167 | void nile4_dump_irq_status(void) | ||
168 | { | ||
169 | printk(KERN_DEBUG " | ||
170 | CPUSTAT = %p:%p\n", (void *) ddb_in32(DDB_CPUSTAT + 4), | ||
171 | (void *) ddb_in32(DDB_CPUSTAT)); | ||
172 | printk(KERN_DEBUG " | ||
173 | INTCTRL = %p:%p\n", (void *) ddb_in32(DDB_INTCTRL + 4), | ||
174 | (void *) ddb_in32(DDB_INTCTRL)); | ||
175 | printk(KERN_DEBUG | ||
176 | "INTSTAT0 = %p:%p\n", | ||
177 | (void *) ddb_in32(DDB_INTSTAT0 + 4), | ||
178 | (void *) ddb_in32(DDB_INTSTAT0)); | ||
179 | printk(KERN_DEBUG | ||
180 | "INTSTAT1 = %p:%p\n", | ||
181 | (void *) ddb_in32(DDB_INTSTAT1 + 4), | ||
182 | (void *) ddb_in32(DDB_INTSTAT1)); | ||
183 | printk(KERN_DEBUG | ||
184 | "INTCLR = %p:%p\n", (void *) ddb_in32(DDB_INTCLR + 4), | ||
185 | (void *) ddb_in32(DDB_INTCLR)); | ||
186 | printk(KERN_DEBUG | ||
187 | "INTPPES = %p:%p\n", (void *) ddb_in32(DDB_INTPPES + 4), | ||
188 | (void *) ddb_in32(DDB_INTPPES)); | ||
189 | } | ||
190 | #endif | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/setup.c b/arch/mips/ddb5xxx/ddb5476/setup.c deleted file mode 100644 index c902adef5942..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/setup.c +++ /dev/null | |||
@@ -1,296 +0,0 @@ | |||
1 | /* | ||
2 | * arch/mips/ddb5476/setup.c -- NEC DDB Vrc-5476 setup routines | ||
3 | * | ||
4 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
5 | * Sony Software Development Center Europe (SDCE), Brussels | ||
6 | */ | ||
7 | #include <linux/init.h> | ||
8 | #include <linux/kbd_ll.h> | ||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/kdev_t.h> | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/sched.h> | ||
13 | #include <linux/pci.h> | ||
14 | #include <linux/pm.h> | ||
15 | |||
16 | #include <asm/addrspace.h> | ||
17 | #include <asm/bcache.h> | ||
18 | #include <asm/irq.h> | ||
19 | #include <asm/reboot.h> | ||
20 | #include <asm/gdb-stub.h> | ||
21 | #include <asm/time.h> | ||
22 | #include <asm/debug.h> | ||
23 | #include <asm/traps.h> | ||
24 | |||
25 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
26 | |||
27 | // #define USE_CPU_COUNTER_TIMER /* whether we use cpu counter */ | ||
28 | |||
29 | #ifdef USE_CPU_COUNTER_TIMER | ||
30 | |||
31 | #define CPU_COUNTER_FREQUENCY 83000000 | ||
32 | #else | ||
33 | /* otherwise we use general purpose timer */ | ||
34 | #define TIMER_FREQUENCY 83000000 | ||
35 | #define TIMER_BASE DDB_T2CTRL | ||
36 | #define TIMER_IRQ (VRC5476_IRQ_BASE + VRC5476_IRQ_GPT) | ||
37 | #endif | ||
38 | |||
39 | static void (*back_to_prom) (void) = (void (*)(void)) 0xbfc00000; | ||
40 | |||
41 | static void ddb_machine_restart(char *command) | ||
42 | { | ||
43 | u32 t; | ||
44 | |||
45 | /* PCI cold reset */ | ||
46 | t = ddb_in32(DDB_PCICTRL + 4); | ||
47 | t |= 0x40000000; | ||
48 | ddb_out32(DDB_PCICTRL + 4, t); | ||
49 | /* CPU cold reset */ | ||
50 | t = ddb_in32(DDB_CPUSTAT); | ||
51 | t |= 1; | ||
52 | ddb_out32(DDB_CPUSTAT, t); | ||
53 | /* Call the PROM */ | ||
54 | back_to_prom(); | ||
55 | } | ||
56 | |||
57 | static void ddb_machine_halt(void) | ||
58 | { | ||
59 | printk(KERN_NOTICE "DDB Vrc-5476 halted.\n"); | ||
60 | while (1); | ||
61 | } | ||
62 | |||
63 | static void ddb_machine_power_off(void) | ||
64 | { | ||
65 | printk(KERN_NOTICE "DDB Vrc-5476 halted. Please turn off the power.\n"); | ||
66 | while (1); | ||
67 | } | ||
68 | |||
69 | extern void rtc_ds1386_init(unsigned long base); | ||
70 | |||
71 | static void __init ddb_time_init(void) | ||
72 | { | ||
73 | #if defined(USE_CPU_COUNTER_TIMER) | ||
74 | mips_hpt_frequency = CPU_COUNTER_FREQUENCY; | ||
75 | #endif | ||
76 | |||
77 | /* we have ds1396 RTC chip */ | ||
78 | rtc_ds1386_init(KSEG1ADDR(DDB_PCI_MEM_BASE)); | ||
79 | } | ||
80 | |||
81 | |||
82 | extern int setup_irq(unsigned int irq, struct irqaction *irqaction); | ||
83 | static void __init ddb_timer_setup(struct irqaction *irq) | ||
84 | { | ||
85 | #if defined(USE_CPU_COUNTER_TIMER) | ||
86 | |||
87 | unsigned int count; | ||
88 | |||
89 | /* we are using the cpu counter for timer interrupts */ | ||
90 | setup_irq(CPU_IRQ_BASE + 7, irq); | ||
91 | |||
92 | /* to generate the first timer interrupt */ | ||
93 | count = read_c0_count(); | ||
94 | write_c0_compare(count + 1000); | ||
95 | |||
96 | #else | ||
97 | |||
98 | ddb_out32(TIMER_BASE, TIMER_FREQUENCY/HZ); | ||
99 | ddb_out32(TIMER_BASE+4, 0x1); /* enable timer */ | ||
100 | setup_irq(TIMER_IRQ, irq); | ||
101 | #endif | ||
102 | } | ||
103 | |||
104 | static struct { | ||
105 | struct resource dma1; | ||
106 | struct resource timer; | ||
107 | struct resource rtc; | ||
108 | struct resource dma_page_reg; | ||
109 | struct resource dma2; | ||
110 | } ddb5476_ioport = { | ||
111 | { | ||
112 | "dma1", 0x00, 0x1f, IORESOURCE_BUSY}, { | ||
113 | "timer", 0x40, 0x5f, IORESOURCE_BUSY}, { | ||
114 | "rtc", 0x70, 0x7f, IORESOURCE_BUSY}, { | ||
115 | "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY}, { | ||
116 | "dma2", 0xc0, 0xdf, IORESOURCE_BUSY} | ||
117 | }; | ||
118 | |||
119 | static struct { | ||
120 | struct resource nile4; | ||
121 | } ddb5476_iomem = { | ||
122 | { "Nile 4", DDB_BASE, DDB_BASE + DDB_SIZE - 1, IORESOURCE_BUSY} | ||
123 | }; | ||
124 | |||
125 | |||
126 | static void ddb5476_board_init(void); | ||
127 | |||
128 | void __init plat_setup(void) | ||
129 | { | ||
130 | set_io_port_base(KSEG1ADDR(DDB_PCI_IO_BASE)); | ||
131 | |||
132 | board_time_init = ddb_time_init; | ||
133 | board_timer_setup = ddb_timer_setup; | ||
134 | |||
135 | _machine_restart = ddb_machine_restart; | ||
136 | _machine_halt = ddb_machine_halt; | ||
137 | pm_power_off = ddb_machine_power_off; | ||
138 | |||
139 | /* request io port/mem resources */ | ||
140 | if (request_resource(&ioport_resource, &ddb5476_ioport.dma1) || | ||
141 | request_resource(&ioport_resource, &ddb5476_ioport.timer) || | ||
142 | request_resource(&ioport_resource, &ddb5476_ioport.rtc) || | ||
143 | request_resource(&ioport_resource, | ||
144 | &ddb5476_ioport.dma_page_reg) | ||
145 | || request_resource(&ioport_resource, &ddb5476_ioport.dma2) | ||
146 | || request_resource(&iomem_resource, &ddb5476_iomem.nile4)) { | ||
147 | printk | ||
148 | ("ddb_setup - requesting oo port resources failed.\n"); | ||
149 | for (;;); | ||
150 | } | ||
151 | |||
152 | /* Reboot on panic */ | ||
153 | panic_timeout = 180; | ||
154 | |||
155 | /* [jsun] we need to set BAR0 so that SDRAM 0 appears at 0x0 in PCI */ | ||
156 | /* *(long*)0xbfa00218 = 0x8; */ | ||
157 | |||
158 | /* board initialization stuff */ | ||
159 | ddb5476_board_init(); | ||
160 | } | ||
161 | |||
162 | /* | ||
163 | * We don't trust bios. We essentially does hardware re-initialization | ||
164 | * as complete as possible, as far as we know we can safely do. | ||
165 | */ | ||
166 | static void ddb5476_board_init(void) | ||
167 | { | ||
168 | /* ----------- setup PDARs ------------ */ | ||
169 | /* check SDRAM0, whether we are on MEM bus does not matter */ | ||
170 | db_assert((ddb_in32(DDB_SDRAM0) & 0xffffffef) == | ||
171 | ddb_calc_pdar(DDB_SDRAM_BASE, DDB_SDRAM_SIZE, 32, 0, 1)); | ||
172 | |||
173 | /* SDRAM1 should be turned off. What is this for anyway ? */ | ||
174 | db_assert( (ddb_in32(DDB_SDRAM1) & 0xf) == 0); | ||
175 | |||
176 | /* flash 1&2, DDB status, DDB control */ | ||
177 | ddb_set_pdar(DDB_DCS2, DDB_DCS2_BASE, DDB_DCS2_SIZE, 16, 0, 0); | ||
178 | ddb_set_pdar(DDB_DCS3, DDB_DCS3_BASE, DDB_DCS3_SIZE, 16, 0, 0); | ||
179 | ddb_set_pdar(DDB_DCS4, DDB_DCS4_BASE, DDB_DCS4_SIZE, 8, 0, 0); | ||
180 | ddb_set_pdar(DDB_DCS5, DDB_DCS5_BASE, DDB_DCS5_SIZE, 8, 0, 0); | ||
181 | |||
182 | /* shut off other pdar so they don't accidentally get into the way */ | ||
183 | ddb_set_pdar(DDB_DCS6, 0xffffffff, 0, 32, 0, 0); | ||
184 | ddb_set_pdar(DDB_DCS7, 0xffffffff, 0, 32, 0, 0); | ||
185 | ddb_set_pdar(DDB_DCS8, 0xffffffff, 0, 32, 0, 0); | ||
186 | |||
187 | /* verify VRC5477 base addr */ | ||
188 | /* don't care about some details */ | ||
189 | db_assert((ddb_in32(DDB_INTCS) & 0xffffff0f) == | ||
190 | ddb_calc_pdar(DDB_INTCS_BASE, DDB_INTCS_SIZE, 8, 0, 0)); | ||
191 | |||
192 | /* verify BOOT ROM addr */ | ||
193 | /* don't care about some details */ | ||
194 | db_assert((ddb_in32(DDB_BOOTCS) & 0xffffff0f) == | ||
195 | ddb_calc_pdar(DDB_BOOTCS_BASE, DDB_BOOTCS_SIZE, 8, 0, 0)); | ||
196 | |||
197 | /* setup PCI windows - window1 for MEM/config, window0 for IO */ | ||
198 | ddb_set_pdar(DDB_PCIW0, DDB_PCI_IO_BASE, DDB_PCI_IO_SIZE, 32, 0, 1); | ||
199 | ddb_set_pmr(DDB_PCIINIT0, DDB_PCICMD_IO, 0, DDB_PCI_ACCESS_32); | ||
200 | |||
201 | ddb_set_pdar(DDB_PCIW1, DDB_PCI_MEM_BASE, DDB_PCI_MEM_SIZE, 32, 0, 1); | ||
202 | ddb_set_pmr(DDB_PCIINIT1, DDB_PCICMD_MEM, DDB_PCI_MEM_BASE, DDB_PCI_ACCESS_32); | ||
203 | |||
204 | /* ----------- setup PDARs ------------ */ | ||
205 | /* this is problematic - it will reset Aladin which cause we loose | ||
206 | * serial port, and we don't know how to set up Aladin chip again. | ||
207 | */ | ||
208 | // ddb_pci_reset_bus(); | ||
209 | |||
210 | ddb_out32(DDB_BAR0, 0x00000008); | ||
211 | |||
212 | ddb_out32(DDB_BARC, 0xffffffff); | ||
213 | ddb_out32(DDB_BARB, 0xffffffff); | ||
214 | ddb_out32(DDB_BAR1, 0xffffffff); | ||
215 | ddb_out32(DDB_BAR2, 0xffffffff); | ||
216 | ddb_out32(DDB_BAR3, 0xffffffff); | ||
217 | ddb_out32(DDB_BAR4, 0xffffffff); | ||
218 | ddb_out32(DDB_BAR5, 0xffffffff); | ||
219 | ddb_out32(DDB_BAR6, 0xffffffff); | ||
220 | ddb_out32(DDB_BAR7, 0xffffffff); | ||
221 | ddb_out32(DDB_BAR8, 0xffffffff); | ||
222 | |||
223 | /* ----------- switch PCI1 to PCI CONFIG space ------------ */ | ||
224 | ddb_set_pdar(DDB_PCIW1, DDB_PCI_CONFIG_BASE, DDB_PCI_CONFIG_SIZE, 32, 0, 1); | ||
225 | ddb_set_pmr(DDB_PCIINIT1, DDB_PCICMD_CFG, 0x0, DDB_PCI_ACCESS_32); | ||
226 | |||
227 | /* ----- M1543 PCI setup ------ */ | ||
228 | |||
229 | /* we know M1543 PCI-ISA controller is at addr:18 */ | ||
230 | /* xxxx1010 makes USB at addr:13 and PMU at addr:14 */ | ||
231 | *(volatile unsigned char *) 0xa8040072 &= 0xf0; | ||
232 | *(volatile unsigned char *) 0xa8040072 |= 0xa; | ||
233 | |||
234 | /* setup USB interrupt to IRQ 9, (bit 0:3 - 0001) | ||
235 | * no IOCHRDY signal, (bit 7 - 1) | ||
236 | * M1543C & M7101 VID and Subsys Device ID are read-only (bit 6 - 1) | ||
237 | * Make USB Master INTAJ level to edge conversion (bit 4 - 1) | ||
238 | */ | ||
239 | *(unsigned char *) 0xa8040074 = 0xd1; | ||
240 | |||
241 | /* setup PMU(SCI to IRQ 10 (bit 0:3 - 0011) | ||
242 | * SCI routing to IRQ 13 disabled (bit 7 - 1) | ||
243 | * SCI interrupt level to edge conversion bypassed (bit 4 - 0) | ||
244 | */ | ||
245 | *(unsigned char *) 0xa8040076 = 0x83; | ||
246 | |||
247 | /* setup IDE controller | ||
248 | * enable IDE controller (bit 6 - 1) | ||
249 | * IDE IDSEL to be addr:24 (bit 4:5 - 11) | ||
250 | * no IDE ATA Secondary Bus Signal Pad Control (bit 3 - 0) | ||
251 | * no IDE ATA Primary Bus Signal Pad Control (bit 2 - 0) | ||
252 | * primary IRQ is 14, secondary is 15 (bit 1:0 - 01 | ||
253 | */ | ||
254 | // *(unsigned char*)0xa8040058 = 0x71; | ||
255 | // *(unsigned char*)0xa8040058 = 0x79; | ||
256 | // *(unsigned char*)0xa8040058 = 0x74; // use SIRQ, primary tri-state | ||
257 | *(unsigned char *) 0xa8040058 = 0x75; // primary tri-state | ||
258 | |||
259 | #if 0 | ||
260 | /* this is not necessary if M5229 does not use SIRQ */ | ||
261 | *(unsigned char *) 0xa8040044 = 0x0d; // primary to IRQ 14 | ||
262 | *(unsigned char *) 0xa8040075 = 0x0d; // secondary to IRQ 14 | ||
263 | #endif | ||
264 | |||
265 | /* enable IDE in the M5229 config register 0x50 (bit 0 - 1) */ | ||
266 | /* M5229 IDSEL is addr:24; see above setting */ | ||
267 | *(unsigned char *) 0xa9000050 |= 0x1; | ||
268 | |||
269 | /* enable bus master (bit 2) and IO decoding (bit 0) */ | ||
270 | *(unsigned char *) 0xa9000004 |= 0x5; | ||
271 | |||
272 | /* enable native, copied from arch/ppc/k2boot/head.S */ | ||
273 | /* TODO - need volatile, need to be portable */ | ||
274 | *(unsigned char *) 0xa9000009 = 0xff; | ||
275 | |||
276 | /* ----- end of M1543 PCI setup ------ */ | ||
277 | |||
278 | /* ----- reset on-board ether chip ------ */ | ||
279 | *((volatile u32 *) 0xa8020004) |= 1; /* decode I/O */ | ||
280 | *((volatile u32 *) 0xa8020010) = 0; /* set BAR address */ | ||
281 | |||
282 | /* send reset command */ | ||
283 | *((volatile u32 *) 0xa6000000) = 1; /* do a soft reset */ | ||
284 | |||
285 | /* disable ether chip */ | ||
286 | *((volatile u32 *) 0xa8020004) = 0; /* disable any decoding */ | ||
287 | |||
288 | /* put it into sleep */ | ||
289 | *((volatile u32 *) 0xa8020040) = 0x80000000; | ||
290 | |||
291 | /* ----- end of reset on-board ether chip ------ */ | ||
292 | |||
293 | /* ----------- switch PCI1 back to PCI MEM space ------------ */ | ||
294 | ddb_set_pdar(DDB_PCIW1, DDB_PCI_MEM_BASE, DDB_PCI_MEM_SIZE, 32, 0, 1); | ||
295 | ddb_set_pmr(DDB_PCIINIT1, DDB_PCICMD_MEM, DDB_PCI_MEM_BASE, DDB_PCI_ACCESS_32); | ||
296 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5476/vrc5476_irq.c b/arch/mips/ddb5xxx/ddb5476/vrc5476_irq.c deleted file mode 100644 index a3c5e7b18018..000000000000 --- a/arch/mips/ddb5xxx/ddb5476/vrc5476_irq.c +++ /dev/null | |||
@@ -1,109 +0,0 @@ | |||
1 | /* | ||
2 | * The irq controller for vrc5476. | ||
3 | * | ||
4 | * Copyright (C) 2001 MontaVista Software Inc. | ||
5 | * Author: jsun@mvista.com or jsun@junsun.net | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License as published by the | ||
9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
10 | * option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/interrupt.h> | ||
15 | #include <linux/irq.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/ptrace.h> | ||
18 | |||
19 | #include <asm/system.h> | ||
20 | |||
21 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
22 | |||
23 | static int irq_base; | ||
24 | |||
25 | static void vrc5476_irq_enable(uint irq) | ||
26 | { | ||
27 | nile4_enable_irq(irq - irq_base); | ||
28 | } | ||
29 | |||
30 | static void vrc5476_irq_disable(uint irq) | ||
31 | { | ||
32 | nile4_disable_irq(irq - irq_base); | ||
33 | } | ||
34 | |||
35 | static unsigned int vrc5476_irq_startup(uint irq) | ||
36 | { | ||
37 | nile4_enable_irq(irq - irq_base); | ||
38 | return 0; | ||
39 | } | ||
40 | |||
41 | #define vrc5476_irq_shutdown vrc5476_irq_disable | ||
42 | |||
43 | static void vrc5476_irq_ack(uint irq) | ||
44 | { | ||
45 | nile4_clear_irq(irq - irq_base); | ||
46 | nile4_disable_irq(irq - irq_base); | ||
47 | } | ||
48 | |||
49 | static void vrc5476_irq_end(uint irq) | ||
50 | { | ||
51 | if(!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) | ||
52 | vrc5476_irq_enable(irq); | ||
53 | } | ||
54 | |||
55 | static hw_irq_controller vrc5476_irq_controller = { | ||
56 | .typename = "vrc5476", | ||
57 | .startup = vrc5476_irq_startup, | ||
58 | .shutdown = vrc5476_irq_shutdown, | ||
59 | .enable = vrc5476_irq_enable, | ||
60 | .disable = vrc5476_irq_disable, | ||
61 | .ack = vrc5476_irq_ack, | ||
62 | .end = vrc5476_irq_end | ||
63 | }; | ||
64 | |||
65 | void __init | ||
66 | vrc5476_irq_init(u32 base) | ||
67 | { | ||
68 | u32 i; | ||
69 | |||
70 | irq_base = base; | ||
71 | for (i= base; i< base + NUM_VRC5476_IRQ; i++) { | ||
72 | irq_desc[i].status = IRQ_DISABLED; | ||
73 | irq_desc[i].action = NULL; | ||
74 | irq_desc[i].depth = 1; | ||
75 | irq_desc[i].handler = &vrc5476_irq_controller; | ||
76 | } | ||
77 | } | ||
78 | |||
79 | |||
80 | void | ||
81 | vrc5476_irq_dispatch(struct pt_regs *regs) | ||
82 | { | ||
83 | u32 mask; | ||
84 | int nile4_irq; | ||
85 | |||
86 | mask = nile4_get_irq_stat(0); | ||
87 | |||
88 | /* quick check for possible time interrupt */ | ||
89 | if (mask & (1 << VRC5476_IRQ_GPT)) { | ||
90 | do_IRQ(VRC5476_IRQ_BASE + VRC5476_IRQ_GPT, regs); | ||
91 | return; | ||
92 | } | ||
93 | |||
94 | /* check for i8259 interrupts */ | ||
95 | if (mask & (1 << VRC5476_I8259_CASCADE)) { | ||
96 | int i8259_irq = nile4_i8259_iack(); | ||
97 | do_IRQ(I8259_IRQ_BASE + i8259_irq, regs); | ||
98 | return; | ||
99 | } | ||
100 | |||
101 | /* regular nile4 interrupts (we should not really have any */ | ||
102 | for (nile4_irq = 0; mask; nile4_irq++, mask >>= 1) { | ||
103 | if (mask & 1) { | ||
104 | do_IRQ(VRC5476_IRQ_BASE + nile4_irq, regs); | ||
105 | return; | ||
106 | } | ||
107 | } | ||
108 | spurious_interrupt(regs); | ||
109 | } | ||
diff --git a/arch/mips/ddb5xxx/ddb5477/kgdb_io.c b/arch/mips/ddb5xxx/ddb5477/kgdb_io.c index 1d18d590495b..385bbdb10170 100644 --- a/arch/mips/ddb5xxx/ddb5477/kgdb_io.c +++ b/arch/mips/ddb5xxx/ddb5477/kgdb_io.c | |||
@@ -86,7 +86,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
86 | /* disable interrupts */ | 86 | /* disable interrupts */ |
87 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 87 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
88 | 88 | ||
89 | /* set up buad rate */ | 89 | /* set up baud rate */ |
90 | { | 90 | { |
91 | uint32 divisor; | 91 | uint32 divisor; |
92 | 92 | ||
diff --git a/arch/mips/ddb5xxx/ddb5477/setup.c b/arch/mips/ddb5xxx/ddb5477/setup.c index 2f566034cc44..93167ecdb424 100644 --- a/arch/mips/ddb5xxx/ddb5477/setup.c +++ b/arch/mips/ddb5xxx/ddb5477/setup.c | |||
@@ -171,7 +171,7 @@ static void ddb5477_board_init(void); | |||
171 | extern struct pci_controller ddb5477_ext_controller; | 171 | extern struct pci_controller ddb5477_ext_controller; |
172 | extern struct pci_controller ddb5477_io_controller; | 172 | extern struct pci_controller ddb5477_io_controller; |
173 | 173 | ||
174 | void __init plat_setup(void) | 174 | void __init plat_mem_setup(void) |
175 | { | 175 | { |
176 | /* initialize board - we don't trust the loader */ | 176 | /* initialize board - we don't trust the loader */ |
177 | ddb5477_board_init(); | 177 | ddb5477_board_init(); |
diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index ad5d436d80c1..9c707b9ceb65 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c | |||
@@ -147,7 +147,7 @@ static void __init dec_be_init(void) | |||
147 | extern void dec_time_init(void); | 147 | extern void dec_time_init(void); |
148 | extern void dec_timer_setup(struct irqaction *); | 148 | extern void dec_timer_setup(struct irqaction *); |
149 | 149 | ||
150 | void __init plat_setup(void) | 150 | void __init plat_mem_setup(void) |
151 | { | 151 | { |
152 | board_be_init = dec_be_init; | 152 | board_be_init = dec_be_init; |
153 | board_time_init = dec_time_init; | 153 | board_time_init = dec_time_init; |
diff --git a/arch/mips/dec/time.c b/arch/mips/dec/time.c index 74cb055d4bf6..76e4d09ff4d2 100644 --- a/arch/mips/dec/time.c +++ b/arch/mips/dec/time.c | |||
@@ -181,7 +181,7 @@ void __init dec_time_init(void) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | /* Set up the rate of periodic DS1287 interrupts. */ | 183 | /* Set up the rate of periodic DS1287 interrupts. */ |
184 | CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - LOG_2_HZ), RTC_REG_A); | 184 | CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - __ffs(HZ)), RTC_REG_A); |
185 | } | 185 | } |
186 | 186 | ||
187 | EXPORT_SYMBOL(do_settimeofday); | 187 | EXPORT_SYMBOL(do_settimeofday); |
diff --git a/arch/mips/defconfig b/arch/mips/defconfig index 607e2985ffe3..879ba1ad99ca 100644 --- a/arch/mips/defconfig +++ b/arch/mips/defconfig | |||
@@ -41,8 +41,6 @@ CONFIG_MIPS=y | |||
41 | # CONFIG_MIPS_XXS1500 is not set | 41 | # CONFIG_MIPS_XXS1500 is not set |
42 | # CONFIG_PNX8550_V2PCI is not set | 42 | # CONFIG_PNX8550_V2PCI is not set |
43 | # CONFIG_PNX8550_JBS is not set | 43 | # CONFIG_PNX8550_JBS is not set |
44 | # CONFIG_DDB5074 is not set | ||
45 | # CONFIG_DDB5476 is not set | ||
46 | # CONFIG_DDB5477 is not set | 44 | # CONFIG_DDB5477 is not set |
47 | # CONFIG_MACH_VR41XX is not set | 45 | # CONFIG_MACH_VR41XX is not set |
48 | # CONFIG_PMC_YOSEMITE is not set | 46 | # CONFIG_PMC_YOSEMITE is not set |
@@ -136,6 +134,15 @@ CONFIG_FLATMEM=y | |||
136 | CONFIG_FLAT_NODE_MEM_MAP=y | 134 | CONFIG_FLAT_NODE_MEM_MAP=y |
137 | # CONFIG_SPARSEMEM_STATIC is not set | 135 | # CONFIG_SPARSEMEM_STATIC is not set |
138 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 136 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
137 | # CONFIG_HZ_48 is not set | ||
138 | # CONFIG_HZ_100 is not set | ||
139 | # CONFIG_HZ_128 is not set | ||
140 | # CONFIG_HZ_250 is not set | ||
141 | # CONFIG_HZ_256 is not set | ||
142 | CONFIG_HZ_1000=y | ||
143 | # CONFIG_HZ_1024 is not set | ||
144 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
145 | CONFIG_HZ=1000 | ||
139 | # CONFIG_PREEMPT_NONE is not set | 146 | # CONFIG_PREEMPT_NONE is not set |
140 | CONFIG_PREEMPT_VOLUNTARY=y | 147 | CONFIG_PREEMPT_VOLUNTARY=y |
141 | # CONFIG_PREEMPT is not set | 148 | # CONFIG_PREEMPT is not set |
diff --git a/arch/mips/emma2rh/common/Makefile b/arch/mips/emma2rh/common/Makefile new file mode 100644 index 000000000000..859121b3867d --- /dev/null +++ b/arch/mips/emma2rh/common/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | # | ||
2 | # arch/mips/emma2rh/common/Makefile | ||
3 | # Makefile for the common code of NEC EMMA2RH based board. | ||
4 | # | ||
5 | # Copyright (C) NEC Electronics Corporation 2005-2006 | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License as published by | ||
9 | # the Free Software Foundation; either version 2 of the License, or | ||
10 | # (at your option) any later version. | ||
11 | # | ||
12 | |||
13 | obj-$(CONFIG_MARKEINS) += irq.o irq_emma2rh.o prom.o | ||
diff --git a/arch/mips/emma2rh/common/irq.c b/arch/mips/emma2rh/common/irq.c new file mode 100644 index 000000000000..b075281e50e9 --- /dev/null +++ b/arch/mips/emma2rh/common/irq.c | |||
@@ -0,0 +1,108 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/common/irq.c | ||
3 | * This file is common irq dispatcher. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2005-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/irq.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/irq.h> | ||
29 | #include <linux/types.h> | ||
30 | |||
31 | #include <asm/i8259.h> | ||
32 | #include <asm/system.h> | ||
33 | #include <asm/mipsregs.h> | ||
34 | #include <asm/debug.h> | ||
35 | #include <asm/addrspace.h> | ||
36 | #include <asm/bootinfo.h> | ||
37 | |||
38 | #include <asm/emma2rh/emma2rh.h> | ||
39 | |||
40 | /* | ||
41 | * the first level int-handler will jump here if it is a emma2rh irq | ||
42 | */ | ||
43 | asmlinkage void emma2rh_irq_dispatch(struct pt_regs *regs) | ||
44 | { | ||
45 | u32 intStatus; | ||
46 | u32 bitmask; | ||
47 | u32 i; | ||
48 | |||
49 | intStatus = emma2rh_in32(EMMA2RH_BHIF_INT_ST_0) | ||
50 | & emma2rh_in32(EMMA2RH_BHIF_INT_EN_0); | ||
51 | |||
52 | #ifdef EMMA2RH_SW_CASCADE | ||
53 | if (intStatus & | ||
54 | (1 << ((EMMA2RH_SW_CASCADE - EMMA2RH_IRQ_INT0) & (32 - 1)))) { | ||
55 | u32 swIntStatus; | ||
56 | swIntStatus = emma2rh_in32(EMMA2RH_BHIF_SW_INT) | ||
57 | & emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); | ||
58 | for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { | ||
59 | if (swIntStatus & bitmask) { | ||
60 | do_IRQ(EMMA2RH_SW_IRQ_BASE + i, regs); | ||
61 | return; | ||
62 | } | ||
63 | } | ||
64 | } | ||
65 | #endif | ||
66 | |||
67 | for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { | ||
68 | if (intStatus & bitmask) { | ||
69 | do_IRQ(EMMA2RH_IRQ_BASE + i, regs); | ||
70 | return; | ||
71 | } | ||
72 | } | ||
73 | |||
74 | intStatus = emma2rh_in32(EMMA2RH_BHIF_INT_ST_1) | ||
75 | & emma2rh_in32(EMMA2RH_BHIF_INT_EN_1); | ||
76 | |||
77 | #ifdef EMMA2RH_GPIO_CASCADE | ||
78 | if (intStatus & | ||
79 | (1 << ((EMMA2RH_GPIO_CASCADE - EMMA2RH_IRQ_INT0) & (32 - 1)))) { | ||
80 | u32 gpioIntStatus; | ||
81 | gpioIntStatus = emma2rh_in32(EMMA2RH_GPIO_INT_ST) | ||
82 | & emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | ||
83 | for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { | ||
84 | if (gpioIntStatus & bitmask) { | ||
85 | do_IRQ(EMMA2RH_GPIO_IRQ_BASE + i, regs); | ||
86 | return; | ||
87 | } | ||
88 | } | ||
89 | } | ||
90 | #endif | ||
91 | |||
92 | for (i = 32, bitmask = 1; i < 64; i++, bitmask <<= 1) { | ||
93 | if (intStatus & bitmask) { | ||
94 | do_IRQ(EMMA2RH_IRQ_BASE + i, regs); | ||
95 | return; | ||
96 | } | ||
97 | } | ||
98 | |||
99 | intStatus = emma2rh_in32(EMMA2RH_BHIF_INT_ST_2) | ||
100 | & emma2rh_in32(EMMA2RH_BHIF_INT_EN_2); | ||
101 | |||
102 | for (i = 64, bitmask = 1; i < 96; i++, bitmask <<= 1) { | ||
103 | if (intStatus & bitmask) { | ||
104 | do_IRQ(EMMA2RH_IRQ_BASE + i, regs); | ||
105 | return; | ||
106 | } | ||
107 | } | ||
108 | } | ||
diff --git a/arch/mips/emma2rh/common/irq_emma2rh.c b/arch/mips/emma2rh/common/irq_emma2rh.c new file mode 100644 index 000000000000..b886aa94ca90 --- /dev/null +++ b/arch/mips/emma2rh/common/irq_emma2rh.c | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/common/irq_emma2rh.c | ||
3 | * This file defines the irq handler for EMMA2RH. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2005-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/irq_5477.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | |||
26 | /* | ||
27 | * EMMA2RH defines 64 IRQs. | ||
28 | * | ||
29 | * This file exports one function: | ||
30 | * emma2rh_irq_init(u32 irq_base); | ||
31 | */ | ||
32 | |||
33 | #include <linux/interrupt.h> | ||
34 | #include <linux/types.h> | ||
35 | #include <linux/ptrace.h> | ||
36 | |||
37 | #include <asm/debug.h> | ||
38 | |||
39 | #include <asm/emma2rh/emma2rh.h> | ||
40 | |||
41 | /* number of total irqs supported by EMMA2RH */ | ||
42 | #define NUM_EMMA2RH_IRQ 96 | ||
43 | |||
44 | static int emma2rh_irq_base = -1; | ||
45 | |||
46 | void ll_emma2rh_irq_enable(int); | ||
47 | void ll_emma2rh_irq_disable(int); | ||
48 | |||
49 | static void emma2rh_irq_enable(unsigned int irq) | ||
50 | { | ||
51 | ll_emma2rh_irq_enable(irq - emma2rh_irq_base); | ||
52 | } | ||
53 | |||
54 | static void emma2rh_irq_disable(unsigned int irq) | ||
55 | { | ||
56 | ll_emma2rh_irq_disable(irq - emma2rh_irq_base); | ||
57 | } | ||
58 | |||
59 | static unsigned int emma2rh_irq_startup(unsigned int irq) | ||
60 | { | ||
61 | emma2rh_irq_enable(irq); | ||
62 | return 0; | ||
63 | } | ||
64 | |||
65 | #define emma2rh_irq_shutdown emma2rh_irq_disable | ||
66 | |||
67 | static void emma2rh_irq_ack(unsigned int irq) | ||
68 | { | ||
69 | /* disable interrupt - some handler will re-enable the irq | ||
70 | * and if the interrupt is leveled, we will have infinite loop | ||
71 | */ | ||
72 | ll_emma2rh_irq_disable(irq - emma2rh_irq_base); | ||
73 | } | ||
74 | |||
75 | static void emma2rh_irq_end(unsigned int irq) | ||
76 | { | ||
77 | if (!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) | ||
78 | ll_emma2rh_irq_enable(irq - emma2rh_irq_base); | ||
79 | } | ||
80 | |||
81 | hw_irq_controller emma2rh_irq_controller = { | ||
82 | .typename = "emma2rh_irq", | ||
83 | .startup = emma2rh_irq_startup, | ||
84 | .shutdown = emma2rh_irq_shutdown, | ||
85 | .enable = emma2rh_irq_enable, | ||
86 | .disable = emma2rh_irq_disable, | ||
87 | .ack = emma2rh_irq_ack, | ||
88 | .end = emma2rh_irq_end, | ||
89 | .set_affinity = NULL /* no affinity stuff for UP */ | ||
90 | }; | ||
91 | |||
92 | void emma2rh_irq_init(u32 irq_base) | ||
93 | { | ||
94 | u32 i; | ||
95 | |||
96 | for (i = irq_base; i < irq_base + NUM_EMMA2RH_IRQ; i++) { | ||
97 | irq_desc[i].status = IRQ_DISABLED; | ||
98 | irq_desc[i].action = NULL; | ||
99 | irq_desc[i].depth = 1; | ||
100 | irq_desc[i].handler = &emma2rh_irq_controller; | ||
101 | } | ||
102 | |||
103 | emma2rh_irq_base = irq_base; | ||
104 | } | ||
105 | |||
106 | void ll_emma2rh_irq_enable(int emma2rh_irq) | ||
107 | { | ||
108 | u32 reg_value; | ||
109 | u32 reg_bitmask; | ||
110 | u32 reg_index; | ||
111 | |||
112 | reg_index = EMMA2RH_BHIF_INT_EN_0 | ||
113 | + (EMMA2RH_BHIF_INT_EN_1 - EMMA2RH_BHIF_INT_EN_0) | ||
114 | * (emma2rh_irq / 32); | ||
115 | reg_value = emma2rh_in32(reg_index); | ||
116 | reg_bitmask = 0x1 << (emma2rh_irq % 32); | ||
117 | db_assert((reg_value & reg_bitmask) == 0); | ||
118 | emma2rh_out32(reg_index, reg_value | reg_bitmask); | ||
119 | } | ||
120 | |||
121 | void ll_emma2rh_irq_disable(int emma2rh_irq) | ||
122 | { | ||
123 | u32 reg_value; | ||
124 | u32 reg_bitmask; | ||
125 | u32 reg_index; | ||
126 | |||
127 | reg_index = EMMA2RH_BHIF_INT_EN_0 | ||
128 | + (EMMA2RH_BHIF_INT_EN_1 - EMMA2RH_BHIF_INT_EN_0) | ||
129 | * (emma2rh_irq / 32); | ||
130 | reg_value = emma2rh_in32(reg_index); | ||
131 | reg_bitmask = 0x1 << (emma2rh_irq % 32); | ||
132 | db_assert((reg_value & reg_bitmask) != 0); | ||
133 | emma2rh_out32(reg_index, reg_value & ~reg_bitmask); | ||
134 | } | ||
diff --git a/arch/mips/emma2rh/common/prom.c b/arch/mips/emma2rh/common/prom.c new file mode 100644 index 000000000000..8bba0b02a204 --- /dev/null +++ b/arch/mips/emma2rh/common/prom.c | |||
@@ -0,0 +1,77 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/common/prom.c | ||
3 | * This file is prom file. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/common/prom.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/mm.h> | ||
28 | #include <linux/sched.h> | ||
29 | #include <linux/bootmem.h> | ||
30 | |||
31 | #include <asm/addrspace.h> | ||
32 | #include <asm/bootinfo.h> | ||
33 | #include <asm/emma2rh/emma2rh.h> | ||
34 | #include <asm/debug.h> | ||
35 | |||
36 | const char *get_system_type(void) | ||
37 | { | ||
38 | switch (mips_machtype) { | ||
39 | case MACH_NEC_MARKEINS: | ||
40 | return "NEC EMMA2RH Mark-eins"; | ||
41 | default: | ||
42 | return "Unknown NEC board"; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /* [jsun@junsun.net] PMON passes arguments in C main() style */ | ||
47 | void __init prom_init(void) | ||
48 | { | ||
49 | int argc = fw_arg0; | ||
50 | char **arg = (char **)fw_arg1; | ||
51 | int i; | ||
52 | |||
53 | /* if user passes kernel args, ignore the default one */ | ||
54 | if (argc > 1) | ||
55 | arcs_cmdline[0] = '\0'; | ||
56 | |||
57 | /* arg[0] is "g", the rest is boot parameters */ | ||
58 | for (i = 1; i < argc; i++) { | ||
59 | if (strlen(arcs_cmdline) + strlen(arg[i] + 1) | ||
60 | >= sizeof(arcs_cmdline)) | ||
61 | break; | ||
62 | strcat(arcs_cmdline, arg[i]); | ||
63 | strcat(arcs_cmdline, " "); | ||
64 | } | ||
65 | |||
66 | mips_machgroup = MACH_GROUP_NEC_EMMA2RH; | ||
67 | |||
68 | #if defined(CONFIG_MARKEINS) | ||
69 | mips_machtype = MACH_NEC_MARKEINS; | ||
70 | add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); | ||
71 | #endif | ||
72 | |||
73 | } | ||
74 | |||
75 | void __init prom_free_prom_memory(void) | ||
76 | { | ||
77 | } | ||
diff --git a/arch/mips/emma2rh/markeins/Makefile b/arch/mips/emma2rh/markeins/Makefile new file mode 100644 index 000000000000..14fc268b175c --- /dev/null +++ b/arch/mips/emma2rh/markeins/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | # | ||
2 | # arch/mips/emma2rh/markeins/Makefile | ||
3 | # Makefile for the common code of NEC EMMA2RH based board. | ||
4 | # | ||
5 | # Copyright (C) NEC Electronics Corporation 2005-2006 | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License as published by | ||
9 | # the Free Software Foundation; either version 2 of the License, or | ||
10 | # (at your option) any later version. | ||
11 | # | ||
12 | |||
13 | obj-$(CONFIG_MARKEINS) += irq.o irq_markeins.o setup.o led.o platform.o | ||
diff --git a/arch/mips/emma2rh/markeins/irq.c b/arch/mips/emma2rh/markeins/irq.c new file mode 100644 index 000000000000..76dc3faeaf4e --- /dev/null +++ b/arch/mips/emma2rh/markeins/irq.c | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/markeins/irq.c | ||
3 | * This file defines the irq handler for EMMA2RH. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/irq.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/irq.h> | ||
29 | #include <linux/types.h> | ||
30 | #include <linux/ptrace.h> | ||
31 | #include <linux/delay.h> | ||
32 | |||
33 | #include <asm/i8259.h> | ||
34 | #include <asm/irq_cpu.h> | ||
35 | #include <asm/system.h> | ||
36 | #include <asm/mipsregs.h> | ||
37 | #include <asm/debug.h> | ||
38 | #include <asm/addrspace.h> | ||
39 | #include <asm/bootinfo.h> | ||
40 | |||
41 | #include <asm/emma2rh/emma2rh.h> | ||
42 | |||
43 | /* | ||
44 | * IRQ mapping | ||
45 | * | ||
46 | * 0-7: 8 CPU interrupts | ||
47 | * 0 - software interrupt 0 | ||
48 | * 1 - software interrupt 1 | ||
49 | * 2 - most Vrc5477 interrupts are routed to this pin | ||
50 | * 3 - (optional) some other interrupts routed to this pin for debugg | ||
51 | * 4 - not used | ||
52 | * 5 - not used | ||
53 | * 6 - not used | ||
54 | * 7 - cpu timer (used by default) | ||
55 | * | ||
56 | */ | ||
57 | |||
58 | extern void emma2rh_sw_irq_init(u32 base); | ||
59 | extern void emma2rh_gpio_irq_init(u32 base); | ||
60 | extern void emma2rh_irq_init(u32 base); | ||
61 | extern asmlinkage void emma2rh_irq_dispatch(struct pt_regs *regs); | ||
62 | |||
63 | static struct irqaction irq_cascade = { | ||
64 | .handler = no_action, | ||
65 | .flags = 0, | ||
66 | .mask = CPU_MASK_NONE, | ||
67 | .name = "cascade", | ||
68 | .dev_id = NULL, | ||
69 | .next = NULL, | ||
70 | }; | ||
71 | |||
72 | void __init arch_init_irq(void) | ||
73 | { | ||
74 | u32 reg; | ||
75 | |||
76 | db_run(printk("markeins_irq_setup invoked.\n")); | ||
77 | |||
78 | /* by default, interrupts are disabled. */ | ||
79 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_0, 0); | ||
80 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_1, 0); | ||
81 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_2, 0); | ||
82 | emma2rh_out32(EMMA2RH_BHIF_INT1_EN_0, 0); | ||
83 | emma2rh_out32(EMMA2RH_BHIF_INT1_EN_1, 0); | ||
84 | emma2rh_out32(EMMA2RH_BHIF_INT1_EN_2, 0); | ||
85 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, 0); | ||
86 | |||
87 | clear_c0_status(0xff00); | ||
88 | set_c0_status(0x0400); | ||
89 | |||
90 | #define GPIO_PCI (0xf<<15) | ||
91 | /* setup GPIO interrupt for PCI interface */ | ||
92 | /* direction input */ | ||
93 | reg = emma2rh_in32(EMMA2RH_GPIO_DIR); | ||
94 | emma2rh_out32(EMMA2RH_GPIO_DIR, reg & ~GPIO_PCI); | ||
95 | /* disable interrupt */ | ||
96 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | ||
97 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg & ~GPIO_PCI); | ||
98 | /* level triggerd */ | ||
99 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MODE); | ||
100 | emma2rh_out32(EMMA2RH_GPIO_INT_MODE, reg | GPIO_PCI); | ||
101 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_CND_A); | ||
102 | emma2rh_out32(EMMA2RH_GPIO_INT_CND_A, reg & (~GPIO_PCI)); | ||
103 | /* interrupt clear */ | ||
104 | emma2rh_out32(EMMA2RH_GPIO_INT_ST, ~GPIO_PCI); | ||
105 | |||
106 | /* init all controllers */ | ||
107 | emma2rh_irq_init(EMMA2RH_IRQ_BASE); | ||
108 | emma2rh_sw_irq_init(EMMA2RH_SW_IRQ_BASE); | ||
109 | emma2rh_gpio_irq_init(EMMA2RH_GPIO_IRQ_BASE); | ||
110 | mips_cpu_irq_init(CPU_IRQ_BASE); | ||
111 | |||
112 | /* setup cascade interrupts */ | ||
113 | setup_irq(EMMA2RH_IRQ_BASE + EMMA2RH_SW_CASCADE, &irq_cascade); | ||
114 | setup_irq(EMMA2RH_IRQ_BASE + EMMA2RH_GPIO_CASCADE, &irq_cascade); | ||
115 | setup_irq(CPU_IRQ_BASE + CPU_EMMA2RH_CASCADE, &irq_cascade); | ||
116 | } | ||
117 | |||
118 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | ||
119 | { | ||
120 | unsigned int pending = read_c0_status() & read_c0_cause(); | ||
121 | |||
122 | if (pending & STATUSF_IP7) | ||
123 | do_IRQ(CPU_IRQ_BASE + 7, regs); | ||
124 | else if (pending & STATUSF_IP2) | ||
125 | emma2rh_irq_dispatch(regs); | ||
126 | else if (pending & STATUSF_IP1) | ||
127 | do_IRQ(CPU_IRQ_BASE + 1, regs); | ||
128 | else if (pending & STATUSF_IP0) | ||
129 | do_IRQ(CPU_IRQ_BASE + 0, regs); | ||
130 | else | ||
131 | spurious_interrupt(regs); | ||
132 | } | ||
133 | |||
134 | |||
diff --git a/arch/mips/emma2rh/markeins/irq_markeins.c b/arch/mips/emma2rh/markeins/irq_markeins.c new file mode 100644 index 000000000000..1783fdab6459 --- /dev/null +++ b/arch/mips/emma2rh/markeins/irq_markeins.c | |||
@@ -0,0 +1,197 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/markeins/irq_markeins.c | ||
3 | * This file defines the irq handler for Mark-eins. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/irq_5477.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | #include <linux/interrupt.h> | ||
26 | #include <linux/irq.h> | ||
27 | #include <linux/types.h> | ||
28 | #include <linux/ptrace.h> | ||
29 | |||
30 | #include <asm/debug.h> | ||
31 | #include <asm/emma2rh/emma2rh.h> | ||
32 | |||
33 | static int emma2rh_sw_irq_base = -1; | ||
34 | static int emma2rh_gpio_irq_base = -1; | ||
35 | |||
36 | void ll_emma2rh_sw_irq_enable(int reg); | ||
37 | void ll_emma2rh_sw_irq_disable(int reg); | ||
38 | void ll_emma2rh_gpio_irq_enable(int reg); | ||
39 | void ll_emma2rh_gpio_irq_disable(int reg); | ||
40 | |||
41 | static void emma2rh_sw_irq_enable(unsigned int irq) | ||
42 | { | ||
43 | ll_emma2rh_sw_irq_enable(irq - emma2rh_sw_irq_base); | ||
44 | } | ||
45 | |||
46 | static void emma2rh_sw_irq_disable(unsigned int irq) | ||
47 | { | ||
48 | ll_emma2rh_sw_irq_disable(irq - emma2rh_sw_irq_base); | ||
49 | } | ||
50 | |||
51 | static unsigned int emma2rh_sw_irq_startup(unsigned int irq) | ||
52 | { | ||
53 | emma2rh_sw_irq_enable(irq); | ||
54 | return 0; | ||
55 | } | ||
56 | |||
57 | #define emma2rh_sw_irq_shutdown emma2rh_sw_irq_disable | ||
58 | |||
59 | static void emma2rh_sw_irq_ack(unsigned int irq) | ||
60 | { | ||
61 | ll_emma2rh_sw_irq_disable(irq - emma2rh_sw_irq_base); | ||
62 | } | ||
63 | |||
64 | static void emma2rh_sw_irq_end(unsigned int irq) | ||
65 | { | ||
66 | if (!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) | ||
67 | ll_emma2rh_sw_irq_enable(irq - emma2rh_sw_irq_base); | ||
68 | } | ||
69 | |||
70 | hw_irq_controller emma2rh_sw_irq_controller = { | ||
71 | .typename = "emma2rh_sw_irq", | ||
72 | .startup = emma2rh_sw_irq_startup, | ||
73 | .shutdown = emma2rh_sw_irq_shutdown, | ||
74 | .enable = emma2rh_sw_irq_enable, | ||
75 | .disable = emma2rh_sw_irq_disable, | ||
76 | .ack = emma2rh_sw_irq_ack, | ||
77 | .end = emma2rh_sw_irq_end, | ||
78 | .set_affinity = NULL, | ||
79 | }; | ||
80 | |||
81 | void emma2rh_sw_irq_init(u32 irq_base) | ||
82 | { | ||
83 | u32 i; | ||
84 | |||
85 | for (i = irq_base; i < irq_base + NUM_EMMA2RH_IRQ_SW; i++) { | ||
86 | irq_desc[i].status = IRQ_DISABLED; | ||
87 | irq_desc[i].action = NULL; | ||
88 | irq_desc[i].depth = 2; | ||
89 | irq_desc[i].handler = &emma2rh_sw_irq_controller; | ||
90 | } | ||
91 | |||
92 | emma2rh_sw_irq_base = irq_base; | ||
93 | } | ||
94 | |||
95 | void ll_emma2rh_sw_irq_enable(int irq) | ||
96 | { | ||
97 | u32 reg; | ||
98 | |||
99 | db_assert(irq >= 0); | ||
100 | db_assert(irq < NUM_EMMA2RH_IRQ_SW); | ||
101 | |||
102 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); | ||
103 | reg |= 1 << irq; | ||
104 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); | ||
105 | } | ||
106 | |||
107 | void ll_emma2rh_sw_irq_disable(int irq) | ||
108 | { | ||
109 | u32 reg; | ||
110 | |||
111 | db_assert(irq >= 0); | ||
112 | db_assert(irq < 32); | ||
113 | |||
114 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); | ||
115 | reg &= ~(1 << irq); | ||
116 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); | ||
117 | } | ||
118 | |||
119 | static void emma2rh_gpio_irq_enable(unsigned int irq) | ||
120 | { | ||
121 | ll_emma2rh_gpio_irq_enable(irq - emma2rh_gpio_irq_base); | ||
122 | } | ||
123 | |||
124 | static void emma2rh_gpio_irq_disable(unsigned int irq) | ||
125 | { | ||
126 | ll_emma2rh_gpio_irq_disable(irq - emma2rh_gpio_irq_base); | ||
127 | } | ||
128 | |||
129 | static unsigned int emma2rh_gpio_irq_startup(unsigned int irq) | ||
130 | { | ||
131 | emma2rh_gpio_irq_enable(irq); | ||
132 | return 0; | ||
133 | } | ||
134 | |||
135 | #define emma2rh_gpio_irq_shutdown emma2rh_gpio_irq_disable | ||
136 | |||
137 | static void emma2rh_gpio_irq_ack(unsigned int irq) | ||
138 | { | ||
139 | irq -= emma2rh_gpio_irq_base; | ||
140 | emma2rh_out32(EMMA2RH_GPIO_INT_ST, ~(1 << irq)); | ||
141 | ll_emma2rh_gpio_irq_disable(irq); | ||
142 | } | ||
143 | |||
144 | static void emma2rh_gpio_irq_end(unsigned int irq) | ||
145 | { | ||
146 | if (!(irq_desc[irq].status & (IRQ_DISABLED | IRQ_INPROGRESS))) | ||
147 | ll_emma2rh_gpio_irq_enable(irq - emma2rh_gpio_irq_base); | ||
148 | } | ||
149 | |||
150 | hw_irq_controller emma2rh_gpio_irq_controller = { | ||
151 | .typename = "emma2rh_gpio_irq", | ||
152 | .startup = emma2rh_gpio_irq_startup, | ||
153 | .shutdown = emma2rh_gpio_irq_shutdown, | ||
154 | .enable = emma2rh_gpio_irq_enable, | ||
155 | .disable = emma2rh_gpio_irq_disable, | ||
156 | .ack = emma2rh_gpio_irq_ack, | ||
157 | .end = emma2rh_gpio_irq_end, | ||
158 | .set_affinity = NULL, | ||
159 | }; | ||
160 | |||
161 | void emma2rh_gpio_irq_init(u32 irq_base) | ||
162 | { | ||
163 | u32 i; | ||
164 | |||
165 | for (i = irq_base; i < irq_base + NUM_EMMA2RH_IRQ_GPIO; i++) { | ||
166 | irq_desc[i].status = IRQ_DISABLED; | ||
167 | irq_desc[i].action = NULL; | ||
168 | irq_desc[i].depth = 2; | ||
169 | irq_desc[i].handler = &emma2rh_gpio_irq_controller; | ||
170 | } | ||
171 | |||
172 | emma2rh_gpio_irq_base = irq_base; | ||
173 | } | ||
174 | |||
175 | void ll_emma2rh_gpio_irq_enable(int irq) | ||
176 | { | ||
177 | u32 reg; | ||
178 | |||
179 | db_assert(irq >= 0); | ||
180 | db_assert(irq < NUM_EMMA2RH_IRQ_GPIO); | ||
181 | |||
182 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | ||
183 | reg |= 1 << irq; | ||
184 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); | ||
185 | } | ||
186 | |||
187 | void ll_emma2rh_gpio_irq_disable(int irq) | ||
188 | { | ||
189 | u32 reg; | ||
190 | |||
191 | db_assert(irq >= 0); | ||
192 | db_assert(irq < NUM_EMMA2RH_IRQ_GPIO); | ||
193 | |||
194 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | ||
195 | reg &= ~(1 << irq); | ||
196 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); | ||
197 | } | ||
diff --git a/arch/mips/emma2rh/markeins/led.c b/arch/mips/emma2rh/markeins/led.c new file mode 100644 index 000000000000..b65254c1bfe9 --- /dev/null +++ b/arch/mips/emma2rh/markeins/led.c | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/markeins/led.c | ||
3 | * This file defines the led display for Mark-eins. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/string.h> | ||
24 | #include <asm/emma2rh/emma2rh.h> | ||
25 | |||
26 | const unsigned long clear = 0x20202020; | ||
27 | |||
28 | #define LED_BASE 0xb1400038 | ||
29 | |||
30 | void markeins_led_clear(void) | ||
31 | { | ||
32 | emma2rh_out32(LED_BASE, clear); | ||
33 | emma2rh_out32(LED_BASE + 4, clear); | ||
34 | } | ||
35 | |||
36 | void markeins_led(const char *str) | ||
37 | { | ||
38 | int i; | ||
39 | int len = strlen(str); | ||
40 | |||
41 | markeins_led_clear(); | ||
42 | if (len > 8) | ||
43 | len = 8; | ||
44 | |||
45 | if (emma2rh_in32(0xb0000800) & (0x1 << 18)) | ||
46 | for (i = 0; i < len; i++) | ||
47 | emma2rh_out8(LED_BASE + i, str[i]); | ||
48 | else | ||
49 | for (i = 0; i < len; i++) | ||
50 | emma2rh_out8(LED_BASE + (i & 4) + (3 - (i & 3)), | ||
51 | str[i]); | ||
52 | } | ||
53 | |||
54 | void markeins_led_hex(u32 val) | ||
55 | { | ||
56 | char str[10]; | ||
57 | |||
58 | sprintf(str, "%08x", val); | ||
59 | markeins_led(str); | ||
60 | } | ||
diff --git a/arch/mips/emma2rh/markeins/platform.c b/arch/mips/emma2rh/markeins/platform.c new file mode 100644 index 000000000000..6c1eeae1a898 --- /dev/null +++ b/arch/mips/emma2rh/markeins/platform.c | |||
@@ -0,0 +1,170 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/markeins/platofrm.c | ||
3 | * This file sets up platform devices for EMMA2RH Mark-eins. | ||
4 | * | ||
5 | * Copyright(C) MontaVista Software Inc, 2006 | ||
6 | * | ||
7 | * Author: dmitry pervushin <dpervushin@ru.mvista.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | #include <linux/config.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/kernel.h> | ||
26 | #include <linux/types.h> | ||
27 | #include <linux/ioport.h> | ||
28 | #include <linux/serial_8250.h> | ||
29 | #include <linux/mtd/physmap.h> | ||
30 | |||
31 | #include <asm/cpu.h> | ||
32 | #include <asm/bootinfo.h> | ||
33 | #include <asm/addrspace.h> | ||
34 | #include <asm/time.h> | ||
35 | #include <asm/bcache.h> | ||
36 | #include <asm/irq.h> | ||
37 | #include <asm/reboot.h> | ||
38 | #include <asm/gdb-stub.h> | ||
39 | #include <asm/traps.h> | ||
40 | #include <asm/debug.h> | ||
41 | |||
42 | #include <asm/emma2rh/emma2rh.h> | ||
43 | |||
44 | |||
45 | #define I2C_EMMA2RH "emma2rh-iic" /* must be in sync with IIC driver */ | ||
46 | |||
47 | static struct resource i2c_emma_resources_0[] = { | ||
48 | { NULL, EMMA2RH_IRQ_PIIC0, EMMA2RH_IRQ_PIIC0, IORESOURCE_IRQ }, | ||
49 | { NULL, KSEG1ADDR(EMMA2RH_PIIC0_BASE), KSEG1ADDR(EMMA2RH_PIIC0_BASE + 0x1000), 0 }, | ||
50 | }; | ||
51 | |||
52 | struct resource i2c_emma_resources_1[] = { | ||
53 | { NULL, EMMA2RH_IRQ_PIIC1, EMMA2RH_IRQ_PIIC1, IORESOURCE_IRQ }, | ||
54 | { NULL, KSEG1ADDR(EMMA2RH_PIIC1_BASE), KSEG1ADDR(EMMA2RH_PIIC1_BASE + 0x1000), 0 }, | ||
55 | }; | ||
56 | |||
57 | struct resource i2c_emma_resources_2[] = { | ||
58 | { NULL, EMMA2RH_IRQ_PIIC2, EMMA2RH_IRQ_PIIC2, IORESOURCE_IRQ }, | ||
59 | { NULL, KSEG1ADDR(EMMA2RH_PIIC2_BASE), KSEG1ADDR(EMMA2RH_PIIC2_BASE + 0x1000), 0 }, | ||
60 | }; | ||
61 | |||
62 | struct platform_device i2c_emma_devices[] = { | ||
63 | [0] = { | ||
64 | .name = I2C_EMMA2RH, | ||
65 | .id = 0, | ||
66 | .resource = i2c_emma_resources_0, | ||
67 | .num_resources = ARRAY_SIZE(i2c_emma_resources_0), | ||
68 | }, | ||
69 | [1] = { | ||
70 | .name = I2C_EMMA2RH, | ||
71 | .id = 1, | ||
72 | .resource = i2c_emma_resources_1, | ||
73 | .num_resources = ARRAY_SIZE(i2c_emma_resources_1), | ||
74 | }, | ||
75 | [2] = { | ||
76 | .name = I2C_EMMA2RH, | ||
77 | .id = 2, | ||
78 | .resource = i2c_emma_resources_2, | ||
79 | .num_resources = ARRAY_SIZE(i2c_emma_resources_2), | ||
80 | }, | ||
81 | }; | ||
82 | |||
83 | #define EMMA2RH_SERIAL_CLOCK 18544000 | ||
84 | #define EMMA2RH_SERIAL_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | ||
85 | |||
86 | static struct plat_serial8250_port platform_serial_ports[] = { | ||
87 | [0] = { | ||
88 | .membase = (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR0_BASE + 3), | ||
89 | .irq = EMMA2RH_IRQ_PFUR0, | ||
90 | .uartclk = EMMA2RH_SERIAL_CLOCK, | ||
91 | .regshift = 4, | ||
92 | .iotype = UPIO_MEM, | ||
93 | .flags = EMMA2RH_SERIAL_FLAGS, | ||
94 | }, | ||
95 | [1] = { | ||
96 | .membase = (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR1_BASE + 3), | ||
97 | .irq = EMMA2RH_IRQ_PFUR1, | ||
98 | .uartclk = EMMA2RH_SERIAL_CLOCK, | ||
99 | .regshift = 4, | ||
100 | .iotype = UPIO_MEM, | ||
101 | .flags = EMMA2RH_SERIAL_FLAGS, | ||
102 | }, | ||
103 | [2] = { | ||
104 | .membase = (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR2_BASE + 3), | ||
105 | .irq = EMMA2RH_IRQ_PFUR2, | ||
106 | .uartclk = EMMA2RH_SERIAL_CLOCK, | ||
107 | .regshift = 4, | ||
108 | .iotype = UPIO_MEM, | ||
109 | .flags = EMMA2RH_SERIAL_FLAGS, | ||
110 | }, | ||
111 | [3] = { | ||
112 | .flags = 0, | ||
113 | }, | ||
114 | }; | ||
115 | |||
116 | static struct platform_device serial_emma = { | ||
117 | .name = "serial8250", | ||
118 | .dev = { | ||
119 | .platform_data = &platform_serial_ports, | ||
120 | }, | ||
121 | }; | ||
122 | |||
123 | static struct platform_device *devices[] = { | ||
124 | &i2c_emma_devices[0], | ||
125 | &i2c_emma_devices[1], | ||
126 | &i2c_emma_devices[2], | ||
127 | &serial_emma, | ||
128 | }; | ||
129 | |||
130 | static struct mtd_partition markeins_parts[] = { | ||
131 | [0] = { | ||
132 | .name = "RootFS", | ||
133 | .offset = 0x00000000, | ||
134 | .size = 0x00c00000, | ||
135 | }, | ||
136 | [1] = { | ||
137 | .name = "boot code area", | ||
138 | .offset = MTDPART_OFS_APPEND, | ||
139 | .size = 0x00100000, | ||
140 | }, | ||
141 | [2] = { | ||
142 | .name = "kernel image", | ||
143 | .offset = MTDPART_OFS_APPEND, | ||
144 | .size = 0x00300000, | ||
145 | }, | ||
146 | [3] = { | ||
147 | .name = "RootFS2", | ||
148 | .offset = MTDPART_OFS_APPEND, | ||
149 | .size = 0x00c00000, | ||
150 | }, | ||
151 | [4] = { | ||
152 | .name = "boot code area2", | ||
153 | .offset = MTDPART_OFS_APPEND, | ||
154 | .size = 0x00100000, | ||
155 | }, | ||
156 | [5] = { | ||
157 | .name = "kernel image2", | ||
158 | .offset = MTDPART_OFS_APPEND, | ||
159 | .size = MTDPART_SIZ_FULL, | ||
160 | }, | ||
161 | }; | ||
162 | |||
163 | static int __init platform_devices_setup(void) | ||
164 | { | ||
165 | physmap_set_partitions(markeins_parts, ARRAY_SIZE(markeins_parts)); | ||
166 | return platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
167 | } | ||
168 | |||
169 | arch_initcall(platform_devices_setup); | ||
170 | |||
diff --git a/arch/mips/emma2rh/markeins/setup.c b/arch/mips/emma2rh/markeins/setup.c new file mode 100644 index 000000000000..7d98fdbf8390 --- /dev/null +++ b/arch/mips/emma2rh/markeins/setup.c | |||
@@ -0,0 +1,182 @@ | |||
1 | /* | ||
2 | * arch/mips/emma2rh/markeins/setup.c | ||
3 | * This file is setup for EMMA2RH Mark-eins. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/setup.c. | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/kernel.h> | ||
28 | #include <linux/types.h> | ||
29 | #include <linux/initrd.h> | ||
30 | #include <linux/irq.h> | ||
31 | #include <linux/ide.h> | ||
32 | #include <linux/ioport.h> | ||
33 | #include <linux/param.h> /* for HZ */ | ||
34 | #include <linux/root_dev.h> | ||
35 | #include <linux/serial.h> | ||
36 | #include <linux/serial_core.h> | ||
37 | |||
38 | #include <asm/cpu.h> | ||
39 | #include <asm/bootinfo.h> | ||
40 | #include <asm/addrspace.h> | ||
41 | #include <asm/time.h> | ||
42 | #include <asm/bcache.h> | ||
43 | #include <asm/irq.h> | ||
44 | #include <asm/reboot.h> | ||
45 | #include <asm/gdb-stub.h> | ||
46 | #include <asm/traps.h> | ||
47 | #include <asm/debug.h> | ||
48 | |||
49 | #include <asm/emma2rh/emma2rh.h> | ||
50 | |||
51 | #define USE_CPU_COUNTER_TIMER /* whether we use cpu counter */ | ||
52 | |||
53 | extern void markeins_led(const char *); | ||
54 | |||
55 | static int bus_frequency = 0; | ||
56 | |||
57 | static void markeins_machine_restart(char *command) | ||
58 | { | ||
59 | static void (*back_to_prom) (void) = (void (*)(void))0xbfc00000; | ||
60 | |||
61 | printk("cannot EMMA2RH Mark-eins restart.\n"); | ||
62 | markeins_led("restart."); | ||
63 | back_to_prom(); | ||
64 | } | ||
65 | |||
66 | static void markeins_machine_halt(void) | ||
67 | { | ||
68 | printk("EMMA2RH Mark-eins halted.\n"); | ||
69 | markeins_led("halted."); | ||
70 | while (1) ; | ||
71 | } | ||
72 | |||
73 | static void markeins_machine_power_off(void) | ||
74 | { | ||
75 | printk("EMMA2RH Mark-eins halted. Please turn off the power.\n"); | ||
76 | markeins_led("poweroff."); | ||
77 | while (1) ; | ||
78 | } | ||
79 | |||
80 | static unsigned long clock[4] = { 166500000, 187312500, 199800000, 210600000 }; | ||
81 | |||
82 | static unsigned int __init detect_bus_frequency(unsigned long rtc_base) | ||
83 | { | ||
84 | u32 reg; | ||
85 | |||
86 | /* detect from boot strap */ | ||
87 | reg = emma2rh_in32(EMMA2RH_BHIF_STRAP_0); | ||
88 | reg = (reg >> 4) & 0x3; | ||
89 | return clock[reg]; | ||
90 | } | ||
91 | |||
92 | static void __init emma2rh_time_init(void) | ||
93 | { | ||
94 | u32 reg; | ||
95 | if (bus_frequency == 0) | ||
96 | bus_frequency = detect_bus_frequency(0); | ||
97 | |||
98 | reg = emma2rh_in32(EMMA2RH_BHIF_STRAP_0); | ||
99 | if ((reg & 0x3) == 0) | ||
100 | reg = (reg >> 6) & 0x3; | ||
101 | else { | ||
102 | reg = emma2rh_in32(EMMA2RH_BHIF_MAIN_CTRL); | ||
103 | reg = (reg >> 4) & 0x3; | ||
104 | } | ||
105 | mips_hpt_frequency = (bus_frequency * (4 + reg)) / 4 / 2; | ||
106 | } | ||
107 | |||
108 | static void __init emma2rh_timer_setup(struct irqaction *irq) | ||
109 | { | ||
110 | /* we are using the cpu counter for timer interrupts */ | ||
111 | setup_irq(CPU_IRQ_BASE + 7, irq); | ||
112 | } | ||
113 | |||
114 | static void markeins_board_init(void); | ||
115 | extern void markeins_irq_setup(void); | ||
116 | |||
117 | static void inline __init markeins_sio_setup(void) | ||
118 | { | ||
119 | #ifdef CONFIG_KGDB_8250 | ||
120 | struct uart_port emma_port; | ||
121 | |||
122 | memset(&emma_port, 0, sizeof(emma_port)); | ||
123 | |||
124 | emma_port.flags = | ||
125 | UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; | ||
126 | emma_port.iotype = UPIO_MEM; | ||
127 | emma_port.regshift = 4; /* I/O addresses are every 8 bytes */ | ||
128 | emma_port.uartclk = 18544000; /* Clock rate of the chip */ | ||
129 | |||
130 | emma_port.line = 0; | ||
131 | emma_port.mapbase = KSEG1ADDR(EMMA2RH_PFUR0_BASE + 3); | ||
132 | emma_port.membase = (u8*)emma_port.mapbase; | ||
133 | early_serial_setup(&emma_port); | ||
134 | |||
135 | emma_port.line = 1; | ||
136 | emma_port.mapbase = KSEG1ADDR(EMMA2RH_PFUR1_BASE + 3); | ||
137 | emma_port.membase = (u8*)emma_port.mapbase; | ||
138 | early_serial_setup(&emma_port); | ||
139 | |||
140 | emma_port.irq = EMMA2RH_IRQ_PFUR1; | ||
141 | kgdb8250_add_port(1, &emma_port); | ||
142 | #endif | ||
143 | } | ||
144 | |||
145 | void __init plat_mem_setup(void) | ||
146 | { | ||
147 | /* initialize board - we don't trust the loader */ | ||
148 | markeins_board_init(); | ||
149 | |||
150 | set_io_port_base(KSEG1ADDR(EMMA2RH_PCI_IO_BASE)); | ||
151 | |||
152 | board_time_init = emma2rh_time_init; | ||
153 | board_timer_setup = emma2rh_timer_setup; | ||
154 | |||
155 | _machine_restart = markeins_machine_restart; | ||
156 | _machine_halt = markeins_machine_halt; | ||
157 | pm_power_off = markeins_machine_power_off; | ||
158 | |||
159 | /* setup resource limits */ | ||
160 | ioport_resource.start = EMMA2RH_PCI_IO_BASE; | ||
161 | ioport_resource.end = EMMA2RH_PCI_IO_BASE + EMMA2RH_PCI_IO_SIZE - 1; | ||
162 | iomem_resource.start = EMMA2RH_IO_BASE; | ||
163 | iomem_resource.end = EMMA2RH_ROM_BASE - 1; | ||
164 | |||
165 | /* Reboot on panic */ | ||
166 | panic_timeout = 180; | ||
167 | |||
168 | markeins_sio_setup(); | ||
169 | } | ||
170 | |||
171 | static void __init markeins_board_init(void) | ||
172 | { | ||
173 | u32 val; | ||
174 | |||
175 | val = emma2rh_in32(EMMA2RH_PBRD_INT_EN); /* open serial interrupts. */ | ||
176 | emma2rh_out32(EMMA2RH_PBRD_INT_EN, val | 0xaa); | ||
177 | val = emma2rh_in32(EMMA2RH_PBRD_CLKSEL); /* set serial clocks. */ | ||
178 | emma2rh_out32(EMMA2RH_PBRD_CLKSEL, val | 0x5); /* 18MHz */ | ||
179 | emma2rh_out32(EMMA2RH_PCI_CONTROL, 0); | ||
180 | |||
181 | markeins_led("MVL E2RH"); | ||
182 | } | ||
diff --git a/arch/mips/galileo-boards/ev96100/setup.c b/arch/mips/galileo-boards/ev96100/setup.c index 78dbb18edeb8..a04aea6123da 100644 --- a/arch/mips/galileo-boards/ev96100/setup.c +++ b/arch/mips/galileo-boards/ev96100/setup.c | |||
@@ -55,7 +55,7 @@ extern void mips_reboot_setup(void); | |||
55 | 55 | ||
56 | unsigned char mac_0_1[12]; | 56 | unsigned char mac_0_1[12]; |
57 | 57 | ||
58 | void __init plat_setup(void) | 58 | void __init plat_mem_setup(void) |
59 | { | 59 | { |
60 | unsigned int config = read_c0_config(); | 60 | unsigned int config = read_c0_config(); |
61 | unsigned int status = read_c0_status(); | 61 | unsigned int status = read_c0_status(); |
diff --git a/arch/mips/gt64120/ev64120/serialGT.c b/arch/mips/gt64120/ev64120/serialGT.c index 16e34a546e54..8f0d835491ff 100644 --- a/arch/mips/gt64120/ev64120/serialGT.c +++ b/arch/mips/gt64120/ev64120/serialGT.c | |||
@@ -149,7 +149,7 @@ void serial_set(int channel, unsigned long baud) | |||
149 | #else | 149 | #else |
150 | /* | 150 | /* |
151 | * Note: Set baud rate, hardcoded here for rate of 115200 | 151 | * Note: Set baud rate, hardcoded here for rate of 115200 |
152 | * since became unsure of above "buad rate" algorithm (??). | 152 | * since became unsure of above "baud rate" algorithm (??). |
153 | */ | 153 | */ |
154 | outreg(channel, LCR, 0x83); | 154 | outreg(channel, LCR, 0x83); |
155 | outreg(channel, DLM, 0x00); // See note above | 155 | outreg(channel, DLM, 0x00); // See note above |
diff --git a/arch/mips/gt64120/ev64120/setup.c b/arch/mips/gt64120/ev64120/setup.c index 6d859d1e7a2d..4236da31ecc6 100644 --- a/arch/mips/gt64120/ev64120/setup.c +++ b/arch/mips/gt64120/ev64120/setup.c | |||
@@ -71,7 +71,7 @@ unsigned long __init prom_free_prom_memory(void) | |||
71 | */ | 71 | */ |
72 | extern void gt64120_time_init(void); | 72 | extern void gt64120_time_init(void); |
73 | 73 | ||
74 | void __init plat_setup(void) | 74 | void __init plat_mem_setup(void) |
75 | { | 75 | { |
76 | _machine_restart = galileo_machine_restart; | 76 | _machine_restart = galileo_machine_restart; |
77 | _machine_halt = galileo_machine_halt; | 77 | _machine_halt = galileo_machine_halt; |
diff --git a/arch/mips/gt64120/momenco_ocelot/dbg_io.c b/arch/mips/gt64120/momenco_ocelot/dbg_io.c index 8720bccfdea2..f0a6a38fcf4d 100644 --- a/arch/mips/gt64120/momenco_ocelot/dbg_io.c +++ b/arch/mips/gt64120/momenco_ocelot/dbg_io.c | |||
@@ -73,7 +73,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
73 | /* disable interrupts */ | 73 | /* disable interrupts */ |
74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
75 | 75 | ||
76 | /* set up buad rate */ | 76 | /* set up baud rate */ |
77 | { | 77 | { |
78 | uint32 divisor; | 78 | uint32 divisor; |
79 | 79 | ||
diff --git a/arch/mips/gt64120/momenco_ocelot/setup.c b/arch/mips/gt64120/momenco_ocelot/setup.c index 20b65d3d2151..1193a22c4693 100644 --- a/arch/mips/gt64120/momenco_ocelot/setup.c +++ b/arch/mips/gt64120/momenco_ocelot/setup.c | |||
@@ -152,7 +152,7 @@ void PMON_v2_setup() | |||
152 | gt64120_base = 0xe0000000; | 152 | gt64120_base = 0xe0000000; |
153 | } | 153 | } |
154 | 154 | ||
155 | void __init plat_setup(void) | 155 | void __init plat_mem_setup(void) |
156 | { | 156 | { |
157 | void (*l3func)(unsigned long)=KSEG1ADDR(&setup_l3cache); | 157 | void (*l3func)(unsigned long)=KSEG1ADDR(&setup_l3cache); |
158 | unsigned int tmpword; | 158 | unsigned int tmpword; |
diff --git a/arch/mips/gt64120/wrppmc/Makefile b/arch/mips/gt64120/wrppmc/Makefile new file mode 100644 index 000000000000..72606b9af12a --- /dev/null +++ b/arch/mips/gt64120/wrppmc/Makefile | |||
@@ -0,0 +1,14 @@ | |||
1 | # | ||
2 | # This file is subject to the terms and conditions of the GNU General Public | ||
3 | # License. See the file "COPYING" in the main directory of this archive | ||
4 | # for more details. | ||
5 | # | ||
6 | # Copyright 2006 Wind River System, Inc. | ||
7 | # Author: Rongkai.Zhan <rongkai.zhan@windriver.com> | ||
8 | # | ||
9 | # Makefile for the Wind River MIPS 4KC PPMC Eval Board | ||
10 | # | ||
11 | |||
12 | obj-y += int-handler.o irq.o reset.o setup.o time.o pci.o | ||
13 | |||
14 | EXTRA_AFLAGS := $(CFLAGS) | ||
diff --git a/arch/mips/gt64120/wrppmc/int-handler.S b/arch/mips/gt64120/wrppmc/int-handler.S new file mode 100644 index 000000000000..edee7b394175 --- /dev/null +++ b/arch/mips/gt64120/wrppmc/int-handler.S | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1995, 1996, 1997, 2003 by Ralf Baechle | ||
7 | * Copyright (C) Wind River System Inc. Rongkai.Zhan <rongkai.zhan@windriver.com> | ||
8 | */ | ||
9 | #include <asm/asm.h> | ||
10 | #include <asm/mipsregs.h> | ||
11 | #include <asm/addrspace.h> | ||
12 | #include <asm/regdef.h> | ||
13 | #include <asm/stackframe.h> | ||
14 | #include <asm/mach-wrppmc/mach-gt64120.h> | ||
15 | |||
16 | .align 5 | ||
17 | .set noat | ||
18 | NESTED(handle_IRQ, PT_SIZE, sp) | ||
19 | SAVE_ALL | ||
20 | CLI # Important: mark KERNEL mode ! | ||
21 | .set at | ||
22 | |||
23 | mfc0 t0, CP0_CAUSE # get pending interrupts | ||
24 | mfc0 t1, CP0_STATUS # get enabled interrupts | ||
25 | and t0, t0, t1 # get allowed interrupts | ||
26 | andi t0, t0, 0xFF00 | ||
27 | beqz t0, 1f | ||
28 | move a1, sp # Prepare 'struct pt_regs *regs' pointer | ||
29 | |||
30 | andi t1, t0, CAUSEF_IP7 # CPU Compare/Count internal timer | ||
31 | bnez t1, handle_cputimer_irq | ||
32 | andi t1, t0, CAUSEF_IP6 # UART 16550 port | ||
33 | bnez t1, handle_uart_irq | ||
34 | andi t1, t0, CAUSEF_IP3 # PCI INT_A | ||
35 | bnez t1, handle_pci_intA_irq | ||
36 | |||
37 | /* wrong alarm or masked ... */ | ||
38 | 1: j spurious_interrupt | ||
39 | nop | ||
40 | END(handle_IRQ) | ||
41 | |||
42 | .align 5 | ||
43 | handle_cputimer_irq: | ||
44 | li a0, WRPPMC_MIPS_TIMER_IRQ | ||
45 | jal do_IRQ | ||
46 | j ret_from_irq | ||
47 | |||
48 | .align 5 | ||
49 | handle_uart_irq: | ||
50 | li a0, WRPPMC_UART16550_IRQ | ||
51 | jal do_IRQ | ||
52 | j ret_from_irq | ||
53 | |||
54 | .align 5 | ||
55 | handle_pci_intA_irq: | ||
56 | li a0, WRPPMC_PCI_INTA_IRQ | ||
57 | jal do_IRQ | ||
58 | j ret_from_irq | ||
59 | |||
diff --git a/arch/mips/gt64120/wrppmc/irq.c b/arch/mips/gt64120/wrppmc/irq.c new file mode 100644 index 000000000000..8605687e24ed --- /dev/null +++ b/arch/mips/gt64120/wrppmc/irq.c | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | * irq.c: GT64120 Interrupt Controller | ||
3 | * | ||
4 | * Copyright (C) 2006, Wind River System Inc. | ||
5 | * Author: Rongkai.Zhan, <rongkai.zhan@windriver.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License as published by the | ||
9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
10 | * option) any later version. | ||
11 | */ | ||
12 | #include <linux/errno.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel_stat.h> | ||
15 | #include <linux/module.h> | ||
16 | #include <linux/signal.h> | ||
17 | #include <linux/sched.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/ioport.h> | ||
21 | #include <linux/timex.h> | ||
22 | #include <linux/slab.h> | ||
23 | #include <linux/random.h> | ||
24 | #include <linux/bitops.h> | ||
25 | #include <asm/bootinfo.h> | ||
26 | #include <asm/io.h> | ||
27 | #include <asm/bitops.h> | ||
28 | #include <asm/mipsregs.h> | ||
29 | #include <asm/system.h> | ||
30 | #include <asm/irq_cpu.h> | ||
31 | #include <asm/gt64120.h> | ||
32 | |||
33 | extern asmlinkage void handle_IRQ(void); | ||
34 | |||
35 | /** | ||
36 | * Initialize GT64120 Interrupt Controller | ||
37 | */ | ||
38 | void gt64120_init_pic(void) | ||
39 | { | ||
40 | /* clear CPU Interrupt Cause Registers */ | ||
41 | GT_WRITE(GT_INTRCAUSE_OFS, (0x1F << 21)); | ||
42 | GT_WRITE(GT_HINTRCAUSE_OFS, 0x00); | ||
43 | |||
44 | /* Disable all interrupts from GT64120 bridge chip */ | ||
45 | GT_WRITE(GT_INTRMASK_OFS, 0x00); | ||
46 | GT_WRITE(GT_HINTRMASK_OFS, 0x00); | ||
47 | GT_WRITE(GT_PCI0_ICMASK_OFS, 0x00); | ||
48 | GT_WRITE(GT_PCI0_HICMASK_OFS, 0x00); | ||
49 | } | ||
50 | |||
51 | void __init arch_init_irq(void) | ||
52 | { | ||
53 | /* enable all CPU interrupt bits. */ | ||
54 | set_c0_status(ST0_IM); /* IE bit is still 0 */ | ||
55 | |||
56 | /* Install MIPS Interrupt Trap Vector */ | ||
57 | set_except_vector(0, handle_IRQ); | ||
58 | |||
59 | /* IRQ 0 - 7 are for MIPS common irq_cpu controller */ | ||
60 | mips_cpu_irq_init(0); | ||
61 | |||
62 | gt64120_init_pic(); | ||
63 | } | ||
diff --git a/arch/mips/gt64120/wrppmc/pci.c b/arch/mips/gt64120/wrppmc/pci.c new file mode 100644 index 000000000000..2fbe93467f78 --- /dev/null +++ b/arch/mips/gt64120/wrppmc/pci.c | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | * pci.c: GT64120 PCI support. | ||
3 | * | ||
4 | * Copyright (C) 2006, Wind River System Inc. Rongkai.Zhan <rongkai.zhan@windriver.com> | ||
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/init.h> | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/pci.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <asm/gt64120.h> | ||
15 | |||
16 | extern struct pci_ops gt64120_pci_ops; | ||
17 | |||
18 | static struct resource pci0_io_resource = { | ||
19 | .name = "pci_0 io", | ||
20 | .start = GT_PCI_IO_BASE, | ||
21 | .end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1, | ||
22 | .flags = IORESOURCE_IO, | ||
23 | }; | ||
24 | |||
25 | static struct resource pci0_mem_resource = { | ||
26 | .name = "pci_0 memory", | ||
27 | .start = GT_PCI_MEM_BASE, | ||
28 | .end = GT_PCI_MEM_BASE + GT_PCI_MEM_SIZE - 1, | ||
29 | .flags = IORESOURCE_MEM, | ||
30 | }; | ||
31 | |||
32 | static struct pci_controller hose_0 = { | ||
33 | .pci_ops = >64120_pci_ops, | ||
34 | .io_resource = &pci0_io_resource, | ||
35 | .mem_resource = &pci0_mem_resource, | ||
36 | }; | ||
37 | |||
38 | static int __init gt64120_pci_init(void) | ||
39 | { | ||
40 | u32 tmp; | ||
41 | |||
42 | tmp = GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */ | ||
43 | tmp = GT_READ(GT_PCI0_BARE_OFS); | ||
44 | |||
45 | /* reset the whole PCI I/O space range */ | ||
46 | ioport_resource.start = GT_PCI_IO_BASE; | ||
47 | ioport_resource.end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1; | ||
48 | |||
49 | register_pci_controller(&hose_0); | ||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | arch_initcall(gt64120_pci_init); | ||
diff --git a/arch/mips/gt64120/wrppmc/reset.c b/arch/mips/gt64120/wrppmc/reset.c new file mode 100644 index 000000000000..b97039c6d3db --- /dev/null +++ b/arch/mips/gt64120/wrppmc/reset.c | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1997 Ralf Baechle | ||
7 | */ | ||
8 | #include <linux/sched.h> | ||
9 | #include <linux/mm.h> | ||
10 | #include <asm/io.h> | ||
11 | #include <asm/pgtable.h> | ||
12 | #include <asm/processor.h> | ||
13 | #include <asm/reboot.h> | ||
14 | #include <asm/system.h> | ||
15 | #include <asm/cacheflush.h> | ||
16 | |||
17 | void wrppmc_machine_restart(char *command) | ||
18 | { | ||
19 | /* | ||
20 | * Ouch, we're still alive ... This time we take the silver bullet ... | ||
21 | * ... and find that we leave the hardware in a state in which the | ||
22 | * kernel in the flush locks up somewhen during of after the PCI | ||
23 | * detection stuff. | ||
24 | */ | ||
25 | local_irq_disable(); | ||
26 | set_c0_status(ST0_BEV | ST0_ERL); | ||
27 | change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED); | ||
28 | flush_cache_all(); | ||
29 | write_c0_wired(0); | ||
30 | __asm__ __volatile__("jr\t%0"::"r"(0xbfc00000)); | ||
31 | } | ||
32 | |||
33 | void wrppmc_machine_halt(void) | ||
34 | { | ||
35 | local_irq_disable(); | ||
36 | |||
37 | printk(KERN_NOTICE "You can safely turn off the power\n"); | ||
38 | while (1) { | ||
39 | __asm__( | ||
40 | ".set\tmips3\n\t" | ||
41 | "wait\n\t" | ||
42 | ".set\tmips0" | ||
43 | ); | ||
44 | } | ||
45 | } | ||
46 | |||
47 | void wrppmc_machine_power_off(void) | ||
48 | { | ||
49 | wrppmc_machine_halt(); | ||
50 | } | ||
diff --git a/arch/mips/gt64120/wrppmc/setup.c b/arch/mips/gt64120/wrppmc/setup.c new file mode 100644 index 000000000000..20c591e49dae --- /dev/null +++ b/arch/mips/gt64120/wrppmc/setup.c | |||
@@ -0,0 +1,173 @@ | |||
1 | /* | ||
2 | * setup.c: Setup pointers to hardware dependent routines. | ||
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 | * Copyright (C) 1996, 1997, 2004 by Ralf Baechle (ralf@linux-mips.org) | ||
9 | * Copyright (C) 2006, Wind River System Inc. Rongkai.zhan <rongkai.zhan@windriver.com> | ||
10 | */ | ||
11 | #include <linux/config.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/string.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/tty.h> | ||
16 | #include <linux/serial.h> | ||
17 | #include <linux/serial_core.h> | ||
18 | #include <linux/pm.h> | ||
19 | |||
20 | #include <asm/io.h> | ||
21 | #include <asm/bootinfo.h> | ||
22 | #include <asm/reboot.h> | ||
23 | #include <asm/time.h> | ||
24 | #include <asm/gt64120.h> | ||
25 | |||
26 | unsigned long gt64120_base = KSEG1ADDR(0x14000000); | ||
27 | |||
28 | #ifdef WRPPMC_EARLY_DEBUG | ||
29 | |||
30 | static volatile unsigned char * wrppmc_led = \ | ||
31 | (volatile unsigned char *)KSEG1ADDR(WRPPMC_LED_BASE); | ||
32 | |||
33 | /* | ||
34 | * PPMC LED control register: | ||
35 | * -) bit[0] controls DS1 LED (1 - OFF, 0 - ON) | ||
36 | * -) bit[1] controls DS2 LED (1 - OFF, 0 - ON) | ||
37 | * -) bit[2] controls DS4 LED (1 - OFF, 0 - ON) | ||
38 | */ | ||
39 | void wrppmc_led_on(int mask) | ||
40 | { | ||
41 | unsigned char value = *wrppmc_led; | ||
42 | |||
43 | value &= (0xF8 | mask); | ||
44 | *wrppmc_led = value; | ||
45 | } | ||
46 | |||
47 | /* If mask = 0, turn off all LEDs */ | ||
48 | void wrppmc_led_off(int mask) | ||
49 | { | ||
50 | unsigned char value = *wrppmc_led; | ||
51 | |||
52 | value |= (0x7 & mask); | ||
53 | *wrppmc_led = value; | ||
54 | } | ||
55 | |||
56 | /* | ||
57 | * We assume that bootloader has initialized UART16550 correctly | ||
58 | */ | ||
59 | void __init wrppmc_early_putc(char ch) | ||
60 | { | ||
61 | static volatile unsigned char *wrppmc_uart = \ | ||
62 | (volatile unsigned char *)KSEG1ADDR(WRPPMC_UART16550_BASE); | ||
63 | unsigned char value; | ||
64 | |||
65 | /* Wait until Transmit-Holding-Register is empty */ | ||
66 | while (1) { | ||
67 | value = *(wrppmc_uart + 5); | ||
68 | if (value & 0x20) | ||
69 | break; | ||
70 | } | ||
71 | |||
72 | *wrppmc_uart = ch; | ||
73 | } | ||
74 | |||
75 | void __init wrppmc_early_printk(const char *fmt, ...) | ||
76 | { | ||
77 | static char pbuf[256] = {'\0', }; | ||
78 | char *ch = pbuf; | ||
79 | va_list args; | ||
80 | unsigned int i; | ||
81 | |||
82 | memset(pbuf, 0, 256); | ||
83 | va_start(args, fmt); | ||
84 | i = vsprintf(pbuf, fmt, args); | ||
85 | va_end(args); | ||
86 | |||
87 | /* Print the string */ | ||
88 | while (*ch != '\0') { | ||
89 | wrppmc_early_putc(*ch); | ||
90 | /* if print '\n', also print '\r' */ | ||
91 | if (*ch++ == '\n') | ||
92 | wrppmc_early_putc('\r'); | ||
93 | } | ||
94 | } | ||
95 | #endif /* WRPPMC_EARLY_DEBUG */ | ||
96 | |||
97 | unsigned long __init prom_free_prom_memory(void) | ||
98 | { | ||
99 | return 0; | ||
100 | } | ||
101 | |||
102 | #ifdef CONFIG_SERIAL_8250 | ||
103 | static void wrppmc_setup_serial(void) | ||
104 | { | ||
105 | struct uart_port up; | ||
106 | |||
107 | memset(&up, 0x00, sizeof(struct uart_port)); | ||
108 | |||
109 | /* | ||
110 | * A note about mapbase/membase | ||
111 | * -) mapbase is the physical address of the IO port. | ||
112 | * -) membase is an 'ioremapped' cookie. | ||
113 | */ | ||
114 | up.line = 0; | ||
115 | up.type = PORT_16550; | ||
116 | up.iotype = UPIO_MEM; | ||
117 | up.mapbase = WRPPMC_UART16550_BASE; | ||
118 | up.membase = ioremap(up.mapbase, 8); | ||
119 | up.irq = WRPPMC_UART16550_IRQ; | ||
120 | up.uartclk = WRPPMC_UART16550_CLOCK; | ||
121 | up.flags = UPF_SKIP_TEST/* | UPF_BOOT_AUTOCONF */; | ||
122 | up.regshift = 0; | ||
123 | |||
124 | early_serial_setup(&up); | ||
125 | } | ||
126 | #endif | ||
127 | |||
128 | void __init plat_setup(void) | ||
129 | { | ||
130 | extern void wrppmc_time_init(void); | ||
131 | extern void wrppmc_timer_setup(struct irqaction *); | ||
132 | extern void wrppmc_machine_restart(char *command); | ||
133 | extern void wrppmc_machine_halt(void); | ||
134 | extern void wrppmc_machine_power_off(void); | ||
135 | |||
136 | _machine_restart = wrppmc_machine_restart; | ||
137 | _machine_halt = wrppmc_machine_halt; | ||
138 | pm_power_off = wrppmc_machine_power_off; | ||
139 | |||
140 | /* Use MIPS Count/Compare Timer */ | ||
141 | board_time_init = wrppmc_time_init; | ||
142 | board_timer_setup = wrppmc_timer_setup; | ||
143 | |||
144 | /* This makes the operations of 'in/out[bwl]' to the | ||
145 | * physical address ( < KSEG0) can work via KSEG1 | ||
146 | */ | ||
147 | set_io_port_base(KSEG1); | ||
148 | |||
149 | #ifdef CONFIG_SERIAL_8250 | ||
150 | wrppmc_setup_serial(); | ||
151 | #endif | ||
152 | } | ||
153 | |||
154 | const char *get_system_type(void) | ||
155 | { | ||
156 | return "Wind River PPMC (GT64120)"; | ||
157 | } | ||
158 | |||
159 | /* | ||
160 | * Initializes basic routines and structures pointers, memory size (as | ||
161 | * given by the bios and saves the command line. | ||
162 | */ | ||
163 | void __init prom_init(void) | ||
164 | { | ||
165 | mips_machgroup = MACH_GROUP_GALILEO; | ||
166 | mips_machtype = MACH_EV64120A; | ||
167 | |||
168 | add_memory_region(WRPPMC_SDRAM_SCS0_BASE, WRPPMC_SDRAM_SCS0_SIZE, BOOT_MEM_RAM); | ||
169 | add_memory_region(WRPPMC_BOOTROM_BASE, WRPPMC_BOOTROM_SIZE, BOOT_MEM_ROM_DATA); | ||
170 | |||
171 | wrppmc_early_printk("prom_init: GT64120 SDRAM Bank 0: 0x%x - 0x%08lx\n", | ||
172 | WRPPMC_SDRAM_SCS0_BASE, (WRPPMC_SDRAM_SCS0_BASE + WRPPMC_SDRAM_SCS0_SIZE)); | ||
173 | } | ||
diff --git a/arch/mips/gt64120/wrppmc/time.c b/arch/mips/gt64120/wrppmc/time.c new file mode 100644 index 000000000000..175d22adb450 --- /dev/null +++ b/arch/mips/gt64120/wrppmc/time.c | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * time.c: MIPS CPU Count/Compare timer hookup | ||
3 | * | ||
4 | * Author: Mark.Zhan, <rongkai.zhan@windriver.com> | ||
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 | * Copyright (C) 1996, 1997, 2004 by Ralf Baechle (ralf@linux-mips.org) | ||
11 | * Copyright (C) 2006, Wind River System Inc. | ||
12 | */ | ||
13 | #include <linux/config.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/string.h> | ||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/param.h> /* for HZ */ | ||
18 | #include <linux/irq.h> | ||
19 | #include <linux/timex.h> | ||
20 | #include <linux/interrupt.h> | ||
21 | |||
22 | #include <asm/reboot.h> | ||
23 | #include <asm/time.h> | ||
24 | #include <asm/io.h> | ||
25 | #include <asm/bootinfo.h> | ||
26 | #include <asm/gt64120.h> | ||
27 | |||
28 | #define WRPPMC_CPU_CLK_FREQ 40000000 /* 40MHZ */ | ||
29 | |||
30 | void __init wrppmc_timer_setup(struct irqaction *irq) | ||
31 | { | ||
32 | /* Install ISR for timer interrupt */ | ||
33 | setup_irq(WRPPMC_MIPS_TIMER_IRQ, irq); | ||
34 | |||
35 | /* to generate the first timer interrupt */ | ||
36 | write_c0_compare(mips_hpt_frequency/HZ); | ||
37 | write_c0_count(0); | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * Estimate CPU frequency. Sets mips_hpt_frequency as a side-effect | ||
42 | * | ||
43 | * NOTE: We disable all GT64120 timers, and use MIPS processor internal | ||
44 | * timer as the source of kernel clock tick. | ||
45 | */ | ||
46 | void __init wrppmc_time_init(void) | ||
47 | { | ||
48 | /* Disable GT64120 timers */ | ||
49 | GT_WRITE(GT_TC_CONTROL_OFS, 0x00); | ||
50 | GT_WRITE(GT_TC0_OFS, 0x00); | ||
51 | GT_WRITE(GT_TC1_OFS, 0x00); | ||
52 | GT_WRITE(GT_TC2_OFS, 0x00); | ||
53 | GT_WRITE(GT_TC3_OFS, 0x00); | ||
54 | |||
55 | /* Use MIPS compare/count internal timer */ | ||
56 | mips_hpt_frequency = WRPPMC_CPU_CLK_FREQ; | ||
57 | } | ||
diff --git a/arch/mips/ite-boards/generic/dbg_io.c b/arch/mips/ite-boards/generic/dbg_io.c index c4f8530fd07e..6a7ccaf93502 100644 --- a/arch/mips/ite-boards/generic/dbg_io.c +++ b/arch/mips/ite-boards/generic/dbg_io.c | |||
@@ -72,7 +72,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
72 | /* disable interrupts */ | 72 | /* disable interrupts */ |
73 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 73 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
74 | 74 | ||
75 | /* set up buad rate */ | 75 | /* set up baud rate */ |
76 | { | 76 | { |
77 | uint32 divisor; | 77 | uint32 divisor; |
78 | 78 | ||
diff --git a/arch/mips/ite-boards/generic/it8172_setup.c b/arch/mips/ite-boards/generic/it8172_setup.c index fc73c8d69df7..da6ae0991199 100644 --- a/arch/mips/ite-boards/generic/it8172_setup.c +++ b/arch/mips/ite-boards/generic/it8172_setup.c | |||
@@ -72,11 +72,29 @@ struct { | |||
72 | struct resource flash; | 72 | struct resource flash; |
73 | struct resource boot; | 73 | struct resource boot; |
74 | } it8172_resources = { | 74 | } it8172_resources = { |
75 | { "RAM", 0, 0, IORESOURCE_MEM }, /* to be initted */ | 75 | { |
76 | { "PCI Mem", 0x10000000, 0x13FFFFFF, IORESOURCE_MEM }, | 76 | .start = 0, /* to be initted */ |
77 | { "PCI I/O", 0x14000000, 0x17FFFFFF }, | 77 | .end = 0, |
78 | { "Flash", 0x08000000, 0x0CFFFFFF }, | 78 | .name = "RAM", |
79 | { "Boot ROM", 0x1FC00000, 0x1FFFFFFF } | 79 | .flags = IORESOURCE_MEM |
80 | }, { | ||
81 | .start = 0x10000000, | ||
82 | .end = 0x13FFFFFF, | ||
83 | .name = "PCI Mem", | ||
84 | .flags = IORESOURCE_MEM | ||
85 | }, { | ||
86 | .start = 0x14000000, | ||
87 | .end = 0x17FFFFFF | ||
88 | .name = "PCI I/O", | ||
89 | }, { | ||
90 | .start = 0x08000000, | ||
91 | .end = 0x0CFFFFFF | ||
92 | .name = "Flash", | ||
93 | }, { | ||
94 | .start = 0x1FC00000, | ||
95 | .end = 0x1FFFFFFF | ||
96 | .name = "Boot ROM", | ||
97 | } | ||
80 | }; | 98 | }; |
81 | #else | 99 | #else |
82 | struct { | 100 | struct { |
@@ -89,14 +107,44 @@ struct { | |||
89 | struct resource flash; | 107 | struct resource flash; |
90 | struct resource boot; | 108 | struct resource boot; |
91 | } it8172_resources = { | 109 | } it8172_resources = { |
92 | { "RAM", 0, 0, IORESOURCE_MEM }, /* to be initted */ | 110 | { |
93 | { "PCI Mem0", 0x0C000000, 0x0FFFFFFF, IORESOURCE_MEM }, | 111 | .start = 0, /* to be initted */ |
94 | { "PCI Mem1", 0x10000000, 0x13FFFFFF, IORESOURCE_MEM }, | 112 | .end = 0, |
95 | { "PCI I/O", 0x14000000, 0x17FFFFFF }, | 113 | .name = "RAM", |
96 | { "PCI Mem2", 0x1A000000, 0x1BFFFFFF, IORESOURCE_MEM }, | 114 | .flags = IORESOURCE_MEM |
97 | { "PCI Mem3", 0x1C000000, 0x1FBFFFFF, IORESOURCE_MEM }, | 115 | }, { |
98 | { "Flash", 0x08000000, 0x0CFFFFFF }, | 116 | .start = 0x0C000000, |
99 | { "Boot ROM", 0x1FC00000, 0x1FFFFFFF } | 117 | .end = 0x0FFFFFFF, |
118 | .name = "PCI Mem0", | ||
119 | .flags = IORESOURCE_MEM | ||
120 | }, { | ||
121 | .start = 0x10000000, | ||
122 | .end = 0x13FFFFFF, | ||
123 | .name = "PCI Mem1", | ||
124 | .flags = IORESOURCE_MEM | ||
125 | }, { | ||
126 | .start = 0x14000000, | ||
127 | .end = 0x17FFFFFF | ||
128 | .name = "PCI I/O", | ||
129 | }, { | ||
130 | .start = 0x1A000000, | ||
131 | .end = 0x1BFFFFFF, | ||
132 | .name = "PCI Mem2", | ||
133 | .flags = IORESOURCE_MEM | ||
134 | }, { | ||
135 | .start = 0x1C000000, | ||
136 | .end = 0x1FBFFFFF, | ||
137 | .name = "PCI Mem3", | ||
138 | .flags = IORESOURCE_MEM | ||
139 | }, { | ||
140 | .start = 0x08000000, | ||
141 | .end = 0x0CFFFFFF | ||
142 | .name = "Flash", | ||
143 | }, { | ||
144 | .start = 0x1FC00000, | ||
145 | .end = 0x1FFFFFFF | ||
146 | .name = "Boot ROM", | ||
147 | } | ||
100 | }; | 148 | }; |
101 | #endif | 149 | #endif |
102 | 150 | ||
@@ -106,7 +154,7 @@ void __init it8172_init_ram_resource(unsigned long memsize) | |||
106 | it8172_resources.ram.end = memsize; | 154 | it8172_resources.ram.end = memsize; |
107 | } | 155 | } |
108 | 156 | ||
109 | void __init plat_setup(void) | 157 | void __init plat_mem_setup(void) |
110 | { | 158 | { |
111 | unsigned short dsr; | 159 | unsigned short dsr; |
112 | char *argptr; | 160 | char *argptr; |
diff --git a/arch/mips/jazz/setup.c b/arch/mips/jazz/setup.c index 4036dc434551..c8d0df7d0c36 100644 --- a/arch/mips/jazz/setup.c +++ b/arch/mips/jazz/setup.c | |||
@@ -52,7 +52,7 @@ static struct resource jazz_io_resources[] = { | |||
52 | { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY }, | 52 | { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY }, |
53 | }; | 53 | }; |
54 | 54 | ||
55 | void __init plat_setup(void) | 55 | void __init plat_mem_setup(void) |
56 | { | 56 | { |
57 | int i; | 57 | int i; |
58 | 58 | ||
diff --git a/arch/mips/jmr3927/rbhma3100/setup.c b/arch/mips/jmr3927/rbhma3100/setup.c index 9359cc413494..308e6cdcd245 100644 --- a/arch/mips/jmr3927/rbhma3100/setup.c +++ b/arch/mips/jmr3927/rbhma3100/setup.c | |||
@@ -82,17 +82,54 @@ struct { | |||
82 | struct resource sio0; | 82 | struct resource sio0; |
83 | struct resource sio1; | 83 | struct resource sio1; |
84 | } jmr3927_resources = { | 84 | } jmr3927_resources = { |
85 | { "RAM0", 0, 0x01FFFFFF, IORESOURCE_MEM }, | 85 | { |
86 | { "RAM1", 0x02000000, 0x03FFFFFF, IORESOURCE_MEM }, | 86 | .start = 0, |
87 | { "PCIMEM", 0x08000000, 0x07FFFFFF, IORESOURCE_MEM }, | 87 | .end = 0x01FFFFFF, |
88 | { "IOB", 0x10000000, 0x13FFFFFF }, | 88 | .name = "RAM0", |
89 | { "IOC", 0x14000000, 0x14FFFFFF }, | 89 | .flags = IORESOURCE_MEM |
90 | { "PCIIO", 0x15000000, 0x15FFFFFF }, | 90 | }, { |
91 | { "JMY1394", 0x1D000000, 0x1D3FFFFF }, | 91 | .start = 0x02000000, |
92 | { "ROM1", 0x1E000000, 0x1E3FFFFF }, | 92 | .end = 0x03FFFFFF, |
93 | { "ROM0", 0x1FC00000, 0x1FFFFFFF }, | 93 | .name = "RAM1", |
94 | { "SIO0", 0xFFFEF300, 0xFFFEF3FF }, | 94 | .flags = IORESOURCE_MEM |
95 | { "SIO1", 0xFFFEF400, 0xFFFEF4FF }, | 95 | }, { |
96 | .start = 0x08000000, | ||
97 | .end = 0x07FFFFFF, | ||
98 | .name = "PCIMEM", | ||
99 | .flags = IORESOURCE_MEM | ||
100 | }, { | ||
101 | .start = 0x10000000, | ||
102 | .end = 0x13FFFFFF, | ||
103 | .name = "IOB" | ||
104 | }, { | ||
105 | .start = 0x14000000, | ||
106 | .end = 0x14FFFFFF, | ||
107 | .name = "IOC" | ||
108 | }, { | ||
109 | .start = 0x15000000, | ||
110 | .end = 0x15FFFFFF, | ||
111 | .name = "PCIIO" | ||
112 | }, { | ||
113 | .start = 0x1D000000, | ||
114 | .end = 0x1D3FFFFF, | ||
115 | .name = "JMY1394" | ||
116 | }, { | ||
117 | .start = 0x1E000000, | ||
118 | .end = 0x1E3FFFFF, | ||
119 | .name = "ROM1" | ||
120 | }, { | ||
121 | .start = 0x1FC00000, | ||
122 | .end = 0x1FFFFFFF, | ||
123 | .name = "ROM0" | ||
124 | }, { | ||
125 | .start = 0xFFFEF300, | ||
126 | .end = 0xFFFEF3FF, | ||
127 | .name = "SIO0" | ||
128 | }, { | ||
129 | .start = 0xFFFEF400, | ||
130 | .end = 0xFFFEF4FF, | ||
131 | .name = "SIO1" | ||
132 | }, | ||
96 | }; | 133 | }; |
97 | 134 | ||
98 | /* don't enable - see errata */ | 135 | /* don't enable - see errata */ |
@@ -201,7 +238,7 @@ static void jmr3927_board_init(void); | |||
201 | extern struct resource pci_io_resource; | 238 | extern struct resource pci_io_resource; |
202 | extern struct resource pci_mem_resource; | 239 | extern struct resource pci_mem_resource; |
203 | 240 | ||
204 | void __init plat_setup(void) | 241 | void __init plat_mem_setup(void) |
205 | { | 242 | { |
206 | char *argptr; | 243 | char *argptr; |
207 | 244 | ||
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 34e8a256765c..881c467c6982 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
@@ -13,6 +13,8 @@ binfmt_irix-objs := irixelf.o irixinv.o irixioctl.o irixsig.o \ | |||
13 | 13 | ||
14 | obj-$(CONFIG_MODULES) += mips_ksyms.o module.o | 14 | obj-$(CONFIG_MODULES) += mips_ksyms.o module.o |
15 | 15 | ||
16 | obj-$(CONFIG_APM) += apm.o | ||
17 | |||
16 | obj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o | 18 | obj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o |
17 | obj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o r2300_switch.o | 19 | obj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o r2300_switch.o |
18 | obj-$(CONFIG_CPU_TX49XX) += r4k_fpu.o r4k_switch.o | 20 | obj-$(CONFIG_CPU_TX49XX) += r4k_fpu.o r4k_switch.o |
diff --git a/arch/mips/kernel/apm.c b/arch/mips/kernel/apm.c new file mode 100644 index 000000000000..15f46b4471fd --- /dev/null +++ b/arch/mips/kernel/apm.c | |||
@@ -0,0 +1,605 @@ | |||
1 | /* | ||
2 | * bios-less APM driver for MIPS Linux | ||
3 | * Jamey Hicks <jamey@crl.dec.com> | ||
4 | * adapted from the APM BIOS driver for Linux by Stephen Rothwell (sfr@linuxcare.com) | ||
5 | * | ||
6 | * APM 1.2 Reference: | ||
7 | * Intel Corporation, Microsoft Corporation. Advanced Power Management | ||
8 | * (APM) BIOS Interface Specification, Revision 1.2, February 1996. | ||
9 | * | ||
10 | * [This document is available from Microsoft at: | ||
11 | * http://www.microsoft.com/hwdev/busbios/amp_12.htm] | ||
12 | */ | ||
13 | #include <linux/config.h> | ||
14 | #include <linux/module.h> | ||
15 | #include <linux/poll.h> | ||
16 | #include <linux/timer.h> | ||
17 | #include <linux/slab.h> | ||
18 | #include <linux/proc_fs.h> | ||
19 | #include <linux/miscdevice.h> | ||
20 | #include <linux/apm_bios.h> | ||
21 | #include <linux/capability.h> | ||
22 | #include <linux/sched.h> | ||
23 | #include <linux/pm.h> | ||
24 | #include <linux/device.h> | ||
25 | #include <linux/kernel.h> | ||
26 | #include <linux/list.h> | ||
27 | #include <linux/init.h> | ||
28 | #include <linux/completion.h> | ||
29 | |||
30 | #include <asm/apm.h> /* apm_power_info */ | ||
31 | #include <asm/system.h> | ||
32 | |||
33 | /* | ||
34 | * The apm_bios device is one of the misc char devices. | ||
35 | * This is its minor number. | ||
36 | */ | ||
37 | #define APM_MINOR_DEV 134 | ||
38 | |||
39 | /* | ||
40 | * See Documentation/Config.help for the configuration options. | ||
41 | * | ||
42 | * Various options can be changed at boot time as follows: | ||
43 | * (We allow underscores for compatibility with the modules code) | ||
44 | * apm=on/off enable/disable APM | ||
45 | */ | ||
46 | |||
47 | /* | ||
48 | * Maximum number of events stored | ||
49 | */ | ||
50 | #define APM_MAX_EVENTS 16 | ||
51 | |||
52 | struct apm_queue { | ||
53 | unsigned int event_head; | ||
54 | unsigned int event_tail; | ||
55 | apm_event_t events[APM_MAX_EVENTS]; | ||
56 | }; | ||
57 | |||
58 | /* | ||
59 | * The per-file APM data | ||
60 | */ | ||
61 | struct apm_user { | ||
62 | struct list_head list; | ||
63 | |||
64 | unsigned int suser: 1; | ||
65 | unsigned int writer: 1; | ||
66 | unsigned int reader: 1; | ||
67 | |||
68 | int suspend_result; | ||
69 | unsigned int suspend_state; | ||
70 | #define SUSPEND_NONE 0 /* no suspend pending */ | ||
71 | #define SUSPEND_PENDING 1 /* suspend pending read */ | ||
72 | #define SUSPEND_READ 2 /* suspend read, pending ack */ | ||
73 | #define SUSPEND_ACKED 3 /* suspend acked */ | ||
74 | #define SUSPEND_DONE 4 /* suspend completed */ | ||
75 | |||
76 | struct apm_queue queue; | ||
77 | }; | ||
78 | |||
79 | /* | ||
80 | * Local variables | ||
81 | */ | ||
82 | static int suspends_pending; | ||
83 | static int apm_disabled; | ||
84 | static int mips_apm_active; | ||
85 | |||
86 | static DECLARE_WAIT_QUEUE_HEAD(apm_waitqueue); | ||
87 | static DECLARE_WAIT_QUEUE_HEAD(apm_suspend_waitqueue); | ||
88 | |||
89 | /* | ||
90 | * This is a list of everyone who has opened /dev/apm_bios | ||
91 | */ | ||
92 | static DECLARE_RWSEM(user_list_lock); | ||
93 | static LIST_HEAD(apm_user_list); | ||
94 | |||
95 | /* | ||
96 | * kapmd info. kapmd provides us a process context to handle | ||
97 | * "APM" events within - specifically necessary if we're going | ||
98 | * to be suspending the system. | ||
99 | */ | ||
100 | static DECLARE_WAIT_QUEUE_HEAD(kapmd_wait); | ||
101 | static DECLARE_COMPLETION(kapmd_exit); | ||
102 | static DEFINE_SPINLOCK(kapmd_queue_lock); | ||
103 | static struct apm_queue kapmd_queue; | ||
104 | |||
105 | |||
106 | static const char driver_version[] = "1.13"; /* no spaces */ | ||
107 | |||
108 | |||
109 | |||
110 | /* | ||
111 | * Compatibility cruft until the IPAQ people move over to the new | ||
112 | * interface. | ||
113 | */ | ||
114 | static void __apm_get_power_status(struct apm_power_info *info) | ||
115 | { | ||
116 | } | ||
117 | |||
118 | /* | ||
119 | * This allows machines to provide their own "apm get power status" function. | ||
120 | */ | ||
121 | void (*apm_get_power_status)(struct apm_power_info *) = __apm_get_power_status; | ||
122 | EXPORT_SYMBOL(apm_get_power_status); | ||
123 | |||
124 | |||
125 | /* | ||
126 | * APM event queue management. | ||
127 | */ | ||
128 | static inline int queue_empty(struct apm_queue *q) | ||
129 | { | ||
130 | return q->event_head == q->event_tail; | ||
131 | } | ||
132 | |||
133 | static inline apm_event_t queue_get_event(struct apm_queue *q) | ||
134 | { | ||
135 | q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; | ||
136 | return q->events[q->event_tail]; | ||
137 | } | ||
138 | |||
139 | static void queue_add_event(struct apm_queue *q, apm_event_t event) | ||
140 | { | ||
141 | q->event_head = (q->event_head + 1) % APM_MAX_EVENTS; | ||
142 | if (q->event_head == q->event_tail) { | ||
143 | static int notified; | ||
144 | |||
145 | if (notified++ == 0) | ||
146 | printk(KERN_ERR "apm: an event queue overflowed\n"); | ||
147 | q->event_tail = (q->event_tail + 1) % APM_MAX_EVENTS; | ||
148 | } | ||
149 | q->events[q->event_head] = event; | ||
150 | } | ||
151 | |||
152 | static void queue_event_one_user(struct apm_user *as, apm_event_t event) | ||
153 | { | ||
154 | if (as->suser && as->writer) { | ||
155 | switch (event) { | ||
156 | case APM_SYS_SUSPEND: | ||
157 | case APM_USER_SUSPEND: | ||
158 | /* | ||
159 | * If this user already has a suspend pending, | ||
160 | * don't queue another one. | ||
161 | */ | ||
162 | if (as->suspend_state != SUSPEND_NONE) | ||
163 | return; | ||
164 | |||
165 | as->suspend_state = SUSPEND_PENDING; | ||
166 | suspends_pending++; | ||
167 | break; | ||
168 | } | ||
169 | } | ||
170 | queue_add_event(&as->queue, event); | ||
171 | } | ||
172 | |||
173 | static void queue_event(apm_event_t event, struct apm_user *sender) | ||
174 | { | ||
175 | struct apm_user *as; | ||
176 | |||
177 | down_read(&user_list_lock); | ||
178 | list_for_each_entry(as, &apm_user_list, list) { | ||
179 | if (as != sender && as->reader) | ||
180 | queue_event_one_user(as, event); | ||
181 | } | ||
182 | up_read(&user_list_lock); | ||
183 | wake_up_interruptible(&apm_waitqueue); | ||
184 | } | ||
185 | |||
186 | static void apm_suspend(void) | ||
187 | { | ||
188 | struct apm_user *as; | ||
189 | int err = pm_suspend(PM_SUSPEND_MEM); | ||
190 | |||
191 | /* | ||
192 | * Anyone on the APM queues will think we're still suspended. | ||
193 | * Send a message so everyone knows we're now awake again. | ||
194 | */ | ||
195 | queue_event(APM_NORMAL_RESUME, NULL); | ||
196 | |||
197 | /* | ||
198 | * Finally, wake up anyone who is sleeping on the suspend. | ||
199 | */ | ||
200 | down_read(&user_list_lock); | ||
201 | list_for_each_entry(as, &apm_user_list, list) { | ||
202 | as->suspend_result = err; | ||
203 | as->suspend_state = SUSPEND_DONE; | ||
204 | } | ||
205 | up_read(&user_list_lock); | ||
206 | |||
207 | wake_up(&apm_suspend_waitqueue); | ||
208 | } | ||
209 | |||
210 | static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t *ppos) | ||
211 | { | ||
212 | struct apm_user *as = fp->private_data; | ||
213 | apm_event_t event; | ||
214 | int i = count, ret = 0; | ||
215 | |||
216 | if (count < sizeof(apm_event_t)) | ||
217 | return -EINVAL; | ||
218 | |||
219 | if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) | ||
220 | return -EAGAIN; | ||
221 | |||
222 | wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); | ||
223 | |||
224 | while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { | ||
225 | event = queue_get_event(&as->queue); | ||
226 | |||
227 | ret = -EFAULT; | ||
228 | if (copy_to_user(buf, &event, sizeof(event))) | ||
229 | break; | ||
230 | |||
231 | if (event == APM_SYS_SUSPEND || event == APM_USER_SUSPEND) | ||
232 | as->suspend_state = SUSPEND_READ; | ||
233 | |||
234 | buf += sizeof(event); | ||
235 | i -= sizeof(event); | ||
236 | } | ||
237 | |||
238 | if (i < count) | ||
239 | ret = count - i; | ||
240 | |||
241 | return ret; | ||
242 | } | ||
243 | |||
244 | static unsigned int apm_poll(struct file *fp, poll_table * wait) | ||
245 | { | ||
246 | struct apm_user *as = fp->private_data; | ||
247 | |||
248 | poll_wait(fp, &apm_waitqueue, wait); | ||
249 | return queue_empty(&as->queue) ? 0 : POLLIN | POLLRDNORM; | ||
250 | } | ||
251 | |||
252 | /* | ||
253 | * apm_ioctl - handle APM ioctl | ||
254 | * | ||
255 | * APM_IOC_SUSPEND | ||
256 | * This IOCTL is overloaded, and performs two functions. It is used to: | ||
257 | * - initiate a suspend | ||
258 | * - acknowledge a suspend read from /dev/apm_bios. | ||
259 | * Only when everyone who has opened /dev/apm_bios with write permission | ||
260 | * has acknowledge does the actual suspend happen. | ||
261 | */ | ||
262 | static int | ||
263 | apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg) | ||
264 | { | ||
265 | struct apm_user *as = filp->private_data; | ||
266 | unsigned long flags; | ||
267 | int err = -EINVAL; | ||
268 | |||
269 | if (!as->suser || !as->writer) | ||
270 | return -EPERM; | ||
271 | |||
272 | switch (cmd) { | ||
273 | case APM_IOC_SUSPEND: | ||
274 | as->suspend_result = -EINTR; | ||
275 | |||
276 | if (as->suspend_state == SUSPEND_READ) { | ||
277 | /* | ||
278 | * If we read a suspend command from /dev/apm_bios, | ||
279 | * then the corresponding APM_IOC_SUSPEND ioctl is | ||
280 | * interpreted as an acknowledge. | ||
281 | */ | ||
282 | as->suspend_state = SUSPEND_ACKED; | ||
283 | suspends_pending--; | ||
284 | } else { | ||
285 | /* | ||
286 | * Otherwise it is a request to suspend the system. | ||
287 | * Queue an event for all readers, and expect an | ||
288 | * acknowledge from all writers who haven't already | ||
289 | * acknowledged. | ||
290 | */ | ||
291 | queue_event(APM_USER_SUSPEND, as); | ||
292 | } | ||
293 | |||
294 | /* | ||
295 | * If there are no further acknowledges required, suspend | ||
296 | * the system. | ||
297 | */ | ||
298 | if (suspends_pending == 0) | ||
299 | apm_suspend(); | ||
300 | |||
301 | /* | ||
302 | * Wait for the suspend/resume to complete. If there are | ||
303 | * pending acknowledges, we wait here for them. | ||
304 | * | ||
305 | * Note that we need to ensure that the PM subsystem does | ||
306 | * not kick us out of the wait when it suspends the threads. | ||
307 | */ | ||
308 | flags = current->flags; | ||
309 | current->flags |= PF_NOFREEZE; | ||
310 | |||
311 | /* | ||
312 | * Note: do not allow a thread which is acking the suspend | ||
313 | * to escape until the resume is complete. | ||
314 | */ | ||
315 | if (as->suspend_state == SUSPEND_ACKED) | ||
316 | wait_event(apm_suspend_waitqueue, | ||
317 | as->suspend_state == SUSPEND_DONE); | ||
318 | else | ||
319 | wait_event_interruptible(apm_suspend_waitqueue, | ||
320 | as->suspend_state == SUSPEND_DONE); | ||
321 | |||
322 | current->flags = flags; | ||
323 | err = as->suspend_result; | ||
324 | as->suspend_state = SUSPEND_NONE; | ||
325 | break; | ||
326 | } | ||
327 | |||
328 | return err; | ||
329 | } | ||
330 | |||
331 | static int apm_release(struct inode * inode, struct file * filp) | ||
332 | { | ||
333 | struct apm_user *as = filp->private_data; | ||
334 | filp->private_data = NULL; | ||
335 | |||
336 | down_write(&user_list_lock); | ||
337 | list_del(&as->list); | ||
338 | up_write(&user_list_lock); | ||
339 | |||
340 | /* | ||
341 | * We are now unhooked from the chain. As far as new | ||
342 | * events are concerned, we no longer exist. However, we | ||
343 | * need to balance suspends_pending, which means the | ||
344 | * possibility of sleeping. | ||
345 | */ | ||
346 | if (as->suspend_state != SUSPEND_NONE) { | ||
347 | suspends_pending -= 1; | ||
348 | if (suspends_pending == 0) | ||
349 | apm_suspend(); | ||
350 | } | ||
351 | |||
352 | kfree(as); | ||
353 | return 0; | ||
354 | } | ||
355 | |||
356 | static int apm_open(struct inode * inode, struct file * filp) | ||
357 | { | ||
358 | struct apm_user *as; | ||
359 | |||
360 | as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL); | ||
361 | if (as) { | ||
362 | /* | ||
363 | * XXX - this is a tiny bit broken, when we consider BSD | ||
364 | * process accounting. If the device is opened by root, we | ||
365 | * instantly flag that we used superuser privs. Who knows, | ||
366 | * we might close the device immediately without doing a | ||
367 | * privileged operation -- cevans | ||
368 | */ | ||
369 | as->suser = capable(CAP_SYS_ADMIN); | ||
370 | as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; | ||
371 | as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; | ||
372 | |||
373 | down_write(&user_list_lock); | ||
374 | list_add(&as->list, &apm_user_list); | ||
375 | up_write(&user_list_lock); | ||
376 | |||
377 | filp->private_data = as; | ||
378 | } | ||
379 | |||
380 | return as ? 0 : -ENOMEM; | ||
381 | } | ||
382 | |||
383 | static struct file_operations apm_bios_fops = { | ||
384 | .owner = THIS_MODULE, | ||
385 | .read = apm_read, | ||
386 | .poll = apm_poll, | ||
387 | .ioctl = apm_ioctl, | ||
388 | .open = apm_open, | ||
389 | .release = apm_release, | ||
390 | }; | ||
391 | |||
392 | static struct miscdevice apm_device = { | ||
393 | .minor = APM_MINOR_DEV, | ||
394 | .name = "apm_bios", | ||
395 | .fops = &apm_bios_fops | ||
396 | }; | ||
397 | |||
398 | |||
399 | #ifdef CONFIG_PROC_FS | ||
400 | /* | ||
401 | * Arguments, with symbols from linux/apm_bios.h. | ||
402 | * | ||
403 | * 0) Linux driver version (this will change if format changes) | ||
404 | * 1) APM BIOS Version. Usually 1.0, 1.1 or 1.2. | ||
405 | * 2) APM flags from APM Installation Check (0x00): | ||
406 | * bit 0: APM_16_BIT_SUPPORT | ||
407 | * bit 1: APM_32_BIT_SUPPORT | ||
408 | * bit 2: APM_IDLE_SLOWS_CLOCK | ||
409 | * bit 3: APM_BIOS_DISABLED | ||
410 | * bit 4: APM_BIOS_DISENGAGED | ||
411 | * 3) AC line status | ||
412 | * 0x00: Off-line | ||
413 | * 0x01: On-line | ||
414 | * 0x02: On backup power (BIOS >= 1.1 only) | ||
415 | * 0xff: Unknown | ||
416 | * 4) Battery status | ||
417 | * 0x00: High | ||
418 | * 0x01: Low | ||
419 | * 0x02: Critical | ||
420 | * 0x03: Charging | ||
421 | * 0x04: Selected battery not present (BIOS >= 1.2 only) | ||
422 | * 0xff: Unknown | ||
423 | * 5) Battery flag | ||
424 | * bit 0: High | ||
425 | * bit 1: Low | ||
426 | * bit 2: Critical | ||
427 | * bit 3: Charging | ||
428 | * bit 7: No system battery | ||
429 | * 0xff: Unknown | ||
430 | * 6) Remaining battery life (percentage of charge): | ||
431 | * 0-100: valid | ||
432 | * -1: Unknown | ||
433 | * 7) Remaining battery life (time units): | ||
434 | * Number of remaining minutes or seconds | ||
435 | * -1: Unknown | ||
436 | * 8) min = minutes; sec = seconds | ||
437 | */ | ||
438 | static int apm_get_info(char *buf, char **start, off_t fpos, int length) | ||
439 | { | ||
440 | struct apm_power_info info; | ||
441 | char *units; | ||
442 | int ret; | ||
443 | |||
444 | info.ac_line_status = 0xff; | ||
445 | info.battery_status = 0xff; | ||
446 | info.battery_flag = 0xff; | ||
447 | info.battery_life = -1; | ||
448 | info.time = -1; | ||
449 | info.units = -1; | ||
450 | |||
451 | if (apm_get_power_status) | ||
452 | apm_get_power_status(&info); | ||
453 | |||
454 | switch (info.units) { | ||
455 | default: units = "?"; break; | ||
456 | case 0: units = "min"; break; | ||
457 | case 1: units = "sec"; break; | ||
458 | } | ||
459 | |||
460 | ret = sprintf(buf, "%s 1.2 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n", | ||
461 | driver_version, APM_32_BIT_SUPPORT, | ||
462 | info.ac_line_status, info.battery_status, | ||
463 | info.battery_flag, info.battery_life, | ||
464 | info.time, units); | ||
465 | |||
466 | return ret; | ||
467 | } | ||
468 | #endif | ||
469 | |||
470 | static int kapmd(void *arg) | ||
471 | { | ||
472 | daemonize("kapmd"); | ||
473 | current->flags |= PF_NOFREEZE; | ||
474 | |||
475 | do { | ||
476 | apm_event_t event; | ||
477 | |||
478 | wait_event_interruptible(kapmd_wait, | ||
479 | !queue_empty(&kapmd_queue) || !mips_apm_active); | ||
480 | |||
481 | if (!mips_apm_active) | ||
482 | break; | ||
483 | |||
484 | spin_lock_irq(&kapmd_queue_lock); | ||
485 | event = 0; | ||
486 | if (!queue_empty(&kapmd_queue)) | ||
487 | event = queue_get_event(&kapmd_queue); | ||
488 | spin_unlock_irq(&kapmd_queue_lock); | ||
489 | |||
490 | switch (event) { | ||
491 | case 0: | ||
492 | break; | ||
493 | |||
494 | case APM_LOW_BATTERY: | ||
495 | case APM_POWER_STATUS_CHANGE: | ||
496 | queue_event(event, NULL); | ||
497 | break; | ||
498 | |||
499 | case APM_USER_SUSPEND: | ||
500 | case APM_SYS_SUSPEND: | ||
501 | queue_event(event, NULL); | ||
502 | if (suspends_pending == 0) | ||
503 | apm_suspend(); | ||
504 | break; | ||
505 | |||
506 | case APM_CRITICAL_SUSPEND: | ||
507 | apm_suspend(); | ||
508 | break; | ||
509 | } | ||
510 | } while (1); | ||
511 | |||
512 | complete_and_exit(&kapmd_exit, 0); | ||
513 | } | ||
514 | |||
515 | static int __init apm_init(void) | ||
516 | { | ||
517 | int ret; | ||
518 | |||
519 | if (apm_disabled) { | ||
520 | printk(KERN_NOTICE "apm: disabled on user request.\n"); | ||
521 | return -ENODEV; | ||
522 | } | ||
523 | |||
524 | mips_apm_active = 1; | ||
525 | |||
526 | ret = kernel_thread(kapmd, NULL, CLONE_KERNEL); | ||
527 | if (ret < 0) { | ||
528 | mips_apm_active = 0; | ||
529 | return ret; | ||
530 | } | ||
531 | |||
532 | #ifdef CONFIG_PROC_FS | ||
533 | create_proc_info_entry("apm", 0, NULL, apm_get_info); | ||
534 | #endif | ||
535 | |||
536 | ret = misc_register(&apm_device); | ||
537 | if (ret != 0) { | ||
538 | remove_proc_entry("apm", NULL); | ||
539 | |||
540 | mips_apm_active = 0; | ||
541 | wake_up(&kapmd_wait); | ||
542 | wait_for_completion(&kapmd_exit); | ||
543 | } | ||
544 | |||
545 | return ret; | ||
546 | } | ||
547 | |||
548 | static void __exit apm_exit(void) | ||
549 | { | ||
550 | misc_deregister(&apm_device); | ||
551 | remove_proc_entry("apm", NULL); | ||
552 | |||
553 | mips_apm_active = 0; | ||
554 | wake_up(&kapmd_wait); | ||
555 | wait_for_completion(&kapmd_exit); | ||
556 | } | ||
557 | |||
558 | module_init(apm_init); | ||
559 | module_exit(apm_exit); | ||
560 | |||
561 | MODULE_AUTHOR("Stephen Rothwell"); | ||
562 | MODULE_DESCRIPTION("Advanced Power Management"); | ||
563 | MODULE_LICENSE("GPL"); | ||
564 | |||
565 | #ifndef MODULE | ||
566 | static int __init apm_setup(char *str) | ||
567 | { | ||
568 | while ((str != NULL) && (*str != '\0')) { | ||
569 | if (strncmp(str, "off", 3) == 0) | ||
570 | apm_disabled = 1; | ||
571 | if (strncmp(str, "on", 2) == 0) | ||
572 | apm_disabled = 0; | ||
573 | str = strchr(str, ','); | ||
574 | if (str != NULL) | ||
575 | str += strspn(str, ", \t"); | ||
576 | } | ||
577 | return 1; | ||
578 | } | ||
579 | |||
580 | __setup("apm=", apm_setup); | ||
581 | #endif | ||
582 | |||
583 | /** | ||
584 | * apm_queue_event - queue an APM event for kapmd | ||
585 | * @event: APM event | ||
586 | * | ||
587 | * Queue an APM event for kapmd to process and ultimately take the | ||
588 | * appropriate action. Only a subset of events are handled: | ||
589 | * %APM_LOW_BATTERY | ||
590 | * %APM_POWER_STATUS_CHANGE | ||
591 | * %APM_USER_SUSPEND | ||
592 | * %APM_SYS_SUSPEND | ||
593 | * %APM_CRITICAL_SUSPEND | ||
594 | */ | ||
595 | void apm_queue_event(apm_event_t event) | ||
596 | { | ||
597 | unsigned long flags; | ||
598 | |||
599 | spin_lock_irqsave(&kapmd_queue_lock, flags); | ||
600 | queue_add_event(&kapmd_queue, event); | ||
601 | spin_unlock_irqrestore(&kapmd_queue_lock, flags); | ||
602 | |||
603 | wake_up_interruptible(&kapmd_wait); | ||
604 | } | ||
605 | EXPORT_SYMBOL(apm_queue_event); | ||
diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 92b28b674d6f..f1bb6a2dc5fc 100644 --- a/arch/mips/kernel/asm-offsets.c +++ b/arch/mips/kernel/asm-offsets.c | |||
@@ -141,72 +141,72 @@ void output_thread_defines(void) | |||
141 | void output_thread_fpu_defines(void) | 141 | void output_thread_fpu_defines(void) |
142 | { | 142 | { |
143 | offset("#define THREAD_FPR0 ", | 143 | offset("#define THREAD_FPR0 ", |
144 | struct task_struct, thread.fpu.hard.fpr[0]); | 144 | struct task_struct, thread.fpu.fpr[0]); |
145 | offset("#define THREAD_FPR1 ", | 145 | offset("#define THREAD_FPR1 ", |
146 | struct task_struct, thread.fpu.hard.fpr[1]); | 146 | struct task_struct, thread.fpu.fpr[1]); |
147 | offset("#define THREAD_FPR2 ", | 147 | offset("#define THREAD_FPR2 ", |
148 | struct task_struct, thread.fpu.hard.fpr[2]); | 148 | struct task_struct, thread.fpu.fpr[2]); |
149 | offset("#define THREAD_FPR3 ", | 149 | offset("#define THREAD_FPR3 ", |
150 | struct task_struct, thread.fpu.hard.fpr[3]); | 150 | struct task_struct, thread.fpu.fpr[3]); |
151 | offset("#define THREAD_FPR4 ", | 151 | offset("#define THREAD_FPR4 ", |
152 | struct task_struct, thread.fpu.hard.fpr[4]); | 152 | struct task_struct, thread.fpu.fpr[4]); |
153 | offset("#define THREAD_FPR5 ", | 153 | offset("#define THREAD_FPR5 ", |
154 | struct task_struct, thread.fpu.hard.fpr[5]); | 154 | struct task_struct, thread.fpu.fpr[5]); |
155 | offset("#define THREAD_FPR6 ", | 155 | offset("#define THREAD_FPR6 ", |
156 | struct task_struct, thread.fpu.hard.fpr[6]); | 156 | struct task_struct, thread.fpu.fpr[6]); |
157 | offset("#define THREAD_FPR7 ", | 157 | offset("#define THREAD_FPR7 ", |
158 | struct task_struct, thread.fpu.hard.fpr[7]); | 158 | struct task_struct, thread.fpu.fpr[7]); |
159 | offset("#define THREAD_FPR8 ", | 159 | offset("#define THREAD_FPR8 ", |
160 | struct task_struct, thread.fpu.hard.fpr[8]); | 160 | struct task_struct, thread.fpu.fpr[8]); |
161 | offset("#define THREAD_FPR9 ", | 161 | offset("#define THREAD_FPR9 ", |
162 | struct task_struct, thread.fpu.hard.fpr[9]); | 162 | struct task_struct, thread.fpu.fpr[9]); |
163 | offset("#define THREAD_FPR10 ", | 163 | offset("#define THREAD_FPR10 ", |
164 | struct task_struct, thread.fpu.hard.fpr[10]); | 164 | struct task_struct, thread.fpu.fpr[10]); |
165 | offset("#define THREAD_FPR11 ", | 165 | offset("#define THREAD_FPR11 ", |
166 | struct task_struct, thread.fpu.hard.fpr[11]); | 166 | struct task_struct, thread.fpu.fpr[11]); |
167 | offset("#define THREAD_FPR12 ", | 167 | offset("#define THREAD_FPR12 ", |
168 | struct task_struct, thread.fpu.hard.fpr[12]); | 168 | struct task_struct, thread.fpu.fpr[12]); |
169 | offset("#define THREAD_FPR13 ", | 169 | offset("#define THREAD_FPR13 ", |
170 | struct task_struct, thread.fpu.hard.fpr[13]); | 170 | struct task_struct, thread.fpu.fpr[13]); |
171 | offset("#define THREAD_FPR14 ", | 171 | offset("#define THREAD_FPR14 ", |
172 | struct task_struct, thread.fpu.hard.fpr[14]); | 172 | struct task_struct, thread.fpu.fpr[14]); |
173 | offset("#define THREAD_FPR15 ", | 173 | offset("#define THREAD_FPR15 ", |
174 | struct task_struct, thread.fpu.hard.fpr[15]); | 174 | struct task_struct, thread.fpu.fpr[15]); |
175 | offset("#define THREAD_FPR16 ", | 175 | offset("#define THREAD_FPR16 ", |
176 | struct task_struct, thread.fpu.hard.fpr[16]); | 176 | struct task_struct, thread.fpu.fpr[16]); |
177 | offset("#define THREAD_FPR17 ", | 177 | offset("#define THREAD_FPR17 ", |
178 | struct task_struct, thread.fpu.hard.fpr[17]); | 178 | struct task_struct, thread.fpu.fpr[17]); |
179 | offset("#define THREAD_FPR18 ", | 179 | offset("#define THREAD_FPR18 ", |
180 | struct task_struct, thread.fpu.hard.fpr[18]); | 180 | struct task_struct, thread.fpu.fpr[18]); |
181 | offset("#define THREAD_FPR19 ", | 181 | offset("#define THREAD_FPR19 ", |
182 | struct task_struct, thread.fpu.hard.fpr[19]); | 182 | struct task_struct, thread.fpu.fpr[19]); |
183 | offset("#define THREAD_FPR20 ", | 183 | offset("#define THREAD_FPR20 ", |
184 | struct task_struct, thread.fpu.hard.fpr[20]); | 184 | struct task_struct, thread.fpu.fpr[20]); |
185 | offset("#define THREAD_FPR21 ", | 185 | offset("#define THREAD_FPR21 ", |
186 | struct task_struct, thread.fpu.hard.fpr[21]); | 186 | struct task_struct, thread.fpu.fpr[21]); |
187 | offset("#define THREAD_FPR22 ", | 187 | offset("#define THREAD_FPR22 ", |
188 | struct task_struct, thread.fpu.hard.fpr[22]); | 188 | struct task_struct, thread.fpu.fpr[22]); |
189 | offset("#define THREAD_FPR23 ", | 189 | offset("#define THREAD_FPR23 ", |
190 | struct task_struct, thread.fpu.hard.fpr[23]); | 190 | struct task_struct, thread.fpu.fpr[23]); |
191 | offset("#define THREAD_FPR24 ", | 191 | offset("#define THREAD_FPR24 ", |
192 | struct task_struct, thread.fpu.hard.fpr[24]); | 192 | struct task_struct, thread.fpu.fpr[24]); |
193 | offset("#define THREAD_FPR25 ", | 193 | offset("#define THREAD_FPR25 ", |
194 | struct task_struct, thread.fpu.hard.fpr[25]); | 194 | struct task_struct, thread.fpu.fpr[25]); |
195 | offset("#define THREAD_FPR26 ", | 195 | offset("#define THREAD_FPR26 ", |
196 | struct task_struct, thread.fpu.hard.fpr[26]); | 196 | struct task_struct, thread.fpu.fpr[26]); |
197 | offset("#define THREAD_FPR27 ", | 197 | offset("#define THREAD_FPR27 ", |
198 | struct task_struct, thread.fpu.hard.fpr[27]); | 198 | struct task_struct, thread.fpu.fpr[27]); |
199 | offset("#define THREAD_FPR28 ", | 199 | offset("#define THREAD_FPR28 ", |
200 | struct task_struct, thread.fpu.hard.fpr[28]); | 200 | struct task_struct, thread.fpu.fpr[28]); |
201 | offset("#define THREAD_FPR29 ", | 201 | offset("#define THREAD_FPR29 ", |
202 | struct task_struct, thread.fpu.hard.fpr[29]); | 202 | struct task_struct, thread.fpu.fpr[29]); |
203 | offset("#define THREAD_FPR30 ", | 203 | offset("#define THREAD_FPR30 ", |
204 | struct task_struct, thread.fpu.hard.fpr[30]); | 204 | struct task_struct, thread.fpu.fpr[30]); |
205 | offset("#define THREAD_FPR31 ", | 205 | offset("#define THREAD_FPR31 ", |
206 | struct task_struct, thread.fpu.hard.fpr[31]); | 206 | struct task_struct, thread.fpu.fpr[31]); |
207 | 207 | ||
208 | offset("#define THREAD_FCR31 ", | 208 | offset("#define THREAD_FCR31 ", |
209 | struct task_struct, thread.fpu.hard.fcr31); | 209 | struct task_struct, thread.fpu.fcr31); |
210 | linefeed; | 210 | linefeed; |
211 | } | 211 | } |
212 | 212 | ||
@@ -272,8 +272,8 @@ void output_sc_defines(void) | |||
272 | text("/* Linux sigcontext offsets. */"); | 272 | text("/* Linux sigcontext offsets. */"); |
273 | offset("#define SC_REGS ", struct sigcontext, sc_regs); | 273 | offset("#define SC_REGS ", struct sigcontext, sc_regs); |
274 | offset("#define SC_FPREGS ", struct sigcontext, sc_fpregs); | 274 | offset("#define SC_FPREGS ", struct sigcontext, sc_fpregs); |
275 | offset("#define SC_MDHI ", struct sigcontext, sc_hi); | 275 | offset("#define SC_MDHI ", struct sigcontext, sc_mdhi); |
276 | offset("#define SC_MDLO ", struct sigcontext, sc_lo); | 276 | offset("#define SC_MDLO ", struct sigcontext, sc_mdlo); |
277 | offset("#define SC_PC ", struct sigcontext, sc_pc); | 277 | offset("#define SC_PC ", struct sigcontext, sc_pc); |
278 | offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr); | 278 | offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr); |
279 | linefeed; | 279 | linefeed; |
diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c index b6232d9033cb..76fd3f22c766 100644 --- a/arch/mips/kernel/branch.c +++ b/arch/mips/kernel/branch.c | |||
@@ -178,7 +178,7 @@ int __compute_return_epc(struct pt_regs *regs) | |||
178 | if (is_fpu_owner()) | 178 | if (is_fpu_owner()) |
179 | asm volatile("cfc1\t%0,$31" : "=r" (fcr31)); | 179 | asm volatile("cfc1\t%0,$31" : "=r" (fcr31)); |
180 | else | 180 | else |
181 | fcr31 = current->thread.fpu.hard.fcr31; | 181 | fcr31 = current->thread.fpu.fcr31; |
182 | preempt_enable(); | 182 | preempt_enable(); |
183 | 183 | ||
184 | bit = (insn.i_format.rt >> 2); | 184 | bit = (insn.i_format.rt >> 2); |
diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index 47a087b6c11b..d268827c62bd 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c | |||
@@ -206,7 +206,7 @@ static inline void check_daddi(void) | |||
206 | "daddi %0, %1, %3\n\t" | 206 | "daddi %0, %1, %3\n\t" |
207 | ".set pop" | 207 | ".set pop" |
208 | : "=r" (v), "=&r" (tmp) | 208 | : "=r" (v), "=&r" (tmp) |
209 | : "I" (0xffffffffffffdb9a), "I" (0x1234)); | 209 | : "I" (0xffffffffffffdb9aUL), "I" (0x1234)); |
210 | set_except_vector(12, handler); | 210 | set_except_vector(12, handler); |
211 | local_irq_restore(flags); | 211 | local_irq_restore(flags); |
212 | 212 | ||
@@ -224,7 +224,7 @@ static inline void check_daddi(void) | |||
224 | "dsrl %1, %1, 1\n\t" | 224 | "dsrl %1, %1, 1\n\t" |
225 | "daddi %0, %1, %3" | 225 | "daddi %0, %1, %3" |
226 | : "=r" (v), "=&r" (tmp) | 226 | : "=r" (v), "=&r" (tmp) |
227 | : "I" (0xffffffffffffdb9a), "I" (0x1234)); | 227 | : "I" (0xffffffffffffdb9aUL), "I" (0x1234)); |
228 | set_except_vector(12, handler); | 228 | set_except_vector(12, handler); |
229 | local_irq_restore(flags); | 229 | local_irq_restore(flags); |
230 | 230 | ||
@@ -280,7 +280,7 @@ static inline void check_daddiu(void) | |||
280 | "daddu %1, %2\n\t" | 280 | "daddu %1, %2\n\t" |
281 | ".set pop" | 281 | ".set pop" |
282 | : "=&r" (v), "=&r" (w), "=&r" (tmp) | 282 | : "=&r" (v), "=&r" (w), "=&r" (tmp) |
283 | : "I" (0xffffffffffffdb9a), "I" (0x1234)); | 283 | : "I" (0xffffffffffffdb9aUL), "I" (0x1234)); |
284 | 284 | ||
285 | if (v == w) { | 285 | if (v == w) { |
286 | printk("no.\n"); | 286 | printk("no.\n"); |
@@ -296,7 +296,7 @@ static inline void check_daddiu(void) | |||
296 | "addiu %1, $0, %4\n\t" | 296 | "addiu %1, $0, %4\n\t" |
297 | "daddu %1, %2" | 297 | "daddu %1, %2" |
298 | : "=&r" (v), "=&r" (w), "=&r" (tmp) | 298 | : "=&r" (v), "=&r" (w), "=&r" (tmp) |
299 | : "I" (0xffffffffffffdb9a), "I" (0x1234)); | 299 | : "I" (0xffffffffffffdb9aUL), "I" (0x1234)); |
300 | 300 | ||
301 | if (v == w) { | 301 | if (v == w) { |
302 | printk("yes.\n"); | 302 | printk("yes.\n"); |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 58b3b14873cb..8c2c359a05f4 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -121,6 +121,7 @@ static inline void check_wait(void) | |||
121 | case CPU_24K: | 121 | case CPU_24K: |
122 | case CPU_25KF: | 122 | case CPU_25KF: |
123 | case CPU_34K: | 123 | case CPU_34K: |
124 | case CPU_74K: | ||
124 | case CPU_PR4450: | 125 | case CPU_PR4450: |
125 | cpu_wait = r4k_wait; | 126 | cpu_wait = r4k_wait; |
126 | printk(" available.\n"); | 127 | printk(" available.\n"); |
@@ -432,6 +433,15 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c) | |||
432 | MIPS_CPU_LLSC; | 433 | MIPS_CPU_LLSC; |
433 | c->tlbsize = 64; | 434 | c->tlbsize = 64; |
434 | break; | 435 | break; |
436 | case PRID_IMP_R14000: | ||
437 | c->cputype = CPU_R14000; | ||
438 | c->isa_level = MIPS_CPU_ISA_IV; | ||
439 | c->options = MIPS_CPU_TLB | MIPS_CPU_4K_CACHE | MIPS_CPU_4KEX | | ||
440 | MIPS_CPU_FPU | MIPS_CPU_32FPR | | ||
441 | MIPS_CPU_COUNTER | MIPS_CPU_WATCH | | ||
442 | MIPS_CPU_LLSC; | ||
443 | c->tlbsize = 64; | ||
444 | break; | ||
435 | } | 445 | } |
436 | } | 446 | } |
437 | 447 | ||
@@ -593,6 +603,9 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c) | |||
593 | case PRID_IMP_34K: | 603 | case PRID_IMP_34K: |
594 | c->cputype = CPU_34K; | 604 | c->cputype = CPU_34K; |
595 | break; | 605 | break; |
606 | case PRID_IMP_74K: | ||
607 | c->cputype = CPU_74K; | ||
608 | break; | ||
596 | } | 609 | } |
597 | } | 610 | } |
598 | 611 | ||
@@ -642,7 +655,7 @@ static inline void cpu_probe_sibyte(struct cpuinfo_mips *c) | |||
642 | case PRID_IMP_SB1: | 655 | case PRID_IMP_SB1: |
643 | c->cputype = CPU_SB1; | 656 | c->cputype = CPU_SB1; |
644 | /* FPU in pass1 is known to have issues. */ | 657 | /* FPU in pass1 is known to have issues. */ |
645 | if ((c->processor_id & 0xff) < 0x20) | 658 | if ((c->processor_id & 0xff) < 0x02) |
646 | c->options &= ~(MIPS_CPU_FPU | MIPS_CPU_32FPR); | 659 | c->options &= ~(MIPS_CPU_FPU | MIPS_CPU_32FPR); |
647 | break; | 660 | break; |
648 | case PRID_IMP_SB1A: | 661 | case PRID_IMP_SB1A: |
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index d101d2fb24ca..a9c6de1b9542 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S | |||
@@ -101,7 +101,7 @@ FEXPORT(restore_all) # restore full frame | |||
101 | EMT | 101 | EMT |
102 | 1: | 102 | 1: |
103 | mfc0 v1, CP0_TCSTATUS | 103 | mfc0 v1, CP0_TCSTATUS |
104 | /* We set IXMT above, XOR should cler it here */ | 104 | /* We set IXMT above, XOR should clear it here */ |
105 | xori v1, v1, TCSTATUS_IXMT | 105 | xori v1, v1, TCSTATUS_IXMT |
106 | or v1, v0, v1 | 106 | or v1, v0, v1 |
107 | mtc0 v1, CP0_TCSTATUS | 107 | mtc0 v1, CP0_TCSTATUS |
diff --git a/arch/mips/kernel/gdb-low.S b/arch/mips/kernel/gdb-low.S index 10f28fb9f008..5fd7a8af0c62 100644 --- a/arch/mips/kernel/gdb-low.S +++ b/arch/mips/kernel/gdb-low.S | |||
@@ -54,9 +54,11 @@ | |||
54 | */ | 54 | */ |
55 | mfc0 k0, CP0_CAUSE | 55 | mfc0 k0, CP0_CAUSE |
56 | andi k0, k0, 0x7c | 56 | andi k0, k0, 0x7c |
57 | add k1, k1, k0 | 57 | #ifdef CONFIG_64BIT |
58 | PTR_L k0, saved_vectors(k1) | 58 | dsll k0, k0, 1 |
59 | jr k0 | 59 | #endif |
60 | PTR_L k1, saved_vectors(k0) | ||
61 | jr k1 | ||
60 | nop | 62 | nop |
61 | 1: | 63 | 1: |
62 | move k0, sp | 64 | move k0, sp |
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 2125ba5f1d9b..0cb8ed5662f3 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
@@ -302,11 +302,11 @@ static struct irqaction irq2 = { | |||
302 | }; | 302 | }; |
303 | 303 | ||
304 | static struct resource pic1_io_resource = { | 304 | static struct resource pic1_io_resource = { |
305 | "pic1", 0x20, 0x3f, IORESOURCE_BUSY | 305 | .name = "pic1", .start = 0x20, .end = 0x3f, .flags = IORESOURCE_BUSY |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static struct resource pic2_io_resource = { | 308 | static struct resource pic2_io_resource = { |
309 | "pic2", 0xa0, 0xbf, IORESOURCE_BUSY | 309 | .name = "pic2", .start = 0xa0, .end = 0xbf, .flags = IORESOURCE_BUSY |
310 | }; | 310 | }; |
311 | 311 | ||
312 | /* | 312 | /* |
diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c index 8150f071f80a..a9bf6cc3abd1 100644 --- a/arch/mips/kernel/irixsig.c +++ b/arch/mips/kernel/irixsig.c | |||
@@ -260,7 +260,7 @@ irix_sigreturn(struct pt_regs *regs) | |||
260 | 260 | ||
261 | for(i = 0; i < 32; i++) | 261 | for(i = 0; i < 32; i++) |
262 | error |= __get_user(fregs[i], &context->fpregs[i]); | 262 | error |= __get_user(fregs[i], &context->fpregs[i]); |
263 | error |= __get_user(current->thread.fpu.hard.fcr31, &context->fpcsr); | 263 | error |= __get_user(current->thread.fpu.fcr31, &context->fpcsr); |
264 | } | 264 | } |
265 | 265 | ||
266 | /* XXX do sigstack crapola here... XXX */ | 266 | /* XXX do sigstack crapola here... XXX */ |
diff --git a/arch/mips/kernel/module.c b/arch/mips/kernel/module.c index e54a7f442f8a..d7bf0215bc1d 100644 --- a/arch/mips/kernel/module.c +++ b/arch/mips/kernel/module.c | |||
@@ -288,6 +288,9 @@ int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, | |||
288 | sym = (Elf_Sym *)sechdrs[symindex].sh_addr | 288 | sym = (Elf_Sym *)sechdrs[symindex].sh_addr |
289 | + ELF_MIPS_R_SYM(rel[i]); | 289 | + ELF_MIPS_R_SYM(rel[i]); |
290 | if (!sym->st_value) { | 290 | if (!sym->st_value) { |
291 | /* Ignore unresolved weak symbol */ | ||
292 | if (ELF_ST_BIND(sym->st_info) == STB_WEAK) | ||
293 | continue; | ||
291 | printk(KERN_WARNING "%s: Unknown symbol %s\n", | 294 | printk(KERN_WARNING "%s: Unknown symbol %s\n", |
292 | me->name, strtab + sym->st_name); | 295 | me->name, strtab + sym->st_name); |
293 | return -ENOENT; | 296 | return -ENOENT; |
@@ -325,6 +328,9 @@ int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, | |||
325 | sym = (Elf_Sym *)sechdrs[symindex].sh_addr | 328 | sym = (Elf_Sym *)sechdrs[symindex].sh_addr |
326 | + ELF_MIPS_R_SYM(rel[i]); | 329 | + ELF_MIPS_R_SYM(rel[i]); |
327 | if (!sym->st_value) { | 330 | if (!sym->st_value) { |
331 | /* Ignore unresolved weak symbol */ | ||
332 | if (ELF_ST_BIND(sym->st_info) == STB_WEAK) | ||
333 | continue; | ||
328 | printk(KERN_WARNING "%s: Unknown symbol %s\n", | 334 | printk(KERN_WARNING "%s: Unknown symbol %s\n", |
329 | me->name, strtab + sym->st_name); | 335 | me->name, strtab + sym->st_name); |
330 | return -ENOENT; | 336 | return -ENOENT; |
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 84ab959f924a..9def554f335b 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c | |||
@@ -42,6 +42,7 @@ static const char *cpu_name[] = { | |||
42 | [CPU_R8000] = "R8000", | 42 | [CPU_R8000] = "R8000", |
43 | [CPU_R10000] = "R10000", | 43 | [CPU_R10000] = "R10000", |
44 | [CPU_R12000] = "R12000", | 44 | [CPU_R12000] = "R12000", |
45 | [CPU_R14000] = "R14000", | ||
45 | [CPU_R4300] = "R4300", | 46 | [CPU_R4300] = "R4300", |
46 | [CPU_R4650] = "R4650", | 47 | [CPU_R4650] = "R4650", |
47 | [CPU_R4700] = "R4700", | 48 | [CPU_R4700] = "R4700", |
@@ -74,6 +75,7 @@ static const char *cpu_name[] = { | |||
74 | [CPU_24K] = "MIPS 24K", | 75 | [CPU_24K] = "MIPS 24K", |
75 | [CPU_25KF] = "MIPS 25Kf", | 76 | [CPU_25KF] = "MIPS 25Kf", |
76 | [CPU_34K] = "MIPS 34K", | 77 | [CPU_34K] = "MIPS 34K", |
78 | [CPU_74K] = "MIPS 74K", | ||
77 | [CPU_VR4111] = "NEC VR4111", | 79 | [CPU_VR4111] = "NEC VR4111", |
78 | [CPU_VR4121] = "NEC VR4121", | 80 | [CPU_VR4121] = "NEC VR4121", |
79 | [CPU_VR4122] = "NEC VR4122", | 81 | [CPU_VR4122] = "NEC VR4122", |
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index 9b4733c12395..1d44025188d8 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c | |||
@@ -120,11 +120,11 @@ int ptrace_getfpregs (struct task_struct *child, __u32 __user *data) | |||
120 | __put_user ((__u64) -1, i + (__u64 __user *) data); | 120 | __put_user ((__u64) -1, i + (__u64 __user *) data); |
121 | } | 121 | } |
122 | 122 | ||
123 | __put_user (child->thread.fpu.fcr31, data + 64); | ||
124 | |||
123 | if (cpu_has_fpu) { | 125 | if (cpu_has_fpu) { |
124 | unsigned int flags, tmp; | 126 | unsigned int flags, tmp; |
125 | 127 | ||
126 | __put_user (child->thread.fpu.hard.fcr31, data + 64); | ||
127 | |||
128 | preempt_disable(); | 128 | preempt_disable(); |
129 | if (cpu_has_mipsmt) { | 129 | if (cpu_has_mipsmt) { |
130 | unsigned int vpflags = dvpe(); | 130 | unsigned int vpflags = dvpe(); |
@@ -142,7 +142,6 @@ int ptrace_getfpregs (struct task_struct *child, __u32 __user *data) | |||
142 | preempt_enable(); | 142 | preempt_enable(); |
143 | __put_user (tmp, data + 65); | 143 | __put_user (tmp, data + 65); |
144 | } else { | 144 | } else { |
145 | __put_user (child->thread.fpu.soft.fcr31, data + 64); | ||
146 | __put_user ((__u32) 0, data + 65); | 145 | __put_user ((__u32) 0, data + 65); |
147 | } | 146 | } |
148 | 147 | ||
@@ -162,10 +161,7 @@ int ptrace_setfpregs (struct task_struct *child, __u32 __user *data) | |||
162 | for (i = 0; i < 32; i++) | 161 | for (i = 0; i < 32; i++) |
163 | __get_user (fregs[i], i + (__u64 __user *) data); | 162 | __get_user (fregs[i], i + (__u64 __user *) data); |
164 | 163 | ||
165 | if (cpu_has_fpu) | 164 | __get_user (child->thread.fpu.fcr31, data + 64); |
166 | __get_user (child->thread.fpu.hard.fcr31, data + 64); | ||
167 | else | ||
168 | __get_user (child->thread.fpu.soft.fcr31, data + 64); | ||
169 | 165 | ||
170 | /* FIR may not be written. */ | 166 | /* FIR may not be written. */ |
171 | 167 | ||
@@ -241,10 +237,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
241 | tmp = regs->lo; | 237 | tmp = regs->lo; |
242 | break; | 238 | break; |
243 | case FPC_CSR: | 239 | case FPC_CSR: |
244 | if (cpu_has_fpu) | 240 | tmp = child->thread.fpu.fcr31; |
245 | tmp = child->thread.fpu.hard.fcr31; | ||
246 | else | ||
247 | tmp = child->thread.fpu.soft.fcr31; | ||
248 | break; | 241 | break; |
249 | case FPC_EIR: { /* implementation / version register */ | 242 | case FPC_EIR: { /* implementation / version register */ |
250 | unsigned int flags; | 243 | unsigned int flags; |
@@ -336,9 +329,9 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
336 | 329 | ||
337 | if (!tsk_used_math(child)) { | 330 | if (!tsk_used_math(child)) { |
338 | /* FP not yet used */ | 331 | /* FP not yet used */ |
339 | memset(&child->thread.fpu.hard, ~0, | 332 | memset(&child->thread.fpu, ~0, |
340 | sizeof(child->thread.fpu.hard)); | 333 | sizeof(child->thread.fpu)); |
341 | child->thread.fpu.hard.fcr31 = 0; | 334 | child->thread.fpu.fcr31 = 0; |
342 | } | 335 | } |
343 | #ifdef CONFIG_32BIT | 336 | #ifdef CONFIG_32BIT |
344 | /* | 337 | /* |
@@ -369,10 +362,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
369 | regs->lo = data; | 362 | regs->lo = data; |
370 | break; | 363 | break; |
371 | case FPC_CSR: | 364 | case FPC_CSR: |
372 | if (cpu_has_fpu) | 365 | child->thread.fpu.fcr31 = data; |
373 | child->thread.fpu.hard.fcr31 = data; | ||
374 | else | ||
375 | child->thread.fpu.soft.fcr31 = data; | ||
376 | break; | 366 | break; |
377 | case DSP_BASE ... DSP_BASE + 5: { | 367 | case DSP_BASE ... DSP_BASE + 5: { |
378 | dspreg_t *dregs; | 368 | dspreg_t *dregs; |
diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c index 8704dc0496ea..f40ecd8be05f 100644 --- a/arch/mips/kernel/ptrace32.c +++ b/arch/mips/kernel/ptrace32.c | |||
@@ -166,10 +166,7 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data) | |||
166 | tmp = regs->lo; | 166 | tmp = regs->lo; |
167 | break; | 167 | break; |
168 | case FPC_CSR: | 168 | case FPC_CSR: |
169 | if (cpu_has_fpu) | 169 | tmp = child->thread.fpu.fcr31; |
170 | tmp = child->thread.fpu.hard.fcr31; | ||
171 | else | ||
172 | tmp = child->thread.fpu.soft.fcr31; | ||
173 | break; | 170 | break; |
174 | case FPC_EIR: { /* implementation / version register */ | 171 | case FPC_EIR: { /* implementation / version register */ |
175 | unsigned int flags; | 172 | unsigned int flags; |
@@ -288,9 +285,9 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data) | |||
288 | 285 | ||
289 | if (!tsk_used_math(child)) { | 286 | if (!tsk_used_math(child)) { |
290 | /* FP not yet used */ | 287 | /* FP not yet used */ |
291 | memset(&child->thread.fpu.hard, ~0, | 288 | memset(&child->thread.fpu, ~0, |
292 | sizeof(child->thread.fpu.hard)); | 289 | sizeof(child->thread.fpu)); |
293 | child->thread.fpu.hard.fcr31 = 0; | 290 | child->thread.fpu.fcr31 = 0; |
294 | } | 291 | } |
295 | /* | 292 | /* |
296 | * The odd registers are actually the high order bits | 293 | * The odd registers are actually the high order bits |
@@ -318,10 +315,7 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data) | |||
318 | regs->lo = data; | 315 | regs->lo = data; |
319 | break; | 316 | break; |
320 | case FPC_CSR: | 317 | case FPC_CSR: |
321 | if (cpu_has_fpu) | 318 | child->thread.fpu.fcr31 = data; |
322 | child->thread.fpu.hard.fcr31 = data; | ||
323 | else | ||
324 | child->thread.fpu.soft.fcr31 = data; | ||
325 | break; | 319 | break; |
326 | case DSP_BASE ... DSP_BASE + 5: { | 320 | case DSP_BASE ... DSP_BASE + 5: { |
327 | dspreg_t *dregs; | 321 | dspreg_t *dregs; |
diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S index 0b1b54acee9f..db94e556fc97 100644 --- a/arch/mips/kernel/r4k_switch.S +++ b/arch/mips/kernel/r4k_switch.S | |||
@@ -75,8 +75,8 @@ | |||
75 | and t0, t0, t1 | 75 | and t0, t0, t1 |
76 | LONG_S t0, ST_OFF(t3) | 76 | LONG_S t0, ST_OFF(t3) |
77 | 77 | ||
78 | fpu_save_double a0 t1 t0 t2 # c0_status passed in t1 | 78 | fpu_save_double a0 t0 t1 # c0_status passed in t0 |
79 | # clobbers t0 and t2 | 79 | # clobbers t1 |
80 | 1: | 80 | 1: |
81 | 81 | ||
82 | /* | 82 | /* |
@@ -129,9 +129,9 @@ | |||
129 | */ | 129 | */ |
130 | LEAF(_save_fp) | 130 | LEAF(_save_fp) |
131 | #ifdef CONFIG_64BIT | 131 | #ifdef CONFIG_64BIT |
132 | mfc0 t1, CP0_STATUS | 132 | mfc0 t0, CP0_STATUS |
133 | #endif | 133 | #endif |
134 | fpu_save_double a0 t1 t0 t2 # clobbers t1 | 134 | fpu_save_double a0 t0 t1 # clobbers t1 |
135 | jr ra | 135 | jr ra |
136 | END(_save_fp) | 136 | END(_save_fp) |
137 | 137 | ||
@@ -139,7 +139,10 @@ LEAF(_save_fp) | |||
139 | * Restore a thread's fp context. | 139 | * Restore a thread's fp context. |
140 | */ | 140 | */ |
141 | LEAF(_restore_fp) | 141 | LEAF(_restore_fp) |
142 | fpu_restore_double a0, t1 # clobbers t1 | 142 | #ifdef CONFIG_64BIT |
143 | mfc0 t0, CP0_STATUS | ||
144 | #endif | ||
145 | fpu_restore_double a0 t0 t1 # clobbers t1 | ||
143 | jr ra | 146 | jr ra |
144 | END(_restore_fp) | 147 | END(_restore_fp) |
145 | 148 | ||
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index b53a9207f530..8efb23a84131 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -209,7 +209,7 @@ sys_call_table: | |||
209 | PTR sys_fork | 209 | PTR sys_fork |
210 | PTR sys_read | 210 | PTR sys_read |
211 | PTR sys_write | 211 | PTR sys_write |
212 | PTR sys_open /* 4005 */ | 212 | PTR compat_sys_open /* 4005 */ |
213 | PTR sys_close | 213 | PTR sys_close |
214 | PTR sys_waitpid | 214 | PTR sys_waitpid |
215 | PTR sys_creat | 215 | PTR sys_creat |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index bcf1b10e518f..bfcec8d9bfe4 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -246,7 +246,7 @@ static inline int parse_rd_cmdline(unsigned long* rd_start, unsigned long* rd_en | |||
246 | #ifdef CONFIG_64BIT | 246 | #ifdef CONFIG_64BIT |
247 | /* HACK: Guess if the sign extension was forgotten */ | 247 | /* HACK: Guess if the sign extension was forgotten */ |
248 | if (start > 0x0000000080000000 && start < 0x00000000ffffffff) | 248 | if (start > 0x0000000080000000 && start < 0x00000000ffffffff) |
249 | start |= 0xffffffff00000000; | 249 | start |= 0xffffffff00000000UL; |
250 | #endif | 250 | #endif |
251 | 251 | ||
252 | end = start + size; | 252 | end = start + size; |
@@ -355,8 +355,6 @@ static inline void bootmem_init(void) | |||
355 | } | 355 | } |
356 | #endif | 356 | #endif |
357 | 357 | ||
358 | memory_present(0, first_usable_pfn, max_low_pfn); | ||
359 | |||
360 | /* Initialize the boot-time allocator with low memory only. */ | 358 | /* Initialize the boot-time allocator with low memory only. */ |
361 | bootmap_size = init_bootmem(first_usable_pfn, max_low_pfn); | 359 | bootmap_size = init_bootmem(first_usable_pfn, max_low_pfn); |
362 | 360 | ||
@@ -410,6 +408,7 @@ static inline void bootmem_init(void) | |||
410 | 408 | ||
411 | /* Register lowmem ranges */ | 409 | /* Register lowmem ranges */ |
412 | free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(size)); | 410 | free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(size)); |
411 | memory_present(0, curr_pfn, curr_pfn + size - 1); | ||
413 | } | 412 | } |
414 | 413 | ||
415 | /* Reserve the bootmap memory. */ | 414 | /* Reserve the bootmap memory. */ |
@@ -419,17 +418,20 @@ static inline void bootmem_init(void) | |||
419 | #ifdef CONFIG_BLK_DEV_INITRD | 418 | #ifdef CONFIG_BLK_DEV_INITRD |
420 | initrd_below_start_ok = 1; | 419 | initrd_below_start_ok = 1; |
421 | if (initrd_start) { | 420 | if (initrd_start) { |
422 | unsigned long initrd_size = ((unsigned char *)initrd_end) - ((unsigned char *)initrd_start); | 421 | unsigned long initrd_size = ((unsigned char *)initrd_end) - |
422 | ((unsigned char *)initrd_start); | ||
423 | const int width = sizeof(long) * 2; | ||
424 | |||
423 | printk("Initial ramdisk at: 0x%p (%lu bytes)\n", | 425 | printk("Initial ramdisk at: 0x%p (%lu bytes)\n", |
424 | (void *)initrd_start, initrd_size); | 426 | (void *)initrd_start, initrd_size); |
425 | 427 | ||
426 | if (CPHYSADDR(initrd_end) > PFN_PHYS(max_low_pfn)) { | 428 | if (CPHYSADDR(initrd_end) > PFN_PHYS(max_low_pfn)) { |
427 | printk("initrd extends beyond end of memory " | 429 | printk("initrd extends beyond end of memory " |
428 | "(0x%0*Lx > 0x%0*Lx)\ndisabling initrd\n", | 430 | "(0x%0*Lx > 0x%0*Lx)\ndisabling initrd\n", |
429 | sizeof(long) * 2, | 431 | width, |
430 | (unsigned long long)CPHYSADDR(initrd_end), | 432 | (unsigned long long) CPHYSADDR(initrd_end), |
431 | sizeof(long) * 2, | 433 | width, |
432 | (unsigned long long)PFN_PHYS(max_low_pfn)); | 434 | (unsigned long long) PFN_PHYS(max_low_pfn)); |
433 | initrd_start = initrd_end = 0; | 435 | initrd_start = initrd_end = 0; |
434 | initrd_reserve_bootmem = 0; | 436 | initrd_reserve_bootmem = 0; |
435 | } | 437 | } |
@@ -440,6 +442,48 @@ static inline void bootmem_init(void) | |||
440 | #endif /* CONFIG_BLK_DEV_INITRD */ | 442 | #endif /* CONFIG_BLK_DEV_INITRD */ |
441 | } | 443 | } |
442 | 444 | ||
445 | /* | ||
446 | * arch_mem_init - initialize memory managment subsystem | ||
447 | * | ||
448 | * o plat_mem_setup() detects the memory configuration and will record detected | ||
449 | * memory areas using add_memory_region. | ||
450 | * o parse_cmdline_early() parses the command line for mem= options which, | ||
451 | * iff detected, will override the results of the automatic detection. | ||
452 | * | ||
453 | * At this stage the memory configuration of the system is known to the | ||
454 | * kernel but generic memory managment system is still entirely uninitialized. | ||
455 | * | ||
456 | * o bootmem_init() | ||
457 | * o sparse_init() | ||
458 | * o paging_init() | ||
459 | * | ||
460 | * At this stage the bootmem allocator is ready to use. | ||
461 | * | ||
462 | * NOTE: historically plat_mem_setup did the entire platform initialization. | ||
463 | * This was rather impractical because it meant plat_mem_setup had to | ||
464 | * get away without any kind of memory allocator. To keep old code from | ||
465 | * breaking plat_setup was just renamed to plat_setup and a second platform | ||
466 | * initialization hook for anything else was introduced. | ||
467 | */ | ||
468 | |||
469 | extern void plat_mem_setup(void); | ||
470 | |||
471 | static void __init arch_mem_init(char **cmdline_p) | ||
472 | { | ||
473 | /* call board setup routine */ | ||
474 | plat_mem_setup(); | ||
475 | |||
476 | strlcpy(command_line, arcs_cmdline, sizeof(command_line)); | ||
477 | strlcpy(saved_command_line, command_line, COMMAND_LINE_SIZE); | ||
478 | |||
479 | *cmdline_p = command_line; | ||
480 | |||
481 | parse_cmdline_early(); | ||
482 | bootmem_init(); | ||
483 | sparse_init(); | ||
484 | paging_init(); | ||
485 | } | ||
486 | |||
443 | static inline void resource_init(void) | 487 | static inline void resource_init(void) |
444 | { | 488 | { |
445 | int i; | 489 | int i; |
@@ -493,8 +537,6 @@ static inline void resource_init(void) | |||
493 | #undef MAXMEM | 537 | #undef MAXMEM |
494 | #undef MAXMEM_PFN | 538 | #undef MAXMEM_PFN |
495 | 539 | ||
496 | extern void plat_setup(void); | ||
497 | |||
498 | void __init setup_arch(char **cmdline_p) | 540 | void __init setup_arch(char **cmdline_p) |
499 | { | 541 | { |
500 | cpu_probe(); | 542 | cpu_probe(); |
@@ -509,18 +551,8 @@ void __init setup_arch(char **cmdline_p) | |||
509 | #endif | 551 | #endif |
510 | #endif | 552 | #endif |
511 | 553 | ||
512 | /* call board setup routine */ | 554 | arch_mem_init(cmdline_p); |
513 | plat_setup(); | ||
514 | |||
515 | strlcpy(command_line, arcs_cmdline, sizeof(command_line)); | ||
516 | strlcpy(saved_command_line, command_line, COMMAND_LINE_SIZE); | ||
517 | |||
518 | *cmdline_p = command_line; | ||
519 | 555 | ||
520 | parse_cmdline_early(); | ||
521 | bootmem_init(); | ||
522 | sparse_init(); | ||
523 | paging_init(); | ||
524 | resource_init(); | 556 | resource_init(); |
525 | #ifdef CONFIG_SMP | 557 | #ifdef CONFIG_SMP |
526 | plat_smp_setup(); | 558 | plat_smp_setup(); |
diff --git a/arch/mips/kernel/signal-common.h b/arch/mips/kernel/signal-common.h index 3ca786215d48..ce6cb915c0a7 100644 --- a/arch/mips/kernel/signal-common.h +++ b/arch/mips/kernel/signal-common.h | |||
@@ -31,7 +31,6 @@ setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
31 | save_gp_reg(31); | 31 | save_gp_reg(31); |
32 | #undef save_gp_reg | 32 | #undef save_gp_reg |
33 | 33 | ||
34 | #ifdef CONFIG_32BIT | ||
35 | err |= __put_user(regs->hi, &sc->sc_mdhi); | 34 | err |= __put_user(regs->hi, &sc->sc_mdhi); |
36 | err |= __put_user(regs->lo, &sc->sc_mdlo); | 35 | err |= __put_user(regs->lo, &sc->sc_mdlo); |
37 | if (cpu_has_dsp) { | 36 | if (cpu_has_dsp) { |
@@ -43,20 +42,6 @@ setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
43 | err |= __put_user(mflo3(), &sc->sc_lo3); | 42 | err |= __put_user(mflo3(), &sc->sc_lo3); |
44 | err |= __put_user(rddsp(DSP_MASK), &sc->sc_dsp); | 43 | err |= __put_user(rddsp(DSP_MASK), &sc->sc_dsp); |
45 | } | 44 | } |
46 | #endif | ||
47 | #ifdef CONFIG_64BIT | ||
48 | err |= __put_user(regs->hi, &sc->sc_hi[0]); | ||
49 | err |= __put_user(regs->lo, &sc->sc_lo[0]); | ||
50 | if (cpu_has_dsp) { | ||
51 | err |= __put_user(mfhi1(), &sc->sc_hi[1]); | ||
52 | err |= __put_user(mflo1(), &sc->sc_lo[1]); | ||
53 | err |= __put_user(mfhi2(), &sc->sc_hi[2]); | ||
54 | err |= __put_user(mflo2(), &sc->sc_lo[2]); | ||
55 | err |= __put_user(mfhi3(), &sc->sc_hi[3]); | ||
56 | err |= __put_user(mflo3(), &sc->sc_lo[3]); | ||
57 | err |= __put_user(rddsp(DSP_MASK), &sc->sc_dsp); | ||
58 | } | ||
59 | #endif | ||
60 | 45 | ||
61 | err |= __put_user(!!used_math(), &sc->sc_used_math); | 46 | err |= __put_user(!!used_math(), &sc->sc_used_math); |
62 | 47 | ||
@@ -92,7 +77,6 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
92 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | 77 | current_thread_info()->restart_block.fn = do_no_restart_syscall; |
93 | 78 | ||
94 | err |= __get_user(regs->cp0_epc, &sc->sc_pc); | 79 | err |= __get_user(regs->cp0_epc, &sc->sc_pc); |
95 | #ifdef CONFIG_32BIT | ||
96 | err |= __get_user(regs->hi, &sc->sc_mdhi); | 80 | err |= __get_user(regs->hi, &sc->sc_mdhi); |
97 | err |= __get_user(regs->lo, &sc->sc_mdlo); | 81 | err |= __get_user(regs->lo, &sc->sc_mdlo); |
98 | if (cpu_has_dsp) { | 82 | if (cpu_has_dsp) { |
@@ -104,20 +88,6 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
104 | err |= __get_user(treg, &sc->sc_lo3); mtlo3(treg); | 88 | err |= __get_user(treg, &sc->sc_lo3); mtlo3(treg); |
105 | err |= __get_user(treg, &sc->sc_dsp); wrdsp(treg, DSP_MASK); | 89 | err |= __get_user(treg, &sc->sc_dsp); wrdsp(treg, DSP_MASK); |
106 | } | 90 | } |
107 | #endif | ||
108 | #ifdef CONFIG_64BIT | ||
109 | err |= __get_user(regs->hi, &sc->sc_hi[0]); | ||
110 | err |= __get_user(regs->lo, &sc->sc_lo[0]); | ||
111 | if (cpu_has_dsp) { | ||
112 | err |= __get_user(treg, &sc->sc_hi[1]); mthi1(treg); | ||
113 | err |= __get_user(treg, &sc->sc_lo[1]); mthi1(treg); | ||
114 | err |= __get_user(treg, &sc->sc_hi[2]); mthi2(treg); | ||
115 | err |= __get_user(treg, &sc->sc_lo[2]); mthi2(treg); | ||
116 | err |= __get_user(treg, &sc->sc_hi[3]); mthi3(treg); | ||
117 | err |= __get_user(treg, &sc->sc_lo[3]); mthi3(treg); | ||
118 | err |= __get_user(treg, &sc->sc_dsp); wrdsp(treg, DSP_MASK); | ||
119 | } | ||
120 | #endif | ||
121 | 91 | ||
122 | #define restore_gp_reg(i) do { \ | 92 | #define restore_gp_reg(i) do { \ |
123 | err |= __get_user(regs->regs[i], &sc->sc_regs[i]); \ | 93 | err |= __get_user(regs->regs[i], &sc->sc_regs[i]); \ |
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index d42f358754ad..298f82fe8440 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
@@ -247,6 +247,9 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
247 | current_thread_info()->cpu = 0; | 247 | current_thread_info()->cpu = 0; |
248 | smp_tune_scheduling(); | 248 | smp_tune_scheduling(); |
249 | plat_prepare_cpus(max_cpus); | 249 | plat_prepare_cpus(max_cpus); |
250 | #ifndef CONFIG_HOTPLUG_CPU | ||
251 | cpu_present_map = cpu_possible_map; | ||
252 | #endif | ||
250 | } | 253 | } |
251 | 254 | ||
252 | /* preload SMP state for boot cpu */ | 255 | /* preload SMP state for boot cpu */ |
@@ -442,7 +445,7 @@ static int __init topology_init(void) | |||
442 | int cpu; | 445 | int cpu; |
443 | int ret; | 446 | int ret; |
444 | 447 | ||
445 | for_each_cpu(cpu) { | 448 | for_each_present_cpu(cpu) { |
446 | ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu, NULL); | 449 | ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu, NULL); |
447 | if (ret) | 450 | if (ret) |
448 | printk(KERN_WARNING "topology_init: register_cpu %d " | 451 | printk(KERN_WARNING "topology_init: register_cpu %d " |
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 2aeaa2fd4b32..5e8a18a8e2bd 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
@@ -276,31 +276,9 @@ void sys_set_thread_area(unsigned long addr) | |||
276 | 276 | ||
277 | asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | 277 | asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) |
278 | { | 278 | { |
279 | int tmp, len; | 279 | int tmp; |
280 | char __user *name; | ||
281 | 280 | ||
282 | switch(cmd) { | 281 | switch(cmd) { |
283 | case SETNAME: { | ||
284 | char nodename[__NEW_UTS_LEN + 1]; | ||
285 | |||
286 | if (!capable(CAP_SYS_ADMIN)) | ||
287 | return -EPERM; | ||
288 | |||
289 | name = (char __user *) arg1; | ||
290 | |||
291 | len = strncpy_from_user(nodename, name, __NEW_UTS_LEN); | ||
292 | if (len < 0) | ||
293 | return -EFAULT; | ||
294 | |||
295 | down_write(&uts_sem); | ||
296 | strncpy(system_utsname.nodename, nodename, len); | ||
297 | nodename[__NEW_UTS_LEN] = '\0'; | ||
298 | strlcpy(system_utsname.nodename, nodename, | ||
299 | sizeof(system_utsname.nodename)); | ||
300 | up_write(&uts_sem); | ||
301 | return 0; | ||
302 | } | ||
303 | |||
304 | case MIPS_ATOMIC_SET: | 282 | case MIPS_ATOMIC_SET: |
305 | printk(KERN_CRIT "How did I get here?\n"); | 283 | printk(KERN_CRIT "How did I get here?\n"); |
306 | return -EINVAL; | 284 | return -EINVAL; |
@@ -313,9 +291,6 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | |||
313 | case FLUSH_CACHE: | 291 | case FLUSH_CACHE: |
314 | __flush_cache_all(); | 292 | __flush_cache_all(); |
315 | return 0; | 293 | return 0; |
316 | |||
317 | case MIPS_RDNVRAM: | ||
318 | return -EIO; | ||
319 | } | 294 | } |
320 | 295 | ||
321 | return -EINVAL; | 296 | return -EINVAL; |
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 4901f0a37fca..ad16eceb24dd 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -65,7 +65,7 @@ extern asmlinkage void handle_mcheck(void); | |||
65 | extern asmlinkage void handle_reserved(void); | 65 | extern asmlinkage void handle_reserved(void); |
66 | 66 | ||
67 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, | 67 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, |
68 | struct mips_fpu_soft_struct *ctx); | 68 | struct mips_fpu_struct *ctx); |
69 | 69 | ||
70 | void (*board_be_init)(void); | 70 | void (*board_be_init)(void); |
71 | int (*board_be_handler)(struct pt_regs *regs, int is_fixup); | 71 | int (*board_be_handler)(struct pt_regs *regs, int is_fixup); |
@@ -600,8 +600,7 @@ asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31) | |||
600 | preempt_enable(); | 600 | preempt_enable(); |
601 | 601 | ||
602 | /* Run the emulator */ | 602 | /* Run the emulator */ |
603 | sig = fpu_emulator_cop1Handler (regs, | 603 | sig = fpu_emulator_cop1Handler (regs, ¤t->thread.fpu); |
604 | ¤t->thread.fpu.soft); | ||
605 | 604 | ||
606 | preempt_disable(); | 605 | preempt_disable(); |
607 | 606 | ||
@@ -610,7 +609,7 @@ asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31) | |||
610 | * We can't allow the emulated instruction to leave any of | 609 | * We can't allow the emulated instruction to leave any of |
611 | * the cause bit set in $fcr31. | 610 | * the cause bit set in $fcr31. |
612 | */ | 611 | */ |
613 | current->thread.fpu.soft.fcr31 &= ~FPU_CSR_ALL_X; | 612 | current->thread.fpu.fcr31 &= ~FPU_CSR_ALL_X; |
614 | 613 | ||
615 | /* Restore the hardware register state */ | 614 | /* Restore the hardware register state */ |
616 | restore_fp(current); | 615 | restore_fp(current); |
@@ -755,7 +754,7 @@ asmlinkage void do_cpu(struct pt_regs *regs) | |||
755 | 754 | ||
756 | if (!cpu_has_fpu) { | 755 | if (!cpu_has_fpu) { |
757 | int sig = fpu_emulator_cop1Handler(regs, | 756 | int sig = fpu_emulator_cop1Handler(regs, |
758 | ¤t->thread.fpu.soft); | 757 | ¤t->thread.fpu); |
759 | if (sig) | 758 | if (sig) |
760 | force_sig(sig, current); | 759 | force_sig(sig, current); |
761 | #ifdef CONFIG_MIPS_MT_FPAFF | 760 | #ifdef CONFIG_MIPS_MT_FPAFF |
@@ -819,15 +818,30 @@ asmlinkage void do_watch(struct pt_regs *regs) | |||
819 | 818 | ||
820 | asmlinkage void do_mcheck(struct pt_regs *regs) | 819 | asmlinkage void do_mcheck(struct pt_regs *regs) |
821 | { | 820 | { |
821 | const int field = 2 * sizeof(unsigned long); | ||
822 | int multi_match = regs->cp0_status & ST0_TS; | ||
823 | |||
822 | show_regs(regs); | 824 | show_regs(regs); |
823 | dump_tlb_all(); | 825 | |
826 | if (multi_match) { | ||
827 | printk("Index : %0x\n", read_c0_index()); | ||
828 | printk("Pagemask: %0x\n", read_c0_pagemask()); | ||
829 | printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); | ||
830 | printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); | ||
831 | printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); | ||
832 | printk("\n"); | ||
833 | dump_tlb_all(); | ||
834 | } | ||
835 | |||
836 | show_code((unsigned int *) regs->cp0_epc); | ||
837 | |||
824 | /* | 838 | /* |
825 | * Some chips may have other causes of machine check (e.g. SB1 | 839 | * Some chips may have other causes of machine check (e.g. SB1 |
826 | * graduation timer) | 840 | * graduation timer) |
827 | */ | 841 | */ |
828 | panic("Caught Machine Check exception - %scaused by multiple " | 842 | panic("Caught Machine Check exception - %scaused by multiple " |
829 | "matching entries in the TLB.", | 843 | "matching entries in the TLB.", |
830 | (regs->cp0_status & ST0_TS) ? "" : "not "); | 844 | (multi_match) ? "" : "not "); |
831 | } | 845 | } |
832 | 846 | ||
833 | asmlinkage void do_mt(struct pt_regs *regs) | 847 | asmlinkage void do_mt(struct pt_regs *regs) |
@@ -902,6 +916,7 @@ static inline void parity_protection_init(void) | |||
902 | { | 916 | { |
903 | switch (current_cpu_data.cputype) { | 917 | switch (current_cpu_data.cputype) { |
904 | case CPU_24K: | 918 | case CPU_24K: |
919 | case CPU_34K: | ||
905 | case CPU_5KC: | 920 | case CPU_5KC: |
906 | write_c0_ecc(0x80000000); | 921 | write_c0_ecc(0x80000000); |
907 | back_to_back_c0_hazard(); | 922 | back_to_back_c0_hazard(); |
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S index 14fa00e3cdfa..b84d1f9ce28e 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S | |||
@@ -151,23 +151,13 @@ SECTIONS | |||
151 | 151 | ||
152 | /* This is the MIPS specific mdebug section. */ | 152 | /* This is the MIPS specific mdebug section. */ |
153 | .mdebug : { *(.mdebug) } | 153 | .mdebug : { *(.mdebug) } |
154 | /* These are needed for ELF backends which have not yet been | 154 | |
155 | converted to the new style linker. */ | 155 | STABS_DEBUG |
156 | .stab 0 : { *(.stab) } | 156 | |
157 | .stabstr 0 : { *(.stabstr) } | 157 | DWARF_DEBUG |
158 | /* DWARF debug sections. | 158 | |
159 | Symbols in the .debug DWARF section are relative to the beginning of the | ||
160 | section so we begin .debug at 0. It's not clear yet what needs to happen | ||
161 | for the others. */ | ||
162 | .debug 0 : { *(.debug) } | ||
163 | .debug_srcinfo 0 : { *(.debug_srcinfo) } | ||
164 | .debug_aranges 0 : { *(.debug_aranges) } | ||
165 | .debug_pubnames 0 : { *(.debug_pubnames) } | ||
166 | .debug_sfnames 0 : { *(.debug_sfnames) } | ||
167 | .line 0 : { *(.line) } | ||
168 | /* These must appear regardless of . */ | 159 | /* These must appear regardless of . */ |
169 | .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) } | 160 | .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) } |
170 | .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) } | 161 | .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) } |
171 | .comment : { *(.comment) } | ||
172 | .note : { *(.note) } | 162 | .note : { *(.note) } |
173 | } | 163 | } |
diff --git a/arch/mips/lasat/setup.c b/arch/mips/lasat/setup.c index bb70a8240e61..3f64277429e4 100644 --- a/arch/mips/lasat/setup.c +++ b/arch/mips/lasat/setup.c | |||
@@ -155,7 +155,7 @@ void __init serial_init(void) | |||
155 | } | 155 | } |
156 | #endif | 156 | #endif |
157 | 157 | ||
158 | void __init plat_setup(void) | 158 | void __init plat_mem_setup(void) |
159 | { | 159 | { |
160 | int i; | 160 | int i; |
161 | lasat_misc = &lasat_misc_info[mips_machtype]; | 161 | lasat_misc = &lasat_misc_info[mips_machtype]; |
diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile index cf12caf80774..b225543f5302 100644 --- a/arch/mips/lib/Makefile +++ b/arch/mips/lib/Makefile | |||
@@ -7,4 +7,7 @@ lib-y += csum_partial_copy.o memcpy.o promlib.o strlen_user.o strncpy_user.o \ | |||
7 | 7 | ||
8 | obj-y += iomap.o | 8 | obj-y += iomap.o |
9 | 9 | ||
10 | # libgcc-style stuff needed in the kernel | ||
11 | lib-y += ashldi3.o ashrdi3.o lshrdi3.o | ||
12 | |||
10 | EXTRA_AFLAGS := $(CFLAGS) | 13 | EXTRA_AFLAGS := $(CFLAGS) |
diff --git a/arch/mips/lib/ashldi3.c b/arch/mips/lib/ashldi3.c new file mode 100644 index 000000000000..beb80f316095 --- /dev/null +++ b/arch/mips/lib/ashldi3.c | |||
@@ -0,0 +1,29 @@ | |||
1 | #include <linux/module.h> | ||
2 | |||
3 | #include "libgcc.h" | ||
4 | |||
5 | long long __ashldi3(long long u, word_type b) | ||
6 | { | ||
7 | DWunion uu, w; | ||
8 | word_type bm; | ||
9 | |||
10 | if (b == 0) | ||
11 | return u; | ||
12 | |||
13 | uu.ll = u; | ||
14 | bm = 32 - b; | ||
15 | |||
16 | if (bm <= 0) { | ||
17 | w.s.low = 0; | ||
18 | w.s.high = (unsigned int) uu.s.low << -bm; | ||
19 | } else { | ||
20 | const unsigned int carries = (unsigned int) uu.s.low >> bm; | ||
21 | |||
22 | w.s.low = (unsigned int) uu.s.low << b; | ||
23 | w.s.high = ((unsigned int) uu.s.high << b) | carries; | ||
24 | } | ||
25 | |||
26 | return w.ll; | ||
27 | } | ||
28 | |||
29 | EXPORT_SYMBOL(__ashldi3); | ||
diff --git a/arch/mips/lib/ashrdi3.c b/arch/mips/lib/ashrdi3.c new file mode 100644 index 000000000000..c884a912b660 --- /dev/null +++ b/arch/mips/lib/ashrdi3.c | |||
@@ -0,0 +1,31 @@ | |||
1 | #include <linux/module.h> | ||
2 | |||
3 | #include "libgcc.h" | ||
4 | |||
5 | long long __ashrdi3(long long u, word_type b) | ||
6 | { | ||
7 | DWunion uu, w; | ||
8 | word_type bm; | ||
9 | |||
10 | if (b == 0) | ||
11 | return u; | ||
12 | |||
13 | uu.ll = u; | ||
14 | bm = 32 - b; | ||
15 | |||
16 | if (bm <= 0) { | ||
17 | /* w.s.high = 1..1 or 0..0 */ | ||
18 | w.s.high = | ||
19 | uu.s.high >> 31; | ||
20 | w.s.low = uu.s.high >> -bm; | ||
21 | } else { | ||
22 | const unsigned int carries = (unsigned int) uu.s.high << bm; | ||
23 | |||
24 | w.s.high = uu.s.high >> b; | ||
25 | w.s.low = ((unsigned int) uu.s.low >> b) | carries; | ||
26 | } | ||
27 | |||
28 | return w.ll; | ||
29 | } | ||
30 | |||
31 | EXPORT_SYMBOL(__ashrdi3); | ||
diff --git a/arch/mips/lib/libgcc.h b/arch/mips/lib/libgcc.h new file mode 100644 index 000000000000..3f19d1c5d942 --- /dev/null +++ b/arch/mips/lib/libgcc.h | |||
@@ -0,0 +1,26 @@ | |||
1 | #ifndef __ASM_LIBGCC_H | ||
2 | #define __ASM_LIBGCC_H | ||
3 | |||
4 | #include <asm/byteorder.h> | ||
5 | |||
6 | typedef int word_type __attribute__ ((mode (__word__))); | ||
7 | |||
8 | #ifdef __BIG_ENDIAN | ||
9 | struct DWstruct { | ||
10 | int high, low; | ||
11 | }; | ||
12 | #elif defined(__LITTLE_ENDIAN) | ||
13 | struct DWstruct { | ||
14 | int low, high; | ||
15 | }; | ||
16 | #else | ||
17 | #error I feel sick. | ||
18 | #endif | ||
19 | |||
20 | typedef union | ||
21 | { | ||
22 | struct DWstruct s; | ||
23 | long long ll; | ||
24 | } DWunion; | ||
25 | |||
26 | #endif /* __ASM_LIBGCC_H */ | ||
diff --git a/arch/mips/lib/lshrdi3.c b/arch/mips/lib/lshrdi3.c new file mode 100644 index 000000000000..dcf8d6810b7c --- /dev/null +++ b/arch/mips/lib/lshrdi3.c | |||
@@ -0,0 +1,29 @@ | |||
1 | #include <linux/module.h> | ||
2 | |||
3 | #include "libgcc.h" | ||
4 | |||
5 | long long __lshrdi3(long long u, word_type b) | ||
6 | { | ||
7 | DWunion uu, w; | ||
8 | word_type bm; | ||
9 | |||
10 | if (b == 0) | ||
11 | return u; | ||
12 | |||
13 | uu.ll = u; | ||
14 | bm = 32 - b; | ||
15 | |||
16 | if (bm <= 0) { | ||
17 | w.s.high = 0; | ||
18 | w.s.low = (unsigned int) uu.s.high >> -bm; | ||
19 | } else { | ||
20 | const unsigned int carries = (unsigned int) uu.s.high << bm; | ||
21 | |||
22 | w.s.high = (unsigned int) uu.s.high >> b; | ||
23 | w.s.low = ((unsigned int) uu.s.low >> b) | carries; | ||
24 | } | ||
25 | |||
26 | return w.ll; | ||
27 | } | ||
28 | |||
29 | EXPORT_SYMBOL(__lshrdi3); | ||
diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c index aa5818a0d884..3f0d5d26d506 100644 --- a/arch/mips/math-emu/cp1emu.c +++ b/arch/mips/math-emu/cp1emu.c | |||
@@ -60,15 +60,15 @@ | |||
60 | 60 | ||
61 | /* Function which emulates a floating point instruction. */ | 61 | /* Function which emulates a floating point instruction. */ |
62 | 62 | ||
63 | static int fpu_emu(struct pt_regs *, struct mips_fpu_soft_struct *, | 63 | static int fpu_emu(struct pt_regs *, struct mips_fpu_struct *, |
64 | mips_instruction); | 64 | mips_instruction); |
65 | 65 | ||
66 | #if __mips >= 4 && __mips != 32 | 66 | #if __mips >= 4 && __mips != 32 |
67 | static int fpux_emu(struct pt_regs *, | 67 | static int fpux_emu(struct pt_regs *, |
68 | struct mips_fpu_soft_struct *, mips_instruction); | 68 | struct mips_fpu_struct *, mips_instruction); |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* Further private data for which no space exists in mips_fpu_soft_struct */ | 71 | /* Further private data for which no space exists in mips_fpu_struct */ |
72 | 72 | ||
73 | struct mips_fpu_emulator_stats fpuemustats; | 73 | struct mips_fpu_emulator_stats fpuemustats; |
74 | 74 | ||
@@ -203,7 +203,7 @@ static int isBranchInstr(mips_instruction * i) | |||
203 | * Two instructions if the instruction is in a branch delay slot. | 203 | * Two instructions if the instruction is in a branch delay slot. |
204 | */ | 204 | */ |
205 | 205 | ||
206 | static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx) | 206 | static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx) |
207 | { | 207 | { |
208 | mips_instruction ir; | 208 | mips_instruction ir; |
209 | void * emulpc, *contpc; | 209 | void * emulpc, *contpc; |
@@ -595,7 +595,7 @@ DEF3OP(msub, dp, ieee754dp_mul, ieee754dp_sub,); | |||
595 | DEF3OP(nmadd, dp, ieee754dp_mul, ieee754dp_add, ieee754dp_neg); | 595 | DEF3OP(nmadd, dp, ieee754dp_mul, ieee754dp_add, ieee754dp_neg); |
596 | DEF3OP(nmsub, dp, ieee754dp_mul, ieee754dp_sub, ieee754dp_neg); | 596 | DEF3OP(nmsub, dp, ieee754dp_mul, ieee754dp_sub, ieee754dp_neg); |
597 | 597 | ||
598 | static int fpux_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | 598 | static int fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, |
599 | mips_instruction ir) | 599 | mips_instruction ir) |
600 | { | 600 | { |
601 | unsigned rcsr = 0; /* resulting csr */ | 601 | unsigned rcsr = 0; /* resulting csr */ |
@@ -759,7 +759,7 @@ static int fpux_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
759 | /* | 759 | /* |
760 | * Emulate a single COP1 arithmetic instruction. | 760 | * Emulate a single COP1 arithmetic instruction. |
761 | */ | 761 | */ |
762 | static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | 762 | static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, |
763 | mips_instruction ir) | 763 | mips_instruction ir) |
764 | { | 764 | { |
765 | int rfmt; /* resulting format */ | 765 | int rfmt; /* resulting format */ |
@@ -1233,8 +1233,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
1233 | return 0; | 1233 | return 0; |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | int fpu_emulator_cop1Handler(struct pt_regs *xcp, | 1236 | int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx) |
1237 | struct mips_fpu_soft_struct *ctx) | ||
1238 | { | 1237 | { |
1239 | unsigned long oldepc, prevepc; | 1238 | unsigned long oldepc, prevepc; |
1240 | mips_instruction insn; | 1239 | mips_instruction insn; |
diff --git a/arch/mips/math-emu/dp_fint.c b/arch/mips/math-emu/dp_fint.c index a1962eb460f8..39a71de16f47 100644 --- a/arch/mips/math-emu/dp_fint.c +++ b/arch/mips/math-emu/dp_fint.c | |||
@@ -29,7 +29,9 @@ | |||
29 | 29 | ||
30 | ieee754dp ieee754dp_fint(int x) | 30 | ieee754dp ieee754dp_fint(int x) |
31 | { | 31 | { |
32 | COMPXDP; | 32 | u64 xm; |
33 | int xe; | ||
34 | int xs; | ||
33 | 35 | ||
34 | CLEARCX; | 36 | CLEARCX; |
35 | 37 | ||
diff --git a/arch/mips/math-emu/dp_flong.c b/arch/mips/math-emu/dp_flong.c index eae90a866aa1..f08f223e488a 100644 --- a/arch/mips/math-emu/dp_flong.c +++ b/arch/mips/math-emu/dp_flong.c | |||
@@ -29,7 +29,9 @@ | |||
29 | 29 | ||
30 | ieee754dp ieee754dp_flong(s64 x) | 30 | ieee754dp ieee754dp_flong(s64 x) |
31 | { | 31 | { |
32 | COMPXDP; | 32 | u64 xm; |
33 | int xe; | ||
34 | int xs; | ||
33 | 35 | ||
34 | CLEARCX; | 36 | CLEARCX; |
35 | 37 | ||
diff --git a/arch/mips/math-emu/ieee754.h b/arch/mips/math-emu/ieee754.h index 171f177c0f88..dd917332792c 100644 --- a/arch/mips/math-emu/ieee754.h +++ b/arch/mips/math-emu/ieee754.h | |||
@@ -329,7 +329,7 @@ struct _ieee754_csr { | |||
329 | unsigned pad0:7; | 329 | unsigned pad0:7; |
330 | #endif | 330 | #endif |
331 | }; | 331 | }; |
332 | #define ieee754_csr (*(struct _ieee754_csr *)(¤t->thread.fpu.soft.fcr31)) | 332 | #define ieee754_csr (*(struct _ieee754_csr *)(¤t->thread.fpu.fcr31)) |
333 | 333 | ||
334 | static inline unsigned ieee754_getrm(void) | 334 | static inline unsigned ieee754_getrm(void) |
335 | { | 335 | { |
diff --git a/arch/mips/math-emu/kernel_linkage.c b/arch/mips/math-emu/kernel_linkage.c index d187ab71c2ff..56ca0c6a7178 100644 --- a/arch/mips/math-emu/kernel_linkage.c +++ b/arch/mips/math-emu/kernel_linkage.c | |||
@@ -39,9 +39,9 @@ void fpu_emulator_init_fpu(void) | |||
39 | printk("Algorithmics/MIPS FPU Emulator v1.5\n"); | 39 | printk("Algorithmics/MIPS FPU Emulator v1.5\n"); |
40 | } | 40 | } |
41 | 41 | ||
42 | current->thread.fpu.soft.fcr31 = 0; | 42 | current->thread.fpu.fcr31 = 0; |
43 | for (i = 0; i < 32; i++) { | 43 | for (i = 0; i < 32; i++) { |
44 | current->thread.fpu.soft.fpr[i] = SIGNALLING_NAN; | 44 | current->thread.fpu.fpr[i] = SIGNALLING_NAN; |
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
@@ -59,10 +59,9 @@ int fpu_emulator_save_context(struct sigcontext *sc) | |||
59 | 59 | ||
60 | for (i = 0; i < 32; i++) { | 60 | for (i = 0; i < 32; i++) { |
61 | err |= | 61 | err |= |
62 | __put_user(current->thread.fpu.soft.fpr[i], | 62 | __put_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); |
63 | &sc->sc_fpregs[i]); | ||
64 | } | 63 | } |
65 | err |= __put_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr); | 64 | err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); |
66 | 65 | ||
67 | return err; | 66 | return err; |
68 | } | 67 | } |
@@ -74,10 +73,9 @@ int fpu_emulator_restore_context(struct sigcontext *sc) | |||
74 | 73 | ||
75 | for (i = 0; i < 32; i++) { | 74 | for (i = 0; i < 32; i++) { |
76 | err |= | 75 | err |= |
77 | __get_user(current->thread.fpu.soft.fpr[i], | 76 | __get_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); |
78 | &sc->sc_fpregs[i]); | ||
79 | } | 77 | } |
80 | err |= __get_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr); | 78 | err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); |
81 | 79 | ||
82 | return err; | 80 | return err; |
83 | } | 81 | } |
@@ -94,10 +92,9 @@ int fpu_emulator_save_context32(struct sigcontext32 *sc) | |||
94 | 92 | ||
95 | for (i = 0; i < 32; i+=2) { | 93 | for (i = 0; i < 32; i+=2) { |
96 | err |= | 94 | err |= |
97 | __put_user(current->thread.fpu.soft.fpr[i], | 95 | __put_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); |
98 | &sc->sc_fpregs[i]); | ||
99 | } | 96 | } |
100 | err |= __put_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr); | 97 | err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); |
101 | 98 | ||
102 | return err; | 99 | return err; |
103 | } | 100 | } |
@@ -109,10 +106,9 @@ int fpu_emulator_restore_context32(struct sigcontext32 *sc) | |||
109 | 106 | ||
110 | for (i = 0; i < 32; i+=2) { | 107 | for (i = 0; i < 32; i+=2) { |
111 | err |= | 108 | err |= |
112 | __get_user(current->thread.fpu.soft.fpr[i], | 109 | __get_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); |
113 | &sc->sc_fpregs[i]); | ||
114 | } | 110 | } |
115 | err |= __get_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr); | 111 | err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); |
116 | 112 | ||
117 | return err; | 113 | return err; |
118 | } | 114 | } |
diff --git a/arch/mips/math-emu/sp_fint.c b/arch/mips/math-emu/sp_fint.c index 7aac13afb09a..e88e125e01c2 100644 --- a/arch/mips/math-emu/sp_fint.c +++ b/arch/mips/math-emu/sp_fint.c | |||
@@ -29,7 +29,9 @@ | |||
29 | 29 | ||
30 | ieee754sp ieee754sp_fint(int x) | 30 | ieee754sp ieee754sp_fint(int x) |
31 | { | 31 | { |
32 | COMPXSP; | 32 | unsigned xm; |
33 | int xe; | ||
34 | int xs; | ||
33 | 35 | ||
34 | CLEARCX; | 36 | CLEARCX; |
35 | 37 | ||
diff --git a/arch/mips/math-emu/sp_flong.c b/arch/mips/math-emu/sp_flong.c index 3d6c1d11c178..26d6919a269a 100644 --- a/arch/mips/math-emu/sp_flong.c +++ b/arch/mips/math-emu/sp_flong.c | |||
@@ -29,7 +29,9 @@ | |||
29 | 29 | ||
30 | ieee754sp ieee754sp_flong(s64 x) | 30 | ieee754sp ieee754sp_flong(s64 x) |
31 | { | 31 | { |
32 | COMPXDP; /* <--- need 64-bit mantissa temp */ | 32 | u64 xm; /* <--- need 64-bit mantissa temp */ |
33 | int xe; | ||
34 | int xs; | ||
33 | 35 | ||
34 | CLEARCX; | 36 | CLEARCX; |
35 | 37 | ||
diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c index c20d401ecf80..8cc9effcb832 100644 --- a/arch/mips/mips-boards/atlas/atlas_setup.c +++ b/arch/mips/mips-boards/atlas/atlas_setup.c | |||
@@ -50,7 +50,7 @@ const char *get_system_type(void) | |||
50 | return "MIPS Atlas"; | 50 | return "MIPS Atlas"; |
51 | } | 51 | } |
52 | 52 | ||
53 | void __init plat_setup(void) | 53 | void __init plat_mem_setup(void) |
54 | { | 54 | { |
55 | mips_pcibios_init(); | 55 | mips_pcibios_init(); |
56 | 56 | ||
diff --git a/arch/mips/mips-boards/generic/memory.c b/arch/mips/mips-boards/generic/memory.c index bc4d093685bb..fd492562584a 100644 --- a/arch/mips/mips-boards/generic/memory.c +++ b/arch/mips/mips-boards/generic/memory.c | |||
@@ -76,6 +76,15 @@ struct prom_pmemblock * __init prom_getmdesc(void) | |||
76 | memsize = simple_strtol(memsize_str, NULL, 0); | 76 | memsize = simple_strtol(memsize_str, NULL, 0); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | |||
80 | #ifdef CONFIG_CPU_BIG_ENDIAN | ||
81 | /* | ||
82 | * SOC-it swaps, or perhaps doesn't swap, when DMA'ing the last | ||
83 | * word of physical memory | ||
84 | */ | ||
85 | memsize -= PAGE_SIZE; | ||
86 | #endif | ||
87 | |||
79 | memset(mdesc, 0, sizeof(mdesc)); | 88 | memset(mdesc, 0, sizeof(mdesc)); |
80 | 89 | ||
81 | mdesc[0].type = yamon_dontuse; | 90 | mdesc[0].type = yamon_dontuse; |
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index b8488aab6df1..0766e434b6bd 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c | |||
@@ -53,11 +53,11 @@ extern void kgdb_config(void); | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | struct resource standard_io_resources[] = { | 55 | struct resource standard_io_resources[] = { |
56 | { "dma1", 0x00, 0x1f, IORESOURCE_BUSY }, | 56 | { .name = "dma1", .start = 0x00, .end = 0x1f, .flags = IORESOURCE_BUSY }, |
57 | { "timer", 0x40, 0x5f, IORESOURCE_BUSY }, | 57 | { .name = "timer", .start = 0x40, .end = 0x5f, .flags = IORESOURCE_BUSY }, |
58 | { "keyboard", 0x60, 0x6f, IORESOURCE_BUSY }, | 58 | { .name = "keyboard", .start = 0x60, .end = 0x6f, .flags = IORESOURCE_BUSY }, |
59 | { "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY }, | 59 | { .name = "dma page reg", .start = 0x80, .end = 0x8f, .flags = IORESOURCE_BUSY }, |
60 | { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY }, | 60 | { .name = "dma2", .start = 0xc0, .end = 0xdf, .flags = IORESOURCE_BUSY }, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | #ifdef CONFIG_MTD | 63 | #ifdef CONFIG_MTD |
@@ -111,7 +111,7 @@ void __init fd_activate(void) | |||
111 | } | 111 | } |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | void __init plat_setup(void) | 114 | void __init plat_mem_setup(void) |
115 | { | 115 | { |
116 | unsigned int i; | 116 | unsigned int i; |
117 | 117 | ||
diff --git a/arch/mips/mips-boards/malta/malta_smp.c b/arch/mips/mips-boards/malta/malta_smp.c index 6c6c8eeedbce..cf967170fe29 100644 --- a/arch/mips/mips-boards/malta/malta_smp.c +++ b/arch/mips/mips-boards/malta/malta_smp.c | |||
@@ -34,25 +34,6 @@ void core_send_ipi(int cpu, unsigned int action) | |||
34 | } | 34 | } |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * Detect available CPUs/VPEs/TCs and populate phys_cpu_present_map | ||
38 | */ | ||
39 | |||
40 | void __init prom_build_cpu_map(void) | ||
41 | { | ||
42 | int nextslot; | ||
43 | |||
44 | /* | ||
45 | * As of November, 2004, MIPSsim only simulates one core | ||
46 | * at a time. However, that core may be a MIPS MT core | ||
47 | * with multiple virtual processors and thread contexts. | ||
48 | */ | ||
49 | |||
50 | if (read_c0_config3() & (1<<2)) { | ||
51 | nextslot = mipsmt_build_cpu_map(1); | ||
52 | } | ||
53 | } | ||
54 | |||
55 | /* | ||
56 | * Platform "CPU" startup hook | 37 | * Platform "CPU" startup hook |
57 | */ | 38 | */ |
58 | 39 | ||
diff --git a/arch/mips/mips-boards/sead/sead_setup.c b/arch/mips/mips-boards/sead/sead_setup.c index 4266ce445174..6430f11f3a95 100644 --- a/arch/mips/mips-boards/sead/sead_setup.c +++ b/arch/mips/mips-boards/sead/sead_setup.c | |||
@@ -45,7 +45,7 @@ const char *get_system_type(void) | |||
45 | return "MIPS SEAD"; | 45 | return "MIPS SEAD"; |
46 | } | 46 | } |
47 | 47 | ||
48 | void __init plat_setup(void) | 48 | void __init plat_mem_setup(void) |
49 | { | 49 | { |
50 | ioport_resource.end = 0x7fffffff; | 50 | ioport_resource.end = 0x7fffffff; |
51 | 51 | ||
diff --git a/arch/mips/mips-boards/sim/sim_setup.c b/arch/mips/mips-boards/sim/sim_setup.c index a2fd62997ca3..15a5dac4ae19 100644 --- a/arch/mips/mips-boards/sim/sim_setup.c +++ b/arch/mips/mips-boards/sim/sim_setup.c | |||
@@ -50,7 +50,7 @@ const char *get_system_type(void) | |||
50 | return "MIPSsim"; | 50 | return "MIPSsim"; |
51 | } | 51 | } |
52 | 52 | ||
53 | void __init plat_setup(void) | 53 | void __init plat_mem_setup(void) |
54 | { | 54 | { |
55 | set_io_port_base(0xbfd00000); | 55 | set_io_port_base(0xbfd00000); |
56 | 56 | ||
diff --git a/arch/mips/mips-boards/sim/sim_smp.c b/arch/mips/mips-boards/sim/sim_smp.c index b7084e7c4bf9..004070956cca 100644 --- a/arch/mips/mips-boards/sim/sim_smp.c +++ b/arch/mips/mips-boards/sim/sim_smp.c | |||
@@ -51,27 +51,6 @@ void core_send_ipi(int cpu, unsigned int action) | |||
51 | } | 51 | } |
52 | 52 | ||
53 | /* | 53 | /* |
54 | * Detect available CPUs/VPEs/TCs and populate phys_cpu_present_map | ||
55 | */ | ||
56 | |||
57 | void __init prom_build_cpu_map(void) | ||
58 | { | ||
59 | #ifdef CONFIG_MIPS_MT_SMTC | ||
60 | int nextslot; | ||
61 | |||
62 | /* | ||
63 | * As of November, 2004, MIPSsim only simulates one core | ||
64 | * at a time. However, that core may be a MIPS MT core | ||
65 | * with multiple virtual processors and thread contexts. | ||
66 | */ | ||
67 | |||
68 | if (read_c0_config3() & (1<<2)) { | ||
69 | nextslot = mipsmt_build_cpu_map(1); | ||
70 | } | ||
71 | #endif /* CONFIG_MIPS_MT_SMTC */ | ||
72 | } | ||
73 | |||
74 | /* | ||
75 | * Platform "CPU" startup hook | 54 | * Platform "CPU" startup hook |
76 | */ | 55 | */ |
77 | 56 | ||
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 4182e1176fae..4a43924cd4fc 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -29,6 +29,27 @@ | |||
29 | #include <asm/war.h> | 29 | #include <asm/war.h> |
30 | #include <asm/cacheflush.h> /* for run_uncached() */ | 30 | #include <asm/cacheflush.h> /* for run_uncached() */ |
31 | 31 | ||
32 | |||
33 | /* | ||
34 | * Special Variant of smp_call_function for use by cache functions: | ||
35 | * | ||
36 | * o No return value | ||
37 | * o collapses to normal function call on UP kernels | ||
38 | * o collapses to normal function call on systems with a single shared | ||
39 | * primary cache. | ||
40 | */ | ||
41 | static inline void r4k_on_each_cpu(void (*func) (void *info), void *info, | ||
42 | int retry, int wait) | ||
43 | { | ||
44 | preempt_disable(); | ||
45 | |||
46 | #if !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC) | ||
47 | smp_call_function(func, info, retry, wait); | ||
48 | #endif | ||
49 | func(info); | ||
50 | preempt_enable(); | ||
51 | } | ||
52 | |||
32 | /* | 53 | /* |
33 | * Must die. | 54 | * Must die. |
34 | */ | 55 | */ |
@@ -299,7 +320,7 @@ static void r4k_flush_cache_all(void) | |||
299 | if (!cpu_has_dc_aliases) | 320 | if (!cpu_has_dc_aliases) |
300 | return; | 321 | return; |
301 | 322 | ||
302 | on_each_cpu(local_r4k_flush_cache_all, NULL, 1, 1); | 323 | r4k_on_each_cpu(local_r4k_flush_cache_all, NULL, 1, 1); |
303 | } | 324 | } |
304 | 325 | ||
305 | static inline void local_r4k___flush_cache_all(void * args) | 326 | static inline void local_r4k___flush_cache_all(void * args) |
@@ -314,13 +335,14 @@ static inline void local_r4k___flush_cache_all(void * args) | |||
314 | case CPU_R4400MC: | 335 | case CPU_R4400MC: |
315 | case CPU_R10000: | 336 | case CPU_R10000: |
316 | case CPU_R12000: | 337 | case CPU_R12000: |
338 | case CPU_R14000: | ||
317 | r4k_blast_scache(); | 339 | r4k_blast_scache(); |
318 | } | 340 | } |
319 | } | 341 | } |
320 | 342 | ||
321 | static void r4k___flush_cache_all(void) | 343 | static void r4k___flush_cache_all(void) |
322 | { | 344 | { |
323 | on_each_cpu(local_r4k___flush_cache_all, NULL, 1, 1); | 345 | r4k_on_each_cpu(local_r4k___flush_cache_all, NULL, 1, 1); |
324 | } | 346 | } |
325 | 347 | ||
326 | static inline void local_r4k_flush_cache_range(void * args) | 348 | static inline void local_r4k_flush_cache_range(void * args) |
@@ -341,7 +363,7 @@ static inline void local_r4k_flush_cache_range(void * args) | |||
341 | static void r4k_flush_cache_range(struct vm_area_struct *vma, | 363 | static void r4k_flush_cache_range(struct vm_area_struct *vma, |
342 | unsigned long start, unsigned long end) | 364 | unsigned long start, unsigned long end) |
343 | { | 365 | { |
344 | on_each_cpu(local_r4k_flush_cache_range, vma, 1, 1); | 366 | r4k_on_each_cpu(local_r4k_flush_cache_range, vma, 1, 1); |
345 | } | 367 | } |
346 | 368 | ||
347 | static inline void local_r4k_flush_cache_mm(void * args) | 369 | static inline void local_r4k_flush_cache_mm(void * args) |
@@ -370,7 +392,7 @@ static void r4k_flush_cache_mm(struct mm_struct *mm) | |||
370 | if (!cpu_has_dc_aliases) | 392 | if (!cpu_has_dc_aliases) |
371 | return; | 393 | return; |
372 | 394 | ||
373 | on_each_cpu(local_r4k_flush_cache_mm, mm, 1, 1); | 395 | r4k_on_each_cpu(local_r4k_flush_cache_mm, mm, 1, 1); |
374 | } | 396 | } |
375 | 397 | ||
376 | struct flush_cache_page_args { | 398 | struct flush_cache_page_args { |
@@ -461,7 +483,7 @@ static void r4k_flush_cache_page(struct vm_area_struct *vma, | |||
461 | args.addr = addr; | 483 | args.addr = addr; |
462 | args.pfn = pfn; | 484 | args.pfn = pfn; |
463 | 485 | ||
464 | on_each_cpu(local_r4k_flush_cache_page, &args, 1, 1); | 486 | r4k_on_each_cpu(local_r4k_flush_cache_page, &args, 1, 1); |
465 | } | 487 | } |
466 | 488 | ||
467 | static inline void local_r4k_flush_data_cache_page(void * addr) | 489 | static inline void local_r4k_flush_data_cache_page(void * addr) |
@@ -471,7 +493,7 @@ static inline void local_r4k_flush_data_cache_page(void * addr) | |||
471 | 493 | ||
472 | static void r4k_flush_data_cache_page(unsigned long addr) | 494 | static void r4k_flush_data_cache_page(unsigned long addr) |
473 | { | 495 | { |
474 | on_each_cpu(local_r4k_flush_data_cache_page, (void *) addr, 1, 1); | 496 | r4k_on_each_cpu(local_r4k_flush_data_cache_page, (void *) addr, 1, 1); |
475 | } | 497 | } |
476 | 498 | ||
477 | struct flush_icache_range_args { | 499 | struct flush_icache_range_args { |
@@ -514,7 +536,7 @@ static void r4k_flush_icache_range(unsigned long start, unsigned long end) | |||
514 | args.start = start; | 536 | args.start = start; |
515 | args.end = end; | 537 | args.end = end; |
516 | 538 | ||
517 | on_each_cpu(local_r4k_flush_icache_range, &args, 1, 1); | 539 | r4k_on_each_cpu(local_r4k_flush_icache_range, &args, 1, 1); |
518 | instruction_hazard(); | 540 | instruction_hazard(); |
519 | } | 541 | } |
520 | 542 | ||
@@ -590,7 +612,7 @@ static void r4k_flush_icache_page(struct vm_area_struct *vma, | |||
590 | args.vma = vma; | 612 | args.vma = vma; |
591 | args.page = page; | 613 | args.page = page; |
592 | 614 | ||
593 | on_each_cpu(local_r4k_flush_icache_page, &args, 1, 1); | 615 | r4k_on_each_cpu(local_r4k_flush_icache_page, &args, 1, 1); |
594 | } | 616 | } |
595 | 617 | ||
596 | 618 | ||
@@ -689,7 +711,7 @@ static void local_r4k_flush_cache_sigtramp(void * arg) | |||
689 | 711 | ||
690 | static void r4k_flush_cache_sigtramp(unsigned long addr) | 712 | static void r4k_flush_cache_sigtramp(unsigned long addr) |
691 | { | 713 | { |
692 | on_each_cpu(local_r4k_flush_cache_sigtramp, (void *) addr, 1, 1); | 714 | r4k_on_each_cpu(local_r4k_flush_cache_sigtramp, (void *) addr, 1, 1); |
693 | } | 715 | } |
694 | 716 | ||
695 | static void r4k_flush_icache_all(void) | 717 | static void r4k_flush_icache_all(void) |
@@ -812,6 +834,7 @@ static void __init probe_pcache(void) | |||
812 | 834 | ||
813 | case CPU_R10000: | 835 | case CPU_R10000: |
814 | case CPU_R12000: | 836 | case CPU_R12000: |
837 | case CPU_R14000: | ||
815 | icache_size = 1 << (12 + ((config & R10K_CONF_IC) >> 29)); | 838 | icache_size = 1 << (12 + ((config & R10K_CONF_IC) >> 29)); |
816 | c->icache.linesz = 64; | 839 | c->icache.linesz = 64; |
817 | c->icache.ways = 2; | 840 | c->icache.ways = 2; |
@@ -965,9 +988,11 @@ static void __init probe_pcache(void) | |||
965 | c->dcache.flags |= MIPS_CACHE_PINDEX; | 988 | c->dcache.flags |= MIPS_CACHE_PINDEX; |
966 | case CPU_R10000: | 989 | case CPU_R10000: |
967 | case CPU_R12000: | 990 | case CPU_R12000: |
991 | case CPU_R14000: | ||
968 | case CPU_SB1: | 992 | case CPU_SB1: |
969 | break; | 993 | break; |
970 | case CPU_24K: | 994 | case CPU_24K: |
995 | case CPU_34K: | ||
971 | if (!(read_c0_config7() & (1 << 16))) | 996 | if (!(read_c0_config7() & (1 << 16))) |
972 | default: | 997 | default: |
973 | if (c->dcache.waysize > PAGE_SIZE) | 998 | if (c->dcache.waysize > PAGE_SIZE) |
@@ -1091,6 +1116,7 @@ static void __init setup_scache(void) | |||
1091 | 1116 | ||
1092 | case CPU_R10000: | 1117 | case CPU_R10000: |
1093 | case CPU_R12000: | 1118 | case CPU_R12000: |
1119 | case CPU_R14000: | ||
1094 | scache_size = 0x80000 << ((config & R10K_CONF_SS) >> 16); | 1120 | scache_size = 0x80000 << ((config & R10K_CONF_SS) >> 16); |
1095 | c->scache.linesz = 64 << ((config >> 13) & 1); | 1121 | c->scache.linesz = 64 << ((config >> 13) & 1); |
1096 | c->scache.ways = 2; | 1122 | c->scache.ways = 2; |
@@ -1135,6 +1161,31 @@ static void __init setup_scache(void) | |||
1135 | c->options |= MIPS_CPU_SUBSET_CACHES; | 1161 | c->options |= MIPS_CPU_SUBSET_CACHES; |
1136 | } | 1162 | } |
1137 | 1163 | ||
1164 | void au1x00_fixup_config_od(void) | ||
1165 | { | ||
1166 | /* | ||
1167 | * c0_config.od (bit 19) was write only (and read as 0) | ||
1168 | * on the early revisions of Alchemy SOCs. It disables the bus | ||
1169 | * transaction overlapping and needs to be set to fix various errata. | ||
1170 | */ | ||
1171 | switch (read_c0_prid()) { | ||
1172 | case 0x00030100: /* Au1000 DA */ | ||
1173 | case 0x00030201: /* Au1000 HA */ | ||
1174 | case 0x00030202: /* Au1000 HB */ | ||
1175 | case 0x01030200: /* Au1500 AB */ | ||
1176 | /* | ||
1177 | * Au1100 errata actually keeps silence about this bit, so we set it | ||
1178 | * just in case for those revisions that require it to be set according | ||
1179 | * to arch/mips/au1000/common/cputable.c | ||
1180 | */ | ||
1181 | case 0x02030200: /* Au1100 AB */ | ||
1182 | case 0x02030201: /* Au1100 BA */ | ||
1183 | case 0x02030202: /* Au1100 BC */ | ||
1184 | set_c0_config(1 << 19); | ||
1185 | break; | ||
1186 | } | ||
1187 | } | ||
1188 | |||
1138 | static inline void coherency_setup(void) | 1189 | static inline void coherency_setup(void) |
1139 | { | 1190 | { |
1140 | change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT); | 1191 | change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT); |
@@ -1155,6 +1206,15 @@ static inline void coherency_setup(void) | |||
1155 | case CPU_R4400MC: | 1206 | case CPU_R4400MC: |
1156 | clear_c0_config(CONF_CU); | 1207 | clear_c0_config(CONF_CU); |
1157 | break; | 1208 | break; |
1209 | /* | ||
1210 | * We need to catch the ealry Alchemy SOCs with | ||
1211 | * the write-only co_config.od bit and set it back to one... | ||
1212 | */ | ||
1213 | case CPU_AU1000: /* rev. DA, HA, HB */ | ||
1214 | case CPU_AU1100: /* rev. AB, BA, BC ?? */ | ||
1215 | case CPU_AU1500: /* rev. AB */ | ||
1216 | au1x00_fixup_config_od(); | ||
1217 | break; | ||
1158 | } | 1218 | } |
1159 | } | 1219 | } |
1160 | 1220 | ||
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index c22308b93ff0..33f6e1cdfd5b 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -227,7 +227,7 @@ void __init mem_init(void) | |||
227 | for (tmp = 0; tmp < max_low_pfn; tmp++) | 227 | for (tmp = 0; tmp < max_low_pfn; tmp++) |
228 | if (page_is_ram(tmp)) { | 228 | if (page_is_ram(tmp)) { |
229 | ram++; | 229 | ram++; |
230 | if (PageReserved(mem_map+tmp)) | 230 | if (PageReserved(pfn_to_page(tmp))) |
231 | reservedpages++; | 231 | reservedpages++; |
232 | } | 232 | } |
233 | 233 | ||
diff --git a/arch/mips/mm/pg-r4k.c b/arch/mips/mm/pg-r4k.c index e4390dc3eb48..b7c749232ffe 100644 --- a/arch/mips/mm/pg-r4k.c +++ b/arch/mips/mm/pg-r4k.c | |||
@@ -357,6 +357,7 @@ void __init build_clear_page(void) | |||
357 | 357 | ||
358 | case CPU_R10000: | 358 | case CPU_R10000: |
359 | case CPU_R12000: | 359 | case CPU_R12000: |
360 | case CPU_R14000: | ||
360 | pref_src_mode = Pref_LoadStreamed; | 361 | pref_src_mode = Pref_LoadStreamed; |
361 | pref_dst_mode = Pref_StoreStreamed; | 362 | pref_dst_mode = Pref_StoreStreamed; |
362 | break; | 363 | break; |
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index 9dca099ba16b..965cb4c4359d 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c | |||
@@ -413,7 +413,6 @@ out: | |||
413 | return ret; | 413 | return ret; |
414 | } | 414 | } |
415 | 415 | ||
416 | extern void __init sanitize_tlb_entries(void); | ||
417 | static void __init probe_tlb(unsigned long config) | 416 | static void __init probe_tlb(unsigned long config) |
418 | { | 417 | { |
419 | struct cpuinfo_mips *c = ¤t_cpu_data; | 418 | struct cpuinfo_mips *c = ¤t_cpu_data; |
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 053dbacac56b..54507be2ab5b 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -875,6 +875,7 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, | |||
875 | 875 | ||
876 | case CPU_R10000: | 876 | case CPU_R10000: |
877 | case CPU_R12000: | 877 | case CPU_R12000: |
878 | case CPU_R14000: | ||
878 | case CPU_4KC: | 879 | case CPU_4KC: |
879 | case CPU_SB1: | 880 | case CPU_SB1: |
880 | case CPU_SB1A: | 881 | case CPU_SB1A: |
@@ -906,6 +907,7 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, | |||
906 | case CPU_4KEC: | 907 | case CPU_4KEC: |
907 | case CPU_24K: | 908 | case CPU_24K: |
908 | case CPU_34K: | 909 | case CPU_34K: |
910 | case CPU_74K: | ||
909 | i_ehb(p); | 911 | i_ehb(p); |
910 | tlbw(p); | 912 | tlbw(p); |
911 | break; | 913 | break; |
diff --git a/arch/mips/momentum/jaguar_atx/dbg_io.c b/arch/mips/momentum/jaguar_atx/dbg_io.c index 542eac82b63c..d7dea0a136aa 100644 --- a/arch/mips/momentum/jaguar_atx/dbg_io.c +++ b/arch/mips/momentum/jaguar_atx/dbg_io.c | |||
@@ -73,7 +73,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
73 | /* disable interrupts */ | 73 | /* disable interrupts */ |
74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
75 | 75 | ||
76 | /* set up buad rate */ | 76 | /* set up baud rate */ |
77 | { | 77 | { |
78 | uint32 divisor; | 78 | uint32 divisor; |
79 | 79 | ||
diff --git a/arch/mips/momentum/jaguar_atx/setup.c b/arch/mips/momentum/jaguar_atx/setup.c index 1379c76845dc..df1485501ce6 100644 --- a/arch/mips/momentum/jaguar_atx/setup.c +++ b/arch/mips/momentum/jaguar_atx/setup.c | |||
@@ -359,7 +359,7 @@ static __init int __init ja_pci_init(void) | |||
359 | 359 | ||
360 | arch_initcall(ja_pci_init); | 360 | arch_initcall(ja_pci_init); |
361 | 361 | ||
362 | void __init plat_setup(void) | 362 | void __init plat_mem_setup(void) |
363 | { | 363 | { |
364 | unsigned int tmpword; | 364 | unsigned int tmpword; |
365 | 365 | ||
diff --git a/arch/mips/momentum/ocelot_3/setup.c b/arch/mips/momentum/ocelot_3/setup.c index c69195234309..8c53490ba6f1 100644 --- a/arch/mips/momentum/ocelot_3/setup.c +++ b/arch/mips/momentum/ocelot_3/setup.c | |||
@@ -313,7 +313,7 @@ static __init int __init ja_pci_init(void) | |||
313 | 313 | ||
314 | arch_initcall(ja_pci_init); | 314 | arch_initcall(ja_pci_init); |
315 | 315 | ||
316 | void __init plat_setup(void) | 316 | void __init plat_mem_setup(void) |
317 | { | 317 | { |
318 | unsigned int tmpword; | 318 | unsigned int tmpword; |
319 | 319 | ||
diff --git a/arch/mips/momentum/ocelot_c/dbg_io.c b/arch/mips/momentum/ocelot_c/dbg_io.c index 8720bccfdea2..f0a6a38fcf4d 100644 --- a/arch/mips/momentum/ocelot_c/dbg_io.c +++ b/arch/mips/momentum/ocelot_c/dbg_io.c | |||
@@ -73,7 +73,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
73 | /* disable interrupts */ | 73 | /* disable interrupts */ |
74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
75 | 75 | ||
76 | /* set up buad rate */ | 76 | /* set up baud rate */ |
77 | { | 77 | { |
78 | uint32 divisor; | 78 | uint32 divisor; |
79 | 79 | ||
diff --git a/arch/mips/momentum/ocelot_c/setup.c b/arch/mips/momentum/ocelot_c/setup.c index a3e6f5575592..257e1d1b72dd 100644 --- a/arch/mips/momentum/ocelot_c/setup.c +++ b/arch/mips/momentum/ocelot_c/setup.c | |||
@@ -231,7 +231,7 @@ void momenco_time_init(void) | |||
231 | rtc_mips_set_time = m48t37y_set_time; | 231 | rtc_mips_set_time = m48t37y_set_time; |
232 | } | 232 | } |
233 | 233 | ||
234 | void __init plat_setup(void) | 234 | void __init plat_mem_setup(void) |
235 | { | 235 | { |
236 | unsigned int tmpword; | 236 | unsigned int tmpword; |
237 | 237 | ||
diff --git a/arch/mips/momentum/ocelot_g/dbg_io.c b/arch/mips/momentum/ocelot_g/dbg_io.c index 8720bccfdea2..f0a6a38fcf4d 100644 --- a/arch/mips/momentum/ocelot_g/dbg_io.c +++ b/arch/mips/momentum/ocelot_g/dbg_io.c | |||
@@ -73,7 +73,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) | |||
73 | /* disable interrupts */ | 73 | /* disable interrupts */ |
74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); | 74 | UART16550_WRITE(OFS_INTR_ENABLE, 0); |
75 | 75 | ||
76 | /* set up buad rate */ | 76 | /* set up baud rate */ |
77 | { | 77 | { |
78 | uint32 divisor; | 78 | uint32 divisor; |
79 | 79 | ||
diff --git a/arch/mips/momentum/ocelot_g/setup.c b/arch/mips/momentum/ocelot_g/setup.c index fed4e8eee116..72143ab1e900 100644 --- a/arch/mips/momentum/ocelot_g/setup.c +++ b/arch/mips/momentum/ocelot_g/setup.c | |||
@@ -162,7 +162,7 @@ static void __init setup_l3cache(unsigned long size) | |||
162 | printk("Done\n"); | 162 | printk("Done\n"); |
163 | } | 163 | } |
164 | 164 | ||
165 | void __init plat_setup(void) | 165 | void __init plat_mem_setup(void) |
166 | { | 166 | { |
167 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); | 167 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); |
168 | unsigned int tmpword; | 168 | unsigned int tmpword; |
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index f2b4862aaae5..c31e4cff64e0 100644 --- a/arch/mips/oprofile/common.c +++ b/arch/mips/oprofile/common.c | |||
@@ -14,8 +14,8 @@ | |||
14 | 14 | ||
15 | #include "op_impl.h" | 15 | #include "op_impl.h" |
16 | 16 | ||
17 | extern struct op_mips_model op_model_mipsxx __attribute__((weak)); | 17 | extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak)); |
18 | extern struct op_mips_model op_model_rm9000 __attribute__((weak)); | 18 | extern struct op_mips_model op_model_rm9000_ops __attribute__((weak)); |
19 | 19 | ||
20 | static struct op_mips_model *model; | 20 | static struct op_mips_model *model; |
21 | 21 | ||
@@ -80,13 +80,14 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
80 | case CPU_24K: | 80 | case CPU_24K: |
81 | case CPU_25KF: | 81 | case CPU_25KF: |
82 | case CPU_34K: | 82 | case CPU_34K: |
83 | case CPU_74K: | ||
83 | case CPU_SB1: | 84 | case CPU_SB1: |
84 | case CPU_SB1A: | 85 | case CPU_SB1A: |
85 | lmodel = &op_model_mipsxx; | 86 | lmodel = &op_model_mipsxx_ops; |
86 | break; | 87 | break; |
87 | 88 | ||
88 | case CPU_RM9000: | 89 | case CPU_RM9000: |
89 | lmodel = &op_model_rm9000; | 90 | lmodel = &op_model_rm9000_ops; |
90 | break; | 91 | break; |
91 | }; | 92 | }; |
92 | 93 | ||
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index 95d488ca0754..f26a00e13204 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #define M_COUNTER_OVERFLOW (1UL << 31) | 24 | #define M_COUNTER_OVERFLOW (1UL << 31) |
25 | 25 | ||
26 | struct op_mips_model op_model_mipsxx; | 26 | struct op_mips_model op_model_mipsxx_ops; |
27 | 27 | ||
28 | static struct mipsxx_register_config { | 28 | static struct mipsxx_register_config { |
29 | unsigned int control[4]; | 29 | unsigned int control[4]; |
@@ -34,7 +34,7 @@ static struct mipsxx_register_config { | |||
34 | 34 | ||
35 | static void mipsxx_reg_setup(struct op_counter_config *ctr) | 35 | static void mipsxx_reg_setup(struct op_counter_config *ctr) |
36 | { | 36 | { |
37 | unsigned int counters = op_model_mipsxx.num_counters; | 37 | unsigned int counters = op_model_mipsxx_ops.num_counters; |
38 | int i; | 38 | int i; |
39 | 39 | ||
40 | /* Compute the performance counter control word. */ | 40 | /* Compute the performance counter control word. */ |
@@ -62,7 +62,7 @@ static void mipsxx_reg_setup(struct op_counter_config *ctr) | |||
62 | 62 | ||
63 | static void mipsxx_cpu_setup (void *args) | 63 | static void mipsxx_cpu_setup (void *args) |
64 | { | 64 | { |
65 | unsigned int counters = op_model_mipsxx.num_counters; | 65 | unsigned int counters = op_model_mipsxx_ops.num_counters; |
66 | 66 | ||
67 | switch (counters) { | 67 | switch (counters) { |
68 | case 4: | 68 | case 4: |
@@ -83,7 +83,7 @@ static void mipsxx_cpu_setup (void *args) | |||
83 | /* Start all counters on current CPU */ | 83 | /* Start all counters on current CPU */ |
84 | static void mipsxx_cpu_start(void *args) | 84 | static void mipsxx_cpu_start(void *args) |
85 | { | 85 | { |
86 | unsigned int counters = op_model_mipsxx.num_counters; | 86 | unsigned int counters = op_model_mipsxx_ops.num_counters; |
87 | 87 | ||
88 | switch (counters) { | 88 | switch (counters) { |
89 | case 4: | 89 | case 4: |
@@ -100,7 +100,7 @@ static void mipsxx_cpu_start(void *args) | |||
100 | /* Stop all counters on current CPU */ | 100 | /* Stop all counters on current CPU */ |
101 | static void mipsxx_cpu_stop(void *args) | 101 | static void mipsxx_cpu_stop(void *args) |
102 | { | 102 | { |
103 | unsigned int counters = op_model_mipsxx.num_counters; | 103 | unsigned int counters = op_model_mipsxx_ops.num_counters; |
104 | 104 | ||
105 | switch (counters) { | 105 | switch (counters) { |
106 | case 4: | 106 | case 4: |
@@ -116,7 +116,7 @@ static void mipsxx_cpu_stop(void *args) | |||
116 | 116 | ||
117 | static int mipsxx_perfcount_handler(struct pt_regs *regs) | 117 | static int mipsxx_perfcount_handler(struct pt_regs *regs) |
118 | { | 118 | { |
119 | unsigned int counters = op_model_mipsxx.num_counters; | 119 | unsigned int counters = op_model_mipsxx_ops.num_counters; |
120 | unsigned int control; | 120 | unsigned int control; |
121 | unsigned int counter; | 121 | unsigned int counter; |
122 | int handled = 0; | 122 | int handled = 0; |
@@ -187,33 +187,37 @@ static int __init mipsxx_init(void) | |||
187 | 187 | ||
188 | reset_counters(counters); | 188 | reset_counters(counters); |
189 | 189 | ||
190 | op_model_mipsxx.num_counters = counters; | 190 | op_model_mipsxx_ops.num_counters = counters; |
191 | switch (current_cpu_data.cputype) { | 191 | switch (current_cpu_data.cputype) { |
192 | case CPU_20KC: | 192 | case CPU_20KC: |
193 | op_model_mipsxx.cpu_type = "mips/20K"; | 193 | op_model_mipsxx_ops.cpu_type = "mips/20K"; |
194 | break; | 194 | break; |
195 | 195 | ||
196 | case CPU_24K: | 196 | case CPU_24K: |
197 | op_model_mipsxx.cpu_type = "mips/24K"; | 197 | op_model_mipsxx_ops.cpu_type = "mips/24K"; |
198 | break; | 198 | break; |
199 | 199 | ||
200 | case CPU_25KF: | 200 | case CPU_25KF: |
201 | op_model_mipsxx.cpu_type = "mips/25K"; | 201 | op_model_mipsxx_ops.cpu_type = "mips/25K"; |
202 | break; | 202 | break; |
203 | 203 | ||
204 | #ifndef CONFIG_SMP | 204 | #ifndef CONFIG_SMP |
205 | case CPU_34K: | 205 | case CPU_34K: |
206 | op_model_mipsxx.cpu_type = "mips/34K"; | 206 | op_model_mipsxx_ops.cpu_type = "mips/34K"; |
207 | break; | ||
208 | |||
209 | case CPU_74K: | ||
210 | op_model_mipsxx_ops.cpu_type = "mips/74K"; | ||
207 | break; | 211 | break; |
208 | #endif | 212 | #endif |
209 | 213 | ||
210 | case CPU_5KC: | 214 | case CPU_5KC: |
211 | op_model_mipsxx.cpu_type = "mips/5K"; | 215 | op_model_mipsxx_ops.cpu_type = "mips/5K"; |
212 | break; | 216 | break; |
213 | 217 | ||
214 | case CPU_SB1: | 218 | case CPU_SB1: |
215 | case CPU_SB1A: | 219 | case CPU_SB1A: |
216 | op_model_mipsxx.cpu_type = "mips/sb1"; | 220 | op_model_mipsxx_ops.cpu_type = "mips/sb1"; |
217 | break; | 221 | break; |
218 | 222 | ||
219 | default: | 223 | default: |
@@ -229,12 +233,12 @@ static int __init mipsxx_init(void) | |||
229 | 233 | ||
230 | static void mipsxx_exit(void) | 234 | static void mipsxx_exit(void) |
231 | { | 235 | { |
232 | reset_counters(op_model_mipsxx.num_counters); | 236 | reset_counters(op_model_mipsxx_ops.num_counters); |
233 | 237 | ||
234 | perf_irq = null_perf_irq; | 238 | perf_irq = null_perf_irq; |
235 | } | 239 | } |
236 | 240 | ||
237 | struct op_mips_model op_model_mipsxx = { | 241 | struct op_mips_model op_model_mipsxx_ops = { |
238 | .reg_setup = mipsxx_reg_setup, | 242 | .reg_setup = mipsxx_reg_setup, |
239 | .cpu_setup = mipsxx_cpu_setup, | 243 | .cpu_setup = mipsxx_cpu_setup, |
240 | .init = mipsxx_init, | 244 | .init = mipsxx_init, |
diff --git a/arch/mips/oprofile/op_model_rm9000.c b/arch/mips/oprofile/op_model_rm9000.c index 9b75e41c78ef..b7063fefa65b 100644 --- a/arch/mips/oprofile/op_model_rm9000.c +++ b/arch/mips/oprofile/op_model_rm9000.c | |||
@@ -126,7 +126,7 @@ static void rm9000_exit(void) | |||
126 | free_irq(rm9000_perfcount_irq, NULL); | 126 | free_irq(rm9000_perfcount_irq, NULL); |
127 | } | 127 | } |
128 | 128 | ||
129 | struct op_mips_model op_model_rm9000 = { | 129 | struct op_mips_model op_model_rm9000_ops = { |
130 | .reg_setup = rm9000_reg_setup, | 130 | .reg_setup = rm9000_reg_setup, |
131 | .cpu_setup = rm9000_cpu_setup, | 131 | .cpu_setup = rm9000_cpu_setup, |
132 | .init = rm9000_init, | 132 | .init = rm9000_init, |
diff --git a/arch/mips/pci/Makefile b/arch/mips/pci/Makefile index 16205b587338..465778c5d816 100644 --- a/arch/mips/pci/Makefile +++ b/arch/mips/pci/Makefile | |||
@@ -18,12 +18,12 @@ obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o | |||
18 | obj-$(CONFIG_MIPS_TX3927) += ops-tx3927.o | 18 | obj-$(CONFIG_MIPS_TX3927) += ops-tx3927.o |
19 | obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o | 19 | obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o |
20 | obj-$(CONFIG_NEC_CMBVR4133) += fixup-vr4133.o | 20 | obj-$(CONFIG_NEC_CMBVR4133) += fixup-vr4133.o |
21 | obj-$(CONFIG_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o | ||
21 | 22 | ||
22 | # | 23 | # |
23 | # These are still pretty much in the old state, watch, go blind. | 24 | # These are still pretty much in the old state, watch, go blind. |
24 | # | 25 | # |
25 | obj-$(CONFIG_DDB5074) += fixup-ddb5074.o pci-ddb5074.o ops-ddb5074.o | 26 | obj-$(CONFIG_BASLER_EXCITE) = ops-titan.o pci-excite.o fixup-excite.o |
26 | obj-$(CONFIG_DDB5476) += ops-ddb5476.o pci-ddb5476.o | ||
27 | obj-$(CONFIG_DDB5477) += fixup-ddb5477.o pci-ddb5477.o ops-ddb5477.o | 27 | obj-$(CONFIG_DDB5477) += fixup-ddb5477.o pci-ddb5477.o ops-ddb5477.o |
28 | obj-$(CONFIG_LASAT) += pci-lasat.o | 28 | obj-$(CONFIG_LASAT) += pci-lasat.o |
29 | obj-$(CONFIG_MIPS_ATLAS) += fixup-atlas.o | 29 | obj-$(CONFIG_MIPS_ATLAS) += fixup-atlas.o |
@@ -43,7 +43,7 @@ obj-$(CONFIG_MOMENCO_OCELOT_C) += fixup-ocelot-c.o pci-ocelot-c.o | |||
43 | obj-$(CONFIG_MOMENCO_OCELOT_G) += fixup-ocelot-g.o pci-ocelot-g.o | 43 | obj-$(CONFIG_MOMENCO_OCELOT_G) += fixup-ocelot-g.o pci-ocelot-g.o |
44 | obj-$(CONFIG_PMC_YOSEMITE) += fixup-yosemite.o ops-titan.o ops-titan-ht.o \ | 44 | obj-$(CONFIG_PMC_YOSEMITE) += fixup-yosemite.o ops-titan.o ops-titan-ht.o \ |
45 | pci-yosemite.o | 45 | pci-yosemite.o |
46 | obj-$(CONFIG_SGI_IP27) += pci-ip27.o | 46 | obj-$(CONFIG_SGI_IP27) += ops-bridge.o pci-ip27.o |
47 | obj-$(CONFIG_SGI_IP32) += fixup-ip32.o ops-mace.o pci-ip32.o | 47 | obj-$(CONFIG_SGI_IP32) += fixup-ip32.o ops-mace.o pci-ip32.o |
48 | obj-$(CONFIG_SIBYTE_SB1250) += fixup-sb1250.o pci-sb1250.o | 48 | obj-$(CONFIG_SIBYTE_SB1250) += fixup-sb1250.o pci-sb1250.o |
49 | obj-$(CONFIG_SIBYTE_BCM112X) += fixup-sb1250.o pci-sb1250.o | 49 | obj-$(CONFIG_SIBYTE_BCM112X) += fixup-sb1250.o pci-sb1250.o |
@@ -57,3 +57,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4927) += fixup-rbtx4927.o ops-tx4927.o | |||
57 | obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-tx4938.o ops-tx4938.o | 57 | obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-tx4938.o ops-tx4938.o |
58 | obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o | 58 | obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o |
59 | obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o | 59 | obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o |
60 | obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o | ||
diff --git a/arch/mips/pci/fixup-ddb5074.c b/arch/mips/pci/fixup-ddb5074.c deleted file mode 100644 index 5a4a7c239c42..000000000000 --- a/arch/mips/pci/fixup-ddb5074.c +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * It's nice to have the LEDs on the GPIO pins available for debugging | ||
3 | */ | ||
4 | static void ddb5074_fixup(struct pci_dev *dev) | ||
5 | { | ||
6 | extern struct pci_dev *pci_pmu; | ||
7 | u8 t8; | ||
8 | |||
9 | pci_pmu = dev; /* for LEDs D2 and D3 */ | ||
10 | /* Program the lines for LEDs D2 and D3 to output */ | ||
11 | pci_read_config_byte(dev, 0x7d, &t8); | ||
12 | t8 |= 0xc0; | ||
13 | pci_write_config_byte(dev, 0x7d, t8); | ||
14 | /* Turn LEDs D2 and D3 off */ | ||
15 | pci_read_config_byte(dev, 0x7e, &t8); | ||
16 | t8 |= 0xc0; | ||
17 | pci_write_config_byte(dev, 0x7e, t8); | ||
18 | } | ||
19 | |||
20 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101, | ||
21 | ddb5074_fixup); | ||
diff --git a/arch/mips/pci/fixup-emma2rh.c b/arch/mips/pci/fixup-emma2rh.c new file mode 100644 index 000000000000..3a34cd0efd6b --- /dev/null +++ b/arch/mips/pci/fixup-emma2rh.c | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | * arch/mips/pci/fixup-emma2rh.c | ||
3 | * This file defines the PCI configration. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/pci.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | |||
26 | #include <linux/config.h> | ||
27 | #include <linux/kernel.h> | ||
28 | #include <linux/init.h> | ||
29 | #include <linux/types.h> | ||
30 | #include <linux/pci.h> | ||
31 | |||
32 | #include <asm/bootinfo.h> | ||
33 | #include <asm/debug.h> | ||
34 | |||
35 | #include <asm/emma2rh/emma2rh.h> | ||
36 | |||
37 | #define EMMA2RH_PCI_HOST_SLOT 0x09 | ||
38 | #define EMMA2RH_USB_SLOT 0x03 | ||
39 | #define PCI_DEVICE_ID_NEC_EMMA2RH 0x014b /* EMMA2RH PCI Host */ | ||
40 | |||
41 | /* | ||
42 | * we fix up irqs based on the slot number. | ||
43 | * The first entry is at AD:11. | ||
44 | * Fortunately this works because, although we have two pci buses, | ||
45 | * they all have different slot numbers (except for rockhopper slot 20 | ||
46 | * which is handled below). | ||
47 | * | ||
48 | */ | ||
49 | |||
50 | #define MAX_SLOT_NUM 10 | ||
51 | static unsigned char irq_map[][5] __initdata = { | ||
52 | [3] = {0, MARKEINS_PCI_IRQ_INTB, MARKEINS_PCI_IRQ_INTC, | ||
53 | MARKEINS_PCI_IRQ_INTD, 0,}, | ||
54 | [4] = {0, MARKEINS_PCI_IRQ_INTA, 0, 0, 0,}, | ||
55 | [5] = {0, 0, 0, 0, 0,}, | ||
56 | [6] = {0, MARKEINS_PCI_IRQ_INTC, MARKEINS_PCI_IRQ_INTD, | ||
57 | MARKEINS_PCI_IRQ_INTA, MARKEINS_PCI_IRQ_INTB,}, | ||
58 | }; | ||
59 | |||
60 | static void __devinit nec_usb_controller_fixup(struct pci_dev *dev) | ||
61 | { | ||
62 | if (PCI_SLOT(dev->devfn) == EMMA2RH_USB_SLOT) | ||
63 | /* on board USB controller configuration */ | ||
64 | pci_write_config_dword(dev, 0xe4, 1 << 5); | ||
65 | } | ||
66 | |||
67 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_USB, | ||
68 | nec_usb_controller_fixup); | ||
69 | |||
70 | /* | ||
71 | * Prevent the PCI layer from seeing the resources allocated to this device | ||
72 | * if it is the host bridge by marking it as such. These resources are of | ||
73 | * no consequence to the PCI layer (they are handled elsewhere). | ||
74 | */ | ||
75 | static void __devinit emma2rh_pci_host_fixup(struct pci_dev *dev) | ||
76 | { | ||
77 | int i; | ||
78 | |||
79 | if (PCI_SLOT(dev->devfn) == EMMA2RH_PCI_HOST_SLOT) { | ||
80 | dev->class &= 0xff; | ||
81 | dev->class |= PCI_CLASS_BRIDGE_HOST << 8; | ||
82 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { | ||
83 | dev->resource[i].start = 0; | ||
84 | dev->resource[i].end = 0; | ||
85 | dev->resource[i].flags = 0; | ||
86 | } | ||
87 | } | ||
88 | } | ||
89 | |||
90 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_EMMA2RH, | ||
91 | emma2rh_pci_host_fixup); | ||
92 | |||
93 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
94 | { | ||
95 | return irq_map[slot][pin]; | ||
96 | } | ||
97 | |||
98 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
99 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
100 | { | ||
101 | return 0; | ||
102 | } | ||
diff --git a/arch/mips/pci/fixup-excite.c b/arch/mips/pci/fixup-excite.c new file mode 100644 index 000000000000..1da696d43f00 --- /dev/null +++ b/arch/mips/pci/fixup-excite.c | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
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 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/pci.h> | ||
22 | #include <excite.h> | ||
23 | |||
24 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
25 | { | ||
26 | if (pin == 0) | ||
27 | return -1; | ||
28 | |||
29 | return USB_IRQ; /* USB controller is the only PCI device */ | ||
30 | } | ||
31 | |||
32 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
33 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
34 | { | ||
35 | return 0; | ||
36 | } | ||
diff --git a/arch/mips/pci/fixup-wrppmc.c b/arch/mips/pci/fixup-wrppmc.c new file mode 100644 index 000000000000..3357c1300bb1 --- /dev/null +++ b/arch/mips/pci/fixup-wrppmc.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * fixup-wrppmc.c: PPMC board specific PCI fixup | ||
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 | * Copyright (C) 2006, Wind River Inc. Rongkai.zhan (rongkai.zhan@windriver.com) | ||
9 | */ | ||
10 | #include <linux/init.h> | ||
11 | #include <linux/pci.h> | ||
12 | #include <asm/gt64120.h> | ||
13 | |||
14 | /* PCI interrupt pins */ | ||
15 | #define PCI_INTA 1 | ||
16 | #define PCI_INTB 2 | ||
17 | #define PCI_INTC 3 | ||
18 | #define PCI_INTD 4 | ||
19 | |||
20 | #define PCI_SLOT_MAXNR 32 /* Each PCI bus has 32 physical slots */ | ||
21 | |||
22 | static char pci_irq_tab[PCI_SLOT_MAXNR][5] __initdata = { | ||
23 | /* 0 INTA INTB INTC INTD */ | ||
24 | [0] = {0, 0, 0, 0, 0}, /* Slot 0: GT64120 PCI bridge */ | ||
25 | [6] = {0, WRPPMC_PCI_INTA_IRQ, 0, 0, 0}, | ||
26 | }; | ||
27 | |||
28 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
29 | { | ||
30 | return pci_irq_tab[slot][pin]; | ||
31 | } | ||
32 | |||
33 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
34 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
35 | { | ||
36 | return 0; | ||
37 | } | ||
diff --git a/arch/mips/pci/ops-bridge.c b/arch/mips/pci/ops-bridge.c new file mode 100644 index 000000000000..1fa09929cd7a --- /dev/null +++ b/arch/mips/pci/ops-bridge.c | |||
@@ -0,0 +1,306 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1999, 2000, 04, 06 Ralf Baechle (ralf@linux-mips.org) | ||
7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | ||
8 | */ | ||
9 | #include <linux/pci.h> | ||
10 | #include <asm/paccess.h> | ||
11 | #include <asm/pci/bridge.h> | ||
12 | #include <asm/sn/arch.h> | ||
13 | #include <asm/sn/intr.h> | ||
14 | #include <asm/sn/sn0/hub.h> | ||
15 | |||
16 | /* | ||
17 | * The Bridge ASIC supports both type 0 and type 1 access. Type 1 is | ||
18 | * not really documented, so right now I can't write code which uses it. | ||
19 | * Therefore we use type 0 accesses for now even though they won't work | ||
20 | * correcly for PCI-to-PCI bridges. | ||
21 | * | ||
22 | * The function is complicated by the ultimate brokeness of the IOC3 chip | ||
23 | * which is used in SGI systems. The IOC3 can only handle 32-bit PCI | ||
24 | * accesses and does only decode parts of it's address space. | ||
25 | */ | ||
26 | |||
27 | static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, | ||
28 | int where, int size, u32 * value) | ||
29 | { | ||
30 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
31 | bridge_t *bridge = bc->base; | ||
32 | int slot = PCI_SLOT(devfn); | ||
33 | int fn = PCI_FUNC(devfn); | ||
34 | volatile void *addr; | ||
35 | u32 cf, shift, mask; | ||
36 | int res; | ||
37 | |||
38 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; | ||
39 | if (get_dbe(cf, (u32 *) addr)) | ||
40 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
41 | |||
42 | /* | ||
43 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
44 | * generic PCI code a chance to look at it for real ... | ||
45 | */ | ||
46 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
47 | goto oh_my_gawd; | ||
48 | |||
49 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; | ||
50 | |||
51 | if (size == 1) | ||
52 | res = get_dbe(*value, (u8 *) addr); | ||
53 | else if (size == 2) | ||
54 | res = get_dbe(*value, (u16 *) addr); | ||
55 | else | ||
56 | res = get_dbe(*value, (u32 *) addr); | ||
57 | |||
58 | return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
59 | |||
60 | oh_my_gawd: | ||
61 | |||
62 | /* | ||
63 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
64 | * generic PCI code a chance to look at the wrong register. | ||
65 | */ | ||
66 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { | ||
67 | *value = 0; | ||
68 | return PCIBIOS_SUCCESSFUL; | ||
69 | } | ||
70 | |||
71 | /* | ||
72 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
73 | * anything but 32-bit words ... | ||
74 | */ | ||
75 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
76 | |||
77 | if (get_dbe(cf, (u32 *) addr)) | ||
78 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
79 | |||
80 | shift = ((where & 3) << 3); | ||
81 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
82 | *value = (cf >> shift) & mask; | ||
83 | |||
84 | return PCIBIOS_SUCCESSFUL; | ||
85 | } | ||
86 | |||
87 | static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, | ||
88 | int where, int size, u32 * value) | ||
89 | { | ||
90 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
91 | bridge_t *bridge = bc->base; | ||
92 | int busno = bus->number; | ||
93 | int slot = PCI_SLOT(devfn); | ||
94 | int fn = PCI_FUNC(devfn); | ||
95 | volatile void *addr; | ||
96 | u32 cf, shift, mask; | ||
97 | int res; | ||
98 | |||
99 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
100 | addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; | ||
101 | if (get_dbe(cf, (u32 *) addr)) | ||
102 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
103 | |||
104 | /* | ||
105 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
106 | * generic PCI code a chance to look at it for real ... | ||
107 | */ | ||
108 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
109 | goto oh_my_gawd; | ||
110 | |||
111 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
112 | addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; | ||
113 | |||
114 | if (size == 1) | ||
115 | res = get_dbe(*value, (u8 *) addr); | ||
116 | else if (size == 2) | ||
117 | res = get_dbe(*value, (u16 *) addr); | ||
118 | else | ||
119 | res = get_dbe(*value, (u32 *) addr); | ||
120 | |||
121 | return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
122 | |||
123 | oh_my_gawd: | ||
124 | |||
125 | /* | ||
126 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
127 | * generic PCI code a chance to look at the wrong register. | ||
128 | */ | ||
129 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { | ||
130 | *value = 0; | ||
131 | return PCIBIOS_SUCCESSFUL; | ||
132 | } | ||
133 | |||
134 | /* | ||
135 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
136 | * anything but 32-bit words ... | ||
137 | */ | ||
138 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
139 | addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; | ||
140 | |||
141 | if (get_dbe(cf, (u32 *) addr)) | ||
142 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
143 | |||
144 | shift = ((where & 3) << 3); | ||
145 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
146 | *value = (cf >> shift) & mask; | ||
147 | |||
148 | return PCIBIOS_SUCCESSFUL; | ||
149 | } | ||
150 | |||
151 | static int pci_read_config(struct pci_bus *bus, unsigned int devfn, | ||
152 | int where, int size, u32 * value) | ||
153 | { | ||
154 | if (bus->number > 0) | ||
155 | return pci_conf1_read_config(bus, devfn, where, size, value); | ||
156 | |||
157 | return pci_conf0_read_config(bus, devfn, where, size, value); | ||
158 | } | ||
159 | |||
160 | static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, | ||
161 | int where, int size, u32 value) | ||
162 | { | ||
163 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
164 | bridge_t *bridge = bc->base; | ||
165 | int slot = PCI_SLOT(devfn); | ||
166 | int fn = PCI_FUNC(devfn); | ||
167 | volatile void *addr; | ||
168 | u32 cf, shift, mask, smask; | ||
169 | int res; | ||
170 | |||
171 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; | ||
172 | if (get_dbe(cf, (u32 *) addr)) | ||
173 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
174 | |||
175 | /* | ||
176 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
177 | * generic PCI code a chance to look at it for real ... | ||
178 | */ | ||
179 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
180 | goto oh_my_gawd; | ||
181 | |||
182 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; | ||
183 | |||
184 | if (size == 1) { | ||
185 | res = put_dbe(value, (u8 *) addr); | ||
186 | } else if (size == 2) { | ||
187 | res = put_dbe(value, (u16 *) addr); | ||
188 | } else { | ||
189 | res = put_dbe(value, (u32 *) addr); | ||
190 | } | ||
191 | |||
192 | if (res) | ||
193 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
194 | |||
195 | return PCIBIOS_SUCCESSFUL; | ||
196 | |||
197 | oh_my_gawd: | ||
198 | |||
199 | /* | ||
200 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
201 | * generic PCI code a chance to touch the wrong register. | ||
202 | */ | ||
203 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) | ||
204 | return PCIBIOS_SUCCESSFUL; | ||
205 | |||
206 | /* | ||
207 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
208 | * anything but 32-bit words ... | ||
209 | */ | ||
210 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
211 | |||
212 | if (get_dbe(cf, (u32 *) addr)) | ||
213 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
214 | |||
215 | shift = ((where & 3) << 3); | ||
216 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
217 | smask = mask << shift; | ||
218 | |||
219 | cf = (cf & ~smask) | ((value & mask) << shift); | ||
220 | if (put_dbe(cf, (u32 *) addr)) | ||
221 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
222 | |||
223 | return PCIBIOS_SUCCESSFUL; | ||
224 | } | ||
225 | |||
226 | static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, | ||
227 | int where, int size, u32 value) | ||
228 | { | ||
229 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
230 | bridge_t *bridge = bc->base; | ||
231 | int slot = PCI_SLOT(devfn); | ||
232 | int fn = PCI_FUNC(devfn); | ||
233 | int busno = bus->number; | ||
234 | volatile void *addr; | ||
235 | u32 cf, shift, mask, smask; | ||
236 | int res; | ||
237 | |||
238 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
239 | addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; | ||
240 | if (get_dbe(cf, (u32 *) addr)) | ||
241 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
242 | |||
243 | /* | ||
244 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
245 | * generic PCI code a chance to look at it for real ... | ||
246 | */ | ||
247 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
248 | goto oh_my_gawd; | ||
249 | |||
250 | addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; | ||
251 | |||
252 | if (size == 1) { | ||
253 | res = put_dbe(value, (u8 *) addr); | ||
254 | } else if (size == 2) { | ||
255 | res = put_dbe(value, (u16 *) addr); | ||
256 | } else { | ||
257 | res = put_dbe(value, (u32 *) addr); | ||
258 | } | ||
259 | |||
260 | if (res) | ||
261 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
262 | |||
263 | return PCIBIOS_SUCCESSFUL; | ||
264 | |||
265 | oh_my_gawd: | ||
266 | |||
267 | /* | ||
268 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
269 | * generic PCI code a chance to touch the wrong register. | ||
270 | */ | ||
271 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) | ||
272 | return PCIBIOS_SUCCESSFUL; | ||
273 | |||
274 | /* | ||
275 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
276 | * anything but 32-bit words ... | ||
277 | */ | ||
278 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
279 | |||
280 | if (get_dbe(cf, (u32 *) addr)) | ||
281 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
282 | |||
283 | shift = ((where & 3) << 3); | ||
284 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
285 | smask = mask << shift; | ||
286 | |||
287 | cf = (cf & ~smask) | ((value & mask) << shift); | ||
288 | if (put_dbe(cf, (u32 *) addr)) | ||
289 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
290 | |||
291 | return PCIBIOS_SUCCESSFUL; | ||
292 | } | ||
293 | |||
294 | static int pci_write_config(struct pci_bus *bus, unsigned int devfn, | ||
295 | int where, int size, u32 value) | ||
296 | { | ||
297 | if (bus->number > 0) | ||
298 | return pci_conf1_write_config(bus, devfn, where, size, value); | ||
299 | |||
300 | return pci_conf0_write_config(bus, devfn, where, size, value); | ||
301 | } | ||
302 | |||
303 | struct pci_ops bridge_pci_ops = { | ||
304 | .read = pci_read_config, | ||
305 | .write = pci_write_config, | ||
306 | }; | ||
diff --git a/arch/mips/pci/ops-ddb5074.c b/arch/mips/pci/ops-ddb5074.c deleted file mode 100644 index 89f97bef4fc4..000000000000 --- a/arch/mips/pci/ops-ddb5074.c +++ /dev/null | |||
@@ -1,271 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2001 MontaVista Software Inc. | ||
3 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | ||
4 | * | ||
5 | * arch/mips/ddb5xxx/ddb5476/pci_ops.c | ||
6 | * Define the pci_ops for DB5477. | ||
7 | * | ||
8 | * Much of the code is derived from the original DDB5074 port by | ||
9 | * Geert Uytterhoeven <geert@sonycom.com> | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify it | ||
12 | * under the terms of the GNU General Public License as published by the | ||
13 | * Free Software Foundation; either version 2 of the License, or (at your | ||
14 | * option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | #include <linux/pci.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/types.h> | ||
20 | |||
21 | #include <asm/addrspace.h> | ||
22 | #include <asm/debug.h> | ||
23 | |||
24 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
25 | |||
26 | /* | ||
27 | * config_swap structure records what set of pdar/pmr are used | ||
28 | * to access pci config space. It also provides a place hold the | ||
29 | * original values for future restoring. | ||
30 | */ | ||
31 | struct pci_config_swap { | ||
32 | u32 pdar; | ||
33 | u32 pmr; | ||
34 | u32 config_base; | ||
35 | u32 config_size; | ||
36 | u32 pdar_backup; | ||
37 | u32 pmr_backup; | ||
38 | }; | ||
39 | |||
40 | /* | ||
41 | * On DDB5476, we have one set of swap registers | ||
42 | */ | ||
43 | struct pci_config_swap ext_pci_swap = { | ||
44 | DDB_PCIW0, | ||
45 | DDB_PCIINIT0, | ||
46 | DDB_PCI_CONFIG_BASE, | ||
47 | DDB_PCI_CONFIG_SIZE | ||
48 | }; | ||
49 | |||
50 | static int pci_config_workaround = 1; | ||
51 | |||
52 | /* | ||
53 | * access config space | ||
54 | */ | ||
55 | static inline u32 ddb_access_config_base(struct pci_config_swap *swap, u32 bus, /* 0 means top level bus */ | ||
56 | u32 slot_num) | ||
57 | { | ||
58 | u32 pci_addr = 0; | ||
59 | u32 pciinit_offset = 0; | ||
60 | u32 virt_addr = swap->config_base; | ||
61 | u32 option; | ||
62 | |||
63 | if (pci_config_workaround) { | ||
64 | if (slot_num == 5) | ||
65 | slot_num = 14; | ||
66 | } else { | ||
67 | if (slot_num == 5) | ||
68 | return DDB_BASE + DDB_PCI_BASE; | ||
69 | } | ||
70 | |||
71 | /* minimum pdar (window) size is 2MB */ | ||
72 | db_assert(swap->config_size >= (2 << 20)); | ||
73 | |||
74 | db_assert(slot_num < (1 << 5)); | ||
75 | db_assert(bus < (1 << 8)); | ||
76 | |||
77 | /* backup registers */ | ||
78 | swap->pdar_backup = ddb_in32(swap->pdar); | ||
79 | swap->pmr_backup = ddb_in32(swap->pmr); | ||
80 | |||
81 | /* set the pdar (pci window) register */ | ||
82 | ddb_set_pdar(swap->pdar, swap->config_base, swap->config_size, 32, /* 32 bit wide */ | ||
83 | 0, /* not on local memory bus */ | ||
84 | 0); /* not visible from PCI bus (N/A) */ | ||
85 | |||
86 | /* | ||
87 | * calcuate the absolute pci config addr; | ||
88 | * according to the spec, we start scanning from adr:11 (0x800) | ||
89 | */ | ||
90 | if (bus == 0) { | ||
91 | /* type 0 config */ | ||
92 | pci_addr = 0x00040000 << slot_num; | ||
93 | } else { | ||
94 | /* type 1 config */ | ||
95 | pci_addr = 0x00040000 << slot_num; | ||
96 | panic | ||
97 | ("ddb_access_config_base: we don't support type 1 config Yet"); | ||
98 | } | ||
99 | |||
100 | /* | ||
101 | * if pci_addr is less than pci config window size, we set | ||
102 | * pciinit_offset to 0 and adjust the virt_address. | ||
103 | * Otherwise we will try to adjust pciinit_offset. | ||
104 | */ | ||
105 | if (pci_addr < swap->config_size) { | ||
106 | virt_addr = KSEG1ADDR(swap->config_base + pci_addr); | ||
107 | pciinit_offset = 0; | ||
108 | } else { | ||
109 | db_assert((pci_addr & (swap->config_size - 1)) == 0); | ||
110 | virt_addr = KSEG1ADDR(swap->config_base); | ||
111 | pciinit_offset = pci_addr; | ||
112 | } | ||
113 | |||
114 | /* set the pmr register */ | ||
115 | option = DDB_PCI_ACCESS_32; | ||
116 | if (bus != 0) | ||
117 | option |= DDB_PCI_CFGTYPE1; | ||
118 | ddb_set_pmr(swap->pmr, DDB_PCICMD_CFG, pciinit_offset, option); | ||
119 | |||
120 | return virt_addr; | ||
121 | } | ||
122 | |||
123 | static inline void ddb_close_config_base(struct pci_config_swap *swap) | ||
124 | { | ||
125 | ddb_out32(swap->pdar, swap->pdar_backup); | ||
126 | ddb_out32(swap->pmr, swap->pmr_backup); | ||
127 | } | ||
128 | |||
129 | static int read_config_dword(struct pci_config_swap *swap, | ||
130 | struct pci_dev *dev, u32 where, u32 * val) | ||
131 | { | ||
132 | u32 bus, slot_num, func_num; | ||
133 | u32 base; | ||
134 | |||
135 | db_assert((where & 3) == 0); | ||
136 | db_assert(where < (1 << 8)); | ||
137 | |||
138 | /* check if the bus is top-level */ | ||
139 | if (dev->bus->parent != NULL) { | ||
140 | bus = dev->bus->number; | ||
141 | db_assert(bus != 0); | ||
142 | } else { | ||
143 | bus = 0; | ||
144 | } | ||
145 | |||
146 | slot_num = PCI_SLOT(dev->devfn); | ||
147 | func_num = PCI_FUNC(dev->devfn); | ||
148 | base = ddb_access_config_base(swap, bus, slot_num); | ||
149 | *val = *(volatile u32 *) (base + (func_num << 8) + where); | ||
150 | ddb_close_config_base(swap); | ||
151 | return PCIBIOS_SUCCESSFUL; | ||
152 | } | ||
153 | |||
154 | static int read_config_word(struct pci_config_swap *swap, | ||
155 | struct pci_dev *dev, u32 where, u16 * val) | ||
156 | { | ||
157 | int status; | ||
158 | u32 result; | ||
159 | |||
160 | db_assert((where & 1) == 0); | ||
161 | |||
162 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
163 | if (where & 2) | ||
164 | result >>= 16; | ||
165 | *val = result & 0xffff; | ||
166 | return status; | ||
167 | } | ||
168 | |||
169 | static int read_config_byte(struct pci_config_swap *swap, | ||
170 | struct pci_dev *dev, u32 where, u8 * val) | ||
171 | { | ||
172 | int status; | ||
173 | u32 result; | ||
174 | |||
175 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
176 | if (where & 1) | ||
177 | result >>= 8; | ||
178 | if (where & 2) | ||
179 | result >>= 16; | ||
180 | *val = result & 0xff; | ||
181 | return status; | ||
182 | } | ||
183 | |||
184 | static int write_config_dword(struct pci_config_swap *swap, | ||
185 | struct pci_dev *dev, u32 where, u32 val) | ||
186 | { | ||
187 | u32 bus, slot_num, func_num; | ||
188 | u32 base; | ||
189 | |||
190 | db_assert((where & 3) == 0); | ||
191 | db_assert(where < (1 << 8)); | ||
192 | |||
193 | /* check if the bus is top-level */ | ||
194 | if (dev->bus->parent != NULL) { | ||
195 | bus = dev->bus->number; | ||
196 | db_assert(bus != 0); | ||
197 | } else { | ||
198 | bus = 0; | ||
199 | } | ||
200 | |||
201 | slot_num = PCI_SLOT(dev->devfn); | ||
202 | func_num = PCI_FUNC(dev->devfn); | ||
203 | base = ddb_access_config_base(swap, bus, slot_num); | ||
204 | *(volatile u32 *) (base + (func_num << 8) + where) = val; | ||
205 | ddb_close_config_base(swap); | ||
206 | return PCIBIOS_SUCCESSFUL; | ||
207 | } | ||
208 | |||
209 | static int write_config_word(struct pci_config_swap *swap, | ||
210 | struct pci_dev *dev, u32 where, u16 val) | ||
211 | { | ||
212 | int status, shift = 0; | ||
213 | u32 result; | ||
214 | |||
215 | db_assert((where & 1) == 0); | ||
216 | |||
217 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
218 | if (status != PCIBIOS_SUCCESSFUL) | ||
219 | return status; | ||
220 | |||
221 | if (where & 2) | ||
222 | shift += 16; | ||
223 | result &= ~(0xffff << shift); | ||
224 | result |= val << shift; | ||
225 | return write_config_dword(swap, dev, where & ~3, result); | ||
226 | } | ||
227 | |||
228 | static int write_config_byte(struct pci_config_swap *swap, | ||
229 | struct pci_dev *dev, u32 where, u8 val) | ||
230 | { | ||
231 | int status, shift = 0; | ||
232 | u32 result; | ||
233 | |||
234 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
235 | if (status != PCIBIOS_SUCCESSFUL) | ||
236 | return status; | ||
237 | |||
238 | if (where & 2) | ||
239 | shift += 16; | ||
240 | if (where & 1) | ||
241 | shift += 8; | ||
242 | result &= ~(0xff << shift); | ||
243 | result |= val << shift; | ||
244 | return write_config_dword(swap, dev, where & ~3, result); | ||
245 | } | ||
246 | |||
247 | #define MAKE_PCI_OPS(prefix, rw, unitname, unittype, pciswap) \ | ||
248 | static int prefix##_##rw##_config_##unitname(struct pci_dev *dev, int where, unittype val) \ | ||
249 | { \ | ||
250 | return rw##_config_##unitname(pciswap, \ | ||
251 | dev, \ | ||
252 | where, \ | ||
253 | val); \ | ||
254 | } | ||
255 | |||
256 | MAKE_PCI_OPS(extpci, read, byte, u8 *, &ext_pci_swap) | ||
257 | MAKE_PCI_OPS(extpci, read, word, u16 *, &ext_pci_swap) | ||
258 | MAKE_PCI_OPS(extpci, read, dword, u32 *, &ext_pci_swap) | ||
259 | |||
260 | MAKE_PCI_OPS(extpci, write, byte, u8, &ext_pci_swap) | ||
261 | MAKE_PCI_OPS(extpci, write, word, u16, &ext_pci_swap) | ||
262 | MAKE_PCI_OPS(extpci, write, dword, u32, &ext_pci_swap) | ||
263 | |||
264 | struct pci_ops ddb5476_ext_pci_ops = { | ||
265 | extpci_read_config_byte, | ||
266 | extpci_read_config_word, | ||
267 | extpci_read_config_dword, | ||
268 | extpci_write_config_byte, | ||
269 | extpci_write_config_word, | ||
270 | extpci_write_config_dword | ||
271 | }; | ||
diff --git a/arch/mips/pci/ops-ddb5476.c b/arch/mips/pci/ops-ddb5476.c deleted file mode 100644 index 12da58e75ec7..000000000000 --- a/arch/mips/pci/ops-ddb5476.c +++ /dev/null | |||
@@ -1,286 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2001 MontaVista Software Inc. | ||
3 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | ||
4 | * | ||
5 | * arch/mips/ddb5xxx/ddb5476/pci_ops.c | ||
6 | * Define the pci_ops for DB5477. | ||
7 | * | ||
8 | * Much of the code is derived from the original DDB5074 port by | ||
9 | * Geert Uytterhoeven <geert@sonycom.com> | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify it | ||
12 | * under the terms of the GNU General Public License as published by the | ||
13 | * Free Software Foundation; either version 2 of the License, or (at your | ||
14 | * option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | #include <linux/pci.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/types.h> | ||
20 | |||
21 | #include <asm/addrspace.h> | ||
22 | #include <asm/debug.h> | ||
23 | |||
24 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
25 | |||
26 | /* | ||
27 | * config_swap structure records what set of pdar/pmr are used | ||
28 | * to access pci config space. It also provides a place hold the | ||
29 | * original values for future restoring. | ||
30 | */ | ||
31 | struct pci_config_swap { | ||
32 | u32 pdar; | ||
33 | u32 pmr; | ||
34 | u32 config_base; | ||
35 | u32 config_size; | ||
36 | u32 pdar_backup; | ||
37 | u32 pmr_backup; | ||
38 | }; | ||
39 | |||
40 | /* | ||
41 | * On DDB5476, we have one set of swap registers | ||
42 | */ | ||
43 | struct pci_config_swap ext_pci_swap = { | ||
44 | DDB_PCIW0, | ||
45 | DDB_PCIINIT0, | ||
46 | DDB_PCI_CONFIG_BASE, | ||
47 | DDB_PCI_CONFIG_SIZE | ||
48 | }; | ||
49 | |||
50 | static int pci_config_workaround = 1; | ||
51 | |||
52 | /* | ||
53 | * access config space | ||
54 | */ | ||
55 | static inline u32 ddb_access_config_base(struct pci_config_swap *swap, u32 bus, /* 0 means top level bus */ | ||
56 | u32 slot_num) | ||
57 | { | ||
58 | u32 pci_addr = 0; | ||
59 | u32 pciinit_offset = 0; | ||
60 | u32 virt_addr = swap->config_base; | ||
61 | u32 option; | ||
62 | |||
63 | if (pci_config_workaround) { | ||
64 | /* [jsun] work around Vrc5476 controller itself, returnning | ||
65 | * slot 0 essentially makes vrc5476 invisible | ||
66 | */ | ||
67 | if (slot_num == 12) | ||
68 | slot_num = 0; | ||
69 | |||
70 | #if 0 | ||
71 | /* BUG : skip P2P bridge for now */ | ||
72 | if (slot_num == 5) | ||
73 | slot_num = 0; | ||
74 | #endif | ||
75 | |||
76 | } else { | ||
77 | /* now we have to be hornest, returning the true | ||
78 | * PCI config headers for vrc5476 | ||
79 | */ | ||
80 | if (slot_num == 12) { | ||
81 | swap->pdar_backup = ddb_in32(swap->pdar); | ||
82 | swap->pmr_backup = ddb_in32(swap->pmr); | ||
83 | return DDB_BASE + DDB_PCI_BASE; | ||
84 | } | ||
85 | } | ||
86 | |||
87 | /* minimum pdar (window) size is 2MB */ | ||
88 | db_assert(swap->config_size >= (2 << 20)); | ||
89 | |||
90 | db_assert(slot_num < (1 << 5)); | ||
91 | db_assert(bus < (1 << 8)); | ||
92 | |||
93 | /* backup registers */ | ||
94 | swap->pdar_backup = ddb_in32(swap->pdar); | ||
95 | swap->pmr_backup = ddb_in32(swap->pmr); | ||
96 | |||
97 | /* set the pdar (pci window) register */ | ||
98 | ddb_set_pdar(swap->pdar, swap->config_base, swap->config_size, 32, /* 32 bit wide */ | ||
99 | 0, /* not on local memory bus */ | ||
100 | 0); /* not visible from PCI bus (N/A) */ | ||
101 | |||
102 | /* | ||
103 | * calcuate the absolute pci config addr; | ||
104 | * according to the spec, we start scanning from adr:11 (0x800) | ||
105 | */ | ||
106 | if (bus == 0) { | ||
107 | /* type 0 config */ | ||
108 | pci_addr = 0x800 << slot_num; | ||
109 | } else { | ||
110 | /* type 1 config */ | ||
111 | pci_addr = (bus << 16) | (slot_num << 11); | ||
112 | /* panic("ddb_access_config_base: we don't support type 1 config Yet"); */ | ||
113 | } | ||
114 | |||
115 | /* | ||
116 | * if pci_addr is less than pci config window size, we set | ||
117 | * pciinit_offset to 0 and adjust the virt_address. | ||
118 | * Otherwise we will try to adjust pciinit_offset. | ||
119 | */ | ||
120 | if (pci_addr < swap->config_size) { | ||
121 | virt_addr = KSEG1ADDR(swap->config_base + pci_addr); | ||
122 | pciinit_offset = 0; | ||
123 | } else { | ||
124 | db_assert((pci_addr & (swap->config_size - 1)) == 0); | ||
125 | virt_addr = KSEG1ADDR(swap->config_base); | ||
126 | pciinit_offset = pci_addr; | ||
127 | } | ||
128 | |||
129 | /* set the pmr register */ | ||
130 | option = DDB_PCI_ACCESS_32; | ||
131 | if (bus != 0) | ||
132 | option |= DDB_PCI_CFGTYPE1; | ||
133 | ddb_set_pmr(swap->pmr, DDB_PCICMD_CFG, pciinit_offset, option); | ||
134 | |||
135 | return virt_addr; | ||
136 | } | ||
137 | |||
138 | static inline void ddb_close_config_base(struct pci_config_swap *swap) | ||
139 | { | ||
140 | ddb_out32(swap->pdar, swap->pdar_backup); | ||
141 | ddb_out32(swap->pmr, swap->pmr_backup); | ||
142 | } | ||
143 | |||
144 | static int read_config_dword(struct pci_config_swap *swap, | ||
145 | struct pci_dev *dev, u32 where, u32 * val) | ||
146 | { | ||
147 | u32 bus, slot_num, func_num; | ||
148 | u32 base; | ||
149 | |||
150 | db_assert((where & 3) == 0); | ||
151 | db_assert(where < (1 << 8)); | ||
152 | |||
153 | /* check if the bus is top-level */ | ||
154 | if (dev->bus->parent != NULL) { | ||
155 | bus = dev->bus->number; | ||
156 | db_assert(bus != 0); | ||
157 | } else { | ||
158 | bus = 0; | ||
159 | } | ||
160 | |||
161 | slot_num = PCI_SLOT(dev->devfn); | ||
162 | func_num = PCI_FUNC(dev->devfn); | ||
163 | base = ddb_access_config_base(swap, bus, slot_num); | ||
164 | *val = *(volatile u32 *) (base + (func_num << 8) + where); | ||
165 | ddb_close_config_base(swap); | ||
166 | return PCIBIOS_SUCCESSFUL; | ||
167 | } | ||
168 | |||
169 | static int read_config_word(struct pci_config_swap *swap, | ||
170 | struct pci_dev *dev, u32 where, u16 * val) | ||
171 | { | ||
172 | int status; | ||
173 | u32 result; | ||
174 | |||
175 | db_assert((where & 1) == 0); | ||
176 | |||
177 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
178 | if (where & 2) | ||
179 | result >>= 16; | ||
180 | *val = result & 0xffff; | ||
181 | return status; | ||
182 | } | ||
183 | |||
184 | static int read_config_byte(struct pci_config_swap *swap, | ||
185 | struct pci_dev *dev, u32 where, u8 * val) | ||
186 | { | ||
187 | int status; | ||
188 | u32 result; | ||
189 | |||
190 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
191 | if (where & 1) | ||
192 | result >>= 8; | ||
193 | if (where & 2) | ||
194 | result >>= 16; | ||
195 | *val = result & 0xff; | ||
196 | return status; | ||
197 | } | ||
198 | |||
199 | static int write_config_dword(struct pci_config_swap *swap, | ||
200 | struct pci_dev *dev, u32 where, u32 val) | ||
201 | { | ||
202 | u32 bus, slot_num, func_num; | ||
203 | u32 base; | ||
204 | |||
205 | db_assert((where & 3) == 0); | ||
206 | db_assert(where < (1 << 8)); | ||
207 | |||
208 | /* check if the bus is top-level */ | ||
209 | if (dev->bus->parent != NULL) { | ||
210 | bus = dev->bus->number; | ||
211 | db_assert(bus != 0); | ||
212 | } else { | ||
213 | bus = 0; | ||
214 | } | ||
215 | |||
216 | slot_num = PCI_SLOT(dev->devfn); | ||
217 | func_num = PCI_FUNC(dev->devfn); | ||
218 | base = ddb_access_config_base(swap, bus, slot_num); | ||
219 | *(volatile u32 *) (base + (func_num << 8) + where) = val; | ||
220 | ddb_close_config_base(swap); | ||
221 | return PCIBIOS_SUCCESSFUL; | ||
222 | } | ||
223 | |||
224 | static int write_config_word(struct pci_config_swap *swap, | ||
225 | struct pci_dev *dev, u32 where, u16 val) | ||
226 | { | ||
227 | int status, shift = 0; | ||
228 | u32 result; | ||
229 | |||
230 | db_assert((where & 1) == 0); | ||
231 | |||
232 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
233 | if (status != PCIBIOS_SUCCESSFUL) | ||
234 | return status; | ||
235 | |||
236 | if (where & 2) | ||
237 | shift += 16; | ||
238 | result &= ~(0xffff << shift); | ||
239 | result |= val << shift; | ||
240 | return write_config_dword(swap, dev, where & ~3, result); | ||
241 | } | ||
242 | |||
243 | static int write_config_byte(struct pci_config_swap *swap, | ||
244 | struct pci_dev *dev, u32 where, u8 val) | ||
245 | { | ||
246 | int status, shift = 0; | ||
247 | u32 result; | ||
248 | |||
249 | status = read_config_dword(swap, dev, where & ~3, &result); | ||
250 | if (status != PCIBIOS_SUCCESSFUL) | ||
251 | return status; | ||
252 | |||
253 | if (where & 2) | ||
254 | shift += 16; | ||
255 | if (where & 1) | ||
256 | shift += 8; | ||
257 | result &= ~(0xff << shift); | ||
258 | result |= val << shift; | ||
259 | return write_config_dword(swap, dev, where & ~3, result); | ||
260 | } | ||
261 | |||
262 | #define MAKE_PCI_OPS(prefix, rw, unitname, unittype, pciswap) \ | ||
263 | static int prefix##_##rw##_config_##unitname(struct pci_dev *dev, int where, unittype val) \ | ||
264 | { \ | ||
265 | return rw##_config_##unitname(pciswap, \ | ||
266 | dev, \ | ||
267 | where, \ | ||
268 | val); \ | ||
269 | } | ||
270 | |||
271 | MAKE_PCI_OPS(extpci, read, byte, u8 *, &ext_pci_swap) | ||
272 | MAKE_PCI_OPS(extpci, read, word, u16 *, &ext_pci_swap) | ||
273 | MAKE_PCI_OPS(extpci, read, dword, u32 *, &ext_pci_swap) | ||
274 | |||
275 | MAKE_PCI_OPS(extpci, write, byte, u8, &ext_pci_swap) | ||
276 | MAKE_PCI_OPS(extpci, write, word, u16, &ext_pci_swap) | ||
277 | MAKE_PCI_OPS(extpci, write, dword, u32, &ext_pci_swap) | ||
278 | |||
279 | struct pci_ops ddb5476_ext_pci_ops = { | ||
280 | extpci_read_config_byte, | ||
281 | extpci_read_config_word, | ||
282 | extpci_read_config_dword, | ||
283 | extpci_write_config_byte, | ||
284 | extpci_write_config_word, | ||
285 | extpci_write_config_dword | ||
286 | }; | ||
diff --git a/arch/mips/pci/ops-emma2rh.c b/arch/mips/pci/ops-emma2rh.c new file mode 100644 index 000000000000..e21b11bf66bc --- /dev/null +++ b/arch/mips/pci/ops-emma2rh.c | |||
@@ -0,0 +1,186 @@ | |||
1 | /* | ||
2 | * arch/mips/pci/ops-emma2rh.c | ||
3 | * This file defines the PCI operation for EMMA2RH. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/pci/ops-vr41xx.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | |||
26 | #include <linux/config.h> | ||
27 | #include <linux/pci.h> | ||
28 | #include <linux/kernel.h> | ||
29 | #include <linux/types.h> | ||
30 | |||
31 | #include <asm/addrspace.h> | ||
32 | #include <asm/debug.h> | ||
33 | |||
34 | #include <asm/emma2rh/emma2rh.h> | ||
35 | |||
36 | #define RTABORT (0x1<<9) | ||
37 | #define RMABORT (0x1<<10) | ||
38 | #define EMMA2RH_PCI_SLOT_NUM 9 /* 0000:09.0 is final PCI device */ | ||
39 | |||
40 | /* | ||
41 | * access config space | ||
42 | */ | ||
43 | |||
44 | static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) | ||
45 | { | ||
46 | /* check if the bus is top-level */ | ||
47 | if (bus->parent != NULL) { | ||
48 | *bus_num = bus->number; | ||
49 | db_assert(bus_num != 0); | ||
50 | } else | ||
51 | *bus_num = 0; | ||
52 | |||
53 | if (*bus_num == 0) { | ||
54 | /* Type 0 */ | ||
55 | if (PCI_SLOT(devfn) >= 10) | ||
56 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
57 | } else { | ||
58 | /* Type 1 */ | ||
59 | if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) | ||
60 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
61 | } | ||
62 | return 0; | ||
63 | } | ||
64 | |||
65 | static inline int set_pci_configuration_address(unsigned char bus_num, | ||
66 | unsigned int devfn, int where) | ||
67 | { | ||
68 | u32 config_win0; | ||
69 | |||
70 | emma2rh_out32(EMMA2RH_PCI_INT, ~RMABORT); | ||
71 | if (bus_num == 0) | ||
72 | /* | ||
73 | * Type 0 configuration | ||
74 | */ | ||
75 | config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); | ||
76 | else | ||
77 | /* | ||
78 | * Type 1 configuration | ||
79 | */ | ||
80 | config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | | ||
81 | (1 << 15) | (5 << 9); | ||
82 | |||
83 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, config_win0); | ||
84 | |||
85 | return 0; | ||
86 | } | ||
87 | |||
88 | static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, | ||
89 | int size, uint32_t * val) | ||
90 | { | ||
91 | u32 bus_num; | ||
92 | u32 base = KSEG1ADDR(EMMA2RH_PCI_CONFIG_BASE); | ||
93 | u32 backup_win0; | ||
94 | u32 data; | ||
95 | |||
96 | *val = 0xffffffffU; | ||
97 | |||
98 | if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) | ||
99 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
100 | |||
101 | backup_win0 = emma2rh_in32(EMMA2RH_PCI_IWIN0_CTR); | ||
102 | |||
103 | if (set_pci_configuration_address(bus_num, devfn, where) < 0) | ||
104 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
105 | |||
106 | data = | ||
107 | *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + | ||
108 | (where & 0xfffffffc)); | ||
109 | |||
110 | switch (size) { | ||
111 | case 1: | ||
112 | *val = (data >> ((where & 3) << 3)) & 0xffU; | ||
113 | break; | ||
114 | case 2: | ||
115 | *val = (data >> ((where & 2) << 3)) & 0xffffU; | ||
116 | break; | ||
117 | case 4: | ||
118 | *val = data; | ||
119 | break; | ||
120 | default: | ||
121 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, backup_win0); | ||
122 | return PCIBIOS_FUNC_NOT_SUPPORTED; | ||
123 | } | ||
124 | |||
125 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, backup_win0); | ||
126 | |||
127 | if (emma2rh_in32(EMMA2RH_PCI_INT) & RMABORT) | ||
128 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
129 | |||
130 | return PCIBIOS_SUCCESSFUL; | ||
131 | } | ||
132 | |||
133 | static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, | ||
134 | int size, u32 val) | ||
135 | { | ||
136 | u32 bus_num; | ||
137 | u32 base = KSEG1ADDR(EMMA2RH_PCI_CONFIG_BASE); | ||
138 | u32 backup_win0; | ||
139 | u32 data; | ||
140 | int shift; | ||
141 | |||
142 | if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) | ||
143 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
144 | |||
145 | backup_win0 = emma2rh_in32(EMMA2RH_PCI_IWIN0_CTR); | ||
146 | |||
147 | if (set_pci_configuration_address(bus_num, devfn, where) < 0) | ||
148 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
149 | |||
150 | /* read modify write */ | ||
151 | data = | ||
152 | *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + | ||
153 | (where & 0xfffffffc)); | ||
154 | |||
155 | switch (size) { | ||
156 | case 1: | ||
157 | shift = (where & 3) << 3; | ||
158 | data &= ~(0xffU << shift); | ||
159 | data |= ((val & 0xffU) << shift); | ||
160 | break; | ||
161 | case 2: | ||
162 | shift = (where & 2) << 3; | ||
163 | data &= ~(0xffffU << shift); | ||
164 | data |= ((val & 0xffffU) << shift); | ||
165 | break; | ||
166 | case 4: | ||
167 | data = val; | ||
168 | break; | ||
169 | default: | ||
170 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, backup_win0); | ||
171 | return PCIBIOS_FUNC_NOT_SUPPORTED; | ||
172 | } | ||
173 | *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + | ||
174 | (where & 0xfffffffc)) = data; | ||
175 | |||
176 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, backup_win0); | ||
177 | if (emma2rh_in32(EMMA2RH_PCI_INT) & RMABORT) | ||
178 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
179 | |||
180 | return PCIBIOS_SUCCESSFUL; | ||
181 | } | ||
182 | |||
183 | struct pci_ops emma2rh_pci_ops = { | ||
184 | .read = pci_config_read, | ||
185 | .write = pci_config_write, | ||
186 | }; | ||
diff --git a/arch/mips/pci/ops-it8172.c b/arch/mips/pci/ops-it8172.c index b7a8b9a6f9db..ba8328505a0a 100644 --- a/arch/mips/pci/ops-it8172.c +++ b/arch/mips/pci/ops-it8172.c | |||
@@ -50,30 +50,28 @@ | |||
50 | static struct resource pci_mem_resource_1; | 50 | static struct resource pci_mem_resource_1; |
51 | 51 | ||
52 | static struct resource pci_io_resource = { | 52 | static struct resource pci_io_resource = { |
53 | "io pci IO space", | 53 | .start = 0x14018000, |
54 | 0x14018000, | 54 | .end = 0x17FFFFFF, |
55 | 0x17FFFFFF, | 55 | .name = "io pci IO space", |
56 | IORESOURCE_IO | 56 | .flags = IORESOURCE_IO |
57 | }; | 57 | }; |
58 | 58 | ||
59 | static struct resource pci_mem_resource_0 = { | 59 | static struct resource pci_mem_resource_0 = { |
60 | "ext pci memory space 0/1", | 60 | .start = 0x10101000, |
61 | 0x10101000, | 61 | .end = 0x13FFFFFF, |
62 | 0x13FFFFFF, | 62 | .name = "ext pci memory space 0/1", |
63 | IORESOURCE_MEM, | 63 | .flags = IORESOURCE_MEM, |
64 | &pci_mem_resource_0, | 64 | .parent = &pci_mem_resource_0, |
65 | NULL, | 65 | .sibling = NULL, |
66 | &pci_mem_resource_1 | 66 | .child = &pci_mem_resource_1 |
67 | }; | 67 | }; |
68 | 68 | ||
69 | static struct resource pci_mem_resource_1 = { | 69 | static struct resource pci_mem_resource_1 = { |
70 | "ext pci memory space 2/3", | 70 | .start = 0x1A000000, |
71 | 0x1A000000, | 71 | .end = 0x1FBFFFFF, |
72 | 0x1FBFFFFF, | 72 | .name = "ext pci memory space 2/3", |
73 | IORESOURCE_MEM, | 73 | .flags = IORESOURCE_MEM, |
74 | &pci_mem_resource_0, | 74 | .parent = &pci_mem_resource_0 |
75 | NULL, | ||
76 | NULL | ||
77 | }; | 75 | }; |
78 | 76 | ||
79 | extern struct pci_ops it8172_pci_ops; | 77 | extern struct pci_ops it8172_pci_ops; |
diff --git a/arch/mips/pci/ops-sni.c b/arch/mips/pci/ops-sni.c index 62bdd19c7f8e..2b0ccd6d9dcd 100644 --- a/arch/mips/pci/ops-sni.c +++ b/arch/mips/pci/ops-sni.c | |||
@@ -47,13 +47,13 @@ static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, | |||
47 | 47 | ||
48 | switch (size) { | 48 | switch (size) { |
49 | case 1: | 49 | case 1: |
50 | *val = *(volatile u8 *) (PCIMT_CONFIG_DATA + (reg & 3)); | 50 | *val = inb(PCIMT_CONFIG_DATA + (reg & 3)); |
51 | break; | 51 | break; |
52 | case 2: | 52 | case 2: |
53 | *val = *(volatile u16 *) (PCIMT_CONFIG_DATA + (reg & 2)); | 53 | *val = inw(PCIMT_CONFIG_DATA + (reg & 2)); |
54 | break; | 54 | break; |
55 | case 4: | 55 | case 4: |
56 | *val = *(volatile u32 *) PCIMT_CONFIG_DATA; | 56 | *val = inl(PCIMT_CONFIG_DATA); |
57 | break; | 57 | break; |
58 | } | 58 | } |
59 | 59 | ||
@@ -70,13 +70,13 @@ static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, | |||
70 | 70 | ||
71 | switch (size) { | 71 | switch (size) { |
72 | case 1: | 72 | case 1: |
73 | *(volatile u8 *) (PCIMT_CONFIG_DATA + (reg & 3)) = val; | 73 | outb (val, PCIMT_CONFIG_DATA + (reg & 3)); |
74 | break; | 74 | break; |
75 | case 2: | 75 | case 2: |
76 | *(volatile u16 *) (PCIMT_CONFIG_DATA + (reg & 2)) = val; | 76 | outw (val, PCIMT_CONFIG_DATA + (reg & 2)); |
77 | break; | 77 | break; |
78 | case 4: | 78 | case 4: |
79 | *(volatile u32 *) PCIMT_CONFIG_DATA = val; | 79 | outl (val, PCIMT_CONFIG_DATA); |
80 | break; | 80 | break; |
81 | } | 81 | } |
82 | 82 | ||
diff --git a/arch/mips/pci/ops-titan.c b/arch/mips/pci/ops-titan.c index 233ec6f2054d..ebf8fc40e9b2 100644 --- a/arch/mips/pci/ops-titan.c +++ b/arch/mips/pci/ops-titan.c | |||
@@ -26,8 +26,19 @@ | |||
26 | #include <linux/pci.h> | 26 | #include <linux/pci.h> |
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | 28 | ||
29 | #include <asm/titan_dep.h> | 29 | #include <asm/pci.h> |
30 | #include <asm/io.h> | ||
31 | #include <asm/rm9k-ocd.h> | ||
30 | 32 | ||
33 | /* | ||
34 | * PCI specific defines | ||
35 | */ | ||
36 | #define TITAN_PCI_0_CONFIG_ADDRESS 0x780 | ||
37 | #define TITAN_PCI_0_CONFIG_DATA 0x784 | ||
38 | |||
39 | /* | ||
40 | * Titan PCI Config Read Byte | ||
41 | */ | ||
31 | static int titan_read_config(struct pci_bus *bus, unsigned int devfn, int reg, | 42 | static int titan_read_config(struct pci_bus *bus, unsigned int devfn, int reg, |
32 | int size, u32 * val) | 43 | int size, u32 * val) |
33 | { | 44 | { |
@@ -43,8 +54,8 @@ static int titan_read_config(struct pci_bus *bus, unsigned int devfn, int reg, | |||
43 | 54 | ||
44 | 55 | ||
45 | /* start the configuration cycle */ | 56 | /* start the configuration cycle */ |
46 | TITAN_WRITE(TITAN_PCI_0_CONFIG_ADDRESS, address); | 57 | ocd_writel(address, TITAN_PCI_0_CONFIG_ADDRESS); |
47 | tmp = TITAN_READ(TITAN_PCI_0_CONFIG_DATA) >> ((reg & 3) << 3); | 58 | tmp = ocd_readl(TITAN_PCI_0_CONFIG_DATA) >> ((reg & 3) << 3); |
48 | 59 | ||
49 | switch (size) { | 60 | switch (size) { |
50 | case 1: | 61 | case 1: |
@@ -71,20 +82,20 @@ static int titan_write_config(struct pci_bus *bus, unsigned int devfn, int reg, | |||
71 | (reg & 0xfc) | 0x80000000; | 82 | (reg & 0xfc) | 0x80000000; |
72 | 83 | ||
73 | /* start the configuration cycle */ | 84 | /* start the configuration cycle */ |
74 | TITAN_WRITE(TITAN_PCI_0_CONFIG_ADDRESS, address); | 85 | ocd_writel(address, TITAN_PCI_0_CONFIG_ADDRESS); |
75 | 86 | ||
76 | /* write the data */ | 87 | /* write the data */ |
77 | switch (size) { | 88 | switch (size) { |
78 | case 1: | 89 | case 1: |
79 | TITAN_WRITE_8(TITAN_PCI_0_CONFIG_DATA + (~reg & 0x3), val); | 90 | ocd_writeb(val, TITAN_PCI_0_CONFIG_DATA + (~reg & 0x3)); |
80 | break; | 91 | break; |
81 | 92 | ||
82 | case 2: | 93 | case 2: |
83 | TITAN_WRITE_16(TITAN_PCI_0_CONFIG_DATA + (~reg & 0x2), val); | 94 | ocd_writew(val, TITAN_PCI_0_CONFIG_DATA + (~reg & 0x2)); |
84 | break; | 95 | break; |
85 | 96 | ||
86 | case 4: | 97 | case 4: |
87 | TITAN_WRITE(TITAN_PCI_0_CONFIG_DATA, val); | 98 | ocd_writel(val, TITAN_PCI_0_CONFIG_DATA); |
88 | break; | 99 | break; |
89 | } | 100 | } |
90 | 101 | ||
diff --git a/arch/mips/pci/pci-ddb5074.c b/arch/mips/pci/pci-ddb5074.c deleted file mode 100644 index 73f9ceeb2f55..000000000000 --- a/arch/mips/pci/pci-ddb5074.c +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | #include <linux/kernel.h> | ||
2 | #include <linux/init.h> | ||
3 | #include <linux/types.h> | ||
4 | #include <linux/pci.h> | ||
5 | |||
6 | #include <asm/debug.h> | ||
7 | |||
8 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
9 | |||
10 | static struct resource extpci_io_resource = { | ||
11 | "pci IO space", | ||
12 | 0x1000, /* leave some room for ISA bus */ | ||
13 | DDB_PCI_IO_SIZE - 1, | ||
14 | IORESOURCE_IO | ||
15 | }; | ||
16 | |||
17 | static struct resource extpci_mem_resource = { | ||
18 | "pci memory space", | ||
19 | DDB_PCI_MEM_BASE + 0x00100000, /* leave 1 MB for RTC */ | ||
20 | DDB_PCI_MEM_BASE + DDB_PCI_MEM_SIZE - 1, | ||
21 | IORESOURCE_MEM | ||
22 | }; | ||
23 | |||
24 | extern struct pci_ops ddb5476_ext_pci_ops; | ||
25 | |||
26 | struct pci_controller ddb5476_controller = { | ||
27 | .pci_ops = &ddb5476_ext_pci_ops, | ||
28 | .io_resource = &extpci_io_resource, | ||
29 | .mem_resource = &extpci_mem_resource, | ||
30 | }; | ||
31 | |||
32 | #define PCI_EXT_INTA 8 | ||
33 | #define PCI_EXT_INTB 9 | ||
34 | #define PCI_EXT_INTC 10 | ||
35 | #define PCI_EXT_INTD 11 | ||
36 | #define PCI_EXT_INTE 12 | ||
37 | |||
38 | #define MAX_SLOT_NUM 14 | ||
39 | |||
40 | static unsigned char irq_map[MAX_SLOT_NUM] = { | ||
41 | [ 0] = nile4_to_irq(PCI_EXT_INTE), | ||
42 | [ 1] = nile4_to_irq(PCI_EXT_INTA), | ||
43 | [ 2] = nile4_to_irq(PCI_EXT_INTA), | ||
44 | [ 3] = nile4_to_irq(PCI_EXT_INTB), | ||
45 | [ 4] = nile4_to_irq(PCI_EXT_INTC), | ||
46 | [ 5] = nile4_to_irq(NILE4_INT_UART), | ||
47 | [10] = nile4_to_irq(PCI_EXT_INTE), | ||
48 | [13] = nile4_to_irq(PCI_EXT_INTE), | ||
49 | }; | ||
50 | |||
51 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
52 | { | ||
53 | return irq_map[slot]; | ||
54 | } | ||
55 | |||
56 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
57 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
58 | { | ||
59 | return 0; | ||
60 | } | ||
61 | |||
62 | void __init ddb_pci_reset_bus(void) | ||
63 | { | ||
64 | u32 temp; | ||
65 | |||
66 | /* | ||
67 | * I am not sure about the "official" procedure, the following | ||
68 | * steps work as far as I know: | ||
69 | * We first set PCI cold reset bit (bit 31) in PCICTRL-H. | ||
70 | * Then we clear the PCI warm reset bit (bit 30) to 0 in PCICTRL-H. | ||
71 | * The same is true for both PCI channels. | ||
72 | */ | ||
73 | temp = ddb_in32(DDB_PCICTRL + 4); | ||
74 | temp |= 0x80000000; | ||
75 | ddb_out32(DDB_PCICTRL + 4, temp); | ||
76 | temp &= ~0xc0000000; | ||
77 | ddb_out32(DDB_PCICTRL + 4, temp); | ||
78 | |||
79 | } | ||
diff --git a/arch/mips/pci/pci-ddb5476.c b/arch/mips/pci/pci-ddb5476.c deleted file mode 100644 index 90dd49509800..000000000000 --- a/arch/mips/pci/pci-ddb5476.c +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | #include <linux/kernel.h> | ||
2 | #include <linux/init.h> | ||
3 | #include <linux/types.h> | ||
4 | #include <linux/pci.h> | ||
5 | |||
6 | #include <asm/debug.h> | ||
7 | |||
8 | #include <asm/ddb5xxx/ddb5xxx.h> | ||
9 | |||
10 | static struct resource extpci_io_resource = { | ||
11 | "pci IO space", | ||
12 | 0x1000, /* leave some room for ISA bus */ | ||
13 | DDB_PCI_IO_SIZE - 1, | ||
14 | IORESOURCE_IO | ||
15 | }; | ||
16 | |||
17 | static struct resource extpci_mem_resource = { | ||
18 | "pci memory space", | ||
19 | DDB_PCI_MEM_BASE + 0x00100000, /* leave 1 MB for RTC */ | ||
20 | DDB_PCI_MEM_BASE + DDB_PCI_MEM_SIZE - 1, | ||
21 | IORESOURCE_MEM | ||
22 | }; | ||
23 | |||
24 | extern struct pci_ops ddb5476_ext_pci_ops; | ||
25 | |||
26 | struct pci_controller ddb5476_controller = { | ||
27 | .pci_ops = &ddb5476_ext_pci_ops, | ||
28 | .io_resource = &extpci_io_resource, | ||
29 | .mem_resource = &extpci_mem_resource | ||
30 | }; | ||
31 | |||
32 | |||
33 | /* | ||
34 | * we fix up irqs based on the slot number. | ||
35 | * The first entry is at AD:11. | ||
36 | * | ||
37 | * This does not work for devices on sub-buses yet. | ||
38 | */ | ||
39 | |||
40 | /* | ||
41 | * temporary | ||
42 | */ | ||
43 | |||
44 | #define PCI_EXT_INTA 8 | ||
45 | #define PCI_EXT_INTB 9 | ||
46 | #define PCI_EXT_INTC 10 | ||
47 | #define PCI_EXT_INTD 11 | ||
48 | #define PCI_EXT_INTE 12 | ||
49 | |||
50 | /* | ||
51 | * based on ddb5477 manual page 11 | ||
52 | */ | ||
53 | #define MAX_SLOT_NUM 21 | ||
54 | static unsigned char irq_map[MAX_SLOT_NUM] = { | ||
55 | [ 2] = 9, /* AD:13 USB */ | ||
56 | [ 3] = 10, /* AD:14 PMU */ | ||
57 | [ 5] = 0, /* AD:16 P2P bridge */ | ||
58 | [ 6] = nile4_to_irq(PCI_EXT_INTB), /* AD:17 */ | ||
59 | [ 7] = nile4_to_irq(PCI_EXT_INTC), /* AD:18 */ | ||
60 | [ 8] = nile4_to_irq(PCI_EXT_INTD), /* AD:19 */ | ||
61 | [ 9] = nile4_to_irq(PCI_EXT_INTA), /* AD:20 */ | ||
62 | [13] = 14, /* AD:24 HD controller, M5229 */ | ||
63 | }; | ||
64 | |||
65 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
66 | { | ||
67 | return irq_map[slot]; | ||
68 | } | ||
69 | |||
70 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
71 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
72 | { | ||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | void __init ddb_pci_reset_bus(void) | ||
77 | { | ||
78 | u32 temp; | ||
79 | |||
80 | /* | ||
81 | * I am not sure about the "official" procedure, the following | ||
82 | * steps work as far as I know: | ||
83 | * We first set PCI cold reset bit (bit 31) in PCICTRL-H. | ||
84 | * Then we clear the PCI warm reset bit (bit 30) to 0 in PCICTRL-H. | ||
85 | * The same is true for both PCI channels. | ||
86 | */ | ||
87 | temp = ddb_in32(DDB_PCICTRL + 4); | ||
88 | temp |= 0x80000000; | ||
89 | ddb_out32(DDB_PCICTRL + 4, temp); | ||
90 | temp &= ~0xc0000000; | ||
91 | ddb_out32(DDB_PCICTRL + 4, temp); | ||
92 | |||
93 | } | ||
diff --git a/arch/mips/pci/pci-ddb5477.c b/arch/mips/pci/pci-ddb5477.c index 826d653184e5..d071bc375b11 100644 --- a/arch/mips/pci/pci-ddb5477.c +++ b/arch/mips/pci/pci-ddb5477.c | |||
@@ -22,31 +22,31 @@ | |||
22 | #include <asm/ddb5xxx/ddb5xxx.h> | 22 | #include <asm/ddb5xxx/ddb5xxx.h> |
23 | 23 | ||
24 | static struct resource extpci_io_resource = { | 24 | static struct resource extpci_io_resource = { |
25 | "ext pci IO space", | 25 | .start = DDB_PCI0_IO_BASE - DDB_PCI_IO_BASE + 0x4000, |
26 | DDB_PCI0_IO_BASE - DDB_PCI_IO_BASE + 0x4000, | 26 | .end = DDB_PCI0_IO_BASE - DDB_PCI_IO_BASE + DDB_PCI0_IO_SIZE - 1, |
27 | DDB_PCI0_IO_BASE - DDB_PCI_IO_BASE + DDB_PCI0_IO_SIZE - 1, | 27 | .name = "ext pci IO space", |
28 | IORESOURCE_IO | 28 | .flags = IORESOURCE_IO |
29 | }; | 29 | }; |
30 | 30 | ||
31 | static struct resource extpci_mem_resource = { | 31 | static struct resource extpci_mem_resource = { |
32 | "ext pci memory space", | 32 | .start = DDB_PCI0_MEM_BASE + 0x100000, |
33 | DDB_PCI0_MEM_BASE + 0x100000, | 33 | .end = DDB_PCI0_MEM_BASE + DDB_PCI0_MEM_SIZE - 1, |
34 | DDB_PCI0_MEM_BASE + DDB_PCI0_MEM_SIZE - 1, | 34 | .name = "ext pci memory space", |
35 | IORESOURCE_MEM | 35 | .flags = IORESOURCE_MEM |
36 | }; | 36 | }; |
37 | 37 | ||
38 | static struct resource iopci_io_resource = { | 38 | static struct resource iopci_io_resource = { |
39 | "io pci IO space", | 39 | .start = DDB_PCI1_IO_BASE - DDB_PCI_IO_BASE, |
40 | DDB_PCI1_IO_BASE - DDB_PCI_IO_BASE, | 40 | .end = DDB_PCI1_IO_BASE - DDB_PCI_IO_BASE + DDB_PCI1_IO_SIZE - 1, |
41 | DDB_PCI1_IO_BASE - DDB_PCI_IO_BASE + DDB_PCI1_IO_SIZE - 1, | 41 | .name = "io pci IO space", |
42 | IORESOURCE_IO | 42 | .flags = IORESOURCE_IO |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static struct resource iopci_mem_resource = { | 45 | static struct resource iopci_mem_resource = { |
46 | "ext pci memory space", | 46 | .start = DDB_PCI1_MEM_BASE, |
47 | DDB_PCI1_MEM_BASE, | 47 | .end = DDB_PCI1_MEM_BASE + DDB_PCI1_MEM_SIZE - 1, |
48 | DDB_PCI1_MEM_BASE + DDB_PCI1_MEM_SIZE - 1, | 48 | .name = "ext pci memory space", |
49 | IORESOURCE_MEM | 49 | .flags = IORESOURCE_MEM |
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern struct pci_ops ddb5477_ext_pci_ops; | 52 | extern struct pci_ops ddb5477_ext_pci_ops; |
diff --git a/arch/mips/pci/pci-emma2rh.c b/arch/mips/pci/pci-emma2rh.c new file mode 100644 index 000000000000..0f8b230057d3 --- /dev/null +++ b/arch/mips/pci/pci-emma2rh.c | |||
@@ -0,0 +1,90 @@ | |||
1 | /* | ||
2 | * arch/mips/pci/pci-emma2rh.c | ||
3 | * This file defines the PCI configration. | ||
4 | * | ||
5 | * Copyright (C) NEC Electronics Corporation 2004-2006 | ||
6 | * | ||
7 | * This file is based on the arch/mips/ddb5xxx/ddb5477/pci.c | ||
8 | * | ||
9 | * Copyright 2001 MontaVista Software Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License as published by | ||
13 | * the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
24 | */ | ||
25 | |||
26 | #include <linux/config.h> | ||
27 | #include <linux/kernel.h> | ||
28 | #include <linux/init.h> | ||
29 | #include <linux/types.h> | ||
30 | #include <linux/pci.h> | ||
31 | |||
32 | #include <asm/bootinfo.h> | ||
33 | #include <asm/debug.h> | ||
34 | |||
35 | #include <asm/emma2rh/emma2rh.h> | ||
36 | |||
37 | static struct resource pci_io_resource = { | ||
38 | .name = "pci IO space", | ||
39 | .start = EMMA2RH_PCI_IO_BASE, | ||
40 | .end = EMMA2RH_PCI_IO_BASE + EMMA2RH_PCI_IO_SIZE - 1, | ||
41 | .flags = IORESOURCE_IO, | ||
42 | }; | ||
43 | |||
44 | static struct resource pci_mem_resource = { | ||
45 | .name = "pci memory space", | ||
46 | .start = EMMA2RH_PCI_MEM_BASE, | ||
47 | .end = EMMA2RH_PCI_MEM_BASE + EMMA2RH_PCI_MEM_SIZE - 1, | ||
48 | .flags = IORESOURCE_MEM, | ||
49 | }; | ||
50 | |||
51 | extern struct pci_ops emma2rh_pci_ops; | ||
52 | |||
53 | static struct pci_controller emma2rh_pci_controller = { | ||
54 | .pci_ops = &emma2rh_pci_ops, | ||
55 | .mem_resource = &pci_mem_resource, | ||
56 | .io_resource = &pci_io_resource, | ||
57 | .mem_offset = -0x04000000, | ||
58 | .io_offset = 0, | ||
59 | }; | ||
60 | |||
61 | static void __init emma2rh_pci_init(void) | ||
62 | { | ||
63 | /* setup PCI interface */ | ||
64 | emma2rh_out32(EMMA2RH_PCI_ARBIT_CTR, 0x70f); | ||
65 | |||
66 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, 0x80000a18); | ||
67 | emma2rh_out32(EMMA2RH_PCI_CONFIG_BASE + PCI_COMMAND, | ||
68 | PCI_STATUS_DEVSEL_MEDIUM | PCI_STATUS_CAP_LIST | | ||
69 | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY); | ||
70 | emma2rh_out32(EMMA2RH_PCI_CONFIG_BASE + PCI_BASE_ADDRESS_0, 0x10000000); | ||
71 | emma2rh_out32(EMMA2RH_PCI_CONFIG_BASE + PCI_BASE_ADDRESS_1, 0x00000000); | ||
72 | |||
73 | emma2rh_out32(EMMA2RH_PCI_IWIN0_CTR, 0x12000000 | 0x218); | ||
74 | emma2rh_out32(EMMA2RH_PCI_IWIN1_CTR, 0x18000000 | 0x600); | ||
75 | emma2rh_out32(EMMA2RH_PCI_INIT_ESWP, 0x00000200); | ||
76 | |||
77 | emma2rh_out32(EMMA2RH_PCI_TWIN_CTR, 0x00009200); | ||
78 | emma2rh_out32(EMMA2RH_PCI_TWIN_BADR, 0x00000000); | ||
79 | emma2rh_out32(EMMA2RH_PCI_TWIN0_DADR, 0x00000000); | ||
80 | emma2rh_out32(EMMA2RH_PCI_TWIN1_DADR, 0x00000000); | ||
81 | } | ||
82 | |||
83 | static int __init emma2rh_pci_setup(void) | ||
84 | { | ||
85 | emma2rh_pci_init(); | ||
86 | register_pci_controller(&emma2rh_pci_controller); | ||
87 | return 0; | ||
88 | } | ||
89 | |||
90 | arch_initcall(emma2rh_pci_setup); | ||
diff --git a/arch/mips/pci/pci-excite.c b/arch/mips/pci/pci-excite.c new file mode 100644 index 000000000000..3c86c77cb74f --- /dev/null +++ b/arch/mips/pci/pci-excite.c | |||
@@ -0,0 +1,149 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 by Basler Vision Technologies AG | ||
3 | * Author: Thomas Koeller <thomas.koeller@baslerweb.com> | ||
4 | * Based on the PMC-Sierra Yosemite board support by Ralf Baechle. | ||
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, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/pci.h> | ||
24 | #include <linux/bitops.h> | ||
25 | #include <asm/rm9k-ocd.h> | ||
26 | #include <excite.h> | ||
27 | |||
28 | |||
29 | extern struct pci_ops titan_pci_ops; | ||
30 | |||
31 | |||
32 | static struct resource | ||
33 | mem_resource = { | ||
34 | .name = "PCI memory", | ||
35 | .start = EXCITE_PHYS_PCI_MEM, | ||
36 | .end = EXCITE_PHYS_PCI_MEM + EXCITE_SIZE_PCI_MEM - 1, | ||
37 | .flags = IORESOURCE_MEM | ||
38 | }, | ||
39 | io_resource = { | ||
40 | .name = "PCI I/O", | ||
41 | .start = EXCITE_PHYS_PCI_IO, | ||
42 | .end = EXCITE_PHYS_PCI_IO + EXCITE_SIZE_PCI_IO - 1, | ||
43 | .flags = IORESOURCE_IO | ||
44 | }; | ||
45 | |||
46 | |||
47 | static struct pci_controller bx_controller = { | ||
48 | .pci_ops = &titan_pci_ops, | ||
49 | .mem_resource = &mem_resource, | ||
50 | .mem_offset = 0x00000000UL, | ||
51 | .io_resource = &io_resource, | ||
52 | .io_offset = 0x00000000UL | ||
53 | }; | ||
54 | |||
55 | |||
56 | static char | ||
57 | iopage_failed[] __initdata = "Cannot allocate PCI I/O page", | ||
58 | modebits_no_pci[] __initdata = "PCI is not configured in mode bits"; | ||
59 | |||
60 | #define RM9000x2_OCD_HTSC 0x0604 | ||
61 | #define RM9000x2_OCD_HTBHL 0x060c | ||
62 | #define RM9000x2_OCD_PCIHRST 0x078c | ||
63 | |||
64 | #define RM9K_OCD_MODEBIT1 0x00d4 /* (MODEBIT1) Mode Bit 1 */ | ||
65 | #define RM9K_OCD_CPHDCR 0x00f4 /* CPU-PCI/HT Data Control. */ | ||
66 | |||
67 | #define PCISC_FB2B 0x00000200 | ||
68 | #define PCISC_MWICG 0x00000010 | ||
69 | #define PCISC_EMC 0x00000004 | ||
70 | #define PCISC_ERMA 0x00000002 | ||
71 | |||
72 | |||
73 | |||
74 | static int __init basler_excite_pci_setup(void) | ||
75 | { | ||
76 | const unsigned int fullbars = memsize / (256 << 20); | ||
77 | unsigned int i; | ||
78 | |||
79 | /* Check modebits to see if PCI is really enabled. */ | ||
80 | if (!((ocd_readl(RM9K_OCD_MODEBIT1) >> (47-32)) & 0x1)) | ||
81 | panic(modebits_no_pci); | ||
82 | |||
83 | if (NULL == request_mem_region(EXCITE_PHYS_PCI_IO, EXCITE_SIZE_PCI_IO, | ||
84 | "Memory-mapped PCI I/O page")) | ||
85 | panic(iopage_failed); | ||
86 | |||
87 | /* Enable PCI 0 as master for config cycles */ | ||
88 | ocd_writel(PCISC_EMC | PCISC_ERMA, RM9000x2_OCD_HTSC); | ||
89 | |||
90 | |||
91 | /* Set up latency timer */ | ||
92 | ocd_writel(0x8008, RM9000x2_OCD_HTBHL); | ||
93 | |||
94 | /* Setup host IO and Memory space */ | ||
95 | ocd_writel((EXCITE_PHYS_PCI_IO >> 4) | 1, LKB7); | ||
96 | ocd_writel(((EXCITE_SIZE_PCI_IO >> 4) & 0x7fffff00) - 0x100, LKM7); | ||
97 | ocd_writel((EXCITE_PHYS_PCI_MEM >> 4) | 1, LKB8); | ||
98 | ocd_writel(((EXCITE_SIZE_PCI_MEM >> 4) & 0x7fffff00) - 0x100, LKM8); | ||
99 | |||
100 | /* Set up PCI BARs to map all installed memory */ | ||
101 | for (i = 0; i < 6; i++) { | ||
102 | const unsigned int bar = 0x610 + i * 4; | ||
103 | |||
104 | if (i < fullbars) { | ||
105 | ocd_writel(0x10000000 * i, bar); | ||
106 | ocd_writel(0x01000000 * i, bar + 0x140); | ||
107 | ocd_writel(0x0ffff029, bar + 0x100); | ||
108 | continue; | ||
109 | } | ||
110 | |||
111 | if (i == fullbars) { | ||
112 | int o; | ||
113 | u32 mask; | ||
114 | |||
115 | const unsigned long rem = memsize - i * 0x10000000; | ||
116 | if (!rem) { | ||
117 | ocd_writel(0x00000000, bar + 0x100); | ||
118 | continue; | ||
119 | } | ||
120 | |||
121 | o = ffs(rem) - 1; | ||
122 | if (rem & ~(0x1 << o)) | ||
123 | o++; | ||
124 | mask = ((0x1 << o) & 0x0ffff000) - 0x1000; | ||
125 | ocd_writel(0x10000000 * i, bar); | ||
126 | ocd_writel(0x01000000 * i, bar + 0x140); | ||
127 | ocd_writel(0x00000029 | mask, bar + 0x100); | ||
128 | continue; | ||
129 | } | ||
130 | |||
131 | ocd_writel(0x00000000, bar + 0x100); | ||
132 | } | ||
133 | |||
134 | /* Finally, enable the PCI interupt */ | ||
135 | #if USB_IRQ > 7 | ||
136 | set_c0_intcontrol(1 << USB_IRQ); | ||
137 | #else | ||
138 | set_c0_status(1 << (USB_IRQ + 8)); | ||
139 | #endif | ||
140 | |||
141 | ioport_resource.start = EXCITE_PHYS_PCI_IO; | ||
142 | ioport_resource.end = EXCITE_PHYS_PCI_IO + EXCITE_SIZE_PCI_IO - 1; | ||
143 | set_io_port_base((unsigned long) ioremap_nocache(EXCITE_PHYS_PCI_IO, EXCITE_SIZE_PCI_IO)); | ||
144 | register_pci_controller(&bx_controller); | ||
145 | return 0; | ||
146 | } | ||
147 | |||
148 | |||
149 | arch_initcall(basler_excite_pci_setup); | ||
diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c index 6002d2a6a262..80eb9af9ecdf 100644 --- a/arch/mips/pci/pci-ip27.c +++ b/arch/mips/pci/pci-ip27.c | |||
@@ -40,297 +40,7 @@ static struct bridge_controller bridges[MAX_PCI_BUSSES]; | |||
40 | struct bridge_controller *irq_to_bridge[MAX_PCI_BUSSES * MAX_DEVICES_PER_PCIBUS]; | 40 | struct bridge_controller *irq_to_bridge[MAX_PCI_BUSSES * MAX_DEVICES_PER_PCIBUS]; |
41 | int irq_to_slot[MAX_PCI_BUSSES * MAX_DEVICES_PER_PCIBUS]; | 41 | int irq_to_slot[MAX_PCI_BUSSES * MAX_DEVICES_PER_PCIBUS]; |
42 | 42 | ||
43 | /* | 43 | extern struct pci_ops bridge_pci_ops; |
44 | * The Bridge ASIC supports both type 0 and type 1 access. Type 1 is | ||
45 | * not really documented, so right now I can't write code which uses it. | ||
46 | * Therefore we use type 0 accesses for now even though they won't work | ||
47 | * correcly for PCI-to-PCI bridges. | ||
48 | * | ||
49 | * The function is complicated by the ultimate brokeness of the IOC3 chip | ||
50 | * which is used in SGI systems. The IOC3 can only handle 32-bit PCI | ||
51 | * accesses and does only decode parts of it's address space. | ||
52 | */ | ||
53 | |||
54 | static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, | ||
55 | int where, int size, u32 * value) | ||
56 | { | ||
57 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
58 | bridge_t *bridge = bc->base; | ||
59 | int slot = PCI_SLOT(devfn); | ||
60 | int fn = PCI_FUNC(devfn); | ||
61 | volatile void *addr; | ||
62 | u32 cf, shift, mask; | ||
63 | int res; | ||
64 | |||
65 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; | ||
66 | if (get_dbe(cf, (u32 *) addr)) | ||
67 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
68 | |||
69 | /* | ||
70 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
71 | * generic PCI code a chance to look at it for real ... | ||
72 | */ | ||
73 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
74 | goto oh_my_gawd; | ||
75 | |||
76 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; | ||
77 | |||
78 | if (size == 1) | ||
79 | res = get_dbe(*value, (u8 *) addr); | ||
80 | else if (size == 2) | ||
81 | res = get_dbe(*value, (u16 *) addr); | ||
82 | else | ||
83 | res = get_dbe(*value, (u32 *) addr); | ||
84 | |||
85 | return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
86 | |||
87 | oh_my_gawd: | ||
88 | |||
89 | /* | ||
90 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
91 | * generic PCI code a chance to look at the wrong register. | ||
92 | */ | ||
93 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { | ||
94 | *value = 0; | ||
95 | return PCIBIOS_SUCCESSFUL; | ||
96 | } | ||
97 | |||
98 | /* | ||
99 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
100 | * anything but 32-bit words ... | ||
101 | */ | ||
102 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
103 | |||
104 | if (get_dbe(cf, (u32 *) addr)) | ||
105 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
106 | |||
107 | shift = ((where & 3) << 3); | ||
108 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
109 | *value = (cf >> shift) & mask; | ||
110 | |||
111 | return PCIBIOS_SUCCESSFUL; | ||
112 | } | ||
113 | |||
114 | static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, | ||
115 | int where, int size, u32 * value) | ||
116 | { | ||
117 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
118 | bridge_t *bridge = bc->base; | ||
119 | int busno = bus->number; | ||
120 | int slot = PCI_SLOT(devfn); | ||
121 | int fn = PCI_FUNC(devfn); | ||
122 | volatile void *addr; | ||
123 | u32 cf, shift, mask; | ||
124 | int res; | ||
125 | |||
126 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
127 | addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; | ||
128 | if (get_dbe(cf, (u32 *) addr)) | ||
129 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
130 | |||
131 | /* | ||
132 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
133 | * generic PCI code a chance to look at it for real ... | ||
134 | */ | ||
135 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
136 | goto oh_my_gawd; | ||
137 | |||
138 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
139 | addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; | ||
140 | |||
141 | if (size == 1) | ||
142 | res = get_dbe(*value, (u8 *) addr); | ||
143 | else if (size == 2) | ||
144 | res = get_dbe(*value, (u16 *) addr); | ||
145 | else | ||
146 | res = get_dbe(*value, (u32 *) addr); | ||
147 | |||
148 | return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
149 | |||
150 | oh_my_gawd: | ||
151 | |||
152 | /* | ||
153 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
154 | * generic PCI code a chance to look at the wrong register. | ||
155 | */ | ||
156 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { | ||
157 | *value = 0; | ||
158 | return PCIBIOS_SUCCESSFUL; | ||
159 | } | ||
160 | |||
161 | /* | ||
162 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
163 | * anything but 32-bit words ... | ||
164 | */ | ||
165 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
166 | addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; | ||
167 | |||
168 | if (get_dbe(cf, (u32 *) addr)) | ||
169 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
170 | |||
171 | shift = ((where & 3) << 3); | ||
172 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
173 | *value = (cf >> shift) & mask; | ||
174 | |||
175 | return PCIBIOS_SUCCESSFUL; | ||
176 | } | ||
177 | |||
178 | static int pci_read_config(struct pci_bus *bus, unsigned int devfn, | ||
179 | int where, int size, u32 * value) | ||
180 | { | ||
181 | if (bus->number > 0) | ||
182 | return pci_conf1_read_config(bus, devfn, where, size, value); | ||
183 | |||
184 | return pci_conf0_read_config(bus, devfn, where, size, value); | ||
185 | } | ||
186 | |||
187 | static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, | ||
188 | int where, int size, u32 value) | ||
189 | { | ||
190 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
191 | bridge_t *bridge = bc->base; | ||
192 | int slot = PCI_SLOT(devfn); | ||
193 | int fn = PCI_FUNC(devfn); | ||
194 | volatile void *addr; | ||
195 | u32 cf, shift, mask, smask; | ||
196 | int res; | ||
197 | |||
198 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; | ||
199 | if (get_dbe(cf, (u32 *) addr)) | ||
200 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
201 | |||
202 | /* | ||
203 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
204 | * generic PCI code a chance to look at it for real ... | ||
205 | */ | ||
206 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
207 | goto oh_my_gawd; | ||
208 | |||
209 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; | ||
210 | |||
211 | if (size == 1) { | ||
212 | res = put_dbe(value, (u8 *) addr); | ||
213 | } else if (size == 2) { | ||
214 | res = put_dbe(value, (u16 *) addr); | ||
215 | } else { | ||
216 | res = put_dbe(value, (u32 *) addr); | ||
217 | } | ||
218 | |||
219 | if (res) | ||
220 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
221 | |||
222 | return PCIBIOS_SUCCESSFUL; | ||
223 | |||
224 | oh_my_gawd: | ||
225 | |||
226 | /* | ||
227 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
228 | * generic PCI code a chance to touch the wrong register. | ||
229 | */ | ||
230 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) | ||
231 | return PCIBIOS_SUCCESSFUL; | ||
232 | |||
233 | /* | ||
234 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
235 | * anything but 32-bit words ... | ||
236 | */ | ||
237 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
238 | |||
239 | if (get_dbe(cf, (u32 *) addr)) | ||
240 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
241 | |||
242 | shift = ((where & 3) << 3); | ||
243 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
244 | smask = mask << shift; | ||
245 | |||
246 | cf = (cf & ~smask) | ((value & mask) << shift); | ||
247 | if (put_dbe(cf, (u32 *) addr)) | ||
248 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
249 | |||
250 | return PCIBIOS_SUCCESSFUL; | ||
251 | } | ||
252 | |||
253 | static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, | ||
254 | int where, int size, u32 value) | ||
255 | { | ||
256 | struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); | ||
257 | bridge_t *bridge = bc->base; | ||
258 | int slot = PCI_SLOT(devfn); | ||
259 | int fn = PCI_FUNC(devfn); | ||
260 | int busno = bus->number; | ||
261 | volatile void *addr; | ||
262 | u32 cf, shift, mask, smask; | ||
263 | int res; | ||
264 | |||
265 | bridge->b_pci_cfg = (busno << 16) | (slot << 11); | ||
266 | addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; | ||
267 | if (get_dbe(cf, (u32 *) addr)) | ||
268 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
269 | |||
270 | /* | ||
271 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
272 | * generic PCI code a chance to look at it for real ... | ||
273 | */ | ||
274 | if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) | ||
275 | goto oh_my_gawd; | ||
276 | |||
277 | addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; | ||
278 | |||
279 | if (size == 1) { | ||
280 | res = put_dbe(value, (u8 *) addr); | ||
281 | } else if (size == 2) { | ||
282 | res = put_dbe(value, (u16 *) addr); | ||
283 | } else { | ||
284 | res = put_dbe(value, (u32 *) addr); | ||
285 | } | ||
286 | |||
287 | if (res) | ||
288 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
289 | |||
290 | return PCIBIOS_SUCCESSFUL; | ||
291 | |||
292 | oh_my_gawd: | ||
293 | |||
294 | /* | ||
295 | * IOC3 is fucked fucked beyond believe ... Don't even give the | ||
296 | * generic PCI code a chance to touch the wrong register. | ||
297 | */ | ||
298 | if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) | ||
299 | return PCIBIOS_SUCCESSFUL; | ||
300 | |||
301 | /* | ||
302 | * IOC3 is fucked fucked beyond believe ... Don't try to access | ||
303 | * anything but 32-bit words ... | ||
304 | */ | ||
305 | addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; | ||
306 | |||
307 | if (get_dbe(cf, (u32 *) addr)) | ||
308 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
309 | |||
310 | shift = ((where & 3) << 3); | ||
311 | mask = (0xffffffffU >> ((4 - size) << 3)); | ||
312 | smask = mask << shift; | ||
313 | |||
314 | cf = (cf & ~smask) | ((value & mask) << shift); | ||
315 | if (put_dbe(cf, (u32 *) addr)) | ||
316 | return PCIBIOS_DEVICE_NOT_FOUND; | ||
317 | |||
318 | return PCIBIOS_SUCCESSFUL; | ||
319 | } | ||
320 | |||
321 | static int pci_write_config(struct pci_bus *bus, unsigned int devfn, | ||
322 | int where, int size, u32 value) | ||
323 | { | ||
324 | if (bus->number > 0) | ||
325 | return pci_conf1_write_config(bus, devfn, where, size, value); | ||
326 | |||
327 | return pci_conf0_write_config(bus, devfn, where, size, value); | ||
328 | } | ||
329 | |||
330 | static struct pci_ops bridge_pci_ops = { | ||
331 | .read = pci_read_config, | ||
332 | .write = pci_write_config, | ||
333 | }; | ||
334 | 44 | ||
335 | int __init bridge_probe(nasid_t nasid, int widget_id, int masterwid) | 45 | int __init bridge_probe(nasid_t nasid, int widget_id, int masterwid) |
336 | { | 46 | { |
@@ -370,8 +80,7 @@ int __init bridge_probe(nasid_t nasid, int widget_id, int masterwid) | |||
370 | bc->widget_id = widget_id; | 80 | bc->widget_id = widget_id; |
371 | bc->nasid = nasid; | 81 | bc->nasid = nasid; |
372 | 82 | ||
373 | bc->baddr = (u64)masterwid << 60; | 83 | bc->baddr = (u64)masterwid << 60 | PCI64_ATTR_BAR; |
374 | bc->baddr |= (1UL << 56); /* Barrier set */ | ||
375 | 84 | ||
376 | /* | 85 | /* |
377 | * point to this bridge | 86 | * point to this bridge |
diff --git a/arch/mips/pci/pci-jmr3927.c b/arch/mips/pci/pci-jmr3927.c index f02ef6e36b02..cb84f4e8ccae 100644 --- a/arch/mips/pci/pci-jmr3927.c +++ b/arch/mips/pci/pci-jmr3927.c | |||
@@ -35,17 +35,17 @@ | |||
35 | #include <asm/debug.h> | 35 | #include <asm/debug.h> |
36 | 36 | ||
37 | struct resource pci_io_resource = { | 37 | struct resource pci_io_resource = { |
38 | "IO MEM", | 38 | .name = "IO MEM", |
39 | 0x1000, /* reserve regacy I/O space */ | 39 | .start = 0x1000, /* reserve regacy I/O space */ |
40 | 0x1000 + JMR3927_PCIIO_SIZE - 1, | 40 | .end = 0x1000 + JMR3927_PCIIO_SIZE - 1, |
41 | IORESOURCE_IO | 41 | .flags = IORESOURCE_IO |
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct resource pci_mem_resource = { | 44 | struct resource pci_mem_resource = { |
45 | "PCI MEM", | 45 | .name = "PCI MEM", |
46 | JMR3927_PCIMEM, | 46 | .start = JMR3927_PCIMEM, |
47 | JMR3927_PCIMEM + JMR3927_PCIMEM_SIZE - 1, | 47 | .end = JMR3927_PCIMEM + JMR3927_PCIMEM_SIZE - 1, |
48 | IORESOURCE_MEM | 48 | .flags = IORESOURCE_MEM |
49 | }; | 49 | }; |
50 | 50 | ||
51 | extern struct pci_ops jmr3927_pci_ops; | 51 | extern struct pci_ops jmr3927_pci_ops; |
diff --git a/arch/mips/pci/pci-ocelot.c b/arch/mips/pci/pci-ocelot.c index 3da8a4ee6baa..2b9495dce6ba 100644 --- a/arch/mips/pci/pci-ocelot.c +++ b/arch/mips/pci/pci-ocelot.c | |||
@@ -71,13 +71,13 @@ static inline void pci0WriteConfigReg(unsigned int offset, unsigned int data) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | static struct resource ocelot_mem_resource = { | 73 | static struct resource ocelot_mem_resource = { |
74 | iomem_resource.start = GT_PCI_MEM_BASE; | 74 | start = GT_PCI_MEM_BASE; |
75 | iomem_resource.end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1; | 75 | end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static struct resource ocelot_io_resource = { | 78 | static struct resource ocelot_io_resource = { |
79 | ioport_resource.start = GT_PCI_IO_BASE; | 79 | start = GT_PCI_IO_BASE; |
80 | ioport_resource.end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1; | 80 | end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | static struct pci_controller ocelot_pci_controller = { | 83 | static struct pci_controller ocelot_pci_controller = { |
diff --git a/arch/mips/pci/pci-yosemite.c b/arch/mips/pci/pci-yosemite.c index dac9ed4b0ccf..0357946f30e6 100644 --- a/arch/mips/pci/pci-yosemite.c +++ b/arch/mips/pci/pci-yosemite.c | |||
@@ -14,7 +14,10 @@ | |||
14 | extern struct pci_ops titan_pci_ops; | 14 | extern struct pci_ops titan_pci_ops; |
15 | 15 | ||
16 | static struct resource py_mem_resource = { | 16 | static struct resource py_mem_resource = { |
17 | "Titan PCI MEM", 0xe0000000UL, 0xe3ffffffUL, IORESOURCE_MEM | 17 | .start = 0xe0000000UL, |
18 | .end = 0xe3ffffffUL, | ||
19 | .name = "Titan PCI MEM", | ||
20 | .flags = IORESOURCE_MEM | ||
18 | }; | 21 | }; |
19 | 22 | ||
20 | /* | 23 | /* |
@@ -26,7 +29,10 @@ static struct resource py_mem_resource = { | |||
26 | #define TITAN_IO_BASE 0xe8000000UL | 29 | #define TITAN_IO_BASE 0xe8000000UL |
27 | 30 | ||
28 | static struct resource py_io_resource = { | 31 | static struct resource py_io_resource = { |
29 | "Titan IO MEM", 0x00001000UL, TITAN_IO_SIZE - 1, IORESOURCE_IO, | 32 | .start = 0x00001000UL, |
33 | .end = TITAN_IO_SIZE - 1, | ||
34 | .name = "Titan IO MEM", | ||
35 | .flags = IORESOURCE_IO, | ||
30 | }; | 36 | }; |
31 | 37 | ||
32 | static struct pci_controller py_controller = { | 38 | static struct pci_controller py_controller = { |
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 21402ffd7c98..4dfce154d4af 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -76,11 +76,6 @@ pcibios_align_resource(void *data, struct resource *res, | |||
76 | res->start = start; | 76 | res->start = start; |
77 | } | 77 | } |
78 | 78 | ||
79 | struct pci_controller * __init alloc_pci_controller(void) | ||
80 | { | ||
81 | return alloc_bootmem(sizeof(struct pci_controller)); | ||
82 | } | ||
83 | |||
84 | void __init register_pci_controller(struct pci_controller *hose) | 79 | void __init register_pci_controller(struct pci_controller *hose) |
85 | { | 80 | { |
86 | *hose_tail = hose; | 81 | *hose_tail = hose; |
diff --git a/arch/mips/philips/pnx8550/common/pci.c b/arch/mips/philips/pnx8550/common/pci.c index baa6905f649f..eee4f3dfc410 100644 --- a/arch/mips/philips/pnx8550/common/pci.c +++ b/arch/mips/philips/pnx8550/common/pci.c | |||
@@ -27,17 +27,17 @@ | |||
27 | #include <nand.h> | 27 | #include <nand.h> |
28 | 28 | ||
29 | static struct resource pci_io_resource = { | 29 | static struct resource pci_io_resource = { |
30 | "pci IO space", | 30 | .start = PNX8550_PCIIO + 0x1000, /* reserve regacy I/O space */ |
31 | (u32)(PNX8550_PCIIO + 0x1000), /* reserve regacy I/O space */ | 31 | .end = PNX8550_PCIIO + PNX8550_PCIIO_SIZE, |
32 | (u32)(PNX8550_PCIIO + PNX8550_PCIIO_SIZE), | 32 | .name = "pci IO space", |
33 | IORESOURCE_IO | 33 | .flags = IORESOURCE_IO |
34 | }; | 34 | }; |
35 | 35 | ||
36 | static struct resource pci_mem_resource = { | 36 | static struct resource pci_mem_resource = { |
37 | "pci memory space", | 37 | .start = PNX8550_PCIMEM, |
38 | (u32)(PNX8550_PCIMEM), | 38 | .end = PNX8550_PCIMEM + PNX8550_PCIMEM_SIZE - 1, |
39 | (u32)(PNX8550_PCIMEM + PNX8550_PCIMEM_SIZE - 1), | 39 | .name = "pci memory space", |
40 | IORESOURCE_MEM | 40 | .flags = IORESOURCE_MEM |
41 | }; | 41 | }; |
42 | 42 | ||
43 | extern struct pci_ops pnx8550_pci_ops; | 43 | extern struct pci_ops pnx8550_pci_ops; |
diff --git a/arch/mips/philips/pnx8550/common/setup.c b/arch/mips/philips/pnx8550/common/setup.c index 0d8a77619391..0e791f4f6ea3 100644 --- a/arch/mips/philips/pnx8550/common/setup.c +++ b/arch/mips/philips/pnx8550/common/setup.c | |||
@@ -58,10 +58,27 @@ extern void prom_printf(char *fmt, ...); | |||
58 | extern char *prom_getcmdline(void); | 58 | extern char *prom_getcmdline(void); |
59 | 59 | ||
60 | struct resource standard_io_resources[] = { | 60 | struct resource standard_io_resources[] = { |
61 | {"dma1", 0x00, 0x1f, IORESOURCE_BUSY}, | 61 | { |
62 | {"timer", 0x40, 0x5f, IORESOURCE_BUSY}, | 62 | .start = .0x00, |
63 | {"dma page reg", 0x80, 0x8f, IORESOURCE_BUSY}, | 63 | .end = 0x1f, |
64 | {"dma2", 0xc0, 0xdf, IORESOURCE_BUSY}, | 64 | .name = "dma1", |
65 | .flags = IORESOURCE_BUSY | ||
66 | }, { | ||
67 | .start = 0x40, | ||
68 | .end = 0x5f, | ||
69 | .name = "timer", | ||
70 | .flags = IORESOURCE_BUSY | ||
71 | }, { | ||
72 | .start = 0x80, | ||
73 | .end = 0x8f, | ||
74 | .name = "dma page reg", | ||
75 | .flags = IORESOURCE_BUSY | ||
76 | }, { | ||
77 | .start = 0xc0, | ||
78 | .end = 0xdf, | ||
79 | .name = "dma2", | ||
80 | .flags = IORESOURCE_BUSY | ||
81 | }, | ||
65 | }; | 82 | }; |
66 | 83 | ||
67 | #define STANDARD_IO_RESOURCES (sizeof(standard_io_resources)/sizeof(struct resource)) | 84 | #define STANDARD_IO_RESOURCES (sizeof(standard_io_resources)/sizeof(struct resource)) |
@@ -82,7 +99,7 @@ unsigned long get_system_mem_size(void) | |||
82 | 99 | ||
83 | int pnx8550_console_port = -1; | 100 | int pnx8550_console_port = -1; |
84 | 101 | ||
85 | void __init plat_setup(void) | 102 | void __init plat_mem_setup(void) |
86 | { | 103 | { |
87 | int i; | 104 | int i; |
88 | char* argptr; | 105 | char* argptr; |
diff --git a/arch/mips/pmc-sierra/yosemite/setup.c b/arch/mips/pmc-sierra/yosemite/setup.c index 3f724d661bdb..aa0d6ff3c6ec 100644 --- a/arch/mips/pmc-sierra/yosemite/setup.c +++ b/arch/mips/pmc-sierra/yosemite/setup.c | |||
@@ -218,7 +218,7 @@ static void __init py_late_time_init(void) | |||
218 | py_rtc_setup(); | 218 | py_rtc_setup(); |
219 | } | 219 | } |
220 | 220 | ||
221 | void __init plat_setup(void) | 221 | void __init plat_mem_setup(void) |
222 | { | 222 | { |
223 | board_time_init = yosemite_time_init; | 223 | board_time_init = yosemite_time_init; |
224 | late_time_init = py_late_time_init; | 224 | late_time_init = py_late_time_init; |
diff --git a/arch/mips/qemu/Makefile b/arch/mips/qemu/Makefile index 730f459f3e99..078cd3029c9f 100644 --- a/arch/mips/qemu/Makefile +++ b/arch/mips/qemu/Makefile | |||
@@ -2,6 +2,6 @@ | |||
2 | # Makefile for Qemu specific kernel interface routines under Linux. | 2 | # Makefile for Qemu specific kernel interface routines under Linux. |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y = q-firmware.o q-irq.o q-mem.o q-setup.o | 5 | obj-y = q-firmware.o q-irq.o q-mem.o q-setup.o q-reset.o |
6 | 6 | ||
7 | obj-$(CONFIG_SMP) += q-smp.o | 7 | obj-$(CONFIG_SMP) += q-smp.o |
diff --git a/arch/mips/qemu/q-reset.c b/arch/mips/qemu/q-reset.c new file mode 100644 index 000000000000..c04ebcfc7843 --- /dev/null +++ b/arch/mips/qemu/q-reset.c | |||
@@ -0,0 +1,34 @@ | |||
1 | #include <linux/config.h> | ||
2 | |||
3 | #include <asm/io.h> | ||
4 | #include <asm/reboot.h> | ||
5 | #include <asm/cacheflush.h> | ||
6 | #include <asm/qemu.h> | ||
7 | |||
8 | static void qemu_machine_restart(char *command) | ||
9 | { | ||
10 | volatile unsigned int *reg = (unsigned int *)QEMU_RESTART_REG; | ||
11 | |||
12 | set_c0_status(ST0_BEV | ST0_ERL); | ||
13 | change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED); | ||
14 | flush_cache_all(); | ||
15 | write_c0_wired(0); | ||
16 | *reg = 42; | ||
17 | while (1) | ||
18 | cpu_wait(); | ||
19 | } | ||
20 | |||
21 | static void qemu_machine_halt(void) | ||
22 | { | ||
23 | volatile unsigned int *reg = (unsigned int *)QEMU_HALT_REG; | ||
24 | |||
25 | *reg = 42; | ||
26 | while (1) | ||
27 | cpu_wait(); | ||
28 | } | ||
29 | |||
30 | void qemu_reboot_setup(void) | ||
31 | { | ||
32 | _machine_restart = qemu_machine_restart; | ||
33 | _machine_halt = qemu_machine_halt; | ||
34 | } | ||
diff --git a/arch/mips/qemu/q-setup.c b/arch/mips/qemu/q-setup.c index 022eb1af6db1..e100d6072e31 100644 --- a/arch/mips/qemu/q-setup.c +++ b/arch/mips/qemu/q-setup.c | |||
@@ -2,6 +2,8 @@ | |||
2 | #include <asm/io.h> | 2 | #include <asm/io.h> |
3 | #include <asm/time.h> | 3 | #include <asm/time.h> |
4 | 4 | ||
5 | extern void qemu_reboot_setup(void); | ||
6 | |||
5 | #define QEMU_PORT_BASE 0xb4000000 | 7 | #define QEMU_PORT_BASE 0xb4000000 |
6 | 8 | ||
7 | const char *get_system_type(void) | 9 | const char *get_system_type(void) |
@@ -18,8 +20,10 @@ static void __init qemu_timer_setup(struct irqaction *irq) | |||
18 | setup_irq(0, irq); | 20 | setup_irq(0, irq); |
19 | } | 21 | } |
20 | 22 | ||
21 | void __init plat_setup(void) | 23 | void __init plat_mem_setup(void) |
22 | { | 24 | { |
23 | set_io_port_base(QEMU_PORT_BASE); | 25 | set_io_port_base(QEMU_PORT_BASE); |
24 | board_timer_setup = qemu_timer_setup; | 26 | board_timer_setup = qemu_timer_setup; |
27 | |||
28 | qemu_reboot_setup(); | ||
25 | } | 29 | } |
diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c index 7018e1833e85..d7138906eb10 100644 --- a/arch/mips/sgi-ip22/ip22-setup.c +++ b/arch/mips/sgi-ip22/ip22-setup.c | |||
@@ -53,7 +53,7 @@ EXPORT_SYMBOL(ip22_do_break); | |||
53 | extern void ip22_be_init(void) __init; | 53 | extern void ip22_be_init(void) __init; |
54 | extern void ip22_time_init(void) __init; | 54 | extern void ip22_time_init(void) __init; |
55 | 55 | ||
56 | void __init plat_setup(void) | 56 | void __init plat_mem_setup(void) |
57 | { | 57 | { |
58 | char *ctype; | 58 | char *ctype; |
59 | char *cserial; | 59 | char *cserial; |
diff --git a/arch/mips/sgi-ip27/Kconfig b/arch/mips/sgi-ip27/Kconfig index 7b0bc4437243..f14ef38646d0 100644 --- a/arch/mips/sgi-ip27/Kconfig +++ b/arch/mips/sgi-ip27/Kconfig | |||
@@ -4,31 +4,29 @@ | |||
4 | # This options adds support for userspace processes upto 16TB size. | 4 | # This options adds support for userspace processes upto 16TB size. |
5 | # Normally the limit is just .5TB. | 5 | # Normally the limit is just .5TB. |
6 | 6 | ||
7 | config SGI_SN0_N_MODE | 7 | choice |
8 | bool "IP27 N-Mode" | 8 | prompt "Node addressing mode" |
9 | depends on SGI_IP27 | 9 | depends on SGI_IP27 |
10 | help | 10 | default SGI_SN_M_MODE |
11 | The nodes of Origin 200, Origin 2000 and Onyx 2 systems can be | ||
12 | configured in either N-Modes which allows for more nodes or M-Mode | ||
13 | which allows for more memory. Your system is most probably | ||
14 | running in M-Mode, so you should say N here. | ||
15 | 11 | ||
16 | config ARCH_DISCONTIGMEM_ENABLE | 12 | config SGI_SN_M_MODE |
17 | bool | 13 | bool "IP27 M-Mode" |
18 | default y if SGI_IP27 | ||
19 | help | 14 | help |
20 | Say Y to upport efficient handling of discontiguous physical memory, | 15 | The nodes of Origin, Onyx, Fuel and Tezro systems can be configured |
21 | for architectures which are either NUMA (Non-Uniform Memory Access) | 16 | in either N-Modes which allows for more nodes or M-Mode which allows |
22 | or have huge holes in the physical address space for other reasons. | 17 | for more memory. Your hardware is almost certainly running in |
23 | See <file:Documentation/vm/numa> for more. | 18 | M-Mode, so choose M-mode here. |
24 | 19 | ||
25 | config NUMA | 20 | config SGI_SN_N_MODE |
26 | bool "NUMA Support" | 21 | bool "IP27 N-Mode" |
27 | depends on SGI_IP27 | 22 | depends on EXPERIMENTAL |
28 | help | 23 | help |
29 | Say Y to compile the kernel to support NUMA (Non-Uniform Memory | 24 | The nodes of Origin, Onyx, Fuel and Tezro systems can be configured |
30 | Access). This option is for configuring high-end multiprocessor | 25 | in either N-Modes which allows for more nodes or M-Mode which allows |
31 | server machines. If in doubt, say N. | 26 | for more memory. Your hardware is almost certainly running in |
27 | M-Mode, so choose M-mode here. | ||
28 | |||
29 | endchoice | ||
32 | 30 | ||
33 | config MAPPED_KERNEL | 31 | config MAPPED_KERNEL |
34 | bool "Mapped kernel support" | 32 | bool "Mapped kernel support" |
diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c index 8651a0e75404..a6b490e99709 100644 --- a/arch/mips/sgi-ip27/ip27-init.c +++ b/arch/mips/sgi-ip27/ip27-init.c | |||
@@ -196,7 +196,7 @@ extern void ip27_setup_console(void); | |||
196 | extern void ip27_time_init(void); | 196 | extern void ip27_time_init(void); |
197 | extern void ip27_reboot_setup(void); | 197 | extern void ip27_reboot_setup(void); |
198 | 198 | ||
199 | void __init plat_setup(void) | 199 | void __init plat_mem_setup(void) |
200 | { | 200 | { |
201 | hubreg_t p, e, n_mode; | 201 | hubreg_t p, e, n_mode; |
202 | nasid_t nid; | 202 | nasid_t nid; |
@@ -228,7 +228,7 @@ void __init plat_setup(void) | |||
228 | */ | 228 | */ |
229 | n_mode = LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_MORENODES_MASK; | 229 | n_mode = LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_MORENODES_MASK; |
230 | printk("Machine is in %c mode.\n", n_mode ? 'N' : 'M'); | 230 | printk("Machine is in %c mode.\n", n_mode ? 'N' : 'M'); |
231 | #ifdef CONFIG_SGI_SN0_N_MODE | 231 | #ifdef CONFIG_SGI_SN_N_MODE |
232 | if (!n_mode) | 232 | if (!n_mode) |
233 | panic("Kernel compiled for M mode."); | 233 | panic("Kernel compiled for M mode."); |
234 | #else | 234 | #else |
diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/mips/sgi-ip27/ip27-irq.c index 2e643d2f51cb..0b61a39ce2bb 100644 --- a/arch/mips/sgi-ip27/ip27-irq.c +++ b/arch/mips/sgi-ip27/ip27-irq.c | |||
@@ -360,7 +360,7 @@ static struct hw_interrupt_type bridge_irq_type = { | |||
360 | 360 | ||
361 | static unsigned long irq_map[NR_IRQS / BITS_PER_LONG]; | 361 | static unsigned long irq_map[NR_IRQS / BITS_PER_LONG]; |
362 | 362 | ||
363 | static int allocate_irqno(void) | 363 | int allocate_irqno(void) |
364 | { | 364 | { |
365 | int irq; | 365 | int irq; |
366 | 366 | ||
diff --git a/arch/mips/sgi-ip27/ip27-timer.c b/arch/mips/sgi-ip27/ip27-timer.c index 36b662e27b6e..1fb860c7ac6d 100644 --- a/arch/mips/sgi-ip27/ip27-timer.c +++ b/arch/mips/sgi-ip27/ip27-timer.c | |||
@@ -89,11 +89,13 @@ static int set_rtc_mmss(unsigned long nowtime) | |||
89 | } | 89 | } |
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | static unsigned int rt_timer_irq; | ||
93 | |||
92 | void ip27_rt_timer_interrupt(struct pt_regs *regs) | 94 | void ip27_rt_timer_interrupt(struct pt_regs *regs) |
93 | { | 95 | { |
94 | int cpu = smp_processor_id(); | 96 | int cpu = smp_processor_id(); |
95 | int cpuA = cputoslice(cpu) == 0; | 97 | int cpuA = cputoslice(cpu) == 0; |
96 | int irq = 9; /* XXX Assign number */ | 98 | unsigned int irq = rt_timer_irq; |
97 | 99 | ||
98 | irq_enter(); | 100 | irq_enter(); |
99 | write_seqlock(&xtime_lock); | 101 | write_seqlock(&xtime_lock); |
@@ -179,13 +181,68 @@ static __init unsigned long get_m48t35_time(void) | |||
179 | return mktime(year, month, date, hour, min, sec); | 181 | return mktime(year, month, date, hour, min, sec); |
180 | } | 182 | } |
181 | 183 | ||
184 | static void startup_rt_irq(unsigned int irq) | ||
185 | { | ||
186 | } | ||
187 | |||
188 | static void shutdown_rt_irq(unsigned int irq) | ||
189 | { | ||
190 | } | ||
191 | |||
192 | static void enable_rt_irq(unsigned int irq) | ||
193 | { | ||
194 | } | ||
195 | |||
196 | static void disable_rt_irq(unsigned int irq) | ||
197 | { | ||
198 | } | ||
199 | |||
200 | static void mask_and_ack_rt(unsigned int irq) | ||
201 | { | ||
202 | } | ||
203 | |||
204 | static void end_rt_irq(unsigned int irq) | ||
205 | { | ||
206 | } | ||
207 | |||
208 | static struct hw_interrupt_type rt_irq_type = { | ||
209 | .typename = "SN HUB RT timer", | ||
210 | .startup = startup_rt_irq, | ||
211 | .shutdown = shutdown_rt_irq, | ||
212 | .enable = enable_rt_irq, | ||
213 | .disable = disable_rt_irq, | ||
214 | .ack = mask_and_ack_rt, | ||
215 | .end = end_rt_irq, | ||
216 | }; | ||
217 | |||
218 | static struct irqaction rt_irqaction = { | ||
219 | .handler = ip27_rt_timer_interrupt, | ||
220 | .flags = SA_INTERRUPT, | ||
221 | .mask = CPU_MASK_NONE, | ||
222 | .name = "timer" | ||
223 | }; | ||
224 | |||
225 | extern int allocate_irqno(void); | ||
226 | |||
182 | static void ip27_timer_setup(struct irqaction *irq) | 227 | static void ip27_timer_setup(struct irqaction *irq) |
183 | { | 228 | { |
229 | int irqno = allocate_irqno(); | ||
230 | |||
231 | if (irqno < 0) | ||
232 | panic("Can't allocate interrupt number for timer interrupt"); | ||
233 | |||
234 | irq_desc[irqno].status = IRQ_DISABLED; | ||
235 | irq_desc[irqno].action = NULL; | ||
236 | irq_desc[irqno].depth = 1; | ||
237 | irq_desc[irqno].handler = &rt_irq_type; | ||
238 | |||
184 | /* over-write the handler, we use our own way */ | 239 | /* over-write the handler, we use our own way */ |
185 | irq->handler = no_action; | 240 | irq->handler = no_action; |
186 | 241 | ||
187 | /* setup irqaction */ | 242 | /* setup irqaction */ |
188 | // setup_irq(IP27_TIMER_IRQ, irq); /* XXX Can't do this yet. */ | 243 | irq_desc[irqno].status |= IRQ_PER_CPU; |
244 | |||
245 | rt_timer_irq = irqno; | ||
189 | } | 246 | } |
190 | 247 | ||
191 | void __init ip27_time_init(void) | 248 | void __init ip27_time_init(void) |
diff --git a/arch/mips/sgi-ip32/ip32-irq.c b/arch/mips/sgi-ip32/ip32-irq.c index de01c9815bdd..8ba08047d164 100644 --- a/arch/mips/sgi-ip32/ip32-irq.c +++ b/arch/mips/sgi-ip32/ip32-irq.c | |||
@@ -31,12 +31,12 @@ | |||
31 | /* issue a PIO read to make sure no PIO writes are pending */ | 31 | /* issue a PIO read to make sure no PIO writes are pending */ |
32 | static void inline flush_crime_bus(void) | 32 | static void inline flush_crime_bus(void) |
33 | { | 33 | { |
34 | volatile unsigned long junk = crime->control; | 34 | crime->control; |
35 | } | 35 | } |
36 | 36 | ||
37 | static void inline flush_mace_bus(void) | 37 | static void inline flush_mace_bus(void) |
38 | { | 38 | { |
39 | volatile unsigned long junk = mace->perif.ctrl.misc; | 39 | mace->perif.ctrl.misc; |
40 | } | 40 | } |
41 | 41 | ||
42 | #undef DEBUG_IRQ | 42 | #undef DEBUG_IRQ |
diff --git a/arch/mips/sgi-ip32/ip32-setup.c b/arch/mips/sgi-ip32/ip32-setup.c index a2dd8ae1ea8f..acbdad06fac1 100644 --- a/arch/mips/sgi-ip32/ip32-setup.c +++ b/arch/mips/sgi-ip32/ip32-setup.c | |||
@@ -87,7 +87,7 @@ void __init ip32_timer_setup(struct irqaction *irq) | |||
87 | setup_irq(IP32_R4K_TIMER_IRQ, irq); | 87 | setup_irq(IP32_R4K_TIMER_IRQ, irq); |
88 | } | 88 | } |
89 | 89 | ||
90 | void __init plat_setup(void) | 90 | void __init plat_mem_setup(void) |
91 | { | 91 | { |
92 | board_be_init = ip32_be_init; | 92 | board_be_init = ip32_be_init; |
93 | 93 | ||
diff --git a/arch/mips/sibyte/bcm1480/time.c b/arch/mips/sibyte/bcm1480/time.c index e545752695a1..efaf83efd2e4 100644 --- a/arch/mips/sibyte/bcm1480/time.c +++ b/arch/mips/sibyte/bcm1480/time.c | |||
@@ -110,17 +110,18 @@ void bcm1480_timer_interrupt(struct pt_regs *regs) | |||
110 | __raw_writeq(M_SCD_TIMER_ENABLE|M_SCD_TIMER_MODE_CONTINUOUS, | 110 | __raw_writeq(M_SCD_TIMER_ENABLE|M_SCD_TIMER_MODE_CONTINUOUS, |
111 | IOADDR(A_SCD_TIMER_REGISTER(cpu, R_SCD_TIMER_CFG))); | 111 | IOADDR(A_SCD_TIMER_REGISTER(cpu, R_SCD_TIMER_CFG))); |
112 | 112 | ||
113 | /* | ||
114 | * CPU 0 handles the global timer interrupt job | ||
115 | */ | ||
116 | if (cpu == 0) { | 113 | if (cpu == 0) { |
114 | /* | ||
115 | * CPU 0 handles the global timer interrupt job | ||
116 | */ | ||
117 | ll_timer_interrupt(irq, regs); | 117 | ll_timer_interrupt(irq, regs); |
118 | } | 118 | } |
119 | 119 | else { | |
120 | /* | 120 | /* |
121 | * every CPU should do profiling and process accouting | 121 | * other CPUs should just do profiling and process accounting |
122 | */ | 122 | */ |
123 | ll_local_timer_interrupt(irq, regs); | 123 | ll_local_timer_interrupt(irq, regs); |
124 | } | ||
124 | } | 125 | } |
125 | 126 | ||
126 | /* | 127 | /* |
diff --git a/arch/mips/sibyte/sb1250/irq.c b/arch/mips/sibyte/sb1250/irq.c index 0f6e54db4888..f853c32f60a0 100644 --- a/arch/mips/sibyte/sb1250/irq.c +++ b/arch/mips/sibyte/sb1250/irq.c | |||
@@ -435,13 +435,17 @@ static inline int dclz(unsigned long long x) | |||
435 | return lz; | 435 | return lz; |
436 | } | 436 | } |
437 | 437 | ||
438 | extern void sb1250_timer_interrupt(struct pt_regs *regs); | ||
439 | extern void sb1250_mailbox_interrupt(struct pt_regs *regs); | ||
440 | extern void sb1250_kgdb_interrupt(struct pt_regs *regs); | ||
441 | |||
438 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | 442 | asmlinkage void plat_irq_dispatch(struct pt_regs *regs) |
439 | { | 443 | { |
440 | unsigned int pending; | 444 | unsigned int pending; |
441 | 445 | ||
442 | #ifdef CONFIG_SIBYTE_SB1250_PROF | 446 | #ifdef CONFIG_SIBYTE_SB1250_PROF |
443 | /* Set compare to count to silence count/compare timer interrupts */ | 447 | /* Set compare to count to silence count/compare timer interrupts */ |
444 | write_c0_count(read_c0_count()); | 448 | write_c0_compare(read_c0_count()); |
445 | #endif | 449 | #endif |
446 | 450 | ||
447 | /* | 451 | /* |
@@ -482,7 +486,7 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | |||
482 | * Default...we've hit an IP[2] interrupt, which means we've | 486 | * Default...we've hit an IP[2] interrupt, which means we've |
483 | * got to check the 1250 interrupt registers to figure out what | 487 | * got to check the 1250 interrupt registers to figure out what |
484 | * to do. Need to detect which CPU we're on, now that | 488 | * to do. Need to detect which CPU we're on, now that |
485 | ~ smp_affinity is supported. | 489 | * smp_affinity is supported. |
486 | */ | 490 | */ |
487 | mask = __raw_readq(IOADDR(A_IMR_REGISTER(smp_processor_id(), | 491 | mask = __raw_readq(IOADDR(A_IMR_REGISTER(smp_processor_id(), |
488 | R_IMR_INTERRUPT_STATUS_BASE))); | 492 | R_IMR_INTERRUPT_STATUS_BASE))); |
diff --git a/arch/mips/sibyte/swarm/setup.c b/arch/mips/sibyte/swarm/setup.c index 4b5f74ff3edd..f9e694988cdf 100644 --- a/arch/mips/sibyte/swarm/setup.c +++ b/arch/mips/sibyte/swarm/setup.c | |||
@@ -72,8 +72,10 @@ const char *get_system_type(void) | |||
72 | 72 | ||
73 | void __init swarm_time_init(void) | 73 | void __init swarm_time_init(void) |
74 | { | 74 | { |
75 | #if defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) | ||
75 | /* Setup HPT */ | 76 | /* Setup HPT */ |
76 | sb1250_hpt_setup(); | 77 | sb1250_hpt_setup(); |
78 | #endif | ||
77 | } | 79 | } |
78 | 80 | ||
79 | void __init swarm_timer_setup(struct irqaction *irq) | 81 | void __init swarm_timer_setup(struct irqaction *irq) |
@@ -103,7 +105,7 @@ int swarm_be_handler(struct pt_regs *regs, int is_fixup) | |||
103 | return (is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL); | 105 | return (is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL); |
104 | } | 106 | } |
105 | 107 | ||
106 | void __init plat_setup(void) | 108 | void __init plat_mem_setup(void) |
107 | { | 109 | { |
108 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 110 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) |
109 | bcm1480_setup(); | 111 | bcm1480_setup(); |
diff --git a/arch/mips/sni/Makefile b/arch/mips/sni/Makefile index 9c7eaa5fb210..a5eb0adb87c7 100644 --- a/arch/mips/sni/Makefile +++ b/arch/mips/sni/Makefile | |||
@@ -3,5 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y += irq.o pcimt_scache.o reset.o setup.o | 5 | obj-y += irq.o pcimt_scache.o reset.o setup.o |
6 | obj-$(CONFIG_CPU_BIG_ENDIAN) += sniprom.o | ||
6 | 7 | ||
7 | EXTRA_AFLAGS := $(CFLAGS) | 8 | EXTRA_AFLAGS := $(CFLAGS) |
diff --git a/arch/mips/sni/setup.c b/arch/mips/sni/setup.c index 01ba6c581e3d..a050bb6ae704 100644 --- a/arch/mips/sni/setup.c +++ b/arch/mips/sni/setup.c | |||
@@ -21,8 +21,11 @@ | |||
21 | #include <linux/fb.h> | 21 | #include <linux/fb.h> |
22 | #include <linux/tty.h> | 22 | #include <linux/tty.h> |
23 | 23 | ||
24 | #ifdef CONFIG_ARC | ||
24 | #include <asm/arc/types.h> | 25 | #include <asm/arc/types.h> |
25 | #include <asm/sgialib.h> | 26 | #include <asm/sgialib.h> |
27 | #endif | ||
28 | |||
26 | #include <asm/bcache.h> | 29 | #include <asm/bcache.h> |
27 | #include <asm/bootinfo.h> | 30 | #include <asm/bootinfo.h> |
28 | #include <asm/io.h> | 31 | #include <asm/io.h> |
@@ -72,8 +75,7 @@ static inline void sni_pcimt_detect(void) | |||
72 | 75 | ||
73 | static void __init sni_display_setup(void) | 76 | static void __init sni_display_setup(void) |
74 | { | 77 | { |
75 | #ifdef CONFIG_VT | 78 | #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) && defined(CONFIG_ARC) |
76 | #if defined(CONFIG_VGA_CONSOLE) | ||
77 | struct screen_info *si = &screen_info; | 79 | struct screen_info *si = &screen_info; |
78 | DISPLAY_STATUS *di; | 80 | DISPLAY_STATUS *di; |
79 | 81 | ||
@@ -88,24 +90,54 @@ static void __init sni_display_setup(void) | |||
88 | si->orig_video_points = 16; | 90 | si->orig_video_points = 16; |
89 | } | 91 | } |
90 | #endif | 92 | #endif |
91 | #endif | ||
92 | } | 93 | } |
93 | 94 | ||
94 | static struct resource sni_io_resource = { | 95 | static struct resource sni_io_resource = { |
95 | "PCIMT IO MEM", 0x00001000UL, 0x03bfffffUL, IORESOURCE_IO, | 96 | .start = 0x00001000UL, |
97 | .end = 0x03bfffffUL, | ||
98 | .name = "PCIMT IO MEM", | ||
99 | .flags = IORESOURCE_IO, | ||
96 | }; | 100 | }; |
97 | 101 | ||
98 | static struct resource pcimt_io_resources[] = { | 102 | static struct resource pcimt_io_resources[] = { |
99 | { "dma1", 0x00, 0x1f, IORESOURCE_BUSY }, | 103 | { |
100 | { "timer", 0x40, 0x5f, IORESOURCE_BUSY }, | 104 | .start = 0x00, |
101 | { "keyboard", 0x60, 0x6f, IORESOURCE_BUSY }, | 105 | .end = 0x1f, |
102 | { "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY }, | 106 | .name = "dma1", |
103 | { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY }, | 107 | .flags = IORESOURCE_BUSY |
104 | { "PCI config data", 0xcfc, 0xcff, IORESOURCE_BUSY } | 108 | }, { |
109 | .start = 0x40, | ||
110 | .end = 0x5f, | ||
111 | .name = "timer", | ||
112 | .flags = IORESOURCE_BUSY | ||
113 | }, { | ||
114 | .start = 0x60, | ||
115 | .end = 0x6f, | ||
116 | .name = "keyboard", | ||
117 | .flags = IORESOURCE_BUSY | ||
118 | }, { | ||
119 | .start = 0x80, | ||
120 | .end = 0x8f, | ||
121 | .name = "dma page reg", | ||
122 | .flags = IORESOURCE_BUSY | ||
123 | }, { | ||
124 | .start = 0xc0, | ||
125 | .end = 0xdf, | ||
126 | .name = "dma2", | ||
127 | .flags = IORESOURCE_BUSY | ||
128 | }, { | ||
129 | .start = 0xcfc, | ||
130 | .end = 0xcff, | ||
131 | .name = "PCI config data", | ||
132 | .flags = IORESOURCE_BUSY | ||
133 | } | ||
105 | }; | 134 | }; |
106 | 135 | ||
107 | static struct resource sni_mem_resource = { | 136 | static struct resource sni_mem_resource = { |
108 | "PCIMT PCI MEM", 0x10000000UL, 0xffffffffUL, IORESOURCE_MEM | 137 | .start = 0x10000000UL, |
138 | .end = 0xffffffffUL, | ||
139 | .name = "PCIMT PCI MEM", | ||
140 | .flags = IORESOURCE_MEM | ||
109 | }; | 141 | }; |
110 | 142 | ||
111 | /* | 143 | /* |
@@ -122,19 +154,72 @@ static struct resource sni_mem_resource = { | |||
122 | * 0xa0000000 - 0xffffffff (1.5GB) PCI/EISA Bus Memory | 154 | * 0xa0000000 - 0xffffffff (1.5GB) PCI/EISA Bus Memory |
123 | */ | 155 | */ |
124 | static struct resource pcimt_mem_resources[] = { | 156 | static struct resource pcimt_mem_resources[] = { |
125 | { "Video RAM area", 0x100a0000, 0x100bffff, IORESOURCE_BUSY }, | 157 | { |
126 | { "ISA Reserved", 0x100c0000, 0x100fffff, IORESOURCE_BUSY }, | 158 | .start = 0x100a0000, |
127 | { "PCI IO", 0x14000000, 0x17bfffff, IORESOURCE_BUSY }, | 159 | .end = 0x100bffff, |
128 | { "Cache Replacement Area", 0x17c00000, 0x17ffffff, IORESOURCE_BUSY}, | 160 | .name = "Video RAM area", |
129 | { "PCI INT Acknowledge", 0x1a000000, 0x1a000003, IORESOURCE_BUSY }, | 161 | .flags = IORESOURCE_BUSY |
130 | { "Boot PROM", 0x1fc00000, 0x1fc7ffff, IORESOURCE_BUSY}, | 162 | }, { |
131 | { "Diag PROM", 0x1fc80000, 0x1fcfffff, IORESOURCE_BUSY}, | 163 | .start = 0x100c0000, |
132 | { "X-Bus", 0x1fd00000, 0x1fdfffff, IORESOURCE_BUSY}, | 164 | .end = 0x100fffff, |
133 | { "BIOS map", 0x1fe00000, 0x1fefffff, IORESOURCE_BUSY}, | 165 | .name = "ISA Reserved", |
134 | { "NVRAM / EEPROM", 0x1ff00000, 0x1ff7ffff, IORESOURCE_BUSY}, | 166 | .flags = IORESOURCE_BUSY |
135 | { "ASIC PCI", 0x1fff0000, 0x1fffefff, IORESOURCE_BUSY}, | 167 | }, { |
136 | { "MP Agent", 0x1ffff000, 0x1fffffff, IORESOURCE_BUSY}, | 168 | .start = 0x14000000, |
137 | { "Main Memory", 0x20000000, 0x9fffffff, IORESOURCE_BUSY} | 169 | .end = 0x17bfffff, |
170 | .name = "PCI IO", | ||
171 | .flags = IORESOURCE_BUSY | ||
172 | }, { | ||
173 | .start = 0x17c00000, | ||
174 | .end = 0x17ffffff, | ||
175 | .name = "Cache Replacement Area", | ||
176 | .flags = IORESOURCE_BUSY | ||
177 | }, { | ||
178 | .start = 0x1a000000, | ||
179 | .end = 0x1a000003, | ||
180 | .name = "PCI INT Acknowledge", | ||
181 | .flags = IORESOURCE_BUSY | ||
182 | }, { | ||
183 | .start = 0x1fc00000, | ||
184 | .end = 0x1fc7ffff, | ||
185 | .name = "Boot PROM", | ||
186 | .flags = IORESOURCE_BUSY | ||
187 | }, { | ||
188 | .start = 0x1fc80000, | ||
189 | .end = 0x1fcfffff, | ||
190 | .name = "Diag PROM", | ||
191 | .flags = IORESOURCE_BUSY | ||
192 | }, { | ||
193 | .start = 0x1fd00000, | ||
194 | .end = 0x1fdfffff, | ||
195 | .name = "X-Bus", | ||
196 | .flags = IORESOURCE_BUSY | ||
197 | }, { | ||
198 | .start = 0x1fe00000, | ||
199 | .end = 0x1fefffff, | ||
200 | .name = "BIOS map", | ||
201 | .flags = IORESOURCE_BUSY | ||
202 | }, { | ||
203 | .start = 0x1ff00000, | ||
204 | .end = 0x1ff7ffff, | ||
205 | .name = "NVRAM / EEPROM", | ||
206 | .flags = IORESOURCE_BUSY | ||
207 | }, { | ||
208 | .start = 0x1fff0000, | ||
209 | .end = 0x1fffefff, | ||
210 | .name = "ASIC PCI", | ||
211 | .flags = IORESOURCE_BUSY | ||
212 | }, { | ||
213 | .start = 0x1ffff000, | ||
214 | .end = 0x1fffffff, | ||
215 | .name = "MP Agent", | ||
216 | .flags = IORESOURCE_BUSY | ||
217 | }, { | ||
218 | .start = 0x20000000, | ||
219 | .end = 0x9fffffff, | ||
220 | .name = "Main Memory", | ||
221 | .flags = IORESOURCE_BUSY | ||
222 | } | ||
138 | }; | 223 | }; |
139 | 224 | ||
140 | static void __init sni_resource_init(void) | 225 | static void __init sni_resource_init(void) |
@@ -168,7 +253,7 @@ static inline void sni_pcimt_time_init(void) | |||
168 | rtc_mips_set_time = mc146818_set_rtc_mmss; | 253 | rtc_mips_set_time = mc146818_set_rtc_mmss; |
169 | } | 254 | } |
170 | 255 | ||
171 | void __init plat_setup(void) | 256 | void __init plat_mem_setup(void) |
172 | { | 257 | { |
173 | sni_pcimt_detect(); | 258 | sni_pcimt_detect(); |
174 | sni_pcimt_sc_init(); | 259 | sni_pcimt_sc_init(); |
diff --git a/arch/mips/sni/sniprom.c b/arch/mips/sni/sniprom.c new file mode 100644 index 000000000000..d1d0f1f493b4 --- /dev/null +++ b/arch/mips/sni/sniprom.c | |||
@@ -0,0 +1,158 @@ | |||
1 | /* | ||
2 | * Big Endian PROM code for SNI RM machines | ||
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 | * Copyright (C) 2005-2006 Florian Lohoff (flo@rfc822.org) | ||
9 | * Copyright (C) 2005-2006 Thomas Bogendoerfer (tsbogend@alpha.franken.de) | ||
10 | */ | ||
11 | |||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/string.h> | ||
15 | |||
16 | #include <asm/addrspace.h> | ||
17 | #include <asm/sni.h> | ||
18 | #include <asm/mipsprom.h> | ||
19 | #include <asm/bootinfo.h> | ||
20 | |||
21 | /* special SNI prom calls */ | ||
22 | /* | ||
23 | * This does not exist in all proms - SINIX compares | ||
24 | * the prom env variable "version" against "2.0008" | ||
25 | * or greater. If lesser it tries to probe interesting | ||
26 | * registers | ||
27 | */ | ||
28 | #define PROM_GET_MEMCONF 58 | ||
29 | |||
30 | #define PROM_VEC (u64 *)CKSEG1ADDR(0x1fc00000) | ||
31 | #define PROM_ENTRY(x) (PROM_VEC + (x)) | ||
32 | |||
33 | |||
34 | #undef DEBUG | ||
35 | #ifdef DEBUG | ||
36 | #define DBG_PRINTF(x...) prom_printf(x) | ||
37 | #else | ||
38 | #define DBG_PRINTF(x...) | ||
39 | #endif | ||
40 | |||
41 | static int *(*__prom_putchar)(int) = (int *(*)(int))PROM_ENTRY(PROM_PUTCHAR); | ||
42 | static char *(*__prom_getenv)(char *) = (char *(*)(char *))PROM_ENTRY(PROM_GETENV); | ||
43 | static void (*__prom_get_memconf)(void *) = (void (*)(void *))PROM_ENTRY(PROM_GET_MEMCONF); | ||
44 | |||
45 | char *prom_getenv (char *s) | ||
46 | { | ||
47 | return __prom_getenv(s); | ||
48 | } | ||
49 | |||
50 | void prom_printf(char *fmt, ...) | ||
51 | { | ||
52 | va_list args; | ||
53 | char ppbuf[1024]; | ||
54 | char *bptr; | ||
55 | |||
56 | va_start(args, fmt); | ||
57 | vsprintf(ppbuf, fmt, args); | ||
58 | |||
59 | bptr = ppbuf; | ||
60 | |||
61 | while (*bptr != 0) { | ||
62 | if (*bptr == '\n') | ||
63 | __prom_putchar('\r'); | ||
64 | |||
65 | __prom_putchar(*bptr++); | ||
66 | } | ||
67 | va_end(args); | ||
68 | } | ||
69 | |||
70 | unsigned long prom_free_prom_memory(void) | ||
71 | { | ||
72 | return 0; | ||
73 | } | ||
74 | |||
75 | /* | ||
76 | * /proc/cpuinfo system type | ||
77 | * | ||
78 | */ | ||
79 | static const char *systype = "Unknown"; | ||
80 | const char *get_system_type(void) | ||
81 | { | ||
82 | return systype; | ||
83 | } | ||
84 | |||
85 | #define SNI_IDPROM_BASE 0xbff00000 | ||
86 | #define SNI_IDPROM_MEMSIZE (SNI_IDPROM_BASE+0x28) /* Memsize in 16MB quantities */ | ||
87 | #define SNI_IDPROM_BRDTYPE (SNI_IDPROM_BASE+0x29) /* Board Type */ | ||
88 | #define SNI_IDPROM_CPUTYPE (SNI_IDPROM_BASE+0x30) /* CPU Type */ | ||
89 | |||
90 | #define SNI_IDPROM_SIZE 0x1000 | ||
91 | |||
92 | #ifdef DEBUG | ||
93 | static void sni_idprom_dump(void) | ||
94 | { | ||
95 | int i; | ||
96 | |||
97 | prom_printf("SNI IDProm dump (first 128byte):\n"); | ||
98 | for(i=0;i<128;i++) { | ||
99 | if (i%16 == 0) | ||
100 | prom_printf("%04x ", i); | ||
101 | |||
102 | prom_printf("%02x ", *(unsigned char *) (SNI_IDPROM_BASE+i)); | ||
103 | |||
104 | if (i%16 == 15) | ||
105 | prom_printf("\n"); | ||
106 | } | ||
107 | } | ||
108 | #endif | ||
109 | |||
110 | static void sni_mem_init(void ) | ||
111 | { | ||
112 | int i, memsize; | ||
113 | struct membank { | ||
114 | u32 size; | ||
115 | u32 base; | ||
116 | u32 size2; | ||
117 | u32 pad1; | ||
118 | u32 pad2; | ||
119 | } memconf[8]; | ||
120 | |||
121 | /* MemSIZE from prom in 16MByte chunks */ | ||
122 | memsize=*((unsigned char *) SNI_IDPROM_MEMSIZE) * 16; | ||
123 | |||
124 | DBG_PRINTF("IDProm memsize: %lu MByte\n", memsize); | ||
125 | |||
126 | /* get memory bank layout from prom */ | ||
127 | __prom_get_memconf(&memconf); | ||
128 | |||
129 | DBG_PRINTF("prom_get_mem_conf memory configuration:\n"); | ||
130 | for(i=0;i<8 && memconf[i].size;i++) { | ||
131 | prom_printf("Bank%d: %08x @ %08x\n", i, | ||
132 | memconf[i].size, memconf[i].base); | ||
133 | add_memory_region(memconf[i].base, memconf[i].size, BOOT_MEM_RAM); | ||
134 | } | ||
135 | } | ||
136 | |||
137 | void __init prom_init(void) | ||
138 | { | ||
139 | int argc = fw_arg0; | ||
140 | char **argv = (void *)fw_arg1; | ||
141 | unsigned int sni_brd_type = *(unsigned char *) SNI_IDPROM_BRDTYPE; | ||
142 | int i; | ||
143 | |||
144 | DBG_PRINTF("Found SNI brdtype %02x\n", sni_brd_type); | ||
145 | |||
146 | #ifdef DEBUG | ||
147 | sni_idprom_dump(); | ||
148 | #endif | ||
149 | sni_mem_init(); | ||
150 | |||
151 | /* copy prom cmdline parameters to kernel cmdline */ | ||
152 | for (i = 1; i < argc; i++) { | ||
153 | strcat(arcs_cmdline, argv[i]); | ||
154 | if (i < (argc - 1)) | ||
155 | strcat(arcs_cmdline, " "); | ||
156 | } | ||
157 | } | ||
158 | |||
diff --git a/arch/mips/tx4927/common/tx4927_setup.c b/arch/mips/tx4927/common/tx4927_setup.c index 77c3b66fb959..81a5acfe8c42 100644 --- a/arch/mips/tx4927/common/tx4927_setup.c +++ b/arch/mips/tx4927/common/tx4927_setup.c | |||
@@ -64,7 +64,7 @@ static void tx4927_write_buffer_flush(void) | |||
64 | } | 64 | } |
65 | 65 | ||
66 | 66 | ||
67 | void __init plat_setup(void) | 67 | void __init plat_mem_setup(void) |
68 | { | 68 | { |
69 | board_time_init = tx4927_time_init; | 69 | board_time_init = tx4927_time_init; |
70 | board_timer_setup = tx4927_timer_setup; | 70 | board_timer_setup = tx4927_timer_setup; |
diff --git a/arch/mips/tx4938/common/setup.c b/arch/mips/tx4938/common/setup.c index fc992953bf95..ef59a5cffc69 100644 --- a/arch/mips/tx4938/common/setup.c +++ b/arch/mips/tx4938/common/setup.c | |||
@@ -61,7 +61,7 @@ tx4938_write_buffer_flush(void) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | void __init | 63 | void __init |
64 | plat_setup(void) | 64 | plat_mem_setup(void) |
65 | { | 65 | { |
66 | board_time_init = tx4938_time_init; | 66 | board_time_init = tx4938_time_init; |
67 | board_timer_setup = tx4938_timer_setup; | 67 | board_timer_setup = tx4938_timer_setup; |
diff --git a/arch/mips/tx4938/toshiba_rbtx4938/setup.c b/arch/mips/tx4938/toshiba_rbtx4938/setup.c index 9166cd4557eb..96e833cd4c14 100644 --- a/arch/mips/tx4938/toshiba_rbtx4938/setup.c +++ b/arch/mips/tx4938/toshiba_rbtx4938/setup.c | |||
@@ -664,7 +664,10 @@ static struct resource rbtx4938_fpga_resource; | |||
664 | 664 | ||
665 | static char pcode_str[8]; | 665 | static char pcode_str[8]; |
666 | static struct resource tx4938_reg_resource = { | 666 | static struct resource tx4938_reg_resource = { |
667 | pcode_str, TX4938_REG_BASE, TX4938_REG_BASE+TX4938_REG_SIZE, IORESOURCE_MEM | 667 | .start = TX4938_REG_BASE, |
668 | .end = TX4938_REG_BASE + TX4938_REG_SIZE, | ||
669 | .name = pcode_str, | ||
670 | .flags = IORESOURCE_MEM | ||
668 | }; | 671 | }; |
669 | 672 | ||
670 | void __init tx4938_board_setup(void) | 673 | void __init tx4938_board_setup(void) |
diff --git a/arch/mips/vr41xx/Kconfig b/arch/mips/vr41xx/Kconfig index 055a2cdfc841..6046ef23b2bf 100644 --- a/arch/mips/vr41xx/Kconfig +++ b/arch/mips/vr41xx/Kconfig | |||
@@ -4,7 +4,6 @@ config CASIO_E55 | |||
4 | select DMA_NONCOHERENT | 4 | select DMA_NONCOHERENT |
5 | select IRQ_CPU | 5 | select IRQ_CPU |
6 | select ISA | 6 | select ISA |
7 | select SYS_HAS_CPU_VR41XX | ||
8 | select SYS_SUPPORTS_32BIT_KERNEL | 7 | select SYS_SUPPORTS_32BIT_KERNEL |
9 | select SYS_SUPPORTS_LITTLE_ENDIAN | 8 | select SYS_SUPPORTS_LITTLE_ENDIAN |
10 | 9 | ||
@@ -14,18 +13,15 @@ config IBM_WORKPAD | |||
14 | select DMA_NONCOHERENT | 13 | select DMA_NONCOHERENT |
15 | select IRQ_CPU | 14 | select IRQ_CPU |
16 | select ISA | 15 | select ISA |
17 | select SYS_HAS_CPU_VR41XX | ||
18 | select SYS_SUPPORTS_32BIT_KERNEL | 16 | select SYS_SUPPORTS_32BIT_KERNEL |
19 | select SYS_SUPPORTS_LITTLE_ENDIAN | 17 | select SYS_SUPPORTS_LITTLE_ENDIAN |
20 | 18 | ||
21 | config NEC_CMBVR4133 | 19 | config NEC_CMBVR4133 |
22 | bool "Support for NEC CMB-VR4133" | 20 | bool "Support for NEC CMB-VR4133" |
23 | depends on MACH_VR41XX | 21 | depends on MACH_VR41XX |
24 | select CPU_VR41XX | ||
25 | select DMA_NONCOHERENT | 22 | select DMA_NONCOHERENT |
26 | select IRQ_CPU | 23 | select IRQ_CPU |
27 | select HW_HAS_PCI | 24 | select HW_HAS_PCI |
28 | select SYS_HAS_CPU_VR41XX | ||
29 | select SYS_SUPPORTS_32BIT_KERNEL | 25 | select SYS_SUPPORTS_32BIT_KERNEL |
30 | select SYS_SUPPORTS_LITTLE_ENDIAN | 26 | select SYS_SUPPORTS_LITTLE_ENDIAN |
31 | 27 | ||
@@ -41,7 +37,6 @@ config TANBAC_TB022X | |||
41 | select DMA_NONCOHERENT | 37 | select DMA_NONCOHERENT |
42 | select HW_HAS_PCI | 38 | select HW_HAS_PCI |
43 | select IRQ_CPU | 39 | select IRQ_CPU |
44 | select SYS_HAS_CPU_VR41XX | ||
45 | select SYS_SUPPORTS_32BIT_KERNEL | 40 | select SYS_SUPPORTS_32BIT_KERNEL |
46 | select SYS_SUPPORTS_LITTLE_ENDIAN | 41 | select SYS_SUPPORTS_LITTLE_ENDIAN |
47 | help | 42 | help |
@@ -74,7 +69,6 @@ config VICTOR_MPC30X | |||
74 | select DMA_NONCOHERENT | 69 | select DMA_NONCOHERENT |
75 | select HW_HAS_PCI | 70 | select HW_HAS_PCI |
76 | select IRQ_CPU | 71 | select IRQ_CPU |
77 | select SYS_HAS_CPU_VR41XX | ||
78 | select SYS_SUPPORTS_32BIT_KERNEL | 72 | select SYS_SUPPORTS_32BIT_KERNEL |
79 | select SYS_SUPPORTS_LITTLE_ENDIAN | 73 | select SYS_SUPPORTS_LITTLE_ENDIAN |
80 | 74 | ||
@@ -84,7 +78,6 @@ config ZAO_CAPCELLA | |||
84 | select DMA_NONCOHERENT | 78 | select DMA_NONCOHERENT |
85 | select HW_HAS_PCI | 79 | select HW_HAS_PCI |
86 | select IRQ_CPU | 80 | select IRQ_CPU |
87 | select SYS_HAS_CPU_VR41XX | ||
88 | select SYS_SUPPORTS_32BIT_KERNEL | 81 | select SYS_SUPPORTS_32BIT_KERNEL |
89 | select SYS_SUPPORTS_LITTLE_ENDIAN | 82 | select SYS_SUPPORTS_LITTLE_ENDIAN |
90 | 83 | ||
diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 707bd0933eed..915bfa5c0719 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c | |||
@@ -58,7 +58,7 @@ static void __init timer_init(void) | |||
58 | board_timer_setup = setup_timer_irq; | 58 | board_timer_setup = setup_timer_irq; |
59 | } | 59 | } |
60 | 60 | ||
61 | void __init plat_setup(void) | 61 | void __init plat_mem_setup(void) |
62 | { | 62 | { |
63 | vr41xx_calculate_clock_frequency(); | 63 | vr41xx_calculate_clock_frequency(); |
64 | 64 | ||
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 078fb5533541..f70bd090dacd 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -822,6 +822,7 @@ static void __init prom_send_capabilities(void) | |||
822 | /* try calling the ibm,client-architecture-support method */ | 822 | /* try calling the ibm,client-architecture-support method */ |
823 | if (call_prom_ret("call-method", 3, 2, &ret, | 823 | if (call_prom_ret("call-method", 3, 2, &ret, |
824 | ADDR("ibm,client-architecture-support"), | 824 | ADDR("ibm,client-architecture-support"), |
825 | root, | ||
825 | ADDR(ibm_architecture_vec)) == 0) { | 826 | ADDR(ibm_architecture_vec)) == 0) { |
826 | /* the call exists... */ | 827 | /* the call exists... */ |
827 | if (ret) | 828 | if (ret) |
@@ -1622,6 +1623,15 @@ static int __init prom_find_machine_type(void) | |||
1622 | if (strstr(p, RELOC("Power Macintosh")) || | 1623 | if (strstr(p, RELOC("Power Macintosh")) || |
1623 | strstr(p, RELOC("MacRISC"))) | 1624 | strstr(p, RELOC("MacRISC"))) |
1624 | return PLATFORM_POWERMAC; | 1625 | return PLATFORM_POWERMAC; |
1626 | #ifdef CONFIG_PPC64 | ||
1627 | /* We must make sure we don't detect the IBM Cell | ||
1628 | * blades as pSeries due to some firmware issues, | ||
1629 | * so we do it here. | ||
1630 | */ | ||
1631 | if (strstr(p, RELOC("IBM,CBEA")) || | ||
1632 | strstr(p, RELOC("IBM,CPBW-1.0"))) | ||
1633 | return PLATFORM_GENERIC; | ||
1634 | #endif /* CONFIG_PPC64 */ | ||
1625 | i += sl + 1; | 1635 | i += sl + 1; |
1626 | } | 1636 | } |
1627 | } | 1637 | } |
@@ -1636,7 +1646,7 @@ static int __init prom_find_machine_type(void) | |||
1636 | compat, sizeof(compat)-1); | 1646 | compat, sizeof(compat)-1); |
1637 | if (len <= 0) | 1647 | if (len <= 0) |
1638 | return PLATFORM_GENERIC; | 1648 | return PLATFORM_GENERIC; |
1639 | if (strncmp(compat, RELOC("chrp"), 4)) | 1649 | if (strcmp(compat, RELOC("chrp"))) |
1640 | return PLATFORM_GENERIC; | 1650 | return PLATFORM_GENERIC; |
1641 | 1651 | ||
1642 | /* Default to pSeries. We need to know if we are running LPAR */ | 1652 | /* Default to pSeries. We need to know if we are running LPAR */ |
@@ -2057,10 +2067,45 @@ static void __init flatten_device_tree(void) | |||
2057 | 2067 | ||
2058 | } | 2068 | } |
2059 | 2069 | ||
2060 | 2070 | #ifdef CONFIG_PPC_MAPLE | |
2061 | static void __init fixup_device_tree(void) | 2071 | /* PIBS Version 1.05.0000 04/26/2005 has an incorrect /ht/isa/ranges property. |
2072 | * The values are bad, and it doesn't even have the right number of cells. */ | ||
2073 | static void __init fixup_device_tree_maple(void) | ||
2062 | { | 2074 | { |
2075 | phandle isa; | ||
2076 | u32 isa_ranges[6]; | ||
2077 | |||
2078 | isa = call_prom("finddevice", 1, 1, ADDR("/ht@0/isa@4")); | ||
2079 | if (!PHANDLE_VALID(isa)) | ||
2080 | return; | ||
2081 | |||
2082 | if (prom_getprop(isa, "ranges", isa_ranges, sizeof(isa_ranges)) | ||
2083 | == PROM_ERROR) | ||
2084 | return; | ||
2085 | |||
2086 | if (isa_ranges[0] != 0x1 || | ||
2087 | isa_ranges[1] != 0xf4000000 || | ||
2088 | isa_ranges[2] != 0x00010000) | ||
2089 | return; | ||
2090 | |||
2091 | prom_printf("fixing up bogus ISA range on Maple...\n"); | ||
2092 | |||
2093 | isa_ranges[0] = 0x1; | ||
2094 | isa_ranges[1] = 0x0; | ||
2095 | isa_ranges[2] = 0x01002000; /* IO space; PCI device = 4 */ | ||
2096 | isa_ranges[3] = 0x0; | ||
2097 | isa_ranges[4] = 0x0; | ||
2098 | isa_ranges[5] = 0x00010000; | ||
2099 | prom_setprop(isa, "/ht@0/isa@4", "ranges", | ||
2100 | isa_ranges, sizeof(isa_ranges)); | ||
2101 | } | ||
2102 | #else | ||
2103 | #define fixup_device_tree_maple() | ||
2104 | #endif | ||
2105 | |||
2063 | #if defined(CONFIG_PPC64) && defined(CONFIG_PPC_PMAC) | 2106 | #if defined(CONFIG_PPC64) && defined(CONFIG_PPC_PMAC) |
2107 | static void __init fixup_device_tree_pmac(void) | ||
2108 | { | ||
2064 | phandle u3, i2c, mpic; | 2109 | phandle u3, i2c, mpic; |
2065 | u32 u3_rev; | 2110 | u32 u3_rev; |
2066 | u32 interrupts[2]; | 2111 | u32 interrupts[2]; |
@@ -2097,9 +2142,16 @@ static void __init fixup_device_tree(void) | |||
2097 | parent = (u32)mpic; | 2142 | parent = (u32)mpic; |
2098 | prom_setprop(i2c, "/u3@0,f8000000/i2c@f8001000", "interrupt-parent", | 2143 | prom_setprop(i2c, "/u3@0,f8000000/i2c@f8001000", "interrupt-parent", |
2099 | &parent, sizeof(parent)); | 2144 | &parent, sizeof(parent)); |
2100 | #endif | ||
2101 | } | 2145 | } |
2146 | #else | ||
2147 | #define fixup_device_tree_pmac() | ||
2148 | #endif | ||
2102 | 2149 | ||
2150 | static void __init fixup_device_tree(void) | ||
2151 | { | ||
2152 | fixup_device_tree_maple(); | ||
2153 | fixup_device_tree_pmac(); | ||
2154 | } | ||
2103 | 2155 | ||
2104 | static void __init prom_find_boot_cpu(void) | 2156 | static void __init prom_find_boot_cpu(void) |
2105 | { | 2157 | { |
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index 01e3c08cb550..8fdeca2d4597 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel/signal_32.c | |||
@@ -803,10 +803,13 @@ static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int | |||
803 | if (__get_user(cmcp, &ucp->uc_regs)) | 803 | if (__get_user(cmcp, &ucp->uc_regs)) |
804 | return -EFAULT; | 804 | return -EFAULT; |
805 | mcp = (struct mcontext __user *)(u64)cmcp; | 805 | mcp = (struct mcontext __user *)(u64)cmcp; |
806 | /* no need to check access_ok(mcp), since mcp < 4GB */ | ||
806 | } | 807 | } |
807 | #else | 808 | #else |
808 | if (__get_user(mcp, &ucp->uc_regs)) | 809 | if (__get_user(mcp, &ucp->uc_regs)) |
809 | return -EFAULT; | 810 | return -EFAULT; |
811 | if (!access_ok(VERIFY_READ, mcp, sizeof(*mcp))) | ||
812 | return -EFAULT; | ||
810 | #endif | 813 | #endif |
811 | restore_sigmask(&set); | 814 | restore_sigmask(&set); |
812 | if (restore_user_regs(regs, mcp, sig)) | 815 | if (restore_user_regs(regs, mcp, sig)) |
@@ -908,13 +911,14 @@ int sys_debug_setcontext(struct ucontext __user *ctx, | |||
908 | { | 911 | { |
909 | struct sig_dbg_op op; | 912 | struct sig_dbg_op op; |
910 | int i; | 913 | int i; |
914 | unsigned char tmp; | ||
911 | unsigned long new_msr = regs->msr; | 915 | unsigned long new_msr = regs->msr; |
912 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) | 916 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) |
913 | unsigned long new_dbcr0 = current->thread.dbcr0; | 917 | unsigned long new_dbcr0 = current->thread.dbcr0; |
914 | #endif | 918 | #endif |
915 | 919 | ||
916 | for (i=0; i<ndbg; i++) { | 920 | for (i=0; i<ndbg; i++) { |
917 | if (__copy_from_user(&op, dbg, sizeof(op))) | 921 | if (copy_from_user(&op, dbg + i, sizeof(op))) |
918 | return -EFAULT; | 922 | return -EFAULT; |
919 | switch (op.dbg_type) { | 923 | switch (op.dbg_type) { |
920 | case SIG_DBG_SINGLE_STEPPING: | 924 | case SIG_DBG_SINGLE_STEPPING: |
@@ -959,6 +963,11 @@ int sys_debug_setcontext(struct ucontext __user *ctx, | |||
959 | current->thread.dbcr0 = new_dbcr0; | 963 | current->thread.dbcr0 = new_dbcr0; |
960 | #endif | 964 | #endif |
961 | 965 | ||
966 | if (!access_ok(VERIFY_READ, ctx, sizeof(*ctx)) | ||
967 | || __get_user(tmp, (u8 __user *) ctx) | ||
968 | || __get_user(tmp, (u8 __user *) (ctx + 1) - 1)) | ||
969 | return -EFAULT; | ||
970 | |||
962 | /* | 971 | /* |
963 | * If we get a fault copying the context into the kernel's | 972 | * If we get a fault copying the context into the kernel's |
964 | * image of the user's registers, we can't just return -EFAULT | 973 | * image of the user's registers, we can't just return -EFAULT |
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c index 27f65b95184d..c2db642f4cdd 100644 --- a/arch/powerpc/kernel/signal_64.c +++ b/arch/powerpc/kernel/signal_64.c | |||
@@ -182,6 +182,8 @@ static long restore_sigcontext(struct pt_regs *regs, sigset_t *set, int sig, | |||
182 | err |= __get_user(msr, &sc->gp_regs[PT_MSR]); | 182 | err |= __get_user(msr, &sc->gp_regs[PT_MSR]); |
183 | if (err) | 183 | if (err) |
184 | return err; | 184 | return err; |
185 | if (v_regs && !access_ok(VERIFY_READ, v_regs, 34 * sizeof(vector128))) | ||
186 | return -EFAULT; | ||
185 | /* Copy 33 vec registers (vr0..31 and vscr) from the stack */ | 187 | /* Copy 33 vec registers (vr0..31 and vscr) from the stack */ |
186 | if (v_regs != 0 && (msr & MSR_VEC) != 0) | 188 | if (v_regs != 0 && (msr & MSR_VEC) != 0) |
187 | err |= __copy_from_user(current->thread.vr, v_regs, | 189 | err |= __copy_from_user(current->thread.vr, v_regs, |
diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S index cf56a1d499ff..26ed1f5ef16e 100644 --- a/arch/powerpc/kernel/systbl.S +++ b/arch/powerpc/kernel/systbl.S | |||
@@ -338,6 +338,8 @@ SYSCALL(symlinkat) | |||
338 | SYSCALL(readlinkat) | 338 | SYSCALL(readlinkat) |
339 | SYSCALL(fchmodat) | 339 | SYSCALL(fchmodat) |
340 | SYSCALL(faccessat) | 340 | SYSCALL(faccessat) |
341 | COMPAT_SYS(get_robust_list) | ||
342 | COMPAT_SYS(set_robust_list) | ||
341 | 343 | ||
342 | /* | 344 | /* |
343 | * please add new calls to arch/powerpc/platforms/cell/spu_callbacks.c | 345 | * please add new calls to arch/powerpc/platforms/cell/spu_callbacks.c |
diff --git a/arch/powerpc/mm/hash_native_64.c b/arch/powerpc/mm/hash_native_64.c index 33654d1b1b43..994856e55b7c 100644 --- a/arch/powerpc/mm/hash_native_64.c +++ b/arch/powerpc/mm/hash_native_64.c | |||
@@ -52,7 +52,7 @@ static inline void __tlbie(unsigned long va, unsigned int psize) | |||
52 | default: | 52 | default: |
53 | penc = mmu_psize_defs[psize].penc; | 53 | penc = mmu_psize_defs[psize].penc; |
54 | va &= ~((1ul << mmu_psize_defs[psize].shift) - 1); | 54 | va &= ~((1ul << mmu_psize_defs[psize].shift) - 1); |
55 | va |= (0x7f >> (8 - penc)) << 12; | 55 | va |= penc << 12; |
56 | asm volatile("tlbie %0,1" : : "r" (va) : "memory"); | 56 | asm volatile("tlbie %0,1" : : "r" (va) : "memory"); |
57 | break; | 57 | break; |
58 | } | 58 | } |
@@ -74,7 +74,7 @@ static inline void __tlbiel(unsigned long va, unsigned int psize) | |||
74 | default: | 74 | default: |
75 | penc = mmu_psize_defs[psize].penc; | 75 | penc = mmu_psize_defs[psize].penc; |
76 | va &= ~((1ul << mmu_psize_defs[psize].shift) - 1); | 76 | va &= ~((1ul << mmu_psize_defs[psize].shift) - 1); |
77 | va |= (0x7f >> (8 - penc)) << 12; | 77 | va |= penc << 12; |
78 | asm volatile(".long 0x7c000224 | (%0 << 11) | (1 << 21)" | 78 | asm volatile(".long 0x7c000224 | (%0 << 11) | (1 << 21)" |
79 | : : "r"(va) : "memory"); | 79 | : : "r"(va) : "memory"); |
80 | break; | 80 | break; |
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 6574b22b3cf3..fd3e5609e3e0 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -125,14 +125,13 @@ static void __init cell_init_early(void) | |||
125 | 125 | ||
126 | static int __init cell_probe(void) | 126 | static int __init cell_probe(void) |
127 | { | 127 | { |
128 | /* XXX This is temporary, the Cell maintainer will come up with | ||
129 | * more appropriate detection logic | ||
130 | */ | ||
131 | unsigned long root = of_get_flat_dt_root(); | 128 | unsigned long root = of_get_flat_dt_root(); |
132 | if (!of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) | ||
133 | return 0; | ||
134 | 129 | ||
135 | return 1; | 130 | if (of_flat_dt_is_compatible(root, "IBM,CBEA") || |
131 | of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) | ||
132 | return 1; | ||
133 | |||
134 | return 0; | ||
136 | } | 135 | } |
137 | 136 | ||
138 | /* | 137 | /* |
diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c index 95b36430aa0f..b47fcc5ddb78 100644 --- a/arch/powerpc/platforms/cell/spu_callbacks.c +++ b/arch/powerpc/platforms/cell/spu_callbacks.c | |||
@@ -258,6 +258,7 @@ void *spu_syscall_table[] = { | |||
258 | [__NR_futex] sys_futex, | 258 | [__NR_futex] sys_futex, |
259 | [__NR_sched_setaffinity] sys_sched_setaffinity, | 259 | [__NR_sched_setaffinity] sys_sched_setaffinity, |
260 | [__NR_sched_getaffinity] sys_sched_getaffinity, | 260 | [__NR_sched_getaffinity] sys_sched_getaffinity, |
261 | [224] sys_ni_syscall, | ||
261 | [__NR_tuxcall] sys_ni_syscall, | 262 | [__NR_tuxcall] sys_ni_syscall, |
262 | [226] sys_ni_syscall, | 263 | [226] sys_ni_syscall, |
263 | [__NR_io_setup] sys_io_setup, | 264 | [__NR_io_setup] sys_io_setup, |
@@ -332,19 +333,21 @@ void *spu_syscall_table[] = { | |||
332 | [__NR_readlinkat] sys_readlinkat, | 333 | [__NR_readlinkat] sys_readlinkat, |
333 | [__NR_fchmodat] sys_fchmodat, | 334 | [__NR_fchmodat] sys_fchmodat, |
334 | [__NR_faccessat] sys_faccessat, | 335 | [__NR_faccessat] sys_faccessat, |
336 | [__NR_get_robust_list] sys_get_robust_list, | ||
337 | [__NR_set_robust_list] sys_set_robust_list, | ||
335 | }; | 338 | }; |
336 | 339 | ||
337 | long spu_sys_callback(struct spu_syscall_block *s) | 340 | long spu_sys_callback(struct spu_syscall_block *s) |
338 | { | 341 | { |
339 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); | 342 | long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); |
340 | 343 | ||
341 | syscall = spu_syscall_table[s->nr_ret]; | ||
342 | |||
343 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { | 344 | if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { |
344 | pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); | 345 | pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); |
345 | return -ENOSYS; | 346 | return -ENOSYS; |
346 | } | 347 | } |
347 | 348 | ||
349 | syscall = spu_syscall_table[s->nr_ret]; | ||
350 | |||
348 | #ifdef DEBUG | 351 | #ifdef DEBUG |
349 | print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall); | 352 | print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall); |
350 | printk("syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n", | 353 | printk("syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n", |
diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index df2343e1956b..c896ce83d412 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c | |||
@@ -1157,6 +1157,7 @@ EXPORT_SYMBOL_GPL(pmac_i2c_xfer); | |||
1157 | /* some quirks for platform function decoding */ | 1157 | /* some quirks for platform function decoding */ |
1158 | enum { | 1158 | enum { |
1159 | pmac_i2c_quirk_invmask = 0x00000001u, | 1159 | pmac_i2c_quirk_invmask = 0x00000001u, |
1160 | pmac_i2c_quirk_skip = 0x00000002u, | ||
1160 | }; | 1161 | }; |
1161 | 1162 | ||
1162 | static void pmac_i2c_devscan(void (*callback)(struct device_node *dev, | 1163 | static void pmac_i2c_devscan(void (*callback)(struct device_node *dev, |
@@ -1172,6 +1173,15 @@ static void pmac_i2c_devscan(void (*callback)(struct device_node *dev, | |||
1172 | /* XXX Study device-tree's & apple drivers are get the quirks | 1173 | /* XXX Study device-tree's & apple drivers are get the quirks |
1173 | * right ! | 1174 | * right ! |
1174 | */ | 1175 | */ |
1176 | /* Workaround: It seems that running the clockspreading | ||
1177 | * properties on the eMac will cause lockups during boot. | ||
1178 | * The machine seems to work fine without that. So for now, | ||
1179 | * let's make sure i2c-hwclock doesn't match about "imic" | ||
1180 | * clocks and we'll figure out if we really need to do | ||
1181 | * something special about those later. | ||
1182 | */ | ||
1183 | { "i2c-hwclock", "imic5002", pmac_i2c_quirk_skip }, | ||
1184 | { "i2c-hwclock", "imic5003", pmac_i2c_quirk_skip }, | ||
1175 | { "i2c-hwclock", NULL, pmac_i2c_quirk_invmask }, | 1185 | { "i2c-hwclock", NULL, pmac_i2c_quirk_invmask }, |
1176 | { "i2c-cpu-voltage", NULL, 0}, | 1186 | { "i2c-cpu-voltage", NULL, 0}, |
1177 | { "temp-monitor", NULL, 0 }, | 1187 | { "temp-monitor", NULL, 0 }, |
@@ -1198,6 +1208,8 @@ static void pmac_i2c_devscan(void (*callback)(struct device_node *dev, | |||
1198 | if (p->compatible && | 1208 | if (p->compatible && |
1199 | !device_is_compatible(np, p->compatible)) | 1209 | !device_is_compatible(np, p->compatible)) |
1200 | continue; | 1210 | continue; |
1211 | if (p->quirks & pmac_i2c_quirk_skip) | ||
1212 | break; | ||
1201 | callback(np, p->quirks); | 1213 | callback(np, p->quirks); |
1202 | break; | 1214 | break; |
1203 | } | 1215 | } |
diff --git a/arch/powerpc/platforms/powermac/pfunc_core.c b/arch/powerpc/platforms/powermac/pfunc_core.c index 4baa75b1d36f..f08173b0f065 100644 --- a/arch/powerpc/platforms/powermac/pfunc_core.c +++ b/arch/powerpc/platforms/powermac/pfunc_core.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/spinlock.h> | 12 | #include <linux/spinlock.h> |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/mutex.h> | ||
14 | 15 | ||
15 | #include <asm/semaphore.h> | 16 | #include <asm/semaphore.h> |
16 | #include <asm/prom.h> | 17 | #include <asm/prom.h> |
@@ -546,6 +547,7 @@ struct pmf_device { | |||
546 | 547 | ||
547 | static LIST_HEAD(pmf_devices); | 548 | static LIST_HEAD(pmf_devices); |
548 | static spinlock_t pmf_lock = SPIN_LOCK_UNLOCKED; | 549 | static spinlock_t pmf_lock = SPIN_LOCK_UNLOCKED; |
550 | static DEFINE_MUTEX(pmf_irq_mutex); | ||
549 | 551 | ||
550 | static void pmf_release_device(struct kref *kref) | 552 | static void pmf_release_device(struct kref *kref) |
551 | { | 553 | { |
@@ -864,15 +866,17 @@ int pmf_register_irq_client(struct device_node *target, | |||
864 | 866 | ||
865 | spin_lock_irqsave(&pmf_lock, flags); | 867 | spin_lock_irqsave(&pmf_lock, flags); |
866 | func = __pmf_find_function(target, name, PMF_FLAGS_INT_GEN); | 868 | func = __pmf_find_function(target, name, PMF_FLAGS_INT_GEN); |
867 | if (func == NULL) { | 869 | if (func) |
868 | spin_unlock_irqrestore(&pmf_lock, flags); | 870 | func = pmf_get_function(func); |
871 | spin_unlock_irqrestore(&pmf_lock, flags); | ||
872 | if (func == NULL) | ||
869 | return -ENODEV; | 873 | return -ENODEV; |
870 | } | 874 | mutex_lock(&pmf_irq_mutex); |
871 | if (list_empty(&func->irq_clients)) | 875 | if (list_empty(&func->irq_clients)) |
872 | func->dev->handlers->irq_enable(func); | 876 | func->dev->handlers->irq_enable(func); |
873 | list_add(&client->link, &func->irq_clients); | 877 | list_add(&client->link, &func->irq_clients); |
874 | client->func = func; | 878 | client->func = func; |
875 | spin_unlock_irqrestore(&pmf_lock, flags); | 879 | mutex_unlock(&pmf_irq_mutex); |
876 | 880 | ||
877 | return 0; | 881 | return 0; |
878 | } | 882 | } |
@@ -881,16 +885,16 @@ EXPORT_SYMBOL_GPL(pmf_register_irq_client); | |||
881 | void pmf_unregister_irq_client(struct pmf_irq_client *client) | 885 | void pmf_unregister_irq_client(struct pmf_irq_client *client) |
882 | { | 886 | { |
883 | struct pmf_function *func = client->func; | 887 | struct pmf_function *func = client->func; |
884 | unsigned long flags; | ||
885 | 888 | ||
886 | BUG_ON(func == NULL); | 889 | BUG_ON(func == NULL); |
887 | 890 | ||
888 | spin_lock_irqsave(&pmf_lock, flags); | 891 | mutex_lock(&pmf_irq_mutex); |
889 | client->func = NULL; | 892 | client->func = NULL; |
890 | list_del(&client->link); | 893 | list_del(&client->link); |
891 | if (list_empty(&func->irq_clients)) | 894 | if (list_empty(&func->irq_clients)) |
892 | func->dev->handlers->irq_disable(func); | 895 | func->dev->handlers->irq_disable(func); |
893 | spin_unlock_irqrestore(&pmf_lock, flags); | 896 | mutex_unlock(&pmf_irq_mutex); |
897 | pmf_put_function(func); | ||
894 | } | 898 | } |
895 | EXPORT_SYMBOL_GPL(pmf_unregister_irq_client); | 899 | EXPORT_SYMBOL_GPL(pmf_unregister_irq_client); |
896 | 900 | ||
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 4d15e396655c..b9200fb07815 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -463,11 +463,23 @@ static int pmac_pm_finish(suspend_state_t state) | |||
463 | return 0; | 463 | return 0; |
464 | } | 464 | } |
465 | 465 | ||
466 | static int pmac_pm_valid(suspend_state_t state) | ||
467 | { | ||
468 | switch (state) { | ||
469 | case PM_SUSPEND_DISK: | ||
470 | return 1; | ||
471 | /* can't do any other states via generic mechanism yet */ | ||
472 | default: | ||
473 | return 0; | ||
474 | } | ||
475 | } | ||
476 | |||
466 | static struct pm_ops pmac_pm_ops = { | 477 | static struct pm_ops pmac_pm_ops = { |
467 | .pm_disk_mode = PM_DISK_SHUTDOWN, | 478 | .pm_disk_mode = PM_DISK_SHUTDOWN, |
468 | .prepare = pmac_pm_prepare, | 479 | .prepare = pmac_pm_prepare, |
469 | .enter = pmac_pm_enter, | 480 | .enter = pmac_pm_enter, |
470 | .finish = pmac_pm_finish, | 481 | .finish = pmac_pm_finish, |
482 | .valid = pmac_pm_valid, | ||
471 | }; | 483 | }; |
472 | 484 | ||
473 | #endif /* CONFIG_SOFTWARE_SUSPEND */ | 485 | #endif /* CONFIG_SOFTWARE_SUSPEND */ |
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 5eb55ef1c91c..3ba87835757e 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -255,7 +255,7 @@ static int __init pSeries_init_panel(void) | |||
255 | { | 255 | { |
256 | /* Manually leave the kernel version on the panel. */ | 256 | /* Manually leave the kernel version on the panel. */ |
257 | ppc_md.progress("Linux ppc64\n", 0); | 257 | ppc_md.progress("Linux ppc64\n", 0); |
258 | ppc_md.progress(system_utsname.version, 0); | 258 | ppc_md.progress(system_utsname.release, 0); |
259 | 259 | ||
260 | return 0; | 260 | return 0; |
261 | } | 261 | } |
@@ -389,6 +389,7 @@ static int __init pSeries_probe_hypertas(unsigned long node, | |||
389 | 389 | ||
390 | static int __init pSeries_probe(void) | 390 | static int __init pSeries_probe(void) |
391 | { | 391 | { |
392 | unsigned long root = of_get_flat_dt_root(); | ||
392 | char *dtype = of_get_flat_dt_prop(of_get_flat_dt_root(), | 393 | char *dtype = of_get_flat_dt_prop(of_get_flat_dt_root(), |
393 | "device_type", NULL); | 394 | "device_type", NULL); |
394 | if (dtype == NULL) | 395 | if (dtype == NULL) |
@@ -396,6 +397,13 @@ static int __init pSeries_probe(void) | |||
396 | if (strcmp(dtype, "chrp")) | 397 | if (strcmp(dtype, "chrp")) |
397 | return 0; | 398 | return 0; |
398 | 399 | ||
400 | /* Cell blades firmware claims to be chrp while it's not. Until this | ||
401 | * is fixed, we need to avoid those here. | ||
402 | */ | ||
403 | if (of_flat_dt_is_compatible(root, "IBM,CPBW-1.0") || | ||
404 | of_flat_dt_is_compatible(root, "IBM,CBEA")) | ||
405 | return 0; | ||
406 | |||
399 | DBG("pSeries detected, looking for LPAR capability...\n"); | 407 | DBG("pSeries detected, looking for LPAR capability...\n"); |
400 | 408 | ||
401 | /* Now try to figure out if we are running on LPAR */ | 409 | /* Now try to figure out if we are running on LPAR */ |
diff --git a/arch/ppc/kernel/asm-offsets.c b/arch/ppc/kernel/asm-offsets.c index cc7c4aea9397..2f5c5e157617 100644 --- a/arch/ppc/kernel/asm-offsets.c +++ b/arch/ppc/kernel/asm-offsets.c | |||
@@ -134,7 +134,7 @@ main(void) | |||
134 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); | 134 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); |
135 | DEFINE(TI_EXECDOMAIN, offsetof(struct thread_info, exec_domain)); | 135 | DEFINE(TI_EXECDOMAIN, offsetof(struct thread_info, exec_domain)); |
136 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); | 136 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); |
137 | DEFINE(TI_LOCAL_FLAGS, offsetof(struct thread_info, flags)); | 137 | DEFINE(TI_LOCAL_FLAGS, offsetof(struct thread_info, local_flags)); |
138 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); | 138 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); |
139 | DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); | 139 | DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); |
140 | 140 | ||
diff --git a/arch/ppc/kernel/head_8xx.S b/arch/ppc/kernel/head_8xx.S index ec53c7d65f2b..7a2f20583be4 100644 --- a/arch/ppc/kernel/head_8xx.S +++ b/arch/ppc/kernel/head_8xx.S | |||
@@ -355,9 +355,7 @@ InstructionTLBMiss: | |||
355 | 355 | ||
356 | . = 0x1200 | 356 | . = 0x1200 |
357 | DataStoreTLBMiss: | 357 | DataStoreTLBMiss: |
358 | #ifdef CONFIG_8xx_CPU6 | ||
359 | stw r3, 8(r0) | 358 | stw r3, 8(r0) |
360 | #endif | ||
361 | DO_8xx_CPU6(0x3f80, r3) | 359 | DO_8xx_CPU6(0x3f80, r3) |
362 | mtspr SPRN_M_TW, r10 /* Save a couple of working registers */ | 360 | mtspr SPRN_M_TW, r10 /* Save a couple of working registers */ |
363 | mfcr r10 | 361 | mfcr r10 |
@@ -417,9 +415,7 @@ DataStoreTLBMiss: | |||
417 | lwz r11, 0(r0) | 415 | lwz r11, 0(r0) |
418 | mtcr r11 | 416 | mtcr r11 |
419 | lwz r11, 4(r0) | 417 | lwz r11, 4(r0) |
420 | #ifdef CONFIG_8xx_CPU6 | ||
421 | lwz r3, 8(r0) | 418 | lwz r3, 8(r0) |
422 | #endif | ||
423 | rfi | 419 | rfi |
424 | 420 | ||
425 | /* This is an instruction TLB error on the MPC8xx. This could be due | 421 | /* This is an instruction TLB error on the MPC8xx. This could be due |
diff --git a/arch/ppc/platforms/mpc8272ads_setup.c b/arch/ppc/platforms/mpc8272ads_setup.c index e62b75707f7a..abb7154de2c7 100644 --- a/arch/ppc/platforms/mpc8272ads_setup.c +++ b/arch/ppc/platforms/mpc8272ads_setup.c | |||
@@ -279,11 +279,11 @@ static int mpc8272ads_platform_notify(struct device *dev) | |||
279 | static const struct platform_notify_dev_map dev_map[] = { | 279 | static const struct platform_notify_dev_map dev_map[] = { |
280 | { | 280 | { |
281 | .bus_id = "fsl-cpm-fcc", | 281 | .bus_id = "fsl-cpm-fcc", |
282 | .rtn = mpc8272ads_fixup_enet_pdata | 282 | .rtn = mpc8272ads_fixup_enet_pdata, |
283 | }, | 283 | }, |
284 | { | 284 | { |
285 | .bus_id = "fsl-cpm-scc:uart", | 285 | .bus_id = "fsl-cpm-scc:uart", |
286 | .rtn = mpc | 286 | .rtn = mpc8272ads_fixup_uart_pdata, |
287 | }, | 287 | }, |
288 | { | 288 | { |
289 | .bus_id = NULL | 289 | .bus_id = NULL |
@@ -335,15 +335,15 @@ struct platform_device* early_uart_get_pdev(int index) | |||
335 | struct platform_device* pdev = NULL; | 335 | struct platform_device* pdev = NULL; |
336 | if(index) { /*assume SCC4 here*/ | 336 | if(index) { /*assume SCC4 here*/ |
337 | pdev = &ppc_sys_platform_devices[MPC82xx_CPM_SCC4]; | 337 | pdev = &ppc_sys_platform_devices[MPC82xx_CPM_SCC4]; |
338 | pinfo = &mpc8272<F12>_uart_pdata[1]; | 338 | pinfo = &mpc8272_uart_pdata[fsid_scc4_uart]; |
339 | } else { /*over SCC1*/ | 339 | } else { /*over SCC1*/ |
340 | pdev = &ppc_sys_platform_devices[MPC82xx_CPM_SCC1]; | 340 | pdev = &ppc_sys_platform_devices[MPC82xx_CPM_SCC1]; |
341 | pinfo = &mpc8272_uart_pdata[0]; | 341 | pinfo = &mpc8272_uart_pdata[fsid_scc1_uart]; |
342 | } | 342 | } |
343 | 343 | ||
344 | pinfo->uart_clk = bd->bi_intfreq; | 344 | pinfo->uart_clk = bd->bi_intfreq; |
345 | pdev->dev.platform_data = pinfo; | 345 | pdev->dev.platform_data = pinfo; |
346 | ppc_sys_fixup_mem_resource(pdev, IMAP_ADDR); | 346 | ppc_sys_fixup_mem_resource(pdev, CPM_MAP_ADDR); |
347 | return NULL; | 347 | return NULL; |
348 | } | 348 | } |
349 | 349 | ||
diff --git a/arch/ppc/syslib/pq2_devices.c b/arch/ppc/syslib/pq2_devices.c index 0636aed7b827..8692d00c08c4 100644 --- a/arch/ppc/syslib/pq2_devices.c +++ b/arch/ppc/syslib/pq2_devices.c | |||
@@ -121,13 +121,13 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
121 | .num_resources = 3, | 121 | .num_resources = 3, |
122 | .resource = (struct resource[]) { | 122 | .resource = (struct resource[]) { |
123 | { | 123 | { |
124 | .name = "scc_mem", | 124 | .name = "regs", |
125 | .start = 0x11A00, | 125 | .start = 0x11A00, |
126 | .end = 0x11A1F, | 126 | .end = 0x11A1F, |
127 | .flags = IORESOURCE_MEM, | 127 | .flags = IORESOURCE_MEM, |
128 | }, | 128 | }, |
129 | { | 129 | { |
130 | .name = "scc_pram", | 130 | .name = "pram", |
131 | .start = 0x8000, | 131 | .start = 0x8000, |
132 | .end = 0x80ff, | 132 | .end = 0x80ff, |
133 | .flags = IORESOURCE_MEM, | 133 | .flags = IORESOURCE_MEM, |
@@ -145,13 +145,13 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
145 | .num_resources = 3, | 145 | .num_resources = 3, |
146 | .resource = (struct resource[]) { | 146 | .resource = (struct resource[]) { |
147 | { | 147 | { |
148 | .name = "scc_mem", | 148 | .name = "regs", |
149 | .start = 0x11A20, | 149 | .start = 0x11A20, |
150 | .end = 0x11A3F, | 150 | .end = 0x11A3F, |
151 | .flags = IORESOURCE_MEM, | 151 | .flags = IORESOURCE_MEM, |
152 | }, | 152 | }, |
153 | { | 153 | { |
154 | .name = "scc_pram", | 154 | .name = "pram", |
155 | .start = 0x8100, | 155 | .start = 0x8100, |
156 | .end = 0x81ff, | 156 | .end = 0x81ff, |
157 | .flags = IORESOURCE_MEM, | 157 | .flags = IORESOURCE_MEM, |
@@ -169,13 +169,13 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
169 | .num_resources = 3, | 169 | .num_resources = 3, |
170 | .resource = (struct resource[]) { | 170 | .resource = (struct resource[]) { |
171 | { | 171 | { |
172 | .name = "scc_mem", | 172 | .name = "regs", |
173 | .start = 0x11A40, | 173 | .start = 0x11A40, |
174 | .end = 0x11A5F, | 174 | .end = 0x11A5F, |
175 | .flags = IORESOURCE_MEM, | 175 | .flags = IORESOURCE_MEM, |
176 | }, | 176 | }, |
177 | { | 177 | { |
178 | .name = "scc_pram", | 178 | .name = "pram", |
179 | .start = 0x8200, | 179 | .start = 0x8200, |
180 | .end = 0x82ff, | 180 | .end = 0x82ff, |
181 | .flags = IORESOURCE_MEM, | 181 | .flags = IORESOURCE_MEM, |
@@ -193,13 +193,13 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
193 | .num_resources = 3, | 193 | .num_resources = 3, |
194 | .resource = (struct resource[]) { | 194 | .resource = (struct resource[]) { |
195 | { | 195 | { |
196 | .name = "scc_mem", | 196 | .name = "regs", |
197 | .start = 0x11A60, | 197 | .start = 0x11A60, |
198 | .end = 0x11A7F, | 198 | .end = 0x11A7F, |
199 | .flags = IORESOURCE_MEM, | 199 | .flags = IORESOURCE_MEM, |
200 | }, | 200 | }, |
201 | { | 201 | { |
202 | .name = "scc_pram", | 202 | .name = "pram", |
203 | .start = 0x8300, | 203 | .start = 0x8300, |
204 | .end = 0x83ff, | 204 | .end = 0x83ff, |
205 | .flags = IORESOURCE_MEM, | 205 | .flags = IORESOURCE_MEM, |
diff --git a/arch/ppc/syslib/pq2_sys.c b/arch/ppc/syslib/pq2_sys.c index 433b0fa203e1..fee8948162b9 100644 --- a/arch/ppc/syslib/pq2_sys.c +++ b/arch/ppc/syslib/pq2_sys.c | |||
@@ -139,13 +139,13 @@ struct ppc_sys_spec ppc_sys_specs[] = { | |||
139 | .ppc_sys_name = "8272", | 139 | .ppc_sys_name = "8272", |
140 | .mask = 0x0000ff00, | 140 | .mask = 0x0000ff00, |
141 | .value = 0x00000c00, | 141 | .value = 0x00000c00, |
142 | .num_devices = 11, | 142 | .num_devices = 12, |
143 | .device_list = (enum ppc_sys_devices[]) | 143 | .device_list = (enum ppc_sys_devices[]) |
144 | { | 144 | { |
145 | MPC82xx_CPM_FCC1, MPC82xx_CPM_FCC2, MPC82xx_CPM_SCC1, | 145 | MPC82xx_CPM_FCC1, MPC82xx_CPM_FCC2, MPC82xx_CPM_SCC1, |
146 | MPC82xx_CPM_SCC2, MPC82xx_CPM_SCC3, MPC82xx_CPM_SMC1, | 146 | MPC82xx_CPM_SCC2, MPC82xx_CPM_SCC3, MPC82xx_CPM_SCC4, |
147 | MPC82xx_CPM_SMC2, MPC82xx_CPM_SPI, MPC82xx_CPM_I2C, | 147 | MPC82xx_CPM_SMC1, MPC82xx_CPM_SMC2, MPC82xx_CPM_SPI, |
148 | MPC82xx_CPM_USB, MPC82xx_SEC1, | 148 | MPC82xx_CPM_I2C, MPC82xx_CPM_USB, MPC82xx_SEC1, |
149 | }, | 149 | }, |
150 | }, | 150 | }, |
151 | /* below is a list of the 8280 family of processors */ | 151 | /* below is a list of the 8280 family of processors */ |
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index ef5b9c44b86b..4d53b2739357 100644 --- a/arch/s390/kernel/compat_wrapper.S +++ b/arch/s390/kernel/compat_wrapper.S | |||
@@ -1650,3 +1650,11 @@ sys_tee_wrapper: | |||
1650 | llgfr %r4,%r4 # size_t | 1650 | llgfr %r4,%r4 # size_t |
1651 | llgfr %r5,%r5 # unsigned int | 1651 | llgfr %r5,%r5 # unsigned int |
1652 | jg sys_tee | 1652 | jg sys_tee |
1653 | |||
1654 | .globl compat_sys_vmsplice_wrapper | ||
1655 | compat_sys_vmsplice_wrapper: | ||
1656 | lgfr %r2,%r2 # int | ||
1657 | llgtr %r3,%r3 # compat_iovec * | ||
1658 | llgfr %r4,%r4 # unsigned int | ||
1659 | llgfr %r5,%r5 # unsigned int | ||
1660 | jg compat_sys_vmsplice | ||
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S index fc2c0767202b..93be1d56c036 100644 --- a/arch/s390/kernel/syscalls.S +++ b/arch/s390/kernel/syscalls.S | |||
@@ -317,3 +317,4 @@ SYSCALL(sys_get_robust_list,sys_get_robust_list,compat_sys_get_robust_list_wrapp | |||
317 | SYSCALL(sys_splice,sys_splice,sys_splice_wrapper) | 317 | SYSCALL(sys_splice,sys_splice,sys_splice_wrapper) |
318 | SYSCALL(sys_sync_file_range,sys_sync_file_range,sys_sync_file_range_wrapper) | 318 | SYSCALL(sys_sync_file_range,sys_sync_file_range,sys_sync_file_range_wrapper) |
319 | SYSCALL(sys_tee,sys_tee,sys_tee_wrapper) | 319 | SYSCALL(sys_tee,sys_tee,sys_tee_wrapper) |
320 | SYSCALL(sys_vmsplice,sys_vmsplice,compat_sys_vmsplice_wrapper) | ||
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index fea043b69b91..2a6c6efb6865 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
@@ -249,18 +249,19 @@ static inline void stop_hz_timer(void) | |||
249 | unsigned long flags; | 249 | unsigned long flags; |
250 | unsigned long seq, next; | 250 | unsigned long seq, next; |
251 | __u64 timer, todval; | 251 | __u64 timer, todval; |
252 | int cpu = smp_processor_id(); | ||
252 | 253 | ||
253 | if (sysctl_hz_timer != 0) | 254 | if (sysctl_hz_timer != 0) |
254 | return; | 255 | return; |
255 | 256 | ||
256 | cpu_set(smp_processor_id(), nohz_cpu_mask); | 257 | cpu_set(cpu, nohz_cpu_mask); |
257 | 258 | ||
258 | /* | 259 | /* |
259 | * Leave the clock comparator set up for the next timer | 260 | * Leave the clock comparator set up for the next timer |
260 | * tick if either rcu or a softirq is pending. | 261 | * tick if either rcu or a softirq is pending. |
261 | */ | 262 | */ |
262 | if (rcu_pending(smp_processor_id()) || local_softirq_pending()) { | 263 | if (rcu_needs_cpu(cpu) || local_softirq_pending()) { |
263 | cpu_clear(smp_processor_id(), nohz_cpu_mask); | 264 | cpu_clear(cpu, nohz_cpu_mask); |
264 | return; | 265 | return; |
265 | } | 266 | } |
266 | 267 | ||
@@ -271,7 +272,7 @@ static inline void stop_hz_timer(void) | |||
271 | next = next_timer_interrupt(); | 272 | next = next_timer_interrupt(); |
272 | do { | 273 | do { |
273 | seq = read_seqbegin_irqsave(&xtime_lock, flags); | 274 | seq = read_seqbegin_irqsave(&xtime_lock, flags); |
274 | timer = (__u64)(next - jiffies) + jiffies_64; | 275 | timer = ((__u64) next) - ((__u64) jiffies) + jiffies_64; |
275 | } while (read_seqretry_irqrestore(&xtime_lock, seq, flags)); | 276 | } while (read_seqretry_irqrestore(&xtime_lock, seq, flags)); |
276 | todval = -1ULL; | 277 | todval = -1ULL; |
277 | /* Be careful about overflows. */ | 278 | /* Be careful about overflows. */ |
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 460f72e640e6..f9ff29734848 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c | |||
@@ -274,6 +274,11 @@ void *sbus_alloc_consistent(struct sbus_dev *sdev, long len, u32 *dma_addrp) | |||
274 | if (mmu_map_dma_area(dma_addrp, va, res->start, len_total) != 0) | 274 | if (mmu_map_dma_area(dma_addrp, va, res->start, len_total) != 0) |
275 | goto err_noiommu; | 275 | goto err_noiommu; |
276 | 276 | ||
277 | /* Set the resource name, if known. */ | ||
278 | if (sdev) { | ||
279 | res->name = sdev->prom_name; | ||
280 | } | ||
281 | |||
277 | return (void *)res->start; | 282 | return (void *)res->start; |
278 | 283 | ||
279 | err_noiommu: | 284 | err_noiommu: |
diff --git a/arch/sparc/kernel/module.c b/arch/sparc/kernel/module.c index 787d5f1347ec..598682f31ebf 100644 --- a/arch/sparc/kernel/module.c +++ b/arch/sparc/kernel/module.c | |||
@@ -113,6 +113,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
113 | 113 | ||
114 | switch (ELF32_R_TYPE(rel[i].r_info)) { | 114 | switch (ELF32_R_TYPE(rel[i].r_info)) { |
115 | case R_SPARC_32: | 115 | case R_SPARC_32: |
116 | case R_SPARC_UA32: | ||
116 | location[0] = v >> 24; | 117 | location[0] = v >> 24; |
117 | location[1] = v >> 16; | 118 | location[1] = v >> 16; |
118 | location[2] = v >> 8; | 119 | location[2] = v >> 8; |
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index 42002b742deb..bcdf5ad0f035 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c | |||
@@ -896,13 +896,6 @@ static inline unsigned long get_irqmask(int irq_nr) | |||
896 | return 1 << irq_nr; | 896 | return 1 << irq_nr; |
897 | } | 897 | } |
898 | 898 | ||
899 | static inline char *pcic_irq_itoa(unsigned int irq) | ||
900 | { | ||
901 | static char buff[16]; | ||
902 | sprintf(buff, "%d", irq); | ||
903 | return buff; | ||
904 | } | ||
905 | |||
906 | static void pcic_disable_irq(unsigned int irq_nr) | 899 | static void pcic_disable_irq(unsigned int irq_nr) |
907 | { | 900 | { |
908 | unsigned long mask, flags; | 901 | unsigned long mask, flags; |
@@ -955,7 +948,6 @@ void __init sun4m_pci_init_IRQ(void) | |||
955 | BTFIXUPSET_CALL(clear_clock_irq, pcic_clear_clock_irq, BTFIXUPCALL_NORM); | 948 | BTFIXUPSET_CALL(clear_clock_irq, pcic_clear_clock_irq, BTFIXUPCALL_NORM); |
956 | BTFIXUPSET_CALL(clear_profile_irq, pcic_clear_profile_irq, BTFIXUPCALL_NORM); | 949 | BTFIXUPSET_CALL(clear_profile_irq, pcic_clear_profile_irq, BTFIXUPCALL_NORM); |
957 | BTFIXUPSET_CALL(load_profile_irq, pcic_load_profile_irq, BTFIXUPCALL_NORM); | 950 | BTFIXUPSET_CALL(load_profile_irq, pcic_load_profile_irq, BTFIXUPCALL_NORM); |
958 | BTFIXUPSET_CALL(__irq_itoa, pcic_irq_itoa, BTFIXUPCALL_NORM); | ||
959 | } | 951 | } |
960 | 952 | ||
961 | int pcibios_assign_resource(struct pci_dev *pdev, int resource) | 953 | int pcibios_assign_resource(struct pci_dev *pdev, int resource) |
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c index 3509e4305532..2cbf282f0d00 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/console.h> | 31 | #include <linux/console.h> |
32 | #include <linux/spinlock.h> | 32 | #include <linux/spinlock.h> |
33 | #include <linux/root_dev.h> | 33 | #include <linux/root_dev.h> |
34 | #include <linux/cpu.h> | ||
34 | 35 | ||
35 | #include <asm/system.h> | 36 | #include <asm/system.h> |
36 | #include <asm/io.h> | 37 | #include <asm/io.h> |
@@ -348,6 +349,8 @@ void __init setup_arch(char **cmdline_p) | |||
348 | init_mm.context = (unsigned long) NO_CONTEXT; | 349 | init_mm.context = (unsigned long) NO_CONTEXT; |
349 | init_task.thread.kregs = &fake_swapper_regs; | 350 | init_task.thread.kregs = &fake_swapper_regs; |
350 | 351 | ||
352 | smp_setup_cpu_possible_map(); | ||
353 | |||
351 | paging_init(); | 354 | paging_init(); |
352 | } | 355 | } |
353 | 356 | ||
@@ -389,6 +392,8 @@ console_initcall(set_preferred_console); | |||
389 | extern char *sparc_cpu_type; | 392 | extern char *sparc_cpu_type; |
390 | extern char *sparc_fpu_type; | 393 | extern char *sparc_fpu_type; |
391 | 394 | ||
395 | static int ncpus_probed; | ||
396 | |||
392 | static int show_cpuinfo(struct seq_file *m, void *__unused) | 397 | static int show_cpuinfo(struct seq_file *m, void *__unused) |
393 | { | 398 | { |
394 | seq_printf(m, | 399 | seq_printf(m, |
@@ -411,7 +416,7 @@ static int show_cpuinfo(struct seq_file *m, void *__unused) | |||
411 | romvec->pv_printrev >> 16, | 416 | romvec->pv_printrev >> 16, |
412 | romvec->pv_printrev & 0xffff, | 417 | romvec->pv_printrev & 0xffff, |
413 | &cputypval, | 418 | &cputypval, |
414 | num_possible_cpus(), | 419 | ncpus_probed, |
415 | num_online_cpus() | 420 | num_online_cpus() |
416 | #ifndef CONFIG_SMP | 421 | #ifndef CONFIG_SMP |
417 | , cpu_data(0).udelay_val/(500000/HZ), | 422 | , cpu_data(0).udelay_val/(500000/HZ), |
@@ -471,3 +476,30 @@ void sun_do_break(void) | |||
471 | 476 | ||
472 | int serial_console = -1; | 477 | int serial_console = -1; |
473 | int stop_a_enabled = 1; | 478 | int stop_a_enabled = 1; |
479 | |||
480 | static int __init topology_init(void) | ||
481 | { | ||
482 | int i, ncpus, err; | ||
483 | |||
484 | /* Count the number of physically present processors in | ||
485 | * the machine, even on uniprocessor, so that /proc/cpuinfo | ||
486 | * output is consistent with 2.4.x | ||
487 | */ | ||
488 | ncpus = 0; | ||
489 | while (!cpu_find_by_instance(ncpus, NULL, NULL)) | ||
490 | ncpus++; | ||
491 | ncpus_probed = ncpus; | ||
492 | |||
493 | err = 0; | ||
494 | for_each_online_cpu(i) { | ||
495 | struct cpu *p = kzalloc(sizeof(*p), GFP_KERNEL); | ||
496 | if (!p) | ||
497 | err = -ENOMEM; | ||
498 | else | ||
499 | register_cpu(p, i, NULL); | ||
500 | } | ||
501 | |||
502 | return err; | ||
503 | } | ||
504 | |||
505 | subsys_initcall(topology_init); | ||
diff --git a/arch/sparc/kernel/smp.c b/arch/sparc/kernel/smp.c index a93f5da6855d..6135d4faeeeb 100644 --- a/arch/sparc/kernel/smp.c +++ b/arch/sparc/kernel/smp.c | |||
@@ -58,7 +58,7 @@ cpumask_t smp_commenced_mask = CPU_MASK_NONE; | |||
58 | /* Used to make bitops atomic */ | 58 | /* Used to make bitops atomic */ |
59 | unsigned char bitops_spinlock = 0; | 59 | unsigned char bitops_spinlock = 0; |
60 | 60 | ||
61 | void __init smp_store_cpu_info(int id) | 61 | void __cpuinit smp_store_cpu_info(int id) |
62 | { | 62 | { |
63 | int cpu_node; | 63 | int cpu_node; |
64 | 64 | ||
@@ -69,6 +69,17 @@ void __init smp_store_cpu_info(int id) | |||
69 | "clock-frequency", 0); | 69 | "clock-frequency", 0); |
70 | cpu_data(id).prom_node = cpu_node; | 70 | cpu_data(id).prom_node = cpu_node; |
71 | cpu_data(id).mid = cpu_get_hwmid(cpu_node); | 71 | cpu_data(id).mid = cpu_get_hwmid(cpu_node); |
72 | |||
73 | /* this is required to tune the scheduler correctly */ | ||
74 | /* is it possible to have CPUs with different cache sizes? */ | ||
75 | if (id == boot_cpu_id) { | ||
76 | int cache_line,cache_nlines; | ||
77 | cache_line = 0x20; | ||
78 | cache_line = prom_getintdefault(cpu_node, "ecache-line-size", cache_line); | ||
79 | cache_nlines = 0x8000; | ||
80 | cache_nlines = prom_getintdefault(cpu_node, "ecache-nlines", cache_nlines); | ||
81 | max_cache_size = cache_line * cache_nlines; | ||
82 | } | ||
72 | if (cpu_data(id).mid < 0) | 83 | if (cpu_data(id).mid < 0) |
73 | panic("No MID found for CPU%d at node 0x%08d", id, cpu_node); | 84 | panic("No MID found for CPU%d at node 0x%08d", id, cpu_node); |
74 | } | 85 | } |
@@ -256,22 +267,18 @@ int setup_profiling_timer(unsigned int multiplier) | |||
256 | void __init smp_prepare_cpus(unsigned int max_cpus) | 267 | void __init smp_prepare_cpus(unsigned int max_cpus) |
257 | { | 268 | { |
258 | extern void smp4m_boot_cpus(void); | 269 | extern void smp4m_boot_cpus(void); |
259 | int i, cpuid, ncpus, extra; | 270 | int i, cpuid, extra; |
260 | 271 | ||
261 | BUG_ON(sparc_cpu_model != sun4m); | 272 | BUG_ON(sparc_cpu_model != sun4m); |
262 | printk("Entering SMP Mode...\n"); | 273 | printk("Entering SMP Mode...\n"); |
263 | 274 | ||
264 | ncpus = 1; | ||
265 | extra = 0; | 275 | extra = 0; |
266 | for (i = 0; !cpu_find_by_instance(i, NULL, &cpuid); i++) { | 276 | for (i = 0; !cpu_find_by_instance(i, NULL, &cpuid); i++) { |
267 | if (cpuid == boot_cpu_id) | 277 | if (cpuid >= NR_CPUS) |
268 | continue; | ||
269 | if (cpuid < NR_CPUS && ncpus++ < max_cpus) | ||
270 | cpu_set(cpuid, phys_cpu_present_map); | ||
271 | else | ||
272 | extra++; | 278 | extra++; |
273 | } | 279 | } |
274 | if (max_cpus >= NR_CPUS && extra) | 280 | /* i = number of cpus */ |
281 | if (extra && max_cpus > i - extra) | ||
275 | printk("Warning: NR_CPUS is too low to start all cpus\n"); | 282 | printk("Warning: NR_CPUS is too low to start all cpus\n"); |
276 | 283 | ||
277 | smp_store_cpu_info(boot_cpu_id); | 284 | smp_store_cpu_info(boot_cpu_id); |
@@ -279,7 +286,25 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
279 | smp4m_boot_cpus(); | 286 | smp4m_boot_cpus(); |
280 | } | 287 | } |
281 | 288 | ||
282 | void __devinit smp_prepare_boot_cpu(void) | 289 | /* Set this up early so that things like the scheduler can init |
290 | * properly. We use the same cpu mask for both the present and | ||
291 | * possible cpu map. | ||
292 | */ | ||
293 | void __init smp_setup_cpu_possible_map(void) | ||
294 | { | ||
295 | int instance, mid; | ||
296 | |||
297 | instance = 0; | ||
298 | while (!cpu_find_by_instance(instance, NULL, &mid)) { | ||
299 | if (mid < NR_CPUS) { | ||
300 | cpu_set(mid, phys_cpu_present_map); | ||
301 | cpu_set(mid, cpu_present_map); | ||
302 | } | ||
303 | instance++; | ||
304 | } | ||
305 | } | ||
306 | |||
307 | void __init smp_prepare_boot_cpu(void) | ||
283 | { | 308 | { |
284 | int cpuid = hard_smp_processor_id(); | 309 | int cpuid = hard_smp_processor_id(); |
285 | 310 | ||
@@ -295,7 +320,7 @@ void __devinit smp_prepare_boot_cpu(void) | |||
295 | cpu_set(cpuid, phys_cpu_present_map); | 320 | cpu_set(cpuid, phys_cpu_present_map); |
296 | } | 321 | } |
297 | 322 | ||
298 | int __devinit __cpu_up(unsigned int cpu) | 323 | int __cpuinit __cpu_up(unsigned int cpu) |
299 | { | 324 | { |
300 | extern int smp4m_boot_one_cpu(int); | 325 | extern int smp4m_boot_one_cpu(int); |
301 | int ret; | 326 | int ret; |
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c index ec1c9687d679..fd7deabf9982 100644 --- a/arch/sparc/kernel/sparc_ksyms.c +++ b/arch/sparc/kernel/sparc_ksyms.c | |||
@@ -163,7 +163,6 @@ EXPORT_SYMBOL(BTFIXUP_CALL(__hard_smp_processor_id)); | |||
163 | #endif | 163 | #endif |
164 | EXPORT_SYMBOL(BTFIXUP_CALL(enable_irq)); | 164 | EXPORT_SYMBOL(BTFIXUP_CALL(enable_irq)); |
165 | EXPORT_SYMBOL(BTFIXUP_CALL(disable_irq)); | 165 | EXPORT_SYMBOL(BTFIXUP_CALL(disable_irq)); |
166 | EXPORT_SYMBOL(BTFIXUP_CALL(__irq_itoa)); | ||
167 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_unlockarea)); | 166 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_unlockarea)); |
168 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_lockarea)); | 167 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_lockarea)); |
169 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl)); | 168 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl)); |
@@ -251,19 +250,9 @@ EXPORT_SYMBOL(__prom_getchild); | |||
251 | EXPORT_SYMBOL(__prom_getsibling); | 250 | EXPORT_SYMBOL(__prom_getsibling); |
252 | 251 | ||
253 | /* sparc library symbols */ | 252 | /* sparc library symbols */ |
254 | EXPORT_SYMBOL(memchr); | ||
255 | EXPORT_SYMBOL(memscan); | 253 | EXPORT_SYMBOL(memscan); |
256 | EXPORT_SYMBOL(strlen); | 254 | EXPORT_SYMBOL(strlen); |
257 | EXPORT_SYMBOL(strnlen); | ||
258 | EXPORT_SYMBOL(strcpy); | ||
259 | EXPORT_SYMBOL(strncpy); | ||
260 | EXPORT_SYMBOL(strcat); | ||
261 | EXPORT_SYMBOL(strncat); | ||
262 | EXPORT_SYMBOL(strcmp); | ||
263 | EXPORT_SYMBOL(strncmp); | 255 | EXPORT_SYMBOL(strncmp); |
264 | EXPORT_SYMBOL(strchr); | ||
265 | EXPORT_SYMBOL(strrchr); | ||
266 | EXPORT_SYMBOL(strstr); | ||
267 | EXPORT_SYMBOL(page_kernel); | 256 | EXPORT_SYMBOL(page_kernel); |
268 | 257 | ||
269 | /* Special internal versions of library functions. */ | 258 | /* Special internal versions of library functions. */ |
@@ -317,6 +306,3 @@ EXPORT_SYMBOL(do_BUG); | |||
317 | 306 | ||
318 | /* Sun Power Management Idle Handler */ | 307 | /* Sun Power Management Idle Handler */ |
319 | EXPORT_SYMBOL(pm_idle); | 308 | EXPORT_SYMBOL(pm_idle); |
320 | |||
321 | /* Binfmt_misc needs this */ | ||
322 | EXPORT_SYMBOL(sys_close); | ||
diff --git a/arch/sparc/kernel/sun4c_irq.c b/arch/sparc/kernel/sun4c_irq.c index 3d6a99073c42..0f2d8d9cbdba 100644 --- a/arch/sparc/kernel/sun4c_irq.c +++ b/arch/sparc/kernel/sun4c_irq.c | |||
@@ -198,8 +198,6 @@ static void __init sun4c_init_timers(irqreturn_t (*counter_fn)(int, void *, stru | |||
198 | static void sun4c_nop(void) {} | 198 | static void sun4c_nop(void) {} |
199 | #endif | 199 | #endif |
200 | 200 | ||
201 | extern char *sun4m_irq_itoa(unsigned int irq); | ||
202 | |||
203 | void __init sun4c_init_IRQ(void) | 201 | void __init sun4c_init_IRQ(void) |
204 | { | 202 | { |
205 | struct linux_prom_registers int_regs[2]; | 203 | struct linux_prom_registers int_regs[2]; |
@@ -238,7 +236,6 @@ void __init sun4c_init_IRQ(void) | |||
238 | BTFIXUPSET_CALL(clear_clock_irq, sun4c_clear_clock_irq, BTFIXUPCALL_NORM); | 236 | BTFIXUPSET_CALL(clear_clock_irq, sun4c_clear_clock_irq, BTFIXUPCALL_NORM); |
239 | BTFIXUPSET_CALL(clear_profile_irq, sun4c_clear_profile_irq, BTFIXUPCALL_NOP); | 237 | BTFIXUPSET_CALL(clear_profile_irq, sun4c_clear_profile_irq, BTFIXUPCALL_NOP); |
240 | BTFIXUPSET_CALL(load_profile_irq, sun4c_load_profile_irq, BTFIXUPCALL_NOP); | 238 | BTFIXUPSET_CALL(load_profile_irq, sun4c_load_profile_irq, BTFIXUPCALL_NOP); |
241 | BTFIXUPSET_CALL(__irq_itoa, sun4m_irq_itoa, BTFIXUPCALL_NORM); | ||
242 | sparc_init_timers = sun4c_init_timers; | 239 | sparc_init_timers = sun4c_init_timers; |
243 | #ifdef CONFIG_SMP | 240 | #ifdef CONFIG_SMP |
244 | BTFIXUPSET_CALL(set_cpu_int, sun4c_nop, BTFIXUPCALL_NOP); | 241 | BTFIXUPSET_CALL(set_cpu_int, sun4c_nop, BTFIXUPCALL_NOP); |
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index ca656d9bd6fd..9c30e35c88f7 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -560,17 +560,6 @@ void __init sun4d_init_sbi_irq(void) | |||
560 | } | 560 | } |
561 | } | 561 | } |
562 | 562 | ||
563 | static char *sun4d_irq_itoa(unsigned int irq) | ||
564 | { | ||
565 | static char buff[16]; | ||
566 | |||
567 | if (irq < (1 << 5)) | ||
568 | sprintf(buff, "%d", irq); | ||
569 | else | ||
570 | sprintf(buff, "%d,%x", sbus_to_pil[(irq >> 2) & 7], irq); | ||
571 | return buff; | ||
572 | } | ||
573 | |||
574 | void __init sun4d_init_IRQ(void) | 563 | void __init sun4d_init_IRQ(void) |
575 | { | 564 | { |
576 | local_irq_disable(); | 565 | local_irq_disable(); |
@@ -581,7 +570,6 @@ void __init sun4d_init_IRQ(void) | |||
581 | BTFIXUPSET_CALL(clear_clock_irq, sun4d_clear_clock_irq, BTFIXUPCALL_NORM); | 570 | BTFIXUPSET_CALL(clear_clock_irq, sun4d_clear_clock_irq, BTFIXUPCALL_NORM); |
582 | BTFIXUPSET_CALL(clear_profile_irq, sun4d_clear_profile_irq, BTFIXUPCALL_NORM); | 571 | BTFIXUPSET_CALL(clear_profile_irq, sun4d_clear_profile_irq, BTFIXUPCALL_NORM); |
583 | BTFIXUPSET_CALL(load_profile_irq, sun4d_load_profile_irq, BTFIXUPCALL_NORM); | 572 | BTFIXUPSET_CALL(load_profile_irq, sun4d_load_profile_irq, BTFIXUPCALL_NORM); |
584 | BTFIXUPSET_CALL(__irq_itoa, sun4d_irq_itoa, BTFIXUPCALL_NORM); | ||
585 | sparc_init_timers = sun4d_init_timers; | 573 | sparc_init_timers = sun4d_init_timers; |
586 | #ifdef CONFIG_SMP | 574 | #ifdef CONFIG_SMP |
587 | BTFIXUPSET_CALL(set_cpu_int, sun4d_set_cpu_int, BTFIXUPCALL_NORM); | 575 | BTFIXUPSET_CALL(set_cpu_int, sun4d_set_cpu_int, BTFIXUPCALL_NORM); |
diff --git a/arch/sparc/kernel/sun4m_irq.c b/arch/sparc/kernel/sun4m_irq.c index 39d712c3c809..a296c13ac18f 100644 --- a/arch/sparc/kernel/sun4m_irq.c +++ b/arch/sparc/kernel/sun4m_irq.c | |||
@@ -229,13 +229,6 @@ static void sun4m_load_profile_irq(int cpu, unsigned int limit) | |||
229 | sun4m_timers->cpu_timers[cpu].l14_timer_limit = limit; | 229 | sun4m_timers->cpu_timers[cpu].l14_timer_limit = limit; |
230 | } | 230 | } |
231 | 231 | ||
232 | char *sun4m_irq_itoa(unsigned int irq) | ||
233 | { | ||
234 | static char buff[16]; | ||
235 | sprintf(buff, "%d", irq); | ||
236 | return buff; | ||
237 | } | ||
238 | |||
239 | static void __init sun4m_init_timers(irqreturn_t (*counter_fn)(int, void *, struct pt_regs *)) | 232 | static void __init sun4m_init_timers(irqreturn_t (*counter_fn)(int, void *, struct pt_regs *)) |
240 | { | 233 | { |
241 | int reg_count, irq, cpu; | 234 | int reg_count, irq, cpu; |
@@ -388,7 +381,6 @@ void __init sun4m_init_IRQ(void) | |||
388 | BTFIXUPSET_CALL(clear_clock_irq, sun4m_clear_clock_irq, BTFIXUPCALL_NORM); | 381 | BTFIXUPSET_CALL(clear_clock_irq, sun4m_clear_clock_irq, BTFIXUPCALL_NORM); |
389 | BTFIXUPSET_CALL(clear_profile_irq, sun4m_clear_profile_irq, BTFIXUPCALL_NORM); | 382 | BTFIXUPSET_CALL(clear_profile_irq, sun4m_clear_profile_irq, BTFIXUPCALL_NORM); |
390 | BTFIXUPSET_CALL(load_profile_irq, sun4m_load_profile_irq, BTFIXUPCALL_NORM); | 383 | BTFIXUPSET_CALL(load_profile_irq, sun4m_load_profile_irq, BTFIXUPCALL_NORM); |
391 | BTFIXUPSET_CALL(__irq_itoa, sun4m_irq_itoa, BTFIXUPCALL_NORM); | ||
392 | sparc_init_timers = sun4m_init_timers; | 384 | sparc_init_timers = sun4m_init_timers; |
393 | #ifdef CONFIG_SMP | 385 | #ifdef CONFIG_SMP |
394 | BTFIXUPSET_CALL(set_cpu_int, sun4m_send_ipi, BTFIXUPCALL_NORM); | 386 | BTFIXUPSET_CALL(set_cpu_int, sun4m_send_ipi, BTFIXUPCALL_NORM); |
diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index 70b375a4c2c2..3b32096134aa 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c | |||
@@ -66,7 +66,7 @@ static inline unsigned long swap(volatile unsigned long *ptr, unsigned long val) | |||
66 | static void smp_setup_percpu_timer(void); | 66 | static void smp_setup_percpu_timer(void); |
67 | extern void cpu_probe(void); | 67 | extern void cpu_probe(void); |
68 | 68 | ||
69 | void __init smp4m_callin(void) | 69 | void __cpuinit smp4m_callin(void) |
70 | { | 70 | { |
71 | int cpuid = hard_smp_processor_id(); | 71 | int cpuid = hard_smp_processor_id(); |
72 | 72 | ||
@@ -112,13 +112,8 @@ void __init smp4m_callin(void) | |||
112 | local_irq_enable(); | 112 | local_irq_enable(); |
113 | 113 | ||
114 | cpu_set(cpuid, cpu_online_map); | 114 | cpu_set(cpuid, cpu_online_map); |
115 | /* last one in gets all the interrupts (for testing) */ | ||
116 | set_irq_udt(boot_cpu_id); | ||
117 | } | 115 | } |
118 | 116 | ||
119 | extern void init_IRQ(void); | ||
120 | extern void cpu_panic(void); | ||
121 | |||
122 | /* | 117 | /* |
123 | * Cycle through the processors asking the PROM to start each one. | 118 | * Cycle through the processors asking the PROM to start each one. |
124 | */ | 119 | */ |
@@ -134,7 +129,7 @@ void __init smp4m_boot_cpus(void) | |||
134 | local_flush_cache_all(); | 129 | local_flush_cache_all(); |
135 | } | 130 | } |
136 | 131 | ||
137 | int smp4m_boot_one_cpu(int i) | 132 | int __cpuinit smp4m_boot_one_cpu(int i) |
138 | { | 133 | { |
139 | extern unsigned long sun4m_cpu_startup; | 134 | extern unsigned long sun4m_cpu_startup; |
140 | unsigned long *entry = &sun4m_cpu_startup; | 135 | unsigned long *entry = &sun4m_cpu_startup; |
diff --git a/arch/sparc/kernel/systbls.S b/arch/sparc/kernel/systbls.S index 6e1135cc03b0..2856551bddf1 100644 --- a/arch/sparc/kernel/systbls.S +++ b/arch/sparc/kernel/systbls.S | |||
@@ -79,6 +79,7 @@ sys_call_table: | |||
79 | /*285*/ .long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64 | 79 | /*285*/ .long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64 |
80 | /*290*/ .long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat | 80 | /*290*/ .long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat |
81 | /*295*/ .long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare | 81 | /*295*/ .long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare |
82 | /*300*/ .long sys_set_robust_list, sys_get_robust_list | ||
82 | 83 | ||
83 | #ifdef CONFIG_SUNOS_EMUL | 84 | #ifdef CONFIG_SUNOS_EMUL |
84 | /* Now the SunOS syscall table. */ | 85 | /* Now the SunOS syscall table. */ |
@@ -190,6 +191,6 @@ sunos_sys_table: | |||
190 | /*290*/ .long sunos_nosys, sunos_nosys, sunos_nosys | 191 | /*290*/ .long sunos_nosys, sunos_nosys, sunos_nosys |
191 | .long sunos_nosys, sunos_nosys, sunos_nosys | 192 | .long sunos_nosys, sunos_nosys, sunos_nosys |
192 | .long sunos_nosys, sunos_nosys, sunos_nosys | 193 | .long sunos_nosys, sunos_nosys, sunos_nosys |
193 | .long sunos_nosys | 194 | .long sunos_nosys, sunos_nosys, sunos_nosys |
194 | 195 | ||
195 | #endif | 196 | #endif |
diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c index 77840c804786..7215849db392 100644 --- a/arch/sparc/mm/iommu.c +++ b/arch/sparc/mm/iommu.c | |||
@@ -144,8 +144,9 @@ static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) | |||
144 | unsigned long start; | 144 | unsigned long start; |
145 | unsigned long end; | 145 | unsigned long end; |
146 | 146 | ||
147 | start = (unsigned long)iopte & PAGE_MASK; | 147 | start = (unsigned long)iopte; |
148 | end = PAGE_ALIGN(start + niopte*sizeof(iopte_t)); | 148 | end = PAGE_ALIGN(start + niopte*sizeof(iopte_t)); |
149 | start &= PAGE_MASK; | ||
149 | if (viking_mxcc_present) { | 150 | if (viking_mxcc_present) { |
150 | while(start < end) { | 151 | while(start < end) { |
151 | viking_mxcc_flush_page(start); | 152 | viking_mxcc_flush_page(start); |
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index 43a66f5407f4..a7a111db25b2 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -87,6 +87,10 @@ config SYSVIPC_COMPAT | |||
87 | depends on COMPAT && SYSVIPC | 87 | depends on COMPAT && SYSVIPC |
88 | default y | 88 | default y |
89 | 89 | ||
90 | config GENERIC_HARDIRQS | ||
91 | bool | ||
92 | default y | ||
93 | |||
90 | menu "General machine setup" | 94 | menu "General machine setup" |
91 | 95 | ||
92 | config SMP | 96 | config SMP |
diff --git a/arch/sparc64/defconfig b/arch/sparc64/defconfig index 1317380fa937..9da75f89fe2c 100644 --- a/arch/sparc64/defconfig +++ b/arch/sparc64/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.16 | 3 | # Linux kernel version: 2.6.17 |
4 | # Sun Apr 2 19:31:04 2006 | 4 | # Tue Jun 20 01:26:43 2006 |
5 | # | 5 | # |
6 | CONFIG_SPARC=y | 6 | CONFIG_SPARC=y |
7 | CONFIG_SPARC64=y | 7 | CONFIG_SPARC64=y |
@@ -87,6 +87,7 @@ CONFIG_DEFAULT_AS=y | |||
87 | # CONFIG_DEFAULT_NOOP is not set | 87 | # CONFIG_DEFAULT_NOOP is not set |
88 | CONFIG_DEFAULT_IOSCHED="anticipatory" | 88 | CONFIG_DEFAULT_IOSCHED="anticipatory" |
89 | CONFIG_SYSVIPC_COMPAT=y | 89 | CONFIG_SYSVIPC_COMPAT=y |
90 | CONFIG_GENERIC_HARDIRQS=y | ||
90 | 91 | ||
91 | # | 92 | # |
92 | # General machine setup | 93 | # General machine setup |
@@ -114,6 +115,7 @@ CONFIG_GENERIC_CALIBRATE_DELAY=y | |||
114 | CONFIG_HUGETLB_PAGE_SIZE_4MB=y | 115 | CONFIG_HUGETLB_PAGE_SIZE_4MB=y |
115 | # CONFIG_HUGETLB_PAGE_SIZE_512K is not set | 116 | # CONFIG_HUGETLB_PAGE_SIZE_512K is not set |
116 | # CONFIG_HUGETLB_PAGE_SIZE_64K is not set | 117 | # CONFIG_HUGETLB_PAGE_SIZE_64K is not set |
118 | CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
117 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | 119 | CONFIG_ARCH_SPARSEMEM_ENABLE=y |
118 | CONFIG_ARCH_SPARSEMEM_DEFAULT=y | 120 | CONFIG_ARCH_SPARSEMEM_DEFAULT=y |
119 | CONFIG_LARGE_ALLOCS=y | 121 | CONFIG_LARGE_ALLOCS=y |
@@ -182,6 +184,8 @@ CONFIG_INET_ESP=y | |||
182 | CONFIG_INET_IPCOMP=y | 184 | CONFIG_INET_IPCOMP=y |
183 | CONFIG_INET_XFRM_TUNNEL=y | 185 | CONFIG_INET_XFRM_TUNNEL=y |
184 | CONFIG_INET_TUNNEL=y | 186 | CONFIG_INET_TUNNEL=y |
187 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
188 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
185 | CONFIG_INET_DIAG=y | 189 | CONFIG_INET_DIAG=y |
186 | CONFIG_INET_TCP_DIAG=y | 190 | CONFIG_INET_TCP_DIAG=y |
187 | CONFIG_TCP_CONG_ADVANCED=y | 191 | CONFIG_TCP_CONG_ADVANCED=y |
@@ -197,6 +201,9 @@ CONFIG_TCP_CONG_HSTCP=m | |||
197 | CONFIG_TCP_CONG_HYBLA=m | 201 | CONFIG_TCP_CONG_HYBLA=m |
198 | CONFIG_TCP_CONG_VEGAS=m | 202 | CONFIG_TCP_CONG_VEGAS=m |
199 | CONFIG_TCP_CONG_SCALABLE=m | 203 | CONFIG_TCP_CONG_SCALABLE=m |
204 | CONFIG_TCP_CONG_LP=m | ||
205 | CONFIG_TCP_CONG_VENO=m | ||
206 | CONFIG_TCP_CONG_COMPOUND=m | ||
200 | CONFIG_IPV6=m | 207 | CONFIG_IPV6=m |
201 | CONFIG_IPV6_PRIVACY=y | 208 | CONFIG_IPV6_PRIVACY=y |
202 | CONFIG_IPV6_ROUTER_PREF=y | 209 | CONFIG_IPV6_ROUTER_PREF=y |
@@ -206,7 +213,10 @@ CONFIG_INET6_ESP=m | |||
206 | CONFIG_INET6_IPCOMP=m | 213 | CONFIG_INET6_IPCOMP=m |
207 | CONFIG_INET6_XFRM_TUNNEL=m | 214 | CONFIG_INET6_XFRM_TUNNEL=m |
208 | CONFIG_INET6_TUNNEL=m | 215 | CONFIG_INET6_TUNNEL=m |
216 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
217 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
209 | CONFIG_IPV6_TUNNEL=m | 218 | CONFIG_IPV6_TUNNEL=m |
219 | # CONFIG_NETWORK_SECMARK is not set | ||
210 | # CONFIG_NETFILTER is not set | 220 | # CONFIG_NETFILTER is not set |
211 | 221 | ||
212 | # | 222 | # |
@@ -259,6 +269,7 @@ CONFIG_VLAN_8021Q=m | |||
259 | # Network testing | 269 | # Network testing |
260 | # | 270 | # |
261 | CONFIG_NET_PKTGEN=m | 271 | CONFIG_NET_PKTGEN=m |
272 | CONFIG_NET_TCPPROBE=m | ||
262 | # CONFIG_HAMRADIO is not set | 273 | # CONFIG_HAMRADIO is not set |
263 | # CONFIG_IRDA is not set | 274 | # CONFIG_IRDA is not set |
264 | # CONFIG_BT is not set | 275 | # CONFIG_BT is not set |
@@ -430,7 +441,6 @@ CONFIG_ISCSI_TCP=m | |||
430 | # CONFIG_SCSI_INIA100 is not set | 441 | # CONFIG_SCSI_INIA100 is not set |
431 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 442 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
432 | # CONFIG_SCSI_IPR is not set | 443 | # CONFIG_SCSI_IPR is not set |
433 | # CONFIG_SCSI_QLOGIC_FC is not set | ||
434 | # CONFIG_SCSI_QLOGIC_1280 is not set | 444 | # CONFIG_SCSI_QLOGIC_1280 is not set |
435 | # CONFIG_SCSI_QLOGICPTI is not set | 445 | # CONFIG_SCSI_QLOGICPTI is not set |
436 | # CONFIG_SCSI_QLA_FC is not set | 446 | # CONFIG_SCSI_QLA_FC is not set |
@@ -562,6 +572,7 @@ CONFIG_BNX2=m | |||
562 | # CONFIG_CHELSIO_T1 is not set | 572 | # CONFIG_CHELSIO_T1 is not set |
563 | # CONFIG_IXGB is not set | 573 | # CONFIG_IXGB is not set |
564 | # CONFIG_S2IO is not set | 574 | # CONFIG_S2IO is not set |
575 | # CONFIG_MYRI10GE is not set | ||
565 | 576 | ||
566 | # | 577 | # |
567 | # Token Ring devices | 578 | # Token Ring devices |
@@ -811,6 +822,7 @@ CONFIG_HWMON=y | |||
811 | # Multimedia devices | 822 | # Multimedia devices |
812 | # | 823 | # |
813 | # CONFIG_VIDEO_DEV is not set | 824 | # CONFIG_VIDEO_DEV is not set |
825 | CONFIG_VIDEO_V4L2=y | ||
814 | 826 | ||
815 | # | 827 | # |
816 | # Digital Video Broadcasting Devices | 828 | # Digital Video Broadcasting Devices |
@@ -1042,9 +1054,7 @@ CONFIG_USB_HIDDEV=y | |||
1042 | # CONFIG_USB_ACECAD is not set | 1054 | # CONFIG_USB_ACECAD is not set |
1043 | # CONFIG_USB_KBTAB is not set | 1055 | # CONFIG_USB_KBTAB is not set |
1044 | # CONFIG_USB_POWERMATE is not set | 1056 | # CONFIG_USB_POWERMATE is not set |
1045 | # CONFIG_USB_MTOUCH is not set | 1057 | # CONFIG_USB_TOUCHSCREEN is not set |
1046 | # CONFIG_USB_ITMTOUCH is not set | ||
1047 | # CONFIG_USB_EGALAX is not set | ||
1048 | # CONFIG_USB_YEALINK is not set | 1058 | # CONFIG_USB_YEALINK is not set |
1049 | # CONFIG_USB_XPAD is not set | 1059 | # CONFIG_USB_XPAD is not set |
1050 | # CONFIG_USB_ATI_REMOTE is not set | 1060 | # CONFIG_USB_ATI_REMOTE is not set |
@@ -1115,6 +1125,14 @@ CONFIG_USB_HIDDEV=y | |||
1115 | # CONFIG_NEW_LEDS is not set | 1125 | # CONFIG_NEW_LEDS is not set |
1116 | 1126 | ||
1117 | # | 1127 | # |
1128 | # LED drivers | ||
1129 | # | ||
1130 | |||
1131 | # | ||
1132 | # LED Triggers | ||
1133 | # | ||
1134 | |||
1135 | # | ||
1118 | # InfiniBand support | 1136 | # InfiniBand support |
1119 | # | 1137 | # |
1120 | # CONFIG_INFINIBAND is not set | 1138 | # CONFIG_INFINIBAND is not set |
@@ -1129,6 +1147,19 @@ CONFIG_USB_HIDDEV=y | |||
1129 | # CONFIG_RTC_CLASS is not set | 1147 | # CONFIG_RTC_CLASS is not set |
1130 | 1148 | ||
1131 | # | 1149 | # |
1150 | # DMA Engine support | ||
1151 | # | ||
1152 | # CONFIG_DMA_ENGINE is not set | ||
1153 | |||
1154 | # | ||
1155 | # DMA Clients | ||
1156 | # | ||
1157 | |||
1158 | # | ||
1159 | # DMA Devices | ||
1160 | # | ||
1161 | |||
1162 | # | ||
1132 | # Misc Linux/SPARC drivers | 1163 | # Misc Linux/SPARC drivers |
1133 | # | 1164 | # |
1134 | CONFIG_SUN_OPENPROMIO=m | 1165 | CONFIG_SUN_OPENPROMIO=m |
@@ -1303,6 +1334,7 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1303 | # CONFIG_DEBUG_INFO is not set | 1334 | # CONFIG_DEBUG_INFO is not set |
1304 | CONFIG_DEBUG_FS=y | 1335 | CONFIG_DEBUG_FS=y |
1305 | # CONFIG_DEBUG_VM is not set | 1336 | # CONFIG_DEBUG_VM is not set |
1337 | # CONFIG_UNWIND_INFO is not set | ||
1306 | CONFIG_FORCED_INLINING=y | 1338 | CONFIG_FORCED_INLINING=y |
1307 | # CONFIG_RCU_TORTURE_TEST is not set | 1339 | # CONFIG_RCU_TORTURE_TEST is not set |
1308 | # CONFIG_DEBUG_STACK_USAGE is not set | 1340 | # CONFIG_DEBUG_STACK_USAGE is not set |
diff --git a/arch/sparc64/kernel/devices.c b/arch/sparc64/kernel/devices.c index 007e8922cd16..0dd95ae50e12 100644 --- a/arch/sparc64/kernel/devices.c +++ b/arch/sparc64/kernel/devices.c | |||
@@ -157,7 +157,7 @@ unsigned int sun4v_vdev_device_interrupt(unsigned int dev_node) | |||
157 | return 0; | 157 | return 0; |
158 | } | 158 | } |
159 | 159 | ||
160 | return sun4v_build_irq(sun4v_vdev_devhandle, irq, 5, 0); | 160 | return sun4v_build_irq(sun4v_vdev_devhandle, irq); |
161 | } | 161 | } |
162 | 162 | ||
163 | static const char *cpu_mid_prop(void) | 163 | static const char *cpu_mid_prop(void) |
diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S index 6d0b3ed77a02..be85ce2a4ad9 100644 --- a/arch/sparc64/kernel/entry.S +++ b/arch/sparc64/kernel/entry.S | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/estate.h> | 22 | #include <asm/estate.h> |
23 | #include <asm/auxio.h> | 23 | #include <asm/auxio.h> |
24 | #include <asm/sfafsr.h> | 24 | #include <asm/sfafsr.h> |
25 | #include <asm/pil.h> | ||
25 | 26 | ||
26 | #define curptr g6 | 27 | #define curptr g6 |
27 | 28 | ||
@@ -431,20 +432,16 @@ do_ivec: | |||
431 | membar #Sync | 432 | membar #Sync |
432 | 433 | ||
433 | sethi %hi(ivector_table), %g2 | 434 | sethi %hi(ivector_table), %g2 |
434 | sllx %g3, 5, %g3 | 435 | sllx %g3, 3, %g3 |
435 | or %g2, %lo(ivector_table), %g2 | 436 | or %g2, %lo(ivector_table), %g2 |
436 | add %g2, %g3, %g3 | 437 | add %g2, %g3, %g3 |
437 | ldub [%g3 + 0x04], %g4 /* pil */ | ||
438 | mov 1, %g2 | ||
439 | sllx %g2, %g4, %g2 | ||
440 | sllx %g4, 2, %g4 | ||
441 | 438 | ||
442 | TRAP_LOAD_IRQ_WORK(%g6, %g1) | 439 | TRAP_LOAD_IRQ_WORK(%g6, %g1) |
443 | 440 | ||
444 | lduw [%g6 + %g4], %g5 /* g5 = irq_work(cpu, pil) */ | 441 | lduw [%g6], %g5 /* g5 = irq_work(cpu) */ |
445 | stw %g5, [%g3 + 0x00] /* bucket->irq_chain = g5 */ | 442 | stw %g5, [%g3 + 0x00] /* bucket->irq_chain = g5 */ |
446 | stw %g3, [%g6 + %g4] /* irq_work(cpu, pil) = bucket */ | 443 | stw %g3, [%g6] /* irq_work(cpu) = bucket */ |
447 | wr %g2, 0x0, %set_softint | 444 | wr %g0, 1 << PIL_DEVICE_IRQ, %set_softint |
448 | retry | 445 | retry |
449 | do_ivec_xcall: | 446 | do_ivec_xcall: |
450 | mov 0x50, %g1 | 447 | mov 0x50, %g1 |
diff --git a/arch/sparc64/kernel/head.S b/arch/sparc64/kernel/head.S index 3eadac5e171e..31c5892f5acc 100644 --- a/arch/sparc64/kernel/head.S +++ b/arch/sparc64/kernel/head.S | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/config.h> | 10 | #include <linux/config.h> |
11 | #include <linux/version.h> | 11 | #include <linux/version.h> |
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <linux/threads.h> | ||
13 | #include <asm/thread_info.h> | 14 | #include <asm/thread_info.h> |
14 | #include <asm/asi.h> | 15 | #include <asm/asi.h> |
15 | #include <asm/pstate.h> | 16 | #include <asm/pstate.h> |
@@ -493,6 +494,35 @@ tlb_fixup_done: | |||
493 | call prom_init | 494 | call prom_init |
494 | mov %l7, %o0 ! OpenPROM cif handler | 495 | mov %l7, %o0 ! OpenPROM cif handler |
495 | 496 | ||
497 | /* Initialize current_thread_info()->cpu as early as possible. | ||
498 | * In order to do that accurately we have to patch up the get_cpuid() | ||
499 | * assembler sequences. And that, in turn, requires that we know | ||
500 | * if we are on a Starfire box or not. While we're here, patch up | ||
501 | * the sun4v sequences as well. | ||
502 | */ | ||
503 | call check_if_starfire | ||
504 | nop | ||
505 | call per_cpu_patch | ||
506 | nop | ||
507 | call sun4v_patch | ||
508 | nop | ||
509 | |||
510 | #ifdef CONFIG_SMP | ||
511 | call hard_smp_processor_id | ||
512 | nop | ||
513 | cmp %o0, NR_CPUS | ||
514 | blu,pt %xcc, 1f | ||
515 | nop | ||
516 | call boot_cpu_id_too_large | ||
517 | nop | ||
518 | /* Not reached... */ | ||
519 | |||
520 | 1: | ||
521 | #else | ||
522 | mov 0, %o0 | ||
523 | #endif | ||
524 | stb %o0, [%g6 + TI_CPU] | ||
525 | |||
496 | /* Off we go.... */ | 526 | /* Off we go.... */ |
497 | call start_kernel | 527 | call start_kernel |
498 | nop | 528 | nop |
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index 11e645c9ec50..a8c9dc8d1958 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/proc_fs.h> | 22 | #include <linux/proc_fs.h> |
23 | #include <linux/seq_file.h> | 23 | #include <linux/seq_file.h> |
24 | #include <linux/bootmem.h> | 24 | #include <linux/bootmem.h> |
25 | #include <linux/irq.h> | ||
25 | 26 | ||
26 | #include <asm/ptrace.h> | 27 | #include <asm/ptrace.h> |
27 | #include <asm/processor.h> | 28 | #include <asm/processor.h> |
@@ -42,10 +43,6 @@ | |||
42 | #include <asm/auxio.h> | 43 | #include <asm/auxio.h> |
43 | #include <asm/head.h> | 44 | #include <asm/head.h> |
44 | 45 | ||
45 | #ifdef CONFIG_SMP | ||
46 | static void distribute_irqs(void); | ||
47 | #endif | ||
48 | |||
49 | /* UPA nodes send interrupt packet to UltraSparc with first data reg | 46 | /* UPA nodes send interrupt packet to UltraSparc with first data reg |
50 | * value low 5 (7 on Starfire) bits holding the IRQ identifier being | 47 | * value low 5 (7 on Starfire) bits holding the IRQ identifier being |
51 | * delivered. We must translate this into a non-vector IRQ so we can | 48 | * delivered. We must translate this into a non-vector IRQ so we can |
@@ -57,10 +54,29 @@ static void distribute_irqs(void); | |||
57 | * The IVEC handler does not need to act atomically, the PIL dispatch | 54 | * The IVEC handler does not need to act atomically, the PIL dispatch |
58 | * code uses CAS to get an atomic snapshot of the list and clear it | 55 | * code uses CAS to get an atomic snapshot of the list and clear it |
59 | * at the same time. | 56 | * at the same time. |
57 | * | ||
58 | * If you make changes to ino_bucket, please update hand coded assembler | ||
59 | * of the vectored interrupt trap handler(s) in entry.S and sun4v_ivec.S | ||
60 | */ | 60 | */ |
61 | struct ino_bucket { | ||
62 | /* Next handler in per-CPU IRQ worklist. We know that | ||
63 | * bucket pointers have the high 32-bits clear, so to | ||
64 | * save space we only store the bits we need. | ||
65 | */ | ||
66 | /*0x00*/unsigned int irq_chain; | ||
61 | 67 | ||
68 | /* Virtual interrupt number assigned to this INO. */ | ||
69 | /*0x04*/unsigned int virt_irq; | ||
70 | }; | ||
71 | |||
72 | #define NUM_IVECS (IMAP_INR + 1) | ||
62 | struct ino_bucket ivector_table[NUM_IVECS] __attribute__ ((aligned (SMP_CACHE_BYTES))); | 73 | struct ino_bucket ivector_table[NUM_IVECS] __attribute__ ((aligned (SMP_CACHE_BYTES))); |
63 | 74 | ||
75 | #define __irq_ino(irq) \ | ||
76 | (((struct ino_bucket *)(unsigned long)(irq)) - &ivector_table[0]) | ||
77 | #define __bucket(irq) ((struct ino_bucket *)(unsigned long)(irq)) | ||
78 | #define __irq(bucket) ((unsigned int)(unsigned long)(bucket)) | ||
79 | |||
64 | /* This has to be in the main kernel image, it cannot be | 80 | /* This has to be in the main kernel image, it cannot be |
65 | * turned into per-cpu data. The reason is that the main | 81 | * turned into per-cpu data. The reason is that the main |
66 | * kernel image is locked into the TLB and this structure | 82 | * kernel image is locked into the TLB and this structure |
@@ -68,71 +84,82 @@ struct ino_bucket ivector_table[NUM_IVECS] __attribute__ ((aligned (SMP_CACHE_BY | |||
68 | * access to this structure takes a TLB miss it could cause | 84 | * access to this structure takes a TLB miss it could cause |
69 | * the 5-level sparc v9 trap stack to overflow. | 85 | * the 5-level sparc v9 trap stack to overflow. |
70 | */ | 86 | */ |
71 | struct irq_work_struct { | 87 | #define irq_work(__cpu) &(trap_block[(__cpu)].irq_worklist) |
72 | unsigned int irq_worklists[16]; | ||
73 | }; | ||
74 | struct irq_work_struct __irq_work[NR_CPUS]; | ||
75 | #define irq_work(__cpu, __pil) &(__irq_work[(__cpu)].irq_worklists[(__pil)]) | ||
76 | 88 | ||
77 | static struct irqaction *irq_action[NR_IRQS+1]; | 89 | static unsigned int virt_to_real_irq_table[NR_IRQS]; |
90 | static unsigned char virt_irq_cur = 1; | ||
78 | 91 | ||
79 | /* This only synchronizes entities which modify IRQ handler | 92 | static unsigned char virt_irq_alloc(unsigned int real_irq) |
80 | * state and some selected user-level spots that want to | 93 | { |
81 | * read things in the table. IRQ handler processing orders | 94 | unsigned char ent; |
82 | * its' accesses such that no locking is needed. | 95 | |
83 | */ | 96 | BUILD_BUG_ON(NR_IRQS >= 256); |
84 | static DEFINE_SPINLOCK(irq_action_lock); | 97 | |
98 | ent = virt_irq_cur; | ||
99 | if (ent >= NR_IRQS) { | ||
100 | printk(KERN_ERR "IRQ: Out of virtual IRQs.\n"); | ||
101 | return 0; | ||
102 | } | ||
103 | |||
104 | virt_irq_cur = ent + 1; | ||
105 | virt_to_real_irq_table[ent] = real_irq; | ||
106 | |||
107 | return ent; | ||
108 | } | ||
109 | |||
110 | #if 0 /* Currently unused. */ | ||
111 | static unsigned char real_to_virt_irq(unsigned int real_irq) | ||
112 | { | ||
113 | struct ino_bucket *bucket = __bucket(real_irq); | ||
85 | 114 | ||
86 | static void register_irq_proc (unsigned int irq); | 115 | return bucket->virt_irq; |
116 | } | ||
117 | #endif | ||
118 | |||
119 | static unsigned int virt_to_real_irq(unsigned char virt_irq) | ||
120 | { | ||
121 | return virt_to_real_irq_table[virt_irq]; | ||
122 | } | ||
87 | 123 | ||
88 | /* | 124 | /* |
89 | * Upper 2b of irqaction->flags holds the ino. | 125 | * /proc/interrupts printing: |
90 | * irqaction->mask holds the smp affinity information. | ||
91 | */ | 126 | */ |
92 | #define put_ino_in_irqaction(action, irq) \ | ||
93 | action->flags &= 0xffffffffffffUL; \ | ||
94 | if (__bucket(irq) == &pil0_dummy_bucket) \ | ||
95 | action->flags |= 0xdeadUL << 48; \ | ||
96 | else \ | ||
97 | action->flags |= __irq_ino(irq) << 48; | ||
98 | #define get_ino_in_irqaction(action) (action->flags >> 48) | ||
99 | |||
100 | #define put_smpaff_in_irqaction(action, smpaff) (action)->mask = (smpaff) | ||
101 | #define get_smpaff_in_irqaction(action) ((action)->mask) | ||
102 | 127 | ||
103 | int show_interrupts(struct seq_file *p, void *v) | 128 | int show_interrupts(struct seq_file *p, void *v) |
104 | { | 129 | { |
130 | int i = *(loff_t *) v, j; | ||
131 | struct irqaction * action; | ||
105 | unsigned long flags; | 132 | unsigned long flags; |
106 | int i = *(loff_t *) v; | ||
107 | struct irqaction *action; | ||
108 | #ifdef CONFIG_SMP | ||
109 | int j; | ||
110 | #endif | ||
111 | 133 | ||
112 | spin_lock_irqsave(&irq_action_lock, flags); | 134 | if (i == 0) { |
113 | if (i <= NR_IRQS) { | 135 | seq_printf(p, " "); |
114 | if (!(action = *(i + irq_action))) | 136 | for_each_online_cpu(j) |
115 | goto out_unlock; | 137 | seq_printf(p, "CPU%d ",j); |
116 | seq_printf(p, "%3d: ", i); | 138 | seq_putc(p, '\n'); |
139 | } | ||
140 | |||
141 | if (i < NR_IRQS) { | ||
142 | spin_lock_irqsave(&irq_desc[i].lock, flags); | ||
143 | action = irq_desc[i].action; | ||
144 | if (!action) | ||
145 | goto skip; | ||
146 | seq_printf(p, "%3d: ",i); | ||
117 | #ifndef CONFIG_SMP | 147 | #ifndef CONFIG_SMP |
118 | seq_printf(p, "%10u ", kstat_irqs(i)); | 148 | seq_printf(p, "%10u ", kstat_irqs(i)); |
119 | #else | 149 | #else |
120 | for_each_online_cpu(j) { | 150 | for_each_online_cpu(j) |
121 | seq_printf(p, "%10u ", | 151 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]); |
122 | kstat_cpu(j).irqs[i]); | ||
123 | } | ||
124 | #endif | 152 | #endif |
125 | seq_printf(p, " %s:%lx", action->name, | 153 | seq_printf(p, " %9s", irq_desc[i].handler->typename); |
126 | get_ino_in_irqaction(action)); | 154 | seq_printf(p, " %s", action->name); |
127 | for (action = action->next; action; action = action->next) { | 155 | |
128 | seq_printf(p, ", %s:%lx", action->name, | 156 | for (action=action->next; action; action = action->next) |
129 | get_ino_in_irqaction(action)); | 157 | seq_printf(p, ", %s", action->name); |
130 | } | 158 | |
131 | seq_putc(p, '\n'); | 159 | seq_putc(p, '\n'); |
160 | skip: | ||
161 | spin_unlock_irqrestore(&irq_desc[i].lock, flags); | ||
132 | } | 162 | } |
133 | out_unlock: | ||
134 | spin_unlock_irqrestore(&irq_action_lock, flags); | ||
135 | |||
136 | return 0; | 163 | return 0; |
137 | } | 164 | } |
138 | 165 | ||
@@ -173,556 +200,365 @@ static unsigned int sun4u_compute_tid(unsigned long imap, unsigned long cpuid) | |||
173 | return tid; | 200 | return tid; |
174 | } | 201 | } |
175 | 202 | ||
176 | /* Now these are always passed a true fully specified sun4u INO. */ | 203 | struct irq_handler_data { |
177 | void enable_irq(unsigned int irq) | 204 | unsigned long iclr; |
178 | { | 205 | unsigned long imap; |
179 | struct ino_bucket *bucket = __bucket(irq); | ||
180 | unsigned long imap, cpuid; | ||
181 | |||
182 | imap = bucket->imap; | ||
183 | if (imap == 0UL) | ||
184 | return; | ||
185 | |||
186 | preempt_disable(); | ||
187 | |||
188 | /* This gets the physical processor ID, even on uniprocessor, | ||
189 | * so we can always program the interrupt target correctly. | ||
190 | */ | ||
191 | cpuid = real_hard_smp_processor_id(); | ||
192 | |||
193 | if (tlb_type == hypervisor) { | ||
194 | unsigned int ino = __irq_ino(irq); | ||
195 | int err; | ||
196 | 206 | ||
197 | err = sun4v_intr_settarget(ino, cpuid); | 207 | void (*pre_handler)(unsigned int, void *, void *); |
198 | if (err != HV_EOK) | 208 | void *pre_handler_arg1; |
199 | printk("sun4v_intr_settarget(%x,%lu): err(%d)\n", | 209 | void *pre_handler_arg2; |
200 | ino, cpuid, err); | 210 | }; |
201 | err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); | ||
202 | if (err != HV_EOK) | ||
203 | printk("sun4v_intr_setenabled(%x): err(%d)\n", | ||
204 | ino, err); | ||
205 | } else { | ||
206 | unsigned int tid = sun4u_compute_tid(imap, cpuid); | ||
207 | |||
208 | /* NOTE NOTE NOTE, IGN and INO are read-only, IGN is a product | ||
209 | * of this SYSIO's preconfigured IGN in the SYSIO Control | ||
210 | * Register, the hardware just mirrors that value here. | ||
211 | * However for Graphics and UPA Slave devices the full | ||
212 | * IMAP_INR field can be set by the programmer here. | ||
213 | * | ||
214 | * Things like FFB can now be handled via the new IRQ | ||
215 | * mechanism. | ||
216 | */ | ||
217 | upa_writel(tid | IMAP_VALID, imap); | ||
218 | } | ||
219 | |||
220 | preempt_enable(); | ||
221 | } | ||
222 | 211 | ||
223 | /* This now gets passed true ino's as well. */ | 212 | static inline struct ino_bucket *virt_irq_to_bucket(unsigned int virt_irq) |
224 | void disable_irq(unsigned int irq) | ||
225 | { | 213 | { |
226 | struct ino_bucket *bucket = __bucket(irq); | 214 | unsigned int real_irq = virt_to_real_irq(virt_irq); |
227 | unsigned long imap; | 215 | struct ino_bucket *bucket = NULL; |
228 | |||
229 | imap = bucket->imap; | ||
230 | if (imap != 0UL) { | ||
231 | if (tlb_type == hypervisor) { | ||
232 | unsigned int ino = __irq_ino(irq); | ||
233 | int err; | ||
234 | |||
235 | err = sun4v_intr_setenabled(ino, HV_INTR_DISABLED); | ||
236 | if (err != HV_EOK) | ||
237 | printk("sun4v_intr_setenabled(%x): " | ||
238 | "err(%d)\n", ino, err); | ||
239 | } else { | ||
240 | u32 tmp; | ||
241 | |||
242 | /* NOTE: We do not want to futz with the IRQ clear registers | ||
243 | * and move the state to IDLE, the SCSI code does call | ||
244 | * disable_irq() to assure atomicity in the queue cmd | ||
245 | * SCSI adapter driver code. Thus we'd lose interrupts. | ||
246 | */ | ||
247 | tmp = upa_readl(imap); | ||
248 | tmp &= ~IMAP_VALID; | ||
249 | upa_writel(tmp, imap); | ||
250 | } | ||
251 | } | ||
252 | } | ||
253 | 216 | ||
254 | /* The timer is the one "weird" interrupt which is generated by | 217 | if (likely(real_irq)) |
255 | * the CPU %tick register and not by some normal vectored interrupt | 218 | bucket = __bucket(real_irq); |
256 | * source. To handle this special case, we use this dummy INO bucket. | ||
257 | */ | ||
258 | static struct irq_desc pil0_dummy_desc; | ||
259 | static struct ino_bucket pil0_dummy_bucket = { | ||
260 | .irq_info = &pil0_dummy_desc, | ||
261 | }; | ||
262 | 219 | ||
263 | static void build_irq_error(const char *msg, unsigned int ino, int pil, int inofixup, | 220 | return bucket; |
264 | unsigned long iclr, unsigned long imap, | ||
265 | struct ino_bucket *bucket) | ||
266 | { | ||
267 | prom_printf("IRQ: INO %04x (%d:%016lx:%016lx) --> " | ||
268 | "(%d:%d:%016lx:%016lx), halting...\n", | ||
269 | ino, bucket->pil, bucket->iclr, bucket->imap, | ||
270 | pil, inofixup, iclr, imap); | ||
271 | prom_halt(); | ||
272 | } | 221 | } |
273 | 222 | ||
274 | unsigned int build_irq(int pil, int inofixup, unsigned long iclr, unsigned long imap) | 223 | #ifdef CONFIG_SMP |
224 | static int irq_choose_cpu(unsigned int virt_irq) | ||
275 | { | 225 | { |
276 | struct ino_bucket *bucket; | 226 | cpumask_t mask = irq_affinity[virt_irq]; |
277 | int ino; | 227 | int cpuid; |
278 | 228 | ||
279 | if (pil == 0) { | 229 | if (cpus_equal(mask, CPU_MASK_ALL)) { |
280 | if (iclr != 0UL || imap != 0UL) { | 230 | static int irq_rover; |
281 | prom_printf("Invalid dummy bucket for PIL0 (%lx:%lx)\n", | 231 | static DEFINE_SPINLOCK(irq_rover_lock); |
282 | iclr, imap); | 232 | unsigned long flags; |
283 | prom_halt(); | ||
284 | } | ||
285 | return __irq(&pil0_dummy_bucket); | ||
286 | } | ||
287 | 233 | ||
288 | BUG_ON(tlb_type == hypervisor); | 234 | /* Round-robin distribution... */ |
235 | do_round_robin: | ||
236 | spin_lock_irqsave(&irq_rover_lock, flags); | ||
289 | 237 | ||
290 | /* RULE: Both must be specified in all other cases. */ | 238 | while (!cpu_online(irq_rover)) { |
291 | if (iclr == 0UL || imap == 0UL) { | 239 | if (++irq_rover >= NR_CPUS) |
292 | prom_printf("Invalid build_irq %d %d %016lx %016lx\n", | 240 | irq_rover = 0; |
293 | pil, inofixup, iclr, imap); | 241 | } |
294 | prom_halt(); | 242 | cpuid = irq_rover; |
295 | } | 243 | do { |
296 | 244 | if (++irq_rover >= NR_CPUS) | |
297 | ino = (upa_readl(imap) & (IMAP_IGN | IMAP_INO)) + inofixup; | 245 | irq_rover = 0; |
298 | if (ino > NUM_IVECS) { | 246 | } while (!cpu_online(irq_rover)); |
299 | prom_printf("Invalid INO %04x (%d:%d:%016lx:%016lx)\n", | ||
300 | ino, pil, inofixup, iclr, imap); | ||
301 | prom_halt(); | ||
302 | } | ||
303 | 247 | ||
304 | bucket = &ivector_table[ino]; | 248 | spin_unlock_irqrestore(&irq_rover_lock, flags); |
305 | if (bucket->flags & IBF_ACTIVE) | 249 | } else { |
306 | build_irq_error("IRQ: Trying to build active INO bucket.\n", | 250 | cpumask_t tmp; |
307 | ino, pil, inofixup, iclr, imap, bucket); | ||
308 | 251 | ||
309 | if (bucket->irq_info) { | 252 | cpus_and(tmp, cpu_online_map, mask); |
310 | if (bucket->imap != imap || bucket->iclr != iclr) | ||
311 | build_irq_error("IRQ: Trying to reinit INO bucket.\n", | ||
312 | ino, pil, inofixup, iclr, imap, bucket); | ||
313 | 253 | ||
314 | goto out; | 254 | if (cpus_empty(tmp)) |
315 | } | 255 | goto do_round_robin; |
316 | 256 | ||
317 | bucket->irq_info = kzalloc(sizeof(struct irq_desc), GFP_ATOMIC); | 257 | cpuid = first_cpu(tmp); |
318 | if (!bucket->irq_info) { | ||
319 | prom_printf("IRQ: Error, kmalloc(irq_desc) failed.\n"); | ||
320 | prom_halt(); | ||
321 | } | 258 | } |
322 | 259 | ||
323 | /* Ok, looks good, set it up. Don't touch the irq_chain or | 260 | return cpuid; |
324 | * the pending flag. | ||
325 | */ | ||
326 | bucket->imap = imap; | ||
327 | bucket->iclr = iclr; | ||
328 | bucket->pil = pil; | ||
329 | bucket->flags = 0; | ||
330 | |||
331 | out: | ||
332 | return __irq(bucket); | ||
333 | } | 261 | } |
334 | 262 | #else | |
335 | unsigned int sun4v_build_irq(u32 devhandle, unsigned int devino, int pil, unsigned char flags) | 263 | static int irq_choose_cpu(unsigned int virt_irq) |
336 | { | 264 | { |
337 | struct ino_bucket *bucket; | 265 | return real_hard_smp_processor_id(); |
338 | unsigned long sysino; | 266 | } |
267 | #endif | ||
339 | 268 | ||
340 | sysino = sun4v_devino_to_sysino(devhandle, devino); | 269 | static void sun4u_irq_enable(unsigned int virt_irq) |
270 | { | ||
271 | irq_desc_t *desc = irq_desc + virt_irq; | ||
272 | struct irq_handler_data *data = desc->handler_data; | ||
341 | 273 | ||
342 | bucket = &ivector_table[sysino]; | 274 | if (likely(data)) { |
275 | unsigned long cpuid, imap; | ||
276 | unsigned int tid; | ||
343 | 277 | ||
344 | /* Catch accidental accesses to these things. IMAP/ICLR handling | 278 | cpuid = irq_choose_cpu(virt_irq); |
345 | * is done by hypervisor calls on sun4v platforms, not by direct | 279 | imap = data->imap; |
346 | * register accesses. | ||
347 | * | ||
348 | * But we need to make them look unique for the disable_irq() logic | ||
349 | * in free_irq(). | ||
350 | */ | ||
351 | bucket->imap = ~0UL - sysino; | ||
352 | bucket->iclr = ~0UL - sysino; | ||
353 | 280 | ||
354 | bucket->pil = pil; | 281 | tid = sun4u_compute_tid(imap, cpuid); |
355 | bucket->flags = flags; | ||
356 | 282 | ||
357 | bucket->irq_info = kzalloc(sizeof(struct irq_desc), GFP_ATOMIC); | 283 | upa_writel(tid | IMAP_VALID, imap); |
358 | if (!bucket->irq_info) { | ||
359 | prom_printf("IRQ: Error, kmalloc(irq_desc) failed.\n"); | ||
360 | prom_halt(); | ||
361 | } | 284 | } |
362 | |||
363 | return __irq(bucket); | ||
364 | } | 285 | } |
365 | 286 | ||
366 | static void atomic_bucket_insert(struct ino_bucket *bucket) | 287 | static void sun4u_irq_disable(unsigned int virt_irq) |
367 | { | 288 | { |
368 | unsigned long pstate; | 289 | irq_desc_t *desc = irq_desc + virt_irq; |
369 | unsigned int *ent; | 290 | struct irq_handler_data *data = desc->handler_data; |
370 | 291 | ||
371 | __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); | 292 | if (likely(data)) { |
372 | __asm__ __volatile__("wrpr %0, %1, %%pstate" | 293 | unsigned long imap = data->imap; |
373 | : : "r" (pstate), "i" (PSTATE_IE)); | 294 | u32 tmp = upa_readl(imap); |
374 | ent = irq_work(smp_processor_id(), bucket->pil); | ||
375 | bucket->irq_chain = *ent; | ||
376 | *ent = __irq(bucket); | ||
377 | __asm__ __volatile__("wrpr %0, 0x0, %%pstate" : : "r" (pstate)); | ||
378 | } | ||
379 | 295 | ||
380 | static int check_irq_sharing(int pil, unsigned long irqflags) | 296 | tmp &= ~IMAP_VALID; |
381 | { | 297 | upa_writel(tmp, imap); |
382 | struct irqaction *action, *tmp; | ||
383 | |||
384 | action = *(irq_action + pil); | ||
385 | if (action) { | ||
386 | if ((action->flags & SA_SHIRQ) && (irqflags & SA_SHIRQ)) { | ||
387 | for (tmp = action; tmp->next; tmp = tmp->next) | ||
388 | ; | ||
389 | } else { | ||
390 | return -EBUSY; | ||
391 | } | ||
392 | } | 298 | } |
393 | return 0; | ||
394 | } | 299 | } |
395 | 300 | ||
396 | static void append_irq_action(int pil, struct irqaction *action) | 301 | static void sun4u_irq_end(unsigned int virt_irq) |
397 | { | 302 | { |
398 | struct irqaction **pp = irq_action + pil; | 303 | irq_desc_t *desc = irq_desc + virt_irq; |
304 | struct irq_handler_data *data = desc->handler_data; | ||
399 | 305 | ||
400 | while (*pp) | 306 | if (likely(data)) |
401 | pp = &((*pp)->next); | 307 | upa_writel(ICLR_IDLE, data->iclr); |
402 | *pp = action; | ||
403 | } | 308 | } |
404 | 309 | ||
405 | static struct irqaction *get_action_slot(struct ino_bucket *bucket) | 310 | static void sun4v_irq_enable(unsigned int virt_irq) |
406 | { | 311 | { |
407 | struct irq_desc *desc = bucket->irq_info; | 312 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
408 | int max_irq, i; | 313 | unsigned int ino = bucket - &ivector_table[0]; |
409 | 314 | ||
410 | max_irq = 1; | 315 | if (likely(bucket)) { |
411 | if (bucket->flags & IBF_PCI) | 316 | unsigned long cpuid; |
412 | max_irq = MAX_IRQ_DESC_ACTION; | 317 | int err; |
413 | for (i = 0; i < max_irq; i++) { | ||
414 | struct irqaction *p = &desc->action[i]; | ||
415 | u32 mask = (1 << i); | ||
416 | 318 | ||
417 | if (desc->action_active_mask & mask) | 319 | cpuid = irq_choose_cpu(virt_irq); |
418 | continue; | ||
419 | 320 | ||
420 | desc->action_active_mask |= mask; | 321 | err = sun4v_intr_settarget(ino, cpuid); |
421 | return p; | 322 | if (err != HV_EOK) |
323 | printk("sun4v_intr_settarget(%x,%lu): err(%d)\n", | ||
324 | ino, cpuid, err); | ||
325 | err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); | ||
326 | if (err != HV_EOK) | ||
327 | printk("sun4v_intr_setenabled(%x): err(%d)\n", | ||
328 | ino, err); | ||
422 | } | 329 | } |
423 | return NULL; | ||
424 | } | 330 | } |
425 | 331 | ||
426 | int request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), | 332 | static void sun4v_irq_disable(unsigned int virt_irq) |
427 | unsigned long irqflags, const char *name, void *dev_id) | ||
428 | { | 333 | { |
429 | struct irqaction *action; | 334 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
430 | struct ino_bucket *bucket = __bucket(irq); | 335 | unsigned int ino = bucket - &ivector_table[0]; |
431 | unsigned long flags; | ||
432 | int pending = 0; | ||
433 | |||
434 | if (unlikely(!handler)) | ||
435 | return -EINVAL; | ||
436 | |||
437 | if (unlikely(!bucket->irq_info)) | ||
438 | return -ENODEV; | ||
439 | |||
440 | if ((bucket != &pil0_dummy_bucket) && (irqflags & SA_SAMPLE_RANDOM)) { | ||
441 | /* | ||
442 | * This function might sleep, we want to call it first, | ||
443 | * outside of the atomic block. In SA_STATIC_ALLOC case, | ||
444 | * random driver's kmalloc will fail, but it is safe. | ||
445 | * If already initialized, random driver will not reinit. | ||
446 | * Yes, this might clear the entropy pool if the wrong | ||
447 | * driver is attempted to be loaded, without actually | ||
448 | * installing a new handler, but is this really a problem, | ||
449 | * only the sysadmin is able to do this. | ||
450 | */ | ||
451 | rand_initialize_irq(irq); | ||
452 | } | ||
453 | |||
454 | spin_lock_irqsave(&irq_action_lock, flags); | ||
455 | |||
456 | if (check_irq_sharing(bucket->pil, irqflags)) { | ||
457 | spin_unlock_irqrestore(&irq_action_lock, flags); | ||
458 | return -EBUSY; | ||
459 | } | ||
460 | 336 | ||
461 | action = get_action_slot(bucket); | 337 | if (likely(bucket)) { |
462 | if (!action) { | 338 | int err; |
463 | spin_unlock_irqrestore(&irq_action_lock, flags); | ||
464 | return -ENOMEM; | ||
465 | } | ||
466 | 339 | ||
467 | bucket->flags |= IBF_ACTIVE; | 340 | err = sun4v_intr_setenabled(ino, HV_INTR_DISABLED); |
468 | pending = 0; | 341 | if (err != HV_EOK) |
469 | if (bucket != &pil0_dummy_bucket) { | 342 | printk("sun4v_intr_setenabled(%x): " |
470 | pending = bucket->pending; | 343 | "err(%d)\n", ino, err); |
471 | if (pending) | ||
472 | bucket->pending = 0; | ||
473 | } | 344 | } |
345 | } | ||
474 | 346 | ||
475 | action->handler = handler; | 347 | static void sun4v_irq_end(unsigned int virt_irq) |
476 | action->flags = irqflags; | 348 | { |
477 | action->name = name; | 349 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
478 | action->next = NULL; | 350 | unsigned int ino = bucket - &ivector_table[0]; |
479 | action->dev_id = dev_id; | ||
480 | put_ino_in_irqaction(action, irq); | ||
481 | put_smpaff_in_irqaction(action, CPU_MASK_NONE); | ||
482 | |||
483 | append_irq_action(bucket->pil, action); | ||
484 | 351 | ||
485 | enable_irq(irq); | 352 | if (likely(bucket)) { |
353 | int err; | ||
486 | 354 | ||
487 | /* We ate the IVEC already, this makes sure it does not get lost. */ | 355 | err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE); |
488 | if (pending) { | 356 | if (err != HV_EOK) |
489 | atomic_bucket_insert(bucket); | 357 | printk("sun4v_intr_setstate(%x): " |
490 | set_softint(1 << bucket->pil); | 358 | "err(%d)\n", ino, err); |
491 | } | 359 | } |
360 | } | ||
492 | 361 | ||
493 | spin_unlock_irqrestore(&irq_action_lock, flags); | 362 | static void run_pre_handler(unsigned int virt_irq) |
494 | 363 | { | |
495 | if (bucket != &pil0_dummy_bucket) | 364 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
496 | register_irq_proc(__irq_ino(irq)); | 365 | irq_desc_t *desc = irq_desc + virt_irq; |
366 | struct irq_handler_data *data = desc->handler_data; | ||
497 | 367 | ||
498 | #ifdef CONFIG_SMP | 368 | if (likely(data->pre_handler)) { |
499 | distribute_irqs(); | 369 | data->pre_handler(__irq_ino(__irq(bucket)), |
500 | #endif | 370 | data->pre_handler_arg1, |
501 | return 0; | 371 | data->pre_handler_arg2); |
372 | } | ||
502 | } | 373 | } |
503 | 374 | ||
504 | EXPORT_SYMBOL(request_irq); | 375 | static struct hw_interrupt_type sun4u_irq = { |
376 | .typename = "sun4u", | ||
377 | .enable = sun4u_irq_enable, | ||
378 | .disable = sun4u_irq_disable, | ||
379 | .end = sun4u_irq_end, | ||
380 | }; | ||
505 | 381 | ||
506 | static struct irqaction *unlink_irq_action(unsigned int irq, void *dev_id) | 382 | static struct hw_interrupt_type sun4u_irq_ack = { |
507 | { | 383 | .typename = "sun4u+ack", |
508 | struct ino_bucket *bucket = __bucket(irq); | 384 | .enable = sun4u_irq_enable, |
509 | struct irqaction *action, **pp; | 385 | .disable = sun4u_irq_disable, |
386 | .ack = run_pre_handler, | ||
387 | .end = sun4u_irq_end, | ||
388 | }; | ||
510 | 389 | ||
511 | pp = irq_action + bucket->pil; | 390 | static struct hw_interrupt_type sun4v_irq = { |
512 | action = *pp; | 391 | .typename = "sun4v", |
513 | if (unlikely(!action)) | 392 | .enable = sun4v_irq_enable, |
514 | return NULL; | 393 | .disable = sun4v_irq_disable, |
394 | .end = sun4v_irq_end, | ||
395 | }; | ||
515 | 396 | ||
516 | if (unlikely(!action->handler)) { | 397 | static struct hw_interrupt_type sun4v_irq_ack = { |
517 | printk("Freeing free IRQ %d\n", bucket->pil); | 398 | .typename = "sun4v+ack", |
518 | return NULL; | 399 | .enable = sun4v_irq_enable, |
519 | } | 400 | .disable = sun4v_irq_disable, |
401 | .ack = run_pre_handler, | ||
402 | .end = sun4v_irq_end, | ||
403 | }; | ||
520 | 404 | ||
521 | while (action && action->dev_id != dev_id) { | 405 | void irq_install_pre_handler(int virt_irq, |
522 | pp = &action->next; | 406 | void (*func)(unsigned int, void *, void *), |
523 | action = *pp; | 407 | void *arg1, void *arg2) |
524 | } | 408 | { |
409 | irq_desc_t *desc = irq_desc + virt_irq; | ||
410 | struct irq_handler_data *data = desc->handler_data; | ||
525 | 411 | ||
526 | if (likely(action)) | 412 | data->pre_handler = func; |
527 | *pp = action->next; | 413 | data->pre_handler_arg1 = arg1; |
414 | data->pre_handler_arg2 = arg2; | ||
528 | 415 | ||
529 | return action; | 416 | desc->handler = (desc->handler == &sun4u_irq ? |
417 | &sun4u_irq_ack : &sun4v_irq_ack); | ||
530 | } | 418 | } |
531 | 419 | ||
532 | void free_irq(unsigned int irq, void *dev_id) | 420 | unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap) |
533 | { | 421 | { |
534 | struct irqaction *action; | ||
535 | struct ino_bucket *bucket; | 422 | struct ino_bucket *bucket; |
536 | unsigned long flags; | 423 | struct irq_handler_data *data; |
424 | irq_desc_t *desc; | ||
425 | int ino; | ||
537 | 426 | ||
538 | spin_lock_irqsave(&irq_action_lock, flags); | 427 | BUG_ON(tlb_type == hypervisor); |
539 | 428 | ||
540 | action = unlink_irq_action(irq, dev_id); | 429 | ino = (upa_readl(imap) & (IMAP_IGN | IMAP_INO)) + inofixup; |
430 | bucket = &ivector_table[ino]; | ||
431 | if (!bucket->virt_irq) { | ||
432 | bucket->virt_irq = virt_irq_alloc(__irq(bucket)); | ||
433 | irq_desc[bucket->virt_irq].handler = &sun4u_irq; | ||
434 | } | ||
541 | 435 | ||
542 | spin_unlock_irqrestore(&irq_action_lock, flags); | 436 | desc = irq_desc + bucket->virt_irq; |
437 | if (unlikely(desc->handler_data)) | ||
438 | goto out; | ||
543 | 439 | ||
544 | if (unlikely(!action)) | 440 | data = kzalloc(sizeof(struct irq_handler_data), GFP_ATOMIC); |
545 | return; | 441 | if (unlikely(!data)) { |
442 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); | ||
443 | prom_halt(); | ||
444 | } | ||
445 | desc->handler_data = data; | ||
546 | 446 | ||
547 | synchronize_irq(irq); | 447 | data->imap = imap; |
448 | data->iclr = iclr; | ||
548 | 449 | ||
549 | spin_lock_irqsave(&irq_action_lock, flags); | 450 | out: |
451 | return bucket->virt_irq; | ||
452 | } | ||
550 | 453 | ||
551 | bucket = __bucket(irq); | 454 | unsigned int sun4v_build_irq(u32 devhandle, unsigned int devino) |
552 | if (bucket != &pil0_dummy_bucket) { | 455 | { |
553 | struct irq_desc *desc = bucket->irq_info; | 456 | struct ino_bucket *bucket; |
554 | int ent, i; | 457 | struct irq_handler_data *data; |
458 | unsigned long sysino; | ||
459 | irq_desc_t *desc; | ||
555 | 460 | ||
556 | for (i = 0; i < MAX_IRQ_DESC_ACTION; i++) { | 461 | BUG_ON(tlb_type != hypervisor); |
557 | struct irqaction *p = &desc->action[i]; | ||
558 | 462 | ||
559 | if (p == action) { | 463 | sysino = sun4v_devino_to_sysino(devhandle, devino); |
560 | desc->action_active_mask &= ~(1 << i); | 464 | bucket = &ivector_table[sysino]; |
561 | break; | 465 | if (!bucket->virt_irq) { |
562 | } | 466 | bucket->virt_irq = virt_irq_alloc(__irq(bucket)); |
563 | } | 467 | irq_desc[bucket->virt_irq].handler = &sun4v_irq; |
468 | } | ||
564 | 469 | ||
565 | if (!desc->action_active_mask) { | 470 | desc = irq_desc + bucket->virt_irq; |
566 | unsigned long imap = bucket->imap; | 471 | if (unlikely(desc->handler_data)) |
567 | 472 | goto out; | |
568 | /* This unique interrupt source is now inactive. */ | ||
569 | bucket->flags &= ~IBF_ACTIVE; | ||
570 | |||
571 | /* See if any other buckets share this bucket's IMAP | ||
572 | * and are still active. | ||
573 | */ | ||
574 | for (ent = 0; ent < NUM_IVECS; ent++) { | ||
575 | struct ino_bucket *bp = &ivector_table[ent]; | ||
576 | if (bp != bucket && | ||
577 | bp->imap == imap && | ||
578 | (bp->flags & IBF_ACTIVE) != 0) | ||
579 | break; | ||
580 | } | ||
581 | 473 | ||
582 | /* Only disable when no other sub-irq levels of | 474 | data = kzalloc(sizeof(struct irq_handler_data), GFP_ATOMIC); |
583 | * the same IMAP are active. | 475 | if (unlikely(!data)) { |
584 | */ | 476 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); |
585 | if (ent == NUM_IVECS) | 477 | prom_halt(); |
586 | disable_irq(irq); | ||
587 | } | ||
588 | } | 478 | } |
479 | desc->handler_data = data; | ||
589 | 480 | ||
590 | spin_unlock_irqrestore(&irq_action_lock, flags); | 481 | /* Catch accidental accesses to these things. IMAP/ICLR handling |
591 | } | 482 | * is done by hypervisor calls on sun4v platforms, not by direct |
483 | * register accesses. | ||
484 | */ | ||
485 | data->imap = ~0UL; | ||
486 | data->iclr = ~0UL; | ||
592 | 487 | ||
593 | EXPORT_SYMBOL(free_irq); | 488 | out: |
489 | return bucket->virt_irq; | ||
490 | } | ||
594 | 491 | ||
595 | #ifdef CONFIG_SMP | 492 | void hw_resend_irq(struct hw_interrupt_type *handler, unsigned int virt_irq) |
596 | void synchronize_irq(unsigned int irq) | ||
597 | { | 493 | { |
598 | struct ino_bucket *bucket = __bucket(irq); | 494 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
599 | 495 | unsigned long pstate; | |
600 | #if 0 | 496 | unsigned int *ent; |
601 | /* The following is how I wish I could implement this. | 497 | |
602 | * Unfortunately the ICLR registers are read-only, you can | 498 | __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); |
603 | * only write ICLR_foo values to them. To get the current | 499 | __asm__ __volatile__("wrpr %0, %1, %%pstate" |
604 | * IRQ status you would need to get at the IRQ diag registers | 500 | : : "r" (pstate), "i" (PSTATE_IE)); |
605 | * in the PCI/SBUS controller and the layout of those vary | 501 | ent = irq_work(smp_processor_id()); |
606 | * from one controller to the next, sigh... -DaveM | 502 | bucket->irq_chain = *ent; |
607 | */ | 503 | *ent = __irq(bucket); |
608 | unsigned long iclr = bucket->iclr; | 504 | set_softint(1 << PIL_DEVICE_IRQ); |
609 | 505 | __asm__ __volatile__("wrpr %0, 0x0, %%pstate" : : "r" (pstate)); | |
610 | while (1) { | ||
611 | u32 tmp = upa_readl(iclr); | ||
612 | |||
613 | if (tmp == ICLR_TRANSMIT || | ||
614 | tmp == ICLR_PENDING) { | ||
615 | cpu_relax(); | ||
616 | continue; | ||
617 | } | ||
618 | break; | ||
619 | } | ||
620 | #else | ||
621 | /* So we have to do this with a INPROGRESS bit just like x86. */ | ||
622 | while (bucket->flags & IBF_INPROGRESS) | ||
623 | cpu_relax(); | ||
624 | #endif | ||
625 | } | 506 | } |
626 | #endif /* CONFIG_SMP */ | ||
627 | 507 | ||
628 | static void process_bucket(int irq, struct ino_bucket *bp, struct pt_regs *regs) | 508 | void ack_bad_irq(unsigned int virt_irq) |
629 | { | 509 | { |
630 | struct irq_desc *desc = bp->irq_info; | 510 | struct ino_bucket *bucket = virt_irq_to_bucket(virt_irq); |
631 | unsigned char flags = bp->flags; | 511 | unsigned int ino = 0xdeadbeef; |
632 | u32 action_mask, i; | ||
633 | int random; | ||
634 | 512 | ||
635 | bp->flags |= IBF_INPROGRESS; | 513 | if (bucket) |
514 | ino = bucket - &ivector_table[0]; | ||
636 | 515 | ||
637 | if (unlikely(!(flags & IBF_ACTIVE))) { | 516 | printk(KERN_CRIT "Unexpected IRQ from ino[%x] virt_irq[%u]\n", |
638 | bp->pending = 1; | 517 | ino, virt_irq); |
639 | goto out; | 518 | } |
640 | } | ||
641 | |||
642 | if (desc->pre_handler) | ||
643 | desc->pre_handler(bp, | ||
644 | desc->pre_handler_arg1, | ||
645 | desc->pre_handler_arg2); | ||
646 | 519 | ||
647 | action_mask = desc->action_active_mask; | 520 | #ifndef CONFIG_SMP |
648 | random = 0; | 521 | extern irqreturn_t timer_interrupt(int, void *, struct pt_regs *); |
649 | for (i = 0; i < MAX_IRQ_DESC_ACTION; i++) { | ||
650 | struct irqaction *p = &desc->action[i]; | ||
651 | u32 mask = (1 << i); | ||
652 | 522 | ||
653 | if (!(action_mask & mask)) | 523 | void timer_irq(int irq, struct pt_regs *regs) |
654 | continue; | 524 | { |
525 | unsigned long clr_mask = 1 << irq; | ||
526 | unsigned long tick_mask = tick_ops->softint_mask; | ||
655 | 527 | ||
656 | action_mask &= ~mask; | 528 | if (get_softint() & tick_mask) { |
529 | irq = 0; | ||
530 | clr_mask = tick_mask; | ||
531 | } | ||
532 | clear_softint(clr_mask); | ||
657 | 533 | ||
658 | if (p->handler(__irq(bp), p->dev_id, regs) == IRQ_HANDLED) | 534 | irq_enter(); |
659 | random |= p->flags; | ||
660 | 535 | ||
661 | if (!action_mask) | 536 | kstat_this_cpu.irqs[0]++; |
662 | break; | 537 | timer_interrupt(irq, NULL, regs); |
663 | } | ||
664 | if (bp->pil != 0) { | ||
665 | if (tlb_type == hypervisor) { | ||
666 | unsigned int ino = __irq_ino(bp); | ||
667 | int err; | ||
668 | |||
669 | err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE); | ||
670 | if (err != HV_EOK) | ||
671 | printk("sun4v_intr_setstate(%x): " | ||
672 | "err(%d)\n", ino, err); | ||
673 | } else { | ||
674 | upa_writel(ICLR_IDLE, bp->iclr); | ||
675 | } | ||
676 | 538 | ||
677 | /* Test and add entropy */ | 539 | irq_exit(); |
678 | if (random & SA_SAMPLE_RANDOM) | ||
679 | add_interrupt_randomness(irq); | ||
680 | } | ||
681 | out: | ||
682 | bp->flags &= ~IBF_INPROGRESS; | ||
683 | } | 540 | } |
541 | #endif | ||
684 | 542 | ||
685 | void handler_irq(int irq, struct pt_regs *regs) | 543 | void handler_irq(int irq, struct pt_regs *regs) |
686 | { | 544 | { |
687 | struct ino_bucket *bp; | 545 | struct ino_bucket *bucket; |
688 | int cpu = smp_processor_id(); | ||
689 | |||
690 | #ifndef CONFIG_SMP | ||
691 | /* | ||
692 | * Check for TICK_INT on level 14 softint. | ||
693 | */ | ||
694 | { | ||
695 | unsigned long clr_mask = 1 << irq; | ||
696 | unsigned long tick_mask = tick_ops->softint_mask; | ||
697 | 546 | ||
698 | if ((irq == 14) && (get_softint() & tick_mask)) { | ||
699 | irq = 0; | ||
700 | clr_mask = tick_mask; | ||
701 | } | ||
702 | clear_softint(clr_mask); | ||
703 | } | ||
704 | #else | ||
705 | clear_softint(1 << irq); | 547 | clear_softint(1 << irq); |
706 | #endif | ||
707 | 548 | ||
708 | irq_enter(); | 549 | irq_enter(); |
709 | kstat_this_cpu.irqs[irq]++; | ||
710 | 550 | ||
711 | /* Sliiiick... */ | 551 | /* Sliiiick... */ |
712 | #ifndef CONFIG_SMP | 552 | bucket = __bucket(xchg32(irq_work(smp_processor_id()), 0)); |
713 | bp = ((irq != 0) ? | 553 | while (bucket) { |
714 | __bucket(xchg32(irq_work(cpu, irq), 0)) : | 554 | struct ino_bucket *next = __bucket(bucket->irq_chain); |
715 | &pil0_dummy_bucket); | ||
716 | #else | ||
717 | bp = __bucket(xchg32(irq_work(cpu, irq), 0)); | ||
718 | #endif | ||
719 | while (bp) { | ||
720 | struct ino_bucket *nbp = __bucket(bp->irq_chain); | ||
721 | 555 | ||
722 | bp->irq_chain = 0; | 556 | bucket->irq_chain = 0; |
723 | process_bucket(irq, bp, regs); | 557 | __do_IRQ(bucket->virt_irq, regs); |
724 | bp = nbp; | 558 | |
559 | bucket = next; | ||
725 | } | 560 | } |
561 | |||
726 | irq_exit(); | 562 | irq_exit(); |
727 | } | 563 | } |
728 | 564 | ||
@@ -787,81 +623,6 @@ main_interrupt: | |||
787 | EXPORT_SYMBOL(sparc_floppy_irq); | 623 | EXPORT_SYMBOL(sparc_floppy_irq); |
788 | #endif | 624 | #endif |
789 | 625 | ||
790 | /* We really don't need these at all on the Sparc. We only have | ||
791 | * stubs here because they are exported to modules. | ||
792 | */ | ||
793 | unsigned long probe_irq_on(void) | ||
794 | { | ||
795 | return 0; | ||
796 | } | ||
797 | |||
798 | EXPORT_SYMBOL(probe_irq_on); | ||
799 | |||
800 | int probe_irq_off(unsigned long mask) | ||
801 | { | ||
802 | return 0; | ||
803 | } | ||
804 | |||
805 | EXPORT_SYMBOL(probe_irq_off); | ||
806 | |||
807 | #ifdef CONFIG_SMP | ||
808 | static int retarget_one_irq(struct irqaction *p, int goal_cpu) | ||
809 | { | ||
810 | struct ino_bucket *bucket = get_ino_in_irqaction(p) + ivector_table; | ||
811 | |||
812 | while (!cpu_online(goal_cpu)) { | ||
813 | if (++goal_cpu >= NR_CPUS) | ||
814 | goal_cpu = 0; | ||
815 | } | ||
816 | |||
817 | if (tlb_type == hypervisor) { | ||
818 | unsigned int ino = __irq_ino(bucket); | ||
819 | |||
820 | sun4v_intr_settarget(ino, goal_cpu); | ||
821 | sun4v_intr_setenabled(ino, HV_INTR_ENABLED); | ||
822 | } else { | ||
823 | unsigned long imap = bucket->imap; | ||
824 | unsigned int tid = sun4u_compute_tid(imap, goal_cpu); | ||
825 | |||
826 | upa_writel(tid | IMAP_VALID, imap); | ||
827 | } | ||
828 | |||
829 | do { | ||
830 | if (++goal_cpu >= NR_CPUS) | ||
831 | goal_cpu = 0; | ||
832 | } while (!cpu_online(goal_cpu)); | ||
833 | |||
834 | return goal_cpu; | ||
835 | } | ||
836 | |||
837 | /* Called from request_irq. */ | ||
838 | static void distribute_irqs(void) | ||
839 | { | ||
840 | unsigned long flags; | ||
841 | int cpu, level; | ||
842 | |||
843 | spin_lock_irqsave(&irq_action_lock, flags); | ||
844 | cpu = 0; | ||
845 | |||
846 | /* | ||
847 | * Skip the timer at [0], and very rare error/power intrs at [15]. | ||
848 | * Also level [12], it causes problems on Ex000 systems. | ||
849 | */ | ||
850 | for (level = 1; level < NR_IRQS; level++) { | ||
851 | struct irqaction *p = irq_action[level]; | ||
852 | |||
853 | if (level == 12) | ||
854 | continue; | ||
855 | |||
856 | while(p) { | ||
857 | cpu = retarget_one_irq(p, cpu); | ||
858 | p = p->next; | ||
859 | } | ||
860 | } | ||
861 | spin_unlock_irqrestore(&irq_action_lock, flags); | ||
862 | } | ||
863 | #endif | ||
864 | |||
865 | struct sun5_timer { | 626 | struct sun5_timer { |
866 | u64 count0; | 627 | u64 count0; |
867 | u64 limit0; | 628 | u64 limit0; |
@@ -929,7 +690,7 @@ void init_irqwork_curcpu(void) | |||
929 | { | 690 | { |
930 | int cpu = hard_smp_processor_id(); | 691 | int cpu = hard_smp_processor_id(); |
931 | 692 | ||
932 | memset(__irq_work + cpu, 0, sizeof(struct irq_work_struct)); | 693 | trap_block[cpu].irq_worklist = 0; |
933 | } | 694 | } |
934 | 695 | ||
935 | static void __cpuinit register_one_mondo(unsigned long paddr, unsigned long type) | 696 | static void __cpuinit register_one_mondo(unsigned long paddr, unsigned long type) |
@@ -1037,6 +798,10 @@ void __cpuinit sun4v_init_mondo_queues(int use_bootmem, int cpu, int alloc, int | |||
1037 | } | 798 | } |
1038 | } | 799 | } |
1039 | 800 | ||
801 | static struct irqaction timer_irq_action = { | ||
802 | .name = "timer", | ||
803 | }; | ||
804 | |||
1040 | /* Only invoked on boot processor. */ | 805 | /* Only invoked on boot processor. */ |
1041 | void __init init_IRQ(void) | 806 | void __init init_IRQ(void) |
1042 | { | 807 | { |
@@ -1064,109 +829,6 @@ void __init init_IRQ(void) | |||
1064 | : /* No outputs */ | 829 | : /* No outputs */ |
1065 | : "i" (PSTATE_IE) | 830 | : "i" (PSTATE_IE) |
1066 | : "g1"); | 831 | : "g1"); |
1067 | } | ||
1068 | 832 | ||
1069 | static struct proc_dir_entry * root_irq_dir; | 833 | irq_desc[0].action = &timer_irq_action; |
1070 | static struct proc_dir_entry * irq_dir [NUM_IVECS]; | ||
1071 | |||
1072 | #ifdef CONFIG_SMP | ||
1073 | |||
1074 | static int irq_affinity_read_proc (char *page, char **start, off_t off, | ||
1075 | int count, int *eof, void *data) | ||
1076 | { | ||
1077 | struct ino_bucket *bp = ivector_table + (long)data; | ||
1078 | struct irq_desc *desc = bp->irq_info; | ||
1079 | struct irqaction *ap = desc->action; | ||
1080 | cpumask_t mask; | ||
1081 | int len; | ||
1082 | |||
1083 | mask = get_smpaff_in_irqaction(ap); | ||
1084 | if (cpus_empty(mask)) | ||
1085 | mask = cpu_online_map; | ||
1086 | |||
1087 | len = cpumask_scnprintf(page, count, mask); | ||
1088 | if (count - len < 2) | ||
1089 | return -EINVAL; | ||
1090 | len += sprintf(page + len, "\n"); | ||
1091 | return len; | ||
1092 | } | ||
1093 | |||
1094 | static inline void set_intr_affinity(int irq, cpumask_t hw_aff) | ||
1095 | { | ||
1096 | struct ino_bucket *bp = ivector_table + irq; | ||
1097 | struct irq_desc *desc = bp->irq_info; | ||
1098 | struct irqaction *ap = desc->action; | ||
1099 | |||
1100 | /* Users specify affinity in terms of hw cpu ids. | ||
1101 | * As soon as we do this, handler_irq() might see and take action. | ||
1102 | */ | ||
1103 | put_smpaff_in_irqaction(ap, hw_aff); | ||
1104 | |||
1105 | /* Migration is simply done by the next cpu to service this | ||
1106 | * interrupt. | ||
1107 | */ | ||
1108 | } | ||
1109 | |||
1110 | static int irq_affinity_write_proc (struct file *file, const char __user *buffer, | ||
1111 | unsigned long count, void *data) | ||
1112 | { | ||
1113 | int irq = (long) data, full_count = count, err; | ||
1114 | cpumask_t new_value; | ||
1115 | |||
1116 | err = cpumask_parse(buffer, count, new_value); | ||
1117 | |||
1118 | /* | ||
1119 | * Do not allow disabling IRQs completely - it's a too easy | ||
1120 | * way to make the system unusable accidentally :-) At least | ||
1121 | * one online CPU still has to be targeted. | ||
1122 | */ | ||
1123 | cpus_and(new_value, new_value, cpu_online_map); | ||
1124 | if (cpus_empty(new_value)) | ||
1125 | return -EINVAL; | ||
1126 | |||
1127 | set_intr_affinity(irq, new_value); | ||
1128 | |||
1129 | return full_count; | ||
1130 | } | 834 | } |
1131 | |||
1132 | #endif | ||
1133 | |||
1134 | #define MAX_NAMELEN 10 | ||
1135 | |||
1136 | static void register_irq_proc (unsigned int irq) | ||
1137 | { | ||
1138 | char name [MAX_NAMELEN]; | ||
1139 | |||
1140 | if (!root_irq_dir || irq_dir[irq]) | ||
1141 | return; | ||
1142 | |||
1143 | memset(name, 0, MAX_NAMELEN); | ||
1144 | sprintf(name, "%x", irq); | ||
1145 | |||
1146 | /* create /proc/irq/1234 */ | ||
1147 | irq_dir[irq] = proc_mkdir(name, root_irq_dir); | ||
1148 | |||
1149 | #ifdef CONFIG_SMP | ||
1150 | /* XXX SMP affinity not supported on starfire yet. */ | ||
1151 | if (this_is_starfire == 0) { | ||
1152 | struct proc_dir_entry *entry; | ||
1153 | |||
1154 | /* create /proc/irq/1234/smp_affinity */ | ||
1155 | entry = create_proc_entry("smp_affinity", 0600, irq_dir[irq]); | ||
1156 | |||
1157 | if (entry) { | ||
1158 | entry->nlink = 1; | ||
1159 | entry->data = (void *)(long)irq; | ||
1160 | entry->read_proc = irq_affinity_read_proc; | ||
1161 | entry->write_proc = irq_affinity_write_proc; | ||
1162 | } | ||
1163 | } | ||
1164 | #endif | ||
1165 | } | ||
1166 | |||
1167 | void init_irq_proc (void) | ||
1168 | { | ||
1169 | /* create /proc/irq */ | ||
1170 | root_irq_dir = proc_mkdir("irq", NULL); | ||
1171 | } | ||
1172 | |||
diff --git a/arch/sparc64/kernel/module.c b/arch/sparc64/kernel/module.c index 6c83e372f75d..579871527699 100644 --- a/arch/sparc64/kernel/module.c +++ b/arch/sparc64/kernel/module.c | |||
@@ -143,6 +143,11 @@ int apply_relocate_add(Elf64_Shdr *sechdrs, | |||
143 | location[3] = v >> 0; | 143 | location[3] = v >> 0; |
144 | break; | 144 | break; |
145 | 145 | ||
146 | case R_SPARC_DISP32: | ||
147 | v -= (Elf64_Addr) location; | ||
148 | *loc32 = v; | ||
149 | break; | ||
150 | |||
146 | case R_SPARC_WDISP30: | 151 | case R_SPARC_WDISP30: |
147 | v -= (Elf64_Addr) location; | 152 | v -= (Elf64_Addr) location; |
148 | *loc32 = (*loc32 & ~0x3fffffff) | | 153 | *loc32 = (*loc32 & ~0x3fffffff) | |
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index f97ddeb105ac..9472580a4319 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -47,12 +47,6 @@ struct pci_controller_info *pci_controller_root = NULL; | |||
47 | /* Each PCI controller found gets a unique index. */ | 47 | /* Each PCI controller found gets a unique index. */ |
48 | int pci_num_controllers = 0; | 48 | int pci_num_controllers = 0; |
49 | 49 | ||
50 | /* At boot time the user can give the kernel a command | ||
51 | * line option which controls if and how PCI devices | ||
52 | * are reordered at PCI bus probing time. | ||
53 | */ | ||
54 | int pci_device_reorder = 0; | ||
55 | |||
56 | volatile int pci_poke_in_progress; | 50 | volatile int pci_poke_in_progress; |
57 | volatile int pci_poke_cpu = -1; | 51 | volatile int pci_poke_cpu = -1; |
58 | volatile int pci_poke_faulted; | 52 | volatile int pci_poke_faulted; |
@@ -316,27 +310,6 @@ static void __init pci_scan_each_controller_bus(void) | |||
316 | p->scan_bus(p); | 310 | p->scan_bus(p); |
317 | } | 311 | } |
318 | 312 | ||
319 | /* Reorder the pci_dev chain, so that onboard devices come first | ||
320 | * and then come the pluggable cards. | ||
321 | */ | ||
322 | static void __init pci_reorder_devs(void) | ||
323 | { | ||
324 | struct list_head *pci_onboard = &pci_devices; | ||
325 | struct list_head *walk = pci_onboard->next; | ||
326 | |||
327 | while (walk != pci_onboard) { | ||
328 | struct pci_dev *pdev = pci_dev_g(walk); | ||
329 | struct list_head *walk_next = walk->next; | ||
330 | |||
331 | if (pdev->irq && (__irq_ino(pdev->irq) & 0x20)) { | ||
332 | list_del(walk); | ||
333 | list_add(walk, pci_onboard); | ||
334 | } | ||
335 | |||
336 | walk = walk_next; | ||
337 | } | ||
338 | } | ||
339 | |||
340 | extern void clock_probe(void); | 313 | extern void clock_probe(void); |
341 | extern void power_init(void); | 314 | extern void power_init(void); |
342 | 315 | ||
@@ -348,9 +321,6 @@ static int __init pcibios_init(void) | |||
348 | 321 | ||
349 | pci_scan_each_controller_bus(); | 322 | pci_scan_each_controller_bus(); |
350 | 323 | ||
351 | if (pci_device_reorder) | ||
352 | pci_reorder_devs(); | ||
353 | |||
354 | isa_init(); | 324 | isa_init(); |
355 | ebus_init(); | 325 | ebus_init(); |
356 | clock_probe(); | 326 | clock_probe(); |
@@ -441,14 +411,6 @@ EXPORT_SYMBOL(pcibios_bus_to_resource); | |||
441 | 411 | ||
442 | char * __init pcibios_setup(char *str) | 412 | char * __init pcibios_setup(char *str) |
443 | { | 413 | { |
444 | if (!strcmp(str, "onboardfirst")) { | ||
445 | pci_device_reorder = 1; | ||
446 | return NULL; | ||
447 | } | ||
448 | if (!strcmp(str, "noreorder")) { | ||
449 | pci_device_reorder = 0; | ||
450 | return NULL; | ||
451 | } | ||
452 | return str; | 414 | return str; |
453 | } | 415 | } |
454 | 416 | ||
diff --git a/arch/sparc64/kernel/pci_iommu.c b/arch/sparc64/kernel/pci_iommu.c index 8efbc139769d..82e5455134c6 100644 --- a/arch/sparc64/kernel/pci_iommu.c +++ b/arch/sparc64/kernel/pci_iommu.c | |||
@@ -218,7 +218,7 @@ static inline void iommu_free_ctx(struct pci_iommu *iommu, int ctx) | |||
218 | * DMA for PCI device PDEV. Return non-NULL cpu-side address if | 218 | * DMA for PCI device PDEV. Return non-NULL cpu-side address if |
219 | * successful and set *DMA_ADDRP to the PCI side dma address. | 219 | * successful and set *DMA_ADDRP to the PCI side dma address. |
220 | */ | 220 | */ |
221 | static void *pci_4u_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp) | 221 | static void *pci_4u_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp, gfp_t gfp) |
222 | { | 222 | { |
223 | struct pcidev_cookie *pcp; | 223 | struct pcidev_cookie *pcp; |
224 | struct pci_iommu *iommu; | 224 | struct pci_iommu *iommu; |
@@ -232,7 +232,7 @@ static void *pci_4u_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr | |||
232 | if (order >= 10) | 232 | if (order >= 10) |
233 | return NULL; | 233 | return NULL; |
234 | 234 | ||
235 | first_page = __get_free_pages(GFP_ATOMIC, order); | 235 | first_page = __get_free_pages(gfp, order); |
236 | if (first_page == 0UL) | 236 | if (first_page == 0UL) |
237 | return NULL; | 237 | return NULL; |
238 | memset((char *)first_page, 0, PAGE_SIZE << order); | 238 | memset((char *)first_page, 0, PAGE_SIZE << order); |
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c index d17878b145c2..24db22aa9728 100644 --- a/arch/sparc64/kernel/pci_psycho.c +++ b/arch/sparc64/kernel/pci_psycho.c | |||
@@ -276,82 +276,13 @@ static unsigned long __onboard_imap_off[] = { | |||
276 | ((ino & 0x20) ? (PSYCHO_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \ | 276 | ((ino & 0x20) ? (PSYCHO_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \ |
277 | (PSYCHO_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3))) | 277 | (PSYCHO_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3))) |
278 | 278 | ||
279 | /* PCI PSYCHO INO number to Sparc PIL level. */ | ||
280 | static unsigned char psycho_pil_table[] = { | ||
281 | /*0x00*/0, 0, 0, 0, /* PCI A slot 0 Int A, B, C, D */ | ||
282 | /*0x04*/0, 0, 0, 0, /* PCI A slot 1 Int A, B, C, D */ | ||
283 | /*0x08*/0, 0, 0, 0, /* PCI A slot 2 Int A, B, C, D */ | ||
284 | /*0x0c*/0, 0, 0, 0, /* PCI A slot 3 Int A, B, C, D */ | ||
285 | /*0x10*/0, 0, 0, 0, /* PCI B slot 0 Int A, B, C, D */ | ||
286 | /*0x14*/0, 0, 0, 0, /* PCI B slot 1 Int A, B, C, D */ | ||
287 | /*0x18*/0, 0, 0, 0, /* PCI B slot 2 Int A, B, C, D */ | ||
288 | /*0x1c*/0, 0, 0, 0, /* PCI B slot 3 Int A, B, C, D */ | ||
289 | /*0x20*/5, /* SCSI */ | ||
290 | /*0x21*/5, /* Ethernet */ | ||
291 | /*0x22*/8, /* Parallel Port */ | ||
292 | /*0x23*/13, /* Audio Record */ | ||
293 | /*0x24*/14, /* Audio Playback */ | ||
294 | /*0x25*/15, /* PowerFail */ | ||
295 | /*0x26*/5, /* second SCSI */ | ||
296 | /*0x27*/11, /* Floppy */ | ||
297 | /*0x28*/5, /* Spare Hardware */ | ||
298 | /*0x29*/9, /* Keyboard */ | ||
299 | /*0x2a*/5, /* Mouse */ | ||
300 | /*0x2b*/12, /* Serial */ | ||
301 | /*0x2c*/10, /* Timer 0 */ | ||
302 | /*0x2d*/11, /* Timer 1 */ | ||
303 | /*0x2e*/15, /* Uncorrectable ECC */ | ||
304 | /*0x2f*/15, /* Correctable ECC */ | ||
305 | /*0x30*/15, /* PCI Bus A Error */ | ||
306 | /*0x31*/15, /* PCI Bus B Error */ | ||
307 | /*0x32*/15, /* Power Management */ | ||
308 | }; | ||
309 | |||
310 | static int psycho_ino_to_pil(struct pci_dev *pdev, unsigned int ino) | ||
311 | { | ||
312 | int ret; | ||
313 | |||
314 | ret = psycho_pil_table[ino]; | ||
315 | if (ret == 0 && pdev == NULL) { | ||
316 | ret = 5; | ||
317 | } else if (ret == 0) { | ||
318 | switch ((pdev->class >> 16) & 0xff) { | ||
319 | case PCI_BASE_CLASS_STORAGE: | ||
320 | ret = 5; | ||
321 | break; | ||
322 | |||
323 | case PCI_BASE_CLASS_NETWORK: | ||
324 | ret = 6; | ||
325 | break; | ||
326 | |||
327 | case PCI_BASE_CLASS_DISPLAY: | ||
328 | ret = 9; | ||
329 | break; | ||
330 | |||
331 | case PCI_BASE_CLASS_MULTIMEDIA: | ||
332 | case PCI_BASE_CLASS_MEMORY: | ||
333 | case PCI_BASE_CLASS_BRIDGE: | ||
334 | case PCI_BASE_CLASS_SERIAL: | ||
335 | ret = 10; | ||
336 | break; | ||
337 | |||
338 | default: | ||
339 | ret = 5; | ||
340 | break; | ||
341 | }; | ||
342 | } | ||
343 | |||
344 | return ret; | ||
345 | } | ||
346 | |||
347 | static unsigned int psycho_irq_build(struct pci_pbm_info *pbm, | 279 | static unsigned int psycho_irq_build(struct pci_pbm_info *pbm, |
348 | struct pci_dev *pdev, | 280 | struct pci_dev *pdev, |
349 | unsigned int ino) | 281 | unsigned int ino) |
350 | { | 282 | { |
351 | struct ino_bucket *bucket; | ||
352 | unsigned long imap, iclr; | 283 | unsigned long imap, iclr; |
353 | unsigned long imap_off, iclr_off; | 284 | unsigned long imap_off, iclr_off; |
354 | int pil, inofixup = 0; | 285 | int inofixup = 0; |
355 | 286 | ||
356 | ino &= PCI_IRQ_INO; | 287 | ino &= PCI_IRQ_INO; |
357 | if (ino < PSYCHO_ONBOARD_IRQ_BASE) { | 288 | if (ino < PSYCHO_ONBOARD_IRQ_BASE) { |
@@ -367,11 +298,6 @@ static unsigned int psycho_irq_build(struct pci_pbm_info *pbm, | |||
367 | } | 298 | } |
368 | 299 | ||
369 | /* Now build the IRQ bucket. */ | 300 | /* Now build the IRQ bucket. */ |
370 | pil = psycho_ino_to_pil(pdev, ino); | ||
371 | |||
372 | if (PIL_RESERVED(pil)) | ||
373 | BUG(); | ||
374 | |||
375 | imap = pbm->controller_regs + imap_off; | 301 | imap = pbm->controller_regs + imap_off; |
376 | imap += 4; | 302 | imap += 4; |
377 | 303 | ||
@@ -382,10 +308,7 @@ static unsigned int psycho_irq_build(struct pci_pbm_info *pbm, | |||
382 | if ((ino & 0x20) == 0) | 308 | if ((ino & 0x20) == 0) |
383 | inofixup = ino & 0x03; | 309 | inofixup = ino & 0x03; |
384 | 310 | ||
385 | bucket = __bucket(build_irq(pil, inofixup, iclr, imap)); | 311 | return build_irq(inofixup, iclr, imap); |
386 | bucket->flags |= IBF_PCI; | ||
387 | |||
388 | return __irq(bucket); | ||
389 | } | 312 | } |
390 | 313 | ||
391 | /* PSYCHO error handling support. */ | 314 | /* PSYCHO error handling support. */ |
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c index f67bb7f078cf..b7d997b55f0a 100644 --- a/arch/sparc64/kernel/pci_sabre.c +++ b/arch/sparc64/kernel/pci_sabre.c | |||
@@ -523,78 +523,6 @@ static unsigned long __onboard_imap_off[] = { | |||
523 | ((ino & 0x20) ? (SABRE_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \ | 523 | ((ino & 0x20) ? (SABRE_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \ |
524 | (SABRE_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3))) | 524 | (SABRE_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3))) |
525 | 525 | ||
526 | /* PCI SABRE INO number to Sparc PIL level. */ | ||
527 | static unsigned char sabre_pil_table[] = { | ||
528 | /*0x00*/0, 0, 0, 0, /* PCI A slot 0 Int A, B, C, D */ | ||
529 | /*0x04*/0, 0, 0, 0, /* PCI A slot 1 Int A, B, C, D */ | ||
530 | /*0x08*/0, 0, 0, 0, /* PCI A slot 2 Int A, B, C, D */ | ||
531 | /*0x0c*/0, 0, 0, 0, /* PCI A slot 3 Int A, B, C, D */ | ||
532 | /*0x10*/0, 0, 0, 0, /* PCI B slot 0 Int A, B, C, D */ | ||
533 | /*0x14*/0, 0, 0, 0, /* PCI B slot 1 Int A, B, C, D */ | ||
534 | /*0x18*/0, 0, 0, 0, /* PCI B slot 2 Int A, B, C, D */ | ||
535 | /*0x1c*/0, 0, 0, 0, /* PCI B slot 3 Int A, B, C, D */ | ||
536 | /*0x20*/5, /* SCSI */ | ||
537 | /*0x21*/5, /* Ethernet */ | ||
538 | /*0x22*/8, /* Parallel Port */ | ||
539 | /*0x23*/13, /* Audio Record */ | ||
540 | /*0x24*/14, /* Audio Playback */ | ||
541 | /*0x25*/15, /* PowerFail */ | ||
542 | /*0x26*/5, /* second SCSI */ | ||
543 | /*0x27*/11, /* Floppy */ | ||
544 | /*0x28*/5, /* Spare Hardware */ | ||
545 | /*0x29*/9, /* Keyboard */ | ||
546 | /*0x2a*/5, /* Mouse */ | ||
547 | /*0x2b*/12, /* Serial */ | ||
548 | /*0x2c*/10, /* Timer 0 */ | ||
549 | /*0x2d*/11, /* Timer 1 */ | ||
550 | /*0x2e*/15, /* Uncorrectable ECC */ | ||
551 | /*0x2f*/15, /* Correctable ECC */ | ||
552 | /*0x30*/15, /* PCI Bus A Error */ | ||
553 | /*0x31*/15, /* PCI Bus B Error */ | ||
554 | /*0x32*/15, /* Power Management */ | ||
555 | }; | ||
556 | |||
557 | static int sabre_ino_to_pil(struct pci_dev *pdev, unsigned int ino) | ||
558 | { | ||
559 | int ret; | ||
560 | |||
561 | if (pdev && | ||
562 | pdev->vendor == PCI_VENDOR_ID_SUN && | ||
563 | pdev->device == PCI_DEVICE_ID_SUN_RIO_USB) | ||
564 | return 9; | ||
565 | |||
566 | ret = sabre_pil_table[ino]; | ||
567 | if (ret == 0 && pdev == NULL) { | ||
568 | ret = 5; | ||
569 | } else if (ret == 0) { | ||
570 | switch ((pdev->class >> 16) & 0xff) { | ||
571 | case PCI_BASE_CLASS_STORAGE: | ||
572 | ret = 5; | ||
573 | break; | ||
574 | |||
575 | case PCI_BASE_CLASS_NETWORK: | ||
576 | ret = 6; | ||
577 | break; | ||
578 | |||
579 | case PCI_BASE_CLASS_DISPLAY: | ||
580 | ret = 9; | ||
581 | break; | ||
582 | |||
583 | case PCI_BASE_CLASS_MULTIMEDIA: | ||
584 | case PCI_BASE_CLASS_MEMORY: | ||
585 | case PCI_BASE_CLASS_BRIDGE: | ||
586 | case PCI_BASE_CLASS_SERIAL: | ||
587 | ret = 10; | ||
588 | break; | ||
589 | |||
590 | default: | ||
591 | ret = 5; | ||
592 | break; | ||
593 | }; | ||
594 | } | ||
595 | return ret; | ||
596 | } | ||
597 | |||
598 | /* When a device lives behind a bridge deeper in the PCI bus topology | 526 | /* When a device lives behind a bridge deeper in the PCI bus topology |
599 | * than APB, a special sequence must run to make sure all pending DMA | 527 | * than APB, a special sequence must run to make sure all pending DMA |
600 | * transfers at the time of IRQ delivery are visible in the coherency | 528 | * transfers at the time of IRQ delivery are visible in the coherency |
@@ -602,7 +530,7 @@ static int sabre_ino_to_pil(struct pci_dev *pdev, unsigned int ino) | |||
602 | * side of the non-APB bridge, then perform a read of Sabre's DMA | 530 | * side of the non-APB bridge, then perform a read of Sabre's DMA |
603 | * write-sync register. | 531 | * write-sync register. |
604 | */ | 532 | */ |
605 | static void sabre_wsync_handler(struct ino_bucket *bucket, void *_arg1, void *_arg2) | 533 | static void sabre_wsync_handler(unsigned int ino, void *_arg1, void *_arg2) |
606 | { | 534 | { |
607 | struct pci_dev *pdev = _arg1; | 535 | struct pci_dev *pdev = _arg1; |
608 | unsigned long sync_reg = (unsigned long) _arg2; | 536 | unsigned long sync_reg = (unsigned long) _arg2; |
@@ -616,10 +544,10 @@ static unsigned int sabre_irq_build(struct pci_pbm_info *pbm, | |||
616 | struct pci_dev *pdev, | 544 | struct pci_dev *pdev, |
617 | unsigned int ino) | 545 | unsigned int ino) |
618 | { | 546 | { |
619 | struct ino_bucket *bucket; | ||
620 | unsigned long imap, iclr; | 547 | unsigned long imap, iclr; |
621 | unsigned long imap_off, iclr_off; | 548 | unsigned long imap_off, iclr_off; |
622 | int pil, inofixup = 0; | 549 | int inofixup = 0; |
550 | int virt_irq; | ||
623 | 551 | ||
624 | ino &= PCI_IRQ_INO; | 552 | ino &= PCI_IRQ_INO; |
625 | if (ino < SABRE_ONBOARD_IRQ_BASE) { | 553 | if (ino < SABRE_ONBOARD_IRQ_BASE) { |
@@ -635,11 +563,6 @@ static unsigned int sabre_irq_build(struct pci_pbm_info *pbm, | |||
635 | } | 563 | } |
636 | 564 | ||
637 | /* Now build the IRQ bucket. */ | 565 | /* Now build the IRQ bucket. */ |
638 | pil = sabre_ino_to_pil(pdev, ino); | ||
639 | |||
640 | if (PIL_RESERVED(pil)) | ||
641 | BUG(); | ||
642 | |||
643 | imap = pbm->controller_regs + imap_off; | 566 | imap = pbm->controller_regs + imap_off; |
644 | imap += 4; | 567 | imap += 4; |
645 | 568 | ||
@@ -650,23 +573,23 @@ static unsigned int sabre_irq_build(struct pci_pbm_info *pbm, | |||
650 | if ((ino & 0x20) == 0) | 573 | if ((ino & 0x20) == 0) |
651 | inofixup = ino & 0x03; | 574 | inofixup = ino & 0x03; |
652 | 575 | ||
653 | bucket = __bucket(build_irq(pil, inofixup, iclr, imap)); | 576 | virt_irq = build_irq(inofixup, iclr, imap); |
654 | bucket->flags |= IBF_PCI; | ||
655 | 577 | ||
656 | if (pdev) { | 578 | if (pdev) { |
657 | struct pcidev_cookie *pcp = pdev->sysdata; | 579 | struct pcidev_cookie *pcp = pdev->sysdata; |
658 | 580 | ||
659 | if (pdev->bus->number != pcp->pbm->pci_first_busno) { | 581 | if (pdev->bus->number != pcp->pbm->pci_first_busno) { |
660 | struct pci_controller_info *p = pcp->pbm->parent; | 582 | struct pci_controller_info *p = pcp->pbm->parent; |
661 | struct irq_desc *d = bucket->irq_info; | ||
662 | 583 | ||
663 | d->pre_handler = sabre_wsync_handler; | 584 | irq_install_pre_handler(virt_irq, |
664 | d->pre_handler_arg1 = pdev; | 585 | sabre_wsync_handler, |
665 | d->pre_handler_arg2 = (void *) | 586 | pdev, |
666 | p->pbm_A.controller_regs + SABRE_WRSYNC; | 587 | (void *) |
588 | p->pbm_A.controller_regs + | ||
589 | SABRE_WRSYNC); | ||
667 | } | 590 | } |
668 | } | 591 | } |
669 | return __irq(bucket); | 592 | return virt_irq; |
670 | } | 593 | } |
671 | 594 | ||
672 | /* SABRE error handling support. */ | 595 | /* SABRE error handling support. */ |
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c index 7fe4de03ac2e..cc662e915d32 100644 --- a/arch/sparc64/kernel/pci_schizo.c +++ b/arch/sparc64/kernel/pci_schizo.c | |||
@@ -232,105 +232,10 @@ static unsigned long schizo_iclr_offset(unsigned long ino) | |||
232 | return SCHIZO_ICLR_BASE + (ino * 8UL); | 232 | return SCHIZO_ICLR_BASE + (ino * 8UL); |
233 | } | 233 | } |
234 | 234 | ||
235 | /* PCI SCHIZO INO number to Sparc PIL level. This table only matters for | 235 | static void tomatillo_wsync_handler(unsigned int ino, void *_arg1, void *_arg2) |
236 | * INOs which will not have an associated PCI device struct, ie. onboard | ||
237 | * EBUS devices and PCI controller internal error interrupts. | ||
238 | */ | ||
239 | static unsigned char schizo_pil_table[] = { | ||
240 | /*0x00*/0, 0, 0, 0, /* PCI slot 0 Int A, B, C, D */ | ||
241 | /*0x04*/0, 0, 0, 0, /* PCI slot 1 Int A, B, C, D */ | ||
242 | /*0x08*/0, 0, 0, 0, /* PCI slot 2 Int A, B, C, D */ | ||
243 | /*0x0c*/0, 0, 0, 0, /* PCI slot 3 Int A, B, C, D */ | ||
244 | /*0x10*/0, 0, 0, 0, /* PCI slot 4 Int A, B, C, D */ | ||
245 | /*0x14*/0, 0, 0, 0, /* PCI slot 5 Int A, B, C, D */ | ||
246 | /*0x18*/5, /* SCSI */ | ||
247 | /*0x19*/5, /* second SCSI */ | ||
248 | /*0x1a*/0, /* UNKNOWN */ | ||
249 | /*0x1b*/0, /* UNKNOWN */ | ||
250 | /*0x1c*/8, /* Parallel */ | ||
251 | /*0x1d*/5, /* Ethernet */ | ||
252 | /*0x1e*/8, /* Firewire-1394 */ | ||
253 | /*0x1f*/9, /* USB */ | ||
254 | /*0x20*/13, /* Audio Record */ | ||
255 | /*0x21*/14, /* Audio Playback */ | ||
256 | /*0x22*/12, /* Serial */ | ||
257 | /*0x23*/5, /* EBUS I2C */ | ||
258 | /*0x24*/10, /* RTC Clock */ | ||
259 | /*0x25*/11, /* Floppy */ | ||
260 | /*0x26*/0, /* UNKNOWN */ | ||
261 | /*0x27*/0, /* UNKNOWN */ | ||
262 | /*0x28*/0, /* UNKNOWN */ | ||
263 | /*0x29*/0, /* UNKNOWN */ | ||
264 | /*0x2a*/10, /* UPA 1 */ | ||
265 | /*0x2b*/10, /* UPA 2 */ | ||
266 | /*0x2c*/0, /* UNKNOWN */ | ||
267 | /*0x2d*/0, /* UNKNOWN */ | ||
268 | /*0x2e*/0, /* UNKNOWN */ | ||
269 | /*0x2f*/0, /* UNKNOWN */ | ||
270 | /*0x30*/15, /* Uncorrectable ECC */ | ||
271 | /*0x31*/15, /* Correctable ECC */ | ||
272 | /*0x32*/15, /* PCI Bus A Error */ | ||
273 | /*0x33*/15, /* PCI Bus B Error */ | ||
274 | /*0x34*/15, /* Safari Bus Error */ | ||
275 | /*0x35*/0, /* Reserved */ | ||
276 | /*0x36*/0, /* Reserved */ | ||
277 | /*0x37*/0, /* Reserved */ | ||
278 | /*0x38*/0, /* Reserved for NewLink */ | ||
279 | /*0x39*/0, /* Reserved for NewLink */ | ||
280 | /*0x3a*/0, /* Reserved for NewLink */ | ||
281 | /*0x3b*/0, /* Reserved for NewLink */ | ||
282 | /*0x3c*/0, /* Reserved for NewLink */ | ||
283 | /*0x3d*/0, /* Reserved for NewLink */ | ||
284 | /*0x3e*/0, /* Reserved for NewLink */ | ||
285 | /*0x3f*/0, /* Reserved for NewLink */ | ||
286 | }; | ||
287 | |||
288 | static int schizo_ino_to_pil(struct pci_dev *pdev, unsigned int ino) | ||
289 | { | ||
290 | int ret; | ||
291 | |||
292 | if (pdev && | ||
293 | pdev->vendor == PCI_VENDOR_ID_SUN && | ||
294 | pdev->device == PCI_DEVICE_ID_SUN_RIO_USB) | ||
295 | return 9; | ||
296 | |||
297 | ret = schizo_pil_table[ino]; | ||
298 | if (ret == 0 && pdev == NULL) { | ||
299 | ret = 5; | ||
300 | } else if (ret == 0) { | ||
301 | switch ((pdev->class >> 16) & 0xff) { | ||
302 | case PCI_BASE_CLASS_STORAGE: | ||
303 | ret = 5; | ||
304 | break; | ||
305 | |||
306 | case PCI_BASE_CLASS_NETWORK: | ||
307 | ret = 6; | ||
308 | break; | ||
309 | |||
310 | case PCI_BASE_CLASS_DISPLAY: | ||
311 | ret = 9; | ||
312 | break; | ||
313 | |||
314 | case PCI_BASE_CLASS_MULTIMEDIA: | ||
315 | case PCI_BASE_CLASS_MEMORY: | ||
316 | case PCI_BASE_CLASS_BRIDGE: | ||
317 | case PCI_BASE_CLASS_SERIAL: | ||
318 | ret = 10; | ||
319 | break; | ||
320 | |||
321 | default: | ||
322 | ret = 5; | ||
323 | break; | ||
324 | }; | ||
325 | } | ||
326 | |||
327 | return ret; | ||
328 | } | ||
329 | |||
330 | static void tomatillo_wsync_handler(struct ino_bucket *bucket, void *_arg1, void *_arg2) | ||
331 | { | 236 | { |
332 | unsigned long sync_reg = (unsigned long) _arg2; | 237 | unsigned long sync_reg = (unsigned long) _arg2; |
333 | u64 mask = 1UL << (__irq_ino(__irq(bucket)) & IMAP_INO); | 238 | u64 mask = 1UL << (ino & IMAP_INO); |
334 | u64 val; | 239 | u64 val; |
335 | int limit; | 240 | int limit; |
336 | 241 | ||
@@ -365,30 +270,33 @@ static void tomatillo_wsync_handler(struct ino_bucket *bucket, void *_arg1, void | |||
365 | } | 270 | } |
366 | } | 271 | } |
367 | 272 | ||
273 | static unsigned long schizo_ino_to_iclr(struct pci_pbm_info *pbm, | ||
274 | unsigned int ino) | ||
275 | { | ||
276 | ino &= PCI_IRQ_INO; | ||
277 | return pbm->pbm_regs + schizo_iclr_offset(ino) + 4; | ||
278 | } | ||
279 | |||
280 | static unsigned long schizo_ino_to_imap(struct pci_pbm_info *pbm, | ||
281 | unsigned int ino) | ||
282 | { | ||
283 | ino &= PCI_IRQ_INO; | ||
284 | return pbm->pbm_regs + schizo_imap_offset(ino) + 4; | ||
285 | } | ||
286 | |||
368 | static unsigned int schizo_irq_build(struct pci_pbm_info *pbm, | 287 | static unsigned int schizo_irq_build(struct pci_pbm_info *pbm, |
369 | struct pci_dev *pdev, | 288 | struct pci_dev *pdev, |
370 | unsigned int ino) | 289 | unsigned int ino) |
371 | { | 290 | { |
372 | struct ino_bucket *bucket; | ||
373 | unsigned long imap, iclr; | 291 | unsigned long imap, iclr; |
374 | unsigned long imap_off, iclr_off; | 292 | int ign_fixup; |
375 | int pil, ign_fixup; | 293 | int virt_irq; |
376 | 294 | ||
377 | ino &= PCI_IRQ_INO; | 295 | ino &= PCI_IRQ_INO; |
378 | imap_off = schizo_imap_offset(ino); | ||
379 | 296 | ||
380 | /* Now build the IRQ bucket. */ | 297 | /* Now build the IRQ bucket. */ |
381 | pil = schizo_ino_to_pil(pdev, ino); | 298 | imap = schizo_ino_to_imap(pbm, ino); |
382 | 299 | iclr = schizo_ino_to_iclr(pbm, ino); | |
383 | if (PIL_RESERVED(pil)) | ||
384 | BUG(); | ||
385 | |||
386 | imap = pbm->pbm_regs + imap_off; | ||
387 | imap += 4; | ||
388 | |||
389 | iclr_off = schizo_iclr_offset(ino); | ||
390 | iclr = pbm->pbm_regs + iclr_off; | ||
391 | iclr += 4; | ||
392 | 300 | ||
393 | /* On Schizo, no inofixup occurs. This is because each | 301 | /* On Schizo, no inofixup occurs. This is because each |
394 | * INO has it's own IMAP register. On Psycho and Sabre | 302 | * INO has it's own IMAP register. On Psycho and Sabre |
@@ -405,19 +313,17 @@ static unsigned int schizo_irq_build(struct pci_pbm_info *pbm, | |||
405 | ign_fixup = (1 << 6); | 313 | ign_fixup = (1 << 6); |
406 | } | 314 | } |
407 | 315 | ||
408 | bucket = __bucket(build_irq(pil, ign_fixup, iclr, imap)); | 316 | virt_irq = build_irq(ign_fixup, iclr, imap); |
409 | bucket->flags |= IBF_PCI; | ||
410 | 317 | ||
411 | if (pdev && pbm->chip_type == PBM_CHIP_TYPE_TOMATILLO) { | 318 | if (pdev && pbm->chip_type == PBM_CHIP_TYPE_TOMATILLO) { |
412 | struct irq_desc *p = bucket->irq_info; | 319 | irq_install_pre_handler(virt_irq, |
413 | 320 | tomatillo_wsync_handler, | |
414 | p->pre_handler = tomatillo_wsync_handler; | 321 | ((pbm->chip_version <= 4) ? |
415 | p->pre_handler_arg1 = ((pbm->chip_version <= 4) ? | 322 | (void *) 1 : (void *) 0), |
416 | (void *) 1 : (void *) 0); | 323 | (void *) pbm->sync_reg); |
417 | p->pre_handler_arg2 = (void *) pbm->sync_reg; | ||
418 | } | 324 | } |
419 | 325 | ||
420 | return __irq(bucket); | 326 | return virt_irq; |
421 | } | 327 | } |
422 | 328 | ||
423 | /* SCHIZO error handling support. */ | 329 | /* SCHIZO error handling support. */ |
@@ -458,7 +364,6 @@ struct pci_pbm_info *pbm_for_ino(struct pci_controller_info *p, u32 ino) | |||
458 | static void schizo_clear_other_err_intr(struct pci_controller_info *p, int irq) | 364 | static void schizo_clear_other_err_intr(struct pci_controller_info *p, int irq) |
459 | { | 365 | { |
460 | struct pci_pbm_info *pbm; | 366 | struct pci_pbm_info *pbm; |
461 | struct ino_bucket *bucket; | ||
462 | unsigned long iclr; | 367 | unsigned long iclr; |
463 | 368 | ||
464 | /* Do not clear the interrupt for the other PCI bus. | 369 | /* Do not clear the interrupt for the other PCI bus. |
@@ -476,11 +381,11 @@ static void schizo_clear_other_err_intr(struct pci_controller_info *p, int irq) | |||
476 | else | 381 | else |
477 | pbm = &p->pbm_A; | 382 | pbm = &p->pbm_A; |
478 | 383 | ||
479 | irq = schizo_irq_build(pbm, NULL, | 384 | schizo_irq_build(pbm, NULL, |
480 | (pbm->portid << 6) | (irq & IMAP_INO)); | 385 | (pbm->portid << 6) | (irq & IMAP_INO)); |
481 | bucket = __bucket(irq); | ||
482 | iclr = bucket->iclr; | ||
483 | 386 | ||
387 | iclr = schizo_ino_to_iclr(pbm, | ||
388 | (pbm->portid << 6) | (irq & IMAP_INO)); | ||
484 | upa_writel(ICLR_IDLE, iclr); | 389 | upa_writel(ICLR_IDLE, iclr); |
485 | } | 390 | } |
486 | 391 | ||
@@ -1225,7 +1130,6 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1225 | { | 1130 | { |
1226 | struct pci_pbm_info *pbm; | 1131 | struct pci_pbm_info *pbm; |
1227 | unsigned int irq; | 1132 | unsigned int irq; |
1228 | struct ino_bucket *bucket; | ||
1229 | u64 tmp, err_mask, err_no_mask; | 1133 | u64 tmp, err_mask, err_no_mask; |
1230 | 1134 | ||
1231 | /* Build IRQs and register handlers. */ | 1135 | /* Build IRQs and register handlers. */ |
@@ -1237,8 +1141,7 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1237 | pbm->name); | 1141 | pbm->name); |
1238 | prom_halt(); | 1142 | prom_halt(); |
1239 | } | 1143 | } |
1240 | bucket = __bucket(irq); | 1144 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_UE_INO)); |
1241 | tmp = upa_readl(bucket->imap); | ||
1242 | upa_writel(tmp, (pbm->pbm_regs + | 1145 | upa_writel(tmp, (pbm->pbm_regs + |
1243 | schizo_imap_offset(SCHIZO_UE_INO) + 4)); | 1146 | schizo_imap_offset(SCHIZO_UE_INO) + 4)); |
1244 | 1147 | ||
@@ -1250,8 +1153,7 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1250 | pbm->name); | 1153 | pbm->name); |
1251 | prom_halt(); | 1154 | prom_halt(); |
1252 | } | 1155 | } |
1253 | bucket = __bucket(irq); | 1156 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_CE_INO)); |
1254 | tmp = upa_readl(bucket->imap); | ||
1255 | upa_writel(tmp, (pbm->pbm_regs + | 1157 | upa_writel(tmp, (pbm->pbm_regs + |
1256 | schizo_imap_offset(SCHIZO_CE_INO) + 4)); | 1158 | schizo_imap_offset(SCHIZO_CE_INO) + 4)); |
1257 | 1159 | ||
@@ -1264,8 +1166,8 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1264 | pbm->name); | 1166 | pbm->name); |
1265 | prom_halt(); | 1167 | prom_halt(); |
1266 | } | 1168 | } |
1267 | bucket = __bucket(irq); | 1169 | tmp = upa_readl(schizo_ino_to_imap(pbm, ((pbm->portid << 6) | |
1268 | tmp = upa_readl(bucket->imap); | 1170 | SCHIZO_PCIERR_A_INO))); |
1269 | upa_writel(tmp, (pbm->pbm_regs + | 1171 | upa_writel(tmp, (pbm->pbm_regs + |
1270 | schizo_imap_offset(SCHIZO_PCIERR_A_INO) + 4)); | 1172 | schizo_imap_offset(SCHIZO_PCIERR_A_INO) + 4)); |
1271 | 1173 | ||
@@ -1278,8 +1180,8 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1278 | pbm->name); | 1180 | pbm->name); |
1279 | prom_halt(); | 1181 | prom_halt(); |
1280 | } | 1182 | } |
1281 | bucket = __bucket(irq); | 1183 | tmp = upa_readl(schizo_ino_to_imap(pbm, ((pbm->portid << 6) | |
1282 | tmp = upa_readl(bucket->imap); | 1184 | SCHIZO_PCIERR_B_INO))); |
1283 | upa_writel(tmp, (pbm->pbm_regs + | 1185 | upa_writel(tmp, (pbm->pbm_regs + |
1284 | schizo_imap_offset(SCHIZO_PCIERR_B_INO) + 4)); | 1186 | schizo_imap_offset(SCHIZO_PCIERR_B_INO) + 4)); |
1285 | 1187 | ||
@@ -1291,8 +1193,8 @@ static void tomatillo_register_error_handlers(struct pci_controller_info *p) | |||
1291 | pbm->name); | 1193 | pbm->name); |
1292 | prom_halt(); | 1194 | prom_halt(); |
1293 | } | 1195 | } |
1294 | bucket = __bucket(irq); | 1196 | tmp = upa_readl(schizo_ino_to_imap(pbm, ((pbm->portid << 6) | |
1295 | tmp = upa_readl(bucket->imap); | 1197 | SCHIZO_SERR_INO))); |
1296 | upa_writel(tmp, (pbm->pbm_regs + | 1198 | upa_writel(tmp, (pbm->pbm_regs + |
1297 | schizo_imap_offset(SCHIZO_SERR_INO) + 4)); | 1199 | schizo_imap_offset(SCHIZO_SERR_INO) + 4)); |
1298 | 1200 | ||
@@ -1363,7 +1265,6 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1363 | { | 1265 | { |
1364 | struct pci_pbm_info *pbm; | 1266 | struct pci_pbm_info *pbm; |
1365 | unsigned int irq; | 1267 | unsigned int irq; |
1366 | struct ino_bucket *bucket; | ||
1367 | u64 tmp, err_mask, err_no_mask; | 1268 | u64 tmp, err_mask, err_no_mask; |
1368 | 1269 | ||
1369 | /* Build IRQs and register handlers. */ | 1270 | /* Build IRQs and register handlers. */ |
@@ -1375,8 +1276,7 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1375 | pbm->name); | 1276 | pbm->name); |
1376 | prom_halt(); | 1277 | prom_halt(); |
1377 | } | 1278 | } |
1378 | bucket = __bucket(irq); | 1279 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_UE_INO)); |
1379 | tmp = upa_readl(bucket->imap); | ||
1380 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_UE_INO) + 4)); | 1280 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_UE_INO) + 4)); |
1381 | 1281 | ||
1382 | pbm = pbm_for_ino(p, SCHIZO_CE_INO); | 1282 | pbm = pbm_for_ino(p, SCHIZO_CE_INO); |
@@ -1387,8 +1287,7 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1387 | pbm->name); | 1287 | pbm->name); |
1388 | prom_halt(); | 1288 | prom_halt(); |
1389 | } | 1289 | } |
1390 | bucket = __bucket(irq); | 1290 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_CE_INO)); |
1391 | tmp = upa_readl(bucket->imap); | ||
1392 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_CE_INO) + 4)); | 1291 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_CE_INO) + 4)); |
1393 | 1292 | ||
1394 | pbm = pbm_for_ino(p, SCHIZO_PCIERR_A_INO); | 1293 | pbm = pbm_for_ino(p, SCHIZO_PCIERR_A_INO); |
@@ -1399,8 +1298,7 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1399 | pbm->name); | 1298 | pbm->name); |
1400 | prom_halt(); | 1299 | prom_halt(); |
1401 | } | 1300 | } |
1402 | bucket = __bucket(irq); | 1301 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_PCIERR_A_INO)); |
1403 | tmp = upa_readl(bucket->imap); | ||
1404 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_PCIERR_A_INO) + 4)); | 1302 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_PCIERR_A_INO) + 4)); |
1405 | 1303 | ||
1406 | pbm = pbm_for_ino(p, SCHIZO_PCIERR_B_INO); | 1304 | pbm = pbm_for_ino(p, SCHIZO_PCIERR_B_INO); |
@@ -1411,8 +1309,7 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1411 | pbm->name); | 1309 | pbm->name); |
1412 | prom_halt(); | 1310 | prom_halt(); |
1413 | } | 1311 | } |
1414 | bucket = __bucket(irq); | 1312 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_PCIERR_B_INO)); |
1415 | tmp = upa_readl(bucket->imap); | ||
1416 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_PCIERR_B_INO) + 4)); | 1313 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_PCIERR_B_INO) + 4)); |
1417 | 1314 | ||
1418 | pbm = pbm_for_ino(p, SCHIZO_SERR_INO); | 1315 | pbm = pbm_for_ino(p, SCHIZO_SERR_INO); |
@@ -1423,8 +1320,7 @@ static void schizo_register_error_handlers(struct pci_controller_info *p) | |||
1423 | pbm->name); | 1320 | pbm->name); |
1424 | prom_halt(); | 1321 | prom_halt(); |
1425 | } | 1322 | } |
1426 | bucket = __bucket(irq); | 1323 | tmp = upa_readl(schizo_ino_to_imap(pbm, (pbm->portid << 6) | SCHIZO_SERR_INO)); |
1427 | tmp = upa_readl(bucket->imap); | ||
1428 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_SERR_INO) + 4)); | 1324 | upa_writel(tmp, (pbm->pbm_regs + schizo_imap_offset(SCHIZO_SERR_INO) + 4)); |
1429 | 1325 | ||
1430 | /* Enable UE and CE interrupts for controller. */ | 1326 | /* Enable UE and CE interrupts for controller. */ |
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index 9e94db2573a2..5419480edf41 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -154,7 +154,7 @@ static void pci_arena_free(struct pci_iommu_arena *arena, unsigned long base, un | |||
154 | __clear_bit(i, arena->map); | 154 | __clear_bit(i, arena->map); |
155 | } | 155 | } |
156 | 156 | ||
157 | static void *pci_4v_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp) | 157 | static void *pci_4v_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp, gfp_t gfp) |
158 | { | 158 | { |
159 | struct pcidev_cookie *pcp; | 159 | struct pcidev_cookie *pcp; |
160 | struct pci_iommu *iommu; | 160 | struct pci_iommu *iommu; |
@@ -169,7 +169,7 @@ static void *pci_4v_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr | |||
169 | 169 | ||
170 | npages = size >> IO_PAGE_SHIFT; | 170 | npages = size >> IO_PAGE_SHIFT; |
171 | 171 | ||
172 | first_page = __get_free_pages(GFP_ATOMIC, order); | 172 | first_page = __get_free_pages(gfp, order); |
173 | if (unlikely(first_page == 0UL)) | 173 | if (unlikely(first_page == 0UL)) |
174 | return NULL; | 174 | return NULL; |
175 | 175 | ||
@@ -599,18 +599,128 @@ struct pci_iommu_ops pci_sun4v_iommu_ops = { | |||
599 | 599 | ||
600 | /* SUN4V PCI configuration space accessors. */ | 600 | /* SUN4V PCI configuration space accessors. */ |
601 | 601 | ||
602 | static inline int pci_sun4v_out_of_range(struct pci_pbm_info *pbm, unsigned int bus, unsigned int device, unsigned int func) | 602 | struct pdev_entry { |
603 | struct pdev_entry *next; | ||
604 | u32 devhandle; | ||
605 | unsigned int bus; | ||
606 | unsigned int device; | ||
607 | unsigned int func; | ||
608 | }; | ||
609 | |||
610 | #define PDEV_HTAB_SIZE 16 | ||
611 | #define PDEV_HTAB_MASK (PDEV_HTAB_SIZE - 1) | ||
612 | static struct pdev_entry *pdev_htab[PDEV_HTAB_SIZE]; | ||
613 | |||
614 | static inline unsigned int pdev_hashfn(u32 devhandle, unsigned int bus, unsigned int device, unsigned int func) | ||
603 | { | 615 | { |
604 | if (bus == pbm->pci_first_busno) { | 616 | unsigned int val; |
605 | if (device == 0 && func == 0) | 617 | |
606 | return 0; | 618 | val = (devhandle ^ (devhandle >> 4)); |
607 | return 1; | 619 | val ^= bus; |
620 | val ^= device; | ||
621 | val ^= func; | ||
622 | |||
623 | return val & PDEV_HTAB_MASK; | ||
624 | } | ||
625 | |||
626 | static int pdev_htab_add(u32 devhandle, unsigned int bus, unsigned int device, unsigned int func) | ||
627 | { | ||
628 | struct pdev_entry *p = kmalloc(sizeof(*p), GFP_KERNEL); | ||
629 | struct pdev_entry **slot; | ||
630 | |||
631 | if (!p) | ||
632 | return -ENOMEM; | ||
633 | |||
634 | slot = &pdev_htab[pdev_hashfn(devhandle, bus, device, func)]; | ||
635 | p->next = *slot; | ||
636 | *slot = p; | ||
637 | |||
638 | p->devhandle = devhandle; | ||
639 | p->bus = bus; | ||
640 | p->device = device; | ||
641 | p->func = func; | ||
642 | |||
643 | return 0; | ||
644 | } | ||
645 | |||
646 | /* Recursively descend into the OBP device tree, rooted at toplevel_node, | ||
647 | * looking for a PCI device matching bus and devfn. | ||
648 | */ | ||
649 | static int obp_find(struct linux_prom_pci_registers *pregs, int toplevel_node, unsigned int bus, unsigned int devfn) | ||
650 | { | ||
651 | toplevel_node = prom_getchild(toplevel_node); | ||
652 | |||
653 | while (toplevel_node != 0) { | ||
654 | int ret = obp_find(pregs, toplevel_node, bus, devfn); | ||
655 | |||
656 | if (ret != 0) | ||
657 | return ret; | ||
658 | |||
659 | ret = prom_getproperty(toplevel_node, "reg", (char *) pregs, | ||
660 | sizeof(*pregs) * PROMREG_MAX); | ||
661 | if (ret == 0 || ret == -1) | ||
662 | goto next_sibling; | ||
663 | |||
664 | if (((pregs[0].phys_hi >> 16) & 0xff) == bus && | ||
665 | ((pregs[0].phys_hi >> 8) & 0xff) == devfn) | ||
666 | break; | ||
667 | |||
668 | next_sibling: | ||
669 | toplevel_node = prom_getsibling(toplevel_node); | ||
608 | } | 670 | } |
609 | 671 | ||
672 | return toplevel_node; | ||
673 | } | ||
674 | |||
675 | static int pdev_htab_populate(struct pci_pbm_info *pbm) | ||
676 | { | ||
677 | struct linux_prom_pci_registers pr[PROMREG_MAX]; | ||
678 | u32 devhandle = pbm->devhandle; | ||
679 | unsigned int bus; | ||
680 | |||
681 | for (bus = pbm->pci_first_busno; bus <= pbm->pci_last_busno; bus++) { | ||
682 | unsigned int devfn; | ||
683 | |||
684 | for (devfn = 0; devfn < 256; devfn++) { | ||
685 | unsigned int device = PCI_SLOT(devfn); | ||
686 | unsigned int func = PCI_FUNC(devfn); | ||
687 | |||
688 | if (obp_find(pr, pbm->prom_node, bus, devfn)) { | ||
689 | int err = pdev_htab_add(devhandle, bus, | ||
690 | device, func); | ||
691 | if (err) | ||
692 | return err; | ||
693 | } | ||
694 | } | ||
695 | } | ||
696 | |||
697 | return 0; | ||
698 | } | ||
699 | |||
700 | static struct pdev_entry *pdev_find(u32 devhandle, unsigned int bus, unsigned int device, unsigned int func) | ||
701 | { | ||
702 | struct pdev_entry *p; | ||
703 | |||
704 | p = pdev_htab[pdev_hashfn(devhandle, bus, device, func)]; | ||
705 | while (p) { | ||
706 | if (p->devhandle == devhandle && | ||
707 | p->bus == bus && | ||
708 | p->device == device && | ||
709 | p->func == func) | ||
710 | break; | ||
711 | |||
712 | p = p->next; | ||
713 | } | ||
714 | |||
715 | return p; | ||
716 | } | ||
717 | |||
718 | static inline int pci_sun4v_out_of_range(struct pci_pbm_info *pbm, unsigned int bus, unsigned int device, unsigned int func) | ||
719 | { | ||
610 | if (bus < pbm->pci_first_busno || | 720 | if (bus < pbm->pci_first_busno || |
611 | bus > pbm->pci_last_busno) | 721 | bus > pbm->pci_last_busno) |
612 | return 1; | 722 | return 1; |
613 | return 0; | 723 | return pdev_find(pbm->devhandle, bus, device, func) == NULL; |
614 | } | 724 | } |
615 | 725 | ||
616 | static int pci_sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, | 726 | static int pci_sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, |
@@ -733,38 +843,8 @@ static unsigned int pci_sun4v_irq_build(struct pci_pbm_info *pbm, | |||
733 | unsigned int devino) | 843 | unsigned int devino) |
734 | { | 844 | { |
735 | u32 devhandle = pbm->devhandle; | 845 | u32 devhandle = pbm->devhandle; |
736 | int pil; | ||
737 | |||
738 | pil = 5; | ||
739 | if (pdev) { | ||
740 | switch ((pdev->class >> 16) & 0xff) { | ||
741 | case PCI_BASE_CLASS_STORAGE: | ||
742 | pil = 5; | ||
743 | break; | ||
744 | |||
745 | case PCI_BASE_CLASS_NETWORK: | ||
746 | pil = 6; | ||
747 | break; | ||
748 | |||
749 | case PCI_BASE_CLASS_DISPLAY: | ||
750 | pil = 9; | ||
751 | break; | ||
752 | 846 | ||
753 | case PCI_BASE_CLASS_MULTIMEDIA: | 847 | return sun4v_build_irq(devhandle, devino); |
754 | case PCI_BASE_CLASS_MEMORY: | ||
755 | case PCI_BASE_CLASS_BRIDGE: | ||
756 | case PCI_BASE_CLASS_SERIAL: | ||
757 | pil = 10; | ||
758 | break; | ||
759 | |||
760 | default: | ||
761 | pil = 5; | ||
762 | break; | ||
763 | }; | ||
764 | } | ||
765 | BUG_ON(PIL_RESERVED(pil)); | ||
766 | |||
767 | return sun4v_build_irq(devhandle, devino, pil, IBF_PCI); | ||
768 | } | 848 | } |
769 | 849 | ||
770 | static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource) | 850 | static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource) |
@@ -1063,6 +1143,8 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, int prom_node, u32 | |||
1063 | 1143 | ||
1064 | pci_sun4v_get_bus_range(pbm); | 1144 | pci_sun4v_get_bus_range(pbm); |
1065 | pci_sun4v_iommu_init(pbm); | 1145 | pci_sun4v_iommu_init(pbm); |
1146 | |||
1147 | pdev_htab_populate(pbm); | ||
1066 | } | 1148 | } |
1067 | 1149 | ||
1068 | void sun4v_pci_init(int node, char *model_name) | 1150 | void sun4v_pci_init(int node, char *model_name) |
diff --git a/arch/sparc64/kernel/sbus.c b/arch/sparc64/kernel/sbus.c index 1d6ffdeabd4c..8812417247d4 100644 --- a/arch/sparc64/kernel/sbus.c +++ b/arch/sparc64/kernel/sbus.c | |||
@@ -691,36 +691,6 @@ void sbus_set_sbus64(struct sbus_dev *sdev, int bursts) | |||
691 | upa_writeq(val, cfg_reg); | 691 | upa_writeq(val, cfg_reg); |
692 | } | 692 | } |
693 | 693 | ||
694 | /* SBUS SYSIO INO number to Sparc PIL level. */ | ||
695 | static unsigned char sysio_ino_to_pil[] = { | ||
696 | 0, 5, 5, 7, 5, 7, 8, 9, /* SBUS slot 0 */ | ||
697 | 0, 5, 5, 7, 5, 7, 8, 9, /* SBUS slot 1 */ | ||
698 | 0, 5, 5, 7, 5, 7, 8, 9, /* SBUS slot 2 */ | ||
699 | 0, 5, 5, 7, 5, 7, 8, 9, /* SBUS slot 3 */ | ||
700 | 5, /* Onboard SCSI */ | ||
701 | 5, /* Onboard Ethernet */ | ||
702 | /*XXX*/ 8, /* Onboard BPP */ | ||
703 | 0, /* Bogon */ | ||
704 | 13, /* Audio */ | ||
705 | /*XXX*/15, /* PowerFail */ | ||
706 | 0, /* Bogon */ | ||
707 | 0, /* Bogon */ | ||
708 | 12, /* Zilog Serial Channels (incl. Keyboard/Mouse lines) */ | ||
709 | 11, /* Floppy */ | ||
710 | 0, /* Spare Hardware (bogon for now) */ | ||
711 | 0, /* Keyboard (bogon for now) */ | ||
712 | 0, /* Mouse (bogon for now) */ | ||
713 | 0, /* Serial (bogon for now) */ | ||
714 | 0, 0, /* Bogon, Bogon */ | ||
715 | 10, /* Timer 0 */ | ||
716 | 11, /* Timer 1 */ | ||
717 | 0, 0, /* Bogon, Bogon */ | ||
718 | 15, /* Uncorrectable SBUS Error */ | ||
719 | 15, /* Correctable SBUS Error */ | ||
720 | 15, /* SBUS Error */ | ||
721 | /*XXX*/ 0, /* Power Management (bogon for now) */ | ||
722 | }; | ||
723 | |||
724 | /* INO number to IMAP register offset for SYSIO external IRQ's. | 694 | /* INO number to IMAP register offset for SYSIO external IRQ's. |
725 | * This should conform to both Sunfire/Wildfire server and Fusion | 695 | * This should conform to both Sunfire/Wildfire server and Fusion |
726 | * desktop designs. | 696 | * desktop designs. |
@@ -812,21 +782,12 @@ unsigned int sbus_build_irq(void *buscookie, unsigned int ino) | |||
812 | struct sbus_iommu *iommu = sbus->iommu; | 782 | struct sbus_iommu *iommu = sbus->iommu; |
813 | unsigned long reg_base = iommu->sbus_control_reg - 0x2000UL; | 783 | unsigned long reg_base = iommu->sbus_control_reg - 0x2000UL; |
814 | unsigned long imap, iclr; | 784 | unsigned long imap, iclr; |
815 | int pil, sbus_level = 0; | 785 | int sbus_level = 0; |
816 | |||
817 | pil = sysio_ino_to_pil[ino]; | ||
818 | if (!pil) { | ||
819 | printk("sbus_irq_build: Bad SYSIO INO[%x]\n", ino); | ||
820 | panic("Bad SYSIO IRQ translations..."); | ||
821 | } | ||
822 | |||
823 | if (PIL_RESERVED(pil)) | ||
824 | BUG(); | ||
825 | 786 | ||
826 | imap = sysio_irq_offsets[ino]; | 787 | imap = sysio_irq_offsets[ino]; |
827 | if (imap == ((unsigned long)-1)) { | 788 | if (imap == ((unsigned long)-1)) { |
828 | prom_printf("get_irq_translations: Bad SYSIO INO[%x] cpu[%d]\n", | 789 | prom_printf("get_irq_translations: Bad SYSIO INO[%x]\n", |
829 | ino, pil); | 790 | ino); |
830 | prom_halt(); | 791 | prom_halt(); |
831 | } | 792 | } |
832 | imap += reg_base; | 793 | imap += reg_base; |
@@ -860,7 +821,7 @@ unsigned int sbus_build_irq(void *buscookie, unsigned int ino) | |||
860 | 821 | ||
861 | iclr += ((unsigned long)sbus_level - 1UL) * 8UL; | 822 | iclr += ((unsigned long)sbus_level - 1UL) * 8UL; |
862 | } | 823 | } |
863 | return build_irq(pil, sbus_level, iclr, imap); | 824 | return build_irq(sbus_level, iclr, imap); |
864 | } | 825 | } |
865 | 826 | ||
866 | /* Error interrupt handling. */ | 827 | /* Error interrupt handling. */ |
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 005167f82419..9cf1c88cd774 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -220,7 +220,7 @@ char reboot_command[COMMAND_LINE_SIZE]; | |||
220 | 220 | ||
221 | static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; | 221 | static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; |
222 | 222 | ||
223 | static void __init per_cpu_patch(void) | 223 | void __init per_cpu_patch(void) |
224 | { | 224 | { |
225 | struct cpuid_patch_entry *p; | 225 | struct cpuid_patch_entry *p; |
226 | unsigned long ver; | 226 | unsigned long ver; |
@@ -280,7 +280,7 @@ static void __init per_cpu_patch(void) | |||
280 | } | 280 | } |
281 | } | 281 | } |
282 | 282 | ||
283 | static void __init sun4v_patch(void) | 283 | void __init sun4v_patch(void) |
284 | { | 284 | { |
285 | struct sun4v_1insn_patch_entry *p1; | 285 | struct sun4v_1insn_patch_entry *p1; |
286 | struct sun4v_2insn_patch_entry *p2; | 286 | struct sun4v_2insn_patch_entry *p2; |
@@ -315,6 +315,15 @@ static void __init sun4v_patch(void) | |||
315 | } | 315 | } |
316 | } | 316 | } |
317 | 317 | ||
318 | #ifdef CONFIG_SMP | ||
319 | void __init boot_cpu_id_too_large(int cpu) | ||
320 | { | ||
321 | prom_printf("Serious problem, boot cpu id (%d) >= NR_CPUS (%d)\n", | ||
322 | cpu, NR_CPUS); | ||
323 | prom_halt(); | ||
324 | } | ||
325 | #endif | ||
326 | |||
318 | void __init setup_arch(char **cmdline_p) | 327 | void __init setup_arch(char **cmdline_p) |
319 | { | 328 | { |
320 | /* Initialize PROM console and command line. */ | 329 | /* Initialize PROM console and command line. */ |
@@ -332,16 +341,6 @@ void __init setup_arch(char **cmdline_p) | |||
332 | conswitchp = &prom_con; | 341 | conswitchp = &prom_con; |
333 | #endif | 342 | #endif |
334 | 343 | ||
335 | /* Work out if we are starfire early on */ | ||
336 | check_if_starfire(); | ||
337 | |||
338 | /* Now we know enough to patch the get_cpuid sequences | ||
339 | * used by trap code. | ||
340 | */ | ||
341 | per_cpu_patch(); | ||
342 | |||
343 | sun4v_patch(); | ||
344 | |||
345 | boot_flags_init(*cmdline_p); | 344 | boot_flags_init(*cmdline_p); |
346 | 345 | ||
347 | idprom_init(); | 346 | idprom_init(); |
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 90eaca3ec9a6..f03d52d0b88d 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c | |||
@@ -1264,7 +1264,6 @@ void __init smp_tick_init(void) | |||
1264 | boot_cpu_id = hard_smp_processor_id(); | 1264 | boot_cpu_id = hard_smp_processor_id(); |
1265 | current_tick_offset = timer_tick_offset; | 1265 | current_tick_offset = timer_tick_offset; |
1266 | 1266 | ||
1267 | cpu_set(boot_cpu_id, cpu_online_map); | ||
1268 | prof_counter(boot_cpu_id) = prof_multiplier(boot_cpu_id) = 1; | 1267 | prof_counter(boot_cpu_id) = prof_multiplier(boot_cpu_id) = 1; |
1269 | } | 1268 | } |
1270 | 1269 | ||
@@ -1288,6 +1287,40 @@ int setup_profiling_timer(unsigned int multiplier) | |||
1288 | return 0; | 1287 | return 0; |
1289 | } | 1288 | } |
1290 | 1289 | ||
1290 | static void __init smp_tune_scheduling(void) | ||
1291 | { | ||
1292 | int instance, node; | ||
1293 | unsigned int def, smallest = ~0U; | ||
1294 | |||
1295 | def = ((tlb_type == hypervisor) ? | ||
1296 | (3 * 1024 * 1024) : | ||
1297 | (4 * 1024 * 1024)); | ||
1298 | |||
1299 | instance = 0; | ||
1300 | while (!cpu_find_by_instance(instance, &node, NULL)) { | ||
1301 | unsigned int val; | ||
1302 | |||
1303 | val = prom_getintdefault(node, "ecache-size", def); | ||
1304 | if (val < smallest) | ||
1305 | smallest = val; | ||
1306 | |||
1307 | instance++; | ||
1308 | } | ||
1309 | |||
1310 | /* Any value less than 256K is nonsense. */ | ||
1311 | if (smallest < (256U * 1024U)) | ||
1312 | smallest = 256 * 1024; | ||
1313 | |||
1314 | max_cache_size = smallest; | ||
1315 | |||
1316 | if (smallest < 1U * 1024U * 1024U) | ||
1317 | printk(KERN_INFO "Using max_cache_size of %uKB\n", | ||
1318 | smallest / 1024U); | ||
1319 | else | ||
1320 | printk(KERN_INFO "Using max_cache_size of %uMB\n", | ||
1321 | smallest / 1024U / 1024U); | ||
1322 | } | ||
1323 | |||
1291 | /* Constrain the number of cpus to max_cpus. */ | 1324 | /* Constrain the number of cpus to max_cpus. */ |
1292 | void __init smp_prepare_cpus(unsigned int max_cpus) | 1325 | void __init smp_prepare_cpus(unsigned int max_cpus) |
1293 | { | 1326 | { |
@@ -1323,6 +1356,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
1323 | } | 1356 | } |
1324 | 1357 | ||
1325 | smp_store_cpu_info(boot_cpu_id); | 1358 | smp_store_cpu_info(boot_cpu_id); |
1359 | smp_tune_scheduling(); | ||
1326 | } | 1360 | } |
1327 | 1361 | ||
1328 | /* Set this up early so that things like the scheduler can init | 1362 | /* Set this up early so that things like the scheduler can init |
@@ -1345,18 +1379,6 @@ void __init smp_setup_cpu_possible_map(void) | |||
1345 | 1379 | ||
1346 | void __devinit smp_prepare_boot_cpu(void) | 1380 | void __devinit smp_prepare_boot_cpu(void) |
1347 | { | 1381 | { |
1348 | int cpu = hard_smp_processor_id(); | ||
1349 | |||
1350 | if (cpu >= NR_CPUS) { | ||
1351 | prom_printf("Serious problem, boot cpu id >= NR_CPUS\n"); | ||
1352 | prom_halt(); | ||
1353 | } | ||
1354 | |||
1355 | current_thread_info()->cpu = cpu; | ||
1356 | __local_per_cpu_offset = __per_cpu_offset(cpu); | ||
1357 | |||
1358 | cpu_set(smp_processor_id(), cpu_online_map); | ||
1359 | cpu_set(smp_processor_id(), phys_cpu_present_map); | ||
1360 | } | 1382 | } |
1361 | 1383 | ||
1362 | int __devinit __cpu_up(unsigned int cpu) | 1384 | int __devinit __cpu_up(unsigned int cpu) |
@@ -1433,4 +1455,7 @@ void __init setup_per_cpu_areas(void) | |||
1433 | 1455 | ||
1434 | for (i = 0; i < NR_CPUS; i++, ptr += size) | 1456 | for (i = 0; i < NR_CPUS; i++, ptr += size) |
1435 | memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); | 1457 | memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); |
1458 | |||
1459 | /* Setup %g5 for the boot cpu. */ | ||
1460 | __local_per_cpu_offset = __per_cpu_offset(smp_processor_id()); | ||
1436 | } | 1461 | } |
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c index 62d8a99271ea..4ac35dd2088b 100644 --- a/arch/sparc64/kernel/sparc64_ksyms.c +++ b/arch/sparc64/kernel/sparc64_ksyms.c | |||
@@ -125,9 +125,6 @@ EXPORT_SYMBOL(__write_lock); | |||
125 | EXPORT_SYMBOL(__write_unlock); | 125 | EXPORT_SYMBOL(__write_unlock); |
126 | EXPORT_SYMBOL(__write_trylock); | 126 | EXPORT_SYMBOL(__write_trylock); |
127 | 127 | ||
128 | /* Hard IRQ locking */ | ||
129 | EXPORT_SYMBOL(synchronize_irq); | ||
130 | |||
131 | #if defined(CONFIG_MCOUNT) | 128 | #if defined(CONFIG_MCOUNT) |
132 | extern void _mcount(void); | 129 | extern void _mcount(void); |
133 | EXPORT_SYMBOL(_mcount); | 130 | EXPORT_SYMBOL(_mcount); |
@@ -175,10 +172,6 @@ EXPORT_SYMBOL(set_bit); | |||
175 | EXPORT_SYMBOL(clear_bit); | 172 | EXPORT_SYMBOL(clear_bit); |
176 | EXPORT_SYMBOL(change_bit); | 173 | EXPORT_SYMBOL(change_bit); |
177 | 174 | ||
178 | EXPORT_SYMBOL(ivector_table); | ||
179 | EXPORT_SYMBOL(enable_irq); | ||
180 | EXPORT_SYMBOL(disable_irq); | ||
181 | |||
182 | EXPORT_SYMBOL(__flushw_user); | 175 | EXPORT_SYMBOL(__flushw_user); |
183 | 176 | ||
184 | EXPORT_SYMBOL(tlb_type); | 177 | EXPORT_SYMBOL(tlb_type); |
@@ -297,7 +290,6 @@ EXPORT_SYMBOL(svr4_getcontext); | |||
297 | EXPORT_SYMBOL(svr4_setcontext); | 290 | EXPORT_SYMBOL(svr4_setcontext); |
298 | EXPORT_SYMBOL(compat_sys_ioctl); | 291 | EXPORT_SYMBOL(compat_sys_ioctl); |
299 | EXPORT_SYMBOL(sparc32_open); | 292 | EXPORT_SYMBOL(sparc32_open); |
300 | EXPORT_SYMBOL(sys_close); | ||
301 | #endif | 293 | #endif |
302 | 294 | ||
303 | /* Special internal versions of library functions. */ | 295 | /* Special internal versions of library functions. */ |
diff --git a/arch/sparc64/kernel/sun4v_ivec.S b/arch/sparc64/kernel/sun4v_ivec.S index b49a68bdda43..49703c3c5769 100644 --- a/arch/sparc64/kernel/sun4v_ivec.S +++ b/arch/sparc64/kernel/sun4v_ivec.S | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #include <asm/cpudata.h> | 6 | #include <asm/cpudata.h> |
7 | #include <asm/intr_queue.h> | 7 | #include <asm/intr_queue.h> |
8 | #include <asm/pil.h> | ||
8 | 9 | ||
9 | .text | 10 | .text |
10 | .align 32 | 11 | .align 32 |
@@ -102,23 +103,17 @@ sun4v_dev_mondo: | |||
102 | 103 | ||
103 | /* Get &ivector_table[IVEC] into %g4. */ | 104 | /* Get &ivector_table[IVEC] into %g4. */ |
104 | sethi %hi(ivector_table), %g4 | 105 | sethi %hi(ivector_table), %g4 |
105 | sllx %g3, 5, %g3 | 106 | sllx %g3, 3, %g3 |
106 | or %g4, %lo(ivector_table), %g4 | 107 | or %g4, %lo(ivector_table), %g4 |
107 | add %g4, %g3, %g4 | 108 | add %g4, %g3, %g4 |
108 | 109 | ||
109 | /* Load IRQ %pil into %g5. */ | ||
110 | ldub [%g4 + 0x04], %g5 | ||
111 | |||
112 | /* Insert ivector_table[] entry into __irq_work[] queue. */ | 110 | /* Insert ivector_table[] entry into __irq_work[] queue. */ |
113 | sllx %g5, 2, %g3 | 111 | lduw [%g1], %g2 /* g2 = irq_work(cpu) */ |
114 | lduw [%g1 + %g3], %g2 /* g2 = irq_work(cpu, pil) */ | ||
115 | stw %g2, [%g4 + 0x00] /* bucket->irq_chain = g2 */ | 112 | stw %g2, [%g4 + 0x00] /* bucket->irq_chain = g2 */ |
116 | stw %g4, [%g1 + %g3] /* irq_work(cpu, pil) = bucket */ | 113 | stw %g4, [%g1] /* irq_work(cpu) = bucket */ |
117 | 114 | ||
118 | /* Signal the interrupt by setting (1 << pil) in %softint. */ | 115 | /* Signal the interrupt by setting (1 << pil) in %softint. */ |
119 | mov 1, %g2 | 116 | wr %g0, 1 << PIL_DEVICE_IRQ, %set_softint |
120 | sllx %g2, %g5, %g2 | ||
121 | wr %g2, 0x0, %set_softint | ||
122 | 117 | ||
123 | sun4v_dev_mondo_queue_empty: | 118 | sun4v_dev_mondo_queue_empty: |
124 | retry | 119 | retry |
diff --git a/arch/sparc64/kernel/systbls.S b/arch/sparc64/kernel/systbls.S index d4b39cd30310..1136fc465e37 100644 --- a/arch/sparc64/kernel/systbls.S +++ b/arch/sparc64/kernel/systbls.S | |||
@@ -78,8 +78,9 @@ sys_call_table32: | |||
78 | .word compat_sys_mq_timedsend, compat_sys_mq_timedreceive, compat_sys_mq_notify, compat_sys_mq_getsetattr, compat_sys_waitid | 78 | .word compat_sys_mq_timedsend, compat_sys_mq_timedreceive, compat_sys_mq_notify, compat_sys_mq_getsetattr, compat_sys_waitid |
79 | /*280*/ .word sys32_tee, sys_add_key, sys_request_key, sys_keyctl, compat_sys_openat | 79 | /*280*/ .word sys32_tee, sys_add_key, sys_request_key, sys_keyctl, compat_sys_openat |
80 | .word sys_mkdirat, sys_mknodat, sys_fchownat, compat_sys_futimesat, compat_sys_fstatat64 | 80 | .word sys_mkdirat, sys_mknodat, sys_fchownat, compat_sys_futimesat, compat_sys_fstatat64 |
81 | /*285*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat | 81 | /*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat |
82 | .word sys_fchmodat, sys_faccessat, compat_sys_pselect6, compat_sys_ppoll, sys_unshare | 82 | .word sys_fchmodat, sys_faccessat, compat_sys_pselect6, compat_sys_ppoll, sys_unshare |
83 | /*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list | ||
83 | 84 | ||
84 | #endif /* CONFIG_COMPAT */ | 85 | #endif /* CONFIG_COMPAT */ |
85 | 86 | ||
@@ -147,8 +148,9 @@ sys_call_table: | |||
147 | .word sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid | 148 | .word sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid |
148 | /*280*/ .word sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat | 149 | /*280*/ .word sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat |
149 | .word sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64 | 150 | .word sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64 |
150 | /*285*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat | 151 | /*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat |
151 | .word sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare | 152 | .word sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare |
153 | /*300*/ .word sys_set_robust_list, sys_get_robust_list | ||
152 | 154 | ||
153 | #if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \ | 155 | #if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \ |
154 | defined(CONFIG_SOLARIS_EMUL_MODULE) | 156 | defined(CONFIG_SOLARIS_EMUL_MODULE) |
@@ -261,5 +263,5 @@ sunos_sys_table: | |||
261 | /*290*/ .word sunos_nosys, sunos_nosys, sunos_nosys | 263 | /*290*/ .word sunos_nosys, sunos_nosys, sunos_nosys |
262 | .word sunos_nosys, sunos_nosys, sunos_nosys | 264 | .word sunos_nosys, sunos_nosys, sunos_nosys |
263 | .word sunos_nosys, sunos_nosys, sunos_nosys | 265 | .word sunos_nosys, sunos_nosys, sunos_nosys |
264 | .word sunos_nosys | 266 | .word sunos_nosys, sunos_nosys, sunos_nosys |
265 | #endif | 267 | #endif |
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c index e55b5c6ece02..0f00a99927e9 100644 --- a/arch/sparc64/kernel/time.c +++ b/arch/sparc64/kernel/time.c | |||
@@ -457,7 +457,7 @@ static inline void timer_check_rtc(void) | |||
457 | } | 457 | } |
458 | } | 458 | } |
459 | 459 | ||
460 | static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs * regs) | 460 | irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs * regs) |
461 | { | 461 | { |
462 | unsigned long ticks, compare, pstate; | 462 | unsigned long ticks, compare, pstate; |
463 | 463 | ||
@@ -1020,19 +1020,9 @@ static unsigned long sparc64_init_timers(void) | |||
1020 | return clock; | 1020 | return clock; |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | static void sparc64_start_timers(irqreturn_t (*cfunc)(int, void *, struct pt_regs *)) | 1023 | static void sparc64_start_timers(void) |
1024 | { | 1024 | { |
1025 | unsigned long pstate; | 1025 | unsigned long pstate; |
1026 | int err; | ||
1027 | |||
1028 | /* Register IRQ handler. */ | ||
1029 | err = request_irq(build_irq(0, 0, 0UL, 0UL), cfunc, 0, | ||
1030 | "timer", NULL); | ||
1031 | |||
1032 | if (err) { | ||
1033 | prom_printf("Serious problem, cannot register TICK_INT\n"); | ||
1034 | prom_halt(); | ||
1035 | } | ||
1036 | 1026 | ||
1037 | /* Guarantee that the following sequences execute | 1027 | /* Guarantee that the following sequences execute |
1038 | * uninterrupted. | 1028 | * uninterrupted. |
@@ -1116,7 +1106,7 @@ void __init time_init(void) | |||
1116 | /* Now that the interpolator is registered, it is | 1106 | /* Now that the interpolator is registered, it is |
1117 | * safe to start the timer ticking. | 1107 | * safe to start the timer ticking. |
1118 | */ | 1108 | */ |
1119 | sparc64_start_timers(timer_interrupt); | 1109 | sparc64_start_timers(); |
1120 | 1110 | ||
1121 | timer_ticks_per_nsec_quotient = | 1111 | timer_ticks_per_nsec_quotient = |
1122 | (((NSEC_PER_SEC << SPARC64_NSEC_PER_CYC_SHIFT) + | 1112 | (((NSEC_PER_SEC << SPARC64_NSEC_PER_CYC_SHIFT) + |
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index 2793a5d82380..5059cbd4feee 100644 --- a/arch/sparc64/kernel/traps.c +++ b/arch/sparc64/kernel/traps.c | |||
@@ -1797,7 +1797,9 @@ static const char *sun4v_err_type_to_str(u32 type) | |||
1797 | }; | 1797 | }; |
1798 | } | 1798 | } |
1799 | 1799 | ||
1800 | static void sun4v_log_error(struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt) | 1800 | extern void __show_regs(struct pt_regs * regs); |
1801 | |||
1802 | static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt) | ||
1801 | { | 1803 | { |
1802 | int cnt; | 1804 | int cnt; |
1803 | 1805 | ||
@@ -1830,6 +1832,8 @@ static void sun4v_log_error(struct sun4v_error_entry *ent, int cpu, const char * | |||
1830 | pfx, | 1832 | pfx, |
1831 | ent->err_raddr, ent->err_size, ent->err_cpu); | 1833 | ent->err_raddr, ent->err_size, ent->err_cpu); |
1832 | 1834 | ||
1835 | __show_regs(regs); | ||
1836 | |||
1833 | if ((cnt = atomic_read(ocnt)) != 0) { | 1837 | if ((cnt = atomic_read(ocnt)) != 0) { |
1834 | atomic_set(ocnt, 0); | 1838 | atomic_set(ocnt, 0); |
1835 | wmb(); | 1839 | wmb(); |
@@ -1862,7 +1866,7 @@ void sun4v_resum_error(struct pt_regs *regs, unsigned long offset) | |||
1862 | 1866 | ||
1863 | put_cpu(); | 1867 | put_cpu(); |
1864 | 1868 | ||
1865 | sun4v_log_error(&local_copy, cpu, | 1869 | sun4v_log_error(regs, &local_copy, cpu, |
1866 | KERN_ERR "RESUMABLE ERROR", | 1870 | KERN_ERR "RESUMABLE ERROR", |
1867 | &sun4v_resum_oflow_cnt); | 1871 | &sun4v_resum_oflow_cnt); |
1868 | } | 1872 | } |
@@ -1910,7 +1914,7 @@ void sun4v_nonresum_error(struct pt_regs *regs, unsigned long offset) | |||
1910 | } | 1914 | } |
1911 | #endif | 1915 | #endif |
1912 | 1916 | ||
1913 | sun4v_log_error(&local_copy, cpu, | 1917 | sun4v_log_error(regs, &local_copy, cpu, |
1914 | KERN_EMERG "NON-RESUMABLE ERROR", | 1918 | KERN_EMERG "NON-RESUMABLE ERROR", |
1915 | &sun4v_nonresum_oflow_cnt); | 1919 | &sun4v_nonresum_oflow_cnt); |
1916 | 1920 | ||
@@ -2200,7 +2204,6 @@ static inline struct reg_window *kernel_stack_up(struct reg_window *rw) | |||
2200 | void die_if_kernel(char *str, struct pt_regs *regs) | 2204 | void die_if_kernel(char *str, struct pt_regs *regs) |
2201 | { | 2205 | { |
2202 | static int die_counter; | 2206 | static int die_counter; |
2203 | extern void __show_regs(struct pt_regs * regs); | ||
2204 | extern void smp_report_regs(void); | 2207 | extern void smp_report_regs(void); |
2205 | int count = 0; | 2208 | int count = 0; |
2206 | 2209 | ||
@@ -2541,7 +2544,9 @@ void __init trap_init(void) | |||
2541 | (TRAP_PER_CPU_TSB_HUGE != | 2544 | (TRAP_PER_CPU_TSB_HUGE != |
2542 | offsetof(struct trap_per_cpu, tsb_huge)) || | 2545 | offsetof(struct trap_per_cpu, tsb_huge)) || |
2543 | (TRAP_PER_CPU_TSB_HUGE_TEMP != | 2546 | (TRAP_PER_CPU_TSB_HUGE_TEMP != |
2544 | offsetof(struct trap_per_cpu, tsb_huge_temp))) | 2547 | offsetof(struct trap_per_cpu, tsb_huge_temp)) || |
2548 | (TRAP_PER_CPU_IRQ_WORKLIST != | ||
2549 | offsetof(struct trap_per_cpu, irq_worklist))) | ||
2545 | trap_per_cpu_offsets_are_bolixed_dave(); | 2550 | trap_per_cpu_offsets_are_bolixed_dave(); |
2546 | 2551 | ||
2547 | if ((TSB_CONFIG_TSB != | 2552 | if ((TSB_CONFIG_TSB != |
diff --git a/arch/sparc64/kernel/ttable.S b/arch/sparc64/kernel/ttable.S index 5d901519db55..ee45ca2d7a04 100644 --- a/arch/sparc64/kernel/ttable.S +++ b/arch/sparc64/kernel/ttable.S | |||
@@ -58,13 +58,11 @@ tl0_irq2: BTRAP(0x42) | |||
58 | tl0_irq3: BTRAP(0x43) | 58 | tl0_irq3: BTRAP(0x43) |
59 | tl0_irq4: BTRAP(0x44) | 59 | tl0_irq4: BTRAP(0x44) |
60 | #endif | 60 | #endif |
61 | tl0_irq5: TRAP_IRQ(handler_irq, 5) TRAP_IRQ(handler_irq, 6) | 61 | tl0_irq5: TRAP_IRQ(handler_irq, 5) |
62 | tl0_irq7: TRAP_IRQ(handler_irq, 7) TRAP_IRQ(handler_irq, 8) | 62 | tl0_irq6: BTRAP(0x46) BTRAP(0x47) BTRAP(0x48) BTRAP(0x49) |
63 | tl0_irq9: TRAP_IRQ(handler_irq, 9) TRAP_IRQ(handler_irq, 10) | 63 | tl0_irq10: BTRAP(0x4a) BTRAP(0x4b) BTRAP(0x4c) BTRAP(0x4d) |
64 | tl0_irq11: TRAP_IRQ(handler_irq, 11) TRAP_IRQ(handler_irq, 12) | ||
65 | tl0_irq13: TRAP_IRQ(handler_irq, 13) | ||
66 | #ifndef CONFIG_SMP | 64 | #ifndef CONFIG_SMP |
67 | tl0_irq14: TRAP_IRQ(handler_irq, 14) | 65 | tl0_irq14: TRAP_IRQ(timer_irq, 14) |
68 | #else | 66 | #else |
69 | tl0_irq14: TICK_SMP_IRQ | 67 | tl0_irq14: TICK_SMP_IRQ |
70 | #endif | 68 | #endif |
diff --git a/arch/sparc64/lib/checksum.S b/arch/sparc64/lib/checksum.S index ba9cd3ccc2b2..1d230f693dc4 100644 --- a/arch/sparc64/lib/checksum.S +++ b/arch/sparc64/lib/checksum.S | |||
@@ -165,8 +165,9 @@ csum_partial_end_cruft: | |||
165 | sll %g1, 8, %g1 | 165 | sll %g1, 8, %g1 |
166 | or %o5, %g1, %o4 | 166 | or %o5, %g1, %o4 |
167 | 167 | ||
168 | 1: add %o2, %o4, %o2 | 168 | 1: addcc %o2, %o4, %o2 |
169 | addc %g0, %o2, %o2 | ||
169 | 170 | ||
170 | csum_partial_finish: | 171 | csum_partial_finish: |
171 | retl | 172 | retl |
172 | mov %o2, %o0 | 173 | srl %o2, 0, %o0 |
diff --git a/arch/sparc64/lib/csum_copy.S b/arch/sparc64/lib/csum_copy.S index 71af48839064..e566c770a0f6 100644 --- a/arch/sparc64/lib/csum_copy.S +++ b/arch/sparc64/lib/csum_copy.S | |||
@@ -221,11 +221,12 @@ FUNC_NAME: /* %o0=src, %o1=dst, %o2=len, %o3=sum */ | |||
221 | sll %g1, 8, %g1 | 221 | sll %g1, 8, %g1 |
222 | or %o5, %g1, %o4 | 222 | or %o5, %g1, %o4 |
223 | 223 | ||
224 | 1: add %o3, %o4, %o3 | 224 | 1: addcc %o3, %o4, %o3 |
225 | addc %g0, %o3, %o3 | ||
225 | 226 | ||
226 | 70: | 227 | 70: |
227 | retl | 228 | retl |
228 | mov %o3, %o0 | 229 | srl %o3, 0, %o0 |
229 | 230 | ||
230 | 95: mov 0, GLOBAL_SPARE | 231 | 95: mov 0, GLOBAL_SPARE |
231 | brlez,pn %o2, 4f | 232 | brlez,pn %o2, 4f |
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index 7a0e04e34bf9..b65ca115ef77 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
@@ -33,5 +33,9 @@ include $(srctree)/arch/i386/Makefile.cpu | |||
33 | # prevent gcc from keeping the stack 16 byte aligned. Taken from i386. | 33 | # prevent gcc from keeping the stack 16 byte aligned. Taken from i386. |
34 | cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) | 34 | cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) |
35 | 35 | ||
36 | # Prevent sprintf in nfsd from being converted to strcpy and resulting in | ||
37 | # an unresolved reference. | ||
38 | cflags-y += -ffreestanding | ||
39 | |||
36 | CFLAGS += $(cflags-y) | 40 | CFLAGS += $(cflags-y) |
37 | USER_CFLAGS += $(cflags-y) | 41 | USER_CFLAGS += $(cflags-y) |
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index efa3d33c0be6..310980b32173 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h | |||
@@ -120,20 +120,11 @@ extern int is_syscall(unsigned long addr); | |||
120 | extern void free_irq(unsigned int, void *); | 120 | extern void free_irq(unsigned int, void *); |
121 | extern int cpu(void); | 121 | extern int cpu(void); |
122 | 122 | ||
123 | extern void time_init_kern(void); | ||
124 | |||
123 | /* Are we disallowed to sleep? Used to choose between GFP_KERNEL and GFP_ATOMIC. */ | 125 | /* Are we disallowed to sleep? Used to choose between GFP_KERNEL and GFP_ATOMIC. */ |
124 | extern int __cant_sleep(void); | 126 | extern int __cant_sleep(void); |
125 | extern void segv_handler(int sig, union uml_pt_regs *regs); | 127 | extern void segv_handler(int sig, union uml_pt_regs *regs); |
126 | extern void sigio_handler(int sig, union uml_pt_regs *regs); | 128 | extern void sigio_handler(int sig, union uml_pt_regs *regs); |
127 | 129 | ||
128 | #endif | 130 | #endif |
129 | |||
130 | /* | ||
131 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
132 | * Emacs will notice this stuff at the end of the file and automatically | ||
133 | * adjust the settings for this buffer only. This must remain at the end | ||
134 | * of the file. | ||
135 | * --------------------------------------------------------------------------- | ||
136 | * Local variables: | ||
137 | * c-file-style: "linux" | ||
138 | * End: | ||
139 | */ | ||
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index fc0f0b085ca7..166cb09cae4c 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c | |||
@@ -69,7 +69,7 @@ static void insert_phys_mapping(struct phys_desc *desc) | |||
69 | panic("Physical remapping for %p already present", | 69 | panic("Physical remapping for %p already present", |
70 | desc->virt); | 70 | desc->virt); |
71 | 71 | ||
72 | rb_link_node(&desc->rb, (*n)->rb_parent, n); | 72 | rb_link_node(&desc->rb, rb_parent(*n), n); |
73 | rb_insert_color(&desc->rb, &phys_mappings); | 73 | rb_insert_color(&desc->rb, &phys_mappings); |
74 | } | 74 | } |
75 | 75 | ||
diff --git a/arch/um/kernel/time_kern.c b/arch/um/kernel/time_kern.c index 528cf623f8b4..86f51d04c98d 100644 --- a/arch/um/kernel/time_kern.c +++ b/arch/um/kernel/time_kern.c | |||
@@ -84,6 +84,16 @@ void timer_irq(union uml_pt_regs *regs) | |||
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
87 | |||
88 | void time_init_kern(void) | ||
89 | { | ||
90 | unsigned long long nsecs; | ||
91 | |||
92 | nsecs = os_nsecs(); | ||
93 | set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION, | ||
94 | -nsecs % BILLION); | ||
95 | } | ||
96 | |||
87 | void do_boot_timer_handler(struct sigcontext * sc) | 97 | void do_boot_timer_handler(struct sigcontext * sc) |
88 | { | 98 | { |
89 | struct pt_regs regs; | 99 | struct pt_regs regs; |
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index 3a0ac38e978b..90912aaca7aa 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c | |||
@@ -59,7 +59,7 @@ static __init void do_uml_initcalls(void) | |||
59 | initcall_t *call; | 59 | initcall_t *call; |
60 | 60 | ||
61 | call = &__uml_initcall_start; | 61 | call = &__uml_initcall_start; |
62 | while (call < &__uml_initcall_end){; | 62 | while (call < &__uml_initcall_end){ |
63 | (*call)(); | 63 | (*call)(); |
64 | call++; | 64 | call++; |
65 | } | 65 | } |
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index 6f7626775acb..280c4fb9b585 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c | |||
@@ -81,20 +81,12 @@ void uml_idle_timer(void) | |||
81 | set_interval(ITIMER_REAL); | 81 | set_interval(ITIMER_REAL); |
82 | } | 82 | } |
83 | 83 | ||
84 | extern void ktime_get_ts(struct timespec *ts); | ||
85 | #define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts) | ||
86 | |||
87 | void time_init(void) | 84 | void time_init(void) |
88 | { | 85 | { |
89 | struct timespec now; | ||
90 | |||
91 | if(signal(SIGVTALRM, boot_timer_handler) == SIG_ERR) | 86 | if(signal(SIGVTALRM, boot_timer_handler) == SIG_ERR) |
92 | panic("Couldn't set SIGVTALRM handler"); | 87 | panic("Couldn't set SIGVTALRM handler"); |
93 | set_interval(ITIMER_VIRTUAL); | 88 | set_interval(ITIMER_VIRTUAL); |
94 | 89 | time_init_kern(); | |
95 | do_posix_clock_monotonic_gettime(&now); | ||
96 | wall_to_monotonic.tv_sec = -now.tv_sec; | ||
97 | wall_to_monotonic.tv_nsec = -now.tv_nsec; | ||
98 | } | 90 | } |
99 | 91 | ||
100 | unsigned long long os_nsecs(void) | 92 | unsigned long long os_nsecs(void) |
diff --git a/arch/um/sys-i386/syscalls.c b/arch/um/sys-i386/syscalls.c index 749dd1bfe60f..710d5fb807e1 100644 --- a/arch/um/sys-i386/syscalls.c +++ b/arch/um/sys-i386/syscalls.c | |||
@@ -99,11 +99,12 @@ long sys_ipc (uint call, int first, int second, | |||
99 | 99 | ||
100 | switch (call) { | 100 | switch (call) { |
101 | case SEMOP: | 101 | case SEMOP: |
102 | return sys_semtimedop(first, (struct sembuf *) ptr, second, | 102 | return sys_semtimedop(first, (struct sembuf __user *) ptr, |
103 | NULL); | 103 | second, NULL); |
104 | case SEMTIMEDOP: | 104 | case SEMTIMEDOP: |
105 | return sys_semtimedop(first, (struct sembuf *) ptr, second, | 105 | return sys_semtimedop(first, (struct sembuf __user *) ptr, |
106 | (const struct timespec *) fifth); | 106 | second, |
107 | (const struct timespec __user *) fifth); | ||
107 | case SEMGET: | 108 | case SEMGET: |
108 | return sys_semget (first, second, third); | 109 | return sys_semget (first, second, third); |
109 | case SEMCTL: { | 110 | case SEMCTL: { |
diff --git a/arch/um/sys-x86_64/signal.c b/arch/um/sys-x86_64/signal.c index a4c46a8af008..9edf114faf79 100644 --- a/arch/um/sys-x86_64/signal.c +++ b/arch/um/sys-x86_64/signal.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "skas.h" | 21 | #include "skas.h" |
22 | 22 | ||
23 | static int copy_sc_from_user_skas(struct pt_regs *regs, | 23 | static int copy_sc_from_user_skas(struct pt_regs *regs, |
24 | struct sigcontext *from) | 24 | struct sigcontext __user *from) |
25 | { | 25 | { |
26 | int err = 0; | 26 | int err = 0; |
27 | 27 | ||
@@ -54,7 +54,8 @@ static int copy_sc_from_user_skas(struct pt_regs *regs, | |||
54 | return(err); | 54 | return(err); |
55 | } | 55 | } |
56 | 56 | ||
57 | int copy_sc_to_user_skas(struct sigcontext *to, struct _fpstate *to_fp, | 57 | int copy_sc_to_user_skas(struct sigcontext __user *to, |
58 | struct _fpstate __user *to_fp, | ||
58 | struct pt_regs *regs, unsigned long mask, | 59 | struct pt_regs *regs, unsigned long mask, |
59 | unsigned long sp) | 60 | unsigned long sp) |
60 | { | 61 | { |
@@ -106,10 +107,11 @@ int copy_sc_to_user_skas(struct sigcontext *to, struct _fpstate *to_fp, | |||
106 | #endif | 107 | #endif |
107 | 108 | ||
108 | #ifdef CONFIG_MODE_TT | 109 | #ifdef CONFIG_MODE_TT |
109 | int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext *from, | 110 | int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext __user *from, |
110 | int fpsize) | 111 | int fpsize) |
111 | { | 112 | { |
112 | struct _fpstate *to_fp, *from_fp; | 113 | struct _fpstate *to_fp; |
114 | struct _fpstate __user *from_fp; | ||
113 | unsigned long sigs; | 115 | unsigned long sigs; |
114 | int err; | 116 | int err; |
115 | 117 | ||
@@ -124,13 +126,14 @@ int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext *from, | |||
124 | return(err); | 126 | return(err); |
125 | } | 127 | } |
126 | 128 | ||
127 | int copy_sc_to_user_tt(struct sigcontext *to, struct _fpstate *fp, | 129 | int copy_sc_to_user_tt(struct sigcontext __user *to, struct _fpstate __user *fp, |
128 | struct sigcontext *from, int fpsize, unsigned long sp) | 130 | struct sigcontext *from, int fpsize, unsigned long sp) |
129 | { | 131 | { |
130 | struct _fpstate *to_fp, *from_fp; | 132 | struct _fpstate __user *to_fp; |
133 | struct _fpstate *from_fp; | ||
131 | int err; | 134 | int err; |
132 | 135 | ||
133 | to_fp = (fp ? fp : (struct _fpstate *) (to + 1)); | 136 | to_fp = (fp ? fp : (struct _fpstate __user *) (to + 1)); |
134 | from_fp = from->fpstate; | 137 | from_fp = from->fpstate; |
135 | err = copy_to_user(to, from, sizeof(*to)); | 138 | err = copy_to_user(to, from, sizeof(*to)); |
136 | /* The SP in the sigcontext is the updated one for the signal | 139 | /* The SP in the sigcontext is the updated one for the signal |
@@ -158,7 +161,8 @@ static int copy_sc_from_user(struct pt_regs *to, void __user *from) | |||
158 | return(ret); | 161 | return(ret); |
159 | } | 162 | } |
160 | 163 | ||
161 | static int copy_sc_to_user(struct sigcontext *to, struct _fpstate *fp, | 164 | static int copy_sc_to_user(struct sigcontext __user *to, |
165 | struct _fpstate __user *fp, | ||
162 | struct pt_regs *from, unsigned long mask, | 166 | struct pt_regs *from, unsigned long mask, |
163 | unsigned long sp) | 167 | unsigned long sp) |
164 | { | 168 | { |
@@ -169,7 +173,7 @@ static int copy_sc_to_user(struct sigcontext *to, struct _fpstate *fp, | |||
169 | 173 | ||
170 | struct rt_sigframe | 174 | struct rt_sigframe |
171 | { | 175 | { |
172 | char *pretcode; | 176 | char __user *pretcode; |
173 | struct ucontext uc; | 177 | struct ucontext uc; |
174 | struct siginfo info; | 178 | struct siginfo info; |
175 | }; | 179 | }; |
@@ -188,7 +192,7 @@ int setup_signal_stack_si(unsigned long stack_top, int sig, | |||
188 | 192 | ||
189 | frame = (struct rt_sigframe __user *) | 193 | frame = (struct rt_sigframe __user *) |
190 | round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8; | 194 | round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8; |
191 | frame = (struct rt_sigframe *) ((unsigned long) frame - 128); | 195 | frame = (struct rt_sigframe __user *) ((unsigned long) frame - 128); |
192 | 196 | ||
193 | if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate))) | 197 | if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate))) |
194 | goto out; | 198 | goto out; |
diff --git a/arch/um/sys-x86_64/syscalls.c b/arch/um/sys-x86_64/syscalls.c index 6acee5c4ada6..6fce9f45dfdc 100644 --- a/arch/um/sys-x86_64/syscalls.c +++ b/arch/um/sys-x86_64/syscalls.c | |||
@@ -45,7 +45,7 @@ static long arch_prctl_tt(int code, unsigned long addr) | |||
45 | case ARCH_GET_GS: | 45 | case ARCH_GET_GS: |
46 | ret = arch_prctl(code, (unsigned long) &tmp); | 46 | ret = arch_prctl(code, (unsigned long) &tmp); |
47 | if(!ret) | 47 | if(!ret) |
48 | ret = put_user(tmp, &addr); | 48 | ret = put_user(tmp, (long __user *)addr); |
49 | break; | 49 | break; |
50 | default: | 50 | default: |
51 | ret = -EINVAL; | 51 | ret = -EINVAL; |
diff --git a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c index e776139afb20..926c4743d13b 100644 --- a/arch/x86_64/ia32/ia32_binfmt.c +++ b/arch/x86_64/ia32/ia32_binfmt.c | |||
@@ -339,7 +339,7 @@ int ia32_setup_arg_pages(struct linux_binprm *bprm, unsigned long stack_top, | |||
339 | struct mm_struct *mm = current->mm; | 339 | struct mm_struct *mm = current->mm; |
340 | int i, ret; | 340 | int i, ret; |
341 | 341 | ||
342 | stack_base = IA32_STACK_TOP - MAX_ARG_PAGES * PAGE_SIZE; | 342 | stack_base = stack_top - MAX_ARG_PAGES * PAGE_SIZE; |
343 | mm->arg_start = bprm->p + stack_base; | 343 | mm->arg_start = bprm->p + stack_base; |
344 | 344 | ||
345 | bprm->p += stack_base; | 345 | bprm->p += stack_base; |
@@ -357,7 +357,7 @@ int ia32_setup_arg_pages(struct linux_binprm *bprm, unsigned long stack_top, | |||
357 | { | 357 | { |
358 | mpnt->vm_mm = mm; | 358 | mpnt->vm_mm = mm; |
359 | mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p; | 359 | mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p; |
360 | mpnt->vm_end = IA32_STACK_TOP; | 360 | mpnt->vm_end = stack_top; |
361 | if (executable_stack == EXSTACK_ENABLE_X) | 361 | if (executable_stack == EXSTACK_ENABLE_X) |
362 | mpnt->vm_flags = VM_STACK_FLAGS | VM_EXEC; | 362 | mpnt->vm_flags = VM_STACK_FLAGS | VM_EXEC; |
363 | else if (executable_stack == EXSTACK_DISABLE_X) | 363 | else if (executable_stack == EXSTACK_DISABLE_X) |
diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c index 222b5b46d2b2..1ef6028f721e 100644 --- a/arch/x86_64/kernel/e820.c +++ b/arch/x86_64/kernel/e820.c | |||
@@ -149,7 +149,7 @@ unsigned long __init find_e820_area(unsigned long start, unsigned long end, unsi | |||
149 | addr = start; | 149 | addr = start; |
150 | if (addr > ei->addr + ei->size) | 150 | if (addr > ei->addr + ei->size) |
151 | continue; | 151 | continue; |
152 | while (bad_addr(&addr, size) && addr+size < ei->addr + ei->size) | 152 | while (bad_addr(&addr, size) && addr+size <= ei->addr+ei->size) |
153 | ; | 153 | ; |
154 | last = addr + size; | 154 | last = addr + size; |
155 | if (last > ei->addr + ei->size) | 155 | if (last > ei->addr + ei->size) |
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S index c946e4fe67a7..586b34c00c48 100644 --- a/arch/x86_64/kernel/entry.S +++ b/arch/x86_64/kernel/entry.S | |||
@@ -281,12 +281,7 @@ tracesys: | |||
281 | ja 1f | 281 | ja 1f |
282 | movq %r10,%rcx /* fixup for C */ | 282 | movq %r10,%rcx /* fixup for C */ |
283 | call *sys_call_table(,%rax,8) | 283 | call *sys_call_table(,%rax,8) |
284 | movq %rax,RAX-ARGOFFSET(%rsp) | 284 | 1: movq %rax,RAX-ARGOFFSET(%rsp) |
285 | 1: SAVE_REST | ||
286 | movq %rsp,%rdi | ||
287 | call syscall_trace_leave | ||
288 | RESTORE_TOP_OF_STACK %rbx | ||
289 | RESTORE_REST | ||
290 | /* Use IRET because user could have changed frame */ | 285 | /* Use IRET because user could have changed frame */ |
291 | jmp int_ret_from_sys_call | 286 | jmp int_ret_from_sys_call |
292 | CFI_ENDPROC | 287 | CFI_ENDPROC |
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c index 0de3ea938830..9cc7031b7151 100644 --- a/arch/x86_64/kernel/io_apic.c +++ b/arch/x86_64/kernel/io_apic.c | |||
@@ -271,6 +271,18 @@ __setup("enable_8254_timer", setup_enable_8254_timer); | |||
271 | #include <linux/pci_ids.h> | 271 | #include <linux/pci_ids.h> |
272 | #include <linux/pci.h> | 272 | #include <linux/pci.h> |
273 | 273 | ||
274 | |||
275 | #ifdef CONFIG_ACPI | ||
276 | |||
277 | static int nvidia_hpet_detected __initdata; | ||
278 | |||
279 | static int __init nvidia_hpet_check(unsigned long phys, unsigned long size) | ||
280 | { | ||
281 | nvidia_hpet_detected = 1; | ||
282 | return 0; | ||
283 | } | ||
284 | #endif | ||
285 | |||
274 | /* Temporary Hack. Nvidia and VIA boards currently only work with IO-APIC | 286 | /* Temporary Hack. Nvidia and VIA boards currently only work with IO-APIC |
275 | off. Check for an Nvidia or VIA PCI bridge and turn it off. | 287 | off. Check for an Nvidia or VIA PCI bridge and turn it off. |
276 | Use pci direct infrastructure because this runs before the PCI subsystem. | 288 | Use pci direct infrastructure because this runs before the PCI subsystem. |
@@ -317,11 +329,19 @@ void __init check_ioapic(void) | |||
317 | return; | 329 | return; |
318 | case PCI_VENDOR_ID_NVIDIA: | 330 | case PCI_VENDOR_ID_NVIDIA: |
319 | #ifdef CONFIG_ACPI | 331 | #ifdef CONFIG_ACPI |
320 | /* All timer overrides on Nvidia | 332 | /* |
321 | seem to be wrong. Skip them. */ | 333 | * All timer overrides on Nvidia are |
322 | acpi_skip_timer_override = 1; | 334 | * wrong unless HPET is enabled. |
323 | printk(KERN_INFO | 335 | */ |
324 | "Nvidia board detected. Ignoring ACPI timer override.\n"); | 336 | nvidia_hpet_detected = 0; |
337 | acpi_table_parse(ACPI_HPET, | ||
338 | nvidia_hpet_check); | ||
339 | if (nvidia_hpet_detected == 0) { | ||
340 | acpi_skip_timer_override = 1; | ||
341 | printk(KERN_INFO "Nvidia board " | ||
342 | "detected. Ignoring ACPI " | ||
343 | "timer override.\n"); | ||
344 | } | ||
325 | #endif | 345 | #endif |
326 | /* RED-PEN skip them on mptables too? */ | 346 | /* RED-PEN skip them on mptables too? */ |
327 | return; | 347 | return; |
diff --git a/arch/x86_64/kernel/kprobes.c b/arch/x86_64/kernel/kprobes.c index 1eaa5dae6174..fa1d19ca700a 100644 --- a/arch/x86_64/kernel/kprobes.c +++ b/arch/x86_64/kernel/kprobes.c | |||
@@ -514,13 +514,13 @@ static void __kprobes resume_execution(struct kprobe *p, | |||
514 | *tos = orig_rip + (*tos - copy_rip); | 514 | *tos = orig_rip + (*tos - copy_rip); |
515 | break; | 515 | break; |
516 | case 0xff: | 516 | case 0xff: |
517 | if ((*insn & 0x30) == 0x10) { | 517 | if ((insn[1] & 0x30) == 0x10) { |
518 | /* call absolute, indirect */ | 518 | /* call absolute, indirect */ |
519 | /* Fix return addr; rip is correct. */ | 519 | /* Fix return addr; rip is correct. */ |
520 | next_rip = regs->rip; | 520 | next_rip = regs->rip; |
521 | *tos = orig_rip + (*tos - copy_rip); | 521 | *tos = orig_rip + (*tos - copy_rip); |
522 | } else if (((*insn & 0x31) == 0x20) || /* jmp near, absolute indirect */ | 522 | } else if (((insn[1] & 0x31) == 0x20) || /* jmp near, absolute indirect */ |
523 | ((*insn & 0x31) == 0x21)) { /* jmp far, absolute indirect */ | 523 | ((insn[1] & 0x31) == 0x21)) { /* jmp far, absolute indirect */ |
524 | /* rip is correct. */ | 524 | /* rip is correct. */ |
525 | next_rip = regs->rip; | 525 | next_rip = regs->rip; |
526 | } | 526 | } |
diff --git a/arch/x86_64/kernel/pci-dma.c b/arch/x86_64/kernel/pci-dma.c index af035ede70cd..a9275c9557cf 100644 --- a/arch/x86_64/kernel/pci-dma.c +++ b/arch/x86_64/kernel/pci-dma.c | |||
@@ -54,6 +54,10 @@ dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order) | |||
54 | else | 54 | else |
55 | #endif | 55 | #endif |
56 | node = numa_node_id(); | 56 | node = numa_node_id(); |
57 | |||
58 | if (node < first_node(node_online_map)) | ||
59 | node = first_node(node_online_map); | ||
60 | |||
57 | page = alloc_pages_node(node, gfp, order); | 61 | page = alloc_pages_node(node, gfp, order); |
58 | return page ? page_address(page) : NULL; | 62 | return page ? page_address(page) : NULL; |
59 | } | 63 | } |
diff --git a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c index 2480d3f08a47..82a7c9bfdfa0 100644 --- a/arch/x86_64/kernel/pci-gart.c +++ b/arch/x86_64/kernel/pci-gart.c | |||
@@ -631,10 +631,8 @@ static int __init pci_iommu_init(void) | |||
631 | printk(KERN_INFO "PCI-DMA: Disabling IOMMU.\n"); | 631 | printk(KERN_INFO "PCI-DMA: Disabling IOMMU.\n"); |
632 | if (end_pfn > MAX_DMA32_PFN) { | 632 | if (end_pfn > MAX_DMA32_PFN) { |
633 | printk(KERN_ERR "WARNING more than 4GB of memory " | 633 | printk(KERN_ERR "WARNING more than 4GB of memory " |
634 | "but IOMMU not compiled in.\n" | 634 | "but IOMMU not available.\n" |
635 | KERN_ERR "WARNING 32bit PCI may malfunction.\n" | 635 | KERN_ERR "WARNING 32bit PCI may malfunction.\n"); |
636 | KERN_ERR "You might want to enable " | ||
637 | "CONFIG_GART_IOMMU\n"); | ||
638 | } | 636 | } |
639 | return -1; | 637 | return -1; |
640 | } | 638 | } |
diff --git a/arch/x86_64/kernel/pci-nommu.c b/arch/x86_64/kernel/pci-nommu.c index 44adcc2d5e5b..1f6ecc62061d 100644 --- a/arch/x86_64/kernel/pci-nommu.c +++ b/arch/x86_64/kernel/pci-nommu.c | |||
@@ -12,9 +12,10 @@ static int | |||
12 | check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) | 12 | check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) |
13 | { | 13 | { |
14 | if (hwdev && bus + size > *hwdev->dma_mask) { | 14 | if (hwdev && bus + size > *hwdev->dma_mask) { |
15 | printk(KERN_ERR | 15 | if (*hwdev->dma_mask >= 0xffffffffULL) |
16 | "nommu_%s: overflow %Lx+%lu of device mask %Lx\n", | 16 | printk(KERN_ERR |
17 | name, (long long)bus, size, (long long)*hwdev->dma_mask); | 17 | "nommu_%s: overflow %Lx+%lu of device mask %Lx\n", |
18 | name, (long long)bus, size, (long long)*hwdev->dma_mask); | ||
18 | return 0; | 19 | return 0; |
19 | } | 20 | } |
20 | return 1; | 21 | return 1; |
diff --git a/arch/x86_64/kernel/pmtimer.c b/arch/x86_64/kernel/pmtimer.c index b0444a415bd6..bf421ed26808 100644 --- a/arch/x86_64/kernel/pmtimer.c +++ b/arch/x86_64/kernel/pmtimer.c | |||
@@ -68,7 +68,7 @@ int pmtimer_mark_offset(void) | |||
68 | offset_delay = delta % (USEC_PER_SEC / HZ); | 68 | offset_delay = delta % (USEC_PER_SEC / HZ); |
69 | 69 | ||
70 | rdtscll(tsc); | 70 | rdtscll(tsc); |
71 | vxtime.last_tsc = tsc - offset_delay * cpu_khz; | 71 | vxtime.last_tsc = tsc - offset_delay * (u64)cpu_khz / 1000; |
72 | 72 | ||
73 | /* don't calculate delay for first run, | 73 | /* don't calculate delay for first run, |
74 | or if we've got less then a tick */ | 74 | or if we've got less then a tick */ |
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index f0870bef24d1..655b9192eeb3 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -1051,7 +1051,7 @@ static void srat_detect_node(void) | |||
1051 | for now. */ | 1051 | for now. */ |
1052 | node = apicid_to_node[hard_smp_processor_id()]; | 1052 | node = apicid_to_node[hard_smp_processor_id()]; |
1053 | if (node == NUMA_NO_NODE) | 1053 | if (node == NUMA_NO_NODE) |
1054 | node = 0; | 1054 | node = first_node(node_online_map); |
1055 | numa_set_node(cpu, node); | 1055 | numa_set_node(cpu, node); |
1056 | 1056 | ||
1057 | if (acpi_numa > 0) | 1057 | if (acpi_numa > 0) |
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 6b87268c5c2e..cea335e8746c 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c | |||
@@ -102,6 +102,8 @@ static inline void preempt_conditional_cli(struct pt_regs *regs) | |||
102 | { | 102 | { |
103 | if (regs->eflags & X86_EFLAGS_IF) | 103 | if (regs->eflags & X86_EFLAGS_IF) |
104 | local_irq_disable(); | 104 | local_irq_disable(); |
105 | /* Make sure to not schedule here because we could be running | ||
106 | on an exception stack. */ | ||
105 | preempt_enable_no_resched(); | 107 | preempt_enable_no_resched(); |
106 | } | 108 | } |
107 | 109 | ||
@@ -483,8 +485,6 @@ static void __kprobes do_trap(int trapnr, int signr, char *str, | |||
483 | { | 485 | { |
484 | struct task_struct *tsk = current; | 486 | struct task_struct *tsk = current; |
485 | 487 | ||
486 | conditional_sti(regs); | ||
487 | |||
488 | tsk->thread.error_code = error_code; | 488 | tsk->thread.error_code = error_code; |
489 | tsk->thread.trap_no = trapnr; | 489 | tsk->thread.trap_no = trapnr; |
490 | 490 | ||
@@ -521,6 +521,7 @@ asmlinkage void do_##name(struct pt_regs * regs, long error_code) \ | |||
521 | if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \ | 521 | if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \ |
522 | == NOTIFY_STOP) \ | 522 | == NOTIFY_STOP) \ |
523 | return; \ | 523 | return; \ |
524 | conditional_sti(regs); \ | ||
524 | do_trap(trapnr, signr, str, regs, error_code, NULL); \ | 525 | do_trap(trapnr, signr, str, regs, error_code, NULL); \ |
525 | } | 526 | } |
526 | 527 | ||
@@ -535,6 +536,7 @@ asmlinkage void do_##name(struct pt_regs * regs, long error_code) \ | |||
535 | if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \ | 536 | if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \ |
536 | == NOTIFY_STOP) \ | 537 | == NOTIFY_STOP) \ |
537 | return; \ | 538 | return; \ |
539 | conditional_sti(regs); \ | ||
538 | do_trap(trapnr, signr, str, regs, error_code, &info); \ | 540 | do_trap(trapnr, signr, str, regs, error_code, &info); \ |
539 | } | 541 | } |
540 | 542 | ||
@@ -548,7 +550,17 @@ DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS) | |||
548 | DO_ERROR(11, SIGBUS, "segment not present", segment_not_present) | 550 | DO_ERROR(11, SIGBUS, "segment not present", segment_not_present) |
549 | DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 0) | 551 | DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 0) |
550 | DO_ERROR(18, SIGSEGV, "reserved", reserved) | 552 | DO_ERROR(18, SIGSEGV, "reserved", reserved) |
551 | DO_ERROR(12, SIGBUS, "stack segment", stack_segment) | 553 | |
554 | /* Runs on IST stack */ | ||
555 | asmlinkage void do_stack_segment(struct pt_regs *regs, long error_code) | ||
556 | { | ||
557 | if (notify_die(DIE_TRAP, "stack segment", regs, error_code, | ||
558 | 12, SIGBUS) == NOTIFY_STOP) | ||
559 | return; | ||
560 | preempt_conditional_sti(regs); | ||
561 | do_trap(12, SIGBUS, "stack segment", regs, error_code, NULL); | ||
562 | preempt_conditional_cli(regs); | ||
563 | } | ||
552 | 564 | ||
553 | asmlinkage void do_double_fault(struct pt_regs * regs, long error_code) | 565 | asmlinkage void do_double_fault(struct pt_regs * regs, long error_code) |
554 | { | 566 | { |
@@ -682,8 +694,9 @@ asmlinkage void __kprobes do_int3(struct pt_regs * regs, long error_code) | |||
682 | if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP) == NOTIFY_STOP) { | 694 | if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP) == NOTIFY_STOP) { |
683 | return; | 695 | return; |
684 | } | 696 | } |
697 | preempt_conditional_sti(regs); | ||
685 | do_trap(3, SIGTRAP, "int3", regs, error_code, NULL); | 698 | do_trap(3, SIGTRAP, "int3", regs, error_code, NULL); |
686 | return; | 699 | preempt_conditional_cli(regs); |
687 | } | 700 | } |
688 | 701 | ||
689 | /* Help handler running on IST stack to switch back to user stack | 702 | /* Help handler running on IST stack to switch back to user stack |
diff --git a/arch/x86_64/mm/srat.c b/arch/x86_64/mm/srat.c index 15ae9fcd65a7..474df22c6ed2 100644 --- a/arch/x86_64/mm/srat.c +++ b/arch/x86_64/mm/srat.c | |||
@@ -34,7 +34,10 @@ static nodemask_t nodes_found __initdata; | |||
34 | static struct bootnode nodes[MAX_NUMNODES] __initdata; | 34 | static struct bootnode nodes[MAX_NUMNODES] __initdata; |
35 | static struct bootnode nodes_add[MAX_NUMNODES] __initdata; | 35 | static struct bootnode nodes_add[MAX_NUMNODES] __initdata; |
36 | static int found_add_area __initdata; | 36 | static int found_add_area __initdata; |
37 | int hotadd_percent __initdata = 10; | 37 | int hotadd_percent __initdata = 0; |
38 | #ifndef RESERVE_HOTADD | ||
39 | #define hotadd_percent 0 /* Ignore all settings */ | ||
40 | #endif | ||
38 | static u8 pxm2node[256] = { [0 ... 255] = 0xff }; | 41 | static u8 pxm2node[256] = { [0 ... 255] = 0xff }; |
39 | 42 | ||
40 | /* Too small nodes confuse the VM badly. Usually they result | 43 | /* Too small nodes confuse the VM badly. Usually they result |
@@ -103,6 +106,7 @@ static __init void bad_srat(void) | |||
103 | int i; | 106 | int i; |
104 | printk(KERN_ERR "SRAT: SRAT not used.\n"); | 107 | printk(KERN_ERR "SRAT: SRAT not used.\n"); |
105 | acpi_numa = -1; | 108 | acpi_numa = -1; |
109 | found_add_area = 0; | ||
106 | for (i = 0; i < MAX_LOCAL_APIC; i++) | 110 | for (i = 0; i < MAX_LOCAL_APIC; i++) |
107 | apicid_to_node[i] = NUMA_NO_NODE; | 111 | apicid_to_node[i] = NUMA_NO_NODE; |
108 | for (i = 0; i < MAX_NUMNODES; i++) | 112 | for (i = 0; i < MAX_NUMNODES; i++) |
@@ -154,7 +158,8 @@ acpi_numa_processor_affinity_init(struct acpi_table_processor_affinity *pa) | |||
154 | int pxm, node; | 158 | int pxm, node; |
155 | if (srat_disabled()) | 159 | if (srat_disabled()) |
156 | return; | 160 | return; |
157 | if (pa->header.length != sizeof(struct acpi_table_processor_affinity)) { bad_srat(); | 161 | if (pa->header.length != sizeof(struct acpi_table_processor_affinity)) { |
162 | bad_srat(); | ||
158 | return; | 163 | return; |
159 | } | 164 | } |
160 | if (pa->flags.enabled == 0) | 165 | if (pa->flags.enabled == 0) |
@@ -191,15 +196,17 @@ static int hotadd_enough_memory(struct bootnode *nd) | |||
191 | allowed = (end_pfn - e820_hole_size(0, end_pfn)) * PAGE_SIZE; | 196 | allowed = (end_pfn - e820_hole_size(0, end_pfn)) * PAGE_SIZE; |
192 | allowed = (allowed / 100) * hotadd_percent; | 197 | allowed = (allowed / 100) * hotadd_percent; |
193 | if (allocated + mem > allowed) { | 198 | if (allocated + mem > allowed) { |
199 | unsigned long range; | ||
194 | /* Give them at least part of their hotadd memory upto hotadd_percent | 200 | /* Give them at least part of their hotadd memory upto hotadd_percent |
195 | It would be better to spread the limit out | 201 | It would be better to spread the limit out |
196 | over multiple hotplug areas, but that is too complicated | 202 | over multiple hotplug areas, but that is too complicated |
197 | right now */ | 203 | right now */ |
198 | if (allocated >= allowed) | 204 | if (allocated >= allowed) |
199 | return 0; | 205 | return 0; |
200 | pages = (allowed - allocated + mem) / sizeof(struct page); | 206 | range = allowed - allocated; |
207 | pages = (range / PAGE_SIZE); | ||
201 | mem = pages * sizeof(struct page); | 208 | mem = pages * sizeof(struct page); |
202 | nd->end = nd->start + pages*PAGE_SIZE; | 209 | nd->end = nd->start + range; |
203 | } | 210 | } |
204 | /* Not completely fool proof, but a good sanity check */ | 211 | /* Not completely fool proof, but a good sanity check */ |
205 | addr = find_e820_area(last_area_end, end_pfn<<PAGE_SHIFT, mem); | 212 | addr = find_e820_area(last_area_end, end_pfn<<PAGE_SHIFT, mem); |
@@ -392,8 +399,10 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end) | |||
392 | /* First clean up the node list */ | 399 | /* First clean up the node list */ |
393 | for (i = 0; i < MAX_NUMNODES; i++) { | 400 | for (i = 0; i < MAX_NUMNODES; i++) { |
394 | cutoff_node(i, start, end); | 401 | cutoff_node(i, start, end); |
395 | if ((nodes[i].end - nodes[i].start) < NODE_MIN_SIZE) | 402 | if ((nodes[i].end - nodes[i].start) < NODE_MIN_SIZE) { |
396 | unparse_node(i); | 403 | unparse_node(i); |
404 | node_set_offline(i); | ||
405 | } | ||
397 | } | 406 | } |
398 | 407 | ||
399 | if (acpi_numa <= 0) | 408 | if (acpi_numa <= 0) |