diff options
author | David S. Miller <davem@davemloft.net> | 2009-11-19 01:19:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-19 01:19:03 -0500 |
commit | 3505d1a9fd65e2d3e00827857b6795d9d8983658 (patch) | |
tree | 941cfafdb57c427bb6b7ebf6354ee93b2a3693b5 /arch/arm | |
parent | dfef948ed2ba69cf041840b5e860d6b4e16fa0b1 (diff) | |
parent | 66b00a7c93ec782d118d2c03bd599cfd041e80a1 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/sfc/sfe4001.c
drivers/net/wireless/libertas/cmd.c
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/rtl8187se/Kconfig
drivers/staging/rtl8192e/Kconfig
Diffstat (limited to 'arch/arm')
159 files changed, 2175 insertions, 1061 deletions
diff --git a/arch/arm/configs/ams_delta_defconfig b/arch/arm/configs/ams_delta_defconfig index 764732529ea3..e8f7380b67d6 100644 --- a/arch/arm/configs/ams_delta_defconfig +++ b/arch/arm/configs/ams_delta_defconfig | |||
@@ -55,10 +55,10 @@ CONFIG_BLK_DEV_INITRD=y | |||
55 | CONFIG_INITRAMFS_SOURCE="" | 55 | CONFIG_INITRAMFS_SOURCE="" |
56 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 56 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
57 | CONFIG_SYSCTL=y | 57 | CONFIG_SYSCTL=y |
58 | # CONFIG_EMBEDDED is not set | 58 | CONFIG_EMBEDDED=y |
59 | CONFIG_UID16=y | 59 | CONFIG_UID16=y |
60 | CONFIG_SYSCTL_SYSCALL=y | 60 | CONFIG_SYSCTL_SYSCALL=y |
61 | CONFIG_KALLSYMS=y | 61 | # CONFIG_KALLSYMS is not set |
62 | # CONFIG_KALLSYMS_ALL is not set | 62 | # CONFIG_KALLSYMS_ALL is not set |
63 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 63 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
64 | CONFIG_HOTPLUG=y | 64 | CONFIG_HOTPLUG=y |
@@ -224,7 +224,7 @@ CONFIG_CPU_CP15_MMU=y | |||
224 | # | 224 | # |
225 | # Processor Features | 225 | # Processor Features |
226 | # | 226 | # |
227 | # CONFIG_ARM_THUMB is not set | 227 | CONFIG_ARM_THUMB=y |
228 | # CONFIG_CPU_ICACHE_DISABLE is not set | 228 | # CONFIG_CPU_ICACHE_DISABLE is not set |
229 | # CONFIG_CPU_DCACHE_DISABLE is not set | 229 | # CONFIG_CPU_DCACHE_DISABLE is not set |
230 | CONFIG_CPU_DCACHE_WRITETHROUGH=y | 230 | CONFIG_CPU_DCACHE_WRITETHROUGH=y |
@@ -248,7 +248,7 @@ CONFIG_CPU_DCACHE_WRITETHROUGH=y | |||
248 | # CONFIG_HIGH_RES_TIMERS is not set | 248 | # CONFIG_HIGH_RES_TIMERS is not set |
249 | CONFIG_PREEMPT=y | 249 | CONFIG_PREEMPT=y |
250 | CONFIG_HZ=100 | 250 | CONFIG_HZ=100 |
251 | # CONFIG_AEABI is not set | 251 | CONFIG_AEABI=y |
252 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | 252 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set |
253 | CONFIG_SELECT_MEMORY_MODEL=y | 253 | CONFIG_SELECT_MEMORY_MODEL=y |
254 | CONFIG_FLATMEM_MANUAL=y | 254 | CONFIG_FLATMEM_MANUAL=y |
@@ -299,7 +299,9 @@ CONFIG_BINFMT_ELF=y | |||
299 | # | 299 | # |
300 | # Power management options | 300 | # Power management options |
301 | # | 301 | # |
302 | # CONFIG_PM is not set | 302 | CONFIG_PM=y |
303 | # CONFIG_SUSPEND is not set | ||
304 | CONFIG_PM_RUNTIME=y | ||
303 | 305 | ||
304 | # | 306 | # |
305 | # Networking | 307 | # Networking |
@@ -670,7 +672,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | |||
670 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | 672 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 |
671 | # CONFIG_INPUT_JOYDEV is not set | 673 | # CONFIG_INPUT_JOYDEV is not set |
672 | # CONFIG_INPUT_TSDEV is not set | 674 | # CONFIG_INPUT_TSDEV is not set |
673 | # CONFIG_INPUT_EVDEV is not set | 675 | CONFIG_INPUT_EVDEV=y |
674 | # CONFIG_INPUT_EVBUG is not set | 676 | # CONFIG_INPUT_EVBUG is not set |
675 | 677 | ||
676 | # | 678 | # |
@@ -784,6 +786,7 @@ CONFIG_I2C_OMAP=y | |||
784 | # | 786 | # |
785 | # CONFIG_SPI is not set | 787 | # CONFIG_SPI is not set |
786 | # CONFIG_SPI_MASTER is not set | 788 | # CONFIG_SPI_MASTER is not set |
789 | CONFIG_GPIO_SYSFS=y | ||
787 | 790 | ||
788 | # | 791 | # |
789 | # Dallas's 1-wire bus | 792 | # Dallas's 1-wire bus |
@@ -820,6 +823,7 @@ CONFIG_LEDS_AMS_DELTA=y | |||
820 | CONFIG_LEDS_TRIGGERS=y | 823 | CONFIG_LEDS_TRIGGERS=y |
821 | CONFIG_LEDS_TRIGGER_TIMER=y | 824 | CONFIG_LEDS_TRIGGER_TIMER=y |
822 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 825 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
826 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | ||
823 | 827 | ||
824 | # | 828 | # |
825 | # Multimedia devices | 829 | # Multimedia devices |
@@ -896,7 +900,13 @@ CONFIG_LOGO_LINUX_CLUT224=y | |||
896 | # | 900 | # |
897 | # Sound | 901 | # Sound |
898 | # | 902 | # |
899 | # CONFIG_SOUND is not set | 903 | CONFIG_SOUND=y |
904 | CONFIG_SND=y | ||
905 | CONFIG_SND_MIXER_OSS=y | ||
906 | CONFIG_SND_PCM_OSS=y | ||
907 | CONFIG_SND_SOC=y | ||
908 | CONFIG_SND_OMAP_SOC=y | ||
909 | CONFIG_SND_OMAP_SOC_AMS_DELTA=y | ||
900 | 910 | ||
901 | # | 911 | # |
902 | # HID Devices | 912 | # HID Devices |
diff --git a/arch/arm/configs/kirkwood_defconfig b/arch/arm/configs/kirkwood_defconfig index af74cc2de8b6..bcfade33bca9 100644 --- a/arch/arm/configs/kirkwood_defconfig +++ b/arch/arm/configs/kirkwood_defconfig | |||
@@ -1,15 +1,13 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.30-rc4 | 3 | # Linux kernel version: 2.6.32-rc6 |
4 | # Mon May 4 11:58:57 2009 | 4 | # Sat Nov 7 20:31:18 2009 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
8 | CONFIG_GENERIC_GPIO=y | 8 | CONFIG_GENERIC_GPIO=y |
9 | CONFIG_GENERIC_TIME=y | 9 | CONFIG_GENERIC_TIME=y |
10 | CONFIG_GENERIC_CLOCKEVENTS=y | 10 | CONFIG_GENERIC_CLOCKEVENTS=y |
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | 11 | CONFIG_GENERIC_HARDIRQS=y |
14 | CONFIG_STACKTRACE_SUPPORT=y | 12 | CONFIG_STACKTRACE_SUPPORT=y |
15 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | 13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y |
@@ -18,13 +16,12 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y | |||
18 | CONFIG_HARDIRQS_SW_RESEND=y | 16 | CONFIG_HARDIRQS_SW_RESEND=y |
19 | CONFIG_GENERIC_IRQ_PROBE=y | 17 | CONFIG_GENERIC_IRQ_PROBE=y |
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
21 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
22 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
23 | CONFIG_GENERIC_HWEIGHT=y | 19 | CONFIG_GENERIC_HWEIGHT=y |
24 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 20 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
25 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | 21 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y |
26 | CONFIG_VECTORS_BASE=0xffff0000 | 22 | CONFIG_VECTORS_BASE=0xffff0000 |
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 23 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
24 | CONFIG_CONSTRUCTORS=y | ||
28 | 25 | ||
29 | # | 26 | # |
30 | # General setup | 27 | # General setup |
@@ -46,11 +43,12 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
46 | # | 43 | # |
47 | # RCU Subsystem | 44 | # RCU Subsystem |
48 | # | 45 | # |
49 | CONFIG_CLASSIC_RCU=y | 46 | CONFIG_TREE_RCU=y |
50 | # CONFIG_TREE_RCU is not set | 47 | # CONFIG_TREE_PREEMPT_RCU is not set |
51 | # CONFIG_PREEMPT_RCU is not set | 48 | # CONFIG_RCU_TRACE is not set |
49 | CONFIG_RCU_FANOUT=32 | ||
50 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
52 | # CONFIG_TREE_RCU_TRACE is not set | 51 | # CONFIG_TREE_RCU_TRACE is not set |
53 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
54 | # CONFIG_IKCONFIG is not set | 52 | # CONFIG_IKCONFIG is not set |
55 | CONFIG_LOG_BUF_SHIFT=19 | 53 | CONFIG_LOG_BUF_SHIFT=19 |
56 | # CONFIG_GROUP_SCHED is not set | 54 | # CONFIG_GROUP_SCHED is not set |
@@ -73,7 +71,6 @@ CONFIG_SYSCTL_SYSCALL=y | |||
73 | CONFIG_KALLSYMS=y | 71 | CONFIG_KALLSYMS=y |
74 | # CONFIG_KALLSYMS_ALL is not set | 72 | # CONFIG_KALLSYMS_ALL is not set |
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
76 | # CONFIG_STRIP_ASM_SYMS is not set | ||
77 | CONFIG_HOTPLUG=y | 74 | CONFIG_HOTPLUG=y |
78 | CONFIG_PRINTK=y | 75 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 76 | CONFIG_BUG=y |
@@ -86,6 +83,10 @@ CONFIG_TIMERFD=y | |||
86 | CONFIG_EVENTFD=y | 83 | CONFIG_EVENTFD=y |
87 | CONFIG_SHMEM=y | 84 | CONFIG_SHMEM=y |
88 | CONFIG_AIO=y | 85 | CONFIG_AIO=y |
86 | |||
87 | # | ||
88 | # Kernel Performance Events And Counters | ||
89 | # | ||
89 | CONFIG_VM_EVENT_COUNTERS=y | 90 | CONFIG_VM_EVENT_COUNTERS=y |
90 | CONFIG_PCI_QUIRKS=y | 91 | CONFIG_PCI_QUIRKS=y |
91 | CONFIG_SLUB_DEBUG=y | 92 | CONFIG_SLUB_DEBUG=y |
@@ -95,13 +96,17 @@ CONFIG_SLUB=y | |||
95 | # CONFIG_SLOB is not set | 96 | # CONFIG_SLOB is not set |
96 | CONFIG_PROFILING=y | 97 | CONFIG_PROFILING=y |
97 | CONFIG_TRACEPOINTS=y | 98 | CONFIG_TRACEPOINTS=y |
98 | # CONFIG_MARKERS is not set | ||
99 | CONFIG_OPROFILE=y | 99 | CONFIG_OPROFILE=y |
100 | CONFIG_HAVE_OPROFILE=y | 100 | CONFIG_HAVE_OPROFILE=y |
101 | CONFIG_KPROBES=y | 101 | CONFIG_KPROBES=y |
102 | CONFIG_KRETPROBES=y | 102 | CONFIG_KRETPROBES=y |
103 | CONFIG_HAVE_KPROBES=y | 103 | CONFIG_HAVE_KPROBES=y |
104 | CONFIG_HAVE_KRETPROBES=y | 104 | CONFIG_HAVE_KRETPROBES=y |
105 | |||
106 | # | ||
107 | # GCOV-based kernel profiling | ||
108 | # | ||
109 | # CONFIG_GCOV_KERNEL is not set | ||
105 | # CONFIG_SLOW_WORK is not set | 110 | # CONFIG_SLOW_WORK is not set |
106 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 111 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
107 | CONFIG_SLABINFO=y | 112 | CONFIG_SLABINFO=y |
@@ -114,7 +119,7 @@ CONFIG_MODULE_UNLOAD=y | |||
114 | # CONFIG_MODVERSIONS is not set | 119 | # CONFIG_MODVERSIONS is not set |
115 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 120 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
116 | CONFIG_BLOCK=y | 121 | CONFIG_BLOCK=y |
117 | # CONFIG_LBD is not set | 122 | CONFIG_LBDAF=y |
118 | # CONFIG_BLK_DEV_BSG is not set | 123 | # CONFIG_BLK_DEV_BSG is not set |
119 | # CONFIG_BLK_DEV_INTEGRITY is not set | 124 | # CONFIG_BLK_DEV_INTEGRITY is not set |
120 | 125 | ||
@@ -135,19 +140,22 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
135 | # | 140 | # |
136 | # System Type | 141 | # System Type |
137 | # | 142 | # |
143 | CONFIG_MMU=y | ||
138 | # CONFIG_ARCH_AAEC2000 is not set | 144 | # CONFIG_ARCH_AAEC2000 is not set |
139 | # CONFIG_ARCH_INTEGRATOR is not set | 145 | # CONFIG_ARCH_INTEGRATOR is not set |
140 | # CONFIG_ARCH_REALVIEW is not set | 146 | # CONFIG_ARCH_REALVIEW is not set |
141 | # CONFIG_ARCH_VERSATILE is not set | 147 | # CONFIG_ARCH_VERSATILE is not set |
142 | # CONFIG_ARCH_AT91 is not set | 148 | # CONFIG_ARCH_AT91 is not set |
143 | # CONFIG_ARCH_CLPS711X is not set | 149 | # CONFIG_ARCH_CLPS711X is not set |
150 | # CONFIG_ARCH_GEMINI is not set | ||
144 | # CONFIG_ARCH_EBSA110 is not set | 151 | # CONFIG_ARCH_EBSA110 is not set |
145 | # CONFIG_ARCH_EP93XX is not set | 152 | # CONFIG_ARCH_EP93XX is not set |
146 | # CONFIG_ARCH_GEMINI is not set | ||
147 | # CONFIG_ARCH_FOOTBRIDGE is not set | 153 | # CONFIG_ARCH_FOOTBRIDGE is not set |
154 | # CONFIG_ARCH_MXC is not set | ||
155 | # CONFIG_ARCH_STMP3XXX is not set | ||
148 | # CONFIG_ARCH_NETX is not set | 156 | # CONFIG_ARCH_NETX is not set |
149 | # CONFIG_ARCH_H720X is not set | 157 | # CONFIG_ARCH_H720X is not set |
150 | # CONFIG_ARCH_IMX is not set | 158 | # CONFIG_ARCH_NOMADIK is not set |
151 | # CONFIG_ARCH_IOP13XX is not set | 159 | # CONFIG_ARCH_IOP13XX is not set |
152 | # CONFIG_ARCH_IOP32X is not set | 160 | # CONFIG_ARCH_IOP32X is not set |
153 | # CONFIG_ARCH_IOP33X is not set | 161 | # CONFIG_ARCH_IOP33X is not set |
@@ -156,25 +164,27 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
156 | # CONFIG_ARCH_IXP4XX is not set | 164 | # CONFIG_ARCH_IXP4XX is not set |
157 | # CONFIG_ARCH_L7200 is not set | 165 | # CONFIG_ARCH_L7200 is not set |
158 | CONFIG_ARCH_KIRKWOOD=y | 166 | CONFIG_ARCH_KIRKWOOD=y |
159 | # CONFIG_ARCH_KS8695 is not set | ||
160 | # CONFIG_ARCH_NS9XXX is not set | ||
161 | # CONFIG_ARCH_LOKI is not set | 167 | # CONFIG_ARCH_LOKI is not set |
162 | # CONFIG_ARCH_MV78XX0 is not set | 168 | # CONFIG_ARCH_MV78XX0 is not set |
163 | # CONFIG_ARCH_MXC is not set | ||
164 | # CONFIG_ARCH_ORION5X is not set | 169 | # CONFIG_ARCH_ORION5X is not set |
170 | # CONFIG_ARCH_MMP is not set | ||
171 | # CONFIG_ARCH_KS8695 is not set | ||
172 | # CONFIG_ARCH_NS9XXX is not set | ||
173 | # CONFIG_ARCH_W90X900 is not set | ||
165 | # CONFIG_ARCH_PNX4008 is not set | 174 | # CONFIG_ARCH_PNX4008 is not set |
166 | # CONFIG_ARCH_PXA is not set | 175 | # CONFIG_ARCH_PXA is not set |
167 | # CONFIG_ARCH_MMP is not set | 176 | # CONFIG_ARCH_MSM is not set |
168 | # CONFIG_ARCH_RPC is not set | 177 | # CONFIG_ARCH_RPC is not set |
169 | # CONFIG_ARCH_SA1100 is not set | 178 | # CONFIG_ARCH_SA1100 is not set |
170 | # CONFIG_ARCH_S3C2410 is not set | 179 | # CONFIG_ARCH_S3C2410 is not set |
171 | # CONFIG_ARCH_S3C64XX is not set | 180 | # CONFIG_ARCH_S3C64XX is not set |
181 | # CONFIG_ARCH_S5PC1XX is not set | ||
172 | # CONFIG_ARCH_SHARK is not set | 182 | # CONFIG_ARCH_SHARK is not set |
173 | # CONFIG_ARCH_LH7A40X is not set | 183 | # CONFIG_ARCH_LH7A40X is not set |
184 | # CONFIG_ARCH_U300 is not set | ||
174 | # CONFIG_ARCH_DAVINCI is not set | 185 | # CONFIG_ARCH_DAVINCI is not set |
175 | # CONFIG_ARCH_OMAP is not set | 186 | # CONFIG_ARCH_OMAP is not set |
176 | # CONFIG_ARCH_MSM is not set | 187 | # CONFIG_ARCH_BCMRING is not set |
177 | # CONFIG_ARCH_W90X900 is not set | ||
178 | 188 | ||
179 | # | 189 | # |
180 | # Marvell Kirkwood Implementations | 190 | # Marvell Kirkwood Implementations |
@@ -185,6 +195,7 @@ CONFIG_MACH_RD88F6281=y | |||
185 | CONFIG_MACH_MV88F6281GTW_GE=y | 195 | CONFIG_MACH_MV88F6281GTW_GE=y |
186 | CONFIG_MACH_SHEEVAPLUG=y | 196 | CONFIG_MACH_SHEEVAPLUG=y |
187 | CONFIG_MACH_TS219=y | 197 | CONFIG_MACH_TS219=y |
198 | CONFIG_MACH_OPENRD_BASE=y | ||
188 | CONFIG_PLAT_ORION=y | 199 | CONFIG_PLAT_ORION=y |
189 | 200 | ||
190 | # | 201 | # |
@@ -195,7 +206,7 @@ CONFIG_CPU_FEROCEON=y | |||
195 | # CONFIG_CPU_FEROCEON_OLD_ID is not set | 206 | # CONFIG_CPU_FEROCEON_OLD_ID is not set |
196 | CONFIG_CPU_32v5=y | 207 | CONFIG_CPU_32v5=y |
197 | CONFIG_CPU_ABRT_EV5T=y | 208 | CONFIG_CPU_ABRT_EV5T=y |
198 | CONFIG_CPU_PABRT_NOIFAR=y | 209 | CONFIG_CPU_PABRT_LEGACY=y |
199 | CONFIG_CPU_CACHE_VIVT=y | 210 | CONFIG_CPU_CACHE_VIVT=y |
200 | CONFIG_CPU_COPY_FEROCEON=y | 211 | CONFIG_CPU_COPY_FEROCEON=y |
201 | CONFIG_CPU_TLB_FEROCEON=y | 212 | CONFIG_CPU_TLB_FEROCEON=y |
@@ -211,6 +222,7 @@ CONFIG_ARM_THUMB=y | |||
211 | CONFIG_OUTER_CACHE=y | 222 | CONFIG_OUTER_CACHE=y |
212 | CONFIG_CACHE_FEROCEON_L2=y | 223 | CONFIG_CACHE_FEROCEON_L2=y |
213 | # CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH is not set | 224 | # CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH is not set |
225 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
214 | 226 | ||
215 | # | 227 | # |
216 | # Bus support | 228 | # Bus support |
@@ -235,11 +247,12 @@ CONFIG_VMSPLIT_3G=y | |||
235 | # CONFIG_VMSPLIT_2G is not set | 247 | # CONFIG_VMSPLIT_2G is not set |
236 | # CONFIG_VMSPLIT_1G is not set | 248 | # CONFIG_VMSPLIT_1G is not set |
237 | CONFIG_PAGE_OFFSET=0xC0000000 | 249 | CONFIG_PAGE_OFFSET=0xC0000000 |
250 | # CONFIG_PREEMPT_NONE is not set | ||
251 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
238 | CONFIG_PREEMPT=y | 252 | CONFIG_PREEMPT=y |
239 | CONFIG_HZ=100 | 253 | CONFIG_HZ=100 |
240 | CONFIG_AEABI=y | 254 | CONFIG_AEABI=y |
241 | # CONFIG_OABI_COMPAT is not set | 255 | # CONFIG_OABI_COMPAT is not set |
242 | CONFIG_ARCH_FLATMEM_HAS_HOLES=y | ||
243 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | 256 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set |
244 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | 257 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set |
245 | # CONFIG_HIGHMEM is not set | 258 | # CONFIG_HIGHMEM is not set |
@@ -254,10 +267,12 @@ CONFIG_SPLIT_PTLOCK_CPUS=4096 | |||
254 | # CONFIG_PHYS_ADDR_T_64BIT is not set | 267 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
255 | CONFIG_ZONE_DMA_FLAG=0 | 268 | CONFIG_ZONE_DMA_FLAG=0 |
256 | CONFIG_VIRT_TO_BUS=y | 269 | CONFIG_VIRT_TO_BUS=y |
257 | CONFIG_UNEVICTABLE_LRU=y | ||
258 | CONFIG_HAVE_MLOCK=y | 270 | CONFIG_HAVE_MLOCK=y |
259 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | 271 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y |
272 | # CONFIG_KSM is not set | ||
273 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
260 | CONFIG_ALIGNMENT_TRAP=y | 274 | CONFIG_ALIGNMENT_TRAP=y |
275 | CONFIG_UACCESS_WITH_MEMCPY=y | ||
261 | 276 | ||
262 | # | 277 | # |
263 | # Boot options | 278 | # Boot options |
@@ -345,6 +360,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
345 | # CONFIG_NETFILTER is not set | 360 | # CONFIG_NETFILTER is not set |
346 | # CONFIG_IP_DCCP is not set | 361 | # CONFIG_IP_DCCP is not set |
347 | # CONFIG_IP_SCTP is not set | 362 | # CONFIG_IP_SCTP is not set |
363 | # CONFIG_RDS is not set | ||
348 | # CONFIG_TIPC is not set | 364 | # CONFIG_TIPC is not set |
349 | # CONFIG_ATM is not set | 365 | # CONFIG_ATM is not set |
350 | # CONFIG_BRIDGE is not set | 366 | # CONFIG_BRIDGE is not set |
@@ -367,6 +383,7 @@ CONFIG_NET_DSA_MV88E6123_61_65=y | |||
367 | # CONFIG_ECONET is not set | 383 | # CONFIG_ECONET is not set |
368 | # CONFIG_WAN_ROUTER is not set | 384 | # CONFIG_WAN_ROUTER is not set |
369 | # CONFIG_PHONET is not set | 385 | # CONFIG_PHONET is not set |
386 | # CONFIG_IEEE802154 is not set | ||
370 | # CONFIG_NET_SCHED is not set | 387 | # CONFIG_NET_SCHED is not set |
371 | # CONFIG_DCB is not set | 388 | # CONFIG_DCB is not set |
372 | 389 | ||
@@ -383,17 +400,18 @@ CONFIG_NET_PKTGEN=m | |||
383 | # CONFIG_AF_RXRPC is not set | 400 | # CONFIG_AF_RXRPC is not set |
384 | CONFIG_WIRELESS=y | 401 | CONFIG_WIRELESS=y |
385 | CONFIG_CFG80211=y | 402 | CONFIG_CFG80211=y |
403 | # CONFIG_NL80211_TESTMODE is not set | ||
404 | # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set | ||
386 | # CONFIG_CFG80211_REG_DEBUG is not set | 405 | # CONFIG_CFG80211_REG_DEBUG is not set |
406 | CONFIG_CFG80211_DEFAULT_PS=y | ||
407 | CONFIG_CFG80211_DEFAULT_PS_VALUE=1 | ||
408 | # CONFIG_CFG80211_DEBUGFS is not set | ||
387 | CONFIG_WIRELESS_OLD_REGULATORY=y | 409 | CONFIG_WIRELESS_OLD_REGULATORY=y |
388 | CONFIG_WIRELESS_EXT=y | 410 | CONFIG_WIRELESS_EXT=y |
389 | CONFIG_WIRELESS_EXT_SYSFS=y | 411 | CONFIG_WIRELESS_EXT_SYSFS=y |
390 | CONFIG_LIB80211=y | 412 | CONFIG_LIB80211=y |
391 | # CONFIG_LIB80211_DEBUG is not set | 413 | # CONFIG_LIB80211_DEBUG is not set |
392 | CONFIG_MAC80211=y | 414 | CONFIG_MAC80211=y |
393 | |||
394 | # | ||
395 | # Rate control algorithm selection | ||
396 | # | ||
397 | CONFIG_MAC80211_RC_MINSTREL=y | 415 | CONFIG_MAC80211_RC_MINSTREL=y |
398 | # CONFIG_MAC80211_RC_DEFAULT_PID is not set | 416 | # CONFIG_MAC80211_RC_DEFAULT_PID is not set |
399 | CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y | 417 | CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y |
@@ -414,6 +432,7 @@ CONFIG_MAC80211_RC_DEFAULT="minstrel" | |||
414 | # Generic Driver Options | 432 | # Generic Driver Options |
415 | # | 433 | # |
416 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 434 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
435 | # CONFIG_DEVTMPFS is not set | ||
417 | CONFIG_STANDALONE=y | 436 | CONFIG_STANDALONE=y |
418 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 437 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
419 | CONFIG_FW_LOADER=y | 438 | CONFIG_FW_LOADER=y |
@@ -425,9 +444,9 @@ CONFIG_EXTRA_FIRMWARE="" | |||
425 | # CONFIG_CONNECTOR is not set | 444 | # CONFIG_CONNECTOR is not set |
426 | CONFIG_MTD=y | 445 | CONFIG_MTD=y |
427 | # CONFIG_MTD_DEBUG is not set | 446 | # CONFIG_MTD_DEBUG is not set |
447 | # CONFIG_MTD_TESTS is not set | ||
428 | # CONFIG_MTD_CONCAT is not set | 448 | # CONFIG_MTD_CONCAT is not set |
429 | CONFIG_MTD_PARTITIONS=y | 449 | CONFIG_MTD_PARTITIONS=y |
430 | # CONFIG_MTD_TESTS is not set | ||
431 | # CONFIG_MTD_REDBOOT_PARTS is not set | 450 | # CONFIG_MTD_REDBOOT_PARTS is not set |
432 | CONFIG_MTD_CMDLINE_PARTS=y | 451 | CONFIG_MTD_CMDLINE_PARTS=y |
433 | # CONFIG_MTD_AFS_PARTS is not set | 452 | # CONFIG_MTD_AFS_PARTS is not set |
@@ -494,6 +513,7 @@ CONFIG_MTD_PHYSMAP=y | |||
494 | # CONFIG_MTD_DATAFLASH is not set | 513 | # CONFIG_MTD_DATAFLASH is not set |
495 | CONFIG_MTD_M25P80=y | 514 | CONFIG_MTD_M25P80=y |
496 | CONFIG_M25PXX_USE_FAST_READ=y | 515 | CONFIG_M25PXX_USE_FAST_READ=y |
516 | # CONFIG_MTD_SST25L is not set | ||
497 | # CONFIG_MTD_SLRAM is not set | 517 | # CONFIG_MTD_SLRAM is not set |
498 | # CONFIG_MTD_PHRAM is not set | 518 | # CONFIG_MTD_PHRAM is not set |
499 | # CONFIG_MTD_MTDRAM is not set | 519 | # CONFIG_MTD_MTDRAM is not set |
@@ -543,6 +563,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
543 | # CONFIG_BLK_DEV_RAM is not set | 563 | # CONFIG_BLK_DEV_RAM is not set |
544 | # CONFIG_CDROM_PKTCDVD is not set | 564 | # CONFIG_CDROM_PKTCDVD is not set |
545 | # CONFIG_ATA_OVER_ETH is not set | 565 | # CONFIG_ATA_OVER_ETH is not set |
566 | # CONFIG_MG_DISK is not set | ||
546 | # CONFIG_MISC_DEVICES is not set | 567 | # CONFIG_MISC_DEVICES is not set |
547 | CONFIG_HAVE_IDE=y | 568 | CONFIG_HAVE_IDE=y |
548 | # CONFIG_IDE is not set | 569 | # CONFIG_IDE is not set |
@@ -567,10 +588,6 @@ CONFIG_BLK_DEV_SR=m | |||
567 | # CONFIG_BLK_DEV_SR_VENDOR is not set | 588 | # CONFIG_BLK_DEV_SR_VENDOR is not set |
568 | CONFIG_CHR_DEV_SG=m | 589 | CONFIG_CHR_DEV_SG=m |
569 | # CONFIG_CHR_DEV_SCH is not set | 590 | # CONFIG_CHR_DEV_SCH is not set |
570 | |||
571 | # | ||
572 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
573 | # | ||
574 | # CONFIG_SCSI_MULTI_LUN is not set | 591 | # CONFIG_SCSI_MULTI_LUN is not set |
575 | # CONFIG_SCSI_CONSTANTS is not set | 592 | # CONFIG_SCSI_CONSTANTS is not set |
576 | # CONFIG_SCSI_LOGGING is not set | 593 | # CONFIG_SCSI_LOGGING is not set |
@@ -587,6 +604,8 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
587 | # CONFIG_SCSI_SRP_ATTRS is not set | 604 | # CONFIG_SCSI_SRP_ATTRS is not set |
588 | CONFIG_SCSI_LOWLEVEL=y | 605 | CONFIG_SCSI_LOWLEVEL=y |
589 | # CONFIG_ISCSI_TCP is not set | 606 | # CONFIG_ISCSI_TCP is not set |
607 | # CONFIG_SCSI_BNX2_ISCSI is not set | ||
608 | # CONFIG_BE2ISCSI is not set | ||
590 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 609 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
591 | # CONFIG_SCSI_3W_9XXX is not set | 610 | # CONFIG_SCSI_3W_9XXX is not set |
592 | # CONFIG_SCSI_ACARD is not set | 611 | # CONFIG_SCSI_ACARD is not set |
@@ -595,6 +614,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
595 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 614 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
596 | # CONFIG_SCSI_AIC79XX is not set | 615 | # CONFIG_SCSI_AIC79XX is not set |
597 | # CONFIG_SCSI_AIC94XX is not set | 616 | # CONFIG_SCSI_AIC94XX is not set |
617 | # CONFIG_SCSI_MVSAS is not set | ||
598 | # CONFIG_SCSI_DPT_I2O is not set | 618 | # CONFIG_SCSI_DPT_I2O is not set |
599 | # CONFIG_SCSI_ADVANSYS is not set | 619 | # CONFIG_SCSI_ADVANSYS is not set |
600 | # CONFIG_SCSI_ARCMSR is not set | 620 | # CONFIG_SCSI_ARCMSR is not set |
@@ -611,7 +631,6 @@ CONFIG_SCSI_LOWLEVEL=y | |||
611 | # CONFIG_SCSI_IPS is not set | 631 | # CONFIG_SCSI_IPS is not set |
612 | # CONFIG_SCSI_INITIO is not set | 632 | # CONFIG_SCSI_INITIO is not set |
613 | # CONFIG_SCSI_INIA100 is not set | 633 | # CONFIG_SCSI_INIA100 is not set |
614 | # CONFIG_SCSI_MVSAS is not set | ||
615 | # CONFIG_SCSI_STEX is not set | 634 | # CONFIG_SCSI_STEX is not set |
616 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 635 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
617 | # CONFIG_SCSI_IPR is not set | 636 | # CONFIG_SCSI_IPR is not set |
@@ -623,11 +642,14 @@ CONFIG_SCSI_LOWLEVEL=y | |||
623 | # CONFIG_SCSI_DC390T is not set | 642 | # CONFIG_SCSI_DC390T is not set |
624 | # CONFIG_SCSI_NSP32 is not set | 643 | # CONFIG_SCSI_NSP32 is not set |
625 | # CONFIG_SCSI_DEBUG is not set | 644 | # CONFIG_SCSI_DEBUG is not set |
645 | # CONFIG_SCSI_PMCRAID is not set | ||
626 | # CONFIG_SCSI_SRP is not set | 646 | # CONFIG_SCSI_SRP is not set |
647 | # CONFIG_SCSI_BFA_FC is not set | ||
627 | # CONFIG_SCSI_DH is not set | 648 | # CONFIG_SCSI_DH is not set |
628 | # CONFIG_SCSI_OSD_INITIATOR is not set | 649 | # CONFIG_SCSI_OSD_INITIATOR is not set |
629 | CONFIG_ATA=y | 650 | CONFIG_ATA=y |
630 | # CONFIG_ATA_NONSTANDARD is not set | 651 | # CONFIG_ATA_NONSTANDARD is not set |
652 | CONFIG_ATA_VERBOSE_ERROR=y | ||
631 | CONFIG_SATA_PMP=y | 653 | CONFIG_SATA_PMP=y |
632 | CONFIG_SATA_AHCI=y | 654 | CONFIG_SATA_AHCI=y |
633 | # CONFIG_SATA_SIL24 is not set | 655 | # CONFIG_SATA_SIL24 is not set |
@@ -649,6 +671,7 @@ CONFIG_SATA_MV=y | |||
649 | # CONFIG_PATA_ALI is not set | 671 | # CONFIG_PATA_ALI is not set |
650 | # CONFIG_PATA_AMD is not set | 672 | # CONFIG_PATA_AMD is not set |
651 | # CONFIG_PATA_ARTOP is not set | 673 | # CONFIG_PATA_ARTOP is not set |
674 | # CONFIG_PATA_ATP867X is not set | ||
652 | # CONFIG_PATA_ATIIXP is not set | 675 | # CONFIG_PATA_ATIIXP is not set |
653 | # CONFIG_PATA_CMD640_PCI is not set | 676 | # CONFIG_PATA_CMD640_PCI is not set |
654 | # CONFIG_PATA_CMD64X is not set | 677 | # CONFIG_PATA_CMD64X is not set |
@@ -676,6 +699,7 @@ CONFIG_SATA_MV=y | |||
676 | # CONFIG_PATA_OPTIDMA is not set | 699 | # CONFIG_PATA_OPTIDMA is not set |
677 | # CONFIG_PATA_PDC_OLD is not set | 700 | # CONFIG_PATA_PDC_OLD is not set |
678 | # CONFIG_PATA_RADISYS is not set | 701 | # CONFIG_PATA_RADISYS is not set |
702 | # CONFIG_PATA_RDC is not set | ||
679 | # CONFIG_PATA_RZ1000 is not set | 703 | # CONFIG_PATA_RZ1000 is not set |
680 | # CONFIG_PATA_SC1200 is not set | 704 | # CONFIG_PATA_SC1200 is not set |
681 | # CONFIG_PATA_SERVERWORKS is not set | 705 | # CONFIG_PATA_SERVERWORKS is not set |
@@ -693,13 +717,16 @@ CONFIG_SATA_MV=y | |||
693 | # | 717 | # |
694 | 718 | ||
695 | # | 719 | # |
696 | # Enable only one of the two stacks, unless you know what you are doing | 720 | # You can enable one or both FireWire driver stacks. |
721 | # | ||
722 | |||
723 | # | ||
724 | # See the help texts for more information. | ||
697 | # | 725 | # |
698 | # CONFIG_FIREWIRE is not set | 726 | # CONFIG_FIREWIRE is not set |
699 | # CONFIG_IEEE1394 is not set | 727 | # CONFIG_IEEE1394 is not set |
700 | # CONFIG_I2O is not set | 728 | # CONFIG_I2O is not set |
701 | CONFIG_NETDEVICES=y | 729 | CONFIG_NETDEVICES=y |
702 | CONFIG_COMPAT_NET_DEV_OPS=y | ||
703 | # CONFIG_DUMMY is not set | 730 | # CONFIG_DUMMY is not set |
704 | # CONFIG_BONDING is not set | 731 | # CONFIG_BONDING is not set |
705 | # CONFIG_MACVLAN is not set | 732 | # CONFIG_MACVLAN is not set |
@@ -768,6 +795,9 @@ CONFIG_NET_PCI=y | |||
768 | # CONFIG_SMSC9420 is not set | 795 | # CONFIG_SMSC9420 is not set |
769 | # CONFIG_SUNDANCE is not set | 796 | # CONFIG_SUNDANCE is not set |
770 | # CONFIG_TLAN is not set | 797 | # CONFIG_TLAN is not set |
798 | # CONFIG_KS8842 is not set | ||
799 | # CONFIG_KS8851 is not set | ||
800 | # CONFIG_KS8851_MLL is not set | ||
771 | # CONFIG_VIA_RHINE is not set | 801 | # CONFIG_VIA_RHINE is not set |
772 | # CONFIG_SC92031 is not set | 802 | # CONFIG_SC92031 is not set |
773 | # CONFIG_ATL2 is not set | 803 | # CONFIG_ATL2 is not set |
@@ -789,6 +819,7 @@ CONFIG_NETDEV_1000=y | |||
789 | # CONFIG_VIA_VELOCITY is not set | 819 | # CONFIG_VIA_VELOCITY is not set |
790 | # CONFIG_TIGON3 is not set | 820 | # CONFIG_TIGON3 is not set |
791 | # CONFIG_BNX2 is not set | 821 | # CONFIG_BNX2 is not set |
822 | # CONFIG_CNIC is not set | ||
792 | CONFIG_MV643XX_ETH=y | 823 | CONFIG_MV643XX_ETH=y |
793 | # CONFIG_QLA3XXX is not set | 824 | # CONFIG_QLA3XXX is not set |
794 | # CONFIG_ATL1 is not set | 825 | # CONFIG_ATL1 is not set |
@@ -797,10 +828,7 @@ CONFIG_MV643XX_ETH=y | |||
797 | # CONFIG_JME is not set | 828 | # CONFIG_JME is not set |
798 | # CONFIG_NETDEV_10000 is not set | 829 | # CONFIG_NETDEV_10000 is not set |
799 | # CONFIG_TR is not set | 830 | # CONFIG_TR is not set |
800 | 831 | CONFIG_WLAN=y | |
801 | # | ||
802 | # Wireless LAN | ||
803 | # | ||
804 | # CONFIG_WLAN_PRE80211 is not set | 832 | # CONFIG_WLAN_PRE80211 is not set |
805 | CONFIG_WLAN_80211=y | 833 | CONFIG_WLAN_80211=y |
806 | CONFIG_LIBERTAS=y | 834 | CONFIG_LIBERTAS=y |
@@ -820,9 +848,7 @@ CONFIG_LIBERTAS_SDIO=y | |||
820 | # CONFIG_MAC80211_HWSIM is not set | 848 | # CONFIG_MAC80211_HWSIM is not set |
821 | # CONFIG_MWL8K is not set | 849 | # CONFIG_MWL8K is not set |
822 | # CONFIG_P54_COMMON is not set | 850 | # CONFIG_P54_COMMON is not set |
823 | # CONFIG_ATH5K is not set | 851 | # CONFIG_ATH_COMMON is not set |
824 | # CONFIG_ATH9K is not set | ||
825 | # CONFIG_AR9170_USB is not set | ||
826 | # CONFIG_IPW2100 is not set | 852 | # CONFIG_IPW2100 is not set |
827 | # CONFIG_IPW2200 is not set | 853 | # CONFIG_IPW2200 is not set |
828 | # CONFIG_IWLWIFI is not set | 854 | # CONFIG_IWLWIFI is not set |
@@ -832,6 +858,8 @@ CONFIG_LIBERTAS_SDIO=y | |||
832 | # CONFIG_ZD1211RW is not set | 858 | # CONFIG_ZD1211RW is not set |
833 | # CONFIG_RT2X00 is not set | 859 | # CONFIG_RT2X00 is not set |
834 | # CONFIG_HERMES is not set | 860 | # CONFIG_HERMES is not set |
861 | # CONFIG_WL12XX is not set | ||
862 | # CONFIG_IWM is not set | ||
835 | 863 | ||
836 | # | 864 | # |
837 | # Enable WiMAX (Networking options) to see the WiMAX drivers | 865 | # Enable WiMAX (Networking options) to see the WiMAX drivers |
@@ -855,6 +883,7 @@ CONFIG_LIBERTAS_SDIO=y | |||
855 | # CONFIG_NETPOLL is not set | 883 | # CONFIG_NETPOLL is not set |
856 | # CONFIG_NET_POLL_CONTROLLER is not set | 884 | # CONFIG_NET_POLL_CONTROLLER is not set |
857 | # CONFIG_ISDN is not set | 885 | # CONFIG_ISDN is not set |
886 | # CONFIG_PHONE is not set | ||
858 | 887 | ||
859 | # | 888 | # |
860 | # Input device support | 889 | # Input device support |
@@ -878,13 +907,19 @@ CONFIG_INPUT_EVDEV=y | |||
878 | # Input Device Drivers | 907 | # Input Device Drivers |
879 | # | 908 | # |
880 | CONFIG_INPUT_KEYBOARD=y | 909 | CONFIG_INPUT_KEYBOARD=y |
910 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
881 | CONFIG_KEYBOARD_ATKBD=y | 911 | CONFIG_KEYBOARD_ATKBD=y |
882 | # CONFIG_KEYBOARD_SUNKBD is not set | 912 | # CONFIG_QT2160 is not set |
883 | # CONFIG_KEYBOARD_LKKBD is not set | 913 | # CONFIG_KEYBOARD_LKKBD is not set |
884 | # CONFIG_KEYBOARD_XTKBD is not set | 914 | CONFIG_KEYBOARD_GPIO=y |
915 | # CONFIG_KEYBOARD_MATRIX is not set | ||
916 | # CONFIG_KEYBOARD_LM8323 is not set | ||
917 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
885 | # CONFIG_KEYBOARD_NEWTON is not set | 918 | # CONFIG_KEYBOARD_NEWTON is not set |
919 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
886 | # CONFIG_KEYBOARD_STOWAWAY is not set | 920 | # CONFIG_KEYBOARD_STOWAWAY is not set |
887 | CONFIG_KEYBOARD_GPIO=y | 921 | # CONFIG_KEYBOARD_SUNKBD is not set |
922 | # CONFIG_KEYBOARD_XTKBD is not set | ||
888 | # CONFIG_INPUT_MOUSE is not set | 923 | # CONFIG_INPUT_MOUSE is not set |
889 | # CONFIG_INPUT_JOYSTICK is not set | 924 | # CONFIG_INPUT_JOYSTICK is not set |
890 | # CONFIG_INPUT_TABLET is not set | 925 | # CONFIG_INPUT_TABLET is not set |
@@ -943,6 +978,7 @@ CONFIG_LEGACY_PTY_COUNT=16 | |||
943 | CONFIG_DEVPORT=y | 978 | CONFIG_DEVPORT=y |
944 | CONFIG_I2C=y | 979 | CONFIG_I2C=y |
945 | CONFIG_I2C_BOARDINFO=y | 980 | CONFIG_I2C_BOARDINFO=y |
981 | # CONFIG_I2C_COMPAT is not set | ||
946 | CONFIG_I2C_CHARDEV=y | 982 | CONFIG_I2C_CHARDEV=y |
947 | CONFIG_I2C_HELPER_AUTO=y | 983 | CONFIG_I2C_HELPER_AUTO=y |
948 | 984 | ||
@@ -998,10 +1034,6 @@ CONFIG_I2C_MV64XXX=y | |||
998 | # Miscellaneous I2C Chip support | 1034 | # Miscellaneous I2C Chip support |
999 | # | 1035 | # |
1000 | # CONFIG_DS1682 is not set | 1036 | # CONFIG_DS1682 is not set |
1001 | # CONFIG_SENSORS_PCF8574 is not set | ||
1002 | # CONFIG_PCF8575 is not set | ||
1003 | # CONFIG_SENSORS_PCA9539 is not set | ||
1004 | # CONFIG_SENSORS_MAX6875 is not set | ||
1005 | # CONFIG_SENSORS_TSL2550 is not set | 1037 | # CONFIG_SENSORS_TSL2550 is not set |
1006 | # CONFIG_I2C_DEBUG_CORE is not set | 1038 | # CONFIG_I2C_DEBUG_CORE is not set |
1007 | # CONFIG_I2C_DEBUG_ALGO is not set | 1039 | # CONFIG_I2C_DEBUG_ALGO is not set |
@@ -1023,11 +1055,47 @@ CONFIG_SPI_ORION=y | |||
1023 | # | 1055 | # |
1024 | # CONFIG_SPI_SPIDEV is not set | 1056 | # CONFIG_SPI_SPIDEV is not set |
1025 | # CONFIG_SPI_TLE62X0 is not set | 1057 | # CONFIG_SPI_TLE62X0 is not set |
1058 | |||
1059 | # | ||
1060 | # PPS support | ||
1061 | # | ||
1062 | # CONFIG_PPS is not set | ||
1063 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
1064 | CONFIG_GPIOLIB=y | ||
1065 | # CONFIG_DEBUG_GPIO is not set | ||
1066 | CONFIG_GPIO_SYSFS=y | ||
1067 | |||
1068 | # | ||
1069 | # Memory mapped GPIO expanders: | ||
1070 | # | ||
1071 | |||
1072 | # | ||
1073 | # I2C GPIO expanders: | ||
1074 | # | ||
1075 | # CONFIG_GPIO_MAX732X is not set | ||
1076 | # CONFIG_GPIO_PCA953X is not set | ||
1077 | # CONFIG_GPIO_PCF857X is not set | ||
1078 | |||
1079 | # | ||
1080 | # PCI GPIO expanders: | ||
1081 | # | ||
1082 | # CONFIG_GPIO_BT8XX is not set | ||
1083 | # CONFIG_GPIO_LANGWELL is not set | ||
1084 | |||
1085 | # | ||
1086 | # SPI GPIO expanders: | ||
1087 | # | ||
1088 | # CONFIG_GPIO_MAX7301 is not set | ||
1089 | # CONFIG_GPIO_MCP23S08 is not set | ||
1090 | # CONFIG_GPIO_MC33880 is not set | ||
1091 | |||
1092 | # | ||
1093 | # AC97 GPIO expanders: | ||
1094 | # | ||
1026 | # CONFIG_W1 is not set | 1095 | # CONFIG_W1 is not set |
1027 | # CONFIG_POWER_SUPPLY is not set | 1096 | # CONFIG_POWER_SUPPLY is not set |
1028 | # CONFIG_HWMON is not set | 1097 | # CONFIG_HWMON is not set |
1029 | # CONFIG_THERMAL is not set | 1098 | # CONFIG_THERMAL is not set |
1030 | # CONFIG_THERMAL_HWMON is not set | ||
1031 | # CONFIG_WATCHDOG is not set | 1099 | # CONFIG_WATCHDOG is not set |
1032 | CONFIG_SSB_POSSIBLE=y | 1100 | CONFIG_SSB_POSSIBLE=y |
1033 | 1101 | ||
@@ -1041,33 +1109,28 @@ CONFIG_SSB_POSSIBLE=y | |||
1041 | # | 1109 | # |
1042 | # CONFIG_MFD_CORE is not set | 1110 | # CONFIG_MFD_CORE is not set |
1043 | # CONFIG_MFD_SM501 is not set | 1111 | # CONFIG_MFD_SM501 is not set |
1112 | # CONFIG_MFD_ASIC3 is not set | ||
1113 | # CONFIG_HTC_EGPIO is not set | ||
1044 | # CONFIG_HTC_PASIC3 is not set | 1114 | # CONFIG_HTC_PASIC3 is not set |
1115 | # CONFIG_TPS65010 is not set | ||
1045 | # CONFIG_TWL4030_CORE is not set | 1116 | # CONFIG_TWL4030_CORE is not set |
1046 | # CONFIG_MFD_TMIO is not set | 1117 | # CONFIG_MFD_TMIO is not set |
1118 | # CONFIG_MFD_TC6393XB is not set | ||
1047 | # CONFIG_PMIC_DA903X is not set | 1119 | # CONFIG_PMIC_DA903X is not set |
1048 | # CONFIG_MFD_WM8400 is not set | 1120 | # CONFIG_MFD_WM8400 is not set |
1121 | # CONFIG_MFD_WM831X is not set | ||
1049 | # CONFIG_MFD_WM8350_I2C is not set | 1122 | # CONFIG_MFD_WM8350_I2C is not set |
1050 | # CONFIG_MFD_PCF50633 is not set | 1123 | # CONFIG_MFD_PCF50633 is not set |
1051 | 1124 | # CONFIG_MFD_MC13783 is not set | |
1052 | # | 1125 | # CONFIG_AB3100_CORE is not set |
1053 | # Multimedia devices | 1126 | # CONFIG_EZX_PCAP is not set |
1054 | # | 1127 | # CONFIG_REGULATOR is not set |
1055 | 1128 | # CONFIG_MEDIA_SUPPORT is not set | |
1056 | # | ||
1057 | # Multimedia core support | ||
1058 | # | ||
1059 | # CONFIG_VIDEO_DEV is not set | ||
1060 | # CONFIG_DVB_CORE is not set | ||
1061 | # CONFIG_VIDEO_MEDIA is not set | ||
1062 | |||
1063 | # | ||
1064 | # Multimedia drivers | ||
1065 | # | ||
1066 | # CONFIG_DAB is not set | ||
1067 | 1129 | ||
1068 | # | 1130 | # |
1069 | # Graphics support | 1131 | # Graphics support |
1070 | # | 1132 | # |
1133 | CONFIG_VGA_ARB=y | ||
1071 | # CONFIG_DRM is not set | 1134 | # CONFIG_DRM is not set |
1072 | # CONFIG_VGASTATE is not set | 1135 | # CONFIG_VGASTATE is not set |
1073 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | 1136 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set |
@@ -1087,7 +1150,6 @@ CONFIG_DUMMY_CONSOLE=y | |||
1087 | # CONFIG_SOUND is not set | 1150 | # CONFIG_SOUND is not set |
1088 | CONFIG_HID_SUPPORT=y | 1151 | CONFIG_HID_SUPPORT=y |
1089 | CONFIG_HID=y | 1152 | CONFIG_HID=y |
1090 | # CONFIG_HID_DEBUG is not set | ||
1091 | # CONFIG_HIDRAW is not set | 1153 | # CONFIG_HIDRAW is not set |
1092 | 1154 | ||
1093 | # | 1155 | # |
@@ -1106,10 +1168,12 @@ CONFIG_HID_BELKIN=y | |||
1106 | CONFIG_HID_CHERRY=y | 1168 | CONFIG_HID_CHERRY=y |
1107 | CONFIG_HID_CHICONY=y | 1169 | CONFIG_HID_CHICONY=y |
1108 | CONFIG_HID_CYPRESS=y | 1170 | CONFIG_HID_CYPRESS=y |
1171 | CONFIG_HID_DRAGONRISE=y | ||
1109 | # CONFIG_DRAGONRISE_FF is not set | 1172 | # CONFIG_DRAGONRISE_FF is not set |
1110 | CONFIG_HID_EZKEY=y | 1173 | CONFIG_HID_EZKEY=y |
1111 | CONFIG_HID_KYE=y | 1174 | CONFIG_HID_KYE=y |
1112 | CONFIG_HID_GYRATION=y | 1175 | CONFIG_HID_GYRATION=y |
1176 | CONFIG_HID_TWINHAN=y | ||
1113 | CONFIG_HID_KENSINGTON=y | 1177 | CONFIG_HID_KENSINGTON=y |
1114 | CONFIG_HID_LOGITECH=y | 1178 | CONFIG_HID_LOGITECH=y |
1115 | # CONFIG_LOGITECH_FF is not set | 1179 | # CONFIG_LOGITECH_FF is not set |
@@ -1123,9 +1187,14 @@ CONFIG_HID_PETALYNX=y | |||
1123 | CONFIG_HID_SAMSUNG=y | 1187 | CONFIG_HID_SAMSUNG=y |
1124 | CONFIG_HID_SONY=y | 1188 | CONFIG_HID_SONY=y |
1125 | CONFIG_HID_SUNPLUS=y | 1189 | CONFIG_HID_SUNPLUS=y |
1190 | CONFIG_HID_GREENASIA=y | ||
1126 | # CONFIG_GREENASIA_FF is not set | 1191 | # CONFIG_GREENASIA_FF is not set |
1192 | CONFIG_HID_SMARTJOYPLUS=y | ||
1193 | # CONFIG_SMARTJOYPLUS_FF is not set | ||
1127 | CONFIG_HID_TOPSEED=y | 1194 | CONFIG_HID_TOPSEED=y |
1195 | CONFIG_HID_THRUSTMASTER=y | ||
1128 | # CONFIG_THRUSTMASTER_FF is not set | 1196 | # CONFIG_THRUSTMASTER_FF is not set |
1197 | CONFIG_HID_ZEROPLUS=y | ||
1129 | # CONFIG_ZEROPLUS_FF is not set | 1198 | # CONFIG_ZEROPLUS_FF is not set |
1130 | CONFIG_USB_SUPPORT=y | 1199 | CONFIG_USB_SUPPORT=y |
1131 | CONFIG_USB_ARCH_HAS_HCD=y | 1200 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -1150,18 +1219,21 @@ CONFIG_USB_DEVICE_CLASS=y | |||
1150 | # USB Host Controller Drivers | 1219 | # USB Host Controller Drivers |
1151 | # | 1220 | # |
1152 | # CONFIG_USB_C67X00_HCD is not set | 1221 | # CONFIG_USB_C67X00_HCD is not set |
1222 | # CONFIG_USB_XHCI_HCD is not set | ||
1153 | CONFIG_USB_EHCI_HCD=y | 1223 | CONFIG_USB_EHCI_HCD=y |
1154 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | 1224 | CONFIG_USB_EHCI_ROOT_HUB_TT=y |
1155 | CONFIG_USB_EHCI_TT_NEWSCHED=y | 1225 | CONFIG_USB_EHCI_TT_NEWSCHED=y |
1156 | # CONFIG_USB_OXU210HP_HCD is not set | 1226 | # CONFIG_USB_OXU210HP_HCD is not set |
1157 | # CONFIG_USB_ISP116X_HCD is not set | 1227 | # CONFIG_USB_ISP116X_HCD is not set |
1158 | # CONFIG_USB_ISP1760_HCD is not set | 1228 | # CONFIG_USB_ISP1760_HCD is not set |
1229 | # CONFIG_USB_ISP1362_HCD is not set | ||
1159 | # CONFIG_USB_OHCI_HCD is not set | 1230 | # CONFIG_USB_OHCI_HCD is not set |
1160 | # CONFIG_USB_UHCI_HCD is not set | 1231 | # CONFIG_USB_UHCI_HCD is not set |
1161 | # CONFIG_USB_SL811_HCD is not set | 1232 | # CONFIG_USB_SL811_HCD is not set |
1162 | # CONFIG_USB_R8A66597_HCD is not set | 1233 | # CONFIG_USB_R8A66597_HCD is not set |
1163 | # CONFIG_USB_WHCI_HCD is not set | 1234 | # CONFIG_USB_WHCI_HCD is not set |
1164 | # CONFIG_USB_HWA_HCD is not set | 1235 | # CONFIG_USB_HWA_HCD is not set |
1236 | # CONFIG_USB_MUSB_HDRC is not set | ||
1165 | 1237 | ||
1166 | # | 1238 | # |
1167 | # USB Device Class drivers | 1239 | # USB Device Class drivers |
@@ -1252,11 +1324,14 @@ CONFIG_SDIO_UART=y | |||
1252 | # MMC/SD/SDIO Host Controller Drivers | 1324 | # MMC/SD/SDIO Host Controller Drivers |
1253 | # | 1325 | # |
1254 | # CONFIG_MMC_SDHCI is not set | 1326 | # CONFIG_MMC_SDHCI is not set |
1327 | # CONFIG_MMC_AT91 is not set | ||
1328 | # CONFIG_MMC_ATMELMCI is not set | ||
1255 | # CONFIG_MMC_TIFM_SD is not set | 1329 | # CONFIG_MMC_TIFM_SD is not set |
1256 | CONFIG_MMC_MVSDIO=y | 1330 | CONFIG_MMC_MVSDIO=y |
1257 | # CONFIG_MMC_SPI is not set | 1331 | # CONFIG_MMC_SPI is not set |
1332 | # CONFIG_MMC_CB710 is not set | ||
1333 | # CONFIG_MMC_VIA_SDMMC is not set | ||
1258 | # CONFIG_MEMSTICK is not set | 1334 | # CONFIG_MEMSTICK is not set |
1259 | # CONFIG_ACCESSIBILITY is not set | ||
1260 | CONFIG_NEW_LEDS=y | 1335 | CONFIG_NEW_LEDS=y |
1261 | CONFIG_LEDS_CLASS=y | 1336 | CONFIG_LEDS_CLASS=y |
1262 | 1337 | ||
@@ -1266,7 +1341,7 @@ CONFIG_LEDS_CLASS=y | |||
1266 | # CONFIG_LEDS_PCA9532 is not set | 1341 | # CONFIG_LEDS_PCA9532 is not set |
1267 | CONFIG_LEDS_GPIO=y | 1342 | CONFIG_LEDS_GPIO=y |
1268 | CONFIG_LEDS_GPIO_PLATFORM=y | 1343 | CONFIG_LEDS_GPIO_PLATFORM=y |
1269 | # CONFIG_LEDS_LP5521 is not set | 1344 | # CONFIG_LEDS_LP3944 is not set |
1270 | # CONFIG_LEDS_PCA955X is not set | 1345 | # CONFIG_LEDS_PCA955X is not set |
1271 | # CONFIG_LEDS_DAC124S085 is not set | 1346 | # CONFIG_LEDS_DAC124S085 is not set |
1272 | # CONFIG_LEDS_BD2802 is not set | 1347 | # CONFIG_LEDS_BD2802 is not set |
@@ -1278,11 +1353,14 @@ CONFIG_LEDS_TRIGGERS=y | |||
1278 | CONFIG_LEDS_TRIGGER_TIMER=y | 1353 | CONFIG_LEDS_TRIGGER_TIMER=y |
1279 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 1354 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
1280 | # CONFIG_LEDS_TRIGGER_BACKLIGHT is not set | 1355 | # CONFIG_LEDS_TRIGGER_BACKLIGHT is not set |
1356 | # CONFIG_LEDS_TRIGGER_GPIO is not set | ||
1281 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | 1357 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y |
1282 | 1358 | ||
1283 | # | 1359 | # |
1284 | # iptables trigger is under Netfilter config (LED target) | 1360 | # iptables trigger is under Netfilter config (LED target) |
1285 | # | 1361 | # |
1362 | # CONFIG_ACCESSIBILITY is not set | ||
1363 | # CONFIG_INFINIBAND is not set | ||
1286 | CONFIG_RTC_LIB=y | 1364 | CONFIG_RTC_LIB=y |
1287 | CONFIG_RTC_CLASS=y | 1365 | CONFIG_RTC_CLASS=y |
1288 | CONFIG_RTC_HCTOSYS=y | 1366 | CONFIG_RTC_HCTOSYS=y |
@@ -1314,6 +1392,7 @@ CONFIG_RTC_INTF_DEV=y | |||
1314 | CONFIG_RTC_DRV_S35390A=y | 1392 | CONFIG_RTC_DRV_S35390A=y |
1315 | # CONFIG_RTC_DRV_FM3130 is not set | 1393 | # CONFIG_RTC_DRV_FM3130 is not set |
1316 | # CONFIG_RTC_DRV_RX8581 is not set | 1394 | # CONFIG_RTC_DRV_RX8581 is not set |
1395 | # CONFIG_RTC_DRV_RX8025 is not set | ||
1317 | 1396 | ||
1318 | # | 1397 | # |
1319 | # SPI RTC drivers | 1398 | # SPI RTC drivers |
@@ -1325,6 +1404,7 @@ CONFIG_RTC_DRV_S35390A=y | |||
1325 | # CONFIG_RTC_DRV_R9701 is not set | 1404 | # CONFIG_RTC_DRV_R9701 is not set |
1326 | # CONFIG_RTC_DRV_RS5C348 is not set | 1405 | # CONFIG_RTC_DRV_RS5C348 is not set |
1327 | # CONFIG_RTC_DRV_DS3234 is not set | 1406 | # CONFIG_RTC_DRV_DS3234 is not set |
1407 | # CONFIG_RTC_DRV_PCF2123 is not set | ||
1328 | 1408 | ||
1329 | # | 1409 | # |
1330 | # Platform RTC drivers | 1410 | # Platform RTC drivers |
@@ -1360,8 +1440,11 @@ CONFIG_DMA_ENGINE=y | |||
1360 | # CONFIG_ASYNC_TX_DMA is not set | 1440 | # CONFIG_ASYNC_TX_DMA is not set |
1361 | # CONFIG_DMATEST is not set | 1441 | # CONFIG_DMATEST is not set |
1362 | # CONFIG_AUXDISPLAY is not set | 1442 | # CONFIG_AUXDISPLAY is not set |
1363 | # CONFIG_REGULATOR is not set | ||
1364 | # CONFIG_UIO is not set | 1443 | # CONFIG_UIO is not set |
1444 | |||
1445 | # | ||
1446 | # TI VLYNQ | ||
1447 | # | ||
1365 | # CONFIG_STAGING is not set | 1448 | # CONFIG_STAGING is not set |
1366 | 1449 | ||
1367 | # | 1450 | # |
@@ -1379,10 +1462,13 @@ CONFIG_JBD=y | |||
1379 | # CONFIG_REISERFS_FS is not set | 1462 | # CONFIG_REISERFS_FS is not set |
1380 | # CONFIG_JFS_FS is not set | 1463 | # CONFIG_JFS_FS is not set |
1381 | # CONFIG_FS_POSIX_ACL is not set | 1464 | # CONFIG_FS_POSIX_ACL is not set |
1382 | CONFIG_FILE_LOCKING=y | ||
1383 | # CONFIG_XFS_FS is not set | 1465 | # CONFIG_XFS_FS is not set |
1466 | # CONFIG_GFS2_FS is not set | ||
1384 | # CONFIG_OCFS2_FS is not set | 1467 | # CONFIG_OCFS2_FS is not set |
1385 | # CONFIG_BTRFS_FS is not set | 1468 | # CONFIG_BTRFS_FS is not set |
1469 | # CONFIG_NILFS2_FS is not set | ||
1470 | CONFIG_FILE_LOCKING=y | ||
1471 | CONFIG_FSNOTIFY=y | ||
1386 | CONFIG_DNOTIFY=y | 1472 | CONFIG_DNOTIFY=y |
1387 | CONFIG_INOTIFY=y | 1473 | CONFIG_INOTIFY=y |
1388 | CONFIG_INOTIFY_USER=y | 1474 | CONFIG_INOTIFY_USER=y |
@@ -1455,7 +1541,6 @@ CONFIG_CRAMFS=y | |||
1455 | # CONFIG_ROMFS_FS is not set | 1541 | # CONFIG_ROMFS_FS is not set |
1456 | # CONFIG_SYSV_FS is not set | 1542 | # CONFIG_SYSV_FS is not set |
1457 | # CONFIG_UFS_FS is not set | 1543 | # CONFIG_UFS_FS is not set |
1458 | # CONFIG_NILFS2_FS is not set | ||
1459 | CONFIG_NETWORK_FILESYSTEMS=y | 1544 | CONFIG_NETWORK_FILESYSTEMS=y |
1460 | CONFIG_NFS_FS=y | 1545 | CONFIG_NFS_FS=y |
1461 | CONFIG_NFS_V3=y | 1546 | CONFIG_NFS_V3=y |
@@ -1530,6 +1615,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y | |||
1530 | CONFIG_ENABLE_MUST_CHECK=y | 1615 | CONFIG_ENABLE_MUST_CHECK=y |
1531 | CONFIG_FRAME_WARN=1024 | 1616 | CONFIG_FRAME_WARN=1024 |
1532 | CONFIG_MAGIC_SYSRQ=y | 1617 | CONFIG_MAGIC_SYSRQ=y |
1618 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1533 | # CONFIG_UNUSED_SYMBOLS is not set | 1619 | # CONFIG_UNUSED_SYMBOLS is not set |
1534 | CONFIG_DEBUG_FS=y | 1620 | CONFIG_DEBUG_FS=y |
1535 | # CONFIG_HEADERS_CHECK is not set | 1621 | # CONFIG_HEADERS_CHECK is not set |
@@ -1547,6 +1633,7 @@ CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | |||
1547 | # CONFIG_DEBUG_OBJECTS is not set | 1633 | # CONFIG_DEBUG_OBJECTS is not set |
1548 | # CONFIG_SLUB_DEBUG_ON is not set | 1634 | # CONFIG_SLUB_DEBUG_ON is not set |
1549 | # CONFIG_SLUB_STATS is not set | 1635 | # CONFIG_SLUB_STATS is not set |
1636 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1550 | # CONFIG_DEBUG_PREEMPT is not set | 1637 | # CONFIG_DEBUG_PREEMPT is not set |
1551 | # CONFIG_DEBUG_RT_MUTEXES is not set | 1638 | # CONFIG_DEBUG_RT_MUTEXES is not set |
1552 | # CONFIG_RT_MUTEX_TESTER is not set | 1639 | # CONFIG_RT_MUTEX_TESTER is not set |
@@ -1567,12 +1654,14 @@ CONFIG_DEBUG_MEMORY_INIT=y | |||
1567 | # CONFIG_DEBUG_LIST is not set | 1654 | # CONFIG_DEBUG_LIST is not set |
1568 | # CONFIG_DEBUG_SG is not set | 1655 | # CONFIG_DEBUG_SG is not set |
1569 | # CONFIG_DEBUG_NOTIFIERS is not set | 1656 | # CONFIG_DEBUG_NOTIFIERS is not set |
1657 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1570 | # CONFIG_BOOT_PRINTK_DELAY is not set | 1658 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1571 | # CONFIG_RCU_TORTURE_TEST is not set | 1659 | # CONFIG_RCU_TORTURE_TEST is not set |
1572 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | 1660 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set |
1573 | # CONFIG_KPROBES_SANITY_TEST is not set | 1661 | # CONFIG_KPROBES_SANITY_TEST is not set |
1574 | # CONFIG_BACKTRACE_SELF_TEST is not set | 1662 | # CONFIG_BACKTRACE_SELF_TEST is not set |
1575 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | 1663 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set |
1664 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1576 | # CONFIG_LKDTM is not set | 1665 | # CONFIG_LKDTM is not set |
1577 | # CONFIG_FAULT_INJECTION is not set | 1666 | # CONFIG_FAULT_INJECTION is not set |
1578 | # CONFIG_LATENCYTOP is not set | 1667 | # CONFIG_LATENCYTOP is not set |
@@ -1581,25 +1670,12 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1581 | CONFIG_NOP_TRACER=y | 1670 | CONFIG_NOP_TRACER=y |
1582 | CONFIG_HAVE_FUNCTION_TRACER=y | 1671 | CONFIG_HAVE_FUNCTION_TRACER=y |
1583 | CONFIG_RING_BUFFER=y | 1672 | CONFIG_RING_BUFFER=y |
1673 | CONFIG_EVENT_TRACING=y | ||
1674 | CONFIG_CONTEXT_SWITCH_TRACER=y | ||
1675 | CONFIG_RING_BUFFER_ALLOW_SWAP=y | ||
1584 | CONFIG_TRACING=y | 1676 | CONFIG_TRACING=y |
1585 | CONFIG_TRACING_SUPPORT=y | 1677 | CONFIG_TRACING_SUPPORT=y |
1586 | 1678 | # CONFIG_FTRACE is not set | |
1587 | # | ||
1588 | # Tracers | ||
1589 | # | ||
1590 | # CONFIG_FUNCTION_TRACER is not set | ||
1591 | # CONFIG_IRQSOFF_TRACER is not set | ||
1592 | # CONFIG_PREEMPT_TRACER is not set | ||
1593 | # CONFIG_SCHED_TRACER is not set | ||
1594 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1595 | # CONFIG_EVENT_TRACER is not set | ||
1596 | # CONFIG_BOOT_TRACER is not set | ||
1597 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1598 | # CONFIG_STACK_TRACER is not set | ||
1599 | # CONFIG_KMEMTRACE is not set | ||
1600 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1601 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1602 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1603 | # CONFIG_DYNAMIC_DEBUG is not set | 1679 | # CONFIG_DYNAMIC_DEBUG is not set |
1604 | # CONFIG_SAMPLES is not set | 1680 | # CONFIG_SAMPLES is not set |
1605 | CONFIG_HAVE_ARCH_KGDB=y | 1681 | CONFIG_HAVE_ARCH_KGDB=y |
@@ -1623,7 +1699,6 @@ CONFIG_CRYPTO=y | |||
1623 | # | 1699 | # |
1624 | # Crypto core or helper | 1700 | # Crypto core or helper |
1625 | # | 1701 | # |
1626 | # CONFIG_CRYPTO_FIPS is not set | ||
1627 | CONFIG_CRYPTO_ALGAPI=y | 1702 | CONFIG_CRYPTO_ALGAPI=y |
1628 | CONFIG_CRYPTO_ALGAPI2=y | 1703 | CONFIG_CRYPTO_ALGAPI2=y |
1629 | CONFIG_CRYPTO_AEAD2=y | 1704 | CONFIG_CRYPTO_AEAD2=y |
@@ -1665,11 +1740,13 @@ CONFIG_CRYPTO_PCBC=m | |||
1665 | # | 1740 | # |
1666 | # CONFIG_CRYPTO_HMAC is not set | 1741 | # CONFIG_CRYPTO_HMAC is not set |
1667 | # CONFIG_CRYPTO_XCBC is not set | 1742 | # CONFIG_CRYPTO_XCBC is not set |
1743 | # CONFIG_CRYPTO_VMAC is not set | ||
1668 | 1744 | ||
1669 | # | 1745 | # |
1670 | # Digest | 1746 | # Digest |
1671 | # | 1747 | # |
1672 | CONFIG_CRYPTO_CRC32C=y | 1748 | CONFIG_CRYPTO_CRC32C=y |
1749 | # CONFIG_CRYPTO_GHASH is not set | ||
1673 | # CONFIG_CRYPTO_MD4 is not set | 1750 | # CONFIG_CRYPTO_MD4 is not set |
1674 | # CONFIG_CRYPTO_MD5 is not set | 1751 | # CONFIG_CRYPTO_MD5 is not set |
1675 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | 1752 | # CONFIG_CRYPTO_MICHAEL_MIC is not set |
@@ -1714,6 +1791,7 @@ CONFIG_CRYPTO_ARC4=y | |||
1714 | # | 1791 | # |
1715 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1792 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1716 | CONFIG_CRYPTO_HW=y | 1793 | CONFIG_CRYPTO_HW=y |
1794 | CONFIG_CRYPTO_DEV_MV_CESA=y | ||
1717 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1795 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1718 | CONFIG_BINARY_PRINTF=y | 1796 | CONFIG_BINARY_PRINTF=y |
1719 | 1797 | ||
diff --git a/arch/arm/configs/n8x0_defconfig b/arch/arm/configs/n8x0_defconfig index 8da75dede52e..264f52b5c52d 100644 --- a/arch/arm/configs/n8x0_defconfig +++ b/arch/arm/configs/n8x0_defconfig | |||
@@ -304,7 +304,7 @@ CONFIG_ALIGNMENT_TRAP=y | |||
304 | CONFIG_ZBOOT_ROM_TEXT=0x10C08000 | 304 | CONFIG_ZBOOT_ROM_TEXT=0x10C08000 |
305 | CONFIG_ZBOOT_ROM_BSS=0x10200000 | 305 | CONFIG_ZBOOT_ROM_BSS=0x10200000 |
306 | # CONFIG_ZBOOT_ROM is not set | 306 | # CONFIG_ZBOOT_ROM is not set |
307 | CONFIG_CMDLINE="root=1f03 rootfstype=jffs2 console=ttyS0,115200n8" | 307 | CONFIG_CMDLINE="root=1f03 rootfstype=jffs2 console=ttyS2,115200n8" |
308 | # CONFIG_XIP_KERNEL is not set | 308 | # CONFIG_XIP_KERNEL is not set |
309 | # CONFIG_KEXEC is not set | 309 | # CONFIG_KEXEC is not set |
310 | 310 | ||
diff --git a/arch/arm/configs/omap3_beagle_defconfig b/arch/arm/configs/omap3_beagle_defconfig index 357d4021e2d0..b3c8cce0f8fb 100644 --- a/arch/arm/configs/omap3_beagle_defconfig +++ b/arch/arm/configs/omap3_beagle_defconfig | |||
@@ -969,7 +969,6 @@ CONFIG_USB_ETH_RNDIS=y | |||
969 | # | 969 | # |
970 | CONFIG_USB_OTG_UTILS=y | 970 | CONFIG_USB_OTG_UTILS=y |
971 | # CONFIG_USB_GPIO_VBUS is not set | 971 | # CONFIG_USB_GPIO_VBUS is not set |
972 | # CONFIG_ISP1301_OMAP is not set | ||
973 | CONFIG_TWL4030_USB=y | 972 | CONFIG_TWL4030_USB=y |
974 | # CONFIG_NOP_USB_XCEIV is not set | 973 | # CONFIG_NOP_USB_XCEIV is not set |
975 | CONFIG_MMC=y | 974 | CONFIG_MMC=y |
diff --git a/arch/arm/configs/omap3_pandora_defconfig b/arch/arm/configs/omap3_pandora_defconfig index b54ad2e2da36..150deafb0a6a 100644 --- a/arch/arm/configs/omap3_pandora_defconfig +++ b/arch/arm/configs/omap3_pandora_defconfig | |||
@@ -611,7 +611,7 @@ CONFIG_INPUT_KEYBOARD=y | |||
611 | # CONFIG_KEYBOARD_XTKBD is not set | 611 | # CONFIG_KEYBOARD_XTKBD is not set |
612 | # CONFIG_KEYBOARD_NEWTON is not set | 612 | # CONFIG_KEYBOARD_NEWTON is not set |
613 | # CONFIG_KEYBOARD_STOWAWAY is not set | 613 | # CONFIG_KEYBOARD_STOWAWAY is not set |
614 | # CONFIG_KEYBOARD_GPIO is not set | 614 | CONFIG_KEYBOARD_GPIO=y |
615 | CONFIG_INPUT_MOUSE=y | 615 | CONFIG_INPUT_MOUSE=y |
616 | # CONFIG_MOUSE_PS2 is not set | 616 | # CONFIG_MOUSE_PS2 is not set |
617 | # CONFIG_MOUSE_SERIAL is not set | 617 | # CONFIG_MOUSE_SERIAL is not set |
@@ -634,7 +634,8 @@ CONFIG_TOUCHSCREEN_ADS7846=y | |||
634 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | 634 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set |
635 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | 635 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set |
636 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set | 636 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set |
637 | # CONFIG_INPUT_MISC is not set | 637 | CONFIG_INPUT_MISC=y |
638 | CONFIG_INPUT_TWL4030_PWRBUTTON=y | ||
638 | 639 | ||
639 | # | 640 | # |
640 | # Hardware I/O ports | 641 | # Hardware I/O ports |
@@ -834,7 +835,29 @@ CONFIG_DAB=y | |||
834 | # | 835 | # |
835 | # CONFIG_VGA_CONSOLE is not set | 836 | # CONFIG_VGA_CONSOLE is not set |
836 | CONFIG_DUMMY_CONSOLE=y | 837 | CONFIG_DUMMY_CONSOLE=y |
837 | # CONFIG_SOUND is not set | 838 | CONFIG_SOUND=y |
839 | CONFIG_SOUND_OSS_CORE=y | ||
840 | CONFIG_SOUND_OSS_CORE_PRECLAIM=y | ||
841 | CONFIG_SND=y | ||
842 | CONFIG_SND_TIMER=y | ||
843 | CONFIG_SND_PCM=y | ||
844 | CONFIG_SND_JACK=y | ||
845 | CONFIG_SND_OSSEMUL=y | ||
846 | CONFIG_SND_MIXER_OSS=y | ||
847 | CONFIG_SND_PCM_OSS=y | ||
848 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
849 | CONFIG_SND_SUPPORT_OLD_API=y | ||
850 | CONFIG_SND_VERBOSE_PROCFS=y | ||
851 | CONFIG_SND_VERBOSE_PRINTK=y | ||
852 | CONFIG_SND_DRIVERS=y | ||
853 | CONFIG_SND_USB=y | ||
854 | CONFIG_SND_SOC=y | ||
855 | CONFIG_SND_OMAP_SOC=y | ||
856 | CONFIG_SND_OMAP_SOC_MCBSP=y | ||
857 | CONFIG_SND_OMAP_SOC_OMAP3_PANDORA=y | ||
858 | CONFIG_SND_SOC_I2C_AND_SPI=y | ||
859 | CONFIG_SND_SOC_TWL4030=y | ||
860 | |||
838 | CONFIG_HID_SUPPORT=y | 861 | CONFIG_HID_SUPPORT=y |
839 | CONFIG_HID=y | 862 | CONFIG_HID=y |
840 | # CONFIG_HID_DEBUG is not set | 863 | # CONFIG_HID_DEBUG is not set |
@@ -1020,7 +1043,13 @@ CONFIG_MMC_BLOCK_BOUNCE=y | |||
1020 | # CONFIG_MMC_SPI is not set | 1043 | # CONFIG_MMC_SPI is not set |
1021 | # CONFIG_MEMSTICK is not set | 1044 | # CONFIG_MEMSTICK is not set |
1022 | # CONFIG_ACCESSIBILITY is not set | 1045 | # CONFIG_ACCESSIBILITY is not set |
1023 | # CONFIG_NEW_LEDS is not set | 1046 | CONFIG_NEW_LEDS=y |
1047 | CONFIG_LEDS_CLASS=y | ||
1048 | CONFIG_LEDS_GPIO=y | ||
1049 | CONFIG_LEDS_GPIO_PLATFORM=y | ||
1050 | CONFIG_LEDS_TRIGGERS=y | ||
1051 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | ||
1052 | |||
1024 | CONFIG_RTC_LIB=y | 1053 | CONFIG_RTC_LIB=y |
1025 | CONFIG_RTC_CLASS=y | 1054 | CONFIG_RTC_CLASS=y |
1026 | CONFIG_RTC_HCTOSYS=y | 1055 | CONFIG_RTC_HCTOSYS=y |
@@ -1084,9 +1113,12 @@ CONFIG_RTC_DRV_TWL4030=y | |||
1084 | # on-CPU RTC drivers | 1113 | # on-CPU RTC drivers |
1085 | # | 1114 | # |
1086 | # CONFIG_DMADEVICES is not set | 1115 | # CONFIG_DMADEVICES is not set |
1087 | # CONFIG_REGULATOR is not set | ||
1088 | # CONFIG_UIO is not set | 1116 | # CONFIG_UIO is not set |
1089 | 1117 | ||
1118 | CONFIG_REGULATOR=y | ||
1119 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | ||
1120 | CONFIG_REGULATOR_TWL4030=y | ||
1121 | |||
1090 | # | 1122 | # |
1091 | # File systems | 1123 | # File systems |
1092 | # | 1124 | # |
@@ -1407,3 +1439,10 @@ CONFIG_PLIST=y | |||
1407 | CONFIG_HAS_IOMEM=y | 1439 | CONFIG_HAS_IOMEM=y |
1408 | CONFIG_HAS_IOPORT=y | 1440 | CONFIG_HAS_IOPORT=y |
1409 | CONFIG_HAS_DMA=y | 1441 | CONFIG_HAS_DMA=y |
1442 | |||
1443 | # added by hand for now | ||
1444 | CONFIG_KEYBOARD_TWL4030=y | ||
1445 | CONFIG_USB_OTG_UTILS=y | ||
1446 | CONFIG_TWL4030_USB=y | ||
1447 | CONFIG_MMC_OMAP_HS=y | ||
1448 | |||
diff --git a/arch/arm/configs/omap_3430sdp_defconfig b/arch/arm/configs/omap_3430sdp_defconfig index 8a4a7e2ba87b..5a305f015307 100644 --- a/arch/arm/configs/omap_3430sdp_defconfig +++ b/arch/arm/configs/omap_3430sdp_defconfig | |||
@@ -1703,7 +1703,14 @@ CONFIG_RTC_DRV_TWL4030=y | |||
1703 | # on-CPU RTC drivers | 1703 | # on-CPU RTC drivers |
1704 | # | 1704 | # |
1705 | # CONFIG_DMADEVICES is not set | 1705 | # CONFIG_DMADEVICES is not set |
1706 | # CONFIG_REGULATOR is not set | 1706 | CONFIG_REGULATOR=y |
1707 | # CONFIG_REGULATOR_DEBUG is not set | ||
1708 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
1709 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
1710 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
1711 | # CONFIG_REGULATOR_BQ24022 is not set | ||
1712 | # CONFIG_REGULATOR_MAX1586 is not set | ||
1713 | CONFIG_REGULATOR_TWL4030=y | ||
1707 | # CONFIG_UIO is not set | 1714 | # CONFIG_UIO is not set |
1708 | # CONFIG_STAGING is not set | 1715 | # CONFIG_STAGING is not set |
1709 | 1716 | ||
diff --git a/arch/arm/configs/orion5x_defconfig b/arch/arm/configs/orion5x_defconfig index 9e2385293ecb..5383cd0dff54 100644 --- a/arch/arm/configs/orion5x_defconfig +++ b/arch/arm/configs/orion5x_defconfig | |||
@@ -1,15 +1,13 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.30-rc4 | 3 | # Linux kernel version: 2.6.32-rc6 |
4 | # Mon May 4 14:07:25 2009 | 4 | # Sat Nov 7 20:52:21 2009 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
8 | CONFIG_GENERIC_GPIO=y | 8 | CONFIG_GENERIC_GPIO=y |
9 | CONFIG_GENERIC_TIME=y | 9 | CONFIG_GENERIC_TIME=y |
10 | CONFIG_GENERIC_CLOCKEVENTS=y | 10 | CONFIG_GENERIC_CLOCKEVENTS=y |
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | 11 | CONFIG_GENERIC_HARDIRQS=y |
14 | CONFIG_STACKTRACE_SUPPORT=y | 12 | CONFIG_STACKTRACE_SUPPORT=y |
15 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | 13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y |
@@ -18,13 +16,12 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y | |||
18 | CONFIG_HARDIRQS_SW_RESEND=y | 16 | CONFIG_HARDIRQS_SW_RESEND=y |
19 | CONFIG_GENERIC_IRQ_PROBE=y | 17 | CONFIG_GENERIC_IRQ_PROBE=y |
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
21 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
22 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
23 | CONFIG_GENERIC_HWEIGHT=y | 19 | CONFIG_GENERIC_HWEIGHT=y |
24 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 20 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
25 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | 21 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y |
26 | CONFIG_VECTORS_BASE=0xffff0000 | 22 | CONFIG_VECTORS_BASE=0xffff0000 |
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 23 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
24 | CONFIG_CONSTRUCTORS=y | ||
28 | 25 | ||
29 | # | 26 | # |
30 | # General setup | 27 | # General setup |
@@ -46,11 +43,12 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
46 | # | 43 | # |
47 | # RCU Subsystem | 44 | # RCU Subsystem |
48 | # | 45 | # |
49 | CONFIG_CLASSIC_RCU=y | 46 | CONFIG_TREE_RCU=y |
50 | # CONFIG_TREE_RCU is not set | 47 | # CONFIG_TREE_PREEMPT_RCU is not set |
51 | # CONFIG_PREEMPT_RCU is not set | 48 | # CONFIG_RCU_TRACE is not set |
49 | CONFIG_RCU_FANOUT=32 | ||
50 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
52 | # CONFIG_TREE_RCU_TRACE is not set | 51 | # CONFIG_TREE_RCU_TRACE is not set |
53 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
54 | # CONFIG_IKCONFIG is not set | 52 | # CONFIG_IKCONFIG is not set |
55 | CONFIG_LOG_BUF_SHIFT=14 | 53 | CONFIG_LOG_BUF_SHIFT=14 |
56 | # CONFIG_GROUP_SCHED is not set | 54 | # CONFIG_GROUP_SCHED is not set |
@@ -69,7 +67,6 @@ CONFIG_SYSCTL_SYSCALL=y | |||
69 | CONFIG_KALLSYMS=y | 67 | CONFIG_KALLSYMS=y |
70 | CONFIG_KALLSYMS_ALL=y | 68 | CONFIG_KALLSYMS_ALL=y |
71 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 69 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
72 | # CONFIG_STRIP_ASM_SYMS is not set | ||
73 | CONFIG_HOTPLUG=y | 70 | CONFIG_HOTPLUG=y |
74 | CONFIG_PRINTK=y | 71 | CONFIG_PRINTK=y |
75 | CONFIG_BUG=y | 72 | CONFIG_BUG=y |
@@ -82,6 +79,10 @@ CONFIG_TIMERFD=y | |||
82 | CONFIG_EVENTFD=y | 79 | CONFIG_EVENTFD=y |
83 | CONFIG_SHMEM=y | 80 | CONFIG_SHMEM=y |
84 | CONFIG_AIO=y | 81 | CONFIG_AIO=y |
82 | |||
83 | # | ||
84 | # Kernel Performance Events And Counters | ||
85 | # | ||
85 | CONFIG_VM_EVENT_COUNTERS=y | 86 | CONFIG_VM_EVENT_COUNTERS=y |
86 | CONFIG_PCI_QUIRKS=y | 87 | CONFIG_PCI_QUIRKS=y |
87 | # CONFIG_SLUB_DEBUG is not set | 88 | # CONFIG_SLUB_DEBUG is not set |
@@ -91,13 +92,17 @@ CONFIG_SLUB=y | |||
91 | # CONFIG_SLOB is not set | 92 | # CONFIG_SLOB is not set |
92 | CONFIG_PROFILING=y | 93 | CONFIG_PROFILING=y |
93 | CONFIG_TRACEPOINTS=y | 94 | CONFIG_TRACEPOINTS=y |
94 | # CONFIG_MARKERS is not set | ||
95 | CONFIG_OPROFILE=y | 95 | CONFIG_OPROFILE=y |
96 | CONFIG_HAVE_OPROFILE=y | 96 | CONFIG_HAVE_OPROFILE=y |
97 | CONFIG_KPROBES=y | 97 | CONFIG_KPROBES=y |
98 | CONFIG_KRETPROBES=y | 98 | CONFIG_KRETPROBES=y |
99 | CONFIG_HAVE_KPROBES=y | 99 | CONFIG_HAVE_KPROBES=y |
100 | CONFIG_HAVE_KRETPROBES=y | 100 | CONFIG_HAVE_KRETPROBES=y |
101 | |||
102 | # | ||
103 | # GCOV-based kernel profiling | ||
104 | # | ||
105 | # CONFIG_GCOV_KERNEL is not set | ||
101 | # CONFIG_SLOW_WORK is not set | 106 | # CONFIG_SLOW_WORK is not set |
102 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 107 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
103 | CONFIG_RT_MUTEXES=y | 108 | CONFIG_RT_MUTEXES=y |
@@ -109,7 +114,7 @@ CONFIG_MODULE_UNLOAD=y | |||
109 | # CONFIG_MODVERSIONS is not set | 114 | # CONFIG_MODVERSIONS is not set |
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 115 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 116 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 117 | CONFIG_LBDAF=y |
113 | # CONFIG_BLK_DEV_BSG is not set | 118 | # CONFIG_BLK_DEV_BSG is not set |
114 | # CONFIG_BLK_DEV_INTEGRITY is not set | 119 | # CONFIG_BLK_DEV_INTEGRITY is not set |
115 | 120 | ||
@@ -130,19 +135,22 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
130 | # | 135 | # |
131 | # System Type | 136 | # System Type |
132 | # | 137 | # |
138 | CONFIG_MMU=y | ||
133 | # CONFIG_ARCH_AAEC2000 is not set | 139 | # CONFIG_ARCH_AAEC2000 is not set |
134 | # CONFIG_ARCH_INTEGRATOR is not set | 140 | # CONFIG_ARCH_INTEGRATOR is not set |
135 | # CONFIG_ARCH_REALVIEW is not set | 141 | # CONFIG_ARCH_REALVIEW is not set |
136 | # CONFIG_ARCH_VERSATILE is not set | 142 | # CONFIG_ARCH_VERSATILE is not set |
137 | # CONFIG_ARCH_AT91 is not set | 143 | # CONFIG_ARCH_AT91 is not set |
138 | # CONFIG_ARCH_CLPS711X is not set | 144 | # CONFIG_ARCH_CLPS711X is not set |
145 | # CONFIG_ARCH_GEMINI is not set | ||
139 | # CONFIG_ARCH_EBSA110 is not set | 146 | # CONFIG_ARCH_EBSA110 is not set |
140 | # CONFIG_ARCH_EP93XX is not set | 147 | # CONFIG_ARCH_EP93XX is not set |
141 | # CONFIG_ARCH_GEMINI is not set | ||
142 | # CONFIG_ARCH_FOOTBRIDGE is not set | 148 | # CONFIG_ARCH_FOOTBRIDGE is not set |
149 | # CONFIG_ARCH_MXC is not set | ||
150 | # CONFIG_ARCH_STMP3XXX is not set | ||
143 | # CONFIG_ARCH_NETX is not set | 151 | # CONFIG_ARCH_NETX is not set |
144 | # CONFIG_ARCH_H720X is not set | 152 | # CONFIG_ARCH_H720X is not set |
145 | # CONFIG_ARCH_IMX is not set | 153 | # CONFIG_ARCH_NOMADIK is not set |
146 | # CONFIG_ARCH_IOP13XX is not set | 154 | # CONFIG_ARCH_IOP13XX is not set |
147 | # CONFIG_ARCH_IOP32X is not set | 155 | # CONFIG_ARCH_IOP32X is not set |
148 | # CONFIG_ARCH_IOP33X is not set | 156 | # CONFIG_ARCH_IOP33X is not set |
@@ -151,25 +159,27 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
151 | # CONFIG_ARCH_IXP4XX is not set | 159 | # CONFIG_ARCH_IXP4XX is not set |
152 | # CONFIG_ARCH_L7200 is not set | 160 | # CONFIG_ARCH_L7200 is not set |
153 | # CONFIG_ARCH_KIRKWOOD is not set | 161 | # CONFIG_ARCH_KIRKWOOD is not set |
154 | # CONFIG_ARCH_KS8695 is not set | ||
155 | # CONFIG_ARCH_NS9XXX is not set | ||
156 | # CONFIG_ARCH_LOKI is not set | 162 | # CONFIG_ARCH_LOKI is not set |
157 | # CONFIG_ARCH_MV78XX0 is not set | 163 | # CONFIG_ARCH_MV78XX0 is not set |
158 | # CONFIG_ARCH_MXC is not set | ||
159 | CONFIG_ARCH_ORION5X=y | 164 | CONFIG_ARCH_ORION5X=y |
165 | # CONFIG_ARCH_MMP is not set | ||
166 | # CONFIG_ARCH_KS8695 is not set | ||
167 | # CONFIG_ARCH_NS9XXX is not set | ||
168 | # CONFIG_ARCH_W90X900 is not set | ||
160 | # CONFIG_ARCH_PNX4008 is not set | 169 | # CONFIG_ARCH_PNX4008 is not set |
161 | # CONFIG_ARCH_PXA is not set | 170 | # CONFIG_ARCH_PXA is not set |
162 | # CONFIG_ARCH_MMP is not set | 171 | # CONFIG_ARCH_MSM is not set |
163 | # CONFIG_ARCH_RPC is not set | 172 | # CONFIG_ARCH_RPC is not set |
164 | # CONFIG_ARCH_SA1100 is not set | 173 | # CONFIG_ARCH_SA1100 is not set |
165 | # CONFIG_ARCH_S3C2410 is not set | 174 | # CONFIG_ARCH_S3C2410 is not set |
166 | # CONFIG_ARCH_S3C64XX is not set | 175 | # CONFIG_ARCH_S3C64XX is not set |
176 | # CONFIG_ARCH_S5PC1XX is not set | ||
167 | # CONFIG_ARCH_SHARK is not set | 177 | # CONFIG_ARCH_SHARK is not set |
168 | # CONFIG_ARCH_LH7A40X is not set | 178 | # CONFIG_ARCH_LH7A40X is not set |
179 | # CONFIG_ARCH_U300 is not set | ||
169 | # CONFIG_ARCH_DAVINCI is not set | 180 | # CONFIG_ARCH_DAVINCI is not set |
170 | # CONFIG_ARCH_OMAP is not set | 181 | # CONFIG_ARCH_OMAP is not set |
171 | # CONFIG_ARCH_MSM is not set | 182 | # CONFIG_ARCH_BCMRING is not set |
172 | # CONFIG_ARCH_W90X900 is not set | ||
173 | 183 | ||
174 | # | 184 | # |
175 | # Orion Implementations | 185 | # Orion Implementations |
@@ -187,6 +197,9 @@ CONFIG_MACH_WRT350N_V2=y | |||
187 | CONFIG_MACH_TS78XX=y | 197 | CONFIG_MACH_TS78XX=y |
188 | CONFIG_MACH_MV2120=y | 198 | CONFIG_MACH_MV2120=y |
189 | CONFIG_MACH_EDMINI_V2=y | 199 | CONFIG_MACH_EDMINI_V2=y |
200 | CONFIG_MACH_D2NET=y | ||
201 | CONFIG_MACH_BIGDISK=y | ||
202 | CONFIG_MACH_NET2BIG=y | ||
190 | CONFIG_MACH_MSS2=y | 203 | CONFIG_MACH_MSS2=y |
191 | CONFIG_MACH_WNR854T=y | 204 | CONFIG_MACH_WNR854T=y |
192 | CONFIG_MACH_RD88F5181L_GE=y | 205 | CONFIG_MACH_RD88F5181L_GE=y |
@@ -202,7 +215,7 @@ CONFIG_CPU_FEROCEON=y | |||
202 | CONFIG_CPU_FEROCEON_OLD_ID=y | 215 | CONFIG_CPU_FEROCEON_OLD_ID=y |
203 | CONFIG_CPU_32v5=y | 216 | CONFIG_CPU_32v5=y |
204 | CONFIG_CPU_ABRT_EV5T=y | 217 | CONFIG_CPU_ABRT_EV5T=y |
205 | CONFIG_CPU_PABRT_NOIFAR=y | 218 | CONFIG_CPU_PABRT_LEGACY=y |
206 | CONFIG_CPU_CACHE_VIVT=y | 219 | CONFIG_CPU_CACHE_VIVT=y |
207 | CONFIG_CPU_COPY_FEROCEON=y | 220 | CONFIG_CPU_COPY_FEROCEON=y |
208 | CONFIG_CPU_TLB_FEROCEON=y | 221 | CONFIG_CPU_TLB_FEROCEON=y |
@@ -215,7 +228,7 @@ CONFIG_CPU_CP15_MMU=y | |||
215 | CONFIG_ARM_THUMB=y | 228 | CONFIG_ARM_THUMB=y |
216 | # CONFIG_CPU_ICACHE_DISABLE is not set | 229 | # CONFIG_CPU_ICACHE_DISABLE is not set |
217 | # CONFIG_CPU_DCACHE_DISABLE is not set | 230 | # CONFIG_CPU_DCACHE_DISABLE is not set |
218 | # CONFIG_OUTER_CACHE is not set | 231 | CONFIG_ARM_L1_CACHE_SHIFT=5 |
219 | 232 | ||
220 | # | 233 | # |
221 | # Bus support | 234 | # Bus support |
@@ -240,11 +253,12 @@ CONFIG_VMSPLIT_3G=y | |||
240 | # CONFIG_VMSPLIT_2G is not set | 253 | # CONFIG_VMSPLIT_2G is not set |
241 | # CONFIG_VMSPLIT_1G is not set | 254 | # CONFIG_VMSPLIT_1G is not set |
242 | CONFIG_PAGE_OFFSET=0xC0000000 | 255 | CONFIG_PAGE_OFFSET=0xC0000000 |
256 | # CONFIG_PREEMPT_NONE is not set | ||
257 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
243 | CONFIG_PREEMPT=y | 258 | CONFIG_PREEMPT=y |
244 | CONFIG_HZ=100 | 259 | CONFIG_HZ=100 |
245 | CONFIG_AEABI=y | 260 | CONFIG_AEABI=y |
246 | CONFIG_OABI_COMPAT=y | 261 | CONFIG_OABI_COMPAT=y |
247 | CONFIG_ARCH_FLATMEM_HAS_HOLES=y | ||
248 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | 262 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set |
249 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | 263 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set |
250 | # CONFIG_HIGHMEM is not set | 264 | # CONFIG_HIGHMEM is not set |
@@ -259,12 +273,14 @@ CONFIG_SPLIT_PTLOCK_CPUS=4096 | |||
259 | # CONFIG_PHYS_ADDR_T_64BIT is not set | 273 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
260 | CONFIG_ZONE_DMA_FLAG=0 | 274 | CONFIG_ZONE_DMA_FLAG=0 |
261 | CONFIG_VIRT_TO_BUS=y | 275 | CONFIG_VIRT_TO_BUS=y |
262 | CONFIG_UNEVICTABLE_LRU=y | ||
263 | CONFIG_HAVE_MLOCK=y | 276 | CONFIG_HAVE_MLOCK=y |
264 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | 277 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y |
278 | # CONFIG_KSM is not set | ||
279 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
265 | CONFIG_LEDS=y | 280 | CONFIG_LEDS=y |
266 | CONFIG_LEDS_CPU=y | 281 | CONFIG_LEDS_CPU=y |
267 | CONFIG_ALIGNMENT_TRAP=y | 282 | CONFIG_ALIGNMENT_TRAP=y |
283 | CONFIG_UACCESS_WITH_MEMCPY=y | ||
268 | 284 | ||
269 | # | 285 | # |
270 | # Boot options | 286 | # Boot options |
@@ -308,6 +324,7 @@ CONFIG_PM=y | |||
308 | # CONFIG_PM_DEBUG is not set | 324 | # CONFIG_PM_DEBUG is not set |
309 | # CONFIG_SUSPEND is not set | 325 | # CONFIG_SUSPEND is not set |
310 | # CONFIG_APM_EMULATION is not set | 326 | # CONFIG_APM_EMULATION is not set |
327 | # CONFIG_PM_RUNTIME is not set | ||
311 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | 328 | CONFIG_ARCH_SUSPEND_POSSIBLE=y |
312 | CONFIG_NET=y | 329 | CONFIG_NET=y |
313 | 330 | ||
@@ -356,6 +373,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
356 | # CONFIG_NETFILTER is not set | 373 | # CONFIG_NETFILTER is not set |
357 | # CONFIG_IP_DCCP is not set | 374 | # CONFIG_IP_DCCP is not set |
358 | # CONFIG_IP_SCTP is not set | 375 | # CONFIG_IP_SCTP is not set |
376 | # CONFIG_RDS is not set | ||
359 | # CONFIG_TIPC is not set | 377 | # CONFIG_TIPC is not set |
360 | # CONFIG_ATM is not set | 378 | # CONFIG_ATM is not set |
361 | # CONFIG_BRIDGE is not set | 379 | # CONFIG_BRIDGE is not set |
@@ -378,6 +396,7 @@ CONFIG_NET_DSA_MV88E6123_61_65=y | |||
378 | # CONFIG_ECONET is not set | 396 | # CONFIG_ECONET is not set |
379 | # CONFIG_WAN_ROUTER is not set | 397 | # CONFIG_WAN_ROUTER is not set |
380 | # CONFIG_PHONET is not set | 398 | # CONFIG_PHONET is not set |
399 | # CONFIG_IEEE802154 is not set | ||
381 | # CONFIG_NET_SCHED is not set | 400 | # CONFIG_NET_SCHED is not set |
382 | # CONFIG_DCB is not set | 401 | # CONFIG_DCB is not set |
383 | 402 | ||
@@ -394,11 +413,15 @@ CONFIG_NET_PKTGEN=m | |||
394 | # CONFIG_AF_RXRPC is not set | 413 | # CONFIG_AF_RXRPC is not set |
395 | CONFIG_WIRELESS=y | 414 | CONFIG_WIRELESS=y |
396 | # CONFIG_CFG80211 is not set | 415 | # CONFIG_CFG80211 is not set |
416 | CONFIG_CFG80211_DEFAULT_PS_VALUE=0 | ||
397 | # CONFIG_WIRELESS_OLD_REGULATORY is not set | 417 | # CONFIG_WIRELESS_OLD_REGULATORY is not set |
398 | CONFIG_WIRELESS_EXT=y | 418 | CONFIG_WIRELESS_EXT=y |
399 | CONFIG_WIRELESS_EXT_SYSFS=y | 419 | CONFIG_WIRELESS_EXT_SYSFS=y |
400 | # CONFIG_LIB80211 is not set | 420 | # CONFIG_LIB80211 is not set |
401 | # CONFIG_MAC80211 is not set | 421 | |
422 | # | ||
423 | # CFG80211 needs to be enabled for MAC80211 | ||
424 | # | ||
402 | # CONFIG_WIMAX is not set | 425 | # CONFIG_WIMAX is not set |
403 | # CONFIG_RFKILL is not set | 426 | # CONFIG_RFKILL is not set |
404 | # CONFIG_NET_9P is not set | 427 | # CONFIG_NET_9P is not set |
@@ -411,6 +434,7 @@ CONFIG_WIRELESS_EXT_SYSFS=y | |||
411 | # Generic Driver Options | 434 | # Generic Driver Options |
412 | # | 435 | # |
413 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 436 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
437 | # CONFIG_DEVTMPFS is not set | ||
414 | CONFIG_STANDALONE=y | 438 | CONFIG_STANDALONE=y |
415 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 439 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
416 | CONFIG_FW_LOADER=y | 440 | CONFIG_FW_LOADER=y |
@@ -422,9 +446,9 @@ CONFIG_EXTRA_FIRMWARE="" | |||
422 | # CONFIG_CONNECTOR is not set | 446 | # CONFIG_CONNECTOR is not set |
423 | CONFIG_MTD=y | 447 | CONFIG_MTD=y |
424 | # CONFIG_MTD_DEBUG is not set | 448 | # CONFIG_MTD_DEBUG is not set |
449 | # CONFIG_MTD_TESTS is not set | ||
425 | # CONFIG_MTD_CONCAT is not set | 450 | # CONFIG_MTD_CONCAT is not set |
426 | CONFIG_MTD_PARTITIONS=y | 451 | CONFIG_MTD_PARTITIONS=y |
427 | # CONFIG_MTD_TESTS is not set | ||
428 | # CONFIG_MTD_REDBOOT_PARTS is not set | 452 | # CONFIG_MTD_REDBOOT_PARTS is not set |
429 | CONFIG_MTD_CMDLINE_PARTS=y | 453 | CONFIG_MTD_CMDLINE_PARTS=y |
430 | # CONFIG_MTD_AFS_PARTS is not set | 454 | # CONFIG_MTD_AFS_PARTS is not set |
@@ -537,6 +561,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
537 | # CONFIG_BLK_DEV_RAM is not set | 561 | # CONFIG_BLK_DEV_RAM is not set |
538 | # CONFIG_CDROM_PKTCDVD is not set | 562 | # CONFIG_CDROM_PKTCDVD is not set |
539 | # CONFIG_ATA_OVER_ETH is not set | 563 | # CONFIG_ATA_OVER_ETH is not set |
564 | # CONFIG_MG_DISK is not set | ||
540 | CONFIG_MISC_DEVICES=y | 565 | CONFIG_MISC_DEVICES=y |
541 | # CONFIG_PHANTOM is not set | 566 | # CONFIG_PHANTOM is not set |
542 | # CONFIG_SGI_IOC4 is not set | 567 | # CONFIG_SGI_IOC4 is not set |
@@ -552,7 +577,9 @@ CONFIG_MISC_DEVICES=y | |||
552 | # | 577 | # |
553 | # CONFIG_EEPROM_AT24 is not set | 578 | # CONFIG_EEPROM_AT24 is not set |
554 | # CONFIG_EEPROM_LEGACY is not set | 579 | # CONFIG_EEPROM_LEGACY is not set |
580 | # CONFIG_EEPROM_MAX6875 is not set | ||
555 | # CONFIG_EEPROM_93CX6 is not set | 581 | # CONFIG_EEPROM_93CX6 is not set |
582 | # CONFIG_CB710_CORE is not set | ||
556 | CONFIG_HAVE_IDE=y | 583 | CONFIG_HAVE_IDE=y |
557 | # CONFIG_IDE is not set | 584 | # CONFIG_IDE is not set |
558 | 585 | ||
@@ -576,10 +603,6 @@ CONFIG_BLK_DEV_SR=m | |||
576 | # CONFIG_BLK_DEV_SR_VENDOR is not set | 603 | # CONFIG_BLK_DEV_SR_VENDOR is not set |
577 | CONFIG_CHR_DEV_SG=m | 604 | CONFIG_CHR_DEV_SG=m |
578 | # CONFIG_CHR_DEV_SCH is not set | 605 | # CONFIG_CHR_DEV_SCH is not set |
579 | |||
580 | # | ||
581 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
582 | # | ||
583 | # CONFIG_SCSI_MULTI_LUN is not set | 606 | # CONFIG_SCSI_MULTI_LUN is not set |
584 | # CONFIG_SCSI_CONSTANTS is not set | 607 | # CONFIG_SCSI_CONSTANTS is not set |
585 | # CONFIG_SCSI_LOGGING is not set | 608 | # CONFIG_SCSI_LOGGING is not set |
@@ -596,6 +619,8 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
596 | # CONFIG_SCSI_SRP_ATTRS is not set | 619 | # CONFIG_SCSI_SRP_ATTRS is not set |
597 | CONFIG_SCSI_LOWLEVEL=y | 620 | CONFIG_SCSI_LOWLEVEL=y |
598 | # CONFIG_ISCSI_TCP is not set | 621 | # CONFIG_ISCSI_TCP is not set |
622 | # CONFIG_SCSI_BNX2_ISCSI is not set | ||
623 | # CONFIG_BE2ISCSI is not set | ||
599 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 624 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
600 | # CONFIG_SCSI_3W_9XXX is not set | 625 | # CONFIG_SCSI_3W_9XXX is not set |
601 | # CONFIG_SCSI_ACARD is not set | 626 | # CONFIG_SCSI_ACARD is not set |
@@ -604,6 +629,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
604 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 629 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
605 | # CONFIG_SCSI_AIC79XX is not set | 630 | # CONFIG_SCSI_AIC79XX is not set |
606 | # CONFIG_SCSI_AIC94XX is not set | 631 | # CONFIG_SCSI_AIC94XX is not set |
632 | # CONFIG_SCSI_MVSAS is not set | ||
607 | # CONFIG_SCSI_DPT_I2O is not set | 633 | # CONFIG_SCSI_DPT_I2O is not set |
608 | # CONFIG_SCSI_ADVANSYS is not set | 634 | # CONFIG_SCSI_ADVANSYS is not set |
609 | # CONFIG_SCSI_ARCMSR is not set | 635 | # CONFIG_SCSI_ARCMSR is not set |
@@ -620,7 +646,6 @@ CONFIG_SCSI_LOWLEVEL=y | |||
620 | # CONFIG_SCSI_IPS is not set | 646 | # CONFIG_SCSI_IPS is not set |
621 | # CONFIG_SCSI_INITIO is not set | 647 | # CONFIG_SCSI_INITIO is not set |
622 | # CONFIG_SCSI_INIA100 is not set | 648 | # CONFIG_SCSI_INIA100 is not set |
623 | # CONFIG_SCSI_MVSAS is not set | ||
624 | # CONFIG_SCSI_STEX is not set | 649 | # CONFIG_SCSI_STEX is not set |
625 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 650 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
626 | # CONFIG_SCSI_IPR is not set | 651 | # CONFIG_SCSI_IPR is not set |
@@ -632,11 +657,14 @@ CONFIG_SCSI_LOWLEVEL=y | |||
632 | # CONFIG_SCSI_DC390T is not set | 657 | # CONFIG_SCSI_DC390T is not set |
633 | # CONFIG_SCSI_NSP32 is not set | 658 | # CONFIG_SCSI_NSP32 is not set |
634 | # CONFIG_SCSI_DEBUG is not set | 659 | # CONFIG_SCSI_DEBUG is not set |
660 | # CONFIG_SCSI_PMCRAID is not set | ||
635 | # CONFIG_SCSI_SRP is not set | 661 | # CONFIG_SCSI_SRP is not set |
662 | # CONFIG_SCSI_BFA_FC is not set | ||
636 | # CONFIG_SCSI_DH is not set | 663 | # CONFIG_SCSI_DH is not set |
637 | # CONFIG_SCSI_OSD_INITIATOR is not set | 664 | # CONFIG_SCSI_OSD_INITIATOR is not set |
638 | CONFIG_ATA=y | 665 | CONFIG_ATA=y |
639 | # CONFIG_ATA_NONSTANDARD is not set | 666 | # CONFIG_ATA_NONSTANDARD is not set |
667 | CONFIG_ATA_VERBOSE_ERROR=y | ||
640 | CONFIG_SATA_PMP=y | 668 | CONFIG_SATA_PMP=y |
641 | # CONFIG_SATA_AHCI is not set | 669 | # CONFIG_SATA_AHCI is not set |
642 | # CONFIG_SATA_SIL24 is not set | 670 | # CONFIG_SATA_SIL24 is not set |
@@ -658,6 +686,7 @@ CONFIG_SATA_MV=y | |||
658 | # CONFIG_PATA_ALI is not set | 686 | # CONFIG_PATA_ALI is not set |
659 | # CONFIG_PATA_AMD is not set | 687 | # CONFIG_PATA_AMD is not set |
660 | # CONFIG_PATA_ARTOP is not set | 688 | # CONFIG_PATA_ARTOP is not set |
689 | # CONFIG_PATA_ATP867X is not set | ||
661 | # CONFIG_PATA_ATIIXP is not set | 690 | # CONFIG_PATA_ATIIXP is not set |
662 | # CONFIG_PATA_CMD640_PCI is not set | 691 | # CONFIG_PATA_CMD640_PCI is not set |
663 | # CONFIG_PATA_CMD64X is not set | 692 | # CONFIG_PATA_CMD64X is not set |
@@ -685,6 +714,7 @@ CONFIG_SATA_MV=y | |||
685 | # CONFIG_PATA_OPTIDMA is not set | 714 | # CONFIG_PATA_OPTIDMA is not set |
686 | # CONFIG_PATA_PDC_OLD is not set | 715 | # CONFIG_PATA_PDC_OLD is not set |
687 | # CONFIG_PATA_RADISYS is not set | 716 | # CONFIG_PATA_RADISYS is not set |
717 | # CONFIG_PATA_RDC is not set | ||
688 | # CONFIG_PATA_RZ1000 is not set | 718 | # CONFIG_PATA_RZ1000 is not set |
689 | # CONFIG_PATA_SC1200 is not set | 719 | # CONFIG_PATA_SC1200 is not set |
690 | # CONFIG_PATA_SERVERWORKS is not set | 720 | # CONFIG_PATA_SERVERWORKS is not set |
@@ -703,13 +733,16 @@ CONFIG_SATA_MV=y | |||
703 | # | 733 | # |
704 | 734 | ||
705 | # | 735 | # |
706 | # Enable only one of the two stacks, unless you know what you are doing | 736 | # You can enable one or both FireWire driver stacks. |
737 | # | ||
738 | |||
739 | # | ||
740 | # See the help texts for more information. | ||
707 | # | 741 | # |
708 | # CONFIG_FIREWIRE is not set | 742 | # CONFIG_FIREWIRE is not set |
709 | # CONFIG_IEEE1394 is not set | 743 | # CONFIG_IEEE1394 is not set |
710 | # CONFIG_I2O is not set | 744 | # CONFIG_I2O is not set |
711 | CONFIG_NETDEVICES=y | 745 | CONFIG_NETDEVICES=y |
712 | CONFIG_COMPAT_NET_DEV_OPS=y | ||
713 | # CONFIG_DUMMY is not set | 746 | # CONFIG_DUMMY is not set |
714 | # CONFIG_BONDING is not set | 747 | # CONFIG_BONDING is not set |
715 | # CONFIG_MACVLAN is not set | 748 | # CONFIG_MACVLAN is not set |
@@ -777,6 +810,8 @@ CONFIG_NET_PCI=y | |||
777 | # CONFIG_SMSC9420 is not set | 810 | # CONFIG_SMSC9420 is not set |
778 | # CONFIG_SUNDANCE is not set | 811 | # CONFIG_SUNDANCE is not set |
779 | # CONFIG_TLAN is not set | 812 | # CONFIG_TLAN is not set |
813 | # CONFIG_KS8842 is not set | ||
814 | # CONFIG_KS8851_MLL is not set | ||
780 | # CONFIG_VIA_RHINE is not set | 815 | # CONFIG_VIA_RHINE is not set |
781 | # CONFIG_SC92031 is not set | 816 | # CONFIG_SC92031 is not set |
782 | # CONFIG_ATL2 is not set | 817 | # CONFIG_ATL2 is not set |
@@ -798,6 +833,7 @@ CONFIG_NETDEV_1000=y | |||
798 | # CONFIG_VIA_VELOCITY is not set | 833 | # CONFIG_VIA_VELOCITY is not set |
799 | # CONFIG_TIGON3 is not set | 834 | # CONFIG_TIGON3 is not set |
800 | # CONFIG_BNX2 is not set | 835 | # CONFIG_BNX2 is not set |
836 | # CONFIG_CNIC is not set | ||
801 | CONFIG_MV643XX_ETH=y | 837 | CONFIG_MV643XX_ETH=y |
802 | # CONFIG_QLA3XXX is not set | 838 | # CONFIG_QLA3XXX is not set |
803 | # CONFIG_ATL1 is not set | 839 | # CONFIG_ATL1 is not set |
@@ -806,10 +842,7 @@ CONFIG_MV643XX_ETH=y | |||
806 | # CONFIG_JME is not set | 842 | # CONFIG_JME is not set |
807 | # CONFIG_NETDEV_10000 is not set | 843 | # CONFIG_NETDEV_10000 is not set |
808 | # CONFIG_TR is not set | 844 | # CONFIG_TR is not set |
809 | 845 | CONFIG_WLAN=y | |
810 | # | ||
811 | # Wireless LAN | ||
812 | # | ||
813 | # CONFIG_WLAN_PRE80211 is not set | 846 | # CONFIG_WLAN_PRE80211 is not set |
814 | # CONFIG_WLAN_80211 is not set | 847 | # CONFIG_WLAN_80211 is not set |
815 | 848 | ||
@@ -835,6 +868,7 @@ CONFIG_MV643XX_ETH=y | |||
835 | # CONFIG_NETPOLL is not set | 868 | # CONFIG_NETPOLL is not set |
836 | # CONFIG_NET_POLL_CONTROLLER is not set | 869 | # CONFIG_NET_POLL_CONTROLLER is not set |
837 | # CONFIG_ISDN is not set | 870 | # CONFIG_ISDN is not set |
871 | # CONFIG_PHONE is not set | ||
838 | 872 | ||
839 | # | 873 | # |
840 | # Input device support | 874 | # Input device support |
@@ -855,13 +889,19 @@ CONFIG_INPUT_EVDEV=y | |||
855 | # Input Device Drivers | 889 | # Input Device Drivers |
856 | # | 890 | # |
857 | CONFIG_INPUT_KEYBOARD=y | 891 | CONFIG_INPUT_KEYBOARD=y |
892 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
858 | # CONFIG_KEYBOARD_ATKBD is not set | 893 | # CONFIG_KEYBOARD_ATKBD is not set |
859 | # CONFIG_KEYBOARD_SUNKBD is not set | 894 | # CONFIG_QT2160 is not set |
860 | # CONFIG_KEYBOARD_LKKBD is not set | 895 | # CONFIG_KEYBOARD_LKKBD is not set |
861 | # CONFIG_KEYBOARD_XTKBD is not set | 896 | CONFIG_KEYBOARD_GPIO=y |
897 | # CONFIG_KEYBOARD_MATRIX is not set | ||
898 | # CONFIG_KEYBOARD_LM8323 is not set | ||
899 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
862 | # CONFIG_KEYBOARD_NEWTON is not set | 900 | # CONFIG_KEYBOARD_NEWTON is not set |
901 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
863 | # CONFIG_KEYBOARD_STOWAWAY is not set | 902 | # CONFIG_KEYBOARD_STOWAWAY is not set |
864 | CONFIG_KEYBOARD_GPIO=y | 903 | # CONFIG_KEYBOARD_SUNKBD is not set |
904 | # CONFIG_KEYBOARD_XTKBD is not set | ||
865 | # CONFIG_INPUT_MOUSE is not set | 905 | # CONFIG_INPUT_MOUSE is not set |
866 | # CONFIG_INPUT_JOYSTICK is not set | 906 | # CONFIG_INPUT_JOYSTICK is not set |
867 | # CONFIG_INPUT_TABLET is not set | 907 | # CONFIG_INPUT_TABLET is not set |
@@ -912,6 +952,7 @@ CONFIG_HW_RANDOM_TIMERIOMEM=m | |||
912 | CONFIG_DEVPORT=y | 952 | CONFIG_DEVPORT=y |
913 | CONFIG_I2C=y | 953 | CONFIG_I2C=y |
914 | CONFIG_I2C_BOARDINFO=y | 954 | CONFIG_I2C_BOARDINFO=y |
955 | # CONFIG_I2C_COMPAT is not set | ||
915 | CONFIG_I2C_CHARDEV=y | 956 | CONFIG_I2C_CHARDEV=y |
916 | CONFIG_I2C_HELPER_AUTO=y | 957 | CONFIG_I2C_HELPER_AUTO=y |
917 | 958 | ||
@@ -967,20 +1008,55 @@ CONFIG_I2C_MV64XXX=y | |||
967 | # Miscellaneous I2C Chip support | 1008 | # Miscellaneous I2C Chip support |
968 | # | 1009 | # |
969 | # CONFIG_DS1682 is not set | 1010 | # CONFIG_DS1682 is not set |
970 | # CONFIG_SENSORS_PCF8574 is not set | ||
971 | # CONFIG_PCF8575 is not set | ||
972 | # CONFIG_SENSORS_PCA9539 is not set | ||
973 | # CONFIG_SENSORS_MAX6875 is not set | ||
974 | # CONFIG_SENSORS_TSL2550 is not set | 1011 | # CONFIG_SENSORS_TSL2550 is not set |
975 | # CONFIG_I2C_DEBUG_CORE is not set | 1012 | # CONFIG_I2C_DEBUG_CORE is not set |
976 | # CONFIG_I2C_DEBUG_ALGO is not set | 1013 | # CONFIG_I2C_DEBUG_ALGO is not set |
977 | # CONFIG_I2C_DEBUG_BUS is not set | 1014 | # CONFIG_I2C_DEBUG_BUS is not set |
978 | # CONFIG_I2C_DEBUG_CHIP is not set | 1015 | # CONFIG_I2C_DEBUG_CHIP is not set |
979 | # CONFIG_SPI is not set | 1016 | # CONFIG_SPI is not set |
1017 | |||
1018 | # | ||
1019 | # PPS support | ||
1020 | # | ||
1021 | # CONFIG_PPS is not set | ||
1022 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
1023 | CONFIG_GPIOLIB=y | ||
1024 | # CONFIG_DEBUG_GPIO is not set | ||
1025 | CONFIG_GPIO_SYSFS=y | ||
1026 | |||
1027 | # | ||
1028 | # Memory mapped GPIO expanders: | ||
1029 | # | ||
1030 | |||
1031 | # | ||
1032 | # I2C GPIO expanders: | ||
1033 | # | ||
1034 | # CONFIG_GPIO_MAX732X is not set | ||
1035 | # CONFIG_GPIO_PCA953X is not set | ||
1036 | # CONFIG_GPIO_PCF857X is not set | ||
1037 | |||
1038 | # | ||
1039 | # PCI GPIO expanders: | ||
1040 | # | ||
1041 | # CONFIG_GPIO_BT8XX is not set | ||
1042 | # CONFIG_GPIO_LANGWELL is not set | ||
1043 | |||
1044 | # | ||
1045 | # SPI GPIO expanders: | ||
1046 | # | ||
1047 | |||
1048 | # | ||
1049 | # AC97 GPIO expanders: | ||
1050 | # | ||
980 | # CONFIG_W1 is not set | 1051 | # CONFIG_W1 is not set |
981 | # CONFIG_POWER_SUPPLY is not set | 1052 | # CONFIG_POWER_SUPPLY is not set |
982 | CONFIG_HWMON=y | 1053 | CONFIG_HWMON=y |
983 | # CONFIG_HWMON_VID is not set | 1054 | # CONFIG_HWMON_VID is not set |
1055 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1056 | |||
1057 | # | ||
1058 | # Native drivers | ||
1059 | # | ||
984 | # CONFIG_SENSORS_AD7414 is not set | 1060 | # CONFIG_SENSORS_AD7414 is not set |
985 | # CONFIG_SENSORS_AD7418 is not set | 1061 | # CONFIG_SENSORS_AD7418 is not set |
986 | # CONFIG_SENSORS_ADM1021 is not set | 1062 | # CONFIG_SENSORS_ADM1021 is not set |
@@ -1030,6 +1106,8 @@ CONFIG_SENSORS_LM75=y | |||
1030 | # CONFIG_SENSORS_SMSC47B397 is not set | 1106 | # CONFIG_SENSORS_SMSC47B397 is not set |
1031 | # CONFIG_SENSORS_ADS7828 is not set | 1107 | # CONFIG_SENSORS_ADS7828 is not set |
1032 | # CONFIG_SENSORS_THMC50 is not set | 1108 | # CONFIG_SENSORS_THMC50 is not set |
1109 | # CONFIG_SENSORS_TMP401 is not set | ||
1110 | # CONFIG_SENSORS_TMP421 is not set | ||
1033 | # CONFIG_SENSORS_VIA686A is not set | 1111 | # CONFIG_SENSORS_VIA686A is not set |
1034 | # CONFIG_SENSORS_VT1211 is not set | 1112 | # CONFIG_SENSORS_VT1211 is not set |
1035 | # CONFIG_SENSORS_VT8231 is not set | 1113 | # CONFIG_SENSORS_VT8231 is not set |
@@ -1041,9 +1119,7 @@ CONFIG_SENSORS_LM75=y | |||
1041 | # CONFIG_SENSORS_W83L786NG is not set | 1119 | # CONFIG_SENSORS_W83L786NG is not set |
1042 | # CONFIG_SENSORS_W83627HF is not set | 1120 | # CONFIG_SENSORS_W83627HF is not set |
1043 | # CONFIG_SENSORS_W83627EHF is not set | 1121 | # CONFIG_SENSORS_W83627EHF is not set |
1044 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1045 | # CONFIG_THERMAL is not set | 1122 | # CONFIG_THERMAL is not set |
1046 | # CONFIG_THERMAL_HWMON is not set | ||
1047 | # CONFIG_WATCHDOG is not set | 1123 | # CONFIG_WATCHDOG is not set |
1048 | CONFIG_SSB_POSSIBLE=y | 1124 | CONFIG_SSB_POSSIBLE=y |
1049 | 1125 | ||
@@ -1057,33 +1133,26 @@ CONFIG_SSB_POSSIBLE=y | |||
1057 | # | 1133 | # |
1058 | # CONFIG_MFD_CORE is not set | 1134 | # CONFIG_MFD_CORE is not set |
1059 | # CONFIG_MFD_SM501 is not set | 1135 | # CONFIG_MFD_SM501 is not set |
1136 | # CONFIG_MFD_ASIC3 is not set | ||
1137 | # CONFIG_HTC_EGPIO is not set | ||
1060 | # CONFIG_HTC_PASIC3 is not set | 1138 | # CONFIG_HTC_PASIC3 is not set |
1139 | # CONFIG_TPS65010 is not set | ||
1061 | # CONFIG_TWL4030_CORE is not set | 1140 | # CONFIG_TWL4030_CORE is not set |
1062 | # CONFIG_MFD_TMIO is not set | 1141 | # CONFIG_MFD_TMIO is not set |
1142 | # CONFIG_MFD_TC6393XB is not set | ||
1063 | # CONFIG_PMIC_DA903X is not set | 1143 | # CONFIG_PMIC_DA903X is not set |
1064 | # CONFIG_MFD_WM8400 is not set | 1144 | # CONFIG_MFD_WM8400 is not set |
1145 | # CONFIG_MFD_WM831X is not set | ||
1065 | # CONFIG_MFD_WM8350_I2C is not set | 1146 | # CONFIG_MFD_WM8350_I2C is not set |
1066 | # CONFIG_MFD_PCF50633 is not set | 1147 | # CONFIG_MFD_PCF50633 is not set |
1067 | 1148 | # CONFIG_AB3100_CORE is not set | |
1068 | # | 1149 | # CONFIG_REGULATOR is not set |
1069 | # Multimedia devices | 1150 | # CONFIG_MEDIA_SUPPORT is not set |
1070 | # | ||
1071 | |||
1072 | # | ||
1073 | # Multimedia core support | ||
1074 | # | ||
1075 | # CONFIG_VIDEO_DEV is not set | ||
1076 | # CONFIG_DVB_CORE is not set | ||
1077 | # CONFIG_VIDEO_MEDIA is not set | ||
1078 | |||
1079 | # | ||
1080 | # Multimedia drivers | ||
1081 | # | ||
1082 | # CONFIG_DAB is not set | ||
1083 | 1151 | ||
1084 | # | 1152 | # |
1085 | # Graphics support | 1153 | # Graphics support |
1086 | # | 1154 | # |
1155 | # CONFIG_VGA_ARB is not set | ||
1087 | # CONFIG_DRM is not set | 1156 | # CONFIG_DRM is not set |
1088 | # CONFIG_VGASTATE is not set | 1157 | # CONFIG_VGASTATE is not set |
1089 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | 1158 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set |
@@ -1097,7 +1166,6 @@ CONFIG_SSB_POSSIBLE=y | |||
1097 | # CONFIG_SOUND is not set | 1166 | # CONFIG_SOUND is not set |
1098 | CONFIG_HID_SUPPORT=y | 1167 | CONFIG_HID_SUPPORT=y |
1099 | CONFIG_HID=y | 1168 | CONFIG_HID=y |
1100 | # CONFIG_HID_DEBUG is not set | ||
1101 | # CONFIG_HIDRAW is not set | 1169 | # CONFIG_HIDRAW is not set |
1102 | 1170 | ||
1103 | # | 1171 | # |
@@ -1116,10 +1184,11 @@ CONFIG_USB_HID=y | |||
1116 | # CONFIG_HID_CHERRY is not set | 1184 | # CONFIG_HID_CHERRY is not set |
1117 | # CONFIG_HID_CHICONY is not set | 1185 | # CONFIG_HID_CHICONY is not set |
1118 | # CONFIG_HID_CYPRESS is not set | 1186 | # CONFIG_HID_CYPRESS is not set |
1119 | # CONFIG_DRAGONRISE_FF is not set | 1187 | # CONFIG_HID_DRAGONRISE is not set |
1120 | # CONFIG_HID_EZKEY is not set | 1188 | # CONFIG_HID_EZKEY is not set |
1121 | # CONFIG_HID_KYE is not set | 1189 | # CONFIG_HID_KYE is not set |
1122 | # CONFIG_HID_GYRATION is not set | 1190 | # CONFIG_HID_GYRATION is not set |
1191 | # CONFIG_HID_TWINHAN is not set | ||
1123 | # CONFIG_HID_KENSINGTON is not set | 1192 | # CONFIG_HID_KENSINGTON is not set |
1124 | # CONFIG_HID_LOGITECH is not set | 1193 | # CONFIG_HID_LOGITECH is not set |
1125 | # CONFIG_HID_MICROSOFT is not set | 1194 | # CONFIG_HID_MICROSOFT is not set |
@@ -1130,10 +1199,11 @@ CONFIG_USB_HID=y | |||
1130 | # CONFIG_HID_SAMSUNG is not set | 1199 | # CONFIG_HID_SAMSUNG is not set |
1131 | # CONFIG_HID_SONY is not set | 1200 | # CONFIG_HID_SONY is not set |
1132 | # CONFIG_HID_SUNPLUS is not set | 1201 | # CONFIG_HID_SUNPLUS is not set |
1133 | # CONFIG_GREENASIA_FF is not set | 1202 | # CONFIG_HID_GREENASIA is not set |
1203 | # CONFIG_HID_SMARTJOYPLUS is not set | ||
1134 | # CONFIG_HID_TOPSEED is not set | 1204 | # CONFIG_HID_TOPSEED is not set |
1135 | # CONFIG_THRUSTMASTER_FF is not set | 1205 | # CONFIG_HID_THRUSTMASTER is not set |
1136 | # CONFIG_ZEROPLUS_FF is not set | 1206 | # CONFIG_HID_ZEROPLUS is not set |
1137 | CONFIG_USB_SUPPORT=y | 1207 | CONFIG_USB_SUPPORT=y |
1138 | CONFIG_USB_ARCH_HAS_HCD=y | 1208 | CONFIG_USB_ARCH_HAS_HCD=y |
1139 | CONFIG_USB_ARCH_HAS_OHCI=y | 1209 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -1160,18 +1230,21 @@ CONFIG_USB_DEVICE_CLASS=y | |||
1160 | # USB Host Controller Drivers | 1230 | # USB Host Controller Drivers |
1161 | # | 1231 | # |
1162 | # CONFIG_USB_C67X00_HCD is not set | 1232 | # CONFIG_USB_C67X00_HCD is not set |
1233 | # CONFIG_USB_XHCI_HCD is not set | ||
1163 | CONFIG_USB_EHCI_HCD=y | 1234 | CONFIG_USB_EHCI_HCD=y |
1164 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | 1235 | CONFIG_USB_EHCI_ROOT_HUB_TT=y |
1165 | CONFIG_USB_EHCI_TT_NEWSCHED=y | 1236 | CONFIG_USB_EHCI_TT_NEWSCHED=y |
1166 | # CONFIG_USB_OXU210HP_HCD is not set | 1237 | # CONFIG_USB_OXU210HP_HCD is not set |
1167 | # CONFIG_USB_ISP116X_HCD is not set | 1238 | # CONFIG_USB_ISP116X_HCD is not set |
1168 | # CONFIG_USB_ISP1760_HCD is not set | 1239 | # CONFIG_USB_ISP1760_HCD is not set |
1240 | # CONFIG_USB_ISP1362_HCD is not set | ||
1169 | # CONFIG_USB_OHCI_HCD is not set | 1241 | # CONFIG_USB_OHCI_HCD is not set |
1170 | # CONFIG_USB_UHCI_HCD is not set | 1242 | # CONFIG_USB_UHCI_HCD is not set |
1171 | # CONFIG_USB_SL811_HCD is not set | 1243 | # CONFIG_USB_SL811_HCD is not set |
1172 | # CONFIG_USB_R8A66597_HCD is not set | 1244 | # CONFIG_USB_R8A66597_HCD is not set |
1173 | # CONFIG_USB_WHCI_HCD is not set | 1245 | # CONFIG_USB_WHCI_HCD is not set |
1174 | # CONFIG_USB_HWA_HCD is not set | 1246 | # CONFIG_USB_HWA_HCD is not set |
1247 | # CONFIG_USB_MUSB_HDRC is not set | ||
1175 | 1248 | ||
1176 | # | 1249 | # |
1177 | # USB Device Class drivers | 1250 | # USB Device Class drivers |
@@ -1248,7 +1321,6 @@ CONFIG_USB_STORAGE_JUMPSHOT=y | |||
1248 | # CONFIG_UWB is not set | 1321 | # CONFIG_UWB is not set |
1249 | # CONFIG_MMC is not set | 1322 | # CONFIG_MMC is not set |
1250 | # CONFIG_MEMSTICK is not set | 1323 | # CONFIG_MEMSTICK is not set |
1251 | # CONFIG_ACCESSIBILITY is not set | ||
1252 | CONFIG_NEW_LEDS=y | 1324 | CONFIG_NEW_LEDS=y |
1253 | CONFIG_LEDS_CLASS=y | 1325 | CONFIG_LEDS_CLASS=y |
1254 | 1326 | ||
@@ -1258,7 +1330,7 @@ CONFIG_LEDS_CLASS=y | |||
1258 | # CONFIG_LEDS_PCA9532 is not set | 1330 | # CONFIG_LEDS_PCA9532 is not set |
1259 | CONFIG_LEDS_GPIO=y | 1331 | CONFIG_LEDS_GPIO=y |
1260 | CONFIG_LEDS_GPIO_PLATFORM=y | 1332 | CONFIG_LEDS_GPIO_PLATFORM=y |
1261 | # CONFIG_LEDS_LP5521 is not set | 1333 | # CONFIG_LEDS_LP3944 is not set |
1262 | # CONFIG_LEDS_PCA955X is not set | 1334 | # CONFIG_LEDS_PCA955X is not set |
1263 | # CONFIG_LEDS_BD2802 is not set | 1335 | # CONFIG_LEDS_BD2802 is not set |
1264 | 1336 | ||
@@ -1269,11 +1341,14 @@ CONFIG_LEDS_TRIGGERS=y | |||
1269 | CONFIG_LEDS_TRIGGER_TIMER=y | 1341 | CONFIG_LEDS_TRIGGER_TIMER=y |
1270 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 1342 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
1271 | # CONFIG_LEDS_TRIGGER_BACKLIGHT is not set | 1343 | # CONFIG_LEDS_TRIGGER_BACKLIGHT is not set |
1344 | # CONFIG_LEDS_TRIGGER_GPIO is not set | ||
1272 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | 1345 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y |
1273 | 1346 | ||
1274 | # | 1347 | # |
1275 | # iptables trigger is under Netfilter config (LED target) | 1348 | # iptables trigger is under Netfilter config (LED target) |
1276 | # | 1349 | # |
1350 | # CONFIG_ACCESSIBILITY is not set | ||
1351 | # CONFIG_INFINIBAND is not set | ||
1277 | CONFIG_RTC_LIB=y | 1352 | CONFIG_RTC_LIB=y |
1278 | CONFIG_RTC_CLASS=y | 1353 | CONFIG_RTC_CLASS=y |
1279 | CONFIG_RTC_HCTOSYS=y | 1354 | CONFIG_RTC_HCTOSYS=y |
@@ -1306,6 +1381,7 @@ CONFIG_RTC_DRV_M41T80=y | |||
1306 | CONFIG_RTC_DRV_S35390A=y | 1381 | CONFIG_RTC_DRV_S35390A=y |
1307 | # CONFIG_RTC_DRV_FM3130 is not set | 1382 | # CONFIG_RTC_DRV_FM3130 is not set |
1308 | # CONFIG_RTC_DRV_RX8581 is not set | 1383 | # CONFIG_RTC_DRV_RX8581 is not set |
1384 | # CONFIG_RTC_DRV_RX8025 is not set | ||
1309 | 1385 | ||
1310 | # | 1386 | # |
1311 | # SPI RTC drivers | 1387 | # SPI RTC drivers |
@@ -1344,8 +1420,11 @@ CONFIG_DMA_ENGINE=y | |||
1344 | # CONFIG_ASYNC_TX_DMA is not set | 1420 | # CONFIG_ASYNC_TX_DMA is not set |
1345 | # CONFIG_DMATEST is not set | 1421 | # CONFIG_DMATEST is not set |
1346 | # CONFIG_AUXDISPLAY is not set | 1422 | # CONFIG_AUXDISPLAY is not set |
1347 | # CONFIG_REGULATOR is not set | ||
1348 | # CONFIG_UIO is not set | 1423 | # CONFIG_UIO is not set |
1424 | |||
1425 | # | ||
1426 | # TI VLYNQ | ||
1427 | # | ||
1349 | # CONFIG_STAGING is not set | 1428 | # CONFIG_STAGING is not set |
1350 | 1429 | ||
1351 | # | 1430 | # |
@@ -1358,10 +1437,10 @@ CONFIG_EXT3_FS=y | |||
1358 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | 1437 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set |
1359 | # CONFIG_EXT3_FS_XATTR is not set | 1438 | # CONFIG_EXT3_FS_XATTR is not set |
1360 | CONFIG_EXT4_FS=m | 1439 | CONFIG_EXT4_FS=m |
1361 | # CONFIG_EXT4DEV_COMPAT is not set | ||
1362 | CONFIG_EXT4_FS_XATTR=y | 1440 | CONFIG_EXT4_FS_XATTR=y |
1363 | # CONFIG_EXT4_FS_POSIX_ACL is not set | 1441 | # CONFIG_EXT4_FS_POSIX_ACL is not set |
1364 | # CONFIG_EXT4_FS_SECURITY is not set | 1442 | # CONFIG_EXT4_FS_SECURITY is not set |
1443 | # CONFIG_EXT4_DEBUG is not set | ||
1365 | CONFIG_JBD=y | 1444 | CONFIG_JBD=y |
1366 | # CONFIG_JBD_DEBUG is not set | 1445 | # CONFIG_JBD_DEBUG is not set |
1367 | CONFIG_JBD2=m | 1446 | CONFIG_JBD2=m |
@@ -1370,10 +1449,13 @@ CONFIG_FS_MBCACHE=m | |||
1370 | # CONFIG_REISERFS_FS is not set | 1449 | # CONFIG_REISERFS_FS is not set |
1371 | # CONFIG_JFS_FS is not set | 1450 | # CONFIG_JFS_FS is not set |
1372 | # CONFIG_FS_POSIX_ACL is not set | 1451 | # CONFIG_FS_POSIX_ACL is not set |
1373 | CONFIG_FILE_LOCKING=y | ||
1374 | # CONFIG_XFS_FS is not set | 1452 | # CONFIG_XFS_FS is not set |
1453 | # CONFIG_GFS2_FS is not set | ||
1375 | # CONFIG_OCFS2_FS is not set | 1454 | # CONFIG_OCFS2_FS is not set |
1376 | # CONFIG_BTRFS_FS is not set | 1455 | # CONFIG_BTRFS_FS is not set |
1456 | # CONFIG_NILFS2_FS is not set | ||
1457 | CONFIG_FILE_LOCKING=y | ||
1458 | CONFIG_FSNOTIFY=y | ||
1377 | CONFIG_DNOTIFY=y | 1459 | CONFIG_DNOTIFY=y |
1378 | CONFIG_INOTIFY=y | 1460 | CONFIG_INOTIFY=y |
1379 | CONFIG_INOTIFY_USER=y | 1461 | CONFIG_INOTIFY_USER=y |
@@ -1446,7 +1528,6 @@ CONFIG_CRAMFS=y | |||
1446 | # CONFIG_ROMFS_FS is not set | 1528 | # CONFIG_ROMFS_FS is not set |
1447 | # CONFIG_SYSV_FS is not set | 1529 | # CONFIG_SYSV_FS is not set |
1448 | # CONFIG_UFS_FS is not set | 1530 | # CONFIG_UFS_FS is not set |
1449 | # CONFIG_NILFS2_FS is not set | ||
1450 | CONFIG_NETWORK_FILESYSTEMS=y | 1531 | CONFIG_NETWORK_FILESYSTEMS=y |
1451 | CONFIG_NFS_FS=y | 1532 | CONFIG_NFS_FS=y |
1452 | CONFIG_NFS_V3=y | 1533 | CONFIG_NFS_V3=y |
@@ -1537,6 +1618,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y | |||
1537 | CONFIG_ENABLE_MUST_CHECK=y | 1618 | CONFIG_ENABLE_MUST_CHECK=y |
1538 | CONFIG_FRAME_WARN=1024 | 1619 | CONFIG_FRAME_WARN=1024 |
1539 | CONFIG_MAGIC_SYSRQ=y | 1620 | CONFIG_MAGIC_SYSRQ=y |
1621 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1540 | # CONFIG_UNUSED_SYMBOLS is not set | 1622 | # CONFIG_UNUSED_SYMBOLS is not set |
1541 | CONFIG_DEBUG_FS=y | 1623 | CONFIG_DEBUG_FS=y |
1542 | # CONFIG_HEADERS_CHECK is not set | 1624 | # CONFIG_HEADERS_CHECK is not set |
@@ -1552,6 +1634,7 @@ CONFIG_SCHED_DEBUG=y | |||
1552 | CONFIG_SCHEDSTATS=y | 1634 | CONFIG_SCHEDSTATS=y |
1553 | # CONFIG_TIMER_STATS is not set | 1635 | # CONFIG_TIMER_STATS is not set |
1554 | # CONFIG_DEBUG_OBJECTS is not set | 1636 | # CONFIG_DEBUG_OBJECTS is not set |
1637 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1555 | CONFIG_DEBUG_PREEMPT=y | 1638 | CONFIG_DEBUG_PREEMPT=y |
1556 | # CONFIG_DEBUG_RT_MUTEXES is not set | 1639 | # CONFIG_DEBUG_RT_MUTEXES is not set |
1557 | # CONFIG_RT_MUTEX_TESTER is not set | 1640 | # CONFIG_RT_MUTEX_TESTER is not set |
@@ -1572,6 +1655,7 @@ CONFIG_DEBUG_INFO=y | |||
1572 | # CONFIG_DEBUG_LIST is not set | 1655 | # CONFIG_DEBUG_LIST is not set |
1573 | # CONFIG_DEBUG_SG is not set | 1656 | # CONFIG_DEBUG_SG is not set |
1574 | # CONFIG_DEBUG_NOTIFIERS is not set | 1657 | # CONFIG_DEBUG_NOTIFIERS is not set |
1658 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1575 | CONFIG_FRAME_POINTER=y | 1659 | CONFIG_FRAME_POINTER=y |
1576 | # CONFIG_BOOT_PRINTK_DELAY is not set | 1660 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1577 | # CONFIG_RCU_TORTURE_TEST is not set | 1661 | # CONFIG_RCU_TORTURE_TEST is not set |
@@ -1579,6 +1663,7 @@ CONFIG_FRAME_POINTER=y | |||
1579 | # CONFIG_KPROBES_SANITY_TEST is not set | 1663 | # CONFIG_KPROBES_SANITY_TEST is not set |
1580 | # CONFIG_BACKTRACE_SELF_TEST is not set | 1664 | # CONFIG_BACKTRACE_SELF_TEST is not set |
1581 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | 1665 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set |
1666 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1582 | # CONFIG_LKDTM is not set | 1667 | # CONFIG_LKDTM is not set |
1583 | # CONFIG_FAULT_INJECTION is not set | 1668 | # CONFIG_FAULT_INJECTION is not set |
1584 | CONFIG_LATENCYTOP=y | 1669 | CONFIG_LATENCYTOP=y |
@@ -1587,25 +1672,12 @@ CONFIG_SYSCTL_SYSCALL_CHECK=y | |||
1587 | CONFIG_NOP_TRACER=y | 1672 | CONFIG_NOP_TRACER=y |
1588 | CONFIG_HAVE_FUNCTION_TRACER=y | 1673 | CONFIG_HAVE_FUNCTION_TRACER=y |
1589 | CONFIG_RING_BUFFER=y | 1674 | CONFIG_RING_BUFFER=y |
1675 | CONFIG_EVENT_TRACING=y | ||
1676 | CONFIG_CONTEXT_SWITCH_TRACER=y | ||
1677 | CONFIG_RING_BUFFER_ALLOW_SWAP=y | ||
1590 | CONFIG_TRACING=y | 1678 | CONFIG_TRACING=y |
1591 | CONFIG_TRACING_SUPPORT=y | 1679 | CONFIG_TRACING_SUPPORT=y |
1592 | 1680 | # CONFIG_FTRACE is not set | |
1593 | # | ||
1594 | # Tracers | ||
1595 | # | ||
1596 | # CONFIG_FUNCTION_TRACER is not set | ||
1597 | # CONFIG_IRQSOFF_TRACER is not set | ||
1598 | # CONFIG_PREEMPT_TRACER is not set | ||
1599 | # CONFIG_SCHED_TRACER is not set | ||
1600 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1601 | # CONFIG_EVENT_TRACER is not set | ||
1602 | # CONFIG_BOOT_TRACER is not set | ||
1603 | # CONFIG_TRACE_BRANCH_PROFILING is not set | ||
1604 | # CONFIG_STACK_TRACER is not set | ||
1605 | # CONFIG_KMEMTRACE is not set | ||
1606 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1607 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1608 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
1609 | # CONFIG_DYNAMIC_DEBUG is not set | 1681 | # CONFIG_DYNAMIC_DEBUG is not set |
1610 | # CONFIG_SAMPLES is not set | 1682 | # CONFIG_SAMPLES is not set |
1611 | CONFIG_HAVE_ARCH_KGDB=y | 1683 | CONFIG_HAVE_ARCH_KGDB=y |
@@ -1629,20 +1701,19 @@ CONFIG_CRYPTO=y | |||
1629 | # | 1701 | # |
1630 | # Crypto core or helper | 1702 | # Crypto core or helper |
1631 | # | 1703 | # |
1632 | # CONFIG_CRYPTO_FIPS is not set | 1704 | CONFIG_CRYPTO_ALGAPI=y |
1633 | CONFIG_CRYPTO_ALGAPI=m | 1705 | CONFIG_CRYPTO_ALGAPI2=y |
1634 | CONFIG_CRYPTO_ALGAPI2=m | 1706 | CONFIG_CRYPTO_AEAD2=y |
1635 | CONFIG_CRYPTO_AEAD2=m | ||
1636 | CONFIG_CRYPTO_BLKCIPHER=m | 1707 | CONFIG_CRYPTO_BLKCIPHER=m |
1637 | CONFIG_CRYPTO_BLKCIPHER2=m | 1708 | CONFIG_CRYPTO_BLKCIPHER2=y |
1638 | CONFIG_CRYPTO_HASH2=m | 1709 | CONFIG_CRYPTO_HASH2=y |
1639 | CONFIG_CRYPTO_RNG2=m | 1710 | CONFIG_CRYPTO_RNG2=y |
1640 | CONFIG_CRYPTO_PCOMP=m | 1711 | CONFIG_CRYPTO_PCOMP=y |
1641 | CONFIG_CRYPTO_MANAGER=m | 1712 | CONFIG_CRYPTO_MANAGER=m |
1642 | CONFIG_CRYPTO_MANAGER2=m | 1713 | CONFIG_CRYPTO_MANAGER2=y |
1643 | # CONFIG_CRYPTO_GF128MUL is not set | 1714 | # CONFIG_CRYPTO_GF128MUL is not set |
1644 | # CONFIG_CRYPTO_NULL is not set | 1715 | # CONFIG_CRYPTO_NULL is not set |
1645 | CONFIG_CRYPTO_WORKQUEUE=m | 1716 | CONFIG_CRYPTO_WORKQUEUE=y |
1646 | # CONFIG_CRYPTO_CRYPTD is not set | 1717 | # CONFIG_CRYPTO_CRYPTD is not set |
1647 | # CONFIG_CRYPTO_AUTHENC is not set | 1718 | # CONFIG_CRYPTO_AUTHENC is not set |
1648 | # CONFIG_CRYPTO_TEST is not set | 1719 | # CONFIG_CRYPTO_TEST is not set |
@@ -1670,11 +1741,13 @@ CONFIG_CRYPTO_PCBC=m | |||
1670 | # | 1741 | # |
1671 | # CONFIG_CRYPTO_HMAC is not set | 1742 | # CONFIG_CRYPTO_HMAC is not set |
1672 | # CONFIG_CRYPTO_XCBC is not set | 1743 | # CONFIG_CRYPTO_XCBC is not set |
1744 | # CONFIG_CRYPTO_VMAC is not set | ||
1673 | 1745 | ||
1674 | # | 1746 | # |
1675 | # Digest | 1747 | # Digest |
1676 | # | 1748 | # |
1677 | # CONFIG_CRYPTO_CRC32C is not set | 1749 | # CONFIG_CRYPTO_CRC32C is not set |
1750 | # CONFIG_CRYPTO_GHASH is not set | ||
1678 | # CONFIG_CRYPTO_MD4 is not set | 1751 | # CONFIG_CRYPTO_MD4 is not set |
1679 | # CONFIG_CRYPTO_MD5 is not set | 1752 | # CONFIG_CRYPTO_MD5 is not set |
1680 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | 1753 | # CONFIG_CRYPTO_MICHAEL_MIC is not set |
@@ -1691,7 +1764,7 @@ CONFIG_CRYPTO_PCBC=m | |||
1691 | # | 1764 | # |
1692 | # Ciphers | 1765 | # Ciphers |
1693 | # | 1766 | # |
1694 | # CONFIG_CRYPTO_AES is not set | 1767 | CONFIG_CRYPTO_AES=y |
1695 | # CONFIG_CRYPTO_ANUBIS is not set | 1768 | # CONFIG_CRYPTO_ANUBIS is not set |
1696 | # CONFIG_CRYPTO_ARC4 is not set | 1769 | # CONFIG_CRYPTO_ARC4 is not set |
1697 | # CONFIG_CRYPTO_BLOWFISH is not set | 1770 | # CONFIG_CRYPTO_BLOWFISH is not set |
@@ -1719,6 +1792,7 @@ CONFIG_CRYPTO_PCBC=m | |||
1719 | # | 1792 | # |
1720 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 1793 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
1721 | CONFIG_CRYPTO_HW=y | 1794 | CONFIG_CRYPTO_HW=y |
1795 | CONFIG_CRYPTO_DEV_MV_CESA=y | ||
1722 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | 1796 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set |
1723 | CONFIG_BINARY_PRINTF=y | 1797 | CONFIG_BINARY_PRINTF=y |
1724 | 1798 | ||
diff --git a/arch/arm/configs/u300_defconfig b/arch/arm/configs/u300_defconfig index 7d61ae6e75da..953ba0297fc4 100644 --- a/arch/arm/configs/u300_defconfig +++ b/arch/arm/configs/u300_defconfig | |||
@@ -1,14 +1,14 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.31-rc3 | 3 | # Linux kernel version: 2.6.32-rc5 |
4 | # Thu Jul 16 23:36:10 2009 | 4 | # Sat Oct 17 23:32:24 2009 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
8 | CONFIG_GENERIC_GPIO=y | 8 | CONFIG_GENERIC_GPIO=y |
9 | CONFIG_GENERIC_TIME=y | 9 | CONFIG_GENERIC_TIME=y |
10 | CONFIG_GENERIC_CLOCKEVENTS=y | 10 | CONFIG_GENERIC_CLOCKEVENTS=y |
11 | CONFIG_MMU=y | 11 | CONFIG_HAVE_TCM=y |
12 | CONFIG_GENERIC_HARDIRQS=y | 12 | CONFIG_GENERIC_HARDIRQS=y |
13 | CONFIG_STACKTRACE_SUPPORT=y | 13 | CONFIG_STACKTRACE_SUPPORT=y |
14 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | 14 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y |
@@ -44,11 +44,12 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
44 | # | 44 | # |
45 | # RCU Subsystem | 45 | # RCU Subsystem |
46 | # | 46 | # |
47 | CONFIG_CLASSIC_RCU=y | 47 | CONFIG_TREE_RCU=y |
48 | # CONFIG_TREE_RCU is not set | 48 | # CONFIG_TREE_PREEMPT_RCU is not set |
49 | # CONFIG_PREEMPT_RCU is not set | 49 | # CONFIG_RCU_TRACE is not set |
50 | CONFIG_RCU_FANOUT=32 | ||
51 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
50 | # CONFIG_TREE_RCU_TRACE is not set | 52 | # CONFIG_TREE_RCU_TRACE is not set |
51 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
52 | # CONFIG_IKCONFIG is not set | 53 | # CONFIG_IKCONFIG is not set |
53 | CONFIG_LOG_BUF_SHIFT=14 | 54 | CONFIG_LOG_BUF_SHIFT=14 |
54 | # CONFIG_GROUP_SCHED is not set | 55 | # CONFIG_GROUP_SCHED is not set |
@@ -80,17 +81,15 @@ CONFIG_SHMEM=y | |||
80 | # CONFIG_AIO is not set | 81 | # CONFIG_AIO is not set |
81 | 82 | ||
82 | # | 83 | # |
83 | # Performance Counters | 84 | # Kernel Performance Events And Counters |
84 | # | 85 | # |
85 | # CONFIG_VM_EVENT_COUNTERS is not set | 86 | # CONFIG_VM_EVENT_COUNTERS is not set |
86 | CONFIG_SLUB_DEBUG=y | 87 | CONFIG_SLUB_DEBUG=y |
87 | # CONFIG_STRIP_ASM_SYMS is not set | ||
88 | CONFIG_COMPAT_BRK=y | 88 | CONFIG_COMPAT_BRK=y |
89 | # CONFIG_SLAB is not set | 89 | # CONFIG_SLAB is not set |
90 | CONFIG_SLUB=y | 90 | CONFIG_SLUB=y |
91 | # CONFIG_SLOB is not set | 91 | # CONFIG_SLOB is not set |
92 | # CONFIG_PROFILING is not set | 92 | # CONFIG_PROFILING is not set |
93 | # CONFIG_MARKERS is not set | ||
94 | CONFIG_HAVE_OPROFILE=y | 93 | CONFIG_HAVE_OPROFILE=y |
95 | # CONFIG_KPROBES is not set | 94 | # CONFIG_KPROBES is not set |
96 | CONFIG_HAVE_KPROBES=y | 95 | CONFIG_HAVE_KPROBES=y |
@@ -133,6 +132,7 @@ CONFIG_DEFAULT_IOSCHED="deadline" | |||
133 | # | 132 | # |
134 | # System Type | 133 | # System Type |
135 | # | 134 | # |
135 | CONFIG_MMU=y | ||
136 | # CONFIG_ARCH_AAEC2000 is not set | 136 | # CONFIG_ARCH_AAEC2000 is not set |
137 | # CONFIG_ARCH_INTEGRATOR is not set | 137 | # CONFIG_ARCH_INTEGRATOR is not set |
138 | # CONFIG_ARCH_REALVIEW is not set | 138 | # CONFIG_ARCH_REALVIEW is not set |
@@ -147,6 +147,7 @@ CONFIG_DEFAULT_IOSCHED="deadline" | |||
147 | # CONFIG_ARCH_STMP3XXX is not set | 147 | # CONFIG_ARCH_STMP3XXX is not set |
148 | # CONFIG_ARCH_NETX is not set | 148 | # CONFIG_ARCH_NETX is not set |
149 | # CONFIG_ARCH_H720X is not set | 149 | # CONFIG_ARCH_H720X is not set |
150 | # CONFIG_ARCH_NOMADIK is not set | ||
150 | # CONFIG_ARCH_IOP13XX is not set | 151 | # CONFIG_ARCH_IOP13XX is not set |
151 | # CONFIG_ARCH_IOP32X is not set | 152 | # CONFIG_ARCH_IOP32X is not set |
152 | # CONFIG_ARCH_IOP33X is not set | 153 | # CONFIG_ARCH_IOP33X is not set |
@@ -169,11 +170,13 @@ CONFIG_DEFAULT_IOSCHED="deadline" | |||
169 | # CONFIG_ARCH_SA1100 is not set | 170 | # CONFIG_ARCH_SA1100 is not set |
170 | # CONFIG_ARCH_S3C2410 is not set | 171 | # CONFIG_ARCH_S3C2410 is not set |
171 | # CONFIG_ARCH_S3C64XX is not set | 172 | # CONFIG_ARCH_S3C64XX is not set |
173 | # CONFIG_ARCH_S5PC1XX is not set | ||
172 | # CONFIG_ARCH_SHARK is not set | 174 | # CONFIG_ARCH_SHARK is not set |
173 | # CONFIG_ARCH_LH7A40X is not set | 175 | # CONFIG_ARCH_LH7A40X is not set |
174 | CONFIG_ARCH_U300=y | 176 | CONFIG_ARCH_U300=y |
175 | # CONFIG_ARCH_DAVINCI is not set | 177 | # CONFIG_ARCH_DAVINCI is not set |
176 | # CONFIG_ARCH_OMAP is not set | 178 | # CONFIG_ARCH_OMAP is not set |
179 | # CONFIG_ARCH_BCMRING is not set | ||
177 | 180 | ||
178 | # | 181 | # |
179 | # ST-Ericsson AB U300/U330/U335/U365 Platform | 182 | # ST-Ericsson AB U300/U330/U335/U365 Platform |
@@ -195,6 +198,7 @@ CONFIG_MACH_U300_BS335=y | |||
195 | CONFIG_MACH_U300_DUAL_RAM=y | 198 | CONFIG_MACH_U300_DUAL_RAM=y |
196 | CONFIG_U300_DEBUG=y | 199 | CONFIG_U300_DEBUG=y |
197 | # CONFIG_MACH_U300_SEMI_IS_SHARED is not set | 200 | # CONFIG_MACH_U300_SEMI_IS_SHARED is not set |
201 | CONFIG_MACH_U300_SPIDUMMY=y | ||
198 | 202 | ||
199 | # | 203 | # |
200 | # All the settings below must match the bootloader's settings | 204 | # All the settings below must match the bootloader's settings |
@@ -207,7 +211,7 @@ CONFIG_CPU_32=y | |||
207 | CONFIG_CPU_ARM926T=y | 211 | CONFIG_CPU_ARM926T=y |
208 | CONFIG_CPU_32v5=y | 212 | CONFIG_CPU_32v5=y |
209 | CONFIG_CPU_ABRT_EV5TJ=y | 213 | CONFIG_CPU_ABRT_EV5TJ=y |
210 | CONFIG_CPU_PABRT_NOIFAR=y | 214 | CONFIG_CPU_PABRT_LEGACY=y |
211 | CONFIG_CPU_CACHE_VIVT=y | 215 | CONFIG_CPU_CACHE_VIVT=y |
212 | CONFIG_CPU_COPY_V4WB=y | 216 | CONFIG_CPU_COPY_V4WB=y |
213 | CONFIG_CPU_TLB_V4WBI=y | 217 | CONFIG_CPU_TLB_V4WBI=y |
@@ -222,6 +226,7 @@ CONFIG_ARM_THUMB=y | |||
222 | # CONFIG_CPU_DCACHE_DISABLE is not set | 226 | # CONFIG_CPU_DCACHE_DISABLE is not set |
223 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | 227 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set |
224 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | 228 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set |
229 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
225 | CONFIG_ARM_VIC=y | 230 | CONFIG_ARM_VIC=y |
226 | CONFIG_ARM_VIC_NR=2 | 231 | CONFIG_ARM_VIC_NR=2 |
227 | CONFIG_COMMON_CLKDEV=y | 232 | CONFIG_COMMON_CLKDEV=y |
@@ -245,6 +250,8 @@ CONFIG_VMSPLIT_3G=y | |||
245 | # CONFIG_VMSPLIT_2G is not set | 250 | # CONFIG_VMSPLIT_2G is not set |
246 | # CONFIG_VMSPLIT_1G is not set | 251 | # CONFIG_VMSPLIT_1G is not set |
247 | CONFIG_PAGE_OFFSET=0xC0000000 | 252 | CONFIG_PAGE_OFFSET=0xC0000000 |
253 | # CONFIG_PREEMPT_NONE is not set | ||
254 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
248 | CONFIG_PREEMPT=y | 255 | CONFIG_PREEMPT=y |
249 | CONFIG_HZ=100 | 256 | CONFIG_HZ=100 |
250 | CONFIG_AEABI=y | 257 | CONFIG_AEABI=y |
@@ -265,6 +272,7 @@ CONFIG_ZONE_DMA_FLAG=0 | |||
265 | CONFIG_VIRT_TO_BUS=y | 272 | CONFIG_VIRT_TO_BUS=y |
266 | CONFIG_HAVE_MLOCK=y | 273 | CONFIG_HAVE_MLOCK=y |
267 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | 274 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y |
275 | # CONFIG_KSM is not set | ||
268 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | 276 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 |
269 | CONFIG_ALIGNMENT_TRAP=y | 277 | CONFIG_ALIGNMENT_TRAP=y |
270 | # CONFIG_UACCESS_WITH_MEMCPY is not set | 278 | # CONFIG_UACCESS_WITH_MEMCPY is not set |
@@ -313,6 +321,7 @@ CONFIG_PM=y | |||
313 | # CONFIG_PM_DEBUG is not set | 321 | # CONFIG_PM_DEBUG is not set |
314 | # CONFIG_SUSPEND is not set | 322 | # CONFIG_SUSPEND is not set |
315 | # CONFIG_APM_EMULATION is not set | 323 | # CONFIG_APM_EMULATION is not set |
324 | # CONFIG_PM_RUNTIME is not set | ||
316 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | 325 | CONFIG_ARCH_SUSPEND_POSSIBLE=y |
317 | CONFIG_NET=y | 326 | CONFIG_NET=y |
318 | 327 | ||
@@ -351,6 +360,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
351 | # CONFIG_NETFILTER is not set | 360 | # CONFIG_NETFILTER is not set |
352 | # CONFIG_IP_DCCP is not set | 361 | # CONFIG_IP_DCCP is not set |
353 | # CONFIG_IP_SCTP is not set | 362 | # CONFIG_IP_SCTP is not set |
363 | # CONFIG_RDS is not set | ||
354 | # CONFIG_TIPC is not set | 364 | # CONFIG_TIPC is not set |
355 | # CONFIG_ATM is not set | 365 | # CONFIG_ATM is not set |
356 | # CONFIG_BRIDGE is not set | 366 | # CONFIG_BRIDGE is not set |
@@ -391,6 +401,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
391 | # Generic Driver Options | 401 | # Generic Driver Options |
392 | # | 402 | # |
393 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 403 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
404 | # CONFIG_DEVTMPFS is not set | ||
394 | CONFIG_STANDALONE=y | 405 | CONFIG_STANDALONE=y |
395 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | 406 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set |
396 | CONFIG_FW_LOADER=y | 407 | CONFIG_FW_LOADER=y |
@@ -402,9 +413,9 @@ CONFIG_EXTRA_FIRMWARE="" | |||
402 | # CONFIG_CONNECTOR is not set | 413 | # CONFIG_CONNECTOR is not set |
403 | CONFIG_MTD=y | 414 | CONFIG_MTD=y |
404 | # CONFIG_MTD_DEBUG is not set | 415 | # CONFIG_MTD_DEBUG is not set |
416 | # CONFIG_MTD_TESTS is not set | ||
405 | # CONFIG_MTD_CONCAT is not set | 417 | # CONFIG_MTD_CONCAT is not set |
406 | CONFIG_MTD_PARTITIONS=y | 418 | CONFIG_MTD_PARTITIONS=y |
407 | # CONFIG_MTD_TESTS is not set | ||
408 | # CONFIG_MTD_REDBOOT_PARTS is not set | 419 | # CONFIG_MTD_REDBOOT_PARTS is not set |
409 | CONFIG_MTD_CMDLINE_PARTS=y | 420 | CONFIG_MTD_CMDLINE_PARTS=y |
410 | # CONFIG_MTD_AFS_PARTS is not set | 421 | # CONFIG_MTD_AFS_PARTS is not set |
@@ -453,6 +464,7 @@ CONFIG_MTD_CFI_I2=y | |||
453 | # | 464 | # |
454 | # CONFIG_MTD_DATAFLASH is not set | 465 | # CONFIG_MTD_DATAFLASH is not set |
455 | # CONFIG_MTD_M25P80 is not set | 466 | # CONFIG_MTD_M25P80 is not set |
467 | # CONFIG_MTD_SST25L is not set | ||
456 | # CONFIG_MTD_SLRAM is not set | 468 | # CONFIG_MTD_SLRAM is not set |
457 | # CONFIG_MTD_PHRAM is not set | 469 | # CONFIG_MTD_PHRAM is not set |
458 | # CONFIG_MTD_MTDRAM is not set | 470 | # CONFIG_MTD_MTDRAM is not set |
@@ -520,6 +532,7 @@ CONFIG_HAVE_IDE=y | |||
520 | # CONFIG_MD is not set | 532 | # CONFIG_MD is not set |
521 | # CONFIG_NETDEVICES is not set | 533 | # CONFIG_NETDEVICES is not set |
522 | # CONFIG_ISDN is not set | 534 | # CONFIG_ISDN is not set |
535 | # CONFIG_PHONE is not set | ||
523 | 536 | ||
524 | # | 537 | # |
525 | # Input device support | 538 | # Input device support |
@@ -540,12 +553,16 @@ CONFIG_INPUT_EVDEV=y | |||
540 | # Input Device Drivers | 553 | # Input Device Drivers |
541 | # | 554 | # |
542 | CONFIG_INPUT_KEYBOARD=y | 555 | CONFIG_INPUT_KEYBOARD=y |
556 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
543 | # CONFIG_KEYBOARD_ATKBD is not set | 557 | # CONFIG_KEYBOARD_ATKBD is not set |
558 | # CONFIG_QT2160 is not set | ||
544 | # CONFIG_KEYBOARD_LKKBD is not set | 559 | # CONFIG_KEYBOARD_LKKBD is not set |
545 | # CONFIG_KEYBOARD_GPIO is not set | 560 | # CONFIG_KEYBOARD_GPIO is not set |
546 | # CONFIG_KEYBOARD_MATRIX is not set | 561 | # CONFIG_KEYBOARD_MATRIX is not set |
547 | # CONFIG_KEYBOARD_LM8323 is not set | 562 | # CONFIG_KEYBOARD_LM8323 is not set |
563 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
548 | # CONFIG_KEYBOARD_NEWTON is not set | 564 | # CONFIG_KEYBOARD_NEWTON is not set |
565 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
549 | # CONFIG_KEYBOARD_STOWAWAY is not set | 566 | # CONFIG_KEYBOARD_STOWAWAY is not set |
550 | # CONFIG_KEYBOARD_SUNKBD is not set | 567 | # CONFIG_KEYBOARD_SUNKBD is not set |
551 | # CONFIG_KEYBOARD_XTKBD is not set | 568 | # CONFIG_KEYBOARD_XTKBD is not set |
@@ -597,6 +614,7 @@ CONFIG_LEGACY_PTY_COUNT=16 | |||
597 | # CONFIG_TCG_TPM is not set | 614 | # CONFIG_TCG_TPM is not set |
598 | CONFIG_I2C=y | 615 | CONFIG_I2C=y |
599 | CONFIG_I2C_BOARDINFO=y | 616 | CONFIG_I2C_BOARDINFO=y |
617 | CONFIG_I2C_COMPAT=y | ||
600 | # CONFIG_I2C_CHARDEV is not set | 618 | # CONFIG_I2C_CHARDEV is not set |
601 | CONFIG_I2C_HELPER_AUTO=y | 619 | CONFIG_I2C_HELPER_AUTO=y |
602 | 620 | ||
@@ -629,9 +647,6 @@ CONFIG_I2C_STU300=y | |||
629 | # Miscellaneous I2C Chip support | 647 | # Miscellaneous I2C Chip support |
630 | # | 648 | # |
631 | # CONFIG_DS1682 is not set | 649 | # CONFIG_DS1682 is not set |
632 | # CONFIG_SENSORS_PCF8574 is not set | ||
633 | # CONFIG_PCF8575 is not set | ||
634 | # CONFIG_SENSORS_PCA9539 is not set | ||
635 | # CONFIG_SENSORS_TSL2550 is not set | 650 | # CONFIG_SENSORS_TSL2550 is not set |
636 | # CONFIG_I2C_DEBUG_CORE is not set | 651 | # CONFIG_I2C_DEBUG_CORE is not set |
637 | # CONFIG_I2C_DEBUG_ALGO is not set | 652 | # CONFIG_I2C_DEBUG_ALGO is not set |
@@ -653,16 +668,21 @@ CONFIG_SPI_PL022=y | |||
653 | # | 668 | # |
654 | # CONFIG_SPI_SPIDEV is not set | 669 | # CONFIG_SPI_SPIDEV is not set |
655 | # CONFIG_SPI_TLE62X0 is not set | 670 | # CONFIG_SPI_TLE62X0 is not set |
671 | |||
672 | # | ||
673 | # PPS support | ||
674 | # | ||
675 | # CONFIG_PPS is not set | ||
656 | # CONFIG_W1 is not set | 676 | # CONFIG_W1 is not set |
657 | CONFIG_POWER_SUPPLY=y | 677 | CONFIG_POWER_SUPPLY=y |
658 | # CONFIG_POWER_SUPPLY_DEBUG is not set | 678 | # CONFIG_POWER_SUPPLY_DEBUG is not set |
659 | # CONFIG_PDA_POWER is not set | 679 | # CONFIG_PDA_POWER is not set |
660 | # CONFIG_BATTERY_DS2760 is not set | 680 | # CONFIG_BATTERY_DS2760 is not set |
681 | # CONFIG_BATTERY_DS2782 is not set | ||
661 | # CONFIG_BATTERY_BQ27x00 is not set | 682 | # CONFIG_BATTERY_BQ27x00 is not set |
662 | # CONFIG_BATTERY_MAX17040 is not set | 683 | # CONFIG_BATTERY_MAX17040 is not set |
663 | # CONFIG_HWMON is not set | 684 | # CONFIG_HWMON is not set |
664 | # CONFIG_THERMAL is not set | 685 | # CONFIG_THERMAL is not set |
665 | # CONFIG_THERMAL_HWMON is not set | ||
666 | CONFIG_WATCHDOG=y | 686 | CONFIG_WATCHDOG=y |
667 | # CONFIG_WATCHDOG_NOWAYOUT is not set | 687 | # CONFIG_WATCHDOG_NOWAYOUT is not set |
668 | 688 | ||
@@ -690,10 +710,24 @@ CONFIG_SSB_POSSIBLE=y | |||
690 | # CONFIG_MFD_TC6387XB is not set | 710 | # CONFIG_MFD_TC6387XB is not set |
691 | # CONFIG_PMIC_DA903X is not set | 711 | # CONFIG_PMIC_DA903X is not set |
692 | # CONFIG_MFD_WM8400 is not set | 712 | # CONFIG_MFD_WM8400 is not set |
713 | # CONFIG_MFD_WM831X is not set | ||
693 | # CONFIG_MFD_WM8350_I2C is not set | 714 | # CONFIG_MFD_WM8350_I2C is not set |
694 | # CONFIG_MFD_PCF50633 is not set | 715 | # CONFIG_MFD_PCF50633 is not set |
716 | # CONFIG_MFD_MC13783 is not set | ||
695 | CONFIG_AB3100_CORE=y | 717 | CONFIG_AB3100_CORE=y |
718 | CONFIG_AB3100_OTP=y | ||
696 | # CONFIG_EZX_PCAP is not set | 719 | # CONFIG_EZX_PCAP is not set |
720 | CONFIG_REGULATOR=y | ||
721 | # CONFIG_REGULATOR_DEBUG is not set | ||
722 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
723 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
724 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
725 | # CONFIG_REGULATOR_BQ24022 is not set | ||
726 | # CONFIG_REGULATOR_MAX1586 is not set | ||
727 | # CONFIG_REGULATOR_LP3971 is not set | ||
728 | CONFIG_REGULATOR_AB3100=y | ||
729 | # CONFIG_REGULATOR_TPS65023 is not set | ||
730 | # CONFIG_REGULATOR_TPS6507X is not set | ||
697 | # CONFIG_MEDIA_SUPPORT is not set | 731 | # CONFIG_MEDIA_SUPPORT is not set |
698 | 732 | ||
699 | # | 733 | # |
@@ -792,9 +826,10 @@ CONFIG_MMC_BLOCK_BOUNCE=y | |||
792 | # | 826 | # |
793 | CONFIG_MMC_ARMMMCI=y | 827 | CONFIG_MMC_ARMMMCI=y |
794 | # CONFIG_MMC_SDHCI is not set | 828 | # CONFIG_MMC_SDHCI is not set |
829 | # CONFIG_MMC_AT91 is not set | ||
830 | # CONFIG_MMC_ATMELMCI is not set | ||
795 | # CONFIG_MMC_SPI is not set | 831 | # CONFIG_MMC_SPI is not set |
796 | # CONFIG_MEMSTICK is not set | 832 | # CONFIG_MEMSTICK is not set |
797 | # CONFIG_ACCESSIBILITY is not set | ||
798 | CONFIG_NEW_LEDS=y | 833 | CONFIG_NEW_LEDS=y |
799 | CONFIG_LEDS_CLASS=y | 834 | CONFIG_LEDS_CLASS=y |
800 | 835 | ||
@@ -820,10 +855,10 @@ CONFIG_LEDS_TRIGGER_BACKLIGHT=y | |||
820 | # | 855 | # |
821 | # iptables trigger is under Netfilter config (LED target) | 856 | # iptables trigger is under Netfilter config (LED target) |
822 | # | 857 | # |
858 | # CONFIG_ACCESSIBILITY is not set | ||
823 | CONFIG_RTC_LIB=y | 859 | CONFIG_RTC_LIB=y |
824 | CONFIG_RTC_CLASS=y | 860 | CONFIG_RTC_CLASS=y |
825 | CONFIG_RTC_HCTOSYS=y | 861 | # CONFIG_RTC_HCTOSYS is not set |
826 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
827 | # CONFIG_RTC_DEBUG is not set | 862 | # CONFIG_RTC_DEBUG is not set |
828 | 863 | ||
829 | # | 864 | # |
@@ -863,6 +898,7 @@ CONFIG_RTC_INTF_DEV=y | |||
863 | # CONFIG_RTC_DRV_R9701 is not set | 898 | # CONFIG_RTC_DRV_R9701 is not set |
864 | # CONFIG_RTC_DRV_RS5C348 is not set | 899 | # CONFIG_RTC_DRV_RS5C348 is not set |
865 | # CONFIG_RTC_DRV_DS3234 is not set | 900 | # CONFIG_RTC_DRV_DS3234 is not set |
901 | # CONFIG_RTC_DRV_PCF2123 is not set | ||
866 | 902 | ||
867 | # | 903 | # |
868 | # Platform RTC drivers | 904 | # Platform RTC drivers |
@@ -878,27 +914,25 @@ CONFIG_RTC_INTF_DEV=y | |||
878 | # CONFIG_RTC_DRV_M48T59 is not set | 914 | # CONFIG_RTC_DRV_M48T59 is not set |
879 | # CONFIG_RTC_DRV_BQ4802 is not set | 915 | # CONFIG_RTC_DRV_BQ4802 is not set |
880 | # CONFIG_RTC_DRV_V3020 is not set | 916 | # CONFIG_RTC_DRV_V3020 is not set |
917 | CONFIG_RTC_DRV_AB3100=y | ||
881 | 918 | ||
882 | # | 919 | # |
883 | # on-CPU RTC drivers | 920 | # on-CPU RTC drivers |
884 | # | 921 | # |
885 | # CONFIG_RTC_DRV_PL030 is not set | 922 | # CONFIG_RTC_DRV_PL030 is not set |
886 | # CONFIG_RTC_DRV_PL031 is not set | 923 | # CONFIG_RTC_DRV_PL031 is not set |
924 | CONFIG_RTC_DRV_COH901331=y | ||
887 | CONFIG_DMADEVICES=y | 925 | CONFIG_DMADEVICES=y |
888 | 926 | ||
889 | # | 927 | # |
890 | # DMA Devices | 928 | # DMA Devices |
891 | # | 929 | # |
892 | # CONFIG_AUXDISPLAY is not set | 930 | # CONFIG_AUXDISPLAY is not set |
893 | CONFIG_REGULATOR=y | ||
894 | # CONFIG_REGULATOR_DEBUG is not set | ||
895 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
896 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
897 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
898 | # CONFIG_REGULATOR_BQ24022 is not set | ||
899 | # CONFIG_REGULATOR_MAX1586 is not set | ||
900 | # CONFIG_REGULATOR_LP3971 is not set | ||
901 | # CONFIG_UIO is not set | 931 | # CONFIG_UIO is not set |
932 | |||
933 | # | ||
934 | # TI VLYNQ | ||
935 | # | ||
902 | # CONFIG_STAGING is not set | 936 | # CONFIG_STAGING is not set |
903 | 937 | ||
904 | # | 938 | # |
@@ -913,6 +947,7 @@ CONFIG_REGULATOR=y | |||
913 | # CONFIG_XFS_FS is not set | 947 | # CONFIG_XFS_FS is not set |
914 | # CONFIG_OCFS2_FS is not set | 948 | # CONFIG_OCFS2_FS is not set |
915 | # CONFIG_BTRFS_FS is not set | 949 | # CONFIG_BTRFS_FS is not set |
950 | # CONFIG_NILFS2_FS is not set | ||
916 | CONFIG_FILE_LOCKING=y | 951 | CONFIG_FILE_LOCKING=y |
917 | CONFIG_FSNOTIFY=y | 952 | CONFIG_FSNOTIFY=y |
918 | # CONFIG_DNOTIFY is not set | 953 | # CONFIG_DNOTIFY is not set |
@@ -975,7 +1010,6 @@ CONFIG_MISC_FILESYSTEMS=y | |||
975 | # CONFIG_ROMFS_FS is not set | 1010 | # CONFIG_ROMFS_FS is not set |
976 | # CONFIG_SYSV_FS is not set | 1011 | # CONFIG_SYSV_FS is not set |
977 | # CONFIG_UFS_FS is not set | 1012 | # CONFIG_UFS_FS is not set |
978 | # CONFIG_NILFS2_FS is not set | ||
979 | # CONFIG_NETWORK_FILESYSTEMS is not set | 1013 | # CONFIG_NETWORK_FILESYSTEMS is not set |
980 | 1014 | ||
981 | # | 1015 | # |
@@ -1033,6 +1067,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y | |||
1033 | CONFIG_ENABLE_MUST_CHECK=y | 1067 | CONFIG_ENABLE_MUST_CHECK=y |
1034 | CONFIG_FRAME_WARN=1024 | 1068 | CONFIG_FRAME_WARN=1024 |
1035 | # CONFIG_MAGIC_SYSRQ is not set | 1069 | # CONFIG_MAGIC_SYSRQ is not set |
1070 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1036 | # CONFIG_UNUSED_SYMBOLS is not set | 1071 | # CONFIG_UNUSED_SYMBOLS is not set |
1037 | # CONFIG_DEBUG_FS is not set | 1072 | # CONFIG_DEBUG_FS is not set |
1038 | # CONFIG_HEADERS_CHECK is not set | 1073 | # CONFIG_HEADERS_CHECK is not set |
@@ -1066,11 +1101,13 @@ CONFIG_DEBUG_INFO=y | |||
1066 | # CONFIG_DEBUG_LIST is not set | 1101 | # CONFIG_DEBUG_LIST is not set |
1067 | # CONFIG_DEBUG_SG is not set | 1102 | # CONFIG_DEBUG_SG is not set |
1068 | # CONFIG_DEBUG_NOTIFIERS is not set | 1103 | # CONFIG_DEBUG_NOTIFIERS is not set |
1104 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1069 | # CONFIG_BOOT_PRINTK_DELAY is not set | 1105 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1070 | # CONFIG_RCU_TORTURE_TEST is not set | 1106 | # CONFIG_RCU_TORTURE_TEST is not set |
1071 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | 1107 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set |
1072 | # CONFIG_BACKTRACE_SELF_TEST is not set | 1108 | # CONFIG_BACKTRACE_SELF_TEST is not set |
1073 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | 1109 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set |
1110 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1074 | # CONFIG_FAULT_INJECTION is not set | 1111 | # CONFIG_FAULT_INJECTION is not set |
1075 | # CONFIG_LATENCYTOP is not set | 1112 | # CONFIG_LATENCYTOP is not set |
1076 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | 1113 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set |
@@ -1121,6 +1158,7 @@ CONFIG_GENERIC_FIND_LAST_BIT=y | |||
1121 | # CONFIG_CRC32 is not set | 1158 | # CONFIG_CRC32 is not set |
1122 | # CONFIG_CRC7 is not set | 1159 | # CONFIG_CRC7 is not set |
1123 | # CONFIG_LIBCRC32C is not set | 1160 | # CONFIG_LIBCRC32C is not set |
1161 | CONFIG_GENERIC_ALLOCATOR=y | ||
1124 | CONFIG_HAS_IOMEM=y | 1162 | CONFIG_HAS_IOMEM=y |
1125 | CONFIG_HAS_IOPORT=y | 1163 | CONFIG_HAS_IOPORT=y |
1126 | CONFIG_HAS_DMA=y | 1164 | CONFIG_HAS_DMA=y |
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index 63a481fbbed4..338ff19ae447 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h | |||
@@ -84,7 +84,7 @@ ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) | |||
84 | *p = res | mask; | 84 | *p = res | mask; |
85 | raw_local_irq_restore(flags); | 85 | raw_local_irq_restore(flags); |
86 | 86 | ||
87 | return res & mask; | 87 | return (res & mask) != 0; |
88 | } | 88 | } |
89 | 89 | ||
90 | static inline int | 90 | static inline int |
@@ -101,7 +101,7 @@ ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p) | |||
101 | *p = res & ~mask; | 101 | *p = res & ~mask; |
102 | raw_local_irq_restore(flags); | 102 | raw_local_irq_restore(flags); |
103 | 103 | ||
104 | return res & mask; | 104 | return (res & mask) != 0; |
105 | } | 105 | } |
106 | 106 | ||
107 | static inline int | 107 | static inline int |
@@ -118,7 +118,7 @@ ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p) | |||
118 | *p = res ^ mask; | 118 | *p = res ^ mask; |
119 | raw_local_irq_restore(flags); | 119 | raw_local_irq_restore(flags); |
120 | 120 | ||
121 | return res & mask; | 121 | return (res & mask) != 0; |
122 | } | 122 | } |
123 | 123 | ||
124 | #include <asm-generic/bitops/non-atomic.h> | 124 | #include <asm-generic/bitops/non-atomic.h> |
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index fd03fb63a332..3d0cdd21b882 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -414,9 +414,14 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page | |||
414 | 414 | ||
415 | static inline void __flush_icache_all(void) | 415 | static inline void __flush_icache_all(void) |
416 | { | 416 | { |
417 | #ifdef CONFIG_ARM_ERRATA_411920 | ||
418 | extern void v6_icache_inval_all(void); | ||
419 | v6_icache_inval_all(); | ||
420 | #else | ||
417 | asm("mcr p15, 0, %0, c7, c5, 0 @ invalidate I-cache\n" | 421 | asm("mcr p15, 0, %0, c7, c5, 0 @ invalidate I-cache\n" |
418 | : | 422 | : |
419 | : "r" (0)); | 423 | : "r" (0)); |
424 | #endif | ||
420 | } | 425 | } |
421 | 426 | ||
422 | #define ARCH_HAS_FLUSH_ANON_PAGE | 427 | #define ARCH_HAS_FLUSH_ANON_PAGE |
diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h index c3b911ee9151..6aac3f5bb2f3 100644 --- a/arch/arm/include/asm/elf.h +++ b/arch/arm/include/asm/elf.h | |||
@@ -98,6 +98,9 @@ extern int elf_check_arch(const struct elf32_hdr *); | |||
98 | extern int arm_elf_read_implies_exec(const struct elf32_hdr *, int); | 98 | extern int arm_elf_read_implies_exec(const struct elf32_hdr *, int); |
99 | #define elf_read_implies_exec(ex,stk) arm_elf_read_implies_exec(&(ex), stk) | 99 | #define elf_read_implies_exec(ex,stk) arm_elf_read_implies_exec(&(ex), stk) |
100 | 100 | ||
101 | int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs); | ||
102 | #define ELF_CORE_COPY_TASK_REGS dump_task_regs | ||
103 | |||
101 | #define USE_ELF_CORE_DUMP | 104 | #define USE_ELF_CORE_DUMP |
102 | #define ELF_EXEC_PAGESIZE 4096 | 105 | #define ELF_EXEC_PAGESIZE 4096 |
103 | 106 | ||
diff --git a/arch/arm/include/asm/tlbflush.h b/arch/arm/include/asm/tlbflush.h index a45ab5dd8255..c2f1605de359 100644 --- a/arch/arm/include/asm/tlbflush.h +++ b/arch/arm/include/asm/tlbflush.h | |||
@@ -350,7 +350,7 @@ static inline void local_flush_tlb_mm(struct mm_struct *mm) | |||
350 | if (tlb_flag(TLB_WB)) | 350 | if (tlb_flag(TLB_WB)) |
351 | dsb(); | 351 | dsb(); |
352 | 352 | ||
353 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) { | 353 | if (cpumask_test_cpu(get_cpu(), mm_cpumask(mm))) { |
354 | if (tlb_flag(TLB_V3_FULL)) | 354 | if (tlb_flag(TLB_V3_FULL)) |
355 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (zero) : "cc"); | 355 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (zero) : "cc"); |
356 | if (tlb_flag(TLB_V4_U_FULL)) | 356 | if (tlb_flag(TLB_V4_U_FULL)) |
@@ -360,6 +360,7 @@ static inline void local_flush_tlb_mm(struct mm_struct *mm) | |||
360 | if (tlb_flag(TLB_V4_I_FULL)) | 360 | if (tlb_flag(TLB_V4_I_FULL)) |
361 | asm("mcr p15, 0, %0, c8, c5, 0" : : "r" (zero) : "cc"); | 361 | asm("mcr p15, 0, %0, c8, c5, 0" : : "r" (zero) : "cc"); |
362 | } | 362 | } |
363 | put_cpu(); | ||
363 | 364 | ||
364 | if (tlb_flag(TLB_V6_U_ASID)) | 365 | if (tlb_flag(TLB_V6_U_ASID)) |
365 | asm("mcr p15, 0, %0, c8, c7, 2" : : "r" (asid) : "cc"); | 366 | asm("mcr p15, 0, %0, c8, c7, 2" : : "r" (asid) : "cc"); |
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 7020217fc49f..4e506d09e5f9 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
@@ -403,6 +403,15 @@ | |||
403 | #define __ARM_NR_set_tls (__ARM_NR_BASE+5) | 403 | #define __ARM_NR_set_tls (__ARM_NR_BASE+5) |
404 | 404 | ||
405 | /* | 405 | /* |
406 | * *NOTE*: This is a ghost syscall private to the kernel. Only the | ||
407 | * __kuser_cmpxchg code in entry-armv.S should be aware of its | ||
408 | * existence. Don't ever use this from user code. | ||
409 | */ | ||
410 | #ifdef __KERNEL__ | ||
411 | #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) | ||
412 | #endif | ||
413 | |||
414 | /* | ||
406 | * The following syscalls are obsolete and no longer available for EABI. | 415 | * The following syscalls are obsolete and no longer available for EABI. |
407 | */ | 416 | */ |
408 | #if defined(__ARM_EABI__) && !defined(__KERNEL__) | 417 | #if defined(__ARM_EABI__) && !defined(__KERNEL__) |
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index 322410be573c..d2903e3bc861 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <mach/entry-macro.S> | 21 | #include <mach/entry-macro.S> |
22 | #include <asm/thread_notify.h> | 22 | #include <asm/thread_notify.h> |
23 | #include <asm/unwind.h> | 23 | #include <asm/unwind.h> |
24 | #include <asm/unistd.h> | ||
24 | 25 | ||
25 | #include "entry-header.S" | 26 | #include "entry-header.S" |
26 | 27 | ||
@@ -608,33 +609,33 @@ call_fpe: | |||
608 | THUMB( add pc, r8 ) | 609 | THUMB( add pc, r8 ) |
609 | nop | 610 | nop |
610 | 611 | ||
611 | W(mov) pc, lr @ CP#0 | 612 | movw_pc lr @ CP#0 |
612 | W(b) do_fpe @ CP#1 (FPE) | 613 | W(b) do_fpe @ CP#1 (FPE) |
613 | W(b) do_fpe @ CP#2 (FPE) | 614 | W(b) do_fpe @ CP#2 (FPE) |
614 | W(mov) pc, lr @ CP#3 | 615 | movw_pc lr @ CP#3 |
615 | #ifdef CONFIG_CRUNCH | 616 | #ifdef CONFIG_CRUNCH |
616 | b crunch_task_enable @ CP#4 (MaverickCrunch) | 617 | b crunch_task_enable @ CP#4 (MaverickCrunch) |
617 | b crunch_task_enable @ CP#5 (MaverickCrunch) | 618 | b crunch_task_enable @ CP#5 (MaverickCrunch) |
618 | b crunch_task_enable @ CP#6 (MaverickCrunch) | 619 | b crunch_task_enable @ CP#6 (MaverickCrunch) |
619 | #else | 620 | #else |
620 | W(mov) pc, lr @ CP#4 | 621 | movw_pc lr @ CP#4 |
621 | W(mov) pc, lr @ CP#5 | 622 | movw_pc lr @ CP#5 |
622 | W(mov) pc, lr @ CP#6 | 623 | movw_pc lr @ CP#6 |
623 | #endif | 624 | #endif |
624 | W(mov) pc, lr @ CP#7 | 625 | movw_pc lr @ CP#7 |
625 | W(mov) pc, lr @ CP#8 | 626 | movw_pc lr @ CP#8 |
626 | W(mov) pc, lr @ CP#9 | 627 | movw_pc lr @ CP#9 |
627 | #ifdef CONFIG_VFP | 628 | #ifdef CONFIG_VFP |
628 | W(b) do_vfp @ CP#10 (VFP) | 629 | W(b) do_vfp @ CP#10 (VFP) |
629 | W(b) do_vfp @ CP#11 (VFP) | 630 | W(b) do_vfp @ CP#11 (VFP) |
630 | #else | 631 | #else |
631 | W(mov) pc, lr @ CP#10 (VFP) | 632 | movw_pc lr @ CP#10 (VFP) |
632 | W(mov) pc, lr @ CP#11 (VFP) | 633 | movw_pc lr @ CP#11 (VFP) |
633 | #endif | 634 | #endif |
634 | W(mov) pc, lr @ CP#12 | 635 | movw_pc lr @ CP#12 |
635 | W(mov) pc, lr @ CP#13 | 636 | movw_pc lr @ CP#13 |
636 | W(mov) pc, lr @ CP#14 (Debug) | 637 | movw_pc lr @ CP#14 (Debug) |
637 | W(mov) pc, lr @ CP#15 (Control) | 638 | movw_pc lr @ CP#15 (Control) |
638 | 639 | ||
639 | #ifdef CONFIG_NEON | 640 | #ifdef CONFIG_NEON |
640 | .align 6 | 641 | .align 6 |
@@ -908,10 +909,10 @@ __kuser_cmpxchg: @ 0xffff0fc0 | |||
908 | * A special ghost syscall is used for that (see traps.c). | 909 | * A special ghost syscall is used for that (see traps.c). |
909 | */ | 910 | */ |
910 | stmfd sp!, {r7, lr} | 911 | stmfd sp!, {r7, lr} |
911 | mov r7, #0xff00 @ 0xfff0 into r7 for EABI | 912 | ldr r7, =1f @ it's 20 bits |
912 | orr r7, r7, #0xf0 | 913 | swi __ARM_NR_cmpxchg |
913 | swi #0x9ffff0 | ||
914 | ldmfd sp!, {r7, pc} | 914 | ldmfd sp!, {r7, pc} |
915 | 1: .word __ARM_NR_cmpxchg | ||
915 | 916 | ||
916 | #elif __LINUX_ARM_ARCH__ < 6 | 917 | #elif __LINUX_ARM_ARCH__ < 6 |
917 | 918 | ||
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index ac34c0d9384b..7e9ed1eea40a 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
@@ -110,6 +110,13 @@ | |||
110 | mov \rd, sp, lsr #13 | 110 | mov \rd, sp, lsr #13 |
111 | mov \rd, \rd, lsl #13 | 111 | mov \rd, \rd, lsl #13 |
112 | .endm | 112 | .endm |
113 | |||
114 | @ | ||
115 | @ 32-bit wide "mov pc, reg" | ||
116 | @ | ||
117 | .macro movw_pc, reg | ||
118 | mov pc, \reg | ||
119 | .endm | ||
113 | #else /* CONFIG_THUMB2_KERNEL */ | 120 | #else /* CONFIG_THUMB2_KERNEL */ |
114 | .macro svc_exit, rpsr | 121 | .macro svc_exit, rpsr |
115 | clrex @ clear the exclusive monitor | 122 | clrex @ clear the exclusive monitor |
@@ -146,6 +153,14 @@ | |||
146 | lsr \rd, \rd, #13 | 153 | lsr \rd, \rd, #13 |
147 | mov \rd, \rd, lsl #13 | 154 | mov \rd, \rd, lsl #13 |
148 | .endm | 155 | .endm |
156 | |||
157 | @ | ||
158 | @ 32-bit wide "mov pc, reg" | ||
159 | @ | ||
160 | .macro movw_pc, reg | ||
161 | mov pc, \reg | ||
162 | nop | ||
163 | .endm | ||
149 | #endif /* !CONFIG_THUMB2_KERNEL */ | 164 | #endif /* !CONFIG_THUMB2_KERNEL */ |
150 | 165 | ||
151 | /* | 166 | /* |
diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index 885a7214418d..b9505aa267c0 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S | |||
@@ -97,7 +97,7 @@ __error_a: | |||
97 | bl printhex8 | 97 | bl printhex8 |
98 | adr r0, str_a2 | 98 | adr r0, str_a2 |
99 | bl printascii | 99 | bl printascii |
100 | adr r3, 3f | 100 | adr r3, 4f |
101 | ldmia r3, {r4, r5, r6} @ get machine desc list | 101 | ldmia r3, {r4, r5, r6} @ get machine desc list |
102 | sub r4, r3, r4 @ get offset between virt&phys | 102 | sub r4, r3, r4 @ get offset between virt&phys |
103 | add r5, r5, r4 @ convert virt addresses to | 103 | add r5, r5, r4 @ convert virt addresses to |
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 790fbee92ec5..0d96d0171c05 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -328,6 +328,15 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start, | |||
328 | } | 328 | } |
329 | 329 | ||
330 | /* | 330 | /* |
331 | * Fill in the task's elfregs structure for a core dump. | ||
332 | */ | ||
333 | int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs) | ||
334 | { | ||
335 | elf_core_copy_regs(elfregs, task_pt_regs(t)); | ||
336 | return 1; | ||
337 | } | ||
338 | |||
339 | /* | ||
331 | * fill in the fpe structure for a core dump... | 340 | * fill in the fpe structure for a core dump... |
332 | */ | 341 | */ |
333 | int dump_fpu (struct pt_regs *regs, struct user_fp *fp) | 342 | int dump_fpu (struct pt_regs *regs, struct user_fp *fp) |
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 1423a3419789..2a573d4fea24 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/kernel/signal.c | 2 | * linux/arch/arm/kernel/signal.c |
3 | * | 3 | * |
4 | * Copyright (C) 1995-2002 Russell King | 4 | * Copyright (C) 1995-2009 Russell King |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
@@ -29,6 +29,7 @@ | |||
29 | */ | 29 | */ |
30 | #define SWI_SYS_SIGRETURN (0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE)) | 30 | #define SWI_SYS_SIGRETURN (0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE)) |
31 | #define SWI_SYS_RT_SIGRETURN (0xef000000|(__NR_rt_sigreturn)|(__NR_OABI_SYSCALL_BASE)) | 31 | #define SWI_SYS_RT_SIGRETURN (0xef000000|(__NR_rt_sigreturn)|(__NR_OABI_SYSCALL_BASE)) |
32 | #define SWI_SYS_RESTART (0xef000000|__NR_restart_syscall|__NR_OABI_SYSCALL_BASE) | ||
32 | 33 | ||
33 | /* | 34 | /* |
34 | * With EABI, the syscall number has to be loaded into r7. | 35 | * With EABI, the syscall number has to be loaded into r7. |
@@ -49,6 +50,18 @@ const unsigned long sigreturn_codes[7] = { | |||
49 | }; | 50 | }; |
50 | 51 | ||
51 | /* | 52 | /* |
53 | * Either we support OABI only, or we have EABI with the OABI | ||
54 | * compat layer enabled. In the later case we don't know if | ||
55 | * user space is EABI or not, and if not we must not clobber r7. | ||
56 | * Always using the OABI syscall solves that issue and works for | ||
57 | * all those cases. | ||
58 | */ | ||
59 | const unsigned long syscall_restart_code[2] = { | ||
60 | SWI_SYS_RESTART, /* swi __NR_restart_syscall */ | ||
61 | 0xe49df004, /* ldr pc, [sp], #4 */ | ||
62 | }; | ||
63 | |||
64 | /* | ||
52 | * atomically swap in the new signal mask, and wait for a signal. | 65 | * atomically swap in the new signal mask, and wait for a signal. |
53 | */ | 66 | */ |
54 | asmlinkage int sys_sigsuspend(int restart, unsigned long oldmask, old_sigset_t mask) | 67 | asmlinkage int sys_sigsuspend(int restart, unsigned long oldmask, old_sigset_t mask) |
@@ -645,32 +658,12 @@ static void do_signal(struct pt_regs *regs, int syscall) | |||
645 | regs->ARM_pc -= 4; | 658 | regs->ARM_pc -= 4; |
646 | #else | 659 | #else |
647 | u32 __user *usp; | 660 | u32 __user *usp; |
648 | u32 swival = __NR_restart_syscall; | ||
649 | 661 | ||
650 | regs->ARM_sp -= 12; | 662 | regs->ARM_sp -= 4; |
651 | usp = (u32 __user *)regs->ARM_sp; | 663 | usp = (u32 __user *)regs->ARM_sp; |
652 | 664 | ||
653 | /* | 665 | put_user(regs->ARM_pc, usp); |
654 | * Either we supports OABI only, or we have | 666 | regs->ARM_pc = KERN_RESTART_CODE; |
655 | * EABI with the OABI compat layer enabled. | ||
656 | * In the later case we don't know if user | ||
657 | * space is EABI or not, and if not we must | ||
658 | * not clobber r7. Always using the OABI | ||
659 | * syscall solves that issue and works for | ||
660 | * all those cases. | ||
661 | */ | ||
662 | swival = swival - __NR_SYSCALL_BASE + __NR_OABI_SYSCALL_BASE; | ||
663 | |||
664 | put_user(regs->ARM_pc, &usp[0]); | ||
665 | /* swi __NR_restart_syscall */ | ||
666 | put_user(0xef000000 | swival, &usp[1]); | ||
667 | /* ldr pc, [sp], #12 */ | ||
668 | put_user(0xe49df00c, &usp[2]); | ||
669 | |||
670 | flush_icache_range((unsigned long)usp, | ||
671 | (unsigned long)(usp + 3)); | ||
672 | |||
673 | regs->ARM_pc = regs->ARM_sp + 4; | ||
674 | #endif | 667 | #endif |
675 | } | 668 | } |
676 | } | 669 | } |
diff --git a/arch/arm/kernel/signal.h b/arch/arm/kernel/signal.h index 27beece15502..6fcfe8398aa4 100644 --- a/arch/arm/kernel/signal.h +++ b/arch/arm/kernel/signal.h | |||
@@ -1,12 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/kernel/signal.h | 2 | * linux/arch/arm/kernel/signal.h |
3 | * | 3 | * |
4 | * Copyright (C) 2005 Russell King. | 4 | * Copyright (C) 2005-2009 Russell King. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | #define KERN_SIGRETURN_CODE (CONFIG_VECTORS_BASE + 0x00000500) | 10 | #define KERN_SIGRETURN_CODE (CONFIG_VECTORS_BASE + 0x00000500) |
11 | #define KERN_RESTART_CODE (KERN_SIGRETURN_CODE + sizeof(sigreturn_codes)) | ||
11 | 12 | ||
12 | extern const unsigned long sigreturn_codes[7]; | 13 | extern const unsigned long sigreturn_codes[7]; |
14 | extern const unsigned long syscall_restart_code[2]; | ||
diff --git a/arch/arm/kernel/smp_scu.c b/arch/arm/kernel/smp_scu.c index d3831f616ee9..9ab4149bd983 100644 --- a/arch/arm/kernel/smp_scu.c +++ b/arch/arm/kernel/smp_scu.c | |||
@@ -37,6 +37,10 @@ void __init scu_enable(void __iomem *scu_base) | |||
37 | u32 scu_ctrl; | 37 | u32 scu_ctrl; |
38 | 38 | ||
39 | scu_ctrl = __raw_readl(scu_base + SCU_CTRL); | 39 | scu_ctrl = __raw_readl(scu_base + SCU_CTRL); |
40 | /* already enabled? */ | ||
41 | if (scu_ctrl & 1) | ||
42 | return; | ||
43 | |||
40 | scu_ctrl |= 1; | 44 | scu_ctrl |= 1; |
41 | __raw_writel(scu_ctrl, scu_base + SCU_CTRL); | 45 | __raw_writel(scu_ctrl, scu_base + SCU_CTRL); |
42 | 46 | ||
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 4cdc4a0bd02d..d38cdf2c8276 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/time.h> | 22 | #include <linux/time.h> |
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/sched.h> | ||
24 | #include <linux/smp.h> | 25 | #include <linux/smp.h> |
25 | #include <linux/timex.h> | 26 | #include <linux/timex.h> |
26 | #include <linux/errno.h> | 27 | #include <linux/errno.h> |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 467b69ed1021..3f361a783f43 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/kernel/traps.c | 2 | * linux/arch/arm/kernel/traps.c |
3 | * | 3 | * |
4 | * Copyright (C) 1995-2002 Russell King | 4 | * Copyright (C) 1995-2009 Russell King |
5 | * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds | 5 | * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -45,21 +45,21 @@ static int __init user_debug_setup(char *str) | |||
45 | __setup("user_debug=", user_debug_setup); | 45 | __setup("user_debug=", user_debug_setup); |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | static void dump_mem(const char *str, unsigned long bottom, unsigned long top); | 48 | static void dump_mem(const char *, const char *, unsigned long, unsigned long); |
49 | 49 | ||
50 | void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) | 50 | void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) |
51 | { | 51 | { |
52 | #ifdef CONFIG_KALLSYMS | 52 | #ifdef CONFIG_KALLSYMS |
53 | printk("[<%08lx>] ", where); | 53 | char sym1[KSYM_SYMBOL_LEN], sym2[KSYM_SYMBOL_LEN]; |
54 | print_symbol("(%s) ", where); | 54 | sprint_symbol(sym1, where); |
55 | printk("from [<%08lx>] ", from); | 55 | sprint_symbol(sym2, from); |
56 | print_symbol("(%s)\n", from); | 56 | printk("[<%08lx>] (%s) from [<%08lx>] (%s)\n", where, sym1, from, sym2); |
57 | #else | 57 | #else |
58 | printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); | 58 | printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | if (in_exception_text(where)) | 61 | if (in_exception_text(where)) |
62 | dump_mem("Exception stack", frame + 4, frame + 4 + sizeof(struct pt_regs)); | 62 | dump_mem("", "Exception stack", frame + 4, frame + 4 + sizeof(struct pt_regs)); |
63 | } | 63 | } |
64 | 64 | ||
65 | #ifndef CONFIG_ARM_UNWIND | 65 | #ifndef CONFIG_ARM_UNWIND |
@@ -81,9 +81,10 @@ static int verify_stack(unsigned long sp) | |||
81 | /* | 81 | /* |
82 | * Dump out the contents of some memory nicely... | 82 | * Dump out the contents of some memory nicely... |
83 | */ | 83 | */ |
84 | static void dump_mem(const char *str, unsigned long bottom, unsigned long top) | 84 | static void dump_mem(const char *lvl, const char *str, unsigned long bottom, |
85 | unsigned long top) | ||
85 | { | 86 | { |
86 | unsigned long p = bottom & ~31; | 87 | unsigned long first; |
87 | mm_segment_t fs; | 88 | mm_segment_t fs; |
88 | int i; | 89 | int i; |
89 | 90 | ||
@@ -95,33 +96,37 @@ static void dump_mem(const char *str, unsigned long bottom, unsigned long top) | |||
95 | fs = get_fs(); | 96 | fs = get_fs(); |
96 | set_fs(KERNEL_DS); | 97 | set_fs(KERNEL_DS); |
97 | 98 | ||
98 | printk("%s(0x%08lx to 0x%08lx)\n", str, bottom, top); | 99 | printk("%s%s(0x%08lx to 0x%08lx)\n", lvl, str, bottom, top); |
99 | 100 | ||
100 | for (p = bottom & ~31; p < top;) { | 101 | for (first = bottom & ~31; first < top; first += 32) { |
101 | printk("%04lx: ", p & 0xffff); | 102 | unsigned long p; |
103 | char str[sizeof(" 12345678") * 8 + 1]; | ||
102 | 104 | ||
103 | for (i = 0; i < 8; i++, p += 4) { | 105 | memset(str, ' ', sizeof(str)); |
104 | unsigned int val; | 106 | str[sizeof(str) - 1] = '\0'; |
105 | 107 | ||
106 | if (p < bottom || p >= top) | 108 | for (p = first, i = 0; i < 8 && p < top; i++, p += 4) { |
107 | printk(" "); | 109 | if (p >= bottom && p < top) { |
108 | else { | 110 | unsigned long val; |
109 | __get_user(val, (unsigned long *)p); | 111 | if (__get_user(val, (unsigned long *)p) == 0) |
110 | printk("%08x ", val); | 112 | sprintf(str + i * 9, " %08lx", val); |
113 | else | ||
114 | sprintf(str + i * 9, " ????????"); | ||
111 | } | 115 | } |
112 | } | 116 | } |
113 | printk ("\n"); | 117 | printk("%s%04lx:%s\n", lvl, first & 0xffff, str); |
114 | } | 118 | } |
115 | 119 | ||
116 | set_fs(fs); | 120 | set_fs(fs); |
117 | } | 121 | } |
118 | 122 | ||
119 | static void dump_instr(struct pt_regs *regs) | 123 | static void dump_instr(const char *lvl, struct pt_regs *regs) |
120 | { | 124 | { |
121 | unsigned long addr = instruction_pointer(regs); | 125 | unsigned long addr = instruction_pointer(regs); |
122 | const int thumb = thumb_mode(regs); | 126 | const int thumb = thumb_mode(regs); |
123 | const int width = thumb ? 4 : 8; | 127 | const int width = thumb ? 4 : 8; |
124 | mm_segment_t fs; | 128 | mm_segment_t fs; |
129 | char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; | ||
125 | int i; | 130 | int i; |
126 | 131 | ||
127 | /* | 132 | /* |
@@ -132,7 +137,6 @@ static void dump_instr(struct pt_regs *regs) | |||
132 | fs = get_fs(); | 137 | fs = get_fs(); |
133 | set_fs(KERNEL_DS); | 138 | set_fs(KERNEL_DS); |
134 | 139 | ||
135 | printk("Code: "); | ||
136 | for (i = -4; i < 1; i++) { | 140 | for (i = -4; i < 1; i++) { |
137 | unsigned int val, bad; | 141 | unsigned int val, bad; |
138 | 142 | ||
@@ -142,13 +146,14 @@ static void dump_instr(struct pt_regs *regs) | |||
142 | bad = __get_user(val, &((u32 *)addr)[i]); | 146 | bad = __get_user(val, &((u32 *)addr)[i]); |
143 | 147 | ||
144 | if (!bad) | 148 | if (!bad) |
145 | printk(i == 0 ? "(%0*x) " : "%0*x ", width, val); | 149 | p += sprintf(p, i == 0 ? "(%0*x) " : "%0*x ", |
150 | width, val); | ||
146 | else { | 151 | else { |
147 | printk("bad PC value."); | 152 | p += sprintf(p, "bad PC value"); |
148 | break; | 153 | break; |
149 | } | 154 | } |
150 | } | 155 | } |
151 | printk("\n"); | 156 | printk("%sCode: %s\n", lvl, str); |
152 | 157 | ||
153 | set_fs(fs); | 158 | set_fs(fs); |
154 | } | 159 | } |
@@ -224,18 +229,19 @@ static void __die(const char *str, int err, struct thread_info *thread, struct p | |||
224 | struct task_struct *tsk = thread->task; | 229 | struct task_struct *tsk = thread->task; |
225 | static int die_counter; | 230 | static int die_counter; |
226 | 231 | ||
227 | printk("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP "\n", | 232 | printk(KERN_EMERG "Internal error: %s: %x [#%d]" S_PREEMPT S_SMP "\n", |
228 | str, err, ++die_counter); | 233 | str, err, ++die_counter); |
234 | sysfs_printk_last_file(); | ||
229 | print_modules(); | 235 | print_modules(); |
230 | __show_regs(regs); | 236 | __show_regs(regs); |
231 | printk("Process %s (pid: %d, stack limit = 0x%p)\n", | 237 | printk(KERN_EMERG "Process %.*s (pid: %d, stack limit = 0x%p)\n", |
232 | tsk->comm, task_pid_nr(tsk), thread + 1); | 238 | TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), thread + 1); |
233 | 239 | ||
234 | if (!user_mode(regs) || in_interrupt()) { | 240 | if (!user_mode(regs) || in_interrupt()) { |
235 | dump_mem("Stack: ", regs->ARM_sp, | 241 | dump_mem(KERN_EMERG, "Stack: ", regs->ARM_sp, |
236 | THREAD_SIZE + (unsigned long)task_stack_page(tsk)); | 242 | THREAD_SIZE + (unsigned long)task_stack_page(tsk)); |
237 | dump_backtrace(regs, tsk); | 243 | dump_backtrace(regs, tsk); |
238 | dump_instr(regs); | 244 | dump_instr(KERN_EMERG, regs); |
239 | } | 245 | } |
240 | } | 246 | } |
241 | 247 | ||
@@ -250,13 +256,14 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
250 | 256 | ||
251 | oops_enter(); | 257 | oops_enter(); |
252 | 258 | ||
253 | console_verbose(); | ||
254 | spin_lock_irq(&die_lock); | 259 | spin_lock_irq(&die_lock); |
260 | console_verbose(); | ||
255 | bust_spinlocks(1); | 261 | bust_spinlocks(1); |
256 | __die(str, err, thread, regs); | 262 | __die(str, err, thread, regs); |
257 | bust_spinlocks(0); | 263 | bust_spinlocks(0); |
258 | add_taint(TAINT_DIE); | 264 | add_taint(TAINT_DIE); |
259 | spin_unlock_irq(&die_lock); | 265 | spin_unlock_irq(&die_lock); |
266 | oops_exit(); | ||
260 | 267 | ||
261 | if (in_interrupt()) | 268 | if (in_interrupt()) |
262 | panic("Fatal exception in interrupt"); | 269 | panic("Fatal exception in interrupt"); |
@@ -264,7 +271,6 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
264 | if (panic_on_oops) | 271 | if (panic_on_oops) |
265 | panic("Fatal exception"); | 272 | panic("Fatal exception"); |
266 | 273 | ||
267 | oops_exit(); | ||
268 | do_exit(SIGSEGV); | 274 | do_exit(SIGSEGV); |
269 | } | 275 | } |
270 | 276 | ||
@@ -349,7 +355,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs) | |||
349 | if (user_debug & UDBG_UNDEFINED) { | 355 | if (user_debug & UDBG_UNDEFINED) { |
350 | printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n", | 356 | printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n", |
351 | current->comm, task_pid_nr(current), pc); | 357 | current->comm, task_pid_nr(current), pc); |
352 | dump_instr(regs); | 358 | dump_instr(KERN_INFO, regs); |
353 | } | 359 | } |
354 | #endif | 360 | #endif |
355 | 361 | ||
@@ -400,7 +406,7 @@ static int bad_syscall(int n, struct pt_regs *regs) | |||
400 | if (user_debug & UDBG_SYSCALL) { | 406 | if (user_debug & UDBG_SYSCALL) { |
401 | printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n", | 407 | printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n", |
402 | task_pid_nr(current), current->comm, n); | 408 | task_pid_nr(current), current->comm, n); |
403 | dump_instr(regs); | 409 | dump_instr(KERN_ERR, regs); |
404 | } | 410 | } |
405 | #endif | 411 | #endif |
406 | 412 | ||
@@ -522,7 +528,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
522 | * __kuser_cmpxchg code in entry-armv.S should be aware of its | 528 | * __kuser_cmpxchg code in entry-armv.S should be aware of its |
523 | * existence. Don't ever use this from user code. | 529 | * existence. Don't ever use this from user code. |
524 | */ | 530 | */ |
525 | case 0xfff0: | 531 | case NR(cmpxchg): |
526 | for (;;) { | 532 | for (;;) { |
527 | extern void do_DataAbort(unsigned long addr, unsigned int fsr, | 533 | extern void do_DataAbort(unsigned long addr, unsigned int fsr, |
528 | struct pt_regs *regs); | 534 | struct pt_regs *regs); |
@@ -567,7 +573,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
567 | if not implemented, rather than raising SIGILL. This | 573 | if not implemented, rather than raising SIGILL. This |
568 | way the calling program can gracefully determine whether | 574 | way the calling program can gracefully determine whether |
569 | a feature is supported. */ | 575 | a feature is supported. */ |
570 | if (no <= 0x7ff) | 576 | if ((no & 0xffff) <= 0x7ff) |
571 | return -ENOSYS; | 577 | return -ENOSYS; |
572 | break; | 578 | break; |
573 | } | 579 | } |
@@ -579,7 +585,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
579 | if (user_debug & UDBG_SYSCALL) { | 585 | if (user_debug & UDBG_SYSCALL) { |
580 | printk("[%d] %s: arm syscall %d\n", | 586 | printk("[%d] %s: arm syscall %d\n", |
581 | task_pid_nr(current), current->comm, no); | 587 | task_pid_nr(current), current->comm, no); |
582 | dump_instr(regs); | 588 | dump_instr("", regs); |
583 | if (user_mode(regs)) { | 589 | if (user_mode(regs)) { |
584 | __show_regs(regs); | 590 | __show_regs(regs); |
585 | c_backtrace(regs->ARM_fp, processor_mode(regs)); | 591 | c_backtrace(regs->ARM_fp, processor_mode(regs)); |
@@ -656,7 +662,7 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) | |||
656 | if (user_debug & UDBG_BADABORT) { | 662 | if (user_debug & UDBG_BADABORT) { |
657 | printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n", | 663 | printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n", |
658 | task_pid_nr(current), current->comm, code, instr); | 664 | task_pid_nr(current), current->comm, code, instr); |
659 | dump_instr(regs); | 665 | dump_instr(KERN_ERR, regs); |
660 | show_pte(current->mm, addr); | 666 | show_pte(current->mm, addr); |
661 | } | 667 | } |
662 | #endif | 668 | #endif |
@@ -745,6 +751,8 @@ void __init early_trap_init(void) | |||
745 | */ | 751 | */ |
746 | memcpy((void *)KERN_SIGRETURN_CODE, sigreturn_codes, | 752 | memcpy((void *)KERN_SIGRETURN_CODE, sigreturn_codes, |
747 | sizeof(sigreturn_codes)); | 753 | sizeof(sigreturn_codes)); |
754 | memcpy((void *)KERN_RESTART_CODE, syscall_restart_code, | ||
755 | sizeof(syscall_restart_code)); | ||
748 | 756 | ||
749 | flush_icache_range(vectors, vectors + PAGE_SIZE); | 757 | flush_icache_range(vectors, vectors + PAGE_SIZE); |
750 | modify_domain(DOMAIN_USER, DOMAIN_CLIENT); | 758 | modify_domain(DOMAIN_USER, DOMAIN_CLIENT); |
diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c index 39baf1128bfa..786ac2b6914a 100644 --- a/arch/arm/kernel/unwind.c +++ b/arch/arm/kernel/unwind.c | |||
@@ -26,6 +26,15 @@ | |||
26 | * http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html | 26 | * http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #if !defined (__ARM_EABI__) | ||
30 | #warning Your compiler does not have EABI support. | ||
31 | #warning ARM unwind is known to compile only with EABI compilers. | ||
32 | #warning Change compiler or disable ARM_UNWIND option. | ||
33 | #elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) | ||
34 | #warning Your compiler is too buggy; it is known to not compile ARM unwind support. | ||
35 | #warning Change compiler or disable ARM_UNWIND option. | ||
36 | #endif | ||
37 | |||
29 | #include <linux/kernel.h> | 38 | #include <linux/kernel.h> |
30 | #include <linux/init.h> | 39 | #include <linux/init.h> |
31 | #include <linux/module.h> | 40 | #include <linux/module.h> |
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index e35d54d43e70..2fd88437348b 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -289,13 +289,6 @@ config MACH_NEOCORE926 | |||
289 | help | 289 | help |
290 | Select this if you are using the Adeneo Neocore 926 board. | 290 | Select this if you are using the Adeneo Neocore 926 board. |
291 | 291 | ||
292 | config MACH_AT91SAM9G20EK_2MMC | ||
293 | bool "Atmel AT91SAM9G20-EK Evaluation Kit modified for 2 MMC Slots" | ||
294 | depends on ARCH_AT91SAM9G20 | ||
295 | help | ||
296 | Select this if you are using an Atmel AT91SAM9G20-EK Evaluation Kit | ||
297 | Rev A or B modified for 2 MMC Slots. | ||
298 | |||
299 | endif | 292 | endif |
300 | 293 | ||
301 | # ---------------------------------------------------------- | 294 | # ---------------------------------------------------------- |
@@ -322,7 +315,16 @@ config MACH_AT91SAM9G20EK | |||
322 | bool "Atmel AT91SAM9G20-EK Evaluation Kit" | 315 | bool "Atmel AT91SAM9G20-EK Evaluation Kit" |
323 | depends on ARCH_AT91SAM9G20 | 316 | depends on ARCH_AT91SAM9G20 |
324 | help | 317 | help |
325 | Select this if you are using Atmel's AT91SAM9G20-EK Evaluation Kit. | 318 | Select this if you are using Atmel's AT91SAM9G20-EK Evaluation Kit |
319 | that embeds only one SD/MMC slot. | ||
320 | |||
321 | config MACH_AT91SAM9G20EK_2MMC | ||
322 | bool "Atmel AT91SAM9G20-EK Evaluation Kit with 2 SD/MMC Slots" | ||
323 | depends on ARCH_AT91SAM9G20 | ||
324 | help | ||
325 | Select this if you are using an Atmel AT91SAM9G20-EK Evaluation Kit | ||
326 | with 2 SD/MMC Slots. This is the case for AT91SAM9G20-EK rev. C and | ||
327 | onwards. | ||
326 | 328 | ||
327 | config MACH_CPU9G20 | 329 | config MACH_CPU9G20 |
328 | bool "Eukrea CPU9G20 board" | 330 | bool "Eukrea CPU9G20 board" |
@@ -392,7 +394,7 @@ config MTD_AT91_DATAFLASH_CARD | |||
392 | 394 | ||
393 | config MTD_NAND_ATMEL_BUSWIDTH_16 | 395 | config MTD_NAND_ATMEL_BUSWIDTH_16 |
394 | bool "Enable 16-bit data bus interface to NAND flash" | 396 | bool "Enable 16-bit data bus interface to NAND flash" |
395 | depends on (MACH_AT91SAM9260EK || MACH_AT91SAM9261EK || MACH_AT91SAM9G10EK || MACH_AT91SAM9263EK || MACH_AT91SAM9G20EK || MACH_AT91SAM9G45EKES || MACH_AT91CAP9ADK) | 397 | depends on (MACH_AT91SAM9260EK || MACH_AT91SAM9261EK || MACH_AT91SAM9G10EK || MACH_AT91SAM9263EK || MACH_AT91SAM9G20EK || MACH_AT91SAM9G20EK_2MMC || MACH_AT91SAM9G45EKES || MACH_AT91CAP9ADK) |
396 | help | 398 | help |
397 | On AT91SAM926x boards both types of NAND flash can be present | 399 | On AT91SAM926x boards both types of NAND flash can be present |
398 | (8 and 16 bit data bus width). | 400 | (8 and 16 bit data bus width). |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index d581cff80c4c..332b784050b2 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -838,7 +838,7 @@ static void __init at91_add_device_rtt(void) | |||
838 | * Watchdog | 838 | * Watchdog |
839 | * -------------------------------------------------------------------- */ | 839 | * -------------------------------------------------------------------- */ |
840 | 840 | ||
841 | #if defined(CONFIG_AT91SAM9_WATCHDOG) || defined(CONFIG_AT91SAM9_WATCHDOG_MODULE) | 841 | #if defined(CONFIG_AT91SAM9X_WATCHDOG) || defined(CONFIG_AT91SAM9X_WATCHDOG_MODULE) |
842 | static struct platform_device at91sam9g45_wdt_device = { | 842 | static struct platform_device at91sam9g45_wdt_device = { |
843 | .name = "at91_wdt", | 843 | .name = "at91_wdt", |
844 | .id = -1, | 844 | .id = -1, |
diff --git a/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c b/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c index a28e53faf71d..a4102d72cc9b 100644 --- a/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c +++ b/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c | |||
@@ -90,7 +90,7 @@ static struct at91_udc_data __initdata ek_udc_data = { | |||
90 | * SPI devices. | 90 | * SPI devices. |
91 | */ | 91 | */ |
92 | static struct spi_board_info ek_spi_devices[] = { | 92 | static struct spi_board_info ek_spi_devices[] = { |
93 | #if !defined(CONFIG_MMC_ATMELMCI) | 93 | #if !(defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_AT91)) |
94 | { /* DataFlash chip */ | 94 | { /* DataFlash chip */ |
95 | .modalias = "mtd_dataflash", | 95 | .modalias = "mtd_dataflash", |
96 | .chip_select = 1, | 96 | .chip_select = 1, |
@@ -113,7 +113,7 @@ static struct spi_board_info ek_spi_devices[] = { | |||
113 | * MACB Ethernet device | 113 | * MACB Ethernet device |
114 | */ | 114 | */ |
115 | static struct at91_eth_data __initdata ek_macb_data = { | 115 | static struct at91_eth_data __initdata ek_macb_data = { |
116 | .phy_irq_pin = AT91_PIN_PC12, | 116 | .phy_irq_pin = AT91_PIN_PB0, |
117 | .is_rmii = 1, | 117 | .is_rmii = 1, |
118 | }; | 118 | }; |
119 | 119 | ||
@@ -194,24 +194,27 @@ static void __init ek_add_device_nand(void) | |||
194 | 194 | ||
195 | /* | 195 | /* |
196 | * MCI (SD/MMC) | 196 | * MCI (SD/MMC) |
197 | * det_pin and wp_pin are not connected | 197 | * wp_pin is not connected |
198 | */ | 198 | */ |
199 | #if defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_ATMELMCI_MODULE) | 199 | #if defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_ATMELMCI_MODULE) |
200 | static struct mci_platform_data __initdata ek_mmc_data = { | 200 | static struct mci_platform_data __initdata ek_mmc_data = { |
201 | .slot[0] = { | 201 | .slot[0] = { |
202 | .bus_width = 4, | 202 | .bus_width = 4, |
203 | .detect_pin = -ENODEV, | 203 | .detect_pin = AT91_PIN_PC2, |
204 | .wp_pin = -ENODEV, | 204 | .wp_pin = -ENODEV, |
205 | }, | 205 | }, |
206 | .slot[1] = { | 206 | .slot[1] = { |
207 | .bus_width = 4, | 207 | .bus_width = 4, |
208 | .detect_pin = -ENODEV, | 208 | .detect_pin = AT91_PIN_PC9, |
209 | .wp_pin = -ENODEV, | 209 | .wp_pin = -ENODEV, |
210 | }, | 210 | }, |
211 | 211 | ||
212 | }; | 212 | }; |
213 | #else | 213 | #else |
214 | static struct amci_platform_data __initdata ek_mmc_data = { | 214 | static struct at91_mmc_data __initdata ek_mmc_data = { |
215 | .slot_b = 1, /* Only one slot so use slot B */ | ||
216 | .wire4 = 1, | ||
217 | .det_pin = AT91_PIN_PC9, | ||
215 | }; | 218 | }; |
216 | #endif | 219 | #endif |
217 | 220 | ||
@@ -221,13 +224,13 @@ static struct amci_platform_data __initdata ek_mmc_data = { | |||
221 | static struct gpio_led ek_leds[] = { | 224 | static struct gpio_led ek_leds[] = { |
222 | { /* "bottom" led, green, userled1 to be defined */ | 225 | { /* "bottom" led, green, userled1 to be defined */ |
223 | .name = "ds5", | 226 | .name = "ds5", |
224 | .gpio = AT91_PIN_PB12, | 227 | .gpio = AT91_PIN_PB8, |
225 | .active_low = 1, | 228 | .active_low = 1, |
226 | .default_trigger = "none", | 229 | .default_trigger = "none", |
227 | }, | 230 | }, |
228 | { /* "power" led, yellow */ | 231 | { /* "power" led, yellow */ |
229 | .name = "ds1", | 232 | .name = "ds1", |
230 | .gpio = AT91_PIN_PB13, | 233 | .gpio = AT91_PIN_PB9, |
231 | .default_trigger = "heartbeat", | 234 | .default_trigger = "heartbeat", |
232 | } | 235 | } |
233 | }; | 236 | }; |
@@ -254,7 +257,11 @@ static void __init ek_board_init(void) | |||
254 | /* Ethernet */ | 257 | /* Ethernet */ |
255 | at91_add_device_eth(&ek_macb_data); | 258 | at91_add_device_eth(&ek_macb_data); |
256 | /* MMC */ | 259 | /* MMC */ |
260 | #if defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_ATMELMCI_MODULE) | ||
257 | at91_add_device_mci(0, &ek_mmc_data); | 261 | at91_add_device_mci(0, &ek_mmc_data); |
262 | #else | ||
263 | at91_add_device_mmc(0, &ek_mmc_data); | ||
264 | #endif | ||
258 | /* I2C */ | 265 | /* I2C */ |
259 | at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices)); | 266 | at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices)); |
260 | /* LEDs */ | 267 | /* LEDs */ |
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 34a9502c48bc..c22df30ed5e5 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h | |||
@@ -25,6 +25,8 @@ | |||
25 | #define ARCH_ID_AT91SAM9G20 0x019905a0 | 25 | #define ARCH_ID_AT91SAM9G20 0x019905a0 |
26 | #define ARCH_ID_AT91SAM9RL64 0x019b03a0 | 26 | #define ARCH_ID_AT91SAM9RL64 0x019b03a0 |
27 | #define ARCH_ID_AT91SAM9G45 0x819b05a0 | 27 | #define ARCH_ID_AT91SAM9G45 0x819b05a0 |
28 | #define ARCH_ID_AT91SAM9G45MRL 0x819b05a2 /* aka 9G45-ES2 & non ES lots */ | ||
29 | #define ARCH_ID_AT91SAM9G45ES 0x819b05a1 /* 9G45-ES (Engineering Sample) */ | ||
28 | #define ARCH_ID_AT91CAP9 0x039A03A0 | 30 | #define ARCH_ID_AT91CAP9 0x039A03A0 |
29 | 31 | ||
30 | #define ARCH_ID_AT91SAM9XE128 0x329973a0 | 32 | #define ARCH_ID_AT91SAM9XE128 0x329973a0 |
@@ -41,6 +43,11 @@ static inline unsigned long at91_cpu_identify(void) | |||
41 | return (at91_sys_read(AT91_DBGU_CIDR) & ~AT91_CIDR_VERSION); | 43 | return (at91_sys_read(AT91_DBGU_CIDR) & ~AT91_CIDR_VERSION); |
42 | } | 44 | } |
43 | 45 | ||
46 | static inline unsigned long at91_cpu_fully_identify(void) | ||
47 | { | ||
48 | return at91_sys_read(AT91_DBGU_CIDR); | ||
49 | } | ||
50 | |||
44 | #define ARCH_EXID_AT91SAM9M11 0x00000001 | 51 | #define ARCH_EXID_AT91SAM9M11 0x00000001 |
45 | #define ARCH_EXID_AT91SAM9M10 0x00000002 | 52 | #define ARCH_EXID_AT91SAM9M10 0x00000002 |
46 | #define ARCH_EXID_AT91SAM9G45 0x00000004 | 53 | #define ARCH_EXID_AT91SAM9G45 0x00000004 |
@@ -118,8 +125,10 @@ static inline unsigned long at91cap9_rev_identify(void) | |||
118 | 125 | ||
119 | #ifdef CONFIG_ARCH_AT91SAM9G45 | 126 | #ifdef CONFIG_ARCH_AT91SAM9G45 |
120 | #define cpu_is_at91sam9g45() (at91_cpu_identify() == ARCH_ID_AT91SAM9G45) | 127 | #define cpu_is_at91sam9g45() (at91_cpu_identify() == ARCH_ID_AT91SAM9G45) |
128 | #define cpu_is_at91sam9g45es() (at91_cpu_fully_identify() == ARCH_ID_AT91SAM9G45ES) | ||
121 | #else | 129 | #else |
122 | #define cpu_is_at91sam9g45() (0) | 130 | #define cpu_is_at91sam9g45() (0) |
131 | #define cpu_is_at91sam9g45es() (0) | ||
123 | #endif | 132 | #endif |
124 | 133 | ||
125 | #ifdef CONFIG_ARCH_AT91CAP9 | 134 | #ifdef CONFIG_ARCH_AT91CAP9 |
diff --git a/arch/arm/mach-bcmring/core.c b/arch/arm/mach-bcmring/core.c index 4b4f69251b31..e590bbe0a7b4 100644 --- a/arch/arm/mach-bcmring/core.c +++ b/arch/arm/mach-bcmring/core.c | |||
@@ -271,12 +271,12 @@ static struct irqaction bcmring_timer_irq = { | |||
271 | .handler = bcmring_timer_interrupt, | 271 | .handler = bcmring_timer_interrupt, |
272 | }; | 272 | }; |
273 | 273 | ||
274 | static cycle_t bcmring_get_cycles_timer1(void) | 274 | static cycle_t bcmring_get_cycles_timer1(struct clocksource *cs) |
275 | { | 275 | { |
276 | return ~readl(TIMER1_VA_BASE + TIMER_VALUE); | 276 | return ~readl(TIMER1_VA_BASE + TIMER_VALUE); |
277 | } | 277 | } |
278 | 278 | ||
279 | static cycle_t bcmring_get_cycles_timer3(void) | 279 | static cycle_t bcmring_get_cycles_timer3(struct clocksource *cs) |
280 | { | 280 | { |
281 | return ~readl(TIMER3_VA_BASE + TIMER_VALUE); | 281 | return ~readl(TIMER3_VA_BASE + TIMER_VALUE); |
282 | } | 282 | } |
diff --git a/arch/arm/mach-bcmring/include/mach/system.h b/arch/arm/mach-bcmring/include/mach/system.h index cdbf93c694a6..38b37060d426 100644 --- a/arch/arm/mach-bcmring/include/mach/system.h +++ b/arch/arm/mach-bcmring/include/mach/system.h | |||
@@ -29,7 +29,7 @@ static inline void arch_idle(void) | |||
29 | cpu_do_idle(); | 29 | cpu_do_idle(); |
30 | } | 30 | } |
31 | 31 | ||
32 | static inline void arch_reset(char mode, char *cmd) | 32 | static inline void arch_reset(char mode, const char *cmd) |
33 | { | 33 | { |
34 | printk("arch_reset:%c %x\n", mode, bcmring_arch_warm_reboot); | 34 | printk("arch_reset:%c %x\n", mode, bcmring_arch_warm_reboot); |
35 | 35 | ||
diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig index d7291c682a64..9167c3d2a5ed 100644 --- a/arch/arm/mach-ep93xx/Kconfig +++ b/arch/arm/mach-ep93xx/Kconfig | |||
@@ -17,13 +17,31 @@ config EP93XX_SDCE3_SYNC_PHYS_OFFSET | |||
17 | bool "0x00000000 - SDCE3/SyncBoot" | 17 | bool "0x00000000 - SDCE3/SyncBoot" |
18 | help | 18 | help |
19 | Select this option if you want support for EP93xx boards with the | 19 | Select this option if you want support for EP93xx boards with the |
20 | first SDRAM bank at 0x00000000 | 20 | first SDRAM bank at 0x00000000. |
21 | 21 | ||
22 | config EP93XX_SDCE0_PHYS_OFFSET | 22 | config EP93XX_SDCE0_PHYS_OFFSET |
23 | bool "0xc0000000 - SDCEO" | 23 | bool "0xc0000000 - SDCEO" |
24 | help | 24 | help |
25 | Select this option if you want support for EP93xx boards with the | 25 | Select this option if you want support for EP93xx boards with the |
26 | first SDRAM bank at 0xc0000000 | 26 | first SDRAM bank at 0xc0000000. |
27 | |||
28 | config EP93XX_SDCE1_PHYS_OFFSET | ||
29 | bool "0xd0000000 - SDCE1" | ||
30 | help | ||
31 | Select this option if you want support for EP93xx boards with the | ||
32 | first SDRAM bank at 0xd0000000. | ||
33 | |||
34 | config EP93XX_SDCE2_PHYS_OFFSET | ||
35 | bool "0xe0000000 - SDCE2" | ||
36 | help | ||
37 | Select this option if you want support for EP93xx boards with the | ||
38 | first SDRAM bank at 0xe0000000. | ||
39 | |||
40 | config EP93XX_SDCE3_ASYNC_PHYS_OFFSET | ||
41 | bool "0xf0000000 - SDCE3/AsyncBoot" | ||
42 | help | ||
43 | Select this option if you want support for EP93xx boards with the | ||
44 | first SDRAM bank at 0xf0000000. | ||
27 | 45 | ||
28 | endchoice | 46 | endchoice |
29 | 47 | ||
@@ -112,28 +130,36 @@ config MACH_MICRO9 | |||
112 | bool | 130 | bool |
113 | 131 | ||
114 | config MACH_MICRO9H | 132 | config MACH_MICRO9H |
115 | bool "Support Contec Hypercontrol Micro9-H" | 133 | bool "Support Contec Micro9-High" |
116 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 134 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET |
117 | select MACH_MICRO9 | 135 | select MACH_MICRO9 |
118 | help | 136 | help |
119 | Say 'Y' here if you want your kernel to support the | 137 | Say 'Y' here if you want your kernel to support the |
120 | Contec Hypercontrol Micro9-H board. | 138 | Contec Micro9-High board. |
121 | 139 | ||
122 | config MACH_MICRO9M | 140 | config MACH_MICRO9M |
123 | bool "Support Contec Hypercontrol Micro9-M" | 141 | bool "Support Contec Micro9-Mid" |
124 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 142 | depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET |
125 | select MACH_MICRO9 | 143 | select MACH_MICRO9 |
126 | help | 144 | help |
127 | Say 'Y' here if you want your kernel to support the | 145 | Say 'Y' here if you want your kernel to support the |
128 | Contec Hypercontrol Micro9-M board. | 146 | Contec Micro9-Mid board. |
129 | 147 | ||
130 | config MACH_MICRO9L | 148 | config MACH_MICRO9L |
131 | bool "Support Contec Hypercontrol Micro9-L" | 149 | bool "Support Contec Micro9-Lite" |
132 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 150 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET |
133 | select MACH_MICRO9 | 151 | select MACH_MICRO9 |
134 | help | 152 | help |
135 | Say 'Y' here if you want your kernel to support the | 153 | Say 'Y' here if you want your kernel to support the |
136 | Contec Hypercontrol Micro9-L board. | 154 | Contec Micro9-Lite board. |
155 | |||
156 | config MACH_MICRO9S | ||
157 | bool "Support Contec Micro9-Slim" | ||
158 | depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET | ||
159 | select MACH_MICRO9 | ||
160 | help | ||
161 | Say 'Y' here if you want your kernel to support the | ||
162 | Contec Micro9-Slim board. | ||
137 | 163 | ||
138 | config MACH_TS72XX | 164 | config MACH_TS72XX |
139 | bool "Support Technologic Systems TS-72xx SBC" | 165 | bool "Support Technologic Systems TS-72xx SBC" |
diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot index 27a085a8f12a..0ad33f15c622 100644 --- a/arch/arm/mach-ep93xx/Makefile.boot +++ b/arch/arm/mach-ep93xx/Makefile.boot | |||
@@ -3,3 +3,12 @@ params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET) := 0x00000100 | |||
3 | 3 | ||
4 | zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0008000 | 4 | zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0008000 |
5 | params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0000100 | 5 | params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0000100 |
6 | |||
7 | zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) := 0xd0008000 | ||
8 | params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) := 0xd0000100 | ||
9 | |||
10 | zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) := 0xe0008000 | ||
11 | params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) := 0xe0000100 | ||
12 | |||
13 | zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) := 0xf0008000 | ||
14 | params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) := 0xf0000100 | ||
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index dda19cd76194..1d0f9d8aff2e 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -16,13 +16,16 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/string.h> | 17 | #include <linux/string.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/spinlock.h> | ||
20 | |||
21 | #include <mach/hardware.h> | ||
19 | 22 | ||
20 | #include <asm/clkdev.h> | 23 | #include <asm/clkdev.h> |
21 | #include <asm/div64.h> | 24 | #include <asm/div64.h> |
22 | #include <mach/hardware.h> | ||
23 | 25 | ||
24 | 26 | ||
25 | struct clk { | 27 | struct clk { |
28 | struct clk *parent; | ||
26 | unsigned long rate; | 29 | unsigned long rate; |
27 | int users; | 30 | int users; |
28 | int sw_locked; | 31 | int sw_locked; |
@@ -39,40 +42,60 @@ static unsigned long get_uart_rate(struct clk *clk); | |||
39 | static int set_keytchclk_rate(struct clk *clk, unsigned long rate); | 42 | static int set_keytchclk_rate(struct clk *clk, unsigned long rate); |
40 | static int set_div_rate(struct clk *clk, unsigned long rate); | 43 | static int set_div_rate(struct clk *clk, unsigned long rate); |
41 | 44 | ||
45 | |||
46 | static struct clk clk_xtali = { | ||
47 | .rate = EP93XX_EXT_CLK_RATE, | ||
48 | }; | ||
42 | static struct clk clk_uart1 = { | 49 | static struct clk clk_uart1 = { |
50 | .parent = &clk_xtali, | ||
43 | .sw_locked = 1, | 51 | .sw_locked = 1, |
44 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 52 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
45 | .enable_mask = EP93XX_SYSCON_DEVCFG_U1EN, | 53 | .enable_mask = EP93XX_SYSCON_DEVCFG_U1EN, |
46 | .get_rate = get_uart_rate, | 54 | .get_rate = get_uart_rate, |
47 | }; | 55 | }; |
48 | static struct clk clk_uart2 = { | 56 | static struct clk clk_uart2 = { |
57 | .parent = &clk_xtali, | ||
49 | .sw_locked = 1, | 58 | .sw_locked = 1, |
50 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 59 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
51 | .enable_mask = EP93XX_SYSCON_DEVCFG_U2EN, | 60 | .enable_mask = EP93XX_SYSCON_DEVCFG_U2EN, |
52 | .get_rate = get_uart_rate, | 61 | .get_rate = get_uart_rate, |
53 | }; | 62 | }; |
54 | static struct clk clk_uart3 = { | 63 | static struct clk clk_uart3 = { |
64 | .parent = &clk_xtali, | ||
55 | .sw_locked = 1, | 65 | .sw_locked = 1, |
56 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 66 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
57 | .enable_mask = EP93XX_SYSCON_DEVCFG_U3EN, | 67 | .enable_mask = EP93XX_SYSCON_DEVCFG_U3EN, |
58 | .get_rate = get_uart_rate, | 68 | .get_rate = get_uart_rate, |
59 | }; | 69 | }; |
60 | static struct clk clk_pll1; | 70 | static struct clk clk_pll1 = { |
61 | static struct clk clk_f; | 71 | .parent = &clk_xtali, |
62 | static struct clk clk_h; | 72 | }; |
63 | static struct clk clk_p; | 73 | static struct clk clk_f = { |
64 | static struct clk clk_pll2; | 74 | .parent = &clk_pll1, |
75 | }; | ||
76 | static struct clk clk_h = { | ||
77 | .parent = &clk_pll1, | ||
78 | }; | ||
79 | static struct clk clk_p = { | ||
80 | .parent = &clk_pll1, | ||
81 | }; | ||
82 | static struct clk clk_pll2 = { | ||
83 | .parent = &clk_xtali, | ||
84 | }; | ||
65 | static struct clk clk_usb_host = { | 85 | static struct clk clk_usb_host = { |
86 | .parent = &clk_pll2, | ||
66 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 87 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
67 | .enable_mask = EP93XX_SYSCON_PWRCNT_USH_EN, | 88 | .enable_mask = EP93XX_SYSCON_PWRCNT_USH_EN, |
68 | }; | 89 | }; |
69 | static struct clk clk_keypad = { | 90 | static struct clk clk_keypad = { |
91 | .parent = &clk_xtali, | ||
70 | .sw_locked = 1, | 92 | .sw_locked = 1, |
71 | .enable_reg = EP93XX_SYSCON_KEYTCHCLKDIV, | 93 | .enable_reg = EP93XX_SYSCON_KEYTCHCLKDIV, |
72 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, | 94 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, |
73 | .set_rate = set_keytchclk_rate, | 95 | .set_rate = set_keytchclk_rate, |
74 | }; | 96 | }; |
75 | static struct clk clk_pwm = { | 97 | static struct clk clk_pwm = { |
98 | .parent = &clk_xtali, | ||
76 | .rate = EP93XX_EXT_CLK_RATE, | 99 | .rate = EP93XX_EXT_CLK_RATE, |
77 | }; | 100 | }; |
78 | 101 | ||
@@ -85,50 +108,62 @@ static struct clk clk_video = { | |||
85 | 108 | ||
86 | /* DMA Clocks */ | 109 | /* DMA Clocks */ |
87 | static struct clk clk_m2p0 = { | 110 | static struct clk clk_m2p0 = { |
111 | .parent = &clk_h, | ||
88 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 112 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
89 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P0, | 113 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P0, |
90 | }; | 114 | }; |
91 | static struct clk clk_m2p1 = { | 115 | static struct clk clk_m2p1 = { |
116 | .parent = &clk_h, | ||
92 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 117 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
93 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P1, | 118 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P1, |
94 | }; | 119 | }; |
95 | static struct clk clk_m2p2 = { | 120 | static struct clk clk_m2p2 = { |
121 | .parent = &clk_h, | ||
96 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 122 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
97 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P2, | 123 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P2, |
98 | }; | 124 | }; |
99 | static struct clk clk_m2p3 = { | 125 | static struct clk clk_m2p3 = { |
126 | .parent = &clk_h, | ||
100 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 127 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
101 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P3, | 128 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P3, |
102 | }; | 129 | }; |
103 | static struct clk clk_m2p4 = { | 130 | static struct clk clk_m2p4 = { |
131 | .parent = &clk_h, | ||
104 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 132 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
105 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P4, | 133 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P4, |
106 | }; | 134 | }; |
107 | static struct clk clk_m2p5 = { | 135 | static struct clk clk_m2p5 = { |
136 | .parent = &clk_h, | ||
108 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 137 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
109 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P5, | 138 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P5, |
110 | }; | 139 | }; |
111 | static struct clk clk_m2p6 = { | 140 | static struct clk clk_m2p6 = { |
141 | .parent = &clk_h, | ||
112 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 142 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
113 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P6, | 143 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P6, |
114 | }; | 144 | }; |
115 | static struct clk clk_m2p7 = { | 145 | static struct clk clk_m2p7 = { |
146 | .parent = &clk_h, | ||
116 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 147 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
117 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P7, | 148 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P7, |
118 | }; | 149 | }; |
119 | static struct clk clk_m2p8 = { | 150 | static struct clk clk_m2p8 = { |
151 | .parent = &clk_h, | ||
120 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 152 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
121 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P8, | 153 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P8, |
122 | }; | 154 | }; |
123 | static struct clk clk_m2p9 = { | 155 | static struct clk clk_m2p9 = { |
156 | .parent = &clk_h, | ||
124 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 157 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
125 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P9, | 158 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P9, |
126 | }; | 159 | }; |
127 | static struct clk clk_m2m0 = { | 160 | static struct clk clk_m2m0 = { |
161 | .parent = &clk_h, | ||
128 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 162 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
129 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M0, | 163 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M0, |
130 | }; | 164 | }; |
131 | static struct clk clk_m2m1 = { | 165 | static struct clk clk_m2m1 = { |
166 | .parent = &clk_h, | ||
132 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 167 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
133 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M1, | 168 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M1, |
134 | }; | 169 | }; |
@@ -137,6 +172,7 @@ static struct clk clk_m2m1 = { | |||
137 | { .dev_id = dev, .con_id = con, .clk = ck } | 172 | { .dev_id = dev, .con_id = con, .clk = ck } |
138 | 173 | ||
139 | static struct clk_lookup clocks[] = { | 174 | static struct clk_lookup clocks[] = { |
175 | INIT_CK(NULL, "xtali", &clk_xtali), | ||
140 | INIT_CK("apb:uart1", NULL, &clk_uart1), | 176 | INIT_CK("apb:uart1", NULL, &clk_uart1), |
141 | INIT_CK("apb:uart2", NULL, &clk_uart2), | 177 | INIT_CK("apb:uart2", NULL, &clk_uart2), |
142 | INIT_CK("apb:uart3", NULL, &clk_uart3), | 178 | INIT_CK("apb:uart3", NULL, &clk_uart3), |
@@ -163,48 +199,84 @@ static struct clk_lookup clocks[] = { | |||
163 | INIT_CK(NULL, "m2m1", &clk_m2m1), | 199 | INIT_CK(NULL, "m2m1", &clk_m2m1), |
164 | }; | 200 | }; |
165 | 201 | ||
202 | static DEFINE_SPINLOCK(clk_lock); | ||
203 | |||
204 | static void __clk_enable(struct clk *clk) | ||
205 | { | ||
206 | if (!clk->users++) { | ||
207 | if (clk->parent) | ||
208 | __clk_enable(clk->parent); | ||
209 | |||
210 | if (clk->enable_reg) { | ||
211 | u32 v; | ||
212 | |||
213 | v = __raw_readl(clk->enable_reg); | ||
214 | v |= clk->enable_mask; | ||
215 | if (clk->sw_locked) | ||
216 | ep93xx_syscon_swlocked_write(v, clk->enable_reg); | ||
217 | else | ||
218 | __raw_writel(v, clk->enable_reg); | ||
219 | } | ||
220 | } | ||
221 | } | ||
166 | 222 | ||
167 | int clk_enable(struct clk *clk) | 223 | int clk_enable(struct clk *clk) |
168 | { | 224 | { |
169 | if (!clk->users++ && clk->enable_reg) { | 225 | unsigned long flags; |
170 | u32 value; | ||
171 | 226 | ||
172 | value = __raw_readl(clk->enable_reg); | 227 | if (!clk) |
173 | value |= clk->enable_mask; | 228 | return -EINVAL; |
174 | if (clk->sw_locked) | 229 | |
175 | ep93xx_syscon_swlocked_write(value, clk->enable_reg); | 230 | spin_lock_irqsave(&clk_lock, flags); |
176 | else | 231 | __clk_enable(clk); |
177 | __raw_writel(value, clk->enable_reg); | 232 | spin_unlock_irqrestore(&clk_lock, flags); |
178 | } | ||
179 | 233 | ||
180 | return 0; | 234 | return 0; |
181 | } | 235 | } |
182 | EXPORT_SYMBOL(clk_enable); | 236 | EXPORT_SYMBOL(clk_enable); |
183 | 237 | ||
184 | void clk_disable(struct clk *clk) | 238 | static void __clk_disable(struct clk *clk) |
185 | { | 239 | { |
186 | if (!--clk->users && clk->enable_reg) { | 240 | if (!--clk->users) { |
187 | u32 value; | 241 | if (clk->enable_reg) { |
242 | u32 v; | ||
243 | |||
244 | v = __raw_readl(clk->enable_reg); | ||
245 | v &= ~clk->enable_mask; | ||
246 | if (clk->sw_locked) | ||
247 | ep93xx_syscon_swlocked_write(v, clk->enable_reg); | ||
248 | else | ||
249 | __raw_writel(v, clk->enable_reg); | ||
250 | } | ||
188 | 251 | ||
189 | value = __raw_readl(clk->enable_reg); | 252 | if (clk->parent) |
190 | value &= ~clk->enable_mask; | 253 | __clk_disable(clk->parent); |
191 | if (clk->sw_locked) | ||
192 | ep93xx_syscon_swlocked_write(value, clk->enable_reg); | ||
193 | else | ||
194 | __raw_writel(value, clk->enable_reg); | ||
195 | } | 254 | } |
196 | } | 255 | } |
256 | |||
257 | void clk_disable(struct clk *clk) | ||
258 | { | ||
259 | unsigned long flags; | ||
260 | |||
261 | if (!clk) | ||
262 | return; | ||
263 | |||
264 | spin_lock_irqsave(&clk_lock, flags); | ||
265 | __clk_disable(clk); | ||
266 | spin_unlock_irqrestore(&clk_lock, flags); | ||
267 | } | ||
197 | EXPORT_SYMBOL(clk_disable); | 268 | EXPORT_SYMBOL(clk_disable); |
198 | 269 | ||
199 | static unsigned long get_uart_rate(struct clk *clk) | 270 | static unsigned long get_uart_rate(struct clk *clk) |
200 | { | 271 | { |
272 | unsigned long rate = clk_get_rate(clk->parent); | ||
201 | u32 value; | 273 | u32 value; |
202 | 274 | ||
203 | value = __raw_readl(EP93XX_SYSCON_PWRCNT); | 275 | value = __raw_readl(EP93XX_SYSCON_PWRCNT); |
204 | if (value & EP93XX_SYSCON_PWRCNT_UARTBAUD) | 276 | if (value & EP93XX_SYSCON_PWRCNT_UARTBAUD) |
205 | return EP93XX_EXT_CLK_RATE; | 277 | return rate; |
206 | else | 278 | else |
207 | return EP93XX_EXT_CLK_RATE / 2; | 279 | return rate / 2; |
208 | } | 280 | } |
209 | 281 | ||
210 | unsigned long clk_get_rate(struct clk *clk) | 282 | unsigned long clk_get_rate(struct clk *clk) |
@@ -244,16 +316,16 @@ static int set_keytchclk_rate(struct clk *clk, unsigned long rate) | |||
244 | return 0; | 316 | return 0; |
245 | } | 317 | } |
246 | 318 | ||
247 | static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | 319 | static int calc_clk_div(struct clk *clk, unsigned long rate, |
248 | int *pdiv, int *div) | 320 | int *psel, int *esel, int *pdiv, int *div) |
249 | { | 321 | { |
250 | unsigned long max_rate, best_rate = 0, | 322 | struct clk *mclk; |
251 | actual_rate = 0, mclk_rate = 0, rate_err = -1; | 323 | unsigned long max_rate, actual_rate, mclk_rate, rate_err = -1; |
252 | int i, found = 0, __div = 0, __pdiv = 0; | 324 | int i, found = 0, __div = 0, __pdiv = 0; |
253 | 325 | ||
254 | /* Don't exceed the maximum rate */ | 326 | /* Don't exceed the maximum rate */ |
255 | max_rate = max(max(clk_pll1.rate / 4, clk_pll2.rate / 4), | 327 | max_rate = max(max(clk_pll1.rate / 4, clk_pll2.rate / 4), |
256 | (unsigned long)EP93XX_EXT_CLK_RATE / 4); | 328 | clk_xtali.rate / 4); |
257 | rate = min(rate, max_rate); | 329 | rate = min(rate, max_rate); |
258 | 330 | ||
259 | /* | 331 | /* |
@@ -267,11 +339,12 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
267 | */ | 339 | */ |
268 | for (i = 0; i < 3; i++) { | 340 | for (i = 0; i < 3; i++) { |
269 | if (i == 0) | 341 | if (i == 0) |
270 | mclk_rate = EP93XX_EXT_CLK_RATE * 2; | 342 | mclk = &clk_xtali; |
271 | else if (i == 1) | 343 | else if (i == 1) |
272 | mclk_rate = clk_pll1.rate * 2; | 344 | mclk = &clk_pll1; |
273 | else if (i == 2) | 345 | else |
274 | mclk_rate = clk_pll2.rate * 2; | 346 | mclk = &clk_pll2; |
347 | mclk_rate = mclk->rate * 2; | ||
275 | 348 | ||
276 | /* Try each predivider value */ | 349 | /* Try each predivider value */ |
277 | for (__pdiv = 4; __pdiv <= 6; __pdiv++) { | 350 | for (__pdiv = 4; __pdiv <= 6; __pdiv++) { |
@@ -286,7 +359,8 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
286 | *div = __div; | 359 | *div = __div; |
287 | *psel = (i == 2); | 360 | *psel = (i == 2); |
288 | *esel = (i != 0); | 361 | *esel = (i != 0); |
289 | best_rate = actual_rate; | 362 | clk->parent = mclk; |
363 | clk->rate = actual_rate; | ||
290 | rate_err = abs(actual_rate - rate); | 364 | rate_err = abs(actual_rate - rate); |
291 | found = 1; | 365 | found = 1; |
292 | } | 366 | } |
@@ -294,21 +368,19 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
294 | } | 368 | } |
295 | 369 | ||
296 | if (!found) | 370 | if (!found) |
297 | return 0; | 371 | return -EINVAL; |
298 | 372 | ||
299 | return best_rate; | 373 | return 0; |
300 | } | 374 | } |
301 | 375 | ||
302 | static int set_div_rate(struct clk *clk, unsigned long rate) | 376 | static int set_div_rate(struct clk *clk, unsigned long rate) |
303 | { | 377 | { |
304 | unsigned long actual_rate; | 378 | int err, psel = 0, esel = 0, pdiv = 0, div = 0; |
305 | int psel = 0, esel = 0, pdiv = 0, div = 0; | ||
306 | u32 val; | 379 | u32 val; |
307 | 380 | ||
308 | actual_rate = calc_clk_div(rate, &psel, &esel, &pdiv, &div); | 381 | err = calc_clk_div(clk, rate, &psel, &esel, &pdiv, &div); |
309 | if (actual_rate == 0) | 382 | if (err) |
310 | return -EINVAL; | 383 | return err; |
311 | clk->rate = actual_rate; | ||
312 | 384 | ||
313 | /* Clear the esel, psel, pdiv and div bits */ | 385 | /* Clear the esel, psel, pdiv and div bits */ |
314 | val = __raw_readl(clk->enable_reg); | 386 | val = __raw_readl(clk->enable_reg); |
@@ -344,7 +416,7 @@ static unsigned long calc_pll_rate(u32 config_word) | |||
344 | unsigned long long rate; | 416 | unsigned long long rate; |
345 | int i; | 417 | int i; |
346 | 418 | ||
347 | rate = EP93XX_EXT_CLK_RATE; | 419 | rate = clk_xtali.rate; |
348 | rate *= ((config_word >> 11) & 0x1f) + 1; /* X1FBD */ | 420 | rate *= ((config_word >> 11) & 0x1f) + 1; /* X1FBD */ |
349 | rate *= ((config_word >> 5) & 0x3f) + 1; /* X2FBD */ | 421 | rate *= ((config_word >> 5) & 0x3f) + 1; /* X2FBD */ |
350 | do_div(rate, (config_word & 0x1f) + 1); /* X2IPD */ | 422 | do_div(rate, (config_word & 0x1f) + 1); /* X2IPD */ |
@@ -377,7 +449,7 @@ static int __init ep93xx_clock_init(void) | |||
377 | 449 | ||
378 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); | 450 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); |
379 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ | 451 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ |
380 | clk_pll1.rate = EP93XX_EXT_CLK_RATE; | 452 | clk_pll1.rate = clk_xtali.rate; |
381 | } else { | 453 | } else { |
382 | clk_pll1.rate = calc_pll_rate(value); | 454 | clk_pll1.rate = calc_pll_rate(value); |
383 | } | 455 | } |
@@ -388,7 +460,7 @@ static int __init ep93xx_clock_init(void) | |||
388 | 460 | ||
389 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET2); | 461 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET2); |
390 | if (!(value & 0x00080000)) { /* PLL2 bypassed? */ | 462 | if (!(value & 0x00080000)) { /* PLL2 bypassed? */ |
391 | clk_pll2.rate = EP93XX_EXT_CLK_RATE; | 463 | clk_pll2.rate = clk_xtali.rate; |
392 | } else if (value & 0x00040000) { /* PLL2 enabled? */ | 464 | } else if (value & 0x00040000) { /* PLL2 enabled? */ |
393 | clk_pll2.rate = calc_pll_rate(value); | 465 | clk_pll2.rate = calc_pll_rate(value); |
394 | } else { | 466 | } else { |
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index f7ebed942f66..b4357c388d2e 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -206,7 +206,6 @@ static void ep93xx_gpio_ab_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
206 | for (i = 0; i < 8; i++) { | 206 | for (i = 0; i < 8; i++) { |
207 | if (status & (1 << i)) { | 207 | if (status & (1 << i)) { |
208 | int gpio_irq = gpio_to_irq(EP93XX_GPIO_LINE_B(0)) + i; | 208 | int gpio_irq = gpio_to_irq(EP93XX_GPIO_LINE_B(0)) + i; |
209 | desc = irq_desc + gpio_irq; | ||
210 | generic_handle_irq(gpio_irq); | 209 | generic_handle_irq(gpio_irq); |
211 | } | 210 | } |
212 | } | 211 | } |
@@ -550,13 +549,11 @@ void __init ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr) | |||
550 | platform_device_register(&ep93xx_eth_device); | 549 | platform_device_register(&ep93xx_eth_device); |
551 | } | 550 | } |
552 | 551 | ||
553 | static struct i2c_gpio_platform_data ep93xx_i2c_data = { | 552 | |
554 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | 553 | /************************************************************************* |
555 | .sda_is_open_drain = 0, | 554 | * EP93xx i2c peripheral handling |
556 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | 555 | *************************************************************************/ |
557 | .scl_is_open_drain = 0, | 556 | static struct i2c_gpio_platform_data ep93xx_i2c_data; |
558 | .udelay = 2, | ||
559 | }; | ||
560 | 557 | ||
561 | static struct platform_device ep93xx_i2c_device = { | 558 | static struct platform_device ep93xx_i2c_device = { |
562 | .name = "i2c-gpio", | 559 | .name = "i2c-gpio", |
@@ -564,8 +561,25 @@ static struct platform_device ep93xx_i2c_device = { | |||
564 | .dev.platform_data = &ep93xx_i2c_data, | 561 | .dev.platform_data = &ep93xx_i2c_data, |
565 | }; | 562 | }; |
566 | 563 | ||
567 | void __init ep93xx_register_i2c(struct i2c_board_info *devices, int num) | 564 | void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
565 | struct i2c_board_info *devices, int num) | ||
568 | { | 566 | { |
567 | /* | ||
568 | * Set the EEPROM interface pin drive type control. | ||
569 | * Defines the driver type for the EECLK and EEDAT pins as either | ||
570 | * open drain, which will require an external pull-up, or a normal | ||
571 | * CMOS driver. | ||
572 | */ | ||
573 | if (data->sda_is_open_drain && data->sda_pin != EP93XX_GPIO_LINE_EEDAT) | ||
574 | pr_warning("ep93xx: sda != EEDAT, open drain has no effect\n"); | ||
575 | if (data->scl_is_open_drain && data->scl_pin != EP93XX_GPIO_LINE_EECLK) | ||
576 | pr_warning("ep93xx: scl != EECLK, open drain has no effect\n"); | ||
577 | |||
578 | __raw_writel((data->sda_is_open_drain << 1) | | ||
579 | (data->scl_is_open_drain << 0), | ||
580 | EP93XX_GPIO_EEDRIVE); | ||
581 | |||
582 | ep93xx_i2c_data = *data; | ||
569 | i2c_register_board_info(0, devices, num); | 583 | i2c_register_board_info(0, devices, num); |
570 | platform_device_register(&ep93xx_i2c_device); | 584 | platform_device_register(&ep93xx_i2c_device); |
571 | } | 585 | } |
diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c index 73145ae5d3fa..a4a7be308000 100644 --- a/arch/arm/mach-ep93xx/edb93xx.c +++ b/arch/arm/mach-ep93xx/edb93xx.c | |||
@@ -27,8 +27,10 @@ | |||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/i2c.h> | ||
31 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
31 | #include <linux/gpio.h> | ||
32 | #include <linux/i2c.h> | ||
33 | #include <linux/i2c-gpio.h> | ||
32 | 34 | ||
33 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
34 | 36 | ||
@@ -76,13 +78,26 @@ static struct ep93xx_eth_data edb93xx_eth_data = { | |||
76 | .phy_id = 1, | 78 | .phy_id = 1, |
77 | }; | 79 | }; |
78 | 80 | ||
79 | static struct i2c_board_info __initdata edb93xxa_i2c_data[] = { | 81 | |
82 | /************************************************************************* | ||
83 | * EDB93xx i2c peripheral handling | ||
84 | *************************************************************************/ | ||
85 | static struct i2c_gpio_platform_data edb93xx_i2c_gpio_data = { | ||
86 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | ||
87 | .sda_is_open_drain = 0, | ||
88 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | ||
89 | .scl_is_open_drain = 0, | ||
90 | .udelay = 0, /* default to 100 kHz */ | ||
91 | .timeout = 0, /* default to 100 ms */ | ||
92 | }; | ||
93 | |||
94 | static struct i2c_board_info __initdata edb93xxa_i2c_board_info[] = { | ||
80 | { | 95 | { |
81 | I2C_BOARD_INFO("isl1208", 0x6f), | 96 | I2C_BOARD_INFO("isl1208", 0x6f), |
82 | }, | 97 | }, |
83 | }; | 98 | }; |
84 | 99 | ||
85 | static struct i2c_board_info __initdata edb93xx_i2c_data[] = { | 100 | static struct i2c_board_info __initdata edb93xx_i2c_board_info[] = { |
86 | { | 101 | { |
87 | I2C_BOARD_INFO("ds1337", 0x68), | 102 | I2C_BOARD_INFO("ds1337", 0x68), |
88 | }, | 103 | }, |
@@ -92,12 +107,14 @@ static void __init edb93xx_register_i2c(void) | |||
92 | { | 107 | { |
93 | if (machine_is_edb9302a() || machine_is_edb9307a() || | 108 | if (machine_is_edb9302a() || machine_is_edb9307a() || |
94 | machine_is_edb9315a()) { | 109 | machine_is_edb9315a()) { |
95 | ep93xx_register_i2c(edb93xxa_i2c_data, | 110 | ep93xx_register_i2c(&edb93xx_i2c_gpio_data, |
96 | ARRAY_SIZE(edb93xxa_i2c_data)); | 111 | edb93xxa_i2c_board_info, |
112 | ARRAY_SIZE(edb93xxa_i2c_board_info)); | ||
97 | } else if (machine_is_edb9307() || machine_is_edb9312() || | 113 | } else if (machine_is_edb9307() || machine_is_edb9312() || |
98 | machine_is_edb9315()) { | 114 | machine_is_edb9315()) { |
99 | ep93xx_register_i2c(edb93xx_i2c_data, | 115 | ep93xx_register_i2c(&edb93xx_i2c_gpio_data, |
100 | ARRAY_SIZE(edb93xx_i2c_data)); | 116 | edb93xx_i2c_board_info, |
117 | ARRAY_SIZE(edb93xx_i2c_board_info)); | ||
101 | } | 118 | } |
102 | } | 119 | } |
103 | 120 | ||
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 0fbf87b16338..b1f937eda29c 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -52,25 +52,27 @@ | |||
52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 | 52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 |
53 | #define EP93XX_AHB_SIZE 0x00100000 | 53 | #define EP93XX_AHB_SIZE 0x00100000 |
54 | 54 | ||
55 | #define EP93XX_AHB_PHYS(x) (EP93XX_AHB_PHYS_BASE + (x)) | ||
55 | #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) | 56 | #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) |
56 | 57 | ||
57 | #define EP93XX_APB_PHYS_BASE 0x80800000 | 58 | #define EP93XX_APB_PHYS_BASE 0x80800000 |
58 | #define EP93XX_APB_VIRT_BASE 0xfed00000 | 59 | #define EP93XX_APB_VIRT_BASE 0xfed00000 |
59 | #define EP93XX_APB_SIZE 0x00200000 | 60 | #define EP93XX_APB_SIZE 0x00200000 |
60 | 61 | ||
62 | #define EP93XX_APB_PHYS(x) (EP93XX_APB_PHYS_BASE + (x)) | ||
61 | #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) | 63 | #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) |
62 | 64 | ||
63 | 65 | ||
64 | /* AHB peripherals */ | 66 | /* AHB peripherals */ |
65 | #define EP93XX_DMA_BASE EP93XX_AHB_IOMEM(0x00000000) | 67 | #define EP93XX_DMA_BASE EP93XX_AHB_IOMEM(0x00000000) |
66 | 68 | ||
67 | #define EP93XX_ETHERNET_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00010000) | 69 | #define EP93XX_ETHERNET_PHYS_BASE EP93XX_AHB_PHYS(0x00010000) |
68 | #define EP93XX_ETHERNET_BASE EP93XX_AHB_IOMEM(0x00010000) | 70 | #define EP93XX_ETHERNET_BASE EP93XX_AHB_IOMEM(0x00010000) |
69 | 71 | ||
70 | #define EP93XX_USB_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00020000) | 72 | #define EP93XX_USB_PHYS_BASE EP93XX_AHB_PHYS(0x00020000) |
71 | #define EP93XX_USB_BASE EP93XX_AHB_IOMEM(0x00020000) | 73 | #define EP93XX_USB_BASE EP93XX_AHB_IOMEM(0x00020000) |
72 | 74 | ||
73 | #define EP93XX_RASTER_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00030000) | 75 | #define EP93XX_RASTER_PHYS_BASE EP93XX_AHB_PHYS(0x00030000) |
74 | #define EP93XX_RASTER_BASE EP93XX_AHB_IOMEM(0x00030000) | 76 | #define EP93XX_RASTER_BASE EP93XX_AHB_IOMEM(0x00030000) |
75 | 77 | ||
76 | #define EP93XX_GRAPHICS_ACCEL_BASE EP93XX_AHB_IOMEM(0x00040000) | 78 | #define EP93XX_GRAPHICS_ACCEL_BASE EP93XX_AHB_IOMEM(0x00040000) |
@@ -112,21 +114,10 @@ | |||
112 | 114 | ||
113 | #define EP93XX_GPIO_BASE EP93XX_APB_IOMEM(0x00040000) | 115 | #define EP93XX_GPIO_BASE EP93XX_APB_IOMEM(0x00040000) |
114 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) | 116 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) |
115 | #define EP93XX_GPIO_F_INT_TYPE1 EP93XX_GPIO_REG(0x4c) | ||
116 | #define EP93XX_GPIO_F_INT_TYPE2 EP93XX_GPIO_REG(0x50) | ||
117 | #define EP93XX_GPIO_F_INT_ACK EP93XX_GPIO_REG(0x54) | ||
118 | #define EP93XX_GPIO_F_INT_ENABLE EP93XX_GPIO_REG(0x58) | ||
119 | #define EP93XX_GPIO_F_INT_STATUS EP93XX_GPIO_REG(0x5c) | 117 | #define EP93XX_GPIO_F_INT_STATUS EP93XX_GPIO_REG(0x5c) |
120 | #define EP93XX_GPIO_A_INT_TYPE1 EP93XX_GPIO_REG(0x90) | ||
121 | #define EP93XX_GPIO_A_INT_TYPE2 EP93XX_GPIO_REG(0x94) | ||
122 | #define EP93XX_GPIO_A_INT_ACK EP93XX_GPIO_REG(0x98) | ||
123 | #define EP93XX_GPIO_A_INT_ENABLE EP93XX_GPIO_REG(0x9c) | ||
124 | #define EP93XX_GPIO_A_INT_STATUS EP93XX_GPIO_REG(0xa0) | 118 | #define EP93XX_GPIO_A_INT_STATUS EP93XX_GPIO_REG(0xa0) |
125 | #define EP93XX_GPIO_B_INT_TYPE1 EP93XX_GPIO_REG(0xac) | ||
126 | #define EP93XX_GPIO_B_INT_TYPE2 EP93XX_GPIO_REG(0xb0) | ||
127 | #define EP93XX_GPIO_B_INT_ACK EP93XX_GPIO_REG(0xb4) | ||
128 | #define EP93XX_GPIO_B_INT_ENABLE EP93XX_GPIO_REG(0xb8) | ||
129 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) | 119 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) |
120 | #define EP93XX_GPIO_EEDRIVE EP93XX_GPIO_REG(0xc8) | ||
130 | 121 | ||
131 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) | 122 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) |
132 | 123 | ||
@@ -134,13 +125,13 @@ | |||
134 | 125 | ||
135 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) | 126 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) |
136 | 127 | ||
137 | #define EP93XX_UART1_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000c0000) | 128 | #define EP93XX_UART1_PHYS_BASE EP93XX_APB_PHYS(0x000c0000) |
138 | #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) | 129 | #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) |
139 | 130 | ||
140 | #define EP93XX_UART2_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000d0000) | 131 | #define EP93XX_UART2_PHYS_BASE EP93XX_APB_PHYS(0x000d0000) |
141 | #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) | 132 | #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) |
142 | 133 | ||
143 | #define EP93XX_UART3_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000e0000) | 134 | #define EP93XX_UART3_PHYS_BASE EP93XX_APB_PHYS(0x000e0000) |
144 | #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) | 135 | #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) |
145 | 136 | ||
146 | #define EP93XX_KEY_MATRIX_BASE EP93XX_APB_IOMEM(0x000f0000) | 137 | #define EP93XX_KEY_MATRIX_BASE EP93XX_APB_IOMEM(0x000f0000) |
@@ -148,10 +139,10 @@ | |||
148 | #define EP93XX_ADC_BASE EP93XX_APB_IOMEM(0x00100000) | 139 | #define EP93XX_ADC_BASE EP93XX_APB_IOMEM(0x00100000) |
149 | #define EP93XX_TOUCHSCREEN_BASE EP93XX_APB_IOMEM(0x00100000) | 140 | #define EP93XX_TOUCHSCREEN_BASE EP93XX_APB_IOMEM(0x00100000) |
150 | 141 | ||
151 | #define EP93XX_PWM_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00110000) | 142 | #define EP93XX_PWM_PHYS_BASE EP93XX_APB_PHYS(0x00110000) |
152 | #define EP93XX_PWM_BASE EP93XX_APB_IOMEM(0x00110000) | 143 | #define EP93XX_PWM_BASE EP93XX_APB_IOMEM(0x00110000) |
153 | 144 | ||
154 | #define EP93XX_RTC_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00120000) | 145 | #define EP93XX_RTC_PHYS_BASE EP93XX_APB_PHYS(0x00120000) |
155 | #define EP93XX_RTC_BASE EP93XX_APB_IOMEM(0x00120000) | 146 | #define EP93XX_RTC_BASE EP93XX_APB_IOMEM(0x00120000) |
156 | 147 | ||
157 | #define EP93XX_SYSCON_BASE EP93XX_APB_IOMEM(0x00130000) | 148 | #define EP93XX_SYSCON_BASE EP93XX_APB_IOMEM(0x00130000) |
@@ -218,6 +209,17 @@ | |||
218 | #define EP93XX_SYSCON_KEYTCHCLKDIV_ADIV (1<<16) | 209 | #define EP93XX_SYSCON_KEYTCHCLKDIV_ADIV (1<<16) |
219 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KEN (1<<15) | 210 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KEN (1<<15) |
220 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV (1<<0) | 211 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV (1<<0) |
212 | #define EP93XX_SYSCON_SYSCFG EP93XX_SYSCON_REG(0x9c) | ||
213 | #define EP93XX_SYSCON_SYSCFG_REV_MASK (0xf0000000) | ||
214 | #define EP93XX_SYSCON_SYSCFG_REV_SHIFT (28) | ||
215 | #define EP93XX_SYSCON_SYSCFG_SBOOT (1<<8) | ||
216 | #define EP93XX_SYSCON_SYSCFG_LCSN7 (1<<7) | ||
217 | #define EP93XX_SYSCON_SYSCFG_LCSN6 (1<<6) | ||
218 | #define EP93XX_SYSCON_SYSCFG_LASDO (1<<5) | ||
219 | #define EP93XX_SYSCON_SYSCFG_LEEDA (1<<4) | ||
220 | #define EP93XX_SYSCON_SYSCFG_LEECLK (1<<3) | ||
221 | #define EP93XX_SYSCON_SYSCFG_LCSN2 (1<<1) | ||
222 | #define EP93XX_SYSCON_SYSCFG_LCSN1 (1<<0) | ||
221 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) | 223 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) |
222 | 224 | ||
223 | #define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) | 225 | #define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) |
diff --git a/arch/arm/mach-ep93xx/include/mach/gpio.h b/arch/arm/mach-ep93xx/include/mach/gpio.h index 0a1498ae899a..c991b149bdf2 100644 --- a/arch/arm/mach-ep93xx/include/mach/gpio.h +++ b/arch/arm/mach-ep93xx/include/mach/gpio.h | |||
@@ -114,17 +114,9 @@ extern void ep93xx_gpio_int_debounce(unsigned int irq, int enable); | |||
114 | * B0..B7 (7..15) to irq 72..79, and | 114 | * B0..B7 (7..15) to irq 72..79, and |
115 | * F0..F7 (16..24) to irq 80..87. | 115 | * F0..F7 (16..24) to irq 80..87. |
116 | */ | 116 | */ |
117 | static inline int gpio_to_irq(unsigned gpio) | 117 | #define gpio_to_irq(gpio) \ |
118 | { | 118 | (((gpio) <= EP93XX_GPIO_LINE_MAX_IRQ) ? (64 + (gpio)) : -EINVAL) |
119 | if (gpio <= EP93XX_GPIO_LINE_MAX_IRQ) | 119 | |
120 | return 64 + gpio; | 120 | #define irq_to_gpio(irq) ((irq) - gpio_to_irq(0)) |
121 | |||
122 | return -EINVAL; | ||
123 | } | ||
124 | |||
125 | static inline int irq_to_gpio(unsigned irq) | ||
126 | { | ||
127 | return irq - gpio_to_irq(0); | ||
128 | } | ||
129 | 121 | ||
130 | #endif | 122 | #endif |
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h index 925b12ea0990..554064e90307 100644 --- a/arch/arm/mach-ep93xx/include/mach/memory.h +++ b/arch/arm/mach-ep93xx/include/mach/memory.h | |||
@@ -9,6 +9,12 @@ | |||
9 | #define PHYS_OFFSET UL(0x00000000) | 9 | #define PHYS_OFFSET UL(0x00000000) |
10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) | 10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) |
11 | #define PHYS_OFFSET UL(0xc0000000) | 11 | #define PHYS_OFFSET UL(0xc0000000) |
12 | #elif defined(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) | ||
13 | #define PHYS_OFFSET UL(0xd0000000) | ||
14 | #elif defined(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) | ||
15 | #define PHYS_OFFSET UL(0xe0000000) | ||
16 | #elif defined(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) | ||
17 | #define PHYS_OFFSET UL(0xf0000000) | ||
12 | #else | 18 | #else |
13 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" | 19 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" |
14 | #endif | 20 | #endif |
diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h index 01a0f0838e5b..469fd968d517 100644 --- a/arch/arm/mach-ep93xx/include/mach/platform.h +++ b/arch/arm/mach-ep93xx/include/mach/platform.h | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
6 | 6 | ||
7 | struct i2c_gpio_platform_data; | ||
7 | struct i2c_board_info; | 8 | struct i2c_board_info; |
8 | struct platform_device; | 9 | struct platform_device; |
9 | struct ep93xxfb_mach_info; | 10 | struct ep93xxfb_mach_info; |
@@ -16,7 +17,6 @@ struct ep93xx_eth_data | |||
16 | 17 | ||
17 | void ep93xx_map_io(void); | 18 | void ep93xx_map_io(void); |
18 | void ep93xx_init_irq(void); | 19 | void ep93xx_init_irq(void); |
19 | void ep93xx_init_time(unsigned long); | ||
20 | 20 | ||
21 | /* EP93xx System Controller software locked register write */ | 21 | /* EP93xx System Controller software locked register write */ |
22 | void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg); | 22 | void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg); |
@@ -33,7 +33,8 @@ static inline void ep93xx_devcfg_clear_bits(unsigned int bits) | |||
33 | } | 33 | } |
34 | 34 | ||
35 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); | 35 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); |
36 | void ep93xx_register_i2c(struct i2c_board_info *devices, int num); | 36 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
37 | struct i2c_board_info *devices, int num); | ||
37 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); | 38 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); |
38 | void ep93xx_register_pwm(int pwm0, int pwm1); | 39 | void ep93xx_register_pwm(int pwm0, int pwm1); |
39 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); | 40 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); |
diff --git a/arch/arm/mach-ep93xx/micro9.c b/arch/arm/mach-ep93xx/micro9.c index 0a313e82fb74..f3757a1c5a10 100644 --- a/arch/arm/mach-ep93xx/micro9.c +++ b/arch/arm/mach-ep93xx/micro9.c | |||
@@ -2,7 +2,9 @@ | |||
2 | * linux/arch/arm/mach-ep93xx/micro9.c | 2 | * linux/arch/arm/mach-ep93xx/micro9.c |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Contec Steuerungstechnik & Automation GmbH | 4 | * Copyright (C) 2006 Contec Steuerungstechnik & Automation GmbH |
5 | * Manfred Gruber <manfred.gruber@contec.at> | 5 | * Manfred Gruber <m.gruber@tirol.com> |
6 | * Copyright (C) 2009 Contec Steuerungstechnik & Automation GmbH | ||
7 | * Hubert Feurstein <hubert.feurstein@contec.at> | ||
6 | * | 8 | * |
7 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
@@ -13,6 +15,7 @@ | |||
13 | #include <linux/init.h> | 15 | #include <linux/init.h> |
14 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
15 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
18 | #include <linux/io.h> | ||
16 | 19 | ||
17 | #include <mach/hardware.h> | 20 | #include <mach/hardware.h> |
18 | 21 | ||
@@ -20,104 +23,124 @@ | |||
20 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
21 | 24 | ||
22 | 25 | ||
23 | static struct ep93xx_eth_data micro9_eth_data = { | 26 | /************************************************************************* |
24 | .phy_id = 0x1f, | 27 | * Micro9 NOR Flash |
25 | }; | 28 | * |
26 | 29 | * Micro9-High has up to 64MB of 32-bit flash on CS1 | |
27 | static void __init micro9_init(void) | 30 | * Micro9-Mid has up to 64MB of either 32-bit or 16-bit flash on CS1 |
28 | { | 31 | * Micro9-Lite uses a seperate MTD map driver for flash support |
29 | ep93xx_register_eth(µ9_eth_data, 1); | 32 | * Micro9-Slim has up to 64MB of either 32-bit or 16-bit flash on CS1 |
30 | } | 33 | *************************************************************************/ |
31 | 34 | static struct physmap_flash_data micro9_flash_data; | |
32 | /* | 35 | |
33 | * Micro9-H | 36 | static struct resource micro9_flash_resource = { |
34 | */ | ||
35 | #ifdef CONFIG_MACH_MICRO9H | ||
36 | static struct physmap_flash_data micro9h_flash_data = { | ||
37 | .width = 4, | ||
38 | }; | ||
39 | |||
40 | static struct resource micro9h_flash_resource = { | ||
41 | .start = EP93XX_CS1_PHYS_BASE, | 37 | .start = EP93XX_CS1_PHYS_BASE, |
42 | .end = EP93XX_CS1_PHYS_BASE + SZ_64M - 1, | 38 | .end = EP93XX_CS1_PHYS_BASE + SZ_64M - 1, |
43 | .flags = IORESOURCE_MEM, | 39 | .flags = IORESOURCE_MEM, |
44 | }; | 40 | }; |
45 | 41 | ||
46 | static struct platform_device micro9h_flash = { | 42 | static struct platform_device micro9_flash = { |
47 | .name = "physmap-flash", | 43 | .name = "physmap-flash", |
48 | .id = 0, | 44 | .id = 0, |
49 | .dev = { | 45 | .dev = { |
50 | .platform_data = µ9h_flash_data, | 46 | .platform_data = µ9_flash_data, |
51 | }, | 47 | }, |
52 | .num_resources = 1, | 48 | .num_resources = 1, |
53 | .resource = µ9h_flash_resource, | 49 | .resource = µ9_flash_resource, |
54 | }; | 50 | }; |
55 | 51 | ||
56 | static void __init micro9h_init(void) | 52 | static void __init __micro9_register_flash(unsigned int width) |
53 | { | ||
54 | micro9_flash_data.width = width; | ||
55 | |||
56 | platform_device_register(µ9_flash); | ||
57 | } | ||
58 | |||
59 | static unsigned int __init micro9_detect_bootwidth(void) | ||
60 | { | ||
61 | u32 v; | ||
62 | |||
63 | /* Detect the bus width of the external flash memory */ | ||
64 | v = __raw_readl(EP93XX_SYSCON_SYSCFG); | ||
65 | if (v & EP93XX_SYSCON_SYSCFG_LCSN7) | ||
66 | return 4; /* 32-bit */ | ||
67 | else | ||
68 | return 2; /* 16-bit */ | ||
69 | } | ||
70 | |||
71 | static void __init micro9_register_flash(void) | ||
57 | { | 72 | { |
58 | platform_device_register(µ9h_flash); | 73 | if (machine_is_micro9()) |
74 | __micro9_register_flash(4); | ||
75 | else if (machine_is_micro9m() || machine_is_micro9s()) | ||
76 | __micro9_register_flash(micro9_detect_bootwidth()); | ||
59 | } | 77 | } |
60 | 78 | ||
61 | static void __init micro9h_init_machine(void) | 79 | |
80 | /************************************************************************* | ||
81 | * Micro9 Ethernet | ||
82 | *************************************************************************/ | ||
83 | static struct ep93xx_eth_data micro9_eth_data = { | ||
84 | .phy_id = 0x1f, | ||
85 | }; | ||
86 | |||
87 | |||
88 | static void __init micro9_init_machine(void) | ||
62 | { | 89 | { |
63 | ep93xx_init_devices(); | 90 | ep93xx_init_devices(); |
64 | micro9_init(); | 91 | ep93xx_register_eth(µ9_eth_data, 1); |
65 | micro9h_init(); | 92 | micro9_register_flash(); |
66 | } | 93 | } |
67 | 94 | ||
68 | MACHINE_START(MICRO9, "Contec Hypercontrol Micro9-H") | 95 | |
69 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | 96 | #ifdef CONFIG_MACH_MICRO9H |
97 | MACHINE_START(MICRO9, "Contec Micro9-High") | ||
98 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ | ||
70 | .phys_io = EP93XX_APB_PHYS_BASE, | 99 | .phys_io = EP93XX_APB_PHYS_BASE, |
71 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 100 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
72 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 101 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, |
73 | .map_io = ep93xx_map_io, | 102 | .map_io = ep93xx_map_io, |
74 | .init_irq = ep93xx_init_irq, | 103 | .init_irq = ep93xx_init_irq, |
75 | .timer = &ep93xx_timer, | 104 | .timer = &ep93xx_timer, |
76 | .init_machine = micro9h_init_machine, | 105 | .init_machine = micro9_init_machine, |
77 | MACHINE_END | 106 | MACHINE_END |
78 | #endif | 107 | #endif |
79 | 108 | ||
80 | /* | ||
81 | * Micro9-M | ||
82 | */ | ||
83 | #ifdef CONFIG_MACH_MICRO9M | 109 | #ifdef CONFIG_MACH_MICRO9M |
84 | static void __init micro9m_init_machine(void) | 110 | MACHINE_START(MICRO9M, "Contec Micro9-Mid") |
85 | { | 111 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ |
86 | ep93xx_init_devices(); | ||
87 | micro9_init(); | ||
88 | } | ||
89 | |||
90 | MACHINE_START(MICRO9M, "Contec Hypercontrol Micro9-M") | ||
91 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | ||
92 | .phys_io = EP93XX_APB_PHYS_BASE, | 112 | .phys_io = EP93XX_APB_PHYS_BASE, |
93 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 113 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
94 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 114 | .boot_params = EP93XX_SDCE3_PHYS_BASE_ASYNC + 0x100, |
95 | .map_io = ep93xx_map_io, | 115 | .map_io = ep93xx_map_io, |
96 | .init_irq = ep93xx_init_irq, | 116 | .init_irq = ep93xx_init_irq, |
97 | .timer = &ep93xx_timer, | 117 | .timer = &ep93xx_timer, |
98 | .init_machine = micro9m_init_machine, | 118 | .init_machine = micro9_init_machine, |
99 | MACHINE_END | 119 | MACHINE_END |
100 | #endif | 120 | #endif |
101 | 121 | ||
102 | /* | ||
103 | * Micro9-L | ||
104 | */ | ||
105 | #ifdef CONFIG_MACH_MICRO9L | 122 | #ifdef CONFIG_MACH_MICRO9L |
106 | static void __init micro9l_init_machine(void) | 123 | MACHINE_START(MICRO9L, "Contec Micro9-Lite") |
107 | { | 124 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ |
108 | ep93xx_init_devices(); | ||
109 | micro9_init(); | ||
110 | } | ||
111 | |||
112 | MACHINE_START(MICRO9L, "Contec Hypercontrol Micro9-L") | ||
113 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | ||
114 | .phys_io = EP93XX_APB_PHYS_BASE, | 125 | .phys_io = EP93XX_APB_PHYS_BASE, |
115 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 126 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
116 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 127 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, |
117 | .map_io = ep93xx_map_io, | 128 | .map_io = ep93xx_map_io, |
118 | .init_irq = ep93xx_init_irq, | 129 | .init_irq = ep93xx_init_irq, |
119 | .timer = &ep93xx_timer, | 130 | .timer = &ep93xx_timer, |
120 | .init_machine = micro9l_init_machine, | 131 | .init_machine = micro9_init_machine, |
121 | MACHINE_END | 132 | MACHINE_END |
122 | #endif | 133 | #endif |
123 | 134 | ||
135 | #ifdef CONFIG_MACH_MICRO9S | ||
136 | MACHINE_START(MICRO9S, "Contec Micro9-Slim") | ||
137 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ | ||
138 | .phys_io = EP93XX_APB_PHYS_BASE, | ||
139 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | ||
140 | .boot_params = EP93XX_SDCE3_PHYS_BASE_ASYNC + 0x100, | ||
141 | .map_io = ep93xx_map_io, | ||
142 | .init_irq = ep93xx_init_irq, | ||
143 | .timer = &ep93xx_timer, | ||
144 | .init_machine = micro9_init_machine, | ||
145 | MACHINE_END | ||
146 | #endif | ||
diff --git a/arch/arm/mach-integrator/include/mach/memory.h b/arch/arm/mach-integrator/include/mach/memory.h index 2b2e7a110724..4891828454f5 100644 --- a/arch/arm/mach-integrator/include/mach/memory.h +++ b/arch/arm/mach-integrator/include/mach/memory.h | |||
@@ -28,5 +28,6 @@ | |||
28 | #define BUS_OFFSET UL(0x80000000) | 28 | #define BUS_OFFSET UL(0x80000000) |
29 | #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET) | 29 | #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET) |
30 | #define __bus_to_virt(x) ((x) - BUS_OFFSET + PAGE_OFFSET) | 30 | #define __bus_to_virt(x) ((x) - BUS_OFFSET + PAGE_OFFSET) |
31 | #define __pfn_to_bus(x) (((x) << PAGE_SHIFT) + BUS_OFFSET) | ||
31 | 32 | ||
32 | #endif | 33 | #endif |
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index 901cc205015e..148d25fc636f 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include <mach/hardware.h> | 32 | #include <mach/hardware.h> |
33 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
34 | #include <asm/signal.h> | ||
34 | #include <asm/system.h> | 35 | #include <asm/system.h> |
35 | #include <asm/mach/pci.h> | 36 | #include <asm/mach/pci.h> |
36 | #include <asm/irq_regs.h> | 37 | #include <asm/irq_regs.h> |
diff --git a/arch/arm/mach-kirkwood/addr-map.c b/arch/arm/mach-kirkwood/addr-map.c index 1da5d1c18ecb..2e69168fc699 100644 --- a/arch/arm/mach-kirkwood/addr-map.c +++ b/arch/arm/mach-kirkwood/addr-map.c | |||
@@ -105,7 +105,7 @@ void __init kirkwood_setup_cpu_mbus(void) | |||
105 | setup_cpu_win(0, KIRKWOOD_PCIE_IO_PHYS_BASE, KIRKWOOD_PCIE_IO_SIZE, | 105 | setup_cpu_win(0, KIRKWOOD_PCIE_IO_PHYS_BASE, KIRKWOOD_PCIE_IO_SIZE, |
106 | TARGET_PCIE, ATTR_PCIE_IO, KIRKWOOD_PCIE_IO_BUS_BASE); | 106 | TARGET_PCIE, ATTR_PCIE_IO, KIRKWOOD_PCIE_IO_BUS_BASE); |
107 | setup_cpu_win(1, KIRKWOOD_PCIE_MEM_PHYS_BASE, KIRKWOOD_PCIE_MEM_SIZE, | 107 | setup_cpu_win(1, KIRKWOOD_PCIE_MEM_PHYS_BASE, KIRKWOOD_PCIE_MEM_SIZE, |
108 | TARGET_PCIE, ATTR_PCIE_MEM, -1); | 108 | TARGET_PCIE, ATTR_PCIE_MEM, KIRKWOOD_PCIE_MEM_BUS_BASE); |
109 | 109 | ||
110 | /* | 110 | /* |
111 | * Setup window for NAND controller. | 111 | * Setup window for NAND controller. |
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 0acb61f3c10b..242dd0775343 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -845,7 +845,7 @@ int __init kirkwood_find_tclk(void) | |||
845 | return 166666667; | 845 | return 166666667; |
846 | } | 846 | } |
847 | 847 | ||
848 | static void kirkwood_timer_init(void) | 848 | static void __init kirkwood_timer_init(void) |
849 | { | 849 | { |
850 | kirkwood_tclk = kirkwood_find_tclk(); | 850 | kirkwood_tclk = kirkwood_find_tclk(); |
851 | orion_time_init(IRQ_KIRKWOOD_BRIDGE, kirkwood_tclk); | 851 | orion_time_init(IRQ_KIRKWOOD_BRIDGE, kirkwood_tclk); |
@@ -915,6 +915,14 @@ void __init kirkwood_init(void) | |||
915 | kirkwood_uart0_data[0].uartclk = kirkwood_tclk; | 915 | kirkwood_uart0_data[0].uartclk = kirkwood_tclk; |
916 | kirkwood_uart1_data[0].uartclk = kirkwood_tclk; | 916 | kirkwood_uart1_data[0].uartclk = kirkwood_tclk; |
917 | 917 | ||
918 | /* | ||
919 | * Disable propagation of mbus errors to the CPU local bus, | ||
920 | * as this causes mbus errors (which can occur for example | ||
921 | * for PCI aborts) to throw CPU aborts, which we're not set | ||
922 | * up to deal with. | ||
923 | */ | ||
924 | writel(readl(CPU_CONFIG) & ~CPU_CONFIG_ERROR_PROP, CPU_CONFIG); | ||
925 | |||
918 | kirkwood_setup_cpu_mbus(); | 926 | kirkwood_setup_cpu_mbus(); |
919 | 927 | ||
920 | #ifdef CONFIG_CACHE_FEROCEON_L2 | 928 | #ifdef CONFIG_CACHE_FEROCEON_L2 |
diff --git a/arch/arm/mach-kirkwood/include/mach/bridge-regs.h b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h index 9e80d9232c83..418f5017c50e 100644 --- a/arch/arm/mach-kirkwood/include/mach/bridge-regs.h +++ b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h | |||
@@ -13,6 +13,9 @@ | |||
13 | 13 | ||
14 | #include <mach/kirkwood.h> | 14 | #include <mach/kirkwood.h> |
15 | 15 | ||
16 | #define CPU_CONFIG (BRIDGE_VIRT_BASE | 0x0100) | ||
17 | #define CPU_CONFIG_ERROR_PROP 0x00000004 | ||
18 | |||
16 | #define CPU_CONTROL (BRIDGE_VIRT_BASE | 0x0104) | 19 | #define CPU_CONTROL (BRIDGE_VIRT_BASE | 0x0104) |
17 | #define CPU_RESET 0x00000002 | 20 | #define CPU_RESET 0x00000002 |
18 | 21 | ||
diff --git a/arch/arm/mach-kirkwood/include/mach/io.h b/arch/arm/mach-kirkwood/include/mach/io.h index a643a846d5fb..44e8be04f259 100644 --- a/arch/arm/mach-kirkwood/include/mach/io.h +++ b/arch/arm/mach-kirkwood/include/mach/io.h | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | static inline void __iomem *__io(unsigned long addr) | 16 | static inline void __iomem *__io(unsigned long addr) |
17 | { | 17 | { |
18 | return (void __iomem *)((addr - KIRKWOOD_PCIE_IO_PHYS_BASE) | 18 | return (void __iomem *)((addr - KIRKWOOD_PCIE_IO_BUS_BASE) |
19 | + KIRKWOOD_PCIE_IO_VIRT_BASE); | 19 | + KIRKWOOD_PCIE_IO_VIRT_BASE); |
20 | } | 20 | } |
21 | 21 | ||
diff --git a/arch/arm/mach-kirkwood/include/mach/kirkwood.h b/arch/arm/mach-kirkwood/include/mach/kirkwood.h index 54c132731d2d..a15cf0ee22bd 100644 --- a/arch/arm/mach-kirkwood/include/mach/kirkwood.h +++ b/arch/arm/mach-kirkwood/include/mach/kirkwood.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #define KIRKWOOD_REGS_SIZE SZ_1M | 43 | #define KIRKWOOD_REGS_SIZE SZ_1M |
44 | 44 | ||
45 | #define KIRKWOOD_PCIE_MEM_PHYS_BASE 0xe0000000 | 45 | #define KIRKWOOD_PCIE_MEM_PHYS_BASE 0xe0000000 |
46 | #define KIRKWOOD_PCIE_MEM_BUS_BASE 0xe0000000 | ||
46 | #define KIRKWOOD_PCIE_MEM_SIZE SZ_128M | 47 | #define KIRKWOOD_PCIE_MEM_SIZE SZ_128M |
47 | 48 | ||
48 | /* | 49 | /* |
diff --git a/arch/arm/mach-kirkwood/openrd_base-setup.c b/arch/arm/mach-kirkwood/openrd_base-setup.c index 947dfb8cd5b2..77617c722299 100644 --- a/arch/arm/mach-kirkwood/openrd_base-setup.c +++ b/arch/arm/mach-kirkwood/openrd_base-setup.c | |||
@@ -70,8 +70,20 @@ static void __init openrd_base_init(void) | |||
70 | kirkwood_ge00_init(&openrd_base_ge00_data); | 70 | kirkwood_ge00_init(&openrd_base_ge00_data); |
71 | kirkwood_sata_init(&openrd_base_sata_data); | 71 | kirkwood_sata_init(&openrd_base_sata_data); |
72 | kirkwood_sdio_init(&openrd_base_mvsdio_data); | 72 | kirkwood_sdio_init(&openrd_base_mvsdio_data); |
73 | |||
74 | kirkwood_i2c_init(); | ||
73 | } | 75 | } |
74 | 76 | ||
77 | static int __init openrd_base_pci_init(void) | ||
78 | { | ||
79 | if (machine_is_openrd_base()) | ||
80 | kirkwood_pcie_init(); | ||
81 | |||
82 | return 0; | ||
83 | } | ||
84 | subsys_initcall(openrd_base_pci_init); | ||
85 | |||
86 | |||
75 | MACHINE_START(OPENRD_BASE, "Marvell OpenRD Base Board") | 87 | MACHINE_START(OPENRD_BASE, "Marvell OpenRD Base Board") |
76 | /* Maintainer: Dhaval Vasa <dhaval.vasa@einfochips.com> */ | 88 | /* Maintainer: Dhaval Vasa <dhaval.vasa@einfochips.com> */ |
77 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | 89 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, |
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index d90b9aae308d..a604b2a701aa 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -93,7 +93,7 @@ static struct pci_ops pcie_ops = { | |||
93 | }; | 93 | }; |
94 | 94 | ||
95 | 95 | ||
96 | static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | 96 | static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) |
97 | { | 97 | { |
98 | struct resource *res; | 98 | struct resource *res; |
99 | extern unsigned int kirkwood_clk_ctrl; | 99 | extern unsigned int kirkwood_clk_ctrl; |
@@ -115,7 +115,7 @@ static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
115 | */ | 115 | */ |
116 | res[0].name = "PCIe I/O Space"; | 116 | res[0].name = "PCIe I/O Space"; |
117 | res[0].flags = IORESOURCE_IO; | 117 | res[0].flags = IORESOURCE_IO; |
118 | res[0].start = KIRKWOOD_PCIE_IO_PHYS_BASE; | 118 | res[0].start = KIRKWOOD_PCIE_IO_BUS_BASE; |
119 | res[0].end = res[0].start + KIRKWOOD_PCIE_IO_SIZE - 1; | 119 | res[0].end = res[0].start + KIRKWOOD_PCIE_IO_SIZE - 1; |
120 | if (request_resource(&ioport_resource, &res[0])) | 120 | if (request_resource(&ioport_resource, &res[0])) |
121 | panic("Request PCIe IO resource failed\n"); | 121 | panic("Request PCIe IO resource failed\n"); |
@@ -126,7 +126,7 @@ static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
126 | */ | 126 | */ |
127 | res[1].name = "PCIe Memory Space"; | 127 | res[1].name = "PCIe Memory Space"; |
128 | res[1].flags = IORESOURCE_MEM; | 128 | res[1].flags = IORESOURCE_MEM; |
129 | res[1].start = KIRKWOOD_PCIE_MEM_PHYS_BASE; | 129 | res[1].start = KIRKWOOD_PCIE_MEM_BUS_BASE; |
130 | res[1].end = res[1].start + KIRKWOOD_PCIE_MEM_SIZE - 1; | 130 | res[1].end = res[1].start + KIRKWOOD_PCIE_MEM_SIZE - 1; |
131 | if (request_resource(&iomem_resource, &res[1])) | 131 | if (request_resource(&iomem_resource, &res[1])) |
132 | panic("Request PCIe Memory resource failed\n"); | 132 | panic("Request PCIe Memory resource failed\n"); |
diff --git a/arch/arm/mach-ks8695/include/mach/regs-switch.h b/arch/arm/mach-ks8695/include/mach/regs-switch.h index 56d12e8de895..97e8acb1cf6c 100644 --- a/arch/arm/mach-ks8695/include/mach/regs-switch.h +++ b/arch/arm/mach-ks8695/include/mach/regs-switch.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #define KS8695_SEC1 (0x04) /* Switch Engine Control 1 */ | 25 | #define KS8695_SEC1 (0x04) /* Switch Engine Control 1 */ |
26 | #define KS8695_SEC2 (0x08) /* Switch Engine Control 2 */ | 26 | #define KS8695_SEC2 (0x08) /* Switch Engine Control 2 */ |
27 | 27 | ||
28 | #define KS8695_P(x)_C(z) (0xc0 + (((x)-1)*3 + ((z)-1))*4) /* Port Configuration Registers */ | 28 | #define KS8695_SEPXCZ(x,z) (0x0c + (((x)-1)*3 + ((z)-1))*4) /* Port Configuration Registers */ |
29 | 29 | ||
30 | #define KS8695_SEP12AN (0x48) /* Port 1 & 2 Auto-Negotiation */ | 30 | #define KS8695_SEP12AN (0x48) /* Port 1 & 2 Auto-Negotiation */ |
31 | #define KS8695_SEP34AN (0x4c) /* Port 3 & 4 Auto-Negotiation */ | 31 | #define KS8695_SEP34AN (0x4c) /* Port 3 & 4 Auto-Negotiation */ |
diff --git a/arch/arm/mach-mmp/include/mach/mfp-pxa910.h b/arch/arm/mach-mmp/include/mach/mfp-pxa910.h index bf1189ff9a34..7e8a80f25ddc 100644 --- a/arch/arm/mach-mmp/include/mach/mfp-pxa910.h +++ b/arch/arm/mach-mmp/include/mach/mfp-pxa910.h | |||
@@ -160,7 +160,7 @@ | |||
160 | #define MMC1_WP_MMC1_WP MFP_CFG_DRV(MMC1_WP, AF0, MEDIUM) | 160 | #define MMC1_WP_MMC1_WP MFP_CFG_DRV(MMC1_WP, AF0, MEDIUM) |
161 | 161 | ||
162 | /* PWM */ | 162 | /* PWM */ |
163 | #define GPIO27 PWM3 AF2 MFP_CFG(GPIO27, AF2) | 163 | #define GPIO27_PWM3_AF2 MFP_CFG(GPIO27, AF2) |
164 | #define GPIO51_PWM2_OUT MFP_CFG(GPIO51, AF2) | 164 | #define GPIO51_PWM2_OUT MFP_CFG(GPIO51, AF2) |
165 | #define GPIO117_PWM1_OUT MFP_CFG(GPIO117, AF2) | 165 | #define GPIO117_PWM1_OUT MFP_CFG(GPIO117, AF2) |
166 | #define GPIO118_PWM2_OUT MFP_CFG(GPIO118, AF2) | 166 | #define GPIO118_PWM2_OUT MFP_CFG(GPIO118, AF2) |
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c index 1b22e4af8791..08465eb6a2c2 100644 --- a/arch/arm/mach-mv78xx0/common.c +++ b/arch/arm/mach-mv78xx0/common.c | |||
@@ -845,6 +845,8 @@ static char * __init mv78xx0_id(void) | |||
845 | } else if (dev == MV78100_DEV_ID) { | 845 | } else if (dev == MV78100_DEV_ID) { |
846 | if (rev == MV78100_REV_A0) | 846 | if (rev == MV78100_REV_A0) |
847 | return "MV78100-A0"; | 847 | return "MV78100-A0"; |
848 | else if (rev == MV78100_REV_A1) | ||
849 | return "MV78100-A1"; | ||
848 | else | 850 | else |
849 | return "MV78100-Rev-Unsupported"; | 851 | return "MV78100-Rev-Unsupported"; |
850 | } else if (dev == MV78200_DEV_ID) { | 852 | } else if (dev == MV78200_DEV_ID) { |
diff --git a/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h b/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h index d715b92b0908..788bdace1304 100644 --- a/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h +++ b/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h | |||
@@ -112,6 +112,7 @@ | |||
112 | 112 | ||
113 | #define MV78100_DEV_ID 0x7810 | 113 | #define MV78100_DEV_ID 0x7810 |
114 | #define MV78100_REV_A0 1 | 114 | #define MV78100_REV_A0 1 |
115 | #define MV78100_REV_A1 2 | ||
115 | 116 | ||
116 | #define MV78200_DEV_ID 0x7820 | 117 | #define MV78200_DEV_ID 0x7820 |
117 | #define MV78200_REV_A0 1 | 118 | #define MV78200_REV_A0 1 |
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c index 4089951acb47..ff5e33298914 100644 --- a/arch/arm/mach-mx2/clock_imx27.c +++ b/arch/arm/mach-mx2/clock_imx27.c | |||
@@ -638,9 +638,9 @@ static struct clk_lookup lookups[] = { | |||
638 | _REGISTER_CLOCK("mxc-mmc.0", NULL, sdhc1_clk) | 638 | _REGISTER_CLOCK("mxc-mmc.0", NULL, sdhc1_clk) |
639 | _REGISTER_CLOCK("mxc-mmc.1", NULL, sdhc2_clk) | 639 | _REGISTER_CLOCK("mxc-mmc.1", NULL, sdhc2_clk) |
640 | _REGISTER_CLOCK("mxc-mmc.2", NULL, sdhc3_clk) | 640 | _REGISTER_CLOCK("mxc-mmc.2", NULL, sdhc3_clk) |
641 | _REGISTER_CLOCK(NULL, "cspi1", cspi1_clk) | 641 | _REGISTER_CLOCK("spi_imx.0", NULL, cspi1_clk) |
642 | _REGISTER_CLOCK(NULL, "cspi2", cspi2_clk) | 642 | _REGISTER_CLOCK("spi_imx.1", NULL, cspi2_clk) |
643 | _REGISTER_CLOCK(NULL, "cspi3", cspi3_clk) | 643 | _REGISTER_CLOCK("spi_imx.2", NULL, cspi3_clk) |
644 | _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) | 644 | _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) |
645 | _REGISTER_CLOCK(NULL, "csi", csi_clk) | 645 | _REGISTER_CLOCK(NULL, "csi", csi_clk) |
646 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk) | 646 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk) |
@@ -665,7 +665,7 @@ static struct clk_lookup lookups[] = { | |||
665 | _REGISTER_CLOCK(NULL, "sahara2", sahara2_clk) | 665 | _REGISTER_CLOCK(NULL, "sahara2", sahara2_clk) |
666 | _REGISTER_CLOCK(NULL, "ata", ata_clk) | 666 | _REGISTER_CLOCK(NULL, "ata", ata_clk) |
667 | _REGISTER_CLOCK(NULL, "mstick", mstick_clk) | 667 | _REGISTER_CLOCK(NULL, "mstick", mstick_clk) |
668 | _REGISTER_CLOCK(NULL, "wdog", wdog_clk) | 668 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) |
669 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) | 669 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) |
670 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 670 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
671 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 671 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c index ee65dda584cf..906d59b0a7aa 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/pcm038.c | |||
@@ -23,6 +23,10 @@ | |||
23 | #include <linux/mtd/plat-ram.h> | 23 | #include <linux/mtd/plat-ram.h> |
24 | #include <linux/mtd/physmap.h> | 24 | #include <linux/mtd/physmap.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/regulator/machine.h> | ||
27 | #include <linux/mfd/mc13783.h> | ||
28 | #include <linux/spi/spi.h> | ||
29 | #include <linux/irq.h> | ||
26 | 30 | ||
27 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
@@ -35,6 +39,7 @@ | |||
35 | #include <mach/iomux.h> | 39 | #include <mach/iomux.h> |
36 | #include <mach/imx-uart.h> | 40 | #include <mach/imx-uart.h> |
37 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
42 | #include <mach/spi.h> | ||
38 | 43 | ||
39 | #include "devices.h" | 44 | #include "devices.h" |
40 | 45 | ||
@@ -78,8 +83,6 @@ static int pcm038_pins[] = { | |||
78 | PC6_PF_I2C2_SCL, | 83 | PC6_PF_I2C2_SCL, |
79 | /* SPI1 */ | 84 | /* SPI1 */ |
80 | PD25_PF_CSPI1_RDY, | 85 | PD25_PF_CSPI1_RDY, |
81 | PD27_PF_CSPI1_SS1, | ||
82 | PD28_PF_CSPI1_SS0, | ||
83 | PD29_PF_CSPI1_SCLK, | 86 | PD29_PF_CSPI1_SCLK, |
84 | PD30_PF_CSPI1_MISO, | 87 | PD30_PF_CSPI1_MISO, |
85 | PD31_PF_CSPI1_MOSI, | 88 | PD31_PF_CSPI1_MOSI, |
@@ -196,6 +199,86 @@ static struct i2c_board_info pcm038_i2c_devices[] = { | |||
196 | } | 199 | } |
197 | }; | 200 | }; |
198 | 201 | ||
202 | static int pcm038_spi_cs[] = {GPIO_PORTD + 28}; | ||
203 | |||
204 | static struct spi_imx_master pcm038_spi_0_data = { | ||
205 | .chipselect = pcm038_spi_cs, | ||
206 | .num_chipselect = ARRAY_SIZE(pcm038_spi_cs), | ||
207 | }; | ||
208 | |||
209 | static struct regulator_consumer_supply sdhc1_consumers[] = { | ||
210 | { | ||
211 | .dev = &mxc_sdhc_device1.dev, | ||
212 | .supply = "sdhc_vcc", | ||
213 | }, | ||
214 | }; | ||
215 | |||
216 | static struct regulator_init_data sdhc1_data = { | ||
217 | .constraints = { | ||
218 | .min_uV = 3000000, | ||
219 | .max_uV = 3400000, | ||
220 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
221 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, | ||
222 | .valid_modes_mask = REGULATOR_MODE_NORMAL | | ||
223 | REGULATOR_MODE_FAST, | ||
224 | .always_on = 0, | ||
225 | .boot_on = 0, | ||
226 | }, | ||
227 | .num_consumer_supplies = ARRAY_SIZE(sdhc1_consumers), | ||
228 | .consumer_supplies = sdhc1_consumers, | ||
229 | }; | ||
230 | |||
231 | static struct regulator_consumer_supply cam_consumers[] = { | ||
232 | { | ||
233 | .dev = NULL, | ||
234 | .supply = "imx_cam_vcc", | ||
235 | }, | ||
236 | }; | ||
237 | |||
238 | static struct regulator_init_data cam_data = { | ||
239 | .constraints = { | ||
240 | .min_uV = 3000000, | ||
241 | .max_uV = 3400000, | ||
242 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
243 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, | ||
244 | .valid_modes_mask = REGULATOR_MODE_NORMAL | | ||
245 | REGULATOR_MODE_FAST, | ||
246 | .always_on = 0, | ||
247 | .boot_on = 0, | ||
248 | }, | ||
249 | .num_consumer_supplies = ARRAY_SIZE(cam_consumers), | ||
250 | .consumer_supplies = cam_consumers, | ||
251 | }; | ||
252 | |||
253 | struct mc13783_regulator_init_data pcm038_regulators[] = { | ||
254 | { | ||
255 | .id = MC13783_REGU_VCAM, | ||
256 | .init_data = &cam_data, | ||
257 | }, { | ||
258 | .id = MC13783_REGU_VMMC1, | ||
259 | .init_data = &sdhc1_data, | ||
260 | }, | ||
261 | }; | ||
262 | |||
263 | static struct mc13783_platform_data pcm038_pmic = { | ||
264 | .regulators = pcm038_regulators, | ||
265 | .num_regulators = ARRAY_SIZE(pcm038_regulators), | ||
266 | .flags = MC13783_USE_ADC | MC13783_USE_REGULATOR | | ||
267 | MC13783_USE_TOUCHSCREEN, | ||
268 | }; | ||
269 | |||
270 | static struct spi_board_info pcm038_spi_board_info[] __initdata = { | ||
271 | { | ||
272 | .modalias = "mc13783", | ||
273 | .irq = IRQ_GPIOB(23), | ||
274 | .max_speed_hz = 300000, | ||
275 | .bus_num = 0, | ||
276 | .chip_select = 0, | ||
277 | .platform_data = &pcm038_pmic, | ||
278 | .mode = SPI_CS_HIGH, | ||
279 | } | ||
280 | }; | ||
281 | |||
199 | static void __init pcm038_init(void) | 282 | static void __init pcm038_init(void) |
200 | { | 283 | { |
201 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), | 284 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), |
@@ -219,6 +302,15 @@ static void __init pcm038_init(void) | |||
219 | /* PE18 for user-LED D40 */ | 302 | /* PE18 for user-LED D40 */ |
220 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); | 303 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); |
221 | 304 | ||
305 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); | ||
306 | |||
307 | /* MC13783 IRQ */ | ||
308 | mxc_gpio_mode(GPIO_PORTB | 23 | GPIO_GPIO | GPIO_IN); | ||
309 | |||
310 | mxc_register_device(&mxc_spi_device0, &pcm038_spi_0_data); | ||
311 | spi_register_board_info(pcm038_spi_board_info, | ||
312 | ARRAY_SIZE(pcm038_spi_board_info)); | ||
313 | |||
222 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 314 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
223 | 315 | ||
224 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 316 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |
diff --git a/arch/arm/mach-mx2/pcm970-baseboard.c b/arch/arm/mach-mx2/pcm970-baseboard.c index c261f59b0b4c..3cb7f457e5d0 100644 --- a/arch/arm/mach-mx2/pcm970-baseboard.c +++ b/arch/arm/mach-mx2/pcm970-baseboard.c | |||
@@ -39,7 +39,6 @@ static int pcm970_pins[] = { | |||
39 | PB7_PF_SD2_D3, | 39 | PB7_PF_SD2_D3, |
40 | PB8_PF_SD2_CMD, | 40 | PB8_PF_SD2_CMD, |
41 | PB9_PF_SD2_CLK, | 41 | PB9_PF_SD2_CLK, |
42 | GPIO_PORTC | 28 | GPIO_GPIO | GPIO_IN, /* card detect */ | ||
43 | /* display */ | 42 | /* display */ |
44 | PA5_PF_LSCLK, | 43 | PA5_PF_LSCLK, |
45 | PA6_PF_LD0, | 44 | PA6_PF_LD0, |
@@ -228,6 +227,7 @@ void __init pcm970_baseboard_init(void) | |||
228 | "PCM970"); | 227 | "PCM970"); |
229 | 228 | ||
230 | mxc_register_device(&mxc_fb_device, &pcm038_fb_data); | 229 | mxc_register_device(&mxc_fb_device, &pcm038_fb_data); |
230 | mxc_gpio_mode(GPIO_PORTC | 28 | GPIO_GPIO | GPIO_IN); | ||
231 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); | 231 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); |
232 | platform_device_register(&pcm970_sja1000); | 232 | platform_device_register(&pcm970_sja1000); |
233 | } | 233 | } |
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index eb12de1da42d..63511de3a559 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -1,4 +1,23 @@ | |||
1 | /* | ||
2 | * Copyright 2009 Sascha Hauer, <kernel@pengutronix.de> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version 2 | ||
7 | * of the License, or (at your option) any later version. | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
16 | * Boston, MA 02110-1301, USA. | ||
17 | */ | ||
18 | |||
1 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/dma-mapping.h> | ||
2 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
3 | #include <mach/mx25.h> | 22 | #include <mach/mx25.h> |
4 | #include <mach/irqs.h> | 23 | #include <mach/irqs.h> |
diff --git a/arch/arm/mach-mx25/mx25pdk.c b/arch/arm/mach-mx25/mx25pdk.c index 92aa4fd19d99..d23ae571c03f 100644 --- a/arch/arm/mach-mx25/mx25pdk.c +++ b/arch/arm/mach-mx25/mx25pdk.c | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * Copyright 2009 Sascha Hauer, <kernel@pengutronix.de> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version 2 | ||
7 | * of the License, or (at your option) any later version. | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
16 | * Boston, MA 02110-1301, USA. | ||
17 | */ | ||
18 | |||
1 | #include <linux/types.h> | 19 | #include <linux/types.h> |
2 | #include <linux/init.h> | 20 | #include <linux/init.h> |
3 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
@@ -23,19 +41,12 @@ static struct imxuart_platform_data uart_pdata = { | |||
23 | .flags = IMXUART_HAVE_RTSCTS, | 41 | .flags = IMXUART_HAVE_RTSCTS, |
24 | }; | 42 | }; |
25 | 43 | ||
26 | static struct mxc_nand_platform_data nand_board_info = { | ||
27 | .width = 1, | ||
28 | .hw_ecc = 1, | ||
29 | }; | ||
30 | |||
31 | static void __init mx25pdk_init(void) | 44 | static void __init mx25pdk_init(void) |
32 | { | 45 | { |
33 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 46 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
34 | mxc_register_device(&mxc_usbh2, NULL); | 47 | mxc_register_device(&mxc_usbh2, NULL); |
35 | mxc_register_device(&mxc_nand_device, &nand_board_info); | ||
36 | } | 48 | } |
37 | 49 | ||
38 | |||
39 | static void __init mx25pdk_timer_init(void) | 50 | static void __init mx25pdk_timer_init(void) |
40 | { | 51 | { |
41 | mx25_clocks_init(26000000); | 52 | mx25_clocks_init(26000000); |
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c index fe5c4217322e..c595260ec1f9 100644 --- a/arch/arm/mach-mx3/clock-imx35.c +++ b/arch/arm/mach-mx3/clock-imx35.c | |||
@@ -443,7 +443,7 @@ static struct clk_lookup lookups[] = { | |||
443 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) | 443 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usbotg_clk) |
444 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) | 444 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) |
445 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usbotg_clk) | 445 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usbotg_clk) |
446 | _REGISTER_CLOCK("mxc_wdt.0", NULL, wdog_clk) | 446 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) |
447 | _REGISTER_CLOCK(NULL, "max", max_clk) | 447 | _REGISTER_CLOCK(NULL, "max", max_clk) |
448 | _REGISTER_CLOCK(NULL, "admux", admux_clk) | 448 | _REGISTER_CLOCK(NULL, "admux", admux_clk) |
449 | _REGISTER_CLOCK(NULL, "csi", csi_clk) | 449 | _REGISTER_CLOCK(NULL, "csi", csi_clk) |
diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock.c index 06bd6180bfc3..b2a3bcf8266e 100644 --- a/arch/arm/mach-mx3/clock.c +++ b/arch/arm/mach-mx3/clock.c | |||
@@ -530,7 +530,7 @@ static struct clk_lookup lookups[] = { | |||
530 | _REGISTER_CLOCK("spi_imx.2", NULL, cspi3_clk) | 530 | _REGISTER_CLOCK("spi_imx.2", NULL, cspi3_clk) |
531 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 531 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
532 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) | 532 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) |
533 | _REGISTER_CLOCK(NULL, "wdog", wdog_clk) | 533 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) |
534 | _REGISTER_CLOCK(NULL, "rtc", rtc_clk) | 534 | _REGISTER_CLOCK(NULL, "rtc", rtc_clk) |
535 | _REGISTER_CLOCK(NULL, "epit", epit1_clk) | 535 | _REGISTER_CLOCK(NULL, "epit", epit1_clk) |
536 | _REGISTER_CLOCK(NULL, "epit", epit2_clk) | 536 | _REGISTER_CLOCK(NULL, "epit", epit2_clk) |
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 8a577f367250..e6abe181b967 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -459,7 +459,7 @@ struct platform_device mxc_usbh2 = { | |||
459 | * SPI master controller | 459 | * SPI master controller |
460 | * 3 channels | 460 | * 3 channels |
461 | */ | 461 | */ |
462 | static struct resource imx_spi_0_resources[] = { | 462 | static struct resource mxc_spi_0_resources[] = { |
463 | { | 463 | { |
464 | .start = CSPI1_BASE_ADDR, | 464 | .start = CSPI1_BASE_ADDR, |
465 | .end = CSPI1_BASE_ADDR + SZ_4K - 1, | 465 | .end = CSPI1_BASE_ADDR + SZ_4K - 1, |
@@ -471,7 +471,7 @@ static struct resource imx_spi_0_resources[] = { | |||
471 | }, | 471 | }, |
472 | }; | 472 | }; |
473 | 473 | ||
474 | static struct resource imx_spi_1_resources[] = { | 474 | static struct resource mxc_spi_1_resources[] = { |
475 | { | 475 | { |
476 | .start = CSPI2_BASE_ADDR, | 476 | .start = CSPI2_BASE_ADDR, |
477 | .end = CSPI2_BASE_ADDR + SZ_4K - 1, | 477 | .end = CSPI2_BASE_ADDR + SZ_4K - 1, |
@@ -483,7 +483,7 @@ static struct resource imx_spi_1_resources[] = { | |||
483 | }, | 483 | }, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static struct resource imx_spi_2_resources[] = { | 486 | static struct resource mxc_spi_2_resources[] = { |
487 | { | 487 | { |
488 | .start = CSPI3_BASE_ADDR, | 488 | .start = CSPI3_BASE_ADDR, |
489 | .end = CSPI3_BASE_ADDR + SZ_4K - 1, | 489 | .end = CSPI3_BASE_ADDR + SZ_4K - 1, |
@@ -495,25 +495,25 @@ static struct resource imx_spi_2_resources[] = { | |||
495 | }, | 495 | }, |
496 | }; | 496 | }; |
497 | 497 | ||
498 | struct platform_device imx_spi_device0 = { | 498 | struct platform_device mxc_spi_device0 = { |
499 | .name = "spi_imx", | 499 | .name = "spi_imx", |
500 | .id = 0, | 500 | .id = 0, |
501 | .num_resources = ARRAY_SIZE(imx_spi_0_resources), | 501 | .num_resources = ARRAY_SIZE(mxc_spi_0_resources), |
502 | .resource = imx_spi_0_resources, | 502 | .resource = mxc_spi_0_resources, |
503 | }; | 503 | }; |
504 | 504 | ||
505 | struct platform_device imx_spi_device1 = { | 505 | struct platform_device mxc_spi_device1 = { |
506 | .name = "spi_imx", | 506 | .name = "spi_imx", |
507 | .id = 1, | 507 | .id = 1, |
508 | .num_resources = ARRAY_SIZE(imx_spi_1_resources), | 508 | .num_resources = ARRAY_SIZE(mxc_spi_1_resources), |
509 | .resource = imx_spi_1_resources, | 509 | .resource = mxc_spi_1_resources, |
510 | }; | 510 | }; |
511 | 511 | ||
512 | struct platform_device imx_spi_device2 = { | 512 | struct platform_device mxc_spi_device2 = { |
513 | .name = "spi_imx", | 513 | .name = "spi_imx", |
514 | .id = 2, | 514 | .id = 2, |
515 | .num_resources = ARRAY_SIZE(imx_spi_2_resources), | 515 | .num_resources = ARRAY_SIZE(mxc_spi_2_resources), |
516 | .resource = imx_spi_2_resources, | 516 | .resource = mxc_spi_2_resources, |
517 | }; | 517 | }; |
518 | 518 | ||
519 | #ifdef CONFIG_ARCH_MX35 | 519 | #ifdef CONFIG_ARCH_MX35 |
diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index 79f2be45d139..ab87419dc9a0 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h | |||
@@ -20,7 +20,7 @@ extern struct platform_device mxc_otg_host; | |||
20 | extern struct platform_device mxc_usbh1; | 20 | extern struct platform_device mxc_usbh1; |
21 | extern struct platform_device mxc_usbh2; | 21 | extern struct platform_device mxc_usbh2; |
22 | extern struct platform_device mxc_rnga_device; | 22 | extern struct platform_device mxc_rnga_device; |
23 | extern struct platform_device imx_spi_device0; | 23 | extern struct platform_device mxc_spi_device0; |
24 | extern struct platform_device imx_spi_device1; | 24 | extern struct platform_device mxc_spi_device1; |
25 | extern struct platform_device imx_spi_device2; | 25 | extern struct platform_device mxc_spi_device2; |
26 | 26 | ||
diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c index ad5a1122d765..bedf5b8d976a 100644 --- a/arch/arm/mach-mx3/mm.c +++ b/arch/arm/mach-mx3/mm.c | |||
@@ -81,6 +81,7 @@ void __init mx31_map_io(void) | |||
81 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 81 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
82 | } | 82 | } |
83 | 83 | ||
84 | #ifdef CONFIG_ARCH_MX35 | ||
84 | void __init mx35_map_io(void) | 85 | void __init mx35_map_io(void) |
85 | { | 86 | { |
86 | mxc_set_cpu_type(MXC_CPU_MX35); | 87 | mxc_set_cpu_type(MXC_CPU_MX35); |
@@ -89,6 +90,7 @@ void __init mx35_map_io(void) | |||
89 | 90 | ||
90 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 91 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
91 | } | 92 | } |
93 | #endif | ||
92 | 94 | ||
93 | void __init mx31_init_irq(void) | 95 | void __init mx31_init_irq(void) |
94 | { | 96 | { |
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 42920f9c1a11..8ad5cc3e83e3 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -219,6 +219,10 @@ static struct platform_device *ams_delta_devices[] __initdata = { | |||
219 | 219 | ||
220 | static void __init ams_delta_init(void) | 220 | static void __init ams_delta_init(void) |
221 | { | 221 | { |
222 | /* mux pins for uarts */ | ||
223 | omap_cfg_reg(UART1_TX); | ||
224 | omap_cfg_reg(UART1_RTS); | ||
225 | |||
222 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); | 226 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); |
223 | 227 | ||
224 | omap_board_config = ams_delta_config; | 228 | omap_board_config = ams_delta_config; |
@@ -231,6 +235,8 @@ static void __init ams_delta_init(void) | |||
231 | 235 | ||
232 | omap_usb_init(&ams_delta_usb_config); | 236 | omap_usb_init(&ams_delta_usb_config); |
233 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); | 237 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); |
238 | |||
239 | omap_writew(omap_readw(ARM_RSTCT1) | 0x0004, ARM_RSTCT1); | ||
234 | } | 240 | } |
235 | 241 | ||
236 | static struct plat_serial8250_port ams_delta_modem_ports[] = { | 242 | static struct plat_serial8250_port ams_delta_modem_ports[] = { |
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index fb47239da72f..6c8a41f20e51 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c | |||
@@ -64,6 +64,14 @@ static void __init omap_generic_init(void) | |||
64 | { | 64 | { |
65 | #ifdef CONFIG_ARCH_OMAP15XX | 65 | #ifdef CONFIG_ARCH_OMAP15XX |
66 | if (cpu_is_omap15xx()) { | 66 | if (cpu_is_omap15xx()) { |
67 | /* mux pins for uarts */ | ||
68 | omap_cfg_reg(UART1_TX); | ||
69 | omap_cfg_reg(UART1_RTS); | ||
70 | omap_cfg_reg(UART2_TX); | ||
71 | omap_cfg_reg(UART2_RTS); | ||
72 | omap_cfg_reg(UART3_TX); | ||
73 | omap_cfg_reg(UART3_RX); | ||
74 | |||
67 | omap_usb_init(&generic1510_usb_config); | 75 | omap_usb_init(&generic1510_usb_config); |
68 | } | 76 | } |
69 | #endif | 77 | #endif |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index cc2abbb2d0f4..cd6c39514826 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -376,6 +376,26 @@ static void __init innovator_init(void) | |||
376 | { | 376 | { |
377 | #ifdef CONFIG_ARCH_OMAP15XX | 377 | #ifdef CONFIG_ARCH_OMAP15XX |
378 | if (cpu_is_omap1510()) { | 378 | if (cpu_is_omap1510()) { |
379 | unsigned char reg; | ||
380 | |||
381 | /* mux pins for uarts */ | ||
382 | omap_cfg_reg(UART1_TX); | ||
383 | omap_cfg_reg(UART1_RTS); | ||
384 | omap_cfg_reg(UART2_TX); | ||
385 | omap_cfg_reg(UART2_RTS); | ||
386 | omap_cfg_reg(UART3_TX); | ||
387 | omap_cfg_reg(UART3_RX); | ||
388 | |||
389 | reg = fpga_read(OMAP1510_FPGA_POWER); | ||
390 | reg |= OMAP1510_FPGA_PCR_COM1_EN; | ||
391 | fpga_write(reg, OMAP1510_FPGA_POWER); | ||
392 | udelay(10); | ||
393 | |||
394 | reg = fpga_read(OMAP1510_FPGA_POWER); | ||
395 | reg |= OMAP1510_FPGA_PCR_COM2_EN; | ||
396 | fpga_write(reg, OMAP1510_FPGA_POWER); | ||
397 | udelay(10); | ||
398 | |||
379 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); | 399 | platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices)); |
380 | spi_register_board_info(innovator1510_boardinfo, | 400 | spi_register_board_info(innovator1510_boardinfo, |
381 | ARRAY_SIZE(innovator1510_boardinfo)); | 401 | ARRAY_SIZE(innovator1510_boardinfo)); |
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 90dd0431b0dc..4de258420f39 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -342,6 +342,14 @@ static void __init palmte_misc_gpio_setup(void) | |||
342 | 342 | ||
343 | static void __init omap_palmte_init(void) | 343 | static void __init omap_palmte_init(void) |
344 | { | 344 | { |
345 | /* mux pins for uarts */ | ||
346 | omap_cfg_reg(UART1_TX); | ||
347 | omap_cfg_reg(UART1_RTS); | ||
348 | omap_cfg_reg(UART2_TX); | ||
349 | omap_cfg_reg(UART2_RTS); | ||
350 | omap_cfg_reg(UART3_TX); | ||
351 | omap_cfg_reg(UART3_RX); | ||
352 | |||
345 | omap_board_config = palmte_config; | 353 | omap_board_config = palmte_config; |
346 | omap_board_config_size = ARRAY_SIZE(palmte_config); | 354 | omap_board_config_size = ARRAY_SIZE(palmte_config); |
347 | 355 | ||
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 8256139891ff..d972cf941b76 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -289,6 +289,14 @@ static void __init omap_mpu_wdt_mode(int mode) { | |||
289 | 289 | ||
290 | static void __init omap_palmtt_init(void) | 290 | static void __init omap_palmtt_init(void) |
291 | { | 291 | { |
292 | /* mux pins for uarts */ | ||
293 | omap_cfg_reg(UART1_TX); | ||
294 | omap_cfg_reg(UART1_RTS); | ||
295 | omap_cfg_reg(UART2_TX); | ||
296 | omap_cfg_reg(UART2_RTS); | ||
297 | omap_cfg_reg(UART3_TX); | ||
298 | omap_cfg_reg(UART3_RX); | ||
299 | |||
292 | omap_mpu_wdt_mode(0); | 300 | omap_mpu_wdt_mode(0); |
293 | 301 | ||
294 | omap_board_config = palmtt_config; | 302 | omap_board_config = palmtt_config; |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index 81b6bde1c5a3..986bd4df0e97 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -307,6 +307,14 @@ palmz71_gpio_setup(int early) | |||
307 | static void __init | 307 | static void __init |
308 | omap_palmz71_init(void) | 308 | omap_palmz71_init(void) |
309 | { | 309 | { |
310 | /* mux pins for uarts */ | ||
311 | omap_cfg_reg(UART1_TX); | ||
312 | omap_cfg_reg(UART1_RTS); | ||
313 | omap_cfg_reg(UART2_TX); | ||
314 | omap_cfg_reg(UART2_RTS); | ||
315 | omap_cfg_reg(UART3_TX); | ||
316 | omap_cfg_reg(UART3_RX); | ||
317 | |||
310 | palmz71_gpio_setup(1); | 318 | palmz71_gpio_setup(1); |
311 | omap_mpu_wdt_mode(0); | 319 | omap_mpu_wdt_mode(0); |
312 | 320 | ||
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index 02c85ca2e1df..056ae64e0f55 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -377,6 +377,14 @@ static struct omap_board_config_kernel sx1_config[] __initdata = { | |||
377 | 377 | ||
378 | static void __init omap_sx1_init(void) | 378 | static void __init omap_sx1_init(void) |
379 | { | 379 | { |
380 | /* mux pins for uarts */ | ||
381 | omap_cfg_reg(UART1_TX); | ||
382 | omap_cfg_reg(UART1_RTS); | ||
383 | omap_cfg_reg(UART2_TX); | ||
384 | omap_cfg_reg(UART2_RTS); | ||
385 | omap_cfg_reg(UART3_TX); | ||
386 | omap_cfg_reg(UART3_RX); | ||
387 | |||
380 | platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices)); | 388 | platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices)); |
381 | 389 | ||
382 | omap_board_config = sx1_config; | 390 | omap_board_config = sx1_config; |
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index c06e7a553472..07b07522d5bf 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -152,6 +152,14 @@ static void __init voiceblue_init_irq(void) | |||
152 | 152 | ||
153 | static void __init voiceblue_init(void) | 153 | static void __init voiceblue_init(void) |
154 | { | 154 | { |
155 | /* mux pins for uarts */ | ||
156 | omap_cfg_reg(UART1_TX); | ||
157 | omap_cfg_reg(UART1_RTS); | ||
158 | omap_cfg_reg(UART2_TX); | ||
159 | omap_cfg_reg(UART2_RTS); | ||
160 | omap_cfg_reg(UART3_TX); | ||
161 | omap_cfg_reg(UART3_RX); | ||
162 | |||
155 | /* Watchdog */ | 163 | /* Watchdog */ |
156 | gpio_request(0, "Watchdog"); | 164 | gpio_request(0, "Watchdog"); |
157 | /* smc91x reset */ | 165 | /* smc91x reset */ |
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index d496e50fec40..d23979bc0fd5 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -131,8 +131,6 @@ void __init omap_serial_init(void) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { | 133 | for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { |
134 | unsigned char reg; | ||
135 | |||
136 | switch (i) { | 134 | switch (i) { |
137 | case 0: | 135 | case 0: |
138 | uart1_ck = clk_get(NULL, "uart1_ck"); | 136 | uart1_ck = clk_get(NULL, "uart1_ck"); |
@@ -143,16 +141,6 @@ void __init omap_serial_init(void) | |||
143 | if (cpu_is_omap15xx()) | 141 | if (cpu_is_omap15xx()) |
144 | clk_set_rate(uart1_ck, 12000000); | 142 | clk_set_rate(uart1_ck, 12000000); |
145 | } | 143 | } |
146 | if (cpu_is_omap15xx()) { | ||
147 | omap_cfg_reg(UART1_TX); | ||
148 | omap_cfg_reg(UART1_RTS); | ||
149 | if (machine_is_omap_innovator()) { | ||
150 | reg = fpga_read(OMAP1510_FPGA_POWER); | ||
151 | reg |= OMAP1510_FPGA_PCR_COM1_EN; | ||
152 | fpga_write(reg, OMAP1510_FPGA_POWER); | ||
153 | udelay(10); | ||
154 | } | ||
155 | } | ||
156 | break; | 144 | break; |
157 | case 1: | 145 | case 1: |
158 | uart2_ck = clk_get(NULL, "uart2_ck"); | 146 | uart2_ck = clk_get(NULL, "uart2_ck"); |
@@ -165,16 +153,6 @@ void __init omap_serial_init(void) | |||
165 | else | 153 | else |
166 | clk_set_rate(uart2_ck, 48000000); | 154 | clk_set_rate(uart2_ck, 48000000); |
167 | } | 155 | } |
168 | if (cpu_is_omap15xx()) { | ||
169 | omap_cfg_reg(UART2_TX); | ||
170 | omap_cfg_reg(UART2_RTS); | ||
171 | if (machine_is_omap_innovator()) { | ||
172 | reg = fpga_read(OMAP1510_FPGA_POWER); | ||
173 | reg |= OMAP1510_FPGA_PCR_COM2_EN; | ||
174 | fpga_write(reg, OMAP1510_FPGA_POWER); | ||
175 | udelay(10); | ||
176 | } | ||
177 | } | ||
178 | break; | 156 | break; |
179 | case 2: | 157 | case 2: |
180 | uart3_ck = clk_get(NULL, "uart3_ck"); | 158 | uart3_ck = clk_get(NULL, "uart3_ck"); |
@@ -185,10 +163,6 @@ void __init omap_serial_init(void) | |||
185 | if (cpu_is_omap15xx()) | 163 | if (cpu_is_omap15xx()) |
186 | clk_set_rate(uart3_ck, 12000000); | 164 | clk_set_rate(uart3_ck, 12000000); |
187 | } | 165 | } |
188 | if (cpu_is_omap15xx()) { | ||
189 | omap_cfg_reg(UART3_TX); | ||
190 | omap_cfg_reg(UART3_RX); | ||
191 | } | ||
192 | break; | 166 | break; |
193 | } | 167 | } |
194 | omap_serial_reset(&serial_platform_data[i]); | 168 | omap_serial_reset(&serial_platform_data[i]); |
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 75b1c7efae7e..aad194f61a33 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -73,9 +73,21 @@ config MACH_OMAP_3430SDP | |||
73 | bool "OMAP 3430 SDP board" | 73 | bool "OMAP 3430 SDP board" |
74 | depends on ARCH_OMAP3 && ARCH_OMAP34XX | 74 | depends on ARCH_OMAP3 && ARCH_OMAP34XX |
75 | 75 | ||
76 | config MACH_NOKIA_N800 | ||
77 | bool | ||
78 | |||
79 | config MACH_NOKIA_N810 | ||
80 | bool | ||
81 | |||
82 | config MACH_NOKIA_N810_WIMAX | ||
83 | bool | ||
84 | |||
76 | config MACH_NOKIA_N8X0 | 85 | config MACH_NOKIA_N8X0 |
77 | bool "Nokia N800/N810" | 86 | bool "Nokia N800/N810" |
78 | depends on ARCH_OMAP2420 | 87 | depends on ARCH_OMAP2420 |
88 | select MACH_NOKIA_N800 | ||
89 | select MACH_NOKIA_N810 | ||
90 | select MACH_NOKIA_N810_WIMAX | ||
79 | 91 | ||
80 | config MACH_NOKIA_RX51 | 92 | config MACH_NOKIA_RX51 |
81 | bool "Nokia RX-51 board" | 93 | bool "Nokia RX-51 board" |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index efaf053eba85..0acb5560229c 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
19 | #include <linux/input.h> | 19 | #include <linux/input.h> |
20 | #include <linux/input/matrix_keypad.h> | ||
20 | #include <linux/spi/spi.h> | 21 | #include <linux/spi/spi.h> |
21 | #include <linux/spi/ads7846.h> | 22 | #include <linux/spi/ads7846.h> |
22 | #include <linux/i2c/twl4030.h> | 23 | #include <linux/i2c/twl4030.h> |
@@ -38,7 +39,6 @@ | |||
38 | #include <mach/gpmc.h> | 39 | #include <mach/gpmc.h> |
39 | 40 | ||
40 | #include <mach/control.h> | 41 | #include <mach/control.h> |
41 | #include <mach/keypad.h> | ||
42 | #include <mach/gpmc-smc91x.h> | 42 | #include <mach/gpmc-smc91x.h> |
43 | 43 | ||
44 | #include "sdram-qimonda-hyb18m512160af-6.h" | 44 | #include "sdram-qimonda-hyb18m512160af-6.h" |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index eb37c40ea83a..609a5a4a7e29 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -58,6 +58,8 @@ static void __init gic_init_irq(void) | |||
58 | 58 | ||
59 | static void __init omap_4430sdp_init_irq(void) | 59 | static void __init omap_4430sdp_init_irq(void) |
60 | { | 60 | { |
61 | omap_board_config = sdp4430_config; | ||
62 | omap_board_config_size = ARRAY_SIZE(sdp4430_config); | ||
61 | omap2_init_common_hw(NULL, NULL); | 63 | omap2_init_common_hw(NULL, NULL); |
62 | #ifdef CONFIG_OMAP_32K_TIMER | 64 | #ifdef CONFIG_OMAP_32K_TIMER |
63 | omap2_gp_clockevent_set_gptimer(1); | 65 | omap2_gp_clockevent_set_gptimer(1); |
@@ -70,8 +72,6 @@ static void __init omap_4430sdp_init_irq(void) | |||
70 | static void __init omap_4430sdp_init(void) | 72 | static void __init omap_4430sdp_init(void) |
71 | { | 73 | { |
72 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); | 74 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); |
73 | omap_board_config = sdp4430_config; | ||
74 | omap_board_config_size = ARRAY_SIZE(sdp4430_config); | ||
75 | omap_serial_init(); | 75 | omap_serial_init(); |
76 | } | 76 | } |
77 | 77 | ||
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index d110a7fdfbd8..d57ec2f4d0a9 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/input.h> | 18 | #include <linux/input.h> |
19 | #include <linux/input/matrix_keypad.h> | ||
19 | #include <linux/gpio_keys.h> | 20 | #include <linux/gpio_keys.h> |
20 | #include <linux/workqueue.h> | 21 | #include <linux/workqueue.h> |
21 | #include <linux/err.h> | 22 | #include <linux/err.h> |
@@ -41,7 +42,6 @@ | |||
41 | #include <asm/delay.h> | 42 | #include <asm/delay.h> |
42 | #include <mach/control.h> | 43 | #include <mach/control.h> |
43 | #include <mach/usb.h> | 44 | #include <mach/usb.h> |
44 | #include <mach/keypad.h> | ||
45 | 45 | ||
46 | #include "mmc-twl4030.h" | 46 | #include "mmc-twl4030.h" |
47 | 47 | ||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 70df6b4dbcd4..08b0816afa61 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -162,7 +162,7 @@ static int beagle_twl_gpio_setup(struct device *dev, | |||
162 | 162 | ||
163 | /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active low) */ | 163 | /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active low) */ |
164 | gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR"); | 164 | gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR"); |
165 | gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); | 165 | gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); |
166 | 166 | ||
167 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ | 167 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ |
168 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; | 168 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index e4ec0c591216..4c4d7f8dbd72 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
21 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
22 | #include <linux/input.h> | 22 | #include <linux/input.h> |
23 | #include <linux/input/matrix_keypad.h> | ||
23 | #include <linux/leds.h> | 24 | #include <linux/leds.h> |
24 | 25 | ||
25 | #include <linux/spi/spi.h> | 26 | #include <linux/spi/spi.h> |
@@ -37,7 +38,6 @@ | |||
37 | #include <mach/usb.h> | 38 | #include <mach/usb.h> |
38 | #include <mach/common.h> | 39 | #include <mach/common.h> |
39 | #include <mach/mcspi.h> | 40 | #include <mach/mcspi.h> |
40 | #include <mach/keypad.h> | ||
41 | 41 | ||
42 | #include "sdram-micron-mt46h32m32lf-6.h" | 42 | #include "sdram-micron-mt46h32m32lf-6.h" |
43 | #include "mmc-twl4030.h" | 43 | #include "mmc-twl4030.h" |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 7f6bf8772af7..7519edb69155 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/i2c/twl4030.h> | 27 | #include <linux/i2c/twl4030.h> |
28 | #include <linux/leds.h> | 28 | #include <linux/leds.h> |
29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
30 | #include <linux/input/matrix_keypad.h> | ||
30 | #include <linux/gpio_keys.h> | 31 | #include <linux/gpio_keys.h> |
31 | 32 | ||
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
@@ -39,7 +40,6 @@ | |||
39 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
40 | #include <mach/mcspi.h> | 41 | #include <mach/mcspi.h> |
41 | #include <mach/usb.h> | 42 | #include <mach/usb.h> |
42 | #include <mach/keypad.h> | ||
43 | #include <mach/mux.h> | 43 | #include <mach/mux.h> |
44 | 44 | ||
45 | #include "sdram-micron-mt46h32m32lf-6.h" | 45 | #include "sdram-micron-mt46h32m32lf-6.h" |
@@ -134,50 +134,50 @@ static void __init pandora_keys_gpio_init(void) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | static int board_keymap[] = { | 136 | static int board_keymap[] = { |
137 | /* col, row, code */ | 137 | /* row, col, code */ |
138 | KEY(0, 0, KEY_9), | 138 | KEY(0, 0, KEY_9), |
139 | KEY(0, 1, KEY_0), | 139 | KEY(0, 1, KEY_8), |
140 | KEY(0, 2, KEY_BACKSPACE), | 140 | KEY(0, 2, KEY_I), |
141 | KEY(0, 3, KEY_O), | 141 | KEY(0, 3, KEY_J), |
142 | KEY(0, 4, KEY_P), | 142 | KEY(0, 4, KEY_N), |
143 | KEY(0, 5, KEY_K), | 143 | KEY(0, 5, KEY_M), |
144 | KEY(0, 6, KEY_L), | 144 | KEY(1, 0, KEY_0), |
145 | KEY(0, 7, KEY_ENTER), | ||
146 | KEY(1, 0, KEY_8), | ||
147 | KEY(1, 1, KEY_7), | 145 | KEY(1, 1, KEY_7), |
148 | KEY(1, 2, KEY_6), | 146 | KEY(1, 2, KEY_U), |
149 | KEY(1, 3, KEY_5), | 147 | KEY(1, 3, KEY_H), |
150 | KEY(1, 4, KEY_4), | 148 | KEY(1, 4, KEY_B), |
151 | KEY(1, 5, KEY_3), | 149 | KEY(1, 5, KEY_SPACE), |
152 | KEY(1, 6, KEY_2), | 150 | KEY(2, 0, KEY_BACKSPACE), |
153 | KEY(1, 7, KEY_1), | 151 | KEY(2, 1, KEY_6), |
154 | KEY(2, 0, KEY_I), | ||
155 | KEY(2, 1, KEY_U), | ||
156 | KEY(2, 2, KEY_Y), | 152 | KEY(2, 2, KEY_Y), |
157 | KEY(2, 3, KEY_T), | 153 | KEY(2, 3, KEY_G), |
158 | KEY(2, 4, KEY_R), | 154 | KEY(2, 4, KEY_V), |
159 | KEY(2, 5, KEY_E), | 155 | KEY(2, 5, KEY_FN), |
160 | KEY(2, 6, KEY_W), | 156 | KEY(3, 0, KEY_O), |
161 | KEY(2, 7, KEY_Q), | 157 | KEY(3, 1, KEY_5), |
162 | KEY(3, 0, KEY_J), | 158 | KEY(3, 2, KEY_T), |
163 | KEY(3, 1, KEY_H), | ||
164 | KEY(3, 2, KEY_G), | ||
165 | KEY(3, 3, KEY_F), | 159 | KEY(3, 3, KEY_F), |
166 | KEY(3, 4, KEY_D), | 160 | KEY(3, 4, KEY_C), |
167 | KEY(3, 5, KEY_S), | 161 | KEY(4, 0, KEY_P), |
168 | KEY(3, 6, KEY_A), | 162 | KEY(4, 1, KEY_4), |
169 | KEY(3, 7, KEY_LEFTSHIFT), | 163 | KEY(4, 2, KEY_R), |
170 | KEY(4, 0, KEY_N), | 164 | KEY(4, 3, KEY_D), |
171 | KEY(4, 1, KEY_B), | ||
172 | KEY(4, 2, KEY_V), | ||
173 | KEY(4, 3, KEY_C), | ||
174 | KEY(4, 4, KEY_X), | 165 | KEY(4, 4, KEY_X), |
175 | KEY(4, 5, KEY_Z), | 166 | KEY(5, 0, KEY_K), |
176 | KEY(4, 6, KEY_DOT), | 167 | KEY(5, 1, KEY_3), |
177 | KEY(4, 7, KEY_COMMA), | 168 | KEY(5, 2, KEY_E), |
178 | KEY(5, 0, KEY_M), | 169 | KEY(5, 3, KEY_S), |
179 | KEY(5, 1, KEY_SPACE), | 170 | KEY(5, 4, KEY_Z), |
180 | KEY(5, 2, KEY_FN), | 171 | KEY(6, 0, KEY_L), |
172 | KEY(6, 1, KEY_2), | ||
173 | KEY(6, 2, KEY_W), | ||
174 | KEY(6, 3, KEY_A), | ||
175 | KEY(6, 4, KEY_DOT), | ||
176 | KEY(7, 0, KEY_ENTER), | ||
177 | KEY(7, 1, KEY_1), | ||
178 | KEY(7, 2, KEY_Q), | ||
179 | KEY(7, 3, KEY_LEFTSHIFT), | ||
180 | KEY(7, 4, KEY_COMMA), | ||
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct matrix_keymap_data board_map_data = { | 183 | static struct matrix_keymap_data board_map_data = { |
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index b45ad312c587..e34d96a825e3 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/input.h> | 14 | #include <linux/input.h> |
15 | #include <linux/input/matrix_keypad.h> | ||
15 | #include <linux/spi/spi.h> | 16 | #include <linux/spi/spi.h> |
16 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
17 | #include <linux/i2c/twl4030.h> | 18 | #include <linux/i2c/twl4030.h> |
@@ -27,7 +28,6 @@ | |||
27 | #include <mach/common.h> | 28 | #include <mach/common.h> |
28 | #include <mach/dma.h> | 29 | #include <mach/dma.h> |
29 | #include <mach/gpmc.h> | 30 | #include <mach/gpmc.h> |
30 | #include <mach/keypad.h> | ||
31 | #include <mach/onenand.h> | 31 | #include <mach/onenand.h> |
32 | #include <mach/gpmc-smc91x.h> | 32 | #include <mach/gpmc-smc91x.h> |
33 | 33 | ||
@@ -38,49 +38,49 @@ | |||
38 | 38 | ||
39 | static int board_keymap[] = { | 39 | static int board_keymap[] = { |
40 | KEY(0, 0, KEY_Q), | 40 | KEY(0, 0, KEY_Q), |
41 | KEY(0, 1, KEY_W), | 41 | KEY(0, 1, KEY_O), |
42 | KEY(0, 2, KEY_E), | 42 | KEY(0, 2, KEY_P), |
43 | KEY(0, 3, KEY_R), | 43 | KEY(0, 3, KEY_COMMA), |
44 | KEY(0, 4, KEY_T), | 44 | KEY(0, 4, KEY_BACKSPACE), |
45 | KEY(0, 5, KEY_Y), | 45 | KEY(0, 6, KEY_A), |
46 | KEY(0, 6, KEY_U), | 46 | KEY(0, 7, KEY_S), |
47 | KEY(0, 7, KEY_I), | 47 | KEY(1, 0, KEY_W), |
48 | KEY(1, 0, KEY_O), | ||
49 | KEY(1, 1, KEY_D), | 48 | KEY(1, 1, KEY_D), |
50 | KEY(1, 2, KEY_DOT), | 49 | KEY(1, 2, KEY_F), |
51 | KEY(1, 3, KEY_V), | 50 | KEY(1, 3, KEY_G), |
52 | KEY(1, 4, KEY_DOWN), | 51 | KEY(1, 4, KEY_H), |
53 | KEY(2, 0, KEY_P), | 52 | KEY(1, 5, KEY_J), |
54 | KEY(2, 1, KEY_F), | 53 | KEY(1, 6, KEY_K), |
54 | KEY(1, 7, KEY_L), | ||
55 | KEY(2, 0, KEY_E), | ||
56 | KEY(2, 1, KEY_DOT), | ||
55 | KEY(2, 2, KEY_UP), | 57 | KEY(2, 2, KEY_UP), |
56 | KEY(2, 3, KEY_B), | 58 | KEY(2, 3, KEY_ENTER), |
57 | KEY(2, 4, KEY_RIGHT), | 59 | KEY(2, 5, KEY_Z), |
58 | KEY(3, 0, KEY_COMMA), | 60 | KEY(2, 6, KEY_X), |
59 | KEY(3, 1, KEY_G), | 61 | KEY(2, 7, KEY_C), |
60 | KEY(3, 2, KEY_ENTER), | 62 | KEY(3, 0, KEY_R), |
63 | KEY(3, 1, KEY_V), | ||
64 | KEY(3, 2, KEY_B), | ||
61 | KEY(3, 3, KEY_N), | 65 | KEY(3, 3, KEY_N), |
62 | KEY(4, 0, KEY_BACKSPACE), | 66 | KEY(3, 4, KEY_M), |
63 | KEY(4, 1, KEY_H), | 67 | KEY(3, 5, KEY_SPACE), |
64 | KEY(4, 3, KEY_M), | 68 | KEY(3, 6, KEY_SPACE), |
69 | KEY(3, 7, KEY_LEFT), | ||
70 | KEY(4, 0, KEY_T), | ||
71 | KEY(4, 1, KEY_DOWN), | ||
72 | KEY(4, 2, KEY_RIGHT), | ||
65 | KEY(4, 4, KEY_LEFTCTRL), | 73 | KEY(4, 4, KEY_LEFTCTRL), |
66 | KEY(5, 1, KEY_J), | 74 | KEY(4, 5, KEY_RIGHTALT), |
67 | KEY(5, 2, KEY_Z), | 75 | KEY(4, 6, KEY_LEFTSHIFT), |
68 | KEY(5, 3, KEY_SPACE), | 76 | KEY(5, 0, KEY_Y), |
69 | KEY(5, 4, KEY_LEFTSHIFT), | 77 | KEY(6, 0, KEY_U), |
70 | KEY(6, 0, KEY_A), | 78 | KEY(7, 0, KEY_I), |
71 | KEY(6, 1, KEY_K), | 79 | KEY(7, 1, KEY_F7), |
72 | KEY(6, 2, KEY_X), | 80 | KEY(7, 2, KEY_F8), |
73 | KEY(6, 3, KEY_SPACE), | 81 | KEY(0xff, 2, KEY_F9), |
74 | KEY(6, 4, KEY_FN), | 82 | KEY(0xff, 4, KEY_F10), |
75 | KEY(7, 0, KEY_S), | 83 | KEY(0xff, 5, KEY_F11), |
76 | KEY(7, 1, KEY_L), | ||
77 | KEY(7, 2, KEY_C), | ||
78 | KEY(7, 3, KEY_LEFT), | ||
79 | KEY(0xff, 0, KEY_F6), | ||
80 | KEY(0xff, 1, KEY_F7), | ||
81 | KEY(0xff, 2, KEY_F8), | ||
82 | KEY(0xff, 4, KEY_F9), | ||
83 | KEY(0xff, 5, KEY_F10), | ||
84 | }; | 84 | }; |
85 | 85 | ||
86 | static struct matrix_keymap_data board_map_data = { | 86 | static struct matrix_keymap_data board_map_data = { |
@@ -444,7 +444,7 @@ static int __init rx51_i2c_init(void) | |||
444 | rx51_twldata.vaux3 = &rx51_vaux3_cam; | 444 | rx51_twldata.vaux3 = &rx51_vaux3_cam; |
445 | rx51_twldata.vmmc2 = &rx51_vmmc2; | 445 | rx51_twldata.vmmc2 = &rx51_vmmc2; |
446 | } | 446 | } |
447 | omap_register_i2c_bus(1, 2600, rx51_peripherals_i2c_board_info_1, | 447 | omap_register_i2c_bus(1, 2200, rx51_peripherals_i2c_board_info_1, |
448 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_1)); | 448 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_1)); |
449 | omap_register_i2c_bus(2, 100, NULL, 0); | 449 | omap_register_i2c_bus(2, 100, NULL, 0); |
450 | omap_register_i2c_bus(3, 400, NULL, 0); | 450 | omap_register_i2c_bus(3, 400, NULL, 0); |
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index f9196c3b1a7b..78869a9a1cc2 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <mach/mux.h> | 26 | #include <mach/mux.h> |
27 | #include <mach/board.h> | 27 | #include <mach/board.h> |
28 | #include <mach/common.h> | 28 | #include <mach/common.h> |
29 | #include <mach/keypad.h> | ||
30 | #include <mach/dma.h> | 29 | #include <mach/dma.h> |
31 | #include <mach/gpmc.h> | 30 | #include <mach/gpmc.h> |
32 | #include <mach/usb.h> | 31 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index b7b32208ced7..51e0b3ba5f3a 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/input.h> | 15 | #include <linux/input.h> |
16 | #include <linux/input/matrix_keypad.h> | ||
16 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
17 | #include <linux/i2c/twl4030.h> | 18 | #include <linux/i2c/twl4030.h> |
18 | #include <linux/regulator/machine.h> | 19 | #include <linux/regulator/machine.h> |
@@ -22,64 +23,63 @@ | |||
22 | 23 | ||
23 | #include <mach/common.h> | 24 | #include <mach/common.h> |
24 | #include <mach/usb.h> | 25 | #include <mach/usb.h> |
25 | #include <mach/keypad.h> | ||
26 | 26 | ||
27 | #include "mmc-twl4030.h" | 27 | #include "mmc-twl4030.h" |
28 | #include "sdram-micron-mt46h32m32lf-6.h" | ||
28 | 29 | ||
29 | /* Zoom2 has Qwerty keyboard*/ | 30 | /* Zoom2 has Qwerty keyboard*/ |
30 | static int board_keymap[] = { | 31 | static int board_keymap[] = { |
31 | KEY(0, 0, KEY_E), | 32 | KEY(0, 0, KEY_E), |
32 | KEY(1, 0, KEY_R), | 33 | KEY(0, 1, KEY_R), |
33 | KEY(2, 0, KEY_T), | 34 | KEY(0, 2, KEY_T), |
34 | KEY(3, 0, KEY_HOME), | 35 | KEY(0, 3, KEY_HOME), |
35 | KEY(6, 0, KEY_I), | 36 | KEY(0, 6, KEY_I), |
36 | KEY(7, 0, KEY_LEFTSHIFT), | 37 | KEY(0, 7, KEY_LEFTSHIFT), |
37 | KEY(0, 1, KEY_D), | 38 | KEY(1, 0, KEY_D), |
38 | KEY(1, 1, KEY_F), | 39 | KEY(1, 1, KEY_F), |
39 | KEY(2, 1, KEY_G), | 40 | KEY(1, 2, KEY_G), |
40 | KEY(3, 1, KEY_SEND), | 41 | KEY(1, 3, KEY_SEND), |
41 | KEY(6, 1, KEY_K), | 42 | KEY(1, 6, KEY_K), |
42 | KEY(7, 1, KEY_ENTER), | 43 | KEY(1, 7, KEY_ENTER), |
43 | KEY(0, 2, KEY_X), | 44 | KEY(2, 0, KEY_X), |
44 | KEY(1, 2, KEY_C), | 45 | KEY(2, 1, KEY_C), |
45 | KEY(2, 2, KEY_V), | 46 | KEY(2, 2, KEY_V), |
46 | KEY(3, 2, KEY_END), | 47 | KEY(2, 3, KEY_END), |
47 | KEY(6, 2, KEY_DOT), | 48 | KEY(2, 6, KEY_DOT), |
48 | KEY(7, 2, KEY_CAPSLOCK), | 49 | KEY(2, 7, KEY_CAPSLOCK), |
49 | KEY(0, 3, KEY_Z), | 50 | KEY(3, 0, KEY_Z), |
50 | KEY(1, 3, KEY_KPPLUS), | 51 | KEY(3, 1, KEY_KPPLUS), |
51 | KEY(2, 3, KEY_B), | 52 | KEY(3, 2, KEY_B), |
52 | KEY(3, 3, KEY_F1), | 53 | KEY(3, 3, KEY_F1), |
53 | KEY(6, 3, KEY_O), | 54 | KEY(3, 6, KEY_O), |
54 | KEY(7, 3, KEY_SPACE), | 55 | KEY(3, 7, KEY_SPACE), |
55 | KEY(0, 4, KEY_W), | 56 | KEY(4, 0, KEY_W), |
56 | KEY(1, 4, KEY_Y), | 57 | KEY(4, 1, KEY_Y), |
57 | KEY(2, 4, KEY_U), | 58 | KEY(4, 2, KEY_U), |
58 | KEY(3, 4, KEY_F2), | 59 | KEY(4, 3, KEY_F2), |
59 | KEY(4, 4, KEY_VOLUMEUP), | 60 | KEY(4, 4, KEY_VOLUMEUP), |
60 | KEY(6, 4, KEY_L), | 61 | KEY(4, 6, KEY_L), |
61 | KEY(7, 4, KEY_LEFT), | 62 | KEY(4, 7, KEY_LEFT), |
62 | KEY(0, 5, KEY_S), | 63 | KEY(5, 0, KEY_S), |
63 | KEY(1, 5, KEY_H), | 64 | KEY(5, 1, KEY_H), |
64 | KEY(2, 5, KEY_J), | 65 | KEY(5, 2, KEY_J), |
65 | KEY(3, 5, KEY_F3), | 66 | KEY(5, 3, KEY_F3), |
66 | KEY(5, 5, KEY_VOLUMEDOWN), | 67 | KEY(5, 5, KEY_VOLUMEDOWN), |
67 | KEY(6, 5, KEY_M), | 68 | KEY(5, 6, KEY_M), |
68 | KEY(4, 5, KEY_ENTER), | 69 | KEY(5, 7, KEY_ENTER), |
69 | KEY(7, 5, KEY_RIGHT), | 70 | KEY(6, 0, KEY_Q), |
70 | KEY(0, 6, KEY_Q), | 71 | KEY(6, 1, KEY_A), |
71 | KEY(1, 6, KEY_A), | 72 | KEY(6, 2, KEY_N), |
72 | KEY(2, 6, KEY_N), | 73 | KEY(6, 3, KEY_BACKSPACE), |
73 | KEY(3, 6, KEY_BACKSPACE), | ||
74 | KEY(6, 6, KEY_P), | 74 | KEY(6, 6, KEY_P), |
75 | KEY(7, 6, KEY_UP), | ||
76 | KEY(6, 7, KEY_SELECT), | 75 | KEY(6, 7, KEY_SELECT), |
77 | KEY(7, 7, KEY_DOWN), | 76 | KEY(7, 0, KEY_PROG1), /*MACRO 1 <User defined> */ |
78 | KEY(0, 7, KEY_PROG1), /*MACRO 1 <User defined> */ | 77 | KEY(7, 1, KEY_PROG2), /*MACRO 2 <User defined> */ |
79 | KEY(1, 7, KEY_PROG2), /*MACRO 2 <User defined> */ | 78 | KEY(7, 2, KEY_PROG3), /*MACRO 3 <User defined> */ |
80 | KEY(2, 7, KEY_PROG3), /*MACRO 3 <User defined> */ | 79 | KEY(7, 3, KEY_PROG4), /*MACRO 4 <User defined> */ |
81 | KEY(3, 7, KEY_PROG4), /*MACRO 4 <User defined> */ | 80 | KEY(7, 5, KEY_RIGHT), |
82 | 0 | 81 | KEY(7, 6, KEY_UP), |
82 | KEY(7, 7, KEY_DOWN) | ||
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct matrix_keymap_data board_map_data = { | 85 | static struct matrix_keymap_data board_map_data = { |
@@ -213,7 +213,8 @@ static void __init omap_zoom2_init_irq(void) | |||
213 | { | 213 | { |
214 | omap_board_config = zoom2_config; | 214 | omap_board_config = zoom2_config; |
215 | omap_board_config_size = ARRAY_SIZE(zoom2_config); | 215 | omap_board_config_size = ARRAY_SIZE(zoom2_config); |
216 | omap2_init_common_hw(NULL, NULL); | 216 | omap2_init_common_hw(mt46h32m32lf6_sdrc_params, |
217 | mt46h32m32lf6_sdrc_params); | ||
217 | omap_init_irq(); | 218 | omap_init_irq(); |
218 | omap_gpio_init(); | 219 | omap_gpio_init(); |
219 | } | 220 | } |
diff --git a/arch/arm/mach-omap2/clock24xx.c b/arch/arm/mach-omap2/clock24xx.c index bc5d3ac66611..e2dbedd581e8 100644 --- a/arch/arm/mach-omap2/clock24xx.c +++ b/arch/arm/mach-omap2/clock24xx.c | |||
@@ -769,6 +769,7 @@ int __init omap2_clk_init(void) | |||
769 | if (c->cpu & cpu_mask) { | 769 | if (c->cpu & cpu_mask) { |
770 | clkdev_add(&c->lk); | 770 | clkdev_add(&c->lk); |
771 | clk_register(c->lk.clk); | 771 | clk_register(c->lk.clk); |
772 | omap2_init_clk_clkdm(c->lk.clk); | ||
772 | } | 773 | } |
773 | 774 | ||
774 | /* Check the MPU rate set by bootloader */ | 775 | /* Check the MPU rate set by bootloader */ |
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index fafcd32e6907..7c5c00df3c70 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -338,6 +338,13 @@ static struct omap_clk omap34xx_clks[] = { | |||
338 | */ | 338 | */ |
339 | #define SDRC_MPURATE_LOOPS 96 | 339 | #define SDRC_MPURATE_LOOPS 96 |
340 | 340 | ||
341 | /* | ||
342 | * DPLL5_FREQ_FOR_USBHOST: USBHOST and USBTLL are the only clocks | ||
343 | * that are sourced by DPLL5, and both of these require this clock | ||
344 | * to be at 120 MHz for proper operation. | ||
345 | */ | ||
346 | #define DPLL5_FREQ_FOR_USBHOST 120000000 | ||
347 | |||
341 | /** | 348 | /** |
342 | * omap3430es2_clk_ssi_find_idlest - return CM_IDLEST info for SSI | 349 | * omap3430es2_clk_ssi_find_idlest - return CM_IDLEST info for SSI |
343 | * @clk: struct clk * being enabled | 350 | * @clk: struct clk * being enabled |
@@ -466,7 +473,7 @@ static u16 _omap3_dpll_compute_freqsel(struct clk *clk, u8 n) | |||
466 | unsigned long fint; | 473 | unsigned long fint; |
467 | u16 f = 0; | 474 | u16 f = 0; |
468 | 475 | ||
469 | fint = clk->dpll_data->clk_ref->rate / (n + 1); | 476 | fint = clk->dpll_data->clk_ref->rate / n; |
470 | 477 | ||
471 | pr_debug("clock: fint is %lu\n", fint); | 478 | pr_debug("clock: fint is %lu\n", fint); |
472 | 479 | ||
@@ -1056,6 +1063,28 @@ void omap2_clk_prepare_for_reboot(void) | |||
1056 | #endif | 1063 | #endif |
1057 | } | 1064 | } |
1058 | 1065 | ||
1066 | static void omap3_clk_lock_dpll5(void) | ||
1067 | { | ||
1068 | struct clk *dpll5_clk; | ||
1069 | struct clk *dpll5_m2_clk; | ||
1070 | |||
1071 | dpll5_clk = clk_get(NULL, "dpll5_ck"); | ||
1072 | clk_set_rate(dpll5_clk, DPLL5_FREQ_FOR_USBHOST); | ||
1073 | clk_enable(dpll5_clk); | ||
1074 | |||
1075 | /* Enable autoidle to allow it to enter low power bypass */ | ||
1076 | omap3_dpll_allow_idle(dpll5_clk); | ||
1077 | |||
1078 | /* Program dpll5_m2_clk divider for no division */ | ||
1079 | dpll5_m2_clk = clk_get(NULL, "dpll5_m2_ck"); | ||
1080 | clk_enable(dpll5_m2_clk); | ||
1081 | clk_set_rate(dpll5_m2_clk, DPLL5_FREQ_FOR_USBHOST); | ||
1082 | |||
1083 | clk_disable(dpll5_m2_clk); | ||
1084 | clk_disable(dpll5_clk); | ||
1085 | return; | ||
1086 | } | ||
1087 | |||
1059 | /* REVISIT: Move this init stuff out into clock.c */ | 1088 | /* REVISIT: Move this init stuff out into clock.c */ |
1060 | 1089 | ||
1061 | /* | 1090 | /* |
@@ -1148,6 +1177,12 @@ int __init omap2_clk_init(void) | |||
1148 | */ | 1177 | */ |
1149 | clk_enable_init_clocks(); | 1178 | clk_enable_init_clocks(); |
1150 | 1179 | ||
1180 | /* | ||
1181 | * Lock DPLL5 and put it in autoidle. | ||
1182 | */ | ||
1183 | if (omap_rev() >= OMAP3430_REV_ES2_0) | ||
1184 | omap3_clk_lock_dpll5(); | ||
1185 | |||
1151 | /* Avoid sleeping during omap2_clk_prepare_for_reboot() */ | 1186 | /* Avoid sleeping during omap2_clk_prepare_for_reboot() */ |
1152 | /* REVISIT: not yet ready for 343x */ | 1187 | /* REVISIT: not yet ready for 343x */ |
1153 | #if 0 | 1188 | #if 0 |
diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h index c8119781e00a..9565c05bebd2 100644 --- a/arch/arm/mach-omap2/clock34xx.h +++ b/arch/arm/mach-omap2/clock34xx.h | |||
@@ -489,9 +489,9 @@ static struct clk core_ck = { | |||
489 | static struct clk dpll3_m2x2_ck = { | 489 | static struct clk dpll3_m2x2_ck = { |
490 | .name = "dpll3_m2x2_ck", | 490 | .name = "dpll3_m2x2_ck", |
491 | .ops = &clkops_null, | 491 | .ops = &clkops_null, |
492 | .parent = &dpll3_x2_ck, | 492 | .parent = &dpll3_m2_ck, |
493 | .clkdm_name = "dpll3_clkdm", | 493 | .clkdm_name = "dpll3_clkdm", |
494 | .recalc = &followparent_recalc, | 494 | .recalc = &omap3_clkoutx2_recalc, |
495 | }; | 495 | }; |
496 | 496 | ||
497 | /* The PWRDN bit is apparently only available on 3430ES2 and above */ | 497 | /* The PWRDN bit is apparently only available on 3430ES2 and above */ |
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index 4ef7b4f5474e..58aff8485df9 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c | |||
@@ -137,6 +137,36 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm) | |||
137 | } | 137 | } |
138 | } | 138 | } |
139 | 139 | ||
140 | /* | ||
141 | * _omap2_clkdm_set_hwsup - set the hwsup idle transition bit | ||
142 | * @clkdm: struct clockdomain * | ||
143 | * @enable: int 0 to disable, 1 to enable | ||
144 | * | ||
145 | * Internal helper for actually switching the bit that controls hwsup | ||
146 | * idle transitions for clkdm. | ||
147 | */ | ||
148 | static void _omap2_clkdm_set_hwsup(struct clockdomain *clkdm, int enable) | ||
149 | { | ||
150 | u32 v; | ||
151 | |||
152 | if (cpu_is_omap24xx()) { | ||
153 | if (enable) | ||
154 | v = OMAP24XX_CLKSTCTRL_ENABLE_AUTO; | ||
155 | else | ||
156 | v = OMAP24XX_CLKSTCTRL_DISABLE_AUTO; | ||
157 | } else if (cpu_is_omap34xx()) { | ||
158 | if (enable) | ||
159 | v = OMAP34XX_CLKSTCTRL_ENABLE_AUTO; | ||
160 | else | ||
161 | v = OMAP34XX_CLKSTCTRL_DISABLE_AUTO; | ||
162 | } else { | ||
163 | BUG(); | ||
164 | } | ||
165 | |||
166 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
167 | v << __ffs(clkdm->clktrctrl_mask), | ||
168 | clkdm->pwrdm.ptr->prcm_offs, CM_CLKSTCTRL); | ||
169 | } | ||
140 | 170 | ||
141 | static struct clockdomain *_clkdm_lookup(const char *name) | 171 | static struct clockdomain *_clkdm_lookup(const char *name) |
142 | { | 172 | { |
@@ -456,8 +486,6 @@ int omap2_clkdm_wakeup(struct clockdomain *clkdm) | |||
456 | */ | 486 | */ |
457 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | 487 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm) |
458 | { | 488 | { |
459 | u32 v; | ||
460 | |||
461 | if (!clkdm) | 489 | if (!clkdm) |
462 | return; | 490 | return; |
463 | 491 | ||
@@ -473,18 +501,7 @@ void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | |||
473 | if (atomic_read(&clkdm->usecount) > 0) | 501 | if (atomic_read(&clkdm->usecount) > 0) |
474 | _clkdm_add_autodeps(clkdm); | 502 | _clkdm_add_autodeps(clkdm); |
475 | 503 | ||
476 | if (cpu_is_omap24xx()) | 504 | _omap2_clkdm_set_hwsup(clkdm, 1); |
477 | v = OMAP24XX_CLKSTCTRL_ENABLE_AUTO; | ||
478 | else if (cpu_is_omap34xx()) | ||
479 | v = OMAP34XX_CLKSTCTRL_ENABLE_AUTO; | ||
480 | else | ||
481 | BUG(); | ||
482 | |||
483 | |||
484 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
485 | v << __ffs(clkdm->clktrctrl_mask), | ||
486 | clkdm->pwrdm.ptr->prcm_offs, | ||
487 | CM_CLKSTCTRL); | ||
488 | 505 | ||
489 | pwrdm_clkdm_state_switch(clkdm); | 506 | pwrdm_clkdm_state_switch(clkdm); |
490 | } | 507 | } |
@@ -500,8 +517,6 @@ void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | |||
500 | */ | 517 | */ |
501 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm) | 518 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm) |
502 | { | 519 | { |
503 | u32 v; | ||
504 | |||
505 | if (!clkdm) | 520 | if (!clkdm) |
506 | return; | 521 | return; |
507 | 522 | ||
@@ -514,16 +529,7 @@ void omap2_clkdm_deny_idle(struct clockdomain *clkdm) | |||
514 | pr_debug("clockdomain: disabling automatic idle transitions for %s\n", | 529 | pr_debug("clockdomain: disabling automatic idle transitions for %s\n", |
515 | clkdm->name); | 530 | clkdm->name); |
516 | 531 | ||
517 | if (cpu_is_omap24xx()) | 532 | _omap2_clkdm_set_hwsup(clkdm, 0); |
518 | v = OMAP24XX_CLKSTCTRL_DISABLE_AUTO; | ||
519 | else if (cpu_is_omap34xx()) | ||
520 | v = OMAP34XX_CLKSTCTRL_DISABLE_AUTO; | ||
521 | else | ||
522 | BUG(); | ||
523 | |||
524 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
525 | v << __ffs(clkdm->clktrctrl_mask), | ||
526 | clkdm->pwrdm.ptr->prcm_offs, CM_CLKSTCTRL); | ||
527 | 533 | ||
528 | if (atomic_read(&clkdm->usecount) > 0) | 534 | if (atomic_read(&clkdm->usecount) > 0) |
529 | _clkdm_del_autodeps(clkdm); | 535 | _clkdm_del_autodeps(clkdm); |
@@ -569,10 +575,14 @@ int omap2_clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk) | |||
569 | v = omap2_clkdm_clktrctrl_read(clkdm); | 575 | v = omap2_clkdm_clktrctrl_read(clkdm); |
570 | 576 | ||
571 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || | 577 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || |
572 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) | 578 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) { |
579 | /* Disable HW transitions when we are changing deps */ | ||
580 | _omap2_clkdm_set_hwsup(clkdm, 0); | ||
573 | _clkdm_add_autodeps(clkdm); | 581 | _clkdm_add_autodeps(clkdm); |
574 | else | 582 | _omap2_clkdm_set_hwsup(clkdm, 1); |
583 | } else { | ||
575 | omap2_clkdm_wakeup(clkdm); | 584 | omap2_clkdm_wakeup(clkdm); |
585 | } | ||
576 | 586 | ||
577 | pwrdm_wait_transition(clkdm->pwrdm.ptr); | 587 | pwrdm_wait_transition(clkdm->pwrdm.ptr); |
578 | pwrdm_clkdm_state_switch(clkdm); | 588 | pwrdm_clkdm_state_switch(clkdm); |
@@ -623,10 +633,14 @@ int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk) | |||
623 | v = omap2_clkdm_clktrctrl_read(clkdm); | 633 | v = omap2_clkdm_clktrctrl_read(clkdm); |
624 | 634 | ||
625 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || | 635 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || |
626 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) | 636 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) { |
637 | /* Disable HW transitions when we are changing deps */ | ||
638 | _omap2_clkdm_set_hwsup(clkdm, 0); | ||
627 | _clkdm_del_autodeps(clkdm); | 639 | _clkdm_del_autodeps(clkdm); |
628 | else | 640 | _omap2_clkdm_set_hwsup(clkdm, 1); |
641 | } else { | ||
629 | omap2_clkdm_sleep(clkdm); | 642 | omap2_clkdm_sleep(clkdm); |
643 | } | ||
630 | 644 | ||
631 | pwrdm_clkdm_state_switch(clkdm); | 645 | pwrdm_clkdm_state_switch(clkdm); |
632 | 646 | ||
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 15876828db23..f3c992e29651 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -366,7 +366,7 @@ int gpmc_cs_request(int cs, unsigned long size, unsigned long *base) | |||
366 | if (r < 0) | 366 | if (r < 0) |
367 | goto out; | 367 | goto out; |
368 | 368 | ||
369 | gpmc_cs_enable_mem(cs, res->start, res->end - res->start + 1); | 369 | gpmc_cs_enable_mem(cs, res->start, resource_size(res)); |
370 | *base = res->start; | 370 | *base = res->start; |
371 | gpmc_cs_set_reserved(cs, 1); | 371 | gpmc_cs_set_reserved(cs, 1); |
372 | out: | 372 | out: |
@@ -378,7 +378,7 @@ EXPORT_SYMBOL(gpmc_cs_request); | |||
378 | void gpmc_cs_free(int cs) | 378 | void gpmc_cs_free(int cs) |
379 | { | 379 | { |
380 | spin_lock(&gpmc_mem_lock); | 380 | spin_lock(&gpmc_mem_lock); |
381 | if (cs >= GPMC_CS_NUM || !gpmc_cs_reserved(cs)) { | 381 | if (cs >= GPMC_CS_NUM || cs < 0 || !gpmc_cs_reserved(cs)) { |
382 | printk(KERN_ERR "Trying to free non-reserved GPMC CS%d\n", cs); | 382 | printk(KERN_ERR "Trying to free non-reserved GPMC CS%d\n", cs); |
383 | BUG(); | 383 | BUG(); |
384 | spin_unlock(&gpmc_mem_lock); | 384 | spin_unlock(&gpmc_mem_lock); |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index e3a3bad1d84f..56be87d13edb 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -302,7 +302,9 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
302 | pwrdm_init(powerdomains_omap); | 302 | pwrdm_init(powerdomains_omap); |
303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); | 303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); |
304 | omap2_clk_init(); | 304 | omap2_clk_init(); |
305 | #endif | ||
305 | omap_serial_early_init(); | 306 | omap_serial_early_init(); |
307 | #ifndef CONFIG_ARCH_OMAP4 | ||
306 | omap_hwmod_late_init(); | 308 | omap_hwmod_late_init(); |
307 | omap_pm_if_init(); | 309 | omap_pm_if_init(); |
308 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); | 310 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index c035ad3426d0..ef57b38a56a4 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -300,7 +300,7 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev) | |||
300 | dev_err(&pdev->dev, "invalid mem resource\n"); | 300 | dev_err(&pdev->dev, "invalid mem resource\n"); |
301 | return -ENODEV; | 301 | return -ENODEV; |
302 | } | 302 | } |
303 | mbox_base = ioremap(res->start, res->end - res->start); | 303 | mbox_base = ioremap(res->start, resource_size(res)); |
304 | if (!mbox_base) | 304 | if (!mbox_base) |
305 | return -ENOMEM; | 305 | return -ENOMEM; |
306 | 306 | ||
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 1b4c1600f8d8..2fc4d6abbd0a 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -541,7 +541,7 @@ static int __init pm_dbg_init(void) | |||
541 | printk(KERN_ERR "%s: only OMAP3 supported\n", __func__); | 541 | printk(KERN_ERR "%s: only OMAP3 supported\n", __func__); |
542 | return -ENODEV; | 542 | return -ENODEV; |
543 | } | 543 | } |
544 | 544 | ||
545 | d = debugfs_create_dir("pm_debug", NULL); | 545 | d = debugfs_create_dir("pm_debug", NULL); |
546 | if (IS_ERR(d)) | 546 | if (IS_ERR(d)) |
547 | return PTR_ERR(d); | 547 | return PTR_ERR(d); |
@@ -551,7 +551,7 @@ static int __init pm_dbg_init(void) | |||
551 | (void) debugfs_create_file("time", S_IRUGO, | 551 | (void) debugfs_create_file("time", S_IRUGO, |
552 | d, (void *)DEBUG_FILE_TIMERS, &debug_fops); | 552 | d, (void *)DEBUG_FILE_TIMERS, &debug_fops); |
553 | 553 | ||
554 | pwrdm_for_each(pwrdms_setup, (void *)d); | 554 | pwrdm_for_each_nolock(pwrdms_setup, (void *)d); |
555 | 555 | ||
556 | pm_dbg_dir = debugfs_create_dir("registers", d); | 556 | pm_dbg_dir = debugfs_create_dir("registers", d); |
557 | if (IS_ERR(pm_dbg_dir)) | 557 | if (IS_ERR(pm_dbg_dir)) |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 0ff5a6c53aa0..89463190923a 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -51,97 +51,112 @@ static void (*_omap_sram_idle)(u32 *addr, int save_state); | |||
51 | 51 | ||
52 | static struct powerdomain *mpu_pwrdm; | 52 | static struct powerdomain *mpu_pwrdm; |
53 | 53 | ||
54 | /* PRCM Interrupt Handler for wakeups */ | 54 | /* |
55 | static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) | 55 | * PRCM Interrupt Handler Helper Function |
56 | * | ||
57 | * The purpose of this function is to clear any wake-up events latched | ||
58 | * in the PRCM PM_WKST_x registers. It is possible that a wake-up event | ||
59 | * may occur whilst attempting to clear a PM_WKST_x register and thus | ||
60 | * set another bit in this register. A while loop is used to ensure | ||
61 | * that any peripheral wake-up events occurring while attempting to | ||
62 | * clear the PM_WKST_x are detected and cleared. | ||
63 | */ | ||
64 | static int prcm_clear_mod_irqs(s16 module, u8 regs) | ||
56 | { | 65 | { |
57 | u32 wkst, irqstatus_mpu; | 66 | u32 wkst, fclk, iclk, clken; |
58 | u32 fclk, iclk; | 67 | u16 wkst_off = (regs == 3) ? OMAP3430ES2_PM_WKST3 : PM_WKST1; |
59 | 68 | u16 fclk_off = (regs == 3) ? OMAP3430ES2_CM_FCLKEN3 : CM_FCLKEN1; | |
60 | /* WKUP */ | 69 | u16 iclk_off = (regs == 3) ? CM_ICLKEN3 : CM_ICLKEN1; |
61 | wkst = prm_read_mod_reg(WKUP_MOD, PM_WKST); | 70 | u16 grpsel_off = (regs == 3) ? |
71 | OMAP3430ES2_PM_MPUGRPSEL3 : OMAP3430_PM_MPUGRPSEL; | ||
72 | int c = 0; | ||
73 | |||
74 | wkst = prm_read_mod_reg(module, wkst_off); | ||
75 | wkst &= prm_read_mod_reg(module, grpsel_off); | ||
62 | if (wkst) { | 76 | if (wkst) { |
63 | iclk = cm_read_mod_reg(WKUP_MOD, CM_ICLKEN); | 77 | iclk = cm_read_mod_reg(module, iclk_off); |
64 | fclk = cm_read_mod_reg(WKUP_MOD, CM_FCLKEN); | 78 | fclk = cm_read_mod_reg(module, fclk_off); |
65 | cm_set_mod_reg_bits(wkst, WKUP_MOD, CM_ICLKEN); | 79 | while (wkst) { |
66 | cm_set_mod_reg_bits(wkst, WKUP_MOD, CM_FCLKEN); | 80 | clken = wkst; |
67 | prm_write_mod_reg(wkst, WKUP_MOD, PM_WKST); | 81 | cm_set_mod_reg_bits(clken, module, iclk_off); |
68 | while (prm_read_mod_reg(WKUP_MOD, PM_WKST)) | 82 | /* |
69 | cpu_relax(); | 83 | * For USBHOST, we don't know whether HOST1 or |
70 | cm_write_mod_reg(iclk, WKUP_MOD, CM_ICLKEN); | 84 | * HOST2 woke us up, so enable both f-clocks |
71 | cm_write_mod_reg(fclk, WKUP_MOD, CM_FCLKEN); | 85 | */ |
86 | if (module == OMAP3430ES2_USBHOST_MOD) | ||
87 | clken |= 1 << OMAP3430ES2_EN_USBHOST2_SHIFT; | ||
88 | cm_set_mod_reg_bits(clken, module, fclk_off); | ||
89 | prm_write_mod_reg(wkst, module, wkst_off); | ||
90 | wkst = prm_read_mod_reg(module, wkst_off); | ||
91 | c++; | ||
92 | } | ||
93 | cm_write_mod_reg(iclk, module, iclk_off); | ||
94 | cm_write_mod_reg(fclk, module, fclk_off); | ||
72 | } | 95 | } |
73 | 96 | ||
74 | /* CORE */ | 97 | return c; |
75 | wkst = prm_read_mod_reg(CORE_MOD, PM_WKST1); | 98 | } |
76 | if (wkst) { | ||
77 | iclk = cm_read_mod_reg(CORE_MOD, CM_ICLKEN1); | ||
78 | fclk = cm_read_mod_reg(CORE_MOD, CM_FCLKEN1); | ||
79 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_ICLKEN1); | ||
80 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_FCLKEN1); | ||
81 | prm_write_mod_reg(wkst, CORE_MOD, PM_WKST1); | ||
82 | while (prm_read_mod_reg(CORE_MOD, PM_WKST1)) | ||
83 | cpu_relax(); | ||
84 | cm_write_mod_reg(iclk, CORE_MOD, CM_ICLKEN1); | ||
85 | cm_write_mod_reg(fclk, CORE_MOD, CM_FCLKEN1); | ||
86 | } | ||
87 | wkst = prm_read_mod_reg(CORE_MOD, OMAP3430ES2_PM_WKST3); | ||
88 | if (wkst) { | ||
89 | iclk = cm_read_mod_reg(CORE_MOD, CM_ICLKEN3); | ||
90 | fclk = cm_read_mod_reg(CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
91 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_ICLKEN3); | ||
92 | cm_set_mod_reg_bits(wkst, CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
93 | prm_write_mod_reg(wkst, CORE_MOD, OMAP3430ES2_PM_WKST3); | ||
94 | while (prm_read_mod_reg(CORE_MOD, OMAP3430ES2_PM_WKST3)) | ||
95 | cpu_relax(); | ||
96 | cm_write_mod_reg(iclk, CORE_MOD, CM_ICLKEN3); | ||
97 | cm_write_mod_reg(fclk, CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
98 | } | ||
99 | 99 | ||
100 | /* PER */ | 100 | static int _prcm_int_handle_wakeup(void) |
101 | wkst = prm_read_mod_reg(OMAP3430_PER_MOD, PM_WKST); | 101 | { |
102 | if (wkst) { | 102 | int c; |
103 | iclk = cm_read_mod_reg(OMAP3430_PER_MOD, CM_ICLKEN); | ||
104 | fclk = cm_read_mod_reg(OMAP3430_PER_MOD, CM_FCLKEN); | ||
105 | cm_set_mod_reg_bits(wkst, OMAP3430_PER_MOD, CM_ICLKEN); | ||
106 | cm_set_mod_reg_bits(wkst, OMAP3430_PER_MOD, CM_FCLKEN); | ||
107 | prm_write_mod_reg(wkst, OMAP3430_PER_MOD, PM_WKST); | ||
108 | while (prm_read_mod_reg(OMAP3430_PER_MOD, PM_WKST)) | ||
109 | cpu_relax(); | ||
110 | cm_write_mod_reg(iclk, OMAP3430_PER_MOD, CM_ICLKEN); | ||
111 | cm_write_mod_reg(fclk, OMAP3430_PER_MOD, CM_FCLKEN); | ||
112 | } | ||
113 | 103 | ||
104 | c = prcm_clear_mod_irqs(WKUP_MOD, 1); | ||
105 | c += prcm_clear_mod_irqs(CORE_MOD, 1); | ||
106 | c += prcm_clear_mod_irqs(OMAP3430_PER_MOD, 1); | ||
114 | if (omap_rev() > OMAP3430_REV_ES1_0) { | 107 | if (omap_rev() > OMAP3430_REV_ES1_0) { |
115 | /* USBHOST */ | 108 | c += prcm_clear_mod_irqs(CORE_MOD, 3); |
116 | wkst = prm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, PM_WKST); | 109 | c += prcm_clear_mod_irqs(OMAP3430ES2_USBHOST_MOD, 1); |
117 | if (wkst) { | ||
118 | iclk = cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
119 | CM_ICLKEN); | ||
120 | fclk = cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
121 | CM_FCLKEN); | ||
122 | cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD, | ||
123 | CM_ICLKEN); | ||
124 | cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD, | ||
125 | CM_FCLKEN); | ||
126 | prm_write_mod_reg(wkst, OMAP3430ES2_USBHOST_MOD, | ||
127 | PM_WKST); | ||
128 | while (prm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
129 | PM_WKST)) | ||
130 | cpu_relax(); | ||
131 | cm_write_mod_reg(iclk, OMAP3430ES2_USBHOST_MOD, | ||
132 | CM_ICLKEN); | ||
133 | cm_write_mod_reg(fclk, OMAP3430ES2_USBHOST_MOD, | ||
134 | CM_FCLKEN); | ||
135 | } | ||
136 | } | 110 | } |
137 | 111 | ||
138 | irqstatus_mpu = prm_read_mod_reg(OCP_MOD, | 112 | return c; |
139 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | 113 | } |
140 | prm_write_mod_reg(irqstatus_mpu, OCP_MOD, | 114 | |
141 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | 115 | /* |
116 | * PRCM Interrupt Handler | ||
117 | * | ||
118 | * The PRM_IRQSTATUS_MPU register indicates if there are any pending | ||
119 | * interrupts from the PRCM for the MPU. These bits must be cleared in | ||
120 | * order to clear the PRCM interrupt. The PRCM interrupt handler is | ||
121 | * implemented to simply clear the PRM_IRQSTATUS_MPU in order to clear | ||
122 | * the PRCM interrupt. Please note that bit 0 of the PRM_IRQSTATUS_MPU | ||
123 | * register indicates that a wake-up event is pending for the MPU and | ||
124 | * this bit can only be cleared if the all the wake-up events latched | ||
125 | * in the various PM_WKST_x registers have been cleared. The interrupt | ||
126 | * handler is implemented using a do-while loop so that if a wake-up | ||
127 | * event occurred during the processing of the prcm interrupt handler | ||
128 | * (setting a bit in the corresponding PM_WKST_x register and thus | ||
129 | * preventing us from clearing bit 0 of the PRM_IRQSTATUS_MPU register) | ||
130 | * this would be handled. | ||
131 | */ | ||
132 | static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) | ||
133 | { | ||
134 | u32 irqstatus_mpu; | ||
135 | int c = 0; | ||
136 | |||
137 | do { | ||
138 | irqstatus_mpu = prm_read_mod_reg(OCP_MOD, | ||
139 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | ||
140 | |||
141 | if (irqstatus_mpu & (OMAP3430_WKUP_ST | OMAP3430_IO_ST)) { | ||
142 | c = _prcm_int_handle_wakeup(); | ||
143 | |||
144 | /* | ||
145 | * Is the MPU PRCM interrupt handler racing with the | ||
146 | * IVA2 PRCM interrupt handler ? | ||
147 | */ | ||
148 | WARN(c == 0, "prcm: WARNING: PRCM indicated MPU wakeup " | ||
149 | "but no wakeup sources are marked\n"); | ||
150 | } else { | ||
151 | /* XXX we need to expand our PRCM interrupt handler */ | ||
152 | WARN(1, "prcm: WARNING: PRCM interrupt received, but " | ||
153 | "no code to handle it (%08x)\n", irqstatus_mpu); | ||
154 | } | ||
155 | |||
156 | prm_write_mod_reg(irqstatus_mpu, OCP_MOD, | ||
157 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | ||
142 | 158 | ||
143 | while (prm_read_mod_reg(OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET)) | 159 | } while (prm_read_mod_reg(OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET)); |
144 | cpu_relax(); | ||
145 | 160 | ||
146 | return IRQ_HANDLED; | 161 | return IRQ_HANDLED; |
147 | } | 162 | } |
@@ -624,6 +639,17 @@ static void __init prcm_setup_regs(void) | |||
624 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, | 639 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, |
625 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); | 640 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); |
626 | 641 | ||
642 | /* Enable wakeups in PER */ | ||
643 | prm_write_mod_reg(OMAP3430_EN_GPIO2 | OMAP3430_EN_GPIO3 | | ||
644 | OMAP3430_EN_GPIO4 | OMAP3430_EN_GPIO5 | | ||
645 | OMAP3430_EN_GPIO6 | OMAP3430_EN_UART3, | ||
646 | OMAP3430_PER_MOD, PM_WKEN); | ||
647 | /* and allow them to wake up MPU */ | ||
648 | prm_write_mod_reg(OMAP3430_GRPSEL_GPIO2 | OMAP3430_EN_GPIO3 | | ||
649 | OMAP3430_GRPSEL_GPIO4 | OMAP3430_EN_GPIO5 | | ||
650 | OMAP3430_GRPSEL_GPIO6 | OMAP3430_EN_UART3, | ||
651 | OMAP3430_PER_MOD, OMAP3430_PM_MPUGRPSEL); | ||
652 | |||
627 | /* Don't attach IVA interrupts */ | 653 | /* Don't attach IVA interrupts */ |
628 | prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL); | 654 | prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL); |
629 | prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1); | 655 | prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1); |
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 2594cbff3947..f00289abd30f 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -273,35 +273,50 @@ struct powerdomain *pwrdm_lookup(const char *name) | |||
273 | } | 273 | } |
274 | 274 | ||
275 | /** | 275 | /** |
276 | * pwrdm_for_each - call function on each registered clockdomain | 276 | * pwrdm_for_each_nolock - call function on each registered clockdomain |
277 | * @fn: callback function * | 277 | * @fn: callback function * |
278 | * | 278 | * |
279 | * Call the supplied function for each registered powerdomain. The | 279 | * Call the supplied function for each registered powerdomain. The |
280 | * callback function can return anything but 0 to bail out early from | 280 | * callback function can return anything but 0 to bail out early from |
281 | * the iterator. The callback function is called with the pwrdm_rwlock | 281 | * the iterator. Returns the last return value of the callback function, which |
282 | * held for reading, so no powerdomain structure manipulation | 282 | * should be 0 for success or anything else to indicate failure; or -EINVAL if |
283 | * functions should be called from the callback, although hardware | 283 | * the function pointer is null. |
284 | * powerdomain control functions are fine. Returns the last return | ||
285 | * value of the callback function, which should be 0 for success or | ||
286 | * anything else to indicate failure; or -EINVAL if the function | ||
287 | * pointer is null. | ||
288 | */ | 284 | */ |
289 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | 285 | int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user), |
290 | void *user) | 286 | void *user) |
291 | { | 287 | { |
292 | struct powerdomain *temp_pwrdm; | 288 | struct powerdomain *temp_pwrdm; |
293 | unsigned long flags; | ||
294 | int ret = 0; | 289 | int ret = 0; |
295 | 290 | ||
296 | if (!fn) | 291 | if (!fn) |
297 | return -EINVAL; | 292 | return -EINVAL; |
298 | 293 | ||
299 | read_lock_irqsave(&pwrdm_rwlock, flags); | ||
300 | list_for_each_entry(temp_pwrdm, &pwrdm_list, node) { | 294 | list_for_each_entry(temp_pwrdm, &pwrdm_list, node) { |
301 | ret = (*fn)(temp_pwrdm, user); | 295 | ret = (*fn)(temp_pwrdm, user); |
302 | if (ret) | 296 | if (ret) |
303 | break; | 297 | break; |
304 | } | 298 | } |
299 | |||
300 | return ret; | ||
301 | } | ||
302 | |||
303 | /** | ||
304 | * pwrdm_for_each - call function on each registered clockdomain | ||
305 | * @fn: callback function * | ||
306 | * | ||
307 | * This function is the same as 'pwrdm_for_each_nolock()', but keeps the | ||
308 | * &pwrdm_rwlock locked for reading, so no powerdomain structure manipulation | ||
309 | * functions should be called from the callback, although hardware powerdomain | ||
310 | * control functions are fine. | ||
311 | */ | ||
312 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | ||
313 | void *user) | ||
314 | { | ||
315 | unsigned long flags; | ||
316 | int ret; | ||
317 | |||
318 | read_lock_irqsave(&pwrdm_rwlock, flags); | ||
319 | ret = pwrdm_for_each_nolock(fn, user); | ||
305 | read_unlock_irqrestore(&pwrdm_rwlock, flags); | 320 | read_unlock_irqrestore(&pwrdm_rwlock, flags); |
306 | 321 | ||
307 | return ret; | 322 | return ret; |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index ae2186892c85..54dfeb5d5667 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -109,16 +109,6 @@ static struct plat_serial8250_port serial_platform_data2[] = { | |||
109 | .regshift = 2, | 109 | .regshift = 2, |
110 | .uartclk = OMAP24XX_BASE_BAUD * 16, | 110 | .uartclk = OMAP24XX_BASE_BAUD * 16, |
111 | }, { | 111 | }, { |
112 | #ifdef CONFIG_ARCH_OMAP4 | ||
113 | .membase = OMAP2_IO_ADDRESS(OMAP_UART4_BASE), | ||
114 | .mapbase = OMAP_UART4_BASE, | ||
115 | .irq = 70, | ||
116 | .flags = UPF_BOOT_AUTOCONF, | ||
117 | .iotype = UPIO_MEM, | ||
118 | .regshift = 2, | ||
119 | .uartclk = OMAP24XX_BASE_BAUD * 16, | ||
120 | }, { | ||
121 | #endif | ||
122 | .flags = 0 | 112 | .flags = 0 |
123 | } | 113 | } |
124 | }; | 114 | }; |
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index aac2cda60e09..102916f1e465 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -43,10 +43,10 @@ | |||
43 | 43 | ||
44 | #define CM_X300_ETH_PHYS 0x08000010 | 44 | #define CM_X300_ETH_PHYS 0x08000010 |
45 | 45 | ||
46 | #define GPIO82_MMC2_IRQ (82) | 46 | #define GPIO82_MMC_IRQ (82) |
47 | #define GPIO85_MMC2_WP (85) | 47 | #define GPIO85_MMC_WP (85) |
48 | 48 | ||
49 | #define CM_X300_MMC2_IRQ IRQ_GPIO(GPIO82_MMC2_IRQ) | 49 | #define CM_X300_MMC_IRQ IRQ_GPIO(GPIO82_MMC_IRQ) |
50 | 50 | ||
51 | #define GPIO95_RTC_CS (95) | 51 | #define GPIO95_RTC_CS (95) |
52 | #define GPIO96_RTC_WR (96) | 52 | #define GPIO96_RTC_WR (96) |
@@ -292,37 +292,37 @@ static inline void cm_x300_init_nand(void) {} | |||
292 | #endif | 292 | #endif |
293 | 293 | ||
294 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) | 294 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) |
295 | /* The first MMC slot of CM-X300 is hardwired to Libertas card and has | 295 | static struct pxamci_platform_data cm_x300_mci_platform_data = { |
296 | .detect_delay = 20, | ||
297 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | ||
298 | .gpio_card_detect = GPIO82_MMC_IRQ, | ||
299 | .gpio_card_ro = GPIO85_MMC_WP, | ||
300 | .gpio_power = -1, | ||
301 | }; | ||
302 | |||
303 | /* The second MMC slot of CM-X300 is hardwired to Libertas card and has | ||
296 | no detection/ro pins */ | 304 | no detection/ro pins */ |
297 | static int cm_x300_mci_init(struct device *dev, | 305 | static int cm_x300_mci2_init(struct device *dev, |
298 | irq_handler_t cm_x300_detect_int, | 306 | irq_handler_t cm_x300_detect_int, |
299 | void *data) | 307 | void *data) |
300 | { | 308 | { |
301 | return 0; | 309 | return 0; |
302 | } | 310 | } |
303 | 311 | ||
304 | static void cm_x300_mci_exit(struct device *dev, void *data) | 312 | static void cm_x300_mci2_exit(struct device *dev, void *data) |
305 | { | 313 | { |
306 | } | 314 | } |
307 | 315 | ||
308 | static struct pxamci_platform_data cm_x300_mci_platform_data = { | 316 | static struct pxamci_platform_data cm_x300_mci2_platform_data = { |
309 | .detect_delay = 20, | 317 | .detect_delay = 20, |
310 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 318 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
311 | .init = cm_x300_mci_init, | 319 | .init = cm_x300_mci2_init, |
312 | .exit = cm_x300_mci_exit, | 320 | .exit = cm_x300_mci2_exit, |
313 | .gpio_card_detect = -1, | 321 | .gpio_card_detect = -1, |
314 | .gpio_card_ro = -1, | 322 | .gpio_card_ro = -1, |
315 | .gpio_power = -1, | 323 | .gpio_power = -1, |
316 | }; | 324 | }; |
317 | 325 | ||
318 | static struct pxamci_platform_data cm_x300_mci2_platform_data = { | ||
319 | .detect_delay = 20, | ||
320 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | ||
321 | .gpio_card_detect = GPIO82_MMC2_IRQ, | ||
322 | .gpio_card_ro = GPIO85_MMC2_WP, | ||
323 | .gpio_power = -1, | ||
324 | }; | ||
325 | |||
326 | static void __init cm_x300_init_mmc(void) | 326 | static void __init cm_x300_init_mmc(void) |
327 | { | 327 | { |
328 | pxa_set_mci_info(&cm_x300_mci_platform_data); | 328 | pxa_set_mci_info(&cm_x300_mci_platform_data); |
diff --git a/arch/arm/mach-pxa/colibri-pxa320.c b/arch/arm/mach-pxa/colibri-pxa320.c index 494572825c7d..ec0e14b96682 100644 --- a/arch/arm/mach-pxa/colibri-pxa320.c +++ b/arch/arm/mach-pxa/colibri-pxa320.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <mach/colibri.h> | 27 | #include <mach/colibri.h> |
28 | #include <mach/pxafb.h> | 28 | #include <mach/pxafb.h> |
29 | #include <mach/ohci.h> | 29 | #include <mach/ohci.h> |
30 | #include <mach/audio.h> | ||
30 | 31 | ||
31 | #include "generic.h" | 32 | #include "generic.h" |
32 | #include "devices.h" | 33 | #include "devices.h" |
@@ -145,7 +146,8 @@ static void __init colibri_pxa320_init_lcd(void) | |||
145 | static inline void colibri_pxa320_init_lcd(void) {} | 146 | static inline void colibri_pxa320_init_lcd(void) {} |
146 | #endif | 147 | #endif |
147 | 148 | ||
148 | #if defined(SND_AC97_CODEC) || defined(SND_AC97_CODEC_MODULE) | 149 | #if defined(CONFIG_SND_AC97_CODEC) || \ |
150 | defined(CONFIG_SND_AC97_CODEC_MODULE) | ||
149 | static mfp_cfg_t colibri_pxa320_ac97_pin_config[] __initdata = { | 151 | static mfp_cfg_t colibri_pxa320_ac97_pin_config[] __initdata = { |
150 | GPIO34_AC97_SYSCLK, | 152 | GPIO34_AC97_SYSCLK, |
151 | GPIO35_AC97_SDATA_IN_0, | 153 | GPIO35_AC97_SDATA_IN_0, |
diff --git a/arch/arm/mach-pxa/cpufreq-pxa2xx.c b/arch/arm/mach-pxa/cpufreq-pxa2xx.c index 3a8ee2272add..983cc8c20081 100644 --- a/arch/arm/mach-pxa/cpufreq-pxa2xx.c +++ b/arch/arm/mach-pxa/cpufreq-pxa2xx.c | |||
@@ -155,7 +155,7 @@ MODULE_PARM_DESC(pxa255_turbo_table, "Selects the frequency table (0 = run table | |||
155 | 155 | ||
156 | static pxa_freqs_t pxa27x_freqs[] = { | 156 | static pxa_freqs_t pxa27x_freqs[] = { |
157 | {104000, 104000, PXA27x_CCCR(1, 8, 2), 0, CCLKCFG2(1, 0, 1), 900000, 1705000 }, | 157 | {104000, 104000, PXA27x_CCCR(1, 8, 2), 0, CCLKCFG2(1, 0, 1), 900000, 1705000 }, |
158 | {156000, 104000, PXA27x_CCCR(1, 8, 6), 0, CCLKCFG2(1, 1, 1), 1000000, 1705000 }, | 158 | {156000, 104000, PXA27x_CCCR(1, 8, 3), 0, CCLKCFG2(1, 0, 1), 1000000, 1705000 }, |
159 | {208000, 208000, PXA27x_CCCR(0, 16, 2), 1, CCLKCFG2(0, 0, 1), 1180000, 1705000 }, | 159 | {208000, 208000, PXA27x_CCCR(0, 16, 2), 1, CCLKCFG2(0, 0, 1), 1180000, 1705000 }, |
160 | {312000, 208000, PXA27x_CCCR(1, 16, 3), 1, CCLKCFG2(1, 0, 1), 1250000, 1705000 }, | 160 | {312000, 208000, PXA27x_CCCR(1, 16, 3), 1, CCLKCFG2(1, 0, 1), 1250000, 1705000 }, |
161 | {416000, 208000, PXA27x_CCCR(1, 16, 4), 1, CCLKCFG2(1, 0, 1), 1350000, 1705000 }, | 161 | {416000, 208000, PXA27x_CCCR(1, 16, 4), 1, CCLKCFG2(1, 0, 1), 1350000, 1705000 }, |
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index 79141f862728..965480eb4fe6 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -238,7 +238,7 @@ static struct resource csb726_lan_resources[] = { | |||
238 | }; | 238 | }; |
239 | 239 | ||
240 | struct smsc911x_platform_config csb726_lan_config = { | 240 | struct smsc911x_platform_config csb726_lan_config = { |
241 | .irq_type = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | 241 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
242 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | 242 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, |
243 | .flags = SMSC911X_USE_32BIT, | 243 | .flags = SMSC911X_USE_32BIT, |
244 | .phy_interface = PHY_INTERFACE_MODE_MII, | 244 | .phy_interface = PHY_INTERFACE_MODE_MII, |
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index abff9e132749..83bd3c6e3884 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -604,7 +604,7 @@ static struct platform_device gpio_vbus = { | |||
604 | static const struct ads7846_platform_data tsc2046_info = { | 604 | static const struct ads7846_platform_data tsc2046_info = { |
605 | .model = 7846, | 605 | .model = 7846, |
606 | .vref_delay_usecs = 100, | 606 | .vref_delay_usecs = 100, |
607 | .pressure_max = 512, | 607 | .pressure_max = 1024, |
608 | .debounce_max = 10, | 608 | .debounce_max = 10, |
609 | .debounce_tol = 3, | 609 | .debounce_tol = 3, |
610 | .debounce_rep = 1, | 610 | .debounce_rep = 1, |
diff --git a/arch/arm/mach-pxa/include/mach/entry-macro.S b/arch/arm/mach-pxa/include/mach/entry-macro.S index 241880608ac6..a73bc86a3c26 100644 --- a/arch/arm/mach-pxa/include/mach/entry-macro.S +++ b/arch/arm/mach-pxa/include/mach/entry-macro.S | |||
@@ -46,5 +46,6 @@ | |||
46 | beq 1001f | 46 | beq 1001f |
47 | bic \irqstat, \irqstat, #0x80000000 | 47 | bic \irqstat, \irqstat, #0x80000000 |
48 | mov \irqnr, \irqstat, lsr #16 | 48 | mov \irqnr, \irqstat, lsr #16 |
49 | add \irqnr, \irqnr, #(PXA_IRQ(0)) | ||
49 | 1001: | 50 | 1001: |
50 | .endm | 51 | .endm |
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index d694ce289668..6112af431fa4 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -25,6 +25,8 @@ | |||
25 | 25 | ||
26 | #include "generic.h" | 26 | #include "generic.h" |
27 | 27 | ||
28 | #define MAX_INTERNAL_IRQS 128 | ||
29 | |||
28 | #define IRQ_BIT(n) (((n) - PXA_IRQ(0)) & 0x1f) | 30 | #define IRQ_BIT(n) (((n) - PXA_IRQ(0)) & 0x1f) |
29 | #define _ICMR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICMR2 : &ICMR)) | 31 | #define _ICMR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICMR2 : &ICMR)) |
30 | #define _ICLR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICLR2 : &ICLR)) | 32 | #define _ICLR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICLR2 : &ICLR)) |
@@ -122,6 +124,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) | |||
122 | { | 124 | { |
123 | int irq, i; | 125 | int irq, i; |
124 | 126 | ||
127 | BUG_ON(irq_nr > MAX_INTERNAL_IRQS); | ||
128 | |||
125 | pxa_internal_irq_nr = irq_nr; | 129 | pxa_internal_irq_nr = irq_nr; |
126 | 130 | ||
127 | for (irq = PXA_IRQ(0); irq < PXA_IRQ(irq_nr); irq += 32) { | 131 | for (irq = PXA_IRQ(0); irq < PXA_IRQ(irq_nr); irq += 32) { |
@@ -149,7 +153,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) | |||
149 | } | 153 | } |
150 | 154 | ||
151 | #ifdef CONFIG_PM | 155 | #ifdef CONFIG_PM |
152 | static unsigned long saved_icmr[2]; | 156 | static unsigned long saved_icmr[MAX_INTERNAL_IRQS/32]; |
157 | static unsigned long saved_ipr[MAX_INTERNAL_IRQS]; | ||
153 | 158 | ||
154 | static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) | 159 | static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) |
155 | { | 160 | { |
@@ -159,6 +164,8 @@ static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) | |||
159 | saved_icmr[i] = _ICMR(irq); | 164 | saved_icmr[i] = _ICMR(irq); |
160 | _ICMR(irq) = 0; | 165 | _ICMR(irq) = 0; |
161 | } | 166 | } |
167 | for (i = 0; i < pxa_internal_irq_nr; i++) | ||
168 | saved_ipr[i] = IPR(i); | ||
162 | 169 | ||
163 | return 0; | 170 | return 0; |
164 | } | 171 | } |
@@ -171,6 +178,8 @@ static int pxa_irq_resume(struct sys_device *dev) | |||
171 | _ICMR(irq) = saved_icmr[i]; | 178 | _ICMR(irq) = saved_icmr[i]; |
172 | _ICLR(irq) = 0; | 179 | _ICLR(irq) = 0; |
173 | } | 180 | } |
181 | for (i = 0; i < pxa_internal_irq_nr; i++) | ||
182 | IPR(i) = saved_ipr[i]; | ||
174 | 183 | ||
175 | ICCR = 1; | 184 | ICCR = 1; |
176 | return 0; | 185 | return 0; |
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c index bb2cc0dd44ec..0b92291a58f6 100644 --- a/arch/arm/mach-pxa/palmtc.c +++ b/arch/arm/mach-pxa/palmtc.c | |||
@@ -292,10 +292,10 @@ const static unsigned int palmtc_keypad_col_gpios[] = { | |||
292 | 292 | ||
293 | static struct matrix_keypad_platform_data palmtc_keypad_platform_data = { | 293 | static struct matrix_keypad_platform_data palmtc_keypad_platform_data = { |
294 | .keymap_data = &palmtc_keymap_data, | 294 | .keymap_data = &palmtc_keymap_data, |
295 | .col_gpios = palmtc_keypad_row_gpios, | 295 | .row_gpios = palmtc_keypad_row_gpios, |
296 | .num_col_gpios = 12, | 296 | .num_row_gpios = ARRAY_SIZE(palmtc_keypad_row_gpios), |
297 | .row_gpios = palmtc_keypad_col_gpios, | 297 | .col_gpios = palmtc_keypad_col_gpios, |
298 | .num_row_gpios = 4, | 298 | .num_col_gpios = ARRAY_SIZE(palmtc_keypad_col_gpios), |
299 | .active_low = 1, | 299 | .active_low = 1, |
300 | 300 | ||
301 | .debounce_ms = 20, | 301 | .debounce_ms = 20, |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index ee8d6038ce82..3da45d051743 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/gpio_keys.h> | ||
18 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
19 | #include <linux/leds.h> | 20 | #include <linux/leds.h> |
20 | #include <linux/mtd/physmap.h> | 21 | #include <linux/mtd/physmap.h> |
@@ -375,6 +376,43 @@ static struct platform_device spitzkbd_device = { | |||
375 | }; | 376 | }; |
376 | 377 | ||
377 | 378 | ||
379 | static struct gpio_keys_button spitz_gpio_keys[] = { | ||
380 | { | ||
381 | .type = EV_PWR, | ||
382 | .code = KEY_SUSPEND, | ||
383 | .gpio = SPITZ_GPIO_ON_KEY, | ||
384 | .desc = "On/Off", | ||
385 | .wakeup = 1, | ||
386 | }, | ||
387 | /* Two buttons detecting the lid state */ | ||
388 | { | ||
389 | .type = EV_SW, | ||
390 | .code = 0, | ||
391 | .gpio = SPITZ_GPIO_SWA, | ||
392 | .desc = "Display Down", | ||
393 | }, | ||
394 | { | ||
395 | .type = EV_SW, | ||
396 | .code = 1, | ||
397 | .gpio = SPITZ_GPIO_SWB, | ||
398 | .desc = "Lid Closed", | ||
399 | }, | ||
400 | }; | ||
401 | |||
402 | static struct gpio_keys_platform_data spitz_gpio_keys_platform_data = { | ||
403 | .buttons = spitz_gpio_keys, | ||
404 | .nbuttons = ARRAY_SIZE(spitz_gpio_keys), | ||
405 | }; | ||
406 | |||
407 | static struct platform_device spitz_gpio_keys_device = { | ||
408 | .name = "gpio-keys", | ||
409 | .id = -1, | ||
410 | .dev = { | ||
411 | .platform_data = &spitz_gpio_keys_platform_data, | ||
412 | }, | ||
413 | }; | ||
414 | |||
415 | |||
378 | /* | 416 | /* |
379 | * Spitz LEDs | 417 | * Spitz LEDs |
380 | */ | 418 | */ |
@@ -689,6 +727,7 @@ static struct platform_device sharpsl_rom_device = { | |||
689 | static struct platform_device *devices[] __initdata = { | 727 | static struct platform_device *devices[] __initdata = { |
690 | &spitzscoop_device, | 728 | &spitzscoop_device, |
691 | &spitzkbd_device, | 729 | &spitzkbd_device, |
730 | &spitz_gpio_keys_device, | ||
692 | &spitzled_device, | 731 | &spitzled_device, |
693 | &sharpsl_nand_device, | 732 | &sharpsl_nand_device, |
694 | &sharpsl_rom_device, | 733 | &sharpsl_rom_device, |
@@ -740,11 +779,34 @@ static void __init common_init(void) | |||
740 | pxa_set_i2c_info(NULL); | 779 | pxa_set_i2c_info(NULL); |
741 | } | 780 | } |
742 | 781 | ||
782 | #if defined(CONFIG_MACH_AKITA) || defined(CONFIG_MACH_BORZOI) | ||
783 | static struct nand_bbt_descr sharpsl_akita_bbt = { | ||
784 | .options = 0, | ||
785 | .offs = 4, | ||
786 | .len = 1, | ||
787 | .pattern = scan_ff_pattern | ||
788 | }; | ||
789 | |||
790 | static struct nand_ecclayout akita_oobinfo = { | ||
791 | .eccbytes = 24, | ||
792 | .eccpos = { | ||
793 | 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, | ||
794 | 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, | ||
795 | 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, | ||
796 | .oobfree = {{0x08, 0x09}} | ||
797 | }; | ||
798 | #endif | ||
799 | |||
743 | #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) | 800 | #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) |
744 | static void __init spitz_init(void) | 801 | static void __init spitz_init(void) |
745 | { | 802 | { |
746 | spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON; | 803 | spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON; |
747 | 804 | ||
805 | if (machine_is_borzoi()) { | ||
806 | sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt; | ||
807 | sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo; | ||
808 | } | ||
809 | |||
748 | platform_scoop_config = &spitz_pcmcia_config; | 810 | platform_scoop_config = &spitz_pcmcia_config; |
749 | 811 | ||
750 | common_init(); | 812 | common_init(); |
@@ -769,22 +831,6 @@ static struct i2c_board_info akita_i2c_board_info[] = { | |||
769 | }, | 831 | }, |
770 | }; | 832 | }; |
771 | 833 | ||
772 | static struct nand_bbt_descr sharpsl_akita_bbt = { | ||
773 | .options = 0, | ||
774 | .offs = 4, | ||
775 | .len = 1, | ||
776 | .pattern = scan_ff_pattern | ||
777 | }; | ||
778 | |||
779 | static struct nand_ecclayout akita_oobinfo = { | ||
780 | .eccbytes = 24, | ||
781 | .eccpos = { | ||
782 | 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, | ||
783 | 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, | ||
784 | 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, | ||
785 | .oobfree = {{0x08, 0x09}} | ||
786 | }; | ||
787 | |||
788 | static void __init akita_init(void) | 834 | static void __init akita_init(void) |
789 | { | 835 | { |
790 | spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON; | 836 | spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON; |
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig index dfc9b0bc6eb2..c48e1f2c3349 100644 --- a/arch/arm/mach-realview/Kconfig +++ b/arch/arm/mach-realview/Kconfig | |||
@@ -70,6 +70,8 @@ config MACH_REALVIEW_PBX | |||
70 | bool "Support RealView/PBX platform" | 70 | bool "Support RealView/PBX platform" |
71 | select ARM_GIC | 71 | select ARM_GIC |
72 | select HAVE_PATA_PLATFORM | 72 | select HAVE_PATA_PLATFORM |
73 | select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !HIGH_PHYS_OFFSET | ||
74 | select ZONE_DMA if SPARSEMEM | ||
73 | help | 75 | help |
74 | Include support for the ARM(R) RealView PBX platform. | 76 | Include support for the ARM(R) RealView PBX platform. |
75 | 77 | ||
@@ -82,6 +84,7 @@ config REALVIEW_HIGH_PHYS_OFFSET | |||
82 | 0x70000000, 256MB of which being mirrored at 0x00000000. If | 84 | 0x70000000, 256MB of which being mirrored at 0x00000000. If |
83 | the board supports 512MB of RAM, this option allows the | 85 | the board supports 512MB of RAM, this option allows the |
84 | memory to be accessed contiguously at the high physical | 86 | memory to be accessed contiguously at the high physical |
85 | offset. | 87 | offset. On the PBX board, disabling this option allows 1GB of |
88 | RAM to be used with SPARSEMEM. | ||
86 | 89 | ||
87 | endmenu | 90 | endmenu |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index a2083b60e3fb..9f293438e020 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -59,6 +59,25 @@ | |||
59 | /* used by entry-macro.S and platsmp.c */ | 59 | /* used by entry-macro.S and platsmp.c */ |
60 | void __iomem *gic_cpu_base_addr; | 60 | void __iomem *gic_cpu_base_addr; |
61 | 61 | ||
62 | #ifdef CONFIG_ZONE_DMA | ||
63 | /* | ||
64 | * Adjust the zones if there are restrictions for DMA access. | ||
65 | */ | ||
66 | void __init realview_adjust_zones(int node, unsigned long *size, | ||
67 | unsigned long *hole) | ||
68 | { | ||
69 | unsigned long dma_size = SZ_256M >> PAGE_SHIFT; | ||
70 | |||
71 | if (!machine_is_realview_pbx() || node || (size[0] <= dma_size)) | ||
72 | return; | ||
73 | |||
74 | size[ZONE_NORMAL] = size[0] - dma_size; | ||
75 | size[ZONE_DMA] = dma_size; | ||
76 | hole[ZONE_NORMAL] = hole[0]; | ||
77 | hole[ZONE_DMA] = 0; | ||
78 | } | ||
79 | #endif | ||
80 | |||
62 | /* | 81 | /* |
63 | * This is the RealView sched_clock implementation. This has | 82 | * This is the RealView sched_clock implementation. This has |
64 | * a resolution of 41.7ns, and a maximum value of about 179s. | 83 | * a resolution of 41.7ns, and a maximum value of about 179s. |
@@ -543,7 +562,7 @@ static int realview_clcd_setup(struct clcd_fb *fb) | |||
543 | fb->panel = realview_clcd_panel(); | 562 | fb->panel = realview_clcd_panel(); |
544 | 563 | ||
545 | fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, framesize, | 564 | fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, framesize, |
546 | &dma, GFP_KERNEL); | 565 | &dma, GFP_KERNEL | GFP_DMA); |
547 | if (!fb->fb.screen_base) { | 566 | if (!fb->fb.screen_base) { |
548 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); | 567 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); |
549 | return -ENOMEM; | 568 | return -ENOMEM; |
@@ -788,3 +807,24 @@ void __init realview_timer_init(unsigned int timer_irq) | |||
788 | realview_clocksource_init(); | 807 | realview_clocksource_init(); |
789 | realview_clockevents_init(timer_irq); | 808 | realview_clockevents_init(timer_irq); |
790 | } | 809 | } |
810 | |||
811 | /* | ||
812 | * Setup the memory banks. | ||
813 | */ | ||
814 | void realview_fixup(struct machine_desc *mdesc, struct tag *tags, char **from, | ||
815 | struct meminfo *meminfo) | ||
816 | { | ||
817 | /* | ||
818 | * Most RealView platforms have 512MB contiguous RAM at 0x70000000. | ||
819 | * Half of this is mirrored at 0. | ||
820 | */ | ||
821 | #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET | ||
822 | meminfo->bank[0].start = 0x70000000; | ||
823 | meminfo->bank[0].size = SZ_512M; | ||
824 | meminfo->nr_banks = 1; | ||
825 | #else | ||
826 | meminfo->bank[0].start = 0; | ||
827 | meminfo->bank[0].size = SZ_256M; | ||
828 | meminfo->nr_banks = 1; | ||
829 | #endif | ||
830 | } | ||
diff --git a/arch/arm/mach-realview/core.h b/arch/arm/mach-realview/core.h index 46cd6acb4d40..781bca68a9fa 100644 --- a/arch/arm/mach-realview/core.h +++ b/arch/arm/mach-realview/core.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
27 | 27 | ||
28 | #include <asm/setup.h> | ||
28 | #include <asm/leds.h> | 29 | #include <asm/leds.h> |
29 | 30 | ||
30 | #define AMBA_DEVICE(name,busid,base,plat) \ | 31 | #define AMBA_DEVICE(name,busid,base,plat) \ |
@@ -44,6 +45,8 @@ static struct amba_device name##_device = { \ | |||
44 | /* .dma = base##_DMA,*/ \ | 45 | /* .dma = base##_DMA,*/ \ |
45 | } | 46 | } |
46 | 47 | ||
48 | struct machine_desc; | ||
49 | |||
47 | extern struct platform_device realview_flash_device; | 50 | extern struct platform_device realview_flash_device; |
48 | extern struct platform_device realview_cf_device; | 51 | extern struct platform_device realview_cf_device; |
49 | extern struct platform_device realview_i2c_device; | 52 | extern struct platform_device realview_i2c_device; |
@@ -61,5 +64,8 @@ extern void realview_timer_init(unsigned int timer_irq); | |||
61 | extern int realview_flash_register(struct resource *res, u32 num); | 64 | extern int realview_flash_register(struct resource *res, u32 num); |
62 | extern int realview_eth_register(const char *name, struct resource *res); | 65 | extern int realview_eth_register(const char *name, struct resource *res); |
63 | extern int realview_usb_register(struct resource *res); | 66 | extern int realview_usb_register(struct resource *res); |
67 | extern void realview_fixup(struct machine_desc *mdesc, struct tag *tags, | ||
68 | char **from, struct meminfo *meminfo); | ||
69 | extern void (*realview_reset)(char); | ||
64 | 70 | ||
65 | #endif | 71 | #endif |
diff --git a/arch/arm/mach-realview/include/mach/board-pb1176.h b/arch/arm/mach-realview/include/mach/board-pb1176.h index 98f8e7eeacc2..34b80b7d40b8 100644 --- a/arch/arm/mach-realview/include/mach/board-pb1176.h +++ b/arch/arm/mach-realview/include/mach/board-pb1176.h | |||
@@ -73,4 +73,9 @@ | |||
73 | #define REALVIEW_PB1176_GIC_DIST_BASE 0x10041000 /* GIC distributor, on FPGA */ | 73 | #define REALVIEW_PB1176_GIC_DIST_BASE 0x10041000 /* GIC distributor, on FPGA */ |
74 | #define REALVIEW_PB1176_L220_BASE 0x10110000 /* L220 registers */ | 74 | #define REALVIEW_PB1176_L220_BASE 0x10110000 /* L220 registers */ |
75 | 75 | ||
76 | /* | ||
77 | * Control register SYS_RESETCTL is set to 1 to force a soft reset | ||
78 | */ | ||
79 | #define REALVIEW_PB1176_SYS_LOCKVAL_RSTCTL 0x0100 | ||
80 | |||
76 | #endif /* __ASM_ARCH_BOARD_PB1176_H */ | 81 | #endif /* __ASM_ARCH_BOARD_PB1176_H */ |
diff --git a/arch/arm/mach-realview/include/mach/board-pb11mp.h b/arch/arm/mach-realview/include/mach/board-pb11mp.h index f0d68e0fea01..7abf918b77e9 100644 --- a/arch/arm/mach-realview/include/mach/board-pb11mp.h +++ b/arch/arm/mach-realview/include/mach/board-pb11mp.h | |||
@@ -81,4 +81,16 @@ | |||
81 | #define REALVIEW_TC11MP_GIC_DIST_BASE 0x1F001000 /* Test chip interrupt controller distributor */ | 81 | #define REALVIEW_TC11MP_GIC_DIST_BASE 0x1F001000 /* Test chip interrupt controller distributor */ |
82 | #define REALVIEW_TC11MP_L220_BASE 0x1F002000 /* L220 registers */ | 82 | #define REALVIEW_TC11MP_L220_BASE 0x1F002000 /* L220 registers */ |
83 | 83 | ||
84 | /* | ||
85 | * Values for REALVIEW_SYS_RESET_CTRL | ||
86 | */ | ||
87 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_CONFIGCLR 0x01 | ||
88 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_CONFIGINIT 0x02 | ||
89 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_DLLRESET 0x03 | ||
90 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_PLLRESET 0x04 | ||
91 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_POR 0x05 | ||
92 | #define REALVIEW_PB11MP_SYS_CTRL_RESET_DoC 0x06 | ||
93 | |||
94 | #define REALVIEW_PB11MP_SYS_CTRL_LED (1 << 0) | ||
95 | |||
84 | #endif /* __ASM_ARCH_BOARD_PB11MP_H */ | 96 | #endif /* __ASM_ARCH_BOARD_PB11MP_H */ |
diff --git a/arch/arm/mach-realview/include/mach/memory.h b/arch/arm/mach-realview/include/mach/memory.h index 293c30025e7e..2417bbcf97fd 100644 --- a/arch/arm/mach-realview/include/mach/memory.h +++ b/arch/arm/mach-realview/include/mach/memory.h | |||
@@ -29,4 +29,53 @@ | |||
29 | #define PHYS_OFFSET UL(0x00000000) | 29 | #define PHYS_OFFSET UL(0x00000000) |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_ZONE_DMA) | ||
33 | extern void realview_adjust_zones(int node, unsigned long *size, | ||
34 | unsigned long *hole); | ||
35 | #define arch_adjust_zones(node, size, hole) \ | ||
36 | realview_adjust_zones(node, size, hole) | ||
37 | |||
38 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_256M - 1) | ||
39 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_256M) | ||
40 | #endif | ||
41 | |||
42 | #ifdef CONFIG_SPARSEMEM | ||
43 | |||
44 | /* | ||
45 | * Sparsemem definitions for RealView PBX. | ||
46 | * | ||
47 | * The RealView PBX board has another block of 512MB of RAM at 0x20000000, | ||
48 | * however only the block at 0x70000000 (or the 256MB mirror at 0x00000000) | ||
49 | * may be used for DMA. | ||
50 | * | ||
51 | * The macros below define a section size of 256MB and a non-linear virtual to | ||
52 | * physical mapping: | ||
53 | * | ||
54 | * 256MB @ 0x00000000 -> PAGE_OFFSET | ||
55 | * 512MB @ 0x20000000 -> PAGE_OFFSET + 0x10000000 | ||
56 | * 256MB @ 0x80000000 -> PAGE_OFFSET + 0x30000000 | ||
57 | */ | ||
58 | #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET | ||
59 | #error "SPARSEMEM not available with REALVIEW_HIGH_PHYS_OFFSET" | ||
60 | #endif | ||
61 | |||
62 | #define MAX_PHYSMEM_BITS 32 | ||
63 | #define SECTION_SIZE_BITS 28 | ||
64 | |||
65 | /* bank page offsets */ | ||
66 | #define PAGE_OFFSET1 (PAGE_OFFSET + 0x10000000) | ||
67 | #define PAGE_OFFSET2 (PAGE_OFFSET + 0x30000000) | ||
68 | |||
69 | #define __phys_to_virt(phys) \ | ||
70 | ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 : \ | ||
71 | (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 : \ | ||
72 | (phys) + PAGE_OFFSET) | ||
73 | |||
74 | #define __virt_to_phys(virt) \ | ||
75 | ((virt) >= PAGE_OFFSET2 ? (virt) - PAGE_OFFSET2 + 0x80000000 : \ | ||
76 | (virt) >= PAGE_OFFSET1 ? (virt) - PAGE_OFFSET1 + 0x20000000 : \ | ||
77 | (virt) - PAGE_OFFSET) | ||
78 | |||
79 | #endif /* CONFIG_SPARSEMEM */ | ||
80 | |||
32 | #endif | 81 | #endif |
diff --git a/arch/arm/mach-realview/include/mach/platform.h b/arch/arm/mach-realview/include/mach/platform.h index c8f50835fed2..4f46bf71e752 100644 --- a/arch/arm/mach-realview/include/mach/platform.h +++ b/arch/arm/mach-realview/include/mach/platform.h | |||
@@ -119,19 +119,6 @@ | |||
119 | #define REALVIEW_SYS_TEST_OSC3 (REALVIEW_SYS_BASE + REALVIEW_SYS_TEST_OSC3_OFFSET) | 119 | #define REALVIEW_SYS_TEST_OSC3 (REALVIEW_SYS_BASE + REALVIEW_SYS_TEST_OSC3_OFFSET) |
120 | #define REALVIEW_SYS_TEST_OSC4 (REALVIEW_SYS_BASE + REALVIEW_SYS_TEST_OSC4_OFFSET) | 120 | #define REALVIEW_SYS_TEST_OSC4 (REALVIEW_SYS_BASE + REALVIEW_SYS_TEST_OSC4_OFFSET) |
121 | 121 | ||
122 | /* | ||
123 | * Values for REALVIEW_SYS_RESET_CTRL | ||
124 | */ | ||
125 | #define REALVIEW_SYS_CTRL_RESET_CONFIGCLR 0x01 | ||
126 | #define REALVIEW_SYS_CTRL_RESET_CONFIGINIT 0x02 | ||
127 | #define REALVIEW_SYS_CTRL_RESET_DLLRESET 0x03 | ||
128 | #define REALVIEW_SYS_CTRL_RESET_PLLRESET 0x04 | ||
129 | #define REALVIEW_SYS_CTRL_RESET_POR 0x05 | ||
130 | #define REALVIEW_SYS_CTRL_RESET_DoC 0x06 | ||
131 | |||
132 | #define REALVIEW_SYS_CTRL_LED (1 << 0) | ||
133 | |||
134 | |||
135 | /* ------------------------------------------------------------------------ | 122 | /* ------------------------------------------------------------------------ |
136 | * RealView control registers | 123 | * RealView control registers |
137 | * ------------------------------------------------------------------------ | 124 | * ------------------------------------------------------------------------ |
@@ -153,7 +140,7 @@ | |||
153 | * SYS_CLD, SYS_BOOTCS | 140 | * SYS_CLD, SYS_BOOTCS |
154 | */ | 141 | */ |
155 | #define REALVIEW_SYS_LOCK_LOCKED (1 << 16) | 142 | #define REALVIEW_SYS_LOCK_LOCKED (1 << 16) |
156 | #define REALVIEW_SYS_LOCKVAL_MASK 0xFFFF /* write 0xA05F to enable write access */ | 143 | #define REALVIEW_SYS_LOCKVAL_MASK 0xA05F /* Enable write access */ |
157 | 144 | ||
158 | /* | 145 | /* |
159 | * REALVIEW_SYS_FLASH | 146 | * REALVIEW_SYS_FLASH |
diff --git a/arch/arm/mach-realview/include/mach/system.h b/arch/arm/mach-realview/include/mach/system.h index 1a15a441e027..a30f2e3ec178 100644 --- a/arch/arm/mach-realview/include/mach/system.h +++ b/arch/arm/mach-realview/include/mach/system.h | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <mach/hardware.h> | 25 | #include <mach/hardware.h> |
26 | #include <mach/platform.h> | 26 | #include <mach/platform.h> |
27 | 27 | ||
28 | void (*realview_reset)(char mode); | ||
29 | |||
28 | static inline void arch_idle(void) | 30 | static inline void arch_idle(void) |
29 | { | 31 | { |
30 | /* | 32 | /* |
@@ -36,16 +38,12 @@ static inline void arch_idle(void) | |||
36 | 38 | ||
37 | static inline void arch_reset(char mode, const char *cmd) | 39 | static inline void arch_reset(char mode, const char *cmd) |
38 | { | 40 | { |
39 | void __iomem *hdr_ctrl = __io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_RESETCTL_OFFSET; | ||
40 | unsigned int val; | ||
41 | |||
42 | /* | 41 | /* |
43 | * To reset, we hit the on-board reset register | 42 | * To reset, we hit the on-board reset register |
44 | * in the system FPGA | 43 | * in the system FPGA |
45 | */ | 44 | */ |
46 | val = __raw_readl(hdr_ctrl); | 45 | if (realview_reset) |
47 | val |= REALVIEW_SYS_CTRL_RESET_CONFIGCLR; | 46 | realview_reset(mode); |
48 | __raw_writel(val, hdr_ctrl); | ||
49 | } | 47 | } |
50 | 48 | ||
51 | #endif | 49 | #endif |
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index a88458b4799d..009265818d55 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c | |||
@@ -146,11 +146,8 @@ static void __init poke_milo(void) | |||
146 | * register. The BootMonitor waits for this register to become | 146 | * register. The BootMonitor waits for this register to become |
147 | * non-zero. | 147 | * non-zero. |
148 | */ | 148 | */ |
149 | #define REALVIEW_SYS_FLAGSS_OFFSET 0x30 | ||
150 | #define REALVIEW_SYS_FLAGSC_OFFSET 0x34 | ||
151 | __raw_writel(BSYM(virt_to_phys(realview_secondary_startup)), | 149 | __raw_writel(BSYM(virt_to_phys(realview_secondary_startup)), |
152 | __io_address(REALVIEW_SYS_BASE) + | 150 | __io_address(REALVIEW_SYS_FLAGSSET)); |
153 | REALVIEW_SYS_FLAGSS_OFFSET); | ||
154 | 151 | ||
155 | mb(); | 152 | mb(); |
156 | } | 153 | } |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 1d65e64ae571..917f8ca3abff 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -415,6 +415,7 @@ MACHINE_START(REALVIEW_EB, "ARM-RealView EB") | |||
415 | .phys_io = REALVIEW_EB_UART0_BASE, | 415 | .phys_io = REALVIEW_EB_UART0_BASE, |
416 | .io_pg_offst = (IO_ADDRESS(REALVIEW_EB_UART0_BASE) >> 18) & 0xfffc, | 416 | .io_pg_offst = (IO_ADDRESS(REALVIEW_EB_UART0_BASE) >> 18) & 0xfffc, |
417 | .boot_params = PHYS_OFFSET + 0x00000100, | 417 | .boot_params = PHYS_OFFSET + 0x00000100, |
418 | .fixup = realview_fixup, | ||
418 | .map_io = realview_eb_map_io, | 419 | .map_io = realview_eb_map_io, |
419 | .init_irq = gic_init_irq, | 420 | .init_irq = gic_init_irq, |
420 | .timer = &realview_eb_timer, | 421 | .timer = &realview_eb_timer, |
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index 2817fe099319..7fb726d5f8b9 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
@@ -290,6 +290,28 @@ static struct sys_timer realview_pb1176_timer = { | |||
290 | .init = realview_pb1176_timer_init, | 290 | .init = realview_pb1176_timer_init, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static void realview_pb1176_reset(char mode) | ||
294 | { | ||
295 | void __iomem *hdr_ctrl = __io_address(REALVIEW_SYS_BASE) + | ||
296 | REALVIEW_SYS_RESETCTL_OFFSET; | ||
297 | void __iomem *rst_hdr_ctrl = __io_address(REALVIEW_SYS_BASE) + | ||
298 | REALVIEW_SYS_LOCK_OFFSET; | ||
299 | __raw_writel(REALVIEW_SYS_LOCKVAL_MASK, rst_hdr_ctrl); | ||
300 | __raw_writel(REALVIEW_PB1176_SYS_LOCKVAL_RSTCTL, hdr_ctrl); | ||
301 | } | ||
302 | |||
303 | static void realview_pb1176_fixup(struct machine_desc *mdesc, | ||
304 | struct tag *tags, char **from, | ||
305 | struct meminfo *meminfo) | ||
306 | { | ||
307 | /* | ||
308 | * RealView PB1176 only has 128MB of RAM mapped at 0. | ||
309 | */ | ||
310 | meminfo->bank[0].start = 0; | ||
311 | meminfo->bank[0].size = SZ_128M; | ||
312 | meminfo->nr_banks = 1; | ||
313 | } | ||
314 | |||
293 | static void __init realview_pb1176_init(void) | 315 | static void __init realview_pb1176_init(void) |
294 | { | 316 | { |
295 | int i; | 317 | int i; |
@@ -313,6 +335,7 @@ static void __init realview_pb1176_init(void) | |||
313 | #ifdef CONFIG_LEDS | 335 | #ifdef CONFIG_LEDS |
314 | leds_event = realview_leds_event; | 336 | leds_event = realview_leds_event; |
315 | #endif | 337 | #endif |
338 | realview_reset = realview_pb1176_reset; | ||
316 | } | 339 | } |
317 | 340 | ||
318 | MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") | 341 | MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") |
@@ -320,6 +343,7 @@ MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") | |||
320 | .phys_io = REALVIEW_PB1176_UART0_BASE, | 343 | .phys_io = REALVIEW_PB1176_UART0_BASE, |
321 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PB1176_UART0_BASE) >> 18) & 0xfffc, | 344 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PB1176_UART0_BASE) >> 18) & 0xfffc, |
322 | .boot_params = PHYS_OFFSET + 0x00000100, | 345 | .boot_params = PHYS_OFFSET + 0x00000100, |
346 | .fixup = realview_pb1176_fixup, | ||
323 | .map_io = realview_pb1176_map_io, | 347 | .map_io = realview_pb1176_map_io, |
324 | .init_irq = gic_init_irq, | 348 | .init_irq = gic_init_irq, |
325 | .timer = &realview_pb1176_timer, | 349 | .timer = &realview_pb1176_timer, |
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index 94680fcf726d..9bbbfc05f225 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
@@ -299,6 +299,21 @@ static struct sys_timer realview_pb11mp_timer = { | |||
299 | .init = realview_pb11mp_timer_init, | 299 | .init = realview_pb11mp_timer_init, |
300 | }; | 300 | }; |
301 | 301 | ||
302 | static void realview_pb11mp_reset(char mode) | ||
303 | { | ||
304 | void __iomem *hdr_ctrl = __io_address(REALVIEW_SYS_BASE) + | ||
305 | REALVIEW_SYS_RESETCTL_OFFSET; | ||
306 | unsigned int val; | ||
307 | |||
308 | /* | ||
309 | * To reset, we hit the on-board reset register | ||
310 | * in the system FPGA | ||
311 | */ | ||
312 | val = __raw_readl(hdr_ctrl); | ||
313 | val |= REALVIEW_PB11MP_SYS_CTRL_RESET_CONFIGCLR; | ||
314 | __raw_writel(val, hdr_ctrl); | ||
315 | } | ||
316 | |||
302 | static void __init realview_pb11mp_init(void) | 317 | static void __init realview_pb11mp_init(void) |
303 | { | 318 | { |
304 | int i; | 319 | int i; |
@@ -324,6 +339,7 @@ static void __init realview_pb11mp_init(void) | |||
324 | #ifdef CONFIG_LEDS | 339 | #ifdef CONFIG_LEDS |
325 | leds_event = realview_leds_event; | 340 | leds_event = realview_leds_event; |
326 | #endif | 341 | #endif |
342 | realview_reset = realview_pb11mp_reset; | ||
327 | } | 343 | } |
328 | 344 | ||
329 | MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") | 345 | MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") |
@@ -331,6 +347,7 @@ MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") | |||
331 | .phys_io = REALVIEW_PB11MP_UART0_BASE, | 347 | .phys_io = REALVIEW_PB11MP_UART0_BASE, |
332 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PB11MP_UART0_BASE) >> 18) & 0xfffc, | 348 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PB11MP_UART0_BASE) >> 18) & 0xfffc, |
333 | .boot_params = PHYS_OFFSET + 0x00000100, | 349 | .boot_params = PHYS_OFFSET + 0x00000100, |
350 | .fixup = realview_fixup, | ||
334 | .map_io = realview_pb11mp_map_io, | 351 | .map_io = realview_pb11mp_map_io, |
335 | .init_irq = gic_init_irq, | 352 | .init_irq = gic_init_irq, |
336 | .timer = &realview_pb11mp_timer, | 353 | .timer = &realview_pb11mp_timer, |
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c index 941beb2b9709..fe861e96c566 100644 --- a/arch/arm/mach-realview/realview_pba8.c +++ b/arch/arm/mach-realview/realview_pba8.c | |||
@@ -298,6 +298,7 @@ MACHINE_START(REALVIEW_PBA8, "ARM-RealView PB-A8") | |||
298 | .phys_io = REALVIEW_PBA8_UART0_BASE, | 298 | .phys_io = REALVIEW_PBA8_UART0_BASE, |
299 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PBA8_UART0_BASE) >> 18) & 0xfffc, | 299 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PBA8_UART0_BASE) >> 18) & 0xfffc, |
300 | .boot_params = PHYS_OFFSET + 0x00000100, | 300 | .boot_params = PHYS_OFFSET + 0x00000100, |
301 | .fixup = realview_fixup, | ||
301 | .map_io = realview_pba8_map_io, | 302 | .map_io = realview_pba8_map_io, |
302 | .init_irq = gic_init_irq, | 303 | .init_irq = gic_init_irq, |
303 | .timer = &realview_pba8_timer, | 304 | .timer = &realview_pba8_timer, |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index 7e4bc6cdca52..ec39488e2b42 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
@@ -304,6 +304,26 @@ static struct sys_timer realview_pbx_timer = { | |||
304 | .init = realview_pbx_timer_init, | 304 | .init = realview_pbx_timer_init, |
305 | }; | 305 | }; |
306 | 306 | ||
307 | static void realview_pbx_fixup(struct machine_desc *mdesc, struct tag *tags, | ||
308 | char **from, struct meminfo *meminfo) | ||
309 | { | ||
310 | #ifdef CONFIG_SPARSEMEM | ||
311 | /* | ||
312 | * Memory configuration with SPARSEMEM enabled on RealView PBX (see | ||
313 | * asm/mach/memory.h for more information). | ||
314 | */ | ||
315 | meminfo->bank[0].start = 0; | ||
316 | meminfo->bank[0].size = SZ_256M; | ||
317 | meminfo->bank[1].start = 0x20000000; | ||
318 | meminfo->bank[1].size = SZ_512M; | ||
319 | meminfo->bank[2].start = 0x80000000; | ||
320 | meminfo->bank[2].size = SZ_256M; | ||
321 | meminfo->nr_banks = 3; | ||
322 | #else | ||
323 | realview_fixup(mdesc, tags, from, meminfo); | ||
324 | #endif | ||
325 | } | ||
326 | |||
307 | static void __init realview_pbx_init(void) | 327 | static void __init realview_pbx_init(void) |
308 | { | 328 | { |
309 | int i; | 329 | int i; |
@@ -345,6 +365,7 @@ MACHINE_START(REALVIEW_PBX, "ARM-RealView PBX") | |||
345 | .phys_io = REALVIEW_PBX_UART0_BASE, | 365 | .phys_io = REALVIEW_PBX_UART0_BASE, |
346 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PBX_UART0_BASE) >> 18) & 0xfffc, | 366 | .io_pg_offst = (IO_ADDRESS(REALVIEW_PBX_UART0_BASE) >> 18) & 0xfffc, |
347 | .boot_params = PHYS_OFFSET + 0x00000100, | 367 | .boot_params = PHYS_OFFSET + 0x00000100, |
368 | .fixup = realview_pbx_fixup, | ||
348 | .map_io = realview_pbx_map_io, | 369 | .map_io = realview_pbx_map_io, |
349 | .init_irq = gic_init_irq, | 370 | .init_irq = gic_init_irq, |
350 | .timer = &realview_pbx_timer, | 371 | .timer = &realview_pbx_timer, |
diff --git a/arch/arm/mach-s3c2410/gpio.c b/arch/arm/mach-s3c2410/gpio.c index 7974afca297c..9664e011dae2 100644 --- a/arch/arm/mach-s3c2410/gpio.c +++ b/arch/arm/mach-s3c2410/gpio.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | 29 | ||
30 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
31 | #include <mach/gpio-fns.h> | ||
31 | #include <asm/irq.h> | 32 | #include <asm/irq.h> |
32 | 33 | ||
33 | #include <mach/regs-gpio.h> | 34 | #include <mach/regs-gpio.h> |
diff --git a/arch/arm/mach-s3c2410/include/mach/dma.h b/arch/arm/mach-s3c2410/include/mach/dma.h index c3a2629e0ded..92e2687009ea 100644 --- a/arch/arm/mach-s3c2410/include/mach/dma.h +++ b/arch/arm/mach-s3c2410/include/mach/dma.h | |||
@@ -110,6 +110,8 @@ enum s3c2410_dma_loadst { | |||
110 | * waiting for reloads */ | 110 | * waiting for reloads */ |
111 | #define S3C2410_DMAF_AUTOSTART (1<<1) /* auto-start if buffer queued */ | 111 | #define S3C2410_DMAF_AUTOSTART (1<<1) /* auto-start if buffer queued */ |
112 | 112 | ||
113 | #define S3C2410_DMAF_CIRCULAR (1 << 2) /* no circular dma support */ | ||
114 | |||
113 | /* dma buffer */ | 115 | /* dma buffer */ |
114 | 116 | ||
115 | struct s3c2410_dma_buf; | 117 | struct s3c2410_dma_buf; |
@@ -194,4 +196,9 @@ struct s3c2410_dma_chan { | |||
194 | 196 | ||
195 | typedef unsigned long dma_device_t; | 197 | typedef unsigned long dma_device_t; |
196 | 198 | ||
199 | static inline bool s3c_dma_has_circular(void) | ||
200 | { | ||
201 | return false; | ||
202 | } | ||
203 | |||
197 | #endif /* __ASM_ARCH_DMA_H */ | 204 | #endif /* __ASM_ARCH_DMA_H */ |
diff --git a/arch/arm/mach-s3c2440/Kconfig b/arch/arm/mach-s3c2440/Kconfig index d7bba919a77e..a8b69d77571b 100644 --- a/arch/arm/mach-s3c2440/Kconfig +++ b/arch/arm/mach-s3c2440/Kconfig | |||
@@ -103,6 +103,7 @@ config MACH_MINI2440 | |||
103 | select LEDS_TRIGGER_BACKLIGHT | 103 | select LEDS_TRIGGER_BACKLIGHT |
104 | select SND_S3C24XX_SOC_S3C24XX_UDA134X | 104 | select SND_S3C24XX_SOC_S3C24XX_UDA134X |
105 | select S3C_DEV_NAND | 105 | select S3C_DEV_NAND |
106 | select S3C_DEV_USB_HOST | ||
106 | help | 107 | help |
107 | Say Y here to select support for the MINI2440. Is a 10cm x 10cm board | 108 | Say Y here to select support for the MINI2440. Is a 10cm x 10cm board |
108 | available via various sources. It can come with a 3.5" or 7" touch LCD. | 109 | available via various sources. It can come with a 3.5" or 7" touch LCD. |
diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c index ec71a6965786..1c3382fefdd2 100644 --- a/arch/arm/mach-s3c2440/mach-mini2440.c +++ b/arch/arm/mach-s3c2440/mach-mini2440.c | |||
@@ -144,7 +144,7 @@ static struct s3c2410_udc_mach_info mini2440_udc_cfg __initdata = { | |||
144 | .type = (S3C2410_LCDCON1_TFT16BPP |\ | 144 | .type = (S3C2410_LCDCON1_TFT16BPP |\ |
145 | S3C2410_LCDCON1_TFT) | 145 | S3C2410_LCDCON1_TFT) |
146 | 146 | ||
147 | struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { | 147 | static struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { |
148 | [0] = { /* mini2440 + 3.5" TFT + touchscreen */ | 148 | [0] = { /* mini2440 + 3.5" TFT + touchscreen */ |
149 | _LCD_DECLARE( | 149 | _LCD_DECLARE( |
150 | 7, /* The 3.5 is quite fast */ | 150 | 7, /* The 3.5 is quite fast */ |
@@ -191,7 +191,7 @@ struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { | |||
191 | #define S3C2410_GPCCON_MASK(x) (3 << ((x) * 2)) | 191 | #define S3C2410_GPCCON_MASK(x) (3 << ((x) * 2)) |
192 | #define S3C2410_GPDCON_MASK(x) (3 << ((x) * 2)) | 192 | #define S3C2410_GPDCON_MASK(x) (3 << ((x) * 2)) |
193 | 193 | ||
194 | struct s3c2410fb_mach_info mini2440_fb_info __initdata = { | 194 | static struct s3c2410fb_mach_info mini2440_fb_info __initdata = { |
195 | .displays = &mini2440_lcd_cfg[0], /* not constant! see init */ | 195 | .displays = &mini2440_lcd_cfg[0], /* not constant! see init */ |
196 | .num_displays = 1, | 196 | .num_displays = 1, |
197 | .default_display = 0, | 197 | .default_display = 0, |
diff --git a/arch/arm/mach-s3c6400/include/mach/dma.h b/arch/arm/mach-s3c6400/include/mach/dma.h index 1067619f0ba0..6723860748be 100644 --- a/arch/arm/mach-s3c6400/include/mach/dma.h +++ b/arch/arm/mach-s3c6400/include/mach/dma.h | |||
@@ -58,12 +58,9 @@ enum dma_ch { | |||
58 | DMACH_MAX /* the end */ | 58 | DMACH_MAX /* the end */ |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static __inline__ int s3c_dma_has_circular(void) | 61 | static __inline__ bool s3c_dma_has_circular(void) |
62 | { | 62 | { |
63 | /* we will be supporting ciruclar buffers as soon as we have DMA | 63 | return true; |
64 | * engine support. | ||
65 | */ | ||
66 | return 1; | ||
67 | } | 64 | } |
68 | 65 | ||
69 | #define S3C2410_DMAF_CIRCULAR (1 << 0) | 66 | #define S3C2410_DMAF_CIRCULAR (1 << 0) |
diff --git a/arch/arm/mach-s3c6410/Kconfig b/arch/arm/mach-s3c6410/Kconfig index 53fc3ff657f7..72d4b11b2077 100644 --- a/arch/arm/mach-s3c6410/Kconfig +++ b/arch/arm/mach-s3c6410/Kconfig | |||
@@ -77,6 +77,7 @@ config SMDK6410_WM1190_EV1 | |||
77 | depends on MACH_SMDK6410 | 77 | depends on MACH_SMDK6410 |
78 | select REGULATOR | 78 | select REGULATOR |
79 | select REGULATOR_WM8350 | 79 | select REGULATOR_WM8350 |
80 | select S3C24XX_GPIO_EXTRA64 | ||
80 | select MFD_WM8350_I2C | 81 | select MFD_WM8350_I2C |
81 | select MFD_WM8350_CONFIG_MODE_0 | 82 | select MFD_WM8350_CONFIG_MODE_0 |
82 | select MFD_WM8350_CONFIG_MODE_3 | 83 | select MFD_WM8350_CONFIG_MODE_3 |
diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c index ea51dbe76e3e..9f1a21462620 100644 --- a/arch/arm/mach-s3c6410/mach-smdk6410.c +++ b/arch/arm/mach-s3c6410/mach-smdk6410.c | |||
@@ -320,6 +320,9 @@ static int __init smdk6410_wm8350_init(struct wm8350 *wm8350) | |||
320 | { | 320 | { |
321 | int i; | 321 | int i; |
322 | 322 | ||
323 | /* Configure the IRQ line */ | ||
324 | s3c_gpio_setpull(S3C64XX_GPN(12), S3C_GPIO_PULL_UP); | ||
325 | |||
323 | /* Instantiate the regulators */ | 326 | /* Instantiate the regulators */ |
324 | for (i = 0; i < ARRAY_SIZE(wm1190_regulators); i++) | 327 | for (i = 0; i < ARRAY_SIZE(wm1190_regulators); i++) |
325 | wm8350_register_regulator(wm8350, | 328 | wm8350_register_regulator(wm8350, |
diff --git a/arch/arm/mach-sa1100/Makefile b/arch/arm/mach-sa1100/Makefile index 8a5546e6d547..bb7b8198d0c4 100644 --- a/arch/arm/mach-sa1100/Makefile +++ b/arch/arm/mach-sa1100/Makefile | |||
@@ -25,6 +25,7 @@ led-$(CONFIG_SA1100_CERF) += leds-cerf.o | |||
25 | 25 | ||
26 | obj-$(CONFIG_SA1100_COLLIE) += collie.o | 26 | obj-$(CONFIG_SA1100_COLLIE) += collie.o |
27 | 27 | ||
28 | obj-$(CONFIG_SA1100_H3100) += h3600.o | ||
28 | obj-$(CONFIG_SA1100_H3600) += h3600.o | 29 | obj-$(CONFIG_SA1100_H3600) += h3600.o |
29 | 30 | ||
30 | obj-$(CONFIG_SA1100_HACKKIT) += hackkit.o | 31 | obj-$(CONFIG_SA1100_HACKKIT) += hackkit.o |
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c index be60d6deee8b..653e25be3dd8 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c | |||
@@ -408,7 +408,7 @@ static struct platform_device keypad_device = { | |||
408 | }; | 408 | }; |
409 | 409 | ||
410 | static struct platform_device rtc_device = { | 410 | static struct platform_device rtc_device = { |
411 | .name = "rtc0", | 411 | .name = "rtc-coh901331", |
412 | .id = -1, | 412 | .id = -1, |
413 | .num_resources = ARRAY_SIZE(rtc_resources), | 413 | .num_resources = ARRAY_SIZE(rtc_resources), |
414 | .resource = rtc_resources, | 414 | .resource = rtc_resources, |
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index e993140edd88..9264d814cd7a 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -122,10 +122,7 @@ config CPU_ARM920T | |||
122 | select CPU_TLB_V4WBI if MMU | 122 | select CPU_TLB_V4WBI if MMU |
123 | help | 123 | help |
124 | The ARM920T is licensed to be produced by numerous vendors, | 124 | The ARM920T is licensed to be produced by numerous vendors, |
125 | and is used in the Maverick EP9312 and the Samsung S3C2410. | 125 | and is used in the Cirrus EP93xx and the Samsung S3C2410. |
126 | |||
127 | More information on the Maverick EP9312 at | ||
128 | <http://linuxdevices.com/products/PD2382866068.html>. | ||
129 | 126 | ||
130 | Say Y if you want support for the ARM920T processor. | 127 | Say Y if you want support for the ARM920T processor. |
131 | Otherwise, say N. | 128 | Otherwise, say N. |
diff --git a/arch/arm/mm/cache-v6.S b/arch/arm/mm/cache-v6.S index 8f5c13f4c936..295e25dd6381 100644 --- a/arch/arm/mm/cache-v6.S +++ b/arch/arm/mm/cache-v6.S | |||
@@ -12,6 +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/unwind.h> | ||
15 | 16 | ||
16 | #include "proc-macros.S" | 17 | #include "proc-macros.S" |
17 | 18 | ||
@@ -121,11 +122,13 @@ ENTRY(v6_coherent_kern_range) | |||
121 | * - the Icache does not read data from the write buffer | 122 | * - the Icache does not read data from the write buffer |
122 | */ | 123 | */ |
123 | ENTRY(v6_coherent_user_range) | 124 | ENTRY(v6_coherent_user_range) |
124 | 125 | UNWIND(.fnstart ) | |
125 | #ifdef HARVARD_CACHE | 126 | #ifdef HARVARD_CACHE |
126 | bic r0, r0, #CACHE_LINE_SIZE - 1 | 127 | bic r0, r0, #CACHE_LINE_SIZE - 1 |
127 | 1: mcr p15, 0, r0, c7, c10, 1 @ clean D line | 128 | 1: |
129 | USER( mcr p15, 0, r0, c7, c10, 1 ) @ clean D line | ||
128 | add r0, r0, #CACHE_LINE_SIZE | 130 | add r0, r0, #CACHE_LINE_SIZE |
131 | 2: | ||
129 | cmp r0, r1 | 132 | cmp r0, r1 |
130 | blo 1b | 133 | blo 1b |
131 | #endif | 134 | #endif |
@@ -143,6 +146,19 @@ ENTRY(v6_coherent_user_range) | |||
143 | mov pc, lr | 146 | mov pc, lr |
144 | 147 | ||
145 | /* | 148 | /* |
149 | * Fault handling for the cache operation above. If the virtual address in r0 | ||
150 | * isn't mapped, just try the next page. | ||
151 | */ | ||
152 | 9001: | ||
153 | mov r0, r0, lsr #12 | ||
154 | mov r0, r0, lsl #12 | ||
155 | add r0, r0, #4096 | ||
156 | b 2b | ||
157 | UNWIND(.fnend ) | ||
158 | ENDPROC(v6_coherent_user_range) | ||
159 | ENDPROC(v6_coherent_kern_range) | ||
160 | |||
161 | /* | ||
146 | * v6_flush_kern_dcache_page(kaddr) | 162 | * v6_flush_kern_dcache_page(kaddr) |
147 | * | 163 | * |
148 | * Ensure that the data held in the page kaddr is written back | 164 | * Ensure that the data held in the page kaddr is written back |
diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S index bda0ec31a4e2..e1bd9759617f 100644 --- a/arch/arm/mm/cache-v7.S +++ b/arch/arm/mm/cache-v7.S | |||
@@ -13,6 +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/unwind.h> | ||
16 | 17 | ||
17 | #include "proc-macros.S" | 18 | #include "proc-macros.S" |
18 | 19 | ||
@@ -153,13 +154,16 @@ ENTRY(v7_coherent_kern_range) | |||
153 | * - the Icache does not read data from the write buffer | 154 | * - the Icache does not read data from the write buffer |
154 | */ | 155 | */ |
155 | ENTRY(v7_coherent_user_range) | 156 | ENTRY(v7_coherent_user_range) |
157 | UNWIND(.fnstart ) | ||
156 | dcache_line_size r2, r3 | 158 | dcache_line_size r2, r3 |
157 | sub r3, r2, #1 | 159 | sub r3, r2, #1 |
158 | bic r0, r0, r3 | 160 | bic r0, r0, r3 |
159 | 1: mcr p15, 0, r0, c7, c11, 1 @ clean D line to the point of unification | 161 | 1: |
162 | USER( mcr p15, 0, r0, c7, c11, 1 ) @ clean D line to the point of unification | ||
160 | dsb | 163 | dsb |
161 | mcr p15, 0, r0, c7, c5, 1 @ invalidate I line | 164 | USER( mcr p15, 0, r0, c7, c5, 1 ) @ invalidate I line |
162 | add r0, r0, r2 | 165 | add r0, r0, r2 |
166 | 2: | ||
163 | cmp r0, r1 | 167 | cmp r0, r1 |
164 | blo 1b | 168 | blo 1b |
165 | mov r0, #0 | 169 | mov r0, #0 |
@@ -167,6 +171,17 @@ ENTRY(v7_coherent_user_range) | |||
167 | dsb | 171 | dsb |
168 | isb | 172 | isb |
169 | mov pc, lr | 173 | mov pc, lr |
174 | |||
175 | /* | ||
176 | * Fault handling for the cache operation above. If the virtual address in r0 | ||
177 | * isn't mapped, just try the next page. | ||
178 | */ | ||
179 | 9001: | ||
180 | mov r0, r0, lsr #12 | ||
181 | mov r0, r0, lsl #12 | ||
182 | add r0, r0, #4096 | ||
183 | b 2b | ||
184 | UNWIND(.fnend ) | ||
170 | ENDPROC(v7_coherent_kern_range) | 185 | ENDPROC(v7_coherent_kern_range) |
171 | ENDPROC(v7_coherent_user_range) | 186 | ENDPROC(v7_coherent_user_range) |
172 | 187 | ||
diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c index 6bda76a43199..a9e22e31eaa1 100644 --- a/arch/arm/mm/context.c +++ b/arch/arm/mm/context.c | |||
@@ -50,10 +50,7 @@ void __new_context(struct mm_struct *mm) | |||
50 | isb(); | 50 | isb(); |
51 | flush_tlb_all(); | 51 | flush_tlb_all(); |
52 | if (icache_is_vivt_asid_tagged()) { | 52 | if (icache_is_vivt_asid_tagged()) { |
53 | asm("mcr p15, 0, %0, c7, c5, 0 @ invalidate I-cache\n" | 53 | __flush_icache_all(); |
54 | "mcr p15, 0, %0, c7, c5, 6 @ flush BTAC/BTB\n" | ||
55 | : | ||
56 | : "r" (0)); | ||
57 | dsb(); | 54 | dsb(); |
58 | } | 55 | } |
59 | } | 56 | } |
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index b30925fcbcdc..b9590a7085ca 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c | |||
@@ -205,7 +205,7 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, | |||
205 | 205 | ||
206 | order = get_order(size); | 206 | order = get_order(size); |
207 | 207 | ||
208 | if (mask != 0xffffffff) | 208 | if (mask < 0xffffffffULL) |
209 | gfp |= GFP_DMA; | 209 | gfp |= GFP_DMA; |
210 | 210 | ||
211 | page = alloc_pages(gfp, order); | 211 | page = alloc_pages(gfp, order); |
@@ -289,7 +289,7 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, | |||
289 | if (!mask) | 289 | if (!mask) |
290 | goto error; | 290 | goto error; |
291 | 291 | ||
292 | if (mask != 0xffffffff) | 292 | if (mask < 0xffffffffULL) |
293 | gfp |= GFP_DMA; | 293 | gfp |= GFP_DMA; |
294 | virt = kmalloc(size, gfp); | 294 | virt = kmalloc(size, gfp); |
295 | if (!virt) | 295 | if (!virt) |
diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c index bc0099d5ae85..d0d17b6a3703 100644 --- a/arch/arm/mm/fault-armv.c +++ b/arch/arm/mm/fault-armv.c | |||
@@ -153,14 +153,11 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr, pte_t pte) | |||
153 | 153 | ||
154 | page = pfn_to_page(pfn); | 154 | page = pfn_to_page(pfn); |
155 | mapping = page_mapping(page); | 155 | mapping = page_mapping(page); |
156 | if (mapping) { | ||
157 | #ifndef CONFIG_SMP | 156 | #ifndef CONFIG_SMP |
158 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); | 157 | if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) |
159 | 158 | __flush_dcache_page(mapping, page); | |
160 | if (dirty) | ||
161 | __flush_dcache_page(mapping, page); | ||
162 | #endif | 159 | #endif |
163 | 160 | if (mapping) { | |
164 | if (cache_is_vivt()) | 161 | if (cache_is_vivt()) |
165 | make_coherent(mapping, vma, addr, pfn); | 162 | make_coherent(mapping, vma, addr, pfn); |
166 | else if (vma->vm_flags & VM_EXEC) | 163 | else if (vma->vm_flags & VM_EXEC) |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index ae0e25f5a70e..10e06801afb3 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -292,6 +292,11 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
292 | * down_read() | 292 | * down_read() |
293 | */ | 293 | */ |
294 | might_sleep(); | 294 | might_sleep(); |
295 | #ifdef CONFIG_DEBUG_VM | ||
296 | if (!user_mode(regs) && | ||
297 | !search_exception_tables(regs->ARM_pc)) | ||
298 | goto no_context; | ||
299 | #endif | ||
295 | } | 300 | } |
296 | 301 | ||
297 | fault = __do_page_fault(mm, addr, fsr, tsk); | 302 | fault = __do_page_fault(mm, addr, fsr, tsk); |
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index b27942909b23..7f294f307c83 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -18,10 +18,6 @@ | |||
18 | 18 | ||
19 | #include "mm.h" | 19 | #include "mm.h" |
20 | 20 | ||
21 | #ifdef CONFIG_ARM_ERRATA_411920 | ||
22 | extern void v6_icache_inval_all(void); | ||
23 | #endif | ||
24 | |||
25 | #ifdef CONFIG_CPU_CACHE_VIPT | 21 | #ifdef CONFIG_CPU_CACHE_VIPT |
26 | 22 | ||
27 | #define ALIAS_FLUSH_START 0xffff4000 | 23 | #define ALIAS_FLUSH_START 0xffff4000 |
@@ -35,16 +31,11 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) | |||
35 | flush_tlb_kernel_page(to); | 31 | flush_tlb_kernel_page(to); |
36 | 32 | ||
37 | asm( "mcrr p15, 0, %1, %0, c14\n" | 33 | asm( "mcrr p15, 0, %1, %0, c14\n" |
38 | " mcr p15, 0, %2, c7, c10, 4\n" | 34 | " mcr p15, 0, %2, c7, c10, 4" |
39 | #ifndef CONFIG_ARM_ERRATA_411920 | ||
40 | " mcr p15, 0, %2, c7, c5, 0\n" | ||
41 | #endif | ||
42 | : | 35 | : |
43 | : "r" (to), "r" (to + PAGE_SIZE - L1_CACHE_BYTES), "r" (zero) | 36 | : "r" (to), "r" (to + PAGE_SIZE - L1_CACHE_BYTES), "r" (zero) |
44 | : "cc"); | 37 | : "cc"); |
45 | #ifdef CONFIG_ARM_ERRATA_411920 | 38 | __flush_icache_all(); |
46 | v6_icache_inval_all(); | ||
47 | #endif | ||
48 | } | 39 | } |
49 | 40 | ||
50 | void flush_cache_mm(struct mm_struct *mm) | 41 | void flush_cache_mm(struct mm_struct *mm) |
@@ -57,16 +48,11 @@ void flush_cache_mm(struct mm_struct *mm) | |||
57 | 48 | ||
58 | if (cache_is_vipt_aliasing()) { | 49 | if (cache_is_vipt_aliasing()) { |
59 | asm( "mcr p15, 0, %0, c7, c14, 0\n" | 50 | asm( "mcr p15, 0, %0, c7, c14, 0\n" |
60 | " mcr p15, 0, %0, c7, c10, 4\n" | 51 | " mcr p15, 0, %0, c7, c10, 4" |
61 | #ifndef CONFIG_ARM_ERRATA_411920 | ||
62 | " mcr p15, 0, %0, c7, c5, 0\n" | ||
63 | #endif | ||
64 | : | 52 | : |
65 | : "r" (0) | 53 | : "r" (0) |
66 | : "cc"); | 54 | : "cc"); |
67 | #ifdef CONFIG_ARM_ERRATA_411920 | 55 | __flush_icache_all(); |
68 | v6_icache_inval_all(); | ||
69 | #endif | ||
70 | } | 56 | } |
71 | } | 57 | } |
72 | 58 | ||
@@ -81,16 +67,11 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned | |||
81 | 67 | ||
82 | if (cache_is_vipt_aliasing()) { | 68 | if (cache_is_vipt_aliasing()) { |
83 | asm( "mcr p15, 0, %0, c7, c14, 0\n" | 69 | asm( "mcr p15, 0, %0, c7, c14, 0\n" |
84 | " mcr p15, 0, %0, c7, c10, 4\n" | 70 | " mcr p15, 0, %0, c7, c10, 4" |
85 | #ifndef CONFIG_ARM_ERRATA_411920 | ||
86 | " mcr p15, 0, %0, c7, c5, 0\n" | ||
87 | #endif | ||
88 | : | 71 | : |
89 | : "r" (0) | 72 | : "r" (0) |
90 | : "cc"); | 73 | : "cc"); |
91 | #ifdef CONFIG_ARM_ERRATA_411920 | 74 | __flush_icache_all(); |
92 | v6_icache_inval_all(); | ||
93 | #endif | ||
94 | } | 75 | } |
95 | } | 76 | } |
96 | 77 | ||
diff --git a/arch/arm/mm/highmem.c b/arch/arm/mm/highmem.c index 73cae57fa707..30f82fb5918c 100644 --- a/arch/arm/mm/highmem.c +++ b/arch/arm/mm/highmem.c | |||
@@ -46,6 +46,8 @@ void *kmap_atomic(struct page *page, enum km_type type) | |||
46 | if (!PageHighMem(page)) | 46 | if (!PageHighMem(page)) |
47 | return page_address(page); | 47 | return page_address(page); |
48 | 48 | ||
49 | debug_kmap_atomic(type); | ||
50 | |||
49 | kmap = kmap_high_get(page); | 51 | kmap = kmap_high_get(page); |
50 | if (kmap) | 52 | if (kmap) |
51 | return kmap; | 53 | return kmap; |
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 877c492f8e10..52c40d155672 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -273,7 +273,6 @@ static void __init bootmem_init_node(int node, struct meminfo *mi, | |||
273 | struct membank *bank = &mi->bank[i]; | 273 | struct membank *bank = &mi->bank[i]; |
274 | if (!bank->highmem) | 274 | if (!bank->highmem) |
275 | free_bootmem_node(pgdat, bank_phys_start(bank), bank_phys_size(bank)); | 275 | free_bootmem_node(pgdat, bank_phys_start(bank), bank_phys_size(bank)); |
276 | memory_present(node, bank_pfn_start(bank), bank_pfn_end(bank)); | ||
277 | } | 276 | } |
278 | 277 | ||
279 | /* | 278 | /* |
@@ -370,6 +369,19 @@ int pfn_valid(unsigned long pfn) | |||
370 | return 0; | 369 | return 0; |
371 | } | 370 | } |
372 | EXPORT_SYMBOL(pfn_valid); | 371 | EXPORT_SYMBOL(pfn_valid); |
372 | |||
373 | static void arm_memory_present(struct meminfo *mi, int node) | ||
374 | { | ||
375 | } | ||
376 | #else | ||
377 | static void arm_memory_present(struct meminfo *mi, int node) | ||
378 | { | ||
379 | int i; | ||
380 | for_each_nodebank(i, mi, node) { | ||
381 | struct membank *bank = &mi->bank[i]; | ||
382 | memory_present(node, bank_pfn_start(bank), bank_pfn_end(bank)); | ||
383 | } | ||
384 | } | ||
373 | #endif | 385 | #endif |
374 | 386 | ||
375 | static int __init meminfo_cmp(const void *_a, const void *_b) | 387 | static int __init meminfo_cmp(const void *_a, const void *_b) |
@@ -427,6 +439,12 @@ void __init bootmem_init(void) | |||
427 | */ | 439 | */ |
428 | if (node == initrd_node) | 440 | if (node == initrd_node) |
429 | bootmem_reserve_initrd(node); | 441 | bootmem_reserve_initrd(node); |
442 | |||
443 | /* | ||
444 | * Sparsemem tries to allocate bootmem in memory_present(), | ||
445 | * so must be done after the fixed reservations | ||
446 | */ | ||
447 | arm_memory_present(mi, node); | ||
430 | } | 448 | } |
431 | 449 | ||
432 | /* | 450 | /* |
@@ -483,7 +501,7 @@ free_memmap(int node, unsigned long start_pfn, unsigned long end_pfn) | |||
483 | /* | 501 | /* |
484 | * Convert start_pfn/end_pfn to a struct page pointer. | 502 | * Convert start_pfn/end_pfn to a struct page pointer. |
485 | */ | 503 | */ |
486 | start_pg = pfn_to_page(start_pfn); | 504 | start_pg = pfn_to_page(start_pfn - 1) + 1; |
487 | end_pg = pfn_to_page(end_pfn); | 505 | end_pg = pfn_to_page(end_pfn); |
488 | 506 | ||
489 | /* | 507 | /* |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 02243eeccf50..ea67be0223ac 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -117,6 +117,13 @@ static void __init early_cachepolicy(char **p) | |||
117 | } | 117 | } |
118 | if (i == ARRAY_SIZE(cache_policies)) | 118 | if (i == ARRAY_SIZE(cache_policies)) |
119 | printk(KERN_ERR "ERROR: unknown or unsupported cache policy\n"); | 119 | printk(KERN_ERR "ERROR: unknown or unsupported cache policy\n"); |
120 | /* | ||
121 | * This restriction is partly to do with the way we boot; it is | ||
122 | * unpredictable to have memory mapped using two different sets of | ||
123 | * memory attributes (shared, type, and cache attribs). We can not | ||
124 | * change these attributes once the initial assembly has setup the | ||
125 | * page tables. | ||
126 | */ | ||
120 | if (cpu_architecture() >= CPU_ARCH_ARMv6) { | 127 | if (cpu_architecture() >= CPU_ARCH_ARMv6) { |
121 | printk(KERN_WARNING "Only cachepolicy=writeback supported on ARMv6 and later\n"); | 128 | printk(KERN_WARNING "Only cachepolicy=writeback supported on ARMv6 and later\n"); |
122 | cachepolicy = CPOLICY_WRITEBACK; | 129 | cachepolicy = CPOLICY_WRITEBACK; |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index 194737d60a22..70f75d2e3ead 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -32,8 +32,10 @@ | |||
32 | 32 | ||
33 | #ifndef CONFIG_SMP | 33 | #ifndef CONFIG_SMP |
34 | #define TTB_FLAGS TTB_RGN_WBWA | 34 | #define TTB_FLAGS TTB_RGN_WBWA |
35 | #define PMD_FLAGS PMD_SECT_WB | ||
35 | #else | 36 | #else |
36 | #define TTB_FLAGS TTB_RGN_WBWA|TTB_S | 37 | #define TTB_FLAGS TTB_RGN_WBWA|TTB_S |
38 | #define PMD_FLAGS PMD_SECT_WBWA|PMD_SECT_S | ||
37 | #endif | 39 | #endif |
38 | 40 | ||
39 | ENTRY(cpu_v6_proc_init) | 41 | ENTRY(cpu_v6_proc_init) |
@@ -222,10 +224,9 @@ __v6_proc_info: | |||
222 | .long 0x0007b000 | 224 | .long 0x0007b000 |
223 | .long 0x0007f000 | 225 | .long 0x0007f000 |
224 | .long PMD_TYPE_SECT | \ | 226 | .long PMD_TYPE_SECT | \ |
225 | PMD_SECT_BUFFERABLE | \ | ||
226 | PMD_SECT_CACHEABLE | \ | ||
227 | PMD_SECT_AP_WRITE | \ | 227 | PMD_SECT_AP_WRITE | \ |
228 | PMD_SECT_AP_READ | 228 | PMD_SECT_AP_READ | \ |
229 | PMD_FLAGS | ||
229 | .long PMD_TYPE_SECT | \ | 230 | .long PMD_TYPE_SECT | \ |
230 | PMD_SECT_XN | \ | 231 | PMD_SECT_XN | \ |
231 | PMD_SECT_AP_WRITE | \ | 232 | PMD_SECT_AP_WRITE | \ |
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 23ebcf6eab9f..3a285218fd15 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -33,9 +33,11 @@ | |||
33 | #ifndef CONFIG_SMP | 33 | #ifndef CONFIG_SMP |
34 | /* PTWs cacheable, inner WB not shareable, outer WB not shareable */ | 34 | /* PTWs cacheable, inner WB not shareable, outer WB not shareable */ |
35 | #define TTB_FLAGS TTB_IRGN_WB|TTB_RGN_OC_WB | 35 | #define TTB_FLAGS TTB_IRGN_WB|TTB_RGN_OC_WB |
36 | #define PMD_FLAGS PMD_SECT_WB | ||
36 | #else | 37 | #else |
37 | /* PTWs cacheable, inner WBWA shareable, outer WBWA not shareable */ | 38 | /* PTWs cacheable, inner WBWA shareable, outer WBWA not shareable */ |
38 | #define TTB_FLAGS TTB_IRGN_WBWA|TTB_S|TTB_NOS|TTB_RGN_OC_WBWA | 39 | #define TTB_FLAGS TTB_IRGN_WBWA|TTB_S|TTB_NOS|TTB_RGN_OC_WBWA |
40 | #define PMD_FLAGS PMD_SECT_WBWA|PMD_SECT_S | ||
39 | #endif | 41 | #endif |
40 | 42 | ||
41 | ENTRY(cpu_v7_proc_init) | 43 | ENTRY(cpu_v7_proc_init) |
@@ -184,9 +186,10 @@ cpu_v7_name: | |||
184 | */ | 186 | */ |
185 | __v7_setup: | 187 | __v7_setup: |
186 | #ifdef CONFIG_SMP | 188 | #ifdef CONFIG_SMP |
187 | mrc p15, 0, r0, c1, c0, 1 @ Enable SMP/nAMP mode and | 189 | mrc p15, 0, r0, c1, c0, 1 |
188 | orr r0, r0, #(1 << 6) | (1 << 0) @ TLB ops broadcasting | 190 | tst r0, #(1 << 6) @ SMP/nAMP mode enabled? |
189 | mcr p15, 0, r0, c1, c0, 1 | 191 | orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and |
192 | mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting | ||
190 | #endif | 193 | #endif |
191 | adr r12, __v7_setup_stack @ the local stack | 194 | adr r12, __v7_setup_stack @ the local stack |
192 | stmia r12, {r0-r5, r7, r9, r11, lr} | 195 | stmia r12, {r0-r5, r7, r9, r11, lr} |
@@ -326,10 +329,9 @@ __v7_proc_info: | |||
326 | .long 0x000f0000 @ Required ID value | 329 | .long 0x000f0000 @ Required ID value |
327 | .long 0x000f0000 @ Mask for ID | 330 | .long 0x000f0000 @ Mask for ID |
328 | .long PMD_TYPE_SECT | \ | 331 | .long PMD_TYPE_SECT | \ |
329 | PMD_SECT_BUFFERABLE | \ | ||
330 | PMD_SECT_CACHEABLE | \ | ||
331 | PMD_SECT_AP_WRITE | \ | 332 | PMD_SECT_AP_WRITE | \ |
332 | PMD_SECT_AP_READ | 333 | PMD_SECT_AP_READ | \ |
334 | PMD_FLAGS | ||
333 | .long PMD_TYPE_SECT | \ | 335 | .long PMD_TYPE_SECT | \ |
334 | PMD_SECT_XN | \ | 336 | PMD_SECT_XN | \ |
335 | PMD_SECT_AP_WRITE | \ | 337 | PMD_SECT_AP_WRITE | \ |
diff --git a/arch/arm/oprofile/op_model_v6.c b/arch/arm/oprofile/op_model_v6.c index fe581383d3e2..f7d2ec5ee9a1 100644 --- a/arch/arm/oprofile/op_model_v6.c +++ b/arch/arm/oprofile/op_model_v6.c | |||
@@ -33,6 +33,9 @@ static int irqs[] = { | |||
33 | #ifdef CONFIG_ARCH_OMAP2 | 33 | #ifdef CONFIG_ARCH_OMAP2 |
34 | 3, | 34 | 3, |
35 | #endif | 35 | #endif |
36 | #ifdef CONFIG_ARCH_BCMRING | ||
37 | IRQ_PMUIRQ, /* for BCMRING, ARM PMU interrupt is 43 */ | ||
38 | #endif | ||
36 | }; | 39 | }; |
37 | 40 | ||
38 | static void armv6_pmu_stop(void) | 41 | static void armv6_pmu_stop(void) |
diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c index 1868c0d8f9b5..341235c278ac 100644 --- a/arch/arm/plat-omap/cpu-omap.c +++ b/arch/arm/plat-omap/cpu-omap.c | |||
@@ -127,7 +127,7 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /* FIXME: what's the actual transition time? */ | 129 | /* FIXME: what's the actual transition time? */ |
130 | policy->cpuinfo.transition_latency = 10 * 1000 * 1000; | 130 | policy->cpuinfo.transition_latency = 300 * 1000; |
131 | 131 | ||
132 | return 0; | 132 | return 0; |
133 | } | 133 | } |
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index fd3154ae69b1..68eaae324b6a 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -691,13 +691,16 @@ static inline void disable_lnk(int lch) | |||
691 | static inline void omap2_enable_irq_lch(int lch) | 691 | static inline void omap2_enable_irq_lch(int lch) |
692 | { | 692 | { |
693 | u32 val; | 693 | u32 val; |
694 | unsigned long flags; | ||
694 | 695 | ||
695 | if (!cpu_class_is_omap2()) | 696 | if (!cpu_class_is_omap2()) |
696 | return; | 697 | return; |
697 | 698 | ||
699 | spin_lock_irqsave(&dma_chan_lock, flags); | ||
698 | val = dma_read(IRQENABLE_L0); | 700 | val = dma_read(IRQENABLE_L0); |
699 | val |= 1 << lch; | 701 | val |= 1 << lch; |
700 | dma_write(val, IRQENABLE_L0); | 702 | dma_write(val, IRQENABLE_L0); |
703 | spin_unlock_irqrestore(&dma_chan_lock, flags); | ||
701 | } | 704 | } |
702 | 705 | ||
703 | int omap_request_dma(int dev_id, const char *dev_name, | 706 | int omap_request_dma(int dev_id, const char *dev_name, |
@@ -799,10 +802,13 @@ void omap_free_dma(int lch) | |||
799 | 802 | ||
800 | if (cpu_class_is_omap2()) { | 803 | if (cpu_class_is_omap2()) { |
801 | u32 val; | 804 | u32 val; |
805 | |||
806 | spin_lock_irqsave(&dma_chan_lock, flags); | ||
802 | /* Disable interrupts */ | 807 | /* Disable interrupts */ |
803 | val = dma_read(IRQENABLE_L0); | 808 | val = dma_read(IRQENABLE_L0); |
804 | val &= ~(1 << lch); | 809 | val &= ~(1 << lch); |
805 | dma_write(val, IRQENABLE_L0); | 810 | dma_write(val, IRQENABLE_L0); |
811 | spin_unlock_irqrestore(&dma_chan_lock, flags); | ||
806 | 812 | ||
807 | /* Clear the CSR register and IRQ status register */ | 813 | /* Clear the CSR register and IRQ status register */ |
808 | dma_write(OMAP2_DMA_CSR_CLEAR_MASK, CSR(lch)); | 814 | dma_write(OMAP2_DMA_CSR_CLEAR_MASK, CSR(lch)); |
@@ -829,10 +835,10 @@ EXPORT_SYMBOL(omap_free_dma); | |||
829 | * | 835 | * |
830 | * @param arb_rate | 836 | * @param arb_rate |
831 | * @param max_fifo_depth | 837 | * @param max_fifo_depth |
832 | * @param tparams - Number of thereads to reserve : DMA_THREAD_RESERVE_NORM | 838 | * @param tparams - Number of threads to reserve : DMA_THREAD_RESERVE_NORM |
833 | * DMA_THREAD_RESERVE_ONET | 839 | * DMA_THREAD_RESERVE_ONET |
834 | * DMA_THREAD_RESERVE_TWOT | 840 | * DMA_THREAD_RESERVE_TWOT |
835 | * DMA_THREAD_RESERVE_THREET | 841 | * DMA_THREAD_RESERVE_THREET |
836 | */ | 842 | */ |
837 | void | 843 | void |
838 | omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) | 844 | omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) |
@@ -844,11 +850,14 @@ omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) | |||
844 | return; | 850 | return; |
845 | } | 851 | } |
846 | 852 | ||
853 | if (max_fifo_depth == 0) | ||
854 | max_fifo_depth = 1; | ||
847 | if (arb_rate == 0) | 855 | if (arb_rate == 0) |
848 | arb_rate = 1; | 856 | arb_rate = 1; |
849 | 857 | ||
850 | reg = (arb_rate & 0xff) << 16; | 858 | reg = 0xff & max_fifo_depth; |
851 | reg |= (0xff & max_fifo_depth); | 859 | reg |= (0x3 & tparams) << 12; |
860 | reg |= (arb_rate & 0xff) << 16; | ||
852 | 861 | ||
853 | dma_write(reg, GCR); | 862 | dma_write(reg, GCR); |
854 | } | 863 | } |
@@ -975,6 +984,14 @@ void omap_stop_dma(int lch) | |||
975 | { | 984 | { |
976 | u32 l; | 985 | u32 l; |
977 | 986 | ||
987 | /* Disable all interrupts on the channel */ | ||
988 | if (cpu_class_is_omap1()) | ||
989 | dma_write(0, CICR(lch)); | ||
990 | |||
991 | l = dma_read(CCR(lch)); | ||
992 | l &= ~OMAP_DMA_CCR_EN; | ||
993 | dma_write(l, CCR(lch)); | ||
994 | |||
978 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { | 995 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { |
979 | int next_lch, cur_lch = lch; | 996 | int next_lch, cur_lch = lch; |
980 | char dma_chan_link_map[OMAP_DMA4_LOGICAL_DMA_CH_COUNT]; | 997 | char dma_chan_link_map[OMAP_DMA4_LOGICAL_DMA_CH_COUNT]; |
@@ -992,18 +1009,8 @@ void omap_stop_dma(int lch) | |||
992 | next_lch = dma_chan[cur_lch].next_lch; | 1009 | next_lch = dma_chan[cur_lch].next_lch; |
993 | cur_lch = next_lch; | 1010 | cur_lch = next_lch; |
994 | } while (next_lch != -1); | 1011 | } while (next_lch != -1); |
995 | |||
996 | return; | ||
997 | } | 1012 | } |
998 | 1013 | ||
999 | /* Disable all interrupts on the channel */ | ||
1000 | if (cpu_class_is_omap1()) | ||
1001 | dma_write(0, CICR(lch)); | ||
1002 | |||
1003 | l = dma_read(CCR(lch)); | ||
1004 | l &= ~OMAP_DMA_CCR_EN; | ||
1005 | dma_write(l, CCR(lch)); | ||
1006 | |||
1007 | dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE; | 1014 | dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE; |
1008 | } | 1015 | } |
1009 | EXPORT_SYMBOL(omap_stop_dma); | 1016 | EXPORT_SYMBOL(omap_stop_dma); |
@@ -1107,6 +1114,14 @@ int omap_dma_running(void) | |||
1107 | { | 1114 | { |
1108 | int lch; | 1115 | int lch; |
1109 | 1116 | ||
1117 | /* | ||
1118 | * On OMAP1510, internal LCD controller will start the transfer | ||
1119 | * when it gets enabled, so assume DMA running if LCD enabled. | ||
1120 | */ | ||
1121 | if (cpu_is_omap1510()) | ||
1122 | if (omap_readw(0xfffec000 + 0x00) & (1 << 0)) | ||
1123 | return 1; | ||
1124 | |||
1110 | /* Check if LCD DMA is running */ | 1125 | /* Check if LCD DMA is running */ |
1111 | if (cpu_is_omap16xx()) | 1126 | if (cpu_is_omap16xx()) |
1112 | if (omap_readw(OMAP1610_DMA_LCD_CCR) & OMAP_DMA_CCR_EN) | 1127 | if (omap_readw(OMAP1610_DMA_LCD_CCR) & OMAP_DMA_CCR_EN) |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 71ebd7fcfea1..7c345b757df1 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -373,7 +373,7 @@ static inline int gpio_valid(int gpio) | |||
373 | 373 | ||
374 | static int check_gpio(int gpio) | 374 | static int check_gpio(int gpio) |
375 | { | 375 | { |
376 | if (unlikely(gpio_valid(gpio)) < 0) { | 376 | if (unlikely(gpio_valid(gpio) < 0)) { |
377 | printk(KERN_ERR "omap-gpio: invalid GPIO %d\n", gpio); | 377 | printk(KERN_ERR "omap-gpio: invalid GPIO %d\n", gpio); |
378 | dump_stack(); | 378 | dump_stack(); |
379 | return -1; | 379 | return -1; |
diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h index 11e73d9e8928..f129efb3075e 100644 --- a/arch/arm/plat-omap/include/mach/cpu.h +++ b/arch/arm/plat-omap/include/mach/cpu.h | |||
@@ -303,32 +303,21 @@ IS_OMAP_TYPE(3430, 0x3430) | |||
303 | #define cpu_is_omap2430() 0 | 303 | #define cpu_is_omap2430() 0 |
304 | #define cpu_is_omap3430() 0 | 304 | #define cpu_is_omap3430() 0 |
305 | 305 | ||
306 | #if defined(MULTI_OMAP1) | ||
307 | # if defined(CONFIG_ARCH_OMAP730) | ||
308 | # undef cpu_is_omap730 | ||
309 | # define cpu_is_omap730() is_omap730() | ||
310 | # endif | ||
311 | # if defined(CONFIG_ARCH_OMAP850) | ||
312 | # undef cpu_is_omap850 | ||
313 | # define cpu_is_omap850() is_omap850() | ||
314 | # endif | ||
315 | #else | ||
316 | # if defined(CONFIG_ARCH_OMAP730) | ||
317 | # undef cpu_is_omap730 | ||
318 | # define cpu_is_omap730() 1 | ||
319 | # endif | ||
320 | #endif | ||
321 | #else | ||
322 | # if defined(CONFIG_ARCH_OMAP850) | ||
323 | # undef cpu_is_omap850 | ||
324 | # define cpu_is_omap850() 1 | ||
325 | # endif | ||
326 | #endif | ||
327 | |||
328 | /* | 306 | /* |
329 | * Whether we have MULTI_OMAP1 or not, we still need to distinguish | 307 | * Whether we have MULTI_OMAP1 or not, we still need to distinguish |
330 | * between 330 vs. 1510 and 1611B/5912 vs. 1710. | 308 | * between 730 vs 850, 330 vs. 1510 and 1611B/5912 vs. 1710. |
331 | */ | 309 | */ |
310 | |||
311 | #if defined(CONFIG_ARCH_OMAP730) | ||
312 | # undef cpu_is_omap730 | ||
313 | # define cpu_is_omap730() is_omap730() | ||
314 | #endif | ||
315 | |||
316 | #if defined(CONFIG_ARCH_OMAP850) | ||
317 | # undef cpu_is_omap850 | ||
318 | # define cpu_is_omap850() is_omap850() | ||
319 | #endif | ||
320 | |||
332 | #if defined(CONFIG_ARCH_OMAP15XX) | 321 | #if defined(CONFIG_ARCH_OMAP15XX) |
333 | # undef cpu_is_omap310 | 322 | # undef cpu_is_omap310 |
334 | # undef cpu_is_omap1510 | 323 | # undef cpu_is_omap1510 |
@@ -433,3 +422,5 @@ IS_OMAP_TYPE(3430, 0x3430) | |||
433 | 422 | ||
434 | int omap_chip_is(struct omap_chip_id oci); | 423 | int omap_chip_is(struct omap_chip_id oci); |
435 | void omap2_check_revision(void); | 424 | void omap2_check_revision(void); |
425 | |||
426 | #endif | ||
diff --git a/arch/arm/plat-omap/include/mach/keypad.h b/arch/arm/plat-omap/include/mach/keypad.h index d91b9be334ff..3ae52ccc793c 100644 --- a/arch/arm/plat-omap/include/mach/keypad.h +++ b/arch/arm/plat-omap/include/mach/keypad.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #ifndef ASMARM_ARCH_KEYPAD_H | 10 | #ifndef ASMARM_ARCH_KEYPAD_H |
11 | #define ASMARM_ARCH_KEYPAD_H | 11 | #define ASMARM_ARCH_KEYPAD_H |
12 | 12 | ||
13 | #include <linux/input/matrix_keypad.h> | 13 | #warning: Please update the board to use matrix_keypad.h instead |
14 | 14 | ||
15 | struct omap_kp_platform_data { | 15 | struct omap_kp_platform_data { |
16 | int rows; | 16 | int rows; |
@@ -37,6 +37,9 @@ struct omap_kp_platform_data { | |||
37 | 37 | ||
38 | #define KEY_PERSISTENT 0x00800000 | 38 | #define KEY_PERSISTENT 0x00800000 |
39 | #define KEYNUM_MASK 0x00EFFFFF | 39 | #define KEYNUM_MASK 0x00EFFFFF |
40 | #define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val)) | ||
41 | #define PERSISTENT_KEY(col, row) (((col) << 28) | ((row) << 24) | \ | ||
42 | KEY_PERSISTENT) | ||
40 | 43 | ||
41 | #endif | 44 | #endif |
42 | 45 | ||
diff --git a/arch/arm/plat-omap/include/mach/powerdomain.h b/arch/arm/plat-omap/include/mach/powerdomain.h index 6271d8556a40..fa6461423bd0 100644 --- a/arch/arm/plat-omap/include/mach/powerdomain.h +++ b/arch/arm/plat-omap/include/mach/powerdomain.h | |||
@@ -135,6 +135,8 @@ struct powerdomain *pwrdm_lookup(const char *name); | |||
135 | 135 | ||
136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | 136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), |
137 | void *user); | 137 | void *user); |
138 | int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user), | ||
139 | void *user); | ||
138 | 140 | ||
139 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 141 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
140 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 142 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c index 4b6012707307..94584f167a82 100644 --- a/arch/arm/plat-omap/iommu.c +++ b/arch/arm/plat-omap/iommu.c | |||
@@ -664,7 +664,7 @@ static size_t iopgtable_clear_entry_core(struct iommu *obj, u32 da) | |||
664 | nent = 1; /* for the next L1 entry */ | 664 | nent = 1; /* for the next L1 entry */ |
665 | } else { | 665 | } else { |
666 | bytes = IOPGD_SIZE; | 666 | bytes = IOPGD_SIZE; |
667 | if (*iopgd & IOPGD_SUPER) { | 667 | if ((*iopgd & IOPGD_SUPER) == IOPGD_SUPER) { |
668 | nent *= 16; | 668 | nent *= 16; |
669 | /* rewind to the 1st entry */ | 669 | /* rewind to the 1st entry */ |
670 | iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK); | 670 | iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK); |
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 57f7122a0919..dc3fac3dd0ea 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c | |||
@@ -47,7 +47,7 @@ | |||
47 | * 'va': mpu virtual address | 47 | * 'va': mpu virtual address |
48 | * | 48 | * |
49 | * 'c': contiguous memory area | 49 | * 'c': contiguous memory area |
50 | * 'd': dicontiguous memory area | 50 | * 'd': discontiguous memory area |
51 | * 'a': anonymous memory allocation | 51 | * 'a': anonymous memory allocation |
52 | * '()': optional feature | 52 | * '()': optional feature |
53 | * | 53 | * |
@@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da) | |||
363 | goto out; | 363 | goto out; |
364 | } | 364 | } |
365 | va = area->va; | 365 | va = area->va; |
366 | mutex_unlock(&obj->mmap_lock); | ||
367 | out: | 366 | out: |
367 | mutex_unlock(&obj->mmap_lock); | ||
368 | |||
368 | return va; | 369 | return va; |
369 | } | 370 | } |
370 | EXPORT_SYMBOL_GPL(da_to_va); | 371 | EXPORT_SYMBOL_GPL(da_to_va); |
@@ -398,7 +399,7 @@ static inline void sgtable_drain_vmalloc(struct sg_table *sgt) | |||
398 | { | 399 | { |
399 | /* | 400 | /* |
400 | * Actually this is not necessary at all, just exists for | 401 | * Actually this is not necessary at all, just exists for |
401 | * consistency of the code readibility. | 402 | * consistency of the code readability. |
402 | */ | 403 | */ |
403 | BUG_ON(!sgt); | 404 | BUG_ON(!sgt); |
404 | } | 405 | } |
@@ -434,7 +435,7 @@ static inline void sgtable_drain_kmalloc(struct sg_table *sgt) | |||
434 | { | 435 | { |
435 | /* | 436 | /* |
436 | * Actually this is not necessary at all, just exists for | 437 | * Actually this is not necessary at all, just exists for |
437 | * consistency of the code readibility | 438 | * consistency of the code readability |
438 | */ | 439 | */ |
439 | BUG_ON(!sgt); | 440 | BUG_ON(!sgt); |
440 | } | 441 | } |
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c index 88ac9768f1c1..e664b912d7bb 100644 --- a/arch/arm/plat-omap/mcbsp.c +++ b/arch/arm/plat-omap/mcbsp.c | |||
@@ -595,7 +595,7 @@ void omap_mcbsp_stop(unsigned int id, int tx, int rx) | |||
595 | rx &= 1; | 595 | rx &= 1; |
596 | if (cpu_is_omap2430() || cpu_is_omap34xx()) { | 596 | if (cpu_is_omap2430() || cpu_is_omap34xx()) { |
597 | w = OMAP_MCBSP_READ(io_base, RCCR); | 597 | w = OMAP_MCBSP_READ(io_base, RCCR); |
598 | w |= (tx ? RDISABLE : 0); | 598 | w |= (rx ? RDISABLE : 0); |
599 | OMAP_MCBSP_WRITE(io_base, RCCR, w); | 599 | OMAP_MCBSP_WRITE(io_base, RCCR, w); |
600 | } | 600 | } |
601 | w = OMAP_MCBSP_READ(io_base, SPCR1); | 601 | w = OMAP_MCBSP_READ(io_base, SPCR1); |
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 925f64711c37..75d1f26e5b17 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -270,7 +270,8 @@ void * omap_sram_push(void * start, unsigned long size) | |||
270 | omap_sram_ceil -= size; | 270 | omap_sram_ceil -= size; |
271 | omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *)); | 271 | omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *)); |
272 | memcpy((void *)omap_sram_ceil, start, size); | 272 | memcpy((void *)omap_sram_ceil, start, size); |
273 | flush_icache_range((unsigned long)start, (unsigned long)(start + size)); | 273 | flush_icache_range((unsigned long)omap_sram_ceil, |
274 | (unsigned long)(omap_sram_ceil + size)); | ||
274 | 275 | ||
275 | return (void *)omap_sram_ceil; | 276 | return (void *)omap_sram_ceil; |
276 | } | 277 | } |
diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/arch/arm/plat-pxa/include/plat/mfp.h index 22086e696e8e..857a6839071c 100644 --- a/arch/arm/plat-pxa/include/plat/mfp.h +++ b/arch/arm/plat-pxa/include/plat/mfp.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #ifndef __ASM_PLAT_MFP_H | 16 | #ifndef __ASM_PLAT_MFP_H |
17 | #define __ASM_PLAT_MFP_H | 17 | #define __ASM_PLAT_MFP_H |
18 | 18 | ||
19 | #define mfp_to_gpio(m) ((m) % 128) | 19 | #define mfp_to_gpio(m) ((m) % 256) |
20 | 20 | ||
21 | /* list of all the configurable MFP pins */ | 21 | /* list of all the configurable MFP pins */ |
22 | enum { | 22 | enum { |
diff --git a/arch/arm/plat-pxa/mfp.c b/arch/arm/plat-pxa/mfp.c index 9405d0379c85..be58f9fe65b0 100644 --- a/arch/arm/plat-pxa/mfp.c +++ b/arch/arm/plat-pxa/mfp.c | |||
@@ -207,7 +207,7 @@ unsigned long mfp_read(int mfp) | |||
207 | { | 207 | { |
208 | unsigned long val, flags; | 208 | unsigned long val, flags; |
209 | 209 | ||
210 | BUG_ON(mfp >= MFP_PIN_MAX); | 210 | BUG_ON(mfp < 0 || mfp >= MFP_PIN_MAX); |
211 | 211 | ||
212 | spin_lock_irqsave(&mfp_spin_lock, flags); | 212 | spin_lock_irqsave(&mfp_spin_lock, flags); |
213 | val = mfpr_readl(mfp_table[mfp].mfpr_off); | 213 | val = mfpr_readl(mfp_table[mfp].mfpr_off); |
@@ -220,7 +220,7 @@ void mfp_write(int mfp, unsigned long val) | |||
220 | { | 220 | { |
221 | unsigned long flags; | 221 | unsigned long flags; |
222 | 222 | ||
223 | BUG_ON(mfp >= MFP_PIN_MAX); | 223 | BUG_ON(mfp < 0 || mfp >= MFP_PIN_MAX); |
224 | 224 | ||
225 | spin_lock_irqsave(&mfp_spin_lock, flags); | 225 | spin_lock_irqsave(&mfp_spin_lock, flags); |
226 | mfpr_writel(mfp_table[mfp].mfpr_off, val); | 226 | mfpr_writel(mfp_table[mfp].mfpr_off, val); |
diff --git a/arch/arm/plat-s3c24xx/adc.c b/arch/arm/plat-s3c24xx/adc.c index 11117a7ba911..df47322492d5 100644 --- a/arch/arm/plat-s3c24xx/adc.c +++ b/arch/arm/plat-s3c24xx/adc.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/sched.h> | ||
17 | #include <linux/list.h> | 18 | #include <linux/list.h> |
18 | #include <linux/err.h> | 19 | #include <linux/err.h> |
19 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
@@ -188,7 +189,7 @@ int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch) | |||
188 | err: | 189 | err: |
189 | return ret; | 190 | return ret; |
190 | } | 191 | } |
191 | EXPORT_SYMBOL_GPL(s3c_adc_convert); | 192 | EXPORT_SYMBOL_GPL(s3c_adc_read); |
192 | 193 | ||
193 | static void s3c_adc_default_select(struct s3c_adc_client *client, | 194 | static void s3c_adc_default_select(struct s3c_adc_client *client, |
194 | unsigned select) | 195 | unsigned select) |
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index 5447e60f3936..4af9dd948793 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c | |||
@@ -61,6 +61,7 @@ static const char name_s3c2410[] = "S3C2410"; | |||
61 | static const char name_s3c2412[] = "S3C2412"; | 61 | static const char name_s3c2412[] = "S3C2412"; |
62 | static const char name_s3c2440[] = "S3C2440"; | 62 | static const char name_s3c2440[] = "S3C2440"; |
63 | static const char name_s3c2442[] = "S3C2442"; | 63 | static const char name_s3c2442[] = "S3C2442"; |
64 | static const char name_s3c2442b[] = "S3C2442B"; | ||
64 | static const char name_s3c2443[] = "S3C2443"; | 65 | static const char name_s3c2443[] = "S3C2443"; |
65 | static const char name_s3c2410a[] = "S3C2410A"; | 66 | static const char name_s3c2410a[] = "S3C2410A"; |
66 | static const char name_s3c2440a[] = "S3C2440A"; | 67 | static const char name_s3c2440a[] = "S3C2440A"; |
@@ -112,6 +113,15 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
112 | .name = name_s3c2442 | 113 | .name = name_s3c2442 |
113 | }, | 114 | }, |
114 | { | 115 | { |
116 | .idcode = 0x32440aab, | ||
117 | .idmask = 0xffffffff, | ||
118 | .map_io = s3c244x_map_io, | ||
119 | .init_clocks = s3c244x_init_clocks, | ||
120 | .init_uarts = s3c244x_init_uarts, | ||
121 | .init = s3c2442_init, | ||
122 | .name = name_s3c2442b | ||
123 | }, | ||
124 | { | ||
115 | .idcode = 0x32412001, | 125 | .idcode = 0x32412001, |
116 | .idmask = 0xffffffff, | 126 | .idmask = 0xffffffff, |
117 | .map_io = s3c2412_map_io, | 127 | .map_io = s3c2412_map_io, |
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c index 196b19123653..f046f8c51084 100644 --- a/arch/arm/plat-s3c24xx/dma.c +++ b/arch/arm/plat-s3c24xx/dma.c | |||
@@ -208,14 +208,14 @@ s3c2410_dma_loadbuffer(struct s3c2410_dma_chan *chan, | |||
208 | { | 208 | { |
209 | unsigned long reload; | 209 | unsigned long reload; |
210 | 210 | ||
211 | pr_debug("s3c2410_chan_loadbuffer: loading buff %p (0x%08lx,0x%06x)\n", | ||
212 | buf, (unsigned long)buf->data, buf->size); | ||
213 | |||
214 | if (buf == NULL) { | 211 | if (buf == NULL) { |
215 | dmawarn("buffer is NULL\n"); | 212 | dmawarn("buffer is NULL\n"); |
216 | return -EINVAL; | 213 | return -EINVAL; |
217 | } | 214 | } |
218 | 215 | ||
216 | pr_debug("s3c2410_chan_loadbuffer: loading buff %p (0x%08lx,0x%06x)\n", | ||
217 | buf, (unsigned long)buf->data, buf->size); | ||
218 | |||
219 | /* check the state of the channel before we do anything */ | 219 | /* check the state of the channel before we do anything */ |
220 | 220 | ||
221 | if (chan->load_state == S3C2410_DMALOAD_1LOADED) { | 221 | if (chan->load_state == S3C2410_DMALOAD_1LOADED) { |
diff --git a/arch/arm/plat-s3c24xx/gpio.c b/arch/arm/plat-s3c24xx/gpio.c index 95df059b5a1d..5467470badfd 100644 --- a/arch/arm/plat-s3c24xx/gpio.c +++ b/arch/arm/plat-s3c24xx/gpio.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/io.h> | 29 | #include <linux/io.h> |
30 | 30 | ||
31 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
32 | #include <mach/gpio-fns.h> | ||
32 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
33 | 34 | ||
34 | #include <mach/regs-gpio.h> | 35 | #include <mach/regs-gpio.h> |
diff --git a/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h b/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h index efeb025affc7..c776120b99e6 100644 --- a/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h +++ b/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h | |||
@@ -222,7 +222,9 @@ extern struct clk *s3c_cpufreq_clk_get(struct device *, const char *); | |||
222 | /* S3C2410 and compatible exported functions */ | 222 | /* S3C2410 and compatible exported functions */ |
223 | 223 | ||
224 | extern void s3c2410_cpufreq_setrefresh(struct s3c_cpufreq_config *cfg); | 224 | extern void s3c2410_cpufreq_setrefresh(struct s3c_cpufreq_config *cfg); |
225 | extern void s3c2410_set_fvco(struct s3c_cpufreq_config *cfg); | ||
225 | 226 | ||
227 | #ifdef CONFIG_S3C2410_IOTIMING | ||
226 | extern int s3c2410_iotiming_calc(struct s3c_cpufreq_config *cfg, | 228 | extern int s3c2410_iotiming_calc(struct s3c_cpufreq_config *cfg, |
227 | struct s3c_iotimings *iot); | 229 | struct s3c_iotimings *iot); |
228 | 230 | ||
@@ -231,8 +233,11 @@ extern int s3c2410_iotiming_get(struct s3c_cpufreq_config *cfg, | |||
231 | 233 | ||
232 | extern void s3c2410_iotiming_set(struct s3c_cpufreq_config *cfg, | 234 | extern void s3c2410_iotiming_set(struct s3c_cpufreq_config *cfg, |
233 | struct s3c_iotimings *iot); | 235 | struct s3c_iotimings *iot); |
234 | 236 | #else | |
235 | extern void s3c2410_set_fvco(struct s3c_cpufreq_config *cfg); | 237 | #define s3c2410_iotiming_calc NULL |
238 | #define s3c2410_iotiming_get NULL | ||
239 | #define s3c2410_iotiming_set NULL | ||
240 | #endif /* CONFIG_S3C2410_IOTIMING */ | ||
236 | 241 | ||
237 | /* S3C2412 compatible routines */ | 242 | /* S3C2412 compatible routines */ |
238 | 243 | ||
diff --git a/arch/arm/plat-s3c24xx/include/plat/s3c2410.h b/arch/arm/plat-s3c24xx/include/plat/s3c2410.h index b6deeef8f663..82ab4aad1bbe 100644 --- a/arch/arm/plat-s3c24xx/include/plat/s3c2410.h +++ b/arch/arm/plat-s3c24xx/include/plat/s3c2410.h | |||
@@ -27,6 +27,7 @@ extern void s3c2410_init_clocks(int xtal); | |||
27 | #define s3c2410_init_uarts NULL | 27 | #define s3c2410_init_uarts NULL |
28 | #define s3c2410_map_io NULL | 28 | #define s3c2410_map_io NULL |
29 | #define s3c2410_init NULL | 29 | #define s3c2410_init NULL |
30 | #define s3c2410a_init NULL | ||
30 | #endif | 31 | #endif |
31 | 32 | ||
32 | extern int s3c2410_baseclk_add(void); | 33 | extern int s3c2410_baseclk_add(void); |
diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/plat-s3c64xx/dma.c index 266a10745a85..d554b936fcfb 100644 --- a/arch/arm/plat-s3c64xx/dma.c +++ b/arch/arm/plat-s3c64xx/dma.c | |||
@@ -151,8 +151,6 @@ static void s3c64xx_dma_fill_lli(struct s3c2410_dma_chan *chan, | |||
151 | src = chan->dev_addr; | 151 | src = chan->dev_addr; |
152 | dst = data; | 152 | dst = data; |
153 | control0 = PL080_CONTROL_SRC_AHB2; | 153 | control0 = PL080_CONTROL_SRC_AHB2; |
154 | control0 |= (u32)chan->hw_width << PL080_CONTROL_SWIDTH_SHIFT; | ||
155 | control0 |= 2 << PL080_CONTROL_DWIDTH_SHIFT; | ||
156 | control0 |= PL080_CONTROL_DST_INCR; | 154 | control0 |= PL080_CONTROL_DST_INCR; |
157 | break; | 155 | break; |
158 | 156 | ||
@@ -160,8 +158,6 @@ static void s3c64xx_dma_fill_lli(struct s3c2410_dma_chan *chan, | |||
160 | src = data; | 158 | src = data; |
161 | dst = chan->dev_addr; | 159 | dst = chan->dev_addr; |
162 | control0 = PL080_CONTROL_DST_AHB2; | 160 | control0 = PL080_CONTROL_DST_AHB2; |
163 | control0 |= (u32)chan->hw_width << PL080_CONTROL_DWIDTH_SHIFT; | ||
164 | control0 |= 2 << PL080_CONTROL_SWIDTH_SHIFT; | ||
165 | control0 |= PL080_CONTROL_SRC_INCR; | 161 | control0 |= PL080_CONTROL_SRC_INCR; |
166 | break; | 162 | break; |
167 | default: | 163 | default: |
@@ -173,6 +169,8 @@ static void s3c64xx_dma_fill_lli(struct s3c2410_dma_chan *chan, | |||
173 | control1 = size >> chan->hw_width; /* size in no of xfers */ | 169 | control1 = size >> chan->hw_width; /* size in no of xfers */ |
174 | control0 |= PL080_CONTROL_PROT_SYS; /* always in priv. mode */ | 170 | control0 |= PL080_CONTROL_PROT_SYS; /* always in priv. mode */ |
175 | control0 |= PL080_CONTROL_TC_IRQ_EN; /* always fire IRQ */ | 171 | control0 |= PL080_CONTROL_TC_IRQ_EN; /* always fire IRQ */ |
172 | control0 |= (u32)chan->hw_width << PL080_CONTROL_DWIDTH_SHIFT; | ||
173 | control0 |= (u32)chan->hw_width << PL080_CONTROL_SWIDTH_SHIFT; | ||
176 | 174 | ||
177 | lli->src_addr = src; | 175 | lli->src_addr = src; |
178 | lli->dst_addr = dst; | 176 | lli->dst_addr = dst; |
@@ -339,6 +337,7 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, | |||
339 | struct s3c64xx_dma_buff *next; | 337 | struct s3c64xx_dma_buff *next; |
340 | struct s3c64xx_dma_buff *buff; | 338 | struct s3c64xx_dma_buff *buff; |
341 | struct pl080s_lli *lli; | 339 | struct pl080s_lli *lli; |
340 | unsigned long flags; | ||
342 | int ret; | 341 | int ret; |
343 | 342 | ||
344 | WARN_ON(!chan); | 343 | WARN_ON(!chan); |
@@ -366,6 +365,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, | |||
366 | 365 | ||
367 | s3c64xx_dma_fill_lli(chan, lli, data, size); | 366 | s3c64xx_dma_fill_lli(chan, lli, data, size); |
368 | 367 | ||
368 | local_irq_save(flags); | ||
369 | |||
369 | if ((next = chan->next) != NULL) { | 370 | if ((next = chan->next) != NULL) { |
370 | struct s3c64xx_dma_buff *end = chan->end; | 371 | struct s3c64xx_dma_buff *end = chan->end; |
371 | struct pl080s_lli *endlli = end->lli; | 372 | struct pl080s_lli *endlli = end->lli; |
@@ -397,6 +398,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, | |||
397 | s3c64xx_lli_to_regs(chan, lli); | 398 | s3c64xx_lli_to_regs(chan, lli); |
398 | } | 399 | } |
399 | 400 | ||
401 | local_irq_restore(flags); | ||
402 | |||
400 | show_lli(lli); | 403 | show_lli(lli); |
401 | 404 | ||
402 | dbg_showchan(chan); | 405 | dbg_showchan(chan); |
@@ -560,26 +563,11 @@ int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *client) | |||
560 | 563 | ||
561 | EXPORT_SYMBOL(s3c2410_dma_free); | 564 | EXPORT_SYMBOL(s3c2410_dma_free); |
562 | 565 | ||
563 | |||
564 | static void s3c64xx_dma_tcirq(struct s3c64xx_dmac *dmac, int offs) | ||
565 | { | ||
566 | struct s3c2410_dma_chan *chan = dmac->channels + offs; | ||
567 | |||
568 | /* note, we currently do not bother to work out which buffer | ||
569 | * or buffers have been completed since the last tc-irq. */ | ||
570 | |||
571 | if (chan->callback_fn) | ||
572 | (chan->callback_fn)(chan, chan->curr->pw, 0, S3C2410_RES_OK); | ||
573 | } | ||
574 | |||
575 | static void s3c64xx_dma_errirq(struct s3c64xx_dmac *dmac, int offs) | ||
576 | { | ||
577 | printk(KERN_DEBUG "%s: offs %d\n", __func__, offs); | ||
578 | } | ||
579 | |||
580 | static irqreturn_t s3c64xx_dma_irq(int irq, void *pw) | 566 | static irqreturn_t s3c64xx_dma_irq(int irq, void *pw) |
581 | { | 567 | { |
582 | struct s3c64xx_dmac *dmac = pw; | 568 | struct s3c64xx_dmac *dmac = pw; |
569 | struct s3c2410_dma_chan *chan; | ||
570 | enum s3c2410_dma_buffresult res; | ||
583 | u32 tcstat, errstat; | 571 | u32 tcstat, errstat; |
584 | u32 bit; | 572 | u32 bit; |
585 | int offs; | 573 | int offs; |
@@ -588,14 +576,54 @@ static irqreturn_t s3c64xx_dma_irq(int irq, void *pw) | |||
588 | errstat = readl(dmac->regs + PL080_ERR_STATUS); | 576 | errstat = readl(dmac->regs + PL080_ERR_STATUS); |
589 | 577 | ||
590 | for (offs = 0, bit = 1; offs < 8; offs++, bit <<= 1) { | 578 | for (offs = 0, bit = 1; offs < 8; offs++, bit <<= 1) { |
579 | struct s3c64xx_dma_buff *buff; | ||
580 | |||
581 | if (!(errstat & bit) && !(tcstat & bit)) | ||
582 | continue; | ||
583 | |||
584 | chan = dmac->channels + offs; | ||
585 | res = S3C2410_RES_ERR; | ||
586 | |||
591 | if (tcstat & bit) { | 587 | if (tcstat & bit) { |
592 | writel(bit, dmac->regs + PL080_TC_CLEAR); | 588 | writel(bit, dmac->regs + PL080_TC_CLEAR); |
593 | s3c64xx_dma_tcirq(dmac, offs); | 589 | res = S3C2410_RES_OK; |
594 | } | 590 | } |
595 | 591 | ||
596 | if (errstat & bit) { | 592 | if (errstat & bit) |
597 | s3c64xx_dma_errirq(dmac, offs); | ||
598 | writel(bit, dmac->regs + PL080_ERR_CLEAR); | 593 | writel(bit, dmac->regs + PL080_ERR_CLEAR); |
594 | |||
595 | /* 'next' points to the buffer that is next to the | ||
596 | * currently active buffer. | ||
597 | * For CIRCULAR queues, 'next' will be same as 'curr' | ||
598 | * when 'end' is the active buffer. | ||
599 | */ | ||
600 | buff = chan->curr; | ||
601 | while (buff && buff != chan->next | ||
602 | && buff->next != chan->next) | ||
603 | buff = buff->next; | ||
604 | |||
605 | if (!buff) | ||
606 | BUG(); | ||
607 | |||
608 | if (buff == chan->next) | ||
609 | buff = chan->end; | ||
610 | |||
611 | s3c64xx_dma_bufffdone(chan, buff, res); | ||
612 | |||
613 | /* Free the node and update curr, if non-circular queue */ | ||
614 | if (!(chan->flags & S3C2410_DMAF_CIRCULAR)) { | ||
615 | chan->curr = buff->next; | ||
616 | s3c64xx_dma_freebuff(buff); | ||
617 | } | ||
618 | |||
619 | /* Update 'next' */ | ||
620 | buff = chan->next; | ||
621 | if (chan->next == chan->end) { | ||
622 | chan->next = chan->curr; | ||
623 | if (!(chan->flags & S3C2410_DMAF_CIRCULAR)) | ||
624 | chan->end = NULL; | ||
625 | } else { | ||
626 | chan->next = buff->next; | ||
599 | } | 627 | } |
600 | } | 628 | } |
601 | 629 | ||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-clock.h b/arch/arm/plat-s3c64xx/include/plat/regs-clock.h index a8777a755dfa..ff46e7fa957a 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-clock.h +++ b/arch/arm/plat-s3c64xx/include/plat/regs-clock.h | |||
@@ -51,8 +51,8 @@ | |||
51 | #define S3C6400_CLKDIV0_HCLK_SHIFT (8) | 51 | #define S3C6400_CLKDIV0_HCLK_SHIFT (8) |
52 | #define S3C6400_CLKDIV0_MPLL_MASK (0x1 << 4) | 52 | #define S3C6400_CLKDIV0_MPLL_MASK (0x1 << 4) |
53 | #define S3C6400_CLKDIV0_MPLL_SHIFT (4) | 53 | #define S3C6400_CLKDIV0_MPLL_SHIFT (4) |
54 | #define S3C6400_CLKDIV0_ARM_MASK (0x3 << 0) | 54 | #define S3C6400_CLKDIV0_ARM_MASK (0x7 << 0) |
55 | #define S3C6410_CLKDIV0_ARM_MASK (0x7 << 0) | 55 | #define S3C6410_CLKDIV0_ARM_MASK (0xf << 0) |
56 | #define S3C6400_CLKDIV0_ARM_SHIFT (0) | 56 | #define S3C6400_CLKDIV0_ARM_SHIFT (0) |
57 | 57 | ||
58 | /* CLKDIV1 */ | 58 | /* CLKDIV1 */ |
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c index 9745852261e0..6ffa21eb1b91 100644 --- a/arch/arm/plat-s3c64xx/s3c6400-clock.c +++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c | |||
@@ -677,6 +677,9 @@ void __init_or_cpufreq s3c6400_setup_clocks(void) | |||
677 | 677 | ||
678 | printk(KERN_DEBUG "%s: xtal is %ld\n", __func__, xtal); | 678 | printk(KERN_DEBUG "%s: xtal is %ld\n", __func__, xtal); |
679 | 679 | ||
680 | /* For now assume the mux always selects the crystal */ | ||
681 | clk_ext_xtal_mux.parent = xtal_clk; | ||
682 | |||
680 | epll = s3c6400_get_epll(xtal); | 683 | epll = s3c6400_get_epll(xtal); |
681 | mpll = s3c6400_get_pll(xtal, __raw_readl(S3C_MPLL_CON)); | 684 | mpll = s3c6400_get_pll(xtal, __raw_readl(S3C_MPLL_CON)); |
682 | apll = s3c6400_get_pll(xtal, __raw_readl(S3C_APLL_CON)); | 685 | apll = s3c6400_get_pll(xtal, __raw_readl(S3C_APLL_CON)); |