Lines Matching full:lcd

3  * HD44780 Character LCD driver for Linux
40 static void hd44780_backlight(struct charlcd *lcd, int on) in hd44780_backlight() argument
42 struct hd44780 *hd = lcd->drvdata; in hd44780_backlight()
61 /* write to an LCD panel register in 8 bit GPIO mode */
77 /* write to an LCD panel register in 4 bit GPIO mode */
103 /* Send a command to the LCD panel in 8 bit GPIO mode */
104 static void hd44780_write_cmd_gpio8(struct charlcd *lcd, int cmd) in hd44780_write_cmd_gpio8() argument
106 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_gpio8()
114 /* Send data to the LCD panel in 8 bit GPIO mode */
115 static void hd44780_write_data_gpio8(struct charlcd *lcd, int data) in hd44780_write_data_gpio8() argument
117 struct hd44780 *hd = lcd->drvdata; in hd44780_write_data_gpio8()
131 /* Send a command to the LCD panel in 4 bit GPIO mode */
132 static void hd44780_write_cmd_gpio4(struct charlcd *lcd, int cmd) in hd44780_write_cmd_gpio4() argument
134 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_gpio4()
142 /* Send 4-bits of a command to the LCD panel in raw 4 bit GPIO mode */
143 static void hd44780_write_cmd_raw_gpio4(struct charlcd *lcd, int cmd) in hd44780_write_cmd_raw_gpio4() argument
146 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_raw_gpio4()
159 /* Send data to the LCD panel in 4 bit GPIO mode */
160 static void hd44780_write_data_gpio4(struct charlcd *lcd, int data) in hd44780_write_data_gpio4() argument
162 struct hd44780 *hd = lcd->drvdata; in hd44780_write_data_gpio4()
181 struct charlcd *lcd; in hd44780_probe() local
201 lcd = charlcd_alloc(sizeof(struct hd44780)); in hd44780_probe()
202 if (!lcd) in hd44780_probe()
205 hd = lcd->drvdata; in hd44780_probe()
245 &lcd->height); in hd44780_probe()
248 ret = device_property_read_u32(dev, "display-width-chars", &lcd->width); in hd44780_probe()
256 if (lcd->height > 2) in hd44780_probe()
257 lcd->bwidth = lcd->width; in hd44780_probe()
260 device_property_read_u32(dev, "internal-buffer-width", &lcd->bwidth); in hd44780_probe()
262 lcd->ifwidth = ifwidth; in hd44780_probe()
263 lcd->ops = ifwidth == 8 ? &hd44780_ops_gpio8 : &hd44780_ops_gpio4; in hd44780_probe()
265 ret = charlcd_register(lcd); in hd44780_probe()
269 platform_set_drvdata(pdev, lcd); in hd44780_probe()
273 charlcd_free(lcd); in hd44780_probe()
279 struct charlcd *lcd = platform_get_drvdata(pdev); in hd44780_remove() local
281 charlcd_unregister(lcd); in hd44780_remove()
283 charlcd_free(lcd); in hd44780_remove()
303 MODULE_DESCRIPTION("HD44780 Character LCD driver");