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 taal_data *td;
490 struct backlight_device *bldev;
493 const struct omap_video_timings taal_panel_timings = {
498 dev_dbg(&dssdev->dev, "probe\n");
500 dssdev->panel.config = OMAP_DSS_LCD_TFT;
501 dssdev->panel.timings = taal_panel_timings;
502 dssdev->ctrl.pixel_size = 24;
504 td = kzalloc(sizeof(*td), GFP_KERNEL);
511 td->esd_wq = create_singlethread_workqueue("taal_esd");
512 if (td->esd_wq == NULL) {
513 dev_err(&dssdev->dev, "can't create ESD workqueue\n");
517 INIT_DELAYED_WORK_DEFERRABLE(&td->esd_work, taal_esd_work);
519 dev_set_drvdata(&dssdev->dev, td);
521 /* if no platform set_backlight() defined, presume DSI backlight
523 if (!dssdev->set_backlight)
524 td->use_dsi_bl = true;
526 bldev = backlight_device_register("taal", &dssdev->dev, dssdev,
535 bldev->props.fb_blank = FB_BLANK_UNBLANK;
536 bldev->props.power = FB_BLANK_UNBLANK;
537 if (td->use_dsi_bl) {
538 bldev->props.max_brightness = 255;
539 bldev->props.brightness = 255;
541 bldev->props.max_brightness = 127;
542 bldev->props.brightness = 127;
545 taal_bl_update_status(bldev);
547 if (dssdev->phy.dsi.ext_te) {
548 int gpio = dssdev->phy.dsi.ext_te_gpio;
550 r = gpio_request(gpio, "taal irq");
552 dev_err(&dssdev->dev, "GPIO request failed\n");
556 gpio_direction_input(gpio);
558 r = request_irq(gpio_to_irq(gpio), taal_te_isr,
559 IRQF_DISABLED | IRQF_TRIGGER_RISING,
560 "taal vsync", dssdev);
563 dev_err(&dssdev->dev, "IRQ request failed\n");
568 init_completion(&td->te_completion);
570 td->use_ext_te = true;
573 r = sysfs_create_group(&dssdev->dev.kobj, &taal_attr_group);
575 dev_err(&dssdev->dev, "failed to create sysfs files\n");
581 if (td->use_ext_te) {
582 int gpio = dssdev->phy.dsi.ext_te_gpio;
583 free_irq(gpio_to_irq(gpio), dssdev);
587 backlight_device_unregister(bldev);
589 cancel_delayed_work_sync(&td->esd_work);
590 destroy_workqueue(td->esd_wq);
597 static void taal_remove(struct omap_dss_device *dssdev)
599 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
600 struct backlight_device *bldev;
602 dev_dbg(&dssdev->dev, "remove\n");
604 sysfs_remove_group(&dssdev->dev.kobj, &taal_attr_group);
606 if (td->use_ext_te) {
607 int gpio = dssdev->phy.dsi.ext_te_gpio;
608 free_irq(gpio_to_irq(gpio), dssdev);
613 bldev->props.power = FB_BLANK_POWERDOWN;
614 taal_bl_update_status(bldev);
615 backlight_device_unregister(bldev);
617 cancel_delayed_work_sync(&td->esd_work);
618 destroy_workqueue(td->esd_wq);
623 static int taal_power_on(struct omap_dss_device *dssdev)
625 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
629 if (dssdev->platform_enable) {
630 r = dssdev->platform_enable(dssdev);
635 /* it seems we have to wait a bit until taal is ready */
640 r = omapdss_dsi_display_enable(dssdev);
642 dev_err(&dssdev->dev, "failed to enable DSI\n");
646 omapdss_dsi_vc_enable_hs(TCH, false);
648 r = taal_sleep_out(td);
652 r = taal_get_id(&id1, &id2, &id3);
656 /* on early revisions CABC is broken */
657 if (id2 == 0x00 || id2 == 0xff || id2 == 0x81)
658 td->cabc_broken = true;
660 taal_dcs_write_1(DCS_BRIGHTNESS, 0xff);
661 taal_dcs_write_1(DCS_CTRL_DISPLAY, (1<<2) | (1<<5)); /* BL | BCTRL */
663 taal_dcs_write_1(DCS_PIXEL_FORMAT, 0x7); /* 24bit/pixel */
665 taal_set_addr_mode(td->rotate, td->mirror);
666 if (!td->cabc_broken)
667 taal_dcs_write_1(DCS_WRITE_CABC, td->cabc_mode);
669 taal_dcs_write_0(DCS_DISPLAY_ON);
671 r = _taal_enable_te(dssdev, td->te_enabled);
675 #ifdef TAAL_USE_ESD_CHECK
676 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
681 if (!td->intro_printed) {
682 dev_info(&dssdev->dev, "revision %02x.%02x.%02x\n",
685 dev_info(&dssdev->dev,
686 "old Taal version, CABC disabled\n");
687 td->intro_printed = true;
690 omapdss_dsi_vc_enable_hs(TCH, true);
698 omapdss_dsi_display_disable(dssdev);
700 if (dssdev->platform_disable)
701 dssdev->platform_disable(dssdev);
706 static void taal_power_off(struct omap_dss_device *dssdev)
708 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
712 cancel_delayed_work(&td->esd_work);
714 taal_dcs_write_0(DCS_DISPLAY_OFF);
717 /* wait a bit so that the message goes through */
720 omapdss_dsi_display_disable(dssdev);
722 if (dssdev->platform_disable)
723 dssdev->platform_disable(dssdev);
730 static int taal_enable(struct omap_dss_device *dssdev)
733 dev_dbg(&dssdev->dev, "enable\n");
735 if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED)
738 r = taal_power_on(dssdev);
742 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
747 static void taal_disable(struct omap_dss_device *dssdev)
749 dev_dbg(&dssdev->dev, "disable\n");
751 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
752 taal_power_off(dssdev);
754 dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
757 static int taal_suspend(struct omap_dss_device *dssdev)
759 dev_dbg(&dssdev->dev, "suspend\n");
761 if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
764 taal_power_off(dssdev);
765 dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
770 static int taal_resume(struct omap_dss_device *dssdev)
773 dev_dbg(&dssdev->dev, "resume\n");
775 if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED)
778 r = taal_power_on(dssdev);
779 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
783 static void taal_framedone_cb(int err, void *data)
785 struct omap_dss_device *dssdev = data;
786 dev_dbg(&dssdev->dev, "framedone, err %d\n", err);
790 static int taal_update(struct omap_dss_device *dssdev,
791 u16 x, u16 y, u16 w, u16 h)
793 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
796 dev_dbg(&dssdev->dev, "update %d, %d, %d x %d\n", x, y, w, h);
805 r = omap_dsi_prepare_update(dssdev, &x, &y, &w, &h);
809 r = taal_set_update_window(x, y, w, h);
813 r = omap_dsi_update(dssdev, TCH, x, y, w, h,
814 taal_framedone_cb, dssdev);
818 /* note: no bus_unlock here. unlock is in framedone_cb */
825 static int taal_sync(struct omap_dss_device *dssdev)
827 dev_dbg(&dssdev->dev, "sync\n");
832 dev_dbg(&dssdev->dev, "sync done\n");
837 static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable)
839 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
842 td->te_enabled = enable;
845 r = taal_dcs_write_1(DCS_TEAR_ON, 0);
847 r = taal_dcs_write_0(DCS_TEAR_OFF);
849 omapdss_dsi_enable_te(dssdev, enable);
851 /* XXX for some reason, DSI TE breaks if we don't wait here.
852 * Panel bug? Needs more studying */
858 static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
864 r = _taal_enable_te(dssdev, enable);
871 static int taal_get_te(struct omap_dss_device *dssdev)
873 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
874 return td->te_enabled;
877 static int taal_rotate(struct omap_dss_device *dssdev, u8 rotate)
879 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
882 dev_dbg(&dssdev->dev, "rotate %d\n", rotate);
887 r = taal_set_addr_mode(rotate, td->mirror);
901 static u8 taal_get_rotate(struct omap_dss_device *dssdev)
903 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
907 static int taal_mirror(struct omap_dss_device *dssdev, bool enable)
909 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
912 dev_dbg(&dssdev->dev, "mirror %d\n", enable);
916 r = taal_set_addr_mode(td->rotate, enable);
930 static bool taal_get_mirror(struct omap_dss_device *dssdev)
932 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
936 static int taal_run_test(struct omap_dss_device *dssdev, int test_num)
943 r = taal_dcs_read_1(DCS_GET_ID1, &id1);
946 r = taal_dcs_read_1(DCS_GET_ID2, &id2);
949 r = taal_dcs_read_1(DCS_GET_ID3, &id3);
960 static int taal_memory_read(struct omap_dss_device *dssdev,
961 void *buf, size_t size,
962 u16 x, u16 y, u16 w, u16 h)
967 unsigned buf_used = 0;
968 struct taal_data *td = dev_get_drvdata(&dssdev->dev);
973 if (size < w * h * 3)
976 size = min(w * h * 3,
977 dssdev->panel.timings.x_res *
978 dssdev->panel.timings.y_res * 3);
982 /* plen 1 or 2 goes into short packet. until checksum error is fixed,
983 * use short packets. plen 32 works, but bigger packets seem to cause
990 taal_set_update_window(x, y, w, h);
992 r = dsi_vc_set_max_rx_packet_size(TCH, plen);
996 while (buf_used < size) {
997 u8 dcs_cmd = first ? 0x2e : 0x3e;
1000 r = dsi_vc_dcs_read(TCH, dcs_cmd,
1001 buf + buf_used, size - buf_used);
1004 dev_err(&dssdev->dev, "read error\n");
1011 dev_err(&dssdev->dev, "short read\n");
1015 if (signal_pending(current)) {
1016 dev_err(&dssdev->dev, "signal pending, "
1017 "aborting memory read\n");
1026 dsi_vc_set_max_rx_packet_size(TCH, 1);
1032 static void taal_esd_work(struct work_struct *work)
1034 struct taal_data *td = container_of(work, struct taal_data,
1036 struct omap_dss_device *dssdev = td->dssdev;
1045 r = taal_dcs_read_1(DCS_RDDSDR, &state1);
1047 dev_err(&dssdev->dev, "failed to read Taal status\n");
1051 /* Run self diagnostics */
1052 r = taal_sleep_out(td);
1054 dev_err(&dssdev->dev, "failed to run Taal self-diagnostics\n");
1058 r = taal_dcs_read_1(DCS_RDDSDR, &state2);
1060 dev_err(&dssdev->dev, "failed to read Taal status\n");
1064 /* Each sleep out command will trigger a self diagnostic and flip
1065 * Bit6 if the test passes.
1067 if (!((state1 ^ state2) & (1 << 6))) {
1068 dev_err(&dssdev->dev, "LCD self diagnostics failed\n");
1071 /* Self-diagnostics result is also shown on TE GPIO line. We need
1072 * to re-enable TE after self diagnostics */
1073 if (td->use_ext_te && td->te_enabled) {
1074 r = taal_dcs_write_1(DCS_TEAR_ON, 0);
1081 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
1085 dev_err(&dssdev->dev, "performing LCD reset\n");
1087 taal_disable(dssdev);
1088 taal_enable(dssdev);
1092 queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
1095 static int taal_set_update_mode(struct omap_dss_device *dssdev,
1096 enum omap_dss_update_mode mode)
1098 if (mode != OMAP_DSS_UPDATE_MANUAL)
1103 static enum omap_dss_update_mode taal_get_update_mode(
1104 struct omap_dss_device *dssdev)
1106 return OMAP_DSS_UPDATE_MANUAL;
1109 static struct omap_dss_driver taal_driver = {
1110 .probe = taal_probe,
1111 .remove = taal_remove,
1113 .enable = taal_enable,
1114 .disable = taal_disable,
1115 .suspend = taal_suspend,
1116 .resume = taal_resume,
1118 .set_update_mode = taal_set_update_mode,
1119 .get_update_mode = taal_get_update_mode,
1121 .update = taal_update,
1124 .get_resolution = taal_get_resolution,
1125 .get_recommended_bpp = omapdss_default_get_recommended_bpp,
1127 .enable_te = taal_enable_te,
1128 .get_te = taal_get_te,
1130 .set_rotate = taal_rotate,
1131 .get_rotate = taal_get_rotate,
1132 .set_mirror = taal_mirror,
1133 .get_mirror = taal_get_mirror,
1134 .run_test = taal_run_test,
1135 .memory_read = taal_memory_read,
1137 .get_timings = taal_get_timings,
1141 .owner = THIS_MODULE,
1145 static int __init taal_init(void)
1147 omap_dss_register_driver(&taal_driver);
1152 static void __exit taal_exit(void)
1154 omap_dss_unregister_driver(&taal_driver);
1157 module_init(taal_init);
1158 module_exit(taal_exit);
1160 MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@nokia.com>");
1161 MODULE_DESCRIPTION("Taal Driver");
1162 MODULE_LICENSE("GPL");