From: "Miguel Ojeda" <maxextreme@gmail.com>
To: "Ben Dooks" <ben-linux@fluff.org>
Cc: greg@kroah.com, alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V3] LCD Display Driver lcddisplay, ks0108, cfag12864b
Date: Wed, 13 Sep 2006 16:25:37 +0200 [thread overview]
Message-ID: <653402b90609130725i10a47accy854d677188b5d7a8@mail.gmail.com> (raw)
In-Reply-To: <20060913140639.GA26265@home.fluff.org>
Please reply in the last patch version, subject:
[PATCH 2/2] drivers: LCD Display support.
On 9/13/06, Ben Dooks <ben-linux@fluff.org> wrote:
> I think there would be a case for splitting the lcd
> drivers into two layers, one to deal with the hardware
> talking to an lcd device (such as an parallel port)
> and the second to deal with the command sequences
> being sent.
>
It is divided already in two layers:
ks0108.c -> It is the driver for a LCD controller. It deals with the
hardware (not directly, it uses parport module). It exports the
functions defined for such controller to other modules.
cfag12864b.c -> It is a LCD driver, depends on ks0108. This is the
driver that tells what and how to write.
> For instance, we have two boards based on ARM which
> use a CPLD to decode CS1 and CS2, etc. This would
> mean re-writing your driver (and anyone elses)
> depending on what sort of LCD we would like to
> connect to these.
>
I don't think so. The ks0108 controller driver was built to control
the LCD using the parallel port and a specific wiring.
If you want to use your boards, write a driver for them. What is the problem.
(Please tell me if I misunderstood you)
> If there was an generic device driver, then you
> could export the writing of bytes to user-space
> and have them use the hardware to do any protocol
> they liked.
>
A generic driver for what? There are many different ports/wirings,
different LCDs displays, different LCD controllers, different
protocols...
I didn't understand what do you mean.
prev parent reply other threads:[~2006-09-13 14:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-12 17:32 Miguel Ojeda Sandonis
2006-09-13 14:06 ` Ben Dooks
2006-09-13 14:25 ` Miguel Ojeda [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=653402b90609130725i10a47accy854d677188b5d7a8@mail.gmail.com \
--to=maxextreme@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=ben-linux@fluff.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®