2 * Taal DSI command mode panel
4 * Copyright (C) 2009 Nokia Corporation
5 * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
22 #include <linux/module.h>
23 #include <linux/delay.h>
24 #include <linux/err.h>
25 #include <linux/jiffies.h>
26 #include <linux/sched.h>
27 #include <linux/backlight.h>
29 #include <linux/interrupt.h>
30 #include <linux/gpio.h>
31 #include <linux/completion.h>
32 #include <linux/workqueue.h>
34 #include <plat/display.h>
36 /* DSI Virtual channel. Hardcoded for now. */
39 #define DCS_READ_NUM_ERRORS 0x05
40 #define DCS_READ_POWER_MODE 0x0a
41 #define DCS_READ_MADCTL 0x0b
42 #define DCS_READ_PIXEL_FORMAT 0x0c
43 #define DCS_RDDSDR 0x0f
44 #define DCS_SLEEP_IN 0x10
45 #define DCS_SLEEP_OUT 0x11
46 #define DCS_DISPLAY_OFF 0x28
47 #define DCS_DISPLAY_ON 0x29
48 #define DCS_COLUMN_ADDR 0x2a
49 #define DCS_PAGE_ADDR 0x2b
50 #define DCS_MEMORY_WRITE 0x2c
51 #define DCS_TEAR_OFF 0x34
52 #define DCS_TEAR_ON 0x35
53 #define DCS_MEM_ACC_CTRL 0x36
54 #define DCS_PIXEL_FORMAT 0x3a
55 #define DCS_BRIGHTNESS 0x51
56 #define DCS_CTRL_DISPLAY 0x53
57 #define DCS_WRITE_CABC 0x55
58 #define DCS_READ_CABC 0x56
59 #define DCS_GET_ID1 0xda
60 #define DCS_GET_ID2 0xdb
61 #define DCS_GET_ID3 0xdc
63 /* #define TAAL_USE_ESD_CHECK */
64 #define TAAL_ESD_CHECK_PERIOD msecs_to_jiffies(5000)
66 static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable);
69 struct backlight_device *bldev;
71 unsigned long hw_guard_end; /* next value of jiffies when we can
72 * issue the next sleep in/out command
74 unsigned long hw_guard_wait; /* max guard time in jiffies */
76 struct omap_dss_device *dssdev;
84 struct completion te_completion;
93 struct workqueue_struct *esd_wq;
94 struct delayed_work esd_work;
97 static void taal_esd_work(struct work_struct *work);
99 static void hw_guard_start(struct taal_data *td, int guard_msec)
101 td->hw_guard_wait = msecs_to_jiffies(guard_msec);
102 td->hw_guard_end = jiffies + td->hw_guard_wait;
105 static void hw_guard_wait(struct taal_data *td)
107 unsigned long wait = td->hw_guard_end - jiffies;
109 if ((long)wait > 0 && wait <= td->hw_guard_wait) {
110 set_current_state(TASK_UNINTERRUPTIBLE);
111 schedule_timeout(wait);
115 static int taal_dcs_read_1(u8 dcs_cmd, u8 *data)
120 r = dsi_vc_dcs_read(TCH, dcs_cmd, buf, 1);
130 static int taal_dcs_write_0(u8 dcs_cmd)
132 return dsi_vc_dcs_write(TCH, &dcs_cmd, 1);
135 static int taal_dcs_write_1(u8 dcs_cmd, u8 param)
140 return dsi_vc_dcs_write(TCH, buf, 2);
143 static int taal_sleep_in(struct taal_data *td)
152 r = dsi_vc_dcs_write_nosync(TCH, &cmd, 1);
156 hw_guard_start(td, 120);
163 static int taal_sleep_out(struct taal_data *td)
169 r = taal_dcs_write_0(DCS_SLEEP_OUT);
173 hw_guard_start(td, 120);
180 static int taal_get_id(u8 *id1, u8 *id2, u8 *id3)
184 r = taal_dcs_read_1(DCS_GET_ID1, id1);
187 r = taal_dcs_read_1(DCS_GET_ID2, id2);
190 r = taal_dcs_read_1(DCS_GET_ID3, id3);
197 static int taal_set_addr_mode(u8 rotate, bool mirror)
203 r = taal_dcs_read_1(DCS_READ_MADCTL, &mode);
234 mode &= ~((1<<7) | (1<<6) | (1<<5));
235 mode |= (b7 << 7) | (b6 << 6) | (b5 << 5);
237 return taal_dcs_write_1(DCS_MEM_ACC_CTRL, mode);
240 static int taal_set_update_window(u16 x, u16 y, u16 w, u16 h)
249 buf[0] = DCS_COLUMN_ADDR;
250 buf[1] = (x1 >> 8) & 0xff;
251 buf[2] = (x1 >> 0) & 0xff;
252 buf[3] = (x2 >> 8) & 0xff;
253 buf[4] = (x2 >> 0) & 0xff;
255 r = dsi_vc_dcs_write_nosync(TCH, buf, sizeof(buf));
259 buf[0] = DCS_PAGE_ADDR;
260 buf[1] = (y1 >> 8) & 0xff;
261 buf[2] = (y1 >> 0) & 0xff;
262 buf[3] = (y2 >> 8) & 0xff;
263 buf[4] = (y2 >> 0) & 0xff;
265 r = dsi_vc_dcs_write_nosync(TCH, buf, sizeof(buf));
269 dsi_vc_send_bta_sync(TCH);
274 static int taal_bl_update_status(struct backlight_device *dev)
276 struct omap_dss_device *dssdev = dev_get_drvdata(&dev->dev);
277 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
281 if (dev->props.fb_blank == FB_BLANK_UNBLANK &&
282 dev->props.power == FB_BLANK_UNBLANK)
283 level = dev->props.brightness;
287 dev_dbg(&dssdev->dev, "update brightness to %d\n", level);
289 if (td->use_dsi_bl) {
292 r = taal_dcs_write_1(DCS_BRIGHTNESS, level);
298 if (!dssdev->set_backlight)
301 r = dssdev->set_backlight(dssdev, level);
309 static int taal_bl_get_intensity(struct backlight_device *dev)
311 if (dev->props.fb_blank == FB_BLANK_UNBLANK &&
312 dev->props.power == FB_BLANK_UNBLANK)
313 return dev->props.brightness;
318 static struct backlight_ops taal_bl_ops = {
319 .get_brightness = taal_bl_get_intensity,
320 .update_status = taal_bl_update_status,
323 static void taal_get_timings(struct omap_dss_device *dssdev,
324 struct omap_video_timings *timings)
326 *timings = dssdev->panel.timings;
329 static void taal_get_resolution(struct omap_dss_device *dssdev,
330 u16 *xres, u16 *yres)
332 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
334 if (td->rotate == 0 || td->rotate == 2) {
335 *xres = dssdev->panel.timings.x_res;
336 *yres = dssdev->panel.timings.y_res;
338 *yres = dssdev->panel.timings.x_res;
339 *xres = dssdev->panel.timings.y_res;
343 static irqreturn_t taal_te_isr(int irq, void *data)
345 struct omap_dss_device *dssdev = data;
346 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
348 complete_all(&td->te_completion);
353 static ssize_t taal_num_errors_show(struct device *dev,
354 struct device_attribute *attr, char *buf)
356 struct omap_dss_device *dssdev = to_dss_device(dev);
357 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
363 r = taal_dcs_read_1(DCS_READ_NUM_ERRORS, &errors);
372 return snprintf(buf, PAGE_SIZE, "%d\n", errors);
375 static ssize_t taal_hw_revision_show(struct device *dev,
376 struct device_attribute *attr, char *buf)
378 struct omap_dss_device *dssdev = to_dss_device(dev);
379 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
385 r = taal_get_id(&id1, &id2, &id3);
394 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x\n", id1, id2, id3);
397 static const char *cabc_modes[] = {
398 "off", /* used also always when CABC is not supported */
404 static ssize_t show_cabc_mode(struct device *dev,
405 struct device_attribute *attr,
408 struct omap_dss_device *dssdev = to_dss_device(dev);
409 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
410 const char *mode_str;
414 mode = td->cabc_mode;
416 mode_str = "unknown";
417 if (mode >= 0 && mode < ARRAY_SIZE(cabc_modes))
418 mode_str = cabc_modes[mode];
419 len = snprintf(buf, PAGE_SIZE, "%s\n", mode_str);
421 return len < PAGE_SIZE - 1 ? len : PAGE_SIZE - 1;
424 static ssize_t store_cabc_mode(struct device *dev,
425 struct device_attribute *attr,
426 const char *buf, size_t count)
428 struct omap_dss_device *dssdev = to_dss_device(dev);
429 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
432 for (i = 0; i < ARRAY_SIZE(cabc_modes); i++) {
433 if (sysfs_streq(cabc_modes[i], buf))
437 if (i == ARRAY_SIZE(cabc_modes))
442 if (!td->cabc_broken)
443 taal_dcs_write_1(DCS_WRITE_CABC, i);
452 static ssize_t show_cabc_available_modes(struct device *dev,
453 struct device_attribute *attr,
460 len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++)
461 len += snprintf(&buf[len], PAGE_SIZE - len, "%s%s%s",
462 i ? " " : "", cabc_modes[i],
463 i == ARRAY_SIZE(cabc_modes) - 1 ? "\n" : "");
465 return len < PAGE_SIZE ? len : PAGE_SIZE - 1;
468 static DEVICE_ATTR(num_dsi_errors, S_IRUGO, taal_num_errors_show, NULL);
469 static DEVICE_ATTR(hw_revision, S_IRUGO, taal_hw_revision_show, NULL);
470 static DEVICE_ATTR(cabc_mode, S_IRUGO | S_IWUSR,
471 show_cabc_mode, store_cabc_mode);
472 static DEVICE_ATTR(cabc_available_modes, S_IRUGO,
473 show_cabc_available_modes, NULL);
475 static struct attribute *taal_attrs[] = {
476 &dev_attr_num_dsi_errors.attr,
477 &dev_attr_hw_revision.attr,
478 &dev_attr_cabc_mode.attr,
479 &dev_attr_cabc_available_modes.attr,
483 static struct attribute_group taal_attr_group = {
487 static int taal_probe(struct omap_dss_device *dssdev)
489 struct backlight_properties props;
490 struct taal_data *td;
491 struct backlight_device *bldev;
494 const struct omap_video_timings taal_panel_timings = {
499 dev_dbg(&dssdev->dev, "probe\n");
501 dssdev->panel.config = OMAP_DSS_LCD_TFT;
502 dssdev->panel.timings = taal_panel_timings;
503 dssdev->ctrl.pixel_size = 24;
505 td = kzalloc(sizeof(*td), GFP_KERNEL);
512 td->esd_wq = create_singlethread_workqueue("taal_esd");
513 if (td->esd_wq == NULL) {
514 dev_err(&dssdev->dev, "can't create ESD workqueue\n");
518 INIT_DELAYED_WORK_DEFERRABLE(&td->esd_work, taal_esd_work);
520 dev_set_drvdata(&dssdev->dev, td);
522 /* if no platform set_backlight() defined, presume DSI backlight
524 memset(&props, 0, sizeof(struct backlight_properties));
525 if (!dssdev->set_backlight)
526 td->use_dsi_bl = true;
529 props.max_brightness = 255;
531 props.max_brightness = 127;
532 bldev = backlight_device_register("taal", &dssdev->dev, dssdev,
533 &taal_bl_ops, &props);
541 bldev->props.fb_blank = FB_BLANK_UNBLANK;
542 bldev->props.power = FB_BLANK_UNBLANK;
544 bldev->props.brightness = 255;
546 bldev->props.brightness = 127;
548 taal_bl_update_status(bldev);
550 if (dssdev->phy.dsi.ext_te) {
551 int gpio = dssdev->phy.dsi.ext_te_gpio;
553 r = gpio_request(gpio, "taal irq");
555 dev_err(&dssdev->dev, "GPIO request failed\n");
559 gpio_direction_input(gpio);
561 r = request_irq(gpio_to_irq(gpio), taal_te_isr,
562 IRQF_DISABLED | IRQF_TRIGGER_RISING,
563 "taal vsync", dssdev);
566 dev_err(&dssdev->dev, "IRQ request failed\n");
571 init_completion(&td->te_completion);
573 td->use_ext_te = true;
576 r = sysfs_create_group(&dssdev->dev.kobj, &taal_attr_group);
578 dev_err(&dssdev->dev, "failed to create sysfs files\n");
584 if (td->use_ext_te) {
585 int gpio = dssdev->phy.dsi.ext_te_gpio;
586 free_irq(gpio_to_irq(gpio), dssdev);
590 backlight_device_unregister(bldev);
592 cancel_delayed_work_sync(&td->esd_work);
593 destroy_workqueue(td->esd_wq);
600 static void taal_remove(struct omap_dss_device *dssdev)
602 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
603 struct backlight_device *bldev;
605 dev_dbg(&dssdev->dev, "remove\n");
607 sysfs_remove_group(&dssdev->dev.kobj, &taal_attr_group);
609 if (td->use_ext_te) {
610 int gpio = dssdev->phy.dsi.ext_te_gpio;
611 free_irq(gpio_to_irq(gpio), dssdev);
616 bldev->props.power = FB_BLANK_POWERDOWN;
617 taal_bl_update_status(bldev);
618 backlight_device_unregister(bldev);
620 cancel_delayed_work_sync(&td->esd_work);
621 destroy_workqueue(td->esd_wq);
626 static int taal_power_on(struct omap_dss_device *dssdev)
628 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
632 if (dssdev->platform_enable) {
633 r = dssdev->platform_enable(dssdev);
638 /* it seems we have to wait a bit until taal is ready */
643 r = omapdss_dsi_display_enable(dssdev);
645 dev_err(&dssdev->dev, "failed to enable DSI\n");
649 omapdss_dsi_vc_enable_hs(TCH, false);
651 r = taal_sleep_out(td);
655 r = taal_get_id(&id1, &id2, &id3);
659 /* on early revisions CABC is broken */
660 if (id2 == 0x00 || id2 == 0xff || id2 == 0x81)
661 td->cabc_broken = true;
663 taal_dcs_write_1(DCS_BRIGHTNESS, 0xff);
664 taal_dcs_write_1(DCS_CTRL_DISPLAY, (1<<2) | (1<<5)); /* BL | BCTRL */
666 taal_dcs_write_1(DCS_PIXEL_FORMAT, 0x7); /* 24bit/pixel */
668 taal_set_addr_mode(td->rotate, td->mirror);
669 if (!td->cabc_broken)
670 taal_dcs_write_1(DCS_WRITE_CABC, td->cabc_mode);
672 taal_dcs_write_0(DCS_DISPLAY_ON);
674 r = _taal_enable_te(dssdev, td->te_enabled);
678 #ifdef TAAL_USE_ESD_CHECK
679 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
684 if (!td->intro_printed) {
685 dev_info(&dssdev->dev, "revision %02x.%02x.%02x\n",
688 dev_info(&dssdev->dev,
689 "old Taal version, CABC disabled\n");
690 td->intro_printed = true;
693 omapdss_dsi_vc_enable_hs(TCH, true);
701 omapdss_dsi_display_disable(dssdev);
703 if (dssdev->platform_disable)
704 dssdev->platform_disable(dssdev);
709 static void taal_power_off(struct omap_dss_device *dssdev)
711 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
715 cancel_delayed_work(&td->esd_work);
717 taal_dcs_write_0(DCS_DISPLAY_OFF);
720 /* wait a bit so that the message goes through */
723 omapdss_dsi_display_disable(dssdev);
725 if (dssdev->platform_disable)
726 dssdev->platform_disable(dssdev);
733 static int taal_enable(struct omap_dss_device *dssdev)
736 dev_dbg(&dssdev->dev, "enable\n");
738 if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED)
741 r = taal_power_on(dssdev);
745 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
750 static void taal_disable(struct omap_dss_device *dssdev)
752 dev_dbg(&dssdev->dev, "disable\n");
754 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
755 taal_power_off(dssdev);
757 dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
760 static int taal_suspend(struct omap_dss_device *dssdev)
762 dev_dbg(&dssdev->dev, "suspend\n");
764 if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
767 taal_power_off(dssdev);
768 dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
773 static int taal_resume(struct omap_dss_device *dssdev)
776 dev_dbg(&dssdev->dev, "resume\n");
778 if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED)
781 r = taal_power_on(dssdev);
782 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
786 static void taal_framedone_cb(int err, void *data)
788 struct omap_dss_device *dssdev = data;
789 dev_dbg(&dssdev->dev, "framedone, err %d\n", err);
793 static int taal_update(struct omap_dss_device *dssdev,
794 u16 x, u16 y, u16 w, u16 h)
796 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
799 dev_dbg(&dssdev->dev, "update %d, %d, %d x %d\n", x, y, w, h);
808 r = omap_dsi_prepare_update(dssdev, &x, &y, &w, &h);
812 r = taal_set_update_window(x, y, w, h);
816 r = omap_dsi_update(dssdev, TCH, x, y, w, h,
817 taal_framedone_cb, dssdev);
821 /* note: no bus_unlock here. unlock is in framedone_cb */
828 static int taal_sync(struct omap_dss_device *dssdev)
830 dev_dbg(&dssdev->dev, "sync\n");
835 dev_dbg(&dssdev->dev, "sync done\n");
840 static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable)
842 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
845 td->te_enabled = enable;
848 r = taal_dcs_write_1(DCS_TEAR_ON, 0);
850 r = taal_dcs_write_0(DCS_TEAR_OFF);
852 omapdss_dsi_enable_te(dssdev, enable);
854 /* XXX for some reason, DSI TE breaks if we don't wait here.
855 * Panel bug? Needs more studying */
861 static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
867 r = _taal_enable_te(dssdev, enable);
874 static int taal_get_te(struct omap_dss_device *dssdev)
876 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
877 return td->te_enabled;
880 static int taal_rotate(struct omap_dss_device *dssdev, u8 rotate)
882 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
885 dev_dbg(&dssdev->dev, "rotate %d\n", rotate);
890 r = taal_set_addr_mode(rotate, td->mirror);
904 static u8 taal_get_rotate(struct omap_dss_device *dssdev)
906 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
910 static int taal_mirror(struct omap_dss_device *dssdev, bool enable)
912 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
915 dev_dbg(&dssdev->dev, "mirror %d\n", enable);
919 r = taal_set_addr_mode(td->rotate, enable);
933 static bool taal_get_mirror(struct omap_dss_device *dssdev)
935 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
939 static int taal_run_test(struct omap_dss_device *dssdev, int test_num)
946 r = taal_dcs_read_1(DCS_GET_ID1, &id1);
949 r = taal_dcs_read_1(DCS_GET_ID2, &id2);
952 r = taal_dcs_read_1(DCS_GET_ID3, &id3);
963 static int taal_memory_read(struct omap_dss_device *dssdev,
964 void *buf, size_t size,
965 u16 x, u16 y, u16 w, u16 h)
970 unsigned buf_used = 0;
971 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
976 if (size < w * h * 3)
979 size = min(w * h * 3,
980 dssdev->panel.timings.x_res *
981 dssdev->panel.timings.y_res * 3);
985 /* plen 1 or 2 goes into short packet. until checksum error is fixed,
986 * use short packets. plen 32 works, but bigger packets seem to cause
993 taal_set_update_window(x, y, w, h);
995 r = dsi_vc_set_max_rx_packet_size(TCH, plen);
999 while (buf_used < size) {
1000 u8 dcs_cmd = first ? 0x2e : 0x3e;
1003 r = dsi_vc_dcs_read(TCH, dcs_cmd,
1004 buf + buf_used, size - buf_used);
1007 dev_err(&dssdev->dev, "read error\n");
1014 dev_err(&dssdev->dev, "short read\n");
1018 if (signal_pending(current)) {
1019 dev_err(&dssdev->dev, "signal pending, "
1020 "aborting memory read\n");
1029 dsi_vc_set_max_rx_packet_size(TCH, 1);
1035 static void taal_esd_work(struct work_struct *work)
1037 struct taal_data *td = container_of(work, struct taal_data,
1039 struct omap_dss_device *dssdev = td->dssdev;
1048 r = taal_dcs_read_1(DCS_RDDSDR, &state1);
1050 dev_err(&dssdev->dev, "failed to read Taal status\n");
1054 /* Run self diagnostics */
1055 r = taal_sleep_out(td);
1057 dev_err(&dssdev->dev, "failed to run Taal self-diagnostics\n");
1061 r = taal_dcs_read_1(DCS_RDDSDR, &state2);
1063 dev_err(&dssdev->dev, "failed to read Taal status\n");
1067 /* Each sleep out command will trigger a self diagnostic and flip
1068 * Bit6 if the test passes.
1070 if (!((state1 ^ state2) & (1 << 6))) {
1071 dev_err(&dssdev->dev, "LCD self diagnostics failed\n");
1074 /* Self-diagnostics result is also shown on TE GPIO line. We need
1075 * to re-enable TE after self diagnostics */
1076 if (td->use_ext_te && td->te_enabled) {
1077 r = taal_dcs_write_1(DCS_TEAR_ON, 0);
1084 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
1088 dev_err(&dssdev->dev, "performing LCD reset\n");
1090 taal_disable(dssdev);
1091 taal_enable(dssdev);
1095 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
1098 static int taal_set_update_mode(struct omap_dss_device *dssdev,
1099 enum omap_dss_update_mode mode)
1101 if (mode != OMAP_DSS_UPDATE_MANUAL)
1106 static enum omap_dss_update_mode taal_get_update_mode(
1107 struct omap_dss_device *dssdev)
1109 return OMAP_DSS_UPDATE_MANUAL;
1112 static struct omap_dss_driver taal_driver = {
1113 .probe = taal_probe,
1114 .remove = taal_remove,
1116 .enable = taal_enable,
1117 .disable = taal_disable,
1118 .suspend = taal_suspend,
1119 .resume = taal_resume,
1121 .set_update_mode = taal_set_update_mode,
1122 .get_update_mode = taal_get_update_mode,
1124 .update = taal_update,
1127 .get_resolution = taal_get_resolution,
1128 .get_recommended_bpp = omapdss_default_get_recommended_bpp,
1130 .enable_te = taal_enable_te,
1131 .get_te = taal_get_te,
1133 .set_rotate = taal_rotate,
1134 .get_rotate = taal_get_rotate,
1135 .set_mirror = taal_mirror,
1136 .get_mirror = taal_get_mirror,
1137 .run_test = taal_run_test,
1138 .memory_read = taal_memory_read,
1140 .get_timings = taal_get_timings,
1144 .owner = THIS_MODULE,
1148 static int __init taal_init(void)
1150 omap_dss_register_driver(&taal_driver);
1155 static void __exit taal_exit(void)
1157 omap_dss_unregister_driver(&taal_driver);
1160 module_init(taal_init);
1161 module_exit(taal_exit);
1163 MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@nokia.com>");
1164 MODULE_DESCRIPTION("Taal Driver");
1165 MODULE_LICENSE("GPL");