Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3282bd3cb0c7653e604c0d3666331281ae8f74c4
Commit:     3282bd3cb0c7653e604c0d3666331281ae8f74c4
Parent:     5a860424a1bcf21655d993a7c09b36662e34d2a9
Author:     Yoichi Yuasa <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 23:17:38 2007 +0900
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 23:46:14 2007 +0100

    [MIPS] Cobalt: Move reset port definition to arch/mips/cobalt/reset.c
    
    It's only used in arch/mips/cobalt/reset.c.
    
    Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 arch/mips/cobalt/reset.c              |    8 ++++++--
 include/asm-mips/mach-cobalt/cobalt.h |    7 -------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/arch/mips/cobalt/reset.c b/arch/mips/cobalt/reset.c
index f503a0d..81628b3 100644
--- a/arch/mips/cobalt/reset.c
+++ b/arch/mips/cobalt/reset.c
@@ -9,11 +9,15 @@
  * Copyright (C) 2001 by Liam Davies ([EMAIL PROTECTED])
  */
 #include <linux/init.h>
+#include <linux/io.h>
 #include <linux/jiffies.h>
 #include <linux/leds.h>
 
 #include <cobalt.h>
 
+#define RESET_PORT     ((void __iomem *)CKSEG1ADDR(0x1c000000))
+#define RESET          0x0f
+
 DEFINE_LED_TRIGGER(power_off_led_trigger);
 
 static int __init ledtrig_power_off_init(void)
@@ -43,7 +47,7 @@ void cobalt_machine_halt(void)
                last ^= diff;
 
                if((diff & (COBALT_KEY_ENTER | COBALT_KEY_SELECT)) && !(~last & 
(COBALT_KEY_ENTER | COBALT_KEY_SELECT)))
-                       COBALT_LED_PORT = COBALT_LED_RESET;
+                       writeb(RESET, RESET_PORT);
 
                for (mark = jiffies; jiffies - mark < HZ;)
                        ;
@@ -52,7 +56,7 @@ void cobalt_machine_halt(void)
 
 void cobalt_machine_restart(char *command)
 {
-       COBALT_LED_PORT = COBALT_LED_RESET;
+       writeb(RESET, RESET_PORT);
 
        /* we should never get here */
        cobalt_machine_halt();
diff --git a/include/asm-mips/mach-cobalt/cobalt.h 
b/include/asm-mips/mach-cobalt/cobalt.h
index 4cb5844..a79e7ca 100644
--- a/include/asm-mips/mach-cobalt/cobalt.h
+++ b/include/asm-mips/mach-cobalt/cobalt.h
@@ -22,13 +22,6 @@ extern int cobalt_board_id;
 #define COBALT_BRD_ID_QUBE2    0x5
 #define COBALT_BRD_ID_RAQ2     0x6
 
-#define COBALT_LED_PORT                (*(volatile unsigned char *) 
CKSEG1ADDR(0x1c000000))
-# define COBALT_LED_BAR_LEFT   (1 << 0)        /* Qube */
-# define COBALT_LED_BAR_RIGHT  (1 << 1)        /* Qube */
-# define COBALT_LED_WEB                (1 << 2)        /* RaQ */
-# define COBALT_LED_POWER_OFF  (1 << 3)        /* RaQ */
-# define COBALT_LED_RESET      0x0f
-
 #define COBALT_KEY_PORT                ((~*(volatile unsigned int *) 
CKSEG1ADDR(0x1d000000) >> 24) & COBALT_KEY_MASK)
 # define COBALT_KEY_CLEAR      (1 << 1)
 # define COBALT_KEY_LEFT       (1 << 2)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to