linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine
@ 2012-11-18 10:56 Alexander Shiyan
  2012-11-18 11:10 ` Russell King - ARM Linux
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Shiyan @ 2012-11-18 10:56 UTC (permalink / raw)
  To: linux-arm-kernel

arm-charlcd driver can be used on any ARM machine, so dependency of
PLAT_VERSATILE is removed.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/misc/Kconfig |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b151b7c..ac67ce5 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -434,13 +434,14 @@ config VMWARE_BALLOON
 
 config ARM_CHARLCD
 	bool "ARM Ltd. Character LCD Driver"
-	depends on PLAT_VERSATILE
-	help
-	  This is a driver for the character LCD found on the ARM Ltd.
-	  Versatile and RealView Platform Baseboards. It doesn't do
-	  very much more than display the text "ARM Linux" on the first
-	  line and the Linux version on the second line, but that's
-	  still useful.
+	depends on ARM
+	help
+	  This is a driver for the on-board character LCD found on some
+	  ARM reference boards, for example on Versatile or RealView Platform
+	  Baseboards. This is basically an Hitachi HD44780 LCD.
+	  Driver doesn't do very much more than display the text "ARM Linux"
+	  on the first line and the Linux version on the second line, but
+	  that's still useful.
 
 config BMP085
 	bool
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine
  2012-11-18 10:56 [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine Alexander Shiyan
@ 2012-11-18 11:10 ` Russell King - ARM Linux
  2012-11-18 11:36   ` Re[2]: " Alexander Shiyan
  2012-11-18 11:49   ` Alexander Shiyan
  0 siblings, 2 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2012-11-18 11:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Nov 18, 2012 at 02:56:40PM +0400, Alexander Shiyan wrote:
> arm-charlcd driver can be used on any ARM machine, so dependency of
> PLAT_VERSATILE is removed.

This needs a better explanation.  We know that it's used on ARMs
reference boards.  Which other platforms will be making use of this
driver?  Do these other boards implement the same interface, including
the presence of the interrupt?

I'd need to re-read the specs, but I think that the interface this
driver uses is provided by ARMs FPGA rather than the LCD module itself,
and re-use of this driver would need that IP to be implemented elsewhere.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[2]: [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine
  2012-11-18 11:10 ` Russell King - ARM Linux
@ 2012-11-18 11:36   ` Alexander Shiyan
  2012-11-18 11:49   ` Alexander Shiyan
  1 sibling, 0 replies; 5+ messages in thread
From: Alexander Shiyan @ 2012-11-18 11:36 UTC (permalink / raw)
  To: linux-arm-kernel

> > arm-charlcd driver can be used on any ARM machine, so dependency of
> > PLAT_VERSATILE is removed.
> 
> This needs a better explanation.  We know that it's used on ARMs
> reference boards.  Which other platforms will be making use of this
> driver?  Do these other boards implement the same interface, including
> the presence of the interrupt?
LCD controller do not have interrupt output. In driver interrupt is optional
and used for delay operations, since controller is too slow. Probably, as
you say, it used by additional onboard FPGA for a delay read/write operations
on fast CPU bus and/or generate clock. All other controller signals are normal
CPU-bus signals.

> I'd need to re-read the specs, but I think that the interface this
> driver uses is provided by ARMs FPGA rather than the LCD module itself,
> and re-use of this driver would need that IP to be implemented elsewhere.
Commands in the driver - is a controller commands, so it can be reused by
other machines. For example, I want to reuse this driver for clps711x.

Detail description of controller present on wiki:
http://en.wikipedia.org/wiki/HD44780_Character_LCD

---

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[2]: [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine
  2012-11-18 11:10 ` Russell King - ARM Linux
  2012-11-18 11:36   ` Re[2]: " Alexander Shiyan
@ 2012-11-18 11:49   ` Alexander Shiyan
  2012-11-18 12:02     ` Russell King - ARM Linux
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Shiyan @ 2012-11-18 11:49 UTC (permalink / raw)
  To: linux-arm-kernel

> > arm-charlcd driver can be used on any ARM machine, so dependency of
> > PLAT_VERSATILE is removed.
> 
> This needs a better explanation.  We know that it's used on ARMs
> reference boards.  Which other platforms will be making use of this
> driver?  Do these other boards implement the same interface, including
> the presence of the interrupt?
> 
> I'd need to re-read the specs, but I think that the interface this
> driver uses is provided by ARMs FPGA rather than the LCD module itself,
> and re-use of this driver would need that IP to be implemented elsewhere.
Additionally: But, you are right. This should be reviewed more accuracy for a
support for other machines, so please drop this patch.

---

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine
  2012-11-18 11:49   ` Alexander Shiyan
@ 2012-11-18 12:02     ` Russell King - ARM Linux
  0 siblings, 0 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2012-11-18 12:02 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Nov 18, 2012 at 03:49:26PM +0400, Alexander Shiyan wrote:
> > > arm-charlcd driver can be used on any ARM machine, so dependency of
> > > PLAT_VERSATILE is removed.
> > 
> > This needs a better explanation.  We know that it's used on ARMs
> > reference boards.  Which other platforms will be making use of this
> > driver?  Do these other boards implement the same interface, including
> > the presence of the interrupt?
> > 
> > I'd need to re-read the specs, but I think that the interface this
> > driver uses is provided by ARMs FPGA rather than the LCD module itself,
> > and re-use of this driver would need that IP to be implemented elsewhere.
> Additionally: But, you are right. This should be reviewed more accuracy for a
> support for other machines, so please drop this patch.

What would be nice to see is a driver library for these LCD modules which
can then be hooked into whatever interface a platform presents, and come
up with some kind of solution to that where the platform interface can be
represented in DT form.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-18 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-18 10:56 [PATCH v2] Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine Alexander Shiyan
2012-11-18 11:10 ` Russell King - ARM Linux
2012-11-18 11:36   ` Re[2]: " Alexander Shiyan
2012-11-18 11:49   ` Alexander Shiyan
2012-11-18 12:02     ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).