[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] [patch] remove unused gpio defines for suzaku



Hi,

to help rehabilitation for jet lag ;p, here is minor fix for SUZAKU.
--
       yashi

---

* remove contents of mach_heartbeat()
* remove unused gpio difines

 arch/microblaze/kernel/suzaku.c |   22 ----------------------
 include/asm-microblaze/suzaku.h |    6 ------
 2 files changed, 28 deletions(-)

Index: linux-suzaku/include/asm-microblaze/suzaku.h
===================================================================
--- linux-suzaku.orig/include/asm-microblaze/suzaku.h	2004-08-16 16:57:27.589706896 +0900
+++ linux-suzaku/include/asm-microblaze/suzaku.h	2004-08-16 16:58:38.747963514 +0900
@@ -44,12 +44,6 @@
 #define MICROBLAZE_MEMCON_BASE_ADDR 0xFFFF0000
 #endif
 
-/* GPIO */
-#ifndef MICROBLAZE_GPIO_BASE_ADDR
-#define MICROBLAZE_GPIO_BASE_ADDR 0xFFFF5000
-#define MICROBLAZE_GPIO_DIR 0x0000FF00
-#endif
-
 /* System Register (GPIO) */
 #ifndef MICROBLAZE_SYSREG_BASE_ADDR
 #define MICROBLAZE_SYSREG_BASE_ADDR 0xFFFFA000
Index: linux-suzaku/arch/microblaze/kernel/suzaku.c
===================================================================
--- linux-suzaku.orig/arch/microblaze/kernel/suzaku.c	2004-08-03 09:40:29.000000000 +0900
+++ linux-suzaku/arch/microblaze/kernel/suzaku.c	2004-08-16 17:48:32.073700497 +0900
@@ -38,28 +38,10 @@ extern char __bss_start[], __bss_stop[];
 
 extern void xmbrs_console_init(void);
 
-/* Function to drive one of the LED segments */
 void mach_heartbeat(unsigned int value)
 {
-	/* 
-	 * FIXME Strictly speaking this should probably be 
-	 * protected by a semaphore 
-	 */
-
-	/* Read current value on the port */
-	volatile unsigned int cur_val = microblaze_gpio_read(MICROBLAZE_GPIO_BASE_ADDR);
-
-	/* Clear LED bit  */
-	cur_val &= ~0x00010000;
-
-	/* Set it if required */
-	if(value)
-		cur_val |=  0x00010000;
-	
-	microblaze_gpio_write(MICROBLAZE_GPIO_BASE_ADDR,cur_val);
 }
 
-
 /* mach_gettimeoffset returns the number of microseconds elapsed since the
    start of the current tick */
 unsigned long mach_gettimeoffset(void)
@@ -159,10 +141,6 @@ void __init mach_setup (char **cmdline)
 	 * does it enable individual IRQs on the controller.  Just
          * initialises the intc in preparation for these things */
 	microblaze_intc_master_enable();
-
-	/* Configure the GPIO */
-	/* 8 inputs, 16 outputs */
-	microblaze_gpio_setdir(MICROBLAZE_GPIO_BASE_ADDR,MICROBLAZE_GPIO_DIR);
 }
 
 void mach_get_physical_ram (unsigned long *ram_start, unsigned long *ram_len)
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/