diff options
author | lfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-07-29 20:59:12 +0000 |
---|---|---|
committer | lfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-07-29 20:59:12 +0000 |
commit | da69730d294e0afb01e3f0cda58c0586dfc4c735 (patch) | |
tree | 3049a5cce1e66673b280e75615999d8c4390f859 | |
parent | 527a8de007076606a3a4f5add720e816bee05aed (diff) | |
download | lcd4linux-da69730d294e0afb01e3f0cda58c0586dfc4c735.tar.gz |
[lcd4linux @ 2006-07-29 20:59:12 by lfcorreia]
Fix wrong timing at I2C initialization
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@675 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_HD44780.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c index 25b3ce5..b5064c5 100644 --- a/drv_HD44780.c +++ b/drv_HD44780.c @@ -1,4 +1,4 @@ -/* $Id: drv_HD44780.c,v 1.62 2006/01/30 06:25:49 reinelt Exp $ +/* $Id: drv_HD44780.c,v 1.63 2006/07/29 20:59:12 lfcorreia Exp $ * * new style driver for HD44780-based displays * @@ -32,6 +32,9 @@ * * * $Log: drv_HD44780.c,v $ + * Revision 1.63 2006/07/29 20:59:12 lfcorreia + * Fix wrong timing at I2C initialization + * * Revision 1.62 2006/01/30 06:25:49 reinelt * added CVS Revision * @@ -1019,7 +1022,7 @@ static int drv_HD_I2C_load(const char *section) drv_HD_I2C_nibble(allControllers, 0x03); udelay(T_INIT2); /* 4 Bit mode, wait 100 us */ drv_HD_I2C_nibble(allControllers, 0x03); - udelay(T_INIT2); /* 4 Bit mode, wait 4.1 ms */ + udelay(T_INIT1); /* 4 Bit mode, wait 4.1 ms */ drv_HD_I2C_nibble(allControllers, 0x02); udelay(T_INIT2); /* 4 Bit mode, wait 100 us */ drv_HD_I2C_command(allControllers, 0x28, T_EXEC); /* 4 Bit mode, 1/16 duty cycle, 5x8 font */ @@ -1483,7 +1486,7 @@ int drv_HD_init(const char *section, const int quiet) int asc255bug; int ret; - info("%s: %s", Name, "$Revision: 1.62 $"); + info("%s: %s", Name, "$Revision: 1.63 $"); /* display preferences */ XRES = 5; /* pixel width of one char */ |