]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Clean up bitrot to sync with mainline
authorTony Lindgren <tony@atomide.com>
Wed, 7 Mar 2007 11:35:30 +0000 (03:35 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Mar 2007 11:35:30 +0000 (03:35 -0800)
- Remove old ARM11 oprofile support and use the mainline version
- Remove old omap-rng and use the mainline version
- Whitespace fixes

Signed-off-by: Tony Lindgren <tony@atomide.com>
12 files changed:
arch/arm/Makefile
arch/arm/oprofile/Makefile
arch/arm/oprofile/common.c
arch/arm/oprofile/op_arm_model.h
arch/arm/plat-omap/devices.c
arch/arm/plat-omap/gpio.c
drivers/cbus/Kconfig
drivers/cbus/retu-pwrbutton.c
drivers/cbus/tahvo-usb.c
drivers/char/Kconfig
drivers/char/omap-rng.c [deleted file]
drivers/char/watchdog/Makefile

index 9892296f521db84a2b14234f510d501168db9d91..ab9f2d4bd04ed0a15b948381070c99eff7d7626b 100644 (file)
@@ -71,7 +71,7 @@ tune-$(CONFIG_CPU_SA110)      :=-mtune=strongarm110
 tune-$(CONFIG_CPU_SA1100)      :=-mtune=strongarm1100
 tune-$(CONFIG_CPU_XSCALE)      :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
 tune-$(CONFIG_CPU_XSC3)                :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale
-tune-$(CONFIG_CPU_V6)          :=$(call cc-option,-mtune=arm1136j-s,-mtune=arm1136jfs)
+tune-$(CONFIG_CPU_V6)          :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
 
 ifeq ($(CONFIG_AEABI),y)
 CFLAGS_ABI     :=-mabi=aapcs-linux -mno-thumb-interwork
index 6a94e54848fd7a965294c1be8fc72e350878aaee..e61d0cc520b76a72419a17244d4a970579bac210 100644 (file)
@@ -8,4 +8,6 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
 
 oprofile-y                             := $(DRIVER_OBJS) common.o backtrace.o
 oprofile-$(CONFIG_CPU_XSCALE)          += op_model_xscale.o
-
+oprofile-$(CONFIG_OPROFILE_ARM11_CORE) += op_model_arm11_core.o
+oprofile-$(CONFIG_OPROFILE_ARMV6)      += op_model_v6.o
+oprofile-$(CONFIG_OPROFILE_MPCORE)     += op_model_mpcore.o
index 7ebbbca7d1db95c8345f5f16f4608c135b30c4c7..a9de727c9327aa29eb266e45860a681e72f1d55c 100644 (file)
@@ -137,6 +137,14 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        spec = &op_xscale_spec;
 #endif
 
+#ifdef CONFIG_OPROFILE_ARMV6
+       spec = &op_armv6_spec;
+#endif
+
+#ifdef CONFIG_OPROFILE_MPCORE
+       spec = &op_mpcore_spec;
+#endif
+
        if (spec) {
                ret = spec->init();
                if (ret < 0)
index 38c6ad158547e2e615620888c59848be57784f46..4899c629aa03473fe4a7d7fe1ad67b77b15ce9d2 100644 (file)
@@ -24,6 +24,9 @@ struct op_arm_model_spec {
 extern struct op_arm_model_spec op_xscale_spec;
 #endif
 
+extern struct op_arm_model_spec op_armv6_spec;
+extern struct op_arm_model_spec op_mpcore_spec;
+
 extern void arm_backtrace(struct pt_regs * const regs, unsigned int depth);
 
 extern int __init op_arm_init(struct oprofile_operations *ops, struct op_arm_model_spec *spec);
index 93bf7c767542ac324cc85d3e97633decf2672e03..2e0419fd976ff3c97d24daf5c9e18f016d96c92a 100644 (file)
@@ -77,7 +77,7 @@ int dsp_kfunc_device_register(struct dsp_kfunc_device *kdev)
        mutex_init(&kdev->lock);
 
        mutex_lock(&dsp_pdata_lock);
-       list_add_tail(&kdev->entry, &dsp_pdata.kdev_list);
+       list_add_tail(&kdev->entry, &dsp_pdata.kdev_list);
        mutex_unlock(&dsp_pdata_lock);
 
        return 0;
index 250e8b2d7b3843a00c37db195eab49eca4b476e3..7e90cea37a4251a5f08dfb919bacdeaad0f2a4b3 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/sysdev.h>
 #include <linux/err.h>
 #include <linux/clk.h>
-#include <linux/delay.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index 008d193ccba3fc601533a6acd7dbe232abc7f29e..f1a5c63e8c94838d54881f6290f2ae6a1f8b7591 100644 (file)
@@ -25,14 +25,14 @@ config CBUS_TAHVO_USER
        depends on CBUS_TAHVO
        bool "Support for Tahvo user space functions"
        ---help---
-         If you want support for Tahvo's user space read/write etc. functions, 
+         If you want support for Tahvo's user space read/write etc. functions,
          you should say Y here.
 
 config CBUS_TAHVO_USB
        depends on CBUS_TAHVO && USB
        tristate "Support for Tahvo USB transceiver"
        ---help---
-         If you want Tahvo support for USB transceiver, say Y or M here. 
+         If you want Tahvo support for USB transceiver, say Y or M here.
 
 config CBUS_TAHVO_USB_HOST_BY_DEFAULT
        depends on CBUS_TAHVO_USB && USB_OTG
@@ -53,7 +53,7 @@ config CBUS_RETU_USER
        depends on CBUS_RETU
        bool "Support for Retu user space functions"
        ---help---
-         If you want support for Retu's user space read/write etc. functions, 
+         If you want support for Retu's user space read/write etc. functions,
          you should say Y here.
 
 config CBUS_RETU_POWERBUTTON
index 7a7469f6f62a0df46d4ded5a5095a1c47ef3fc7c..ad37b6d051beb07898223accc780ca8da5884df1 100644 (file)
@@ -91,7 +91,7 @@ static int __init retubutton_init(void)
        pwrbtn_dev = input_allocate_device();
        if (!pwrbtn_dev)
                return -ENOMEM;
-       
+
        pwrbtn_dev->evbit[0] = BIT(EV_KEY);
        pwrbtn_dev->keybit[LONG(KEY_POWER)] = BIT(KEY_POWER);
        pwrbtn_dev->name = "retu-pwrbutton";
index 934400f69882688802c4ad28993969fb6702be17..1c5a2a53d6e6afca29a5d00a117dc84927040024 100644 (file)
@@ -105,7 +105,7 @@ static struct platform_device tahvo_usb_device;
  * OTG related functions
  *
  * These shoud be separated into omap-otg.c driver module, as they are used
- * by various transceivers. These functions are needed in the UDC-only case 
+ * by various transceivers. These functions are needed in the UDC-only case
  * as well. These functions are copied from GPL isp1301_omap.c
  * ---------------------------------------------------------------------------
  */
index 948b06494d78ea39a027f132710ee5b562212b53..8a54a2b5c987eb274dec36ff33c06bdd1dc8924f 100644 (file)
@@ -703,16 +703,6 @@ config NWFLASH
 
 source "drivers/char/hw_random/Kconfig"
 
-config OMAP_RNG
-       tristate "OMAP Random Number Generator support"
-       depends on ARCH_OMAP16XX || ARCH_OMAP24XX
-       ---help---
-         This driver provides kernel-side support for the Random Number
-         Generator hardware found on OMAP16xx and OMAP24xx multimedia
-         processors.
-
-         If unsure, say N.
-
 config NVRAM
        tristate "/dev/nvram support"
        depends on ATARI || X86 || ARM || GENERIC_NVRAM
diff --git a/drivers/char/omap-rng.c b/drivers/char/omap-rng.c
deleted file mode 100644 (file)
index cc3290e..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * drivers/char/omap-rng.c
- *
- * Copyright (C) 2005 Nokia Corporation
- * Author: Juha Yrjölä <juha.yrjola@nokia.com>
- *
- * OMAP16xx and OMAP24xx Random Number Generator driver
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- */
-
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/random.h>
-#include <linux/err.h>
-#include <linux/clk.h>
-
-#include <asm/io.h>
-
-#if defined (CONFIG_ARCH_OMAP16XX)
-#define RNG_BASE               0xfffe5000
-#endif
-#if defined (CONFIG_ARCH_OMAP24XX)
-#define RNG_BASE               0x480A0000
-#endif
-
-#define RNG_OUT_REG            0x00            /* Output register */
-#define RNG_STAT_REG           0x04            /* Status register
-                                                       [0] = STAT_BUSY */
-#define RNG_ALARM_REG          0x24            /* Alarm register
-                                                       [7:0] = ALARM_COUNTER */
-#define RNG_CONFIG_REG         0x28            /* Configuration register
-                                                       [11:6] = RESET_COUNT
-                                                       [5:3]  = RING2_DELAY 
-                                                       [2:0]  = RING1_DELAY */
-#define RNG_REV_REG            0x3c            /* Revision register
-                                                       [7:0] = REV_NB */
-#define RNG_MASK_REG           0x40            /* Mask and reset register
-                                                       [2] = IT_EN
-                                                       [1] = SOFTRESET
-                                                       [0] = AUTOIDLE */
-#define RNG_SYSSTATUS          0x44            /* System status
-                                                       [0] = RESETDONE */
-
-#define ENTROPY_WORD_COUNT     128
-
-static u32 rng_base = io_p2v(RNG_BASE);
-
-static struct clk *rng_ick = NULL;
-
-static u32 rng_read_reg(int reg)
-{
-       return __raw_readl(rng_base + reg);
-}
-
-static void rng_write_reg(int reg, u32 val)
-{
-       __raw_writel(val, rng_base + reg);
-}
-
-static void rng_feed_entropy(int count)
-{
-       u32 l;
-
-       while (count--) {
-               while (rng_read_reg(RNG_STAT_REG));
-               l = rng_read_reg(RNG_OUT_REG);
-               add_input_randomness(0, 0, l);
-       }
-}
-
-static int __init rng_init(void)
-{
-       if (!cpu_is_omap16xx() && !cpu_is_omap24xx())
-               return -ENODEV;
-
-       if (cpu_is_omap24xx()) {
-               rng_ick = clk_get(NULL, "rng_ick");
-               if (IS_ERR(rng_ick)) {
-                       printk(KERN_ERR "omap-rng.c: Could not get rng_ick\n");
-                       return PTR_ERR(rng_ick);
-               }
-               clk_enable(rng_ick);
-       }
-
-       printk("OMAP Random Number Generator ver. %02x\n",
-       rng_read_reg(RNG_REV_REG));
-       rng_write_reg(RNG_MASK_REG, 0x00000001);
-       rng_feed_entropy(ENTROPY_WORD_COUNT);
-       rng_write_reg(RNG_MASK_REG, 0x00000000);
-       printk("%d words of entropy generated\n", ENTROPY_WORD_COUNT);
-
-       return 0;
-}
-late_initcall(rng_init);
index b15f99e83bd13368d1d417c90943a498f7d3844d..2cd8ff8d10ac839b1e251c51225521dd89d76ef3 100644 (file)
@@ -29,7 +29,6 @@ obj-$(CONFIG_21285_WATCHDOG) += wdt285.o
 obj-$(CONFIG_977_WATCHDOG) += wdt977.o
 obj-$(CONFIG_IXP2000_WATCHDOG) += ixp2000_wdt.o
 obj-$(CONFIG_IXP4XX_WATCHDOG) += ixp4xx_wdt.o
-obj-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o
 obj-$(CONFIG_S3C2410_WATCHDOG) += s3c2410_wdt.o
 obj-$(CONFIG_SA1100_WATCHDOG) += sa1100_wdt.o
 obj-$(CONFIG_MPCORE_WATCHDOG) += mpcore_wdt.o