Skip to contentSkip to conversation

Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine

PATCH New Alexander Shiyan 2 participants 5 messages Nov 18, 2012 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine

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

---
 drivers/misc/Kconfig |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
drivers/misc/Kconfig +8 -7
index b151b7c..ac67ce5 100644
@@ -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
Signature · 1 line
1.7.8.6
#1 lore raw

PATCH v2 1/1 Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine

Quoted 2 lines · Alexander Shiyan

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.

#2 lore raw
Quoted 7 lines
Quoted 2 lines

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.

Quoted 3 lines

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

---

#3 lore raw
In reply to Russell King - ARM Linux
Quoted 11 lines
Quoted 2 lines

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.

---

#4 lore raw

PATCH v2 1/1 Misc: ARM_CHAR_LCD: Permit the use of a driver on any ARM machine

Quoted 8 lines · Alexander Shiyan
Quoted 8 lines
Quoted 2 lines

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?

Quoted 5 lines
Quoted 3 lines

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.