[Lcdproc] [patch] Hitachi SP14Q002 added to sed1330 driver
Benjamin Wiedmann
benjamin.wiedmann@gmx.net
Fri Dec 29 13:38:01 2006
This is a multi-part message in MIME format.
--------------050100020509060301090008
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hi,
attached is the patch to add functionality for the hitachi sp14q002
(b/w) display with a resolution of 320 x 240 (w x h) dots.
If possible it would be very nice if you can take this patch and put it
into the lcdproc source tree so it is usable by anybody without the need
to do the patching work first.
Apply the patch as following:
$ patch -i sed1330.c.diff sed1330.c
Happy New Year :-)
Ciao,
Benjamin Wiedmann
- --
Windows: Designed for the Internet
The Internet: Designed for UN*X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6-ecc01.6 (GNU/Linux)
iQCVAwUBRZUZ+9dDWs1pp/7kAQMjDQP+IiNWYnE1B/D4sjX60AG7lDkgiVuDaay9
d2hNoJExIwqcap6CiwbQ+eCpJ5TTOjUYCkh3zGYE4rD1qEyIXCCQKpXQUv267JKk
Q1b6nB7Zq2m48WzzoVeDPcq54bL6ekIfPusdyBBXOkcGeZc/3G6uUXw0yOuD86JS
5i5JsEJknPA=
=2yko
-----END PGP SIGNATURE-----
--------------050100020509060301090008
Content-Type: text/x-patch;
name="sed1330.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sed1330.c.diff"
17a18
> * 2006, Benjamin Wiedmann <benjamin.wiedmann@gmx.net>
43a45,51
> * December 2006, Benjamin Wiedmann
> * - added support for Hitachi SP14Q002 gLCD (320x240) with ccfl inverter
> * - built for parport version of this interface: Wallbraun Electronics lcdinterface
> * (specifications here: http://wallbraun-electronics.de/produkte/lcdinterface/index.html)
> * - wiring scheme used: "bitshaker" (called "yasedw" in serdisplib)
> * --> default wiring: wr=16; a0=17; rd=01; cs=14
> * --> yasedw wiring: wr=01; a0=14; rd=16; cs=17
180a189
> * display=SP14Q002
212a222,241
>
> // should we use the bitshaker wiring?
> #define WIRING_BITSHAKER
>
> #ifdef WIRING_BITSHAKER
>
> // use BITSHAKER / YASEDW wiring
>
> // pin 14
> #define A0 nLF
> // pin 16
> #define nRESET INIT
> // pin 1
> #define nWR STRB
>
> #else
>
> // use default wiring
>
> // pin 17
214,215c243,248
< #define nRESET STRB
< #define nWR INIT
---
> // pin 1
> #define nRESET STRB
> // pin 16
> #define nWR INIT
>
> #endif
240,244c273,278
< #define TYPE_G321D 1
< #define TYPE_G121C 2
< #define TYPE_G242C 3
< #define TYPE_G191D 4
< #define TYPE_G2446 5
---
> #define TYPE_G321D 1
> #define TYPE_G121C 2
> #define TYPE_G242C 3
> #define TYPE_G191D 4
> #define TYPE_G2446 5
> #define TYPE_SP14Q002 6
381c415,418
<
---
> } else if(strcmp(s, "SP14Q002") == 0) {
> p->type = TYPE_SP14Q002;
> p->graph_width = 320;
> p->graph_height = 240;
500a538,540
> case TYPE_SP14Q002:
> data[4] = 0x38;
> break;
--------------050100020509060301090008--