diff options
52 files changed, 4723 insertions, 344 deletions
diff --git a/arch/arm/configs/omap_h2_1610_defconfig b/arch/arm/configs/omap_h2_1610_defconfig index b0efd4ca9935..b8a78ab49cdd 100644 --- a/arch/arm/configs/omap_h2_1610_defconfig +++ b/arch/arm/configs/omap_h2_1610_defconfig | |||
| @@ -1,41 +1,58 @@ | |||
| 1 | # | 1 | # |
| 2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
| 3 | # Linux kernel version: 2.6.17 | 3 | # Linux kernel version: 2.6.23-rc6 |
| 4 | # Thu Jun 29 15:25:18 2006 | 4 | # Mon Sep 17 14:21:45 2007 |
| 5 | # | 5 | # |
| 6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
| 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
| 8 | CONFIG_GENERIC_GPIO=y | ||
| 9 | CONFIG_GENERIC_TIME=y | ||
| 10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
| 7 | CONFIG_MMU=y | 11 | CONFIG_MMU=y |
| 12 | # CONFIG_NO_IOPORT is not set | ||
| 13 | CONFIG_GENERIC_HARDIRQS=y | ||
| 14 | CONFIG_STACKTRACE_SUPPORT=y | ||
| 15 | CONFIG_LOCKDEP_SUPPORT=y | ||
| 16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
| 17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
| 18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
| 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
| 20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
| 21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
| 9 | CONFIG_GENERIC_HWEIGHT=y | 22 | CONFIG_GENERIC_HWEIGHT=y |
| 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 23 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
| 24 | CONFIG_ZONE_DMA=y | ||
| 11 | CONFIG_VECTORS_BASE=0xffff0000 | 25 | CONFIG_VECTORS_BASE=0xffff0000 |
| 12 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 26 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
| 13 | 27 | ||
| 14 | # | 28 | # |
| 15 | # Code maturity level options | 29 | # General setup |
| 16 | # | 30 | # |
| 17 | CONFIG_EXPERIMENTAL=y | 31 | CONFIG_EXPERIMENTAL=y |
| 18 | CONFIG_BROKEN_ON_SMP=y | 32 | CONFIG_BROKEN_ON_SMP=y |
| 19 | CONFIG_LOCK_KERNEL=y | 33 | CONFIG_LOCK_KERNEL=y |
| 20 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 34 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
| 21 | |||
| 22 | # | ||
| 23 | # General setup | ||
| 24 | # | ||
| 25 | CONFIG_LOCALVERSION="" | 35 | CONFIG_LOCALVERSION="" |
| 26 | CONFIG_LOCALVERSION_AUTO=y | 36 | CONFIG_LOCALVERSION_AUTO=y |
| 27 | CONFIG_SWAP=y | 37 | CONFIG_SWAP=y |
| 28 | CONFIG_SYSVIPC=y | 38 | CONFIG_SYSVIPC=y |
| 39 | CONFIG_SYSVIPC_SYSCTL=y | ||
| 29 | # CONFIG_POSIX_MQUEUE is not set | 40 | # CONFIG_POSIX_MQUEUE is not set |
| 30 | # CONFIG_BSD_PROCESS_ACCT is not set | 41 | # CONFIG_BSD_PROCESS_ACCT is not set |
| 31 | CONFIG_SYSCTL=y | 42 | # CONFIG_TASKSTATS is not set |
| 43 | # CONFIG_USER_NS is not set | ||
| 32 | # CONFIG_AUDIT is not set | 44 | # CONFIG_AUDIT is not set |
| 33 | # CONFIG_IKCONFIG is not set | 45 | # CONFIG_IKCONFIG is not set |
| 46 | CONFIG_LOG_BUF_SHIFT=14 | ||
| 47 | # CONFIG_SYSFS_DEPRECATED is not set | ||
| 34 | # CONFIG_RELAY is not set | 48 | # CONFIG_RELAY is not set |
| 49 | CONFIG_BLK_DEV_INITRD=y | ||
| 35 | CONFIG_INITRAMFS_SOURCE="" | 50 | CONFIG_INITRAMFS_SOURCE="" |
| 36 | CONFIG_UID16=y | ||
| 37 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 51 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
| 52 | CONFIG_SYSCTL=y | ||
| 38 | # CONFIG_EMBEDDED is not set | 53 | # CONFIG_EMBEDDED is not set |
| 54 | CONFIG_UID16=y | ||
| 55 | CONFIG_SYSCTL_SYSCALL=y | ||
| 39 | CONFIG_KALLSYMS=y | 56 | CONFIG_KALLSYMS=y |
| 40 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 57 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
| 41 | CONFIG_HOTPLUG=y | 58 | CONFIG_HOTPLUG=y |
| @@ -44,27 +61,30 @@ CONFIG_BUG=y | |||
| 44 | CONFIG_ELF_CORE=y | 61 | CONFIG_ELF_CORE=y |
| 45 | CONFIG_BASE_FULL=y | 62 | CONFIG_BASE_FULL=y |
| 46 | CONFIG_FUTEX=y | 63 | CONFIG_FUTEX=y |
| 64 | CONFIG_ANON_INODES=y | ||
| 47 | CONFIG_EPOLL=y | 65 | CONFIG_EPOLL=y |
| 66 | CONFIG_SIGNALFD=y | ||
| 67 | CONFIG_TIMERFD=y | ||
| 68 | CONFIG_EVENTFD=y | ||
| 48 | CONFIG_SHMEM=y | 69 | CONFIG_SHMEM=y |
| 70 | CONFIG_VM_EVENT_COUNTERS=y | ||
| 49 | CONFIG_SLAB=y | 71 | CONFIG_SLAB=y |
| 72 | # CONFIG_SLUB is not set | ||
| 73 | # CONFIG_SLOB is not set | ||
| 74 | CONFIG_RT_MUTEXES=y | ||
| 50 | # CONFIG_TINY_SHMEM is not set | 75 | # CONFIG_TINY_SHMEM is not set |
| 51 | CONFIG_BASE_SMALL=0 | 76 | CONFIG_BASE_SMALL=0 |
| 52 | # CONFIG_SLOB is not set | ||
| 53 | |||
| 54 | # | ||
| 55 | # Loadable module support | ||
| 56 | # | ||
| 57 | CONFIG_MODULES=y | 77 | CONFIG_MODULES=y |
| 58 | CONFIG_MODULE_UNLOAD=y | 78 | CONFIG_MODULE_UNLOAD=y |
| 59 | # CONFIG_MODULE_FORCE_UNLOAD is not set | 79 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
| 60 | # CONFIG_MODVERSIONS is not set | 80 | # CONFIG_MODVERSIONS is not set |
| 61 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 81 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
| 62 | # CONFIG_KMOD is not set | 82 | # CONFIG_KMOD is not set |
| 63 | 83 | CONFIG_BLOCK=y | |
| 64 | # | 84 | # CONFIG_LBD is not set |
| 65 | # Block layer | ||
| 66 | # | ||
| 67 | # CONFIG_BLK_DEV_IO_TRACE is not set | 85 | # CONFIG_BLK_DEV_IO_TRACE is not set |
| 86 | # CONFIG_LSF is not set | ||
| 87 | # CONFIG_BLK_DEV_BSG is not set | ||
| 68 | 88 | ||
| 69 | # | 89 | # |
| 70 | # IO Schedulers | 90 | # IO Schedulers |
| @@ -86,7 +106,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
| 86 | # CONFIG_ARCH_INTEGRATOR is not set | 106 | # CONFIG_ARCH_INTEGRATOR is not set |
| 87 | # CONFIG_ARCH_REALVIEW is not set | 107 | # CONFIG_ARCH_REALVIEW is not set |
| 88 | # CONFIG_ARCH_VERSATILE is not set | 108 | # CONFIG_ARCH_VERSATILE is not set |
| 89 | # CONFIG_ARCH_AT91RM9200 is not set | 109 | # CONFIG_ARCH_AT91 is not set |
| 90 | # CONFIG_ARCH_CLPS7500 is not set | 110 | # CONFIG_ARCH_CLPS7500 is not set |
| 91 | # CONFIG_ARCH_CLPS711X is not set | 111 | # CONFIG_ARCH_CLPS711X is not set |
| 92 | # CONFIG_ARCH_CO285 is not set | 112 | # CONFIG_ARCH_CO285 is not set |
| @@ -96,11 +116,16 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
| 96 | # CONFIG_ARCH_NETX is not set | 116 | # CONFIG_ARCH_NETX is not set |
| 97 | # CONFIG_ARCH_H720X is not set | 117 | # CONFIG_ARCH_H720X is not set |
| 98 | # CONFIG_ARCH_IMX is not set | 118 | # CONFIG_ARCH_IMX is not set |
| 99 | # CONFIG_ARCH_IOP3XX is not set | 119 | # CONFIG_ARCH_IOP13XX is not set |
| 100 | # CONFIG_ARCH_IXP4XX is not set | 120 | # CONFIG_ARCH_IOP32X is not set |
| 101 | # CONFIG_ARCH_IXP2000 is not set | 121 | # CONFIG_ARCH_IOP33X is not set |
| 102 | # CONFIG_ARCH_IXP23XX is not set | 122 | # CONFIG_ARCH_IXP23XX is not set |
| 123 | # CONFIG_ARCH_IXP2000 is not set | ||
| 124 | # CONFIG_ARCH_IXP4XX is not set | ||
| 103 | # CONFIG_ARCH_L7200 is not set | 125 | # CONFIG_ARCH_L7200 is not set |
| 126 | # CONFIG_ARCH_KS8695 is not set | ||
| 127 | # CONFIG_ARCH_NS9XXX is not set | ||
| 128 | # CONFIG_ARCH_MXC is not set | ||
| 104 | # CONFIG_ARCH_PNX4008 is not set | 129 | # CONFIG_ARCH_PNX4008 is not set |
| 105 | # CONFIG_ARCH_PXA is not set | 130 | # CONFIG_ARCH_PXA is not set |
| 106 | # CONFIG_ARCH_RPC is not set | 131 | # CONFIG_ARCH_RPC is not set |
| @@ -108,6 +133,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
| 108 | # CONFIG_ARCH_S3C2410 is not set | 133 | # CONFIG_ARCH_S3C2410 is not set |
| 109 | # CONFIG_ARCH_SHARK is not set | 134 | # CONFIG_ARCH_SHARK is not set |
| 110 | # CONFIG_ARCH_LH7A40X is not set | 135 | # CONFIG_ARCH_LH7A40X is not set |
| 136 | # CONFIG_ARCH_DAVINCI is not set | ||
| 111 | CONFIG_ARCH_OMAP=y | 137 | CONFIG_ARCH_OMAP=y |
| 112 | 138 | ||
| 113 | # | 139 | # |
| @@ -124,6 +150,7 @@ CONFIG_ARCH_OMAP1=y | |||
| 124 | CONFIG_OMAP_MUX=y | 150 | CONFIG_OMAP_MUX=y |
| 125 | # CONFIG_OMAP_MUX_DEBUG is not set | 151 | # CONFIG_OMAP_MUX_DEBUG is not set |
| 126 | CONFIG_OMAP_MUX_WARNINGS=y | 152 | CONFIG_OMAP_MUX_WARNINGS=y |
| 153 | CONFIG_OMAP_MCBSP=y | ||
| 127 | # CONFIG_OMAP_MPU_TIMER is not set | 154 | # CONFIG_OMAP_MPU_TIMER is not set |
| 128 | CONFIG_OMAP_32K_TIMER=y | 155 | CONFIG_OMAP_32K_TIMER=y |
| 129 | CONFIG_OMAP_32K_TIMER_HZ=128 | 156 | CONFIG_OMAP_32K_TIMER_HZ=128 |
| @@ -162,6 +189,14 @@ CONFIG_OMAP_ARM_192MHZ=y | |||
| 162 | # CONFIG_OMAP_ARM_30MHZ is not set | 189 | # CONFIG_OMAP_ARM_30MHZ is not set |
| 163 | 190 | ||
| 164 | # | 191 | # |
| 192 | # Boot options | ||
| 193 | # | ||
| 194 | |||
| 195 | # | ||
| 196 | # Power management | ||
| 197 | # | ||
| 198 | |||
| 199 | # | ||
| 165 | # Processor Type | 200 | # Processor Type |
| 166 | # | 201 | # |
| 167 | CONFIG_CPU_32=y | 202 | CONFIG_CPU_32=y |
| @@ -171,6 +206,8 @@ CONFIG_CPU_ABRT_EV5TJ=y | |||
| 171 | CONFIG_CPU_CACHE_VIVT=y | 206 | CONFIG_CPU_CACHE_VIVT=y |
| 172 | CONFIG_CPU_COPY_V4WB=y | 207 | CONFIG_CPU_COPY_V4WB=y |
| 173 | CONFIG_CPU_TLB_V4WBI=y | 208 | CONFIG_CPU_TLB_V4WBI=y |
| 209 | CONFIG_CPU_CP15=y | ||
| 210 | CONFIG_CPU_CP15_MMU=y | ||
| 174 | 211 | ||
| 175 | # | 212 | # |
| 176 | # Processor Features | 213 | # Processor Features |
| @@ -180,10 +217,13 @@ CONFIG_ARM_THUMB=y | |||
| 180 | # CONFIG_CPU_DCACHE_DISABLE is not set | 217 | # CONFIG_CPU_DCACHE_DISABLE is not set |
| 181 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | 218 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set |
| 182 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | 219 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set |
| 220 | # CONFIG_OUTER_CACHE is not set | ||
| 183 | 221 | ||
| 184 | # | 222 | # |
| 185 | # Bus support | 223 | # Bus support |
| 186 | # | 224 | # |
| 225 | # CONFIG_PCI_SYSCALL is not set | ||
| 226 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
| 187 | 227 | ||
| 188 | # | 228 | # |
| 189 | # PCCARD (PCMCIA/CardBus) support | 229 | # PCCARD (PCMCIA/CardBus) support |
| @@ -193,10 +233,13 @@ CONFIG_ARM_THUMB=y | |||
| 193 | # | 233 | # |
| 194 | # Kernel Features | 234 | # Kernel Features |
| 195 | # | 235 | # |
| 236 | CONFIG_TICK_ONESHOT=y | ||
| 237 | CONFIG_NO_HZ=y | ||
| 238 | CONFIG_HIGH_RES_TIMERS=y | ||
| 196 | CONFIG_PREEMPT=y | 239 | CONFIG_PREEMPT=y |
| 197 | CONFIG_NO_IDLE_HZ=y | ||
| 198 | CONFIG_HZ=128 | 240 | CONFIG_HZ=128 |
| 199 | # CONFIG_AEABI is not set | 241 | CONFIG_AEABI=y |
| 242 | CONFIG_OABI_COMPAT=y | ||
| 200 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | 243 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set |
| 201 | CONFIG_SELECT_MEMORY_MODEL=y | 244 | CONFIG_SELECT_MEMORY_MODEL=y |
| 202 | CONFIG_FLATMEM_MANUAL=y | 245 | CONFIG_FLATMEM_MANUAL=y |
| @@ -206,6 +249,10 @@ CONFIG_FLATMEM=y | |||
| 206 | CONFIG_FLAT_NODE_MEM_MAP=y | 249 | CONFIG_FLAT_NODE_MEM_MAP=y |
| 207 | # CONFIG_SPARSEMEM_STATIC is not set | 250 | # CONFIG_SPARSEMEM_STATIC is not set |
| 208 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 251 | CONFIG_SPLIT_PTLOCK_CPUS=4096 |
| 252 | # CONFIG_RESOURCES_64BIT is not set | ||
| 253 | CONFIG_ZONE_DMA_FLAG=1 | ||
| 254 | CONFIG_BOUNCE=y | ||
| 255 | CONFIG_VIRT_TO_BUS=y | ||
| 209 | # CONFIG_LEDS is not set | 256 | # CONFIG_LEDS is not set |
| 210 | CONFIG_ALIGNMENT_TRAP=y | 257 | CONFIG_ALIGNMENT_TRAP=y |
| 211 | 258 | ||
| @@ -216,6 +263,7 @@ CONFIG_ZBOOT_ROM_TEXT=0x0 | |||
| 216 | CONFIG_ZBOOT_ROM_BSS=0x0 | 263 | CONFIG_ZBOOT_ROM_BSS=0x0 |
| 217 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200n8 root=0801 ro init=/bin/sh" | 264 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200n8 root=0801 ro init=/bin/sh" |
| 218 | # CONFIG_XIP_KERNEL is not set | 265 | # CONFIG_XIP_KERNEL is not set |
| 266 | # CONFIG_KEXEC is not set | ||
| 219 | 267 | ||
| 220 | # | 268 | # |
| 221 | # CPU Frequency scaling | 269 | # CPU Frequency scaling |
| @@ -251,7 +299,6 @@ CONFIG_FPE_NWFPE=y | |||
| 251 | CONFIG_BINFMT_ELF=y | 299 | CONFIG_BINFMT_ELF=y |
| 252 | CONFIG_BINFMT_AOUT=y | 300 | CONFIG_BINFMT_AOUT=y |
| 253 | # CONFIG_BINFMT_MISC is not set | 301 | # CONFIG_BINFMT_MISC is not set |
| 254 | # CONFIG_ARTHUR is not set | ||
| 255 | 302 | ||
| 256 | # | 303 | # |
| 257 | # Power management options | 304 | # Power management options |
| @@ -259,7 +306,10 @@ CONFIG_BINFMT_AOUT=y | |||
| 259 | CONFIG_PM=y | 306 | CONFIG_PM=y |
| 260 | # CONFIG_PM_LEGACY is not set | 307 | # CONFIG_PM_LEGACY is not set |
| 261 | # CONFIG_PM_DEBUG is not set | 308 | # CONFIG_PM_DEBUG is not set |
| 262 | # CONFIG_APM is not set | 309 | CONFIG_PM_SLEEP=y |
| 310 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
| 311 | CONFIG_SUSPEND=y | ||
| 312 | # CONFIG_APM_EMULATION is not set | ||
| 263 | 313 | ||
| 264 | # | 314 | # |
| 265 | # Networking | 315 | # Networking |
| @@ -269,12 +319,13 @@ CONFIG_NET=y | |||
| 269 | # | 319 | # |
| 270 | # Networking options | 320 | # Networking options |
| 271 | # | 321 | # |
| 272 | # CONFIG_NETDEBUG is not set | ||
| 273 | CONFIG_PACKET=y | 322 | CONFIG_PACKET=y |
| 274 | # CONFIG_PACKET_MMAP is not set | 323 | # CONFIG_PACKET_MMAP is not set |
| 275 | CONFIG_UNIX=y | 324 | CONFIG_UNIX=y |
| 276 | CONFIG_XFRM=y | 325 | CONFIG_XFRM=y |
| 277 | # CONFIG_XFRM_USER is not set | 326 | # CONFIG_XFRM_USER is not set |
| 327 | # CONFIG_XFRM_SUB_POLICY is not set | ||
| 328 | # CONFIG_XFRM_MIGRATE is not set | ||
| 278 | # CONFIG_NET_KEY is not set | 329 | # CONFIG_NET_KEY is not set |
| 279 | CONFIG_INET=y | 330 | CONFIG_INET=y |
| 280 | # CONFIG_IP_MULTICAST is not set | 331 | # CONFIG_IP_MULTICAST is not set |
| @@ -295,29 +346,20 @@ CONFIG_IP_PNP_BOOTP=y | |||
| 295 | # CONFIG_INET_TUNNEL is not set | 346 | # CONFIG_INET_TUNNEL is not set |
| 296 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 347 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
| 297 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 348 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
| 349 | CONFIG_INET_XFRM_MODE_BEET=y | ||
| 298 | CONFIG_INET_DIAG=y | 350 | CONFIG_INET_DIAG=y |
| 299 | CONFIG_INET_TCP_DIAG=y | 351 | CONFIG_INET_TCP_DIAG=y |
| 300 | # CONFIG_TCP_CONG_ADVANCED is not set | 352 | # CONFIG_TCP_CONG_ADVANCED is not set |
| 301 | CONFIG_TCP_CONG_BIC=y | 353 | CONFIG_TCP_CONG_CUBIC=y |
| 354 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
| 355 | # CONFIG_TCP_MD5SIG is not set | ||
| 302 | # CONFIG_IPV6 is not set | 356 | # CONFIG_IPV6 is not set |
| 303 | # CONFIG_INET6_XFRM_TUNNEL is not set | 357 | # CONFIG_INET6_XFRM_TUNNEL is not set |
| 304 | # CONFIG_INET6_TUNNEL is not set | 358 | # CONFIG_INET6_TUNNEL is not set |
| 305 | # CONFIG_NETWORK_SECMARK is not set | 359 | # CONFIG_NETWORK_SECMARK is not set |
| 306 | # CONFIG_NETFILTER is not set | 360 | # CONFIG_NETFILTER is not set |
| 307 | |||
| 308 | # | ||
| 309 | # DCCP Configuration (EXPERIMENTAL) | ||
| 310 | # | ||
| 311 | # CONFIG_IP_DCCP is not set | 361 | # CONFIG_IP_DCCP is not set |
| 312 | |||
| 313 | # | ||
| 314 | # SCTP Configuration (EXPERIMENTAL) | ||
| 315 | # | ||
| 316 | # CONFIG_IP_SCTP is not set | 362 | # CONFIG_IP_SCTP is not set |
| 317 | |||
| 318 | # | ||
| 319 | # TIPC Configuration (EXPERIMENTAL) | ||
| 320 | # | ||
| 321 | # CONFIG_TIPC is not set | 363 | # CONFIG_TIPC is not set |
| 322 | # CONFIG_ATM is not set | 364 | # CONFIG_ATM is not set |
| 323 | # CONFIG_BRIDGE is not set | 365 | # CONFIG_BRIDGE is not set |
| @@ -328,7 +370,6 @@ CONFIG_TCP_CONG_BIC=y | |||
| 328 | # CONFIG_ATALK is not set | 370 | # CONFIG_ATALK is not set |
| 329 | # CONFIG_X25 is not set | 371 | # CONFIG_X25 is not set |
| 330 | # CONFIG_LAPB is not set | 372 | # CONFIG_LAPB is not set |
| 331 | # CONFIG_NET_DIVERT is not set | ||
| 332 | # CONFIG_ECONET is not set | 373 | # CONFIG_ECONET is not set |
| 333 | # CONFIG_WAN_ROUTER is not set | 374 | # CONFIG_WAN_ROUTER is not set |
| 334 | 375 | ||
| @@ -344,7 +385,17 @@ CONFIG_TCP_CONG_BIC=y | |||
| 344 | # CONFIG_HAMRADIO is not set | 385 | # CONFIG_HAMRADIO is not set |
| 345 | # CONFIG_IRDA is not set | 386 | # CONFIG_IRDA is not set |
| 346 | # CONFIG_BT is not set | 387 | # CONFIG_BT is not set |
| 388 | # CONFIG_AF_RXRPC is not set | ||
| 389 | |||
| 390 | # | ||
| 391 | # Wireless | ||
| 392 | # | ||
| 393 | # CONFIG_CFG80211 is not set | ||
| 394 | # CONFIG_WIRELESS_EXT is not set | ||
| 395 | # CONFIG_MAC80211 is not set | ||
| 347 | # CONFIG_IEEE80211 is not set | 396 | # CONFIG_IEEE80211 is not set |
| 397 | # CONFIG_RFKILL is not set | ||
| 398 | # CONFIG_NET_9P is not set | ||
| 348 | 399 | ||
| 349 | # | 400 | # |
| 350 | # Device Drivers | 401 | # Device Drivers |
| @@ -357,29 +408,10 @@ CONFIG_STANDALONE=y | |||
| 357 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 408 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
| 358 | # CONFIG_FW_LOADER is not set | 409 | # CONFIG_FW_LOADER is not set |
| 359 | # CONFIG_SYS_HYPERVISOR is not set | 410 | # CONFIG_SYS_HYPERVISOR is not set |
| 360 | |||
| 361 | # | ||
| 362 | # Connector - unified userspace <-> kernelspace linker | ||
| 363 | # | ||
| 364 | # CONFIG_CONNECTOR is not set | 411 | # CONFIG_CONNECTOR is not set |
| 365 | |||
| 366 | # | ||
| 367 | # Memory Technology Devices (MTD) | ||
| 368 | # | ||
| 369 | # CONFIG_MTD is not set | 412 | # CONFIG_MTD is not set |
| 370 | |||
| 371 | # | ||
| 372 | # Parallel port support | ||
| 373 | # | ||
| 374 | # CONFIG_PARPORT is not set | 413 | # CONFIG_PARPORT is not set |
| 375 | 414 | CONFIG_BLK_DEV=y | |
| 376 | # | ||
| 377 | # Plug and Play support | ||
| 378 | # | ||
| 379 | |||
| 380 | # | ||
| 381 | # Block devices | ||
| 382 | # | ||
| 383 | # CONFIG_BLK_DEV_COW_COMMON is not set | 415 | # CONFIG_BLK_DEV_COW_COMMON is not set |
| 384 | CONFIG_BLK_DEV_LOOP=y | 416 | CONFIG_BLK_DEV_LOOP=y |
| 385 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 417 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
| @@ -387,7 +419,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
| 387 | CONFIG_BLK_DEV_RAM=y | 419 | CONFIG_BLK_DEV_RAM=y |
| 388 | CONFIG_BLK_DEV_RAM_COUNT=16 | 420 | CONFIG_BLK_DEV_RAM_COUNT=16 |
| 389 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 421 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
| 390 | CONFIG_BLK_DEV_INITRD=y | 422 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 |
| 391 | # CONFIG_CDROM_PKTCDVD is not set | 423 | # CONFIG_CDROM_PKTCDVD is not set |
| 392 | CONFIG_ATA_OVER_ETH=m | 424 | CONFIG_ATA_OVER_ETH=m |
| 393 | 425 | ||
| @@ -396,6 +428,9 @@ CONFIG_ATA_OVER_ETH=m | |||
| 396 | # | 428 | # |
| 397 | # CONFIG_RAID_ATTRS is not set | 429 | # CONFIG_RAID_ATTRS is not set |
| 398 | CONFIG_SCSI=y | 430 | CONFIG_SCSI=y |
| 431 | CONFIG_SCSI_DMA=y | ||
| 432 | # CONFIG_SCSI_TGT is not set | ||
| 433 | # CONFIG_SCSI_NETLINK is not set | ||
| 399 | CONFIG_SCSI_PROC_FS=y | 434 | CONFIG_SCSI_PROC_FS=y |
| 400 | 435 | ||
| 401 | # | 436 | # |
| @@ -414,82 +449,42 @@ CONFIG_SCSI_PROC_FS=y | |||
| 414 | # CONFIG_SCSI_MULTI_LUN is not set | 449 | # CONFIG_SCSI_MULTI_LUN is not set |
| 415 | # CONFIG_SCSI_CONSTANTS is not set | 450 | # CONFIG_SCSI_CONSTANTS is not set |
| 416 | # CONFIG_SCSI_LOGGING is not set | 451 | # CONFIG_SCSI_LOGGING is not set |
| 452 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
| 453 | CONFIG_SCSI_WAIT_SCAN=m | ||
| 417 | 454 | ||
| 418 | # | 455 | # |
| 419 | # SCSI Transport Attributes | 456 | # SCSI Transports |
| 420 | # | 457 | # |
| 421 | # CONFIG_SCSI_SPI_ATTRS is not set | 458 | # CONFIG_SCSI_SPI_ATTRS is not set |
| 422 | # CONFIG_SCSI_FC_ATTRS is not set | 459 | # CONFIG_SCSI_FC_ATTRS is not set |
| 423 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 460 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
| 424 | # CONFIG_SCSI_SAS_ATTRS is not set | 461 | # CONFIG_SCSI_SAS_LIBSAS is not set |
| 425 | 462 | CONFIG_SCSI_LOWLEVEL=y | |
| 426 | # | ||
| 427 | # SCSI low-level drivers | ||
| 428 | # | ||
| 429 | # CONFIG_ISCSI_TCP is not set | 463 | # CONFIG_ISCSI_TCP is not set |
| 430 | # CONFIG_SCSI_SATA is not set | ||
| 431 | # CONFIG_SCSI_DEBUG is not set | 464 | # CONFIG_SCSI_DEBUG is not set |
| 432 | 465 | # CONFIG_ATA is not set | |
| 433 | # | ||
| 434 | # Multi-device support (RAID and LVM) | ||
| 435 | # | ||
| 436 | # CONFIG_MD is not set | 466 | # CONFIG_MD is not set |
| 437 | |||
| 438 | # | ||
| 439 | # Fusion MPT device support | ||
| 440 | # | ||
| 441 | # CONFIG_FUSION is not set | ||
| 442 | |||
| 443 | # | ||
| 444 | # IEEE 1394 (FireWire) support | ||
| 445 | # | ||
| 446 | |||
| 447 | # | ||
| 448 | # I2O device support | ||
| 449 | # | ||
| 450 | |||
| 451 | # | ||
| 452 | # Network device support | ||
| 453 | # | ||
| 454 | CONFIG_NETDEVICES=y | 467 | CONFIG_NETDEVICES=y |
| 468 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
| 455 | # CONFIG_DUMMY is not set | 469 | # CONFIG_DUMMY is not set |
| 456 | # CONFIG_BONDING is not set | 470 | # CONFIG_BONDING is not set |
| 471 | # CONFIG_MACVLAN is not set | ||
| 457 | # CONFIG_EQUALIZER is not set | 472 | # CONFIG_EQUALIZER is not set |
| 458 | # CONFIG_TUN is not set | 473 | # CONFIG_TUN is not set |
| 459 | |||
| 460 | # | ||
| 461 | # PHY device support | ||
| 462 | # | ||
| 463 | # CONFIG_PHYLIB is not set | 474 | # CONFIG_PHYLIB is not set |
| 464 | |||
| 465 | # | ||
| 466 | # Ethernet (10 or 100Mbit) | ||
| 467 | # | ||
| 468 | CONFIG_NET_ETHERNET=y | 475 | CONFIG_NET_ETHERNET=y |
| 469 | CONFIG_MII=y | 476 | CONFIG_MII=y |
| 477 | # CONFIG_AX88796 is not set | ||
| 470 | CONFIG_SMC91X=y | 478 | CONFIG_SMC91X=y |
| 471 | # CONFIG_DM9000 is not set | 479 | # CONFIG_DM9000 is not set |
| 480 | CONFIG_NETDEV_1000=y | ||
| 481 | CONFIG_NETDEV_10000=y | ||
| 472 | 482 | ||
| 473 | # | 483 | # |
| 474 | # Ethernet (1000 Mbit) | 484 | # Wireless LAN |
| 475 | # | ||
| 476 | |||
| 477 | # | ||
| 478 | # Ethernet (10000 Mbit) | ||
| 479 | # | ||
| 480 | |||
| 481 | # | ||
| 482 | # Token Ring devices | ||
| 483 | # | ||
| 484 | |||
| 485 | # | ||
| 486 | # Wireless LAN (non-hamradio) | ||
| 487 | # | ||
| 488 | # CONFIG_NET_RADIO is not set | ||
| 489 | |||
| 490 | # | ||
| 491 | # Wan interfaces | ||
| 492 | # | 485 | # |
| 486 | # CONFIG_WLAN_PRE80211 is not set | ||
| 487 | # CONFIG_WLAN_80211 is not set | ||
| 493 | # CONFIG_WAN is not set | 488 | # CONFIG_WAN is not set |
| 494 | CONFIG_PPP=y | 489 | CONFIG_PPP=y |
| 495 | # CONFIG_PPP_MULTILINK is not set | 490 | # CONFIG_PPP_MULTILINK is not set |
| @@ -500,24 +495,24 @@ CONFIG_PPP=y | |||
| 500 | # CONFIG_PPP_BSDCOMP is not set | 495 | # CONFIG_PPP_BSDCOMP is not set |
| 501 | # CONFIG_PPP_MPPE is not set | 496 | # CONFIG_PPP_MPPE is not set |
| 502 | # CONFIG_PPPOE is not set | 497 | # CONFIG_PPPOE is not set |
| 498 | # CONFIG_PPPOL2TP is not set | ||
| 503 | CONFIG_SLIP=y | 499 | CONFIG_SLIP=y |
| 504 | CONFIG_SLIP_COMPRESSED=y | 500 | CONFIG_SLIP_COMPRESSED=y |
| 501 | CONFIG_SLHC=y | ||
| 505 | # CONFIG_SLIP_SMART is not set | 502 | # CONFIG_SLIP_SMART is not set |
| 506 | # CONFIG_SLIP_MODE_SLIP6 is not set | 503 | # CONFIG_SLIP_MODE_SLIP6 is not set |
| 507 | # CONFIG_SHAPER is not set | 504 | # CONFIG_SHAPER is not set |
| 508 | # CONFIG_NETCONSOLE is not set | 505 | # CONFIG_NETCONSOLE is not set |
| 509 | # CONFIG_NETPOLL is not set | 506 | # CONFIG_NETPOLL is not set |
| 510 | # CONFIG_NET_POLL_CONTROLLER is not set | 507 | # CONFIG_NET_POLL_CONTROLLER is not set |
| 511 | |||
| 512 | # | ||
| 513 | # ISDN subsystem | ||
| 514 | # | ||
| 515 | # CONFIG_ISDN is not set | 508 | # CONFIG_ISDN is not set |
| 516 | 509 | ||
| 517 | # | 510 | # |
| 518 | # Input device support | 511 | # Input device support |
| 519 | # | 512 | # |
| 520 | CONFIG_INPUT=y | 513 | CONFIG_INPUT=y |
| 514 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
| 515 | # CONFIG_INPUT_POLLDEV is not set | ||
| 521 | 516 | ||
| 522 | # | 517 | # |
| 523 | # Userland interfaces | 518 | # Userland interfaces |
| @@ -537,8 +532,14 @@ CONFIG_INPUT_EVBUG=y | |||
| 537 | # CONFIG_INPUT_KEYBOARD is not set | 532 | # CONFIG_INPUT_KEYBOARD is not set |
| 538 | # CONFIG_INPUT_MOUSE is not set | 533 | # CONFIG_INPUT_MOUSE is not set |
| 539 | # CONFIG_INPUT_JOYSTICK is not set | 534 | # CONFIG_INPUT_JOYSTICK is not set |
| 535 | # CONFIG_INPUT_TABLET is not set | ||
| 540 | # CONFIG_INPUT_TOUCHSCREEN is not set | 536 | # CONFIG_INPUT_TOUCHSCREEN is not set |
| 541 | CONFIG_INPUT_MISC=y | 537 | CONFIG_INPUT_MISC=y |
| 538 | # CONFIG_INPUT_ATI_REMOTE is not set | ||
| 539 | # CONFIG_INPUT_ATI_REMOTE2 is not set | ||
| 540 | # CONFIG_INPUT_KEYSPAN_REMOTE is not set | ||
| 541 | # CONFIG_INPUT_POWERMATE is not set | ||
| 542 | # CONFIG_INPUT_YEALINK is not set | ||
| 542 | CONFIG_INPUT_UINPUT=y | 543 | CONFIG_INPUT_UINPUT=y |
| 543 | 544 | ||
| 544 | # | 545 | # |
| @@ -574,15 +575,7 @@ CONFIG_SERIAL_CORE=y | |||
| 574 | CONFIG_SERIAL_CORE_CONSOLE=y | 575 | CONFIG_SERIAL_CORE_CONSOLE=y |
| 575 | CONFIG_UNIX98_PTYS=y | 576 | CONFIG_UNIX98_PTYS=y |
| 576 | # CONFIG_LEGACY_PTYS is not set | 577 | # CONFIG_LEGACY_PTYS is not set |
| 577 | |||
| 578 | # | ||
| 579 | # IPMI | ||
| 580 | # | ||
| 581 | # CONFIG_IPMI_HANDLER is not set | 578 | # CONFIG_IPMI_HANDLER is not set |
| 582 | |||
| 583 | # | ||
| 584 | # Watchdog Cards | ||
| 585 | # | ||
| 586 | CONFIG_WATCHDOG=y | 579 | CONFIG_WATCHDOG=y |
| 587 | CONFIG_WATCHDOG_NOWAYOUT=y | 580 | CONFIG_WATCHDOG_NOWAYOUT=y |
| 588 | 581 | ||
| @@ -590,25 +583,12 @@ CONFIG_WATCHDOG_NOWAYOUT=y | |||
| 590 | # Watchdog Device Drivers | 583 | # Watchdog Device Drivers |
| 591 | # | 584 | # |
| 592 | # CONFIG_SOFT_WATCHDOG is not set | 585 | # CONFIG_SOFT_WATCHDOG is not set |
| 586 | # CONFIG_OMAP_WATCHDOG is not set | ||
| 593 | # CONFIG_HW_RANDOM is not set | 587 | # CONFIG_HW_RANDOM is not set |
| 594 | # CONFIG_NVRAM is not set | 588 | # CONFIG_NVRAM is not set |
| 595 | # CONFIG_DTLK is not set | ||
| 596 | # CONFIG_R3964 is not set | 589 | # CONFIG_R3964 is not set |
| 597 | |||
| 598 | # | ||
| 599 | # Ftape, the floppy tape device driver | ||
| 600 | # | ||
| 601 | # CONFIG_RAW_DRIVER is not set | 590 | # CONFIG_RAW_DRIVER is not set |
| 602 | |||
| 603 | # | ||
| 604 | # TPM devices | ||
| 605 | # | ||
| 606 | # CONFIG_TCG_TPM is not set | 591 | # CONFIG_TCG_TPM is not set |
| 607 | # CONFIG_TELCLOCK is not set | ||
| 608 | |||
| 609 | # | ||
| 610 | # I2C support | ||
| 611 | # | ||
| 612 | # CONFIG_I2C is not set | 592 | # CONFIG_I2C is not set |
| 613 | 593 | ||
| 614 | # | 594 | # |
| @@ -616,61 +596,70 @@ CONFIG_WATCHDOG_NOWAYOUT=y | |||
| 616 | # | 596 | # |
| 617 | # CONFIG_SPI is not set | 597 | # CONFIG_SPI is not set |
| 618 | # CONFIG_SPI_MASTER is not set | 598 | # CONFIG_SPI_MASTER is not set |
| 619 | 599 | # CONFIG_W1 is not set | |
| 620 | # | ||
| 621 | # Dallas's 1-wire bus | ||
| 622 | # | ||
| 623 | |||
| 624 | # | ||
| 625 | # Hardware Monitoring support | ||
| 626 | # | ||
| 627 | CONFIG_HWMON=y | 600 | CONFIG_HWMON=y |
| 628 | # CONFIG_HWMON_VID is not set | 601 | # CONFIG_HWMON_VID is not set |
| 629 | # CONFIG_SENSORS_ABITUGURU is not set | 602 | # CONFIG_SENSORS_ABITUGURU is not set |
| 603 | # CONFIG_SENSORS_ABITUGURU3 is not set | ||
| 630 | # CONFIG_SENSORS_F71805F is not set | 604 | # CONFIG_SENSORS_F71805F is not set |
| 605 | # CONFIG_SENSORS_IT87 is not set | ||
| 606 | # CONFIG_SENSORS_PC87360 is not set | ||
| 607 | # CONFIG_SENSORS_PC87427 is not set | ||
| 608 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
| 609 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
| 610 | # CONFIG_SENSORS_VT1211 is not set | ||
| 611 | # CONFIG_SENSORS_W83627HF is not set | ||
| 612 | # CONFIG_SENSORS_W83627EHF is not set | ||
| 631 | # CONFIG_HWMON_DEBUG_CHIP is not set | 613 | # CONFIG_HWMON_DEBUG_CHIP is not set |
| 614 | CONFIG_MISC_DEVICES=y | ||
| 615 | # CONFIG_EEPROM_93CX6 is not set | ||
| 632 | 616 | ||
| 633 | # | 617 | # |
| 634 | # Misc devices | 618 | # Multifunction device drivers |
| 635 | # | ||
| 636 | |||
| 637 | # | ||
| 638 | # LED devices | ||
| 639 | # | 619 | # |
| 620 | # CONFIG_MFD_SM501 is not set | ||
| 640 | # CONFIG_NEW_LEDS is not set | 621 | # CONFIG_NEW_LEDS is not set |
| 641 | 622 | ||
| 642 | # | 623 | # |
| 643 | # LED drivers | ||
| 644 | # | ||
| 645 | |||
| 646 | # | ||
| 647 | # LED Triggers | ||
| 648 | # | ||
| 649 | |||
| 650 | # | ||
| 651 | # Multimedia devices | 624 | # Multimedia devices |
| 652 | # | 625 | # |
| 653 | # CONFIG_VIDEO_DEV is not set | 626 | # CONFIG_VIDEO_DEV is not set |
| 654 | CONFIG_VIDEO_V4L2=y | 627 | # CONFIG_DVB_CORE is not set |
| 628 | CONFIG_DAB=y | ||
| 655 | 629 | ||
| 656 | # | 630 | # |
| 657 | # Digital Video Broadcasting Devices | 631 | # Graphics support |
| 658 | # | 632 | # |
| 659 | # CONFIG_DVB is not set | 633 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set |
| 660 | 634 | ||
| 661 | # | 635 | # |
| 662 | # Graphics support | 636 | # Display device support |
| 663 | # | 637 | # |
| 664 | CONFIG_FIRMWARE_EDID=y | 638 | # CONFIG_DISPLAY_SUPPORT is not set |
| 639 | # CONFIG_VGASTATE is not set | ||
| 640 | CONFIG_VIDEO_OUTPUT_CONTROL=m | ||
| 665 | CONFIG_FB=y | 641 | CONFIG_FB=y |
| 642 | CONFIG_FIRMWARE_EDID=y | ||
| 643 | # CONFIG_FB_DDC is not set | ||
| 666 | # CONFIG_FB_CFB_FILLRECT is not set | 644 | # CONFIG_FB_CFB_FILLRECT is not set |
| 667 | # CONFIG_FB_CFB_COPYAREA is not set | 645 | # CONFIG_FB_CFB_COPYAREA is not set |
| 668 | # CONFIG_FB_CFB_IMAGEBLIT is not set | 646 | # CONFIG_FB_CFB_IMAGEBLIT is not set |
| 647 | # CONFIG_FB_SYS_FILLRECT is not set | ||
| 648 | # CONFIG_FB_SYS_COPYAREA is not set | ||
| 649 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
| 650 | # CONFIG_FB_SYS_FOPS is not set | ||
| 651 | CONFIG_FB_DEFERRED_IO=y | ||
| 652 | # CONFIG_FB_SVGALIB is not set | ||
| 669 | # CONFIG_FB_MACMODES is not set | 653 | # CONFIG_FB_MACMODES is not set |
| 670 | # CONFIG_FB_BACKLIGHT is not set | 654 | # CONFIG_FB_BACKLIGHT is not set |
| 671 | CONFIG_FB_MODE_HELPERS=y | 655 | CONFIG_FB_MODE_HELPERS=y |
| 672 | # CONFIG_FB_TILEBLITTING is not set | 656 | # CONFIG_FB_TILEBLITTING is not set |
| 657 | |||
| 658 | # | ||
| 659 | # Frame buffer hardware drivers | ||
| 660 | # | ||
| 673 | # CONFIG_FB_S1D13XXX is not set | 661 | # CONFIG_FB_S1D13XXX is not set |
| 662 | # CONFIG_FB_OMAP is not set | ||
| 674 | # CONFIG_FB_VIRTUAL is not set | 663 | # CONFIG_FB_VIRTUAL is not set |
| 675 | 664 | ||
| 676 | # | 665 | # |
| @@ -679,6 +668,7 @@ CONFIG_FB_MODE_HELPERS=y | |||
| 679 | # CONFIG_VGA_CONSOLE is not set | 668 | # CONFIG_VGA_CONSOLE is not set |
| 680 | CONFIG_DUMMY_CONSOLE=y | 669 | CONFIG_DUMMY_CONSOLE=y |
| 681 | CONFIG_FRAMEBUFFER_CONSOLE=y | 670 | CONFIG_FRAMEBUFFER_CONSOLE=y |
| 671 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
| 682 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | 672 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set |
| 683 | CONFIG_FONTS=y | 673 | CONFIG_FONTS=y |
| 684 | CONFIG_FONT_8x8=y | 674 | CONFIG_FONT_8x8=y |
| @@ -691,15 +681,10 @@ CONFIG_FONT_8x16=y | |||
| 691 | # CONFIG_FONT_SUN8x16 is not set | 681 | # CONFIG_FONT_SUN8x16 is not set |
| 692 | # CONFIG_FONT_SUN12x22 is not set | 682 | # CONFIG_FONT_SUN12x22 is not set |
| 693 | # CONFIG_FONT_10x18 is not set | 683 | # CONFIG_FONT_10x18 is not set |
| 694 | |||
| 695 | # | ||
| 696 | # Logo configuration | ||
| 697 | # | ||
| 698 | CONFIG_LOGO=y | 684 | CONFIG_LOGO=y |
| 699 | # CONFIG_LOGO_LINUX_MONO is not set | 685 | # CONFIG_LOGO_LINUX_MONO is not set |
| 700 | # CONFIG_LOGO_LINUX_VGA16 is not set | 686 | # CONFIG_LOGO_LINUX_VGA16 is not set |
| 701 | CONFIG_LOGO_LINUX_CLUT224=y | 687 | CONFIG_LOGO_LINUX_CLUT224=y |
| 702 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
| 703 | 688 | ||
| 704 | # | 689 | # |
| 705 | # Sound | 690 | # Sound |
| @@ -717,10 +702,10 @@ CONFIG_SOUND=y | |||
| 717 | CONFIG_SOUND_PRIME=y | 702 | CONFIG_SOUND_PRIME=y |
| 718 | # CONFIG_SOUND_MSNDCLAS is not set | 703 | # CONFIG_SOUND_MSNDCLAS is not set |
| 719 | # CONFIG_SOUND_MSNDPIN is not set | 704 | # CONFIG_SOUND_MSNDPIN is not set |
| 720 | 705 | CONFIG_HID_SUPPORT=y | |
| 721 | # | 706 | CONFIG_HID=y |
| 722 | # USB support | 707 | CONFIG_HID_DEBUG=y |
| 723 | # | 708 | CONFIG_USB_SUPPORT=y |
| 724 | CONFIG_USB_ARCH_HAS_HCD=y | 709 | CONFIG_USB_ARCH_HAS_HCD=y |
| 725 | CONFIG_USB_ARCH_HAS_OHCI=y | 710 | CONFIG_USB_ARCH_HAS_OHCI=y |
| 726 | # CONFIG_USB_ARCH_HAS_EHCI is not set | 711 | # CONFIG_USB_ARCH_HAS_EHCI is not set |
| @@ -734,17 +719,22 @@ CONFIG_USB_ARCH_HAS_OHCI=y | |||
| 734 | # USB Gadget Support | 719 | # USB Gadget Support |
| 735 | # | 720 | # |
| 736 | # CONFIG_USB_GADGET is not set | 721 | # CONFIG_USB_GADGET is not set |
| 722 | # CONFIG_MMC is not set | ||
| 723 | CONFIG_RTC_LIB=y | ||
| 724 | # CONFIG_RTC_CLASS is not set | ||
| 737 | 725 | ||
| 738 | # | 726 | # |
| 739 | # MMC/SD Card support | 727 | # DMA Engine support |
| 740 | # | 728 | # |
| 741 | # CONFIG_MMC is not set | 729 | # CONFIG_DMA_ENGINE is not set |
| 742 | 730 | ||
| 743 | # | 731 | # |
| 744 | # Real Time Clock | 732 | # DMA Clients |
| 733 | # | ||
| 734 | |||
| 735 | # | ||
| 736 | # DMA Devices | ||
| 745 | # | 737 | # |
| 746 | CONFIG_RTC_LIB=y | ||
| 747 | # CONFIG_RTC_CLASS is not set | ||
| 748 | 738 | ||
| 749 | # | 739 | # |
| 750 | # File systems | 740 | # File systems |
| @@ -753,10 +743,12 @@ CONFIG_EXT2_FS=y | |||
| 753 | # CONFIG_EXT2_FS_XATTR is not set | 743 | # CONFIG_EXT2_FS_XATTR is not set |
| 754 | # CONFIG_EXT2_FS_XIP is not set | 744 | # CONFIG_EXT2_FS_XIP is not set |
| 755 | # CONFIG_EXT3_FS is not set | 745 | # CONFIG_EXT3_FS is not set |
| 746 | # CONFIG_EXT4DEV_FS is not set | ||
| 756 | # CONFIG_REISERFS_FS is not set | 747 | # CONFIG_REISERFS_FS is not set |
| 757 | # CONFIG_JFS_FS is not set | 748 | # CONFIG_JFS_FS is not set |
| 758 | # CONFIG_FS_POSIX_ACL is not set | 749 | # CONFIG_FS_POSIX_ACL is not set |
| 759 | # CONFIG_XFS_FS is not set | 750 | # CONFIG_XFS_FS is not set |
| 751 | # CONFIG_GFS2_FS is not set | ||
| 760 | # CONFIG_OCFS2_FS is not set | 752 | # CONFIG_OCFS2_FS is not set |
| 761 | # CONFIG_MINIX_FS is not set | 753 | # CONFIG_MINIX_FS is not set |
| 762 | CONFIG_ROMFS_FS=y | 754 | CONFIG_ROMFS_FS=y |
| @@ -787,6 +779,7 @@ CONFIG_FAT_DEFAULT_CODEPAGE=437 | |||
| 787 | # Pseudo filesystems | 779 | # Pseudo filesystems |
| 788 | # | 780 | # |
| 789 | CONFIG_PROC_FS=y | 781 | CONFIG_PROC_FS=y |
| 782 | CONFIG_PROC_SYSCTL=y | ||
| 790 | CONFIG_SYSFS=y | 783 | CONFIG_SYSFS=y |
| 791 | # CONFIG_TMPFS is not set | 784 | # CONFIG_TMPFS is not set |
| 792 | # CONFIG_HUGETLB_PAGE is not set | 785 | # CONFIG_HUGETLB_PAGE is not set |
| @@ -825,6 +818,7 @@ CONFIG_LOCKD_V4=y | |||
| 825 | CONFIG_NFS_COMMON=y | 818 | CONFIG_NFS_COMMON=y |
| 826 | CONFIG_SUNRPC=y | 819 | CONFIG_SUNRPC=y |
| 827 | CONFIG_SUNRPC_GSS=y | 820 | CONFIG_SUNRPC_GSS=y |
| 821 | # CONFIG_SUNRPC_BIND34 is not set | ||
| 828 | CONFIG_RPCSEC_GSS_KRB5=y | 822 | CONFIG_RPCSEC_GSS_KRB5=y |
| 829 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 823 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
| 830 | # CONFIG_SMB_FS is not set | 824 | # CONFIG_SMB_FS is not set |
| @@ -832,7 +826,6 @@ CONFIG_RPCSEC_GSS_KRB5=y | |||
| 832 | # CONFIG_NCP_FS is not set | 826 | # CONFIG_NCP_FS is not set |
| 833 | # CONFIG_CODA_FS is not set | 827 | # CONFIG_CODA_FS is not set |
| 834 | # CONFIG_AFS_FS is not set | 828 | # CONFIG_AFS_FS is not set |
| 835 | # CONFIG_9P_FS is not set | ||
| 836 | 829 | ||
| 837 | # | 830 | # |
| 838 | # Partition Types | 831 | # Partition Types |
| @@ -885,6 +878,11 @@ CONFIG_NLS_DEFAULT="iso8859-1" | |||
| 885 | # CONFIG_NLS_UTF8 is not set | 878 | # CONFIG_NLS_UTF8 is not set |
| 886 | 879 | ||
| 887 | # | 880 | # |
| 881 | # Distributed Lock Manager | ||
| 882 | # | ||
| 883 | # CONFIG_DLM is not set | ||
| 884 | |||
| 885 | # | ||
| 888 | # Profiling support | 886 | # Profiling support |
| 889 | # | 887 | # |
| 890 | # CONFIG_PROFILING is not set | 888 | # CONFIG_PROFILING is not set |
| @@ -893,13 +891,14 @@ CONFIG_NLS_DEFAULT="iso8859-1" | |||
| 893 | # Kernel hacking | 891 | # Kernel hacking |
| 894 | # | 892 | # |
| 895 | # CONFIG_PRINTK_TIME is not set | 893 | # CONFIG_PRINTK_TIME is not set |
| 894 | CONFIG_ENABLE_MUST_CHECK=y | ||
| 896 | # CONFIG_MAGIC_SYSRQ is not set | 895 | # CONFIG_MAGIC_SYSRQ is not set |
| 896 | # CONFIG_UNUSED_SYMBOLS is not set | ||
| 897 | # CONFIG_DEBUG_FS is not set | ||
| 898 | # CONFIG_HEADERS_CHECK is not set | ||
| 897 | # CONFIG_DEBUG_KERNEL is not set | 899 | # CONFIG_DEBUG_KERNEL is not set |
| 898 | CONFIG_LOG_BUF_SHIFT=14 | ||
| 899 | CONFIG_DEBUG_BUGVERBOSE=y | 900 | CONFIG_DEBUG_BUGVERBOSE=y |
| 900 | # CONFIG_DEBUG_FS is not set | ||
| 901 | CONFIG_FRAME_POINTER=y | 901 | CONFIG_FRAME_POINTER=y |
| 902 | # CONFIG_UNWIND_INFO is not set | ||
| 903 | # CONFIG_DEBUG_USER is not set | 902 | # CONFIG_DEBUG_USER is not set |
| 904 | 903 | ||
| 905 | # | 904 | # |
| @@ -907,12 +906,12 @@ CONFIG_FRAME_POINTER=y | |||
| 907 | # | 906 | # |
| 908 | # CONFIG_KEYS is not set | 907 | # CONFIG_KEYS is not set |
| 909 | # CONFIG_SECURITY is not set | 908 | # CONFIG_SECURITY is not set |
| 910 | |||
| 911 | # | ||
| 912 | # Cryptographic options | ||
| 913 | # | ||
| 914 | CONFIG_CRYPTO=y | 909 | CONFIG_CRYPTO=y |
| 910 | CONFIG_CRYPTO_ALGAPI=y | ||
| 911 | CONFIG_CRYPTO_BLKCIPHER=y | ||
| 912 | CONFIG_CRYPTO_MANAGER=y | ||
| 915 | # CONFIG_CRYPTO_HMAC is not set | 913 | # CONFIG_CRYPTO_HMAC is not set |
| 914 | # CONFIG_CRYPTO_XCBC is not set | ||
| 916 | # CONFIG_CRYPTO_NULL is not set | 915 | # CONFIG_CRYPTO_NULL is not set |
| 917 | # CONFIG_CRYPTO_MD4 is not set | 916 | # CONFIG_CRYPTO_MD4 is not set |
| 918 | CONFIG_CRYPTO_MD5=y | 917 | CONFIG_CRYPTO_MD5=y |
| @@ -921,7 +920,14 @@ CONFIG_CRYPTO_MD5=y | |||
| 921 | # CONFIG_CRYPTO_SHA512 is not set | 920 | # CONFIG_CRYPTO_SHA512 is not set |
| 922 | # CONFIG_CRYPTO_WP512 is not set | 921 | # CONFIG_CRYPTO_WP512 is not set |
| 923 | # CONFIG_CRYPTO_TGR192 is not set | 922 | # CONFIG_CRYPTO_TGR192 is not set |
| 923 | # CONFIG_CRYPTO_GF128MUL is not set | ||
| 924 | CONFIG_CRYPTO_ECB=m | ||
| 925 | CONFIG_CRYPTO_CBC=y | ||
| 926 | CONFIG_CRYPTO_PCBC=m | ||
| 927 | # CONFIG_CRYPTO_LRW is not set | ||
| 928 | # CONFIG_CRYPTO_CRYPTD is not set | ||
| 924 | CONFIG_CRYPTO_DES=y | 929 | CONFIG_CRYPTO_DES=y |
| 930 | # CONFIG_CRYPTO_FCRYPT is not set | ||
| 925 | # CONFIG_CRYPTO_BLOWFISH is not set | 931 | # CONFIG_CRYPTO_BLOWFISH is not set |
| 926 | # CONFIG_CRYPTO_TWOFISH is not set | 932 | # CONFIG_CRYPTO_TWOFISH is not set |
| 927 | # CONFIG_CRYPTO_SERPENT is not set | 933 | # CONFIG_CRYPTO_SERPENT is not set |
| @@ -935,17 +941,22 @@ CONFIG_CRYPTO_DES=y | |||
| 935 | # CONFIG_CRYPTO_DEFLATE is not set | 941 | # CONFIG_CRYPTO_DEFLATE is not set |
| 936 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | 942 | # CONFIG_CRYPTO_MICHAEL_MIC is not set |
| 937 | # CONFIG_CRYPTO_CRC32C is not set | 943 | # CONFIG_CRYPTO_CRC32C is not set |
| 944 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
| 938 | # CONFIG_CRYPTO_TEST is not set | 945 | # CONFIG_CRYPTO_TEST is not set |
| 939 | 946 | CONFIG_CRYPTO_HW=y | |
| 940 | # | ||
| 941 | # Hardware crypto devices | ||
| 942 | # | ||
| 943 | 947 | ||
| 944 | # | 948 | # |
| 945 | # Library routines | 949 | # Library routines |
| 946 | # | 950 | # |
| 951 | CONFIG_BITREVERSE=y | ||
| 947 | # CONFIG_CRC_CCITT is not set | 952 | # CONFIG_CRC_CCITT is not set |
| 948 | # CONFIG_CRC16 is not set | 953 | # CONFIG_CRC16 is not set |
| 954 | # CONFIG_CRC_ITU_T is not set | ||
| 949 | CONFIG_CRC32=y | 955 | CONFIG_CRC32=y |
| 956 | # CONFIG_CRC7 is not set | ||
| 950 | # CONFIG_LIBCRC32C is not set | 957 | # CONFIG_LIBCRC32C is not set |
| 951 | CONFIG_ZLIB_INFLATE=y | 958 | CONFIG_ZLIB_INFLATE=y |
| 959 | CONFIG_PLIST=y | ||
| 960 | CONFIG_HAS_IOMEM=y | ||
| 961 | CONFIG_HAS_IOPORT=y | ||
| 962 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/omap_osk_5912_defconfig b/arch/arm/configs/omap_osk_5912_defconfig new file mode 100644 index 000000000000..8c1f15c7c45c --- /dev/null +++ b/arch/arm/configs/omap_osk_5912_defconfig | |||
| @@ -0,0 +1,1073 @@ | |||
| 1 | # | ||
| 2 | # Automatically generated make config: don't edit | ||
| 3 | # Linux kernel version: 2.6.23-rc6 | ||
| 4 | # Mon Sep 17 14:15:05 2007 | ||
| 5 | # | ||
| 6 | CONFIG_ARM=y | ||
| 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
| 8 | CONFIG_GENERIC_GPIO=y | ||
| 9 | CONFIG_GENERIC_TIME=y | ||
| 10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
| 11 | CONFIG_MMU=y | ||
| 12 | # CONFIG_NO_IOPORT is not set | ||
| 13 | CONFIG_GENERIC_HARDIRQS=y | ||
| 14 | CONFIG_STACKTRACE_SUPPORT=y | ||
| 15 | CONFIG_LOCKDEP_SUPPORT=y | ||
| 16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
| 17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
| 18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
| 19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
| 20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
| 21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
| 22 | CONFIG_GENERIC_HWEIGHT=y | ||
| 23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
| 24 | CONFIG_ZONE_DMA=y | ||
| 25 | CONFIG_VECTORS_BASE=0xffff0000 | ||
| 26 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
| 27 | |||
| 28 | # | ||
| 29 | # General setup | ||
| 30 | # | ||
| 31 | CONFIG_EXPERIMENTAL=y | ||
| 32 | CONFIG_BROKEN_ON_SMP=y | ||
| 33 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
| 34 | CONFIG_LOCALVERSION="" | ||
| 35 | CONFIG_LOCALVERSION_AUTO=y | ||
| 36 | CONFIG_SWAP=y | ||
| 37 | CONFIG_SYSVIPC=y | ||
| 38 | CONFIG_SYSVIPC_SYSCTL=y | ||
| 39 | # CONFIG_POSIX_MQUEUE is not set | ||
| 40 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
| 41 | # CONFIG_TASKSTATS is not set | ||
| 42 | # CONFIG_USER_NS is not set | ||
| 43 | # CONFIG_AUDIT is not set | ||
| 44 | # CONFIG_IKCONFIG is not set | ||
| 45 | CONFIG_LOG_BUF_SHIFT=14 | ||
| 46 | # CONFIG_SYSFS_DEPRECATED is not set | ||
| 47 | # CONFIG_RELAY is not set | ||
| 48 | CONFIG_BLK_DEV_INITRD=y | ||
| 49 | CONFIG_INITRAMFS_SOURCE="" | ||
| 50 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
| 51 | CONFIG_SYSCTL=y | ||
| 52 | # CONFIG_EMBEDDED is not set | ||
| 53 | CONFIG_UID16=y | ||
| 54 | CONFIG_SYSCTL_SYSCALL=y | ||
| 55 | CONFIG_KALLSYMS=y | ||
| 56 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
| 57 | CONFIG_HOTPLUG=y | ||
| 58 | CONFIG_PRINTK=y | ||
| 59 | CONFIG_BUG=y | ||
| 60 | CONFIG_ELF_CORE=y | ||
| 61 | CONFIG_BASE_FULL=y | ||
| 62 | CONFIG_FUTEX=y | ||
| 63 | CONFIG_ANON_INODES=y | ||
| 64 | CONFIG_EPOLL=y | ||
| 65 | CONFIG_SIGNALFD=y | ||
| 66 | CONFIG_TIMERFD=y | ||
| 67 | CONFIG_EVENTFD=y | ||
| 68 | CONFIG_SHMEM=y | ||
| 69 | CONFIG_VM_EVENT_COUNTERS=y | ||
| 70 | CONFIG_SLAB=y | ||
| 71 | # CONFIG_SLUB is not set | ||
| 72 | # CONFIG_SLOB is not set | ||
| 73 | CONFIG_RT_MUTEXES=y | ||
| 74 | # CONFIG_TINY_SHMEM is not set | ||
| 75 | CONFIG_BASE_SMALL=0 | ||
| 76 | CONFIG_MODULES=y | ||
| 77 | CONFIG_MODULE_UNLOAD=y | ||
| 78 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
| 79 | # CONFIG_MODVERSIONS is not set | ||
| 80 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
| 81 | CONFIG_KMOD=y | ||
| 82 | CONFIG_BLOCK=y | ||
| 83 | # CONFIG_LBD is not set | ||
| 84 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
| 85 | # CONFIG_LSF is not set | ||
| 86 | # CONFIG_BLK_DEV_BSG is not set | ||
| 87 | |||
| 88 | # | ||
| 89 | # IO Schedulers | ||
| 90 | # | ||
| 91 | CONFIG_IOSCHED_NOOP=y | ||
| 92 | CONFIG_IOSCHED_AS=y | ||
| 93 | CONFIG_IOSCHED_DEADLINE=y | ||
| 94 | CONFIG_IOSCHED_CFQ=y | ||
| 95 | # CONFIG_DEFAULT_AS is not set | ||
| 96 | # CONFIG_DEFAULT_DEADLINE is not set | ||
| 97 | CONFIG_DEFAULT_CFQ=y | ||
| 98 | # CONFIG_DEFAULT_NOOP is not set | ||
| 99 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
| 100 | |||
| 101 | # | ||
| 102 | # System Type | ||
| 103 | # | ||
| 104 | # CONFIG_ARCH_AAEC2000 is not set | ||
| 105 | # CONFIG_ARCH_INTEGRATOR is not set | ||
| 106 | # CONFIG_ARCH_REALVIEW is not set | ||
| 107 | # CONFIG_ARCH_VERSATILE is not set | ||
| 108 | # CONFIG_ARCH_AT91 is not set | ||
| 109 | # CONFIG_ARCH_CLPS7500 is not set | ||
| 110 | # CONFIG_ARCH_CLPS711X is not set | ||
| 111 | # CONFIG_ARCH_CO285 is not set | ||
| 112 | # CONFIG_ARCH_EBSA110 is not set | ||
| 113 | # CONFIG_ARCH_EP93XX is not set | ||
| 114 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
| 115 | # CONFIG_ARCH_NETX is not set | ||
| 116 | # CONFIG_ARCH_H720X is not set | ||
| 117 | # CONFIG_ARCH_IMX is not set | ||
| 118 | # CONFIG_ARCH_IOP13XX is not set | ||
| 119 | # CONFIG_ARCH_IOP32X is not set | ||
| 120 | # CONFIG_ARCH_IOP33X is not set | ||
| 121 | # CONFIG_ARCH_IXP23XX is not set | ||
| 122 | # CONFIG_ARCH_IXP2000 is not set | ||
| 123 | # CONFIG_ARCH_IXP4XX is not set | ||
| 124 | # CONFIG_ARCH_L7200 is not set | ||
| 125 | # CONFIG_ARCH_KS8695 is not set | ||
| 126 | # CONFIG_ARCH_NS9XXX is not set | ||
| 127 | # CONFIG_ARCH_MXC is not set | ||
| 128 | # CONFIG_ARCH_PNX4008 is not set | ||
| 129 | # CONFIG_ARCH_PXA is not set | ||
| 130 | # CONFIG_ARCH_RPC is not set | ||
| 131 | # CONFIG_ARCH_SA1100 is not set | ||
| 132 | # CONFIG_ARCH_S3C2410 is not set | ||
| 133 | # CONFIG_ARCH_SHARK is not set | ||
| 134 | # CONFIG_ARCH_LH7A40X is not set | ||
| 135 | # CONFIG_ARCH_DAVINCI is not set | ||
| 136 | CONFIG_ARCH_OMAP=y | ||
| 137 | |||
| 138 | # | ||
| 139 | # TI OMAP Implementations | ||
| 140 | # | ||
| 141 | CONFIG_ARCH_OMAP_OTG=y | ||
| 142 | CONFIG_ARCH_OMAP1=y | ||
| 143 | # CONFIG_ARCH_OMAP2 is not set | ||
| 144 | |||
| 145 | # | ||
| 146 | # OMAP Feature Selections | ||
| 147 | # | ||
| 148 | CONFIG_OMAP_RESET_CLOCKS=y | ||
| 149 | CONFIG_OMAP_MUX=y | ||
| 150 | # CONFIG_OMAP_MUX_DEBUG is not set | ||
| 151 | CONFIG_OMAP_MUX_WARNINGS=y | ||
| 152 | CONFIG_OMAP_MCBSP=y | ||
| 153 | # CONFIG_OMAP_MPU_TIMER is not set | ||
| 154 | CONFIG_OMAP_32K_TIMER=y | ||
| 155 | CONFIG_OMAP_32K_TIMER_HZ=128 | ||
| 156 | # CONFIG_OMAP_DM_TIMER is not set | ||
| 157 | CONFIG_OMAP_LL_DEBUG_UART1=y | ||
| 158 | # CONFIG_OMAP_LL_DEBUG_UART2 is not set | ||
| 159 | # CONFIG_OMAP_LL_DEBUG_UART3 is not set | ||
| 160 | CONFIG_OMAP_SERIAL_WAKE=y | ||
| 161 | |||
| 162 | # | ||
| 163 | # OMAP Core Type | ||
| 164 | # | ||
| 165 | # CONFIG_ARCH_OMAP730 is not set | ||
| 166 | # CONFIG_ARCH_OMAP15XX is not set | ||
| 167 | CONFIG_ARCH_OMAP16XX=y | ||
| 168 | |||
| 169 | # | ||
| 170 | # OMAP Board Type | ||
| 171 | # | ||
| 172 | # CONFIG_MACH_OMAP_INNOVATOR is not set | ||
| 173 | # CONFIG_MACH_OMAP_H2 is not set | ||
| 174 | # CONFIG_MACH_OMAP_H3 is not set | ||
| 175 | CONFIG_MACH_OMAP_OSK=y | ||
| 176 | # CONFIG_OMAP_OSK_MISTRAL is not set | ||
| 177 | # CONFIG_MACH_NOKIA770 is not set | ||
| 178 | # CONFIG_MACH_OMAP_GENERIC is not set | ||
| 179 | |||
| 180 | # | ||
| 181 | # OMAP CPU Speed | ||
| 182 | # | ||
| 183 | # CONFIG_OMAP_CLOCKS_SET_BY_BOOTLOADER is not set | ||
| 184 | # CONFIG_OMAP_ARM_216MHZ is not set | ||
| 185 | CONFIG_OMAP_ARM_192MHZ=y | ||
| 186 | # CONFIG_OMAP_ARM_168MHZ is not set | ||
| 187 | # CONFIG_OMAP_ARM_120MHZ is not set | ||
| 188 | # CONFIG_OMAP_ARM_60MHZ is not set | ||
| 189 | # CONFIG_OMAP_ARM_30MHZ is not set | ||
| 190 | |||
| 191 | # | ||
| 192 | # Boot options | ||
| 193 | # | ||
| 194 | |||
| 195 | # | ||
| 196 | # Power management | ||
| 197 | # | ||
| 198 | |||
| 199 | # | ||
| 200 | # Processor Type | ||
| 201 | # | ||
| 202 | CONFIG_CPU_32=y | ||
| 203 | CONFIG_CPU_ARM926T=y | ||
| 204 | CONFIG_CPU_32v5=y | ||
| 205 | CONFIG_CPU_ABRT_EV5TJ=y | ||
| 206 | CONFIG_CPU_CACHE_VIVT=y | ||
| 207 | CONFIG_CPU_COPY_V4WB=y | ||
| 208 | CONFIG_CPU_TLB_V4WBI=y | ||
| 209 | CONFIG_CPU_CP15=y | ||
| 210 | CONFIG_CPU_CP15_MMU=y | ||
| 211 | |||
| 212 | # | ||
| 213 | # Processor Features | ||
| 214 | # | ||
| 215 | # CONFIG_ARM_THUMB is not set | ||
| 216 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
| 217 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
| 218 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
| 219 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
| 220 | # CONFIG_OUTER_CACHE is not set | ||
| 221 | |||
| 222 | # | ||
| 223 | # Bus support | ||
| 224 | # | ||
| 225 | # CONFIG_PCI_SYSCALL is not set | ||
| 226 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
| 227 | |||
| 228 | # | ||
| 229 | # PCCARD (PCMCIA/CardBus) support | ||
| 230 | # | ||
| 231 | CONFIG_PCCARD=y | ||
| 232 | # CONFIG_PCMCIA_DEBUG is not set | ||
| 233 | CONFIG_PCMCIA=y | ||
| 234 | CONFIG_PCMCIA_LOAD_CIS=y | ||
| 235 | CONFIG_PCMCIA_IOCTL=y | ||
| 236 | |||
| 237 | # | ||
| 238 | # PC-card bridges | ||
| 239 | # | ||
| 240 | CONFIG_OMAP_CF=y | ||
| 241 | |||
| 242 | # | ||
| 243 | # Kernel Features | ||
| 244 | # | ||
| 245 | CONFIG_TICK_ONESHOT=y | ||
| 246 | CONFIG_NO_HZ=y | ||
| 247 | CONFIG_HIGH_RES_TIMERS=y | ||
| 248 | # CONFIG_PREEMPT is not set | ||
| 249 | CONFIG_HZ=128 | ||
| 250 | CONFIG_AEABI=y | ||
| 251 | CONFIG_OABI_COMPAT=y | ||
| 252 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
| 253 | CONFIG_SELECT_MEMORY_MODEL=y | ||
| 254 | CONFIG_FLATMEM_MANUAL=y | ||
| 255 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
| 256 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
| 257 | CONFIG_FLATMEM=y | ||
| 258 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
| 259 | # CONFIG_SPARSEMEM_STATIC is not set | ||
| 260 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
| 261 | # CONFIG_RESOURCES_64BIT is not set | ||
| 262 | CONFIG_ZONE_DMA_FLAG=1 | ||
| 263 | CONFIG_BOUNCE=y | ||
| 264 | CONFIG_VIRT_TO_BUS=y | ||
| 265 | # CONFIG_LEDS is not set | ||
| 266 | CONFIG_ALIGNMENT_TRAP=y | ||
| 267 | |||
| 268 | # | ||
| 269 | # Boot options | ||
| 270 | # | ||
| 271 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
| 272 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
| 273 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200 initrd=0x10400000,8M root=/dev/ram0 rw" | ||
| 274 | # CONFIG_XIP_KERNEL is not set | ||
| 275 | # CONFIG_KEXEC is not set | ||
| 276 | |||
| 277 | # | ||
| 278 | # CPU Frequency scaling | ||
| 279 | # | ||
| 280 | # CONFIG_CPU_FREQ is not set | ||
| 281 | |||
| 282 | # | ||
| 283 | # Floating point emulation | ||
| 284 | # | ||
| 285 | |||
| 286 | # | ||
| 287 | # At least one emulation must be selected | ||
| 288 | # | ||
| 289 | CONFIG_FPE_NWFPE=y | ||
| 290 | # CONFIG_FPE_NWFPE_XP is not set | ||
| 291 | # CONFIG_FPE_FASTFPE is not set | ||
| 292 | # CONFIG_VFP is not set | ||
| 293 | |||
| 294 | # | ||
| 295 | # Userspace binary formats | ||
| 296 | # | ||
| 297 | CONFIG_BINFMT_ELF=y | ||
| 298 | # CONFIG_BINFMT_AOUT is not set | ||
| 299 | # CONFIG_BINFMT_MISC is not set | ||
| 300 | |||
| 301 | # | ||
| 302 | # Power management options | ||
| 303 | # | ||
| 304 | CONFIG_PM=y | ||
| 305 | # CONFIG_PM_LEGACY is not set | ||
| 306 | # CONFIG_PM_DEBUG is not set | ||
| 307 | CONFIG_PM_SLEEP=y | ||
| 308 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
| 309 | CONFIG_SUSPEND=y | ||
| 310 | # CONFIG_APM_EMULATION is not set | ||
| 311 | |||
| 312 | # | ||
| 313 | # Networking | ||
| 314 | # | ||
| 315 | CONFIG_NET=y | ||
| 316 | |||
| 317 | # | ||
| 318 | # Networking options | ||
| 319 | # | ||
| 320 | CONFIG_PACKET=m | ||
| 321 | # CONFIG_PACKET_MMAP is not set | ||
| 322 | CONFIG_UNIX=y | ||
| 323 | CONFIG_XFRM=y | ||
| 324 | # CONFIG_XFRM_USER is not set | ||
| 325 | # CONFIG_XFRM_SUB_POLICY is not set | ||
| 326 | # CONFIG_XFRM_MIGRATE is not set | ||
| 327 | # CONFIG_NET_KEY is not set | ||
| 328 | CONFIG_INET=y | ||
| 329 | CONFIG_IP_MULTICAST=y | ||
| 330 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
| 331 | CONFIG_IP_FIB_HASH=y | ||
| 332 | CONFIG_IP_PNP=y | ||
| 333 | CONFIG_IP_PNP_DHCP=y | ||
| 334 | CONFIG_IP_PNP_BOOTP=y | ||
| 335 | # CONFIG_IP_PNP_RARP is not set | ||
| 336 | # CONFIG_NET_IPIP is not set | ||
| 337 | # CONFIG_NET_IPGRE is not set | ||
| 338 | # CONFIG_IP_MROUTE is not set | ||
| 339 | # CONFIG_ARPD is not set | ||
| 340 | # CONFIG_SYN_COOKIES is not set | ||
| 341 | # CONFIG_INET_AH is not set | ||
| 342 | # CONFIG_INET_ESP is not set | ||
| 343 | # CONFIG_INET_IPCOMP is not set | ||
| 344 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
| 345 | # CONFIG_INET_TUNNEL is not set | ||
| 346 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
| 347 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
| 348 | CONFIG_INET_XFRM_MODE_BEET=y | ||
| 349 | CONFIG_INET_DIAG=y | ||
| 350 | CONFIG_INET_TCP_DIAG=y | ||
| 351 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
| 352 | CONFIG_TCP_CONG_CUBIC=y | ||
| 353 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
| 354 | # CONFIG_TCP_MD5SIG is not set | ||
| 355 | # CONFIG_IPV6 is not set | ||
| 356 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
| 357 | # CONFIG_INET6_TUNNEL is not set | ||
| 358 | # CONFIG_NETWORK_SECMARK is not set | ||
| 359 | # CONFIG_NETFILTER is not set | ||
| 360 | # CONFIG_IP_DCCP is not set | ||
| 361 | # CONFIG_IP_SCTP is not set | ||
| 362 | # CONFIG_TIPC is not set | ||
| 363 | # CONFIG_ATM is not set | ||
| 364 | # CONFIG_BRIDGE is not set | ||
| 365 | # CONFIG_VLAN_8021Q is not set | ||
| 366 | # CONFIG_DECNET is not set | ||
| 367 | # CONFIG_LLC2 is not set | ||
| 368 | # CONFIG_IPX is not set | ||
| 369 | # CONFIG_ATALK is not set | ||
| 370 | # CONFIG_X25 is not set | ||
| 371 | # CONFIG_LAPB is not set | ||
| 372 | # CONFIG_ECONET is not set | ||
| 373 | # CONFIG_WAN_ROUTER is not set | ||
| 374 | |||
| 375 | # | ||
| 376 | # QoS and/or fair queueing | ||
| 377 | # | ||
| 378 | # CONFIG_NET_SCHED is not set | ||
| 379 | |||
| 380 | # | ||
| 381 | # Network testing | ||
| 382 | # | ||
| 383 | # CONFIG_NET_PKTGEN is not set | ||
| 384 | # CONFIG_HAMRADIO is not set | ||
| 385 | # CONFIG_IRDA is not set | ||
| 386 | # CONFIG_BT is not set | ||
| 387 | # CONFIG_AF_RXRPC is not set | ||
| 388 | |||
| 389 | # | ||
| 390 | # Wireless | ||
| 391 | # | ||
| 392 | # CONFIG_CFG80211 is not set | ||
| 393 | # CONFIG_WIRELESS_EXT is not set | ||
| 394 | # CONFIG_MAC80211 is not set | ||
| 395 | # CONFIG_IEEE80211 is not set | ||
| 396 | # CONFIG_RFKILL is not set | ||
| 397 | # CONFIG_NET_9P is not set | ||
| 398 | |||
| 399 | # | ||
| 400 | # Device Drivers | ||
| 401 | # | ||
| 402 | |||
| 403 | # | ||
| 404 | # Generic Driver Options | ||
| 405 | # | ||
| 406 | CONFIG_STANDALONE=y | ||
| 407 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
| 408 | CONFIG_FW_LOADER=y | ||
| 409 | # CONFIG_SYS_HYPERVISOR is not set | ||
| 410 | # CONFIG_CONNECTOR is not set | ||
| 411 | CONFIG_MTD=y | ||
| 412 | # CONFIG_MTD_DEBUG is not set | ||
| 413 | # CONFIG_MTD_CONCAT is not set | ||
| 414 | CONFIG_MTD_PARTITIONS=y | ||
| 415 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
| 416 | CONFIG_MTD_CMDLINE_PARTS=y | ||
| 417 | # CONFIG_MTD_AFS_PARTS is not set | ||
| 418 | |||
| 419 | # | ||
| 420 | # User Modules And Translation Layers | ||
| 421 | # | ||
| 422 | CONFIG_MTD_CHAR=y | ||
| 423 | CONFIG_MTD_BLKDEVS=y | ||
| 424 | CONFIG_MTD_BLOCK=y | ||
| 425 | # CONFIG_FTL is not set | ||
| 426 | # CONFIG_NFTL is not set | ||
| 427 | # CONFIG_INFTL is not set | ||
| 428 | # CONFIG_RFD_FTL is not set | ||
| 429 | # CONFIG_SSFDC is not set | ||
| 430 | |||
| 431 | # | ||
| 432 | # RAM/ROM/Flash chip drivers | ||
| 433 | # | ||
| 434 | CONFIG_MTD_CFI=y | ||
| 435 | # CONFIG_MTD_JEDECPROBE is not set | ||
| 436 | CONFIG_MTD_GEN_PROBE=y | ||
| 437 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
| 438 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
| 439 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
| 440 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
| 441 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
| 442 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
| 443 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
| 444 | CONFIG_MTD_CFI_I1=y | ||
| 445 | CONFIG_MTD_CFI_I2=y | ||
| 446 | # CONFIG_MTD_CFI_I4 is not set | ||
| 447 | # CONFIG_MTD_CFI_I8 is not set | ||
| 448 | CONFIG_MTD_CFI_INTELEXT=y | ||
| 449 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
| 450 | # CONFIG_MTD_CFI_STAA is not set | ||
| 451 | CONFIG_MTD_CFI_UTIL=y | ||
| 452 | # CONFIG_MTD_RAM is not set | ||
| 453 | # CONFIG_MTD_ROM is not set | ||
| 454 | # CONFIG_MTD_ABSENT is not set | ||
| 455 | |||
| 456 | # | ||
| 457 | # Mapping drivers for chip access | ||
| 458 | # | ||
| 459 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
| 460 | # CONFIG_MTD_PHYSMAP is not set | ||
| 461 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
| 462 | CONFIG_MTD_OMAP_NOR=y | ||
| 463 | # CONFIG_MTD_PLATRAM is not set | ||
| 464 | |||
| 465 | # | ||
| 466 | # Self-contained MTD device drivers | ||
| 467 | # | ||
| 468 | # CONFIG_MTD_SLRAM is not set | ||
| 469 | # CONFIG_MTD_PHRAM is not set | ||
| 470 | # CONFIG_MTD_MTDRAM is not set | ||
| 471 | # CONFIG_MTD_BLOCK2MTD is not set | ||
| 472 | |||
| 473 | # | ||
| 474 | # Disk-On-Chip Device Drivers | ||
| 475 | # | ||
| 476 | # CONFIG_MTD_DOC2000 is not set | ||
| 477 | # CONFIG_MTD_DOC2001 is not set | ||
| 478 | # CONFIG_MTD_DOC2001PLUS is not set | ||
| 479 | # CONFIG_MTD_NAND is not set | ||
| 480 | # CONFIG_MTD_ONENAND is not set | ||
| 481 | |||
| 482 | # | ||
| 483 | # UBI - Unsorted block images | ||
| 484 | # | ||
| 485 | # CONFIG_MTD_UBI is not set | ||
| 486 | # CONFIG_PARPORT is not set | ||
| 487 | CONFIG_BLK_DEV=y | ||
| 488 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
| 489 | CONFIG_BLK_DEV_LOOP=y | ||
| 490 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
| 491 | # CONFIG_BLK_DEV_NBD is not set | ||
| 492 | CONFIG_BLK_DEV_RAM=y | ||
| 493 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
| 494 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
| 495 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
| 496 | # CONFIG_CDROM_PKTCDVD is not set | ||
| 497 | # CONFIG_ATA_OVER_ETH is not set | ||
| 498 | CONFIG_IDE=m | ||
| 499 | CONFIG_BLK_DEV_IDE=m | ||
| 500 | |||
| 501 | # | ||
| 502 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
| 503 | # | ||
| 504 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
| 505 | CONFIG_BLK_DEV_IDEDISK=m | ||
| 506 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
| 507 | CONFIG_BLK_DEV_IDECS=m | ||
| 508 | # CONFIG_BLK_DEV_IDECD is not set | ||
| 509 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
| 510 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
| 511 | # CONFIG_IDE_TASK_IOCTL is not set | ||
| 512 | CONFIG_IDE_PROC_FS=y | ||
| 513 | |||
| 514 | # | ||
| 515 | # IDE chipset support/bugfixes | ||
| 516 | # | ||
| 517 | # CONFIG_IDE_GENERIC is not set | ||
| 518 | # CONFIG_IDEPCI_PCIBUS_ORDER is not set | ||
| 519 | # CONFIG_IDE_ARM is not set | ||
| 520 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
| 521 | # CONFIG_BLK_DEV_HD is not set | ||
| 522 | |||
| 523 | # | ||
| 524 | # SCSI device support | ||
| 525 | # | ||
| 526 | # CONFIG_RAID_ATTRS is not set | ||
| 527 | # CONFIG_SCSI is not set | ||
| 528 | # CONFIG_SCSI_DMA is not set | ||
| 529 | # CONFIG_SCSI_NETLINK is not set | ||
| 530 | # CONFIG_ATA is not set | ||
| 531 | # CONFIG_MD is not set | ||
| 532 | CONFIG_NETDEVICES=y | ||
| 533 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
| 534 | # CONFIG_DUMMY is not set | ||
| 535 | # CONFIG_BONDING is not set | ||
| 536 | # CONFIG_MACVLAN is not set | ||
| 537 | # CONFIG_EQUALIZER is not set | ||
| 538 | # CONFIG_TUN is not set | ||
| 539 | # CONFIG_PHYLIB is not set | ||
| 540 | CONFIG_NET_ETHERNET=y | ||
| 541 | CONFIG_MII=y | ||
| 542 | # CONFIG_AX88796 is not set | ||
| 543 | CONFIG_SMC91X=y | ||
| 544 | # CONFIG_DM9000 is not set | ||
| 545 | CONFIG_NETDEV_1000=y | ||
| 546 | CONFIG_NETDEV_10000=y | ||
| 547 | |||
| 548 | # | ||
| 549 | # Wireless LAN | ||
| 550 | # | ||
| 551 | # CONFIG_WLAN_PRE80211 is not set | ||
| 552 | # CONFIG_WLAN_80211 is not set | ||
| 553 | # CONFIG_NET_PCMCIA is not set | ||
| 554 | # CONFIG_WAN is not set | ||
| 555 | CONFIG_PPP=y | ||
| 556 | CONFIG_PPP_MULTILINK=y | ||
| 557 | # CONFIG_PPP_FILTER is not set | ||
| 558 | # CONFIG_PPP_ASYNC is not set | ||
| 559 | # CONFIG_PPP_SYNC_TTY is not set | ||
| 560 | # CONFIG_PPP_DEFLATE is not set | ||
| 561 | # CONFIG_PPP_BSDCOMP is not set | ||
| 562 | # CONFIG_PPP_MPPE is not set | ||
| 563 | # CONFIG_PPPOE is not set | ||
| 564 | # CONFIG_PPPOL2TP is not set | ||
| 565 | # CONFIG_SLIP is not set | ||
| 566 | CONFIG_SLHC=y | ||
| 567 | # CONFIG_SHAPER is not set | ||
| 568 | # CONFIG_NETCONSOLE is not set | ||
| 569 | # CONFIG_NETPOLL is not set | ||
| 570 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
| 571 | # CONFIG_ISDN is not set | ||
| 572 | |||
| 573 | # | ||
| 574 | # Input device support | ||
| 575 | # | ||
| 576 | CONFIG_INPUT=y | ||
| 577 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
| 578 | # CONFIG_INPUT_POLLDEV is not set | ||
| 579 | |||
| 580 | # | ||
| 581 | # Userland interfaces | ||
| 582 | # | ||
| 583 | CONFIG_INPUT_MOUSEDEV=y | ||
| 584 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
| 585 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
| 586 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
| 587 | # CONFIG_INPUT_JOYDEV is not set | ||
| 588 | # CONFIG_INPUT_TSDEV is not set | ||
| 589 | CONFIG_INPUT_EVDEV=y | ||
| 590 | # CONFIG_INPUT_EVBUG is not set | ||
| 591 | |||
| 592 | # | ||
| 593 | # Input Device Drivers | ||
| 594 | # | ||
| 595 | CONFIG_INPUT_KEYBOARD=y | ||
| 596 | # CONFIG_KEYBOARD_ATKBD is not set | ||
| 597 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
| 598 | # CONFIG_KEYBOARD_LKKBD is not set | ||
| 599 | # CONFIG_KEYBOARD_XTKBD is not set | ||
| 600 | # CONFIG_KEYBOARD_NEWTON is not set | ||
| 601 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
| 602 | CONFIG_KEYBOARD_OMAP=y | ||
| 603 | # CONFIG_KEYBOARD_GPIO is not set | ||
| 604 | # CONFIG_INPUT_MOUSE is not set | ||
| 605 | # CONFIG_INPUT_JOYSTICK is not set | ||
| 606 | # CONFIG_INPUT_TABLET is not set | ||
| 607 | CONFIG_INPUT_TOUCHSCREEN=y | ||
| 608 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
| 609 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
| 610 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
| 611 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
| 612 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
| 613 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
| 614 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
| 615 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
| 616 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
| 617 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
| 618 | # CONFIG_INPUT_MISC is not set | ||
| 619 | |||
| 620 | # | ||
| 621 | # Hardware I/O ports | ||
| 622 | # | ||
| 623 | # CONFIG_SERIO is not set | ||
| 624 | # CONFIG_GAMEPORT is not set | ||
| 625 | |||
| 626 | # | ||
| 627 | # Character devices | ||
| 628 | # | ||
| 629 | CONFIG_VT=y | ||
| 630 | CONFIG_VT_CONSOLE=y | ||
| 631 | CONFIG_HW_CONSOLE=y | ||
| 632 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
| 633 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
| 634 | |||
| 635 | # | ||
| 636 | # Serial drivers | ||
| 637 | # | ||
| 638 | CONFIG_SERIAL_8250=y | ||
| 639 | CONFIG_SERIAL_8250_CONSOLE=y | ||
| 640 | # CONFIG_SERIAL_8250_CS is not set | ||
| 641 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
| 642 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
| 643 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
| 644 | |||
| 645 | # | ||
| 646 | # Non-8250 serial port support | ||
| 647 | # | ||
| 648 | CONFIG_SERIAL_CORE=y | ||
| 649 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
| 650 | CONFIG_UNIX98_PTYS=y | ||
| 651 | CONFIG_LEGACY_PTYS=y | ||
| 652 | CONFIG_LEGACY_PTY_COUNT=256 | ||
| 653 | # CONFIG_IPMI_HANDLER is not set | ||
| 654 | # CONFIG_WATCHDOG is not set | ||
| 655 | CONFIG_HW_RANDOM=m | ||
| 656 | CONFIG_HW_RANDOM_OMAP=m | ||
| 657 | # CONFIG_NVRAM is not set | ||
| 658 | # CONFIG_R3964 is not set | ||
| 659 | |||
| 660 | # | ||
| 661 | # PCMCIA character devices | ||
| 662 | # | ||
| 663 | # CONFIG_SYNCLINK_CS is not set | ||
| 664 | # CONFIG_CARDMAN_4000 is not set | ||
| 665 | # CONFIG_CARDMAN_4040 is not set | ||
| 666 | # CONFIG_RAW_DRIVER is not set | ||
| 667 | # CONFIG_TCG_TPM is not set | ||
| 668 | CONFIG_I2C=y | ||
| 669 | CONFIG_I2C_BOARDINFO=y | ||
| 670 | CONFIG_I2C_CHARDEV=y | ||
| 671 | |||
| 672 | # | ||
| 673 | # I2C Algorithms | ||
| 674 | # | ||
| 675 | # CONFIG_I2C_ALGOBIT is not set | ||
| 676 | # CONFIG_I2C_ALGOPCF is not set | ||
| 677 | # CONFIG_I2C_ALGOPCA is not set | ||
| 678 | |||
| 679 | # | ||
| 680 | # I2C Hardware Bus support | ||
| 681 | # | ||
| 682 | # CONFIG_I2C_GPIO is not set | ||
| 683 | # CONFIG_I2C_OCORES is not set | ||
| 684 | CONFIG_I2C_OMAP=y | ||
| 685 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
| 686 | # CONFIG_I2C_SIMTEC is not set | ||
| 687 | # CONFIG_I2C_TAOS_EVM is not set | ||
| 688 | # CONFIG_I2C_STUB is not set | ||
| 689 | |||
| 690 | # | ||
| 691 | # Miscellaneous I2C Chip support | ||
| 692 | # | ||
| 693 | # CONFIG_SENSORS_DS1337 is not set | ||
| 694 | # CONFIG_SENSORS_DS1374 is not set | ||
| 695 | # CONFIG_DS1682 is not set | ||
| 696 | # CONFIG_SENSORS_EEPROM is not set | ||
| 697 | # CONFIG_SENSORS_PCF8574 is not set | ||
| 698 | # CONFIG_SENSORS_PCA9539 is not set | ||
| 699 | # CONFIG_SENSORS_PCF8591 is not set | ||
| 700 | # CONFIG_ISP1301_OMAP is not set | ||
| 701 | CONFIG_TPS65010=y | ||
| 702 | # CONFIG_SENSORS_MAX6875 is not set | ||
| 703 | # CONFIG_SENSORS_TSL2550 is not set | ||
| 704 | # CONFIG_I2C_DEBUG_CORE is not set | ||
| 705 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
| 706 | # CONFIG_I2C_DEBUG_BUS is not set | ||
| 707 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
| 708 | |||
| 709 | # | ||
| 710 | # SPI support | ||
| 711 | # | ||
| 712 | # CONFIG_SPI is not set | ||
| 713 | # CONFIG_SPI_MASTER is not set | ||
| 714 | # CONFIG_W1 is not set | ||
| 715 | CONFIG_HWMON=y | ||
| 716 | # CONFIG_HWMON_VID is not set | ||
| 717 | # CONFIG_SENSORS_ABITUGURU is not set | ||
| 718 | # CONFIG_SENSORS_ABITUGURU3 is not set | ||
| 719 | # CONFIG_SENSORS_AD7418 is not set | ||
| 720 | # CONFIG_SENSORS_ADM1021 is not set | ||
| 721 | # CONFIG_SENSORS_ADM1025 is not set | ||
| 722 | # CONFIG_SENSORS_ADM1026 is not set | ||
| 723 | # CONFIG_SENSORS_ADM1029 is not set | ||
| 724 | # CONFIG_SENSORS_ADM1031 is not set | ||
| 725 | # CONFIG_SENSORS_ADM9240 is not set | ||
| 726 | # CONFIG_SENSORS_ASB100 is not set | ||
| 727 | # CONFIG_SENSORS_ATXP1 is not set | ||
| 728 | # CONFIG_SENSORS_DS1621 is not set | ||
| 729 | # CONFIG_SENSORS_F71805F is not set | ||
| 730 | # CONFIG_SENSORS_FSCHER is not set | ||
| 731 | # CONFIG_SENSORS_FSCPOS is not set | ||
| 732 | # CONFIG_SENSORS_GL518SM is not set | ||
| 733 | # CONFIG_SENSORS_GL520SM is not set | ||
| 734 | # CONFIG_SENSORS_IT87 is not set | ||
| 735 | # CONFIG_SENSORS_LM63 is not set | ||
| 736 | # CONFIG_SENSORS_LM75 is not set | ||
| 737 | # CONFIG_SENSORS_LM77 is not set | ||
| 738 | # CONFIG_SENSORS_LM78 is not set | ||
| 739 | # CONFIG_SENSORS_LM80 is not set | ||
| 740 | # CONFIG_SENSORS_LM83 is not set | ||
| 741 | # CONFIG_SENSORS_LM85 is not set | ||
| 742 | # CONFIG_SENSORS_LM87 is not set | ||
| 743 | # CONFIG_SENSORS_LM90 is not set | ||
| 744 | # CONFIG_SENSORS_LM92 is not set | ||
| 745 | # CONFIG_SENSORS_LM93 is not set | ||
| 746 | # CONFIG_SENSORS_MAX1619 is not set | ||
| 747 | # CONFIG_SENSORS_MAX6650 is not set | ||
| 748 | # CONFIG_SENSORS_PC87360 is not set | ||
| 749 | # CONFIG_SENSORS_PC87427 is not set | ||
| 750 | # CONFIG_SENSORS_DME1737 is not set | ||
| 751 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
| 752 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
| 753 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
| 754 | # CONFIG_SENSORS_THMC50 is not set | ||
| 755 | # CONFIG_SENSORS_VT1211 is not set | ||
| 756 | # CONFIG_SENSORS_W83781D is not set | ||
| 757 | # CONFIG_SENSORS_W83791D is not set | ||
| 758 | # CONFIG_SENSORS_W83792D is not set | ||
| 759 | # CONFIG_SENSORS_W83793 is not set | ||
| 760 | # CONFIG_SENSORS_W83L785TS is not set | ||
| 761 | # CONFIG_SENSORS_W83627HF is not set | ||
| 762 | # CONFIG_SENSORS_W83627EHF is not set | ||
| 763 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
| 764 | CONFIG_MISC_DEVICES=y | ||
| 765 | # CONFIG_EEPROM_93CX6 is not set | ||
| 766 | |||
| 767 | # | ||
| 768 | # Multifunction device drivers | ||
| 769 | # | ||
| 770 | # CONFIG_MFD_SM501 is not set | ||
| 771 | # CONFIG_NEW_LEDS is not set | ||
| 772 | |||
| 773 | # | ||
| 774 | # Multimedia devices | ||
| 775 | # | ||
| 776 | # CONFIG_VIDEO_DEV is not set | ||
| 777 | # CONFIG_DVB_CORE is not set | ||
| 778 | CONFIG_DAB=y | ||
| 779 | |||
| 780 | # | ||
| 781 | # Graphics support | ||
| 782 | # | ||
| 783 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
| 784 | |||
| 785 | # | ||
| 786 | # Display device support | ||
| 787 | # | ||
| 788 | # CONFIG_DISPLAY_SUPPORT is not set | ||
| 789 | # CONFIG_VGASTATE is not set | ||
| 790 | CONFIG_VIDEO_OUTPUT_CONTROL=m | ||
| 791 | CONFIG_FB=y | ||
| 792 | CONFIG_FIRMWARE_EDID=y | ||
| 793 | # CONFIG_FB_DDC is not set | ||
| 794 | # CONFIG_FB_CFB_FILLRECT is not set | ||
| 795 | # CONFIG_FB_CFB_COPYAREA is not set | ||
| 796 | # CONFIG_FB_CFB_IMAGEBLIT is not set | ||
| 797 | # CONFIG_FB_SYS_FILLRECT is not set | ||
| 798 | # CONFIG_FB_SYS_COPYAREA is not set | ||
| 799 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
| 800 | # CONFIG_FB_SYS_FOPS is not set | ||
| 801 | CONFIG_FB_DEFERRED_IO=y | ||
| 802 | # CONFIG_FB_SVGALIB is not set | ||
| 803 | # CONFIG_FB_MACMODES is not set | ||
| 804 | # CONFIG_FB_BACKLIGHT is not set | ||
| 805 | CONFIG_FB_MODE_HELPERS=y | ||
| 806 | # CONFIG_FB_TILEBLITTING is not set | ||
| 807 | |||
| 808 | # | ||
| 809 | # Frame buffer hardware drivers | ||
| 810 | # | ||
| 811 | # CONFIG_FB_S1D13XXX is not set | ||
| 812 | # CONFIG_FB_OMAP is not set | ||
| 813 | # CONFIG_FB_VIRTUAL is not set | ||
| 814 | |||
| 815 | # | ||
| 816 | # Console display driver support | ||
| 817 | # | ||
| 818 | # CONFIG_VGA_CONSOLE is not set | ||
| 819 | CONFIG_DUMMY_CONSOLE=y | ||
| 820 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
| 821 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
| 822 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
| 823 | CONFIG_FONTS=y | ||
| 824 | CONFIG_FONT_8x8=y | ||
| 825 | # CONFIG_FONT_8x16 is not set | ||
| 826 | # CONFIG_FONT_6x11 is not set | ||
| 827 | # CONFIG_FONT_7x14 is not set | ||
| 828 | # CONFIG_FONT_PEARL_8x8 is not set | ||
| 829 | # CONFIG_FONT_ACORN_8x8 is not set | ||
| 830 | # CONFIG_FONT_MINI_4x6 is not set | ||
| 831 | # CONFIG_FONT_SUN8x16 is not set | ||
| 832 | # CONFIG_FONT_SUN12x22 is not set | ||
| 833 | # CONFIG_FONT_10x18 is not set | ||
| 834 | CONFIG_LOGO=y | ||
| 835 | # CONFIG_LOGO_LINUX_MONO is not set | ||
| 836 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
| 837 | CONFIG_LOGO_LINUX_CLUT224=y | ||
| 838 | |||
| 839 | # | ||
| 840 | # Sound | ||
| 841 | # | ||
| 842 | # CONFIG_SOUND is not set | ||
| 843 | CONFIG_HID_SUPPORT=y | ||
| 844 | CONFIG_HID=y | ||
| 845 | CONFIG_HID_DEBUG=y | ||
| 846 | CONFIG_USB_SUPPORT=y | ||
| 847 | CONFIG_USB_ARCH_HAS_HCD=y | ||
| 848 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
| 849 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
| 850 | # CONFIG_USB is not set | ||
| 851 | |||
| 852 | # | ||
| 853 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
| 854 | # | ||
| 855 | |||
| 856 | # | ||
| 857 | # USB Gadget Support | ||
| 858 | # | ||
| 859 | # CONFIG_USB_GADGET is not set | ||
| 860 | # CONFIG_MMC is not set | ||
| 861 | CONFIG_RTC_LIB=y | ||
| 862 | # CONFIG_RTC_CLASS is not set | ||
| 863 | |||
| 864 | # | ||
| 865 | # DMA Engine support | ||
| 866 | # | ||
| 867 | # CONFIG_DMA_ENGINE is not set | ||
| 868 | |||
| 869 | # | ||
| 870 | # DMA Clients | ||
| 871 | # | ||
| 872 | |||
| 873 | # | ||
| 874 | # DMA Devices | ||
| 875 | # | ||
| 876 | |||
| 877 | # | ||
| 878 | # File systems | ||
| 879 | # | ||
| 880 | CONFIG_EXT2_FS=y | ||
| 881 | # CONFIG_EXT2_FS_XATTR is not set | ||
| 882 | # CONFIG_EXT2_FS_XIP is not set | ||
| 883 | # CONFIG_EXT3_FS is not set | ||
| 884 | # CONFIG_EXT4DEV_FS is not set | ||
| 885 | # CONFIG_REISERFS_FS is not set | ||
| 886 | # CONFIG_JFS_FS is not set | ||
| 887 | # CONFIG_FS_POSIX_ACL is not set | ||
| 888 | # CONFIG_XFS_FS is not set | ||
| 889 | # CONFIG_GFS2_FS is not set | ||
| 890 | # CONFIG_OCFS2_FS is not set | ||
| 891 | # CONFIG_MINIX_FS is not set | ||
| 892 | # CONFIG_ROMFS_FS is not set | ||
| 893 | CONFIG_INOTIFY=y | ||
| 894 | CONFIG_INOTIFY_USER=y | ||
| 895 | # CONFIG_QUOTA is not set | ||
| 896 | CONFIG_DNOTIFY=y | ||
| 897 | CONFIG_AUTOFS_FS=y | ||
| 898 | CONFIG_AUTOFS4_FS=y | ||
| 899 | # CONFIG_FUSE_FS is not set | ||
| 900 | |||
| 901 | # | ||
| 902 | # CD-ROM/DVD Filesystems | ||
| 903 | # | ||
| 904 | # CONFIG_ISO9660_FS is not set | ||
| 905 | # CONFIG_UDF_FS is not set | ||
| 906 | |||
| 907 | # | ||
| 908 | # DOS/FAT/NT Filesystems | ||
| 909 | # | ||
| 910 | CONFIG_FAT_FS=m | ||
| 911 | CONFIG_MSDOS_FS=m | ||
| 912 | CONFIG_VFAT_FS=m | ||
| 913 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
| 914 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
| 915 | # CONFIG_NTFS_FS is not set | ||
| 916 | |||
| 917 | # | ||
| 918 | # Pseudo filesystems | ||
| 919 | # | ||
| 920 | CONFIG_PROC_FS=y | ||
| 921 | CONFIG_PROC_SYSCTL=y | ||
| 922 | CONFIG_SYSFS=y | ||
| 923 | # CONFIG_TMPFS is not set | ||
| 924 | # CONFIG_HUGETLB_PAGE is not set | ||
| 925 | CONFIG_RAMFS=y | ||
| 926 | # CONFIG_CONFIGFS_FS is not set | ||
| 927 | |||
| 928 | # | ||
| 929 | # Miscellaneous filesystems | ||
| 930 | # | ||
| 931 | # CONFIG_ADFS_FS is not set | ||
| 932 | # CONFIG_AFFS_FS is not set | ||
| 933 | # CONFIG_HFS_FS is not set | ||
| 934 | # CONFIG_HFSPLUS_FS is not set | ||
| 935 | # CONFIG_BEFS_FS is not set | ||
| 936 | # CONFIG_BFS_FS is not set | ||
| 937 | # CONFIG_EFS_FS is not set | ||
| 938 | CONFIG_JFFS2_FS=y | ||
| 939 | CONFIG_JFFS2_FS_DEBUG=0 | ||
| 940 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
| 941 | # CONFIG_JFFS2_SUMMARY is not set | ||
| 942 | # CONFIG_JFFS2_FS_XATTR is not set | ||
| 943 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
| 944 | CONFIG_JFFS2_ZLIB=y | ||
| 945 | CONFIG_JFFS2_RTIME=y | ||
| 946 | # CONFIG_JFFS2_RUBIN is not set | ||
| 947 | # CONFIG_CRAMFS is not set | ||
| 948 | # CONFIG_VXFS_FS is not set | ||
| 949 | # CONFIG_HPFS_FS is not set | ||
| 950 | # CONFIG_QNX4FS_FS is not set | ||
| 951 | # CONFIG_SYSV_FS is not set | ||
| 952 | # CONFIG_UFS_FS is not set | ||
| 953 | |||
| 954 | # | ||
| 955 | # Network File Systems | ||
| 956 | # | ||
| 957 | CONFIG_NFS_FS=y | ||
| 958 | CONFIG_NFS_V3=y | ||
| 959 | # CONFIG_NFS_V3_ACL is not set | ||
| 960 | # CONFIG_NFS_V4 is not set | ||
| 961 | # CONFIG_NFS_DIRECTIO is not set | ||
| 962 | # CONFIG_NFSD is not set | ||
| 963 | CONFIG_ROOT_NFS=y | ||
| 964 | CONFIG_LOCKD=y | ||
| 965 | CONFIG_LOCKD_V4=y | ||
| 966 | CONFIG_NFS_COMMON=y | ||
| 967 | CONFIG_SUNRPC=y | ||
| 968 | # CONFIG_SUNRPC_BIND34 is not set | ||
| 969 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
| 970 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
| 971 | # CONFIG_SMB_FS is not set | ||
| 972 | # CONFIG_CIFS is not set | ||
| 973 | # CONFIG_NCP_FS is not set | ||
| 974 | # CONFIG_CODA_FS is not set | ||
| 975 | # CONFIG_AFS_FS is not set | ||
| 976 | |||
| 977 | # | ||
| 978 | # Partition Types | ||
| 979 | # | ||
| 980 | # CONFIG_PARTITION_ADVANCED is not set | ||
| 981 | CONFIG_MSDOS_PARTITION=y | ||
| 982 | |||
| 983 | # | ||
| 984 | # Native Language Support | ||
| 985 | # | ||
| 986 | CONFIG_NLS=m | ||
| 987 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
| 988 | CONFIG_NLS_CODEPAGE_437=m | ||
| 989 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
| 990 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
| 991 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
| 992 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
| 993 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
| 994 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
| 995 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
| 996 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
| 997 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
| 998 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
| 999 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
| 1000 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
| 1001 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
| 1002 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
| 1003 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
| 1004 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
| 1005 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
| 1006 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
| 1007 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
| 1008 | # CONFIG_NLS_ISO8859_8 is not set | ||
| 1009 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
| 1010 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
| 1011 | # CONFIG_NLS_ASCII is not set | ||
| 1012 | CONFIG_NLS_ISO8859_1=m | ||
| 1013 | # CONFIG_NLS_ISO8859_2 is not set | ||
| 1014 | # CONFIG_NLS_ISO8859_3 is not set | ||
| 1015 | # CONFIG_NLS_ISO8859_4 is not set | ||
| 1016 | # CONFIG_NLS_ISO8859_5 is not set | ||
| 1017 | # CONFIG_NLS_ISO8859_6 is not set | ||
| 1018 | # CONFIG_NLS_ISO8859_7 is not set | ||
| 1019 | # CONFIG_NLS_ISO8859_9 is not set | ||
| 1020 | # CONFIG_NLS_ISO8859_13 is not set | ||
| 1021 | # CONFIG_NLS_ISO8859_14 is not set | ||
| 1022 | # CONFIG_NLS_ISO8859_15 is not set | ||
| 1023 | # CONFIG_NLS_KOI8_R is not set | ||
| 1024 | # CONFIG_NLS_KOI8_U is not set | ||
| 1025 | # CONFIG_NLS_UTF8 is not set | ||
| 1026 | |||
| 1027 | # | ||
| 1028 | # Distributed Lock Manager | ||
| 1029 | # | ||
| 1030 | # CONFIG_DLM is not set | ||
| 1031 | |||
| 1032 | # | ||
| 1033 | # Profiling support | ||
| 1034 | # | ||
| 1035 | # CONFIG_PROFILING is not set | ||
| 1036 | |||
| 1037 | # | ||
| 1038 | # Kernel hacking | ||
| 1039 | # | ||
| 1040 | # CONFIG_PRINTK_TIME is not set | ||
| 1041 | CONFIG_ENABLE_MUST_CHECK=y | ||
| 1042 | # CONFIG_MAGIC_SYSRQ is not set | ||
| 1043 | # CONFIG_UNUSED_SYMBOLS is not set | ||
| 1044 | # CONFIG_DEBUG_FS is not set | ||
| 1045 | # CONFIG_HEADERS_CHECK is not set | ||
| 1046 | # CONFIG_DEBUG_KERNEL is not set | ||
| 1047 | CONFIG_DEBUG_BUGVERBOSE=y | ||
| 1048 | CONFIG_FRAME_POINTER=y | ||
| 1049 | # CONFIG_DEBUG_USER is not set | ||
| 1050 | |||
| 1051 | # | ||
| 1052 | # Security options | ||
| 1053 | # | ||
| 1054 | # CONFIG_KEYS is not set | ||
| 1055 | # CONFIG_SECURITY is not set | ||
| 1056 | # CONFIG_CRYPTO is not set | ||
| 1057 | |||
| 1058 | # | ||
| 1059 | # Library routines | ||
| 1060 | # | ||
| 1061 | CONFIG_BITREVERSE=y | ||
| 1062 | # CONFIG_CRC_CCITT is not set | ||
| 1063 | # CONFIG_CRC16 is not set | ||
| 1064 | # CONFIG_CRC_ITU_T is not set | ||
| 1065 | CONFIG_CRC32=y | ||
| 1066 | # CONFIG_CRC7 is not set | ||
| 1067 | # CONFIG_LIBCRC32C is not set | ||
| 1068 | CONFIG_ZLIB_INFLATE=y | ||
| 1069 | CONFIG_ZLIB_DEFLATE=y | ||
| 1070 | CONFIG_PLIST=y | ||
| 1071 | CONFIG_HAS_IOMEM=y | ||
| 1072 | CONFIG_HAS_IOPORT=y | ||
| 1073 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/mach-omap1/Kconfig b/arch/arm/mach-omap1/Kconfig index f6ecdd3a2478..79f0b1f8497b 100644 --- a/arch/arm/mach-omap1/Kconfig +++ b/arch/arm/mach-omap1/Kconfig | |||
| @@ -84,11 +84,39 @@ config MACH_OMAP_PALMTE | |||
| 84 | bool "Palm Tungsten E" | 84 | bool "Palm Tungsten E" |
| 85 | depends on ARCH_OMAP1 && ARCH_OMAP15XX | 85 | depends on ARCH_OMAP1 && ARCH_OMAP15XX |
| 86 | help | 86 | help |
| 87 | Support for the Palm Tungsten E PDA. Currently only the LCD panel | 87 | Support for the Palm Tungsten E PDA. To boot the kernel, you'll |
| 88 | is supported. To boot the kernel, you'll need a PalmOS compatible | 88 | need a PalmOS compatible bootloader; check out |
| 89 | bootloader; check out http://palmtelinux.sourceforge.net for more | 89 | http://palmtelinux.sourceforge.net/ for more information. |
| 90 | information. | 90 | Say Y here if you have this PDA model, say N otherwise. |
| 91 | Say Y here if you have such a PDA, say NO otherwise. | 91 | |
| 92 | config MACH_OMAP_PALMZ71 | ||
| 93 | bool "Palm Zire71" | ||
| 94 | depends on ARCH_OMAP1 && ARCH_OMAP15XX | ||
| 95 | help | ||
| 96 | Support for the Palm Zire71 PDA. To boot the kernel, | ||
| 97 | you'll need a PalmOS compatible bootloader; check out | ||
| 98 | http://hackndev.com/palm/z71 for more informations. | ||
| 99 | Say Y here if you have such a PDA, say N otherwise. | ||
| 100 | |||
| 101 | config MACH_OMAP_PALMTT | ||
| 102 | bool "Palm Tungsten|T" | ||
| 103 | depends on ARCH_OMAP1 && ARCH_OMAP15XX | ||
| 104 | help | ||
| 105 | Support for the Palm Tungsten|T PDA. To boot the kernel, you'll | ||
| 106 | need a PalmOS compatible bootloader (Garux); check out | ||
| 107 | http://www.hackndev.com/palm/tt/ for more information. | ||
| 108 | Say Y here if you have this PDA model, say N otherwise. | ||
| 109 | |||
| 110 | config MACH_SX1 | ||
| 111 | bool "Siemens SX1" | ||
| 112 | depends on ARCH_OMAP1 && ARCH_OMAP15XX | ||
| 113 | help | ||
| 114 | Support for the Siemens SX1 phone. To boot the kernel, | ||
| 115 | you'll need a SX1 compatible bootloader; check out | ||
| 116 | http://forum.oslik.ru and | ||
| 117 | http://www.handhelds.org/moin/moin.cgi/SiemensSX1 | ||
| 118 | for more information. | ||
| 119 | Say Y here if you have such a phone, say NO otherwise. | ||
| 92 | 120 | ||
| 93 | config MACH_NOKIA770 | 121 | config MACH_NOKIA770 |
| 94 | bool "Nokia 770" | 122 | bool "Nokia 770" |
diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index a8b9a00cea22..391b6f4827f6 100644 --- a/arch/arm/mach-omap1/Makefile +++ b/arch/arm/mach-omap1/Makefile | |||
| @@ -22,8 +22,11 @@ obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o | |||
| 22 | obj-$(CONFIG_MACH_OMAP_H3) += board-h3.o | 22 | obj-$(CONFIG_MACH_OMAP_H3) += board-h3.o |
| 23 | obj-$(CONFIG_MACH_VOICEBLUE) += board-voiceblue.o | 23 | obj-$(CONFIG_MACH_VOICEBLUE) += board-voiceblue.o |
| 24 | obj-$(CONFIG_MACH_OMAP_PALMTE) += board-palmte.o | 24 | obj-$(CONFIG_MACH_OMAP_PALMTE) += board-palmte.o |
| 25 | obj-$(CONFIG_MACH_OMAP_PALMZ71) += board-palmz71.o | ||
| 26 | obj-$(CONFIG_MACH_OMAP_PALMTT) += board-palmtt.o | ||
| 25 | obj-$(CONFIG_MACH_NOKIA770) += board-nokia770.o | 27 | obj-$(CONFIG_MACH_NOKIA770) += board-nokia770.o |
| 26 | obj-$(CONFIG_MACH_AMS_DELTA) += board-ams-delta.o | 28 | obj-$(CONFIG_MACH_AMS_DELTA) += board-ams-delta.o |
| 29 | obj-$(CONFIG_MACH_SX1) += board-sx1.o | ||
| 27 | 30 | ||
| 28 | ifeq ($(CONFIG_ARCH_OMAP15XX),y) | 31 | ifeq ($(CONFIG_ARCH_OMAP15XX),y) |
| 29 | # Innovator-1510 FPGA | 32 | # Innovator-1510 FPGA |
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 8437d065ada5..c73ca61e585e 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
| 16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 17 | #include <linux/input.h> | ||
| 17 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
| 18 | 19 | ||
| 19 | #include <asm/hardware.h> | 20 | #include <asm/hardware.h> |
| @@ -23,6 +24,7 @@ | |||
| 23 | 24 | ||
| 24 | #include <asm/arch/board-ams-delta.h> | 25 | #include <asm/arch/board-ams-delta.h> |
| 25 | #include <asm/arch/gpio.h> | 26 | #include <asm/arch/gpio.h> |
| 27 | #include <asm/arch/keypad.h> | ||
| 26 | #include <asm/arch/mux.h> | 28 | #include <asm/arch/mux.h> |
| 27 | #include <asm/arch/usb.h> | 29 | #include <asm/arch/usb.h> |
| 28 | #include <asm/arch/board.h> | 30 | #include <asm/arch/board.h> |
| @@ -31,6 +33,86 @@ | |||
| 31 | static u8 ams_delta_latch1_reg; | 33 | static u8 ams_delta_latch1_reg; |
| 32 | static u16 ams_delta_latch2_reg; | 34 | static u16 ams_delta_latch2_reg; |
| 33 | 35 | ||
| 36 | static int ams_delta_keymap[] = { | ||
| 37 | KEY(0, 0, KEY_F1), /* Advert */ | ||
| 38 | |||
| 39 | KEY(3, 0, KEY_COFFEE), /* Games */ | ||
| 40 | KEY(2, 0, KEY_QUESTION), /* Directory */ | ||
| 41 | KEY(3, 2, KEY_CONNECT), /* Internet */ | ||
| 42 | KEY(2, 1, KEY_SHOP), /* Services */ | ||
| 43 | KEY(1, 1, KEY_PHONE), /* VoiceMail */ | ||
| 44 | |||
| 45 | KEY(1, 0, KEY_DELETE), /* Delete */ | ||
| 46 | KEY(2, 2, KEY_PLAY), /* Play */ | ||
| 47 | KEY(0, 1, KEY_PAGEUP), /* Up */ | ||
| 48 | KEY(3, 1, KEY_PAGEDOWN), /* Down */ | ||
| 49 | KEY(0, 2, KEY_EMAIL), /* ReadEmail */ | ||
| 50 | KEY(1, 2, KEY_STOP), /* Stop */ | ||
| 51 | |||
| 52 | /* Numeric keypad portion */ | ||
| 53 | KEY(7, 0, KEY_KP1), | ||
| 54 | KEY(6, 0, KEY_KP2), | ||
| 55 | KEY(5, 0, KEY_KP3), | ||
| 56 | KEY(7, 1, KEY_KP4), | ||
| 57 | KEY(6, 1, KEY_KP5), | ||
| 58 | KEY(5, 1, KEY_KP6), | ||
| 59 | KEY(7, 2, KEY_KP7), | ||
| 60 | KEY(6, 2, KEY_KP8), | ||
| 61 | KEY(5, 2, KEY_KP9), | ||
| 62 | KEY(6, 3, KEY_KP0), | ||
| 63 | KEY(7, 3, KEY_KPASTERISK), | ||
| 64 | KEY(5, 3, KEY_KPDOT), /* # key */ | ||
| 65 | KEY(2, 7, KEY_NUMLOCK), /* Mute */ | ||
| 66 | KEY(1, 7, KEY_KPMINUS), /* Recall */ | ||
| 67 | KEY(1, 6, KEY_KPPLUS), /* Redial */ | ||
| 68 | KEY(6, 7, KEY_KPSLASH), /* Handsfree */ | ||
| 69 | KEY(0, 6, KEY_ENTER), /* Video */ | ||
| 70 | |||
| 71 | KEY(4, 7, KEY_CAMERA), /* Photo */ | ||
| 72 | |||
| 73 | KEY(4, 0, KEY_F2), /* Home */ | ||
| 74 | KEY(4, 1, KEY_F3), /* Office */ | ||
| 75 | KEY(4, 2, KEY_F4), /* Mobile */ | ||
| 76 | KEY(7, 7, KEY_F5), /* SMS */ | ||
| 77 | KEY(5, 7, KEY_F6), /* Email */ | ||
| 78 | |||
| 79 | /* QWERTY portion of keypad */ | ||
| 80 | KEY(4, 3, KEY_Q), | ||
| 81 | KEY(3, 3, KEY_W), | ||
| 82 | KEY(2, 3, KEY_E), | ||
| 83 | KEY(1, 3, KEY_R), | ||
| 84 | KEY(0, 3, KEY_T), | ||
| 85 | KEY(7, 4, KEY_Y), | ||
| 86 | KEY(6, 4, KEY_U), | ||
| 87 | KEY(5, 4, KEY_I), | ||
| 88 | KEY(4, 4, KEY_O), | ||
| 89 | KEY(3, 4, KEY_P), | ||
| 90 | |||
| 91 | KEY(2, 4, KEY_A), | ||
| 92 | KEY(1, 4, KEY_S), | ||
| 93 | KEY(0, 4, KEY_D), | ||
| 94 | KEY(7, 5, KEY_F), | ||
| 95 | KEY(6, 5, KEY_G), | ||
| 96 | KEY(5, 5, KEY_H), | ||
| 97 | KEY(4, 5, KEY_J), | ||
| 98 | KEY(3, 5, KEY_K), | ||
| 99 | KEY(2, 5, KEY_L), | ||
| 100 | |||
| 101 | KEY(1, 5, KEY_Z), | ||
| 102 | KEY(0, 5, KEY_X), | ||
| 103 | KEY(7, 6, KEY_C), | ||
| 104 | KEY(6, 6, KEY_V), | ||
| 105 | KEY(5, 6, KEY_B), | ||
| 106 | KEY(4, 6, KEY_N), | ||
| 107 | KEY(3, 6, KEY_M), | ||
| 108 | KEY(2, 6, KEY_SPACE), | ||
| 109 | |||
| 110 | KEY(0, 7, KEY_LEFTSHIFT), /* Vol up */ | ||
| 111 | KEY(3, 7, KEY_LEFTCTRL), /* Vol down */ | ||
| 112 | |||
| 113 | 0 | ||
| 114 | }; | ||
| 115 | |||
| 34 | void ams_delta_latch1_write(u8 mask, u8 value) | 116 | void ams_delta_latch1_write(u8 mask, u8 value) |
| 35 | { | 117 | { |
| 36 | ams_delta_latch1_reg &= ~mask; | 118 | ams_delta_latch1_reg &= ~mask; |
| @@ -76,6 +158,10 @@ static struct map_desc ams_delta_io_desc[] __initdata = { | |||
| 76 | } | 158 | } |
| 77 | }; | 159 | }; |
| 78 | 160 | ||
| 161 | static struct omap_lcd_config ams_delta_lcd_config __initdata = { | ||
| 162 | .ctrl_name = "internal", | ||
| 163 | }; | ||
| 164 | |||
| 79 | static struct omap_uart_config ams_delta_uart_config __initdata = { | 165 | static struct omap_uart_config ams_delta_uart_config __initdata = { |
| 80 | .enabled_uarts = 1, | 166 | .enabled_uarts = 1, |
| 81 | }; | 167 | }; |
| @@ -87,16 +173,50 @@ static struct omap_usb_config ams_delta_usb_config __initdata = { | |||
| 87 | }; | 173 | }; |
| 88 | 174 | ||
| 89 | static struct omap_board_config_kernel ams_delta_config[] = { | 175 | static struct omap_board_config_kernel ams_delta_config[] = { |
| 176 | { OMAP_TAG_LCD, &ams_delta_lcd_config }, | ||
| 90 | { OMAP_TAG_UART, &ams_delta_uart_config }, | 177 | { OMAP_TAG_UART, &ams_delta_uart_config }, |
| 91 | { OMAP_TAG_USB, &ams_delta_usb_config }, | 178 | { OMAP_TAG_USB, &ams_delta_usb_config }, |
| 92 | }; | 179 | }; |
| 93 | 180 | ||
| 181 | static struct resource ams_delta_kp_resources[] = { | ||
| 182 | [0] = { | ||
| 183 | .start = INT_KEYBOARD, | ||
| 184 | .end = INT_KEYBOARD, | ||
| 185 | .flags = IORESOURCE_IRQ, | ||
| 186 | }, | ||
| 187 | }; | ||
| 188 | |||
| 189 | static struct omap_kp_platform_data ams_delta_kp_data = { | ||
| 190 | .rows = 8, | ||
| 191 | .cols = 8, | ||
| 192 | .keymap = ams_delta_keymap, | ||
| 193 | .keymapsize = ARRAY_SIZE(ams_delta_keymap), | ||
| 194 | .delay = 9, | ||
| 195 | }; | ||
| 196 | |||
| 197 | static struct platform_device ams_delta_kp_device = { | ||
| 198 | .name = "omap-keypad", | ||
| 199 | .id = -1, | ||
| 200 | .dev = { | ||
| 201 | .platform_data = &ams_delta_kp_data, | ||
| 202 | }, | ||
| 203 | .num_resources = ARRAY_SIZE(ams_delta_kp_resources), | ||
| 204 | .resource = ams_delta_kp_resources, | ||
| 205 | }; | ||
| 206 | |||
| 207 | static struct platform_device ams_delta_lcd_device = { | ||
| 208 | .name = "lcd_ams_delta", | ||
| 209 | .id = -1, | ||
| 210 | }; | ||
| 211 | |||
| 94 | static struct platform_device ams_delta_led_device = { | 212 | static struct platform_device ams_delta_led_device = { |
| 95 | .name = "ams-delta-led", | 213 | .name = "ams-delta-led", |
| 96 | .id = -1 | 214 | .id = -1 |
| 97 | }; | 215 | }; |
| 98 | 216 | ||
| 99 | static struct platform_device *ams_delta_devices[] __initdata = { | 217 | static struct platform_device *ams_delta_devices[] __initdata = { |
| 218 | &ams_delta_kp_device, | ||
| 219 | &ams_delta_lcd_device, | ||
| 100 | &ams_delta_led_device, | 220 | &ams_delta_led_device, |
| 101 | }; | 221 | }; |
| 102 | 222 | ||
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 48c8c9195dc3..d901dcbe8066 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
| @@ -139,6 +139,66 @@ static struct platform_device h2_nor_device = { | |||
| 139 | .resource = &h2_nor_resource, | 139 | .resource = &h2_nor_resource, |
| 140 | }; | 140 | }; |
| 141 | 141 | ||
| 142 | #if 0 /* REVISIT: Enable when nand_platform_data is applied */ | ||
| 143 | |||
| 144 | static struct mtd_partition h2_nand_partitions[] = { | ||
| 145 | #if 0 | ||
| 146 | /* REVISIT: enable these partitions if you make NAND BOOT | ||
| 147 | * work on your H2 (rev C or newer); published versions of | ||
| 148 | * x-load only support P2 and H3. | ||
| 149 | */ | ||
| 150 | { | ||
| 151 | .name = "xloader", | ||
| 152 | .offset = 0, | ||
| 153 | .size = 64 * 1024, | ||
| 154 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 155 | }, | ||
| 156 | { | ||
| 157 | .name = "bootloader", | ||
| 158 | .offset = MTDPART_OFS_APPEND, | ||
| 159 | .size = 256 * 1024, | ||
| 160 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 161 | }, | ||
| 162 | { | ||
| 163 | .name = "params", | ||
| 164 | .offset = MTDPART_OFS_APPEND, | ||
| 165 | .size = 192 * 1024, | ||
| 166 | }, | ||
| 167 | { | ||
| 168 | .name = "kernel", | ||
| 169 | .offset = MTDPART_OFS_APPEND, | ||
| 170 | .size = 2 * SZ_1M, | ||
| 171 | }, | ||
| 172 | #endif | ||
| 173 | { | ||
| 174 | .name = "filesystem", | ||
| 175 | .size = MTDPART_SIZ_FULL, | ||
| 176 | .offset = MTDPART_OFS_APPEND, | ||
| 177 | }, | ||
| 178 | }; | ||
| 179 | |||
| 180 | /* dip switches control NAND chip access: 8 bit, 16 bit, or neither */ | ||
| 181 | static struct nand_platform_data h2_nand_data = { | ||
| 182 | .options = NAND_SAMSUNG_LP_OPTIONS, | ||
| 183 | .parts = h2_nand_partitions, | ||
| 184 | .nr_parts = ARRAY_SIZE(h2_nand_partitions), | ||
| 185 | }; | ||
| 186 | |||
| 187 | static struct resource h2_nand_resource = { | ||
| 188 | .flags = IORESOURCE_MEM, | ||
| 189 | }; | ||
| 190 | |||
| 191 | static struct platform_device h2_nand_device = { | ||
| 192 | .name = "omapnand", | ||
| 193 | .id = 0, | ||
| 194 | .dev = { | ||
| 195 | .platform_data = &h2_nand_data, | ||
| 196 | }, | ||
| 197 | .num_resources = 1, | ||
| 198 | .resource = &h2_nand_resource, | ||
| 199 | }; | ||
| 200 | #endif | ||
| 201 | |||
| 142 | static struct resource h2_smc91x_resources[] = { | 202 | static struct resource h2_smc91x_resources[] = { |
| 143 | [0] = { | 203 | [0] = { |
| 144 | .start = OMAP1610_ETHR_START, /* Physical */ | 204 | .start = OMAP1610_ETHR_START, /* Physical */ |
| @@ -218,11 +278,15 @@ static struct resource h2_irda_resources[] = { | |||
| 218 | .flags = IORESOURCE_IRQ, | 278 | .flags = IORESOURCE_IRQ, |
| 219 | }, | 279 | }, |
| 220 | }; | 280 | }; |
| 281 | |||
| 282 | static u64 irda_dmamask = 0xffffffff; | ||
| 283 | |||
| 221 | static struct platform_device h2_irda_device = { | 284 | static struct platform_device h2_irda_device = { |
| 222 | .name = "omapirda", | 285 | .name = "omapirda", |
| 223 | .id = 0, | 286 | .id = 0, |
| 224 | .dev = { | 287 | .dev = { |
| 225 | .platform_data = &h2_irda_data, | 288 | .platform_data = &h2_irda_data, |
| 289 | .dma_mask = &irda_dmamask, | ||
| 226 | }, | 290 | }, |
| 227 | .num_resources = ARRAY_SIZE(h2_irda_resources), | 291 | .num_resources = ARRAY_SIZE(h2_irda_resources), |
| 228 | .resource = h2_irda_resources, | 292 | .resource = h2_irda_resources, |
| @@ -270,6 +334,7 @@ static struct platform_device h2_mcbsp1_device = { | |||
| 270 | 334 | ||
| 271 | static struct platform_device *h2_devices[] __initdata = { | 335 | static struct platform_device *h2_devices[] __initdata = { |
| 272 | &h2_nor_device, | 336 | &h2_nor_device, |
| 337 | //&h2_nand_device, | ||
| 273 | &h2_smc91x_device, | 338 | &h2_smc91x_device, |
| 274 | &h2_irda_device, | 339 | &h2_irda_device, |
| 275 | &h2_kp_device, | 340 | &h2_kp_device, |
| @@ -333,6 +398,13 @@ static struct omap_board_config_kernel h2_config[] __initdata = { | |||
| 333 | { OMAP_TAG_LCD, &h2_lcd_config }, | 398 | { OMAP_TAG_LCD, &h2_lcd_config }, |
| 334 | }; | 399 | }; |
| 335 | 400 | ||
| 401 | #define H2_NAND_RB_GPIO_PIN 62 | ||
| 402 | |||
| 403 | static int h2_nand_dev_ready(struct nand_platform_data *data) | ||
| 404 | { | ||
| 405 | return omap_get_gpio_datain(H2_NAND_RB_GPIO_PIN); | ||
| 406 | } | ||
| 407 | |||
| 336 | static void __init h2_init(void) | 408 | static void __init h2_init(void) |
| 337 | { | 409 | { |
| 338 | /* Here we assume the NOR boot config: NOR on CS3 (possibly swapped | 410 | /* Here we assume the NOR boot config: NOR on CS3 (possibly swapped |
| @@ -347,6 +419,13 @@ static void __init h2_init(void) | |||
| 347 | h2_nor_resource.end = h2_nor_resource.start = omap_cs3_phys(); | 419 | h2_nor_resource.end = h2_nor_resource.start = omap_cs3_phys(); |
| 348 | h2_nor_resource.end += SZ_32M - 1; | 420 | h2_nor_resource.end += SZ_32M - 1; |
| 349 | 421 | ||
| 422 | #if 0 /* REVISIT: Enable when nand_platform_data is applied */ | ||
| 423 | h2_nand_resource.end = h2_nand_resource.start = OMAP_CS2B_PHYS; | ||
| 424 | h2_nand_resource.end += SZ_4K - 1; | ||
| 425 | if (!(omap_request_gpio(H2_NAND_RB_GPIO_PIN))) | ||
| 426 | h2_nand_data.dev_ready = h2_nand_dev_ready; | ||
| 427 | #endif | ||
| 428 | |||
| 350 | omap_cfg_reg(L3_1610_FLASH_CS2B_OE); | 429 | omap_cfg_reg(L3_1610_FLASH_CS2B_OE); |
| 351 | omap_cfg_reg(M8_1610_FLASH_CS2B_WE); | 430 | omap_cfg_reg(M8_1610_FLASH_CS2B_WE); |
| 352 | 431 | ||
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 79d4ef4c54d4..4167f3480974 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
| @@ -44,6 +44,8 @@ | |||
| 44 | #include <asm/arch/keypad.h> | 44 | #include <asm/arch/keypad.h> |
| 45 | #include <asm/arch/dma.h> | 45 | #include <asm/arch/dma.h> |
| 46 | #include <asm/arch/common.h> | 46 | #include <asm/arch/common.h> |
| 47 | #include <asm/arch/mcbsp.h> | ||
| 48 | #include <asm/arch/omap-alsa.h> | ||
| 47 | 49 | ||
| 48 | extern int omap_gpio_init(void); | 50 | extern int omap_gpio_init(void); |
| 49 | 51 | ||
| @@ -351,11 +353,14 @@ static struct resource h3_irda_resources[] = { | |||
| 351 | }, | 353 | }, |
| 352 | }; | 354 | }; |
| 353 | 355 | ||
| 356 | static u64 irda_dmamask = 0xffffffff; | ||
| 357 | |||
| 354 | static struct platform_device h3_irda_device = { | 358 | static struct platform_device h3_irda_device = { |
| 355 | .name = "omapirda", | 359 | .name = "omapirda", |
| 356 | .id = 0, | 360 | .id = 0, |
| 357 | .dev = { | 361 | .dev = { |
| 358 | .platform_data = &h3_irda_data, | 362 | .platform_data = &h3_irda_data, |
| 363 | .dma_mask = &irda_dmamask, | ||
| 359 | }, | 364 | }, |
| 360 | .num_resources = ARRAY_SIZE(h3_irda_resources), | 365 | .num_resources = ARRAY_SIZE(h3_irda_resources), |
| 361 | .resource = h3_irda_resources, | 366 | .resource = h3_irda_resources, |
| @@ -366,6 +371,41 @@ static struct platform_device h3_lcd_device = { | |||
| 366 | .id = -1, | 371 | .id = -1, |
| 367 | }; | 372 | }; |
| 368 | 373 | ||
| 374 | static struct omap_mcbsp_reg_cfg mcbsp_regs = { | ||
| 375 | .spcr2 = FREE | FRST | GRST | XRST | XINTM(3), | ||
| 376 | .spcr1 = RINTM(3) | RRST, | ||
| 377 | .rcr2 = RPHASE | RFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 378 | RWDLEN2(OMAP_MCBSP_WORD_16) | RDATDLY(1), | ||
| 379 | .rcr1 = RFRLEN1(OMAP_MCBSP_WORD_8) | RWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 380 | .xcr2 = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 381 | XWDLEN2(OMAP_MCBSP_WORD_16) | XDATDLY(1) | XFIG, | ||
| 382 | .xcr1 = XFRLEN1(OMAP_MCBSP_WORD_8) | XWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 383 | .srgr1 = FWID(15), | ||
| 384 | .srgr2 = GSYNC | CLKSP | FSGM | FPER(31), | ||
| 385 | |||
| 386 | .pcr0 = CLKRM | SCLKME | FSXP | FSRP | CLKXP | CLKRP, | ||
| 387 | //.pcr0 = CLKXP | CLKRP, /* mcbsp: slave */ | ||
| 388 | }; | ||
| 389 | |||
| 390 | static struct omap_alsa_codec_config alsa_config = { | ||
| 391 | .name = "H3 TSC2101", | ||
| 392 | .mcbsp_regs_alsa = &mcbsp_regs, | ||
| 393 | .codec_configure_dev = NULL, // tsc2101_configure, | ||
| 394 | .codec_set_samplerate = NULL, // tsc2101_set_samplerate, | ||
| 395 | .codec_clock_setup = NULL, // tsc2101_clock_setup, | ||
| 396 | .codec_clock_on = NULL, // tsc2101_clock_on, | ||
| 397 | .codec_clock_off = NULL, // tsc2101_clock_off, | ||
| 398 | .get_default_samplerate = NULL, // tsc2101_get_default_samplerate, | ||
| 399 | }; | ||
| 400 | |||
| 401 | static struct platform_device h3_mcbsp1_device = { | ||
| 402 | .name = "omap_alsa_mcbsp", | ||
| 403 | .id = 1, | ||
| 404 | .dev = { | ||
| 405 | .platform_data = &alsa_config, | ||
| 406 | }, | ||
| 407 | }; | ||
| 408 | |||
| 369 | static struct platform_device *devices[] __initdata = { | 409 | static struct platform_device *devices[] __initdata = { |
| 370 | &nor_device, | 410 | &nor_device, |
| 371 | &nand_device, | 411 | &nand_device, |
| @@ -374,6 +414,7 @@ static struct platform_device *devices[] __initdata = { | |||
| 374 | &h3_irda_device, | 414 | &h3_irda_device, |
| 375 | &h3_kp_device, | 415 | &h3_kp_device, |
| 376 | &h3_lcd_device, | 416 | &h3_lcd_device, |
| 417 | &h3_mcbsp1_device, | ||
| 377 | }; | 418 | }; |
| 378 | 419 | ||
| 379 | static struct omap_usb_config h3_usb_config __initdata = { | 420 | static struct omap_usb_config h3_usb_config __initdata = { |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index 70014f751bc4..22db19a53647 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
| @@ -33,6 +33,12 @@ | |||
| 33 | #include <asm/arch/dsp_common.h> | 33 | #include <asm/arch/dsp_common.h> |
| 34 | #include <asm/arch/aic23.h> | 34 | #include <asm/arch/aic23.h> |
| 35 | #include <asm/arch/gpio.h> | 35 | #include <asm/arch/gpio.h> |
| 36 | #include <asm/arch/omapfb.h> | ||
| 37 | #include <asm/arch/lcd_mipid.h> | ||
| 38 | |||
| 39 | #include "../plat-omap/dsp/dsp_common.h" | ||
| 40 | |||
| 41 | #define ADS7846_PENDOWN_GPIO 15 | ||
| 36 | 42 | ||
| 37 | static void __init omap_nokia770_init_irq(void) | 43 | static void __init omap_nokia770_init_irq(void) |
| 38 | { | 44 | { |
| @@ -91,9 +97,44 @@ static struct platform_device nokia770_kp_device = { | |||
| 91 | }; | 97 | }; |
| 92 | 98 | ||
| 93 | static struct platform_device *nokia770_devices[] __initdata = { | 99 | static struct platform_device *nokia770_devices[] __initdata = { |
| 94 | &nokia770_kp_device, | 100 | &nokia770_kp_device, |
| 101 | }; | ||
| 102 | |||
| 103 | static void mipid_shutdown(struct mipid_platform_data *pdata) | ||
| 104 | { | ||
| 105 | if (pdata->nreset_gpio != -1) { | ||
| 106 | printk(KERN_INFO "shutdown LCD\n"); | ||
| 107 | omap_set_gpio_dataout(pdata->nreset_gpio, 0); | ||
| 108 | msleep(120); | ||
| 109 | } | ||
| 110 | } | ||
| 111 | |||
| 112 | static struct mipid_platform_data nokia770_mipid_platform_data = { | ||
| 113 | .shutdown = mipid_shutdown, | ||
| 95 | }; | 114 | }; |
| 96 | 115 | ||
| 116 | static void mipid_dev_init(void) | ||
| 117 | { | ||
| 118 | const struct omap_lcd_config *conf; | ||
| 119 | |||
| 120 | conf = omap_get_config(OMAP_TAG_LCD, struct omap_lcd_config); | ||
| 121 | if (conf != NULL) { | ||
| 122 | nokia770_mipid_platform_data.nreset_gpio = conf->nreset_gpio; | ||
| 123 | nokia770_mipid_platform_data.data_lines = conf->data_lines; | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | static void ads7846_dev_init(void) | ||
| 128 | { | ||
| 129 | if (omap_request_gpio(ADS7846_PENDOWN_GPIO) < 0) | ||
| 130 | printk(KERN_ERR "can't get ads7846 pen down GPIO\n"); | ||
| 131 | } | ||
| 132 | |||
| 133 | static int ads7846_get_pendown_state(void) | ||
| 134 | { | ||
| 135 | return !omap_get_gpio_datain(ADS7846_PENDOWN_GPIO); | ||
| 136 | } | ||
| 137 | |||
| 97 | static struct ads7846_platform_data nokia770_ads7846_platform_data __initdata = { | 138 | static struct ads7846_platform_data nokia770_ads7846_platform_data __initdata = { |
| 98 | .x_max = 0x0fff, | 139 | .x_max = 0x0fff, |
| 99 | .y_max = 0x0fff, | 140 | .y_max = 0x0fff, |
| @@ -101,14 +142,17 @@ static struct ads7846_platform_data nokia770_ads7846_platform_data __initdata = | |||
| 101 | .pressure_max = 255, | 142 | .pressure_max = 255, |
| 102 | .debounce_max = 10, | 143 | .debounce_max = 10, |
| 103 | .debounce_tol = 3, | 144 | .debounce_tol = 3, |
| 145 | .debounce_rep = 1, | ||
| 146 | .get_pendown_state = ads7846_get_pendown_state, | ||
| 104 | }; | 147 | }; |
| 105 | 148 | ||
| 106 | static struct spi_board_info nokia770_spi_board_info[] __initdata = { | 149 | static struct spi_board_info nokia770_spi_board_info[] __initdata = { |
| 107 | [0] = { | 150 | [0] = { |
| 108 | .modalias = "lcd_mipid", | 151 | .modalias = "lcd_mipid", |
| 109 | .bus_num = 2, | 152 | .bus_num = 2, |
| 110 | .chip_select = 3, | 153 | .chip_select = 3, |
| 111 | .max_speed_hz = 12000000, | 154 | .max_speed_hz = 12000000, |
| 155 | .platform_data = &nokia770_mipid_platform_data, | ||
| 112 | }, | 156 | }, |
| 113 | [1] = { | 157 | [1] = { |
| 114 | .modalias = "ads7846", | 158 | .modalias = "ads7846", |
| @@ -153,6 +197,7 @@ static struct omap_board_config_kernel nokia770_config[] = { | |||
| 153 | { OMAP_TAG_MMC, &nokia770_mmc_config }, | 197 | { OMAP_TAG_MMC, &nokia770_mmc_config }, |
| 154 | }; | 198 | }; |
| 155 | 199 | ||
| 200 | #if defined(CONFIG_OMAP_DSP) | ||
| 156 | /* | 201 | /* |
| 157 | * audio power control | 202 | * audio power control |
| 158 | */ | 203 | */ |
| @@ -183,7 +228,7 @@ static void nokia770_audio_pwr_up(void) | |||
| 183 | clk_enable(dspxor_ck); | 228 | clk_enable(dspxor_ck); |
| 184 | 229 | ||
| 185 | /* Turn on codec */ | 230 | /* Turn on codec */ |
| 186 | tlv320aic23_power_up(); | 231 | aic23_power_up(); |
| 187 | 232 | ||
| 188 | if (omap_get_gpio_datain(HEADPHONE_GPIO)) | 233 | if (omap_get_gpio_datain(HEADPHONE_GPIO)) |
| 189 | /* HP not connected, turn on amplifier */ | 234 | /* HP not connected, turn on amplifier */ |
| @@ -197,7 +242,7 @@ static void codec_delayed_power_down(struct work_struct *work) | |||
| 197 | { | 242 | { |
| 198 | down(&audio_pwr_sem); | 243 | down(&audio_pwr_sem); |
| 199 | if (audio_pwr_state == -1) | 244 | if (audio_pwr_state == -1) |
| 200 | tlv320aic23_power_down(); | 245 | aic23_power_down(); |
| 201 | clk_disable(dspxor_ck); | 246 | clk_disable(dspxor_ck); |
| 202 | up(&audio_pwr_sem); | 247 | up(&audio_pwr_sem); |
| 203 | } | 248 | } |
| @@ -213,7 +258,8 @@ static void nokia770_audio_pwr_down(void) | |||
| 213 | schedule_delayed_work(&codec_power_down_work, HZ / 20); /* 50ms */ | 258 | schedule_delayed_work(&codec_power_down_work, HZ / 20); /* 50ms */ |
| 214 | } | 259 | } |
| 215 | 260 | ||
| 216 | void nokia770_audio_pwr_up_request(int stage) | 261 | static int |
| 262 | nokia770_audio_pwr_up_request(struct dsp_kfunc_device *kdev, int stage) | ||
| 217 | { | 263 | { |
| 218 | down(&audio_pwr_sem); | 264 | down(&audio_pwr_sem); |
| 219 | if (audio_pwr_state == -1) | 265 | if (audio_pwr_state == -1) |
| @@ -221,9 +267,11 @@ void nokia770_audio_pwr_up_request(int stage) | |||
| 221 | /* force audio_pwr_state = 0, even if it was 1. */ | 267 | /* force audio_pwr_state = 0, even if it was 1. */ |
| 222 | audio_pwr_state = 0; | 268 | audio_pwr_state = 0; |
| 223 | up(&audio_pwr_sem); | 269 | up(&audio_pwr_sem); |
| 270 | return 0; | ||
| 224 | } | 271 | } |
| 225 | 272 | ||
| 226 | void nokia770_audio_pwr_down_request(int stage) | 273 | static int |
| 274 | nokia770_audio_pwr_down_request(struct dsp_kfunc_device *kdev, int stage) | ||
| 227 | { | 275 | { |
| 228 | down(&audio_pwr_sem); | 276 | down(&audio_pwr_sem); |
| 229 | switch (stage) { | 277 | switch (stage) { |
| @@ -239,8 +287,39 @@ void nokia770_audio_pwr_down_request(int stage) | |||
| 239 | break; | 287 | break; |
| 240 | } | 288 | } |
| 241 | up(&audio_pwr_sem); | 289 | up(&audio_pwr_sem); |
| 290 | return 0; | ||
| 242 | } | 291 | } |
| 243 | 292 | ||
| 293 | static struct dsp_kfunc_device nokia770_audio_device = { | ||
| 294 | .name = "audio", | ||
| 295 | .type = DSP_KFUNC_DEV_TYPE_AUDIO, | ||
| 296 | .enable = nokia770_audio_pwr_up_request, | ||
| 297 | .disable = nokia770_audio_pwr_down_request, | ||
| 298 | }; | ||
| 299 | |||
| 300 | static __init int omap_dsp_init(void) | ||
| 301 | { | ||
| 302 | int ret; | ||
| 303 | |||
| 304 | dspxor_ck = clk_get(0, "dspxor_ck"); | ||
| 305 | if (IS_ERR(dspxor_ck)) { | ||
| 306 | printk(KERN_ERR "couldn't acquire dspxor_ck\n"); | ||
| 307 | return PTR_ERR(dspxor_ck); | ||
| 308 | } | ||
| 309 | |||
| 310 | ret = dsp_kfunc_device_register(&nokia770_audio_device); | ||
| 311 | if (ret) { | ||
| 312 | printk(KERN_ERR | ||
| 313 | "KFUNC device registration faild: %s\n", | ||
| 314 | nokia770_audio_device.name); | ||
| 315 | goto out; | ||
| 316 | } | ||
| 317 | return 0; | ||
| 318 | out: | ||
| 319 | return ret; | ||
| 320 | } | ||
| 321 | #endif /* CONFIG_OMAP_DSP */ | ||
| 322 | |||
| 244 | static void __init omap_nokia770_init(void) | 323 | static void __init omap_nokia770_init(void) |
| 245 | { | 324 | { |
| 246 | nokia770_config[0].data = &nokia770_usb_config; | 325 | nokia770_config[0].data = &nokia770_usb_config; |
| @@ -250,10 +329,11 @@ static void __init omap_nokia770_init(void) | |||
| 250 | ARRAY_SIZE(nokia770_spi_board_info)); | 329 | ARRAY_SIZE(nokia770_spi_board_info)); |
| 251 | omap_board_config = nokia770_config; | 330 | omap_board_config = nokia770_config; |
| 252 | omap_board_config_size = ARRAY_SIZE(nokia770_config); | 331 | omap_board_config_size = ARRAY_SIZE(nokia770_config); |
| 332 | omap_gpio_init(); | ||
| 253 | omap_serial_init(); | 333 | omap_serial_init(); |
| 254 | omap_dsp_audio_pwr_up_request = nokia770_audio_pwr_up_request; | 334 | omap_dsp_init(); |
| 255 | omap_dsp_audio_pwr_down_request = nokia770_audio_pwr_down_request; | 335 | ads7846_dev_init(); |
| 256 | dspxor_ck = clk_get(0, "dspxor_ck"); | 336 | mipid_dev_init(); |
| 257 | } | 337 | } |
| 258 | 338 | ||
| 259 | static void __init omap_nokia770_map_io(void) | 339 | static void __init omap_nokia770_map_io(void) |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index e7130293a03f..1825781f4354 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
| 30 | #include <linux/init.h> | 30 | #include <linux/init.h> |
| 31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
| 32 | #include <linux/interrupt.h> | ||
| 32 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
| 33 | #include <linux/interrupt.h> | 34 | #include <linux/interrupt.h> |
| 34 | 35 | ||
| @@ -292,6 +293,18 @@ static struct platform_device osk5912_kp_device = { | |||
| 292 | .resource = osk5912_kp_resources, | 293 | .resource = osk5912_kp_resources, |
| 293 | }; | 294 | }; |
| 294 | 295 | ||
| 296 | static struct omap_backlight_config mistral_bl_data = { | ||
| 297 | .default_intensity = 0xa0, | ||
| 298 | }; | ||
| 299 | |||
| 300 | static struct platform_device mistral_bl_device = { | ||
| 301 | .name = "omap-bl", | ||
| 302 | .id = -1, | ||
| 303 | .dev = { | ||
| 304 | .platform_data = &mistral_bl_data, | ||
| 305 | }, | ||
| 306 | }; | ||
| 307 | |||
| 295 | static struct platform_device osk5912_lcd_device = { | 308 | static struct platform_device osk5912_lcd_device = { |
| 296 | .name = "lcd_osk", | 309 | .name = "lcd_osk", |
| 297 | .id = -1, | 310 | .id = -1, |
| @@ -299,6 +312,7 @@ static struct platform_device osk5912_lcd_device = { | |||
| 299 | 312 | ||
| 300 | static struct platform_device *mistral_devices[] __initdata = { | 313 | static struct platform_device *mistral_devices[] __initdata = { |
| 301 | &osk5912_kp_device, | 314 | &osk5912_kp_device, |
| 315 | &mistral_bl_device, | ||
| 302 | &osk5912_lcd_device, | 316 | &osk5912_lcd_device, |
| 303 | }; | 317 | }; |
| 304 | 318 | ||
| @@ -342,6 +356,38 @@ static void __init osk_mistral_init(void) | |||
| 342 | * can't talk to the ads or even the i2c eeprom. | 356 | * can't talk to the ads or even the i2c eeprom. |
| 343 | */ | 357 | */ |
| 344 | 358 | ||
| 359 | /* parallel camera interface */ | ||
| 360 | omap_cfg_reg(J15_1610_CAM_LCLK); | ||
| 361 | omap_cfg_reg(J18_1610_CAM_D7); | ||
| 362 | omap_cfg_reg(J19_1610_CAM_D6); | ||
| 363 | omap_cfg_reg(J14_1610_CAM_D5); | ||
| 364 | omap_cfg_reg(K18_1610_CAM_D4); | ||
| 365 | omap_cfg_reg(K19_1610_CAM_D3); | ||
| 366 | omap_cfg_reg(K15_1610_CAM_D2); | ||
| 367 | omap_cfg_reg(K14_1610_CAM_D1); | ||
| 368 | omap_cfg_reg(L19_1610_CAM_D0); | ||
| 369 | omap_cfg_reg(L18_1610_CAM_VS); | ||
| 370 | omap_cfg_reg(L15_1610_CAM_HS); | ||
| 371 | omap_cfg_reg(M19_1610_CAM_RSTZ); | ||
| 372 | omap_cfg_reg(Y15_1610_CAM_OUTCLK); | ||
| 373 | |||
| 374 | /* serial camera interface */ | ||
| 375 | omap_cfg_reg(H19_1610_CAM_EXCLK); | ||
| 376 | omap_cfg_reg(W13_1610_CCP_CLKM); | ||
| 377 | omap_cfg_reg(Y12_1610_CCP_CLKP); | ||
| 378 | /* CCP_DATAM CONFLICTS WITH UART1.TX (and serial console) */ | ||
| 379 | // omap_cfg_reg(Y14_1610_CCP_DATAM); | ||
| 380 | omap_cfg_reg(W14_1610_CCP_DATAP); | ||
| 381 | |||
| 382 | /* CAM_PWDN */ | ||
| 383 | if (omap_request_gpio(11) == 0) { | ||
| 384 | omap_cfg_reg(N20_1610_GPIO11); | ||
| 385 | omap_set_gpio_direction(11, 0 /* out */); | ||
| 386 | omap_set_gpio_dataout(11, 0 /* off */); | ||
| 387 | } else | ||
| 388 | pr_debug("OSK+Mistral: CAM_PWDN is awol\n"); | ||
| 389 | |||
| 390 | |||
| 345 | // omap_cfg_reg(P19_1610_GPIO6); // BUSY | 391 | // omap_cfg_reg(P19_1610_GPIO6); // BUSY |
| 346 | omap_cfg_reg(P20_1610_GPIO4); // PENIRQ | 392 | omap_cfg_reg(P20_1610_GPIO4); // PENIRQ |
| 347 | set_irq_type(OMAP_GPIO_IRQ(4), IRQT_FALLING); | 393 | set_irq_type(OMAP_GPIO_IRQ(4), IRQT_FALLING); |
| @@ -372,6 +418,15 @@ static void __init osk_mistral_init(void) | |||
| 372 | } else | 418 | } else |
| 373 | printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n"); | 419 | printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n"); |
| 374 | 420 | ||
| 421 | /* LCD: backlight, and power; power controls other devices on the | ||
| 422 | * board, like the touchscreen, EEPROM, and wakeup (!) switch. | ||
| 423 | */ | ||
| 424 | omap_cfg_reg(PWL); | ||
| 425 | if (omap_request_gpio(2) == 0) { | ||
| 426 | omap_set_gpio_direction(2, 0 /* out */); | ||
| 427 | omap_set_gpio_dataout(2, 1 /* on */); | ||
| 428 | } | ||
| 429 | |||
| 375 | platform_add_devices(mistral_devices, ARRAY_SIZE(mistral_devices)); | 430 | platform_add_devices(mistral_devices, ARRAY_SIZE(mistral_devices)); |
| 376 | } | 431 | } |
| 377 | #else | 432 | #else |
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 015824185629..2f9d00a00135 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
| @@ -17,49 +17,189 @@ | |||
| 17 | 17 | ||
| 18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| 19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
| 20 | #include <linux/input.h> | ||
| 20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
| 21 | #include <linux/notifier.h> | 22 | #include <linux/mtd/mtd.h> |
| 22 | #include <linux/clk.h> | 23 | #include <linux/mtd/partitions.h> |
| 24 | #include <linux/spi/spi.h> | ||
| 25 | #include <linux/spi/tsc2102.h> | ||
| 26 | #include <linux/interrupt.h> | ||
| 23 | 27 | ||
| 28 | #include <asm/apm.h> | ||
| 24 | #include <asm/hardware.h> | 29 | #include <asm/hardware.h> |
| 25 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
| 26 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
| 27 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
| 33 | #include <asm/mach/flash.h> | ||
| 28 | 34 | ||
| 29 | #include <asm/arch/gpio.h> | 35 | #include <asm/arch/gpio.h> |
| 30 | #include <asm/arch/mux.h> | 36 | #include <asm/arch/mux.h> |
| 31 | #include <asm/arch/usb.h> | 37 | #include <asm/arch/usb.h> |
| 38 | #include <asm/arch/tc.h> | ||
| 39 | #include <asm/arch/dma.h> | ||
| 32 | #include <asm/arch/board.h> | 40 | #include <asm/arch/board.h> |
| 41 | #include <asm/arch/irda.h> | ||
| 42 | #include <asm/arch/keypad.h> | ||
| 33 | #include <asm/arch/common.h> | 43 | #include <asm/arch/common.h> |
| 44 | #include <asm/arch/mcbsp.h> | ||
| 45 | #include <asm/arch/omap-alsa.h> | ||
| 34 | 46 | ||
| 35 | static void __init omap_generic_init_irq(void) | 47 | static void __init omap_palmte_init_irq(void) |
| 36 | { | 48 | { |
| 37 | omap1_init_common_hw(); | 49 | omap1_init_common_hw(); |
| 38 | omap_init_irq(); | 50 | omap_init_irq(); |
| 51 | omap_gpio_init(); | ||
| 39 | } | 52 | } |
| 40 | 53 | ||
| 54 | static int palmte_keymap[] = { | ||
| 55 | KEY(0, 0, KEY_F1), | ||
| 56 | KEY(0, 1, KEY_F2), | ||
| 57 | KEY(0, 2, KEY_F3), | ||
| 58 | KEY(0, 3, KEY_F4), | ||
| 59 | KEY(0, 4, KEY_POWER), | ||
| 60 | KEY(1, 0, KEY_LEFT), | ||
| 61 | KEY(1, 1, KEY_DOWN), | ||
| 62 | KEY(1, 2, KEY_UP), | ||
| 63 | KEY(1, 3, KEY_RIGHT), | ||
| 64 | KEY(1, 4, KEY_CENTER), | ||
| 65 | 0, | ||
| 66 | }; | ||
| 67 | |||
| 68 | static struct omap_kp_platform_data palmte_kp_data = { | ||
| 69 | .rows = 8, | ||
| 70 | .cols = 8, | ||
| 71 | .keymap = palmte_keymap, | ||
| 72 | .rep = 1, | ||
| 73 | .delay = 12, | ||
| 74 | }; | ||
| 75 | |||
| 76 | static struct resource palmte_kp_resources[] = { | ||
| 77 | [0] = { | ||
| 78 | .start = INT_KEYBOARD, | ||
| 79 | .end = INT_KEYBOARD, | ||
| 80 | .flags = IORESOURCE_IRQ, | ||
| 81 | }, | ||
| 82 | }; | ||
| 83 | |||
| 84 | static struct platform_device palmte_kp_device = { | ||
| 85 | .name = "omap-keypad", | ||
| 86 | .id = -1, | ||
| 87 | .dev = { | ||
| 88 | .platform_data = &palmte_kp_data, | ||
| 89 | }, | ||
| 90 | .num_resources = ARRAY_SIZE(palmte_kp_resources), | ||
| 91 | .resource = palmte_kp_resources, | ||
| 92 | }; | ||
| 93 | |||
| 94 | static struct mtd_partition palmte_rom_partitions[] = { | ||
| 95 | /* PalmOS "Small ROM", contains the bootloader and the debugger */ | ||
| 96 | { | ||
| 97 | .name = "smallrom", | ||
| 98 | .offset = 0, | ||
| 99 | .size = 0xa000, | ||
| 100 | .mask_flags = MTD_WRITEABLE, | ||
| 101 | }, | ||
| 102 | /* PalmOS "Big ROM", a filesystem with all the OS code and data */ | ||
| 103 | { | ||
| 104 | .name = "bigrom", | ||
| 105 | .offset = SZ_128K, | ||
| 106 | /* | ||
| 107 | * 0x5f0000 bytes big in the multi-language ("EFIGS") version, | ||
| 108 | * 0x7b0000 bytes in the English-only ("enUS") version. | ||
| 109 | */ | ||
| 110 | .size = 0x7b0000, | ||
| 111 | .mask_flags = MTD_WRITEABLE, | ||
| 112 | }, | ||
| 113 | }; | ||
| 114 | |||
| 115 | static struct flash_platform_data palmte_rom_data = { | ||
| 116 | .map_name = "map_rom", | ||
| 117 | .width = 2, | ||
| 118 | .parts = palmte_rom_partitions, | ||
| 119 | .nr_parts = ARRAY_SIZE(palmte_rom_partitions), | ||
| 120 | }; | ||
| 121 | |||
| 122 | static struct resource palmte_rom_resource = { | ||
| 123 | .start = OMAP_CS0_PHYS, | ||
| 124 | .end = OMAP_CS0_PHYS + SZ_8M - 1, | ||
| 125 | .flags = IORESOURCE_MEM, | ||
| 126 | }; | ||
| 127 | |||
| 128 | static struct platform_device palmte_rom_device = { | ||
| 129 | .name = "omapflash", | ||
| 130 | .id = -1, | ||
| 131 | .dev = { | ||
| 132 | .platform_data = &palmte_rom_data, | ||
| 133 | }, | ||
| 134 | .num_resources = 1, | ||
| 135 | .resource = &palmte_rom_resource, | ||
| 136 | }; | ||
| 137 | |||
| 41 | static struct platform_device palmte_lcd_device = { | 138 | static struct platform_device palmte_lcd_device = { |
| 42 | .name = "lcd_palmte", | 139 | .name = "lcd_palmte", |
| 43 | .id = -1, | 140 | .id = -1, |
| 44 | }; | 141 | }; |
| 45 | 142 | ||
| 143 | static struct omap_backlight_config palmte_backlight_config = { | ||
| 144 | .default_intensity = 0xa0, | ||
| 145 | }; | ||
| 146 | |||
| 147 | static struct platform_device palmte_backlight_device = { | ||
| 148 | .name = "omap-bl", | ||
| 149 | .id = -1, | ||
| 150 | .dev = { | ||
| 151 | .platform_data = &palmte_backlight_config, | ||
| 152 | }, | ||
| 153 | }; | ||
| 154 | |||
| 155 | static struct omap_irda_config palmte_irda_config = { | ||
| 156 | .transceiver_cap = IR_SIRMODE, | ||
| 157 | .rx_channel = OMAP_DMA_UART3_RX, | ||
| 158 | .tx_channel = OMAP_DMA_UART3_TX, | ||
| 159 | .dest_start = UART3_THR, | ||
| 160 | .src_start = UART3_RHR, | ||
| 161 | .tx_trigger = 0, | ||
| 162 | .rx_trigger = 0, | ||
| 163 | }; | ||
| 164 | |||
| 165 | static struct resource palmte_irda_resources[] = { | ||
| 166 | [0] = { | ||
| 167 | .start = INT_UART3, | ||
| 168 | .end = INT_UART3, | ||
| 169 | .flags = IORESOURCE_IRQ, | ||
| 170 | }, | ||
| 171 | }; | ||
| 172 | |||
| 173 | static struct platform_device palmte_irda_device = { | ||
| 174 | .name = "omapirda", | ||
| 175 | .id = -1, | ||
| 176 | .dev = { | ||
| 177 | .platform_data = &palmte_irda_config, | ||
| 178 | }, | ||
| 179 | .num_resources = ARRAY_SIZE(palmte_irda_resources), | ||
| 180 | .resource = palmte_irda_resources, | ||
| 181 | }; | ||
| 182 | |||
| 46 | static struct platform_device *devices[] __initdata = { | 183 | static struct platform_device *devices[] __initdata = { |
| 184 | &palmte_rom_device, | ||
| 185 | &palmte_kp_device, | ||
| 47 | &palmte_lcd_device, | 186 | &palmte_lcd_device, |
| 187 | &palmte_backlight_device, | ||
| 188 | &palmte_irda_device, | ||
| 48 | }; | 189 | }; |
| 49 | 190 | ||
| 50 | static struct omap_usb_config palmte_usb_config __initdata = { | 191 | static struct omap_usb_config palmte_usb_config __initdata = { |
| 51 | .register_dev = 1, | 192 | .register_dev = 1, /* Mini-B only receptacle */ |
| 52 | .hmc_mode = 0, | 193 | .hmc_mode = 0, |
| 53 | .pins[0] = 3, | 194 | .pins[0] = 2, |
| 54 | }; | 195 | }; |
| 55 | 196 | ||
| 56 | static struct omap_mmc_config palmte_mmc_config __initdata = { | 197 | static struct omap_mmc_config palmte_mmc_config __initdata = { |
| 57 | .mmc [0] = { | 198 | .mmc[0] = { |
| 58 | .enabled = 1, | 199 | .enabled = 1, |
| 59 | .wire4 = 1, | 200 | .wp_pin = PALMTE_MMC_WP_GPIO, |
| 60 | .wp_pin = OMAP_MPUIO(3), | 201 | .power_pin = PALMTE_MMC_POWER_GPIO, |
| 61 | .power_pin = -1, | 202 | .switch_pin = PALMTE_MMC_SWITCH_GPIO, |
| 62 | .switch_pin = -1, | ||
| 63 | }, | 203 | }, |
| 64 | }; | 204 | }; |
| 65 | 205 | ||
| @@ -67,21 +207,222 @@ static struct omap_lcd_config palmte_lcd_config __initdata = { | |||
| 67 | .ctrl_name = "internal", | 207 | .ctrl_name = "internal", |
| 68 | }; | 208 | }; |
| 69 | 209 | ||
| 210 | static struct omap_uart_config palmte_uart_config __initdata = { | ||
| 211 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
| 212 | }; | ||
| 213 | |||
| 214 | static struct omap_mcbsp_reg_cfg palmte_mcbsp1_regs = { | ||
| 215 | .spcr2 = FRST | GRST | XRST | XINTM(3), | ||
| 216 | .xcr2 = XDATDLY(1) | XFIG, | ||
| 217 | .xcr1 = XWDLEN1(OMAP_MCBSP_WORD_32), | ||
| 218 | .pcr0 = SCLKME | FSXP | CLKXP, | ||
| 219 | }; | ||
| 220 | |||
| 221 | static struct omap_alsa_codec_config palmte_alsa_config = { | ||
| 222 | .name = "TSC2102 audio", | ||
| 223 | .mcbsp_regs_alsa = &palmte_mcbsp1_regs, | ||
| 224 | .codec_configure_dev = NULL, /* tsc2102_configure, */ | ||
| 225 | .codec_set_samplerate = NULL, /* tsc2102_set_samplerate, */ | ||
| 226 | .codec_clock_setup = NULL, /* tsc2102_clock_setup, */ | ||
| 227 | .codec_clock_on = NULL, /* tsc2102_clock_on, */ | ||
| 228 | .codec_clock_off = NULL, /* tsc2102_clock_off, */ | ||
| 229 | .get_default_samplerate = NULL, /* tsc2102_get_default_samplerate, */ | ||
| 230 | }; | ||
| 231 | |||
| 232 | #ifdef CONFIG_APM | ||
| 233 | /* | ||
| 234 | * Values measured in 10 minute intervals averaged over 10 samples. | ||
| 235 | * May differ slightly from device to device but should be accurate | ||
| 236 | * enough to give basic idea of battery life left and trigger | ||
| 237 | * potential alerts. | ||
| 238 | */ | ||
| 239 | static const int palmte_battery_sample[] = { | ||
| 240 | 2194, 2157, 2138, 2120, | ||
| 241 | 2104, 2089, 2075, 2061, | ||
| 242 | 2048, 2038, 2026, 2016, | ||
| 243 | 2008, 1998, 1989, 1980, | ||
| 244 | 1970, 1958, 1945, 1928, | ||
| 245 | 1910, 1888, 1860, 1827, | ||
| 246 | 1791, 1751, 1709, 1656, | ||
| 247 | }; | ||
| 248 | |||
| 249 | #define INTERVAL 10 | ||
| 250 | #define BATTERY_HIGH_TRESHOLD 66 | ||
| 251 | #define BATTERY_LOW_TRESHOLD 33 | ||
| 252 | |||
| 253 | static void palmte_get_power_status(struct apm_power_info *info, int *battery) | ||
| 254 | { | ||
| 255 | int charging, batt, hi, lo, mid; | ||
| 256 | |||
| 257 | charging = !omap_get_gpio_datain(PALMTE_DC_GPIO); | ||
| 258 | batt = battery[0]; | ||
| 259 | if (charging) | ||
| 260 | batt -= 60; | ||
| 261 | |||
| 262 | hi = ARRAY_SIZE(palmte_battery_sample); | ||
| 263 | lo = 0; | ||
| 264 | |||
| 265 | info->battery_flag = 0; | ||
| 266 | info->units = APM_UNITS_MINS; | ||
| 267 | |||
| 268 | if (batt > palmte_battery_sample[lo]) { | ||
| 269 | info->battery_life = 100; | ||
| 270 | info->time = INTERVAL * ARRAY_SIZE(palmte_battery_sample); | ||
| 271 | } else if (batt <= palmte_battery_sample[hi - 1]) { | ||
| 272 | info->battery_life = 0; | ||
| 273 | info->time = 0; | ||
| 274 | } else { | ||
| 275 | while (hi > lo + 1) { | ||
| 276 | mid = (hi + lo) >> 2; | ||
| 277 | if (batt <= palmte_battery_sample[mid]) | ||
| 278 | lo = mid; | ||
| 279 | else | ||
| 280 | hi = mid; | ||
| 281 | } | ||
| 282 | |||
| 283 | mid = palmte_battery_sample[lo] - palmte_battery_sample[hi]; | ||
| 284 | hi = palmte_battery_sample[lo] - batt; | ||
| 285 | info->battery_life = 100 - (100 * lo + 100 * hi / mid) / | ||
| 286 | ARRAY_SIZE(palmte_battery_sample); | ||
| 287 | info->time = INTERVAL * (ARRAY_SIZE(palmte_battery_sample) - | ||
| 288 | lo) - INTERVAL * hi / mid; | ||
| 289 | } | ||
| 290 | |||
| 291 | if (charging) { | ||
| 292 | info->ac_line_status = APM_AC_ONLINE; | ||
| 293 | info->battery_status = APM_BATTERY_STATUS_CHARGING; | ||
| 294 | info->battery_flag |= APM_BATTERY_FLAG_CHARGING; | ||
| 295 | } else { | ||
| 296 | info->ac_line_status = APM_AC_OFFLINE; | ||
| 297 | if (info->battery_life > BATTERY_HIGH_TRESHOLD) | ||
| 298 | info->battery_status = APM_BATTERY_STATUS_HIGH; | ||
| 299 | else if (info->battery_life > BATTERY_LOW_TRESHOLD) | ||
| 300 | info->battery_status = APM_BATTERY_STATUS_LOW; | ||
| 301 | else | ||
| 302 | info->battery_status = APM_BATTERY_STATUS_CRITICAL; | ||
| 303 | } | ||
| 304 | |||
| 305 | if (info->battery_life > BATTERY_HIGH_TRESHOLD) | ||
| 306 | info->battery_flag |= APM_BATTERY_FLAG_HIGH; | ||
| 307 | else if (info->battery_life > BATTERY_LOW_TRESHOLD) | ||
| 308 | info->battery_flag |= APM_BATTERY_FLAG_LOW; | ||
| 309 | else | ||
| 310 | info->battery_flag |= APM_BATTERY_FLAG_CRITICAL; | ||
| 311 | } | ||
| 312 | #else | ||
| 313 | #define palmte_get_power_status NULL | ||
| 314 | #endif | ||
| 315 | |||
| 316 | static struct tsc2102_config palmte_tsc2102_config = { | ||
| 317 | .use_internal = 0, | ||
| 318 | .monitor = TSC_BAT1 | TSC_AUX | TSC_TEMP, | ||
| 319 | .temp_at25c = { 2200, 2615 }, | ||
| 320 | .apm_report = palmte_get_power_status, | ||
| 321 | .alsa_config = &palmte_alsa_config, | ||
| 322 | }; | ||
| 323 | |||
| 70 | static struct omap_board_config_kernel palmte_config[] = { | 324 | static struct omap_board_config_kernel palmte_config[] = { |
| 71 | { OMAP_TAG_USB, &palmte_usb_config }, | 325 | { OMAP_TAG_USB, &palmte_usb_config }, |
| 72 | { OMAP_TAG_MMC, &palmte_mmc_config }, | 326 | { OMAP_TAG_MMC, &palmte_mmc_config }, |
| 73 | { OMAP_TAG_LCD, &palmte_lcd_config }, | 327 | { OMAP_TAG_LCD, &palmte_lcd_config }, |
| 328 | { OMAP_TAG_UART, &palmte_uart_config }, | ||
| 74 | }; | 329 | }; |
| 75 | 330 | ||
| 76 | static void __init omap_generic_init(void) | 331 | static struct spi_board_info palmte_spi_info[] __initdata = { |
| 332 | { | ||
| 333 | .modalias = "tsc2102", | ||
| 334 | .bus_num = 2, /* uWire (officially) */ | ||
| 335 | .chip_select = 0, /* As opposed to 3 */ | ||
| 336 | .irq = OMAP_GPIO_IRQ(PALMTE_PINTDAV_GPIO), | ||
| 337 | .platform_data = &palmte_tsc2102_config, | ||
| 338 | .max_speed_hz = 8000000, | ||
| 339 | }, | ||
| 340 | }; | ||
| 341 | |||
| 342 | /* Periodically check for changes on important input pins */ | ||
| 343 | struct timer_list palmte_pin_timer; | ||
| 344 | int prev_power, prev_headphones; | ||
| 345 | |||
| 346 | static void palmte_pin_handler(unsigned long data) { | ||
| 347 | int power, headphones; | ||
| 348 | |||
| 349 | power = !omap_get_gpio_datain(PALMTE_DC_GPIO); | ||
| 350 | headphones = omap_get_gpio_datain(PALMTE_HEADPHONES_GPIO); | ||
| 351 | |||
| 352 | if (power && !prev_power) | ||
| 353 | printk(KERN_INFO "PM: cable connected\n"); | ||
| 354 | else if (!power && prev_power) | ||
| 355 | printk(KERN_INFO "PM: cable disconnected\n"); | ||
| 356 | |||
| 357 | if (headphones && !prev_headphones) { | ||
| 358 | /* Headphones connected, disable speaker */ | ||
| 359 | omap_set_gpio_dataout(PALMTE_SPEAKER_GPIO, 0); | ||
| 360 | printk(KERN_INFO "PM: speaker off\n"); | ||
| 361 | } else if (!headphones && prev_headphones) { | ||
| 362 | /* Headphones unplugged, re-enable speaker */ | ||
| 363 | omap_set_gpio_dataout(PALMTE_SPEAKER_GPIO, 1); | ||
| 364 | printk(KERN_INFO "PM: speaker on\n"); | ||
| 365 | } | ||
| 366 | |||
| 367 | prev_power = power; | ||
| 368 | prev_headphones = headphones; | ||
| 369 | mod_timer(&palmte_pin_timer, jiffies + msecs_to_jiffies(500)); | ||
| 370 | } | ||
| 371 | |||
| 372 | static void __init palmte_gpio_setup(void) | ||
| 373 | { | ||
| 374 | /* Set TSC2102 PINTDAV pin as input */ | ||
| 375 | if (omap_request_gpio(PALMTE_PINTDAV_GPIO)) { | ||
| 376 | printk(KERN_ERR "Could not reserve PINTDAV GPIO!\n"); | ||
| 377 | return; | ||
| 378 | } | ||
| 379 | omap_set_gpio_direction(PALMTE_PINTDAV_GPIO, 1); | ||
| 380 | |||
| 381 | /* Monitor cable-connected signals */ | ||
| 382 | if (omap_request_gpio(PALMTE_DC_GPIO) || | ||
| 383 | omap_request_gpio(PALMTE_USB_OR_DC_GPIO) || | ||
| 384 | omap_request_gpio(PALMTE_USBDETECT_GPIO)) { | ||
| 385 | printk(KERN_ERR "Could not reserve cable signal GPIO!\n"); | ||
| 386 | return; | ||
| 387 | } | ||
| 388 | omap_set_gpio_direction(PALMTE_DC_GPIO, 1); | ||
| 389 | omap_set_gpio_direction(PALMTE_USB_OR_DC_GPIO, 1); | ||
| 390 | omap_set_gpio_direction(PALMTE_USBDETECT_GPIO, 1); | ||
| 391 | |||
| 392 | /* Set speaker-enable pin as output */ | ||
| 393 | if (omap_request_gpio(PALMTE_SPEAKER_GPIO)) { | ||
| 394 | printk(KERN_ERR "Could not reserve speaker GPIO!\n"); | ||
| 395 | return; | ||
| 396 | } | ||
| 397 | omap_set_gpio_direction(PALMTE_SPEAKER_GPIO, 0); | ||
| 398 | |||
| 399 | /* Monitor the headphones-connected signal */ | ||
| 400 | if (omap_request_gpio(PALMTE_HEADPHONES_GPIO)) { | ||
| 401 | printk(KERN_ERR "Could not reserve headphones signal GPIO!\n"); | ||
| 402 | return; | ||
| 403 | } | ||
| 404 | omap_set_gpio_direction(PALMTE_HEADPHONES_GPIO, 1); | ||
| 405 | |||
| 406 | prev_power = omap_get_gpio_datain(PALMTE_DC_GPIO); | ||
| 407 | prev_headphones = !omap_get_gpio_datain(PALMTE_HEADPHONES_GPIO); | ||
| 408 | setup_timer(&palmte_pin_timer, palmte_pin_handler, 0); | ||
| 409 | palmte_pin_handler(0); | ||
| 410 | } | ||
| 411 | |||
| 412 | static void __init omap_palmte_init(void) | ||
| 77 | { | 413 | { |
| 78 | omap_board_config = palmte_config; | 414 | omap_board_config = palmte_config; |
| 79 | omap_board_config_size = ARRAY_SIZE(palmte_config); | 415 | omap_board_config_size = ARRAY_SIZE(palmte_config); |
| 80 | 416 | ||
| 81 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 417 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
| 418 | |||
| 419 | spi_register_board_info(palmte_spi_info, ARRAY_SIZE(palmte_spi_info)); | ||
| 420 | |||
| 421 | omap_serial_init(); | ||
| 422 | palmte_gpio_setup(); | ||
| 82 | } | 423 | } |
| 83 | 424 | ||
| 84 | static void __init omap_generic_map_io(void) | 425 | static void __init omap_palmte_map_io(void) |
| 85 | { | 426 | { |
| 86 | omap1_map_common_io(); | 427 | omap1_map_common_io(); |
| 87 | } | 428 | } |
| @@ -90,8 +431,8 @@ MACHINE_START(OMAP_PALMTE, "OMAP310 based Palm Tungsten E") | |||
| 90 | .phys_io = 0xfff00000, | 431 | .phys_io = 0xfff00000, |
| 91 | .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc, | 432 | .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc, |
| 92 | .boot_params = 0x10000100, | 433 | .boot_params = 0x10000100, |
| 93 | .map_io = omap_generic_map_io, | 434 | .map_io = omap_palmte_map_io, |
| 94 | .init_irq = omap_generic_init_irq, | 435 | .init_irq = omap_palmte_init_irq, |
| 95 | .init_machine = omap_generic_init, | 436 | .init_machine = omap_palmte_init, |
| 96 | .timer = &omap_timer, | 437 | .timer = &omap_timer, |
| 97 | MACHINE_END | 438 | MACHINE_END |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c new file mode 100644 index 000000000000..e47010fec275 --- /dev/null +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
| @@ -0,0 +1,357 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/mach-omap1/board-palmtt.c | ||
| 3 | * | ||
| 4 | * Modified from board-palmtt2.c | ||
| 5 | * | ||
| 6 | * Modified and amended for Palm Tungsten|T | ||
| 7 | * by Marek Vasut <marek.vasut@gmail.com> | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include <linux/delay.h> | ||
| 15 | #include <linux/kernel.h> | ||
| 16 | #include <linux/init.h> | ||
| 17 | #include <linux/platform_device.h> | ||
| 18 | #include <linux/notifier.h> | ||
| 19 | #include <linux/clk.h> | ||
| 20 | #include <linux/input.h> | ||
| 21 | #include <linux/interrupt.h> | ||
| 22 | #include <linux/mtd/mtd.h> | ||
| 23 | #include <linux/mtd/partitions.h> | ||
| 24 | #include <linux/leds.h> | ||
| 25 | |||
| 26 | #include <asm/hardware.h> | ||
| 27 | #include <asm/mach-types.h> | ||
| 28 | #include <asm/mach/arch.h> | ||
| 29 | #include <asm/mach/map.h> | ||
| 30 | #include <asm/mach/flash.h> | ||
| 31 | |||
| 32 | #include <asm/arch/led.h> | ||
| 33 | #include <asm/arch/mcbsp.h> | ||
| 34 | #include <asm/arch/gpio.h> | ||
| 35 | #include <asm/arch/mux.h> | ||
| 36 | #include <asm/arch/usb.h> | ||
| 37 | #include <asm/arch/dma.h> | ||
| 38 | #include <asm/arch/tc.h> | ||
| 39 | #include <asm/arch/board.h> | ||
| 40 | #include <asm/arch/irda.h> | ||
| 41 | #include <asm/arch/keypad.h> | ||
| 42 | #include <asm/arch/common.h> | ||
| 43 | #include <asm/arch/omap-alsa.h> | ||
| 44 | |||
| 45 | #include <linux/input.h> | ||
| 46 | #include <linux/spi/spi.h> | ||
| 47 | #include <linux/spi/ads7846.h> | ||
| 48 | |||
| 49 | static int palmtt_keymap[] = { | ||
| 50 | KEY(0, 0, KEY_ESC), | ||
| 51 | KEY(0, 1, KEY_SPACE), | ||
| 52 | KEY(0, 2, KEY_LEFTCTRL), | ||
| 53 | KEY(0, 3, KEY_TAB), | ||
| 54 | KEY(0, 4, KEY_ENTER), | ||
| 55 | KEY(1, 0, KEY_LEFT), | ||
| 56 | KEY(1, 1, KEY_DOWN), | ||
| 57 | KEY(1, 2, KEY_UP), | ||
| 58 | KEY(1, 3, KEY_RIGHT), | ||
| 59 | KEY(2, 0, KEY_SLEEP), | ||
| 60 | KEY(2, 4, KEY_Y), | ||
| 61 | 0 | ||
| 62 | }; | ||
| 63 | |||
| 64 | static struct mtd_partition palmtt_partitions[] = { | ||
| 65 | { | ||
| 66 | .name = "write8k", | ||
| 67 | .offset = 0, | ||
| 68 | .size = SZ_8K, | ||
| 69 | .mask_flags = 0, | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | .name = "PalmOS-BootLoader(ro)", | ||
| 73 | .offset = SZ_8K, | ||
| 74 | .size = 7 * SZ_8K, | ||
| 75 | .mask_flags = MTD_WRITEABLE, | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | .name = "u-boot", | ||
| 79 | .offset = MTDPART_OFS_APPEND, | ||
| 80 | .size = 8 * SZ_8K, | ||
| 81 | .mask_flags = 0, | ||
| 82 | }, | ||
| 83 | { | ||
| 84 | .name = "PalmOS-FS(ro)", | ||
| 85 | .offset = MTDPART_OFS_APPEND, | ||
| 86 | .size = 7 * SZ_1M + 4 * SZ_64K - 16 * SZ_8K, | ||
| 87 | .mask_flags = MTD_WRITEABLE, | ||
| 88 | }, | ||
| 89 | { | ||
| 90 | .name = "u-boot(rez)", | ||
| 91 | .offset = MTDPART_OFS_APPEND, | ||
| 92 | .size = SZ_128K, | ||
| 93 | .mask_flags = 0 | ||
| 94 | }, | ||
| 95 | { | ||
| 96 | .name = "empty", | ||
| 97 | .offset = MTDPART_OFS_APPEND, | ||
| 98 | .size = MTDPART_SIZ_FULL, | ||
| 99 | .mask_flags = 0 | ||
| 100 | } | ||
| 101 | }; | ||
| 102 | |||
| 103 | static struct flash_platform_data palmtt_flash_data = { | ||
| 104 | .map_name = "cfi_probe", | ||
| 105 | .width = 2, | ||
| 106 | .parts = palmtt_partitions, | ||
| 107 | .nr_parts = ARRAY_SIZE(palmtt_partitions), | ||
| 108 | }; | ||
| 109 | |||
| 110 | static struct resource palmtt_flash_resource = { | ||
| 111 | .start = OMAP_CS0_PHYS, | ||
| 112 | .end = OMAP_CS0_PHYS + SZ_8M - 1, | ||
| 113 | .flags = IORESOURCE_MEM, | ||
| 114 | }; | ||
| 115 | |||
| 116 | static struct platform_device palmtt_flash_device = { | ||
| 117 | .name = "omapflash", | ||
| 118 | .id = 0, | ||
| 119 | .dev = { | ||
| 120 | .platform_data = &palmtt_flash_data, | ||
| 121 | }, | ||
| 122 | .num_resources = 1, | ||
| 123 | .resource = &palmtt_flash_resource, | ||
| 124 | }; | ||
| 125 | |||
| 126 | #define DEFAULT_BITPERSAMPLE 16 | ||
| 127 | |||
| 128 | static struct omap_mcbsp_reg_cfg mcbsp_regs = { | ||
| 129 | .spcr2 = FREE | FRST | GRST | XRST | XINTM(3), | ||
| 130 | .spcr1 = RINTM(3) | RRST, | ||
| 131 | .rcr2 = RPHASE | RFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 132 | RWDLEN2(OMAP_MCBSP_WORD_16) | RDATDLY(0), | ||
| 133 | .rcr1 = RFRLEN1(OMAP_MCBSP_WORD_8) | | ||
| 134 | RWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 135 | .xcr2 = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 136 | XWDLEN2(OMAP_MCBSP_WORD_16) | XDATDLY(0) | XFIG, | ||
| 137 | .xcr1 = XFRLEN1(OMAP_MCBSP_WORD_8) | | ||
| 138 | XWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 139 | .srgr1 = FWID(DEFAULT_BITPERSAMPLE - 1), | ||
| 140 | .srgr2 = GSYNC | CLKSP | FSGM | | ||
| 141 | FPER(DEFAULT_BITPERSAMPLE * 2 - 1), | ||
| 142 | .pcr0 = CLKXP | CLKRP, /* mcbsp: slave */ | ||
| 143 | }; | ||
| 144 | |||
| 145 | static struct omap_alsa_codec_config alsa_config = { | ||
| 146 | .name = "PalmTT AIC23", | ||
| 147 | .mcbsp_regs_alsa = &mcbsp_regs, | ||
| 148 | .codec_configure_dev = NULL, // aic23_configure, | ||
| 149 | .codec_set_samplerate = NULL, // aic23_set_samplerate, | ||
| 150 | .codec_clock_setup = NULL, // aic23_clock_setup, | ||
| 151 | .codec_clock_on = NULL, // aic23_clock_on, | ||
| 152 | .codec_clock_off = NULL, // aic23_clock_off, | ||
| 153 | .get_default_samplerate = NULL, // aic23_get_default_samplerate, | ||
| 154 | }; | ||
| 155 | |||
| 156 | static struct platform_device palmtt_mcbsp1_device = { | ||
| 157 | .name = "omap_alsa_mcbsp", | ||
| 158 | .id = 1, | ||
| 159 | .dev = { | ||
| 160 | .platform_data = &alsa_config, | ||
| 161 | }, | ||
| 162 | }; | ||
| 163 | |||
| 164 | static struct resource palmtt_kp_resources[] = { | ||
| 165 | [0] = { | ||
| 166 | .start = INT_KEYBOARD, | ||
| 167 | .end = INT_KEYBOARD, | ||
| 168 | .flags = IORESOURCE_IRQ, | ||
| 169 | }, | ||
| 170 | }; | ||
| 171 | |||
| 172 | static struct omap_kp_platform_data palmtt_kp_data = { | ||
| 173 | .rows = 6, | ||
| 174 | .cols = 3, | ||
| 175 | .keymap = palmtt_keymap, | ||
| 176 | }; | ||
| 177 | |||
| 178 | static struct platform_device palmtt_kp_device = { | ||
| 179 | .name = "omap-keypad", | ||
| 180 | .id = -1, | ||
| 181 | .dev = { | ||
| 182 | .platform_data = &palmtt_kp_data, | ||
| 183 | }, | ||
| 184 | .num_resources = ARRAY_SIZE(palmtt_kp_resources), | ||
| 185 | .resource = palmtt_kp_resources, | ||
| 186 | }; | ||
| 187 | |||
| 188 | static struct platform_device palmtt_lcd_device = { | ||
| 189 | .name = "lcd_palmtt", | ||
| 190 | .id = -1, | ||
| 191 | }; | ||
| 192 | static struct omap_irda_config palmtt_irda_config = { | ||
| 193 | .transceiver_cap = IR_SIRMODE, | ||
| 194 | .rx_channel = OMAP_DMA_UART3_RX, | ||
| 195 | .tx_channel = OMAP_DMA_UART3_TX, | ||
| 196 | .dest_start = UART3_THR, | ||
| 197 | .src_start = UART3_RHR, | ||
| 198 | .tx_trigger = 0, | ||
| 199 | .rx_trigger = 0, | ||
| 200 | }; | ||
| 201 | |||
| 202 | static struct resource palmtt_irda_resources[] = { | ||
| 203 | [0] = { | ||
| 204 | .start = INT_UART3, | ||
| 205 | .end = INT_UART3, | ||
| 206 | .flags = IORESOURCE_IRQ, | ||
| 207 | }, | ||
| 208 | }; | ||
| 209 | |||
| 210 | static struct platform_device palmtt_irda_device = { | ||
| 211 | .name = "omapirda", | ||
| 212 | .id = -1, | ||
| 213 | .dev = { | ||
| 214 | .platform_data = &palmtt_irda_config, | ||
| 215 | }, | ||
| 216 | .num_resources = ARRAY_SIZE(palmtt_irda_resources), | ||
| 217 | .resource = palmtt_irda_resources, | ||
| 218 | }; | ||
| 219 | |||
| 220 | static struct platform_device palmtt_spi_device = { | ||
| 221 | .name = "spi_palmtt", | ||
| 222 | .id = -1, | ||
| 223 | }; | ||
| 224 | |||
| 225 | static struct omap_backlight_config palmtt_backlight_config = { | ||
| 226 | .default_intensity = 0xa0, | ||
| 227 | }; | ||
| 228 | |||
| 229 | static struct platform_device palmtt_backlight_device = { | ||
| 230 | .name = "omap-bl", | ||
| 231 | .id = -1, | ||
| 232 | .dev = { | ||
| 233 | .platform_data= &palmtt_backlight_config, | ||
| 234 | }, | ||
| 235 | }; | ||
| 236 | |||
| 237 | static struct omap_led_config palmtt_led_config[] = { | ||
| 238 | { | ||
| 239 | .cdev = { | ||
| 240 | .name = "palmtt:led0", | ||
| 241 | }, | ||
| 242 | .gpio = PALMTT_LED_GPIO, | ||
| 243 | }, | ||
| 244 | }; | ||
| 245 | |||
| 246 | static struct omap_led_platform_data palmtt_led_data = { | ||
| 247 | .nr_leds = ARRAY_SIZE(palmtt_led_config), | ||
| 248 | .leds = palmtt_led_config, | ||
| 249 | }; | ||
| 250 | |||
| 251 | static struct platform_device palmtt_led_device = { | ||
| 252 | .name = "omap-led", | ||
| 253 | .id = -1, | ||
| 254 | .dev = { | ||
| 255 | .platform_data = &palmtt_led_data, | ||
| 256 | }, | ||
| 257 | }; | ||
| 258 | |||
| 259 | static struct platform_device *palmtt_devices[] __initdata = { | ||
| 260 | &palmtt_flash_device, | ||
| 261 | &palmtt_mcbsp1_device, | ||
| 262 | &palmtt_kp_device, | ||
| 263 | &palmtt_lcd_device, | ||
| 264 | &palmtt_irda_device, | ||
| 265 | &palmtt_spi_device, | ||
| 266 | &palmtt_backlight_device, | ||
| 267 | &palmtt_led_device, | ||
| 268 | }; | ||
| 269 | |||
| 270 | static int palmtt_get_pendown_state(void) | ||
| 271 | { | ||
| 272 | return !omap_get_gpio_datain(6); | ||
| 273 | } | ||
| 274 | |||
| 275 | static const struct ads7846_platform_data palmtt_ts_info = { | ||
| 276 | .model = 7846, | ||
| 277 | .vref_delay_usecs = 100, /* internal, no capacitor */ | ||
| 278 | .x_plate_ohms = 419, | ||
| 279 | .y_plate_ohms = 486, | ||
| 280 | .get_pendown_state = palmtt_get_pendown_state, | ||
| 281 | }; | ||
| 282 | |||
| 283 | static struct spi_board_info __initdata palmtt_boardinfo[] = { | ||
| 284 | { | ||
| 285 | /* MicroWire (bus 2) CS0 has an ads7846e */ | ||
| 286 | .modalias = "ads7846", | ||
| 287 | .platform_data = &palmtt_ts_info, | ||
| 288 | .irq = OMAP_GPIO_IRQ(6), | ||
| 289 | .max_speed_hz = 120000 /* max sample rate at 3V */ | ||
| 290 | * 26 /* command + data + overhead */, | ||
| 291 | .bus_num = 2, | ||
| 292 | .chip_select = 0, | ||
| 293 | } | ||
| 294 | }; | ||
| 295 | |||
| 296 | static void __init omap_palmtt_init_irq(void) | ||
| 297 | { | ||
| 298 | omap1_init_common_hw(); | ||
| 299 | omap_init_irq(); | ||
| 300 | } | ||
| 301 | |||
| 302 | static struct omap_usb_config palmtt_usb_config __initdata = { | ||
| 303 | .register_dev = 1, | ||
| 304 | .hmc_mode = 0, | ||
| 305 | .pins[0] = 2, | ||
| 306 | }; | ||
| 307 | |||
| 308 | static struct omap_lcd_config palmtt_lcd_config __initdata = { | ||
| 309 | .ctrl_name = "internal", | ||
| 310 | }; | ||
| 311 | |||
| 312 | static struct omap_uart_config palmtt_uart_config __initdata = { | ||
| 313 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
| 314 | }; | ||
| 315 | |||
| 316 | static struct omap_board_config_kernel palmtt_config[] = { | ||
| 317 | { OMAP_TAG_USB, &palmtt_usb_config }, | ||
| 318 | { OMAP_TAG_LCD, &palmtt_lcd_config }, | ||
| 319 | { OMAP_TAG_UART, &palmtt_uart_config }, | ||
| 320 | }; | ||
| 321 | |||
| 322 | static void __init omap_mpu_wdt_mode(int mode) { | ||
| 323 | if (mode) | ||
| 324 | omap_writew(0x8000, OMAP_WDT_TIMER_MODE); | ||
| 325 | else { | ||
| 326 | omap_writew(0x00f5, OMAP_WDT_TIMER_MODE); | ||
| 327 | omap_writew(0x00a0, OMAP_WDT_TIMER_MODE); | ||
| 328 | } | ||
| 329 | } | ||
| 330 | |||
| 331 | static void __init omap_palmtt_init(void) | ||
| 332 | { | ||
| 333 | omap_mpu_wdt_mode(0); | ||
| 334 | |||
| 335 | omap_board_config = palmtt_config; | ||
| 336 | omap_board_config_size = ARRAY_SIZE(palmtt_config); | ||
| 337 | |||
| 338 | platform_add_devices(palmtt_devices, ARRAY_SIZE(palmtt_devices)); | ||
| 339 | |||
| 340 | spi_register_board_info(palmtt_boardinfo,ARRAY_SIZE(palmtt_boardinfo)); | ||
| 341 | omap_serial_init(); | ||
| 342 | } | ||
| 343 | |||
| 344 | static void __init omap_palmtt_map_io(void) | ||
| 345 | { | ||
| 346 | omap1_map_common_io(); | ||
| 347 | } | ||
| 348 | |||
| 349 | MACHINE_START(OMAP_PALMTT, "OMAP1510 based Palm Tungsten|T") | ||
| 350 | .phys_io = 0xfff00000, | ||
| 351 | .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc, | ||
| 352 | .boot_params = 0x10000100, | ||
| 353 | .map_io = omap_palmtt_map_io, | ||
| 354 | .init_irq = omap_palmtt_init_irq, | ||
| 355 | .init_machine = omap_palmtt_init, | ||
| 356 | .timer = &omap_timer, | ||
| 357 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c new file mode 100644 index 000000000000..c275d517764a --- /dev/null +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
| @@ -0,0 +1,383 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/mach-omap1/board-palmz71.c | ||
| 3 | * | ||
| 4 | * Modified from board-generic.c | ||
| 5 | * | ||
| 6 | * Support for the Palm Zire71 PDA. | ||
| 7 | * | ||
| 8 | * Original version : Laurent Gonzalez | ||
| 9 | * | ||
| 10 | * Modified for zire71 : Marek Vasut | ||
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify | ||
| 13 | * it under the terms of the GNU General Public License version 2 as | ||
| 14 | * published by the Free Software Foundation. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include <linux/delay.h> | ||
| 18 | #include <linux/kernel.h> | ||
| 19 | #include <linux/init.h> | ||
| 20 | #include <linux/platform_device.h> | ||
| 21 | #include <linux/notifier.h> | ||
| 22 | #include <linux/clk.h> | ||
| 23 | #include <linux/irq.h> | ||
| 24 | #include <linux/input.h> | ||
| 25 | #include <linux/interrupt.h> | ||
| 26 | #include <linux/mtd/mtd.h> | ||
| 27 | #include <linux/mtd/partitions.h> | ||
| 28 | |||
| 29 | #include <asm/hardware.h> | ||
| 30 | #include <asm/mach-types.h> | ||
| 31 | #include <asm/mach/arch.h> | ||
| 32 | #include <asm/mach/map.h> | ||
| 33 | #include <asm/mach/flash.h> | ||
| 34 | |||
| 35 | #include <asm/arch/mcbsp.h> | ||
| 36 | #include <asm/arch/gpio.h> | ||
| 37 | #include <asm/arch/mux.h> | ||
| 38 | #include <asm/arch/usb.h> | ||
| 39 | #include <asm/arch/dma.h> | ||
| 40 | #include <asm/arch/tc.h> | ||
| 41 | #include <asm/arch/board.h> | ||
| 42 | #include <asm/arch/irda.h> | ||
| 43 | #include <asm/arch/keypad.h> | ||
| 44 | #include <asm/arch/common.h> | ||
| 45 | #include <asm/arch/omap-alsa.h> | ||
| 46 | |||
| 47 | #include <linux/input.h> | ||
| 48 | #include <linux/spi/spi.h> | ||
| 49 | #include <linux/spi/ads7846.h> | ||
| 50 | |||
| 51 | static void __init | ||
| 52 | omap_palmz71_init_irq(void) | ||
| 53 | { | ||
| 54 | omap1_init_common_hw(); | ||
| 55 | omap_init_irq(); | ||
| 56 | omap_gpio_init(); | ||
| 57 | } | ||
| 58 | |||
| 59 | static int palmz71_keymap[] = { | ||
| 60 | KEY(0, 0, KEY_F1), | ||
| 61 | KEY(0, 1, KEY_F2), | ||
| 62 | KEY(0, 2, KEY_F3), | ||
| 63 | KEY(0, 3, KEY_F4), | ||
| 64 | KEY(0, 4, KEY_POWER), | ||
| 65 | KEY(1, 0, KEY_LEFT), | ||
| 66 | KEY(1, 1, KEY_DOWN), | ||
| 67 | KEY(1, 2, KEY_UP), | ||
| 68 | KEY(1, 3, KEY_RIGHT), | ||
| 69 | KEY(1, 4, KEY_CENTER), | ||
| 70 | KEY(2, 0, KEY_CAMERA), | ||
| 71 | 0, | ||
| 72 | }; | ||
| 73 | |||
| 74 | static struct omap_kp_platform_data palmz71_kp_data = { | ||
| 75 | .rows = 8, | ||
| 76 | .cols = 8, | ||
| 77 | .keymap = palmz71_keymap, | ||
| 78 | .rep = 1, | ||
| 79 | .delay = 80, | ||
| 80 | }; | ||
| 81 | |||
| 82 | static struct resource palmz71_kp_resources[] = { | ||
| 83 | [0] = { | ||
| 84 | .start = INT_KEYBOARD, | ||
| 85 | .end = INT_KEYBOARD, | ||
| 86 | .flags = IORESOURCE_IRQ, | ||
| 87 | }, | ||
| 88 | }; | ||
| 89 | |||
| 90 | static struct platform_device palmz71_kp_device = { | ||
| 91 | .name = "omap-keypad", | ||
| 92 | .id = -1, | ||
| 93 | .dev = { | ||
| 94 | .platform_data = &palmz71_kp_data, | ||
| 95 | }, | ||
| 96 | .num_resources = ARRAY_SIZE(palmz71_kp_resources), | ||
| 97 | .resource = palmz71_kp_resources, | ||
| 98 | }; | ||
| 99 | |||
| 100 | static struct mtd_partition palmz71_rom_partitions[] = { | ||
| 101 | /* PalmOS "Small ROM", contains the bootloader and the debugger */ | ||
| 102 | { | ||
| 103 | .name = "smallrom", | ||
| 104 | .offset = 0, | ||
| 105 | .size = 0xa000, | ||
| 106 | .mask_flags = MTD_WRITEABLE, | ||
| 107 | }, | ||
| 108 | /* PalmOS "Big ROM", a filesystem with all the OS code and data */ | ||
| 109 | { | ||
| 110 | .name = "bigrom", | ||
| 111 | .offset = SZ_128K, | ||
| 112 | /* | ||
| 113 | * 0x5f0000 bytes big in the multi-language ("EFIGS") version, | ||
| 114 | * 0x7b0000 bytes in the English-only ("enUS") version. | ||
| 115 | */ | ||
| 116 | .size = 0x7b0000, | ||
| 117 | .mask_flags = MTD_WRITEABLE, | ||
| 118 | }, | ||
| 119 | }; | ||
| 120 | |||
| 121 | static struct flash_platform_data palmz71_rom_data = { | ||
| 122 | .map_name = "map_rom", | ||
| 123 | .name = "onboardrom", | ||
| 124 | .width = 2, | ||
| 125 | .parts = palmz71_rom_partitions, | ||
| 126 | .nr_parts = ARRAY_SIZE(palmz71_rom_partitions), | ||
| 127 | }; | ||
| 128 | |||
| 129 | static struct resource palmz71_rom_resource = { | ||
| 130 | .start = OMAP_CS0_PHYS, | ||
| 131 | .end = OMAP_CS0_PHYS + SZ_8M - 1, | ||
| 132 | .flags = IORESOURCE_MEM, | ||
| 133 | }; | ||
| 134 | |||
| 135 | static struct platform_device palmz71_rom_device = { | ||
| 136 | .name = "omapflash", | ||
| 137 | .id = -1, | ||
| 138 | .dev = { | ||
| 139 | .platform_data = &palmz71_rom_data, | ||
| 140 | }, | ||
| 141 | .num_resources = 1, | ||
| 142 | .resource = &palmz71_rom_resource, | ||
| 143 | }; | ||
| 144 | |||
| 145 | static struct platform_device palmz71_lcd_device = { | ||
| 146 | .name = "lcd_palmz71", | ||
| 147 | .id = -1, | ||
| 148 | }; | ||
| 149 | |||
| 150 | static struct omap_irda_config palmz71_irda_config = { | ||
| 151 | .transceiver_cap = IR_SIRMODE, | ||
| 152 | .rx_channel = OMAP_DMA_UART3_RX, | ||
| 153 | .tx_channel = OMAP_DMA_UART3_TX, | ||
| 154 | .dest_start = UART3_THR, | ||
| 155 | .src_start = UART3_RHR, | ||
| 156 | .tx_trigger = 0, | ||
| 157 | .rx_trigger = 0, | ||
| 158 | }; | ||
| 159 | |||
| 160 | static struct resource palmz71_irda_resources[] = { | ||
| 161 | [0] = { | ||
| 162 | .start = INT_UART3, | ||
| 163 | .end = INT_UART3, | ||
| 164 | .flags = IORESOURCE_IRQ, | ||
| 165 | }, | ||
| 166 | }; | ||
| 167 | |||
| 168 | static struct platform_device palmz71_irda_device = { | ||
| 169 | .name = "omapirda", | ||
| 170 | .id = -1, | ||
| 171 | .dev = { | ||
| 172 | .platform_data = &palmz71_irda_config, | ||
| 173 | }, | ||
| 174 | .num_resources = ARRAY_SIZE(palmz71_irda_resources), | ||
| 175 | .resource = palmz71_irda_resources, | ||
| 176 | }; | ||
| 177 | |||
| 178 | static struct platform_device palmz71_spi_device = { | ||
| 179 | .name = "spi_palmz71", | ||
| 180 | .id = -1, | ||
| 181 | }; | ||
| 182 | |||
| 183 | #define DEFAULT_BITPERSAMPLE 16 | ||
| 184 | |||
| 185 | static struct omap_mcbsp_reg_cfg mcbsp_regs = { | ||
| 186 | .spcr2 = FREE | FRST | GRST | XRST | XINTM(3), | ||
| 187 | .spcr1 = RINTM(3) | RRST, | ||
| 188 | .rcr2 = RPHASE | RFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 189 | RWDLEN2(OMAP_MCBSP_WORD_16) | RDATDLY(0), | ||
| 190 | .rcr1 = RFRLEN1(OMAP_MCBSP_WORD_8) | RWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 191 | .xcr2 = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) | | ||
| 192 | XWDLEN2(OMAP_MCBSP_WORD_16) | XDATDLY(0) | XFIG, | ||
| 193 | .xcr1 = XFRLEN1(OMAP_MCBSP_WORD_8) | XWDLEN1(OMAP_MCBSP_WORD_16), | ||
| 194 | .srgr1 = FWID(DEFAULT_BITPERSAMPLE - 1), | ||
| 195 | .srgr2 = GSYNC | CLKSP | FSGM | FPER(DEFAULT_BITPERSAMPLE * 2 - 1), | ||
| 196 | .pcr0 = CLKXP | CLKRP, /* mcbsp: slave */ | ||
| 197 | }; | ||
| 198 | |||
| 199 | static struct omap_alsa_codec_config alsa_config = { | ||
| 200 | .name = "PalmZ71 AIC23", | ||
| 201 | .mcbsp_regs_alsa = &mcbsp_regs, | ||
| 202 | .codec_configure_dev = NULL, /* aic23_configure */ | ||
| 203 | .codec_set_samplerate = NULL, /* aic23_set_samplerate */ | ||
| 204 | .codec_clock_setup = NULL, /* aic23_clock_setup */ | ||
| 205 | .codec_clock_on = NULL, /* aic23_clock_on */ | ||
| 206 | .codec_clock_off = NULL, /* aic23_clock_off */ | ||
| 207 | .get_default_samplerate = NULL, /* aic23_get_default_samplerate */ | ||
| 208 | }; | ||
| 209 | |||
| 210 | static struct platform_device palmz71_mcbsp1_device = { | ||
| 211 | .name = "omap_alsa_mcbsp", | ||
| 212 | .id = 1, | ||
| 213 | .dev = { | ||
| 214 | .platform_data = &alsa_config, | ||
| 215 | }, | ||
| 216 | }; | ||
| 217 | |||
| 218 | static struct omap_backlight_config palmz71_backlight_config = { | ||
| 219 | .default_intensity = 0xa0, | ||
| 220 | }; | ||
| 221 | |||
| 222 | static struct platform_device palmz71_backlight_device = { | ||
| 223 | .name = "omap-bl", | ||
| 224 | .id = -1, | ||
| 225 | .dev = { | ||
| 226 | .platform_data = &palmz71_backlight_config, | ||
| 227 | }, | ||
| 228 | }; | ||
| 229 | |||
| 230 | static struct platform_device *devices[] __initdata = { | ||
| 231 | &palmz71_rom_device, | ||
| 232 | &palmz71_kp_device, | ||
| 233 | &palmz71_mcbsp1_device, | ||
| 234 | &palmz71_lcd_device, | ||
| 235 | &palmz71_irda_device, | ||
| 236 | &palmz71_spi_device, | ||
| 237 | &palmz71_backlight_device, | ||
| 238 | }; | ||
| 239 | |||
| 240 | static int | ||
| 241 | palmz71_get_pendown_state(void) | ||
| 242 | { | ||
| 243 | return !omap_get_gpio_datain(PALMZ71_PENIRQ_GPIO); | ||
| 244 | } | ||
| 245 | |||
| 246 | static const struct ads7846_platform_data palmz71_ts_info = { | ||
| 247 | .model = 7846, | ||
| 248 | .vref_delay_usecs = 100, /* internal, no capacitor */ | ||
| 249 | .x_plate_ohms = 419, | ||
| 250 | .y_plate_ohms = 486, | ||
| 251 | .get_pendown_state = palmz71_get_pendown_state, | ||
| 252 | }; | ||
| 253 | |||
| 254 | static struct spi_board_info __initdata palmz71_boardinfo[] = { { | ||
| 255 | /* MicroWire (bus 2) CS0 has an ads7846e */ | ||
| 256 | .modalias = "ads7846", | ||
| 257 | .platform_data = &palmz71_ts_info, | ||
| 258 | .irq = OMAP_GPIO_IRQ(PALMZ71_PENIRQ_GPIO), | ||
| 259 | .max_speed_hz = 120000 /* max sample rate at 3V */ | ||
| 260 | * 26 /* command + data + overhead */, | ||
| 261 | .bus_num = 2, | ||
| 262 | .chip_select = 0, | ||
| 263 | } }; | ||
| 264 | |||
| 265 | static struct omap_usb_config palmz71_usb_config __initdata = { | ||
| 266 | .register_dev = 1, /* Mini-B only receptacle */ | ||
| 267 | .hmc_mode = 0, | ||
| 268 | .pins[0] = 2, | ||
| 269 | }; | ||
| 270 | |||
| 271 | static struct omap_mmc_config palmz71_mmc_config __initdata = { | ||
| 272 | .mmc[0] = { | ||
| 273 | .enabled = 1, | ||
| 274 | .wire4 = 0, | ||
| 275 | .wp_pin = PALMZ71_MMC_WP_GPIO, | ||
| 276 | .power_pin = -1, | ||
| 277 | .switch_pin = PALMZ71_MMC_IN_GPIO, | ||
| 278 | }, | ||
| 279 | }; | ||
| 280 | |||
| 281 | static struct omap_lcd_config palmz71_lcd_config __initdata = { | ||
| 282 | .ctrl_name = "internal", | ||
| 283 | }; | ||
| 284 | |||
| 285 | static struct omap_uart_config palmz71_uart_config __initdata = { | ||
| 286 | .enabled_uarts = (1 << 0) | (1 << 1) | (0 << 2), | ||
| 287 | }; | ||
| 288 | |||
| 289 | static struct omap_board_config_kernel palmz71_config[] = { | ||
| 290 | {OMAP_TAG_USB, &palmz71_usb_config}, | ||
| 291 | {OMAP_TAG_MMC, &palmz71_mmc_config}, | ||
| 292 | {OMAP_TAG_LCD, &palmz71_lcd_config}, | ||
| 293 | {OMAP_TAG_UART, &palmz71_uart_config}, | ||
| 294 | }; | ||
| 295 | |||
| 296 | static irqreturn_t | ||
| 297 | palmz71_powercable(int irq, void *dev_id) | ||
| 298 | { | ||
| 299 | if (omap_get_gpio_datain(PALMZ71_USBDETECT_GPIO)) { | ||
| 300 | printk(KERN_INFO "PM: Power cable connected\n"); | ||
| 301 | set_irq_type(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | ||
| 302 | IRQT_FALLING); | ||
| 303 | } else { | ||
| 304 | printk(KERN_INFO "PM: Power cable disconnected\n"); | ||
| 305 | set_irq_type(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | ||
| 306 | IRQT_RISING); | ||
| 307 | } | ||
| 308 | return IRQ_HANDLED; | ||
| 309 | } | ||
| 310 | |||
| 311 | static void __init | ||
| 312 | omap_mpu_wdt_mode(int mode) | ||
| 313 | { | ||
| 314 | if (mode) | ||
| 315 | omap_writew(0x8000, OMAP_WDT_TIMER_MODE); | ||
| 316 | else { | ||
| 317 | omap_writew(0x00f5, OMAP_WDT_TIMER_MODE); | ||
| 318 | omap_writew(0x00a0, OMAP_WDT_TIMER_MODE); | ||
| 319 | } | ||
| 320 | } | ||
| 321 | |||
| 322 | static void __init | ||
| 323 | palmz71_gpio_setup(int early) | ||
| 324 | { | ||
| 325 | if (early) { | ||
| 326 | /* Only set GPIO1 so we have a working serial */ | ||
| 327 | omap_set_gpio_dataout(1, 1); | ||
| 328 | omap_set_gpio_direction(1, 0); | ||
| 329 | } else { | ||
| 330 | /* Set MMC/SD host WP pin as input */ | ||
| 331 | if (omap_request_gpio(PALMZ71_MMC_WP_GPIO)) { | ||
| 332 | printk(KERN_ERR "Could not reserve WP GPIO!\n"); | ||
| 333 | return; | ||
| 334 | } | ||
| 335 | omap_set_gpio_direction(PALMZ71_MMC_WP_GPIO, 1); | ||
| 336 | |||
| 337 | /* Monitor the Power-cable-connected signal */ | ||
| 338 | if (omap_request_gpio(PALMZ71_USBDETECT_GPIO)) { | ||
| 339 | printk(KERN_ERR | ||
| 340 | "Could not reserve cable signal GPIO!\n"); | ||
| 341 | return; | ||
| 342 | } | ||
| 343 | omap_set_gpio_direction(PALMZ71_USBDETECT_GPIO, 1); | ||
| 344 | if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | ||
| 345 | palmz71_powercable, IRQF_SAMPLE_RANDOM, | ||
| 346 | "palmz71-cable", 0)) | ||
| 347 | printk(KERN_ERR | ||
| 348 | "IRQ request for power cable failed!\n"); | ||
| 349 | palmz71_powercable(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), 0); | ||
| 350 | } | ||
| 351 | } | ||
| 352 | |||
| 353 | static void __init | ||
| 354 | omap_palmz71_init(void) | ||
| 355 | { | ||
| 356 | palmz71_gpio_setup(1); | ||
| 357 | omap_mpu_wdt_mode(0); | ||
| 358 | |||
| 359 | omap_board_config = palmz71_config; | ||
| 360 | omap_board_config_size = ARRAY_SIZE(palmz71_config); | ||
| 361 | |||
| 362 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
| 363 | |||
| 364 | spi_register_board_info(palmz71_boardinfo, | ||
| 365 | ARRAY_SIZE(palmz71_boardinfo)); | ||
| 366 | omap_serial_init(); | ||
| 367 | palmz71_gpio_setup(0); | ||
| 368 | } | ||
| 369 | |||
| 370 | static void __init | ||
| 371 | omap_palmz71_map_io(void) | ||
| 372 | { | ||
| 373 | omap1_map_common_io(); | ||
| 374 | } | ||
| 375 | |||
| 376 | MACHINE_START(OMAP_PALMZ71, "OMAP310 based Palm Zire71") | ||
| 377 | .phys_io = 0xfff00000, | ||
| 378 | .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc, | ||
| 379 | .boot_params = 0x10000100,.map_io = omap_palmz71_map_io, | ||
| 380 | .init_irq = omap_palmz71_init_irq, | ||
| 381 | .init_machine = omap_palmz71_init, | ||
| 382 | .timer = &omap_timer, | ||
| 383 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c new file mode 100644 index 000000000000..2743d639aa05 --- /dev/null +++ b/arch/arm/mach-omap1/board-sx1.c | |||
| @@ -0,0 +1,494 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/mach-omap1/board-sx1.c | ||
| 3 | * | ||
| 4 | * Modified from board-generic.c | ||
| 5 | * | ||
| 6 | * Support for the Siemens SX1 mobile phone. | ||
| 7 | * | ||
| 8 | * Original version : Vladimir Ananiev (Vovan888-at-gmail com) | ||
| 9 | * | ||
| 10 | * Maintainters : Vladimir Ananiev (aka Vovan888), Sergge | ||
| 11 | * oslik.ru | ||
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or modify | ||
| 14 | * it under the terms of the GNU General Public License version 2 as | ||
| 15 | * published by the Free Software Foundation. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include <linux/kernel.h> | ||
| 19 | #include <linux/init.h> | ||
| 20 | #include <linux/input.h> | ||
| 21 | #include <linux/platform_device.h> | ||
| 22 | #include <linux/notifier.h> | ||
| 23 | #include <linux/mtd/mtd.h> | ||
| 24 | #include <linux/mtd/partitions.h> | ||
| 25 | #include <linux/types.h> | ||
| 26 | #include <linux/i2c.h> | ||
| 27 | #include <linux/errno.h> | ||
| 28 | |||
| 29 | #include <asm/hardware.h> | ||
| 30 | #include <asm/mach-types.h> | ||
| 31 | #include <asm/mach/arch.h> | ||
| 32 | #include <asm/mach/flash.h> | ||
| 33 | #include <asm/mach/map.h> | ||
| 34 | |||
| 35 | #include <asm/arch/gpio.h> | ||
| 36 | #include <asm/arch/mux.h> | ||
| 37 | #include <asm/arch/irda.h> | ||
| 38 | #include <asm/arch/usb.h> | ||
| 39 | #include <asm/arch/tc.h> | ||
| 40 | #include <asm/arch/board.h> | ||
| 41 | #include <asm/arch/common.h> | ||
| 42 | #include <asm/arch/mcbsp.h> | ||
| 43 | #include <asm/arch/omap-alsa.h> | ||
| 44 | #include <asm/arch/keypad.h> | ||
| 45 | |||
| 46 | /* Write to I2C device */ | ||
| 47 | int i2c_write_byte(u8 devaddr, u8 regoffset, u8 value) | ||
| 48 | { | ||
| 49 | struct i2c_adapter *adap; | ||
| 50 | int err; | ||
| 51 | struct i2c_msg msg[1]; | ||
| 52 | unsigned char data[2]; | ||
| 53 | |||
| 54 | adap = i2c_get_adapter(0); | ||
| 55 | if (!adap) | ||
| 56 | return -ENODEV; | ||
| 57 | msg->addr = devaddr; /* I2C address of chip */ | ||
| 58 | msg->flags = 0; | ||
| 59 | msg->len = 2; | ||
| 60 | msg->buf = data; | ||
| 61 | data[0] = regoffset; /* register num */ | ||
| 62 | data[1] = value; /* register data */ | ||
| 63 | err = i2c_transfer(adap, msg, 1); | ||
| 64 | if (err >= 0) | ||
| 65 | return 0; | ||
| 66 | return err; | ||
| 67 | } | ||
| 68 | |||
| 69 | /* Read from I2C device */ | ||
| 70 | int i2c_read_byte(u8 devaddr, u8 regoffset, u8 * value) | ||
| 71 | { | ||
| 72 | struct i2c_adapter *adap; | ||
| 73 | int err; | ||
| 74 | struct i2c_msg msg[1]; | ||
| 75 | unsigned char data[2]; | ||
| 76 | |||
| 77 | adap = i2c_get_adapter(0); | ||
| 78 | if (!adap) | ||
| 79 | return -ENODEV; | ||
| 80 | |||
| 81 | msg->addr = devaddr; /* I2C address of chip */ | ||
| 82 | msg->flags = 0; | ||
| 83 | msg->len = 1; | ||
| 84 | msg->buf = data; | ||
| 85 | data[0] = regoffset; /* register num */ | ||
| 86 | err = i2c_transfer(adap, msg, 1); | ||
| 87 | |||
| 88 | msg->addr = devaddr; /* I2C address */ | ||
| 89 | msg->flags = I2C_M_RD; | ||
| 90 | msg->len = 1; | ||
| 91 | msg->buf = data; | ||
| 92 | err = i2c_transfer(adap, msg, 1); | ||
| 93 | *value = data[0]; | ||
| 94 | |||
| 95 | if (err >= 0) | ||
| 96 | return 0; | ||
| 97 | return err; | ||
| 98 | } | ||
| 99 | /* set keyboard backlight intensity */ | ||
| 100 | int sx1_setkeylight(u8 keylight) | ||
| 101 | { | ||
| 102 | if (keylight > SOFIA_MAX_LIGHT_VAL) | ||
| 103 | keylight = SOFIA_MAX_LIGHT_VAL; | ||
| 104 | return i2c_write_byte(SOFIA_I2C_ADDR, SOFIA_KEYLIGHT_REG, keylight); | ||
| 105 | } | ||
| 106 | /* get current keylight intensity */ | ||
| 107 | int sx1_getkeylight(u8 * keylight) | ||
| 108 | { | ||
| 109 | return i2c_read_byte(SOFIA_I2C_ADDR, SOFIA_KEYLIGHT_REG, keylight); | ||
| 110 | } | ||
| 111 | /* set LCD backlight intensity */ | ||
| 112 | int sx1_setbacklight(u8 backlight) | ||
| 113 | { | ||
| 114 | if (backlight > SOFIA_MAX_LIGHT_VAL) | ||
| 115 | backlight = SOFIA_MAX_LIGHT_VAL; | ||
| 116 | return i2c_write_byte(SOFIA_I2C_ADDR, SOFIA_BACKLIGHT_REG, backlight); | ||
| 117 | } | ||
| 118 | /* get current LCD backlight intensity */ | ||
| 119 | int sx1_getbacklight (u8 * backlight) | ||
| 120 | { | ||
| 121 | return i2c_read_byte(SOFIA_I2C_ADDR, SOFIA_BACKLIGHT_REG, backlight); | ||
| 122 | } | ||
| 123 | /* set LCD backlight power on/off */ | ||
| 124 | int sx1_setmmipower(u8 onoff) | ||
| 125 | { | ||
| 126 | int err; | ||
| 127 | u8 dat = 0; | ||
| 128 | err = i2c_read_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, &dat); | ||
| 129 | if (err < 0) | ||
| 130 | return err; | ||
| 131 | if (onoff) | ||
| 132 | dat |= SOFIA_MMILIGHT_POWER; | ||
| 133 | else | ||
| 134 | dat &= ~SOFIA_MMILIGHT_POWER; | ||
| 135 | return i2c_write_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, dat); | ||
| 136 | } | ||
| 137 | /* set MMC power on/off */ | ||
| 138 | int sx1_setmmcpower(u8 onoff) | ||
| 139 | { | ||
| 140 | int err; | ||
| 141 | u8 dat = 0; | ||
| 142 | err = i2c_read_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, &dat); | ||
| 143 | if (err < 0) | ||
| 144 | return err; | ||
| 145 | if (onoff) | ||
| 146 | dat |= SOFIA_MMC_POWER; | ||
| 147 | else | ||
| 148 | dat &= ~SOFIA_MMC_POWER; | ||
| 149 | return i2c_write_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, dat); | ||
| 150 | } | ||
| 151 | /* set USB power on/off */ | ||
| 152 | int sx1_setusbpower(u8 onoff) | ||
| 153 | { | ||
| 154 | int err; | ||
| 155 | u8 dat = 0; | ||
| 156 | err = i2c_read_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, &dat); | ||
| 157 | if (err < 0) | ||
| 158 | return err; | ||
| 159 | if (onoff) | ||
| 160 | dat |= SOFIA_USB_POWER; | ||
| 161 | else | ||
| 162 | dat &= ~SOFIA_USB_POWER; | ||
| 163 | return i2c_write_byte(SOFIA_I2C_ADDR, SOFIA_POWER1_REG, dat); | ||
| 164 | } | ||
| 165 | |||
| 166 | EXPORT_SYMBOL(sx1_setkeylight); | ||
| 167 | EXPORT_SYMBOL(sx1_getkeylight); | ||
| 168 | EXPORT_SYMBOL(sx1_setbacklight); | ||
| 169 | EXPORT_SYMBOL(sx1_getbacklight); | ||
| 170 | EXPORT_SYMBOL(sx1_setmmipower); | ||
| 171 | EXPORT_SYMBOL(sx1_setmmcpower); | ||
| 172 | EXPORT_SYMBOL(sx1_setusbpower); | ||
| 173 | |||
| 174 | /*----------- Keypad -------------------------*/ | ||
| 175 | |||
| 176 | static int sx1_keymap[] = { | ||
| 177 | KEY(5, 3, GROUP_0 | 117), /* camera Qt::Key_F17 */ | ||
| 178 | KEY(0, 4, GROUP_0 | 114), /* voice memo Qt::Key_F14 */ | ||
| 179 | KEY(1, 4, GROUP_2 | 114), /* voice memo */ | ||
| 180 | KEY(2, 4, GROUP_3 | 114), /* voice memo */ | ||
| 181 | KEY(0, 0, GROUP_1 | KEY_F12), /* red button Qt::Key_Hangup */ | ||
| 182 | KEY(4, 3, GROUP_1 | KEY_LEFT), | ||
| 183 | KEY(2, 3, GROUP_1 | KEY_DOWN), | ||
| 184 | KEY(1, 3, GROUP_1 | KEY_RIGHT), | ||
| 185 | KEY(0, 3, GROUP_1 | KEY_UP), | ||
| 186 | KEY(3, 3, GROUP_1 | KEY_POWER), /* joystick press or Qt::Key_Select */ | ||
| 187 | KEY(5, 0, GROUP_1 | KEY_1), | ||
| 188 | KEY(4, 0, GROUP_1 | KEY_2), | ||
| 189 | KEY(3, 0, GROUP_1 | KEY_3), | ||
| 190 | KEY(3, 4, GROUP_1 | KEY_4), | ||
| 191 | KEY(4, 4, GROUP_1 | KEY_5), | ||
| 192 | KEY(5, 4, GROUP_1 | KEY_KPASTERISK),/* "*" */ | ||
| 193 | KEY(4, 1, GROUP_1 | KEY_6), | ||
| 194 | KEY(5, 1, GROUP_1 | KEY_7), | ||
| 195 | KEY(3, 1, GROUP_1 | KEY_8), | ||
| 196 | KEY(3, 2, GROUP_1 | KEY_9), | ||
| 197 | KEY(5, 2, GROUP_1 | KEY_0), | ||
| 198 | KEY(4, 2, GROUP_1 | 113), /* # F13 Toggle input method Qt::Key_F13 */ | ||
| 199 | KEY(0, 1, GROUP_1 | KEY_F11), /* green button Qt::Key_Call */ | ||
| 200 | KEY(1, 2, GROUP_1 | KEY_YEN), /* left soft Qt::Key_Context1 */ | ||
| 201 | KEY(2, 2, GROUP_1 | KEY_F8), /* right soft Qt::Key_Back */ | ||
| 202 | KEY(2, 1, GROUP_1 | KEY_LEFTSHIFT), /* shift */ | ||
| 203 | KEY(1, 1, GROUP_1 | KEY_BACKSPACE), /* C (clear) */ | ||
| 204 | KEY(0, 2, GROUP_1 | KEY_F7), /* menu Qt::Key_Menu */ | ||
| 205 | 0 | ||
| 206 | }; | ||
| 207 | |||
| 208 | static struct resource sx1_kp_resources[] = { | ||
| 209 | [0] = { | ||
| 210 | .start = INT_KEYBOARD, | ||
| 211 | .end = INT_KEYBOARD, | ||
| 212 | .flags = IORESOURCE_IRQ, | ||
| 213 | }, | ||
| 214 | }; | ||
| 215 | |||
| 216 | static struct omap_kp_platform_data sx1_kp_data = { | ||
| 217 | .rows = 6, | ||
| 218 | .cols = 6, | ||
| 219 | .keymap = sx1_keymap, | ||
| 220 | .keymapsize = ARRAY_SIZE(sx1_keymap), | ||
| 221 | .delay = 80, | ||
| 222 | }; | ||
| 223 | |||
| 224 | static struct platform_device sx1_kp_device = { | ||
| 225 | .name = "omap-keypad", | ||
| 226 | .id = -1, | ||
| 227 | .dev = { | ||
| 228 | .platform_data = &sx1_kp_data, | ||
| 229 | }, | ||
| 230 | .num_resources = ARRAY_SIZE(sx1_kp_resources), | ||
| 231 | .resource = sx1_kp_resources, | ||
| 232 | }; | ||
| 233 | |||
| 234 | /*----------- IRDA -------------------------*/ | ||
| 235 | |||
| 236 | static struct omap_irda_config sx1_irda_data = { | ||
| 237 | .transceiver_cap = IR_SIRMODE, | ||
| 238 | .rx_channel = OMAP_DMA_UART3_RX, | ||
| 239 | .tx_channel = OMAP_DMA_UART3_TX, | ||
| 240 | .dest_start = UART3_THR, | ||
| 241 | .src_start = UART3_RHR, | ||
| 242 | .tx_trigger = 0, | ||
| 243 | .rx_trigger = 0, | ||
| 244 | }; | ||
| 245 | |||
| 246 | static struct resource sx1_irda_resources[] = { | ||
| 247 | [0] = { | ||
| 248 | .start = INT_UART3, | ||
| 249 | .end = INT_UART3, | ||
| 250 | .flags = IORESOURCE_IRQ, | ||
| 251 | }, | ||
| 252 | }; | ||
| 253 | |||
| 254 | static u64 irda_dmamask = 0xffffffff; | ||
| 255 | |||
| 256 | static struct platform_device sx1_irda_device = { | ||
| 257 | .name = "omapirda", | ||
| 258 | .id = 0, | ||
| 259 | .dev = { | ||
| 260 | .platform_data = &sx1_irda_data, | ||
| 261 | .dma_mask = &irda_dmamask, | ||
| 262 | }, | ||
| 263 | .num_resources = ARRAY_SIZE(sx1_irda_resources), | ||
| 264 | .resource = sx1_irda_resources, | ||
| 265 | }; | ||
| 266 | |||
| 267 | /*----------- McBSP & Sound -------------------------*/ | ||
| 268 | |||
| 269 | /* Playback interface - McBSP1 */ | ||
| 270 | static struct omap_mcbsp_reg_cfg mcbsp1_regs = { | ||
| 271 | .spcr2 = XINTM(3), /* SPCR2=30 */ | ||
| 272 | .spcr1 = RINTM(3), /* SPCR1=30 */ | ||
| 273 | .rcr2 = 0, /* RCR2 =00 */ | ||
| 274 | .rcr1 = RFRLEN1(1) | RWDLEN1(OMAP_MCBSP_WORD_16), /* RCR1=140 */ | ||
| 275 | .xcr2 = 0, /* XCR2 = 0 */ | ||
| 276 | .xcr1 = XFRLEN1(1) | XWDLEN1(OMAP_MCBSP_WORD_16), /* XCR1 = 140 */ | ||
| 277 | .srgr1 = FWID(15) | CLKGDV(12), /* SRGR1=0f0c */ | ||
| 278 | .srgr2 = FSGM | FPER(31), /* SRGR2=101f */ | ||
| 279 | .pcr0 = FSXM | FSRM | CLKXM | CLKRM | FSXP | FSRP | CLKXP | CLKRP, | ||
| 280 | /* PCR0 =0f0f */ | ||
| 281 | }; | ||
| 282 | |||
| 283 | /* TODO: PCM interface - McBSP2 */ | ||
| 284 | static struct omap_mcbsp_reg_cfg mcbsp2_regs = { | ||
| 285 | .spcr2 = FRST | GRST | XRST | XINTM(3), /* SPCR2=F1 */ | ||
| 286 | .spcr1 = RINTM(3) | RRST, /* SPCR1=30 */ | ||
| 287 | .rcr2 = 0, /* RCR2 =00 */ | ||
| 288 | .rcr1 = RFRLEN1(1) | RWDLEN1(OMAP_MCBSP_WORD_16), /* RCR1 = 140 */ | ||
| 289 | .xcr2 = 0, /* XCR2 = 0 */ | ||
| 290 | .xcr1 = XFRLEN1(1) | XWDLEN1(OMAP_MCBSP_WORD_16), /* XCR1 = 140 */ | ||
| 291 | .srgr1 = FWID(15) | CLKGDV(12), /* SRGR1=0f0c */ | ||
| 292 | .srgr2 = FSGM | FPER(31), /* SRGR2=101f */ | ||
| 293 | .pcr0 = FSXM | FSRM | CLKXM | CLKRM | FSXP | FSRP | CLKXP | CLKRP, | ||
| 294 | /* PCR0=0f0f */ | ||
| 295 | /* mcbsp: slave */ | ||
| 296 | }; | ||
| 297 | |||
| 298 | static struct omap_alsa_codec_config sx1_alsa_config = { | ||
| 299 | .name = "SX1 EGold", | ||
| 300 | .mcbsp_regs_alsa = &mcbsp1_regs, | ||
| 301 | }; | ||
| 302 | |||
| 303 | static struct platform_device sx1_mcbsp1_device = { | ||
| 304 | .name = "omap_alsa_mcbsp", | ||
| 305 | .id = 1, | ||
| 306 | .dev = { | ||
| 307 | .platform_data = &sx1_alsa_config, | ||
| 308 | }, | ||
| 309 | }; | ||
| 310 | |||
| 311 | /*----------- MTD -------------------------*/ | ||
| 312 | |||
| 313 | static struct mtd_partition sx1_partitions[] = { | ||
| 314 | /* bootloader (U-Boot, etc) in first sector */ | ||
| 315 | { | ||
| 316 | .name = "bootloader", | ||
| 317 | .offset = 0x01800000, | ||
| 318 | .size = SZ_128K, | ||
| 319 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 320 | }, | ||
| 321 | /* bootloader params in the next sector */ | ||
| 322 | { | ||
| 323 | .name = "params", | ||
| 324 | .offset = MTDPART_OFS_APPEND, | ||
| 325 | .size = SZ_128K, | ||
| 326 | .mask_flags = 0, | ||
| 327 | }, | ||
| 328 | /* kernel */ | ||
| 329 | { | ||
| 330 | .name = "kernel", | ||
| 331 | .offset = MTDPART_OFS_APPEND, | ||
| 332 | .size = SZ_2M - 2 * SZ_128K, | ||
| 333 | .mask_flags = 0 | ||
| 334 | }, | ||
| 335 | /* file system */ | ||
| 336 | { | ||
| 337 | .name = "filesystem", | ||
| 338 | .offset = MTDPART_OFS_APPEND, | ||
| 339 | .size = MTDPART_SIZ_FULL, | ||
| 340 | .mask_flags = 0 | ||
| 341 | } | ||
| 342 | }; | ||
| 343 | |||
| 344 | static struct flash_platform_data sx1_flash_data = { | ||
| 345 | .map_name = "cfi_probe", | ||
| 346 | .width = 2, | ||
| 347 | .parts = sx1_partitions, | ||
| 348 | .nr_parts = ARRAY_SIZE(sx1_partitions), | ||
| 349 | }; | ||
| 350 | |||
| 351 | #ifdef CONFIG_SX1_OLD_FLASH | ||
| 352 | /* MTD Intel StrataFlash - old flashes */ | ||
| 353 | static struct resource sx1_old_flash_resource[] = { | ||
| 354 | [0] = { | ||
| 355 | .start = OMAP_CS0_PHYS, /* Physical */ | ||
| 356 | .end = OMAP_CS0_PHYS + SZ_16M - 1,, | ||
| 357 | .flags = IORESOURCE_MEM, | ||
| 358 | }, | ||
| 359 | [1] = { | ||
| 360 | .start = OMAP_CS1_PHYS, | ||
| 361 | .end = OMAP_CS1_PHYS + SZ_8M - 1, | ||
| 362 | .flags = IORESOURCE_MEM, | ||
| 363 | }, | ||
| 364 | }; | ||
| 365 | |||
| 366 | static struct platform_device sx1_flash_device = { | ||
| 367 | .name = "omapflash", | ||
| 368 | .id = 0, | ||
| 369 | .dev = { | ||
| 370 | .platform_data = &sx1_flash_data, | ||
| 371 | }, | ||
| 372 | .num_resources = 2, | ||
| 373 | .resource = &sx1_old_flash_resource, | ||
| 374 | }; | ||
| 375 | #else | ||
| 376 | /* MTD Intel 4000 flash - new flashes */ | ||
| 377 | static struct resource sx1_new_flash_resource = { | ||
| 378 | .start = OMAP_CS0_PHYS, | ||
| 379 | .end = OMAP_CS0_PHYS + SZ_32M - 1, | ||
| 380 | .flags = IORESOURCE_MEM, | ||
| 381 | }; | ||
| 382 | |||
| 383 | static struct platform_device sx1_flash_device = { | ||
| 384 | .name = "omapflash", | ||
| 385 | .id = 0, | ||
| 386 | .dev = { | ||
| 387 | .platform_data = &sx1_flash_data, | ||
| 388 | }, | ||
| 389 | .num_resources = 1, | ||
| 390 | .resource = &sx1_new_flash_resource, | ||
| 391 | }; | ||
| 392 | #endif | ||
| 393 | |||
| 394 | /*----------- USB -------------------------*/ | ||
| 395 | |||
| 396 | static struct omap_usb_config sx1_usb_config __initdata = { | ||
| 397 | .otg = 0, | ||
| 398 | .register_dev = 1, | ||
| 399 | .register_host = 0, | ||
| 400 | .hmc_mode = 0, | ||
| 401 | .pins[0] = 2, | ||
| 402 | .pins[1] = 0, | ||
| 403 | .pins[2] = 0, | ||
| 404 | }; | ||
| 405 | |||
| 406 | /*----------- MMC -------------------------*/ | ||
| 407 | |||
| 408 | static struct omap_mmc_config sx1_mmc_config __initdata = { | ||
| 409 | .mmc [0] = { | ||
| 410 | .enabled = 1, | ||
| 411 | .wire4 = 0, | ||
| 412 | .wp_pin = -1, | ||
| 413 | .power_pin = -1, /* power is in Sofia */ | ||
| 414 | .switch_pin = OMAP_MPUIO(3), | ||
| 415 | }, | ||
| 416 | }; | ||
| 417 | |||
| 418 | /*----------- LCD -------------------------*/ | ||
| 419 | |||
| 420 | static struct platform_device sx1_lcd_device = { | ||
| 421 | .name = "lcd_sx1", | ||
| 422 | .id = -1, | ||
| 423 | }; | ||
| 424 | |||
| 425 | static struct omap_lcd_config sx1_lcd_config __initdata = { | ||
| 426 | .ctrl_name = "internal", | ||
| 427 | }; | ||
| 428 | |||
| 429 | /*-----------------------------------------*/ | ||
| 430 | static struct platform_device *sx1_devices[] __initdata = { | ||
| 431 | &sx1_flash_device, | ||
| 432 | &sx1_kp_device, | ||
| 433 | &sx1_lcd_device, | ||
| 434 | &sx1_mcbsp1_device, | ||
| 435 | &sx1_irda_device, | ||
| 436 | }; | ||
| 437 | /*-----------------------------------------*/ | ||
| 438 | |||
| 439 | static struct omap_uart_config sx1_uart_config __initdata = { | ||
| 440 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
| 441 | }; | ||
| 442 | |||
| 443 | static struct omap_board_config_kernel sx1_config[] = { | ||
| 444 | { OMAP_TAG_USB, &sx1_usb_config }, | ||
| 445 | { OMAP_TAG_MMC, &sx1_mmc_config }, | ||
| 446 | { OMAP_TAG_LCD, &sx1_lcd_config }, | ||
| 447 | { OMAP_TAG_UART, &sx1_uart_config }, | ||
| 448 | }; | ||
| 449 | /*-----------------------------------------*/ | ||
| 450 | static void __init omap_sx1_init(void) | ||
| 451 | { | ||
| 452 | platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices)); | ||
| 453 | |||
| 454 | omap_board_config = sx1_config; | ||
| 455 | omap_board_config_size = ARRAY_SIZE(sx1_config); | ||
| 456 | omap_serial_init(); | ||
| 457 | |||
| 458 | /* turn on USB power */ | ||
| 459 | /* sx1_setusbpower(1); cant do it here because i2c is not ready */ | ||
| 460 | omap_request_gpio(1); /* A_IRDA_OFF */ | ||
| 461 | omap_request_gpio(11); /* A_SWITCH */ | ||
| 462 | omap_request_gpio(15); /* A_USB_ON */ | ||
| 463 | omap_set_gpio_direction(1, 0);/* gpio1 -> output */ | ||
| 464 | omap_set_gpio_direction(11, 0);/* gpio11 -> output */ | ||
| 465 | omap_set_gpio_direction(15, 0);/* gpio15 -> output */ | ||
| 466 | /* set GPIO data */ | ||
| 467 | omap_set_gpio_dataout(1, 1);/*A_IRDA_OFF = 1 */ | ||
| 468 | omap_set_gpio_dataout(11, 0);/*A_SWITCH = 0 */ | ||
| 469 | omap_set_gpio_dataout(15, 0);/*A_USB_ON = 0 */ | ||
| 470 | |||
| 471 | } | ||
| 472 | /*----------------------------------------*/ | ||
| 473 | static void __init omap_sx1_init_irq(void) | ||
| 474 | { | ||
| 475 | omap1_init_common_hw(); | ||
| 476 | omap_init_irq(); | ||
| 477 | omap_gpio_init(); | ||
| 478 | } | ||
| 479 | /*----------------------------------------*/ | ||
| 480 | |||
| 481 | static void __init omap_sx1_map_io(void) | ||
| 482 | { | ||
| 483 | omap1_map_common_io(); | ||
| 484 | } | ||
| 485 | |||
| 486 | MACHINE_START(SX1, "OMAP310 based Siemens SX1") | ||
| 487 | .phys_io = 0xfff00000, | ||
| 488 | .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc, | ||
| 489 | .boot_params = 0x10000100, | ||
| 490 | .map_io = omap_sx1_map_io, | ||
| 491 | .init_irq = omap_sx1_init_irq, | ||
| 492 | .init_machine = omap_sx1_init, | ||
| 493 | .timer = &omap_timer, | ||
| 494 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index 447a586eb334..214dd19889ac 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
| @@ -235,7 +235,7 @@ static struct notifier_block panic_block = { | |||
| 235 | static int __init voiceblue_setup(void) | 235 | static int __init voiceblue_setup(void) |
| 236 | { | 236 | { |
| 237 | /* Setup panic notifier */ | 237 | /* Setup panic notifier */ |
| 238 | notifier_chain_register(&panic_notifier_list, &panic_block); | 238 | atomic_notifier_chain_register(&panic_notifier_list, &panic_block); |
| 239 | 239 | ||
| 240 | return 0; | 240 | return 0; |
| 241 | } | 241 | } |
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index f625f6dd228a..5d9faa68d2ec 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
| @@ -49,6 +49,15 @@ static void omap1_uart_recalc(struct clk * clk) | |||
| 49 | clk->rate = 12000000; | 49 | clk->rate = 12000000; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | static void omap1_sossi_recalc(struct clk *clk) | ||
| 53 | { | ||
| 54 | u32 div = omap_readl(MOD_CONF_CTRL_1); | ||
| 55 | |||
| 56 | div = (div >> 17) & 0x7; | ||
| 57 | div++; | ||
| 58 | clk->rate = clk->parent->rate / div; | ||
| 59 | } | ||
| 60 | |||
| 52 | static int omap1_clk_enable_dsp_domain(struct clk *clk) | 61 | static int omap1_clk_enable_dsp_domain(struct clk *clk) |
| 53 | { | 62 | { |
| 54 | int retval; | 63 | int retval; |
| @@ -396,6 +405,31 @@ static int omap1_set_ext_clk_rate(struct clk * clk, unsigned long rate) | |||
| 396 | return 0; | 405 | return 0; |
| 397 | } | 406 | } |
| 398 | 407 | ||
| 408 | static int omap1_set_sossi_rate(struct clk *clk, unsigned long rate) | ||
| 409 | { | ||
| 410 | u32 l; | ||
| 411 | int div; | ||
| 412 | unsigned long p_rate; | ||
| 413 | |||
| 414 | p_rate = clk->parent->rate; | ||
| 415 | /* Round towards slower frequency */ | ||
| 416 | div = (p_rate + rate - 1) / rate; | ||
| 417 | div--; | ||
| 418 | if (div < 0 || div > 7) | ||
| 419 | return -EINVAL; | ||
| 420 | |||
| 421 | l = omap_readl(MOD_CONF_CTRL_1); | ||
| 422 | l &= ~(7 << 17); | ||
| 423 | l |= div << 17; | ||
| 424 | omap_writel(l, MOD_CONF_CTRL_1); | ||
| 425 | |||
| 426 | clk->rate = p_rate / (div + 1); | ||
| 427 | if (unlikely(clk->flags & RATE_PROPAGATES)) | ||
| 428 | propagate_rate(clk); | ||
| 429 | |||
| 430 | return 0; | ||
| 431 | } | ||
| 432 | |||
| 399 | static long omap1_round_ext_clk_rate(struct clk * clk, unsigned long rate) | 433 | static long omap1_round_ext_clk_rate(struct clk * clk, unsigned long rate) |
| 400 | { | 434 | { |
| 401 | return 96000000 / calc_ext_dsor(rate); | 435 | return 96000000 / calc_ext_dsor(rate); |
diff --git a/arch/arm/mach-omap1/clock.h b/arch/arm/mach-omap1/clock.h index f7df00205c4a..6eadf72828d8 100644 --- a/arch/arm/mach-omap1/clock.h +++ b/arch/arm/mach-omap1/clock.h | |||
| @@ -17,6 +17,8 @@ static int omap1_clk_enable_generic(struct clk * clk); | |||
| 17 | static void omap1_clk_disable_generic(struct clk * clk); | 17 | static void omap1_clk_disable_generic(struct clk * clk); |
| 18 | static void omap1_ckctl_recalc(struct clk * clk); | 18 | static void omap1_ckctl_recalc(struct clk * clk); |
| 19 | static void omap1_watchdog_recalc(struct clk * clk); | 19 | static void omap1_watchdog_recalc(struct clk * clk); |
| 20 | static int omap1_set_sossi_rate(struct clk *clk, unsigned long rate); | ||
| 21 | static void omap1_sossi_recalc(struct clk *clk); | ||
| 20 | static void omap1_ckctl_recalc_dsp_domain(struct clk * clk); | 22 | static void omap1_ckctl_recalc_dsp_domain(struct clk * clk); |
| 21 | static int omap1_clk_enable_dsp_domain(struct clk * clk); | 23 | static int omap1_clk_enable_dsp_domain(struct clk * clk); |
| 22 | static int omap1_clk_set_rate_dsp_domain(struct clk * clk, unsigned long rate); | 24 | static int omap1_clk_set_rate_dsp_domain(struct clk * clk, unsigned long rate); |
| @@ -168,9 +170,10 @@ static struct clk ck_dpll1 = { | |||
| 168 | 170 | ||
| 169 | static struct arm_idlect1_clk ck_dpll1out = { | 171 | static struct arm_idlect1_clk ck_dpll1out = { |
| 170 | .clk = { | 172 | .clk = { |
| 171 | .name = "ck_dpll1out", | 173 | .name = "ck_dpll1out", |
| 172 | .parent = &ck_dpll1, | 174 | .parent = &ck_dpll1, |
| 173 | .flags = CLOCK_IN_OMAP16XX | CLOCK_IDLE_CONTROL, | 175 | .flags = CLOCK_IN_OMAP16XX | CLOCK_IDLE_CONTROL | |
| 176 | ENABLE_REG_32BIT | RATE_PROPAGATES, | ||
| 174 | .enable_reg = (void __iomem *)ARM_IDLECT2, | 177 | .enable_reg = (void __iomem *)ARM_IDLECT2, |
| 175 | .enable_bit = EN_CKOUT_ARM, | 178 | .enable_bit = EN_CKOUT_ARM, |
| 176 | .recalc = &followparent_recalc, | 179 | .recalc = &followparent_recalc, |
| @@ -180,6 +183,19 @@ static struct arm_idlect1_clk ck_dpll1out = { | |||
| 180 | .idlect_shift = 12, | 183 | .idlect_shift = 12, |
| 181 | }; | 184 | }; |
| 182 | 185 | ||
| 186 | static struct clk sossi_ck = { | ||
| 187 | .name = "ck_sossi", | ||
| 188 | .parent = &ck_dpll1out.clk, | ||
| 189 | .flags = CLOCK_IN_OMAP16XX | CLOCK_NO_IDLE_PARENT | | ||
| 190 | ENABLE_REG_32BIT, | ||
| 191 | .enable_reg = (void __iomem *)MOD_CONF_CTRL_1, | ||
| 192 | .enable_bit = 16, | ||
| 193 | .recalc = &omap1_sossi_recalc, | ||
| 194 | .set_rate = &omap1_set_sossi_rate, | ||
| 195 | .enable = &omap1_clk_enable_generic, | ||
| 196 | .disable = &omap1_clk_disable_generic, | ||
| 197 | }; | ||
| 198 | |||
| 183 | static struct clk arm_ck = { | 199 | static struct clk arm_ck = { |
| 184 | .name = "arm_ck", | 200 | .name = "arm_ck", |
| 185 | .parent = &ck_dpll1, | 201 | .parent = &ck_dpll1, |
| @@ -282,7 +298,7 @@ static struct clk arminth_ck16xx = { | |||
| 282 | static struct clk dsp_ck = { | 298 | static struct clk dsp_ck = { |
| 283 | .name = "dsp_ck", | 299 | .name = "dsp_ck", |
| 284 | .parent = &ck_dpll1, | 300 | .parent = &ck_dpll1, |
| 285 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 301 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 286 | RATE_CKCTL, | 302 | RATE_CKCTL, |
| 287 | .enable_reg = (void __iomem *)ARM_CKCTL, | 303 | .enable_reg = (void __iomem *)ARM_CKCTL, |
| 288 | .enable_bit = EN_DSPCK, | 304 | .enable_bit = EN_DSPCK, |
| @@ -295,7 +311,7 @@ static struct clk dsp_ck = { | |||
| 295 | static struct clk dspmmu_ck = { | 311 | static struct clk dspmmu_ck = { |
| 296 | .name = "dspmmu_ck", | 312 | .name = "dspmmu_ck", |
| 297 | .parent = &ck_dpll1, | 313 | .parent = &ck_dpll1, |
| 298 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 314 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 299 | RATE_CKCTL | ALWAYS_ENABLED, | 315 | RATE_CKCTL | ALWAYS_ENABLED, |
| 300 | .rate_offset = CKCTL_DSPMMUDIV_OFFSET, | 316 | .rate_offset = CKCTL_DSPMMUDIV_OFFSET, |
| 301 | .recalc = &omap1_ckctl_recalc, | 317 | .recalc = &omap1_ckctl_recalc, |
| @@ -306,7 +322,7 @@ static struct clk dspmmu_ck = { | |||
| 306 | static struct clk dspper_ck = { | 322 | static struct clk dspper_ck = { |
| 307 | .name = "dspper_ck", | 323 | .name = "dspper_ck", |
| 308 | .parent = &ck_dpll1, | 324 | .parent = &ck_dpll1, |
| 309 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 325 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 310 | RATE_CKCTL | VIRTUAL_IO_ADDRESS, | 326 | RATE_CKCTL | VIRTUAL_IO_ADDRESS, |
| 311 | .enable_reg = (void __iomem *)DSP_IDLECT2, | 327 | .enable_reg = (void __iomem *)DSP_IDLECT2, |
| 312 | .enable_bit = EN_PERCK, | 328 | .enable_bit = EN_PERCK, |
| @@ -320,7 +336,7 @@ static struct clk dspper_ck = { | |||
| 320 | static struct clk dspxor_ck = { | 336 | static struct clk dspxor_ck = { |
| 321 | .name = "dspxor_ck", | 337 | .name = "dspxor_ck", |
| 322 | .parent = &ck_ref, | 338 | .parent = &ck_ref, |
| 323 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 339 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 324 | VIRTUAL_IO_ADDRESS, | 340 | VIRTUAL_IO_ADDRESS, |
| 325 | .enable_reg = (void __iomem *)DSP_IDLECT2, | 341 | .enable_reg = (void __iomem *)DSP_IDLECT2, |
| 326 | .enable_bit = EN_XORPCK, | 342 | .enable_bit = EN_XORPCK, |
| @@ -332,7 +348,7 @@ static struct clk dspxor_ck = { | |||
| 332 | static struct clk dsptim_ck = { | 348 | static struct clk dsptim_ck = { |
| 333 | .name = "dsptim_ck", | 349 | .name = "dsptim_ck", |
| 334 | .parent = &ck_ref, | 350 | .parent = &ck_ref, |
| 335 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 351 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 336 | VIRTUAL_IO_ADDRESS, | 352 | VIRTUAL_IO_ADDRESS, |
| 337 | .enable_reg = (void __iomem *)DSP_IDLECT2, | 353 | .enable_reg = (void __iomem *)DSP_IDLECT2, |
| 338 | .enable_bit = EN_DSPTIMCK, | 354 | .enable_bit = EN_DSPTIMCK, |
| @@ -374,7 +390,7 @@ static struct clk arminth_ck1510 = { | |||
| 374 | 390 | ||
| 375 | static struct clk tipb_ck = { | 391 | static struct clk tipb_ck = { |
| 376 | /* No-idle controlled by "tc_ck" */ | 392 | /* No-idle controlled by "tc_ck" */ |
| 377 | .name = "tibp_ck", | 393 | .name = "tipb_ck", |
| 378 | .parent = &tc_ck.clk, | 394 | .parent = &tc_ck.clk, |
| 379 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP310 | | 395 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP310 | |
| 380 | ALWAYS_ENABLED, | 396 | ALWAYS_ENABLED, |
| @@ -733,7 +749,7 @@ remains active during MPU idle whenever this is enabled */ | |||
| 733 | static struct clk i2c_fck = { | 749 | static struct clk i2c_fck = { |
| 734 | .name = "i2c_fck", | 750 | .name = "i2c_fck", |
| 735 | .id = 1, | 751 | .id = 1, |
| 736 | .flags = CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | | 752 | .flags = CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | |
| 737 | VIRTUAL_CLOCK | CLOCK_NO_IDLE_PARENT | | 753 | VIRTUAL_CLOCK | CLOCK_NO_IDLE_PARENT | |
| 738 | ALWAYS_ENABLED, | 754 | ALWAYS_ENABLED, |
| 739 | .parent = &armxor_ck.clk, | 755 | .parent = &armxor_ck.clk, |
| @@ -760,6 +776,7 @@ static struct clk * onchip_clks[] = { | |||
| 760 | &ck_dpll1, | 776 | &ck_dpll1, |
| 761 | /* CK_GEN1 clocks */ | 777 | /* CK_GEN1 clocks */ |
| 762 | &ck_dpll1out.clk, | 778 | &ck_dpll1out.clk, |
| 779 | &sossi_ck, | ||
| 763 | &arm_ck, | 780 | &arm_ck, |
| 764 | &armper_ck.clk, | 781 | &armper_ck.clk, |
| 765 | &arm_gpio_ck, | 782 | &arm_gpio_ck, |
diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c index 5432335bc493..52c70e5fcf65 100644 --- a/arch/arm/mach-omap1/mux.c +++ b/arch/arm/mach-omap1/mux.c | |||
| @@ -283,6 +283,30 @@ MUX_CFG("R11_1610_CF_IOIS16", B, 0, 3, 2, 16, 1, 2, 1, 1) | |||
| 283 | MUX_CFG("V10_1610_CF_IREQ", A, 24, 3, 2, 14, 0, 2, 0, 1) | 283 | MUX_CFG("V10_1610_CF_IREQ", A, 24, 3, 2, 14, 0, 2, 0, 1) |
| 284 | MUX_CFG("W10_1610_CF_RESET", A, 18, 3, 2, 12, 1, 2, 1, 1) | 284 | MUX_CFG("W10_1610_CF_RESET", A, 18, 3, 2, 12, 1, 2, 1, 1) |
| 285 | MUX_CFG("W11_1610_CF_CD1", 10, 15, 3, 3, 8, 1, 3, 1, 1) | 285 | MUX_CFG("W11_1610_CF_CD1", 10, 15, 3, 3, 8, 1, 3, 1, 1) |
| 286 | |||
| 287 | /* parallel camera */ | ||
| 288 | MUX_CFG("J15_1610_CAM_LCLK", 4, 24, 0, 0, 18, 1, 0, 0, 0) | ||
| 289 | MUX_CFG("J18_1610_CAM_D7", 4, 27, 0, 0, 19, 1, 0, 0, 0) | ||
| 290 | MUX_CFG("J19_1610_CAM_D6", 5, 0, 0, 0, 20, 1, 0, 0, 0) | ||
| 291 | MUX_CFG("J14_1610_CAM_D5", 5, 3, 0, 0, 21, 1, 0, 0, 0) | ||
| 292 | MUX_CFG("K18_1610_CAM_D4", 5, 6, 0, 0, 22, 1, 0, 0, 0) | ||
| 293 | MUX_CFG("K19_1610_CAM_D3", 5, 9, 0, 0, 23, 1, 0, 0, 0) | ||
| 294 | MUX_CFG("K15_1610_CAM_D2", 5, 12, 0, 0, 24, 1, 0, 0, 0) | ||
| 295 | MUX_CFG("K14_1610_CAM_D1", 5, 15, 0, 0, 25, 1, 0, 0, 0) | ||
| 296 | MUX_CFG("L19_1610_CAM_D0", 5, 18, 0, 0, 26, 1, 0, 0, 0) | ||
| 297 | MUX_CFG("L18_1610_CAM_VS", 5, 21, 0, 0, 27, 1, 0, 0, 0) | ||
| 298 | MUX_CFG("L15_1610_CAM_HS", 5, 24, 0, 0, 28, 1, 0, 0, 0) | ||
| 299 | MUX_CFG("M19_1610_CAM_RSTZ", 5, 27, 0, 0, 29, 0, 0, 0, 0) | ||
| 300 | MUX_CFG("Y15_1610_CAM_OUTCLK", A, 0, 6, 2, 6, 0, 2, 0, 0) | ||
| 301 | |||
| 302 | /* serial camera */ | ||
| 303 | MUX_CFG("H19_1610_CAM_EXCLK", 4, 21, 0, 0, 17, 0, 0, 0, 0) | ||
| 304 | /* REVISIT 5912 spec sez CCP_* can't pullup or pulldown ... ? */ | ||
| 305 | MUX_CFG("Y12_1610_CCP_CLKP", 8, 18, 6, 1, 24, 1, 1, 0, 0) | ||
| 306 | MUX_CFG("W13_1610_CCP_CLKM", 9, 0, 6, 1, 28, 1, 1, 0, 0) | ||
| 307 | MUX_CFG("W14_1610_CCP_DATAP", 9, 24, 6, 2, 4, 1, 2, 0, 0) | ||
| 308 | MUX_CFG("Y14_1610_CCP_DATAM", 9, 21, 6, 2, 3, 1, 2, 0, 0) | ||
| 309 | |||
| 286 | }; | 310 | }; |
| 287 | #endif /* CONFIG_ARCH_OMAP15XX || CONFIG_ARCH_OMAP16XX */ | 311 | #endif /* CONFIG_ARCH_OMAP15XX || CONFIG_ARCH_OMAP16XX */ |
| 288 | 312 | ||
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 2e68be607295..089b8208de0e 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
| @@ -153,11 +153,8 @@ void omap_pm_idle(void) | |||
| 153 | use_idlect1 = omap_dm_timer_modify_idlect_mask(use_idlect1); | 153 | use_idlect1 = omap_dm_timer_modify_idlect_mask(use_idlect1); |
| 154 | #endif | 154 | #endif |
| 155 | 155 | ||
| 156 | if (omap_dma_running()) { | 156 | if (omap_dma_running()) |
| 157 | use_idlect1 &= ~(1 << 6); | 157 | use_idlect1 &= ~(1 << 6); |
| 158 | if (omap_lcd_dma_ext_running()) | ||
| 159 | use_idlect1 &= ~(1 << 12); | ||
| 160 | } | ||
| 161 | 158 | ||
| 162 | /* We should be able to remove the do_sleep variable and multiple | 159 | /* We should be able to remove the do_sleep variable and multiple |
| 163 | * tests above as soon as drivers, timer and DMA code have been fixed. | 160 | * tests above as soon as drivers, timer and DMA code have been fixed. |
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 7393109f5c30..7069c9d536f1 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
| @@ -11,6 +11,10 @@ config ARCH_OMAP2420 | |||
| 11 | select OMAP_DM_TIMER | 11 | select OMAP_DM_TIMER |
| 12 | select ARCH_OMAP_OTG | 12 | select ARCH_OMAP_OTG |
| 13 | 13 | ||
| 14 | config ARCH_OMAP2430 | ||
| 15 | bool "OMAP2430 support" | ||
| 16 | depends on ARCH_OMAP24XX | ||
| 17 | |||
| 14 | comment "OMAP Board Type" | 18 | comment "OMAP Board Type" |
| 15 | depends on ARCH_OMAP2 | 19 | depends on ARCH_OMAP2 |
| 16 | 20 | ||
| @@ -21,8 +25,13 @@ config MACH_OMAP_GENERIC | |||
| 21 | config MACH_OMAP_H4 | 25 | config MACH_OMAP_H4 |
| 22 | bool "OMAP 2420 H4 board" | 26 | bool "OMAP 2420 H4 board" |
| 23 | depends on ARCH_OMAP2 && ARCH_OMAP24XX | 27 | depends on ARCH_OMAP2 && ARCH_OMAP24XX |
| 24 | select OMAP_DEBUG_LEDS if LEDS || LEDS_OMAP_DEBUG | 28 | select OMAP_DEBUG_DEVICES |
| 25 | 29 | ||
| 26 | config MACH_OMAP_APOLLON | 30 | config MACH_OMAP_APOLLON |
| 27 | bool "OMAP 2420 Apollon board" | 31 | bool "OMAP 2420 Apollon board" |
| 28 | depends on ARCH_OMAP2 && ARCH_OMAP24XX | 32 | depends on ARCH_OMAP2 && ARCH_OMAP24XX |
| 33 | |||
| 34 | config MACH_OMAP_2430SDP | ||
| 35 | bool "OMAP 2430 SDP board" | ||
| 36 | depends on ARCH_OMAP2 && ARCH_OMAP24XX | ||
| 37 | |||
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 266d88e77bdc..b05b738d31e6 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
| @@ -14,5 +14,6 @@ obj-$(CONFIG_PM) += pm.o pm-domain.o sleep.o | |||
| 14 | # Specific board support | 14 | # Specific board support |
| 15 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o | 15 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o |
| 16 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | 16 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o |
| 17 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o | ||
| 17 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o | 18 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o |
| 18 | 19 | ||
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c new file mode 100644 index 000000000000..7e76fbf19b5d --- /dev/null +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
| @@ -0,0 +1,218 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/mach-omap2/board-2430sdp.c | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Texas Instruments | ||
| 5 | * | ||
| 6 | * Modified from mach-omap2/board-generic.c | ||
| 7 | * | ||
| 8 | * Initial Code : Based on a patch from Komal Shah and Richard Woodruff | ||
| 9 | * Updated the Code for 2430 SDP : Syed Mohammed Khasim | ||
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License version 2 as | ||
| 13 | * published by the Free Software Foundation. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include <linux/kernel.h> | ||
| 17 | #include <linux/init.h> | ||
| 18 | #include <linux/platform_device.h> | ||
| 19 | #include <linux/mtd/mtd.h> | ||
| 20 | #include <linux/mtd/partitions.h> | ||
| 21 | #include <linux/delay.h> | ||
| 22 | #include <linux/err.h> | ||
| 23 | #include <linux/clk.h> | ||
| 24 | |||
| 25 | #include <asm/hardware.h> | ||
| 26 | #include <asm/mach-types.h> | ||
| 27 | #include <asm/mach/arch.h> | ||
| 28 | #include <asm/mach/map.h> | ||
| 29 | #include <asm/mach/flash.h> | ||
| 30 | |||
| 31 | #include <asm/arch/gpio.h> | ||
| 32 | #include <asm/arch/mux.h> | ||
| 33 | #include <asm/arch/board.h> | ||
| 34 | #include <asm/arch/common.h> | ||
| 35 | #include <asm/arch/gpmc.h> | ||
| 36 | #include "prcm-regs.h" | ||
| 37 | |||
| 38 | #include <asm/io.h> | ||
| 39 | |||
| 40 | |||
| 41 | #define SDP2430_FLASH_CS 0 | ||
| 42 | #define SDP2430_SMC91X_CS 5 | ||
| 43 | |||
| 44 | static struct mtd_partition sdp2430_partitions[] = { | ||
| 45 | /* bootloader (U-Boot, etc) in first sector */ | ||
| 46 | { | ||
| 47 | .name = "bootloader", | ||
| 48 | .offset = 0, | ||
| 49 | .size = SZ_256K, | ||
| 50 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
| 51 | }, | ||
| 52 | /* bootloader params in the next sector */ | ||
| 53 | { | ||
| 54 | .name = "params", | ||
| 55 | .offset = MTDPART_OFS_APPEND, | ||
| 56 | .size = SZ_128K, | ||
| 57 | .mask_flags = 0, | ||
| 58 | }, | ||
| 59 | /* kernel */ | ||
| 60 | { | ||
| 61 | .name = "kernel", | ||
| 62 | .offset = MTDPART_OFS_APPEND, | ||
| 63 | .size = SZ_2M, | ||
| 64 | .mask_flags = 0 | ||
| 65 | }, | ||
| 66 | /* file system */ | ||
| 67 | { | ||
| 68 | .name = "filesystem", | ||
| 69 | .offset = MTDPART_OFS_APPEND, | ||
| 70 | .size = MTDPART_SIZ_FULL, | ||
| 71 | .mask_flags = 0 | ||
| 72 | } | ||
| 73 | }; | ||
| 74 | |||
| 75 | static struct flash_platform_data sdp2430_flash_data = { | ||
| 76 | .map_name = "cfi_probe", | ||
| 77 | .width = 2, | ||
| 78 | .parts = sdp2430_partitions, | ||
| 79 | .nr_parts = ARRAY_SIZE(sdp2430_partitions), | ||
| 80 | }; | ||
| 81 | |||
| 82 | static struct resource sdp2430_flash_resource = { | ||
| 83 | .start = SDP2430_CS0_BASE, | ||
| 84 | .end = SDP2430_CS0_BASE + SZ_64M - 1, | ||
| 85 | .flags = IORESOURCE_MEM, | ||
| 86 | }; | ||
| 87 | |||
| 88 | static struct platform_device sdp2430_flash_device = { | ||
| 89 | .name = "omapflash", | ||
| 90 | .id = 0, | ||
| 91 | .dev = { | ||
| 92 | .platform_data = &sdp2430_flash_data, | ||
| 93 | }, | ||
| 94 | .num_resources = 1, | ||
| 95 | .resource = &sdp2430_flash_resource, | ||
| 96 | }; | ||
| 97 | |||
| 98 | static struct resource sdp2430_smc91x_resources[] = { | ||
| 99 | [0] = { | ||
| 100 | .start = SDP2430_CS0_BASE, | ||
| 101 | .end = SDP2430_CS0_BASE + SZ_64M - 1, | ||
| 102 | .flags = IORESOURCE_MEM, | ||
| 103 | }, | ||
| 104 | [1] = { | ||
| 105 | .start = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | ||
| 106 | .end = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | ||
| 107 | .flags = IORESOURCE_IRQ, | ||
| 108 | }, | ||
| 109 | }; | ||
| 110 | |||
| 111 | static struct platform_device sdp2430_smc91x_device = { | ||
| 112 | .name = "smc91x", | ||
| 113 | .id = -1, | ||
| 114 | .num_resources = ARRAY_SIZE(sdp2430_smc91x_resources), | ||
| 115 | .resource = sdp2430_smc91x_resources, | ||
| 116 | }; | ||
| 117 | |||
| 118 | static struct platform_device *sdp2430_devices[] __initdata = { | ||
| 119 | &sdp2430_smc91x_device, | ||
| 120 | &sdp2430_flash_device, | ||
| 121 | }; | ||
| 122 | |||
| 123 | static inline void __init sdp2430_init_smc91x(void) | ||
| 124 | { | ||
| 125 | int eth_cs; | ||
| 126 | unsigned long cs_mem_base; | ||
| 127 | unsigned int rate; | ||
| 128 | struct clk *l3ck; | ||
| 129 | |||
| 130 | eth_cs = SDP2430_SMC91X_CS; | ||
| 131 | |||
| 132 | l3ck = clk_get(NULL, "core_l3_ck"); | ||
| 133 | if (IS_ERR(l3ck)) | ||
| 134 | rate = 100000000; | ||
| 135 | else | ||
| 136 | rate = clk_get_rate(l3ck); | ||
| 137 | |||
| 138 | /* Make sure CS1 timings are correct, for 2430 always muxed */ | ||
| 139 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG1, 0x00011200); | ||
| 140 | |||
| 141 | if (rate >= 160000000) { | ||
| 142 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f01); | ||
| 143 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080803); | ||
| 144 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1c0b1c0a); | ||
| 145 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x041f1F1F); | ||
| 146 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000004C4); | ||
| 147 | } else if (rate >= 130000000) { | ||
| 148 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f00); | ||
| 149 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080802); | ||
| 150 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1C091C09); | ||
| 151 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x041f1F1F); | ||
| 152 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000004C4); | ||
| 153 | } else { /* rate = 100000000 */ | ||
| 154 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f00); | ||
| 155 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080802); | ||
| 156 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1C091C09); | ||
| 157 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x031A1F1F); | ||
| 158 | gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000003C2); | ||
| 159 | } | ||
| 160 | |||
| 161 | if (gpmc_cs_request(eth_cs, SZ_16M, &cs_mem_base) < 0) { | ||
| 162 | printk(KERN_ERR "Failed to request GPMC mem for smc91x\n"); | ||
| 163 | return; | ||
| 164 | } | ||
| 165 | |||
| 166 | sdp2430_smc91x_resources[0].start = cs_mem_base + 0x300; | ||
| 167 | sdp2430_smc91x_resources[0].end = cs_mem_base + 0x30f; | ||
| 168 | udelay(100); | ||
| 169 | |||
| 170 | if (omap_request_gpio(OMAP24XX_ETHR_GPIO_IRQ) < 0) { | ||
| 171 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", | ||
| 172 | OMAP24XX_ETHR_GPIO_IRQ); | ||
| 173 | gpmc_cs_free(eth_cs); | ||
| 174 | return; | ||
| 175 | } | ||
| 176 | omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1); | ||
| 177 | |||
| 178 | } | ||
| 179 | |||
| 180 | static void __init omap_2430sdp_init_irq(void) | ||
| 181 | { | ||
| 182 | omap2_init_common_hw(); | ||
| 183 | omap_init_irq(); | ||
| 184 | omap_gpio_init(); | ||
| 185 | sdp2430_init_smc91x(); | ||
| 186 | } | ||
| 187 | |||
| 188 | static struct omap_uart_config sdp2430_uart_config __initdata = { | ||
| 189 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
| 190 | }; | ||
| 191 | |||
| 192 | static struct omap_board_config_kernel sdp2430_config[] = { | ||
| 193 | {OMAP_TAG_UART, &sdp2430_uart_config}, | ||
| 194 | }; | ||
| 195 | |||
| 196 | static void __init omap_2430sdp_init(void) | ||
| 197 | { | ||
| 198 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); | ||
| 199 | omap_board_config = sdp2430_config; | ||
| 200 | omap_board_config_size = ARRAY_SIZE(sdp2430_config); | ||
| 201 | omap_serial_init(); | ||
| 202 | } | ||
| 203 | |||
| 204 | static void __init omap_2430sdp_map_io(void) | ||
| 205 | { | ||
| 206 | omap2_map_common_io(); | ||
| 207 | } | ||
| 208 | |||
| 209 | MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | ||
| 210 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ | ||
| 211 | .phys_io = 0x48000000, | ||
| 212 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | ||
| 213 | .boot_params = 0x80000100, | ||
| 214 | .map_io = omap_2430sdp_map_io, | ||
| 215 | .init_irq = omap_2430sdp_init_irq, | ||
| 216 | .init_machine = omap_2430sdp_init, | ||
| 217 | .timer = &omap_timer, | ||
| 218 | MACHINE_END | ||
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index 878ff9181d0e..3bb49c17c858 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
| @@ -25,6 +25,8 @@ | |||
| 25 | #include <linux/irq.h> | 25 | #include <linux/irq.h> |
| 26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
| 27 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
| 28 | #include <linux/leds.h> | ||
| 29 | #include <linux/irq.h> | ||
| 28 | 30 | ||
| 29 | #include <asm/hardware.h> | 31 | #include <asm/hardware.h> |
| 30 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
| @@ -32,10 +34,12 @@ | |||
| 32 | #include <asm/mach/flash.h> | 34 | #include <asm/mach/flash.h> |
| 33 | 35 | ||
| 34 | #include <asm/arch/gpio.h> | 36 | #include <asm/arch/gpio.h> |
| 37 | #include <asm/arch/led.h> | ||
| 35 | #include <asm/arch/mux.h> | 38 | #include <asm/arch/mux.h> |
| 36 | #include <asm/arch/usb.h> | 39 | #include <asm/arch/usb.h> |
| 37 | #include <asm/arch/board.h> | 40 | #include <asm/arch/board.h> |
| 38 | #include <asm/arch/common.h> | 41 | #include <asm/arch/common.h> |
| 42 | #include <asm/arch/gpmc.h> | ||
| 39 | #include "prcm-regs.h" | 43 | #include "prcm-regs.h" |
| 40 | 44 | ||
| 41 | /* LED & Switch macros */ | 45 | /* LED & Switch macros */ |
| @@ -46,6 +50,9 @@ | |||
| 46 | #define SW_UP_GPIO17 17 | 50 | #define SW_UP_GPIO17 17 |
| 47 | #define SW_DOWN_GPIO58 58 | 51 | #define SW_DOWN_GPIO58 58 |
| 48 | 52 | ||
| 53 | #define APOLLON_FLASH_CS 0 | ||
| 54 | #define APOLLON_ETH_CS 1 | ||
| 55 | |||
| 49 | static struct mtd_partition apollon_partitions[] = { | 56 | static struct mtd_partition apollon_partitions[] = { |
| 50 | { | 57 | { |
| 51 | .name = "X-Loader + U-Boot", | 58 | .name = "X-Loader + U-Boot", |
| @@ -85,10 +92,10 @@ static struct flash_platform_data apollon_flash_data = { | |||
| 85 | .nr_parts = ARRAY_SIZE(apollon_partitions), | 92 | .nr_parts = ARRAY_SIZE(apollon_partitions), |
| 86 | }; | 93 | }; |
| 87 | 94 | ||
| 88 | static struct resource apollon_flash_resource = { | 95 | static struct resource apollon_flash_resource[] = { |
| 89 | .start = APOLLON_CS0_BASE, | 96 | [0] = { |
| 90 | .end = APOLLON_CS0_BASE + SZ_128K, | 97 | .flags = IORESOURCE_MEM, |
| 91 | .flags = IORESOURCE_MEM, | 98 | }, |
| 92 | }; | 99 | }; |
| 93 | 100 | ||
| 94 | static struct platform_device apollon_onenand_device = { | 101 | static struct platform_device apollon_onenand_device = { |
| @@ -97,14 +104,24 @@ static struct platform_device apollon_onenand_device = { | |||
| 97 | .dev = { | 104 | .dev = { |
| 98 | .platform_data = &apollon_flash_data, | 105 | .platform_data = &apollon_flash_data, |
| 99 | }, | 106 | }, |
| 100 | .num_resources = ARRAY_SIZE(&apollon_flash_resource), | 107 | .num_resources = ARRAY_SIZE(apollon_flash_resource), |
| 101 | .resource = &apollon_flash_resource, | 108 | .resource = apollon_flash_resource, |
| 102 | }; | 109 | }; |
| 103 | 110 | ||
| 111 | static void __init apollon_flash_init(void) | ||
| 112 | { | ||
| 113 | unsigned long base; | ||
| 114 | |||
| 115 | if (gpmc_cs_request(APOLLON_FLASH_CS, SZ_128K, &base) < 0) { | ||
| 116 | printk(KERN_ERR "Cannot request OneNAND GPMC CS\n"); | ||
| 117 | return; | ||
| 118 | } | ||
| 119 | apollon_flash_resource[0].start = base; | ||
| 120 | apollon_flash_resource[0].end = base + SZ_128K - 1; | ||
| 121 | } | ||
| 122 | |||
| 104 | static struct resource apollon_smc91x_resources[] = { | 123 | static struct resource apollon_smc91x_resources[] = { |
| 105 | [0] = { | 124 | [0] = { |
| 106 | .start = APOLLON_ETHR_START, /* Physical */ | ||
| 107 | .end = APOLLON_ETHR_START + 0xf, | ||
| 108 | .flags = IORESOURCE_MEM, | 125 | .flags = IORESOURCE_MEM, |
| 109 | }, | 126 | }, |
| 110 | [1] = { | 127 | [1] = { |
| @@ -126,14 +143,51 @@ static struct platform_device apollon_lcd_device = { | |||
| 126 | .id = -1, | 143 | .id = -1, |
| 127 | }; | 144 | }; |
| 128 | 145 | ||
| 146 | static struct omap_led_config apollon_led_config[] = { | ||
| 147 | { | ||
| 148 | .cdev = { | ||
| 149 | .name = "apollon:led0", | ||
| 150 | }, | ||
| 151 | .gpio = LED0_GPIO13, | ||
| 152 | }, | ||
| 153 | { | ||
| 154 | .cdev = { | ||
| 155 | .name = "apollon:led1", | ||
| 156 | }, | ||
| 157 | .gpio = LED1_GPIO14, | ||
| 158 | }, | ||
| 159 | { | ||
| 160 | .cdev = { | ||
| 161 | .name = "apollon:led2", | ||
| 162 | }, | ||
| 163 | .gpio = LED2_GPIO15, | ||
| 164 | }, | ||
| 165 | }; | ||
| 166 | |||
| 167 | static struct omap_led_platform_data apollon_led_data = { | ||
| 168 | .nr_leds = ARRAY_SIZE(apollon_led_config), | ||
| 169 | .leds = apollon_led_config, | ||
| 170 | }; | ||
| 171 | |||
| 172 | static struct platform_device apollon_led_device = { | ||
| 173 | .name = "omap-led", | ||
| 174 | .id = -1, | ||
| 175 | .dev = { | ||
| 176 | .platform_data = &apollon_led_data, | ||
| 177 | }, | ||
| 178 | }; | ||
| 179 | |||
| 129 | static struct platform_device *apollon_devices[] __initdata = { | 180 | static struct platform_device *apollon_devices[] __initdata = { |
| 130 | &apollon_onenand_device, | 181 | &apollon_onenand_device, |
| 131 | &apollon_smc91x_device, | 182 | &apollon_smc91x_device, |
| 132 | &apollon_lcd_device, | 183 | &apollon_lcd_device, |
| 184 | &apollon_led_device, | ||
| 133 | }; | 185 | }; |
| 134 | 186 | ||
| 135 | static inline void __init apollon_init_smc91x(void) | 187 | static inline void __init apollon_init_smc91x(void) |
| 136 | { | 188 | { |
| 189 | unsigned long base; | ||
| 190 | |||
| 137 | /* Make sure CS1 timings are correct */ | 191 | /* Make sure CS1 timings are correct */ |
| 138 | GPMC_CONFIG1_1 = 0x00011203; | 192 | GPMC_CONFIG1_1 = 0x00011203; |
| 139 | GPMC_CONFIG2_1 = 0x001f1f01; | 193 | GPMC_CONFIG2_1 = 0x001f1f01; |
| @@ -141,13 +195,20 @@ static inline void __init apollon_init_smc91x(void) | |||
| 141 | GPMC_CONFIG4_1 = 0x1c091c09; | 195 | GPMC_CONFIG4_1 = 0x1c091c09; |
| 142 | GPMC_CONFIG5_1 = 0x041f1f1f; | 196 | GPMC_CONFIG5_1 = 0x041f1f1f; |
| 143 | GPMC_CONFIG6_1 = 0x000004c4; | 197 | GPMC_CONFIG6_1 = 0x000004c4; |
| 144 | GPMC_CONFIG7_1 = 0x00000f40 | (APOLLON_CS1_BASE >> 24); | 198 | |
| 199 | if (gpmc_cs_request(APOLLON_ETH_CS, SZ_16M, &base) < 0) { | ||
| 200 | printk(KERN_ERR "Failed to request GPMC CS for smc91x\n"); | ||
| 201 | return; | ||
| 202 | } | ||
| 203 | apollon_smc91x_resources[0].start = base + 0x300; | ||
| 204 | apollon_smc91x_resources[0].end = base + 0x30f; | ||
| 145 | udelay(100); | 205 | udelay(100); |
| 146 | 206 | ||
| 147 | omap_cfg_reg(W4__24XX_GPIO74); | 207 | omap_cfg_reg(W4__24XX_GPIO74); |
| 148 | if (omap_request_gpio(APOLLON_ETHR_GPIO_IRQ) < 0) { | 208 | if (omap_request_gpio(APOLLON_ETHR_GPIO_IRQ) < 0) { |
| 149 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", | 209 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", |
| 150 | APOLLON_ETHR_GPIO_IRQ); | 210 | APOLLON_ETHR_GPIO_IRQ); |
| 211 | gpmc_cs_free(APOLLON_ETH_CS); | ||
| 151 | return; | 212 | return; |
| 152 | } | 213 | } |
| 153 | omap_set_gpio_direction(APOLLON_ETHR_GPIO_IRQ, 1); | 214 | omap_set_gpio_direction(APOLLON_ETHR_GPIO_IRQ, 1); |
| @@ -175,6 +236,13 @@ static struct omap_mmc_config apollon_mmc_config __initdata = { | |||
| 175 | }, | 236 | }, |
| 176 | }; | 237 | }; |
| 177 | 238 | ||
| 239 | static struct omap_usb_config apollon_usb_config __initdata = { | ||
| 240 | .register_dev = 1, | ||
| 241 | .hmc_mode = 0x14, /* 0:dev 1:host1 2:disable */ | ||
| 242 | |||
| 243 | .pins[0] = 6, | ||
| 244 | }; | ||
| 245 | |||
| 178 | static struct omap_lcd_config apollon_lcd_config __initdata = { | 246 | static struct omap_lcd_config apollon_lcd_config __initdata = { |
| 179 | .ctrl_name = "internal", | 247 | .ctrl_name = "internal", |
| 180 | }; | 248 | }; |
| @@ -182,6 +250,7 @@ static struct omap_lcd_config apollon_lcd_config __initdata = { | |||
| 182 | static struct omap_board_config_kernel apollon_config[] = { | 250 | static struct omap_board_config_kernel apollon_config[] = { |
| 183 | { OMAP_TAG_UART, &apollon_uart_config }, | 251 | { OMAP_TAG_UART, &apollon_uart_config }, |
| 184 | { OMAP_TAG_MMC, &apollon_mmc_config }, | 252 | { OMAP_TAG_MMC, &apollon_mmc_config }, |
| 253 | { OMAP_TAG_USB, &apollon_usb_config }, | ||
| 185 | { OMAP_TAG_LCD, &apollon_lcd_config }, | 254 | { OMAP_TAG_LCD, &apollon_lcd_config }, |
| 186 | }; | 255 | }; |
| 187 | 256 | ||
| @@ -250,10 +319,22 @@ static void __init apollon_sw_init(void) | |||
| 250 | return; | 319 | return; |
| 251 | } | 320 | } |
| 252 | 321 | ||
| 322 | static void __init apollon_usb_init(void) | ||
| 323 | { | ||
| 324 | /* USB device */ | ||
| 325 | /* DEVICE_SUSPEND */ | ||
| 326 | omap_cfg_reg(P21_242X_GPIO12); | ||
| 327 | omap_request_gpio(12); | ||
| 328 | omap_set_gpio_direction(12, 0); /* OUT */ | ||
| 329 | omap_set_gpio_dataout(12, 0); | ||
| 330 | } | ||
| 331 | |||
| 253 | static void __init omap_apollon_init(void) | 332 | static void __init omap_apollon_init(void) |
| 254 | { | 333 | { |
| 255 | apollon_led_init(); | 334 | apollon_led_init(); |
| 256 | apollon_sw_init(); | 335 | apollon_sw_init(); |
| 336 | apollon_flash_init(); | ||
| 337 | apollon_usb_init(); | ||
| 257 | 338 | ||
| 258 | /* REVISIT: where's the correct place */ | 339 | /* REVISIT: where's the correct place */ |
| 259 | omap_cfg_reg(W19_24XX_SYS_NIRQ); | 340 | omap_cfg_reg(W19_24XX_SYS_NIRQ); |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 452193f01531..f125f432cc3e 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
| @@ -131,26 +131,6 @@ static struct platform_device h4_flash_device = { | |||
| 131 | .resource = &h4_flash_resource, | 131 | .resource = &h4_flash_resource, |
| 132 | }; | 132 | }; |
| 133 | 133 | ||
| 134 | static struct resource h4_smc91x_resources[] = { | ||
| 135 | [0] = { | ||
| 136 | .start = OMAP24XX_ETHR_START, /* Physical */ | ||
| 137 | .end = OMAP24XX_ETHR_START + 0xf, | ||
| 138 | .flags = IORESOURCE_MEM, | ||
| 139 | }, | ||
| 140 | [1] = { | ||
| 141 | .start = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | ||
| 142 | .end = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | ||
| 143 | .flags = IORESOURCE_IRQ, | ||
| 144 | }, | ||
| 145 | }; | ||
| 146 | |||
| 147 | static struct platform_device h4_smc91x_device = { | ||
| 148 | .name = "smc91x", | ||
| 149 | .id = -1, | ||
| 150 | .num_resources = ARRAY_SIZE(h4_smc91x_resources), | ||
| 151 | .resource = h4_smc91x_resources, | ||
| 152 | }; | ||
| 153 | |||
| 154 | /* Select between the IrDA and aGPS module | 134 | /* Select between the IrDA and aGPS module |
| 155 | */ | 135 | */ |
| 156 | static int h4_select_irda(struct device *dev, int state) | 136 | static int h4_select_irda(struct device *dev, int state) |
| @@ -266,29 +246,14 @@ static struct platform_device h4_lcd_device = { | |||
| 266 | .id = -1, | 246 | .id = -1, |
| 267 | }; | 247 | }; |
| 268 | 248 | ||
| 269 | static struct resource h4_led_resources[] = { | ||
| 270 | [0] = { | ||
| 271 | .flags = IORESOURCE_MEM, | ||
| 272 | }, | ||
| 273 | }; | ||
| 274 | |||
| 275 | static struct platform_device h4_led_device = { | ||
| 276 | .name = "omap_dbg_led", | ||
| 277 | .id = -1, | ||
| 278 | .num_resources = ARRAY_SIZE(h4_led_resources), | ||
| 279 | .resource = h4_led_resources, | ||
| 280 | }; | ||
| 281 | |||
| 282 | static struct platform_device *h4_devices[] __initdata = { | 249 | static struct platform_device *h4_devices[] __initdata = { |
| 283 | &h4_smc91x_device, | ||
| 284 | &h4_flash_device, | 250 | &h4_flash_device, |
| 285 | &h4_irda_device, | 251 | &h4_irda_device, |
| 286 | &h4_kp_device, | 252 | &h4_kp_device, |
| 287 | &h4_lcd_device, | 253 | &h4_lcd_device, |
| 288 | &h4_led_device, | ||
| 289 | }; | 254 | }; |
| 290 | 255 | ||
| 291 | static inline void __init h4_init_smc91x(void) | 256 | static inline void __init h4_init_debug(void) |
| 292 | { | 257 | { |
| 293 | /* Make sure CS1 timings are correct */ | 258 | /* Make sure CS1 timings are correct */ |
| 294 | GPMC_CONFIG1_1 = 0x00011200; | 259 | GPMC_CONFIG1_1 = 0x00011200; |
| @@ -301,12 +266,8 @@ static inline void __init h4_init_smc91x(void) | |||
| 301 | udelay(100); | 266 | udelay(100); |
| 302 | 267 | ||
| 303 | omap_cfg_reg(M15_24XX_GPIO92); | 268 | omap_cfg_reg(M15_24XX_GPIO92); |
| 304 | if (omap_request_gpio(OMAP24XX_ETHR_GPIO_IRQ) < 0) { | 269 | if (debug_card_init(cs_mem_base, OMAP24XX_ETHR_GPIO_IRQ) < 0) |
| 305 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", | 270 | gpmc_cs_free(eth_cs); |
| 306 | OMAP24XX_ETHR_GPIO_IRQ); | ||
| 307 | return; | ||
| 308 | } | ||
| 309 | omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1); | ||
| 310 | } | 271 | } |
| 311 | 272 | ||
| 312 | static void __init omap_h4_init_irq(void) | 273 | static void __init omap_h4_init_irq(void) |
| @@ -314,7 +275,6 @@ static void __init omap_h4_init_irq(void) | |||
| 314 | omap2_init_common_hw(); | 275 | omap2_init_common_hw(); |
| 315 | omap_init_irq(); | 276 | omap_init_irq(); |
| 316 | omap_gpio_init(); | 277 | omap_gpio_init(); |
| 317 | h4_init_smc91x(); | ||
| 318 | } | 278 | } |
| 319 | 279 | ||
| 320 | static struct omap_uart_config h4_uart_config __initdata = { | 280 | static struct omap_uart_config h4_uart_config __initdata = { |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 52ec2f2d6360..b603bc5f8e5b 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
| @@ -55,8 +55,10 @@ static void omap_init_i2c(void) | |||
| 55 | if (machine_is_omap_h4()) | 55 | if (machine_is_omap_h4()) |
| 56 | return; | 56 | return; |
| 57 | 57 | ||
| 58 | omap_cfg_reg(J15_24XX_I2C2_SCL); | 58 | if (!cpu_is_omap2430()) { |
| 59 | omap_cfg_reg(H19_24XX_I2C2_SDA); | 59 | omap_cfg_reg(J15_24XX_I2C2_SCL); |
| 60 | omap_cfg_reg(H19_24XX_I2C2_SDA); | ||
| 61 | } | ||
| 60 | (void) platform_device_register(&omap_i2c_device2); | 62 | (void) platform_device_register(&omap_i2c_device2); |
| 61 | } | 63 | } |
| 62 | 64 | ||
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index e290b989aa94..5a4cc2076a7d 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
| @@ -22,7 +22,14 @@ | |||
| 22 | 22 | ||
| 23 | #undef DEBUG | 23 | #undef DEBUG |
| 24 | 24 | ||
| 25 | #ifdef CONFIG_ARCH_OMAP2420 | ||
| 25 | #define GPMC_BASE 0x6800a000 | 26 | #define GPMC_BASE 0x6800a000 |
| 27 | #endif | ||
| 28 | |||
| 29 | #ifdef CONFIG_ARCH_OMAP2430 | ||
| 30 | #define GPMC_BASE 0x6E000000 | ||
| 31 | #endif | ||
| 32 | |||
| 26 | #define GPMC_REVISION 0x00 | 33 | #define GPMC_REVISION 0x00 |
| 27 | #define GPMC_SYSCONFIG 0x10 | 34 | #define GPMC_SYSCONFIG 0x10 |
| 28 | #define GPMC_SYSSTATUS 0x14 | 35 | #define GPMC_SYSSTATUS 0x14 |
| @@ -88,7 +95,7 @@ u32 gpmc_cs_read_reg(int cs, int idx) | |||
| 88 | } | 95 | } |
| 89 | 96 | ||
| 90 | /* TODO: Add support for gpmc_fck to clock framework and use it */ | 97 | /* TODO: Add support for gpmc_fck to clock framework and use it */ |
| 91 | static unsigned long gpmc_get_fclk_period(void) | 98 | unsigned long gpmc_get_fclk_period(void) |
| 92 | { | 99 | { |
| 93 | /* In picoseconds */ | 100 | /* In picoseconds */ |
| 94 | return 1000000000 / ((clk_get_rate(gpmc_l3_clk)) / 1000); | 101 | return 1000000000 / ((clk_get_rate(gpmc_l3_clk)) / 1000); |
| @@ -104,6 +111,13 @@ unsigned int gpmc_ns_to_ticks(unsigned int time_ns) | |||
| 104 | return (time_ns * 1000 + tick_ps - 1) / tick_ps; | 111 | return (time_ns * 1000 + tick_ps - 1) / tick_ps; |
| 105 | } | 112 | } |
| 106 | 113 | ||
| 114 | unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns) | ||
| 115 | { | ||
| 116 | unsigned long ticks = gpmc_ns_to_ticks(time_ns); | ||
| 117 | |||
| 118 | return ticks * gpmc_get_fclk_period() / 1000; | ||
| 119 | } | ||
| 120 | |||
| 107 | #ifdef DEBUG | 121 | #ifdef DEBUG |
| 108 | static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit, | 122 | static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit, |
| 109 | int time, const char *name) | 123 | int time, const char *name) |
| @@ -120,15 +134,21 @@ static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit, | |||
| 120 | else | 134 | else |
| 121 | ticks = gpmc_ns_to_ticks(time); | 135 | ticks = gpmc_ns_to_ticks(time); |
| 122 | nr_bits = end_bit - st_bit + 1; | 136 | nr_bits = end_bit - st_bit + 1; |
| 123 | if (ticks >= 1 << nr_bits) | 137 | if (ticks >= 1 << nr_bits) { |
| 138 | #ifdef DEBUG | ||
| 139 | printk(KERN_INFO "GPMC CS%d: %-10s* %3d ns, %3d ticks >= %d\n", | ||
| 140 | cs, name, time, ticks, 1 << nr_bits); | ||
| 141 | #endif | ||
| 124 | return -1; | 142 | return -1; |
| 143 | } | ||
| 125 | 144 | ||
| 126 | mask = (1 << nr_bits) - 1; | 145 | mask = (1 << nr_bits) - 1; |
| 127 | l = gpmc_cs_read_reg(cs, reg); | 146 | l = gpmc_cs_read_reg(cs, reg); |
| 128 | #ifdef DEBUG | 147 | #ifdef DEBUG |
| 129 | printk(KERN_INFO "GPMC CS%d: %-10s: %d ticks, %3lu ns (was %i ticks)\n", | 148 | printk(KERN_INFO |
| 149 | "GPMC CS%d: %-10s: %3d ticks, %3lu ns (was %3i ticks) %3d ns\n", | ||
| 130 | cs, name, ticks, gpmc_get_fclk_period() * ticks / 1000, | 150 | cs, name, ticks, gpmc_get_fclk_period() * ticks / 1000, |
| 131 | (l >> st_bit) & mask); | 151 | (l >> st_bit) & mask, time); |
| 132 | #endif | 152 | #endif |
| 133 | l &= ~(mask << st_bit); | 153 | l &= ~(mask << st_bit); |
| 134 | l |= ticks << st_bit; | 154 | l |= ticks << st_bit; |
| @@ -157,7 +177,7 @@ int gpmc_cs_calc_divider(int cs, unsigned int sync_clk) | |||
| 157 | div = l / gpmc_get_fclk_period(); | 177 | div = l / gpmc_get_fclk_period(); |
| 158 | if (div > 4) | 178 | if (div > 4) |
| 159 | return -1; | 179 | return -1; |
| 160 | if (div < 0) | 180 | if (div <= 0) |
| 161 | div = 1; | 181 | div = 1; |
| 162 | 182 | ||
| 163 | return div; | 183 | return div; |
| @@ -191,14 +211,19 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t) | |||
| 191 | 211 | ||
| 192 | GPMC_SET_ONE(GPMC_CS_CONFIG5, 24, 27, page_burst_access); | 212 | GPMC_SET_ONE(GPMC_CS_CONFIG5, 24, 27, page_burst_access); |
| 193 | 213 | ||
| 214 | /* caller is expected to have initialized CONFIG1 to cover | ||
| 215 | * at least sync vs async | ||
| 216 | */ | ||
| 217 | l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); | ||
| 218 | if (l & (GPMC_CONFIG1_READTYPE_SYNC | GPMC_CONFIG1_WRITETYPE_SYNC)) { | ||
| 194 | #ifdef DEBUG | 219 | #ifdef DEBUG |
| 195 | printk(KERN_INFO "GPMC CS%d CLK period is %lu (div %d)\n", | 220 | printk(KERN_INFO "GPMC CS%d CLK period is %lu ns (div %d)\n", |
| 196 | cs, gpmc_get_fclk_period(), div); | 221 | cs, (div * gpmc_get_fclk_period()) / 1000, div); |
| 197 | #endif | 222 | #endif |
| 198 | 223 | l &= ~0x03; | |
| 199 | l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); | 224 | l |= (div - 1); |
| 200 | l &= ~0x03; | 225 | gpmc_cs_write_reg(cs, GPMC_CS_CONFIG1, l); |
| 201 | l |= (div - 1); | 226 | } |
| 202 | 227 | ||
| 203 | return 0; | 228 | return 0; |
| 204 | } | 229 | } |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 871ace4fccb8..4dfd878d7968 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
| @@ -17,7 +17,13 @@ | |||
| 17 | 17 | ||
| 18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
| 19 | 19 | ||
| 20 | #if defined(CONFIG_ARCH_OMAP2420) | ||
| 20 | #define OMAP24XX_TAP_BASE io_p2v(0x48014000) | 21 | #define OMAP24XX_TAP_BASE io_p2v(0x48014000) |
| 22 | #endif | ||
| 23 | |||
| 24 | #if defined(CONFIG_ARCH_OMAP2430) | ||
| 25 | #define OMAP24XX_TAP_BASE io_p2v(0x4900A000) | ||
| 26 | #endif | ||
| 21 | 27 | ||
| 22 | #define OMAP_TAP_IDCODE 0x0204 | 28 | #define OMAP_TAP_IDCODE 0x0204 |
| 23 | #define OMAP_TAP_PROD_ID 0x0208 | 29 | #define OMAP_TAP_PROD_ID 0x0208 |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 82dc70f6b779..5a4091f582ed 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | * | 5 | * |
| 6 | * Copyright (C) 2005 Nokia Corporation | 6 | * Copyright (C) 2005 Nokia Corporation |
| 7 | * Author: Juha Yrjölä <juha.yrjola@nokia.com> | 7 | * Author: Juha Yrjölä <juha.yrjola@nokia.com> |
| 8 | * Updated map desc to add 2430 support : <x0khasim@ti.com> | ||
| 8 | * | 9 | * |
| 9 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
| @@ -26,6 +27,7 @@ | |||
| 26 | extern void omap_sram_init(void); | 27 | extern void omap_sram_init(void); |
| 27 | extern int omap2_clk_init(void); | 28 | extern int omap2_clk_init(void); |
| 28 | extern void omap2_check_revision(void); | 29 | extern void omap2_check_revision(void); |
| 30 | extern void omap2_init_memory(void); | ||
| 29 | extern void gpmc_init(void); | 31 | extern void gpmc_init(void); |
| 30 | extern void omapfb_reserve_sdram(void); | 32 | extern void omapfb_reserve_sdram(void); |
| 31 | 33 | ||
| @@ -40,6 +42,20 @@ static struct map_desc omap2_io_desc[] __initdata = { | |||
| 40 | .length = L3_24XX_SIZE, | 42 | .length = L3_24XX_SIZE, |
| 41 | .type = MT_DEVICE | 43 | .type = MT_DEVICE |
| 42 | }, | 44 | }, |
| 45 | #ifdef CONFIG_ARCH_OMAP2430 | ||
| 46 | { | ||
| 47 | .virtual = L4_WK_243X_VIRT, | ||
| 48 | .pfn = __phys_to_pfn(L4_WK_243X_PHYS), | ||
| 49 | .length = L4_WK_243X_SIZE, | ||
| 50 | .type = MT_DEVICE | ||
| 51 | }, | ||
| 52 | { | ||
| 53 | .virtual = OMAP243X_GPMC_VIRT, | ||
| 54 | .pfn = __phys_to_pfn(OMAP243X_GPMC_PHYS), | ||
| 55 | .length = OMAP243X_GPMC_SIZE, | ||
| 56 | .type = MT_DEVICE | ||
| 57 | }, | ||
| 58 | #endif | ||
| 43 | { | 59 | { |
| 44 | .virtual = DSP_MEM_24XX_VIRT, | 60 | .virtual = DSP_MEM_24XX_VIRT, |
| 45 | .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), | 61 | .pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS), |
| @@ -80,5 +96,11 @@ void __init omap2_init_common_hw(void) | |||
| 80 | { | 96 | { |
| 81 | omap2_mux_init(); | 97 | omap2_mux_init(); |
| 82 | omap2_clk_init(); | 98 | omap2_clk_init(); |
| 99 | /* | ||
| 100 | * Need to Fix this for 2430 | ||
| 101 | */ | ||
| 102 | #ifndef CONFIG_ARCH_OMAP2430 | ||
| 103 | omap2_init_memory(); | ||
| 104 | #endif | ||
| 83 | gpmc_init(); | 105 | gpmc_init(); |
| 84 | } | 106 | } |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index a39d30680300..f064f725e724 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
| @@ -37,7 +37,7 @@ static struct omap_irq_bank { | |||
| 37 | } __attribute__ ((aligned(4))) irq_banks[] = { | 37 | } __attribute__ ((aligned(4))) irq_banks[] = { |
| 38 | { | 38 | { |
| 39 | /* MPU INTC */ | 39 | /* MPU INTC */ |
| 40 | .base_reg = OMAP24XX_IC_BASE, | 40 | .base_reg = IO_ADDRESS(OMAP24XX_IC_BASE), |
| 41 | .nr_irqs = 96, | 41 | .nr_irqs = 96, |
| 42 | }, { | 42 | }, { |
| 43 | /* XXX: DSP INTC */ | 43 | /* XXX: DSP INTC */ |
| @@ -47,7 +47,7 @@ static struct omap_irq_bank { | |||
| 47 | /* XXX: FIQ and additional INTC support (only MPU at the moment) */ | 47 | /* XXX: FIQ and additional INTC support (only MPU at the moment) */ |
| 48 | static void omap_ack_irq(unsigned int irq) | 48 | static void omap_ack_irq(unsigned int irq) |
| 49 | { | 49 | { |
| 50 | omap_writel(0x1, irq_banks[0].base_reg + INTC_CONTROL); | 50 | __raw_writel(0x1, irq_banks[0].base_reg + INTC_CONTROL); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | static void omap_mask_irq(unsigned int irq) | 53 | static void omap_mask_irq(unsigned int irq) |
| @@ -60,7 +60,7 @@ static void omap_mask_irq(unsigned int irq) | |||
| 60 | irq %= 32; | 60 | irq %= 32; |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | omap_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_SET0 + offset); | 63 | __raw_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_SET0 + offset); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | static void omap_unmask_irq(unsigned int irq) | 66 | static void omap_unmask_irq(unsigned int irq) |
| @@ -73,7 +73,7 @@ static void omap_unmask_irq(unsigned int irq) | |||
| 73 | irq %= 32; | 73 | irq %= 32; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | omap_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_CLEAR0 + offset); | 76 | __raw_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_CLEAR0 + offset); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | static void omap_mask_ack_irq(unsigned int irq) | 79 | static void omap_mask_ack_irq(unsigned int irq) |
| @@ -93,17 +93,20 @@ static void __init omap_irq_bank_init_one(struct omap_irq_bank *bank) | |||
| 93 | { | 93 | { |
| 94 | unsigned long tmp; | 94 | unsigned long tmp; |
| 95 | 95 | ||
| 96 | tmp = omap_readl(bank->base_reg + INTC_REVISION) & 0xff; | 96 | tmp = __raw_readl(bank->base_reg + INTC_REVISION) & 0xff; |
| 97 | printk(KERN_INFO "IRQ: Found an INTC at 0x%08lx " | 97 | printk(KERN_INFO "IRQ: Found an INTC at 0x%08lx " |
| 98 | "(revision %ld.%ld) with %d interrupts\n", | 98 | "(revision %ld.%ld) with %d interrupts\n", |
| 99 | bank->base_reg, tmp >> 4, tmp & 0xf, bank->nr_irqs); | 99 | bank->base_reg, tmp >> 4, tmp & 0xf, bank->nr_irqs); |
| 100 | 100 | ||
| 101 | tmp = omap_readl(bank->base_reg + INTC_SYSCONFIG); | 101 | tmp = __raw_readl(bank->base_reg + INTC_SYSCONFIG); |
| 102 | tmp |= 1 << 1; /* soft reset */ | 102 | tmp |= 1 << 1; /* soft reset */ |
| 103 | omap_writel(tmp, bank->base_reg + INTC_SYSCONFIG); | 103 | __raw_writel(tmp, bank->base_reg + INTC_SYSCONFIG); |
| 104 | 104 | ||
| 105 | while (!(omap_readl(bank->base_reg + INTC_SYSSTATUS) & 0x1)) | 105 | while (!(__raw_readl(bank->base_reg + INTC_SYSSTATUS) & 0x1)) |
| 106 | /* Wait for reset to complete */; | 106 | /* Wait for reset to complete */; |
| 107 | |||
| 108 | /* Enable autoidle */ | ||
| 109 | __raw_writel(1 << 0, bank->base_reg + INTC_SYSCONFIG); | ||
| 107 | } | 110 | } |
| 108 | 111 | ||
| 109 | void __init omap_init_irq(void) | 112 | void __init omap_init_irq(void) |
diff --git a/arch/arm/mach-omap2/memory.c b/arch/arm/mach-omap2/memory.c index 85cbc2a2e663..3e5d8cd4ea4f 100644 --- a/arch/arm/mach-omap2/memory.c +++ b/arch/arm/mach-omap2/memory.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include "prcm-regs.h" | 30 | #include "prcm-regs.h" |
| 31 | #include "memory.h" | 31 | #include "memory.h" |
| 32 | 32 | ||
| 33 | |||
| 33 | static struct memory_timings mem_timings; | 34 | static struct memory_timings mem_timings; |
| 34 | 35 | ||
| 35 | u32 omap2_memory_get_slow_dll_ctrl(void) | 36 | u32 omap2_memory_get_slow_dll_ctrl(void) |
| @@ -99,3 +100,20 @@ void omap2_init_memory_params(u32 force_lock_to_unlock_mode) | |||
| 99 | /* 90 degree phase for anything below 133Mhz + disable DLL filter */ | 100 | /* 90 degree phase for anything below 133Mhz + disable DLL filter */ |
| 100 | mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8)); | 101 | mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8)); |
| 101 | } | 102 | } |
| 103 | |||
| 104 | /* turn on smart idle modes for SDRAM scheduler and controller */ | ||
| 105 | void __init omap2_init_memory(void) | ||
| 106 | { | ||
| 107 | u32 l; | ||
| 108 | |||
| 109 | l = SMS_SYSCONFIG; | ||
| 110 | l &= ~(0x3 << 3); | ||
| 111 | l |= (0x2 << 3); | ||
| 112 | SMS_SYSCONFIG = l; | ||
| 113 | |||
| 114 | l = SDRC_SYSCONFIG; | ||
| 115 | l &= ~(0x3 << 3); | ||
| 116 | l |= (0x2 << 3); | ||
| 117 | SDRC_SYSCONFIG = l; | ||
| 118 | |||
| 119 | } | ||
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 0439906d5da7..05750975d746 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
| @@ -53,8 +53,8 @@ MUX_CFG_24XX("W19_24XX_SYS_NIRQ", 0x12c, 0, 1, 1, 1) | |||
| 53 | MUX_CFG_24XX("W14_24XX_SYS_CLKOUT", 0x137, 0, 1, 1, 1) | 53 | MUX_CFG_24XX("W14_24XX_SYS_CLKOUT", 0x137, 0, 1, 1, 1) |
| 54 | 54 | ||
| 55 | /* 24xx GPMC chipselects, wait pin monitoring */ | 55 | /* 24xx GPMC chipselects, wait pin monitoring */ |
| 56 | MUX_CFG_24XX("E2_GPMC_NCS2", 0x08e, 0, 1, 1, 1) | 56 | MUX_CFG_24XX("E2_GPMC_NCS2", 0x08e, 0, 1, 1, 1) |
| 57 | MUX_CFG_24XX("L2_GPMC_NCS7", 0x093, 0, 1, 1, 1) | 57 | MUX_CFG_24XX("L2_GPMC_NCS7", 0x093, 0, 1, 1, 1) |
| 58 | MUX_CFG_24XX("L3_GPMC_WAIT0", 0x09a, 0, 1, 1, 1) | 58 | MUX_CFG_24XX("L3_GPMC_WAIT0", 0x09a, 0, 1, 1, 1) |
| 59 | MUX_CFG_24XX("N7_GPMC_WAIT1", 0x09b, 0, 1, 1, 1) | 59 | MUX_CFG_24XX("N7_GPMC_WAIT1", 0x09b, 0, 1, 1, 1) |
| 60 | MUX_CFG_24XX("M1_GPMC_WAIT2", 0x09c, 0, 1, 1, 1) | 60 | MUX_CFG_24XX("M1_GPMC_WAIT2", 0x09c, 0, 1, 1, 1) |
| @@ -67,18 +67,18 @@ MUX_CFG_24XX("W15_24XX_MCBSP2_DR", 0x126, 1, 1, 0, 1) | |||
| 67 | MUX_CFG_24XX("V15_24XX_MCBSP2_DX", 0x127, 1, 1, 0, 1) | 67 | MUX_CFG_24XX("V15_24XX_MCBSP2_DX", 0x127, 1, 1, 0, 1) |
| 68 | 68 | ||
| 69 | /* 24xx GPIO */ | 69 | /* 24xx GPIO */ |
| 70 | MUX_CFG_24XX("M21_242X_GPIO11", 0x0c9, 3, 1, 1, 1) | 70 | MUX_CFG_24XX("M21_242X_GPIO11", 0x0c9, 3, 1, 1, 1) |
| 71 | MUX_CFG_24XX("P21_242X_GPIO12", 0x0ca, 3, 0, 0, 1) | 71 | MUX_CFG_24XX("P21_242X_GPIO12", 0x0ca, 3, 0, 0, 1) |
| 72 | MUX_CFG_24XX("AA10_242X_GPIO13", 0x0e5, 3, 0, 0, 1) | 72 | MUX_CFG_24XX("AA10_242X_GPIO13", 0x0e5, 3, 0, 0, 1) |
| 73 | MUX_CFG_24XX("AA6_242X_GPIO14", 0x0e6, 3, 0, 0, 1) | 73 | MUX_CFG_24XX("AA6_242X_GPIO14", 0x0e6, 3, 0, 0, 1) |
| 74 | MUX_CFG_24XX("AA4_242X_GPIO15", 0x0e7, 3, 0, 0, 1) | 74 | MUX_CFG_24XX("AA4_242X_GPIO15", 0x0e7, 3, 0, 0, 1) |
| 75 | MUX_CFG_24XX("Y11_242X_GPIO16", 0x0e8, 3, 0, 0, 1) | 75 | MUX_CFG_24XX("Y11_242X_GPIO16", 0x0e8, 3, 0, 0, 1) |
| 76 | MUX_CFG_24XX("AA12_242X_GPIO17", 0x0e9, 3, 0, 0, 1) | 76 | MUX_CFG_24XX("AA12_242X_GPIO17", 0x0e9, 3, 0, 0, 1) |
| 77 | MUX_CFG_24XX("AA8_242X_GPIO58", 0x0ea, 3, 0, 0, 1) | 77 | MUX_CFG_24XX("AA8_242X_GPIO58", 0x0ea, 3, 0, 0, 1) |
| 78 | MUX_CFG_24XX("Y20_24XX_GPIO60", 0x12c, 3, 0, 0, 1) | 78 | MUX_CFG_24XX("Y20_24XX_GPIO60", 0x12c, 3, 0, 0, 1) |
| 79 | MUX_CFG_24XX("W4__24XX_GPIO74", 0x0f2, 3, 0, 0, 1) | 79 | MUX_CFG_24XX("W4__24XX_GPIO74", 0x0f2, 3, 0, 0, 1) |
| 80 | MUX_CFG_24XX("M15_24XX_GPIO92", 0x10a, 3, 0, 0, 1) | 80 | MUX_CFG_24XX("M15_24XX_GPIO92", 0x10a, 3, 0, 0, 1) |
| 81 | MUX_CFG_24XX("J15_24XX_GPIO99", 0x113, 3, 1, 1, 1) | 81 | MUX_CFG_24XX("J15_24XX_GPIO99", 0x113, 3, 1, 1, 1) |
| 82 | MUX_CFG_24XX("V14_24XX_GPIO117", 0x128, 3, 1, 0, 1) | 82 | MUX_CFG_24XX("V14_24XX_GPIO117", 0x128, 3, 1, 0, 1) |
| 83 | MUX_CFG_24XX("P14_24XX_GPIO125", 0x140, 3, 1, 1, 1) | 83 | MUX_CFG_24XX("P14_24XX_GPIO125", 0x140, 3, 1, 1, 1) |
| 84 | 84 | ||
| @@ -95,17 +95,17 @@ MUX_CFG_24XX("T3_242X_GPIO55", 0xd9, 3, 0, 0, 1) | |||
| 95 | MUX_CFG_24XX("U2_242X_GPIO56", 0xda, 3, 0, 0, 1) | 95 | MUX_CFG_24XX("U2_242X_GPIO56", 0xda, 3, 0, 0, 1) |
| 96 | 96 | ||
| 97 | /* 24xx external DMA requests */ | 97 | /* 24xx external DMA requests */ |
| 98 | MUX_CFG_24XX("AA10_242X_DMAREQ0", 0x0e5, 2, 0, 0, 1) | 98 | MUX_CFG_24XX("AA10_242X_DMAREQ0", 0x0e5, 2, 0, 0, 1) |
| 99 | MUX_CFG_24XX("AA6_242X_DMAREQ1", 0x0e6, 2, 0, 0, 1) | 99 | MUX_CFG_24XX("AA6_242X_DMAREQ1", 0x0e6, 2, 0, 0, 1) |
| 100 | MUX_CFG_24XX("E4_242X_DMAREQ2", 0x074, 2, 0, 0, 1) | 100 | MUX_CFG_24XX("E4_242X_DMAREQ2", 0x074, 2, 0, 0, 1) |
| 101 | MUX_CFG_24XX("G4_242X_DMAREQ3", 0x073, 2, 0, 0, 1) | 101 | MUX_CFG_24XX("G4_242X_DMAREQ3", 0x073, 2, 0, 0, 1) |
| 102 | MUX_CFG_24XX("D3_242X_DMAREQ4", 0x072, 2, 0, 0, 1) | 102 | MUX_CFG_24XX("D3_242X_DMAREQ4", 0x072, 2, 0, 0, 1) |
| 103 | MUX_CFG_24XX("E3_242X_DMAREQ5", 0x071, 2, 0, 0, 1) | 103 | MUX_CFG_24XX("E3_242X_DMAREQ5", 0x071, 2, 0, 0, 1) |
| 104 | 104 | ||
| 105 | /* TSC IRQ */ | 105 | /* TSC IRQ */ |
| 106 | MUX_CFG_24XX("P20_24XX_TSC_IRQ", 0x108, 0, 0, 0, 1) | 106 | MUX_CFG_24XX("P20_24XX_TSC_IRQ", 0x108, 0, 0, 0, 1) |
| 107 | 107 | ||
| 108 | /* UART3 */ | 108 | /* UART3 */ |
| 109 | MUX_CFG_24XX("K15_24XX_UART3_TX", 0x118, 0, 0, 0, 1) | 109 | MUX_CFG_24XX("K15_24XX_UART3_TX", 0x118, 0, 0, 0, 1) |
| 110 | MUX_CFG_24XX("K14_24XX_UART3_RX", 0x119, 0, 0, 0, 1) | 110 | MUX_CFG_24XX("K14_24XX_UART3_RX", 0x119, 0, 0, 0, 1) |
| 111 | 111 | ||
diff --git a/arch/arm/mach-omap2/usb-tusb6010.c b/arch/arm/mach-omap2/usb-tusb6010.c new file mode 100644 index 000000000000..80bb42eb5082 --- /dev/null +++ b/arch/arm/mach-omap2/usb-tusb6010.c | |||
| @@ -0,0 +1,349 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/mach-omap2/usb-tusb6010.c | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Nokia Corporation | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #include <linux/types.h> | ||
| 12 | #include <linux/errno.h> | ||
| 13 | #include <linux/delay.h> | ||
| 14 | #include <linux/platform_device.h> | ||
| 15 | |||
| 16 | #include <linux/usb/musb.h> | ||
| 17 | |||
| 18 | #include <asm/arch/gpmc.h> | ||
| 19 | #include <asm/arch/gpio.h> | ||
| 20 | #include <asm/arch/mux.h> | ||
| 21 | |||
| 22 | |||
| 23 | static u8 async_cs, sync_cs; | ||
| 24 | static unsigned refclk_psec; | ||
| 25 | |||
| 26 | |||
| 27 | /* t2_ps, when quantized to fclk units, must happen no earlier than | ||
| 28 | * the clock after after t1_NS. | ||
| 29 | * | ||
| 30 | * Return a possibly updated value of t2_ps, converted to nsec. | ||
| 31 | */ | ||
| 32 | static unsigned | ||
| 33 | next_clk(unsigned t1_NS, unsigned t2_ps, unsigned fclk_ps) | ||
| 34 | { | ||
| 35 | unsigned t1_ps = t1_NS * 1000; | ||
| 36 | unsigned t1_f, t2_f; | ||
| 37 | |||
| 38 | if ((t1_ps + fclk_ps) < t2_ps) | ||
| 39 | return t2_ps / 1000; | ||
| 40 | |||
| 41 | t1_f = (t1_ps + fclk_ps - 1) / fclk_ps; | ||
| 42 | t2_f = (t2_ps + fclk_ps - 1) / fclk_ps; | ||
| 43 | |||
| 44 | if (t1_f >= t2_f) | ||
| 45 | t2_f = t1_f + 1; | ||
| 46 | |||
| 47 | return (t2_f * fclk_ps) / 1000; | ||
| 48 | } | ||
| 49 | |||
| 50 | /* NOTE: timings are from tusb 6010 datasheet Rev 1.8, 12-Sept 2006 */ | ||
| 51 | |||
| 52 | static int tusb_set_async_mode(unsigned sysclk_ps, unsigned fclk_ps) | ||
| 53 | { | ||
| 54 | struct gpmc_timings t; | ||
| 55 | unsigned t_acsnh_advnh = sysclk_ps + 3000; | ||
| 56 | unsigned tmp; | ||
| 57 | |||
| 58 | memset(&t, 0, sizeof(t)); | ||
| 59 | |||
| 60 | /* CS_ON = t_acsnh_acsnl */ | ||
| 61 | t.cs_on = 8; | ||
| 62 | /* ADV_ON = t_acsnh_advnh - t_advn */ | ||
| 63 | t.adv_on = next_clk(t.cs_on, t_acsnh_advnh - 7000, fclk_ps); | ||
| 64 | |||
| 65 | /* | ||
| 66 | * READ ... from omap2420 TRM fig 12-13 | ||
| 67 | */ | ||
| 68 | |||
| 69 | /* ADV_RD_OFF = t_acsnh_advnh */ | ||
| 70 | t.adv_rd_off = next_clk(t.adv_on, t_acsnh_advnh, fclk_ps); | ||
| 71 | |||
| 72 | /* OE_ON = t_acsnh_advnh + t_advn_oen (then wait for nRDY) */ | ||
| 73 | t.oe_on = next_clk(t.adv_on, t_acsnh_advnh + 1000, fclk_ps); | ||
| 74 | |||
| 75 | /* ACCESS = counters continue only after nRDY */ | ||
| 76 | tmp = t.oe_on * 1000 + 300; | ||
| 77 | t.access = next_clk(t.oe_on, tmp, fclk_ps); | ||
| 78 | |||
| 79 | /* OE_OFF = after data gets sampled */ | ||
| 80 | tmp = t.access * 1000; | ||
| 81 | t.oe_off = next_clk(t.access, tmp, fclk_ps); | ||
| 82 | |||
| 83 | t.cs_rd_off = t.oe_off; | ||
| 84 | |||
| 85 | tmp = t.cs_rd_off * 1000 + 7000 /* t_acsn_rdy_z */; | ||
| 86 | t.rd_cycle = next_clk(t.cs_rd_off, tmp, fclk_ps); | ||
| 87 | |||
| 88 | /* | ||
| 89 | * WRITE ... from omap2420 TRM fig 12-15 | ||
| 90 | */ | ||
| 91 | |||
| 92 | /* ADV_WR_OFF = t_acsnh_advnh */ | ||
| 93 | t.adv_wr_off = t.adv_rd_off; | ||
| 94 | |||
| 95 | /* WE_ON = t_acsnh_advnh + t_advn_wen (then wait for nRDY) */ | ||
| 96 | t.we_on = next_clk(t.adv_wr_off, t_acsnh_advnh + 1000, fclk_ps); | ||
| 97 | |||
| 98 | /* WE_OFF = after data gets sampled */ | ||
| 99 | tmp = t.we_on * 1000 + 300; | ||
| 100 | t.we_off = next_clk(t.we_on, tmp, fclk_ps); | ||
| 101 | |||
| 102 | t.cs_wr_off = t.we_off; | ||
| 103 | |||
| 104 | tmp = t.cs_wr_off * 1000 + 7000 /* t_acsn_rdy_z */; | ||
| 105 | t.wr_cycle = next_clk(t.cs_wr_off, tmp, fclk_ps); | ||
| 106 | |||
| 107 | return gpmc_cs_set_timings(async_cs, &t); | ||
| 108 | } | ||
| 109 | |||
| 110 | static int tusb_set_sync_mode(unsigned sysclk_ps, unsigned fclk_ps) | ||
| 111 | { | ||
| 112 | struct gpmc_timings t; | ||
| 113 | unsigned t_scsnh_advnh = sysclk_ps + 3000; | ||
| 114 | unsigned tmp; | ||
| 115 | |||
| 116 | memset(&t, 0, sizeof(t)); | ||
| 117 | t.cs_on = 8; | ||
| 118 | |||
| 119 | /* ADV_ON = t_acsnh_advnh - t_advn */ | ||
| 120 | t.adv_on = next_clk(t.cs_on, t_scsnh_advnh - 7000, fclk_ps); | ||
| 121 | |||
| 122 | /* GPMC_CLK rate = fclk rate / div */ | ||
| 123 | t.sync_clk = 12 /* 11.1 nsec */; | ||
| 124 | tmp = (t.sync_clk * 1000 + fclk_ps - 1) / fclk_ps; | ||
| 125 | if (tmp > 4) | ||
| 126 | return -ERANGE; | ||
| 127 | if (tmp <= 0) | ||
| 128 | tmp = 1; | ||
| 129 | t.page_burst_access = (fclk_ps * tmp) / 1000; | ||
| 130 | |||
| 131 | /* | ||
| 132 | * READ ... based on omap2420 TRM fig 12-19, 12-20 | ||
| 133 | */ | ||
| 134 | |||
| 135 | /* ADV_RD_OFF = t_scsnh_advnh */ | ||
| 136 | t.adv_rd_off = next_clk(t.adv_on, t_scsnh_advnh, fclk_ps); | ||
| 137 | |||
| 138 | /* OE_ON = t_scsnh_advnh + t_advn_oen * fclk_ps (then wait for nRDY) */ | ||
| 139 | tmp = (t.adv_rd_off * 1000) + (3 * fclk_ps); | ||
| 140 | t.oe_on = next_clk(t.adv_on, tmp, fclk_ps); | ||
| 141 | |||
| 142 | /* ACCESS = number of clock cycles after t_adv_eon */ | ||
| 143 | tmp = (t.oe_on * 1000) + (5 * fclk_ps); | ||
| 144 | t.access = next_clk(t.oe_on, tmp, fclk_ps); | ||
| 145 | |||
| 146 | /* OE_OFF = after data gets sampled */ | ||
| 147 | tmp = (t.access * 1000) + (1 * fclk_ps); | ||
| 148 | t.oe_off = next_clk(t.access, tmp, fclk_ps); | ||
| 149 | |||
| 150 | t.cs_rd_off = t.oe_off; | ||
| 151 | |||
| 152 | tmp = t.cs_rd_off * 1000 + 7000 /* t_scsn_rdy_z */; | ||
| 153 | t.rd_cycle = next_clk(t.cs_rd_off, tmp, fclk_ps); | ||
| 154 | |||
| 155 | /* | ||
| 156 | * WRITE ... based on omap2420 TRM fig 12-21 | ||
| 157 | */ | ||
| 158 | |||
| 159 | /* ADV_WR_OFF = t_scsnh_advnh */ | ||
| 160 | t.adv_wr_off = t.adv_rd_off; | ||
| 161 | |||
| 162 | /* WE_ON = t_scsnh_advnh + t_advn_wen * fclk_ps (then wait for nRDY) */ | ||
| 163 | tmp = (t.adv_wr_off * 1000) + (3 * fclk_ps); | ||
| 164 | t.we_on = next_clk(t.adv_wr_off, tmp, fclk_ps); | ||
| 165 | |||
| 166 | /* WE_OFF = number of clock cycles after t_adv_wen */ | ||
| 167 | tmp = (t.we_on * 1000) + (6 * fclk_ps); | ||
| 168 | t.we_off = next_clk(t.we_on, tmp, fclk_ps); | ||
| 169 | |||
| 170 | t.cs_wr_off = t.we_off; | ||
| 171 | |||
| 172 | tmp = t.cs_wr_off * 1000 + 7000 /* t_scsn_rdy_z */; | ||
| 173 | t.wr_cycle = next_clk(t.cs_wr_off, tmp, fclk_ps); | ||
| 174 | |||
| 175 | return gpmc_cs_set_timings(sync_cs, &t); | ||
| 176 | } | ||
| 177 | |||
| 178 | extern unsigned long gpmc_get_fclk_period(void); | ||
| 179 | |||
| 180 | /* tusb driver calls this when it changes the chip's clocking */ | ||
| 181 | int tusb6010_platform_retime(unsigned is_refclk) | ||
| 182 | { | ||
| 183 | static const char error[] = | ||
| 184 | KERN_ERR "tusb6010 %s retime error %d\n"; | ||
| 185 | |||
| 186 | unsigned fclk_ps = gpmc_get_fclk_period(); | ||
| 187 | unsigned sysclk_ps; | ||
| 188 | int status; | ||
| 189 | |||
| 190 | if (!refclk_psec) | ||
| 191 | return -ENODEV; | ||
| 192 | |||
| 193 | sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60; | ||
| 194 | |||
| 195 | status = tusb_set_async_mode(sysclk_ps, fclk_ps); | ||
| 196 | if (status < 0) { | ||
| 197 | printk(error, "async", status); | ||
| 198 | goto done; | ||
| 199 | } | ||
| 200 | status = tusb_set_sync_mode(sysclk_ps, fclk_ps); | ||
| 201 | if (status < 0) | ||
| 202 | printk(error, "sync", status); | ||
| 203 | done: | ||
| 204 | return status; | ||
| 205 | } | ||
| 206 | EXPORT_SYMBOL_GPL(tusb6010_platform_retime); | ||
| 207 | |||
| 208 | static struct resource tusb_resources[] = { | ||
| 209 | /* Order is significant! The start/end fields | ||
| 210 | * are updated during setup.. | ||
| 211 | */ | ||
| 212 | { /* Asynchronous access */ | ||
| 213 | .flags = IORESOURCE_MEM, | ||
| 214 | }, | ||
| 215 | { /* Synchronous access */ | ||
| 216 | .flags = IORESOURCE_MEM, | ||
| 217 | }, | ||
| 218 | { /* IRQ */ | ||
| 219 | .flags = IORESOURCE_IRQ, | ||
| 220 | }, | ||
| 221 | }; | ||
| 222 | |||
| 223 | static u64 tusb_dmamask = ~(u32)0; | ||
| 224 | |||
| 225 | static struct platform_device tusb_device = { | ||
| 226 | .name = "musb_hdrc", | ||
| 227 | .id = -1, | ||
| 228 | .dev = { | ||
| 229 | .dma_mask = &tusb_dmamask, | ||
| 230 | .coherent_dma_mask = 0xffffffff, | ||
| 231 | }, | ||
| 232 | .num_resources = ARRAY_SIZE(tusb_resources), | ||
| 233 | .resource = tusb_resources, | ||
| 234 | }; | ||
| 235 | |||
| 236 | |||
| 237 | /* this may be called only from board-*.c setup code */ | ||
| 238 | int __init | ||
| 239 | tusb6010_setup_interface(struct musb_hdrc_platform_data *data, | ||
| 240 | unsigned ps_refclk, unsigned waitpin, | ||
| 241 | unsigned async, unsigned sync, | ||
| 242 | unsigned irq, unsigned dmachan) | ||
| 243 | { | ||
| 244 | int status; | ||
| 245 | static char error[] __initdata = | ||
| 246 | KERN_ERR "tusb6010 init error %d, %d\n"; | ||
| 247 | |||
| 248 | /* ASYNC region, primarily for PIO */ | ||
| 249 | status = gpmc_cs_request(async, SZ_16M, (unsigned long *) | ||
| 250 | &tusb_resources[0].start); | ||
| 251 | if (status < 0) { | ||
| 252 | printk(error, 1, status); | ||
| 253 | return status; | ||
| 254 | } | ||
| 255 | tusb_resources[0].end = tusb_resources[0].start + 0x9ff; | ||
| 256 | async_cs = async; | ||
| 257 | gpmc_cs_write_reg(async, GPMC_CS_CONFIG1, | ||
| 258 | GPMC_CONFIG1_PAGE_LEN(2) | ||
| 259 | | GPMC_CONFIG1_WAIT_READ_MON | ||
| 260 | | GPMC_CONFIG1_WAIT_WRITE_MON | ||
| 261 | | GPMC_CONFIG1_WAIT_PIN_SEL(waitpin) | ||
| 262 | | GPMC_CONFIG1_READTYPE_ASYNC | ||
| 263 | | GPMC_CONFIG1_WRITETYPE_ASYNC | ||
| 264 | | GPMC_CONFIG1_DEVICESIZE_16 | ||
| 265 | | GPMC_CONFIG1_DEVICETYPE_NOR | ||
| 266 | | GPMC_CONFIG1_MUXADDDATA); | ||
| 267 | |||
| 268 | |||
| 269 | /* SYNC region, primarily for DMA */ | ||
| 270 | status = gpmc_cs_request(sync, SZ_16M, (unsigned long *) | ||
| 271 | &tusb_resources[1].start); | ||
| 272 | if (status < 0) { | ||
| 273 | printk(error, 2, status); | ||
| 274 | return status; | ||
| 275 | } | ||
| 276 | tusb_resources[1].end = tusb_resources[1].start + 0x9ff; | ||
| 277 | sync_cs = sync; | ||
| 278 | gpmc_cs_write_reg(sync, GPMC_CS_CONFIG1, | ||
| 279 | GPMC_CONFIG1_READMULTIPLE_SUPP | ||
| 280 | | GPMC_CONFIG1_READTYPE_SYNC | ||
| 281 | | GPMC_CONFIG1_WRITEMULTIPLE_SUPP | ||
| 282 | | GPMC_CONFIG1_WRITETYPE_SYNC | ||
| 283 | | GPMC_CONFIG1_CLKACTIVATIONTIME(1) | ||
| 284 | | GPMC_CONFIG1_PAGE_LEN(2) | ||
| 285 | | GPMC_CONFIG1_WAIT_READ_MON | ||
| 286 | | GPMC_CONFIG1_WAIT_WRITE_MON | ||
| 287 | | GPMC_CONFIG1_WAIT_PIN_SEL(waitpin) | ||
| 288 | | GPMC_CONFIG1_DEVICESIZE_16 | ||
| 289 | | GPMC_CONFIG1_DEVICETYPE_NOR | ||
| 290 | | GPMC_CONFIG1_MUXADDDATA | ||
| 291 | /* fclk divider gets set later */ | ||
| 292 | ); | ||
| 293 | |||
| 294 | /* IRQ */ | ||
| 295 | status = omap_request_gpio(irq); | ||
| 296 | if (status < 0) { | ||
| 297 | printk(error, 3, status); | ||
| 298 | return status; | ||
| 299 | } | ||
| 300 | omap_set_gpio_direction(irq, 1); | ||
| 301 | tusb_resources[2].start = irq + IH_GPIO_BASE; | ||
| 302 | |||
| 303 | /* set up memory timings ... can speed them up later */ | ||
| 304 | if (!ps_refclk) { | ||
| 305 | printk(error, 4, status); | ||
| 306 | return -ENODEV; | ||
| 307 | } | ||
| 308 | refclk_psec = ps_refclk; | ||
| 309 | status = tusb6010_platform_retime(1); | ||
| 310 | if (status < 0) { | ||
| 311 | printk(error, 5, status); | ||
| 312 | return status; | ||
| 313 | } | ||
| 314 | |||
| 315 | /* finish device setup ... */ | ||
| 316 | if (!data) { | ||
| 317 | printk(error, 6, status); | ||
| 318 | return -ENODEV; | ||
| 319 | } | ||
| 320 | data->multipoint = 1; | ||
| 321 | tusb_device.dev.platform_data = data; | ||
| 322 | |||
| 323 | /* REVISIT let the driver know what DMA channels work */ | ||
| 324 | if (!dmachan) | ||
| 325 | tusb_device.dev.dma_mask = NULL; | ||
| 326 | else { | ||
| 327 | /* assume OMAP 2420 ES2.0 and later */ | ||
| 328 | if (dmachan & (1 << 0)) | ||
| 329 | omap_cfg_reg(AA10_242X_DMAREQ0); | ||
| 330 | if (dmachan & (1 << 1)) | ||
| 331 | omap_cfg_reg(AA6_242X_DMAREQ1); | ||
| 332 | if (dmachan & (1 << 2)) | ||
| 333 | omap_cfg_reg(E4_242X_DMAREQ2); | ||
| 334 | if (dmachan & (1 << 3)) | ||
| 335 | omap_cfg_reg(G4_242X_DMAREQ3); | ||
| 336 | if (dmachan & (1 << 4)) | ||
| 337 | omap_cfg_reg(D3_242X_DMAREQ4); | ||
| 338 | if (dmachan & (1 << 5)) | ||
| 339 | omap_cfg_reg(E3_242X_DMAREQ5); | ||
| 340 | } | ||
| 341 | |||
| 342 | /* so far so good ... register the device */ | ||
| 343 | status = platform_device_register(&tusb_device); | ||
| 344 | if (status < 0) { | ||
| 345 | printk(error, 7, status); | ||
| 346 | return status; | ||
| 347 | } | ||
| 348 | return 0; | ||
| 349 | } | ||
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index cfc69f3842fd..c1f7e5a819a3 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
| @@ -20,10 +20,15 @@ endchoice | |||
| 20 | 20 | ||
| 21 | comment "OMAP Feature Selections" | 21 | comment "OMAP Feature Selections" |
| 22 | 22 | ||
| 23 | config OMAP_DEBUG_LEDS | 23 | config OMAP_DEBUG_DEVICES |
| 24 | bool | 24 | bool |
| 25 | help | 25 | help |
| 26 | For debug card leds on TI reference boards. | 26 | For debug cards on TI reference boards. |
| 27 | |||
| 28 | config OMAP_DEBUG_LEDS | ||
| 29 | bool | ||
| 30 | depends on OMAP_DEBUG_DEVICES | ||
| 31 | default y if LEDS || LEDS_OMAP_DEBUG | ||
| 27 | 32 | ||
| 28 | config OMAP_RESET_CLOCKS | 33 | config OMAP_RESET_CLOCKS |
| 29 | bool "Reset unused clocks during boot" | 34 | bool "Reset unused clocks during boot" |
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 41a3c1cf3bd4..2549129aabc6 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
| @@ -17,4 +17,5 @@ obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o | |||
| 17 | 17 | ||
| 18 | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o | 18 | obj-$(CONFIG_CPU_FREQ) += cpu-omap.o |
| 19 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o | 19 | obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o |
| 20 | obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o | ||
| 20 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o | 21 | obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o |
diff --git a/arch/arm/plat-omap/debug-devices.c b/arch/arm/plat-omap/debug-devices.c new file mode 100644 index 000000000000..83a5f8b91857 --- /dev/null +++ b/arch/arm/plat-omap/debug-devices.c | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | /* | ||
| 2 | * linux/arch/arm/plat-omap/debug-devices.c | ||
| 3 | * | ||
| 4 | * Copyright (C) 2005 Nokia Corporation | ||
| 5 | * Modified from mach-omap2/board-h4.c | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #include <linux/kernel.h> | ||
| 13 | #include <linux/init.h> | ||
| 14 | #include <linux/platform_device.h> | ||
| 15 | |||
| 16 | #include <asm/hardware.h> | ||
| 17 | #include <asm/io.h> | ||
| 18 | |||
| 19 | #include <asm/arch/board.h> | ||
| 20 | #include <asm/arch/gpio.h> | ||
| 21 | |||
| 22 | |||
| 23 | /* Many OMAP development platforms reuse the same "debug board"; these | ||
| 24 | * platforms include H2, H3, H4, and Perseus2. | ||
| 25 | */ | ||
| 26 | |||
| 27 | static struct resource smc91x_resources[] = { | ||
| 28 | [0] = { | ||
| 29 | .flags = IORESOURCE_MEM, | ||
| 30 | }, | ||
| 31 | [1] = { | ||
| 32 | .flags = IORESOURCE_IRQ, | ||
| 33 | }, | ||
| 34 | }; | ||
| 35 | |||
| 36 | static struct platform_device smc91x_device = { | ||
| 37 | .name = "smc91x", | ||
| 38 | .id = -1, | ||
| 39 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
| 40 | .resource = smc91x_resources, | ||
| 41 | }; | ||
| 42 | |||
| 43 | static struct resource led_resources[] = { | ||
| 44 | [0] = { | ||
| 45 | .flags = IORESOURCE_MEM, | ||
| 46 | }, | ||
| 47 | }; | ||
| 48 | |||
| 49 | static struct platform_device led_device = { | ||
| 50 | .name = "omap_dbg_led", | ||
| 51 | .id = -1, | ||
| 52 | .num_resources = ARRAY_SIZE(led_resources), | ||
| 53 | .resource = led_resources, | ||
| 54 | }; | ||
| 55 | |||
| 56 | static struct platform_device *debug_devices[] __initdata = { | ||
| 57 | &smc91x_device, | ||
| 58 | &led_device, | ||
| 59 | /* ps2 kbd + mouse ports */ | ||
| 60 | /* 4 extra uarts */ | ||
| 61 | /* 6 input dip switches */ | ||
| 62 | /* 8 output pins */ | ||
| 63 | }; | ||
| 64 | |||
| 65 | int __init debug_card_init(u32 addr, unsigned gpio) | ||
| 66 | { | ||
| 67 | int status; | ||
| 68 | |||
| 69 | smc91x_resources[0].start = addr + 0x300; | ||
| 70 | smc91x_resources[0].end = addr + 0x30f; | ||
| 71 | |||
| 72 | smc91x_resources[1].start = OMAP_GPIO_IRQ(gpio); | ||
| 73 | smc91x_resources[1].end = OMAP_GPIO_IRQ(gpio); | ||
| 74 | |||
| 75 | status = omap_request_gpio(gpio); | ||
| 76 | if (status < 0) { | ||
| 77 | printk(KERN_ERR "GPIO%d unavailable for smc91x IRQ\n", gpio); | ||
| 78 | return status; | ||
| 79 | } | ||
| 80 | omap_set_gpio_direction(gpio, 1); | ||
| 81 | |||
| 82 | led_resources[0].start = addr; | ||
| 83 | led_resources[0].end = addr + SZ_4K - 1; | ||
| 84 | |||
| 85 | return platform_add_devices(debug_devices, ARRAY_SIZE(debug_devices)); | ||
| 86 | } | ||
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 88d5b6d9f950..05a38498cbe0 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
| @@ -1347,11 +1347,6 @@ void omap_stop_lcd_dma(void) | |||
| 1347 | omap_writew(w, OMAP1610_DMA_LCD_CTRL); | 1347 | omap_writew(w, OMAP1610_DMA_LCD_CTRL); |
| 1348 | } | 1348 | } |
| 1349 | 1349 | ||
| 1350 | int omap_lcd_dma_ext_running(void) | ||
| 1351 | { | ||
| 1352 | return lcd_dma.ext_ctrl && lcd_dma.active; | ||
| 1353 | } | ||
| 1354 | |||
| 1355 | /*----------------------------------------------------------------------------*/ | 1350 | /*----------------------------------------------------------------------------*/ |
| 1356 | 1351 | ||
| 1357 | static int __init omap_init_dma(void) | 1352 | static int __init omap_init_dma(void) |
| @@ -1493,7 +1488,6 @@ EXPORT_SYMBOL(omap_free_lcd_dma); | |||
| 1493 | EXPORT_SYMBOL(omap_enable_lcd_dma); | 1488 | EXPORT_SYMBOL(omap_enable_lcd_dma); |
| 1494 | EXPORT_SYMBOL(omap_setup_lcd_dma); | 1489 | EXPORT_SYMBOL(omap_setup_lcd_dma); |
| 1495 | EXPORT_SYMBOL(omap_stop_lcd_dma); | 1490 | EXPORT_SYMBOL(omap_stop_lcd_dma); |
| 1496 | EXPORT_SYMBOL(omap_lcd_dma_ext_running); | ||
| 1497 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); | 1491 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); |
| 1498 | EXPORT_SYMBOL(omap_set_lcd_dma_single_transfer); | 1492 | EXPORT_SYMBOL(omap_set_lcd_dma_single_transfer); |
| 1499 | EXPORT_SYMBOL(omap_set_lcd_dma_ext_controller); | 1493 | EXPORT_SYMBOL(omap_set_lcd_dma_ext_controller); |
diff --git a/include/asm-arm/arch-omap/blizzard.h b/include/asm-arm/arch-omap/blizzard.h new file mode 100644 index 000000000000..8d160f171372 --- /dev/null +++ b/include/asm-arm/arch-omap/blizzard.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #ifndef _BLIZZARD_H | ||
| 2 | #define _BLIZZARD_H | ||
| 3 | |||
| 4 | struct blizzard_platform_data { | ||
| 5 | void (*power_up)(struct device *dev); | ||
| 6 | void (*power_down)(struct device *dev); | ||
| 7 | unsigned long (*get_clock_rate)(struct device *dev); | ||
| 8 | |||
| 9 | unsigned te_connected : 1; | ||
| 10 | }; | ||
| 11 | |||
| 12 | #endif | ||
diff --git a/include/asm-arm/arch-omap/board-2430sdp.h b/include/asm-arm/arch-omap/board-2430sdp.h new file mode 100644 index 000000000000..e9c65ce3cb12 --- /dev/null +++ b/include/asm-arm/arch-omap/board-2430sdp.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-arm/arch-omap/board-2430sdp.h | ||
| 3 | * | ||
| 4 | * Hardware definitions for TI OMAP2430 SDP board. | ||
| 5 | * | ||
| 6 | * Based on board-h4.h by Dirk Behme <dirk.behme@de.bosch.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms of the GNU General Public License as published by the | ||
| 10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 11 | * option) any later version. | ||
| 12 | * | ||
| 13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
| 14 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 15 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
| 16 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 19 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
| 20 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 23 | * | ||
| 24 | * You should have received a copy of the GNU General Public License along | ||
| 25 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 26 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 27 | */ | ||
| 28 | |||
| 29 | #ifndef __ASM_ARCH_OMAP_2430SDP_H | ||
| 30 | #define __ASM_ARCH_OMAP_2430SDP_H | ||
| 31 | |||
| 32 | /* Placeholder for 2430SDP specific defines */ | ||
| 33 | #define OMAP24XX_ETHR_START 0x08000300 | ||
| 34 | #define OMAP24XX_ETHR_GPIO_IRQ 149 | ||
| 35 | #define SDP2430_CS0_BASE 0x04000000 | ||
| 36 | |||
| 37 | #define TWL4030_IRQNUM INT_24XX_SYS_NIRQ | ||
| 38 | |||
| 39 | /* TWL4030 Primary Interrupt Handler (PIH) interrupts */ | ||
| 40 | #define IH_TWL4030_BASE IH_BOARD_BASE | ||
| 41 | #define IH_TWL4030_END (IH_TWL4030_BASE+8) | ||
| 42 | #define NR_IRQS (IH_TWL4030_END) | ||
| 43 | |||
| 44 | #endif /* __ASM_ARCH_OMAP_2430SDP_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmte.h b/include/asm-arm/arch-omap/board-palmte.h new file mode 100644 index 000000000000..cd22035a7160 --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmte.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-arm/arch-omap/board-palmte.h | ||
| 3 | * | ||
| 4 | * Hardware definitions for the Palm Tungsten E device. | ||
| 5 | * | ||
| 6 | * Maintainters : http://palmtelinux.sf.net | ||
| 7 | * palmtelinux-developpers@lists.sf.net | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __OMAP_BOARD_PALMTE_H | ||
| 15 | #define __OMAP_BOARD_PALMTE_H | ||
| 16 | |||
| 17 | #include <asm/arch/gpio.h> | ||
| 18 | |||
| 19 | #define PALMTE_USBDETECT_GPIO 0 | ||
| 20 | #define PALMTE_USB_OR_DC_GPIO 1 | ||
| 21 | #define PALMTE_TSC_GPIO 4 | ||
| 22 | #define PALMTE_PINTDAV_GPIO 6 | ||
| 23 | #define PALMTE_MMC_WP_GPIO 8 | ||
| 24 | #define PALMTE_MMC_POWER_GPIO 9 | ||
| 25 | #define PALMTE_HDQ_GPIO 11 | ||
| 26 | #define PALMTE_HEADPHONES_GPIO 14 | ||
| 27 | #define PALMTE_SPEAKER_GPIO 15 | ||
| 28 | #define PALMTE_DC_GPIO OMAP_MPUIO(2) | ||
| 29 | #define PALMTE_MMC_SWITCH_GPIO OMAP_MPUIO(4) | ||
| 30 | #define PALMTE_MMC1_GPIO OMAP_MPUIO(6) | ||
| 31 | #define PALMTE_MMC2_GPIO OMAP_MPUIO(7) | ||
| 32 | #define PALMTE_MMC3_GPIO OMAP_MPUIO(11) | ||
| 33 | |||
| 34 | #endif /* __OMAP_BOARD_PALMTE_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmtt.h b/include/asm-arm/arch-omap/board-palmtt.h new file mode 100644 index 000000000000..d9590b0ec90e --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmtt.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-arm/arch-omap/board-palmte.h | ||
| 3 | * | ||
| 4 | * Hardware definitions for the Palm Tungsten|T device. | ||
| 5 | * | ||
| 6 | * Maintainters : Marek Vasut <marek.vasut@gmail.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __OMAP_BOARD_PALMTT_H | ||
| 14 | #define __OMAP_BOARD_PALMTT_H | ||
| 15 | |||
| 16 | #define PALMTT_USBDETECT_GPIO 0 | ||
| 17 | #define PALMTT_CABLE_GPIO 1 | ||
| 18 | #define PALMTT_LED_GPIO 3 | ||
| 19 | #define PALMTT_PENIRQ_GPIO 6 | ||
| 20 | #define PALMTT_MMC_WP_GPIO 8 | ||
| 21 | #define PALMTT_HDQ_GPIO 11 | ||
| 22 | |||
| 23 | #endif /* __OMAP_BOARD_PALMTT_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmz71.h b/include/asm-arm/arch-omap/board-palmz71.h new file mode 100644 index 000000000000..1252a859787d --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmz71.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-arm/arch-omap/board-palmz71.h | ||
| 3 | * | ||
| 4 | * Hardware definitions for the Palm Zire71 device. | ||
| 5 | * | ||
| 6 | * Maintainters : Marek Vasut <marek.vasut@gmail.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __OMAP_BOARD_PALMZ71_H | ||
| 14 | #define __OMAP_BOARD_PALMZ71_H | ||
| 15 | |||
| 16 | #define PALMZ71_USBDETECT_GPIO 0 | ||
| 17 | #define PALMZ71_PENIRQ_GPIO 6 | ||
| 18 | #define PALMZ71_MMC_WP_GPIO 8 | ||
| 19 | #define PALMZ71_HDQ_GPIO 11 | ||
| 20 | |||
| 21 | #define PALMZ71_HOTSYNC_GPIO OMAP_MPUIO(1) | ||
| 22 | #define PALMZ71_CABLE_GPIO OMAP_MPUIO(2) | ||
| 23 | #define PALMZ71_SLIDER_GPIO OMAP_MPUIO(3) | ||
| 24 | #define PALMZ71_MMC_IN_GPIO OMAP_MPUIO(4) | ||
| 25 | |||
| 26 | #endif /* __OMAP_BOARD_PALMZ71_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-sx1.h b/include/asm-arm/arch-omap/board-sx1.h new file mode 100644 index 000000000000..2bb8dd6e2d14 --- /dev/null +++ b/include/asm-arm/arch-omap/board-sx1.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | * Siemens SX1 board definitions | ||
| 3 | * | ||
| 4 | * Copyright: Vovan888 at gmail com | ||
| 5 | * | ||
| 6 | * This package is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
| 11 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
| 12 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef __ASM_ARCH_SX1_I2C_CHIPS_H | ||
| 16 | #define __ASM_ARCH_SX1_I2C_CHIPS_H | ||
| 17 | |||
| 18 | #define SOFIA_MAX_LIGHT_VAL 0x2B | ||
| 19 | |||
| 20 | #define SOFIA_I2C_ADDR 0x32 | ||
| 21 | /* Sofia reg 3 bits masks */ | ||
| 22 | #define SOFIA_POWER1_REG 0x03 | ||
| 23 | |||
| 24 | #define SOFIA_USB_POWER 0x01 | ||
| 25 | #define SOFIA_MMC_POWER 0x04 | ||
| 26 | #define SOFIA_BLUETOOTH_POWER 0x08 | ||
| 27 | #define SOFIA_MMILIGHT_POWER 0x20 | ||
| 28 | |||
| 29 | #define SOFIA_POWER2_REG 0x04 | ||
| 30 | #define SOFIA_BACKLIGHT_REG 0x06 | ||
| 31 | #define SOFIA_KEYLIGHT_REG 0x07 | ||
| 32 | #define SOFIA_DIMMING_REG 0x09 | ||
| 33 | |||
| 34 | |||
| 35 | /* Function Prototypes for SX1 devices control on I2C bus */ | ||
| 36 | |||
| 37 | int sx1_setbacklight(u8 backlight); | ||
| 38 | int sx1_getbacklight(u8 *backlight); | ||
| 39 | int sx1_setkeylight(u8 keylight); | ||
| 40 | int sx1_getkeylight(u8 *keylight); | ||
| 41 | |||
| 42 | int sx1_setmmipower(u8 onoff); | ||
| 43 | int sx1_setusbpower(u8 onoff); | ||
| 44 | int sx1_setmmcpower(u8 onoff); | ||
| 45 | |||
| 46 | #endif /* __ASM_ARCH_SX1_I2C_CHIPS_H */ | ||
diff --git a/include/asm-arm/arch-omap/board.h b/include/asm-arm/arch-omap/board.h index 031672c56377..db44c5d1f1a0 100644 --- a/include/asm-arm/arch-omap/board.h +++ b/include/asm-arm/arch-omap/board.h | |||
| @@ -179,4 +179,8 @@ extern const void *omap_get_var_config(u16 tag, size_t *len); | |||
| 179 | extern struct omap_board_config_kernel *omap_board_config; | 179 | extern struct omap_board_config_kernel *omap_board_config; |
| 180 | extern int omap_board_config_size; | 180 | extern int omap_board_config_size; |
| 181 | 181 | ||
| 182 | |||
| 183 | /* for TI reference platforms sharing the same debug card */ | ||
| 184 | extern int debug_card_init(u32 addr, unsigned gpio); | ||
| 185 | |||
| 182 | #endif | 186 | #endif |
diff --git a/include/asm-arm/arch-omap/dma.h b/include/asm-arm/arch-omap/dma.h index f7774192a41e..f33b467fddb7 100644 --- a/include/asm-arm/arch-omap/dma.h +++ b/include/asm-arm/arch-omap/dma.h | |||
| @@ -417,7 +417,6 @@ extern void omap_free_lcd_dma(void); | |||
| 417 | extern void omap_setup_lcd_dma(void); | 417 | extern void omap_setup_lcd_dma(void); |
| 418 | extern void omap_enable_lcd_dma(void); | 418 | extern void omap_enable_lcd_dma(void); |
| 419 | extern void omap_stop_lcd_dma(void); | 419 | extern void omap_stop_lcd_dma(void); |
| 420 | extern int omap_lcd_dma_ext_running(void); | ||
| 421 | extern void omap_set_lcd_dma_ext_controller(int external); | 420 | extern void omap_set_lcd_dma_ext_controller(int external); |
| 422 | extern void omap_set_lcd_dma_single_transfer(int single); | 421 | extern void omap_set_lcd_dma_single_transfer(int single); |
| 423 | extern void omap_set_lcd_dma_b1(unsigned long addr, u16 fb_xres, u16 fb_yres, | 422 | extern void omap_set_lcd_dma_b1(unsigned long addr, u16 fb_xres, u16 fb_yres, |
diff --git a/include/asm-arm/arch-omap/eac.h b/include/asm-arm/arch-omap/eac.h new file mode 100644 index 000000000000..6662cb02bafc --- /dev/null +++ b/include/asm-arm/arch-omap/eac.h | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-arm/arch-omap2/eac.h | ||
| 3 | * | ||
| 4 | * Defines for Enhanced Audio Controller | ||
| 5 | * | ||
| 6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | ||
| 7 | * | ||
| 8 | * Copyright (C) 2006 Nokia Corporation | ||
| 9 | * Copyright (C) 2004 Texas Instruments, Inc. | ||
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or | ||
| 12 | * modify it under the terms of the GNU General Public License | ||
| 13 | * version 2 as published by the Free Software Foundation. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 23 | * 02110-1301 USA | ||
| 24 | * | ||
| 25 | */ | ||
| 26 | |||
| 27 | #ifndef __ASM_ARM_ARCH_OMAP2_EAC_H | ||
| 28 | #define __ASM_ARM_ARCH_OMAP2_EAC_H | ||
| 29 | |||
| 30 | #include <asm/arch/io.h> | ||
| 31 | #include <asm/arch/hardware.h> | ||
| 32 | #include <asm/irq.h> | ||
| 33 | |||
| 34 | #include <sound/driver.h> | ||
| 35 | #include <sound/core.h> | ||
| 36 | |||
| 37 | /* master codec clock source */ | ||
| 38 | #define EAC_MCLK_EXT_MASK 0x100 | ||
| 39 | enum eac_mclk_src { | ||
| 40 | EAC_MCLK_INT_11290000, /* internal 96 MHz / 8.5 = 11.29 Mhz */ | ||
| 41 | EAC_MCLK_EXT_11289600 = EAC_MCLK_EXT_MASK, | ||
| 42 | EAC_MCLK_EXT_12288000, | ||
| 43 | EAC_MCLK_EXT_2x11289600, | ||
| 44 | EAC_MCLK_EXT_2x12288000, | ||
| 45 | }; | ||
| 46 | |||
| 47 | /* codec port interface mode */ | ||
| 48 | enum eac_codec_mode { | ||
| 49 | EAC_CODEC_PCM, | ||
| 50 | EAC_CODEC_AC97, | ||
| 51 | EAC_CODEC_I2S_MASTER, /* codec port, I.e. EAC is the master */ | ||
| 52 | EAC_CODEC_I2S_SLAVE, | ||
| 53 | }; | ||
| 54 | |||
| 55 | /* configuration structure for I2S mode */ | ||
| 56 | struct eac_i2s_conf { | ||
| 57 | /* if enabled, then first data slot (left channel) is signaled as | ||
| 58 | * positive level of frame sync EAC.AC_FS */ | ||
| 59 | unsigned polarity_changed_mode:1; | ||
| 60 | /* if enabled, then serial data starts one clock cycle after the | ||
| 61 | * of EAC.AC_FS for first audio slot */ | ||
| 62 | unsigned sync_delay_enable:1; | ||
| 63 | }; | ||
| 64 | |||
| 65 | /* configuration structure for EAC codec port */ | ||
| 66 | struct eac_codec { | ||
| 67 | enum eac_mclk_src mclk_src; | ||
| 68 | |||
| 69 | enum eac_codec_mode codec_mode; | ||
| 70 | union { | ||
| 71 | struct eac_i2s_conf i2s; | ||
| 72 | } codec_conf; | ||
| 73 | |||
| 74 | int default_rate; /* audio sampling rate */ | ||
| 75 | |||
| 76 | int (* set_power)(void *private_data, int dac, int adc); | ||
| 77 | int (* register_controls)(void *private_data, | ||
| 78 | struct snd_card *card); | ||
| 79 | const char *short_name; | ||
| 80 | |||
| 81 | void *private_data; | ||
| 82 | }; | ||
| 83 | |||
| 84 | /* structure for passing platform dependent data to the EAC driver */ | ||
| 85 | struct eac_platform_data { | ||
| 86 | int (* init)(struct device *eac_dev); | ||
| 87 | void (* cleanup)(struct device *eac_dev); | ||
| 88 | /* these callbacks are used to configure & control external MCLK | ||
| 89 | * source. NULL if not used */ | ||
| 90 | int (* enable_ext_clocks)(struct device *eac_dev); | ||
| 91 | void (* disable_ext_clocks)(struct device *eac_dev); | ||
| 92 | }; | ||
| 93 | |||
| 94 | extern void omap_init_eac(struct eac_platform_data *pdata); | ||
| 95 | |||
| 96 | extern int eac_register_codec(struct device *eac_dev, struct eac_codec *codec); | ||
| 97 | extern void eac_unregister_codec(struct device *eac_dev); | ||
| 98 | |||
| 99 | extern int eac_set_mode(struct device *eac_dev, int play, int rec); | ||
| 100 | |||
| 101 | #endif /* __ASM_ARM_ARCH_OMAP2_EAC_H */ | ||
diff --git a/include/asm-arm/arch-omap/gpmc.h b/include/asm-arm/arch-omap/gpmc.h index 995cc83482eb..6a8e07ffc2d0 100644 --- a/include/asm-arm/arch-omap/gpmc.h +++ b/include/asm-arm/arch-omap/gpmc.h | |||
| @@ -23,9 +23,10 @@ | |||
| 23 | #define GPMC_CS_NAND_DATA 0x24 | 23 | #define GPMC_CS_NAND_DATA 0x24 |
| 24 | 24 | ||
| 25 | #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) | 25 | #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) |
| 26 | #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 20) | 26 | #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 30) |
| 27 | #define GPMC_CONFIG1_READTYPE_ASYNC (0 << 29) | 27 | #define GPMC_CONFIG1_READTYPE_ASYNC (0 << 29) |
| 28 | #define GPMC_CONFIG1_READTYPE_SYNC (1 << 29) | 28 | #define GPMC_CONFIG1_READTYPE_SYNC (1 << 29) |
| 29 | #define GPMC_CONFIG1_WRITEMULTIPLE_SUPP (1 << 28) | ||
| 29 | #define GPMC_CONFIG1_WRITETYPE_ASYNC (0 << 27) | 30 | #define GPMC_CONFIG1_WRITETYPE_ASYNC (0 << 27) |
| 30 | #define GPMC_CONFIG1_WRITETYPE_SYNC (1 << 27) | 31 | #define GPMC_CONFIG1_WRITETYPE_SYNC (1 << 27) |
| 31 | #define GPMC_CONFIG1_CLKACTIVATIONTIME(val) ((val & 3) << 25) | 32 | #define GPMC_CONFIG1_CLKACTIVATIONTIME(val) ((val & 3) << 25) |
| @@ -80,6 +81,8 @@ struct gpmc_timings { | |||
| 80 | }; | 81 | }; |
| 81 | 82 | ||
| 82 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); | 83 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); |
| 84 | extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns); | ||
| 85 | extern unsigned long gpmc_get_fclk_period(void); | ||
| 83 | 86 | ||
| 84 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); | 87 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); |
| 85 | extern u32 gpmc_cs_read_reg(int cs, int idx); | 88 | extern u32 gpmc_cs_read_reg(int cs, int idx); |
diff --git a/include/asm-arm/arch-omap/hardware.h b/include/asm-arm/arch-omap/hardware.h index e225f4f39b34..da572092e255 100644 --- a/include/asm-arm/arch-omap/hardware.h +++ b/include/asm-arm/arch-omap/hardware.h | |||
| @@ -318,6 +318,10 @@ | |||
| 318 | #include "board-h4.h" | 318 | #include "board-h4.h" |
| 319 | #endif | 319 | #endif |
| 320 | 320 | ||
| 321 | #ifdef CONFIG_MACH_OMAP_2430SDP | ||
| 322 | #include "board-2430sdp.h" | ||
| 323 | #endif | ||
| 324 | |||
| 321 | #ifdef CONFIG_MACH_OMAP_APOLLON | 325 | #ifdef CONFIG_MACH_OMAP_APOLLON |
| 322 | #include "board-apollon.h" | 326 | #include "board-apollon.h" |
| 323 | #endif | 327 | #endif |
| @@ -330,6 +334,22 @@ | |||
| 330 | #include "board-voiceblue.h" | 334 | #include "board-voiceblue.h" |
| 331 | #endif | 335 | #endif |
| 332 | 336 | ||
| 337 | #ifdef CONFIG_MACH_OMAP_PALMTE | ||
| 338 | #include "board-palmte.h" | ||
| 339 | #endif | ||
| 340 | |||
| 341 | #ifdef CONFIG_MACH_OMAP_PALMZ71 | ||
| 342 | #include "board-palmz71.h" | ||
| 343 | #endif | ||
| 344 | |||
| 345 | #ifdef CONFIG_MACH_OMAP_PALMTT | ||
| 346 | #include "board-palmtt.h" | ||
| 347 | #endif | ||
| 348 | |||
| 349 | #ifdef CONFIG_MACH_SX1 | ||
| 350 | #include "board-sx1.h" | ||
| 351 | #endif | ||
| 352 | |||
| 333 | #endif /* !__ASSEMBLER__ */ | 353 | #endif /* !__ASSEMBLER__ */ |
| 334 | 354 | ||
| 335 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | 355 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ |
diff --git a/include/asm-arm/arch-omap/io.h b/include/asm-arm/arch-omap/io.h index 4aca7e3d7566..289082d07f14 100644 --- a/include/asm-arm/arch-omap/io.h +++ b/include/asm-arm/arch-omap/io.h | |||
| @@ -72,6 +72,16 @@ | |||
| 72 | #define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */ | 72 | #define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */ |
| 73 | #define L4_24XX_VIRT 0xd8000000 | 73 | #define L4_24XX_VIRT 0xd8000000 |
| 74 | #define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */ | 74 | #define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */ |
| 75 | |||
| 76 | #ifdef CONFIG_ARCH_OMAP2430 | ||
| 77 | #define L4_WK_243X_PHYS L4_WK_243X_BASE /* 0x49000000 */ | ||
| 78 | #define L4_WK_243X_VIRT 0xd9000000 | ||
| 79 | #define L4_WK_243X_SIZE SZ_1M | ||
| 80 | #define OMAP243X_GPMC_PHYS OMAP243X_GPMC_BASE /* 0x49000000 */ | ||
| 81 | #define OMAP243X_GPMC_VIRT 0xFE000000 | ||
| 82 | #define OMAP243X_GPMC_SIZE SZ_1M | ||
| 83 | #endif | ||
| 84 | |||
| 75 | #define IO_OFFSET 0x90000000 | 85 | #define IO_OFFSET 0x90000000 |
| 76 | #define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | 86 | #define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ |
| 77 | #define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | 87 | #define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ |
diff --git a/include/asm-arm/arch-omap/menelaus.h b/include/asm-arm/arch-omap/menelaus.h index 82d276a6bd95..69ed7ee40179 100644 --- a/include/asm-arm/arch-omap/menelaus.h +++ b/include/asm-arm/arch-omap/menelaus.h | |||
| @@ -7,6 +7,12 @@ | |||
| 7 | #ifndef __ASM_ARCH_MENELAUS_H | 7 | #ifndef __ASM_ARCH_MENELAUS_H |
| 8 | #define __ASM_ARCH_MENELAUS_H | 8 | #define __ASM_ARCH_MENELAUS_H |
| 9 | 9 | ||
| 10 | struct device; | ||
| 11 | |||
| 12 | struct menelaus_platform_data { | ||
| 13 | int (* late_init)(struct device *dev); | ||
| 14 | }; | ||
| 15 | |||
| 10 | extern int menelaus_register_mmc_callback(void (*callback)(void *data, u8 card_mask), | 16 | extern int menelaus_register_mmc_callback(void (*callback)(void *data, u8 card_mask), |
| 11 | void *data); | 17 | void *data); |
| 12 | extern void menelaus_unregister_mmc_callback(void); | 18 | extern void menelaus_unregister_mmc_callback(void); |
| @@ -20,6 +26,19 @@ extern int menelaus_set_vaux(unsigned int mV); | |||
| 20 | extern int menelaus_set_vdcdc(int dcdc, unsigned int mV); | 26 | extern int menelaus_set_vdcdc(int dcdc, unsigned int mV); |
| 21 | extern int menelaus_set_slot_sel(int enable); | 27 | extern int menelaus_set_slot_sel(int enable); |
| 22 | extern int menelaus_get_slot_pin_states(void); | 28 | extern int menelaus_get_slot_pin_states(void); |
| 29 | extern int menelaus_set_vcore_sw(unsigned int mV); | ||
| 30 | extern int menelaus_set_vcore_hw(unsigned int roof_mV, unsigned int floor_mV); | ||
| 31 | |||
| 32 | #define EN_VPLL_SLEEP (1 << 7) | ||
| 33 | #define EN_VMMC_SLEEP (1 << 6) | ||
| 34 | #define EN_VAUX_SLEEP (1 << 5) | ||
| 35 | #define EN_VIO_SLEEP (1 << 4) | ||
| 36 | #define EN_VMEM_SLEEP (1 << 3) | ||
| 37 | #define EN_DC3_SLEEP (1 << 2) | ||
| 38 | #define EN_DC2_SLEEP (1 << 1) | ||
| 39 | #define EN_VC_SLEEP (1 << 0) | ||
| 40 | |||
| 41 | extern int menelaus_set_regulator_sleep(int enable, u32 val); | ||
| 23 | 42 | ||
| 24 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS) | 43 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS) |
| 25 | #define omap_has_menelaus() 1 | 44 | #define omap_has_menelaus() 1 |
| @@ -28,4 +47,3 @@ extern int menelaus_get_slot_pin_states(void); | |||
| 28 | #endif | 47 | #endif |
| 29 | 48 | ||
| 30 | #endif | 49 | #endif |
| 31 | |||
diff --git a/include/asm-arm/arch-omap/mmc.h b/include/asm-arm/arch-omap/mmc.h new file mode 100644 index 000000000000..b70e37b61242 --- /dev/null +++ b/include/asm-arm/arch-omap/mmc.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* | ||
| 2 | * MMC definitions for OMAP2 | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Nokia Corporation | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __OMAP2_MMC_H | ||
| 12 | #define __OMAP2_MMC_H | ||
| 13 | |||
| 14 | #include <linux/types.h> | ||
| 15 | #include <linux/device.h> | ||
| 16 | #include <linux/mmc/host.h> | ||
| 17 | |||
| 18 | #define OMAP_MMC_MAX_SLOTS 2 | ||
| 19 | |||
| 20 | struct omap_mmc_platform_data { | ||
| 21 | unsigned enabled:1; | ||
| 22 | /* number of slots on board */ | ||
| 23 | unsigned nr_slots:2; | ||
| 24 | /* nomux means "standard" muxing is wrong on this board, and that | ||
| 25 | * board-specific code handled it before common init logic. | ||
| 26 | */ | ||
| 27 | unsigned nomux:1; | ||
| 28 | /* 4 wire signaling is optional, and is only used for SD/SDIO and | ||
| 29 | * MMCv4 */ | ||
| 30 | unsigned wire4:1; | ||
| 31 | /* set if your board has components or wiring that limits the | ||
| 32 | * maximum frequency on the MMC bus */ | ||
| 33 | unsigned int max_freq; | ||
| 34 | |||
| 35 | /* switch the bus to a new slot */ | ||
| 36 | int (* switch_slot)(struct device *dev, int slot); | ||
| 37 | /* initialize board-specific MMC functionality, can be NULL if | ||
| 38 | * not supported */ | ||
| 39 | int (* init)(struct device *dev); | ||
| 40 | void (* cleanup)(struct device *dev); | ||
| 41 | |||
| 42 | struct omap_mmc_slot_data { | ||
| 43 | int (* set_bus_mode)(struct device *dev, int slot, int bus_mode); | ||
| 44 | int (* set_power)(struct device *dev, int slot, int power_on, int vdd); | ||
| 45 | int (* get_ro)(struct device *dev, int slot); | ||
| 46 | |||
| 47 | /* return MMC cover switch state, can be NULL if not supported. | ||
| 48 | * | ||
| 49 | * possible return values: | ||
| 50 | * 0 - open | ||
| 51 | * 1 - closed | ||
| 52 | */ | ||
| 53 | int (* get_cover_state)(struct device *dev, int slot); | ||
| 54 | |||
| 55 | const char *name; | ||
| 56 | u32 ocr_mask; | ||
| 57 | } slots[OMAP_MMC_MAX_SLOTS]; | ||
| 58 | }; | ||
| 59 | |||
| 60 | extern void omap_set_mmc_info(int host, const struct omap_mmc_platform_data *info); | ||
| 61 | |||
| 62 | /* called from board-specific card detection service routine */ | ||
| 63 | extern void omap_mmc_notify_card_detect(struct device *dev, int slot, int detected); | ||
| 64 | extern void omap_mmc_notify_cover_event(struct device *dev, int slot, int is_closed); | ||
| 65 | |||
| 66 | #endif | ||
diff --git a/include/asm-arm/arch-omap/mux.h b/include/asm-arm/arch-omap/mux.h index f1ec2edd4040..b8fff50e6a87 100644 --- a/include/asm-arm/arch-omap/mux.h +++ b/include/asm-arm/arch-omap/mux.h | |||
| @@ -406,6 +406,29 @@ enum omap1xxx_index { | |||
| 406 | V10_1610_CF_IREQ, | 406 | V10_1610_CF_IREQ, |
| 407 | W10_1610_CF_RESET, | 407 | W10_1610_CF_RESET, |
| 408 | W11_1610_CF_CD1, | 408 | W11_1610_CF_CD1, |
| 409 | |||
| 410 | /* parallel camera */ | ||
| 411 | J15_1610_CAM_LCLK, | ||
| 412 | J18_1610_CAM_D7, | ||
| 413 | J19_1610_CAM_D6, | ||
| 414 | J14_1610_CAM_D5, | ||
| 415 | K18_1610_CAM_D4, | ||
| 416 | K19_1610_CAM_D3, | ||
| 417 | K15_1610_CAM_D2, | ||
| 418 | K14_1610_CAM_D1, | ||
| 419 | L19_1610_CAM_D0, | ||
| 420 | L18_1610_CAM_VS, | ||
| 421 | L15_1610_CAM_HS, | ||
| 422 | M19_1610_CAM_RSTZ, | ||
| 423 | Y15_1610_CAM_OUTCLK, | ||
| 424 | |||
| 425 | /* serial camera */ | ||
| 426 | H19_1610_CAM_EXCLK, | ||
| 427 | Y12_1610_CCP_CLKP, | ||
| 428 | W13_1610_CCP_CLKM, | ||
| 429 | W14_1610_CCP_DATAP, | ||
| 430 | Y14_1610_CCP_DATAM, | ||
| 431 | |||
| 409 | }; | 432 | }; |
| 410 | 433 | ||
| 411 | enum omap24xx_index { | 434 | enum omap24xx_index { |
diff --git a/include/asm-arm/arch-omap/omap24xx.h b/include/asm-arm/arch-omap/omap24xx.h index 708b2fac77f2..14c0f9496579 100644 --- a/include/asm-arm/arch-omap/omap24xx.h +++ b/include/asm-arm/arch-omap/omap24xx.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #define L4_24XX_BASE 0x48000000 | 10 | #define L4_24XX_BASE 0x48000000 |
| 11 | #define L4_WK_243X_BASE 0x49000000 | ||
| 11 | #define L3_24XX_BASE 0x68000000 | 12 | #define L3_24XX_BASE 0x68000000 |
| 12 | 13 | ||
| 13 | /* interrupt controller */ | 14 | /* interrupt controller */ |
| @@ -16,9 +17,20 @@ | |||
| 16 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 | 17 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 |
| 17 | #define IRQ_SIR_IRQ 0x0040 | 18 | #define IRQ_SIR_IRQ 0x0040 |
| 18 | 19 | ||
| 20 | #ifdef CONFIG_ARCH_OMAP2420 | ||
| 19 | #define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) | 21 | #define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) |
| 20 | #define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000) | 22 | #define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000) |
| 21 | #define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000) | 23 | #define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000) |
| 24 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #ifdef CONFIG_ARCH_OMAP2430 | ||
| 28 | #define OMAP24XX_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) | ||
| 29 | #define OMAP24XX_PRCM_BASE (L4_WK_243X_BASE + 0x6000) | ||
| 30 | #define OMAP24XX_SDRC_BASE (0x6D000000) | ||
| 31 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | ||
| 32 | #define OMAP243X_GPMC_BASE 0x6E000000 | ||
| 33 | #endif | ||
| 22 | 34 | ||
| 23 | /* DSP SS */ | 35 | /* DSP SS */ |
| 24 | #define OMAP24XX_DSP_BASE 0x58000000 | 36 | #define OMAP24XX_DSP_BASE 0x58000000 |
diff --git a/include/asm-arm/arch-omap/onenand.h b/include/asm-arm/arch-omap/onenand.h new file mode 100644 index 000000000000..6c959d0ce470 --- /dev/null +++ b/include/asm-arm/arch-omap/onenand.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * include/asm-arm/arch-omap/onenand.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Nokia Corporation | ||
| 5 | * Author: Juha Yrjola | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #include <linux/mtd/partitions.h> | ||
| 13 | |||
| 14 | struct omap_onenand_platform_data { | ||
| 15 | int cs; | ||
| 16 | int gpio_irq; | ||
| 17 | struct mtd_partition *parts; | ||
| 18 | int nr_parts; | ||
| 19 | int (*onenand_setup)(void __iomem *); | ||
| 20 | int dma_channel; | ||
| 21 | }; | ||
