From afec6787450ff42906cb3ea47ff94c9dc887c5b3 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Sat, 18 Aug 2007 08:46:41 +0000 Subject: Move AVR32 kernel patches to target/device/Atmel/arch-avr32 Add linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch Move AT91 kernel patches to target/device/Atmel/arch-arm Change name from "target/device/Atmel/Linux" to "target/device/Atmel/linux" "kernel-headers" will apply all patches in $(LINUX26_KERNEL_PATCH_DIR) if this is available. Define LINUX26_KERNEL_PATCH_DIR in target/device/Atmel/Makefile.in as above "arch-arm/kernel-patches-..." if an AT91 or as above "arch-avr32/kernel-patches-..." if an AVR32 target is selected Test build done for arm,avr32 and x86 --- ...tmel-gpio_mouse-setup-for-atstk1000-board.patch | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 target/device/Atmel/arch-avr32/kernel-patches-2.6.22.1/linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch (limited to 'target/device/Atmel/arch-avr32/kernel-patches-2.6.22.1/linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch') diff --git a/target/device/Atmel/arch-avr32/kernel-patches-2.6.22.1/linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch b/target/device/Atmel/arch-avr32/kernel-patches-2.6.22.1/linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch new file mode 100644 index 000000000..5683be6f3 --- /dev/null +++ b/target/device/Atmel/arch-avr32/kernel-patches-2.6.22.1/linux-2.6.22.1-008-atmel-gpio_mouse-setup-for-atstk1000-board.patch @@ -0,0 +1,130 @@ +>From 9c5fa914202d20756c56e0c4fd76035ed8f8ced8 Mon Sep 17 00:00:00 2001 +From: Hans-Christian Egtvedt +Date: Mon, 6 Aug 2007 08:31:14 +0200 +Subject: [PATCH 1/1] Add gpio_mouse board setup to atstk1000 board + +This patch adds a gpio_mouse_platform_data to the atstk1000 board code and +registers a gpio_mouse platform_device. This will enable a GPIO mouse on header +J1 on GPIO of the ATSTK1000 development kit. The board code is enabled/disabled +in menuconfig. + +By connecting J1 (GPIO) to J25 (SWITCH) you can use the following keys to +simulate a mouse: + +SW0: right +SW1: down +SW2: up +SW3: left +SW5: right button +SW6: middle button +SW7: left button + +Signed-off-by: Hans-Christian Egtvedt +--- + arch/avr32/boards/atstk1000/Kconfig | 16 ++++++++++ + arch/avr32/boards/atstk1000/atstk1002.c | 48 +++++++++++++++++++++++++++++++ + 2 files changed, 64 insertions(+), 0 deletions(-) + +diff --git a/arch/avr32/boards/atstk1000/Kconfig b/arch/avr32/boards/atstk1000/Kconfig +index 718578f..d99d4bd 100644 +--- a/arch/avr32/boards/atstk1000/Kconfig ++++ b/arch/avr32/boards/atstk1000/Kconfig +@@ -50,6 +50,22 @@ config BOARD_ATSTK1002_SPI1 + GPIO lines and accessed through the J1 jumper block. Say "y" + here to configure that SPI controller. + ++config BOARD_ATSTK1002_GPIO_MOUSE ++ bool "Configure gpio_mouse on GPIO J1 header" ++ depends on !BOARD_ATSTK1002_SW4_CUSTOM ++ help ++ Enable gpio_mouse board configuration on GPIO 0 to 7. Connecting a ++ 10-pin flat cable from J1 (GPIO) to J25 (SWITCH) will let a user give ++ mouse inputs using the the switches SW0 to SW7. ++ ++ SW0: right ++ SW1: down ++ SW2: up ++ SW3: left ++ SW5: right button ++ SW6: middle button ++ SW7: left button ++ + config BOARD_ATSTK1002_J2_LED + bool + default BOARD_ATSTK1002_J2_LED8 || BOARD_ATSTK1002_J2_RGB +diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c +index c958fd4..c7560e5 100644 +--- a/arch/avr32/boards/atstk1000/atstk1002.c ++++ b/arch/avr32/boards/atstk1000/atstk1002.c +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + + #include