diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:19:08 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:19:08 -0400 |
commit | 905ec87e93bc9e01b15c60035cd6a50c636cbaef (patch) | |
tree | 46fd7618d6511611ffc19eb0dd4d7bc6b90a41c2 /arch/arm | |
parent | 1d6ae775d7a948c9575658eb41184fd2e506c0df (diff) | |
parent | 2f4ba45a75d6383b4a1201169a808ffea416ffa0 (diff) |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'arch/arm')
73 files changed, 1150 insertions, 267 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0f2899b4159d..11fff042aa81 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -326,8 +326,8 @@ config SMP | |||
326 | processor machines. On a single processor machine, the kernel will | 326 | processor machines. On a single processor machine, the kernel will |
327 | run faster if you say N here. | 327 | run faster if you say N here. |
328 | 328 | ||
329 | See also the <file:Documentation/smp.tex>, | 329 | See also the <file:Documentation/smp.txt>, |
330 | <file:Documentation/smp.txt>, <file:Documentation/i386/IO-APIC.txt>, | 330 | <file:Documentation/i386/IO-APIC.txt>, |
331 | <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at | 331 | <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at |
332 | <http://www.linuxdoc.org/docs.html#howto>. | 332 | <http://www.linuxdoc.org/docs.html#howto>. |
333 | 333 | ||
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 45a5709eaaa4..5d3acff8c596 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -53,7 +53,7 @@ config DEBUG_LL | |||
53 | bool "Kernel low-level debugging functions" | 53 | bool "Kernel low-level debugging functions" |
54 | depends on DEBUG_KERNEL | 54 | depends on DEBUG_KERNEL |
55 | help | 55 | help |
56 | Say Y here to include definitions of printascii, printchar, printhex | 56 | Say Y here to include definitions of printascii, printch, printhex |
57 | in the kernel. This is helpful if you are debugging code that | 57 | in the kernel. This is helpful if you are debugging code that |
58 | executes before the console is initialized. | 58 | executes before the console is initialized. |
59 | 59 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 67f1453ade05..130e6228b587 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -175,10 +175,10 @@ else | |||
175 | endif | 175 | endif |
176 | @touch $@ | 176 | @touch $@ |
177 | 177 | ||
178 | prepare: maketools include/asm-arm/.arch | 178 | archprepare: maketools include/asm-arm/.arch |
179 | 179 | ||
180 | .PHONY: maketools FORCE | 180 | .PHONY: maketools FORCE |
181 | maketools: include/asm-arm/constants.h include/linux/version.h FORCE | 181 | maketools: include/linux/version.h FORCE |
182 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h | 182 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h |
183 | 183 | ||
184 | # Convert bzImage to zImage | 184 | # Convert bzImage to zImage |
@@ -190,7 +190,7 @@ zImage Image xipImage bootpImage uImage: vmlinux | |||
190 | zinstall install: vmlinux | 190 | zinstall install: vmlinux |
191 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 191 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
192 | 192 | ||
193 | CLEAN_FILES += include/asm-arm/constants.h* include/asm-arm/mach-types.h \ | 193 | CLEAN_FILES += include/asm-arm/mach-types.h \ |
194 | include/asm-arm/arch include/asm-arm/.arch | 194 | include/asm-arm/arch include/asm-arm/.arch |
195 | 195 | ||
196 | # We use MRPROPER_FILES and CLEAN_FILES now | 196 | # We use MRPROPER_FILES and CLEAN_FILES now |
@@ -201,11 +201,6 @@ archclean: | |||
201 | bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage | 201 | bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage |
202 | i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 202 | i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
203 | 203 | ||
204 | arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ | ||
205 | include/asm-arm/.arch | ||
206 | |||
207 | include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.s | ||
208 | $(call filechk,gen-asm-offsets) | ||
209 | 204 | ||
210 | define archhelp | 205 | define archhelp |
211 | echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' | 206 | echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' |
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 51f430cc2fbf..2786f7c34b3f 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -541,6 +541,103 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info) | |||
541 | return ret; | 541 | return ret; |
542 | } | 542 | } |
543 | 543 | ||
544 | #ifdef CONFIG_PM | ||
545 | |||
546 | struct locomo_save_data { | ||
547 | u16 LCM_GPO; | ||
548 | u16 LCM_SPICT; | ||
549 | u16 LCM_GPE; | ||
550 | u16 LCM_ASD; | ||
551 | u16 LCM_SPIMD; | ||
552 | }; | ||
553 | |||
554 | static int locomo_suspend(struct device *dev, u32 pm_message_t, u32 level) | ||
555 | { | ||
556 | struct locomo *lchip = dev_get_drvdata(dev); | ||
557 | struct locomo_save_data *save; | ||
558 | unsigned long flags; | ||
559 | |||
560 | if (level != SUSPEND_DISABLE) | ||
561 | return 0; | ||
562 | |||
563 | save = kmalloc(sizeof(struct locomo_save_data), GFP_KERNEL); | ||
564 | if (!save) | ||
565 | return -ENOMEM; | ||
566 | |||
567 | dev->power.saved_state = (void *) save; | ||
568 | |||
569 | spin_lock_irqsave(&lchip->lock, flags); | ||
570 | |||
571 | save->LCM_GPO = locomo_readl(lchip->base + LOCOMO_GPO); /* GPIO */ | ||
572 | locomo_writel(0x00, lchip->base + LOCOMO_GPO); | ||
573 | save->LCM_SPICT = locomo_readl(lchip->base + LOCOMO_SPICT); /* SPI */ | ||
574 | locomo_writel(0x40, lchip->base + LOCOMO_SPICT); | ||
575 | save->LCM_GPE = locomo_readl(lchip->base + LOCOMO_GPE); /* GPIO */ | ||
576 | locomo_writel(0x00, lchip->base + LOCOMO_GPE); | ||
577 | save->LCM_ASD = locomo_readl(lchip->base + LOCOMO_ASD); /* ADSTART */ | ||
578 | locomo_writel(0x00, lchip->base + LOCOMO_ASD); | ||
579 | save->LCM_SPIMD = locomo_readl(lchip->base + LOCOMO_SPIMD); /* SPI */ | ||
580 | locomo_writel(0x3C14, lchip->base + LOCOMO_SPIMD); | ||
581 | |||
582 | locomo_writel(0x00, lchip->base + LOCOMO_PAIF); | ||
583 | locomo_writel(0x00, lchip->base + LOCOMO_DAC); | ||
584 | locomo_writel(0x00, lchip->base + LOCOMO_BACKLIGHT + LOCOMO_TC); | ||
585 | |||
586 | if ( (locomo_readl(lchip->base + LOCOMO_LED + LOCOMO_LPT0) & 0x88) && (locomo_readl(lchip->base + LOCOMO_LED + LOCOMO_LPT1) & 0x88) ) | ||
587 | locomo_writel(0x00, lchip->base + LOCOMO_C32K); /* CLK32 off */ | ||
588 | else | ||
589 | /* 18MHz already enabled, so no wait */ | ||
590 | locomo_writel(0xc1, lchip->base + LOCOMO_C32K); /* CLK32 on */ | ||
591 | |||
592 | locomo_writel(0x00, lchip->base + LOCOMO_TADC); /* 18MHz clock off*/ | ||
593 | locomo_writel(0x00, lchip->base + LOCOMO_AUDIO + LOCOMO_ACC); /* 22MHz/24MHz clock off */ | ||
594 | locomo_writel(0x00, lchip->base + LOCOMO_FRONTLIGHT + LOCOMO_ALS); /* FL */ | ||
595 | |||
596 | spin_unlock_irqrestore(&lchip->lock, flags); | ||
597 | |||
598 | return 0; | ||
599 | } | ||
600 | |||
601 | static int locomo_resume(struct device *dev, u32 level) | ||
602 | { | ||
603 | struct locomo *lchip = dev_get_drvdata(dev); | ||
604 | struct locomo_save_data *save; | ||
605 | unsigned long r; | ||
606 | unsigned long flags; | ||
607 | |||
608 | if (level != RESUME_ENABLE) | ||
609 | return 0; | ||
610 | |||
611 | save = (struct locomo_save_data *) dev->power.saved_state; | ||
612 | if (!save) | ||
613 | return 0; | ||
614 | |||
615 | spin_lock_irqsave(&lchip->lock, flags); | ||
616 | |||
617 | locomo_writel(save->LCM_GPO, lchip->base + LOCOMO_GPO); | ||
618 | locomo_writel(save->LCM_SPICT, lchip->base + LOCOMO_SPICT); | ||
619 | locomo_writel(save->LCM_GPE, lchip->base + LOCOMO_GPE); | ||
620 | locomo_writel(save->LCM_ASD, lchip->base + LOCOMO_ASD); | ||
621 | locomo_writel(save->LCM_SPIMD, lchip->base + LOCOMO_SPIMD); | ||
622 | |||
623 | locomo_writel(0x00, lchip->base + LOCOMO_C32K); | ||
624 | locomo_writel(0x90, lchip->base + LOCOMO_TADC); | ||
625 | |||
626 | locomo_writel(0, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KSC); | ||
627 | r = locomo_readl(lchip->base + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
628 | r &= 0xFEFF; | ||
629 | locomo_writel(r, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
630 | locomo_writel(0x1, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KCMD); | ||
631 | |||
632 | spin_unlock_irqrestore(&lchip->lock, flags); | ||
633 | |||
634 | dev->power.saved_state = NULL; | ||
635 | kfree(save); | ||
636 | |||
637 | return 0; | ||
638 | } | ||
639 | #endif | ||
640 | |||
544 | /** | 641 | /** |
545 | * locomo_probe - probe for a single LoCoMo chip. | 642 | * locomo_probe - probe for a single LoCoMo chip. |
546 | * @phys_addr: physical address of device. | 643 | * @phys_addr: physical address of device. |
@@ -707,6 +804,10 @@ static struct device_driver locomo_device_driver = { | |||
707 | .bus = &platform_bus_type, | 804 | .bus = &platform_bus_type, |
708 | .probe = locomo_probe, | 805 | .probe = locomo_probe, |
709 | .remove = locomo_remove, | 806 | .remove = locomo_remove, |
807 | #ifdef CONFIG_PM | ||
808 | .suspend = locomo_suspend, | ||
809 | .resume = locomo_resume, | ||
810 | #endif | ||
710 | }; | 811 | }; |
711 | 812 | ||
712 | /* | 813 | /* |
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c index 688a595598c8..d3a04c2a2c85 100644 --- a/arch/arm/common/scoop.c +++ b/arch/arm/common/scoop.c | |||
@@ -91,7 +91,7 @@ EXPORT_SYMBOL(read_scoop_reg); | |||
91 | EXPORT_SYMBOL(write_scoop_reg); | 91 | EXPORT_SYMBOL(write_scoop_reg); |
92 | 92 | ||
93 | #ifdef CONFIG_PM | 93 | #ifdef CONFIG_PM |
94 | static int scoop_suspend(struct device *dev, uint32_t state, uint32_t level) | 94 | static int scoop_suspend(struct device *dev, pm_message_t state, uint32_t level) |
95 | { | 95 | { |
96 | if (level == SUSPEND_POWER_DOWN) { | 96 | if (level == SUSPEND_POWER_DOWN) { |
97 | struct scoop_dev *sdev = dev_get_drvdata(dev); | 97 | struct scoop_dev *sdev = dev_get_drvdata(dev); |
diff --git a/arch/arm/configs/s3c2410_defconfig b/arch/arm/configs/s3c2410_defconfig index 96a794d8de84..756348bf5170 100644 --- a/arch/arm/configs/s3c2410_defconfig +++ b/arch/arm/configs/s3c2410_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-git4 | 3 | # Linux kernel version: 2.6.13-git8 |
4 | # Wed Jun 22 15:56:42 2005 | 4 | # Thu Sep 8 19:24:02 2005 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
@@ -22,6 +22,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 | |||
22 | # General setup | 22 | # General setup |
23 | # | 23 | # |
24 | CONFIG_LOCALVERSION="" | 24 | CONFIG_LOCALVERSION="" |
25 | CONFIG_LOCALVERSION_AUTO=y | ||
25 | CONFIG_SWAP=y | 26 | CONFIG_SWAP=y |
26 | CONFIG_SYSVIPC=y | 27 | CONFIG_SYSVIPC=y |
27 | # CONFIG_POSIX_MQUEUE is not set | 28 | # CONFIG_POSIX_MQUEUE is not set |
@@ -31,6 +32,7 @@ CONFIG_SYSCTL=y | |||
31 | # CONFIG_HOTPLUG is not set | 32 | # CONFIG_HOTPLUG is not set |
32 | CONFIG_KOBJECT_UEVENT=y | 33 | CONFIG_KOBJECT_UEVENT=y |
33 | # CONFIG_IKCONFIG is not set | 34 | # CONFIG_IKCONFIG is not set |
35 | CONFIG_INITRAMFS_SOURCE="" | ||
34 | # CONFIG_EMBEDDED is not set | 36 | # CONFIG_EMBEDDED is not set |
35 | CONFIG_KALLSYMS=y | 37 | CONFIG_KALLSYMS=y |
36 | # CONFIG_KALLSYMS_ALL is not set | 38 | # CONFIG_KALLSYMS_ALL is not set |
@@ -88,7 +90,9 @@ CONFIG_ARCH_S3C2410=y | |||
88 | # | 90 | # |
89 | # S3C24XX Implementations | 91 | # S3C24XX Implementations |
90 | # | 92 | # |
93 | CONFIG_MACH_ANUBIS=y | ||
91 | CONFIG_ARCH_BAST=y | 94 | CONFIG_ARCH_BAST=y |
95 | CONFIG_BAST_PC104_IRQ=y | ||
92 | CONFIG_ARCH_H1940=y | 96 | CONFIG_ARCH_H1940=y |
93 | CONFIG_MACH_N30=y | 97 | CONFIG_MACH_N30=y |
94 | CONFIG_ARCH_SMDK2410=y | 98 | CONFIG_ARCH_SMDK2410=y |
@@ -112,6 +116,7 @@ CONFIG_S3C2410_DMA=y | |||
112 | # CONFIG_S3C2410_DMA_DEBUG is not set | 116 | # CONFIG_S3C2410_DMA_DEBUG is not set |
113 | # CONFIG_S3C2410_PM_DEBUG is not set | 117 | # CONFIG_S3C2410_PM_DEBUG is not set |
114 | # CONFIG_S3C2410_PM_CHECK is not set | 118 | # CONFIG_S3C2410_PM_CHECK is not set |
119 | CONFIG_PM_SIMTEC=y | ||
115 | CONFIG_S3C2410_LOWLEVEL_UART_PORT=0 | 120 | CONFIG_S3C2410_LOWLEVEL_UART_PORT=0 |
116 | 121 | ||
117 | # | 122 | # |
@@ -149,7 +154,15 @@ CONFIG_ISA_DMA_API=y | |||
149 | # | 154 | # |
150 | # CONFIG_SMP is not set | 155 | # CONFIG_SMP is not set |
151 | # CONFIG_PREEMPT is not set | 156 | # CONFIG_PREEMPT is not set |
152 | # CONFIG_DISCONTIGMEM is not set | 157 | # CONFIG_NO_IDLE_HZ 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 | ||
153 | CONFIG_ALIGNMENT_TRAP=y | 166 | CONFIG_ALIGNMENT_TRAP=y |
154 | 167 | ||
155 | # | 168 | # |
@@ -186,6 +199,74 @@ CONFIG_PM=y | |||
186 | CONFIG_APM=y | 199 | CONFIG_APM=y |
187 | 200 | ||
188 | # | 201 | # |
202 | # Networking | ||
203 | # | ||
204 | CONFIG_NET=y | ||
205 | |||
206 | # | ||
207 | # Networking options | ||
208 | # | ||
209 | # CONFIG_PACKET is not set | ||
210 | CONFIG_UNIX=y | ||
211 | # CONFIG_NET_KEY is not set | ||
212 | CONFIG_INET=y | ||
213 | # CONFIG_IP_MULTICAST is not set | ||
214 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
215 | CONFIG_IP_FIB_HASH=y | ||
216 | CONFIG_IP_PNP=y | ||
217 | # CONFIG_IP_PNP_DHCP is not set | ||
218 | CONFIG_IP_PNP_BOOTP=y | ||
219 | # CONFIG_IP_PNP_RARP is not set | ||
220 | # CONFIG_NET_IPIP is not set | ||
221 | # CONFIG_NET_IPGRE is not set | ||
222 | # CONFIG_ARPD is not set | ||
223 | # CONFIG_SYN_COOKIES is not set | ||
224 | # CONFIG_INET_AH is not set | ||
225 | # CONFIG_INET_ESP is not set | ||
226 | # CONFIG_INET_IPCOMP is not set | ||
227 | # CONFIG_INET_TUNNEL is not set | ||
228 | CONFIG_INET_DIAG=y | ||
229 | CONFIG_INET_TCP_DIAG=y | ||
230 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
231 | CONFIG_TCP_CONG_BIC=y | ||
232 | # CONFIG_IPV6 is not set | ||
233 | # CONFIG_NETFILTER is not set | ||
234 | |||
235 | # | ||
236 | # DCCP Configuration (EXPERIMENTAL) | ||
237 | # | ||
238 | # CONFIG_IP_DCCP is not set | ||
239 | |||
240 | # | ||
241 | # SCTP Configuration (EXPERIMENTAL) | ||
242 | # | ||
243 | # CONFIG_IP_SCTP is not set | ||
244 | # CONFIG_ATM is not set | ||
245 | # CONFIG_BRIDGE is not set | ||
246 | # CONFIG_VLAN_8021Q is not set | ||
247 | # CONFIG_DECNET is not set | ||
248 | # CONFIG_LLC2 is not set | ||
249 | # CONFIG_IPX is not set | ||
250 | # CONFIG_ATALK is not set | ||
251 | # CONFIG_X25 is not set | ||
252 | # CONFIG_LAPB is not set | ||
253 | # CONFIG_NET_DIVERT is not set | ||
254 | # CONFIG_ECONET is not set | ||
255 | # CONFIG_WAN_ROUTER is not set | ||
256 | # CONFIG_NET_SCHED is not set | ||
257 | # CONFIG_NET_CLS_ROUTE is not set | ||
258 | |||
259 | # | ||
260 | # Network testing | ||
261 | # | ||
262 | # CONFIG_NET_PKTGEN is not set | ||
263 | # CONFIG_NETFILTER_NETLINK is not set | ||
264 | # CONFIG_HAMRADIO is not set | ||
265 | # CONFIG_IRDA is not set | ||
266 | # CONFIG_BT is not set | ||
267 | # CONFIG_IEEE80211 is not set | ||
268 | |||
269 | # | ||
189 | # Device Drivers | 270 | # Device Drivers |
190 | # | 271 | # |
191 | 272 | ||
@@ -258,6 +339,7 @@ CONFIG_MTD_ROM=y | |||
258 | # CONFIG_MTD_IMPA7 is not set | 339 | # CONFIG_MTD_IMPA7 is not set |
259 | CONFIG_MTD_BAST=y | 340 | CONFIG_MTD_BAST=y |
260 | CONFIG_MTD_BAST_MAXSIZE=4 | 341 | CONFIG_MTD_BAST_MAXSIZE=4 |
342 | # CONFIG_MTD_PLATRAM is not set | ||
261 | 343 | ||
262 | # | 344 | # |
263 | # Self-contained MTD device drivers | 345 | # Self-contained MTD device drivers |
@@ -312,7 +394,6 @@ CONFIG_BLK_DEV_RAM=y | |||
312 | CONFIG_BLK_DEV_RAM_COUNT=16 | 394 | CONFIG_BLK_DEV_RAM_COUNT=16 |
313 | CONFIG_BLK_DEV_RAM_SIZE=4096 | 395 | CONFIG_BLK_DEV_RAM_SIZE=4096 |
314 | CONFIG_BLK_DEV_INITRD=y | 396 | CONFIG_BLK_DEV_INITRD=y |
315 | CONFIG_INITRAMFS_SOURCE="" | ||
316 | # CONFIG_CDROM_PKTCDVD is not set | 397 | # CONFIG_CDROM_PKTCDVD is not set |
317 | 398 | ||
318 | # | 399 | # |
@@ -354,6 +435,7 @@ CONFIG_BLK_DEV_IDE_BAST=y | |||
354 | # | 435 | # |
355 | # SCSI device support | 436 | # SCSI device support |
356 | # | 437 | # |
438 | # CONFIG_RAID_ATTRS is not set | ||
357 | # CONFIG_SCSI is not set | 439 | # CONFIG_SCSI is not set |
358 | 440 | ||
359 | # | 441 | # |
@@ -376,70 +458,8 @@ CONFIG_BLK_DEV_IDE_BAST=y | |||
376 | # | 458 | # |
377 | 459 | ||
378 | # | 460 | # |
379 | # Networking support | 461 | # Network device support |
380 | # | ||
381 | CONFIG_NET=y | ||
382 | |||
383 | # | ||
384 | # Networking options | ||
385 | # | 462 | # |
386 | # CONFIG_PACKET is not set | ||
387 | CONFIG_UNIX=y | ||
388 | # CONFIG_NET_KEY is not set | ||
389 | CONFIG_INET=y | ||
390 | CONFIG_IP_FIB_HASH=y | ||
391 | # CONFIG_IP_FIB_TRIE is not set | ||
392 | # CONFIG_IP_MULTICAST is not set | ||
393 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
394 | CONFIG_IP_PNP=y | ||
395 | # CONFIG_IP_PNP_DHCP is not set | ||
396 | CONFIG_IP_PNP_BOOTP=y | ||
397 | # CONFIG_IP_PNP_RARP is not set | ||
398 | # CONFIG_NET_IPIP is not set | ||
399 | # CONFIG_NET_IPGRE is not set | ||
400 | # CONFIG_ARPD is not set | ||
401 | # CONFIG_SYN_COOKIES is not set | ||
402 | # CONFIG_INET_AH is not set | ||
403 | # CONFIG_INET_ESP is not set | ||
404 | # CONFIG_INET_IPCOMP is not set | ||
405 | # CONFIG_INET_TUNNEL is not set | ||
406 | CONFIG_IP_TCPDIAG=y | ||
407 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
408 | # CONFIG_IPV6 is not set | ||
409 | # CONFIG_NETFILTER is not set | ||
410 | |||
411 | # | ||
412 | # SCTP Configuration (EXPERIMENTAL) | ||
413 | # | ||
414 | # CONFIG_IP_SCTP is not set | ||
415 | # CONFIG_ATM is not set | ||
416 | # CONFIG_BRIDGE is not set | ||
417 | # CONFIG_VLAN_8021Q is not set | ||
418 | # CONFIG_DECNET is not set | ||
419 | # CONFIG_LLC2 is not set | ||
420 | # CONFIG_IPX is not set | ||
421 | # CONFIG_ATALK is not set | ||
422 | # CONFIG_X25 is not set | ||
423 | # CONFIG_LAPB is not set | ||
424 | # CONFIG_NET_DIVERT is not set | ||
425 | # CONFIG_ECONET is not set | ||
426 | # CONFIG_WAN_ROUTER is not set | ||
427 | |||
428 | # | ||
429 | # QoS and/or fair queueing | ||
430 | # | ||
431 | # CONFIG_NET_SCHED is not set | ||
432 | # CONFIG_NET_CLS_ROUTE is not set | ||
433 | |||
434 | # | ||
435 | # Network testing | ||
436 | # | ||
437 | # CONFIG_NET_PKTGEN is not set | ||
438 | # CONFIG_NETPOLL is not set | ||
439 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
440 | # CONFIG_HAMRADIO is not set | ||
441 | # CONFIG_IRDA is not set | ||
442 | # CONFIG_BT is not set | ||
443 | CONFIG_NETDEVICES=y | 463 | CONFIG_NETDEVICES=y |
444 | # CONFIG_DUMMY is not set | 464 | # CONFIG_DUMMY is not set |
445 | # CONFIG_BONDING is not set | 465 | # CONFIG_BONDING is not set |
@@ -447,6 +467,11 @@ CONFIG_NETDEVICES=y | |||
447 | # CONFIG_TUN is not set | 467 | # CONFIG_TUN is not set |
448 | 468 | ||
449 | # | 469 | # |
470 | # PHY device support | ||
471 | # | ||
472 | # CONFIG_PHYLIB is not set | ||
473 | |||
474 | # | ||
450 | # Ethernet (10 or 100Mbit) | 475 | # Ethernet (10 or 100Mbit) |
451 | # | 476 | # |
452 | CONFIG_NET_ETHERNET=y | 477 | CONFIG_NET_ETHERNET=y |
@@ -480,6 +505,8 @@ CONFIG_DM9000=m | |||
480 | # CONFIG_SLIP is not set | 505 | # CONFIG_SLIP is not set |
481 | # CONFIG_SHAPER is not set | 506 | # CONFIG_SHAPER is not set |
482 | # CONFIG_NETCONSOLE is not set | 507 | # CONFIG_NETCONSOLE is not set |
508 | # CONFIG_NETPOLL is not set | ||
509 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
483 | 510 | ||
484 | # | 511 | # |
485 | # ISDN subsystem | 512 | # ISDN subsystem |
@@ -562,7 +589,6 @@ CONFIG_SERIAL_8250_EXTENDED=y | |||
562 | CONFIG_SERIAL_8250_MANY_PORTS=y | 589 | CONFIG_SERIAL_8250_MANY_PORTS=y |
563 | CONFIG_SERIAL_8250_SHARE_IRQ=y | 590 | CONFIG_SERIAL_8250_SHARE_IRQ=y |
564 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | 591 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set |
565 | # CONFIG_SERIAL_8250_MULTIPORT is not set | ||
566 | # CONFIG_SERIAL_8250_RSA is not set | 592 | # CONFIG_SERIAL_8250_RSA is not set |
567 | 593 | ||
568 | # | 594 | # |
@@ -605,7 +631,6 @@ CONFIG_S3C2410_RTC=y | |||
605 | # | 631 | # |
606 | # Ftape, the floppy tape device driver | 632 | # Ftape, the floppy tape device driver |
607 | # | 633 | # |
608 | # CONFIG_DRM is not set | ||
609 | # CONFIG_RAW_DRIVER is not set | 634 | # CONFIG_RAW_DRIVER is not set |
610 | 635 | ||
611 | # | 636 | # |
@@ -628,7 +653,7 @@ CONFIG_I2C_ALGOBIT=m | |||
628 | # | 653 | # |
629 | # I2C Hardware Bus support | 654 | # I2C Hardware Bus support |
630 | # | 655 | # |
631 | # CONFIG_I2C_ISA is not set | 656 | CONFIG_I2C_ISA=m |
632 | # CONFIG_I2C_PARPORT is not set | 657 | # CONFIG_I2C_PARPORT is not set |
633 | # CONFIG_I2C_PARPORT_LIGHT is not set | 658 | # CONFIG_I2C_PARPORT_LIGHT is not set |
634 | CONFIG_I2C_S3C2410=y | 659 | CONFIG_I2C_S3C2410=y |
@@ -636,14 +661,33 @@ CONFIG_I2C_S3C2410=y | |||
636 | # CONFIG_I2C_PCA_ISA is not set | 661 | # CONFIG_I2C_PCA_ISA is not set |
637 | 662 | ||
638 | # | 663 | # |
639 | # Hardware Sensors Chip support | 664 | # Miscellaneous I2C Chip support |
640 | # | 665 | # |
641 | CONFIG_I2C_SENSOR=m | 666 | # CONFIG_SENSORS_DS1337 is not set |
667 | # CONFIG_SENSORS_DS1374 is not set | ||
668 | CONFIG_SENSORS_EEPROM=m | ||
669 | # CONFIG_SENSORS_PCF8574 is not set | ||
670 | # CONFIG_SENSORS_PCA9539 is not set | ||
671 | # CONFIG_SENSORS_PCF8591 is not set | ||
672 | # CONFIG_SENSORS_RTC8564 is not set | ||
673 | # CONFIG_SENSORS_MAX6875 is not set | ||
674 | # CONFIG_I2C_DEBUG_CORE is not set | ||
675 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
676 | # CONFIG_I2C_DEBUG_BUS is not set | ||
677 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
678 | |||
679 | # | ||
680 | # Hardware Monitoring support | ||
681 | # | ||
682 | CONFIG_HWMON=y | ||
683 | CONFIG_HWMON_VID=m | ||
642 | # CONFIG_SENSORS_ADM1021 is not set | 684 | # CONFIG_SENSORS_ADM1021 is not set |
643 | # CONFIG_SENSORS_ADM1025 is not set | 685 | # CONFIG_SENSORS_ADM1025 is not set |
644 | # CONFIG_SENSORS_ADM1026 is not set | 686 | # CONFIG_SENSORS_ADM1026 is not set |
645 | # CONFIG_SENSORS_ADM1031 is not set | 687 | # CONFIG_SENSORS_ADM1031 is not set |
688 | # CONFIG_SENSORS_ADM9240 is not set | ||
646 | # CONFIG_SENSORS_ASB100 is not set | 689 | # CONFIG_SENSORS_ASB100 is not set |
690 | # CONFIG_SENSORS_ATXP1 is not set | ||
647 | # CONFIG_SENSORS_DS1621 is not set | 691 | # CONFIG_SENSORS_DS1621 is not set |
648 | # CONFIG_SENSORS_FSCHER is not set | 692 | # CONFIG_SENSORS_FSCHER is not set |
649 | # CONFIG_SENSORS_FSCPOS is not set | 693 | # CONFIG_SENSORS_FSCPOS is not set |
@@ -662,27 +706,21 @@ CONFIG_SENSORS_LM85=m | |||
662 | # CONFIG_SENSORS_LM92 is not set | 706 | # CONFIG_SENSORS_LM92 is not set |
663 | # CONFIG_SENSORS_MAX1619 is not set | 707 | # CONFIG_SENSORS_MAX1619 is not set |
664 | # CONFIG_SENSORS_PC87360 is not set | 708 | # CONFIG_SENSORS_PC87360 is not set |
665 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
666 | # CONFIG_SENSORS_SMSC47M1 is not set | 709 | # CONFIG_SENSORS_SMSC47M1 is not set |
710 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
667 | # CONFIG_SENSORS_W83781D is not set | 711 | # CONFIG_SENSORS_W83781D is not set |
712 | # CONFIG_SENSORS_W83792D is not set | ||
668 | # CONFIG_SENSORS_W83L785TS is not set | 713 | # CONFIG_SENSORS_W83L785TS is not set |
669 | # CONFIG_SENSORS_W83627HF is not set | 714 | # CONFIG_SENSORS_W83627HF is not set |
715 | # CONFIG_SENSORS_W83627EHF is not set | ||
716 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
670 | 717 | ||
671 | # | 718 | # |
672 | # Other I2C Chip support | 719 | # Misc devices |
673 | # | 720 | # |
674 | # CONFIG_SENSORS_DS1337 is not set | ||
675 | CONFIG_SENSORS_EEPROM=m | ||
676 | # CONFIG_SENSORS_PCF8574 is not set | ||
677 | # CONFIG_SENSORS_PCF8591 is not set | ||
678 | # CONFIG_SENSORS_RTC8564 is not set | ||
679 | # CONFIG_I2C_DEBUG_CORE is not set | ||
680 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
681 | # CONFIG_I2C_DEBUG_BUS is not set | ||
682 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
683 | 721 | ||
684 | # | 722 | # |
685 | # Misc devices | 723 | # Multimedia Capabilities Port drivers |
686 | # | 724 | # |
687 | 725 | ||
688 | # | 726 | # |
@@ -731,7 +769,7 @@ CONFIG_DUMMY_CONSOLE=y | |||
731 | # USB support | 769 | # USB support |
732 | # | 770 | # |
733 | CONFIG_USB_ARCH_HAS_HCD=y | 771 | CONFIG_USB_ARCH_HAS_HCD=y |
734 | # CONFIG_USB_ARCH_HAS_OHCI is not set | 772 | CONFIG_USB_ARCH_HAS_OHCI=y |
735 | # CONFIG_USB is not set | 773 | # CONFIG_USB is not set |
736 | 774 | ||
737 | # | 775 | # |
@@ -749,6 +787,7 @@ CONFIG_USB_ARCH_HAS_HCD=y | |||
749 | # | 787 | # |
750 | CONFIG_EXT2_FS=y | 788 | CONFIG_EXT2_FS=y |
751 | # CONFIG_EXT2_FS_XATTR is not set | 789 | # CONFIG_EXT2_FS_XATTR is not set |
790 | # CONFIG_EXT2_FS_XIP is not set | ||
752 | CONFIG_EXT3_FS=y | 791 | CONFIG_EXT3_FS=y |
753 | CONFIG_EXT3_FS_XATTR=y | 792 | CONFIG_EXT3_FS_XATTR=y |
754 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 793 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
@@ -758,6 +797,7 @@ CONFIG_JBD=y | |||
758 | CONFIG_FS_MBCACHE=y | 797 | CONFIG_FS_MBCACHE=y |
759 | # CONFIG_REISERFS_FS is not set | 798 | # CONFIG_REISERFS_FS is not set |
760 | # CONFIG_JFS_FS is not set | 799 | # CONFIG_JFS_FS is not set |
800 | # CONFIG_FS_POSIX_ACL is not set | ||
761 | 801 | ||
762 | # | 802 | # |
763 | # XFS support | 803 | # XFS support |
@@ -765,6 +805,7 @@ CONFIG_FS_MBCACHE=y | |||
765 | # CONFIG_XFS_FS is not set | 805 | # CONFIG_XFS_FS is not set |
766 | # CONFIG_MINIX_FS is not set | 806 | # CONFIG_MINIX_FS is not set |
767 | CONFIG_ROMFS_FS=y | 807 | CONFIG_ROMFS_FS=y |
808 | CONFIG_INOTIFY=y | ||
768 | # CONFIG_QUOTA is not set | 809 | # CONFIG_QUOTA is not set |
769 | CONFIG_DNOTIFY=y | 810 | CONFIG_DNOTIFY=y |
770 | # CONFIG_AUTOFS_FS is not set | 811 | # CONFIG_AUTOFS_FS is not set |
@@ -791,11 +832,11 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | |||
791 | # | 832 | # |
792 | CONFIG_PROC_FS=y | 833 | CONFIG_PROC_FS=y |
793 | CONFIG_SYSFS=y | 834 | CONFIG_SYSFS=y |
794 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
795 | # CONFIG_TMPFS is not set | 835 | # CONFIG_TMPFS is not set |
796 | # CONFIG_HUGETLBFS is not set | 836 | # CONFIG_HUGETLBFS is not set |
797 | # CONFIG_HUGETLB_PAGE is not set | 837 | # CONFIG_HUGETLB_PAGE is not set |
798 | CONFIG_RAMFS=y | 838 | CONFIG_RAMFS=y |
839 | # CONFIG_RELAYFS_FS is not set | ||
799 | 840 | ||
800 | # | 841 | # |
801 | # Miscellaneous filesystems | 842 | # Miscellaneous filesystems |
@@ -812,8 +853,7 @@ CONFIG_JFFS_FS_VERBOSE=0 | |||
812 | # CONFIG_JFFS_PROC_FS is not set | 853 | # CONFIG_JFFS_PROC_FS is not set |
813 | CONFIG_JFFS2_FS=y | 854 | CONFIG_JFFS2_FS=y |
814 | CONFIG_JFFS2_FS_DEBUG=0 | 855 | CONFIG_JFFS2_FS_DEBUG=0 |
815 | # CONFIG_JFFS2_FS_NAND is not set | 856 | CONFIG_JFFS2_FS_WRITEBUFFER=y |
816 | # CONFIG_JFFS2_FS_NOR_ECC is not set | ||
817 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | 857 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set |
818 | CONFIG_JFFS2_ZLIB=y | 858 | CONFIG_JFFS2_ZLIB=y |
819 | CONFIG_JFFS2_RTIME=y | 859 | CONFIG_JFFS2_RTIME=y |
@@ -835,6 +875,7 @@ CONFIG_NFS_FS=y | |||
835 | # CONFIG_NFSD is not set | 875 | # CONFIG_NFSD is not set |
836 | CONFIG_ROOT_NFS=y | 876 | CONFIG_ROOT_NFS=y |
837 | CONFIG_LOCKD=y | 877 | CONFIG_LOCKD=y |
878 | CONFIG_NFS_COMMON=y | ||
838 | CONFIG_SUNRPC=y | 879 | CONFIG_SUNRPC=y |
839 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 880 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
840 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 881 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
@@ -920,6 +961,7 @@ CONFIG_NLS_DEFAULT="iso8859-1" | |||
920 | CONFIG_DEBUG_KERNEL=y | 961 | CONFIG_DEBUG_KERNEL=y |
921 | # CONFIG_MAGIC_SYSRQ is not set | 962 | # CONFIG_MAGIC_SYSRQ is not set |
922 | CONFIG_LOG_BUF_SHIFT=16 | 963 | CONFIG_LOG_BUF_SHIFT=16 |
964 | CONFIG_DETECT_SOFTLOCKUP=y | ||
923 | # CONFIG_SCHEDSTATS is not set | 965 | # CONFIG_SCHEDSTATS is not set |
924 | # CONFIG_DEBUG_SLAB is not set | 966 | # CONFIG_DEBUG_SLAB is not set |
925 | # CONFIG_DEBUG_SPINLOCK is not set | 967 | # CONFIG_DEBUG_SPINLOCK is not set |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index db07ce42b3b2..949ec4427f21 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -10,7 +10,7 @@ | |||
10 | * This file is included twice in entry-common.S | 10 | * This file is included twice in entry-common.S |
11 | */ | 11 | */ |
12 | #ifndef NR_syscalls | 12 | #ifndef NR_syscalls |
13 | #define NR_syscalls 320 | 13 | #define NR_syscalls 328 |
14 | #else | 14 | #else |
15 | 15 | ||
16 | __syscall_start: | 16 | __syscall_start: |
@@ -333,6 +333,9 @@ __syscall_start: | |||
333 | .long sys_inotify_init | 333 | .long sys_inotify_init |
334 | .long sys_inotify_add_watch | 334 | .long sys_inotify_add_watch |
335 | .long sys_inotify_rm_watch | 335 | .long sys_inotify_rm_watch |
336 | .long sys_mbind_wrapper | ||
337 | /* 320 */ .long sys_get_mempolicy | ||
338 | .long sys_set_mempolicy | ||
336 | __syscall_end: | 339 | __syscall_end: |
337 | 340 | ||
338 | .rept NR_syscalls - (__syscall_end - __syscall_start) / 4 | 341 | .rept NR_syscalls - (__syscall_end - __syscall_start) / 4 |
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 6281d488ac97..db302c6e5343 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -269,6 +269,10 @@ sys_arm_fadvise64_64_wrapper: | |||
269 | str r5, [sp, #4] @ push r5 to stack | 269 | str r5, [sp, #4] @ push r5 to stack |
270 | b sys_arm_fadvise64_64 | 270 | b sys_arm_fadvise64_64 |
271 | 271 | ||
272 | sys_mbind_wrapper: | ||
273 | str r5, [sp, #4] | ||
274 | b sys_mbind | ||
275 | |||
272 | /* | 276 | /* |
273 | * Note: off_4k (r5) is always units of 4K. If we can't do the requested | 277 | * Note: off_4k (r5) is always units of 4K. If we can't do the requested |
274 | * offset, we return EINVAL. | 278 | * offset, we return EINVAL. |
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index afef21273963..648cfff93138 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <linux/linkage.h> | 3 | #include <linux/linkage.h> |
4 | 4 | ||
5 | #include <asm/assembler.h> | 5 | #include <asm/assembler.h> |
6 | #include <asm/constants.h> | 6 | #include <asm/asm-offsets.h> |
7 | #include <asm/errno.h> | 7 | #include <asm/errno.h> |
8 | #include <asm/thread_info.h> | 8 | #include <asm/thread_info.h> |
9 | 9 | ||
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 1155cf07c871..539626351348 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <asm/mach-types.h> | 20 | #include <asm/mach-types.h> |
21 | #include <asm/procinfo.h> | 21 | #include <asm/procinfo.h> |
22 | #include <asm/ptrace.h> | 22 | #include <asm/ptrace.h> |
23 | #include <asm/constants.h> | 23 | #include <asm/asm-offsets.h> |
24 | #include <asm/thread_info.h> | 24 | #include <asm/thread_info.h> |
25 | #include <asm/system.h> | 25 | #include <asm/system.h> |
26 | 26 | ||
diff --git a/arch/arm/kernel/iwmmxt.S b/arch/arm/kernel/iwmmxt.S index 8f74e24536ba..24c7b0477a09 100644 --- a/arch/arm/kernel/iwmmxt.S +++ b/arch/arm/kernel/iwmmxt.S | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/linkage.h> | 17 | #include <linux/linkage.h> |
18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
19 | #include <asm/thread_info.h> | 19 | #include <asm/thread_info.h> |
20 | #include <asm/constants.h> | 20 | #include <asm/asm-offsets.h> |
21 | 21 | ||
22 | #define MMX_WR0 (0x00) | 22 | #define MMX_WR0 (0x00) |
23 | #define MMX_WR1 (0x08) | 23 | #define MMX_WR1 (0x08) |
diff --git a/arch/arm/lib/copy_page.S b/arch/arm/lib/copy_page.S index 4c38abdbe497..68117968482b 100644 --- a/arch/arm/lib/copy_page.S +++ b/arch/arm/lib/copy_page.S | |||
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
15 | 15 | ||
16 | #define COPY_COUNT (PAGE_SZ/64 PLD( -1 )) | 16 | #define COPY_COUNT (PAGE_SZ/64 PLD( -1 )) |
17 | 17 | ||
diff --git a/arch/arm/lib/csumpartialcopyuser.S b/arch/arm/lib/csumpartialcopyuser.S index 46a2dc962e9d..333bca292de9 100644 --- a/arch/arm/lib/csumpartialcopyuser.S +++ b/arch/arm/lib/csumpartialcopyuser.S | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
15 | #include <asm/errno.h> | 15 | #include <asm/errno.h> |
16 | #include <asm/constants.h> | 16 | #include <asm/asm-offsets.h> |
17 | 17 | ||
18 | .text | 18 | .text |
19 | 19 | ||
diff --git a/arch/arm/lib/getuser.S b/arch/arm/lib/getuser.S index 64aa6f4fe5e4..d204018070a4 100644 --- a/arch/arm/lib/getuser.S +++ b/arch/arm/lib/getuser.S | |||
@@ -26,7 +26,7 @@ | |||
26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000. | 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000. |
27 | * Note also that it is intended that __get_user_bad is not global. | 27 | * Note also that it is intended that __get_user_bad is not global. |
28 | */ | 28 | */ |
29 | #include <asm/constants.h> | 29 | #include <asm/asm-offsets.h> |
30 | #include <asm/thread_info.h> | 30 | #include <asm/thread_info.h> |
31 | #include <asm/errno.h> | 31 | #include <asm/errno.h> |
32 | 32 | ||
diff --git a/arch/arm/lib/putuser.S b/arch/arm/lib/putuser.S index b09398d95aac..4593e9c07f05 100644 --- a/arch/arm/lib/putuser.S +++ b/arch/arm/lib/putuser.S | |||
@@ -26,7 +26,7 @@ | |||
26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000 | 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000 |
27 | * Note also that it is intended that __put_user_bad is not global. | 27 | * Note also that it is intended that __put_user_bad is not global. |
28 | */ | 28 | */ |
29 | #include <asm/constants.h> | 29 | #include <asm/asm-offsets.h> |
30 | #include <asm/thread_info.h> | 30 | #include <asm/thread_info.h> |
31 | #include <asm/errno.h> | 31 | #include <asm/errno.h> |
32 | 32 | ||
diff --git a/arch/arm/mach-clps7500/core.c b/arch/arm/mach-clps7500/core.c index 112f1d68fb2b..e216ab8b9e8f 100644 --- a/arch/arm/mach-clps7500/core.c +++ b/arch/arm/mach-clps7500/core.c | |||
@@ -354,7 +354,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
354 | 354 | ||
355 | static struct platform_device serial_device = { | 355 | static struct platform_device serial_device = { |
356 | .name = "serial8250", | 356 | .name = "serial8250", |
357 | .id = 0, | 357 | .id = PLAT8250_DEV_PLATFORM, |
358 | .dev = { | 358 | .dev = { |
359 | .platform_data = serial_platform_data, | 359 | .platform_data = serial_platform_data, |
360 | }, | 360 | }, |
diff --git a/arch/arm/mach-ebsa110/core.c b/arch/arm/mach-ebsa110/core.c index 23c4da10101b..5aeadfd72143 100644 --- a/arch/arm/mach-ebsa110/core.c +++ b/arch/arm/mach-ebsa110/core.c | |||
@@ -219,7 +219,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
219 | 219 | ||
220 | static struct platform_device serial_device = { | 220 | static struct platform_device serial_device = { |
221 | .name = "serial8250", | 221 | .name = "serial8250", |
222 | .id = 0, | 222 | .id = PLAT8250_DEV_PLATFORM, |
223 | .dev = { | 223 | .dev = { |
224 | .platform_data = serial_platform_data, | 224 | .platform_data = serial_platform_data, |
225 | }, | 225 | }, |
diff --git a/arch/arm/mach-epxa10db/arch.c b/arch/arm/mach-epxa10db/arch.c index 7daa021676d0..44c56571d183 100644 --- a/arch/arm/mach-epxa10db/arch.c +++ b/arch/arm/mach-epxa10db/arch.c | |||
@@ -52,7 +52,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
52 | 52 | ||
53 | static struct platform_device serial_device = { | 53 | static struct platform_device serial_device = { |
54 | .name = "serial8250", | 54 | .name = "serial8250", |
55 | .id = 0, | 55 | .id = PLAT8250_DEV_PLATFORM, |
56 | .dev = { | 56 | .dev = { |
57 | .platform_data = serial_platform_data, | 57 | .platform_data = serial_platform_data, |
58 | }, | 58 | }, |
diff --git a/arch/arm/mach-footbridge/isa.c b/arch/arm/mach-footbridge/isa.c index aa3a1fef563e..28846c7edaaf 100644 --- a/arch/arm/mach-footbridge/isa.c +++ b/arch/arm/mach-footbridge/isa.c | |||
@@ -34,7 +34,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
34 | 34 | ||
35 | static struct platform_device serial_device = { | 35 | static struct platform_device serial_device = { |
36 | .name = "serial8250", | 36 | .name = "serial8250", |
37 | .id = 0, | 37 | .id = PLAT8250_DEV_PLATFORM, |
38 | .dev = { | 38 | .dev = { |
39 | .platform_data = serial_platform_data, | 39 | .platform_data = serial_platform_data, |
40 | }, | 40 | }, |
diff --git a/arch/arm/mach-h720x/cpu-h7202.c b/arch/arm/mach-h720x/cpu-h7202.c index 4b3199319e68..a4a7c0125d03 100644 --- a/arch/arm/mach-h720x/cpu-h7202.c +++ b/arch/arm/mach-h720x/cpu-h7202.c | |||
@@ -90,7 +90,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
90 | 90 | ||
91 | static struct platform_device serial_device = { | 91 | static struct platform_device serial_device = { |
92 | .name = "serial8250", | 92 | .name = "serial8250", |
93 | .id = 0, | 93 | .id = PLAT8250_DEV_PLATFORM, |
94 | .dev = { | 94 | .dev = { |
95 | .platform_data = serial_platform_data, | 95 | .platform_data = serial_platform_data, |
96 | }, | 96 | }, |
diff --git a/arch/arm/mach-ixp2000/core.c b/arch/arm/mach-ixp2000/core.c index 098c817a7fb8..74bd2fd602d4 100644 --- a/arch/arm/mach-ixp2000/core.c +++ b/arch/arm/mach-ixp2000/core.c | |||
@@ -174,7 +174,7 @@ static struct resource ixp2000_uart_resource = { | |||
174 | 174 | ||
175 | static struct platform_device ixp2000_serial_device = { | 175 | static struct platform_device ixp2000_serial_device = { |
176 | .name = "serial8250", | 176 | .name = "serial8250", |
177 | .id = 0, | 177 | .id = PLAT8250_DEV_PLATFORM, |
178 | .dev = { | 178 | .dev = { |
179 | .platform_data = ixp2000_serial_port, | 179 | .platform_data = ixp2000_serial_port, |
180 | }, | 180 | }, |
diff --git a/arch/arm/mach-ixp4xx/coyote-setup.c b/arch/arm/mach-ixp4xx/coyote-setup.c index 8b2f25322452..050c92768913 100644 --- a/arch/arm/mach-ixp4xx/coyote-setup.c +++ b/arch/arm/mach-ixp4xx/coyote-setup.c | |||
@@ -66,7 +66,7 @@ static struct plat_serial8250_port coyote_uart_data[] = { | |||
66 | 66 | ||
67 | static struct platform_device coyote_uart = { | 67 | static struct platform_device coyote_uart = { |
68 | .name = "serial8250", | 68 | .name = "serial8250", |
69 | .id = 0, | 69 | .id = PLAT8250_DEV_PLATFORM, |
70 | .dev = { | 70 | .dev = { |
71 | .platform_data = coyote_uart_data, | 71 | .platform_data = coyote_uart_data, |
72 | }, | 72 | }, |
diff --git a/arch/arm/mach-ixp4xx/gtwx5715-setup.c b/arch/arm/mach-ixp4xx/gtwx5715-setup.c index 3fd92c5cbaa8..29a6d02fa851 100644 --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c | |||
@@ -93,7 +93,7 @@ static struct plat_serial8250_port gtwx5715_uart_platform_data[] = { | |||
93 | 93 | ||
94 | static struct platform_device gtwx5715_uart_device = { | 94 | static struct platform_device gtwx5715_uart_device = { |
95 | .name = "serial8250", | 95 | .name = "serial8250", |
96 | .id = 0, | 96 | .id = PLAT8250_DEV_PLATFORM, |
97 | .dev = { | 97 | .dev = { |
98 | .platform_data = gtwx5715_uart_platform_data, | 98 | .platform_data = gtwx5715_uart_platform_data, |
99 | }, | 99 | }, |
diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-ixp4xx/ixdp425-setup.c index 6c14ff3c23a0..ae1fa099d5fa 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-setup.c +++ b/arch/arm/mach-ixp4xx/ixdp425-setup.c | |||
@@ -96,7 +96,7 @@ static struct plat_serial8250_port ixdp425_uart_data[] = { | |||
96 | 96 | ||
97 | static struct platform_device ixdp425_uart = { | 97 | static struct platform_device ixdp425_uart = { |
98 | .name = "serial8250", | 98 | .name = "serial8250", |
99 | .id = 0, | 99 | .id = PLAT8250_DEV_PLATFORM, |
100 | .dev.platform_data = ixdp425_uart_data, | 100 | .dev.platform_data = ixdp425_uart_data, |
101 | .num_resources = 2, | 101 | .num_resources = 2, |
102 | .resource = ixdp425_uart_resources | 102 | .resource = ixdp425_uart_resources |
diff --git a/arch/arm/mach-omap1/Kconfig b/arch/arm/mach-omap1/Kconfig index 7408ac94f771..27fc2e8e5fca 100644 --- a/arch/arm/mach-omap1/Kconfig +++ b/arch/arm/mach-omap1/Kconfig | |||
@@ -47,6 +47,14 @@ config MACH_OMAP_OSK | |||
47 | TI OMAP 5912 OSK (OMAP Starter Kit) board support. Say Y here | 47 | TI OMAP 5912 OSK (OMAP Starter Kit) board support. Say Y here |
48 | if you have such a board. | 48 | if you have such a board. |
49 | 49 | ||
50 | config OMAP_OSK_MISTRAL | ||
51 | bool "Mistral QVGA board Support" | ||
52 | depends on MACH_OMAP_OSK | ||
53 | help | ||
54 | The OSK supports an optional add-on board with a Quarter-VGA | ||
55 | touchscreen, PDA-ish buttons, a resume button, bicolor LED, | ||
56 | and camera connector. Say Y here if you have this board. | ||
57 | |||
50 | config MACH_OMAP_PERSEUS2 | 58 | config MACH_OMAP_PERSEUS2 |
51 | bool "TI Perseus2" | 59 | bool "TI Perseus2" |
52 | depends on ARCH_OMAP1 && ARCH_OMAP730 | 60 | depends on ARCH_OMAP1 && ARCH_OMAP730 |
diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index d386fd913f0c..181a93deaaee 100644 --- a/arch/arm/mach-omap1/Makefile +++ b/arch/arm/mach-omap1/Makefile | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := io.o id.o irq.o time.o serial.o | 6 | obj-y := io.o id.o irq.o time.o serial.o devices.o |
7 | led-y := leds.o | 7 | led-y := leds.o |
8 | 8 | ||
9 | # Specific board support | 9 | # Specific board support |
@@ -23,6 +23,7 @@ endif | |||
23 | 23 | ||
24 | # LEDs support | 24 | # LEDs support |
25 | led-$(CONFIG_MACH_OMAP_H2) += leds-h2p2-debug.o | 25 | led-$(CONFIG_MACH_OMAP_H2) += leds-h2p2-debug.o |
26 | led-$(CONFIG_MACH_OMAP_H3) += leds-h2p2-debug.o | ||
26 | led-$(CONFIG_MACH_OMAP_INNOVATOR) += leds-innovator.o | 27 | led-$(CONFIG_MACH_OMAP_INNOVATOR) += leds-innovator.o |
27 | led-$(CONFIG_MACH_OMAP_PERSEUS2) += leds-h2p2-debug.o | 28 | led-$(CONFIG_MACH_OMAP_PERSEUS2) += leds-h2p2-debug.o |
28 | led-$(CONFIG_MACH_OMAP_OSK) += leds-osk.o | 29 | led-$(CONFIG_MACH_OMAP_OSK) += leds-osk.o |
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index 122796ebe8f5..c209c7172a9a 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c | |||
@@ -48,19 +48,43 @@ static struct omap_usb_config generic1510_usb_config __initdata = { | |||
48 | 48 | ||
49 | #if defined(CONFIG_ARCH_OMAP16XX) | 49 | #if defined(CONFIG_ARCH_OMAP16XX) |
50 | static struct omap_usb_config generic1610_usb_config __initdata = { | 50 | static struct omap_usb_config generic1610_usb_config __initdata = { |
51 | #ifdef CONFIG_USB_OTG | ||
52 | .otg = 1, | ||
53 | #endif | ||
51 | .register_host = 1, | 54 | .register_host = 1, |
52 | .register_dev = 1, | 55 | .register_dev = 1, |
53 | .hmc_mode = 16, | 56 | .hmc_mode = 16, |
54 | .pins[0] = 6, | 57 | .pins[0] = 6, |
55 | }; | 58 | }; |
59 | |||
60 | static struct omap_mmc_config generic_mmc_config __initdata = { | ||
61 | .mmc [0] = { | ||
62 | .enabled = 0, | ||
63 | .wire4 = 0, | ||
64 | .wp_pin = -1, | ||
65 | .power_pin = -1, | ||
66 | .switch_pin = -1, | ||
67 | }, | ||
68 | .mmc [1] = { | ||
69 | .enabled = 0, | ||
70 | .wire4 = 0, | ||
71 | .wp_pin = -1, | ||
72 | .power_pin = -1, | ||
73 | .switch_pin = -1, | ||
74 | }, | ||
75 | }; | ||
76 | |||
56 | #endif | 77 | #endif |
57 | 78 | ||
58 | static struct omap_board_config_kernel generic_config[] = { | 79 | static struct omap_board_config_kernel generic_config[] = { |
59 | { OMAP_TAG_USB, NULL }, | 80 | { OMAP_TAG_USB, NULL }, |
81 | { OMAP_TAG_MMC, &generic_mmc_config }, | ||
60 | }; | 82 | }; |
61 | 83 | ||
62 | static void __init omap_generic_init(void) | 84 | static void __init omap_generic_init(void) |
63 | { | 85 | { |
86 | const struct omap_uart_config *uart_conf; | ||
87 | |||
64 | /* | 88 | /* |
65 | * Make sure the serial ports are muxed on at this point. | 89 | * Make sure the serial ports are muxed on at this point. |
66 | * You have to mux them off in device drivers later on | 90 | * You have to mux them off in device drivers later on |
@@ -76,6 +100,18 @@ static void __init omap_generic_init(void) | |||
76 | generic_config[0].data = &generic1610_usb_config; | 100 | generic_config[0].data = &generic1610_usb_config; |
77 | } | 101 | } |
78 | #endif | 102 | #endif |
103 | |||
104 | uart_conf = omap_get_config(OMAP_TAG_UART, struct omap_uart_config); | ||
105 | if (uart_conf != NULL) { | ||
106 | unsigned int enabled_ports, i; | ||
107 | |||
108 | enabled_ports = uart_conf->enabled_uarts; | ||
109 | for (i = 0; i < 3; i++) { | ||
110 | if (!(enabled_ports & (1 << i))) | ||
111 | generic_serial_ports[i] = 0; | ||
112 | } | ||
113 | } | ||
114 | |||
79 | omap_board_config = generic_config; | 115 | omap_board_config = generic_config; |
80 | omap_board_config_size = ARRAY_SIZE(generic_config); | 116 | omap_board_config_size = ARRAY_SIZE(generic_config); |
81 | omap_serial_init(generic_serial_ports); | 117 | omap_serial_init(generic_serial_ports); |
@@ -83,7 +119,7 @@ static void __init omap_generic_init(void) | |||
83 | 119 | ||
84 | static void __init omap_generic_map_io(void) | 120 | static void __init omap_generic_map_io(void) |
85 | { | 121 | { |
86 | omap_map_common_io() | 122 | omap_map_common_io(); |
87 | } | 123 | } |
88 | 124 | ||
89 | MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") | 125 | MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index f4983ee95ab4..d46a70063b0c 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
34 | 34 | ||
35 | #include <asm/arch/gpio.h> | 35 | #include <asm/arch/gpio.h> |
36 | #include <asm/arch/mux.h> | ||
36 | #include <asm/arch/tc.h> | 37 | #include <asm/arch/tc.h> |
37 | #include <asm/arch/usb.h> | 38 | #include <asm/arch/usb.h> |
38 | #include <asm/arch/common.h> | 39 | #include <asm/arch/common.h> |
@@ -80,8 +81,7 @@ static struct flash_platform_data h2_flash_data = { | |||
80 | }; | 81 | }; |
81 | 82 | ||
82 | static struct resource h2_flash_resource = { | 83 | static struct resource h2_flash_resource = { |
83 | .start = OMAP_CS2B_PHYS, | 84 | /* This is on CS3, wherever it's mapped */ |
84 | .end = OMAP_CS2B_PHYS + OMAP_CS2B_SIZE - 1, | ||
85 | .flags = IORESOURCE_MEM, | 85 | .flags = IORESOURCE_MEM, |
86 | }; | 86 | }; |
87 | 87 | ||
@@ -126,10 +126,9 @@ static void __init h2_init_smc91x(void) | |||
126 | printk("Error requesting gpio 0 for smc91x irq\n"); | 126 | printk("Error requesting gpio 0 for smc91x irq\n"); |
127 | return; | 127 | return; |
128 | } | 128 | } |
129 | omap_set_gpio_edge_ctrl(0, OMAP_GPIO_FALLING_EDGE); | ||
130 | } | 129 | } |
131 | 130 | ||
132 | void h2_init_irq(void) | 131 | static void __init h2_init_irq(void) |
133 | { | 132 | { |
134 | omap_init_irq(); | 133 | omap_init_irq(); |
135 | omap_gpio_init(); | 134 | omap_gpio_init(); |
@@ -152,9 +151,13 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
152 | }; | 151 | }; |
153 | 152 | ||
154 | static struct omap_mmc_config h2_mmc_config __initdata = { | 153 | static struct omap_mmc_config h2_mmc_config __initdata = { |
155 | .mmc_blocks = 1, | 154 | .mmc [0] = { |
156 | .mmc1_power_pin = -1, /* tps65010 gpio3 */ | 155 | .enabled = 1, |
157 | .mmc1_switch_pin = OMAP_MPUIO(1), | 156 | .wire4 = 1, |
157 | .wp_pin = OMAP_MPUIO(3), | ||
158 | .power_pin = -1, /* tps65010 gpio3 */ | ||
159 | .switch_pin = OMAP_MPUIO(1), | ||
160 | }, | ||
158 | }; | 161 | }; |
159 | 162 | ||
160 | static struct omap_board_config_kernel h2_config[] = { | 163 | static struct omap_board_config_kernel h2_config[] = { |
@@ -164,6 +167,16 @@ static struct omap_board_config_kernel h2_config[] = { | |||
164 | 167 | ||
165 | static void __init h2_init(void) | 168 | static void __init h2_init(void) |
166 | { | 169 | { |
170 | /* NOTE: revC boards support NAND-boot, which can put NOR on CS2B | ||
171 | * and NAND (either 16bit or 8bit) on CS3. | ||
172 | */ | ||
173 | h2_flash_resource.end = h2_flash_resource.start = omap_cs3_phys(); | ||
174 | h2_flash_resource.end += SZ_32M - 1; | ||
175 | |||
176 | /* MMC: card detect and WP */ | ||
177 | // omap_cfg_reg(U19_ARMIO1); /* CD */ | ||
178 | omap_cfg_reg(BALLOUT_V8_ARMIO3); /* WP */ | ||
179 | |||
167 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); | 180 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); |
168 | omap_board_config = h2_config; | 181 | omap_board_config = h2_config; |
169 | omap_board_config_size = ARRAY_SIZE(h2_config); | 182 | omap_board_config_size = ARRAY_SIZE(h2_config); |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 7cd419d61b40..2798613696fa 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -82,8 +82,7 @@ static struct flash_platform_data h3_flash_data = { | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | static struct resource h3_flash_resource = { | 84 | static struct resource h3_flash_resource = { |
85 | .start = OMAP_CS2B_PHYS, | 85 | /* This is on CS3, wherever it's mapped */ |
86 | .end = OMAP_CS2B_PHYS + OMAP_CS2B_SIZE - 1, | ||
87 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
88 | }; | 87 | }; |
89 | 88 | ||
@@ -161,13 +160,26 @@ static struct omap_usb_config h3_usb_config __initdata = { | |||
161 | .pins[1] = 3, | 160 | .pins[1] = 3, |
162 | }; | 161 | }; |
163 | 162 | ||
163 | static struct omap_mmc_config h3_mmc_config __initdata = { | ||
164 | .mmc[0] = { | ||
165 | .enabled = 1, | ||
166 | .power_pin = -1, /* tps65010 GPIO4 */ | ||
167 | .switch_pin = OMAP_MPUIO(1), | ||
168 | }, | ||
169 | }; | ||
170 | |||
164 | static struct omap_board_config_kernel h3_config[] = { | 171 | static struct omap_board_config_kernel h3_config[] = { |
165 | { OMAP_TAG_USB, &h3_usb_config }, | 172 | { OMAP_TAG_USB, &h3_usb_config }, |
173 | { OMAP_TAG_MMC, &h3_mmc_config }, | ||
166 | }; | 174 | }; |
167 | 175 | ||
168 | static void __init h3_init(void) | 176 | static void __init h3_init(void) |
169 | { | 177 | { |
178 | h3_flash_resource.end = h3_flash_resource.start = omap_cs3_phys(); | ||
179 | h3_flash_resource.end += OMAP_CS3_SIZE - 1; | ||
170 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); | 180 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); |
181 | omap_board_config = h3_config; | ||
182 | omap_board_config_size = ARRAY_SIZE(h3_config); | ||
171 | } | 183 | } |
172 | 184 | ||
173 | static void __init h3_init_smc91x(void) | 185 | static void __init h3_init_smc91x(void) |
@@ -177,7 +189,6 @@ static void __init h3_init_smc91x(void) | |||
177 | printk("Error requesting gpio 40 for smc91x irq\n"); | 189 | printk("Error requesting gpio 40 for smc91x irq\n"); |
178 | return; | 190 | return; |
179 | } | 191 | } |
180 | omap_set_gpio_edge_ctrl(40, OMAP_GPIO_FALLING_EDGE); | ||
181 | } | 192 | } |
182 | 193 | ||
183 | void h3_init_irq(void) | 194 | void h3_init_irq(void) |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 91de60a91ef8..df0312b596e4 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/mach/flash.h> | 29 | #include <asm/mach/flash.h> |
30 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
31 | 31 | ||
32 | #include <asm/arch/mux.h> | ||
32 | #include <asm/arch/fpga.h> | 33 | #include <asm/arch/fpga.h> |
33 | #include <asm/arch/gpio.h> | 34 | #include <asm/arch/gpio.h> |
34 | #include <asm/arch/tc.h> | 35 | #include <asm/arch/tc.h> |
@@ -173,7 +174,6 @@ static void __init innovator_init_smc91x(void) | |||
173 | printk("Error requesting gpio 0 for smc91x irq\n"); | 174 | printk("Error requesting gpio 0 for smc91x irq\n"); |
174 | return; | 175 | return; |
175 | } | 176 | } |
176 | omap_set_gpio_edge_ctrl(0, OMAP_GPIO_RISING_EDGE); | ||
177 | } | 177 | } |
178 | } | 178 | } |
179 | 179 | ||
@@ -220,8 +220,19 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
220 | }; | 220 | }; |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | static struct omap_mmc_config innovator_mmc_config __initdata = { | ||
224 | .mmc [0] = { | ||
225 | .enabled = 1, | ||
226 | .wire4 = 1, | ||
227 | .wp_pin = OMAP_MPUIO(3), | ||
228 | .power_pin = -1, /* FPGA F3 UIO42 */ | ||
229 | .switch_pin = -1, /* FPGA F4 UIO43 */ | ||
230 | }, | ||
231 | }; | ||
232 | |||
223 | static struct omap_board_config_kernel innovator_config[] = { | 233 | static struct omap_board_config_kernel innovator_config[] = { |
224 | { OMAP_TAG_USB, NULL }, | 234 | { OMAP_TAG_USB, NULL }, |
235 | { OMAP_TAG_MMC, &innovator_mmc_config }, | ||
225 | }; | 236 | }; |
226 | 237 | ||
227 | static void __init innovator_init(void) | 238 | static void __init innovator_init(void) |
diff --git a/arch/arm/mach-omap1/board-netstar.c b/arch/arm/mach-omap1/board-netstar.c index 6750b2014092..d904e643f5ec 100644 --- a/arch/arm/mach-omap1/board-netstar.c +++ b/arch/arm/mach-omap1/board-netstar.c | |||
@@ -75,16 +75,15 @@ static void __init netstar_init(void) | |||
75 | mdelay(50); /* 50ms until PHY ready */ | 75 | mdelay(50); /* 50ms until PHY ready */ |
76 | /* smc91x interrupt pin */ | 76 | /* smc91x interrupt pin */ |
77 | omap_request_gpio(8); | 77 | omap_request_gpio(8); |
78 | omap_set_gpio_edge_ctrl(8, OMAP_GPIO_RISING_EDGE); | ||
79 | 78 | ||
80 | omap_request_gpio(12); | 79 | omap_request_gpio(12); |
81 | omap_request_gpio(13); | 80 | omap_request_gpio(13); |
82 | omap_request_gpio(14); | 81 | omap_request_gpio(14); |
83 | omap_request_gpio(15); | 82 | omap_request_gpio(15); |
84 | omap_set_gpio_edge_ctrl(12, OMAP_GPIO_FALLING_EDGE); | 83 | set_irq_type(OMAP_GPIO_IRQ(12), IRQT_FALLING); |
85 | omap_set_gpio_edge_ctrl(13, OMAP_GPIO_FALLING_EDGE); | 84 | set_irq_type(OMAP_GPIO_IRQ(13), IRQT_FALLING); |
86 | omap_set_gpio_edge_ctrl(14, OMAP_GPIO_FALLING_EDGE); | 85 | set_irq_type(OMAP_GPIO_IRQ(14), IRQT_FALLING); |
87 | omap_set_gpio_edge_ctrl(15, OMAP_GPIO_FALLING_EDGE); | 86 | set_irq_type(OMAP_GPIO_IRQ(15), IRQT_FALLING); |
88 | 87 | ||
89 | platform_add_devices(netstar_devices, ARRAY_SIZE(netstar_devices)); | 88 | platform_add_devices(netstar_devices, ARRAY_SIZE(netstar_devices)); |
90 | 89 | ||
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 6844e536c698..21103df50415 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -29,11 +29,16 @@ | |||
29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
30 | #include <linux/init.h> | 30 | #include <linux/init.h> |
31 | #include <linux/device.h> | 31 | #include <linux/device.h> |
32 | #include <linux/interrupt.h> | ||
33 | |||
34 | #include <linux/mtd/mtd.h> | ||
35 | #include <linux/mtd/partitions.h> | ||
32 | 36 | ||
33 | #include <asm/hardware.h> | 37 | #include <asm/hardware.h> |
34 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
35 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
41 | #include <asm/mach/flash.h> | ||
37 | 42 | ||
38 | #include <asm/arch/gpio.h> | 43 | #include <asm/arch/gpio.h> |
39 | #include <asm/arch/usb.h> | 44 | #include <asm/arch/usb.h> |
@@ -41,12 +46,56 @@ | |||
41 | #include <asm/arch/tc.h> | 46 | #include <asm/arch/tc.h> |
42 | #include <asm/arch/common.h> | 47 | #include <asm/arch/common.h> |
43 | 48 | ||
44 | static struct map_desc osk5912_io_desc[] __initdata = { | 49 | static int __initdata osk_serial_ports[OMAP_MAX_NR_PORTS] = {1, 0, 0}; |
45 | { OMAP_OSK_NOR_FLASH_BASE, OMAP_OSK_NOR_FLASH_START, OMAP_OSK_NOR_FLASH_SIZE, | 50 | |
46 | MT_DEVICE }, | 51 | static struct mtd_partition osk_partitions[] = { |
52 | /* bootloader (U-Boot, etc) in first sector */ | ||
53 | { | ||
54 | .name = "bootloader", | ||
55 | .offset = 0, | ||
56 | .size = SZ_128K, | ||
57 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
58 | }, | ||
59 | /* bootloader params in the next sector */ | ||
60 | { | ||
61 | .name = "params", | ||
62 | .offset = MTDPART_OFS_APPEND, | ||
63 | .size = SZ_128K, | ||
64 | .mask_flags = 0, | ||
65 | }, { | ||
66 | .name = "kernel", | ||
67 | .offset = MTDPART_OFS_APPEND, | ||
68 | .size = SZ_2M, | ||
69 | .mask_flags = 0 | ||
70 | }, { | ||
71 | .name = "filesystem", | ||
72 | .offset = MTDPART_OFS_APPEND, | ||
73 | .size = MTDPART_SIZ_FULL, | ||
74 | .mask_flags = 0 | ||
75 | } | ||
47 | }; | 76 | }; |
48 | 77 | ||
49 | static int __initdata osk_serial_ports[OMAP_MAX_NR_PORTS] = {1, 0, 0}; | 78 | static struct flash_platform_data osk_flash_data = { |
79 | .map_name = "cfi_probe", | ||
80 | .width = 2, | ||
81 | .parts = osk_partitions, | ||
82 | .nr_parts = ARRAY_SIZE(osk_partitions), | ||
83 | }; | ||
84 | |||
85 | static struct resource osk_flash_resource = { | ||
86 | /* this is on CS3, wherever it's mapped */ | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }; | ||
89 | |||
90 | static struct platform_device osk5912_flash_device = { | ||
91 | .name = "omapflash", | ||
92 | .id = 0, | ||
93 | .dev = { | ||
94 | .platform_data = &osk_flash_data, | ||
95 | }, | ||
96 | .num_resources = 1, | ||
97 | .resource = &osk_flash_resource, | ||
98 | }; | ||
50 | 99 | ||
51 | static struct resource osk5912_smc91x_resources[] = { | 100 | static struct resource osk5912_smc91x_resources[] = { |
52 | [0] = { | 101 | [0] = { |
@@ -86,9 +135,16 @@ static struct platform_device osk5912_cf_device = { | |||
86 | .resource = osk5912_cf_resources, | 135 | .resource = osk5912_cf_resources, |
87 | }; | 136 | }; |
88 | 137 | ||
138 | static struct platform_device osk5912_mcbsp1_device = { | ||
139 | .name = "omap_mcbsp", | ||
140 | .id = 1, | ||
141 | }; | ||
142 | |||
89 | static struct platform_device *osk5912_devices[] __initdata = { | 143 | static struct platform_device *osk5912_devices[] __initdata = { |
144 | &osk5912_flash_device, | ||
90 | &osk5912_smc91x_device, | 145 | &osk5912_smc91x_device, |
91 | &osk5912_cf_device, | 146 | &osk5912_cf_device, |
147 | &osk5912_mcbsp1_device, | ||
92 | }; | 148 | }; |
93 | 149 | ||
94 | static void __init osk_init_smc91x(void) | 150 | static void __init osk_init_smc91x(void) |
@@ -97,7 +153,6 @@ static void __init osk_init_smc91x(void) | |||
97 | printk("Error requesting gpio 0 for smc91x irq\n"); | 153 | printk("Error requesting gpio 0 for smc91x irq\n"); |
98 | return; | 154 | return; |
99 | } | 155 | } |
100 | omap_set_gpio_edge_ctrl(0, OMAP_GPIO_RISING_EDGE); | ||
101 | 156 | ||
102 | /* Check EMIFS wait states to fix errors with SMC_GET_PKT_HDR */ | 157 | /* Check EMIFS wait states to fix errors with SMC_GET_PKT_HDR */ |
103 | EMIFS_CCS(1) |= 0x2; | 158 | EMIFS_CCS(1) |= 0x2; |
@@ -110,11 +165,11 @@ static void __init osk_init_cf(void) | |||
110 | printk("Error requesting gpio 62 for CF irq\n"); | 165 | printk("Error requesting gpio 62 for CF irq\n"); |
111 | return; | 166 | return; |
112 | } | 167 | } |
113 | /* it's really active-low */ | 168 | /* the CF I/O IRQ is really active-low */ |
114 | omap_set_gpio_edge_ctrl(62, OMAP_GPIO_FALLING_EDGE); | 169 | set_irq_type(OMAP_GPIO_IRQ(62), IRQT_FALLING); |
115 | } | 170 | } |
116 | 171 | ||
117 | void osk_init_irq(void) | 172 | static void __init osk_init_irq(void) |
118 | { | 173 | { |
119 | omap_init_irq(); | 174 | omap_init_irq(); |
120 | omap_gpio_init(); | 175 | omap_gpio_init(); |
@@ -142,18 +197,69 @@ static struct omap_board_config_kernel osk_config[] = { | |||
142 | { OMAP_TAG_USB, &osk_usb_config }, | 197 | { OMAP_TAG_USB, &osk_usb_config }, |
143 | }; | 198 | }; |
144 | 199 | ||
200 | #ifdef CONFIG_OMAP_OSK_MISTRAL | ||
201 | |||
202 | #ifdef CONFIG_PM | ||
203 | static irqreturn_t | ||
204 | osk_mistral_wake_interrupt(int irq, void *ignored, struct pt_regs *regs) | ||
205 | { | ||
206 | return IRQ_HANDLED; | ||
207 | } | ||
208 | #endif | ||
209 | |||
210 | static void __init osk_mistral_init(void) | ||
211 | { | ||
212 | /* FIXME here's where to feed in framebuffer, touchpad, and | ||
213 | * keyboard setup ... not in the drivers for those devices! | ||
214 | * | ||
215 | * NOTE: we could actually tell if there's a Mistral board | ||
216 | * attached, e.g. by trying to read something from the ads7846. | ||
217 | * But this is too early for that... | ||
218 | */ | ||
219 | |||
220 | /* the sideways button (SW1) is for use as a "wakeup" button */ | ||
221 | omap_cfg_reg(N15_1610_MPUIO2); | ||
222 | if (omap_request_gpio(OMAP_MPUIO(2)) == 0) { | ||
223 | int ret = 0; | ||
224 | omap_set_gpio_direction(OMAP_MPUIO(2), 1); | ||
225 | set_irq_type(OMAP_GPIO_IRQ(OMAP_MPUIO(2)), IRQT_RISING); | ||
226 | #ifdef CONFIG_PM | ||
227 | /* share the IRQ in case someone wants to use the | ||
228 | * button for more than wakeup from system sleep. | ||
229 | */ | ||
230 | ret = request_irq(OMAP_GPIO_IRQ(OMAP_MPUIO(2)), | ||
231 | &osk_mistral_wake_interrupt, | ||
232 | SA_SHIRQ, "mistral_wakeup", | ||
233 | &osk_mistral_wake_interrupt); | ||
234 | if (ret != 0) { | ||
235 | omap_free_gpio(OMAP_MPUIO(2)); | ||
236 | printk(KERN_ERR "OSK+Mistral: no wakeup irq, %d?\n", | ||
237 | ret); | ||
238 | } else | ||
239 | enable_irq_wake(OMAP_GPIO_IRQ(OMAP_MPUIO(2))); | ||
240 | #endif | ||
241 | } else | ||
242 | printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n"); | ||
243 | } | ||
244 | #else | ||
245 | static void __init osk_mistral_init(void) { } | ||
246 | #endif | ||
247 | |||
145 | static void __init osk_init(void) | 248 | static void __init osk_init(void) |
146 | { | 249 | { |
250 | osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys(); | ||
251 | osk_flash_resource.end += SZ_32M - 1; | ||
147 | platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices)); | 252 | platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices)); |
148 | omap_board_config = osk_config; | 253 | omap_board_config = osk_config; |
149 | omap_board_config_size = ARRAY_SIZE(osk_config); | 254 | omap_board_config_size = ARRAY_SIZE(osk_config); |
150 | USB_TRANSCEIVER_CTRL_REG |= (3 << 1); | 255 | USB_TRANSCEIVER_CTRL_REG |= (3 << 1); |
256 | |||
257 | osk_mistral_init(); | ||
151 | } | 258 | } |
152 | 259 | ||
153 | static void __init osk_map_io(void) | 260 | static void __init osk_map_io(void) |
154 | { | 261 | { |
155 | omap_map_common_io(); | 262 | omap_map_common_io(); |
156 | iotable_init(osk5912_io_desc, ARRAY_SIZE(osk5912_io_desc)); | ||
157 | omap_serial_init(osk_serial_ports); | 263 | omap_serial_init(osk_serial_ports); |
158 | } | 264 | } |
159 | 265 | ||
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 213317392d9b..107c68c8ab54 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/mach/flash.h> | 24 | #include <asm/mach/flash.h> |
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | 26 | ||
27 | #include <asm/arch/tc.h> | ||
27 | #include <asm/arch/gpio.h> | 28 | #include <asm/arch/gpio.h> |
28 | #include <asm/arch/mux.h> | 29 | #include <asm/arch/mux.h> |
29 | #include <asm/arch/fpga.h> | 30 | #include <asm/arch/fpga.h> |
@@ -83,8 +84,8 @@ static struct flash_platform_data p2_flash_data = { | |||
83 | }; | 84 | }; |
84 | 85 | ||
85 | static struct resource p2_flash_resource = { | 86 | static struct resource p2_flash_resource = { |
86 | .start = OMAP_FLASH_0_START, | 87 | .start = OMAP_CS0_PHYS, |
87 | .end = OMAP_FLASH_0_START + OMAP_FLASH_0_SIZE - 1, | 88 | .end = OMAP_CS0_PHYS + SZ_32M - 1, |
88 | .flags = IORESOURCE_MEM, | 89 | .flags = IORESOURCE_MEM, |
89 | }; | 90 | }; |
90 | 91 | ||
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index e42281988990..bf30b1acda0b 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -25,13 +25,14 @@ | |||
25 | #include <asm/hardware.h> | 25 | #include <asm/hardware.h> |
26 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
27 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/flash.h> | ||
28 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
29 | 30 | ||
31 | #include <asm/arch/common.h> | ||
30 | #include <asm/arch/gpio.h> | 32 | #include <asm/arch/gpio.h> |
31 | #include <asm/arch/tc.h> | ||
32 | #include <asm/arch/mux.h> | 33 | #include <asm/arch/mux.h> |
34 | #include <asm/arch/tc.h> | ||
33 | #include <asm/arch/usb.h> | 35 | #include <asm/arch/usb.h> |
34 | #include <asm/arch/common.h> | ||
35 | 36 | ||
36 | extern void omap_init_time(void); | 37 | extern void omap_init_time(void); |
37 | extern int omap_gpio_init(void); | 38 | extern int omap_gpio_init(void); |
@@ -74,7 +75,7 @@ static struct plat_serial8250_port voiceblue_ports[] = { | |||
74 | 75 | ||
75 | static struct platform_device serial_device = { | 76 | static struct platform_device serial_device = { |
76 | .name = "serial8250", | 77 | .name = "serial8250", |
77 | .id = 1, | 78 | .id = PLAT8250_DEV_PLATFORM1, |
78 | .dev = { | 79 | .dev = { |
79 | .platform_data = voiceblue_ports, | 80 | .platform_data = voiceblue_ports, |
80 | }, | 81 | }, |
@@ -86,6 +87,27 @@ static int __init ext_uart_init(void) | |||
86 | } | 87 | } |
87 | arch_initcall(ext_uart_init); | 88 | arch_initcall(ext_uart_init); |
88 | 89 | ||
90 | static struct flash_platform_data voiceblue_flash_data = { | ||
91 | .map_name = "cfi_probe", | ||
92 | .width = 2, | ||
93 | }; | ||
94 | |||
95 | static struct resource voiceblue_flash_resource = { | ||
96 | .start = OMAP_CS0_PHYS, | ||
97 | .end = OMAP_CS0_PHYS + SZ_32M - 1, | ||
98 | .flags = IORESOURCE_MEM, | ||
99 | }; | ||
100 | |||
101 | static struct platform_device voiceblue_flash_device = { | ||
102 | .name = "omapflash", | ||
103 | .id = 0, | ||
104 | .dev = { | ||
105 | .platform_data = &voiceblue_flash_data, | ||
106 | }, | ||
107 | .num_resources = 1, | ||
108 | .resource = &voiceblue_flash_resource, | ||
109 | }; | ||
110 | |||
89 | static struct resource voiceblue_smc91x_resources[] = { | 111 | static struct resource voiceblue_smc91x_resources[] = { |
90 | [0] = { | 112 | [0] = { |
91 | .start = OMAP_CS2_PHYS + 0x300, | 113 | .start = OMAP_CS2_PHYS + 0x300, |
@@ -107,6 +129,7 @@ static struct platform_device voiceblue_smc91x_device = { | |||
107 | }; | 129 | }; |
108 | 130 | ||
109 | static struct platform_device *voiceblue_devices[] __initdata = { | 131 | static struct platform_device *voiceblue_devices[] __initdata = { |
132 | &voiceblue_flash_device, | ||
110 | &voiceblue_smc91x_device, | 133 | &voiceblue_smc91x_device, |
111 | }; | 134 | }; |
112 | 135 | ||
@@ -119,8 +142,17 @@ static struct omap_usb_config voiceblue_usb_config __initdata = { | |||
119 | .pins[2] = 6, | 142 | .pins[2] = 6, |
120 | }; | 143 | }; |
121 | 144 | ||
145 | static struct omap_mmc_config voiceblue_mmc_config __initdata = { | ||
146 | .mmc[0] = { | ||
147 | .enabled = 1, | ||
148 | .power_pin = 2, | ||
149 | .switch_pin = -1, | ||
150 | }, | ||
151 | }; | ||
152 | |||
122 | static struct omap_board_config_kernel voiceblue_config[] = { | 153 | static struct omap_board_config_kernel voiceblue_config[] = { |
123 | { OMAP_TAG_USB, &voiceblue_usb_config }, | 154 | { OMAP_TAG_USB, &voiceblue_usb_config }, |
155 | { OMAP_TAG_MMC, &voiceblue_mmc_config }, | ||
124 | }; | 156 | }; |
125 | 157 | ||
126 | static void __init voiceblue_init_irq(void) | 158 | static void __init voiceblue_init_irq(void) |
@@ -131,9 +163,6 @@ static void __init voiceblue_init_irq(void) | |||
131 | 163 | ||
132 | static void __init voiceblue_init(void) | 164 | static void __init voiceblue_init(void) |
133 | { | 165 | { |
134 | /* There is a good chance board is going up, so enable Power LED | ||
135 | * (it is connected through invertor) */ | ||
136 | omap_writeb(0x00, OMAP_LPG1_LCR); | ||
137 | /* Watchdog */ | 166 | /* Watchdog */ |
138 | omap_request_gpio(0); | 167 | omap_request_gpio(0); |
139 | /* smc91x reset */ | 168 | /* smc91x reset */ |
@@ -145,7 +174,6 @@ static void __init voiceblue_init(void) | |||
145 | mdelay(50); /* 50ms until PHY ready */ | 174 | mdelay(50); /* 50ms until PHY ready */ |
146 | /* smc91x interrupt pin */ | 175 | /* smc91x interrupt pin */ |
147 | omap_request_gpio(8); | 176 | omap_request_gpio(8); |
148 | omap_set_gpio_edge_ctrl(8, OMAP_GPIO_RISING_EDGE); | ||
149 | /* 16C554 reset*/ | 177 | /* 16C554 reset*/ |
150 | omap_request_gpio(6); | 178 | omap_request_gpio(6); |
151 | omap_set_gpio_direction(6, 0); | 179 | omap_set_gpio_direction(6, 0); |
@@ -155,14 +183,19 @@ static void __init voiceblue_init(void) | |||
155 | omap_request_gpio(13); | 183 | omap_request_gpio(13); |
156 | omap_request_gpio(14); | 184 | omap_request_gpio(14); |
157 | omap_request_gpio(15); | 185 | omap_request_gpio(15); |
158 | omap_set_gpio_edge_ctrl(12, OMAP_GPIO_RISING_EDGE); | 186 | set_irq_type(OMAP_GPIO_IRQ(12), IRQT_RISING); |
159 | omap_set_gpio_edge_ctrl(13, OMAP_GPIO_RISING_EDGE); | 187 | set_irq_type(OMAP_GPIO_IRQ(13), IRQT_RISING); |
160 | omap_set_gpio_edge_ctrl(14, OMAP_GPIO_RISING_EDGE); | 188 | set_irq_type(OMAP_GPIO_IRQ(14), IRQT_RISING); |
161 | omap_set_gpio_edge_ctrl(15, OMAP_GPIO_RISING_EDGE); | 189 | set_irq_type(OMAP_GPIO_IRQ(15), IRQT_RISING); |
162 | 190 | ||
163 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); | 191 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); |
164 | omap_board_config = voiceblue_config; | 192 | omap_board_config = voiceblue_config; |
165 | omap_board_config_size = ARRAY_SIZE(voiceblue_config); | 193 | omap_board_config_size = ARRAY_SIZE(voiceblue_config); |
194 | |||
195 | /* There is a good chance board is going up, so enable power LED | ||
196 | * (it is connected through invertor) */ | ||
197 | omap_writeb(0x00, OMAP_LPG1_LCR); | ||
198 | omap_writeb(0x00, OMAP_LPG1_PMR); /* Disable clock */ | ||
166 | } | 199 | } |
167 | 200 | ||
168 | static int __initdata omap_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; | 201 | static int __initdata omap_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; |
@@ -184,9 +217,9 @@ static int panic_event(struct notifier_block *this, unsigned long event, | |||
184 | if (test_and_set_bit(MACHINE_PANICED, &machine_state)) | 217 | if (test_and_set_bit(MACHINE_PANICED, &machine_state)) |
185 | return NOTIFY_DONE; | 218 | return NOTIFY_DONE; |
186 | 219 | ||
187 | /* Flash Power LED | 220 | /* Flash power LED */ |
188 | * (TODO: Enable clock right way (enabled in bootloader already)) */ | ||
189 | omap_writeb(0x78, OMAP_LPG1_LCR); | 221 | omap_writeb(0x78, OMAP_LPG1_LCR); |
222 | omap_writeb(0x01, OMAP_LPG1_PMR); /* Enable clock */ | ||
190 | 223 | ||
191 | return NOTIFY_DONE; | 224 | return NOTIFY_DONE; |
192 | } | 225 | } |
@@ -195,15 +228,14 @@ static struct notifier_block panic_block = { | |||
195 | .notifier_call = panic_event, | 228 | .notifier_call = panic_event, |
196 | }; | 229 | }; |
197 | 230 | ||
198 | static int __init setup_notifier(void) | 231 | static int __init voiceblue_setup(void) |
199 | { | 232 | { |
200 | /* Setup panic notifier */ | 233 | /* Setup panic notifier */ |
201 | notifier_chain_register(&panic_notifier_list, &panic_block); | 234 | notifier_chain_register(&panic_notifier_list, &panic_block); |
202 | 235 | ||
203 | return 0; | 236 | return 0; |
204 | } | 237 | } |
205 | 238 | postcore_initcall(voiceblue_setup); | |
206 | postcore_initcall(setup_notifier); | ||
207 | 239 | ||
208 | static int wdt_gpio_state; | 240 | static int wdt_gpio_state; |
209 | 241 | ||
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c new file mode 100644 index 000000000000..e8b3981444cd --- /dev/null +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -0,0 +1,351 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap1/devices.c | ||
3 | * | ||
4 | * OMAP1 platform device setup/initialization | ||
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 | |||
12 | #include <linux/config.h> | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/device.h> | ||
17 | |||
18 | #include <asm/hardware.h> | ||
19 | #include <asm/io.h> | ||
20 | #include <asm/mach-types.h> | ||
21 | #include <asm/mach/map.h> | ||
22 | |||
23 | #include <asm/arch/tc.h> | ||
24 | #include <asm/arch/board.h> | ||
25 | #include <asm/arch/mux.h> | ||
26 | #include <asm/arch/gpio.h> | ||
27 | |||
28 | |||
29 | static void omap_nop_release(struct device *dev) | ||
30 | { | ||
31 | /* Nothing */ | ||
32 | } | ||
33 | |||
34 | /*-------------------------------------------------------------------------*/ | ||
35 | |||
36 | #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE) | ||
37 | |||
38 | #define OMAP_I2C_BASE 0xfffb3800 | ||
39 | |||
40 | static struct resource i2c_resources[] = { | ||
41 | { | ||
42 | .start = OMAP_I2C_BASE, | ||
43 | .end = OMAP_I2C_BASE + 0x3f, | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | { | ||
47 | .start = INT_I2C, | ||
48 | .flags = IORESOURCE_IRQ, | ||
49 | }, | ||
50 | }; | ||
51 | |||
52 | /* DMA not used; works around erratum writing to non-empty i2c fifo */ | ||
53 | |||
54 | static struct platform_device omap_i2c_device = { | ||
55 | .name = "i2c_omap", | ||
56 | .id = -1, | ||
57 | .dev = { | ||
58 | .release = omap_nop_release, | ||
59 | }, | ||
60 | .num_resources = ARRAY_SIZE(i2c_resources), | ||
61 | .resource = i2c_resources, | ||
62 | }; | ||
63 | |||
64 | static void omap_init_i2c(void) | ||
65 | { | ||
66 | /* FIXME define and use a boot tag, in case of boards that | ||
67 | * either don't wire up I2C, or chips that mux it differently... | ||
68 | * it can include clocking and address info, maybe more. | ||
69 | */ | ||
70 | omap_cfg_reg(I2C_SCL); | ||
71 | omap_cfg_reg(I2C_SDA); | ||
72 | |||
73 | (void) platform_device_register(&omap_i2c_device); | ||
74 | } | ||
75 | #else | ||
76 | static inline void omap_init_i2c(void) {} | ||
77 | #endif | ||
78 | |||
79 | /*-------------------------------------------------------------------------*/ | ||
80 | |||
81 | #if defined(CONFIG_OMAP1610_IR) || defined(CONFIG_OMAP161O_IR_MODULE) | ||
82 | |||
83 | static u64 irda_dmamask = 0xffffffff; | ||
84 | |||
85 | static struct platform_device omap1610ir_device = { | ||
86 | .name = "omap1610-ir", | ||
87 | .id = -1, | ||
88 | .dev = { | ||
89 | .release = omap_nop_release, | ||
90 | .dma_mask = &irda_dmamask, | ||
91 | }, | ||
92 | }; | ||
93 | |||
94 | static void omap_init_irda(void) | ||
95 | { | ||
96 | /* FIXME define and use a boot tag, members something like: | ||
97 | * u8 uart; // uart1, or uart3 | ||
98 | * ... but driver only handles uart3 for now | ||
99 | * s16 fir_sel; // gpio for SIR vs FIR | ||
100 | * ... may prefer a callback for SIR/MIR/FIR mode select; | ||
101 | * while h2 uses a GPIO, H3 uses a gpio expander | ||
102 | */ | ||
103 | if (machine_is_omap_h2() | ||
104 | || machine_is_omap_h3()) | ||
105 | (void) platform_device_register(&omap1610ir_device); | ||
106 | } | ||
107 | #else | ||
108 | static inline void omap_init_irda(void) {} | ||
109 | #endif | ||
110 | |||
111 | /*-------------------------------------------------------------------------*/ | ||
112 | |||
113 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | ||
114 | |||
115 | #define OMAP_MMC1_BASE 0xfffb7800 | ||
116 | #define OMAP_MMC2_BASE 0xfffb7c00 /* omap16xx only */ | ||
117 | |||
118 | static struct omap_mmc_conf mmc1_conf; | ||
119 | |||
120 | static u64 mmc1_dmamask = 0xffffffff; | ||
121 | |||
122 | static struct resource mmc1_resources[] = { | ||
123 | { | ||
124 | .start = IO_ADDRESS(OMAP_MMC1_BASE), | ||
125 | .end = IO_ADDRESS(OMAP_MMC1_BASE) + 0x7f, | ||
126 | .flags = IORESOURCE_MEM, | ||
127 | }, | ||
128 | { | ||
129 | .start = INT_MMC, | ||
130 | .flags = IORESOURCE_IRQ, | ||
131 | }, | ||
132 | }; | ||
133 | |||
134 | static struct platform_device mmc_omap_device1 = { | ||
135 | .name = "mmci-omap", | ||
136 | .id = 1, | ||
137 | .dev = { | ||
138 | .release = omap_nop_release, | ||
139 | .dma_mask = &mmc1_dmamask, | ||
140 | .platform_data = &mmc1_conf, | ||
141 | }, | ||
142 | .num_resources = ARRAY_SIZE(mmc1_resources), | ||
143 | .resource = mmc1_resources, | ||
144 | }; | ||
145 | |||
146 | #ifdef CONFIG_ARCH_OMAP16XX | ||
147 | |||
148 | static struct omap_mmc_conf mmc2_conf; | ||
149 | |||
150 | static u64 mmc2_dmamask = 0xffffffff; | ||
151 | |||
152 | static struct resource mmc2_resources[] = { | ||
153 | { | ||
154 | .start = IO_ADDRESS(OMAP_MMC2_BASE), | ||
155 | .end = IO_ADDRESS(OMAP_MMC2_BASE) + 0x7f, | ||
156 | .flags = IORESOURCE_MEM, | ||
157 | }, | ||
158 | { | ||
159 | .start = INT_1610_MMC2, | ||
160 | .flags = IORESOURCE_IRQ, | ||
161 | }, | ||
162 | }; | ||
163 | |||
164 | static struct platform_device mmc_omap_device2 = { | ||
165 | .name = "mmci-omap", | ||
166 | .id = 2, | ||
167 | .dev = { | ||
168 | .release = omap_nop_release, | ||
169 | .dma_mask = &mmc2_dmamask, | ||
170 | .platform_data = &mmc2_conf, | ||
171 | }, | ||
172 | .num_resources = ARRAY_SIZE(mmc2_resources), | ||
173 | .resource = mmc2_resources, | ||
174 | }; | ||
175 | #endif | ||
176 | |||
177 | static void __init omap_init_mmc(void) | ||
178 | { | ||
179 | const struct omap_mmc_config *mmc_conf; | ||
180 | const struct omap_mmc_conf *mmc; | ||
181 | |||
182 | /* NOTE: assumes MMC was never (wrongly) enabled */ | ||
183 | mmc_conf = omap_get_config(OMAP_TAG_MMC, struct omap_mmc_config); | ||
184 | if (!mmc_conf) | ||
185 | return; | ||
186 | |||
187 | /* block 1 is always available and has just one pinout option */ | ||
188 | mmc = &mmc_conf->mmc[0]; | ||
189 | if (mmc->enabled) { | ||
190 | omap_cfg_reg(MMC_CMD); | ||
191 | omap_cfg_reg(MMC_CLK); | ||
192 | omap_cfg_reg(MMC_DAT0); | ||
193 | if (cpu_is_omap1710()) { | ||
194 | omap_cfg_reg(M15_1710_MMC_CLKI); | ||
195 | omap_cfg_reg(P19_1710_MMC_CMDDIR); | ||
196 | omap_cfg_reg(P20_1710_MMC_DATDIR0); | ||
197 | } | ||
198 | if (mmc->wire4) { | ||
199 | omap_cfg_reg(MMC_DAT1); | ||
200 | /* NOTE: DAT2 can be on W10 (here) or M15 */ | ||
201 | if (!mmc->nomux) | ||
202 | omap_cfg_reg(MMC_DAT2); | ||
203 | omap_cfg_reg(MMC_DAT3); | ||
204 | } | ||
205 | mmc1_conf = *mmc; | ||
206 | (void) platform_device_register(&mmc_omap_device1); | ||
207 | } | ||
208 | |||
209 | #ifdef CONFIG_ARCH_OMAP16XX | ||
210 | /* block 2 is on newer chips, and has many pinout options */ | ||
211 | mmc = &mmc_conf->mmc[1]; | ||
212 | if (mmc->enabled) { | ||
213 | if (!mmc->nomux) { | ||
214 | omap_cfg_reg(Y8_1610_MMC2_CMD); | ||
215 | omap_cfg_reg(Y10_1610_MMC2_CLK); | ||
216 | omap_cfg_reg(R18_1610_MMC2_CLKIN); | ||
217 | omap_cfg_reg(W8_1610_MMC2_DAT0); | ||
218 | if (mmc->wire4) { | ||
219 | omap_cfg_reg(V8_1610_MMC2_DAT1); | ||
220 | omap_cfg_reg(W15_1610_MMC2_DAT2); | ||
221 | omap_cfg_reg(R10_1610_MMC2_DAT3); | ||
222 | } | ||
223 | |||
224 | /* These are needed for the level shifter */ | ||
225 | omap_cfg_reg(V9_1610_MMC2_CMDDIR); | ||
226 | omap_cfg_reg(V5_1610_MMC2_DATDIR0); | ||
227 | omap_cfg_reg(W19_1610_MMC2_DATDIR1); | ||
228 | } | ||
229 | |||
230 | /* Feedback clock must be set on OMAP-1710 MMC2 */ | ||
231 | if (cpu_is_omap1710()) | ||
232 | omap_writel(omap_readl(MOD_CONF_CTRL_1) | (1 << 24), | ||
233 | MOD_CONF_CTRL_1); | ||
234 | mmc2_conf = *mmc; | ||
235 | (void) platform_device_register(&mmc_omap_device2); | ||
236 | } | ||
237 | #endif | ||
238 | return; | ||
239 | } | ||
240 | #else | ||
241 | static inline void omap_init_mmc(void) {} | ||
242 | #endif | ||
243 | |||
244 | #if defined(CONFIG_OMAP_RTC) || defined(CONFIG_OMAP_RTC) | ||
245 | |||
246 | #define OMAP_RTC_BASE 0xfffb4800 | ||
247 | |||
248 | static struct resource rtc_resources[] = { | ||
249 | { | ||
250 | .start = OMAP_RTC_BASE, | ||
251 | .end = OMAP_RTC_BASE + 0x5f, | ||
252 | .flags = IORESOURCE_MEM, | ||
253 | }, | ||
254 | { | ||
255 | .start = INT_RTC_TIMER, | ||
256 | .flags = IORESOURCE_IRQ, | ||
257 | }, | ||
258 | { | ||
259 | .start = INT_RTC_ALARM, | ||
260 | .flags = IORESOURCE_IRQ, | ||
261 | }, | ||
262 | }; | ||
263 | |||
264 | static struct platform_device omap_rtc_device = { | ||
265 | .name = "omap_rtc", | ||
266 | .id = -1, | ||
267 | .dev = { | ||
268 | .release = omap_nop_release, | ||
269 | }, | ||
270 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
271 | .resource = rtc_resources, | ||
272 | }; | ||
273 | |||
274 | static void omap_init_rtc(void) | ||
275 | { | ||
276 | (void) platform_device_register(&omap_rtc_device); | ||
277 | } | ||
278 | #else | ||
279 | static inline void omap_init_rtc(void) {} | ||
280 | #endif | ||
281 | |||
282 | /*-------------------------------------------------------------------------*/ | ||
283 | |||
284 | #if defined(CONFIG_OMAP16XX_WATCHDOG) || defined(CONFIG_OMAP16XX_WATCHDOG_MODULE) | ||
285 | |||
286 | #define OMAP_WDT_BASE 0xfffeb000 | ||
287 | |||
288 | static struct resource wdt_resources[] = { | ||
289 | { | ||
290 | .start = OMAP_WDT_BASE, | ||
291 | .end = OMAP_WDT_BASE + 0x4f, | ||
292 | .flags = IORESOURCE_MEM, | ||
293 | }, | ||
294 | }; | ||
295 | |||
296 | static struct platform_device omap_wdt_device = { | ||
297 | .name = "omap1610_wdt", | ||
298 | .id = -1, | ||
299 | .dev = { | ||
300 | .release = omap_nop_release, | ||
301 | }, | ||
302 | .num_resources = ARRAY_SIZE(wdt_resources), | ||
303 | .resource = wdt_resources, | ||
304 | }; | ||
305 | |||
306 | static void omap_init_wdt(void) | ||
307 | { | ||
308 | (void) platform_device_register(&omap_wdt_device); | ||
309 | } | ||
310 | #else | ||
311 | static inline void omap_init_wdt(void) {} | ||
312 | #endif | ||
313 | |||
314 | |||
315 | /*-------------------------------------------------------------------------*/ | ||
316 | |||
317 | /* | ||
318 | * This gets called after board-specific INIT_MACHINE, and initializes most | ||
319 | * on-chip peripherals accessible on this board (except for few like USB): | ||
320 | * | ||
321 | * (a) Does any "standard config" pin muxing needed. Board-specific | ||
322 | * code will have muxed GPIO pins and done "nonstandard" setup; | ||
323 | * that code could live in the boot loader. | ||
324 | * (b) Populating board-specific platform_data with the data drivers | ||
325 | * rely on to handle wiring variations. | ||
326 | * (c) Creating platform devices as meaningful on this board and | ||
327 | * with this kernel configuration. | ||
328 | * | ||
329 | * Claiming GPIOs, and setting their direction and initial values, is the | ||
330 | * responsibility of the device drivers. So is responding to probe(). | ||
331 | * | ||
332 | * Board-specific knowlege like creating devices or pin setup is to be | ||
333 | * kept out of drivers as much as possible. In particular, pin setup | ||
334 | * may be handled by the boot loader, and drivers should expect it will | ||
335 | * normally have been done by the time they're probed. | ||
336 | */ | ||
337 | static int __init omap_init_devices(void) | ||
338 | { | ||
339 | /* please keep these calls, and their implementations above, | ||
340 | * in alphabetical order so they're easier to sort through. | ||
341 | */ | ||
342 | omap_init_i2c(); | ||
343 | omap_init_irda(); | ||
344 | omap_init_mmc(); | ||
345 | omap_init_rtc(); | ||
346 | omap_init_wdt(); | ||
347 | |||
348 | return 0; | ||
349 | } | ||
350 | arch_initcall(omap_init_devices); | ||
351 | |||
diff --git a/arch/arm/mach-omap1/fpga.c b/arch/arm/mach-omap1/fpga.c index c12a78335625..aca2a120813a 100644 --- a/arch/arm/mach-omap1/fpga.c +++ b/arch/arm/mach-omap1/fpga.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/fpga.c | 2 | * linux/arch/arm/mach-omap1/fpga.c |
3 | * | 3 | * |
4 | * Interrupt handler for OMAP-1510 Innovator FPGA | 4 | * Interrupt handler for OMAP-1510 Innovator FPGA |
5 | * | 5 | * |
@@ -181,7 +181,7 @@ void omap1510_fpga_init_irq(void) | |||
181 | */ | 181 | */ |
182 | omap_request_gpio(13); | 182 | omap_request_gpio(13); |
183 | omap_set_gpio_direction(13, 1); | 183 | omap_set_gpio_direction(13, 1); |
184 | omap_set_gpio_edge_ctrl(13, OMAP_GPIO_RISING_EDGE); | 184 | set_irq_type(OMAP_GPIO_IRQ(13), IRQT_RISING); |
185 | set_irq_chained_handler(OMAP1510_INT_FPGA, innovator_fpga_IRQ_demux); | 185 | set_irq_chained_handler(OMAP1510_INT_FPGA, innovator_fpga_IRQ_demux); |
186 | } | 186 | } |
187 | 187 | ||
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 207df0fe934d..eb8261d7dead 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | extern int clk_init(void); | 20 | extern int clk_init(void); |
21 | extern void omap_check_revision(void); | 21 | extern void omap_check_revision(void); |
22 | extern void omap_sram_init(void); | ||
22 | 23 | ||
23 | /* | 24 | /* |
24 | * The machine specific code may provide the extra mapping besides the | 25 | * The machine specific code may provide the extra mapping besides the |
@@ -32,7 +33,6 @@ static struct map_desc omap_io_desc[] __initdata = { | |||
32 | static struct map_desc omap730_io_desc[] __initdata = { | 33 | static struct map_desc omap730_io_desc[] __initdata = { |
33 | { OMAP730_DSP_BASE, OMAP730_DSP_START, OMAP730_DSP_SIZE, MT_DEVICE }, | 34 | { OMAP730_DSP_BASE, OMAP730_DSP_START, OMAP730_DSP_SIZE, MT_DEVICE }, |
34 | { OMAP730_DSPREG_BASE, OMAP730_DSPREG_START, OMAP730_DSPREG_SIZE, MT_DEVICE }, | 35 | { OMAP730_DSPREG_BASE, OMAP730_DSPREG_START, OMAP730_DSPREG_SIZE, MT_DEVICE }, |
35 | { OMAP730_SRAM_BASE, OMAP730_SRAM_START, OMAP730_SRAM_SIZE, MT_DEVICE } | ||
36 | }; | 36 | }; |
37 | #endif | 37 | #endif |
38 | 38 | ||
@@ -40,27 +40,13 @@ static struct map_desc omap730_io_desc[] __initdata = { | |||
40 | static struct map_desc omap1510_io_desc[] __initdata = { | 40 | static struct map_desc omap1510_io_desc[] __initdata = { |
41 | { OMAP1510_DSP_BASE, OMAP1510_DSP_START, OMAP1510_DSP_SIZE, MT_DEVICE }, | 41 | { OMAP1510_DSP_BASE, OMAP1510_DSP_START, OMAP1510_DSP_SIZE, MT_DEVICE }, |
42 | { OMAP1510_DSPREG_BASE, OMAP1510_DSPREG_START, OMAP1510_DSPREG_SIZE, MT_DEVICE }, | 42 | { OMAP1510_DSPREG_BASE, OMAP1510_DSPREG_START, OMAP1510_DSPREG_SIZE, MT_DEVICE }, |
43 | { OMAP1510_SRAM_BASE, OMAP1510_SRAM_START, OMAP1510_SRAM_SIZE, MT_DEVICE } | ||
44 | }; | 43 | }; |
45 | #endif | 44 | #endif |
46 | 45 | ||
47 | #if defined(CONFIG_ARCH_OMAP16XX) | 46 | #if defined(CONFIG_ARCH_OMAP16XX) |
48 | static struct map_desc omap1610_io_desc[] __initdata = { | 47 | static struct map_desc omap16xx_io_desc[] __initdata = { |
49 | { OMAP16XX_DSP_BASE, OMAP16XX_DSP_START, OMAP16XX_DSP_SIZE, MT_DEVICE }, | 48 | { OMAP16XX_DSP_BASE, OMAP16XX_DSP_START, OMAP16XX_DSP_SIZE, MT_DEVICE }, |
50 | { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE }, | 49 | { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE }, |
51 | { OMAP16XX_SRAM_BASE, OMAP16XX_SRAM_START, OMAP1610_SRAM_SIZE, MT_DEVICE } | ||
52 | }; | ||
53 | |||
54 | static struct map_desc omap5912_io_desc[] __initdata = { | ||
55 | { OMAP16XX_DSP_BASE, OMAP16XX_DSP_START, OMAP16XX_DSP_SIZE, MT_DEVICE }, | ||
56 | { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE }, | ||
57 | /* | ||
58 | * The OMAP5912 has 250kByte internal SRAM. Because the mapping is baseed on page | ||
59 | * size (4kByte), it seems that the last 2kByte (=0x800) of the 250kByte are not mapped. | ||
60 | * Add additional 2kByte (0x800) so that the last page is mapped and the last 2kByte | ||
61 | * can be used. | ||
62 | */ | ||
63 | { OMAP16XX_SRAM_BASE, OMAP16XX_SRAM_START, OMAP5912_SRAM_SIZE + 0x800, MT_DEVICE } | ||
64 | }; | 50 | }; |
65 | #endif | 51 | #endif |
66 | 52 | ||
@@ -86,14 +72,13 @@ static void __init _omap_map_io(void) | |||
86 | } | 72 | } |
87 | #endif | 73 | #endif |
88 | #if defined(CONFIG_ARCH_OMAP16XX) | 74 | #if defined(CONFIG_ARCH_OMAP16XX) |
89 | if (cpu_is_omap1610() || cpu_is_omap1710()) { | 75 | if (cpu_is_omap16xx()) { |
90 | iotable_init(omap1610_io_desc, ARRAY_SIZE(omap1610_io_desc)); | 76 | iotable_init(omap16xx_io_desc, ARRAY_SIZE(omap16xx_io_desc)); |
91 | } | ||
92 | if (cpu_is_omap5912()) { | ||
93 | iotable_init(omap5912_io_desc, ARRAY_SIZE(omap5912_io_desc)); | ||
94 | } | 77 | } |
95 | #endif | 78 | #endif |
96 | 79 | ||
80 | omap_sram_init(); | ||
81 | |||
97 | /* REVISIT: Refer to OMAP5910 Errata, Advisory SYS_1: "Timeout Abort | 82 | /* REVISIT: Refer to OMAP5910 Errata, Advisory SYS_1: "Timeout Abort |
98 | * on a Posted Write in the TIPB Bridge". | 83 | * on a Posted Write in the TIPB Bridge". |
99 | */ | 84 | */ |
@@ -108,8 +93,9 @@ static void __init _omap_map_io(void) | |||
108 | /* | 93 | /* |
109 | * This should only get called from board specific init | 94 | * This should only get called from board specific init |
110 | */ | 95 | */ |
111 | void omap_map_common_io(void) | 96 | void __init omap_map_common_io(void) |
112 | { | 97 | { |
113 | if (!initialized) | 98 | if (!initialized) |
114 | _omap_map_io(); | 99 | _omap_map_io(); |
115 | } | 100 | } |
101 | |||
diff --git a/arch/arm/mach-omap1/irq.c b/arch/arm/mach-omap1/irq.c index afd5d67e4ae7..192ce6055faa 100644 --- a/arch/arm/mach-omap1/irq.c +++ b/arch/arm/mach-omap1/irq.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/irq.c | 2 | * linux/arch/arm/mach-omap1/irq.c |
3 | * | 3 | * |
4 | * Interrupt handler for all OMAP boards | 4 | * Interrupt handler for all OMAP boards |
5 | * | 5 | * |
diff --git a/arch/arm/mach-omap1/leds-h2p2-debug.c b/arch/arm/mach-omap1/leds-h2p2-debug.c index ec0d8285f243..be283cda63dd 100644 --- a/arch/arm/mach-omap1/leds-h2p2-debug.c +++ b/arch/arm/mach-omap1/leds-h2p2-debug.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/leds-h2p2-debug.c | 2 | * linux/arch/arm/mach-omap1/leds-h2p2-debug.c |
3 | * | 3 | * |
4 | * Copyright 2003 by Texas Instruments Incorporated | 4 | * Copyright 2003 by Texas Instruments Incorporated |
5 | * | 5 | * |
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/kernel_stat.h> | 14 | #include <linux/kernel_stat.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/version.h> | ||
16 | 17 | ||
17 | #include <asm/io.h> | 18 | #include <asm/io.h> |
18 | #include <asm/hardware.h> | 19 | #include <asm/hardware.h> |
diff --git a/arch/arm/mach-omap1/leds-innovator.c b/arch/arm/mach-omap1/leds-innovator.c index 8043b7d0f66e..c8ffd1ddcded 100644 --- a/arch/arm/mach-omap1/leds-innovator.c +++ b/arch/arm/mach-omap1/leds-innovator.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/leds-innovator.c | 2 | * linux/arch/arm/mach-omap1/leds-innovator.c |
3 | */ | 3 | */ |
4 | #include <linux/config.h> | 4 | #include <linux/config.h> |
5 | #include <linux/init.h> | 5 | #include <linux/init.h> |
diff --git a/arch/arm/mach-omap1/leds-osk.c b/arch/arm/mach-omap1/leds-osk.c index 4a0e8b9d4fc3..2c8bda847c18 100644 --- a/arch/arm/mach-omap1/leds-osk.c +++ b/arch/arm/mach-omap1/leds-osk.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/leds-osk.c | 2 | * linux/arch/arm/mach-omap1/leds-osk.c |
3 | * | 3 | * |
4 | * LED driver for OSK, and optionally Mistral QVGA, boards | 4 | * LED driver for OSK, and optionally Mistral QVGA, boards |
5 | */ | 5 | */ |
@@ -64,7 +64,7 @@ static void tps_work(void *unused) | |||
64 | 64 | ||
65 | static DECLARE_WORK(work, tps_work, NULL); | 65 | static DECLARE_WORK(work, tps_work, NULL); |
66 | 66 | ||
67 | #ifdef CONFIG_FB_OMAP | 67 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
68 | 68 | ||
69 | /* For now, all system indicators require the Mistral board, since that | 69 | /* For now, all system indicators require the Mistral board, since that |
70 | * LED can be manipulated without a task context. This LED is either red, | 70 | * LED can be manipulated without a task context. This LED is either red, |
@@ -127,7 +127,7 @@ void osk_leds_event(led_event_t evt) | |||
127 | hw_led_state = 0; | 127 | hw_led_state = 0; |
128 | break; | 128 | break; |
129 | 129 | ||
130 | #ifdef CONFIG_FB_OMAP | 130 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
131 | 131 | ||
132 | case led_timer: | 132 | case led_timer: |
133 | hw_led_state ^= TIMER_LED; | 133 | hw_led_state ^= TIMER_LED; |
@@ -144,7 +144,7 @@ void osk_leds_event(led_event_t evt) | |||
144 | mistral_setled(); | 144 | mistral_setled(); |
145 | break; | 145 | break; |
146 | 146 | ||
147 | #endif /* CONFIG_FB_OMAP */ | 147 | #endif /* CONFIG_OMAP_OSK_MISTRAL */ |
148 | 148 | ||
149 | /* "green" == tps LED1 (leftmost, normally power-good) | 149 | /* "green" == tps LED1 (leftmost, normally power-good) |
150 | * works only with DC adapter, not on battery power! | 150 | * works only with DC adapter, not on battery power! |
diff --git a/arch/arm/mach-omap1/leds.c b/arch/arm/mach-omap1/leds.c index 8ab21fe98e1b..5c6b1bb6e722 100644 --- a/arch/arm/mach-omap1/leds.c +++ b/arch/arm/mach-omap1/leds.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap/leds.c | 2 | * linux/arch/arm/mach-omap1/leds.c |
3 | * | 3 | * |
4 | * OMAP LEDs dispatcher | 4 | * OMAP LEDs dispatcher |
5 | */ | 5 | */ |
@@ -20,7 +20,9 @@ omap_leds_init(void) | |||
20 | if (machine_is_omap_innovator()) | 20 | if (machine_is_omap_innovator()) |
21 | leds_event = innovator_leds_event; | 21 | leds_event = innovator_leds_event; |
22 | 22 | ||
23 | else if (machine_is_omap_h2() || machine_is_omap_perseus2()) | 23 | else if (machine_is_omap_h2() |
24 | || machine_is_omap_h3() | ||
25 | || machine_is_omap_perseus2()) | ||
24 | leds_event = h2p2_dbg_leds_event; | 26 | leds_event = h2p2_dbg_leds_event; |
25 | 27 | ||
26 | else if (machine_is_omap_osk()) | 28 | else if (machine_is_omap_osk()) |
@@ -30,8 +32,12 @@ omap_leds_init(void) | |||
30 | return -1; | 32 | return -1; |
31 | 33 | ||
32 | if (machine_is_omap_h2() | 34 | if (machine_is_omap_h2() |
35 | || machine_is_omap_h3() | ||
33 | || machine_is_omap_perseus2() | 36 | || machine_is_omap_perseus2() |
34 | || machine_is_omap_osk()) { | 37 | #ifdef CONFIG_OMAP_OSK_MISTRAL |
38 | || machine_is_omap_osk() | ||
39 | #endif | ||
40 | ) { | ||
35 | 41 | ||
36 | /* LED1/LED2 pins can be used as GPIO (as done here), or by | 42 | /* LED1/LED2 pins can be used as GPIO (as done here), or by |
37 | * the LPG (works even in deep sleep!), to drive a bicolor | 43 | * the LPG (works even in deep sleep!), to drive a bicolor |
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index 214e5d17c8b5..40c4f7c40e73 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -24,7 +24,11 @@ | |||
24 | 24 | ||
25 | #include <asm/arch/board.h> | 25 | #include <asm/arch/board.h> |
26 | #include <asm/arch/mux.h> | 26 | #include <asm/arch/mux.h> |
27 | #include <asm/arch/gpio.h> | ||
27 | #include <asm/arch/fpga.h> | 28 | #include <asm/arch/fpga.h> |
29 | #ifdef CONFIG_PM | ||
30 | #include <asm/arch/pm.h> | ||
31 | #endif | ||
28 | 32 | ||
29 | static struct clk * uart1_ck = NULL; | 33 | static struct clk * uart1_ck = NULL; |
30 | static struct clk * uart2_ck = NULL; | 34 | static struct clk * uart2_ck = NULL; |
@@ -94,7 +98,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
94 | 98 | ||
95 | static struct platform_device serial_device = { | 99 | static struct platform_device serial_device = { |
96 | .name = "serial8250", | 100 | .name = "serial8250", |
97 | .id = 0, | 101 | .id = PLAT8250_DEV_PLATFORM, |
98 | .dev = { | 102 | .dev = { |
99 | .platform_data = serial_platform_data, | 103 | .platform_data = serial_platform_data, |
100 | }, | 104 | }, |
@@ -193,6 +197,86 @@ void __init omap_serial_init(int ports[OMAP_MAX_NR_PORTS]) | |||
193 | } | 197 | } |
194 | } | 198 | } |
195 | 199 | ||
200 | #ifdef CONFIG_OMAP_SERIAL_WAKE | ||
201 | |||
202 | static irqreturn_t omap_serial_wake_interrupt(int irq, void *dev_id, | ||
203 | struct pt_regs *regs) | ||
204 | { | ||
205 | /* Need to do something with serial port right after wake-up? */ | ||
206 | return IRQ_HANDLED; | ||
207 | } | ||
208 | |||
209 | /* | ||
210 | * Reroutes serial RX lines to GPIO lines for the duration of | ||
211 | * sleep to allow waking up the device from serial port even | ||
212 | * in deep sleep. | ||
213 | */ | ||
214 | void omap_serial_wake_trigger(int enable) | ||
215 | { | ||
216 | if (!cpu_is_omap16xx()) | ||
217 | return; | ||
218 | |||
219 | if (uart1_ck != NULL) { | ||
220 | if (enable) | ||
221 | omap_cfg_reg(V14_16XX_GPIO37); | ||
222 | else | ||
223 | omap_cfg_reg(V14_16XX_UART1_RX); | ||
224 | } | ||
225 | if (uart2_ck != NULL) { | ||
226 | if (enable) | ||
227 | omap_cfg_reg(R9_16XX_GPIO18); | ||
228 | else | ||
229 | omap_cfg_reg(R9_16XX_UART2_RX); | ||
230 | } | ||
231 | if (uart3_ck != NULL) { | ||
232 | if (enable) | ||
233 | omap_cfg_reg(L14_16XX_GPIO49); | ||
234 | else | ||
235 | omap_cfg_reg(L14_16XX_UART3_RX); | ||
236 | } | ||
237 | } | ||
238 | |||
239 | static void __init omap_serial_set_port_wakeup(int gpio_nr) | ||
240 | { | ||
241 | int ret; | ||
242 | |||
243 | ret = omap_request_gpio(gpio_nr); | ||
244 | if (ret < 0) { | ||
245 | printk(KERN_ERR "Could not request UART wake GPIO: %i\n", | ||
246 | gpio_nr); | ||
247 | return; | ||
248 | } | ||
249 | omap_set_gpio_direction(gpio_nr, 1); | ||
250 | set_irq_type(OMAP_GPIO_IRQ(gpio_nr), IRQT_RISING); | ||
251 | ret = request_irq(OMAP_GPIO_IRQ(gpio_nr), &omap_serial_wake_interrupt, | ||
252 | 0, "serial wakeup", NULL); | ||
253 | if (ret) { | ||
254 | omap_free_gpio(gpio_nr); | ||
255 | printk(KERN_ERR "No interrupt for UART wake GPIO: %i\n", | ||
256 | gpio_nr); | ||
257 | return; | ||
258 | } | ||
259 | enable_irq_wake(OMAP_GPIO_IRQ(gpio_nr)); | ||
260 | } | ||
261 | |||
262 | static int __init omap_serial_wakeup_init(void) | ||
263 | { | ||
264 | if (!cpu_is_omap16xx()) | ||
265 | return 0; | ||
266 | |||
267 | if (uart1_ck != NULL) | ||
268 | omap_serial_set_port_wakeup(37); | ||
269 | if (uart2_ck != NULL) | ||
270 | omap_serial_set_port_wakeup(18); | ||
271 | if (uart3_ck != NULL) | ||
272 | omap_serial_set_port_wakeup(49); | ||
273 | |||
274 | return 0; | ||
275 | } | ||
276 | late_initcall(omap_serial_wakeup_init); | ||
277 | |||
278 | #endif /* CONFIG_OMAP_SERIAL_WAKE */ | ||
279 | |||
196 | static int __init omap_init(void) | 280 | static int __init omap_init(void) |
197 | { | 281 | { |
198 | return platform_device_register(&serial_device); | 282 | return platform_device_register(&serial_device); |
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index d540539c9bbb..191a9b1ee9b7 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c | |||
@@ -247,13 +247,6 @@ unsigned long long sched_clock(void) | |||
247 | #define OMAP_32K_TIMER_TCR 0x04 | 247 | #define OMAP_32K_TIMER_TCR 0x04 |
248 | 248 | ||
249 | #define OMAP_32K_TICKS_PER_HZ (32768 / HZ) | 249 | #define OMAP_32K_TICKS_PER_HZ (32768 / HZ) |
250 | #if (32768 % HZ) != 0 | ||
251 | /* We cannot ignore modulo. | ||
252 | * Potential error can be as high as several percent. | ||
253 | */ | ||
254 | #define OMAP_32K_TICK_MODULO (32768 % HZ) | ||
255 | static unsigned modulo_count = 0; /* Counts 1/HZ units */ | ||
256 | #endif | ||
257 | 250 | ||
258 | /* | 251 | /* |
259 | * TRM says 1 / HZ = ( TVR + 1) / 32768, so TRV = (32768 / HZ) - 1 | 252 | * TRM says 1 / HZ = ( TVR + 1) / 32768, so TRV = (32768 / HZ) - 1 |
@@ -296,13 +289,22 @@ static inline void omap_32k_timer_stop(void) | |||
296 | } | 289 | } |
297 | 290 | ||
298 | /* | 291 | /* |
299 | * Rounds down to nearest usec | 292 | * Rounds down to nearest usec. Note that this will overflow for larger values. |
300 | */ | 293 | */ |
301 | static inline unsigned long omap_32k_ticks_to_usecs(unsigned long ticks_32k) | 294 | static inline unsigned long omap_32k_ticks_to_usecs(unsigned long ticks_32k) |
302 | { | 295 | { |
303 | return (ticks_32k * 5*5*5*5*5*5) >> 9; | 296 | return (ticks_32k * 5*5*5*5*5*5) >> 9; |
304 | } | 297 | } |
305 | 298 | ||
299 | /* | ||
300 | * Rounds down to nearest nsec. | ||
301 | */ | ||
302 | static inline unsigned long long | ||
303 | omap_32k_ticks_to_nsecs(unsigned long ticks_32k) | ||
304 | { | ||
305 | return (unsigned long long) ticks_32k * 1000 * 5*5*5*5*5*5 >> 9; | ||
306 | } | ||
307 | |||
306 | static unsigned long omap_32k_last_tick = 0; | 308 | static unsigned long omap_32k_last_tick = 0; |
307 | 309 | ||
308 | /* | 310 | /* |
@@ -315,6 +317,15 @@ static unsigned long omap_32k_timer_gettimeoffset(void) | |||
315 | } | 317 | } |
316 | 318 | ||
317 | /* | 319 | /* |
320 | * Returns current time from boot in nsecs. It's OK for this to wrap | ||
321 | * around for now, as it's just a relative time stamp. | ||
322 | */ | ||
323 | unsigned long long sched_clock(void) | ||
324 | { | ||
325 | return omap_32k_ticks_to_nsecs(omap_32k_sync_timer_read()); | ||
326 | } | ||
327 | |||
328 | /* | ||
318 | * Timer interrupt for 32KHz timer. When dynamic tick is enabled, this | 329 | * Timer interrupt for 32KHz timer. When dynamic tick is enabled, this |
319 | * function is also called from other interrupts to remove latency | 330 | * function is also called from other interrupts to remove latency |
320 | * issues with dynamic tick. In the dynamic tick case, we need to lock | 331 | * issues with dynamic tick. In the dynamic tick case, we need to lock |
@@ -330,19 +341,6 @@ static irqreturn_t omap_32k_timer_interrupt(int irq, void *dev_id, | |||
330 | now = omap_32k_sync_timer_read(); | 341 | now = omap_32k_sync_timer_read(); |
331 | 342 | ||
332 | while (now - omap_32k_last_tick >= OMAP_32K_TICKS_PER_HZ) { | 343 | while (now - omap_32k_last_tick >= OMAP_32K_TICKS_PER_HZ) { |
333 | #ifdef OMAP_32K_TICK_MODULO | ||
334 | /* Modulo addition may put omap_32k_last_tick ahead of now | ||
335 | * and cause unwanted repetition of the while loop. | ||
336 | */ | ||
337 | if (unlikely(now - omap_32k_last_tick == ~0)) | ||
338 | break; | ||
339 | |||
340 | modulo_count += OMAP_32K_TICK_MODULO; | ||
341 | if (modulo_count > HZ) { | ||
342 | ++omap_32k_last_tick; | ||
343 | modulo_count -= HZ; | ||
344 | } | ||
345 | #endif | ||
346 | omap_32k_last_tick += OMAP_32K_TICKS_PER_HZ; | 344 | omap_32k_last_tick += OMAP_32K_TICKS_PER_HZ; |
347 | timer_tick(regs); | 345 | timer_tick(regs); |
348 | } | 346 | } |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 29185acdd9e1..07b5dd453565 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -131,27 +131,12 @@ static struct platform_device corgits_device = { | |||
131 | /* | 131 | /* |
132 | * MMC/SD Device | 132 | * MMC/SD Device |
133 | * | 133 | * |
134 | * The card detect interrupt isn't debounced so we delay it by HZ/4 | 134 | * The card detect interrupt isn't debounced so we delay it by 250ms |
135 | * to give the card a chance to fully insert/eject. | 135 | * to give the card a chance to fully insert/eject. |
136 | */ | 136 | */ |
137 | static struct mmc_detect { | 137 | static struct pxamci_platform_data corgi_mci_platform_data; |
138 | struct timer_list detect_timer; | ||
139 | void *devid; | ||
140 | } mmc_detect; | ||
141 | 138 | ||
142 | static void mmc_detect_callback(unsigned long data) | 139 | static int corgi_mci_init(struct device *dev, irqreturn_t (*corgi_detect_int)(int, void *, struct pt_regs *), void *data) |
143 | { | ||
144 | mmc_detect_change(mmc_detect.devid); | ||
145 | } | ||
146 | |||
147 | static irqreturn_t corgi_mmc_detect_int(int irq, void *devid, struct pt_regs *regs) | ||
148 | { | ||
149 | mmc_detect.devid=devid; | ||
150 | mod_timer(&mmc_detect.detect_timer, jiffies + HZ/4); | ||
151 | return IRQ_HANDLED; | ||
152 | } | ||
153 | |||
154 | static int corgi_mci_init(struct device *dev, irqreturn_t (*unused_detect_int)(int, void *, struct pt_regs *), void *data) | ||
155 | { | 140 | { |
156 | int err; | 141 | int err; |
157 | 142 | ||
@@ -161,11 +146,9 @@ static int corgi_mci_init(struct device *dev, irqreturn_t (*unused_detect_int)(i | |||
161 | pxa_gpio_mode(CORGI_GPIO_nSD_DETECT | GPIO_IN); | 146 | pxa_gpio_mode(CORGI_GPIO_nSD_DETECT | GPIO_IN); |
162 | pxa_gpio_mode(CORGI_GPIO_SD_PWR | GPIO_OUT); | 147 | pxa_gpio_mode(CORGI_GPIO_SD_PWR | GPIO_OUT); |
163 | 148 | ||
164 | init_timer(&mmc_detect.detect_timer); | 149 | corgi_mci_platform_data.detect_delay = msecs_to_jiffies(250); |
165 | mmc_detect.detect_timer.function = mmc_detect_callback; | ||
166 | mmc_detect.detect_timer.data = (unsigned long) &mmc_detect; | ||
167 | 150 | ||
168 | err = request_irq(CORGI_IRQ_GPIO_nSD_DETECT, corgi_mmc_detect_int, SA_INTERRUPT, | 151 | err = request_irq(CORGI_IRQ_GPIO_nSD_DETECT, corgi_detect_int, SA_INTERRUPT, |
169 | "MMC card detect", data); | 152 | "MMC card detect", data); |
170 | if (err) { | 153 | if (err) { |
171 | printk(KERN_ERR "corgi_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); | 154 | printk(KERN_ERR "corgi_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); |
@@ -198,7 +181,6 @@ static int corgi_mci_get_ro(struct device *dev) | |||
198 | static void corgi_mci_exit(struct device *dev, void *data) | 181 | static void corgi_mci_exit(struct device *dev, void *data) |
199 | { | 182 | { |
200 | free_irq(CORGI_IRQ_GPIO_nSD_DETECT, data); | 183 | free_irq(CORGI_IRQ_GPIO_nSD_DETECT, data); |
201 | del_timer(&mmc_detect.detect_timer); | ||
202 | } | 184 | } |
203 | 185 | ||
204 | static struct pxamci_platform_data corgi_mci_platform_data = { | 186 | static struct pxamci_platform_data corgi_mci_platform_data = { |
diff --git a/arch/arm/mach-pxa/corgi_ssp.c b/arch/arm/mach-pxa/corgi_ssp.c index 8ccffba0018f..366a9bde3d8b 100644 --- a/arch/arm/mach-pxa/corgi_ssp.c +++ b/arch/arm/mach-pxa/corgi_ssp.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <asm/arch/corgi.h> | 22 | #include <asm/arch/corgi.h> |
23 | #include <asm/arch/pxa-regs.h> | 23 | #include <asm/arch/pxa-regs.h> |
24 | 24 | ||
25 | static spinlock_t corgi_ssp_lock = SPIN_LOCK_UNLOCKED; | 25 | static DEFINE_SPINLOCK(corgi_ssp_lock); |
26 | static struct ssp_dev corgi_ssp_dev; | 26 | static struct ssp_dev corgi_ssp_dev; |
27 | static struct ssp_state corgi_ssp_state; | 27 | static struct ssp_state corgi_ssp_state; |
28 | 28 | ||
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index a10268618f74..e3587efec4bf 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c | |||
@@ -140,7 +140,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
140 | 140 | ||
141 | static struct platform_device serial_device = { | 141 | static struct platform_device serial_device = { |
142 | .name = "serial8250", | 142 | .name = "serial8250", |
143 | .id = 0, | 143 | .id = PLAT8250_DEV_PLATFORM, |
144 | .dev = { | 144 | .dev = { |
145 | .platform_data = serial_platform_data, | 145 | .platform_data = serial_platform_data, |
146 | }, | 146 | }, |
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index 4664bd11adc1..0077937a7ab8 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
30 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
31 | #include <asm/mach/irq.h> | 31 | #include <asm/mach/irq.h> |
32 | 32 | #include <asm/arch/fb.h> | |
33 | #include <asm/hardware.h> | 33 | #include <asm/hardware.h> |
34 | #include <asm/io.h> | 34 | #include <asm/io.h> |
35 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
@@ -103,6 +103,15 @@ struct platform_device s3c_device_lcd = { | |||
103 | 103 | ||
104 | EXPORT_SYMBOL(s3c_device_lcd); | 104 | EXPORT_SYMBOL(s3c_device_lcd); |
105 | 105 | ||
106 | static struct s3c2410fb_mach_info s3c2410fb_info; | ||
107 | |||
108 | void __init set_s3c2410fb_info(struct s3c2410fb_mach_info *hard_s3c2410fb_info) | ||
109 | { | ||
110 | memcpy(&s3c2410fb_info,hard_s3c2410fb_info,sizeof(struct s3c2410fb_mach_info)); | ||
111 | s3c_device_lcd.dev.platform_data = &s3c2410fb_info; | ||
112 | } | ||
113 | EXPORT_SYMBOL(set_s3c2410fb_info); | ||
114 | |||
106 | /* NAND Controller */ | 115 | /* NAND Controller */ |
107 | 116 | ||
108 | static struct resource s3c_nand_resource[] = { | 117 | static struct resource s3c_nand_resource[] = { |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index e9182242da95..1a3367da6408 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -381,7 +381,7 @@ static struct plat_serial8250_port bast_sio_data[] = { | |||
381 | 381 | ||
382 | static struct platform_device bast_sio = { | 382 | static struct platform_device bast_sio = { |
383 | .name = "serial8250", | 383 | .name = "serial8250", |
384 | .id = 0, | 384 | .id = PLAT8250_DEV_PLATFORM, |
385 | .dev = { | 385 | .dev = { |
386 | .platform_data = &bast_sio_data, | 386 | .platform_data = &bast_sio_data, |
387 | }, | 387 | }, |
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index ea4fb1a97a50..6ff1889fbd21 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -45,6 +45,9 @@ | |||
45 | 45 | ||
46 | //#include <asm/debug-ll.h> | 46 | //#include <asm/debug-ll.h> |
47 | #include <asm/arch/regs-serial.h> | 47 | #include <asm/arch/regs-serial.h> |
48 | #include <asm/arch/regs-lcd.h> | ||
49 | |||
50 | #include <asm/arch/fb.h> | ||
48 | 51 | ||
49 | #include <linux/serial_core.h> | 52 | #include <linux/serial_core.h> |
50 | 53 | ||
@@ -88,6 +91,48 @@ static struct s3c2410_uartcfg h1940_uartcfgs[] = { | |||
88 | 91 | ||
89 | 92 | ||
90 | 93 | ||
94 | /** | ||
95 | * Set lcd on or off | ||
96 | **/ | ||
97 | static struct s3c2410fb_mach_info h1940_lcdcfg __initdata = { | ||
98 | .fixed_syncs= 1, | ||
99 | .regs={ | ||
100 | .lcdcon1= S3C2410_LCDCON1_TFT16BPP | \ | ||
101 | S3C2410_LCDCON1_TFT | \ | ||
102 | S3C2410_LCDCON1_CLKVAL(0x0C), | ||
103 | |||
104 | .lcdcon2= S3C2410_LCDCON2_VBPD(7) | \ | ||
105 | S3C2410_LCDCON2_LINEVAL(319) | \ | ||
106 | S3C2410_LCDCON2_VFPD(6) | \ | ||
107 | S3C2410_LCDCON2_VSPW(0), | ||
108 | |||
109 | .lcdcon3= S3C2410_LCDCON3_HBPD(19) | \ | ||
110 | S3C2410_LCDCON3_HOZVAL(239) | \ | ||
111 | S3C2410_LCDCON3_HFPD(7), | ||
112 | |||
113 | .lcdcon4= S3C2410_LCDCON4_MVAL(0) | \ | ||
114 | S3C2410_LCDCON4_HSPW(3), | ||
115 | |||
116 | .lcdcon5= S3C2410_LCDCON5_FRM565 | \ | ||
117 | S3C2410_LCDCON5_INVVLINE | \ | ||
118 | S3C2410_LCDCON5_HWSWP, | ||
119 | }, | ||
120 | .lpcsel= 0x02, | ||
121 | .gpccon= 0xaa940659, | ||
122 | .gpccon_mask= 0xffffffff, | ||
123 | .gpcup= 0x0000ffff, | ||
124 | .gpcup_mask= 0xffffffff, | ||
125 | .gpdcon= 0xaa84aaa0, | ||
126 | .gpdcon_mask= 0xffffffff, | ||
127 | .gpdup= 0x0000faff, | ||
128 | .gpdup_mask= 0xffffffff, | ||
129 | |||
130 | .width= 240, | ||
131 | .height= 320, | ||
132 | .xres= {240,240,240}, | ||
133 | .yres= {320,320,320}, | ||
134 | .bpp= {16,16,16}, | ||
135 | }; | ||
91 | 136 | ||
92 | static struct platform_device *h1940_devices[] __initdata = { | 137 | static struct platform_device *h1940_devices[] __initdata = { |
93 | &s3c_device_usb, | 138 | &s3c_device_usb, |
@@ -116,6 +161,11 @@ void __init h1940_init_irq(void) | |||
116 | 161 | ||
117 | } | 162 | } |
118 | 163 | ||
164 | void __init h1940_init(void) | ||
165 | { | ||
166 | set_s3c2410fb_info(&h1940_lcdcfg); | ||
167 | } | ||
168 | |||
119 | MACHINE_START(H1940, "IPAQ-H1940") | 169 | MACHINE_START(H1940, "IPAQ-H1940") |
120 | /* Maintainer: Ben Dooks <ben@fluff.org> */ | 170 | /* Maintainer: Ben Dooks <ben@fluff.org> */ |
121 | .phys_ram = S3C2410_SDRAM_PA, | 171 | .phys_ram = S3C2410_SDRAM_PA, |
@@ -124,5 +174,6 @@ MACHINE_START(H1940, "IPAQ-H1940") | |||
124 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 174 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
125 | .map_io = h1940_map_io, | 175 | .map_io = h1940_map_io, |
126 | .init_irq = h1940_init_irq, | 176 | .init_irq = h1940_init_irq, |
177 | .init_machine = h1940_init, | ||
127 | .timer = &s3c24xx_timer, | 178 | .timer = &s3c24xx_timer, |
128 | MACHINE_END | 179 | MACHINE_END |
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 924e8464c212..8f9ab2893df4 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -221,7 +221,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
221 | 221 | ||
222 | static struct platform_device serial_device = { | 222 | static struct platform_device serial_device = { |
223 | .name = "serial8250", | 223 | .name = "serial8250", |
224 | .id = 0, | 224 | .id = PLAT8250_DEV_PLATFORM, |
225 | .dev = { | 225 | .dev = { |
226 | .platform_data = serial_platform_data, | 226 | .platform_data = serial_platform_data, |
227 | }, | 227 | }, |
diff --git a/arch/arm/mach-shark/core.c b/arch/arm/mach-shark/core.c index e737eae4521f..946c0d11c73b 100644 --- a/arch/arm/mach-shark/core.c +++ b/arch/arm/mach-shark/core.c | |||
@@ -41,7 +41,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
41 | 41 | ||
42 | static struct platform_device serial_device = { | 42 | static struct platform_device serial_device = { |
43 | .name = "serial8250", | 43 | .name = "serial8250", |
44 | .id = 0, | 44 | .id = PLAT8250_DEV_PLATFORM, |
45 | .dev = { | 45 | .dev = { |
46 | .platform_data = serial_platform_data, | 46 | .platform_data = serial_platform_data, |
47 | }, | 47 | }, |
diff --git a/arch/arm/mm/copypage-v3.S b/arch/arm/mm/copypage-v3.S index 4940f1908316..3c58ebbf0359 100644 --- a/arch/arm/mm/copypage-v3.S +++ b/arch/arm/mm/copypage-v3.S | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
15 | #include <asm/constants.h> | 15 | #include <asm/asm-offsets.h> |
16 | 16 | ||
17 | .text | 17 | .text |
18 | .align 5 | 18 | .align 5 |
diff --git a/arch/arm/mm/copypage-v4wb.S b/arch/arm/mm/copypage-v4wb.S index b94c345ceb94..83117354b1cd 100644 --- a/arch/arm/mm/copypage-v4wb.S +++ b/arch/arm/mm/copypage-v4wb.S | |||
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
15 | 15 | ||
16 | .text | 16 | .text |
17 | .align 5 | 17 | .align 5 |
diff --git a/arch/arm/mm/copypage-v4wt.S b/arch/arm/mm/copypage-v4wt.S index 976793937a93..e1f2af28d549 100644 --- a/arch/arm/mm/copypage-v4wt.S +++ b/arch/arm/mm/copypage-v4wt.S | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <asm/constants.h> | 17 | #include <asm/asm-offsets.h> |
18 | 18 | ||
19 | .text | 19 | .text |
20 | .align 5 | 20 | .align 5 |
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 191788fb18d1..b0208c992576 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -16,6 +16,58 @@ | |||
16 | #include <asm/tlbflush.h> | 16 | #include <asm/tlbflush.h> |
17 | 17 | ||
18 | #ifdef CONFIG_CPU_CACHE_VIPT | 18 | #ifdef CONFIG_CPU_CACHE_VIPT |
19 | |||
20 | void flush_cache_mm(struct mm_struct *mm) | ||
21 | { | ||
22 | if (cache_is_vivt()) { | ||
23 | if (cpu_isset(smp_processor_id(), mm->cpu_vm_mask)) | ||
24 | __cpuc_flush_user_all(); | ||
25 | return; | ||
26 | } | ||
27 | |||
28 | if (cache_is_vipt_aliasing()) { | ||
29 | asm( "mcr p15, 0, %0, c7, c14, 0\n" | ||
30 | " mcr p15, 0, %0, c7, c5, 0\n" | ||
31 | " mcr p15, 0, %0, c7, c10, 4" | ||
32 | : | ||
33 | : "r" (0) | ||
34 | : "cc"); | ||
35 | } | ||
36 | } | ||
37 | |||
38 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) | ||
39 | { | ||
40 | if (cache_is_vivt()) { | ||
41 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) | ||
42 | __cpuc_flush_user_range(start & PAGE_MASK, PAGE_ALIGN(end), | ||
43 | vma->vm_flags); | ||
44 | return; | ||
45 | } | ||
46 | |||
47 | if (cache_is_vipt_aliasing()) { | ||
48 | asm( "mcr p15, 0, %0, c7, c14, 0\n" | ||
49 | " mcr p15, 0, %0, c7, c5, 0\n" | ||
50 | " mcr p15, 0, %0, c7, c10, 4" | ||
51 | : | ||
52 | : "r" (0) | ||
53 | : "cc"); | ||
54 | } | ||
55 | } | ||
56 | |||
57 | void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) | ||
58 | { | ||
59 | if (cache_is_vivt()) { | ||
60 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | ||
61 | unsigned long addr = user_addr & PAGE_MASK; | ||
62 | __cpuc_flush_user_range(addr, addr + PAGE_SIZE, vma->vm_flags); | ||
63 | } | ||
64 | return; | ||
65 | } | ||
66 | |||
67 | if (cache_is_vipt_aliasing()) | ||
68 | flush_pfn_alias(pfn, user_addr); | ||
69 | } | ||
70 | |||
19 | #define ALIAS_FLUSH_START 0xffff4000 | 71 | #define ALIAS_FLUSH_START 0xffff4000 |
20 | 72 | ||
21 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) | 73 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) |
diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S index 5c0ae5260d1c..1d739d282a45 100644 --- a/arch/arm/mm/proc-arm1020.S +++ b/arch/arm/mm/proc-arm1020.S | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/config.h> | 28 | #include <linux/config.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/constants.h> | 31 | #include <asm/asm-offsets.h> |
32 | #include <asm/pgtable.h> | 32 | #include <asm/pgtable.h> |
33 | #include <asm/procinfo.h> | 33 | #include <asm/procinfo.h> |
34 | #include <asm/ptrace.h> | 34 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-arm1020e.S b/arch/arm/mm/proc-arm1020e.S index d69389c4d4ba..9b725665b5c7 100644 --- a/arch/arm/mm/proc-arm1020e.S +++ b/arch/arm/mm/proc-arm1020e.S | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/config.h> | 28 | #include <linux/config.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <asm/assembler.h> | 30 | #include <asm/assembler.h> |
31 | #include <asm/constants.h> | 31 | #include <asm/asm-offsets.h> |
32 | #include <asm/pgtable.h> | 32 | #include <asm/pgtable.h> |
33 | #include <asm/procinfo.h> | 33 | #include <asm/procinfo.h> |
34 | #include <asm/ptrace.h> | 34 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-arm1022.S b/arch/arm/mm/proc-arm1022.S index 747ed963e1df..37b70fa21c76 100644 --- a/arch/arm/mm/proc-arm1022.S +++ b/arch/arm/mm/proc-arm1022.S | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/config.h> | 17 | #include <linux/config.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <asm/assembler.h> | 19 | #include <asm/assembler.h> |
20 | #include <asm/constants.h> | 20 | #include <asm/asm-offsets.h> |
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | #include <asm/procinfo.h> | 22 | #include <asm/procinfo.h> |
23 | #include <asm/ptrace.h> | 23 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-arm1026.S b/arch/arm/mm/proc-arm1026.S index 248110c9cf13..931b690d1be2 100644 --- a/arch/arm/mm/proc-arm1026.S +++ b/arch/arm/mm/proc-arm1026.S | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/config.h> | 17 | #include <linux/config.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <asm/assembler.h> | 19 | #include <asm/assembler.h> |
20 | #include <asm/constants.h> | 20 | #include <asm/asm-offsets.h> |
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | #include <asm/procinfo.h> | 22 | #include <asm/procinfo.h> |
23 | #include <asm/ptrace.h> | 23 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S index 189ef6a71ba1..d0f1bbb48f6c 100644 --- a/arch/arm/mm/proc-arm6_7.S +++ b/arch/arm/mm/proc-arm6_7.S | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <asm/assembler.h> | 15 | #include <asm/assembler.h> |
16 | #include <asm/constants.h> | 16 | #include <asm/asm-offsets.h> |
17 | #include <asm/pgtable.h> | 17 | #include <asm/pgtable.h> |
18 | #include <asm/procinfo.h> | 18 | #include <asm/procinfo.h> |
19 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index 57cfa6a2f54f..c69c9de32391 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/linkage.h> | 33 | #include <linux/linkage.h> |
34 | #include <linux/init.h> | 34 | #include <linux/init.h> |
35 | #include <asm/assembler.h> | 35 | #include <asm/assembler.h> |
36 | #include <asm/constants.h> | 36 | #include <asm/asm-offsets.h> |
37 | #include <asm/pgtable.h> | 37 | #include <asm/pgtable.h> |
38 | #include <asm/procinfo.h> | 38 | #include <asm/procinfo.h> |
39 | #include <asm/ptrace.h> | 39 | #include <asm/ptrace.h> |
diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S index 9137fe563599..7cfc2604a1ee 100644 --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S | |||
@@ -4,7 +4,7 @@ | |||
4 | * VMA_VM_FLAGS | 4 | * VMA_VM_FLAGS |
5 | * VM_EXEC | 5 | * VM_EXEC |
6 | */ | 6 | */ |
7 | #include <asm/constants.h> | 7 | #include <asm/asm-offsets.h> |
8 | #include <asm/thread_info.h> | 8 | #include <asm/thread_info.h> |
9 | 9 | ||
10 | /* | 10 | /* |
diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index 360cae905692..34f7e7d3f419 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <asm/assembler.h> | 17 | #include <asm/assembler.h> |
18 | #include <asm/constants.h> | 18 | #include <asm/asm-offsets.h> |
19 | #include <asm/procinfo.h> | 19 | #include <asm/procinfo.h> |
20 | #include <asm/hardware.h> | 20 | #include <asm/hardware.h> |
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index d447cd5f3dd9..ca14f80d5ab4 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/linkage.h> | 20 | #include <linux/linkage.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <asm/assembler.h> | 22 | #include <asm/assembler.h> |
23 | #include <asm/constants.h> | 23 | #include <asm/asm-offsets.h> |
24 | #include <asm/procinfo.h> | 24 | #include <asm/procinfo.h> |
25 | #include <asm/hardware.h> | 25 | #include <asm/hardware.h> |
26 | #include <asm/pgtable.h> | 26 | #include <asm/pgtable.h> |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index 139a38670c5d..eb34823c9dbf 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/procinfo.h> | 15 | #include <asm/procinfo.h> |
16 | #include <asm/pgtable.h> | 16 | #include <asm/pgtable.h> |
17 | 17 | ||
diff --git a/arch/arm/mm/tlb-v3.S b/arch/arm/mm/tlb-v3.S index 44b0daeaff9b..c10786ec8e0a 100644 --- a/arch/arm/mm/tlb-v3.S +++ b/arch/arm/mm/tlb-v3.S | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | #include <linux/linkage.h> | 14 | #include <linux/linkage.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <asm/constants.h> | 16 | #include <asm/asm-offsets.h> |
17 | #include <asm/tlbflush.h> | 17 | #include <asm/tlbflush.h> |
18 | #include "proc-macros.S" | 18 | #include "proc-macros.S" |
19 | 19 | ||
diff --git a/arch/arm/mm/tlb-v4.S b/arch/arm/mm/tlb-v4.S index db82ee468248..d6c94457c2b9 100644 --- a/arch/arm/mm/tlb-v4.S +++ b/arch/arm/mm/tlb-v4.S | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <asm/constants.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include <asm/tlbflush.h> | 18 | #include <asm/tlbflush.h> |
19 | #include "proc-macros.S" | 19 | #include "proc-macros.S" |
20 | 20 | ||
diff --git a/arch/arm/mm/tlb-v4wb.S b/arch/arm/mm/tlb-v4wb.S index 7908d5f1f130..cb829ca7845d 100644 --- a/arch/arm/mm/tlb-v4wb.S +++ b/arch/arm/mm/tlb-v4wb.S | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <asm/constants.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include <asm/tlbflush.h> | 18 | #include <asm/tlbflush.h> |
19 | #include "proc-macros.S" | 19 | #include "proc-macros.S" |
20 | 20 | ||
diff --git a/arch/arm/mm/tlb-v4wbi.S b/arch/arm/mm/tlb-v4wbi.S index efbe94bbe1a7..60cfc4a25dd5 100644 --- a/arch/arm/mm/tlb-v4wbi.S +++ b/arch/arm/mm/tlb-v4wbi.S | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <asm/constants.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include <asm/tlbflush.h> | 18 | #include <asm/tlbflush.h> |
19 | #include "proc-macros.S" | 19 | #include "proc-macros.S" |
20 | 20 | ||
diff --git a/arch/arm/mm/tlb-v6.S b/arch/arm/mm/tlb-v6.S index 99ed26e78adf..6f76b89ef46e 100644 --- a/arch/arm/mm/tlb-v6.S +++ b/arch/arm/mm/tlb-v6.S | |||
@@ -11,7 +11,7 @@ | |||
11 | * These assume a split I/D TLB. | 11 | * These assume a split I/D TLB. |
12 | */ | 12 | */ |
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/page.h> | 15 | #include <asm/page.h> |
16 | #include <asm/tlbflush.h> | 16 | #include <asm/tlbflush.h> |
17 | #include "proc-macros.S" | 17 | #include "proc-macros.S" |
diff --git a/arch/arm/nwfpe/entry26.S b/arch/arm/nwfpe/entry26.S index 0ed38b0913db..51940a96d6a6 100644 --- a/arch/arm/nwfpe/entry26.S +++ b/arch/arm/nwfpe/entry26.S | |||
@@ -20,7 +20,7 @@ | |||
20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <asm/constants.h> | 23 | #include <asm/asm-offsets.h> |
24 | 24 | ||
25 | /* This is the kernel's entry point into the floating point emulator. | 25 | /* This is the kernel's entry point into the floating point emulator. |
26 | It is called from the kernel with code similar to this: | 26 | It is called from the kernel with code similar to this: |
diff --git a/arch/arm/vfp/entry.S b/arch/arm/vfp/entry.S index e73c8deca592..6f17187ab32a 100644 --- a/arch/arm/vfp/entry.S +++ b/arch/arm/vfp/entry.S | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include <linux/linkage.h> | 18 | #include <linux/linkage.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <asm/constants.h> | 20 | #include <asm/asm-offsets.h> |
21 | #include <asm/vfpmacros.h> | 21 | #include <asm/vfpmacros.h> |
22 | 22 | ||
23 | .globl do_vfp | 23 | .globl do_vfp |