patch-2.4.14 linux/arch/arm/mach-sa1100/leds-cerf.c

Next file: linux/arch/arm/mach-sa1100/leds-simpad.c
Previous file: linux/arch/arm/mach-sa1100/leds-assabet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/arch/arm/mach-sa1100/leds-cerf.c linux/arch/arm/mach-sa1100/leds-cerf.c
@@ -19,11 +19,23 @@
 static unsigned int led_state;
 static unsigned int hw_led_state;
 
+#ifdef CONFIG_SA1100_CERF_CPLD
+
+#define LED_D0		GPIO_GPIO(0)
+#define LED_D1		GPIO_GPIO(0)
+#define LED_D2		GPIO_GPIO(0)
+#define LED_D3		GPIO_GPIO(0)
+#define LED_MASK	(LED_D0|LED_D1|LED_D2|LED_D3)
+
+#else
+
 #define LED_D0          GPIO_GPIO(0)
 #define LED_D1          GPIO_GPIO(1)
 #define LED_D2          GPIO_GPIO(2)
 #define LED_D3          GPIO_GPIO(3)
 #define LED_MASK        (LED_D0|LED_D1|LED_D2|LED_D3)
+
+#endif
 
 void cerf_leds_event(led_event_t evt)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)