summaryrefslogtreecommitdiff
path: root/board/evb4510/evb4510.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-07-11 22:19:26 +0000
committerwdenk <wdenk>2004-07-11 22:19:26 +0000
commita1f4a3dd0592ef982017a50a7cfe749823114203 (patch)
tree5cb47632f587600559b20ad5ca644e1867fc9f2c /board/evb4510/evb4510.c
parentb9283e2dbedae4492ec0efdf683d51a00566a477 (diff)
downloadu-boot-imx-a1f4a3dd0592ef982017a50a7cfe749823114203.zip
u-boot-imx-a1f4a3dd0592ef982017a50a7cfe749823114203.tar.gz
u-boot-imx-a1f4a3dd0592ef982017a50a7cfe749823114203.tar.bz2
* Patch by George G. Davis, 06 Jul 2004:
- update mach-types.h to latest arm.linux.org.uk master list - Set correct OMAP1610 bi_arch_number for build target * Patch by Curt Brune, 06 Jul 2004: evb4510: add support for timer interrupt; cleanup
Diffstat (limited to 'board/evb4510/evb4510.c')
-rw-r--r--board/evb4510/evb4510.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/board/evb4510/evb4510.c b/board/evb4510/evb4510.c
index 72d1f4e..0008e5a 100644
--- a/board/evb4510/evb4510.c
+++ b/board/evb4510/evb4510.c
@@ -25,13 +25,9 @@
#include <asm/hardware.h>
#include <command.h>
-/* ------------------------------------------------------------------------- */
-
+#ifdef CONFIG_EVB4510
-#define PUT_LED(val) (PUT_REG(REG_IOPDATA, (~val)&0xFF))
-#define GET_LED() ((~GET_REG( REG_IOPDATA)) & 0xFF)
-#define SET_LED(val) { u32 led = GET_LED(); led |= 1 << (val); PUT_LED( led); }
-#define CLR_LED(val) { u32 led = GET_LED(); led &= ~(1 << (val)); PUT_LED( led); }
+/* ------------------------------------------------------------------------- */
/*
* Miscelaneous platform dependent initialisations
@@ -51,25 +47,6 @@ int board_init (void)
PUT_REG( REG_IOPMODE, 0xFFFF);
PUT_REG( REG_IOPDATA, 0xFF);
- /* enable LED 7 to show we're alive */
- SET_LED( 7);
-
- /* configure free running timer 1 */
- /* Stop timer 1 */
- CLR_REG( REG_TMOD, TM1_RUN);
-
- /* Configure for toggle mode */
- SET_REG( REG_TMOD, TM1_TOGGLE);
-
- /* Load Timer data register with count down value */
- PUT_REG( REG_TDATA1, 0xFFFFFFFF);
-
- /* Clear timer counter register */
- PUT_REG( REG_TCNT1, 0x0);
-
- /* Start timer -- count down timer */
- SET_REG( REG_TMOD, TM1_RUN);
-
return 0;
}
@@ -84,3 +61,5 @@ int dram_init (void)
#endif
return 0;
}
+
+#endif