From ad2a8ced9daf263f4773e435d12dd7847392422b Mon Sep 17 00:00:00 2001 From: Hamish Guthrie Date: Fri, 30 Mar 2007 07:22:52 +0000 Subject: [PATCH] Moved activity led to correct IO ports SVN-Revision: 6761 --- target/linux/at91-2.6/config/default | 25 +------- .../at91-2.6/patches/005-activity-led.patch | 61 +++++++++++++++++++ 2 files changed, 63 insertions(+), 23 deletions(-) create mode 100644 target/linux/at91-2.6/patches/005-activity-led.patch diff --git a/target/linux/at91-2.6/config/default b/target/linux/at91-2.6/config/default index 4d3c444c1f..27b3fb33d6 100644 --- a/target/linux/at91-2.6/config/default +++ b/target/linux/at91-2.6/config/default @@ -99,29 +99,11 @@ CONFIG_CRYPTO_MD5=m # CONFIG_CRYPTO_WP512 is not set CONFIG_DAVICOM_PHY=y # CONFIG_DEBUG_BUGVERBOSE is not set -# CONFIG_DEBUG_DRIVER is not set -# CONFIG_DEBUG_ERRORS is not set -# CONFIG_DEBUG_INFO is not set -CONFIG_DEBUG_KERNEL=y -# CONFIG_DEBUG_KOBJECT is not set -# CONFIG_DEBUG_LIST is not set -# CONFIG_DEBUG_LL is not set -# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set -# CONFIG_DEBUG_MUTEXES is not set -# CONFIG_DEBUG_RT_MUTEXES is not set -# CONFIG_DEBUG_RWSEMS is not set -# CONFIG_DEBUG_SLAB is not set -# CONFIG_DEBUG_SPINLOCK is not set -# CONFIG_DEBUG_SPINLOCK_SLEEP is not set # CONFIG_DEBUG_USER is not set -# CONFIG_DEBUG_VM is not set -# CONFIG_DEBUG_WAITQ is not set -CONFIG_DETECT_SOFTLOCKUP=y # CONFIG_DM9000 is not set CONFIG_DUMMY_CONSOLE=y # CONFIG_FIRMWARE_EDID is not set # CONFIG_FIXED_PHY is not set -CONFIG_FORCED_INLINING=y # CONFIG_FPE_FASTFPE is not set CONFIG_FPE_NWFPE=y # CONFIG_FPE_NWFPE_XP is not set @@ -166,7 +148,7 @@ CONFIG_LEDS=y CONFIG_LEDS_CPU=y CONFIG_LEDS_TIMER=y CONFIG_LEGACY_PTYS=y -CONFIG_LEGACY_PTY_COUNT=8 +CONFIG_LEGACY_PTY_COUNT=32 # CONFIG_LIBCRC32C is not set # CONFIG_LLC2 is not set # CONFIG_MACH_AT91RM9200EK is not set @@ -182,7 +164,7 @@ CONFIG_MINI_FO=y CONFIG_MMC=m CONFIG_MMC_AT91=m CONFIG_MMC_BLOCK=m -CONFIG_MMC_DEBUG=y +# CONFIG_MMC_DEBUG is not set # CONFIG_MMC_TIFM_SD is not set CONFIG_MTD=y # CONFIG_MTD_ABSENT is not set @@ -248,12 +230,9 @@ CONFIG_PHYLIB=y # CONFIG_PPP_MULTILINK is not set # CONFIG_PPP_SYNC_TTY is not set # CONFIG_QSEMI_PHY is not set -# CONFIG_RCU_TORTURE_TEST is not set # CONFIG_ROMFS_FS is not set CONFIG_RTC_LIB=y -# CONFIG_RT_MUTEX_TESTER is not set CONFIG_RWSEM_GENERIC_SPINLOCK=y -# CONFIG_SCHEDSTATS is not set # CONFIG_SCSI is not set # CONFIG_SERIAL_8250 is not set CONFIG_SERIAL_ATMEL=y diff --git a/target/linux/at91-2.6/patches/005-activity-led.patch b/target/linux/at91-2.6/patches/005-activity-led.patch new file mode 100644 index 0000000000..dbdc0d4cac --- /dev/null +++ b/target/linux/at91-2.6/patches/005-activity-led.patch @@ -0,0 +1,61 @@ +--- linux-2.6.19.2.old/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-25 19:36:45.000000000 +0200 ++++ linux-2.6.19.2/arch/arm/mach-at91rm9200/vlink_leds.c 2007-03-29 09:17:39.000000000 +0200 +@@ -37,13 +37,13 @@ + + static inline void at91_led_toggle(unsigned int led) + { +- unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC7); ++ unsigned long is_off = at91_get_gpio_value(AT91_PIN_PC14); + if (is_off) { +- at91_set_gpio_value(AT91_PIN_PC7, 0); +- at91_set_gpio_value(AT91_PIN_PC8, 1); ++ at91_set_gpio_value(AT91_PIN_PC14, 0); ++ at91_set_gpio_value(AT91_PIN_PC15, 1); + } else { +- at91_set_gpio_value(AT91_PIN_PC7, 1); +- at91_set_gpio_value(AT91_PIN_PC8, 0); ++ at91_set_gpio_value(AT91_PIN_PC14, 1); ++ at91_set_gpio_value(AT91_PIN_PC15, 0); + } + } + +@@ -59,20 +59,11 @@ + + switch(evt) { + case led_start: /* System startup */ +-// at91_led_on(at91_leds_cpu); + at91_led_toggle(at91_leds_timer); +-/* +- at91_set_gpio_value(AT91_PIN_PC7, 0); +- at91_set_gpio_value(AT91_PIN_PC8, 1); +-*/ + break; + + case led_stop: /* System stop / suspend */ + at91_led_toggle(at91_leds_timer); +-/* +- at91_set_gpio_value(AT91_PIN_PC7, 1); +- at91_set_gpio_value(AT91_PIN_PC8, 0); +-*/ + break; + + #ifdef CONFIG_LEDS_TIMER +@@ -84,18 +75,10 @@ + #ifdef CONFIG_LEDS_CPU + case led_idle_start: /* Entering idle state */ + at91_led_toggle(at91_leds_timer); +-/* +- at91_set_gpio_value(AT91_PIN_PC7, 1); +- at91_set_gpio_value(AT91_PIN_PC8, 0); +-*/ + break; + + case led_idle_end: /* Exit idle state */ + at91_led_toggle(at91_leds_timer); +-/* +- at91_set_gpio_value(AT91_PIN_PC7, 0); +- at91_set_gpio_value(AT91_PIN_PC8, 1); +-*/ + break; + #endif + -- 2.25.1