diff options
author | Wolfgang Denk <wd@nyx.denx.de> | 2006-06-19 01:46:08 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@nyx.denx.de> | 2006-06-19 01:46:08 +0200 |
commit | 8d352247ecf3638cdd1ef7df31a6ad700bb80574 (patch) | |
tree | d8f2202361ce6cc944abb39195f66411003b0571 /board/trab/vfd.c | |
parent | 9e18a4bc6cb512dc7ae3a6fc2ed912f71bd8c6c0 (diff) | |
parent | a650cfa286e8933144a776693d56dfd858922aa4 (diff) |
Merge with ssh://atlas/home/wd/git/u-boot/work
Diffstat (limited to 'board/trab/vfd.c')
-rw-r--r-- | board/trab/vfd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/trab/vfd.c b/board/trab/vfd.c index cea8b0b665..2f1e7d7362 100644 --- a/board/trab/vfd.c +++ b/board/trab/vfd.c @@ -358,6 +358,8 @@ void transfer_pic(int display, unsigned char *adr, int height, int width) */ int vfd_init_clocks (void) { + int i; + S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO(); S3C24X0_TIMERS * const timers = S3C24X0_GetBase_TIMERS(); S3C24X0_LCD * const lcd = S3C24X0_GetBase_LCD(); @@ -367,7 +369,9 @@ int vfd_init_clocks (void) */ gpio->PCUP = (gpio->PCUP & 0xFFF0); /* activate GPC0...GPC3 pullups */ gpio->PCCON = (gpio->PCCON & 0xFFFFFF00); /* configure GPC0...GPC3 as inputs */ - udelay (10); /* allow signals to settle */ + /* allow signals to settle */ + for (i=0; i<10000; i++) /* udelay isn't working yet at this point! */ + __asm("NOP"); vfd_board_id = (~gpio->PCDAT) & 0x000F; /* read GPC0...GPC3 port pins */ VFD_DISABLE; /* activate blank for the vfd */ |