Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel

Conflicts:

arch/arm/mach-pxa/pxa25x.c

authored by

Russell King and committed by
Russell King
c5b84b3b d281bc9d

+2361 -779
+6
arch/arm/boot/compressed/head.S
··· 624 624 b __armv4_mmu_cache_off 625 625 b __armv4_mmu_cache_flush 626 626 627 + .word 0x56056930 628 + .word 0xff0ffff0 @ PXA935 629 + b __armv4_mmu_cache_on 630 + b __armv4_mmu_cache_off 631 + b __armv4_mmu_cache_flush 632 + 627 633 .word 0x56050000 @ Feroceon 628 634 .word 0xff0f0000 629 635 b __armv4_mmu_cache_on
+1
arch/arm/common/locomo.c
··· 1108 1108 locomo_writel(bpwf | LOCOMO_ALC_EN, lchip->base + LOCOMO_FRONTLIGHT + LOCOMO_ALS); 1109 1109 spin_unlock_irqrestore(&lchip->lock, flags); 1110 1110 } 1111 + EXPORT_SYMBOL(locomo_frontlight_set); 1111 1112 1112 1113 /* 1113 1114 * LoCoMo "Register Access Bus."
+996
arch/arm/configs/h5000_defconfig
··· 1 + # 2 + # Automatically generated make config: don't edit 3 + # Linux kernel version: 2.6.27-rc6 4 + # Tue Sep 16 16:13:48 2008 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_HAVE_LATENCYTOP_SUPPORT=y 16 + CONFIG_LOCKDEP_SUPPORT=y 17 + CONFIG_TRACE_IRQFLAGS_SUPPORT=y 18 + CONFIG_HARDIRQS_SW_RESEND=y 19 + CONFIG_GENERIC_IRQ_PROBE=y 20 + CONFIG_RWSEM_GENERIC_SPINLOCK=y 21 + # CONFIG_ARCH_HAS_ILOG2_U32 is not set 22 + # CONFIG_ARCH_HAS_ILOG2_U64 is not set 23 + CONFIG_GENERIC_HWEIGHT=y 24 + CONFIG_GENERIC_CALIBRATE_DELAY=y 25 + CONFIG_ARCH_SUPPORTS_AOUT=y 26 + CONFIG_ZONE_DMA=y 27 + CONFIG_ARCH_MTD_XIP=y 28 + CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y 29 + CONFIG_VECTORS_BASE=0xffff0000 30 + CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" 31 + 32 + # 33 + # General setup 34 + # 35 + CONFIG_EXPERIMENTAL=y 36 + CONFIG_BROKEN_ON_SMP=y 37 + CONFIG_INIT_ENV_ARG_LIMIT=32 38 + CONFIG_LOCALVERSION="" 39 + CONFIG_LOCALVERSION_AUTO=y 40 + CONFIG_SWAP=y 41 + CONFIG_SYSVIPC=y 42 + CONFIG_SYSVIPC_SYSCTL=y 43 + # CONFIG_POSIX_MQUEUE is not set 44 + # CONFIG_BSD_PROCESS_ACCT is not set 45 + # CONFIG_TASKSTATS is not set 46 + # CONFIG_AUDIT is not set 47 + CONFIG_IKCONFIG=y 48 + CONFIG_IKCONFIG_PROC=y 49 + CONFIG_LOG_BUF_SHIFT=16 50 + # CONFIG_CGROUPS is not set 51 + CONFIG_GROUP_SCHED=y 52 + CONFIG_FAIR_GROUP_SCHED=y 53 + # CONFIG_RT_GROUP_SCHED is not set 54 + CONFIG_USER_SCHED=y 55 + # CONFIG_CGROUP_SCHED is not set 56 + # CONFIG_SYSFS_DEPRECATED_V2 is not set 57 + # CONFIG_RELAY is not set 58 + # CONFIG_NAMESPACES is not set 59 + # CONFIG_BLK_DEV_INITRD is not set 60 + # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 61 + CONFIG_SYSCTL=y 62 + CONFIG_EMBEDDED=y 63 + # CONFIG_UID16 is not set 64 + CONFIG_SYSCTL_SYSCALL=y 65 + CONFIG_KALLSYMS=y 66 + # CONFIG_KALLSYMS_ALL is not set 67 + # CONFIG_KALLSYMS_EXTRA_PASS is not set 68 + CONFIG_HOTPLUG=y 69 + CONFIG_PRINTK=y 70 + CONFIG_BUG=y 71 + CONFIG_ELF_CORE=y 72 + CONFIG_COMPAT_BRK=y 73 + CONFIG_BASE_FULL=y 74 + CONFIG_FUTEX=y 75 + CONFIG_ANON_INODES=y 76 + CONFIG_EPOLL=y 77 + CONFIG_SIGNALFD=y 78 + CONFIG_TIMERFD=y 79 + CONFIG_EVENTFD=y 80 + CONFIG_SHMEM=y 81 + CONFIG_VM_EVENT_COUNTERS=y 82 + CONFIG_SLAB=y 83 + # CONFIG_SLUB is not set 84 + # CONFIG_SLOB is not set 85 + # CONFIG_PROFILING is not set 86 + # CONFIG_MARKERS is not set 87 + CONFIG_HAVE_OPROFILE=y 88 + # CONFIG_KPROBES is not set 89 + # CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is not set 90 + # CONFIG_HAVE_IOREMAP_PROT is not set 91 + CONFIG_HAVE_KPROBES=y 92 + CONFIG_HAVE_KRETPROBES=y 93 + # CONFIG_HAVE_ARCH_TRACEHOOK is not set 94 + # CONFIG_HAVE_DMA_ATTRS is not set 95 + # CONFIG_USE_GENERIC_SMP_HELPERS is not set 96 + CONFIG_HAVE_CLK=y 97 + # CONFIG_PROC_PAGE_MONITOR is not set 98 + CONFIG_HAVE_GENERIC_DMA_COHERENT=y 99 + CONFIG_SLABINFO=y 100 + CONFIG_RT_MUTEXES=y 101 + # CONFIG_TINY_SHMEM is not set 102 + CONFIG_BASE_SMALL=0 103 + CONFIG_MODULES=y 104 + # CONFIG_MODULE_FORCE_LOAD is not set 105 + CONFIG_MODULE_UNLOAD=y 106 + CONFIG_MODULE_FORCE_UNLOAD=y 107 + # CONFIG_MODVERSIONS is not set 108 + # CONFIG_MODULE_SRCVERSION_ALL is not set 109 + CONFIG_KMOD=y 110 + CONFIG_BLOCK=y 111 + # CONFIG_LBD is not set 112 + # CONFIG_BLK_DEV_IO_TRACE is not set 113 + # CONFIG_LSF is not set 114 + # CONFIG_BLK_DEV_BSG is not set 115 + # CONFIG_BLK_DEV_INTEGRITY is not set 116 + 117 + # 118 + # IO Schedulers 119 + # 120 + CONFIG_IOSCHED_NOOP=y 121 + CONFIG_IOSCHED_AS=y 122 + CONFIG_IOSCHED_DEADLINE=y 123 + # CONFIG_IOSCHED_CFQ is not set 124 + CONFIG_DEFAULT_AS=y 125 + # CONFIG_DEFAULT_DEADLINE is not set 126 + # CONFIG_DEFAULT_CFQ is not set 127 + # CONFIG_DEFAULT_NOOP is not set 128 + CONFIG_DEFAULT_IOSCHED="anticipatory" 129 + CONFIG_CLASSIC_RCU=y 130 + 131 + # 132 + # System Type 133 + # 134 + # CONFIG_ARCH_AAEC2000 is not set 135 + # CONFIG_ARCH_INTEGRATOR is not set 136 + # CONFIG_ARCH_REALVIEW is not set 137 + # CONFIG_ARCH_VERSATILE is not set 138 + # CONFIG_ARCH_AT91 is not set 139 + # CONFIG_ARCH_CLPS7500 is not set 140 + # CONFIG_ARCH_CLPS711X is not set 141 + # CONFIG_ARCH_EBSA110 is not set 142 + # CONFIG_ARCH_EP93XX is not set 143 + # CONFIG_ARCH_FOOTBRIDGE is not set 144 + # CONFIG_ARCH_NETX is not set 145 + # CONFIG_ARCH_H720X is not set 146 + # CONFIG_ARCH_IMX is not set 147 + # CONFIG_ARCH_IOP13XX is not set 148 + # CONFIG_ARCH_IOP32X is not set 149 + # CONFIG_ARCH_IOP33X is not set 150 + # CONFIG_ARCH_IXP23XX is not set 151 + # CONFIG_ARCH_IXP2000 is not set 152 + # CONFIG_ARCH_IXP4XX is not set 153 + # CONFIG_ARCH_L7200 is not set 154 + # CONFIG_ARCH_KIRKWOOD is not set 155 + # CONFIG_ARCH_KS8695 is not set 156 + # CONFIG_ARCH_NS9XXX is not set 157 + # CONFIG_ARCH_LOKI is not set 158 + # CONFIG_ARCH_MV78XX0 is not set 159 + # CONFIG_ARCH_MXC is not set 160 + # CONFIG_ARCH_ORION5X is not set 161 + # CONFIG_ARCH_PNX4008 is not set 162 + CONFIG_ARCH_PXA=y 163 + # CONFIG_ARCH_RPC is not set 164 + # CONFIG_ARCH_SA1100 is not set 165 + # CONFIG_ARCH_S3C2410 is not set 166 + # CONFIG_ARCH_SHARK is not set 167 + # CONFIG_ARCH_LH7A40X is not set 168 + # CONFIG_ARCH_DAVINCI is not set 169 + # CONFIG_ARCH_OMAP is not set 170 + # CONFIG_ARCH_MSM7X00A is not set 171 + 172 + # 173 + # Intel PXA2xx/PXA3xx Implementations 174 + # 175 + # CONFIG_ARCH_GUMSTIX is not set 176 + # CONFIG_ARCH_LUBBOCK is not set 177 + # CONFIG_MACH_LOGICPD_PXA270 is not set 178 + # CONFIG_MACH_MAINSTONE is not set 179 + # CONFIG_ARCH_PXA_IDP is not set 180 + # CONFIG_PXA_SHARPSL is not set 181 + # CONFIG_ARCH_PXA_ESERIES is not set 182 + CONFIG_MACH_H5000=y 183 + # CONFIG_MACH_TRIZEPS4 is not set 184 + # CONFIG_MACH_EM_X270 is not set 185 + # CONFIG_MACH_COLIBRI is not set 186 + # CONFIG_MACH_ZYLONITE is not set 187 + # CONFIG_MACH_LITTLETON is not set 188 + # CONFIG_MACH_TAVOREVB is not set 189 + # CONFIG_MACH_SAAR is not set 190 + # CONFIG_MACH_ARMCORE is not set 191 + # CONFIG_MACH_MAGICIAN is not set 192 + # CONFIG_MACH_PCM027 is not set 193 + # CONFIG_ARCH_PXA_PALM is not set 194 + # CONFIG_PXA_EZX is not set 195 + CONFIG_PXA25x=y 196 + # CONFIG_PXA_PWM is not set 197 + 198 + # 199 + # Boot options 200 + # 201 + 202 + # 203 + # Power management 204 + # 205 + 206 + # 207 + # Processor Type 208 + # 209 + CONFIG_CPU_32=y 210 + CONFIG_CPU_XSCALE=y 211 + CONFIG_CPU_32v5=y 212 + CONFIG_CPU_ABRT_EV5T=y 213 + CONFIG_CPU_PABRT_NOIFAR=y 214 + CONFIG_CPU_CACHE_VIVT=y 215 + CONFIG_CPU_TLB_V4WBI=y 216 + CONFIG_CPU_CP15=y 217 + CONFIG_CPU_CP15_MMU=y 218 + 219 + # 220 + # Processor Features 221 + # 222 + CONFIG_ARM_THUMB=y 223 + # CONFIG_CPU_DCACHE_DISABLE is not set 224 + # CONFIG_OUTER_CACHE is not set 225 + # CONFIG_IWMMXT is not set 226 + CONFIG_XSCALE_PMU=y 227 + 228 + # 229 + # Bus support 230 + # 231 + # CONFIG_PCI_SYSCALL is not set 232 + # CONFIG_ARCH_SUPPORTS_MSI is not set 233 + # CONFIG_PCCARD is not set 234 + 235 + # 236 + # Kernel Features 237 + # 238 + CONFIG_TICK_ONESHOT=y 239 + # CONFIG_NO_HZ is not set 240 + # CONFIG_HIGH_RES_TIMERS is not set 241 + CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 242 + # CONFIG_PREEMPT is not set 243 + CONFIG_HZ=100 244 + CONFIG_AEABI=y 245 + CONFIG_OABI_COMPAT=y 246 + CONFIG_ARCH_FLATMEM_HAS_HOLES=y 247 + # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set 248 + CONFIG_SELECT_MEMORY_MODEL=y 249 + CONFIG_FLATMEM_MANUAL=y 250 + # CONFIG_DISCONTIGMEM_MANUAL is not set 251 + # CONFIG_SPARSEMEM_MANUAL is not set 252 + CONFIG_FLATMEM=y 253 + CONFIG_FLAT_NODE_MEM_MAP=y 254 + # CONFIG_SPARSEMEM_STATIC is not set 255 + # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set 256 + CONFIG_PAGEFLAGS_EXTENDED=y 257 + CONFIG_SPLIT_PTLOCK_CPUS=4096 258 + # CONFIG_RESOURCES_64BIT is not set 259 + CONFIG_ZONE_DMA_FLAG=1 260 + CONFIG_BOUNCE=y 261 + CONFIG_VIRT_TO_BUS=y 262 + CONFIG_ALIGNMENT_TRAP=y 263 + 264 + # 265 + # Boot options 266 + # 267 + CONFIG_ZBOOT_ROM_TEXT=0x0 268 + CONFIG_ZBOOT_ROM_BSS=0x0 269 + CONFIG_CMDLINE="keepinitrd" 270 + # CONFIG_XIP_KERNEL is not set 271 + CONFIG_KEXEC=y 272 + CONFIG_ATAGS_PROC=y 273 + 274 + # 275 + # CPU Frequency scaling 276 + # 277 + # CONFIG_CPU_FREQ is not set 278 + 279 + # 280 + # Floating point emulation 281 + # 282 + 283 + # 284 + # At least one emulation must be selected 285 + # 286 + CONFIG_FPE_NWFPE=y 287 + # CONFIG_FPE_NWFPE_XP is not set 288 + # CONFIG_FPE_FASTFPE is not set 289 + 290 + # 291 + # Userspace binary formats 292 + # 293 + CONFIG_BINFMT_ELF=y 294 + # CONFIG_BINFMT_AOUT is not set 295 + # CONFIG_BINFMT_MISC is not set 296 + 297 + # 298 + # Power management options 299 + # 300 + CONFIG_PM=y 301 + # CONFIG_PM_DEBUG is not set 302 + CONFIG_PM_SLEEP=y 303 + CONFIG_SUSPEND=y 304 + CONFIG_SUSPEND_FREEZER=y 305 + CONFIG_APM_EMULATION=y 306 + CONFIG_ARCH_SUSPEND_POSSIBLE=y 307 + CONFIG_NET=y 308 + 309 + # 310 + # Networking options 311 + # 312 + CONFIG_PACKET=y 313 + CONFIG_PACKET_MMAP=y 314 + CONFIG_UNIX=y 315 + # CONFIG_NET_KEY is not set 316 + CONFIG_INET=y 317 + CONFIG_IP_MULTICAST=y 318 + # CONFIG_IP_ADVANCED_ROUTER is not set 319 + CONFIG_IP_FIB_HASH=y 320 + CONFIG_IP_PNP=y 321 + # CONFIG_IP_PNP_DHCP is not set 322 + # CONFIG_IP_PNP_BOOTP is not set 323 + # CONFIG_IP_PNP_RARP is not set 324 + # CONFIG_NET_IPIP is not set 325 + # CONFIG_NET_IPGRE is not set 326 + # CONFIG_IP_MROUTE is not set 327 + # CONFIG_ARPD is not set 328 + # CONFIG_SYN_COOKIES is not set 329 + # CONFIG_INET_AH is not set 330 + # CONFIG_INET_ESP is not set 331 + # CONFIG_INET_IPCOMP is not set 332 + # CONFIG_INET_XFRM_TUNNEL is not set 333 + # CONFIG_INET_TUNNEL is not set 334 + # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 335 + # CONFIG_INET_XFRM_MODE_TUNNEL is not set 336 + # CONFIG_INET_XFRM_MODE_BEET is not set 337 + # CONFIG_INET_LRO is not set 338 + # CONFIG_INET_DIAG is not set 339 + # CONFIG_TCP_CONG_ADVANCED is not set 340 + CONFIG_TCP_CONG_CUBIC=y 341 + CONFIG_DEFAULT_TCP_CONG="cubic" 342 + # CONFIG_TCP_MD5SIG is not set 343 + # CONFIG_IPV6 is not set 344 + # CONFIG_NETWORK_SECMARK is not set 345 + # CONFIG_NETFILTER is not set 346 + # CONFIG_IP_DCCP is not set 347 + # CONFIG_IP_SCTP is not set 348 + # CONFIG_TIPC is not set 349 + # CONFIG_ATM is not set 350 + # CONFIG_BRIDGE is not set 351 + # CONFIG_VLAN_8021Q is not set 352 + # CONFIG_DECNET is not set 353 + # CONFIG_LLC2 is not set 354 + # CONFIG_IPX is not set 355 + # CONFIG_ATALK is not set 356 + # CONFIG_X25 is not set 357 + # CONFIG_LAPB is not set 358 + # CONFIG_ECONET is not set 359 + # CONFIG_WAN_ROUTER is not set 360 + # CONFIG_NET_SCHED is not set 361 + 362 + # 363 + # Network testing 364 + # 365 + # CONFIG_NET_PKTGEN is not set 366 + # CONFIG_HAMRADIO is not set 367 + # CONFIG_CAN is not set 368 + # CONFIG_IRDA is not set 369 + # CONFIG_BT is not set 370 + # CONFIG_AF_RXRPC is not set 371 + 372 + # 373 + # Wireless 374 + # 375 + # CONFIG_CFG80211 is not set 376 + # CONFIG_WIRELESS_EXT is not set 377 + # CONFIG_MAC80211 is not set 378 + # CONFIG_IEEE80211 is not set 379 + # CONFIG_RFKILL is not set 380 + # CONFIG_NET_9P is not set 381 + 382 + # 383 + # Device Drivers 384 + # 385 + 386 + # 387 + # Generic Driver Options 388 + # 389 + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 390 + CONFIG_STANDALONE=y 391 + CONFIG_PREVENT_FIRMWARE_BUILD=y 392 + CONFIG_FW_LOADER=y 393 + CONFIG_FIRMWARE_IN_KERNEL=y 394 + CONFIG_EXTRA_FIRMWARE="" 395 + # CONFIG_DEBUG_DRIVER is not set 396 + # CONFIG_DEBUG_DEVRES is not set 397 + # CONFIG_SYS_HYPERVISOR is not set 398 + # CONFIG_CONNECTOR is not set 399 + CONFIG_MTD=y 400 + # CONFIG_MTD_DEBUG is not set 401 + # CONFIG_MTD_CONCAT is not set 402 + CONFIG_MTD_PARTITIONS=y 403 + # CONFIG_MTD_REDBOOT_PARTS is not set 404 + # CONFIG_MTD_CMDLINE_PARTS is not set 405 + # CONFIG_MTD_AFS_PARTS is not set 406 + # CONFIG_MTD_AR7_PARTS is not set 407 + 408 + # 409 + # User Modules And Translation Layers 410 + # 411 + # CONFIG_MTD_CHAR is not set 412 + CONFIG_MTD_BLKDEVS=y 413 + CONFIG_MTD_BLOCK=y 414 + # CONFIG_FTL is not set 415 + # CONFIG_NFTL is not set 416 + # CONFIG_INFTL is not set 417 + # CONFIG_RFD_FTL is not set 418 + # CONFIG_SSFDC is not set 419 + # CONFIG_MTD_OOPS is not set 420 + 421 + # 422 + # RAM/ROM/Flash chip drivers 423 + # 424 + CONFIG_MTD_CFI=y 425 + # CONFIG_MTD_JEDECPROBE is not set 426 + CONFIG_MTD_GEN_PROBE=y 427 + CONFIG_MTD_CFI_ADV_OPTIONS=y 428 + CONFIG_MTD_CFI_NOSWAP=y 429 + # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set 430 + # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set 431 + CONFIG_MTD_CFI_GEOMETRY=y 432 + CONFIG_MTD_MAP_BANK_WIDTH_1=y 433 + CONFIG_MTD_MAP_BANK_WIDTH_2=y 434 + CONFIG_MTD_MAP_BANK_WIDTH_4=y 435 + # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set 436 + # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set 437 + # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set 438 + CONFIG_MTD_CFI_I1=y 439 + CONFIG_MTD_CFI_I2=y 440 + # CONFIG_MTD_CFI_I4 is not set 441 + # CONFIG_MTD_CFI_I8 is not set 442 + # CONFIG_MTD_OTP is not set 443 + CONFIG_MTD_CFI_INTELEXT=y 444 + # CONFIG_MTD_CFI_AMDSTD is not set 445 + # CONFIG_MTD_CFI_STAA is not set 446 + CONFIG_MTD_CFI_UTIL=y 447 + # CONFIG_MTD_RAM is not set 448 + # CONFIG_MTD_ROM is not set 449 + # CONFIG_MTD_ABSENT is not set 450 + # CONFIG_MTD_XIP is not set 451 + 452 + # 453 + # Mapping drivers for chip access 454 + # 455 + # CONFIG_MTD_COMPLEX_MAPPINGS is not set 456 + CONFIG_MTD_PHYSMAP=y 457 + CONFIG_MTD_PHYSMAP_START=0x8000000 458 + CONFIG_MTD_PHYSMAP_LEN=0x0 459 + CONFIG_MTD_PHYSMAP_BANKWIDTH=2 460 + # CONFIG_MTD_PXA2XX is not set 461 + # CONFIG_MTD_ARM_INTEGRATOR is not set 462 + # CONFIG_MTD_SHARP_SL is not set 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 is not set 490 + # CONFIG_BLK_DEV_NBD is not set 491 + # CONFIG_BLK_DEV_RAM is not set 492 + # CONFIG_CDROM_PKTCDVD is not set 493 + # CONFIG_ATA_OVER_ETH is not set 494 + CONFIG_MISC_DEVICES=y 495 + # CONFIG_EEPROM_93CX6 is not set 496 + # CONFIG_ENCLOSURE_SERVICES is not set 497 + CONFIG_HAVE_IDE=y 498 + # CONFIG_IDE is not set 499 + 500 + # 501 + # SCSI device support 502 + # 503 + # CONFIG_RAID_ATTRS is not set 504 + # CONFIG_SCSI is not set 505 + # CONFIG_SCSI_DMA is not set 506 + # CONFIG_SCSI_NETLINK is not set 507 + # CONFIG_ATA is not set 508 + # CONFIG_MD is not set 509 + # CONFIG_NETDEVICES is not set 510 + # CONFIG_ISDN is not set 511 + 512 + # 513 + # Input device support 514 + # 515 + CONFIG_INPUT=y 516 + # CONFIG_INPUT_FF_MEMLESS is not set 517 + # CONFIG_INPUT_POLLDEV is not set 518 + 519 + # 520 + # Userland interfaces 521 + # 522 + # CONFIG_INPUT_MOUSEDEV is not set 523 + # CONFIG_INPUT_JOYDEV is not set 524 + # CONFIG_INPUT_EVDEV is not set 525 + # CONFIG_INPUT_EVBUG is not set 526 + # CONFIG_INPUT_APMPOWER is not set 527 + 528 + # 529 + # Input Device Drivers 530 + # 531 + # CONFIG_INPUT_KEYBOARD is not set 532 + # CONFIG_INPUT_MOUSE is not set 533 + # CONFIG_INPUT_JOYSTICK is not set 534 + # CONFIG_INPUT_TABLET is not set 535 + # CONFIG_INPUT_TOUCHSCREEN is not set 536 + # CONFIG_INPUT_MISC is not set 537 + 538 + # 539 + # Hardware I/O ports 540 + # 541 + # CONFIG_SERIO is not set 542 + # CONFIG_GAMEPORT is not set 543 + 544 + # 545 + # Character devices 546 + # 547 + CONFIG_VT=y 548 + CONFIG_CONSOLE_TRANSLATIONS=y 549 + CONFIG_VT_CONSOLE=y 550 + CONFIG_HW_CONSOLE=y 551 + # CONFIG_VT_HW_CONSOLE_BINDING is not set 552 + CONFIG_DEVKMEM=y 553 + # CONFIG_SERIAL_NONSTANDARD is not set 554 + 555 + # 556 + # Serial drivers 557 + # 558 + # CONFIG_SERIAL_8250 is not set 559 + 560 + # 561 + # Non-8250 serial port support 562 + # 563 + CONFIG_SERIAL_PXA=y 564 + CONFIG_SERIAL_PXA_CONSOLE=y 565 + CONFIG_SERIAL_CORE=y 566 + CONFIG_SERIAL_CORE_CONSOLE=y 567 + CONFIG_UNIX98_PTYS=y 568 + CONFIG_LEGACY_PTYS=y 569 + CONFIG_LEGACY_PTY_COUNT=32 570 + # CONFIG_IPMI_HANDLER is not set 571 + # CONFIG_HW_RANDOM is not set 572 + # CONFIG_NVRAM is not set 573 + # CONFIG_R3964 is not set 574 + # CONFIG_RAW_DRIVER is not set 575 + # CONFIG_TCG_TPM is not set 576 + # CONFIG_I2C is not set 577 + # CONFIG_SPI is not set 578 + CONFIG_ARCH_REQUIRE_GPIOLIB=y 579 + CONFIG_GPIOLIB=y 580 + # CONFIG_DEBUG_GPIO is not set 581 + # CONFIG_GPIO_SYSFS is not set 582 + 583 + # 584 + # I2C GPIO expanders: 585 + # 586 + 587 + # 588 + # PCI GPIO expanders: 589 + # 590 + 591 + # 592 + # SPI GPIO expanders: 593 + # 594 + # CONFIG_W1 is not set 595 + # CONFIG_POWER_SUPPLY is not set 596 + # CONFIG_HWMON is not set 597 + # CONFIG_WATCHDOG is not set 598 + 599 + # 600 + # Sonics Silicon Backplane 601 + # 602 + CONFIG_SSB_POSSIBLE=y 603 + # CONFIG_SSB is not set 604 + 605 + # 606 + # Multifunction device drivers 607 + # 608 + # CONFIG_MFD_CORE is not set 609 + # CONFIG_MFD_SM501 is not set 610 + # CONFIG_HTC_EGPIO is not set 611 + # CONFIG_HTC_PASIC3 is not set 612 + # CONFIG_MFD_TMIO is not set 613 + # CONFIG_MFD_T7L66XB is not set 614 + # CONFIG_MFD_TC6387XB is not set 615 + # CONFIG_MFD_TC6393XB is not set 616 + 617 + # 618 + # Multimedia devices 619 + # 620 + 621 + # 622 + # Multimedia core support 623 + # 624 + # CONFIG_VIDEO_DEV is not set 625 + # CONFIG_DVB_CORE is not set 626 + # CONFIG_VIDEO_MEDIA is not set 627 + 628 + # 629 + # Multimedia drivers 630 + # 631 + # CONFIG_DAB is not set 632 + 633 + # 634 + # Graphics support 635 + # 636 + # CONFIG_VGASTATE is not set 637 + # CONFIG_VIDEO_OUTPUT_CONTROL is not set 638 + # CONFIG_FB is not set 639 + # CONFIG_BACKLIGHT_LCD_SUPPORT is not set 640 + 641 + # 642 + # Display device support 643 + # 644 + # CONFIG_DISPLAY_SUPPORT is not set 645 + 646 + # 647 + # Console display driver support 648 + # 649 + # CONFIG_VGA_CONSOLE is not set 650 + CONFIG_DUMMY_CONSOLE=y 651 + # CONFIG_SOUND is not set 652 + # CONFIG_HID_SUPPORT is not set 653 + CONFIG_USB_SUPPORT=y 654 + CONFIG_USB_ARCH_HAS_HCD=y 655 + # CONFIG_USB_ARCH_HAS_OHCI is not set 656 + # CONFIG_USB_ARCH_HAS_EHCI is not set 657 + # CONFIG_USB is not set 658 + # CONFIG_USB_OTG_WHITELIST is not set 659 + # CONFIG_USB_OTG_BLACKLIST_HUB is not set 660 + # CONFIG_USB_MUSB_HDRC is not set 661 + # CONFIG_USB_GADGET_MUSB_HDRC is not set 662 + 663 + # 664 + # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' 665 + # 666 + CONFIG_USB_GADGET=y 667 + # CONFIG_USB_GADGET_DEBUG is not set 668 + # CONFIG_USB_GADGET_DEBUG_FILES is not set 669 + CONFIG_USB_GADGET_SELECTED=y 670 + # CONFIG_USB_GADGET_AMD5536UDC is not set 671 + # CONFIG_USB_GADGET_ATMEL_USBA is not set 672 + # CONFIG_USB_GADGET_FSL_USB2 is not set 673 + # CONFIG_USB_GADGET_NET2280 is not set 674 + CONFIG_USB_GADGET_PXA25X=y 675 + CONFIG_USB_PXA25X=y 676 + CONFIG_USB_PXA25X_SMALL=y 677 + # CONFIG_USB_GADGET_M66592 is not set 678 + # CONFIG_USB_GADGET_PXA27X is not set 679 + # CONFIG_USB_GADGET_GOKU is not set 680 + # CONFIG_USB_GADGET_LH7A40X is not set 681 + # CONFIG_USB_GADGET_OMAP is not set 682 + # CONFIG_USB_GADGET_S3C2410 is not set 683 + # CONFIG_USB_GADGET_AT91 is not set 684 + # CONFIG_USB_GADGET_DUMMY_HCD is not set 685 + # CONFIG_USB_GADGET_DUALSPEED is not set 686 + # CONFIG_USB_ZERO is not set 687 + CONFIG_USB_ETH=y 688 + # CONFIG_USB_ETH_RNDIS is not set 689 + # CONFIG_USB_GADGETFS is not set 690 + # CONFIG_USB_FILE_STORAGE is not set 691 + # CONFIG_USB_G_SERIAL is not set 692 + # CONFIG_USB_MIDI_GADGET is not set 693 + # CONFIG_USB_G_PRINTER is not set 694 + # CONFIG_USB_CDC_COMPOSITE is not set 695 + # CONFIG_MMC is not set 696 + # CONFIG_NEW_LEDS is not set 697 + CONFIG_RTC_LIB=y 698 + CONFIG_RTC_CLASS=y 699 + CONFIG_RTC_HCTOSYS=y 700 + CONFIG_RTC_HCTOSYS_DEVICE="rtc0" 701 + # CONFIG_RTC_DEBUG is not set 702 + 703 + # 704 + # RTC interfaces 705 + # 706 + CONFIG_RTC_INTF_SYSFS=y 707 + CONFIG_RTC_INTF_PROC=y 708 + CONFIG_RTC_INTF_DEV=y 709 + # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set 710 + # CONFIG_RTC_DRV_TEST is not set 711 + 712 + # 713 + # SPI RTC drivers 714 + # 715 + 716 + # 717 + # Platform RTC drivers 718 + # 719 + # CONFIG_RTC_DRV_CMOS is not set 720 + # CONFIG_RTC_DRV_DS1511 is not set 721 + # CONFIG_RTC_DRV_DS1553 is not set 722 + # CONFIG_RTC_DRV_DS1742 is not set 723 + # CONFIG_RTC_DRV_STK17TA8 is not set 724 + # CONFIG_RTC_DRV_M48T86 is not set 725 + # CONFIG_RTC_DRV_M48T59 is not set 726 + # CONFIG_RTC_DRV_V3020 is not set 727 + 728 + # 729 + # on-CPU RTC drivers 730 + # 731 + CONFIG_RTC_DRV_SA1100=y 732 + # CONFIG_DMADEVICES is not set 733 + 734 + # 735 + # Voltage and Current regulators 736 + # 737 + # CONFIG_REGULATOR is not set 738 + # CONFIG_REGULATOR_FIXED_VOLTAGE is not set 739 + # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set 740 + # CONFIG_REGULATOR_BQ24022 is not set 741 + # CONFIG_UIO is not set 742 + 743 + # 744 + # File systems 745 + # 746 + CONFIG_EXT2_FS=y 747 + # CONFIG_EXT2_FS_XATTR is not set 748 + # CONFIG_EXT2_FS_XIP is not set 749 + # CONFIG_EXT3_FS is not set 750 + # CONFIG_EXT4DEV_FS is not set 751 + # CONFIG_REISERFS_FS is not set 752 + # CONFIG_JFS_FS is not set 753 + # CONFIG_FS_POSIX_ACL is not set 754 + # CONFIG_XFS_FS is not set 755 + # CONFIG_OCFS2_FS is not set 756 + CONFIG_DNOTIFY=y 757 + CONFIG_INOTIFY=y 758 + CONFIG_INOTIFY_USER=y 759 + # CONFIG_QUOTA is not set 760 + # CONFIG_AUTOFS_FS is not set 761 + # CONFIG_AUTOFS4_FS is not set 762 + # CONFIG_FUSE_FS is not set 763 + 764 + # 765 + # CD-ROM/DVD Filesystems 766 + # 767 + # CONFIG_ISO9660_FS is not set 768 + # CONFIG_UDF_FS is not set 769 + 770 + # 771 + # DOS/FAT/NT Filesystems 772 + # 773 + # CONFIG_MSDOS_FS is not set 774 + # CONFIG_VFAT_FS is not set 775 + # CONFIG_NTFS_FS is not set 776 + 777 + # 778 + # Pseudo filesystems 779 + # 780 + CONFIG_PROC_FS=y 781 + CONFIG_PROC_SYSCTL=y 782 + CONFIG_SYSFS=y 783 + CONFIG_TMPFS=y 784 + # CONFIG_TMPFS_POSIX_ACL is not set 785 + # CONFIG_HUGETLB_PAGE is not set 786 + # CONFIG_CONFIGFS_FS is not set 787 + 788 + # 789 + # Miscellaneous filesystems 790 + # 791 + # CONFIG_ADFS_FS is not set 792 + # CONFIG_AFFS_FS is not set 793 + # CONFIG_HFS_FS is not set 794 + # CONFIG_HFSPLUS_FS is not set 795 + # CONFIG_BEFS_FS is not set 796 + # CONFIG_BFS_FS is not set 797 + # CONFIG_EFS_FS is not set 798 + CONFIG_JFFS2_FS=y 799 + CONFIG_JFFS2_FS_DEBUG=0 800 + CONFIG_JFFS2_FS_WRITEBUFFER=y 801 + # CONFIG_JFFS2_FS_WBUF_VERIFY is not set 802 + # CONFIG_JFFS2_SUMMARY is not set 803 + # CONFIG_JFFS2_FS_XATTR is not set 804 + CONFIG_JFFS2_COMPRESSION_OPTIONS=y 805 + CONFIG_JFFS2_ZLIB=y 806 + # CONFIG_JFFS2_LZO is not set 807 + CONFIG_JFFS2_RTIME=y 808 + # CONFIG_JFFS2_RUBIN is not set 809 + # CONFIG_JFFS2_CMODE_NONE is not set 810 + CONFIG_JFFS2_CMODE_PRIORITY=y 811 + # CONFIG_JFFS2_CMODE_SIZE is not set 812 + # CONFIG_JFFS2_CMODE_FAVOURLZO is not set 813 + # CONFIG_CRAMFS is not set 814 + # CONFIG_VXFS_FS is not set 815 + # CONFIG_MINIX_FS is not set 816 + # CONFIG_OMFS_FS is not set 817 + # CONFIG_HPFS_FS is not set 818 + # CONFIG_QNX4FS_FS is not set 819 + # CONFIG_ROMFS_FS is not set 820 + # CONFIG_SYSV_FS is not set 821 + # CONFIG_UFS_FS is not set 822 + # CONFIG_NETWORK_FILESYSTEMS is not set 823 + 824 + # 825 + # Partition Types 826 + # 827 + # CONFIG_PARTITION_ADVANCED is not set 828 + CONFIG_MSDOS_PARTITION=y 829 + # CONFIG_NLS is not set 830 + # CONFIG_DLM is not set 831 + 832 + # 833 + # Kernel hacking 834 + # 835 + CONFIG_PRINTK_TIME=y 836 + CONFIG_ENABLE_WARN_DEPRECATED=y 837 + CONFIG_ENABLE_MUST_CHECK=y 838 + CONFIG_FRAME_WARN=1024 839 + # CONFIG_MAGIC_SYSRQ is not set 840 + # CONFIG_UNUSED_SYMBOLS is not set 841 + # CONFIG_DEBUG_FS is not set 842 + # CONFIG_HEADERS_CHECK is not set 843 + CONFIG_DEBUG_KERNEL=y 844 + # CONFIG_DEBUG_SHIRQ is not set 845 + CONFIG_DETECT_SOFTLOCKUP=y 846 + # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set 847 + CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 848 + # CONFIG_SCHED_DEBUG is not set 849 + # CONFIG_SCHEDSTATS is not set 850 + # CONFIG_TIMER_STATS is not set 851 + # CONFIG_DEBUG_OBJECTS is not set 852 + # CONFIG_DEBUG_SLAB is not set 853 + # CONFIG_DEBUG_RT_MUTEXES is not set 854 + # CONFIG_RT_MUTEX_TESTER is not set 855 + # CONFIG_DEBUG_SPINLOCK is not set 856 + # CONFIG_DEBUG_MUTEXES is not set 857 + # CONFIG_DEBUG_LOCK_ALLOC is not set 858 + # CONFIG_PROVE_LOCKING is not set 859 + # CONFIG_LOCK_STAT is not set 860 + # CONFIG_DEBUG_SPINLOCK_SLEEP is not set 861 + # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set 862 + # CONFIG_DEBUG_KOBJECT is not set 863 + # CONFIG_DEBUG_BUGVERBOSE is not set 864 + # CONFIG_DEBUG_INFO is not set 865 + # CONFIG_DEBUG_VM is not set 866 + # CONFIG_DEBUG_WRITECOUNT is not set 867 + # CONFIG_DEBUG_MEMORY_INIT is not set 868 + # CONFIG_DEBUG_LIST is not set 869 + # CONFIG_DEBUG_SG is not set 870 + CONFIG_FRAME_POINTER=y 871 + # CONFIG_BOOT_PRINTK_DELAY is not set 872 + # CONFIG_RCU_TORTURE_TEST is not set 873 + # CONFIG_BACKTRACE_SELF_TEST is not set 874 + # CONFIG_FAULT_INJECTION is not set 875 + # CONFIG_LATENCYTOP is not set 876 + CONFIG_SYSCTL_SYSCALL_CHECK=y 877 + CONFIG_HAVE_FTRACE=y 878 + CONFIG_HAVE_DYNAMIC_FTRACE=y 879 + # CONFIG_FTRACE is not set 880 + # CONFIG_IRQSOFF_TRACER is not set 881 + # CONFIG_SCHED_TRACER is not set 882 + # CONFIG_CONTEXT_SWITCH_TRACER is not set 883 + # CONFIG_SAMPLES is not set 884 + CONFIG_HAVE_ARCH_KGDB=y 885 + # CONFIG_KGDB is not set 886 + # CONFIG_DEBUG_USER is not set 887 + # CONFIG_DEBUG_ERRORS is not set 888 + # CONFIG_DEBUG_STACK_USAGE is not set 889 + # CONFIG_DEBUG_LL is not set 890 + 891 + # 892 + # Security options 893 + # 894 + # CONFIG_KEYS is not set 895 + # CONFIG_SECURITY is not set 896 + # CONFIG_SECURITY_FILE_CAPABILITIES is not set 897 + CONFIG_CRYPTO=y 898 + 899 + # 900 + # Crypto core or helper 901 + # 902 + CONFIG_CRYPTO_ALGAPI=y 903 + CONFIG_CRYPTO_HASH=y 904 + CONFIG_CRYPTO_MANAGER=y 905 + # CONFIG_CRYPTO_GF128MUL is not set 906 + # CONFIG_CRYPTO_NULL is not set 907 + # CONFIG_CRYPTO_CRYPTD is not set 908 + # CONFIG_CRYPTO_AUTHENC is not set 909 + # CONFIG_CRYPTO_TEST is not set 910 + 911 + # 912 + # Authenticated Encryption with Associated Data 913 + # 914 + # CONFIG_CRYPTO_CCM is not set 915 + # CONFIG_CRYPTO_GCM is not set 916 + # CONFIG_CRYPTO_SEQIV is not set 917 + 918 + # 919 + # Block modes 920 + # 921 + # CONFIG_CRYPTO_CBC is not set 922 + # CONFIG_CRYPTO_CTR is not set 923 + # CONFIG_CRYPTO_CTS is not set 924 + # CONFIG_CRYPTO_ECB is not set 925 + # CONFIG_CRYPTO_LRW is not set 926 + # CONFIG_CRYPTO_PCBC is not set 927 + # CONFIG_CRYPTO_XTS is not set 928 + 929 + # 930 + # Hash modes 931 + # 932 + CONFIG_CRYPTO_HMAC=y 933 + # CONFIG_CRYPTO_XCBC is not set 934 + 935 + # 936 + # Digest 937 + # 938 + # CONFIG_CRYPTO_CRC32C is not set 939 + # CONFIG_CRYPTO_MD4 is not set 940 + CONFIG_CRYPTO_MD5=y 941 + # CONFIG_CRYPTO_MICHAEL_MIC is not set 942 + # CONFIG_CRYPTO_RMD128 is not set 943 + # CONFIG_CRYPTO_RMD160 is not set 944 + # CONFIG_CRYPTO_RMD256 is not set 945 + # CONFIG_CRYPTO_RMD320 is not set 946 + CONFIG_CRYPTO_SHA1=y 947 + # CONFIG_CRYPTO_SHA256 is not set 948 + # CONFIG_CRYPTO_SHA512 is not set 949 + # CONFIG_CRYPTO_TGR192 is not set 950 + # CONFIG_CRYPTO_WP512 is not set 951 + 952 + # 953 + # Ciphers 954 + # 955 + # CONFIG_CRYPTO_AES is not set 956 + # CONFIG_CRYPTO_ANUBIS is not set 957 + # CONFIG_CRYPTO_ARC4 is not set 958 + # CONFIG_CRYPTO_BLOWFISH is not set 959 + # CONFIG_CRYPTO_CAMELLIA is not set 960 + # CONFIG_CRYPTO_CAST5 is not set 961 + # CONFIG_CRYPTO_CAST6 is not set 962 + CONFIG_CRYPTO_DES=y 963 + # CONFIG_CRYPTO_FCRYPT is not set 964 + # CONFIG_CRYPTO_KHAZAD is not set 965 + # CONFIG_CRYPTO_SALSA20 is not set 966 + # CONFIG_CRYPTO_SEED is not set 967 + # CONFIG_CRYPTO_SERPENT is not set 968 + # CONFIG_CRYPTO_TEA is not set 969 + # CONFIG_CRYPTO_TWOFISH is not set 970 + 971 + # 972 + # Compression 973 + # 974 + CONFIG_CRYPTO_DEFLATE=y 975 + # CONFIG_CRYPTO_LZO is not set 976 + # CONFIG_CRYPTO_HW is not set 977 + 978 + # 979 + # Library routines 980 + # 981 + CONFIG_BITREVERSE=y 982 + # CONFIG_GENERIC_FIND_FIRST_BIT is not set 983 + # CONFIG_GENERIC_FIND_NEXT_BIT is not set 984 + CONFIG_CRC_CCITT=y 985 + # CONFIG_CRC16 is not set 986 + # CONFIG_CRC_T10DIF is not set 987 + # CONFIG_CRC_ITU_T is not set 988 + CONFIG_CRC32=y 989 + # CONFIG_CRC7 is not set 990 + # CONFIG_LIBCRC32C is not set 991 + CONFIG_ZLIB_INFLATE=y 992 + CONFIG_ZLIB_DEFLATE=y 993 + CONFIG_PLIST=y 994 + CONFIG_HAS_IOMEM=y 995 + CONFIG_HAS_IOPORT=y 996 + CONFIG_HAS_DMA=y
+13 -1
arch/arm/mach-pxa/Kconfig
··· 19 19 config CPU_PXA930 20 20 bool "PXA930 (codename Tavor-P)" 21 21 22 + config CPU_PXA935 23 + bool "PXA935 (codename Tavor-P65)" 24 + 22 25 endmenu 23 26 24 27 endif ··· 202 199 config TRIZEPS_PXA 203 200 bool "PXA based Keith und Koep Trizeps DIMM-Modules" 204 201 202 + config MACH_H5000 203 + bool "HP iPAQ h5000" 204 + select PXA25x 205 + 205 206 config MACH_TRIZEPS4 206 207 bool "Keith und Koep Trizeps4 DIMM-Module" 207 208 depends on TRIZEPS_PXA ··· 290 283 bool "Mitac Mio A701 Support" 291 284 select PXA27x 292 285 select IWMMXT 293 - select LEDS_GPIO 294 286 select HAVE_PWM 295 287 select GPIO_SYSFS 296 288 help ··· 401 395 select CPU_XSCALE 402 396 help 403 397 Select code specific to PXA27x variants 398 + 399 + config CPU_PXA26x 400 + bool 401 + select PXA25x 402 + help 403 + Select code specific to PXA26x (codename Dalhart) 404 404 405 405 config PXA3xx 406 406 bool
+1
arch/arm/mach-pxa/Makefile
··· 35 35 obj-$(CONFIG_ARCH_PXA_IDP) += idp.o 36 36 obj-$(CONFIG_MACH_TRIZEPS4) += trizeps4.o 37 37 obj-$(CONFIG_MACH_COLIBRI) += colibri.o 38 + obj-$(CONFIG_MACH_H5000) += h5000.o 38 39 obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o sharpsl_pm.o corgi_pm.o 39 40 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o 40 41 obj-$(CONFIG_CORGI_SSP_DEPRECATED) += corgi_ssp.o corgi_lcd.o
-1
arch/arm/mach-pxa/clock.c
··· 14 14 15 15 #include <asm/clkdev.h> 16 16 #include <mach/pxa2xx-regs.h> 17 - #include <mach/pxa2xx-gpio.h> 18 17 #include <mach/hardware.h> 19 18 20 19 #include "devices.h"
+4 -1
arch/arm/mach-pxa/cm-x300.c
··· 31 31 #include <mach/mfp-pxa300.h> 32 32 33 33 #include <mach/hardware.h> 34 - #include <mach/gpio.h> 35 34 #include <mach/pxafb.h> 36 35 #include <mach/mmc.h> 37 36 #include <mach/ohci.h> ··· 136 137 GPIO82_GPIO | MFP_PULL_HIGH, /* MMC CD */ 137 138 GPIO85_GPIO, /* MMC WP */ 138 139 GPIO99_GPIO, /* Ethernet IRQ */ 140 + 141 + /* Standard I2C */ 142 + GPIO21_I2C_SCL, 143 + GPIO22_I2C_SDA, 139 144 }; 140 145 141 146 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
+32
arch/arm/mach-pxa/corgi.c
··· 19 19 #include <linux/fs.h> 20 20 #include <linux/interrupt.h> 21 21 #include <linux/mmc/host.h> 22 + #include <linux/mtd/physmap.h> 22 23 #include <linux/pm.h> 23 24 #include <linux/gpio.h> 24 25 #include <linux/backlight.h> ··· 542 541 static inline void corgi_init_spi(void) {} 543 542 #endif 544 543 544 + static struct mtd_partition sharpsl_rom_parts[] = { 545 + { 546 + .name ="Boot PROM Filesystem", 547 + .offset = 0x00120000, 548 + .size = MTDPART_SIZ_FULL, 549 + }, 550 + }; 551 + 552 + static struct physmap_flash_data sharpsl_rom_data = { 553 + .width = 2, 554 + .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), 555 + .parts = sharpsl_rom_parts, 556 + }; 557 + 558 + static struct resource sharpsl_rom_resources[] = { 559 + { 560 + .start = 0x00000000, 561 + .end = 0x007fffff, 562 + .flags = IORESOURCE_MEM, 563 + }, 564 + }; 565 + 566 + static struct platform_device sharpsl_rom_device = { 567 + .name = "physmap-flash", 568 + .id = -1, 569 + .resource = sharpsl_rom_resources, 570 + .num_resources = ARRAY_SIZE(sharpsl_rom_resources), 571 + .dev.platform_data = &sharpsl_rom_data, 572 + }; 573 + 545 574 static struct platform_device *devices[] __initdata = { 546 575 &corgiscoop_device, 547 576 &corgifb_device, 548 577 &corgikbd_device, 549 578 &corgiled_device, 579 + &sharpsl_rom_device, 550 580 }; 551 581 552 582 static void corgi_poweroff(void)
+41 -16
arch/arm/mach-pxa/cpufreq-pxa2xx.c
··· 64 64 65 65 /* Define the refresh period in mSec for the SDRAM and the number of rows */ 66 66 #define SDRAM_TREF 64 /* standard 64ms SDRAM */ 67 - #define SDRAM_ROWS 4096 /* 64MB=8192 32MB=4096 */ 67 + static unsigned int sdram_rows; 68 68 69 69 #define CCLKCFG_TURBO 0x1 70 70 #define CCLKCFG_FCS 0x2 ··· 72 72 #define CCLKCFG_FASTBUS 0x8 73 73 #define MDREFR_DB2_MASK (MDREFR_K2DB2 | MDREFR_K1DB2) 74 74 #define MDREFR_DRI_MASK 0xFFF 75 + 76 + #define MDCNFG_DRAC2(mdcnfg) (((mdcnfg) >> 21) & 0x3) 77 + #define MDCNFG_DRAC0(mdcnfg) (((mdcnfg) >> 5) & 0x3) 75 78 76 79 /* 77 80 * PXA255 definitions ··· 111 108 pxa255_run_freq_table[NUM_PXA25x_RUN_FREQS+1]; 112 109 static struct cpufreq_frequency_table 113 110 pxa255_turbo_freq_table[NUM_PXA25x_TURBO_FREQS+1]; 111 + 112 + static unsigned int pxa255_turbo_table; 113 + module_param(pxa255_turbo_table, uint, 0); 114 + MODULE_PARM_DESC(pxa255_turbo_table, "Selects the frequency table (0 = run table, !0 = turbo table)"); 114 115 115 116 /* 116 117 * PXA270 definitions ··· 165 158 166 159 extern unsigned get_clk_frequency_khz(int info); 167 160 168 - static void find_freq_tables(struct cpufreq_policy *policy, 169 - struct cpufreq_frequency_table **freq_table, 161 + static void find_freq_tables(struct cpufreq_frequency_table **freq_table, 170 162 pxa_freqs_t **pxa_freqs) 171 163 { 172 164 if (cpu_is_pxa25x()) { 173 - if (policy->policy == CPUFREQ_POLICY_PERFORMANCE) { 165 + if (!pxa255_turbo_table) { 174 166 *pxa_freqs = pxa255_run_freqs; 175 167 *freq_table = pxa255_run_freq_table; 176 - } else if (policy->policy == CPUFREQ_POLICY_POWERSAVE) { 168 + } else { 177 169 *pxa_freqs = pxa255_turbo_freqs; 178 170 *freq_table = pxa255_turbo_freq_table; 179 - } else { 180 - printk("CPU PXA: Unknown policy found. " 181 - "Using CPUFREQ_POLICY_PERFORMANCE\n"); 182 - *pxa_freqs = pxa255_run_freqs; 183 - *freq_table = pxa255_run_freq_table; 184 171 } 185 172 } 186 173 if (cpu_is_pxa27x()) { ··· 195 194 } 196 195 } 197 196 197 + static void init_sdram_rows(void) 198 + { 199 + uint32_t mdcnfg = MDCNFG; 200 + unsigned int drac2 = 0, drac0 = 0; 201 + 202 + if (mdcnfg & (MDCNFG_DE2 | MDCNFG_DE3)) 203 + drac2 = MDCNFG_DRAC2(mdcnfg); 204 + 205 + if (mdcnfg & (MDCNFG_DE0 | MDCNFG_DE1)) 206 + drac0 = MDCNFG_DRAC0(mdcnfg); 207 + 208 + sdram_rows = 1 << (11 + max(drac0, drac2)); 209 + } 210 + 198 211 static u32 mdrefr_dri(unsigned int freq) 199 212 { 200 213 u32 dri = 0; 201 214 202 215 if (cpu_is_pxa25x()) 203 - dri = ((freq * SDRAM_TREF) / (SDRAM_ROWS * 32)); 216 + dri = ((freq * SDRAM_TREF) / (sdram_rows * 32)); 204 217 if (cpu_is_pxa27x()) 205 - dri = ((freq * SDRAM_TREF) / (SDRAM_ROWS - 31)) / 32; 218 + dri = ((freq * SDRAM_TREF) / (sdram_rows - 31)) / 32; 206 219 return dri; 207 220 } 208 221 ··· 227 212 pxa_freqs_t *pxa_freqs; 228 213 int ret; 229 214 230 - find_freq_tables(policy, &pxa_freqs_table, &pxa_freqs); 215 + find_freq_tables(&pxa_freqs_table, &pxa_freqs); 231 216 ret = cpufreq_frequency_table_verify(policy, pxa_freqs_table); 232 217 233 218 if (freq_debug) ··· 255 240 unsigned int unused, preset_mdrefr, postset_mdrefr, cclkcfg; 256 241 257 242 /* Get the current policy */ 258 - find_freq_tables(policy, &pxa_freqs_table, &pxa_freq_settings); 243 + find_freq_tables(&pxa_freqs_table, &pxa_freq_settings); 259 244 260 245 /* Lookup the next frequency */ 261 246 if (cpufreq_frequency_table_target(policy, pxa_freqs_table, ··· 344 329 { 345 330 int i; 346 331 unsigned int freq; 332 + struct cpufreq_frequency_table *pxa255_freq_table; 333 + pxa_freqs_t *pxa255_freqs; 347 334 348 335 /* try to guess pxa27x cpu */ 349 336 if (cpu_is_pxa27x()) 350 337 pxa27x_guess_max_freq(); 338 + 339 + init_sdram_rows(); 351 340 352 341 /* set default policy and cpuinfo */ 353 342 policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */ ··· 373 354 } 374 355 pxa255_turbo_freq_table[i].frequency = CPUFREQ_TABLE_END; 375 356 357 + pxa255_turbo_table = !!pxa255_turbo_table; 358 + 376 359 /* Generate the pxa27x cpufreq_frequency_table struct */ 377 360 for (i = 0; i < NUM_PXA27x_FREQS; i++) { 378 361 freq = pxa27x_freqs[i].khz; ··· 389 368 * Set the policy's minimum and maximum frequencies from the tables 390 369 * just constructed. This sets cpuinfo.mxx_freq, min and max. 391 370 */ 392 - if (cpu_is_pxa25x()) 393 - cpufreq_frequency_table_cpuinfo(policy, pxa255_run_freq_table); 371 + if (cpu_is_pxa25x()) { 372 + find_freq_tables(&pxa255_freq_table, &pxa255_freqs); 373 + pr_info("PXA255 cpufreq using %s frequency table\n", 374 + pxa255_turbo_table ? "turbo" : "run"); 375 + cpufreq_frequency_table_cpuinfo(policy, pxa255_freq_table); 376 + } 394 377 else if (cpu_is_pxa27x()) 395 378 cpufreq_frequency_table_cpuinfo(policy, pxa27x_freq_table); 396 379
+77 -18
arch/arm/mach-pxa/devices.c
··· 4 4 #include <linux/platform_device.h> 5 5 #include <linux/dma-mapping.h> 6 6 7 - #include <mach/gpio.h> 7 + #include <mach/pxa-regs.h> 8 8 #include <mach/udc.h> 9 9 #include <mach/pxafb.h> 10 10 #include <mach/mmc.h> 11 11 #include <mach/irda.h> 12 12 #include <mach/i2c.h> 13 - #include <mach/mfp-pxa27x.h> 14 13 #include <mach/ohci.h> 15 14 #include <mach/pxa27x_keypad.h> 16 15 #include <mach/pxa2xx_spi.h> ··· 155 156 156 157 static struct resource pxa_resource_ffuart[] = { 157 158 { 158 - .start = __PREG(FFUART), 159 - .end = __PREG(FFUART) + 35, 159 + .start = 0x40100000, 160 + .end = 0x40100023, 160 161 .flags = IORESOURCE_MEM, 161 162 }, { 162 163 .start = IRQ_FFUART, ··· 174 175 175 176 static struct resource pxa_resource_btuart[] = { 176 177 { 177 - .start = __PREG(BTUART), 178 - .end = __PREG(BTUART) + 35, 178 + .start = 0x40200000, 179 + .end = 0x40200023, 179 180 .flags = IORESOURCE_MEM, 180 181 }, { 181 182 .start = IRQ_BTUART, ··· 193 194 194 195 static struct resource pxa_resource_stuart[] = { 195 196 { 196 - .start = __PREG(STUART), 197 - .end = __PREG(STUART) + 35, 197 + .start = 0x40700000, 198 + .end = 0x40700023, 198 199 .flags = IORESOURCE_MEM, 199 200 }, { 200 201 .start = IRQ_STUART, ··· 212 213 213 214 static struct resource pxa_resource_hwuart[] = { 214 215 { 215 - .start = __PREG(HWUART), 216 - .end = __PREG(HWUART) + 47, 216 + .start = 0x41600000, 217 + .end = 0x4160002F, 217 218 .flags = IORESOURCE_MEM, 218 219 }, { 219 220 .start = IRQ_HWUART, ··· 248 249 .num_resources = ARRAY_SIZE(pxai2c_resources), 249 250 }; 250 251 251 - static unsigned long pxa27x_i2c_mfp_cfg[] = { 252 - GPIO117_I2C_SCL, 253 - GPIO118_I2C_SDA, 254 - }; 255 - 256 252 void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) 257 253 { 258 - if (cpu_is_pxa27x()) 259 - pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg)); 260 254 pxa_register_device(&pxa_device_i2c, info); 261 255 } 256 + 257 + #ifdef CONFIG_PXA27x 258 + static struct resource pxa27x_resources_i2c_power[] = { 259 + { 260 + .start = 0x40f00180, 261 + .end = 0x40f001a3, 262 + .flags = IORESOURCE_MEM, 263 + }, { 264 + .start = IRQ_PWRI2C, 265 + .end = IRQ_PWRI2C, 266 + .flags = IORESOURCE_IRQ, 267 + }, 268 + }; 269 + 270 + struct platform_device pxa27x_device_i2c_power = { 271 + .name = "pxa2xx-i2c", 272 + .id = 1, 273 + .resource = pxa27x_resources_i2c_power, 274 + .num_resources = ARRAY_SIZE(pxa27x_resources_i2c_power), 275 + }; 276 + #endif 277 + 278 + #ifdef CONFIG_PXA3xx 279 + static struct resource pxa3xx_resources_i2c_power[] = { 280 + { 281 + .start = 0x40f500c0, 282 + .end = 0x40f500d3, 283 + .flags = IORESOURCE_MEM, 284 + }, { 285 + .start = IRQ_PWRI2C, 286 + .end = IRQ_PWRI2C, 287 + .flags = IORESOURCE_IRQ, 288 + }, 289 + }; 290 + 291 + struct platform_device pxa3xx_device_i2c_power = { 292 + .name = "pxa2xx-i2c", 293 + .id = 1, 294 + .resource = pxa3xx_resources_i2c_power, 295 + .num_resources = ARRAY_SIZE(pxa3xx_resources_i2c_power), 296 + }; 297 + #endif 262 298 263 299 static struct resource pxai2s_resources[] = { 264 300 { ··· 330 296 pxa_register_device(&pxa_device_ficp, info); 331 297 } 332 298 333 - struct platform_device pxa_device_rtc = { 299 + static struct resource pxa_rtc_resources[] = { 300 + [0] = { 301 + .start = 0x40900000, 302 + .end = 0x40900000 + 0x3b, 303 + .flags = IORESOURCE_MEM, 304 + }, 305 + [1] = { 306 + .start = IRQ_RTC1Hz, 307 + .end = IRQ_RTC1Hz, 308 + .flags = IORESOURCE_IRQ, 309 + }, 310 + [2] = { 311 + .start = IRQ_RTCAlrm, 312 + .end = IRQ_RTCAlrm, 313 + .flags = IORESOURCE_IRQ, 314 + }, 315 + }; 316 + 317 + struct platform_device sa1100_device_rtc = { 334 318 .name = "sa1100-rtc", 335 319 .id = -1, 320 + }; 321 + 322 + struct platform_device pxa_device_rtc = { 323 + .name = "pxa-rtc", 324 + .id = -1, 325 + .num_resources = ARRAY_SIZE(pxa_rtc_resources), 326 + .resource = pxa_rtc_resources, 336 327 }; 337 328 338 329 static struct resource pxa_ac97_resources[] = {
+1
arch/arm/mach-pxa/devices.h
··· 11 11 extern struct platform_device pxa_device_i2c; 12 12 extern struct platform_device pxa_device_i2s; 13 13 extern struct platform_device pxa_device_ficp; 14 + extern struct platform_device sa1100_device_rtc; 14 15 extern struct platform_device pxa_device_rtc; 15 16 extern struct platform_device pxa_device_ac97; 16 17
+4
arch/arm/mach-pxa/ezx.c
··· 113 113 GPIO91_USB_P3_1, /* ICL_XRXD */ 114 114 GPIO56_USB_P3_4, /* ICL_VMOUT */ 115 115 GPIO113_USB_P3_3, /* /ICL_VMIN */ 116 + 117 + /* I2C */ 118 + GPIO117_I2C_SCL, 119 + GPIO118_I2C_SDA, 116 120 }; 117 121 118 122 static void __init ezx_init(void)
+49 -10
arch/arm/mach-pxa/gpio.c
··· 25 25 26 26 #include "generic.h" 27 27 28 + #define GPIO0_BASE ((void __iomem *)io_p2v(0x40E00000)) 29 + #define GPIO1_BASE ((void __iomem *)io_p2v(0x40E00004)) 30 + #define GPIO2_BASE ((void __iomem *)io_p2v(0x40E00008)) 31 + #define GPIO3_BASE ((void __iomem *)io_p2v(0x40E00100)) 32 + 33 + #define GPLR_OFFSET 0x00 34 + #define GPDR_OFFSET 0x0C 35 + #define GPSR_OFFSET 0x18 36 + #define GPCR_OFFSET 0x24 37 + #define GRER_OFFSET 0x30 38 + #define GFER_OFFSET 0x3C 39 + #define GEDR_OFFSET 0x48 28 40 29 41 struct pxa_gpio_chip { 30 42 struct gpio_chip chip; ··· 44 32 }; 45 33 46 34 int pxa_last_gpio; 35 + 36 + #ifdef CONFIG_CPU_PXA26x 37 + /* GPIO86/87/88/89 on PXA26x have their direction bits in GPDR2 inverted, 38 + * as well as their Alternate Function value being '1' for GPIO in GAFRx. 39 + */ 40 + static int __gpio_is_inverted(unsigned gpio) 41 + { 42 + return cpu_is_pxa25x() && gpio > 85; 43 + } 44 + #else 45 + #define __gpio_is_inverted(gpio) (0) 46 + #endif 47 47 48 48 /* 49 49 * Configure pins for GPIO or other functions ··· 99 75 gpdr = pxa->regbase + GPDR_OFFSET; 100 76 local_irq_save(flags); 101 77 value = __raw_readl(gpdr); 102 - value &= ~mask; 78 + if (__gpio_is_inverted(chip->base + offset)) 79 + value |= mask; 80 + else 81 + value &= ~mask; 103 82 __raw_writel(value, gpdr); 104 83 local_irq_restore(flags); 105 84 ··· 124 97 gpdr = pxa->regbase + GPDR_OFFSET; 125 98 local_irq_save(flags); 126 99 tmp = __raw_readl(gpdr); 127 - tmp |= mask; 100 + if (__gpio_is_inverted(chip->base + offset)) 101 + tmp &= ~mask; 102 + else 103 + tmp |= mask; 128 104 __raw_writel(tmp, gpdr); 129 105 local_irq_restore(flags); 130 106 ··· 203 173 */ 204 174 static int __gpio_is_occupied(unsigned gpio) 205 175 { 206 - if (cpu_is_pxa25x() || cpu_is_pxa27x()) 207 - return GAFR(gpio) & (0x3 << (((gpio) & 0xf) * 2)); 208 - else 209 - return 0; 176 + if (cpu_is_pxa27x() || cpu_is_pxa25x()) { 177 + int af = (GAFR(gpio) >> ((gpio & 0xf) * 2)) & 0x3; 178 + int dir = GPDR(gpio) & GPIO_bit(gpio); 179 + 180 + if (__gpio_is_inverted(gpio)) 181 + return af != 1 || dir == 0; 182 + else 183 + return af != 0 || dir != 0; 184 + } 185 + 186 + return 0; 210 187 } 211 188 212 189 static int pxa_gpio_irq_type(unsigned int irq, unsigned int type) ··· 227 190 /* Don't mess with enabled GPIOs using preconfigured edges or 228 191 * GPIOs set to alternate function or to output during probe 229 192 */ 230 - if ((GPIO_IRQ_rising_edge[idx] | 231 - GPIO_IRQ_falling_edge[idx] | 232 - GPDR(gpio)) & GPIO_bit(gpio)) 193 + if ((GPIO_IRQ_rising_edge[idx] & GPIO_bit(gpio)) || 194 + (GPIO_IRQ_falling_edge[idx] & GPIO_bit(gpio))) 233 195 return 0; 234 196 235 197 if (__gpio_is_occupied(gpio)) ··· 237 201 type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING; 238 202 } 239 203 240 - GPDR(gpio) &= ~GPIO_bit(gpio); 204 + if (__gpio_is_inverted(gpio)) 205 + GPDR(gpio) |= GPIO_bit(gpio); 206 + else 207 + GPDR(gpio) &= ~GPIO_bit(gpio); 241 208 242 209 if (type & IRQ_TYPE_EDGE_RISING) 243 210 __set_bit(gpio, GPIO_IRQ_rising_edge);
+200
arch/arm/mach-pxa/h5000.c
··· 1 + /* 2 + * Hardware definitions for HP iPAQ h5xxx Handheld Computers 3 + * 4 + * Copyright 2000-2003 Hewlett-Packard Company. 5 + * Copyright 2002 Jamey Hicks <jamey.hicks@hp.com> 6 + * Copyright 2004-2005 Phil Blundell <pb@handhelds.org> 7 + * Copyright 2007-2008 Anton Vorontsov <cbouatmailru@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 as published by 11 + * the Free Software Foundation; either version 2 of the License, or 12 + * (at your option) any later version. 13 + * 14 + * COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED, 15 + * AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS 16 + * FITNESS FOR ANY PARTICULAR PURPOSE. 17 + * 18 + * Author: Jamey Hicks. 19 + */ 20 + 21 + #include <linux/kernel.h> 22 + #include <linux/init.h> 23 + #include <linux/platform_device.h> 24 + #include <linux/mtd/mtd.h> 25 + #include <linux/mtd/partitions.h> 26 + #include <linux/mtd/physmap.h> 27 + #include <asm/mach-types.h> 28 + #include <asm/mach/arch.h> 29 + #include <asm/mach/map.h> 30 + #include <mach/h5000.h> 31 + #include <mach/pxa-regs.h> 32 + #include <mach/pxa2xx-regs.h> 33 + #include <mach/mfp-pxa25x.h> 34 + #include <mach/udc.h> 35 + #include "generic.h" 36 + 37 + /* 38 + * Flash 39 + */ 40 + 41 + static struct mtd_partition h5000_flash0_partitions[] = { 42 + { 43 + .name = "bootldr", 44 + .size = 0x00040000, 45 + .offset = 0, 46 + .mask_flags = MTD_WRITEABLE, 47 + }, 48 + { 49 + .name = "root", 50 + .size = MTDPART_SIZ_FULL, 51 + .offset = MTDPART_OFS_APPEND, 52 + }, 53 + }; 54 + 55 + static struct mtd_partition h5000_flash1_partitions[] = { 56 + { 57 + .name = "second root", 58 + .size = SZ_16M - 0x00040000, 59 + .offset = 0, 60 + }, 61 + { 62 + .name = "asset", 63 + .size = MTDPART_SIZ_FULL, 64 + .offset = MTDPART_OFS_APPEND, 65 + .mask_flags = MTD_WRITEABLE, 66 + }, 67 + }; 68 + 69 + static struct physmap_flash_data h5000_flash0_data = { 70 + .width = 4, 71 + .parts = h5000_flash0_partitions, 72 + .nr_parts = ARRAY_SIZE(h5000_flash0_partitions), 73 + }; 74 + 75 + static struct physmap_flash_data h5000_flash1_data = { 76 + .width = 4, 77 + .parts = h5000_flash1_partitions, 78 + .nr_parts = ARRAY_SIZE(h5000_flash1_partitions), 79 + }; 80 + 81 + static struct resource h5000_flash0_resources = { 82 + .start = PXA_CS0_PHYS, 83 + .end = PXA_CS0_PHYS + SZ_32M - 1, 84 + .flags = IORESOURCE_MEM | IORESOURCE_MEM_32BIT, 85 + }; 86 + 87 + static struct resource h5000_flash1_resources = { 88 + .start = PXA_CS0_PHYS + SZ_32M, 89 + .end = PXA_CS0_PHYS + SZ_32M + SZ_16M - 1, 90 + .flags = IORESOURCE_MEM | IORESOURCE_MEM_32BIT, 91 + }; 92 + 93 + static struct platform_device h5000_flash[] = { 94 + { 95 + .name = "physmap-flash", 96 + .id = 0, 97 + .resource = &h5000_flash0_resources, 98 + .num_resources = 1, 99 + .dev = { 100 + .platform_data = &h5000_flash0_data, 101 + }, 102 + }, 103 + { 104 + .name = "physmap-flash", 105 + .id = 1, 106 + .resource = &h5000_flash1_resources, 107 + .num_resources = 1, 108 + .dev = { 109 + .platform_data = &h5000_flash1_data, 110 + }, 111 + }, 112 + }; 113 + 114 + /* 115 + * USB Device Controller 116 + */ 117 + 118 + static struct pxa2xx_udc_mach_info h5000_udc_mach_info __initdata = { 119 + .gpio_pullup = H5000_GPIO_USB_PULLUP, 120 + }; 121 + 122 + /* 123 + * GPIO setup 124 + */ 125 + 126 + static unsigned long h5000_pin_config[] __initdata = { 127 + /* Crystal and Clock Signals */ 128 + GPIO12_32KHz, 129 + 130 + /* SDRAM and Static Memory I/O Signals */ 131 + GPIO15_nCS_1, 132 + GPIO78_nCS_2, 133 + GPIO79_nCS_3, 134 + GPIO80_nCS_4, 135 + 136 + /* FFUART */ 137 + GPIO34_FFUART_RXD, 138 + GPIO35_FFUART_CTS, 139 + GPIO36_FFUART_DCD, 140 + GPIO37_FFUART_DSR, 141 + GPIO38_FFUART_RI, 142 + GPIO39_FFUART_TXD, 143 + GPIO40_FFUART_DTR, 144 + GPIO41_FFUART_RTS, 145 + 146 + /* BTUART */ 147 + GPIO42_BTUART_RXD, 148 + GPIO43_BTUART_TXD, 149 + GPIO44_BTUART_CTS, 150 + GPIO45_BTUART_RTS, 151 + 152 + /* SSP1 */ 153 + GPIO23_SSP1_SCLK, 154 + GPIO25_SSP1_TXD, 155 + GPIO26_SSP1_RXD, 156 + }; 157 + 158 + /* 159 + * Localbus setup: 160 + * CS0: Flash; 161 + * CS1: MediaQ chip, select 16-bit bus and vlio; 162 + * CS5: SAMCOP. 163 + */ 164 + 165 + static void fix_msc(void) 166 + { 167 + MSC0 = 0x129c24f2; 168 + MSC1 = 0x7ff424fa; 169 + MSC2 = 0x7ff47ff4; 170 + 171 + MDREFR |= 0x02080000; 172 + } 173 + 174 + /* 175 + * Platform devices 176 + */ 177 + 178 + static struct platform_device *devices[] __initdata = { 179 + &h5000_flash[0], 180 + &h5000_flash[1], 181 + }; 182 + 183 + static void __init h5000_init(void) 184 + { 185 + fix_msc(); 186 + 187 + pxa2xx_mfp_config(ARRAY_AND_SIZE(h5000_pin_config)); 188 + pxa_set_udc_info(&h5000_udc_mach_info); 189 + platform_add_devices(ARRAY_AND_SIZE(devices)); 190 + } 191 + 192 + MACHINE_START(H5400, "HP iPAQ H5000") 193 + .phys_io = 0x40000000, 194 + .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, 195 + .boot_params = 0xa0000100, 196 + .map_io = pxa_map_io, 197 + .init_irq = pxa25x_init_irq, 198 + .timer = &pxa_timer, 199 + .init_machine = h5000_init, 200 + MACHINE_END
+113
arch/arm/mach-pxa/include/mach/h5000.h
··· 1 + /* 2 + * Hardware definitions for HP iPAQ h5xxx Handheld Computers 3 + * 4 + * Copyright(20)02 Hewlett-Packard Company. 5 + * 6 + * This program is free software; you can redistribute it and/or modify 7 + * it under the terms of the GNU General Public License as published by 8 + * the Free Software Foundation; either version 2 of the License, or 9 + * (at your option) any later version. 10 + * 11 + * COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED, 12 + * AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS 13 + * FITNESS FOR ANY PARTICULAR PURPOSE. 14 + * 15 + * Author: Jamey Hicks 16 + */ 17 + 18 + #ifndef __ASM_ARCH_H5000_H 19 + #define __ASM_ARCH_H5000_H 20 + 21 + #include <mach/mfp-pxa25x.h> 22 + 23 + /* 24 + * CPU GPIOs 25 + */ 26 + 27 + #define H5000_GPIO_POWER_BUTTON (0) 28 + #define H5000_GPIO_RESET_BUTTON_N (1) 29 + #define H5000_GPIO_OPT_INT (2) 30 + #define H5000_GPIO_BACKUP_POWER (3) 31 + #define H5000_GPIO_ACTION_BUTTON (4) 32 + #define H5000_GPIO_COM_DCD_SOMETHING (5) /* what is this really ? */ 33 + /* 6 not connected */ 34 + #define H5000_GPIO_RESET_BUTTON_AGAIN_N (7) /* connected to gpio 1 as well */ 35 + /* 8 not connected */ 36 + #define H5000_GPIO_RSO_N (9) /* reset output from max1702 which regulates 3.3 and 2.5 */ 37 + #define H5000_GPIO_ASIC_INT_N (10) /* from companion asic */ 38 + #define H5000_GPIO_BT_ENV_0 (11) /* to LMX9814, set to 1 according to regdump */ 39 + /*(12) not connected */ 40 + #define H5000_GPIO_BT_ENV_1 (13) /* to LMX9814, set to 1 according to regdump */ 41 + #define H5000_GPIO_BT_WU (14) /* from LMX9814, Defined as HOST_WAKEUP in the LMX9820 data sheet */ 42 + /*(15) is CS1# */ 43 + /*(16) not connected */ 44 + /*(17) not connected */ 45 + /*(18) is pcmcia ready */ 46 + /*(19) is dreq1 */ 47 + /*(20) is dreq0 */ 48 + #define H5000_GPIO_OE_RD_NWR (21) /* output enable on rd/nwr signal to companion asic */ 49 + /*(22) is not connected */ 50 + #define H5000_GPIO_OPT_SPI_CLK (23) /* to extension pack */ 51 + #define H5000_GPIO_OPT_SPI_CS_N (24) /* to extension pack */ 52 + #define H5000_GPIO_OPT_SPI_DOUT (25) /* to extension pack */ 53 + #define H5000_GPIO_OPT_SPI_DIN (26) /* to extension pack */ 54 + /*(27) not connected */ 55 + #define H5000_GPIO_I2S_BITCLK (28) /* connected to AC97 codec */ 56 + #define H5000_GPIO_I2S_DATAOUT (29) /* connected to AC97 codec */ 57 + #define H5000_GPIO_I2S_DATAIN (30) /* connected to AC97 codec */ 58 + #define H5000_GPIO_I2S_LRCLK (31) /* connected to AC97 codec */ 59 + #define H5000_GPIO_I2S_SYSCLK (32) /* connected to AC97 codec */ 60 + /*(33) is CS5# */ 61 + #define H5000_GPIO_COM_RXD (34) /* connected to cradle/cable connector */ 62 + #define H5000_GPIO_COM_CTS (35) /* connected to cradle/cable connector */ 63 + #define H5000_GPIO_COM_DCD (36) /* connected to cradle/cable connector */ 64 + #define H5000_GPIO_COM_DSR (37) /* connected to cradle/cable connector */ 65 + #define H5000_GPIO_COM_RI (38) /* connected to cradle/cable connector */ 66 + #define H5000_GPIO_COM_TXD (39) /* connected to cradle/cable connector */ 67 + #define H5000_GPIO_COM_DTR (40) /* connected to cradle/cable connector */ 68 + #define H5000_GPIO_COM_RTS (41) /* connected to cradle/cable connector */ 69 + 70 + #define H5000_GPIO_BT_RXD (42) /* connected to BT (LMX9814) */ 71 + #define H5000_GPIO_BT_TXD (43) /* connected to BT (LMX9814) */ 72 + #define H5000_GPIO_BT_CTS (44) /* connected to BT (LMX9814) */ 73 + #define H5000_GPIO_BT_RTS (45) /* connected to BT (LMX9814) */ 74 + 75 + #define H5000_GPIO_IRDA_RXD (46) 76 + #define H5000_GPIO_IRDA_TXD (47) 77 + 78 + #define H5000_GPIO_POE_N (48) /* used for pcmcia */ 79 + #define H5000_GPIO_PWE_N (49) /* used for pcmcia */ 80 + #define H5000_GPIO_PIOR_N (50) /* used for pcmcia */ 81 + #define H5000_GPIO_PIOW_N (51) /* used for pcmcia */ 82 + #define H5000_GPIO_PCE1_N (52) /* used for pcmcia */ 83 + #define H5000_GPIO_PCE2_N (53) /* used for pcmcia */ 84 + #define H5000_GPIO_PSKTSEL (54) /* used for pcmcia */ 85 + #define H5000_GPIO_PREG_N (55) /* used for pcmcia */ 86 + #define H5000_GPIO_PWAIT_N (56) /* used for pcmcia */ 87 + #define H5000_GPIO_IOIS16_N (57) /* used for pcmcia */ 88 + 89 + #define H5000_GPIO_IRDA_SD (58) /* to hsdl3002 sd */ 90 + /*(59) not connected */ 91 + #define H5000_GPIO_POWER_SD_N (60) /* controls power to SD */ 92 + #define H5000_GPIO_POWER_RS232_N (61) /* inverted FORCEON to rs232 transceiver */ 93 + #define H5000_GPIO_POWER_ACCEL_N (62) /* controls power to accel */ 94 + /*(63) is not connected */ 95 + #define H5000_GPIO_OPT_NVRAM (64) /* controls power to expansion pack */ 96 + #define H5000_GPIO_CHG_EN (65) /* to sc801 en */ 97 + #define H5000_GPIO_USB_PULLUP (66) /* USB d+ pullup via 1.5K resistor */ 98 + #define H5000_GPIO_BT_2V8_N (67) /* 2.8V used by bluetooth */ 99 + #define H5000_GPIO_EXT_CHG_RATE (68) /* enables external charging rate */ 100 + /*(69) is not connected */ 101 + #define H5000_GPIO_CIR_RESET (70) /* consumer IR reset */ 102 + #define H5000_GPIO_POWER_LIGHT_SENSOR_N (71) 103 + #define H5000_GPIO_BT_M_RESET (72) 104 + #define H5000_GPIO_STD_CHG_RATE (73) 105 + #define H5000_GPIO_SD_WP_N (74) 106 + #define H5000_GPIO_MOTOR_ON_N (75) /* external pullup on this */ 107 + #define H5000_GPIO_HEADPHONE_DETECT (76) 108 + #define H5000_GPIO_USB_CHG_RATE (77) /* select rate for charging via usb */ 109 + /*(78) is CS2# */ 110 + /*(79) is CS3# */ 111 + /*(80) is CS4# */ 112 + 113 + #endif /* __ASM_ARCH_H5000_H */
+30 -18
arch/arm/mach-pxa/include/mach/hardware.h
··· 102 102 * PXA930 B0 0x69056835 0x5E643013 103 103 * PXA930 B1 0x69056837 0x7E643013 104 104 * PXA930 B2 0x69056838 0x8E643013 105 + * 106 + * PXA935 A0 0x56056931 0x1E653013 107 + * PXA935 B0 0x56056936 0x6E653013 105 108 */ 106 109 #ifdef CONFIG_PXA25x 107 110 #define __cpu_is_pxa210(id) \ ··· 181 178 #define __cpu_is_pxa930(id) \ 182 179 ({ \ 183 180 unsigned int _id = (id) >> 4 & 0xfff; \ 184 - _id == 0x683; \ 181 + _id == 0x683; \ 185 182 }) 186 183 #else 187 184 #define __cpu_is_pxa930(id) (0) 185 + #endif 186 + 187 + #ifdef CONFIG_CPU_PXA935 188 + #define __cpu_is_pxa935(id) \ 189 + ({ \ 190 + unsigned int _id = (id) >> 4 & 0xfff; \ 191 + _id == 0x693; \ 192 + }) 193 + #else 194 + #define __cpu_is_pxa935(id) (0) 188 195 #endif 189 196 190 197 #define cpu_is_pxa210() \ ··· 216 203 ({ \ 217 204 __cpu_is_pxa25x(read_cpuid_id()); \ 218 205 }) 219 - 220 - extern int cpu_is_pxa26x(void); 221 206 222 207 #define cpu_is_pxa27x() \ 223 208 ({ \ ··· 243 232 __cpu_is_pxa930(id); \ 244 233 }) 245 234 235 + #define cpu_is_pxa935() \ 236 + ({ \ 237 + unsigned int id = read_cpuid(CPUID_ID); \ 238 + __cpu_is_pxa935(id); \ 239 + }) 240 + 246 241 /* 247 242 * CPUID Core Generation Bit 248 243 * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x ··· 266 249 _id == 0x3; \ 267 250 }) 268 251 252 + #define __cpu_is_pxa9xx(id) \ 253 + ({ \ 254 + unsigned int _id = (id) >> 4 & 0xfff; \ 255 + _id == 0x683 || _id == 0x693; \ 256 + }) 257 + 269 258 #define cpu_is_pxa2xx() \ 270 259 ({ \ 271 260 __cpu_is_pxa2xx(read_cpuid_id()); \ ··· 282 259 __cpu_is_pxa3xx(read_cpuid_id()); \ 283 260 }) 284 261 285 - /* 286 - * Handy routine to set GPIO alternate functions 287 - */ 288 - extern int pxa_gpio_mode( int gpio_mode ); 289 - 290 - /* 291 - * Return GPIO level, nonzero means high, zero is low 292 - */ 293 - extern int pxa_gpio_get_value(unsigned gpio); 294 - 295 - /* 296 - * Set output GPIO level 297 - */ 298 - extern void pxa_gpio_set_value(unsigned gpio, int value); 299 - 262 + #define cpu_is_pxa9xx() \ 263 + ({ \ 264 + __cpu_is_pxa9xx(read_cpuid_id()); \ 265 + }) 300 266 /* 301 267 * return current memory and LCD clock frequency in units of 10kHz 302 268 */
+31
arch/arm/mach-pxa/include/mach/mfp-pxa25x.h
··· 158 158 #define GPIO76_LCD_PCLK MFP_CFG_OUT(GPIO76, AF2, DRIVE_LOW) 159 159 #define GPIO77_LCD_BIAS MFP_CFG_OUT(GPIO77, AF2, DRIVE_LOW) 160 160 161 + #ifdef CONFIG_CPU_PXA26x 162 + /* GPIO */ 163 + #define GPIO85_GPIO MFP_CFG_IN(GPIO85, AF0) 164 + #define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF1) 165 + #define GPIO87_GPIO MFP_CFG_IN(GPIO87, AF1) 166 + #define GPIO88_GPIO MFP_CFG_IN(GPIO88, AF1) 167 + #define GPIO89_GPIO MFP_CFG_IN(GPIO89, AF1) 168 + 169 + /* SDRAM */ 170 + #define GPIO86_nSDCS2 MFP_CFG_OUT(GPIO86, AF0, DRIVE_HIGH) 171 + #define GPIO87_nSDCS3 MFP_CFG_OUT(GPIO87, AF0, DRIVE_HIGH) 172 + #define GPIO88_RDnWR MFP_CFG_OUT(GPIO88, AF0, DRIVE_HIGH) 173 + #define GPIO89_nACRESET MFP_CFG_OUT(GPIO89, AF0, DRIVE_HIGH) 174 + 175 + /* USB */ 176 + #define GPIO9_USB_RCV MFP_CFG_IN(GPIO9, AF1) 177 + #define GPIO32_USB_VP MFP_CFG_IN(GPIO32, AF2) 178 + #define GPIO34_USB_VM MFP_CFG_IN(GPIO34, AF2) 179 + #define GPIO39_USB_VPO MFP_CFG_OUT(GPIO39, AF3, DRIVE_LOW) 180 + #define GPIO56_USB_VMO MFP_CFG_OUT(GPIO56, AF1, DRIVE_LOW) 181 + #define GPIO57_USB_nOE MFP_CFG_OUT(GPIO57, AF1, DRIVE_HIGH) 182 + 183 + /* ASSP */ 184 + #define GPIO28_ASSP_BITCLK_IN MFP_CFG_IN(GPIO28, AF3) 185 + #define GPIO28_ASSP_BITCLK_OUT MFP_CFG_OUT(GPIO28, AF3, DRIVE_LOW) 186 + #define GPIO29_ASSP_RXD MFP_CFG_IN(GPIO29, AF3) 187 + #define GPIO30_ASSP_TXD MFP_CFG_OUT(GPIO30, AF3, DRIVE_LOW) 188 + #define GPIO31_ASSP_SFRM_IN MFP_CFG_IN(GPIO31, AF1) 189 + #define GPIO31_ASSP_SFRM_OUT MFP_CFG_OUT(GPIO31, AF3, DRIVE_LOW) 190 + #endif 191 + 161 192 #endif /* __ASM_ARCH_MFP_PXA25X_H */
+6
arch/arm/mach-pxa/include/mach/mfp-pxa27x.h
··· 11 11 #include <mach/mfp.h> 12 12 #include <mach/mfp-pxa2xx.h> 13 13 14 + /* Note: GPIO3/GPIO4 will be driven by Power I2C when PCFR/PI2C_EN 15 + * bit is set, regardless of the GPIO configuration 16 + */ 17 + #define GPIO3_GPIO MFP_CFG_IN(GPIO3, AF0) 18 + #define GPIO4_GPIO MFP_CFG_IN(GPIO4, AF0) 19 + 14 20 /* GPIO */ 15 21 #define GPIO85_GPIO MFP_CFG_IN(GPIO85, AF0) 16 22 #define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF0)
+7 -2
arch/arm/mach-pxa/include/mach/mioa701.h
··· 10 10 (MFP_PIN(pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state)) 11 11 12 12 /* Global GPIOs */ 13 - #define GPIO9_CHARGE_nEN 9 13 + #define GPIO9_CHARGE_EN 9 14 14 #define GPIO18_POWEROFF 18 15 15 #define GPIO87_LCD_POWER 87 16 + #define GPIO96_AC_DETECT 96 17 + #define GPIO80_MAYBE_CHARGE_VDROP 80 /* Drop of 88mV */ 16 18 17 19 /* USB */ 18 - #define GPIO13_USB_DETECT 13 20 + #define GPIO13_nUSB_DETECT 13 19 21 #define GPIO22_USB_ENABLE 22 20 22 21 23 /* SDIO bits */ ··· 26 24 #define GPIO91_SDIO_EN 91 27 25 28 26 /* Bluetooth */ 27 + #define GPIO14_BT_nACTIVITY 14 29 28 #define GPIO83_BT_ON 83 29 + #define GPIO77_BT_UNKNOWN1 77 30 + #define GPIO86_BT_MAYBE_nRESET 86 30 31 31 32 /* GPS */ 32 33 #define GPIO23_GPS_UNKNOWN1 23
+1 -506
arch/arm/mach-pxa/include/mach/pxa-regs.h
··· 13 13 #ifndef __PXA_REGS_H 14 14 #define __PXA_REGS_H 15 15 16 + #include <mach/hardware.h> 16 17 17 18 /* 18 19 * PXA Chip selects ··· 124 123 #define DCMD_WIDTH4 (3 << 14) /* 4 byte width (Word) */ 125 124 #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ 126 125 127 - 128 - /* 129 - * UARTs 130 - */ 131 - 132 - /* Full Function UART (FFUART) */ 133 - #define FFUART FFRBR 134 - #define FFRBR __REG(0x40100000) /* Receive Buffer Register (read only) */ 135 - #define FFTHR __REG(0x40100000) /* Transmit Holding Register (write only) */ 136 - #define FFIER __REG(0x40100004) /* Interrupt Enable Register (read/write) */ 137 - #define FFIIR __REG(0x40100008) /* Interrupt ID Register (read only) */ 138 - #define FFFCR __REG(0x40100008) /* FIFO Control Register (write only) */ 139 - #define FFLCR __REG(0x4010000C) /* Line Control Register (read/write) */ 140 - #define FFMCR __REG(0x40100010) /* Modem Control Register (read/write) */ 141 - #define FFLSR __REG(0x40100014) /* Line Status Register (read only) */ 142 - #define FFMSR __REG(0x40100018) /* Modem Status Register (read only) */ 143 - #define FFSPR __REG(0x4010001C) /* Scratch Pad Register (read/write) */ 144 - #define FFISR __REG(0x40100020) /* Infrared Selection Register (read/write) */ 145 - #define FFDLL __REG(0x40100000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 146 - #define FFDLH __REG(0x40100004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 147 - 148 - /* Bluetooth UART (BTUART) */ 149 - #define BTUART BTRBR 150 - #define BTRBR __REG(0x40200000) /* Receive Buffer Register (read only) */ 151 - #define BTTHR __REG(0x40200000) /* Transmit Holding Register (write only) */ 152 - #define BTIER __REG(0x40200004) /* Interrupt Enable Register (read/write) */ 153 - #define BTIIR __REG(0x40200008) /* Interrupt ID Register (read only) */ 154 - #define BTFCR __REG(0x40200008) /* FIFO Control Register (write only) */ 155 - #define BTLCR __REG(0x4020000C) /* Line Control Register (read/write) */ 156 - #define BTMCR __REG(0x40200010) /* Modem Control Register (read/write) */ 157 - #define BTLSR __REG(0x40200014) /* Line Status Register (read only) */ 158 - #define BTMSR __REG(0x40200018) /* Modem Status Register (read only) */ 159 - #define BTSPR __REG(0x4020001C) /* Scratch Pad Register (read/write) */ 160 - #define BTISR __REG(0x40200020) /* Infrared Selection Register (read/write) */ 161 - #define BTDLL __REG(0x40200000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 162 - #define BTDLH __REG(0x40200004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 163 - 164 - /* Standard UART (STUART) */ 165 - #define STUART STRBR 166 - #define STRBR __REG(0x40700000) /* Receive Buffer Register (read only) */ 167 - #define STTHR __REG(0x40700000) /* Transmit Holding Register (write only) */ 168 - #define STIER __REG(0x40700004) /* Interrupt Enable Register (read/write) */ 169 - #define STIIR __REG(0x40700008) /* Interrupt ID Register (read only) */ 170 - #define STFCR __REG(0x40700008) /* FIFO Control Register (write only) */ 171 - #define STLCR __REG(0x4070000C) /* Line Control Register (read/write) */ 172 - #define STMCR __REG(0x40700010) /* Modem Control Register (read/write) */ 173 - #define STLSR __REG(0x40700014) /* Line Status Register (read only) */ 174 - #define STMSR __REG(0x40700018) /* Reserved */ 175 - #define STSPR __REG(0x4070001C) /* Scratch Pad Register (read/write) */ 176 - #define STISR __REG(0x40700020) /* Infrared Selection Register (read/write) */ 177 - #define STDLL __REG(0x40700000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 178 - #define STDLH __REG(0x40700004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 179 - 180 - /* Hardware UART (HWUART) */ 181 - #define HWUART HWRBR 182 - #define HWRBR __REG(0x41600000) /* Receive Buffer Register (read only) */ 183 - #define HWTHR __REG(0x41600000) /* Transmit Holding Register (write only) */ 184 - #define HWIER __REG(0x41600004) /* Interrupt Enable Register (read/write) */ 185 - #define HWIIR __REG(0x41600008) /* Interrupt ID Register (read only) */ 186 - #define HWFCR __REG(0x41600008) /* FIFO Control Register (write only) */ 187 - #define HWLCR __REG(0x4160000C) /* Line Control Register (read/write) */ 188 - #define HWMCR __REG(0x41600010) /* Modem Control Register (read/write) */ 189 - #define HWLSR __REG(0x41600014) /* Line Status Register (read only) */ 190 - #define HWMSR __REG(0x41600018) /* Modem Status Register (read only) */ 191 - #define HWSPR __REG(0x4160001C) /* Scratch Pad Register (read/write) */ 192 - #define HWISR __REG(0x41600020) /* Infrared Selection Register (read/write) */ 193 - #define HWFOR __REG(0x41600024) /* Receive FIFO Occupancy Register (read only) */ 194 - #define HWABR __REG(0x41600028) /* Auto-Baud Control Register (read/write) */ 195 - #define HWACR __REG(0x4160002C) /* Auto-Baud Count Register (read only) */ 196 - #define HWDLL __REG(0x41600000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 197 - #define HWDLH __REG(0x41600004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 198 - 199 - #define IER_DMAE (1 << 7) /* DMA Requests Enable */ 200 - #define IER_UUE (1 << 6) /* UART Unit Enable */ 201 - #define IER_NRZE (1 << 5) /* NRZ coding Enable */ 202 - #define IER_RTIOE (1 << 4) /* Receiver Time Out Interrupt Enable */ 203 - #define IER_MIE (1 << 3) /* Modem Interrupt Enable */ 204 - #define IER_RLSE (1 << 2) /* Receiver Line Status Interrupt Enable */ 205 - #define IER_TIE (1 << 1) /* Transmit Data request Interrupt Enable */ 206 - #define IER_RAVIE (1 << 0) /* Receiver Data Available Interrupt Enable */ 207 - 208 - #define IIR_FIFOES1 (1 << 7) /* FIFO Mode Enable Status */ 209 - #define IIR_FIFOES0 (1 << 6) /* FIFO Mode Enable Status */ 210 - #define IIR_TOD (1 << 3) /* Time Out Detected */ 211 - #define IIR_IID2 (1 << 2) /* Interrupt Source Encoded */ 212 - #define IIR_IID1 (1 << 1) /* Interrupt Source Encoded */ 213 - #define IIR_IP (1 << 0) /* Interrupt Pending (active low) */ 214 - 215 - #define FCR_ITL2 (1 << 7) /* Interrupt Trigger Level */ 216 - #define FCR_ITL1 (1 << 6) /* Interrupt Trigger Level */ 217 - #define FCR_RESETTF (1 << 2) /* Reset Transmitter FIFO */ 218 - #define FCR_RESETRF (1 << 1) /* Reset Receiver FIFO */ 219 - #define FCR_TRFIFOE (1 << 0) /* Transmit and Receive FIFO Enable */ 220 - #define FCR_ITL_1 (0) 221 - #define FCR_ITL_8 (FCR_ITL1) 222 - #define FCR_ITL_16 (FCR_ITL2) 223 - #define FCR_ITL_32 (FCR_ITL2|FCR_ITL1) 224 - 225 - #define LCR_DLAB (1 << 7) /* Divisor Latch Access Bit */ 226 - #define LCR_SB (1 << 6) /* Set Break */ 227 - #define LCR_STKYP (1 << 5) /* Sticky Parity */ 228 - #define LCR_EPS (1 << 4) /* Even Parity Select */ 229 - #define LCR_PEN (1 << 3) /* Parity Enable */ 230 - #define LCR_STB (1 << 2) /* Stop Bit */ 231 - #define LCR_WLS1 (1 << 1) /* Word Length Select */ 232 - #define LCR_WLS0 (1 << 0) /* Word Length Select */ 233 - 234 - #define LSR_FIFOE (1 << 7) /* FIFO Error Status */ 235 - #define LSR_TEMT (1 << 6) /* Transmitter Empty */ 236 - #define LSR_TDRQ (1 << 5) /* Transmit Data Request */ 237 - #define LSR_BI (1 << 4) /* Break Interrupt */ 238 - #define LSR_FE (1 << 3) /* Framing Error */ 239 - #define LSR_PE (1 << 2) /* Parity Error */ 240 - #define LSR_OE (1 << 1) /* Overrun Error */ 241 - #define LSR_DR (1 << 0) /* Data Ready */ 242 - 243 - #define MCR_LOOP (1 << 4) 244 - #define MCR_OUT2 (1 << 3) /* force MSR_DCD in loopback mode */ 245 - #define MCR_OUT1 (1 << 2) /* force MSR_RI in loopback mode */ 246 - #define MCR_RTS (1 << 1) /* Request to Send */ 247 - #define MCR_DTR (1 << 0) /* Data Terminal Ready */ 248 - 249 - #define MSR_DCD (1 << 7) /* Data Carrier Detect */ 250 - #define MSR_RI (1 << 6) /* Ring Indicator */ 251 - #define MSR_DSR (1 << 5) /* Data Set Ready */ 252 - #define MSR_CTS (1 << 4) /* Clear To Send */ 253 - #define MSR_DDCD (1 << 3) /* Delta Data Carrier Detect */ 254 - #define MSR_TERI (1 << 2) /* Trailing Edge Ring Indicator */ 255 - #define MSR_DDSR (1 << 1) /* Delta Data Set Ready */ 256 - #define MSR_DCTS (1 << 0) /* Delta Clear To Send */ 257 - 258 - /* 259 - * IrSR (Infrared Selection Register) 260 - */ 261 - #define STISR_RXPL (1 << 4) /* Receive Data Polarity */ 262 - #define STISR_TXPL (1 << 3) /* Transmit Data Polarity */ 263 - #define STISR_XMODE (1 << 2) /* Transmit Pulse Width Select */ 264 - #define STISR_RCVEIR (1 << 1) /* Receiver SIR Enable */ 265 - #define STISR_XMITIR (1 << 0) /* Transmitter SIR Enable */ 266 - 267 - 268 - /* 269 - * I2C registers - moved into drivers/i2c/busses/i2c-pxa.c 270 - */ 271 - 272 - /* 273 - * Serial Audio Controller - moved into sound/soc/pxa/pxa2xx-i2s.c 274 - */ 275 - 276 - /* 277 - * AC97 Controller registers 278 - */ 279 - 280 - #define POCR __REG(0x40500000) /* PCM Out Control Register */ 281 - #define POCR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 282 - #define POCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 283 - 284 - #define PICR __REG(0x40500004) /* PCM In Control Register */ 285 - #define PICR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 286 - #define PICR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 287 - 288 - #define MCCR __REG(0x40500008) /* Mic In Control Register */ 289 - #define MCCR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 290 - #define MCCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 291 - 292 - #define GCR __REG(0x4050000C) /* Global Control Register */ 293 - #ifdef CONFIG_PXA3xx 294 - #define GCR_CLKBPB (1 << 31) /* Internal clock enable */ 295 - #endif 296 - #define GCR_nDMAEN (1 << 24) /* non DMA Enable */ 297 - #define GCR_CDONE_IE (1 << 19) /* Command Done Interrupt Enable */ 298 - #define GCR_SDONE_IE (1 << 18) /* Status Done Interrupt Enable */ 299 - #define GCR_SECRDY_IEN (1 << 9) /* Secondary Ready Interrupt Enable */ 300 - #define GCR_PRIRDY_IEN (1 << 8) /* Primary Ready Interrupt Enable */ 301 - #define GCR_SECRES_IEN (1 << 5) /* Secondary Resume Interrupt Enable */ 302 - #define GCR_PRIRES_IEN (1 << 4) /* Primary Resume Interrupt Enable */ 303 - #define GCR_ACLINK_OFF (1 << 3) /* AC-link Shut Off */ 304 - #define GCR_WARM_RST (1 << 2) /* AC97 Warm Reset */ 305 - #define GCR_COLD_RST (1 << 1) /* AC'97 Cold Reset (0 = active) */ 306 - #define GCR_GIE (1 << 0) /* Codec GPI Interrupt Enable */ 307 - 308 - #define POSR __REG(0x40500010) /* PCM Out Status Register */ 309 - #define POSR_FIFOE (1 << 4) /* FIFO error */ 310 - #define POSR_FSR (1 << 2) /* FIFO Service Request */ 311 - 312 - #define PISR __REG(0x40500014) /* PCM In Status Register */ 313 - #define PISR_FIFOE (1 << 4) /* FIFO error */ 314 - #define PISR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 315 - #define PISR_FSR (1 << 2) /* FIFO Service Request */ 316 - 317 - #define MCSR __REG(0x40500018) /* Mic In Status Register */ 318 - #define MCSR_FIFOE (1 << 4) /* FIFO error */ 319 - #define MCSR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 320 - #define MCSR_FSR (1 << 2) /* FIFO Service Request */ 321 - 322 - #define GSR __REG(0x4050001C) /* Global Status Register */ 323 - #define GSR_CDONE (1 << 19) /* Command Done */ 324 - #define GSR_SDONE (1 << 18) /* Status Done */ 325 - #define GSR_RDCS (1 << 15) /* Read Completion Status */ 326 - #define GSR_BIT3SLT12 (1 << 14) /* Bit 3 of slot 12 */ 327 - #define GSR_BIT2SLT12 (1 << 13) /* Bit 2 of slot 12 */ 328 - #define GSR_BIT1SLT12 (1 << 12) /* Bit 1 of slot 12 */ 329 - #define GSR_SECRES (1 << 11) /* Secondary Resume Interrupt */ 330 - #define GSR_PRIRES (1 << 10) /* Primary Resume Interrupt */ 331 - #define GSR_SCR (1 << 9) /* Secondary Codec Ready */ 332 - #define GSR_PCR (1 << 8) /* Primary Codec Ready */ 333 - #define GSR_MCINT (1 << 7) /* Mic In Interrupt */ 334 - #define GSR_POINT (1 << 6) /* PCM Out Interrupt */ 335 - #define GSR_PIINT (1 << 5) /* PCM In Interrupt */ 336 - #define GSR_ACOFFD (1 << 3) /* AC-link Shut Off Done */ 337 - #define GSR_MOINT (1 << 2) /* Modem Out Interrupt */ 338 - #define GSR_MIINT (1 << 1) /* Modem In Interrupt */ 339 - #define GSR_GSCI (1 << 0) /* Codec GPI Status Change Interrupt */ 340 - 341 - #define CAR __REG(0x40500020) /* CODEC Access Register */ 342 - #define CAR_CAIP (1 << 0) /* Codec Access In Progress */ 343 - 344 - #define PCDR __REG(0x40500040) /* PCM FIFO Data Register */ 345 - #define MCDR __REG(0x40500060) /* Mic-in FIFO Data Register */ 346 - 347 - #define MOCR __REG(0x40500100) /* Modem Out Control Register */ 348 - #define MOCR_FEIE (1 << 3) /* FIFO Error */ 349 - #define MOCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 350 - 351 - #define MICR __REG(0x40500108) /* Modem In Control Register */ 352 - #define MICR_FEIE (1 << 3) /* FIFO Error */ 353 - #define MICR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 354 - 355 - #define MOSR __REG(0x40500110) /* Modem Out Status Register */ 356 - #define MOSR_FIFOE (1 << 4) /* FIFO error */ 357 - #define MOSR_FSR (1 << 2) /* FIFO Service Request */ 358 - 359 - #define MISR __REG(0x40500118) /* Modem In Status Register */ 360 - #define MISR_FIFOE (1 << 4) /* FIFO error */ 361 - #define MISR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 362 - #define MISR_FSR (1 << 2) /* FIFO Service Request */ 363 - 364 - #define MODR __REG(0x40500140) /* Modem FIFO Data Register */ 365 - 366 - #define PAC_REG_BASE __REG(0x40500200) /* Primary Audio Codec */ 367 - #define SAC_REG_BASE __REG(0x40500300) /* Secondary Audio Codec */ 368 - #define PMC_REG_BASE __REG(0x40500400) /* Primary Modem Codec */ 369 - #define SMC_REG_BASE __REG(0x40500500) /* Secondary Modem Codec */ 370 - 371 - 372 - /* 373 - * Fast Infrared Communication Port 374 - */ 375 - 376 - #define FICP __REG(0x40800000) /* Start of FICP area */ 377 - #define ICCR0 __REG(0x40800000) /* ICP Control Register 0 */ 378 - #define ICCR1 __REG(0x40800004) /* ICP Control Register 1 */ 379 - #define ICCR2 __REG(0x40800008) /* ICP Control Register 2 */ 380 - #define ICDR __REG(0x4080000c) /* ICP Data Register */ 381 - #define ICSR0 __REG(0x40800014) /* ICP Status Register 0 */ 382 - #define ICSR1 __REG(0x40800018) /* ICP Status Register 1 */ 383 - 384 - #define ICCR0_AME (1 << 7) /* Address match enable */ 385 - #define ICCR0_TIE (1 << 6) /* Transmit FIFO interrupt enable */ 386 - #define ICCR0_RIE (1 << 5) /* Recieve FIFO interrupt enable */ 387 - #define ICCR0_RXE (1 << 4) /* Receive enable */ 388 - #define ICCR0_TXE (1 << 3) /* Transmit enable */ 389 - #define ICCR0_TUS (1 << 2) /* Transmit FIFO underrun select */ 390 - #define ICCR0_LBM (1 << 1) /* Loopback mode */ 391 - #define ICCR0_ITR (1 << 0) /* IrDA transmission */ 392 - 393 - #define ICCR2_RXP (1 << 3) /* Receive Pin Polarity select */ 394 - #define ICCR2_TXP (1 << 2) /* Transmit Pin Polarity select */ 395 - #define ICCR2_TRIG (3 << 0) /* Receive FIFO Trigger threshold */ 396 - #define ICCR2_TRIG_8 (0 << 0) /* >= 8 bytes */ 397 - #define ICCR2_TRIG_16 (1 << 0) /* >= 16 bytes */ 398 - #define ICCR2_TRIG_32 (2 << 0) /* >= 32 bytes */ 399 - 400 - #ifdef CONFIG_PXA27x 401 - #define ICSR0_EOC (1 << 6) /* DMA End of Descriptor Chain */ 402 - #endif 403 - #define ICSR0_FRE (1 << 5) /* Framing error */ 404 - #define ICSR0_RFS (1 << 4) /* Receive FIFO service request */ 405 - #define ICSR0_TFS (1 << 3) /* Transnit FIFO service request */ 406 - #define ICSR0_RAB (1 << 2) /* Receiver abort */ 407 - #define ICSR0_TUR (1 << 1) /* Trunsmit FIFO underun */ 408 - #define ICSR0_EIF (1 << 0) /* End/Error in FIFO */ 409 - 410 - #define ICSR1_ROR (1 << 6) /* Receiver FIFO underrun */ 411 - #define ICSR1_CRE (1 << 5) /* CRC error */ 412 - #define ICSR1_EOF (1 << 4) /* End of frame */ 413 - #define ICSR1_TNF (1 << 3) /* Transmit FIFO not full */ 414 - #define ICSR1_RNE (1 << 2) /* Receive FIFO not empty */ 415 - #define ICSR1_TBY (1 << 1) /* Tramsmiter busy flag */ 416 - #define ICSR1_RSY (1 << 0) /* Recevier synchronized flag */ 417 - 418 - 419 126 /* 420 127 * Real Time Clock 421 128 */ ··· 172 463 173 464 174 465 /* 175 - * Pulse Width Modulator 176 - */ 177 - 178 - #define PWM_CTRL0 __REG(0x40B00000) /* PWM 0 Control Register */ 179 - #define PWM_PWDUTY0 __REG(0x40B00004) /* PWM 0 Duty Cycle Register */ 180 - #define PWM_PERVAL0 __REG(0x40B00008) /* PWM 0 Period Control Register */ 181 - 182 - #define PWM_CTRL1 __REG(0x40C00000) /* PWM 1Control Register */ 183 - #define PWM_PWDUTY1 __REG(0x40C00004) /* PWM 1 Duty Cycle Register */ 184 - #define PWM_PERVAL1 __REG(0x40C00008) /* PWM 1 Period Control Register */ 185 - 186 - 187 - /* 188 466 * Interrupt Controller 189 467 */ 190 468 ··· 191 495 /* 192 496 * General Purpose I/O 193 497 */ 194 - 195 - #define GPIO0_BASE ((void __iomem *)io_p2v(0x40E00000)) 196 - #define GPIO1_BASE ((void __iomem *)io_p2v(0x40E00004)) 197 - #define GPIO2_BASE ((void __iomem *)io_p2v(0x40E00008)) 198 - #define GPIO3_BASE ((void __iomem *)io_p2v(0x40E00100)) 199 - 200 - #define GPLR_OFFSET 0x00 201 - #define GPDR_OFFSET 0x0C 202 - #define GPSR_OFFSET 0x18 203 - #define GPCR_OFFSET 0x24 204 - #define GRER_OFFSET 0x30 205 - #define GFER_OFFSET 0x3C 206 - #define GEDR_OFFSET 0x48 207 498 208 499 #define GPLR0 __REG(0x40E00000) /* GPIO Pin-Level Register GPIO<31:0> */ 209 500 #define GPLR1 __REG(0x40E00004) /* GPIO Pin-Level Register GPIO<63:32> */ ··· 241 558 242 559 #define GPIO_bit(x) (1 << ((x) & 0x1f)) 243 560 244 - #if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx) 245 - 246 - /* Interrupt Controller */ 247 - 248 561 #define _GPLR(x) __REG2(0x40E00000, ((x) & 0x60) >> 3) 249 562 #define _GPDR(x) __REG2(0x40E0000C, ((x) & 0x60) >> 3) 250 563 #define _GPSR(x) __REG2(0x40E00018, ((x) & 0x60) >> 3) ··· 259 580 #define GEDR(x) (*((((x) & 0x7f) < 96) ? &_GEDR(x) : &GEDR3)) 260 581 #define GAFR(x) (*((((x) & 0x7f) < 96) ? &_GAFR(x) : \ 261 582 ((((x) & 0x7f) < 112) ? &GAFR3_L : &GAFR3_U))) 262 - #else 263 - 264 - #define GPLR(x) __REG2(0x40E00000, ((x) & 0x60) >> 3) 265 - #define GPDR(x) __REG2(0x40E0000C, ((x) & 0x60) >> 3) 266 - #define GPSR(x) __REG2(0x40E00018, ((x) & 0x60) >> 3) 267 - #define GPCR(x) __REG2(0x40E00024, ((x) & 0x60) >> 3) 268 - #define GRER(x) __REG2(0x40E00030, ((x) & 0x60) >> 3) 269 - #define GFER(x) __REG2(0x40E0003C, ((x) & 0x60) >> 3) 270 - #define GEDR(x) __REG2(0x40E00048, ((x) & 0x60) >> 3) 271 - #define GAFR(x) __REG2(0x40E00054, ((x) & 0x70) >> 2) 272 - 273 - #endif 274 - 275 - /* 276 - * Power Manager - see pxa2xx-regs.h 277 - */ 278 - 279 - /* 280 - * SSP Serial Port Registers - see arch/arm/mach-pxa/include/mach/regs-ssp.h 281 - */ 282 - 283 - /* 284 - * MultiMediaCard (MMC) controller - see drivers/mmc/host/pxamci.h 285 - */ 286 - 287 - /* 288 - * Core Clock - see arch/arm/mach-pxa/include/mach/pxa2xx-regs.h 289 - */ 290 - 291 - #ifdef CONFIG_PXA27x 292 - 293 - /* Camera Interface */ 294 - #define CICR0 __REG(0x50000000) 295 - #define CICR1 __REG(0x50000004) 296 - #define CICR2 __REG(0x50000008) 297 - #define CICR3 __REG(0x5000000C) 298 - #define CICR4 __REG(0x50000010) 299 - #define CISR __REG(0x50000014) 300 - #define CIFR __REG(0x50000018) 301 - #define CITOR __REG(0x5000001C) 302 - #define CIBR0 __REG(0x50000028) 303 - #define CIBR1 __REG(0x50000030) 304 - #define CIBR2 __REG(0x50000038) 305 - 306 - #define CICR0_DMAEN (1 << 31) /* DMA request enable */ 307 - #define CICR0_PAR_EN (1 << 30) /* Parity enable */ 308 - #define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */ 309 - #define CICR0_ENB (1 << 28) /* Camera interface enable */ 310 - #define CICR0_DIS (1 << 27) /* Camera interface disable */ 311 - #define CICR0_SIM (0x7 << 24) /* Sensor interface mode mask */ 312 - #define CICR0_TOM (1 << 9) /* Time-out mask */ 313 - #define CICR0_RDAVM (1 << 8) /* Receive-data-available mask */ 314 - #define CICR0_FEM (1 << 7) /* FIFO-empty mask */ 315 - #define CICR0_EOLM (1 << 6) /* End-of-line mask */ 316 - #define CICR0_PERRM (1 << 5) /* Parity-error mask */ 317 - #define CICR0_QDM (1 << 4) /* Quick-disable mask */ 318 - #define CICR0_CDM (1 << 3) /* Disable-done mask */ 319 - #define CICR0_SOFM (1 << 2) /* Start-of-frame mask */ 320 - #define CICR0_EOFM (1 << 1) /* End-of-frame mask */ 321 - #define CICR0_FOM (1 << 0) /* FIFO-overrun mask */ 322 - 323 - #define CICR1_TBIT (1 << 31) /* Transparency bit */ 324 - #define CICR1_RGBT_CONV (0x3 << 29) /* RGBT conversion mask */ 325 - #define CICR1_PPL (0x7ff << 15) /* Pixels per line mask */ 326 - #define CICR1_RGB_CONV (0x7 << 12) /* RGB conversion mask */ 327 - #define CICR1_RGB_F (1 << 11) /* RGB format */ 328 - #define CICR1_YCBCR_F (1 << 10) /* YCbCr format */ 329 - #define CICR1_RGB_BPP (0x7 << 7) /* RGB bis per pixel mask */ 330 - #define CICR1_RAW_BPP (0x3 << 5) /* Raw bis per pixel mask */ 331 - #define CICR1_COLOR_SP (0x3 << 3) /* Color space mask */ 332 - #define CICR1_DW (0x7 << 0) /* Data width mask */ 333 - 334 - #define CICR2_BLW (0xff << 24) /* Beginning-of-line pixel clock 335 - wait count mask */ 336 - #define CICR2_ELW (0xff << 16) /* End-of-line pixel clock 337 - wait count mask */ 338 - #define CICR2_HSW (0x3f << 10) /* Horizontal sync pulse width mask */ 339 - #define CICR2_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock 340 - wait count mask */ 341 - #define CICR2_FSW (0x7 << 0) /* Frame stabilization 342 - wait count mask */ 343 - 344 - #define CICR3_BFW (0xff << 24) /* Beginning-of-frame line clock 345 - wait count mask */ 346 - #define CICR3_EFW (0xff << 16) /* End-of-frame line clock 347 - wait count mask */ 348 - #define CICR3_VSW (0x3f << 10) /* Vertical sync pulse width mask */ 349 - #define CICR3_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock 350 - wait count mask */ 351 - #define CICR3_LPF (0x7ff << 0) /* Lines per frame mask */ 352 - 353 - #define CICR4_MCLK_DLY (0x3 << 24) /* MCLK Data Capture Delay mask */ 354 - #define CICR4_PCLK_EN (1 << 23) /* Pixel clock enable */ 355 - #define CICR4_PCP (1 << 22) /* Pixel clock polarity */ 356 - #define CICR4_HSP (1 << 21) /* Horizontal sync polarity */ 357 - #define CICR4_VSP (1 << 20) /* Vertical sync polarity */ 358 - #define CICR4_MCLK_EN (1 << 19) /* MCLK enable */ 359 - #define CICR4_FR_RATE (0x7 << 8) /* Frame rate mask */ 360 - #define CICR4_DIV (0xff << 0) /* Clock divisor mask */ 361 - 362 - #define CISR_FTO (1 << 15) /* FIFO time-out */ 363 - #define CISR_RDAV_2 (1 << 14) /* Channel 2 receive data available */ 364 - #define CISR_RDAV_1 (1 << 13) /* Channel 1 receive data available */ 365 - #define CISR_RDAV_0 (1 << 12) /* Channel 0 receive data available */ 366 - #define CISR_FEMPTY_2 (1 << 11) /* Channel 2 FIFO empty */ 367 - #define CISR_FEMPTY_1 (1 << 10) /* Channel 1 FIFO empty */ 368 - #define CISR_FEMPTY_0 (1 << 9) /* Channel 0 FIFO empty */ 369 - #define CISR_EOL (1 << 8) /* End of line */ 370 - #define CISR_PAR_ERR (1 << 7) /* Parity error */ 371 - #define CISR_CQD (1 << 6) /* Camera interface quick disable */ 372 - #define CISR_CDD (1 << 5) /* Camera interface disable done */ 373 - #define CISR_SOF (1 << 4) /* Start of frame */ 374 - #define CISR_EOF (1 << 3) /* End of frame */ 375 - #define CISR_IFO_2 (1 << 2) /* FIFO overrun for Channel 2 */ 376 - #define CISR_IFO_1 (1 << 1) /* FIFO overrun for Channel 1 */ 377 - #define CISR_IFO_0 (1 << 0) /* FIFO overrun for Channel 0 */ 378 - 379 - #define CIFR_FLVL2 (0x7f << 23) /* FIFO 2 level mask */ 380 - #define CIFR_FLVL1 (0x7f << 16) /* FIFO 1 level mask */ 381 - #define CIFR_FLVL0 (0xff << 8) /* FIFO 0 level mask */ 382 - #define CIFR_THL_0 (0x3 << 4) /* Threshold Level for Channel 0 FIFO */ 383 - #define CIFR_RESET_F (1 << 3) /* Reset input FIFOs */ 384 - #define CIFR_FEN2 (1 << 2) /* FIFO enable for channel 2 */ 385 - #define CIFR_FEN1 (1 << 1) /* FIFO enable for channel 1 */ 386 - #define CIFR_FEN0 (1 << 0) /* FIFO enable for channel 0 */ 387 - 388 - #define SRAM_SIZE 0x40000 /* 4x64K */ 389 - 390 - #define SRAM_MEM_PHYS 0x5C000000 391 - 392 - #define IMPMCR __REG(0x58000000) /* IM Power Management Control Reg */ 393 - #define IMPMSR __REG(0x58000008) /* IM Power Management Status Reg */ 394 - 395 - #define IMPMCR_PC3 (0x3 << 22) /* Bank 3 Power Control */ 396 - #define IMPMCR_PC3_RUN_MODE (0x0 << 22) /* Run mode */ 397 - #define IMPMCR_PC3_STANDBY_MODE (0x1 << 22) /* Standby mode */ 398 - #define IMPMCR_PC3_AUTO_MODE (0x3 << 22) /* Automatically controlled */ 399 - 400 - #define IMPMCR_PC2 (0x3 << 20) /* Bank 2 Power Control */ 401 - #define IMPMCR_PC2_RUN_MODE (0x0 << 20) /* Run mode */ 402 - #define IMPMCR_PC2_STANDBY_MODE (0x1 << 20) /* Standby mode */ 403 - #define IMPMCR_PC2_AUTO_MODE (0x3 << 20) /* Automatically controlled */ 404 - 405 - #define IMPMCR_PC1 (0x3 << 18) /* Bank 1 Power Control */ 406 - #define IMPMCR_PC1_RUN_MODE (0x0 << 18) /* Run mode */ 407 - #define IMPMCR_PC1_STANDBY_MODE (0x1 << 18) /* Standby mode */ 408 - #define IMPMCR_PC1_AUTO_MODE (0x3 << 18) /* Automatically controlled */ 409 - 410 - #define IMPMCR_PC0 (0x3 << 16) /* Bank 0 Power Control */ 411 - #define IMPMCR_PC0_RUN_MODE (0x0 << 16) /* Run mode */ 412 - #define IMPMCR_PC0_STANDBY_MODE (0x1 << 16) /* Standby mode */ 413 - #define IMPMCR_PC0_AUTO_MODE (0x3 << 16) /* Automatically controlled */ 414 - 415 - #define IMPMCR_AW3 (1 << 11) /* Bank 3 Automatic Wake-up enable */ 416 - #define IMPMCR_AW2 (1 << 10) /* Bank 2 Automatic Wake-up enable */ 417 - #define IMPMCR_AW1 (1 << 9) /* Bank 1 Automatic Wake-up enable */ 418 - #define IMPMCR_AW0 (1 << 8) /* Bank 0 Automatic Wake-up enable */ 419 - 420 - #define IMPMCR_DST (0xFF << 0) /* Delay Standby Time, ms */ 421 - 422 - #define IMPMSR_PS3 (0x3 << 6) /* Bank 3 Power Status: */ 423 - #define IMPMSR_PS3_RUN_MODE (0x0 << 6) /* Run mode */ 424 - #define IMPMSR_PS3_STANDBY_MODE (0x1 << 6) /* Standby mode */ 425 - 426 - #define IMPMSR_PS2 (0x3 << 4) /* Bank 2 Power Status: */ 427 - #define IMPMSR_PS2_RUN_MODE (0x0 << 4) /* Run mode */ 428 - #define IMPMSR_PS2_STANDBY_MODE (0x1 << 4) /* Standby mode */ 429 - 430 - #define IMPMSR_PS1 (0x3 << 2) /* Bank 1 Power Status: */ 431 - #define IMPMSR_PS1_RUN_MODE (0x0 << 2) /* Run mode */ 432 - #define IMPMSR_PS1_STANDBY_MODE (0x1 << 2) /* Standby mode */ 433 - 434 - #define IMPMSR_PS0 (0x3 << 0) /* Bank 0 Power Status: */ 435 - #define IMPMSR_PS0_RUN_MODE (0x0 << 0) /* Run mode */ 436 - #define IMPMSR_PS0_STANDBY_MODE (0x1 << 0) /* Standby mode */ 437 - 438 - #endif 439 - 440 - /* PWRMODE register M field values */ 441 - 442 - #define PWRMODE_IDLE 0x1 443 - #define PWRMODE_STANDBY 0x2 444 - #define PWRMODE_SLEEP 0x3 445 - #define PWRMODE_DEEPSLEEP 0x7 446 583 447 584 #endif
+5
arch/arm/mach-pxa/include/mach/pxa2xx-gpio.h
··· 365 365 #define GPIO117_I2CSCL_MD (117 | GPIO_ALT_FN_1_IN) 366 366 #define GPIO118_I2CSDA_MD (118 | GPIO_ALT_FN_1_IN) 367 367 368 + /* 369 + * Handy routine to set GPIO alternate functions 370 + */ 371 + extern int pxa_gpio_mode( int gpio_mode ); 372 + 368 373 #endif /* __ASM_ARCH_PXA2XX_GPIO_H */
+12
arch/arm/mach-pxa/include/mach/pxa2xx-regs.h
··· 49 49 #define MECR_NOS (1 << 0) /* Number Of Sockets: 0 -> 1 sock, 1 -> 2 sock */ 50 50 #define MECR_CIT (1 << 1) /* Card Is There: 0 -> no card, 1 -> card inserted */ 51 51 52 + #define MDCNFG_DE0 (1 << 0) /* SDRAM Bank 0 Enable */ 53 + #define MDCNFG_DE1 (1 << 1) /* SDRAM Bank 1 Enable */ 54 + #define MDCNFG_DE2 (1 << 16) /* SDRAM Bank 2 Enable */ 55 + #define MDCNFG_DE3 (1 << 17) /* SDRAM Bank 3 Enable */ 56 + 52 57 #define MDREFR_K0DB4 (1 << 29) /* SDCLK0 Divide by 4 Control/Status */ 53 58 #define MDREFR_K2FREE (1 << 25) /* SDRAM Free-Running Control */ 54 59 #define MDREFR_K1FREE (1 << 24) /* SDRAM Free-Running Control */ ··· 247 242 248 243 #define OSCC_OON (1 << 1) /* 32.768kHz OON (write-once only bit) */ 249 244 #define OSCC_OOK (1 << 0) /* 32.768kHz OOK (read-only bit) */ 245 + 246 + /* PWRMODE register M field values */ 247 + 248 + #define PWRMODE_IDLE 0x1 249 + #define PWRMODE_STANDBY 0x2 250 + #define PWRMODE_SLEEP 0x3 251 + #define PWRMODE_DEEPSLEEP 0x7 250 252 251 253 #endif
+99
arch/arm/mach-pxa/include/mach/regs-ac97.h
··· 1 + #ifndef __ASM_ARCH_REGS_AC97_H 2 + #define __ASM_ARCH_REGS_AC97_H 3 + 4 + /* 5 + * AC97 Controller registers 6 + */ 7 + 8 + #define POCR __REG(0x40500000) /* PCM Out Control Register */ 9 + #define POCR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 10 + #define POCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 11 + 12 + #define PICR __REG(0x40500004) /* PCM In Control Register */ 13 + #define PICR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 14 + #define PICR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 15 + 16 + #define MCCR __REG(0x40500008) /* Mic In Control Register */ 17 + #define MCCR_FEIE (1 << 3) /* FIFO Error Interrupt Enable */ 18 + #define MCCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 19 + 20 + #define GCR __REG(0x4050000C) /* Global Control Register */ 21 + #ifdef CONFIG_PXA3xx 22 + #define GCR_CLKBPB (1 << 31) /* Internal clock enable */ 23 + #endif 24 + #define GCR_nDMAEN (1 << 24) /* non DMA Enable */ 25 + #define GCR_CDONE_IE (1 << 19) /* Command Done Interrupt Enable */ 26 + #define GCR_SDONE_IE (1 << 18) /* Status Done Interrupt Enable */ 27 + #define GCR_SECRDY_IEN (1 << 9) /* Secondary Ready Interrupt Enable */ 28 + #define GCR_PRIRDY_IEN (1 << 8) /* Primary Ready Interrupt Enable */ 29 + #define GCR_SECRES_IEN (1 << 5) /* Secondary Resume Interrupt Enable */ 30 + #define GCR_PRIRES_IEN (1 << 4) /* Primary Resume Interrupt Enable */ 31 + #define GCR_ACLINK_OFF (1 << 3) /* AC-link Shut Off */ 32 + #define GCR_WARM_RST (1 << 2) /* AC97 Warm Reset */ 33 + #define GCR_COLD_RST (1 << 1) /* AC'97 Cold Reset (0 = active) */ 34 + #define GCR_GIE (1 << 0) /* Codec GPI Interrupt Enable */ 35 + 36 + #define POSR __REG(0x40500010) /* PCM Out Status Register */ 37 + #define POSR_FIFOE (1 << 4) /* FIFO error */ 38 + #define POSR_FSR (1 << 2) /* FIFO Service Request */ 39 + 40 + #define PISR __REG(0x40500014) /* PCM In Status Register */ 41 + #define PISR_FIFOE (1 << 4) /* FIFO error */ 42 + #define PISR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 43 + #define PISR_FSR (1 << 2) /* FIFO Service Request */ 44 + 45 + #define MCSR __REG(0x40500018) /* Mic In Status Register */ 46 + #define MCSR_FIFOE (1 << 4) /* FIFO error */ 47 + #define MCSR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 48 + #define MCSR_FSR (1 << 2) /* FIFO Service Request */ 49 + 50 + #define GSR __REG(0x4050001C) /* Global Status Register */ 51 + #define GSR_CDONE (1 << 19) /* Command Done */ 52 + #define GSR_SDONE (1 << 18) /* Status Done */ 53 + #define GSR_RDCS (1 << 15) /* Read Completion Status */ 54 + #define GSR_BIT3SLT12 (1 << 14) /* Bit 3 of slot 12 */ 55 + #define GSR_BIT2SLT12 (1 << 13) /* Bit 2 of slot 12 */ 56 + #define GSR_BIT1SLT12 (1 << 12) /* Bit 1 of slot 12 */ 57 + #define GSR_SECRES (1 << 11) /* Secondary Resume Interrupt */ 58 + #define GSR_PRIRES (1 << 10) /* Primary Resume Interrupt */ 59 + #define GSR_SCR (1 << 9) /* Secondary Codec Ready */ 60 + #define GSR_PCR (1 << 8) /* Primary Codec Ready */ 61 + #define GSR_MCINT (1 << 7) /* Mic In Interrupt */ 62 + #define GSR_POINT (1 << 6) /* PCM Out Interrupt */ 63 + #define GSR_PIINT (1 << 5) /* PCM In Interrupt */ 64 + #define GSR_ACOFFD (1 << 3) /* AC-link Shut Off Done */ 65 + #define GSR_MOINT (1 << 2) /* Modem Out Interrupt */ 66 + #define GSR_MIINT (1 << 1) /* Modem In Interrupt */ 67 + #define GSR_GSCI (1 << 0) /* Codec GPI Status Change Interrupt */ 68 + 69 + #define CAR __REG(0x40500020) /* CODEC Access Register */ 70 + #define CAR_CAIP (1 << 0) /* Codec Access In Progress */ 71 + 72 + #define PCDR __REG(0x40500040) /* PCM FIFO Data Register */ 73 + #define MCDR __REG(0x40500060) /* Mic-in FIFO Data Register */ 74 + 75 + #define MOCR __REG(0x40500100) /* Modem Out Control Register */ 76 + #define MOCR_FEIE (1 << 3) /* FIFO Error */ 77 + #define MOCR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 78 + 79 + #define MICR __REG(0x40500108) /* Modem In Control Register */ 80 + #define MICR_FEIE (1 << 3) /* FIFO Error */ 81 + #define MICR_FSRIE (1 << 1) /* FIFO Service Request Interrupt Enable */ 82 + 83 + #define MOSR __REG(0x40500110) /* Modem Out Status Register */ 84 + #define MOSR_FIFOE (1 << 4) /* FIFO error */ 85 + #define MOSR_FSR (1 << 2) /* FIFO Service Request */ 86 + 87 + #define MISR __REG(0x40500118) /* Modem In Status Register */ 88 + #define MISR_FIFOE (1 << 4) /* FIFO error */ 89 + #define MISR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 90 + #define MISR_FSR (1 << 2) /* FIFO Service Request */ 91 + 92 + #define MODR __REG(0x40500140) /* Modem FIFO Data Register */ 93 + 94 + #define PAC_REG_BASE __REG(0x40500200) /* Primary Audio Codec */ 95 + #define SAC_REG_BASE __REG(0x40500300) /* Secondary Audio Codec */ 96 + #define PMC_REG_BASE __REG(0x40500400) /* Primary Modem Codec */ 97 + #define SMC_REG_BASE __REG(0x40500500) /* Secondary Modem Codec */ 98 + 99 + #endif /* __ASM_ARCH_REGS_AC97_H */
+143
arch/arm/mach-pxa/include/mach/regs-uart.h
··· 1 + #ifndef __ASM_ARCH_REGS_UART_H 2 + #define __ASM_ARCH_REGS_UART_H 3 + 4 + /* 5 + * UARTs 6 + */ 7 + 8 + /* Full Function UART (FFUART) */ 9 + #define FFUART FFRBR 10 + #define FFRBR __REG(0x40100000) /* Receive Buffer Register (read only) */ 11 + #define FFTHR __REG(0x40100000) /* Transmit Holding Register (write only) */ 12 + #define FFIER __REG(0x40100004) /* Interrupt Enable Register (read/write) */ 13 + #define FFIIR __REG(0x40100008) /* Interrupt ID Register (read only) */ 14 + #define FFFCR __REG(0x40100008) /* FIFO Control Register (write only) */ 15 + #define FFLCR __REG(0x4010000C) /* Line Control Register (read/write) */ 16 + #define FFMCR __REG(0x40100010) /* Modem Control Register (read/write) */ 17 + #define FFLSR __REG(0x40100014) /* Line Status Register (read only) */ 18 + #define FFMSR __REG(0x40100018) /* Modem Status Register (read only) */ 19 + #define FFSPR __REG(0x4010001C) /* Scratch Pad Register (read/write) */ 20 + #define FFISR __REG(0x40100020) /* Infrared Selection Register (read/write) */ 21 + #define FFDLL __REG(0x40100000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 22 + #define FFDLH __REG(0x40100004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 23 + 24 + /* Bluetooth UART (BTUART) */ 25 + #define BTUART BTRBR 26 + #define BTRBR __REG(0x40200000) /* Receive Buffer Register (read only) */ 27 + #define BTTHR __REG(0x40200000) /* Transmit Holding Register (write only) */ 28 + #define BTIER __REG(0x40200004) /* Interrupt Enable Register (read/write) */ 29 + #define BTIIR __REG(0x40200008) /* Interrupt ID Register (read only) */ 30 + #define BTFCR __REG(0x40200008) /* FIFO Control Register (write only) */ 31 + #define BTLCR __REG(0x4020000C) /* Line Control Register (read/write) */ 32 + #define BTMCR __REG(0x40200010) /* Modem Control Register (read/write) */ 33 + #define BTLSR __REG(0x40200014) /* Line Status Register (read only) */ 34 + #define BTMSR __REG(0x40200018) /* Modem Status Register (read only) */ 35 + #define BTSPR __REG(0x4020001C) /* Scratch Pad Register (read/write) */ 36 + #define BTISR __REG(0x40200020) /* Infrared Selection Register (read/write) */ 37 + #define BTDLL __REG(0x40200000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 38 + #define BTDLH __REG(0x40200004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 39 + 40 + /* Standard UART (STUART) */ 41 + #define STUART STRBR 42 + #define STRBR __REG(0x40700000) /* Receive Buffer Register (read only) */ 43 + #define STTHR __REG(0x40700000) /* Transmit Holding Register (write only) */ 44 + #define STIER __REG(0x40700004) /* Interrupt Enable Register (read/write) */ 45 + #define STIIR __REG(0x40700008) /* Interrupt ID Register (read only) */ 46 + #define STFCR __REG(0x40700008) /* FIFO Control Register (write only) */ 47 + #define STLCR __REG(0x4070000C) /* Line Control Register (read/write) */ 48 + #define STMCR __REG(0x40700010) /* Modem Control Register (read/write) */ 49 + #define STLSR __REG(0x40700014) /* Line Status Register (read only) */ 50 + #define STMSR __REG(0x40700018) /* Reserved */ 51 + #define STSPR __REG(0x4070001C) /* Scratch Pad Register (read/write) */ 52 + #define STISR __REG(0x40700020) /* Infrared Selection Register (read/write) */ 53 + #define STDLL __REG(0x40700000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 54 + #define STDLH __REG(0x40700004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 55 + 56 + /* Hardware UART (HWUART) */ 57 + #define HWUART HWRBR 58 + #define HWRBR __REG(0x41600000) /* Receive Buffer Register (read only) */ 59 + #define HWTHR __REG(0x41600000) /* Transmit Holding Register (write only) */ 60 + #define HWIER __REG(0x41600004) /* Interrupt Enable Register (read/write) */ 61 + #define HWIIR __REG(0x41600008) /* Interrupt ID Register (read only) */ 62 + #define HWFCR __REG(0x41600008) /* FIFO Control Register (write only) */ 63 + #define HWLCR __REG(0x4160000C) /* Line Control Register (read/write) */ 64 + #define HWMCR __REG(0x41600010) /* Modem Control Register (read/write) */ 65 + #define HWLSR __REG(0x41600014) /* Line Status Register (read only) */ 66 + #define HWMSR __REG(0x41600018) /* Modem Status Register (read only) */ 67 + #define HWSPR __REG(0x4160001C) /* Scratch Pad Register (read/write) */ 68 + #define HWISR __REG(0x41600020) /* Infrared Selection Register (read/write) */ 69 + #define HWFOR __REG(0x41600024) /* Receive FIFO Occupancy Register (read only) */ 70 + #define HWABR __REG(0x41600028) /* Auto-Baud Control Register (read/write) */ 71 + #define HWACR __REG(0x4160002C) /* Auto-Baud Count Register (read only) */ 72 + #define HWDLL __REG(0x41600000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */ 73 + #define HWDLH __REG(0x41600004) /* Divisor Latch High Register (DLAB = 1) (read/write) */ 74 + 75 + #define IER_DMAE (1 << 7) /* DMA Requests Enable */ 76 + #define IER_UUE (1 << 6) /* UART Unit Enable */ 77 + #define IER_NRZE (1 << 5) /* NRZ coding Enable */ 78 + #define IER_RTIOE (1 << 4) /* Receiver Time Out Interrupt Enable */ 79 + #define IER_MIE (1 << 3) /* Modem Interrupt Enable */ 80 + #define IER_RLSE (1 << 2) /* Receiver Line Status Interrupt Enable */ 81 + #define IER_TIE (1 << 1) /* Transmit Data request Interrupt Enable */ 82 + #define IER_RAVIE (1 << 0) /* Receiver Data Available Interrupt Enable */ 83 + 84 + #define IIR_FIFOES1 (1 << 7) /* FIFO Mode Enable Status */ 85 + #define IIR_FIFOES0 (1 << 6) /* FIFO Mode Enable Status */ 86 + #define IIR_TOD (1 << 3) /* Time Out Detected */ 87 + #define IIR_IID2 (1 << 2) /* Interrupt Source Encoded */ 88 + #define IIR_IID1 (1 << 1) /* Interrupt Source Encoded */ 89 + #define IIR_IP (1 << 0) /* Interrupt Pending (active low) */ 90 + 91 + #define FCR_ITL2 (1 << 7) /* Interrupt Trigger Level */ 92 + #define FCR_ITL1 (1 << 6) /* Interrupt Trigger Level */ 93 + #define FCR_RESETTF (1 << 2) /* Reset Transmitter FIFO */ 94 + #define FCR_RESETRF (1 << 1) /* Reset Receiver FIFO */ 95 + #define FCR_TRFIFOE (1 << 0) /* Transmit and Receive FIFO Enable */ 96 + #define FCR_ITL_1 (0) 97 + #define FCR_ITL_8 (FCR_ITL1) 98 + #define FCR_ITL_16 (FCR_ITL2) 99 + #define FCR_ITL_32 (FCR_ITL2|FCR_ITL1) 100 + 101 + #define LCR_DLAB (1 << 7) /* Divisor Latch Access Bit */ 102 + #define LCR_SB (1 << 6) /* Set Break */ 103 + #define LCR_STKYP (1 << 5) /* Sticky Parity */ 104 + #define LCR_EPS (1 << 4) /* Even Parity Select */ 105 + #define LCR_PEN (1 << 3) /* Parity Enable */ 106 + #define LCR_STB (1 << 2) /* Stop Bit */ 107 + #define LCR_WLS1 (1 << 1) /* Word Length Select */ 108 + #define LCR_WLS0 (1 << 0) /* Word Length Select */ 109 + 110 + #define LSR_FIFOE (1 << 7) /* FIFO Error Status */ 111 + #define LSR_TEMT (1 << 6) /* Transmitter Empty */ 112 + #define LSR_TDRQ (1 << 5) /* Transmit Data Request */ 113 + #define LSR_BI (1 << 4) /* Break Interrupt */ 114 + #define LSR_FE (1 << 3) /* Framing Error */ 115 + #define LSR_PE (1 << 2) /* Parity Error */ 116 + #define LSR_OE (1 << 1) /* Overrun Error */ 117 + #define LSR_DR (1 << 0) /* Data Ready */ 118 + 119 + #define MCR_LOOP (1 << 4) 120 + #define MCR_OUT2 (1 << 3) /* force MSR_DCD in loopback mode */ 121 + #define MCR_OUT1 (1 << 2) /* force MSR_RI in loopback mode */ 122 + #define MCR_RTS (1 << 1) /* Request to Send */ 123 + #define MCR_DTR (1 << 0) /* Data Terminal Ready */ 124 + 125 + #define MSR_DCD (1 << 7) /* Data Carrier Detect */ 126 + #define MSR_RI (1 << 6) /* Ring Indicator */ 127 + #define MSR_DSR (1 << 5) /* Data Set Ready */ 128 + #define MSR_CTS (1 << 4) /* Clear To Send */ 129 + #define MSR_DDCD (1 << 3) /* Delta Data Carrier Detect */ 130 + #define MSR_TERI (1 << 2) /* Trailing Edge Ring Indicator */ 131 + #define MSR_DDSR (1 << 1) /* Delta Data Set Ready */ 132 + #define MSR_DCTS (1 << 0) /* Delta Clear To Send */ 133 + 134 + /* 135 + * IrSR (Infrared Selection Register) 136 + */ 137 + #define STISR_RXPL (1 << 4) /* Receive Data Polarity */ 138 + #define STISR_TXPL (1 << 3) /* Transmit Data Polarity */ 139 + #define STISR_XMODE (1 << 2) /* Transmit Pulse Width Select */ 140 + #define STISR_RCVEIR (1 << 1) /* Receiver SIR Enable */ 141 + #define STISR_XMITIR (1 << 0) /* Transmitter SIR Enable */ 142 + 143 + #endif /* __ASM_ARCH_REGS_UART_H */
+1 -1
arch/arm/mach-pxa/include/mach/uncompress.h
··· 10 10 */ 11 11 12 12 #include <linux/serial_reg.h> 13 - #include <mach/pxa-regs.h> 13 + #include <mach/regs-uart.h> 14 14 #include <asm/mach-types.h> 15 15 16 16 #define __REG(x) ((volatile unsigned long *)x)
+1 -1
arch/arm/mach-pxa/littleton.c
··· 20 20 #include <linux/delay.h> 21 21 #include <linux/platform_device.h> 22 22 #include <linux/clk.h> 23 + #include <linux/gpio.h> 23 24 #include <linux/spi/spi.h> 24 25 #include <linux/smc91x.h> 25 26 ··· 37 36 38 37 #include <mach/pxa-regs.h> 39 38 #include <mach/mfp-pxa300.h> 40 - #include <mach/gpio.h> 41 39 #include <mach/pxafb.h> 42 40 #include <mach/ssp.h> 43 41 #include <mach/pxa2xx_spi.h>
+4
arch/arm/mach-pxa/magician.c
··· 123 123 GPIO107_GPIO, /* DS1WM_IRQ */ 124 124 GPIO108_GPIO, /* GSM_READY */ 125 125 GPIO115_GPIO, /* nPEN_IRQ */ 126 + 127 + /* I2C */ 128 + GPIO117_I2C_SCL, 129 + GPIO118_I2C_SDA, 126 130 }; 127 131 128 132 /*
+4
arch/arm/mach-pxa/mainstone.c
··· 128 128 GPIO108_KP_MKOUT_5, 129 129 GPIO96_KP_MKOUT_6, 130 130 131 + /* I2C */ 132 + GPIO117_I2C_SCL, 133 + GPIO118_I2C_SDA, 134 + 131 135 /* GPIO */ 132 136 GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, 133 137 };
+46 -16
arch/arm/mach-pxa/mfp-pxa2xx.c
··· 38 38 unsigned valid : 1; 39 39 unsigned can_wakeup : 1; 40 40 unsigned keypad_gpio : 1; 41 + unsigned dir_inverted : 1; 41 42 unsigned int mask; /* bit mask in PWER or PKWR */ 43 + unsigned int mux_mask; /* bit mask of muxed gpio bits, 0 if no mux */ 42 44 unsigned long config; 43 45 }; 44 46 45 47 static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; 46 - static int gpio_nr; 47 48 48 49 static unsigned long gpdr_lpm[4]; 49 50 ··· 55 54 int uorl = !!(gpio & 0x10); /* GAFRx_U or GAFRx_L ? */ 56 55 int shft = (gpio & 0xf) << 1; 57 56 int fn = MFP_AF(c); 58 - int dir = c & MFP_DIR_OUT; 57 + int is_out = (c & MFP_DIR_OUT) ? 1 : 0; 59 58 60 59 if (fn > 3) 61 60 return -EINVAL; ··· 69 68 else 70 69 GAFR_U(bank) = gafr; 71 70 72 - if (dir == MFP_DIR_OUT) 71 + if (is_out ^ gpio_desc[gpio].dir_inverted) 73 72 GPDR(gpio) |= mask; 74 73 else 75 74 GPDR(gpio) &= ~mask; ··· 78 77 switch (c & MFP_LPM_STATE_MASK) { 79 78 case MFP_LPM_DRIVE_HIGH: 80 79 PGSR(bank) |= mask; 81 - dir = MFP_DIR_OUT; 80 + is_out = 1; 82 81 break; 83 82 case MFP_LPM_DRIVE_LOW: 84 83 PGSR(bank) &= ~mask; 85 - dir = MFP_DIR_OUT; 84 + is_out = 1; 86 85 break; 87 86 case MFP_LPM_DEFAULT: 88 87 break; ··· 93 92 break; 94 93 } 95 94 96 - if (dir == MFP_DIR_OUT) 95 + if (is_out ^ gpio_desc[gpio].dir_inverted) 97 96 gpdr_lpm[bank] |= mask; 98 97 else 99 98 gpdr_lpm[bank] &= ~mask; ··· 107 106 return -EINVAL; 108 107 } 109 108 110 - if ((c & MFP_LPM_CAN_WAKEUP) && (dir == MFP_DIR_OUT)) { 109 + if ((c & MFP_LPM_CAN_WAKEUP) && is_out) { 111 110 pr_warning("%s: output GPIO%d unable to wakeup\n", 112 111 __func__, gpio); 113 112 return -EINVAL; ··· 170 169 int gpio_set_wake(unsigned int gpio, unsigned int on) 171 170 { 172 171 struct gpio_desc *d; 173 - unsigned long c; 172 + unsigned long c, mux_taken; 174 173 175 174 if (gpio > mfp_to_gpio(MFP_PIN_GPIO127)) 176 175 return -EINVAL; ··· 184 183 if (d->keypad_gpio) 185 184 return -EINVAL; 186 185 186 + mux_taken = (PWER & d->mux_mask) & (~d->mask); 187 + if (on && mux_taken) 188 + return -EBUSY; 189 + 187 190 if (d->can_wakeup && (c & MFP_LPM_CAN_WAKEUP)) { 188 191 if (on) { 189 - PWER |= d->mask; 192 + PWER = (PWER & ~d->mux_mask) | d->mask; 190 193 191 194 if (c & MFP_LPM_EDGE_RISE) 192 195 PRER |= d->mask; ··· 215 210 { 216 211 int i; 217 212 218 - for (i = 0; i <= 84; i++) 213 + for (i = 0; i <= pxa_last_gpio; i++) 219 214 gpio_desc[i].valid = 1; 220 215 221 216 for (i = 0; i <= 15; i++) { ··· 223 218 gpio_desc[i].mask = GPIO_bit(i); 224 219 } 225 220 226 - gpio_nr = 85; 221 + /* PXA26x has additional 4 GPIOs (86/87/88/89) which has the 222 + * direction bit inverted in GPDR2. See PXA26x DM 4.1.1. 223 + */ 224 + for (i = 86; i <= pxa_last_gpio; i++) 225 + gpio_desc[i].dir_inverted = 1; 227 226 } 228 227 #else 229 228 static inline void pxa25x_mfp_init(void) {} ··· 260 251 return 0; 261 252 } 262 253 254 + #define PWER_WEMUX2_GPIO38 (1 << 16) 255 + #define PWER_WEMUX2_GPIO53 (2 << 16) 256 + #define PWER_WEMUX2_GPIO40 (3 << 16) 257 + #define PWER_WEMUX2_GPIO36 (4 << 16) 258 + #define PWER_WEMUX2_MASK (7 << 16) 259 + #define PWER_WEMUX3_GPIO31 (1 << 19) 260 + #define PWER_WEMUX3_GPIO113 (2 << 19) 261 + #define PWER_WEMUX3_MASK (3 << 19) 262 + 263 + #define INIT_GPIO_DESC_MUXED(mux, gpio) \ 264 + do { \ 265 + gpio_desc[(gpio)].can_wakeup = 1; \ 266 + gpio_desc[(gpio)].mask = PWER_ ## mux ## _GPIO ##gpio; \ 267 + gpio_desc[(gpio)].mux_mask = PWER_ ## mux ## _MASK; \ 268 + } while (0) 269 + 263 270 static void __init pxa27x_mfp_init(void) 264 271 { 265 272 int i, gpio; 266 273 267 - for (i = 0; i <= 120; i++) { 274 + for (i = 0; i <= pxa_last_gpio; i++) { 268 275 /* skip GPIO2, 5, 6, 7, 8, they are not 269 276 * valid pins allow configuration 270 277 */ ··· 311 286 gpio_desc[35].can_wakeup = 1; 312 287 gpio_desc[35].mask = PWER_WE35; 313 288 314 - gpio_nr = 121; 289 + INIT_GPIO_DESC_MUXED(WEMUX3, 31); 290 + INIT_GPIO_DESC_MUXED(WEMUX3, 113); 291 + INIT_GPIO_DESC_MUXED(WEMUX2, 38); 292 + INIT_GPIO_DESC_MUXED(WEMUX2, 53); 293 + INIT_GPIO_DESC_MUXED(WEMUX2, 40); 294 + INIT_GPIO_DESC_MUXED(WEMUX2, 36); 315 295 } 316 296 #else 317 297 static inline void pxa27x_mfp_init(void) {} ··· 330 300 { 331 301 int i; 332 302 333 - for (i = 0; i <= gpio_to_bank(gpio_nr); i++) { 303 + for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { 334 304 335 305 saved_gafr[0][i] = GAFR_L(i); 336 306 saved_gafr[1][i] = GAFR_U(i); ··· 345 315 { 346 316 int i; 347 317 348 - for (i = 0; i <= gpio_to_bank(gpio_nr); i++) { 318 + for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { 349 319 GAFR_L(i) = saved_gafr[0][i]; 350 320 GAFR_U(i) = saved_gafr[1][i]; 351 321 GPDR(i * 32) = saved_gpdr[i]; ··· 378 348 pxa27x_mfp_init(); 379 349 380 350 /* initialize gafr_run[], pgsr_lpm[] from existing values */ 381 - for (i = 0; i <= gpio_to_bank(gpio_nr); i++) 351 + for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) 382 352 gpdr_lpm[i] = GPDR(i * 32); 383 353 384 354 return sysdev_class_register(&pxa2xx_mfp_sysclass);
+82 -121
arch/arm/mach-pxa/mioa701.c
··· 34 34 #include <linux/irq.h> 35 35 #include <linux/pda_power.h> 36 36 #include <linux/power_supply.h> 37 - #include <linux/wm97xx.h> 37 + #include <linux/wm97xx_batt.h> 38 38 #include <linux/mtd/physmap.h> 39 39 40 40 #include <asm/mach-types.h> ··· 46 46 #include <mach/mmc.h> 47 47 #include <mach/udc.h> 48 48 #include <mach/pxa27x-udc.h> 49 + #include <mach/i2c.h> 50 + #include <mach/camera.h> 51 + #include <media/soc_camera.h> 49 52 50 53 #include <mach/mioa701.h> 51 54 ··· 57 54 58 55 static unsigned long mioa701_pin_config[] = { 59 56 /* Mio global */ 60 - MIO_CFG_OUT(GPIO9_CHARGE_nEN, AF0, DRIVE_LOW), 57 + MIO_CFG_OUT(GPIO9_CHARGE_EN, AF0, DRIVE_LOW), 61 58 MIO_CFG_OUT(GPIO18_POWEROFF, AF0, DRIVE_LOW), 62 59 MFP_CFG_OUT(GPIO3, AF0, DRIVE_HIGH), 63 60 MFP_CFG_OUT(GPIO4, AF0, DRIVE_HIGH), 61 + MIO_CFG_IN(GPIO80_MAYBE_CHARGE_VDROP, AF0), 64 62 65 63 /* Backlight PWM 0 */ 66 64 GPIO16_PWM0_OUT, ··· 78 74 MIO_CFG_OUT(GPIO91_SDIO_EN, AF0, DRIVE_LOW), 79 75 80 76 /* USB */ 81 - MIO_CFG_IN(GPIO13_USB_DETECT, AF0), 77 + MIO_CFG_IN(GPIO13_nUSB_DETECT, AF0), 82 78 MIO_CFG_OUT(GPIO22_USB_ENABLE, AF0, DRIVE_LOW), 83 79 84 80 /* LCD */ ··· 102 98 GPIO75_LCD_LCLK, 103 99 GPIO76_LCD_PCLK, 104 100 101 + /* QCI */ 102 + GPIO12_CIF_DD_7, 103 + GPIO17_CIF_DD_6, 104 + GPIO50_CIF_DD_3, 105 + GPIO51_CIF_DD_2, 106 + GPIO52_CIF_DD_4, 107 + GPIO53_CIF_MCLK, 108 + GPIO54_CIF_PCLK, 109 + GPIO55_CIF_DD_1, 110 + GPIO81_CIF_DD_0, 111 + GPIO82_CIF_DD_5, 112 + GPIO84_CIF_FV, 113 + GPIO85_CIF_LV, 114 + 105 115 /* Bluetooth */ 116 + MIO_CFG_IN(GPIO14_BT_nACTIVITY, AF0), 106 117 GPIO44_BTUART_CTS, 107 118 GPIO42_BTUART_RXD, 108 119 GPIO45_BTUART_RTS, 109 120 GPIO43_BTUART_TXD, 110 121 MIO_CFG_OUT(GPIO83_BT_ON, AF0, DRIVE_LOW), 122 + MIO_CFG_OUT(GPIO77_BT_UNKNOWN1, AF0, DRIVE_HIGH), 123 + MIO_CFG_OUT(GPIO86_BT_MAYBE_nRESET, AF0, DRIVE_HIGH), 111 124 112 125 /* GPS */ 113 126 MIO_CFG_OUT(GPIO23_GPS_UNKNOWN1, AF0, DRIVE_LOW), ··· 172 151 GPIO104_KP_MKOUT_1, 173 152 GPIO105_KP_MKOUT_2, 174 153 154 + /* I2C */ 155 + GPIO117_I2C_SCL, 156 + GPIO118_I2C_SDA, 157 + 175 158 /* Unknown */ 176 - MFP_CFG_IN(GPIO14, AF0), 177 159 MFP_CFG_IN(GPIO20, AF0), 178 160 MFP_CFG_IN(GPIO21, AF0), 179 161 MFP_CFG_IN(GPIO33, AF0), 180 162 MFP_CFG_OUT(GPIO49, AF0, DRIVE_HIGH), 181 163 MFP_CFG_OUT(GPIO57, AF0, DRIVE_HIGH), 182 - MFP_CFG_OUT(GPIO77, AF0, DRIVE_HIGH), 183 - MFP_CFG_IN(GPIO80, AF0), 184 - MFP_CFG_OUT(GPIO86, AF0, DRIVE_HIGH), 185 164 MFP_CFG_IN(GPIO96, AF0), 186 165 MFP_CFG_OUT(GPIO116, AF0, DRIVE_HIGH), 187 166 }; ··· 428 407 429 408 static int is_usb_connected(void) 430 409 { 431 - return !!gpio_get_value(GPIO13_USB_DETECT); 410 + return !gpio_get_value(GPIO13_nUSB_DETECT); 432 411 } 433 412 434 413 static struct pxa2xx_udc_mach_info mioa701_udc_info = { ··· 680 659 "mioa701_battery" 681 660 }; 682 661 662 + static int is_ac_connected(void) 663 + { 664 + return gpio_get_value(GPIO96_AC_DETECT); 665 + } 666 + 683 667 static void mioa701_set_charge(int flags) 684 668 { 685 - gpio_set_value(GPIO9_CHARGE_nEN, !flags); 669 + gpio_set_value(GPIO9_CHARGE_EN, (flags == PDA_POWER_CHARGE_USB)); 686 670 } 687 671 688 672 static struct pda_power_pdata power_pdata = { 689 - .is_ac_online = is_usb_connected, 673 + .is_ac_online = is_ac_connected, 674 + .is_usb_online = is_usb_connected, 690 675 .set_charge = mioa701_set_charge, 691 676 .supplied_to = supplicants, 692 677 .num_supplicants = ARRAY_SIZE(supplicants), ··· 701 674 static struct resource power_resources[] = { 702 675 [0] = { 703 676 .name = "ac", 704 - .start = gpio_to_irq(GPIO13_USB_DETECT), 705 - .end = gpio_to_irq(GPIO13_USB_DETECT), 677 + .start = gpio_to_irq(GPIO96_AC_DETECT), 678 + .end = gpio_to_irq(GPIO96_AC_DETECT), 679 + .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE | 680 + IORESOURCE_IRQ_LOWEDGE, 681 + }, 682 + [1] = { 683 + .name = "usb", 684 + .start = gpio_to_irq(GPIO13_nUSB_DETECT), 685 + .end = gpio_to_irq(GPIO13_nUSB_DETECT), 706 686 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE | 707 687 IORESOURCE_IRQ_LOWEDGE, 708 688 }, ··· 725 691 }, 726 692 }; 727 693 728 - #if defined(CONFIG_PDA_POWER) && defined(CONFIG_TOUCHSCREEN_WM97XX) 729 - static struct wm97xx *battery_wm; 730 - 731 - static enum power_supply_property battery_props[] = { 732 - POWER_SUPPLY_PROP_STATUS, 733 - POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN, 734 - POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN, 735 - POWER_SUPPLY_PROP_VOLTAGE_NOW, 736 - POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN, /* Necessary for apm */ 694 + static struct wm97xx_batt_info mioa701_battery_data = { 695 + .batt_aux = WM97XX_AUX_ID1, 696 + .temp_aux = -1, 697 + .charge_gpio = -1, 698 + .min_voltage = 0xc00, 699 + .max_voltage = 0xfc0, 700 + .batt_tech = POWER_SUPPLY_TECHNOLOGY_LION, 701 + .batt_div = 1, 702 + .batt_mult = 1, 703 + .batt_name = "mioa701_battery", 737 704 }; 738 705 739 - static int get_battery_voltage(void) 740 - { 741 - int adc = -1; 742 - 743 - if (battery_wm) 744 - adc = wm97xx_read_aux_adc(battery_wm, WM97XX_AUX_ID1); 745 - return adc; 746 - } 747 - 748 - static int get_battery_status(struct power_supply *b) 749 - { 750 - int status; 751 - 752 - if (is_usb_connected()) 753 - status = POWER_SUPPLY_STATUS_CHARGING; 754 - else 755 - status = POWER_SUPPLY_STATUS_DISCHARGING; 756 - 757 - return status; 758 - } 759 - 760 - static int get_property(struct power_supply *b, 761 - enum power_supply_property psp, 762 - union power_supply_propval *val) 763 - { 764 - int rc = 0; 765 - 766 - switch (psp) { 767 - case POWER_SUPPLY_PROP_STATUS: 768 - val->intval = get_battery_status(b); 769 - break; 770 - case POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN: 771 - val->intval = 0xfd0; 772 - break; 773 - case POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN: 774 - val->intval = 0xc00; 775 - break; 776 - case POWER_SUPPLY_PROP_VOLTAGE_NOW: 777 - val->intval = get_battery_voltage(); 778 - break; 779 - case POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN: 780 - val->intval = 100; 781 - break; 782 - default: 783 - val->intval = -1; 784 - rc = -1; 785 - } 786 - 787 - return rc; 706 + /* 707 + * Camera interface 708 + */ 709 + struct pxacamera_platform_data mioa701_pxacamera_platform_data = { 710 + .flags = PXA_CAMERA_MASTER | PXA_CAMERA_DATAWIDTH_8 | 711 + PXA_CAMERA_PCLK_EN | PXA_CAMERA_MCLK_EN, 712 + .mclk_10khz = 5000, 788 713 }; 789 714 790 - static struct power_supply battery_ps = { 791 - .name = "mioa701_battery", 792 - .type = POWER_SUPPLY_TYPE_BATTERY, 793 - .get_property = get_property, 794 - .properties = battery_props, 795 - .num_properties = ARRAY_SIZE(battery_props), 715 + static struct soc_camera_link iclink = { 716 + .bus_id = 0, /* Must match id in pxa27x_device_camera in device.c */ 796 717 }; 797 718 798 - static int battery_probe(struct platform_device *pdev) 799 - { 800 - struct wm97xx *wm = platform_get_drvdata(pdev); 801 - int rc; 802 - 803 - battery_wm = wm; 804 - 805 - rc = power_supply_register(NULL, &battery_ps); 806 - if (rc) 807 - dev_err(&pdev->dev, 808 - "Could not register mioa701 battery -> %d\n", rc); 809 - return rc; 810 - } 811 - 812 - static int battery_remove(struct platform_device *pdev) 813 - { 814 - battery_wm = NULL; 815 - return 0; 816 - } 817 - 818 - static struct platform_driver mioa701_battery_driver = { 819 - .driver = { 820 - .name = "wm97xx-battery", 719 + /* Board I2C devices. */ 720 + static struct i2c_board_info __initdata mioa701_i2c_devices[] = { 721 + { 722 + /* Must initialize before the camera(s) */ 723 + I2C_BOARD_INFO("mt9m111", 0x5d), 724 + .platform_data = &iclink, 821 725 }, 822 - .probe = battery_probe, 823 - .remove = battery_remove 824 726 }; 825 727 826 - static int __init mioa701_battery_init(void) 827 - { 828 - int rc; 829 - 830 - rc = platform_driver_register(&mioa701_battery_driver); 831 - if (rc) 832 - printk(KERN_ERR "Could not register mioa701 battery driver\n"); 833 - return rc; 834 - } 835 - 836 - #else 837 - static int __init mioa701_battery_init(void) 838 - { 839 - return 0; 840 - } 841 - #endif 728 + struct i2c_pxa_platform_data i2c_pdata = { 729 + .fast_mode = 1, 730 + }; 842 731 843 732 /* 844 733 * Mio global ··· 808 851 static void mioa701_poweroff(void) 809 852 { 810 853 mioa701_machine_exit(); 811 - gpio_set_value(GPIO18_POWEROFF, 1); 854 + arm_machine_restart('s'); 812 855 } 813 856 814 857 static void mioa701_restart(char c) 815 858 { 816 859 mioa701_machine_exit(); 817 - arm_machine_restart(c); 860 + arm_machine_restart('s'); 818 861 } 819 862 820 863 struct gpio_ress global_gpios[] = { 821 - MIO_GPIO_OUT(GPIO9_CHARGE_nEN, 1, "Charger enable"), 864 + MIO_GPIO_OUT(GPIO9_CHARGE_EN, 1, "Charger enable"), 822 865 MIO_GPIO_OUT(GPIO18_POWEROFF, 0, "Power Off"), 823 866 MIO_GPIO_OUT(GPIO87_LCD_POWER, 0, "LCD Power") 824 867 }; ··· 836 879 set_pxa_fb_info(&mioa701_pxafb_info); 837 880 pxa_set_mci_info(&mioa701_mci_info); 838 881 pxa_set_keypad_info(&mioa701_keypad_info); 882 + wm97xx_bat_set_pdata(&mioa701_battery_data); 839 883 udc_init(); 840 884 pm_power_off = mioa701_poweroff; 841 885 arm_pm_restart = mioa701_restart; 842 886 platform_add_devices(devices, ARRAY_SIZE(devices)); 843 887 gsm_init(); 844 - mioa701_battery_init(); 888 + 889 + pxa_set_i2c_info(&i2c_pdata); 890 + pxa_set_camera_info(&mioa701_pxacamera_platform_data); 891 + i2c_register_board_info(0, ARRAY_AND_SIZE(mioa701_i2c_devices)); 845 892 } 846 893 847 894 static void mioa701_machine_exit(void)
+4
arch/arm/mach-pxa/pcm990-baseboard.c
··· 55 55 GPIO89_USBH1_PEN, 56 56 /* PWM0 */ 57 57 GPIO16_PWM0_OUT, 58 + 59 + /* I2C */ 60 + GPIO117_I2C_SCL, 61 + GPIO118_I2C_SDA, 58 62 }; 59 63 60 64 /*
+32
arch/arm/mach-pxa/poodle.c
··· 20 20 #include <linux/fb.h> 21 21 #include <linux/pm.h> 22 22 #include <linux/delay.h> 23 + #include <linux/mtd/physmap.h> 23 24 #include <linux/gpio.h> 24 25 #include <linux/spi/spi.h> 25 26 #include <linux/spi/ads7846.h> ··· 414 413 .lcd_conn = LCD_COLOR_TFT_16BPP, 415 414 }; 416 415 416 + static struct mtd_partition sharpsl_rom_parts[] = { 417 + { 418 + .name ="Boot PROM Filesystem", 419 + .offset = 0x00120000, 420 + .size = MTDPART_SIZ_FULL, 421 + }, 422 + }; 423 + 424 + static struct physmap_flash_data sharpsl_rom_data = { 425 + .width = 2, 426 + .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), 427 + .parts = sharpsl_rom_parts, 428 + }; 429 + 430 + static struct resource sharpsl_rom_resources[] = { 431 + { 432 + .start = 0x00000000, 433 + .end = 0x007fffff, 434 + .flags = IORESOURCE_MEM, 435 + }, 436 + }; 437 + 438 + static struct platform_device sharpsl_rom_device = { 439 + .name = "physmap-flash", 440 + .id = -1, 441 + .resource = sharpsl_rom_resources, 442 + .num_resources = ARRAY_SIZE(sharpsl_rom_resources), 443 + .dev.platform_data = &sharpsl_rom_data, 444 + }; 445 + 417 446 static struct platform_device *devices[] __initdata = { 418 447 &poodle_locomo_device, 419 448 &poodle_scoop_device, 449 + &sharpsl_rom_device, 420 450 }; 421 451 422 452 static void poodle_poweroff(void)
+10 -8
arch/arm/mach-pxa/pxa25x.c
··· 36 36 #include "devices.h" 37 37 #include "clock.h" 38 38 39 - int cpu_is_pxa26x(void) 40 - { 41 - return cpu_is_pxa250() && ((BOOT_DEF & 0x8) == 0); 42 - } 43 - EXPORT_SYMBOL_GPL(cpu_is_pxa26x); 44 - 45 39 /* 46 40 * Various clock factors driven by the CCCR register. 47 41 */ ··· 313 319 pxa_init_gpio(85, pxa25x_set_wake); 314 320 } 315 321 322 + #ifdef CONFIG_CPU_PXA26x 323 + void __init pxa26x_init_irq(void) 324 + { 325 + pxa_init_irq(32, pxa25x_set_wake); 326 + pxa_init_gpio(90, pxa25x_set_wake); 327 + } 328 + #endif 329 + 316 330 static struct platform_device *pxa25x_devices[] __initdata = { 317 331 &pxa25x_device_udc, 318 332 &pxa_device_ffuart, 319 333 &pxa_device_btuart, 320 334 &pxa_device_stuart, 321 335 &pxa_device_i2s, 322 - &pxa_device_rtc, 336 + &sa1100_device_rtc, 323 337 &pxa25x_device_ssp, 324 338 &pxa25x_device_nssp, 325 339 &pxa25x_device_assp, ··· 373 371 } 374 372 375 373 /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */ 376 - if (cpu_is_pxa255() || cpu_is_pxa26x()) { 374 + if (cpu_is_pxa255()) { 377 375 clks_register(&pxa25x_hwuart_clkreg, 1); 378 376 ret = platform_device_register(&pxa_device_hwuart); 379 377 }
+3 -23
arch/arm/mach-pxa/pxa27x.c
··· 332 332 void __init pxa27x_init_irq(void) 333 333 { 334 334 pxa_init_irq(34, pxa27x_set_wake); 335 - pxa_init_gpio(128, pxa27x_set_wake); 335 + pxa_init_gpio(121, pxa27x_set_wake); 336 336 } 337 337 338 338 /* 339 339 * device registration specific to PXA27x. 340 340 */ 341 - 342 - static struct resource i2c_power_resources[] = { 343 - { 344 - .start = 0x40f00180, 345 - .end = 0x40f001a3, 346 - .flags = IORESOURCE_MEM, 347 - }, { 348 - .start = IRQ_PWRI2C, 349 - .end = IRQ_PWRI2C, 350 - .flags = IORESOURCE_IRQ, 351 - }, 352 - }; 353 - 354 - struct platform_device pxa27x_device_i2c_power = { 355 - .name = "pxa2xx-i2c", 356 - .id = 1, 357 - .resource = i2c_power_resources, 358 - .num_resources = ARRAY_SIZE(i2c_power_resources), 359 - }; 360 - 361 341 void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) 362 342 { 363 343 local_irq_disable(); 364 344 PCFR |= PCFR_PI2CEN; 365 345 local_irq_enable(); 366 - pxa27x_device_i2c_power.dev.platform_data = info; 346 + pxa_register_device(&pxa27x_device_i2c_power, info); 367 347 } 368 348 369 349 static struct platform_device *devices[] __initdata = { ··· 352 372 &pxa_device_btuart, 353 373 &pxa_device_stuart, 354 374 &pxa_device_i2s, 375 + &sa1100_device_rtc, 355 376 &pxa_device_rtc, 356 - &pxa27x_device_i2c_power, 357 377 &pxa27x_device_ssp1, 358 378 &pxa27x_device_ssp2, 359 379 &pxa27x_device_ssp3,
+3 -21
arch/arm/mach-pxa/pxa3xx.c
··· 29 29 #include <mach/pm.h> 30 30 #include <mach/dma.h> 31 31 #include <mach/ssp.h> 32 + #include <mach/i2c.h> 32 33 33 34 #include "generic.h" 34 35 #include "devices.h" ··· 545 544 * device registration specific to PXA3xx. 546 545 */ 547 546 548 - static struct resource i2c_power_resources[] = { 549 - { 550 - .start = 0x40f500c0, 551 - .end = 0x40f500d3, 552 - .flags = IORESOURCE_MEM, 553 - }, { 554 - .start = IRQ_PWRI2C, 555 - .end = IRQ_PWRI2C, 556 - .flags = IORESOURCE_IRQ, 557 - }, 558 - }; 559 - 560 - struct platform_device pxa3xx_device_i2c_power = { 561 - .name = "pxa2xx-i2c", 562 - .id = 1, 563 - .resource = i2c_power_resources, 564 - .num_resources = ARRAY_SIZE(i2c_power_resources), 565 - }; 566 - 567 547 void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info) 568 548 { 569 - pxa3xx_device_i2c_power.dev.platform_data = info; 549 + pxa_register_device(&pxa3xx_device_i2c_power, info); 570 550 } 571 551 572 552 static struct platform_device *devices[] __initdata = { ··· 556 574 &pxa_device_btuart, 557 575 &pxa_device_stuart, 558 576 &pxa_device_i2s, 577 + &sa1100_device_rtc, 559 578 &pxa_device_rtc, 560 579 &pxa27x_device_ssp1, 561 580 &pxa27x_device_ssp2, ··· 564 581 &pxa3xx_device_ssp4, 565 582 &pxa27x_device_pwm0, 566 583 &pxa27x_device_pwm1, 567 - &pxa3xx_device_i2c_power, 568 584 }; 569 585 570 586 static struct sys_device pxa3xx_sysdev[] = {
+36
arch/arm/mach-pxa/spitz.c
··· 22 22 #include <linux/gpio.h> 23 23 #include <linux/leds.h> 24 24 #include <linux/mmc/host.h> 25 + #include <linux/mtd/physmap.h> 25 26 #include <linux/pm.h> 26 27 #include <linux/backlight.h> 27 28 #include <linux/io.h> ··· 122 121 GPIO94_GPIO, /* SPITZ_GPIO_CF_CD */ 123 122 GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ 124 123 GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ 124 + 125 + /* I2C */ 126 + GPIO117_I2C_SCL, 127 + GPIO118_I2C_SDA, 125 128 126 129 GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, 127 130 }; ··· 614 609 }; 615 610 616 611 612 + static struct mtd_partition sharpsl_rom_parts[] = { 613 + { 614 + .name ="Boot PROM Filesystem", 615 + .offset = 0x00140000, 616 + .size = MTDPART_SIZ_FULL, 617 + }, 618 + }; 619 + 620 + static struct physmap_flash_data sharpsl_rom_data = { 621 + .width = 2, 622 + .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), 623 + .parts = sharpsl_rom_parts, 624 + }; 625 + 626 + static struct resource sharpsl_rom_resources[] = { 627 + { 628 + .start = 0x00000000, 629 + .end = 0x007fffff, 630 + .flags = IORESOURCE_MEM, 631 + }, 632 + }; 633 + 634 + static struct platform_device sharpsl_rom_device = { 635 + .name = "physmap-flash", 636 + .id = -1, 637 + .resource = sharpsl_rom_resources, 638 + .num_resources = ARRAY_SIZE(sharpsl_rom_resources), 639 + .dev.platform_data = &sharpsl_rom_data, 640 + }; 641 + 617 642 static struct platform_device *devices[] __initdata = { 618 643 &spitzscoop_device, 619 644 &spitzkbd_device, 620 645 &spitzled_device, 646 + &sharpsl_rom_device, 621 647 }; 622 648 623 649 static void spitz_poweroff(void)
+74
arch/arm/mach-pxa/tosa.c
··· 25 25 #include <linux/mfd/tmio.h> 26 26 #include <linux/mtd/nand.h> 27 27 #include <linux/mtd/partitions.h> 28 + #include <linux/mtd/physmap.h> 28 29 #include <linux/pm.h> 29 30 #include <linux/gpio_keys.h> 30 31 #include <linux/input.h> ··· 734 733 gpio_free(TOSA_GPIO_CARD_VCC_ON); 735 734 } 736 735 736 + #ifdef CONFIG_MFD_TC6393XB 737 + static struct fb_videomode tosa_tc6393xb_lcd_mode[] = { 738 + { 739 + .xres = 480, 740 + .yres = 640, 741 + .pixclock = 0x002cdf00,/* PLL divisor */ 742 + .left_margin = 0x004c, 743 + .right_margin = 0x005b, 744 + .upper_margin = 0x0001, 745 + .lower_margin = 0x000d, 746 + .hsync_len = 0x0002, 747 + .vsync_len = 0x0001, 748 + .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 749 + .vmode = FB_VMODE_NONINTERLACED, 750 + },{ 751 + .xres = 240, 752 + .yres = 320, 753 + .pixclock = 0x00e7f203,/* PLL divisor */ 754 + .left_margin = 0x0024, 755 + .right_margin = 0x002f, 756 + .upper_margin = 0x0001, 757 + .lower_margin = 0x000d, 758 + .hsync_len = 0x0002, 759 + .vsync_len = 0x0001, 760 + .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 761 + .vmode = FB_VMODE_NONINTERLACED, 762 + } 763 + }; 764 + 765 + static struct tmio_fb_data tosa_tc6393xb_fb_config = { 766 + .lcd_set_power = tc6393xb_lcd_set_power, 767 + .lcd_mode = tc6393xb_lcd_mode, 768 + .num_modes = ARRAY_SIZE(tosa_tc6393xb_lcd_mode), 769 + .modes = &tosa_tc6393xb_lcd_mode[0], 770 + .height = 82, 771 + .width = 60, 772 + }; 773 + #endif 774 + 737 775 static struct tc6393xb_platform_data tosa_tc6393xb_data = { 738 776 .scr_pll2cr = 0x0cc1, 739 777 .scr_gper = 0x3300, ··· 788 748 .resume = tosa_tc6393xb_resume, 789 749 790 750 .nand_data = &tosa_tc6393xb_nand_config, 751 + #ifdef CONFIG_MFD_TC6393XB 752 + .fb_data = &tosa_tc6393xb_fb_config, 753 + #endif 791 754 792 755 .resume_restore = 1, 793 756 }; ··· 832 789 }, 833 790 }; 834 791 792 + static struct mtd_partition sharpsl_rom_parts[] = { 793 + { 794 + .name ="Boot PROM Filesystem", 795 + .offset = 0x00160000, 796 + .size = MTDPART_SIZ_FULL, 797 + }, 798 + }; 799 + 800 + static struct physmap_flash_data sharpsl_rom_data = { 801 + .width = 2, 802 + .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), 803 + .parts = sharpsl_rom_parts, 804 + }; 805 + 806 + static struct resource sharpsl_rom_resources[] = { 807 + { 808 + .start = 0x00000000, 809 + .end = 0x007fffff, 810 + .flags = IORESOURCE_MEM, 811 + }, 812 + }; 813 + 814 + static struct platform_device sharpsl_rom_device = { 815 + .name = "physmap-flash", 816 + .id = -1, 817 + .resource = sharpsl_rom_resources, 818 + .num_resources = ARRAY_SIZE(sharpsl_rom_resources), 819 + .dev.platform_data = &sharpsl_rom_data, 820 + }; 821 + 835 822 static struct platform_device *devices[] __initdata = { 836 823 &tosascoop_device, 837 824 &tosascoop_jc_device, ··· 871 798 &tosa_gpio_keys_device, 872 799 &tosaled_device, 873 800 &tosa_bt_device, 801 + &sharpsl_rom_device, 874 802 }; 875 803 876 804 static void tosa_poweroff(void)
+1 -1
arch/arm/mach-pxa/zylonite.c
··· 18 18 #include <linux/interrupt.h> 19 19 #include <linux/init.h> 20 20 #include <linux/platform_device.h> 21 + #include <linux/gpio.h> 21 22 #include <linux/pwm_backlight.h> 22 23 #include <linux/smc91x.h> 23 24 ··· 26 25 #include <asm/mach/arch.h> 27 26 #include <mach/hardware.h> 28 27 #include <mach/audio.h> 29 - #include <mach/gpio.h> 30 28 #include <mach/pxafb.h> 31 29 #include <mach/zylonite.h> 32 30 #include <mach/mmc.h>
+1 -1
arch/arm/mach-pxa/zylonite_pxa320.c
··· 16 16 #include <linux/module.h> 17 17 #include <linux/kernel.h> 18 18 #include <linux/init.h> 19 + #include <linux/gpio.h> 19 20 20 - #include <mach/gpio.h> 21 21 #include <mach/mfp-pxa320.h> 22 22 #include <mach/zylonite.h> 23 23
+25
arch/arm/mm/proc-xsc3.S
··· 481 481 .long xsc3_mc_user_fns 482 482 .long xsc3_cache_fns 483 483 .size __xsc3_proc_info, . - __xsc3_proc_info 484 + 485 + /* Note: PXA935 changed its implementor ID from Intel to Marvell */ 486 + 487 + .type __xsc3_pxa935_proc_info,#object 488 + __xsc3_pxa935_proc_info: 489 + .long 0x56056000 490 + .long 0xffffe000 491 + .long PMD_TYPE_SECT | \ 492 + PMD_SECT_BUFFERABLE | \ 493 + PMD_SECT_CACHEABLE | \ 494 + PMD_SECT_AP_WRITE | \ 495 + PMD_SECT_AP_READ 496 + .long PMD_TYPE_SECT | \ 497 + PMD_SECT_AP_WRITE | \ 498 + PMD_SECT_AP_READ 499 + b __xsc3_setup 500 + .long cpu_arch_name 501 + .long cpu_elf_name 502 + .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP 503 + .long cpu_xsc3_name 504 + .long xsc3_processor_functions 505 + .long v4wbi_tlb_fns 506 + .long xsc3_mc_user_fns 507 + .long xsc3_cache_fns 508 + .size __xsc3_pxa935_proc_info, . - __xsc3_pxa935_proc_info
+1 -1
drivers/input/touchscreen/mainstone-wm97xx.c
··· 31 31 #include <linux/interrupt.h> 32 32 #include <linux/wm97xx.h> 33 33 #include <linux/io.h> 34 - #include <mach/pxa-regs.h> 34 + #include <mach/regs-ac97.h> 35 35 36 36 #define VERSION "0.13" 37 37
+2
drivers/media/video/pxa_camera.c
··· 39 39 #include <mach/pxa-regs.h> 40 40 #include <mach/camera.h> 41 41 42 + #include "pxa_camera.h" 43 + 42 44 #define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) 43 45 #define PXA_CAM_DRV_NAME "pxa27x-camera" 44 46
+95
drivers/media/video/pxa_camera.h
··· 1 + /* Camera Interface */ 2 + #define CICR0 __REG(0x50000000) 3 + #define CICR1 __REG(0x50000004) 4 + #define CICR2 __REG(0x50000008) 5 + #define CICR3 __REG(0x5000000C) 6 + #define CICR4 __REG(0x50000010) 7 + #define CISR __REG(0x50000014) 8 + #define CIFR __REG(0x50000018) 9 + #define CITOR __REG(0x5000001C) 10 + #define CIBR0 __REG(0x50000028) 11 + #define CIBR1 __REG(0x50000030) 12 + #define CIBR2 __REG(0x50000038) 13 + 14 + #define CICR0_DMAEN (1 << 31) /* DMA request enable */ 15 + #define CICR0_PAR_EN (1 << 30) /* Parity enable */ 16 + #define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */ 17 + #define CICR0_ENB (1 << 28) /* Camera interface enable */ 18 + #define CICR0_DIS (1 << 27) /* Camera interface disable */ 19 + #define CICR0_SIM (0x7 << 24) /* Sensor interface mode mask */ 20 + #define CICR0_TOM (1 << 9) /* Time-out mask */ 21 + #define CICR0_RDAVM (1 << 8) /* Receive-data-available mask */ 22 + #define CICR0_FEM (1 << 7) /* FIFO-empty mask */ 23 + #define CICR0_EOLM (1 << 6) /* End-of-line mask */ 24 + #define CICR0_PERRM (1 << 5) /* Parity-error mask */ 25 + #define CICR0_QDM (1 << 4) /* Quick-disable mask */ 26 + #define CICR0_CDM (1 << 3) /* Disable-done mask */ 27 + #define CICR0_SOFM (1 << 2) /* Start-of-frame mask */ 28 + #define CICR0_EOFM (1 << 1) /* End-of-frame mask */ 29 + #define CICR0_FOM (1 << 0) /* FIFO-overrun mask */ 30 + 31 + #define CICR1_TBIT (1 << 31) /* Transparency bit */ 32 + #define CICR1_RGBT_CONV (0x3 << 29) /* RGBT conversion mask */ 33 + #define CICR1_PPL (0x7ff << 15) /* Pixels per line mask */ 34 + #define CICR1_RGB_CONV (0x7 << 12) /* RGB conversion mask */ 35 + #define CICR1_RGB_F (1 << 11) /* RGB format */ 36 + #define CICR1_YCBCR_F (1 << 10) /* YCbCr format */ 37 + #define CICR1_RGB_BPP (0x7 << 7) /* RGB bis per pixel mask */ 38 + #define CICR1_RAW_BPP (0x3 << 5) /* Raw bis per pixel mask */ 39 + #define CICR1_COLOR_SP (0x3 << 3) /* Color space mask */ 40 + #define CICR1_DW (0x7 << 0) /* Data width mask */ 41 + 42 + #define CICR2_BLW (0xff << 24) /* Beginning-of-line pixel clock 43 + wait count mask */ 44 + #define CICR2_ELW (0xff << 16) /* End-of-line pixel clock 45 + wait count mask */ 46 + #define CICR2_HSW (0x3f << 10) /* Horizontal sync pulse width mask */ 47 + #define CICR2_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock 48 + wait count mask */ 49 + #define CICR2_FSW (0x7 << 0) /* Frame stabilization 50 + wait count mask */ 51 + 52 + #define CICR3_BFW (0xff << 24) /* Beginning-of-frame line clock 53 + wait count mask */ 54 + #define CICR3_EFW (0xff << 16) /* End-of-frame line clock 55 + wait count mask */ 56 + #define CICR3_VSW (0x3f << 10) /* Vertical sync pulse width mask */ 57 + #define CICR3_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock 58 + wait count mask */ 59 + #define CICR3_LPF (0x7ff << 0) /* Lines per frame mask */ 60 + 61 + #define CICR4_MCLK_DLY (0x3 << 24) /* MCLK Data Capture Delay mask */ 62 + #define CICR4_PCLK_EN (1 << 23) /* Pixel clock enable */ 63 + #define CICR4_PCP (1 << 22) /* Pixel clock polarity */ 64 + #define CICR4_HSP (1 << 21) /* Horizontal sync polarity */ 65 + #define CICR4_VSP (1 << 20) /* Vertical sync polarity */ 66 + #define CICR4_MCLK_EN (1 << 19) /* MCLK enable */ 67 + #define CICR4_FR_RATE (0x7 << 8) /* Frame rate mask */ 68 + #define CICR4_DIV (0xff << 0) /* Clock divisor mask */ 69 + 70 + #define CISR_FTO (1 << 15) /* FIFO time-out */ 71 + #define CISR_RDAV_2 (1 << 14) /* Channel 2 receive data available */ 72 + #define CISR_RDAV_1 (1 << 13) /* Channel 1 receive data available */ 73 + #define CISR_RDAV_0 (1 << 12) /* Channel 0 receive data available */ 74 + #define CISR_FEMPTY_2 (1 << 11) /* Channel 2 FIFO empty */ 75 + #define CISR_FEMPTY_1 (1 << 10) /* Channel 1 FIFO empty */ 76 + #define CISR_FEMPTY_0 (1 << 9) /* Channel 0 FIFO empty */ 77 + #define CISR_EOL (1 << 8) /* End of line */ 78 + #define CISR_PAR_ERR (1 << 7) /* Parity error */ 79 + #define CISR_CQD (1 << 6) /* Camera interface quick disable */ 80 + #define CISR_CDD (1 << 5) /* Camera interface disable done */ 81 + #define CISR_SOF (1 << 4) /* Start of frame */ 82 + #define CISR_EOF (1 << 3) /* End of frame */ 83 + #define CISR_IFO_2 (1 << 2) /* FIFO overrun for Channel 2 */ 84 + #define CISR_IFO_1 (1 << 1) /* FIFO overrun for Channel 1 */ 85 + #define CISR_IFO_0 (1 << 0) /* FIFO overrun for Channel 0 */ 86 + 87 + #define CIFR_FLVL2 (0x7f << 23) /* FIFO 2 level mask */ 88 + #define CIFR_FLVL1 (0x7f << 16) /* FIFO 1 level mask */ 89 + #define CIFR_FLVL0 (0xff << 8) /* FIFO 0 level mask */ 90 + #define CIFR_THL_0 (0x3 << 4) /* Threshold Level for Channel 0 FIFO */ 91 + #define CIFR_RESET_F (1 << 3) /* Reset input FIFOs */ 92 + #define CIFR_FEN2 (1 << 2) /* FIFO enable for channel 2 */ 93 + #define CIFR_FEN1 (1 << 1) /* FIFO enable for channel 1 */ 94 + #define CIFR_FEN0 (1 << 0) /* FIFO enable for channel 0 */ 95 +
+1 -1
drivers/mtd/nand/pxa3xx_nand.c
··· 20 20 #include <linux/mtd/partitions.h> 21 21 #include <linux/io.h> 22 22 #include <linux/irq.h> 23 - #include <asm/dma.h> 24 23 24 + #include <mach/dma.h> 25 25 #include <mach/pxa-regs.h> 26 26 #include <mach/pxa3xx_nand.h> 27 27
+43
drivers/net/irda/pxaficp_ir.c
··· 26 26 #include <mach/irda.h> 27 27 #include <mach/hardware.h> 28 28 #include <mach/pxa-regs.h> 29 + #include <mach/regs-uart.h> 30 + 31 + #define FICP __REG(0x40800000) /* Start of FICP area */ 32 + #define ICCR0 __REG(0x40800000) /* ICP Control Register 0 */ 33 + #define ICCR1 __REG(0x40800004) /* ICP Control Register 1 */ 34 + #define ICCR2 __REG(0x40800008) /* ICP Control Register 2 */ 35 + #define ICDR __REG(0x4080000c) /* ICP Data Register */ 36 + #define ICSR0 __REG(0x40800014) /* ICP Status Register 0 */ 37 + #define ICSR1 __REG(0x40800018) /* ICP Status Register 1 */ 38 + 39 + #define ICCR0_AME (1 << 7) /* Address match enable */ 40 + #define ICCR0_TIE (1 << 6) /* Transmit FIFO interrupt enable */ 41 + #define ICCR0_RIE (1 << 5) /* Recieve FIFO interrupt enable */ 42 + #define ICCR0_RXE (1 << 4) /* Receive enable */ 43 + #define ICCR0_TXE (1 << 3) /* Transmit enable */ 44 + #define ICCR0_TUS (1 << 2) /* Transmit FIFO underrun select */ 45 + #define ICCR0_LBM (1 << 1) /* Loopback mode */ 46 + #define ICCR0_ITR (1 << 0) /* IrDA transmission */ 47 + 48 + #define ICCR2_RXP (1 << 3) /* Receive Pin Polarity select */ 49 + #define ICCR2_TXP (1 << 2) /* Transmit Pin Polarity select */ 50 + #define ICCR2_TRIG (3 << 0) /* Receive FIFO Trigger threshold */ 51 + #define ICCR2_TRIG_8 (0 << 0) /* >= 8 bytes */ 52 + #define ICCR2_TRIG_16 (1 << 0) /* >= 16 bytes */ 53 + #define ICCR2_TRIG_32 (2 << 0) /* >= 32 bytes */ 54 + 55 + #ifdef CONFIG_PXA27x 56 + #define ICSR0_EOC (1 << 6) /* DMA End of Descriptor Chain */ 57 + #endif 58 + #define ICSR0_FRE (1 << 5) /* Framing error */ 59 + #define ICSR0_RFS (1 << 4) /* Receive FIFO service request */ 60 + #define ICSR0_TFS (1 << 3) /* Transnit FIFO service request */ 61 + #define ICSR0_RAB (1 << 2) /* Receiver abort */ 62 + #define ICSR0_TUR (1 << 1) /* Trunsmit FIFO underun */ 63 + #define ICSR0_EIF (1 << 0) /* End/Error in FIFO */ 64 + 65 + #define ICSR1_ROR (1 << 6) /* Receiver FIFO underrun */ 66 + #define ICSR1_CRE (1 << 5) /* CRC error */ 67 + #define ICSR1_EOF (1 << 4) /* End of frame */ 68 + #define ICSR1_TNF (1 << 3) /* Transmit FIFO not full */ 69 + #define ICSR1_RNE (1 << 2) /* Receive FIFO not empty */ 70 + #define ICSR1_TBY (1 << 1) /* Tramsmiter busy flag */ 71 + #define ICSR1_RSY (1 << 0) /* Recevier synchronized flag */ 29 72 30 73 #define IrSR_RXPL_NEG_IS_ZERO (1<<4) 31 74 #define IrSR_RXPL_POS_IS_ZERO 0x0
+3
drivers/net/smc911x.h
··· 200 200 201 201 202 202 #ifdef SMC_USE_PXA_DMA 203 + 204 + #include <mach/dma.h> 205 + 203 206 /* 204 207 * Define the request and free functions 205 208 * These are unfortunately architecture specific as no generic allocation
+1
drivers/serial/pxa.c
··· 48 48 #include <mach/hardware.h> 49 49 #include <asm/irq.h> 50 50 #include <mach/pxa-regs.h> 51 + #include <mach/regs-uart.h> 51 52 52 53 53 54 struct uart_pxa_port {
+9 -9
drivers/video/pxafb.c
··· 69 69 #define LCCR3_INVALID_CONFIG_MASK (LCCR3_HSP | LCCR3_VSP |\ 70 70 LCCR3_PCD | LCCR3_BPP) 71 71 72 - static void (*pxafb_backlight_power)(int); 73 - static void (*pxafb_lcd_power)(int, struct fb_var_screeninfo *); 74 - 75 72 static int pxafb_activate_var(struct fb_var_screeninfo *var, 76 73 struct pxafb_info *); 77 74 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state); ··· 811 814 __func__); 812 815 return PTR_ERR(fbi->smart_thread); 813 816 } 817 + 814 818 return 0; 815 819 } 816 820 #else ··· 974 976 { 975 977 pr_debug("pxafb: backlight o%s\n", on ? "n" : "ff"); 976 978 977 - if (pxafb_backlight_power) 978 - pxafb_backlight_power(on); 979 + if (fbi->backlight_power) 980 + fbi->backlight_power(on); 979 981 } 980 982 981 983 static inline void __pxafb_lcd_power(struct pxafb_info *fbi, int on) 982 984 { 983 985 pr_debug("pxafb: LCD power o%s\n", on ? "n" : "ff"); 984 986 985 - if (pxafb_lcd_power) 986 - pxafb_lcd_power(on, &fbi->fb.var); 987 + if (fbi->lcd_power) 988 + fbi->lcd_power(on, &fbi->fb.var); 987 989 } 988 990 989 991 static void pxafb_setup_gpio(struct pxafb_info *fbi) ··· 1746 1748 ret = -EINVAL; 1747 1749 goto failed; 1748 1750 } 1749 - pxafb_backlight_power = inf->pxafb_backlight_power; 1750 - pxafb_lcd_power = inf->pxafb_lcd_power; 1751 + 1751 1752 fbi = pxafb_init_fbinfo(&dev->dev); 1752 1753 if (!fbi) { 1753 1754 /* only reason for pxafb_init_fbinfo to fail is kmalloc */ ··· 1754 1757 ret = -ENOMEM; 1755 1758 goto failed; 1756 1759 } 1760 + 1761 + fbi->backlight_power = inf->pxafb_backlight_power; 1762 + fbi->lcd_power = inf->pxafb_lcd_power; 1757 1763 1758 1764 r = platform_get_resource(dev, IORESOURCE_MEM, 0); 1759 1765 if (r == NULL) {
+3
drivers/video/pxafb.h
··· 124 124 struct notifier_block freq_transition; 125 125 struct notifier_block freq_policy; 126 126 #endif 127 + 128 + void (*lcd_power)(int, struct fb_var_screeninfo *); 129 + void (*backlight_power)(int); 127 130 }; 128 131 129 132 #define TO_INF(ptr,member) container_of(ptr,struct pxafb_info,member)
+1 -1
sound/arm/pxa2xx-ac97-lib.c
··· 22 22 23 23 #include <asm/irq.h> 24 24 #include <mach/hardware.h> 25 - #include <mach/pxa-regs.h> 25 + #include <mach/regs-ac97.h> 26 26 #include <mach/pxa2xx-gpio.h> 27 27 #include <mach/audio.h> 28 28
+1
sound/arm/pxa2xx-ac97.c
··· 22 22 23 23 #include <mach/hardware.h> 24 24 #include <mach/pxa-regs.h> 25 + #include <mach/regs-ac97.h> 25 26 #include <mach/audio.h> 26 27 27 28 #include "pxa2xx-pcm.h"
+1 -1
sound/arm/pxa2xx-pcm.h
··· 9 9 * it under the terms of the GNU General Public License version 2 as 10 10 * published by the Free Software Foundation. 11 11 */ 12 - #include <asm/dma.h> 12 + #include <mach/dma.h> 13 13 14 14 struct pxa2xx_runtime_data { 15 15 int dma_ch;
+1
sound/soc/pxa/pxa2xx-ac97.c
··· 21 21 22 22 #include <mach/hardware.h> 23 23 #include <mach/pxa-regs.h> 24 + #include <mach/regs-ac97.h> 24 25 25 26 #include "pxa2xx-pcm.h" 26 27 #include "pxa2xx-ac97.h"