Skip to content

Commit

Permalink
Merge branch 'for-rmk' of git://git.fluff.org/bjdooks/linux into deve…
Browse files Browse the repository at this point in the history
…l-stable

Conflicts:
	arch/arm/Kconfig
  • Loading branch information
Russell King committed Dec 4, 2009
2 parents d7931d9 + 88d2704 commit 602fd7c
Show file tree
Hide file tree
Showing 141 changed files with 5,023 additions and 1,476 deletions.
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/EB2410ITX.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ Maintainers
This board is maintained by Simtec Electronics.


(c) 2004 Ben Dooks, Simtec Electronics
Copyright 2004 Ben Dooks, Simtec Electronics
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/GPIO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ Authour


Ben Dooks, 03 October 2004
(c) 2004 Ben Dooks, Simtec Electronics
Copyright 2004 Ben Dooks, Simtec Electronics
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/Overview.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,4 @@ Port Contributors
Document Author
---------------

Ben Dooks, (c) 2004-2005,2006 Simtec Electronics
Ben Dooks, Copyright 2004-2006 Simtec Electronics
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/S3C2412.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ ATA
Document Author
---------------

Ben Dooks, (c) 2006 Simtec Electronics
Ben Dooks, Copyright 2006 Simtec Electronics
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/S3C2413.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Camera Interface
Document Author
---------------

Ben Dooks, (c) 2006 Simtec Electronics
Ben Dooks, Copyright 2006 Simtec Electronics
2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/Suspend.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ Configuration
Document Author
---------------

Ben Dooks, (c) 2004 Simtec Electronics
Ben Dooks, Copyright 2004 Simtec Electronics

2 changes: 1 addition & 1 deletion Documentation/arm/Samsung-S3C24XX/USB-Host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ Platform Data
Document Author
---------------

Ben Dooks, (c) 2005 Simtec Electronics
Ben Dooks, Copyright 2005 Simtec Electronics
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ source "arch/arm/mach-kirkwood/Kconfig"

source "arch/arm/mach-dove/Kconfig"

source "arch/arm/plat-samsung/Kconfig"
source "arch/arm/plat-s3c24xx/Kconfig"
source "arch/arm/plat-s3c64xx/Kconfig"
source "arch/arm/plat-s3c/Kconfig"
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ plat-$(CONFIG_ARCH_OMAP) := omap
plat-$(CONFIG_PLAT_IOP) := iop
plat-$(CONFIG_PLAT_ORION) := orion
plat-$(CONFIG_PLAT_PXA) := pxa
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c
plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c
plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx s3c
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c samsung
plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c samsung
plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx s3c samsung
plat-$(CONFIG_ARCH_STMP3XXX) := stmp3xxx

ifeq ($(CONFIG_ARCH_EBSA110),y)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2400/include/mach/map.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2400/include/mach/map.h
*
* Copyright 2003,2007 Simtec Electronics
* Copyright 2003-2007 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <[email protected]>
*
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/mach-s3c2410/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ config ARCH_H1940
help
Say Y here if you are using the HP IPAQ H1940

config H1940BT
tristate "Control the state of H1940 bluetooth chip"
depends on ARCH_H1940
select RFKILL
help
This is a simple driver that is able to control
the state of built in bluetooth chip on h1940.

config PM_H1940
bool
help
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-s3c2410/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ obj-$(CONFIG_S3C2410_PLLTABLE) += pll.o
# Machine support

obj-$(CONFIG_ARCH_SMDK2410) += mach-smdk2410.o
obj-$(CONFIG_ARCH_H1940) += mach-h1940.o h1940-bluetooth.o
obj-$(CONFIG_ARCH_H1940) += mach-h1940.o
obj-$(CONFIG_H1940BT) += h1940-bluetooth.o
obj-$(CONFIG_PM_H1940) += pm-h1940.o
obj-$(CONFIG_MACH_N30) += mach-n30.o
obj-$(CONFIG_ARCH_BAST) += mach-bast.o usb-simtec.o
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c2410/bast-irq.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* linux/arch/arm/mach-s3c2410/bast-irq.c
*
* Copyright (c) 2003,2005 Simtec Electronics
* Copyright 2003-2005 Simtec Electronics
* Ben Dooks <[email protected]>
*
* http://www.simtec.co.uk/products/EB2410ITX/
Expand Down Expand Up @@ -141,7 +141,7 @@ static __init int bast_irq_init(void)
unsigned int i;

