[U-Boot-Users] [patch] add reset support for SUZAKU

Yasushi SHOJI yashi at atmark-techno.com
Mon Jun 28 19:57:24 CEST 2004


Hi,

this patch adds reset support for SUZAKU FPGA board.

thanks,
--
             yashi

* Patch by Yasushi SHOJI, 29 Jun 2004:
  - add reset support for SUZAKU


Index: u-boot/board/AtmarkTechno/suzaku/suzaku.c
===================================================================
--- u-boot.orig/board/AtmarkTechno/suzaku/suzaku.c
+++ u-boot/board/AtmarkTechno/suzaku/suzaku.c
@@ -22,8 +22,11 @@
  * MA 02111-1307 USA
  */
 
-#include <common.h>
+/* This is a board specific file.  It's OK to include board specific
+ * header files */
+#include <asm/suzaku.h>
 
 void do_reset(void)
 {
+        *((unsigned long *)(MICROBLAZE_SYSREG_BASE_ADDR)) = MICROBLAZE_SYSREG_RECONFIGURE;
 }
Index: u-boot/include/asm-microblaze/suzaku.h
===================================================================
--- u-boot.orig/include/asm-microblaze/suzaku.h
+++ u-boot/include/asm-microblaze/suzaku.h
@@ -22,4 +22,7 @@
  * MA 02111-1307 USA
  */
 
-/* EMPTY FILE */
+/* System Register (GPIO) */
+#define MICROBLAZE_SYSREG_BASE_ADDR 0xFFFFA000
+#define MICROBLAZE_SYSREG_RECONFIGURE (1 << 0)
+




More information about the U-Boot mailing list