]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Cobalt: Add Qube series front LED support to platform register
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Mon, 1 Oct 2007 10:46:50 +0000 (19:46 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:13 +0000 (23:46 +0100)
Add Cobalt Qube series front LED support to platform register.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cobalt/led.c

index 8150af3abb8e55f9bc893c4da02b9d534a6a4e60..1c6ebd468b07ff3f440f5fd2401c7f78b4d1c3f6 100644 (file)
@@ -22,6 +22,8 @@
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
 
+#include <cobalt.h>
+
 static struct resource cobalt_led_resource __initdata = {
        .start  = 0x1c000000,
        .end    = 0x1c000000,
@@ -33,7 +35,11 @@ static __init int cobalt_led_add(void)
        struct platform_device *pdev;
        int retval;
 
-       pdev = platform_device_alloc("cobalt-raq-leds", -1);
+       if (cobalt_board_id == COBALT_BRD_ID_QUBE1 ||
+           cobalt_board_id == COBALT_BRD_ID_QUBE2)
+               pdev = platform_device_alloc("cobalt-qube-leds", -1);
+       else
+               pdev = platform_device_alloc("cobalt-raq-leds", -1);
 
        if (!pdev)
                return -ENOMEM;