Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6

* 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
ARM/OMAP: Remove the +x bit from a couple of source files
omap: McBSP: Drop unnecessary status/error bit clearing on reg_cacheretrieved register values
OMAP4: fix temporary hacks that break multi-omap PM
OMAP2: cpu_is_omap2*: fix compile-time removal of unused code
omap3: pandora: add missing i2c3 board_info
omap: mach-omap2/io.c: fix function declarations
omap: Fix gpio_resume_after_retention
omap3: Fix support for the LEDs connected to GPIO outputs on IGEP v2board
omap: Checkpatch cleanup for blizzard.h
omap: pass the reboot command to the boot loader
omap2/3/4: mailbox: remove compiler warning
OMAP2: serial.c: Fix number of uarts in early_init
omap: Enable PM_RUNTIME in defconfigs to avoid USB compile errors
omap2: Update n8x0 defconfig to test multi-omap and DMA api changes
omap2: add USB initialization for tusb6010
omap4: Fix build break by moving omap_smc1 into a separate .S
omap2/3/4: ehci: avoid compiler error with touchbook
omap3: Fix compile for Touch Book early_param

+403 -132
+1 -1
arch/arm/configs/cm_t35_defconfig
··· 358 358 CONFIG_SUSPEND=y 359 359 CONFIG_SUSPEND_FREEZER=y 360 360 # CONFIG_APM_EMULATION is not set 361 - # CONFIG_PM_RUNTIME is not set 361 + CONFIG_PM_RUNTIME=y 362 362 CONFIG_ARCH_SUSPEND_POSSIBLE=y 363 363 CONFIG_NET=y 364 364
+1
arch/arm/configs/n770_defconfig
··· 308 308 CONFIG_SUSPEND_UP_POSSIBLE=y 309 309 CONFIG_SUSPEND=y 310 310 # CONFIG_APM_EMULATION is not set 311 + CONFIG_PM_RUNTIME=y 311 312 312 313 # 313 314 # Networking
+142 -18
arch/arm/configs/n8x0_defconfig
··· 191 191 # 192 192 CONFIG_ARCH_OMAP_OTG=y 193 193 # CONFIG_ARCH_OMAP1 is not set 194 + CONFIG_ARCH_OMAP2PLUS=y 194 195 CONFIG_ARCH_OMAP2=y 195 196 # CONFIG_ARCH_OMAP3 is not set 196 197 # CONFIG_ARCH_OMAP4 is not set ··· 199 198 # 200 199 # OMAP Feature Selections 201 200 # 202 - # CONFIG_OMAP_DEBUG_POWERDOMAIN is not set 203 - # CONFIG_OMAP_DEBUG_CLOCKDOMAIN is not set 204 201 CONFIG_OMAP_RESET_CLOCKS=y 205 202 # CONFIG_OMAP_MUX is not set 206 203 # CONFIG_OMAP_MCBSP is not set ··· 207 208 CONFIG_OMAP_32K_TIMER=y 208 209 CONFIG_OMAP_32K_TIMER_HZ=128 209 210 CONFIG_OMAP_DM_TIMER=y 210 - # CONFIG_OMAP_LL_DEBUG_UART1 is not set 211 - # CONFIG_OMAP_LL_DEBUG_UART2 is not set 212 - CONFIG_OMAP_LL_DEBUG_UART3=y 211 + # CONFIG_OMAP_PM_NONE is not set 212 + CONFIG_OMAP_PM_NOOP=y 213 213 # CONFIG_MACH_OMAP_GENERIC is not set 214 214 215 215 # 216 216 # OMAP Core Type 217 217 # 218 - CONFIG_ARCH_OMAP24XX=y 219 218 CONFIG_ARCH_OMAP2420=y 220 219 # CONFIG_ARCH_OMAP2430 is not set 221 220 ··· 224 227 # CONFIG_MACH_OMAP_H4 is not set 225 228 # CONFIG_MACH_OMAP_APOLLON is not set 226 229 # CONFIG_MACH_OMAP_2430SDP is not set 230 + CONFIG_MACH_NOKIA_N800=y 231 + CONFIG_MACH_NOKIA_N810=y 232 + CONFIG_MACH_NOKIA_N810_WIMAX=y 227 233 CONFIG_MACH_NOKIA_N8X0=y 228 234 229 235 # ··· 303 303 CONFIG_ZBOOT_ROM_TEXT=0x10C08000 304 304 CONFIG_ZBOOT_ROM_BSS=0x10200000 305 305 # CONFIG_ZBOOT_ROM is not set 306 - CONFIG_CMDLINE="root=1f03 rootfstype=jffs2 console=ttyS2,115200n8" 306 + CONFIG_CMDLINE="root=/dev/mmcblk0p2 console=ttyS2,115200n8 debug earlyprintk rootwait" 307 307 # CONFIG_XIP_KERNEL is not set 308 308 # CONFIG_KEXEC is not set 309 309 ··· 337 337 # 338 338 # Power management options 339 339 # 340 - # CONFIG_PM is not set 340 + CONFIG_PM=y 341 + # CONFIG_PM_DEBUG is not set 342 + CONFIG_PM_SLEEP=y 343 + CONFIG_SUSPEND=y 344 + CONFIG_SUSPEND_FREEZER=y 345 + # CONFIG_APM_EMULATION is not set 346 + CONFIG_PM_RUNTIME=y 347 + CONFIG_PM_OPS=y 341 348 CONFIG_ARCH_SUSPEND_POSSIBLE=y 342 349 CONFIG_NET=y 343 350 ··· 624 617 # CONFIG_R3964 is not set 625 618 # CONFIG_RAW_DRIVER is not set 626 619 # CONFIG_TCG_TPM is not set 627 - # CONFIG_I2C is not set 620 + CONFIG_I2C=y 621 + CONFIG_I2C_BOARDINFO=y 622 + # CONFIG_I2C_COMPAT is not set 623 + # CONFIG_I2C_CHARDEV is not set 624 + # CONFIG_I2C_HELPER_AUTO is not set 625 + # CONFIG_I2C_SMBUS is not set 626 + 627 + # 628 + # I2C Algorithms 629 + # 630 + # CONFIG_I2C_ALGOBIT is not set 631 + # CONFIG_I2C_ALGOPCF is not set 632 + # CONFIG_I2C_ALGOPCA is not set 633 + 634 + # 635 + # I2C Hardware Bus support 636 + # 637 + 638 + # 639 + # I2C system bus drivers (mostly embedded / system-on-chip) 640 + # 641 + # CONFIG_I2C_DESIGNWARE is not set 642 + # CONFIG_I2C_GPIO is not set 643 + # CONFIG_I2C_OCORES is not set 644 + CONFIG_I2C_OMAP=y 645 + # CONFIG_I2C_SIMTEC is not set 646 + # CONFIG_I2C_XILINX is not set 647 + 648 + # 649 + # External I2C/SMBus adapter drivers 650 + # 651 + # CONFIG_I2C_PARPORT_LIGHT is not set 652 + # CONFIG_I2C_TAOS_EVM is not set 653 + # CONFIG_I2C_TINY_USB is not set 654 + 655 + # 656 + # Other I2C/SMBus bus drivers 657 + # 658 + # CONFIG_I2C_PCA_PLATFORM is not set 659 + # CONFIG_I2C_STUB is not set 660 + 661 + # 662 + # Miscellaneous I2C Chip support 663 + # 664 + # CONFIG_SENSORS_TSL2550 is not set 665 + # CONFIG_I2C_DEBUG_CORE is not set 666 + # CONFIG_I2C_DEBUG_ALGO is not set 667 + # CONFIG_I2C_DEBUG_BUS is not set 668 + # CONFIG_I2C_DEBUG_CHIP is not set 628 669 CONFIG_SPI=y 629 670 # CONFIG_SPI_DEBUG is not set 630 671 CONFIG_SPI_MASTER=y ··· 728 673 # Multifunction device drivers 729 674 # 730 675 # CONFIG_MFD_CORE is not set 676 + # CONFIG_MFD_88PM860X is not set 731 677 # CONFIG_MFD_SM501 is not set 732 678 # CONFIG_MFD_ASIC3 is not set 733 679 # CONFIG_HTC_EGPIO is not set 734 680 # CONFIG_HTC_PASIC3 is not set 681 + # CONFIG_HTC_I2CPLD is not set 682 + # CONFIG_TPS65010 is not set 683 + CONFIG_MENELAUS=y 684 + # CONFIG_TWL4030_CORE is not set 735 685 # CONFIG_MFD_TMIO is not set 736 686 # CONFIG_MFD_T7L66XB is not set 737 687 # CONFIG_MFD_TC6387XB is not set 738 688 # CONFIG_MFD_TC6393XB is not set 689 + # CONFIG_PMIC_DA903X is not set 690 + # CONFIG_PMIC_ADP5520 is not set 691 + # CONFIG_MFD_MAX8925 is not set 692 + # CONFIG_MFD_WM8400 is not set 693 + # CONFIG_MFD_WM831X is not set 694 + # CONFIG_MFD_WM8350_I2C is not set 695 + # CONFIG_MFD_WM8994 is not set 696 + # CONFIG_MFD_PCF50633 is not set 697 + # CONFIG_MFD_MC13783 is not set 698 + # CONFIG_AB3100_CORE is not set 739 699 # CONFIG_EZX_PCAP is not set 700 + # CONFIG_AB4500_CORE is not set 701 + CONFIG_REGULATOR=y 702 + # CONFIG_REGULATOR_DEBUG is not set 703 + # CONFIG_REGULATOR_DUMMY is not set 704 + # CONFIG_REGULATOR_FIXED_VOLTAGE is not set 705 + # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set 706 + # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set 707 + # CONFIG_REGULATOR_BQ24022 is not set 708 + # CONFIG_REGULATOR_MAX1586 is not set 709 + # CONFIG_REGULATOR_MAX8649 is not set 710 + # CONFIG_REGULATOR_MAX8660 is not set 711 + # CONFIG_REGULATOR_LP3971 is not set 712 + # CONFIG_REGULATOR_TPS65023 is not set 713 + # CONFIG_REGULATOR_TPS6507X is not set 740 714 # CONFIG_MEDIA_SUPPORT is not set 741 715 742 716 # ··· 802 718 CONFIG_USB_DEVICEFS=y 803 719 CONFIG_USB_DEVICE_CLASS=y 804 720 # CONFIG_USB_DYNAMIC_MINORS is not set 805 - # CONFIG_USB_OTG is not set 721 + CONFIG_USB_SUSPEND=y 722 + CONFIG_USB_OTG=y 723 + # CONFIG_USB_OTG_WHITELIST is not set 724 + # CONFIG_USB_OTG_BLACKLIST_HUB is not set 806 725 # CONFIG_USB_MON is not set 807 726 # CONFIG_USB_WUSB is not set 808 727 # CONFIG_USB_WUSB_CBAF is not set ··· 824 737 CONFIG_USB_MUSB_HDRC=y 825 738 CONFIG_USB_TUSB6010=y 826 739 # CONFIG_USB_MUSB_HOST is not set 827 - CONFIG_USB_MUSB_PERIPHERAL=y 828 - # CONFIG_USB_MUSB_OTG is not set 740 + # CONFIG_USB_MUSB_PERIPHERAL is not set 741 + CONFIG_USB_MUSB_OTG=y 829 742 CONFIG_USB_GADGET_MUSB_HDRC=y 743 + CONFIG_USB_MUSB_HDRC_HCD=y 830 744 # CONFIG_MUSB_PIO_ONLY is not set 831 745 # CONFIG_USB_INVENTRA_DMA is not set 832 746 # CONFIG_USB_TI_CPPI_DMA is not set ··· 912 824 # CONFIG_USB_ZERO is not set 913 825 # CONFIG_USB_AUDIO is not set 914 826 CONFIG_USB_ETH=y 915 - # CONFIG_USB_ETH_RNDIS is not set 827 + CONFIG_USB_ETH_RNDIS=y 828 + CONFIG_USB_ETH_EEM=y 916 829 # CONFIG_USB_GADGETFS is not set 917 830 # CONFIG_USB_FILE_STORAGE is not set 831 + # CONFIG_USB_MASS_STORAGE is not set 918 832 # CONFIG_USB_G_SERIAL is not set 919 833 # CONFIG_USB_MIDI_GADGET is not set 920 834 # CONFIG_USB_G_PRINTER is not set 921 835 # CONFIG_USB_CDC_COMPOSITE is not set 836 + # CONFIG_USB_G_NOKIA is not set 837 + # CONFIG_USB_G_MULTI is not set 922 838 923 839 # 924 840 # OTG and related infrastructure 925 841 # 926 842 CONFIG_USB_OTG_UTILS=y 927 843 # CONFIG_USB_GPIO_VBUS is not set 844 + # CONFIG_ISP1301_OMAP is not set 845 + # CONFIG_USB_ULPI is not set 928 846 CONFIG_NOP_USB_XCEIV=y 929 - # CONFIG_MMC is not set 847 + CONFIG_MMC=y 848 + # CONFIG_MMC_DEBUG is not set 849 + # CONFIG_MMC_UNSAFE_RESUME is not set 850 + 851 + # 852 + # MMC/SD/SDIO Card Drivers 853 + # 854 + CONFIG_MMC_BLOCK=y 855 + CONFIG_MMC_BLOCK_BOUNCE=y 856 + # CONFIG_SDIO_UART is not set 857 + # CONFIG_MMC_TEST is not set 858 + 859 + # 860 + # MMC/SD/SDIO Host Controller Drivers 861 + # 862 + # CONFIG_MMC_SDHCI is not set 863 + CONFIG_MMC_OMAP=y 864 + # CONFIG_MMC_SPI is not set 930 865 # CONFIG_MEMSTICK is not set 931 - # CONFIG_ACCESSIBILITY is not set 932 866 # CONFIG_NEW_LEDS is not set 867 + # CONFIG_ACCESSIBILITY is not set 933 868 CONFIG_RTC_LIB=y 934 869 # CONFIG_RTC_CLASS is not set 935 870 # CONFIG_DMADEVICES is not set 936 871 # CONFIG_AUXDISPLAY is not set 937 - # CONFIG_REGULATOR is not set 938 872 # CONFIG_UIO is not set 873 + 874 + # 875 + # TI VLYNQ 876 + # 939 877 # CONFIG_STAGING is not set 940 878 941 879 # 942 880 # File systems 943 881 # 944 882 # CONFIG_EXT2_FS is not set 945 - # CONFIG_EXT3_FS is not set 883 + CONFIG_EXT3_FS=y 884 + # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set 885 + CONFIG_EXT3_FS_XATTR=y 886 + # CONFIG_EXT3_FS_POSIX_ACL is not set 887 + # CONFIG_EXT3_FS_SECURITY is not set 946 888 # CONFIG_EXT4_FS is not set 889 + CONFIG_JBD=y 890 + CONFIG_FS_MBCACHE=y 947 891 # CONFIG_REISERFS_FS is not set 948 892 # CONFIG_JFS_FS is not set 949 893 # CONFIG_FS_POSIX_ACL is not set 950 894 # CONFIG_XFS_FS is not set 951 895 # CONFIG_OCFS2_FS is not set 952 896 # CONFIG_BTRFS_FS is not set 897 + # CONFIG_NILFS2_FS is not set 953 898 CONFIG_FILE_LOCKING=y 954 899 CONFIG_FSNOTIFY=y 955 900 CONFIG_DNOTIFY=y ··· 1007 886 # 1008 887 # DOS/FAT/NT Filesystems 1009 888 # 889 + CONFIG_FAT_FS=y 1010 890 # CONFIG_MSDOS_FS is not set 1011 - # CONFIG_VFAT_FS is not set 891 + CONFIG_VFAT_FS=y 892 + CONFIG_FAT_DEFAULT_CODEPAGE=437 893 + CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" 1012 894 # CONFIG_NTFS_FS is not set 1013 895 1014 896 #
+1
arch/arm/configs/omap3_beagle_defconfig
··· 324 324 CONFIG_SUSPEND=y 325 325 CONFIG_SUSPEND_FREEZER=y 326 326 # CONFIG_APM_EMULATION is not set 327 + CONFIG_PM_RUNTIME=y 327 328 CONFIG_ARCH_SUSPEND_POSSIBLE=y 328 329 CONFIG_NET=y 329 330
+1 -1
arch/arm/configs/omap3_defconfig
··· 450 450 # CONFIG_PM_TEST_SUSPEND is not set 451 451 CONFIG_SUSPEND_FREEZER=y 452 452 # CONFIG_APM_EMULATION is not set 453 - # CONFIG_PM_RUNTIME is not set 453 + CONFIG_PM_RUNTIME=y 454 454 CONFIG_ARCH_SUSPEND_POSSIBLE=y 455 455 CONFIG_NET=y 456 456
+1
arch/arm/configs/omap3_evm_defconfig
··· 340 340 CONFIG_SUSPEND=y 341 341 CONFIG_SUSPEND_FREEZER=y 342 342 # CONFIG_APM_EMULATION is not set 343 + CONFIG_PM_RUNTIME=y 343 344 CONFIG_ARCH_SUSPEND_POSSIBLE=y 344 345 CONFIG_NET=y 345 346
+1 -1
arch/arm/configs/omap3_touchbook_defconfig
··· 368 368 # CONFIG_PM_TEST_SUSPEND is not set 369 369 CONFIG_SUSPEND_FREEZER=y 370 370 # CONFIG_APM_EMULATION is not set 371 - # CONFIG_PM_RUNTIME is not set 371 + CONFIG_PM_RUNTIME=y 372 372 CONFIG_ARCH_SUSPEND_POSSIBLE=y 373 373 CONFIG_NET=y 374 374
+1
arch/arm/configs/omap_3430sdp_defconfig
··· 363 363 CONFIG_SUSPEND=y 364 364 CONFIG_SUSPEND_FREEZER=y 365 365 # CONFIG_APM_EMULATION is not set 366 + CONFIG_PM_RUNTIME=y 366 367 CONFIG_ARCH_SUSPEND_POSSIBLE=y 367 368 CONFIG_NET=y 368 369
+1 -1
arch/arm/configs/omap_3630sdp_defconfig
··· 361 361 # CONFIG_PM_TEST_SUSPEND is not set 362 362 CONFIG_SUSPEND_FREEZER=y 363 363 # CONFIG_APM_EMULATION is not set 364 - # CONFIG_PM_RUNTIME is not set 364 + CONFIG_PM_RUNTIME=y 365 365 CONFIG_ARCH_SUSPEND_POSSIBLE=y 366 366 CONFIG_NET=y 367 367
+1
arch/arm/configs/omap_h2_1610_defconfig
··· 331 331 CONFIG_SUSPEND=y 332 332 CONFIG_SUSPEND_FREEZER=y 333 333 # CONFIG_APM_EMULATION is not set 334 + CONFIG_PM_RUNTIME=y 334 335 CONFIG_ARCH_SUSPEND_POSSIBLE=y 335 336 336 337 #
+1
arch/arm/configs/omap_zoom2_defconfig
··· 343 343 # CONFIG_PM_TEST_SUSPEND is not set 344 344 CONFIG_SUSPEND_FREEZER=y 345 345 # CONFIG_APM_EMULATION is not set 346 + CONFIG_PM_RUNTIME=y 346 347 CONFIG_ARCH_SUSPEND_POSSIBLE=y 347 348 CONFIG_NET=y 348 349
+1 -1
arch/arm/configs/omap_zoom3_defconfig
··· 361 361 # CONFIG_PM_TEST_SUSPEND is not set 362 362 CONFIG_SUSPEND_FREEZER=y 363 363 # CONFIG_APM_EMULATION is not set 364 - # CONFIG_PM_RUNTIME is not set 364 + CONFIG_PM_RUNTIME=y 365 365 CONFIG_ARCH_SUSPEND_POSSIBLE=y 366 366 CONFIG_NET=y 367 367
+1
arch/arm/configs/rx51_defconfig
··· 322 322 CONFIG_SUSPEND=y 323 323 CONFIG_SUSPEND_FREEZER=y 324 324 # CONFIG_APM_EMULATION is not set 325 + CONFIG_PM_RUNTIME=y 325 326 CONFIG_ARCH_SUSPEND_POSSIBLE=y 326 327 CONFIG_NET=y 327 328
+3
arch/arm/mach-omap2/Makefile
··· 22 22 # SMP support ONLY available for OMAP4 23 23 obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o 24 24 obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o 25 + obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o 26 + 27 + AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a 25 28 26 29 # Functions loaded to SRAM 27 30 obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o
+1 -1
arch/arm/mach-omap2/board-3430sdp.c
··· 648 648 OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP); 649 649 } 650 650 651 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 651 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 652 652 653 653 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 654 654 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+1 -1
arch/arm/mach-omap2/board-3630sdp.c
··· 54 54 OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP); 55 55 } 56 56 57 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 57 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 58 58 59 59 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 60 60 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+1 -25
arch/arm/mach-omap2/board-4430sdp.c
··· 50 50 }; 51 51 52 52 #ifdef CONFIG_CACHE_L2X0 53 - noinline void omap_smc1(u32 fn, u32 arg) 54 - { 55 - register u32 r12 asm("r12") = fn; 56 - register u32 r0 asm("r0") = arg; 57 - 58 - /* This is common routine cache secure monitor API used to 59 - * modify the PL310 secure registers. 60 - * r0 contains the value to be modified and "r12" contains 61 - * the monitor API number. It uses few CPU registers 62 - * internally and hence they need be backed up including 63 - * link register "lr". 64 - * Explicitly save r11 and r12 the compiler generated code 65 - * won't save it. 66 - */ 67 - asm volatile( 68 - "stmfd r13!, {r11,r12}\n" 69 - "dsb\n" 70 - "smc\n" 71 - "ldmfd r13!, {r11,r12}\n" 72 - : "+r" (r0), "+r" (r12) 73 - : 74 - : "r4", "r5", "r10", "lr", "cc"); 75 - } 76 - EXPORT_SYMBOL(omap_smc1); 77 - 78 53 static int __init omap_l2_cache_init(void) 79 54 { 55 + extern void omap_smc1(u32 fn, u32 arg); 80 56 void __iomem *l2cache_base; 81 57 82 58 /* To avoid code running on other OMAPs in
+1 -1
arch/arm/mach-omap2/board-am3517evm.c
··· 273 273 omap_gpio_init(); 274 274 } 275 275 276 - static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { 276 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 277 277 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 278 278 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 279 279 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+1 -1
arch/arm/mach-omap2/board-cm-t35.c
··· 612 612 {} /* Terminator */ 613 613 }; 614 614 615 - static struct ehci_hcd_omap_platform_data ehci_pdata = { 615 + static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { 616 616 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 617 617 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 618 618 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+1 -1
arch/arm/mach-omap2/board-devkit8000.c
··· 636 636 .power = 100, 637 637 }; 638 638 639 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 639 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 640 640 641 641 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 642 642 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+37 -19
arch/arm/mach-omap2/board-igep0020.c
··· 16 16 #include <linux/clk.h> 17 17 #include <linux/io.h> 18 18 #include <linux/gpio.h> 19 - #include <linux/leds.h> 20 19 #include <linux/interrupt.h> 21 20 22 21 #include <linux/regulator/machine.h> ··· 38 39 #define IGEP2_SMSC911X_CS 5 39 40 #define IGEP2_SMSC911X_GPIO 176 40 41 #define IGEP2_GPIO_USBH_NRESET 24 41 - #define IGEP2_GPIO_LED0_RED 26 42 - #define IGEP2_GPIO_LED0_GREEN 27 42 + #define IGEP2_GPIO_LED0_GREEN 26 43 + #define IGEP2_GPIO_LED0_RED 27 43 44 #define IGEP2_GPIO_LED1_RED 28 44 45 #define IGEP2_GPIO_DVI_PUP 170 45 46 #define IGEP2_GPIO_WIFI_NPD 94 ··· 354 355 gpio_direction_output(IGEP2_GPIO_DVI_PUP, 1)) 355 356 pr_err("IGEP v2: Could not obtain gpio GPIO_DVI_PUP\n"); 356 357 } 357 - #ifdef CONFIG_LEDS_TRIGGERS 358 - static struct gpio_led gpio_leds[] = { 358 + 359 + #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) 360 + #include <linux/leds.h> 361 + 362 + static struct gpio_led igep2_gpio_leds[] = { 359 363 { 360 - .name = "GPIO_LED1_RED", 364 + .name = "led0:red", 365 + .gpio = IGEP2_GPIO_LED0_RED, 366 + }, 367 + { 368 + .name = "led0:green", 361 369 .default_trigger = "heartbeat", 370 + .gpio = IGEP2_GPIO_LED0_GREEN, 371 + }, 372 + { 373 + .name = "led1:red", 362 374 .gpio = IGEP2_GPIO_LED1_RED, 363 375 }, 364 376 }; 365 377 366 - static struct gpio_led_platform_data gpio_leds_info = { 367 - .leds = gpio_leds, 368 - .num_leds = ARRAY_SIZE(gpio_leds), 378 + static struct gpio_led_platform_data igep2_led_pdata = { 379 + .leds = igep2_gpio_leds, 380 + .num_leds = ARRAY_SIZE(igep2_gpio_leds), 369 381 }; 370 382 371 - static struct platform_device leds_gpio = { 383 + static struct platform_device igep2_led_device = { 372 384 .name = "leds-gpio", 373 385 .id = -1, 374 386 .dev = { 375 - .platform_data = &gpio_leds_info, 387 + .platform_data = &igep2_led_pdata, 376 388 }, 377 389 }; 390 + 391 + static void __init igep2_init_led(void) 392 + { 393 + platform_device_register(&igep2_led_device); 394 + } 395 + 396 + #else 397 + static inline void igep2_init_led(void) {} 378 398 #endif 379 399 380 400 static struct platform_device *igep2_devices[] __initdata = { 381 401 &igep2_dss_device, 382 - #ifdef CONFIG_LEDS_TRIGGERS 383 - &leds_gpio, 384 - #endif 385 402 }; 386 403 387 404 static void __init igep2_init_irq(void) ··· 457 442 .power = 100, 458 443 }; 459 444 460 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 445 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 461 446 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, 462 447 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 463 448 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, ··· 486 471 usb_ehci_init(&ehci_pdata); 487 472 488 473 igep2_flash_init(); 474 + igep2_init_led(); 489 475 igep2_display_init(); 490 476 igep2_init_smsc911x(); 491 477 492 478 /* GPIO userspace leds */ 493 - if ((gpio_request(IGEP2_GPIO_LED0_RED, "GPIO_LED0_RED") == 0) && 479 + #if !defined(CONFIG_LEDS_GPIO) && !defined(CONFIG_LEDS_GPIO_MODULE) 480 + if ((gpio_request(IGEP2_GPIO_LED0_RED, "led0:red") == 0) && 494 481 (gpio_direction_output(IGEP2_GPIO_LED0_RED, 1) == 0)) { 495 482 gpio_export(IGEP2_GPIO_LED0_RED, 0); 496 483 gpio_set_value(IGEP2_GPIO_LED0_RED, 0); 497 484 } else 498 485 pr_warning("IGEP v2: Could not obtain gpio GPIO_LED0_RED\n"); 499 486 500 - if ((gpio_request(IGEP2_GPIO_LED0_GREEN, "GPIO_LED0_GREEN") == 0) && 487 + if ((gpio_request(IGEP2_GPIO_LED0_GREEN, "led0:green") == 0) && 501 488 (gpio_direction_output(IGEP2_GPIO_LED0_GREEN, 1) == 0)) { 502 489 gpio_export(IGEP2_GPIO_LED0_GREEN, 0); 503 490 gpio_set_value(IGEP2_GPIO_LED0_GREEN, 0); 504 491 } else 505 492 pr_warning("IGEP v2: Could not obtain gpio GPIO_LED0_GREEN\n"); 506 - #ifndef CONFIG_LEDS_TRIGGERS 507 - if ((gpio_request(IGEP2_GPIO_LED1_RED, "GPIO_LED1_RED") == 0) && 493 + 494 + if ((gpio_request(IGEP2_GPIO_LED1_RED, "led1:red") == 0) && 508 495 (gpio_direction_output(IGEP2_GPIO_LED1_RED, 1) == 0)) { 509 496 gpio_export(IGEP2_GPIO_LED1_RED, 0); 510 497 gpio_set_value(IGEP2_GPIO_LED1_RED, 0); 511 498 } else 512 499 pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_RED\n"); 513 500 #endif 501 + 514 502 /* GPIO W-LAN + Bluetooth combo module */ 515 503 if ((gpio_request(IGEP2_GPIO_WIFI_NPD, "GPIO_WIFI_NPD") == 0) && 516 504 (gpio_direction_output(IGEP2_GPIO_WIFI_NPD, 1) == 0)) {
+98
arch/arm/mach-omap2/board-n8x0.c
··· 37 37 static int slot2_cover_open; 38 38 static struct device *mmc_device; 39 39 40 + #define TUSB6010_ASYNC_CS 1 41 + #define TUSB6010_SYNC_CS 4 42 + #define TUSB6010_GPIO_INT 58 43 + #define TUSB6010_GPIO_ENABLE 0 44 + #define TUSB6010_DMACHAN 0x3f 45 + 46 + #if defined(CONFIG_USB_TUSB6010) || \ 47 + defined(CONFIG_USB_TUSB6010_MODULE) 48 + /* 49 + * Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and 50 + * 1.5 V voltage regulators of PM companion chip. Companion chip will then 51 + * provide then PGOOD signal to TUSB6010 which will release it from reset. 52 + */ 53 + static int tusb_set_power(int state) 54 + { 55 + int i, retval = 0; 56 + 57 + if (state) { 58 + gpio_set_value(TUSB6010_GPIO_ENABLE, 1); 59 + msleep(1); 60 + 61 + /* Wait until TUSB6010 pulls INT pin down */ 62 + i = 100; 63 + while (i && gpio_get_value(TUSB6010_GPIO_INT)) { 64 + msleep(1); 65 + i--; 66 + } 67 + 68 + if (!i) { 69 + printk(KERN_ERR "tusb: powerup failed\n"); 70 + retval = -ENODEV; 71 + } 72 + } else { 73 + gpio_set_value(TUSB6010_GPIO_ENABLE, 0); 74 + msleep(10); 75 + } 76 + 77 + return retval; 78 + } 79 + 80 + static struct musb_hdrc_config musb_config = { 81 + .multipoint = 1, 82 + .dyn_fifo = 1, 83 + .num_eps = 16, 84 + .ram_bits = 12, 85 + }; 86 + 87 + static struct musb_hdrc_platform_data tusb_data = { 88 + #if defined(CONFIG_USB_MUSB_OTG) 89 + .mode = MUSB_OTG, 90 + #elif defined(CONFIG_USB_MUSB_PERIPHERAL) 91 + .mode = MUSB_PERIPHERAL, 92 + #else /* defined(CONFIG_USB_MUSB_HOST) */ 93 + .mode = MUSB_HOST, 94 + #endif 95 + .set_power = tusb_set_power, 96 + .min_power = 25, /* x2 = 50 mA drawn from VBUS as peripheral */ 97 + .power = 100, /* Max 100 mA VBUS for host mode */ 98 + .config = &musb_config, 99 + }; 100 + 101 + static void __init n8x0_usb_init(void) 102 + { 103 + int ret = 0; 104 + static char announce[] __initdata = KERN_INFO "TUSB 6010\n"; 105 + 106 + /* PM companion chip power control pin */ 107 + ret = gpio_request(TUSB6010_GPIO_ENABLE, "TUSB6010 enable"); 108 + if (ret != 0) { 109 + printk(KERN_ERR "Could not get TUSB power GPIO%i\n", 110 + TUSB6010_GPIO_ENABLE); 111 + return; 112 + } 113 + gpio_direction_output(TUSB6010_GPIO_ENABLE, 0); 114 + 115 + tusb_set_power(0); 116 + 117 + ret = tusb6010_setup_interface(&tusb_data, TUSB6010_REFCLK_19, 2, 118 + TUSB6010_ASYNC_CS, TUSB6010_SYNC_CS, 119 + TUSB6010_GPIO_INT, TUSB6010_DMACHAN); 120 + if (ret != 0) 121 + goto err; 122 + 123 + printk(announce); 124 + 125 + return; 126 + 127 + err: 128 + gpio_free(TUSB6010_GPIO_ENABLE); 129 + } 130 + #else 131 + 132 + static void __init n8x0_usb_init(void) {} 133 + 134 + #endif /*CONFIG_USB_TUSB6010 */ 135 + 136 + 40 137 static struct omap2_mcspi_device_config p54spi_mcspi_config = { 41 138 .turbo_mode = 0, 42 139 .single_channel = 1, ··· 659 562 n8x0_menelaus_init(); 660 563 n8x0_onenand_init(); 661 564 n8x0_mmc_init(); 565 + n8x0_usb_init(); 662 566 } 663 567 664 568 MACHINE_START(NOKIA_N800, "Nokia N800")
+1 -1
arch/arm/mach-omap2/board-omap3beagle.c
··· 410 410 } 411 411 } 412 412 413 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 413 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 414 414 415 415 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 416 416 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+1 -1
arch/arm/mach-omap2/board-omap3evm.c
··· 635 635 &omap3_evm_dss_device, 636 636 }; 637 637 638 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 638 + static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { 639 639 640 640 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, 641 641 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+10 -2
arch/arm/mach-omap2/board-omap3pandora.c
··· 459 459 }, 460 460 }; 461 461 462 + static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = { 463 + { 464 + I2C_BOARD_INFO("bq27500", 0x55), 465 + .flags = I2C_CLIENT_WAKE, 466 + }, 467 + }; 468 + 462 469 static int __init omap3pandora_i2c_init(void) 463 470 { 464 471 omap_register_i2c_bus(1, 2600, omap3pandora_i2c_boardinfo, 465 472 ARRAY_SIZE(omap3pandora_i2c_boardinfo)); 466 473 /* i2c2 pins are not connected */ 467 - omap_register_i2c_bus(3, 100, NULL, 0); 474 + omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo, 475 + ARRAY_SIZE(omap3pandora_i2c3_boardinfo)); 468 476 return 0; 469 477 } 470 478 ··· 545 537 &pandora_dss_device, 546 538 }; 547 539 548 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 540 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 549 541 550 542 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 551 543 .port_mode[1] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+6 -6
arch/arm/mach-omap2/board-omap3touchbook.c
··· 493 493 } 494 494 } 495 495 496 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 496 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 497 497 498 498 .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY, 499 499 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, ··· 518 518 gpio_direction_output(TB_KILL_POWER_GPIO, 0); 519 519 } 520 520 521 - static void __init early_touchbook_revision(char **p) 521 + static int __init early_touchbook_revision(char *p) 522 522 { 523 - if (!*p) 524 - return; 523 + if (!p) 524 + return 0; 525 525 526 - strict_strtoul(*p, 10, &touchbook_revision); 526 + return strict_strtoul(p, 10, &touchbook_revision); 527 527 } 528 - __early_param("tbr=", early_touchbook_revision); 528 + early_param("tbr", early_touchbook_revision); 529 529 530 530 static struct omap_musb_board_data musb_board_data = { 531 531 .interface_type = MUSB_INTERFACE_ULPI,
+1 -1
arch/arm/mach-omap2/board-overo.c
··· 394 394 &overo_lcd_device, 395 395 }; 396 396 397 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 397 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 398 398 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, 399 399 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 400 400 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+1 -1
arch/arm/mach-omap2/board-zoom3.c
··· 52 52 #define board_mux NULL 53 53 #endif 54 54 55 - static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 55 + static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { 56 56 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, 57 57 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY, 58 58 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+1
arch/arm/mach-omap2/clock2420_data.c
··· 1841 1841 CLK(NULL, "aes_ick", &aes_ick, CK_242X), 1842 1842 CLK(NULL, "pka_ick", &pka_ick, CK_242X), 1843 1843 CLK(NULL, "usb_fck", &usb_fck, CK_242X), 1844 + CLK("musb_hdrc", "fck", &osc_ck, CK_242X), 1844 1845 }; 1845 1846 1846 1847 /*
+10 -11
arch/arm/mach-omap2/io.c
··· 237 237 } 238 238 239 239 #ifdef CONFIG_ARCH_OMAP2420 240 - void __init omap242x_map_common_io() 240 + void __init omap242x_map_common_io(void) 241 241 { 242 242 iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); 243 243 iotable_init(omap242x_io_desc, ARRAY_SIZE(omap242x_io_desc)); ··· 246 246 #endif 247 247 248 248 #ifdef CONFIG_ARCH_OMAP2430 249 - void __init omap243x_map_common_io() 249 + void __init omap243x_map_common_io(void) 250 250 { 251 251 iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); 252 252 iotable_init(omap243x_io_desc, ARRAY_SIZE(omap243x_io_desc)); ··· 255 255 #endif 256 256 257 257 #ifdef CONFIG_ARCH_OMAP3 258 - void __init omap34xx_map_common_io() 258 + void __init omap34xx_map_common_io(void) 259 259 { 260 260 iotable_init(omap34xx_io_desc, ARRAY_SIZE(omap34xx_io_desc)); 261 261 _omap2_map_common_io(); ··· 263 263 #endif 264 264 265 265 #ifdef CONFIG_ARCH_OMAP4 266 - void __init omap44xx_map_common_io() 266 + void __init omap44xx_map_common_io(void) 267 267 { 268 268 iotable_init(omap44xx_io_desc, ARRAY_SIZE(omap44xx_io_desc)); 269 269 _omap2_map_common_io(); ··· 309 309 { 310 310 pwrdm_init(powerdomains_omap); 311 311 clkdm_init(clockdomains_omap, clkdm_autodeps); 312 - #ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */ 313 312 if (cpu_is_omap242x()) 314 313 omap2420_hwmod_init(); 315 314 else if (cpu_is_omap243x()) ··· 318 319 omap2_mux_init(); 319 320 /* The OPP tables have to be registered before a clk init */ 320 321 omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); 321 - #endif 322 322 323 323 if (cpu_is_omap2420()) 324 324 omap2420_clk_init(); ··· 331 333 pr_err("Could not init clock framework - unknown CPU\n"); 332 334 333 335 omap_serial_early_init(); 334 - #ifndef CONFIG_ARCH_OMAP4 335 - omap_hwmod_late_init(); 336 + if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ 337 + omap_hwmod_late_init(); 336 338 omap_pm_if_init(); 337 - omap2_sdrc_init(sdrc_cs0, sdrc_cs1); 338 - _omap2_init_reprogram_sdrc(); 339 - #endif 339 + if (cpu_is_omap24xx() || cpu_is_omap34xx()) { 340 + omap2_sdrc_init(sdrc_cs0, sdrc_cs1); 341 + _omap2_init_reprogram_sdrc(); 342 + } 340 343 gpmc_init(); 341 344 }
+6 -6
arch/arm/mach-omap2/mailbox.c
··· 430 430 if (unlikely(!res)) { 431 431 dev_err(&pdev->dev, "invalid irq resource\n"); 432 432 ret = -ENODEV; 433 - goto err_iva1; 433 + omap_mbox_unregister(&mbox_dsp_info); 434 + goto err_dsp; 434 435 } 435 436 mbox_iva_info.irq = res->start; 436 437 ret = omap_mbox_register(&pdev->dev, &mbox_iva_info); 437 - if (ret) 438 - goto err_iva1; 438 + if (ret) { 439 + omap_mbox_unregister(&mbox_dsp_info); 440 + goto err_dsp; 441 + } 439 442 } 440 443 #endif 441 444 return 0; 442 - 443 - err_iva1: 444 - omap_mbox_unregister(&mbox_dsp_info); 445 445 446 446 err_dsp: 447 447 iounmap(mbox_base);
+32
arch/arm/mach-omap2/omap44xx-smc.S
··· 1 + /* 2 + * OMAP44xx secure APIs file. 3 + * 4 + * Copyright (C) 2010 Texas Instruments, Inc. 5 + * Written by Santosh Shilimkar <santosh.shilimkar@ti.com> 6 + * 7 + * 8 + * This program is free software,you can redistribute it and/or modify 9 + * it under the terms of the GNU General Public License version 2 as 10 + * published by the Free Software Foundation. 11 + */ 12 + 13 + #include <linux/linkage.h> 14 + 15 + /* 16 + * This is common routine to manage secure monitor API 17 + * used to modify the PL310 secure registers. 18 + * 'r0' contains the value to be modified and 'r12' contains 19 + * the monitor API number. It uses few CPU registers 20 + * internally and hence they need be backed up including 21 + * link register "lr". 22 + * Function signature : void omap_smc1(u32 fn, u32 arg) 23 + */ 24 + 25 + ENTRY(omap_smc1) 26 + stmfd sp!, {r2-r12, lr} 27 + mov r12, r0 28 + mov r0, r1 29 + dsb 30 + smc 31 + ldmfd sp!, {r2-r12, pc} 32 + END(omap_smc1)
+2 -2
arch/arm/mach-omap2/prcm.c
··· 133 133 EXPORT_SYMBOL(omap_prcm_get_reset_sources); 134 134 135 135 /* Resets clock rates and reboots the system. Only called from system.h */ 136 - void omap_prcm_arch_reset(char mode) 136 + void omap_prcm_arch_reset(char mode, const char *cmd) 137 137 { 138 138 s16 prcm_offs = 0; 139 139 ··· 145 145 u32 l; 146 146 147 147 prcm_offs = OMAP3430_GR_MOD; 148 - l = ('B' << 24) | ('M' << 16) | mode; 148 + l = ('B' << 24) | ('M' << 16) | (cmd ? (u8)*cmd : 0); 149 149 /* Reserve the first word in scratchpad for communicating 150 150 * with the boot ROM. A pointer to a data structure 151 151 * describing the boot process can be stored there,
+10 -5
arch/arm/mach-omap2/serial.c
··· 644 644 } 645 645 void __init omap_serial_early_init(void) 646 646 { 647 - int i; 647 + int i, nr_ports; 648 648 char name[16]; 649 + 650 + if (!(cpu_is_omap3630() || cpu_is_omap4430())) 651 + nr_ports = 3; 652 + else 653 + nr_ports = ARRAY_SIZE(omap_uart); 649 654 650 655 /* 651 656 * Make sure the serial ports are muxed on at this point. ··· 658 653 * if not needed. 659 654 */ 660 655 661 - for (i = 0; i < ARRAY_SIZE(omap_uart); i++) { 656 + for (i = 0; i < nr_ports; i++) { 662 657 struct omap_uart_state *uart = &omap_uart[i]; 663 658 struct platform_device *pdev = &uart->pdev; 664 659 struct device *dev = &pdev->dev; ··· 674 669 continue; 675 670 } 676 671 677 - sprintf(name, "uart%d_ick", i+1); 672 + sprintf(name, "uart%d_ick", i + 1); 678 673 uart->ick = clk_get(NULL, name); 679 674 if (IS_ERR(uart->ick)) { 680 - printk(KERN_ERR "Could not get uart%d_ick\n", i+1); 675 + printk(KERN_ERR "Could not get uart%d_ick\n", i + 1); 681 676 uart->ick = NULL; 682 677 } 683 678 684 679 sprintf(name, "uart%d_fck", i+1); 685 680 uart->fck = clk_get(NULL, name); 686 681 if (IS_ERR(uart->fck)) { 687 - printk(KERN_ERR "Could not get uart%d_fck\n", i+1); 682 + printk(KERN_ERR "Could not get uart%d_fck\n", i + 1); 688 683 uart->fck = NULL; 689 684 } 690 685
+3 -3
arch/arm/mach-omap2/usb-ehci.c
··· 70 70 /* 71 71 * setup_ehci_io_mux - initialize IO pad mux for USBHOST 72 72 */ 73 - static void setup_ehci_io_mux(enum ehci_hcd_omap_mode *port_mode) 73 + static void setup_ehci_io_mux(const enum ehci_hcd_omap_mode *port_mode) 74 74 { 75 75 switch (port_mode[0]) { 76 76 case EHCI_HCD_OMAP_MODE_PHY: ··· 213 213 return; 214 214 } 215 215 216 - void __init usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata) 216 + void __init usb_ehci_init(const struct ehci_hcd_omap_platform_data *pdata) 217 217 { 218 218 platform_device_add_data(&ehci_device, pdata, sizeof(*pdata)); 219 219 ··· 229 229 230 230 #else 231 231 232 - void __init usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata) 232 + void __init usb_ehci_init(const struct ehci_hcd_omap_platform_data *pdata) 233 233 234 234 { 235 235 }
+5 -5
arch/arm/plat-omap/gpio.c
··· 2140 2140 if (gen) { 2141 2141 u32 old0, old1; 2142 2142 2143 - if (cpu_is_omap24xx() || cpu_is_omap44xx()) { 2143 + if (cpu_is_omap24xx() || cpu_is_omap34xx()) { 2144 2144 old0 = __raw_readl(bank->base + 2145 2145 OMAP24XX_GPIO_LEVELDETECT0); 2146 2146 old1 = __raw_readl(bank->base + 2147 2147 OMAP24XX_GPIO_LEVELDETECT1); 2148 - __raw_writel(old0 | gen, bank->base + 2148 + __raw_writel(old0 | gen, bank->base + 2149 2149 OMAP24XX_GPIO_LEVELDETECT0); 2150 - __raw_writel(old1 | gen, bank->base + 2150 + __raw_writel(old1 | gen, bank->base + 2151 2151 OMAP24XX_GPIO_LEVELDETECT1); 2152 - __raw_writel(old0, bank->base + 2152 + __raw_writel(old0, bank->base + 2153 2153 OMAP24XX_GPIO_LEVELDETECT0); 2154 - __raw_writel(old1, bank->base + 2154 + __raw_writel(old1, bank->base + 2155 2155 OMAP24XX_GPIO_LEVELDETECT1); 2156 2156 } 2157 2157
+1 -1
arch/arm/plat-omap/include/plat/blizzard.h
··· 6 6 void (*power_down)(struct device *dev); 7 7 unsigned long (*get_clock_rate)(struct device *dev); 8 8 9 - unsigned te_connected : 1; 9 + unsigned te_connected:1; 10 10 }; 11 11 12 12 #endif
+6 -2
arch/arm/plat-omap/include/plat/cpu.h
··· 167 167 #if defined(MULTI_OMAP2) 168 168 # if defined(CONFIG_ARCH_OMAP2) 169 169 # undef cpu_is_omap24xx 170 - # undef cpu_is_omap242x 171 - # undef cpu_is_omap243x 172 170 # define cpu_is_omap24xx() is_omap24xx() 171 + # endif 172 + # if defined (CONFIG_ARCH_OMAP2420) 173 + # undef cpu_is_omap242x 173 174 # define cpu_is_omap242x() is_omap242x() 175 + # endif 176 + # if defined (CONFIG_ARCH_OMAP2430) 177 + # undef cpu_is_omap243x 174 178 # define cpu_is_omap243x() is_omap243x() 175 179 # endif 176 180 # if defined(CONFIG_ARCH_OMAP3)
+1 -1
arch/arm/plat-omap/include/plat/prcm.h
··· 24 24 #define __ASM_ARM_ARCH_OMAP_PRCM_H 25 25 26 26 u32 omap_prcm_get_reset_sources(void); 27 - void omap_prcm_arch_reset(char mode); 27 + void omap_prcm_arch_reset(char mode, const char *cmd); 28 28 int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, u8 idlest, 29 29 const char *name); 30 30
+3 -3
arch/arm/plat-omap/include/plat/system.h
··· 22 22 cpu_do_idle(); 23 23 } 24 24 25 - static inline void omap1_arch_reset(char mode) 25 + static inline void omap1_arch_reset(char mode, const char *cmd) 26 26 { 27 27 /* 28 28 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 ··· 43 43 static inline void arch_reset(char mode, const char *cmd) 44 44 { 45 45 if (!cpu_class_is_omap2()) 46 - omap1_arch_reset(mode); 46 + omap1_arch_reset(mode, cmd); 47 47 else 48 - omap_prcm_arch_reset(mode); 48 + omap_prcm_arch_reset(mode, cmd); 49 49 } 50 50 51 51 #endif
+1 -1
arch/arm/plat-omap/include/plat/usb.h
··· 53 53 54 54 extern void usb_musb_init(struct omap_musb_board_data *board_data); 55 55 56 - extern void usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata); 56 + extern void usb_ehci_init(const struct ehci_hcd_omap_platform_data *pdata); 57 57 58 58 #endif 59 59
+4 -8
arch/arm/plat-omap/mcbsp.c
··· 133 133 dev_err(mcbsp_tx->dev, "TX Frame Sync Error! : 0x%x\n", 134 134 irqst_spcr2); 135 135 /* Writing zero to XSYNC_ERR clears the IRQ */ 136 - MCBSP_WRITE(mcbsp_tx, SPCR2, 137 - MCBSP_READ_CACHE(mcbsp_tx, SPCR2) & ~(XSYNC_ERR)); 136 + MCBSP_WRITE(mcbsp_tx, SPCR2, MCBSP_READ_CACHE(mcbsp_tx, SPCR2)); 138 137 } else { 139 138 complete(&mcbsp_tx->tx_irq_completion); 140 139 } ··· 153 154 dev_err(mcbsp_rx->dev, "RX Frame Sync Error! : 0x%x\n", 154 155 irqst_spcr1); 155 156 /* Writing zero to RSYNC_ERR clears the IRQ */ 156 - MCBSP_WRITE(mcbsp_rx, SPCR1, 157 - MCBSP_READ_CACHE(mcbsp_rx, SPCR1) & ~(RSYNC_ERR)); 157 + MCBSP_WRITE(mcbsp_rx, SPCR1, MCBSP_READ_CACHE(mcbsp_rx, SPCR1)); 158 158 } else { 159 159 complete(&mcbsp_rx->tx_irq_completion); 160 160 } ··· 932 934 /* if frame sync error - clear the error */ 933 935 if (MCBSP_READ(mcbsp, SPCR2) & XSYNC_ERR) { 934 936 /* clear error */ 935 - MCBSP_WRITE(mcbsp, SPCR2, 936 - MCBSP_READ_CACHE(mcbsp, SPCR2) & (~XSYNC_ERR)); 937 + MCBSP_WRITE(mcbsp, SPCR2, MCBSP_READ_CACHE(mcbsp, SPCR2)); 937 938 /* resend */ 938 939 return -1; 939 940 } else { ··· 972 975 /* if frame sync error - clear the error */ 973 976 if (MCBSP_READ(mcbsp, SPCR1) & RSYNC_ERR) { 974 977 /* clear error */ 975 - MCBSP_WRITE(mcbsp, SPCR1, 976 - MCBSP_READ_CACHE(mcbsp, SPCR1) & (~RSYNC_ERR)); 978 + MCBSP_WRITE(mcbsp, SPCR1, MCBSP_READ_CACHE(mcbsp, SPCR1)); 977 979 /* resend */ 978 980 return -1; 979 981 } else {