diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/linux/linux-2.6.18/pio-deglitch.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/linux/linux-2.6.18/pio-deglitch.patch')
-rw-r--r-- | recipes/linux/linux-2.6.18/pio-deglitch.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.18/pio-deglitch.patch b/recipes/linux/linux-2.6.18/pio-deglitch.patch new file mode 100644 index 0000000000..3fe9231861 --- /dev/null +++ b/recipes/linux/linux-2.6.18/pio-deglitch.patch @@ -0,0 +1,40 @@ +--- + arch/avr32/mach-at32ap/pio.c | 12 ++++++++++++ + include/asm-avr32/arch-at32ap/gpio.h | 1 + + 2 files changed, 13 insertions(+) + +Index: linux-2.6.18-avr32/arch/avr32/mach-at32ap/pio.c +=================================================================== +--- linux-2.6.18-avr32.orig/arch/avr32/mach-at32ap/pio.c 2006-11-30 11:55:02.000000000 +0100 ++++ linux-2.6.18-avr32/arch/avr32/mach-at32ap/pio.c 2006-11-30 11:57:52.000000000 +0100 +@@ -122,6 +122,18 @@ fail: + dump_stack(); + } + ++void at32_set_deglitch(unsigned int pin, int enable) ++{ ++ struct pio_device *pio; ++ u32 mask = 1 << (pin & 0x1f); ++ ++ pio = gpio_to_pio(pin); ++ if (enable) ++ pio_writel(pio, IFER, mask); ++ else ++ pio_writel(pio, IFDR, mask); ++} ++ + static unsigned int pio_id(struct pio_device *pio) + { + return pio - pio_dev; +Index: linux-2.6.18-avr32/include/asm-avr32/arch-at32ap/gpio.h +=================================================================== +--- linux-2.6.18-avr32.orig/include/asm-avr32/arch-at32ap/gpio.h 2006-11-30 11:54:56.000000000 +0100 ++++ linux-2.6.18-avr32/include/asm-avr32/arch-at32ap/gpio.h 2006-11-30 11:55:56.000000000 +0100 +@@ -16,6 +16,7 @@ + void at32_select_periph(unsigned int pin, unsigned int periph, + unsigned long flags); + void at32_select_gpio(unsigned int pin, unsigned long flags); ++void at32_set_deglitch(unsigned int pin, int enable); + + /* Arch-neutral GPIO API */ + int __must_check gpio_request(unsigned int gpio, const char *label); |