summaryrefslogtreecommitdiff
path: root/board/amcc/taishan/lcd.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-10-12 02:31:39 +0000
committerWolfgang Denk <wd@denx.de>2011-10-22 01:16:08 +0200
commitc4c9fbebae6a62d538817d0ccee698adaafc5d66 (patch)
tree91e9e2b82568b32bf3135bdc25d0a852f6c31095 /board/amcc/taishan/lcd.c
parent712fbcf384b7fbe6118325f21dad98150b24f13b (diff)
downloadu-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.zip
u-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.tar.gz
u-boot-imx-c4c9fbebae6a62d538817d0ccee698adaafc5d66.tar.bz2
consolidate mdelay by providing a common function for all users
There are several mdelay() definitions in the driver and board code. Remove them all and provide a common mdelay() in lib/time.c. Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/amcc/taishan/lcd.c')
-rw-r--r--board/amcc/taishan/lcd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/board/amcc/taishan/lcd.c b/board/amcc/taishan/lcd.c
index 7f7730a..8208ef3 100644
--- a/board/amcc/taishan/lcd.c
+++ b/board/amcc/taishan/lcd.c
@@ -35,8 +35,6 @@
#define LCD_DATA_ADDR ((volatile char *)(CONFIG_SYS_EBC2_LCM_BASE+1))
#define LCD_BLK_CTRL ((volatile char *)(CONFIG_SYS_EBC1_FPGA_BASE+0x2))
-#define mdelay(t) ({unsigned long msec=(t); while (msec--) { udelay(1000);}})
-
static int g_lcd_init_b = 0;
static char *amcc_logo = " AMCC TAISHAN 440GX EvalBoard";
static char addr_flag = 0x80;