if (machine_is_bast()) {
printk(KERN_INFO "BAST PC104 IRQ routing, (c) 2005 Simtec Electronics\n");
printk(KERN_INFO "BAST PC104 IRQ routing, Copyright 2005 Simtec Electronics\n");

/* zap all the IRQs */

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/cpu-freq.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* linux/arch/arm/mach-s3c2410/cpu-freq.c
*
* Copyright (c) 2006,2008 Simtec Electronics
* Copyright (c) 2006-2008 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <[email protected]>
*
Expand Down
88 changes: 42 additions & 46 deletions arch/arm/mach-s3c2410/h1940-bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,77 +17,50 @@
#include <linux/ctype.h>
#include <linux/leds.h>
#include <linux/gpio.h>
#include <linux/rfkill.h>

#include <mach/regs-gpio.h>
#include <mach/hardware.h>
#include <mach/h1940-latch.h>

#define DRV_NAME "h1940-bt"

#ifdef CONFIG_LEDS_H1940
DEFINE_LED_TRIGGER(bt_led_trigger);
#endif

static int state;

/* Bluetooth control */
static void h1940bt_enable(int on)
{
if (on) {
#ifdef CONFIG_LEDS_H1940
/* flashing Blue */
led_trigger_event(bt_led_trigger, LED_HALF);
#endif

/* Power on the chip */
h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER);
/* Reset the chip */
mdelay(10);
s3c2410_gpio_setpin(S3C2410_GPH(1), 1);
mdelay(10);
s3c2410_gpio_setpin(S3C2410_GPH(1), 0);

state = 1;
}
else {
#ifdef CONFIG_LEDS_H1940
led_trigger_event(bt_led_trigger, 0);
#endif

s3c2410_gpio_setpin(S3C2410_GPH(1), 1);
mdelay(10);
s3c2410_gpio_setpin(S3C2410_GPH(1), 0);
mdelay(10);
h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0);

state = 0;
}
}

static ssize_t h1940bt_show(struct device *dev, struct device_attribute *attr, char *buf)
static int h1940bt_set_block(void *data, bool blocked)
{
return snprintf(buf, PAGE_SIZE, "%d\n", state);
h1940bt_enable(!blocked);
return 0;
}

static ssize_t h1940bt_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
{
int new_state;
char *endp;

new_state = simple_strtoul(buf, &endp, 0);
if (*endp && !isspace(*endp))
return -EINVAL;

h1940bt_enable(new_state);

return count;
}
static DEVICE_ATTR(enable, 0644,
h1940bt_show,
h1940bt_store);
static const struct rfkill_ops h1940bt_rfkill_ops = {
.set_block = h1940bt_set_block,
};

static int __init h1940bt_probe(struct platform_device *pdev)
{
struct rfkill *rfk;
int ret = 0;

/* Configures BT serial port GPIOs */
s3c2410_gpio_cfgpin(S3C2410_GPH(0), S3C2410_GPH0_nCTS0);
s3c2410_gpio_pullup(S3C2410_GPH(0), 1);
Expand All @@ -98,21 +71,44 @@ static int __init h1940bt_probe(struct platform_device *pdev)
s3c2410_gpio_cfgpin(S3C2410_GPH(3), S3C2410_GPH3_RXD0);
s3c2410_gpio_pullup(S3C2410_GPH(3), 1);

#ifdef CONFIG_LEDS_H1940
led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger);
#endif

/* disable BT by default */
h1940bt_enable(0);
rfk = rfkill_alloc(DRV_NAME, &pdev->dev, RFKILL_TYPE_BLUETOOTH,
&h1940bt_rfkill_ops, NULL);
if (!rfk) {
ret = -ENOMEM;
goto err_rfk_alloc;
}

rfkill_set_led_trigger_name(rfk, "h1940-bluetooth");

ret = rfkill_register(rfk);
if (ret)
goto err_rfkill;

platform_set_drvdata(pdev, rfk);

return 0;

