diff options
author | Markus Klotzbuecher <mk@denx.de> | 2007-05-29 16:37:57 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2007-05-29 16:37:57 +0200 |
commit | 51d8e813222fa3063d423220f6ff1146df58a471 (patch) | |
tree | a4951077af841bd87a90854b7fb390d12e37b851 /board/xilinx/ml401/ml401.c | |
parent | 3a619dd7bed03e8b4d22a3911f90fd12af5376c2 (diff) | |
parent | 19bf91f9628f80a55d4f171df71041574882b3d6 (diff) | |
download | u-boot-imx-51d8e813222fa3063d423220f6ff1146df58a471.zip u-boot-imx-51d8e813222fa3063d423220f6ff1146df58a471.tar.gz u-boot-imx-51d8e813222fa3063d423220f6ff1146df58a471.tar.bz2 |
Merge git://www.denx.de/git/u-boot into 2007_05_15-testing
Diffstat (limited to 'board/xilinx/ml401/ml401.c')
-rw-r--r-- | board/xilinx/ml401/ml401.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/board/xilinx/ml401/ml401.c b/board/xilinx/ml401/ml401.c index b48103f..955936d 100644 --- a/board/xilinx/ml401/ml401.c +++ b/board/xilinx/ml401/ml401.c @@ -27,6 +27,8 @@ #include <common.h> #include <config.h> +#include <asm/microblaze_intc.h> +#include <asm/asm.h> void do_reset (void) { @@ -43,7 +45,25 @@ void do_reset (void) int gpio_init (void) { #ifdef CFG_GPIO_0 - *((unsigned long *)(CFG_GPIO_0_ADDR)) = 0x0; + *((unsigned long *)(CFG_GPIO_0_ADDR)) = 0xFFFFFFFF; #endif return 0; } + +#ifdef CFG_FSL_2 +void fsl_isr2 (void *arg) { + volatile int num; + *((unsigned int *)(CFG_GPIO_0_ADDR + 0x4)) = + ++(*((unsigned int *)(CFG_GPIO_0_ADDR + 0x4))); + GET (num, 2); + NGET (num, 2); + puts("*"); +} + +void fsl_init2 (void) { + puts("fsl_init2\n"); + install_interrupt_handler (FSL_INTR_2,\ + fsl_isr2,\ + NULL); +} +#endif |