diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-13 06:46:51 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-13 06:46:51 +0000 |
commit | 517e84e9fd1b39fdef831c6fc5c6e774bf20a12a (patch) | |
tree | 884ac9ec162cce83712ba2ea8d921f90e04b9307 /drv_M50530.c | |
parent | 394f120984960ad12631f9934fe63bacc64aebe3 (diff) | |
download | lcd4linux-517e84e9fd1b39fdef831c6fc5c6e774bf20a12a.tar.gz |
[lcd4linux @ 2006-08-13 06:46:51 by reinelt]
T6963 soft-timing & enhancements; indent
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@689 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | drv_M50530.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/drv_M50530.c b/drv_M50530.c index fcf6d25..8387b6b 100644 --- a/drv_M50530.c +++ b/drv_M50530.c @@ -1,4 +1,4 @@ -/* $Id: drv_M50530.c,v 1.23 2006/08/11 11:59:29 reinelt Exp $ +/* $Id: drv_M50530.c,v 1.24 2006/08/13 06:46:51 reinelt Exp $ * * new style driver for M50530-based displays * @@ -23,6 +23,9 @@ * * * $Log: drv_M50530.c,v $ + * Revision 1.24 2006/08/13 06:46:51 reinelt + * T6963 soft-timing & enhancements; indent + * * Revision 1.23 2006/08/11 11:59:29 reinelt * M50530 minor fixes * @@ -208,10 +211,10 @@ static void drv_M5_busy(void) /* set data-lines to input */ drv_generic_parport_direction(1); - + /* clear I/OC1 and I/OC2, set R/W */ drv_generic_parport_control(SIGNAL_IOC1 | SIGNAL_IOC2 | SIGNAL_RW, SIGNAL_RW); - + /* Control data setup time */ ndelay(T_SU); @@ -223,19 +226,19 @@ static void drv_M5_busy(void) /* data output delay time */ ndelay(T_D); - + /* read the busy flag */ data = drv_generic_parport_read(); /* lower enable */ /* as T_D is larger than T_W, we don't need to delay again */ drv_generic_parport_control(SIGNAL_EX, 0); - + if ((data & busymask) == 0) { errors = 0; break; } - + /* make sure we don't wait forever * - but only check after 5 iterations * that way, we won't slow down normal mode @@ -273,7 +276,7 @@ static void drv_M5_busy(void) drv_generic_parport_control(SIGNAL_RW, 0); /* honour data hold time */ - ndelay (T_H); + ndelay(T_H); /* set data-lines to output */ drv_generic_parport_direction(0); @@ -304,7 +307,7 @@ static void drv_M5_command(const unsigned int cmd, const int delay) if (UseBusy) { /* honour data hold time */ - ndelay (T_H); + ndelay(T_H); } else { /* wait for command completion */ udelay(delay); @@ -498,10 +501,10 @@ static int drv_M5_start(const char *section, const int quiet) * modification from the config file. */ - T_SU = timing(Name, section, "SU", 200, "ns"); /* control data setup time */ - T_W = timing(Name, section, "W", 500, "ns"); /* EX signal pulse width */ - T_D = timing(Name, section, "D", 300, "ns"); /* Data output delay time */ - T_H = timing(Name, section, "H", 100, "ns"); /* Data hold time */ + T_SU = timing(Name, section, "SU", 200, "ns"); /* control data setup time */ + T_W = timing(Name, section, "W", 500, "ns"); /* EX signal pulse width */ + T_D = timing(Name, section, "D", 300, "ns"); /* Data output delay time */ + T_H = timing(Name, section, "H", 100, "ns"); /* Data hold time */ /* GPO timing */ if (SIGNAL_GPO != 0) { @@ -517,9 +520,9 @@ static int drv_M5_start(const char *section, const int quiet) * modification from the config file. */ - T_EXEC = timing(Name, section, "EXEC", 20, "us"); /* normal execution time */ - T_CLEAR = timing(Name, section, "CLEAR", 1250, "us"); /* 'clear display' execution time */ - T_INIT = timing(Name, section, "INIT", 2000, "us"); /* mysterious initialization time */ + T_EXEC = timing(Name, section, "EXEC", 20, "us"); /* normal execution time */ + T_CLEAR = timing(Name, section, "CLEAR", 1250, "us"); /* 'clear display' execution time */ + T_INIT = timing(Name, section, "INIT", 2000, "us"); /* mysterious initialization time */ /* maybe use busy-flag from now on */ @@ -688,7 +691,7 @@ int drv_M5_init(const char *section, const int quiet) WIDGET_CLASS wc; int ret; - info("%s: %s", Name, "$Revision: 1.23 $"); + info("%s: %s", Name, "$Revision: 1.24 $"); /* display preferences */ XRES = -1; /* pixel width of one char */ |