return device_create_file(&pdev->dev, &dev_attr_enable);
err_rfkill:
rfkill_destroy(rfk);
err_rfk_alloc:
return ret;
}

static int h1940bt_remove(struct platform_device *pdev)
{
#ifdef CONFIG_LEDS_H1940
led_trigger_unregister_simple(bt_led_trigger);
#endif
struct rfkill *rfk = platform_get_drvdata(pdev);

platform_set_drvdata(pdev, NULL);

if (rfk) {
rfkill_unregister(rfk);
rfkill_destroy(rfk);
}
rfk = NULL;

h1940bt_enable(0);

return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/bast-cpld.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/bast-cpld.h
*
* Copyright (c) 2003,2004 Simtec Electronics
* Copyright (c) 2003-2004 Simtec Electronics
* Ben Dooks <[email protected]>
*
* BAST - CPLD control constants
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/bast-irq.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/bast-irq.h
*
* Copyright (c) 2003,2004 Simtec Electronics
* Copyright (c) 2003-2004 Simtec Electronics
* Ben Dooks <[email protected]>
*
* Machine BAST - IRQ Number definitions
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/bast-map.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/bast-map.h
*
* Copyright (c) 2003,2004 Simtec Electronics
* Copyright (c) 2003-2004 Simtec Electronics
* Ben Dooks <[email protected]>
*
* Machine BAST - Memory map definitions
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/bast-pmu.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/bast-pmu.h
*
* Copyright (c) 2003,2004 Simtec Electronics
* Copyright (c) 2003-2004 Simtec Electronics
* Ben Dooks <[email protected]>
* Vincent Sanders <[email protected]>
*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/dma.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/dma.h
*
* Copyright (C) 2003,2004,2006 Simtec Electronics
* Copyright (C) 2003-2006 Simtec Electronics
* Ben Dooks <[email protected]>
*
* Samsung S3C24XX DMA support
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/gpio-fns.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/gpio-fns.h
*
* Copyright (c) 2003,2009 Simtec Electronics
* Copyright (c) 2003-2009 Simtec Electronics
* Ben Dooks <[email protected]>
*
* S3C2410 - hardware
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/osiris-map.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/osiris-map.h
*
* (c) 2005 Simtec Electronics
* Copyright 2005 Simtec Electronics
* http://www.simtec.co.uk/products/
* Ben Dooks <[email protected]>
*
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c2410/include/mach/regs-clock.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* arch/arm/mach-s3c2410/include/mach/regs-clock.h
*
* Copyright (c) 2003,2004,2005,2006 Simtec Electronics <[email protected]>
* http://armlinux.simtec.co.uk/
* Copyright (c) 2003-2006 Simtec Electronics <[email protected]>
* http://armlinux.simtec.co.uk/
*
* 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
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c2410/include/mach/regs-gpio.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* arch/arm/mach-s3c2410/include/mach/regs-gpio.h
*
* Copyright (c) 2003,2004 Simtec Electronics <[email protected]>
* http://www.simtec.co.uk/products/SWLINUX/
* Copyright (c) 2003-2004 Simtec Electronics <[email protected]>
* http://www.simtec.co.uk/products/SWLINUX/
*
* 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
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c2410/include/mach/regs-power.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* arch/arm/mach-s3c2410/include/mach/regs-power.h
*
* Copyright (c) 2003,2004,2005,2006 Simtec Electronics <[email protected]>
* http://armlinux.simtec.co.uk/
* Copyright (c) 2003-2006 Simtec Electronics <[email protected]>
* http://armlinux.simtec.co.uk/
*
* 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
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-s3c2410/include/mach/uncompress.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

/* arch/arm/mach-s3c2410/include/mach/uncompress.h
*
* Copyright (c) 2003, 2007 Simtec Electronics
* Copyright (c) 2003-2007 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <[email protected]>
*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/include/mach/vr1000-irq.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* arch/arm/mach-s3c2410/include/mach/vr1000-irq.h
*
* Copyright (c) 2003,2004 Simtec Electronics
* Copyright (c) 2003-2004 Simtec Electronics
* Ben Dooks <[email protected]>
*
* Machine VR1000 - IRQ Number definitions
Expand Down
Loading

0 comments on commit 602fd7c

Please sign in to comment.