]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge omap-upstream
authorTony Lindgren <tony@atomide.com>
Wed, 22 Aug 2007 07:48:45 +0000 (00:48 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 22 Aug 2007 07:48:45 +0000 (00:48 -0700)
Merge branches 'master' and 'omap-upstream'

Conflicts:

arch/arm/configs/omap_h2_1610_defconfig
arch/arm/configs/omap_osk_5912_defconfig
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-apollon-keys.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-n800-audio.c
arch/arm/mach-omap2/board-n800-dsp.c
arch/arm/mach-omap2/board-n800-usb.c
arch/arm/mach-omap2/board-n800.c
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/irq.c
arch/arm/mach-omap2/memory.c
arch/arm/mach-omap2/mux.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/sleep.S
arch/arm/plat-omap/Makefile
arch/arm/plat-omap/common.c
arch/arm/plat-omap/timer32k.c
drivers/i2c/chips/isp1301_omap.c
drivers/i2c/chips/menelaus.c
include/asm-arm/arch-omap/board-2430sdp.h
include/asm-arm/arch-omap/eac.h
include/asm-arm/arch-omap/gpio.h
include/asm-arm/arch-omap/hardware.h
include/asm-arm/arch-omap/io.h
include/asm-arm/arch-omap/menelaus.h
include/asm-arm/arch-omap/mmc.h
include/asm-arm/arch-omap/omap24xx.h
include/asm-arm/arch-omap/onenand.h
include/asm-arm/arch-omap/pm.h

1  2 
Makefile
drivers/i2c/chips/menelaus.c
drivers/net/smc91x.h
drivers/usb/Kconfig
kernel/printk.c

diff --combined Makefile
index 119029fc1b0e5bdd94689e2f1dc9f1b320eecb78,f3229a4945bf57f80f4c87eb504123c4ed21bb29..54408493ef5516d2a0d18b26a1b4ce81d1ea6aa5
+++ b/Makefile
@@@ -1,7 -1,7 +1,7 @@@
  VERSION = 2
  PATCHLEVEL = 6
  SUBLEVEL = 23
- EXTRAVERSION =-rc2
+ EXTRAVERSION =-rc3
  NAME = Holy Dancing Manatees, Batman!
  
  # *DOCUMENTATION*
@@@ -16,9 -16,6 +16,9 @@@
  # o  print "Entering directory ...";
  MAKEFLAGS += -rR --no-print-directory
  
 +# Add custom flags here to avoid conflict with updates
 +EXTRAVERSION := $(EXTRAVERSION)-omap1
 +
  # We are using a recursive build, so we need to do a little thinking
  # to get the ordering right.
  #
@@@ -166,8 -163,6 +166,8 @@@ SUBARCH := $(shell uname -m | sed -e s/
                                  -e s/s390x/s390/ -e s/parisc64/parisc/ \
                                  -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
  
 +SUBARCH := arm
 +
  # Cross compiling and selecting different set of gcc/bin-utils
  # ---------------------------------------------------------------------------
  #
  # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
  
  ARCH          ?= $(SUBARCH)
 -CROSS_COMPILE ?=
 +CROSS_COMPILE ?= arm-linux-
  
  # Architecture as present in compile.h
  UTS_MACHINE := $(ARCH)
index 624413b08815332f8e062cf469650d33a541a05b,d9c92c5e007730ac62f7140ef51f5edb9d5eafb3..9d759644ae0193c277599e2088a015b49cf3d957
@@@ -1,3 -1,3 +1,4 @@@
++
  /*
   * Copyright (C) 2004 Texas Instruments, Inc.
   *
@@@ -49,6 -49,8 +50,6 @@@
  
  #define DRIVER_NAME                   "menelaus"
  
 -#define pr_err(fmt, arg...)   printk(KERN_ERR DRIVER_NAME ": ", ## arg);
 -
  #define MENELAUS_I2C_ADDRESS          0x72
  
  #define MENELAUS_REV                  0x01
@@@ -153,7 -155,7 +154,7 @@@ static int menelaus_write_reg(int reg, 
        int val = i2c_smbus_write_byte_data(the_menelaus->client, reg, value);
  
        if (val < 0) {
 -              pr_err("write error");
 +              dev_err(&the_menelaus->client->dev, "write error");
                return val;
        }
  
@@@ -165,7 -167,7 +166,7 @@@ static int menelaus_read_reg(int reg
        int val = i2c_smbus_read_byte_data(the_menelaus->client, reg);
  
        if (val < 0)
 -              pr_err("read error");
 +              dev_err(&the_menelaus->client->dev, "read error");
  
        return val;
  }
@@@ -930,7 -932,7 +931,7 @@@ static int menelaus_set_time(struct dev
                return status;
        status = menelaus_write_reg(MENELAUS_RTC_WKDAY, BIN2BCD(t->tm_wday));
        if (status < 0) {
 -              dev_err(&the_menelaus->client->dev, "rtc write reg %02x "
 +              dev_err(&the_menelaus->client->dev, "rtc write reg %02x"
                                "err %d\n", MENELAUS_RTC_WKDAY, status);
                return status;
        }
@@@ -1175,7 -1177,7 +1176,7 @@@ static int menelaus_probe(struct i2c_cl
        /* If a true probe check the device */
        rev = menelaus_read_reg(MENELAUS_REV);
        if (rev < 0) {
 -              pr_err("device not found");
 +              dev_err(&client->dev, "device not found");
                err = -ENODEV;
                goto fail1;
        }
        mutex_init(&menelaus->lock);
        INIT_WORK(&menelaus->work, menelaus_work);
  
 -      pr_info("Menelaus rev %d.%d\n", rev >> 4, rev & 0x0f);
 +      dev_info(&client->dev, "Menelaus rev %d.%d\n", rev >> 4, rev & 0x0f);
  
        val = menelaus_read_reg(MENELAUS_VCORE_CTRL1);
        if (val < 0)
@@@ -1256,7 -1258,7 +1257,7 @@@ static int __init menelaus_init(void
  
        res = i2c_add_driver(&menelaus_i2c_driver);
        if (res < 0) {
 -              pr_err("driver registration failed\n");
 +              dev_err(&the_menelaus->client->dev, "driver registration failed\n");
                return res;
        }
  
diff --combined drivers/net/smc91x.h
index 3f097c04e7dc685b7aa9edbdcba5704920fec086,6ff3a1627af87112ea87cca3f7ca7dd952c3a2e7..536d66e36b5a1f22c0f37983e96b9ff588dd8e82
@@@ -241,14 -241,13 +241,14 @@@ SMC_outw(u16 val, void __iomem *ioaddr
  #include <asm/mach-types.h>
  #include <asm/arch/cpu.h>
  
 -#define       SMC_IRQ_FLAGS (( \
 -                 machine_is_omap_h2() \
 -              || machine_is_omap_h3() \
 -              || machine_is_omap_h4() \
 -              || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
 -      ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
 -
 +#ifdef CONFIG_ARCH_OMAP1
 +#define       SMC_IRQ_FLAGS           ((machine_is_omap_innovator() ||        \
 +                                      machine_is_omap_osk())          \
 +                              ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING)
 +#else
 +#define SMC_IRQ_FLAGS         (machine_is_omap_apollon()              \
 +                              ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_LOW)
 +#endif
  
  #elif defined(CONFIG_SH_SH4202_MICRODEV)
  
  
  #define SMC_CAN_USE_8BIT       1
  #define SMC_CAN_USE_16BIT      1
- #define SMC_CAN_USE_32BIT      1
+ #define SMC_CAN_USE_32BIT      0
  
  #define SMC_inb(a, r)          inb((a) + (r))
  #define SMC_inw(a, r)          inw((a) + (r))
  
  #endif  /* BOARDS */
  
- #define set_irq_type(irq, type) do {} while (0)
  #elif   defined(CONFIG_M32R)
  
  #define SMC_CAN_USE_8BIT      0
diff --combined drivers/usb/Kconfig
index 21a42b32ab3d2d0116c20df6dddbe8e8042ccfc0,63436892688c04ca070d8e4574337d2babbedc80..a528cc3cee80fbc0f17d2e5abfc65e4993a3e4f7
@@@ -6,6 -6,9 +6,9 @@@ menuconfig USB_SUPPOR
        bool "USB support"
        depends on HAS_IOMEM
        default y
+       ---help---
+         This option adds core support for Universal Serial Bus (USB).
+         You will also need drivers from the following menu to make use of it.
  
  if USB_SUPPORT
  
@@@ -87,8 -90,6 +90,8 @@@ source "drivers/usb/core/Kconfig
  
  source "drivers/usb/host/Kconfig"
  
 +source "drivers/usb/musb/Kconfig"
 +
  source "drivers/usb/class/Kconfig"
  
  source "drivers/usb/storage/Kconfig"
diff --combined kernel/printk.c
index 52daa19a4c15d03c84c195a2e9c8d641c953b536,8451dfc31d25b4e0e6903e84a55de230fb5363e2..b804efe98c252e981c40ff6a0d447782d5311492
  
  #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
  
 +#ifdef        CONFIG_DEBUG_LL
 +extern void printascii(char *);
 +#endif
 +
  /* printk's without a loglevel use this.. */
  #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
  
@@@ -448,23 -444,12 +448,23 @@@ static void zap_locks(void
        init_MUTEX(&console_sem);
  }
  
 -#if defined(CONFIG_PRINTK_TIME)
 -static int printk_time = 1;
 -#else
  static int printk_time = 0;
 -#endif
 -module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR);
 +
 +#ifdef CONFIG_PRINTK_TIME
 +
 +/*
 + * Initialize printk time. Note that on some systems sched_clock()
 + * does not work until timer is initialized.
 + */
 +static int __init printk_time_init(void)
 +{
 +      printk_time = 1;
 +
 +      return 0;
 +}
 +subsys_initcall(printk_time_init);
 +
 +#else
  
  static int __init printk_time_setup(char *str)
  {
  
  __setup("time", printk_time_setup);
  
 +#endif
 +module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR);
 +
  __attribute__((weak)) unsigned long long printk_clock(void)
  {
        return sched_clock();
@@@ -560,10 -542,6 +560,10 @@@ asmlinkage int vprintk(const char *fmt
        /* Emit the output into the temporary buffer */
        printed_len = vscnprintf(printk_buf, sizeof(printk_buf), fmt, args);
  
 +#ifdef        CONFIG_DEBUG_LL
 +      printascii(printk_buf);
 +#endif
 +
        /*
         * Copy the output into log_buf.  If the caller didn't provide
         * appropriate log level tags, we insert them here
@@@ -1105,6 -1083,19 +1105,19 @@@ int unregister_console(struct console *
  }
  EXPORT_SYMBOL(unregister_console);
  
+ static int __init disable_boot_consoles(void)
+ {
+       if (console_drivers != NULL) {
+               if (console_drivers->flags & CON_BOOT) {
+                       printk(KERN_INFO "turn off boot console %s%d\n",
+                               console_drivers->name, console_drivers->index);
+                       return unregister_console(console_drivers);
+               }
+       }
+       return 0;
+ }
+ late_initcall(disable_boot_consoles);
  /**
   * tty_write_message - write a message to a certain tty, not just the console.
   * @tty: the destination tty_struct