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)
67 struct backlight_device
*bldev
;
69 unsigned long hw_guard_end
; /* next value of jiffies when we can
70 * issue the next sleep in/out command
72 unsigned long hw_guard_wait
; /* max guard time in jiffies */
74 struct omap_dss_device
*dssdev
;
82 struct completion te_completion
;
91 struct workqueue_struct
*esd_wq
;
92 struct delayed_work esd_work
;
95 static void taal_esd_work(struct work_struct
*work
);
97 static void hw_guard_start(struct taal_data
*td
, int guard_msec
)
99 td
->hw_guard_wait
= msecs_to_jiffies(guard_msec
);
100 td
->hw_guard_end
= jiffies
+ td
->hw_guard_wait
;
103 static void hw_guard_wait(struct taal_data
*td
)
105 unsigned long wait
= td
->hw_guard_end
- jiffies
;
107 if ((long)wait
> 0 && wait
<= td
->hw_guard_wait
) {
108 set_current_state(TASK_UNINTERRUPTIBLE
);
109 schedule_timeout(wait
);
113 static int taal_dcs_read_1(u8 dcs_cmd
, u8
*data
)
118 r
= dsi_vc_dcs_read(TCH
, dcs_cmd
, buf
, 1);
128 static int taal_dcs_write_0(u8 dcs_cmd
)
130 return dsi_vc_dcs_write(TCH
, &dcs_cmd
, 1);
133 static int taal_dcs_write_1(u8 dcs_cmd
, u8 param
)
138 return dsi_vc_dcs_write(TCH
, buf
, 2);
141 static int taal_sleep_in(struct taal_data
*td
)
150 r
= dsi_vc_dcs_write_nosync(TCH
, &cmd
, 1);
154 hw_guard_start(td
, 120);
161 static int taal_sleep_out(struct taal_data
*td
)
167 r
= taal_dcs_write_0(DCS_SLEEP_OUT
);
171 hw_guard_start(td
, 120);
178 static int taal_get_id(u8
*id1
, u8
*id2
, u8
*id3
)
182 r
= taal_dcs_read_1(DCS_GET_ID1
, id1
);
185 r
= taal_dcs_read_1(DCS_GET_ID2
, id2
);
188 r
= taal_dcs_read_1(DCS_GET_ID3
, id3
);
195 static int taal_set_addr_mode(u8 rotate
, bool mirror
)
201 r
= taal_dcs_read_1(DCS_READ_MADCTL
, &mode
);
232 mode
&= ~((1<<7) | (1<<6) | (1<<5));
233 mode
|= (b7
<< 7) | (b6
<< 6) | (b5
<< 5);
235 return taal_dcs_write_1(DCS_MEM_ACC_CTRL
, mode
);
238 static int taal_set_update_window(u16 x
, u16 y
, u16 w
, u16 h
)
247 buf
[0] = DCS_COLUMN_ADDR
;
248 buf
[1] = (x1
>> 8) & 0xff;
249 buf
[2] = (x1
>> 0) & 0xff;
250 buf
[3] = (x2
>> 8) & 0xff;
251 buf
[4] = (x2
>> 0) & 0xff;
253 r
= dsi_vc_dcs_write_nosync(TCH
, buf
, sizeof(buf
));
257 buf
[0] = DCS_PAGE_ADDR
;
258 buf
[1] = (y1
>> 8) & 0xff;
259 buf
[2] = (y1
>> 0) & 0xff;
260 buf
[3] = (y2
>> 8) & 0xff;
261 buf
[4] = (y2
>> 0) & 0xff;
263 r
= dsi_vc_dcs_write_nosync(TCH
, buf
, sizeof(buf
));
267 dsi_vc_send_bta_sync(TCH
);
272 static int taal_bl_update_status(struct backlight_device
*dev
)
274 struct omap_dss_device
*dssdev
= dev_get_drvdata(&dev
->dev
);
275 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
279 if (dev
->props
.fb_blank
== FB_BLANK_UNBLANK
&&
280 dev
->props
.power
== FB_BLANK_UNBLANK
)
281 level
= dev
->props
.brightness
;
285 dev_dbg(&dssdev
->dev
, "update brightness to %d\n", level
);
287 if (td
->use_dsi_bl
) {
290 r
= taal_dcs_write_1(DCS_BRIGHTNESS
, level
);
296 if (!dssdev
->set_backlight
)
299 r
= dssdev
->set_backlight(dssdev
, level
);
307 static int taal_bl_get_intensity(struct backlight_device
*dev
)
309 if (dev
->props
.fb_blank
== FB_BLANK_UNBLANK
&&
310 dev
->props
.power
== FB_BLANK_UNBLANK
)
311 return dev
->props
.brightness
;
316 static struct backlight_ops taal_bl_ops
= {
317 .get_brightness
= taal_bl_get_intensity
,
318 .update_status
= taal_bl_update_status
,
321 static void taal_get_timings(struct omap_dss_device
*dssdev
,
322 struct omap_video_timings
*timings
)
324 *timings
= dssdev
->panel
.timings
;
327 static void taal_get_resolution(struct omap_dss_device
*dssdev
,
328 u16
*xres
, u16
*yres
)
330 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
332 if (td
->rotate
== 0 || td
->rotate
== 2) {
333 *xres
= dssdev
->panel
.timings
.x_res
;
334 *yres
= dssdev
->panel
.timings
.y_res
;
336 *yres
= dssdev
->panel
.timings
.x_res
;
337 *xres
= dssdev
->panel
.timings
.y_res
;
341 static irqreturn_t
taal_te_isr(int irq
, void *data
)
343 struct omap_dss_device
*dssdev
= data
;
344 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
346 complete_all(&td
->te_completion
);
351 static ssize_t
taal_num_errors_show(struct device
*dev
,
352 struct device_attribute
*attr
, char *buf
)
354 struct omap_dss_device
*dssdev
= to_dss_device(dev
);
355 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
361 r
= taal_dcs_read_1(DCS_READ_NUM_ERRORS
, &errors
);
370 return snprintf(buf
, PAGE_SIZE
, "%d\n", errors
);
373 static ssize_t
taal_hw_revision_show(struct device
*dev
,
374 struct device_attribute
*attr
, char *buf
)
376 struct omap_dss_device
*dssdev
= to_dss_device(dev
);
377 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
383 r
= taal_get_id(&id1
, &id2
, &id3
);
392 return snprintf(buf
, PAGE_SIZE
, "%02x.%02x.%02x\n", id1
, id2
, id3
);
395 static const char *cabc_modes
[] = {
396 "off", /* used also always when CABC is not supported */
402 static ssize_t
show_cabc_mode(struct device
*dev
,
403 struct device_attribute
*attr
,
406 struct omap_dss_device
*dssdev
= to_dss_device(dev
);
407 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
408 const char *mode_str
;
412 mode
= td
->cabc_mode
;
414 mode_str
= "unknown";
415 if (mode
>= 0 && mode
< ARRAY_SIZE(cabc_modes
))
416 mode_str
= cabc_modes
[mode
];
417 len
= snprintf(buf
, PAGE_SIZE
, "%s\n", mode_str
);
419 return len
< PAGE_SIZE
- 1 ? len
: PAGE_SIZE
- 1;
422 static ssize_t
store_cabc_mode(struct device
*dev
,
423 struct device_attribute
*attr
,
424 const char *buf
, size_t count
)
426 struct omap_dss_device
*dssdev
= to_dss_device(dev
);
427 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
430 for (i
= 0; i
< ARRAY_SIZE(cabc_modes
); i
++) {
431 if (sysfs_streq(cabc_modes
[i
], buf
))
435 if (i
== ARRAY_SIZE(cabc_modes
))
440 if (!td
->cabc_broken
)
441 taal_dcs_write_1(DCS_WRITE_CABC
, i
);
450 static ssize_t
show_cabc_available_modes(struct device
*dev
,
451 struct device_attribute
*attr
,
458 len
< PAGE_SIZE
&& i
< ARRAY_SIZE(cabc_modes
); i
++)
459 len
+= snprintf(&buf
[len
], PAGE_SIZE
- len
, "%s%s%s",
460 i
? " " : "", cabc_modes
[i
],
461 i
== ARRAY_SIZE(cabc_modes
) - 1 ? "\n" : "");
463 return len
< PAGE_SIZE
? len
: PAGE_SIZE
- 1;
466 static DEVICE_ATTR(num_dsi_errors
, S_IRUGO
, taal_num_errors_show
, NULL
);
467 static DEVICE_ATTR(hw_revision
, S_IRUGO
, taal_hw_revision_show
, NULL
);
468 static DEVICE_ATTR(cabc_mode
, S_IRUGO
| S_IWUSR
,
469 show_cabc_mode
, store_cabc_mode
);
470 static DEVICE_ATTR(cabc_available_modes
, S_IRUGO
,
471 show_cabc_available_modes
, NULL
);
473 static struct attribute
*taal_attrs
[] = {
474 &dev_attr_num_dsi_errors
.attr
,
475 &dev_attr_hw_revision
.attr
,
476 &dev_attr_cabc_mode
.attr
,
477 &dev_attr_cabc_available_modes
.attr
,
481 static struct attribute_group taal_attr_group
= {
485 static int taal_probe(struct omap_dss_device
*dssdev
)
487 struct taal_data
*td
;
488 struct backlight_device
*bldev
;
491 const struct omap_video_timings taal_panel_timings
= {
496 dev_dbg(&dssdev
->dev
, "probe\n");
498 dssdev
->panel
.config
= OMAP_DSS_LCD_TFT
;
499 dssdev
->panel
.timings
= taal_panel_timings
;
500 dssdev
->ctrl
.pixel_size
= 24;
502 td
= kzalloc(sizeof(*td
), GFP_KERNEL
);
509 td
->esd_wq
= create_singlethread_workqueue("taal_esd");
510 if (td
->esd_wq
== NULL
) {
511 dev_err(&dssdev
->dev
, "can't create ESD workqueue\n");
515 INIT_DELAYED_WORK_DEFERRABLE(&td
->esd_work
, taal_esd_work
);
517 dev_set_drvdata(&dssdev
->dev
, td
);
519 dssdev
->get_timings
= taal_get_timings
;
520 dssdev
->get_resolution
= taal_get_resolution
;
522 /* if no platform set_backlight() defined, presume DSI backlight
524 if (!dssdev
->set_backlight
)
525 td
->use_dsi_bl
= true;
527 bldev
= backlight_device_register("taal", &dssdev
->dev
, dssdev
,
536 bldev
->props
.fb_blank
= FB_BLANK_UNBLANK
;
537 bldev
->props
.power
= FB_BLANK_UNBLANK
;
538 if (td
->use_dsi_bl
) {
539 bldev
->props
.max_brightness
= 255;
540 bldev
->props
.brightness
= 255;
542 bldev
->props
.max_brightness
= 127;
543 bldev
->props
.brightness
= 127;
546 taal_bl_update_status(bldev
);
548 if (dssdev
->phy
.dsi
.ext_te
) {
549 int gpio
= dssdev
->phy
.dsi
.ext_te_gpio
;
551 r
= gpio_request(gpio
, "taal irq");
553 dev_err(&dssdev
->dev
, "GPIO request failed\n");
557 gpio_direction_input(gpio
);
559 r
= request_irq(gpio_to_irq(gpio
), taal_te_isr
,
560 IRQF_DISABLED
| IRQF_TRIGGER_RISING
,
561 "taal vsync", dssdev
);
564 dev_err(&dssdev
->dev
, "IRQ request failed\n");
569 init_completion(&td
->te_completion
);
571 td
->use_ext_te
= true;
574 r
= sysfs_create_group(&dssdev
->dev
.kobj
, &taal_attr_group
);
576 dev_err(&dssdev
->dev
, "failed to create sysfs files\n");
582 if (td
->use_ext_te
) {
583 int gpio
= dssdev
->phy
.dsi
.ext_te_gpio
;
584 free_irq(gpio_to_irq(gpio
), dssdev
);
588 backlight_device_unregister(bldev
);
590 cancel_delayed_work_sync(&td
->esd_work
);
591 destroy_workqueue(td
->esd_wq
);
598 static void taal_remove(struct omap_dss_device
*dssdev
)
600 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
601 struct backlight_device
*bldev
;
603 dev_dbg(&dssdev
->dev
, "remove\n");
605 sysfs_remove_group(&dssdev
->dev
.kobj
, &taal_attr_group
);
607 if (td
->use_ext_te
) {
608 int gpio
= dssdev
->phy
.dsi
.ext_te_gpio
;
609 free_irq(gpio_to_irq(gpio
), dssdev
);
614 bldev
->props
.power
= FB_BLANK_POWERDOWN
;
615 taal_bl_update_status(bldev
);
616 backlight_device_unregister(bldev
);
618 cancel_delayed_work_sync(&td
->esd_work
);
619 destroy_workqueue(td
->esd_wq
);
624 static int taal_enable(struct omap_dss_device
*dssdev
)
626 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
630 dev_dbg(&dssdev
->dev
, "enable\n");
632 if (dssdev
->platform_enable
) {
633 r
= dssdev
->platform_enable(dssdev
);
638 /* it seems we have to wait a bit until taal is ready */
641 r
= taal_sleep_out(td
);
645 r
= taal_get_id(&id1
, &id2
, &id3
);
649 /* on early revisions CABC is broken */
650 if (id2
== 0x00 || id2
== 0xff || id2
== 0x81)
651 td
->cabc_broken
= true;
653 taal_dcs_write_1(DCS_BRIGHTNESS
, 0xff);
654 taal_dcs_write_1(DCS_CTRL_DISPLAY
, (1<<2) | (1<<5)); /* BL | BCTRL */
656 taal_dcs_write_1(DCS_PIXEL_FORMAT
, 0x7); /* 24bit/pixel */
658 taal_set_addr_mode(td
->rotate
, td
->mirror
);
659 if (!td
->cabc_broken
)
660 taal_dcs_write_1(DCS_WRITE_CABC
, td
->cabc_mode
);
662 taal_dcs_write_0(DCS_DISPLAY_ON
);
664 #ifdef TAAL_USE_ESD_CHECK
665 queue_delayed_work(td
->esd_wq
, &td
->esd_work
, TAAL_ESD_CHECK_PERIOD
);
670 if (!td
->intro_printed
) {
671 dev_info(&dssdev
->dev
, "revision %02x.%02x.%02x\n",
674 dev_info(&dssdev
->dev
,
675 "old Taal version, CABC disabled\n");
676 td
->intro_printed
= true;
681 if (dssdev
->platform_disable
)
682 dssdev
->platform_disable(dssdev
);
687 static void taal_disable(struct omap_dss_device
*dssdev
)
689 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
691 dev_dbg(&dssdev
->dev
, "disable\n");
693 cancel_delayed_work(&td
->esd_work
);
695 taal_dcs_write_0(DCS_DISPLAY_OFF
);
698 /* wait a bit so that the message goes through */
701 if (dssdev
->platform_disable
)
702 dssdev
->platform_disable(dssdev
);
707 static int taal_suspend(struct omap_dss_device
*dssdev
)
709 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
710 struct backlight_device
*bldev
= td
->bldev
;
712 bldev
->props
.power
= FB_BLANK_POWERDOWN
;
713 taal_bl_update_status(bldev
);
718 static int taal_resume(struct omap_dss_device
*dssdev
)
720 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
721 struct backlight_device
*bldev
= td
->bldev
;
723 bldev
->props
.power
= FB_BLANK_UNBLANK
;
724 taal_bl_update_status(bldev
);
729 static void taal_setup_update(struct omap_dss_device
*dssdev
,
730 u16 x
, u16 y
, u16 w
, u16 h
)
732 taal_set_update_window(x
, y
, w
, h
);
735 static int taal_enable_te(struct omap_dss_device
*dssdev
, bool enable
)
737 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
740 td
->te_enabled
= enable
;
743 r
= taal_dcs_write_1(DCS_TEAR_ON
, 0);
745 r
= taal_dcs_write_0(DCS_TEAR_OFF
);
750 static int taal_wait_te(struct omap_dss_device
*dssdev
)
752 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
753 long wait
= msecs_to_jiffies(500);
755 if (!td
->use_ext_te
|| !td
->te_enabled
)
758 INIT_COMPLETION(td
->te_completion
);
759 wait
= wait_for_completion_timeout(&td
->te_completion
, wait
);
761 dev_err(&dssdev
->dev
, "timeout waiting TE\n");
768 static int taal_rotate(struct omap_dss_device
*dssdev
, u8 rotate
)
770 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
773 dev_dbg(&dssdev
->dev
, "rotate %d\n", rotate
);
776 r
= taal_set_addr_mode(rotate
, td
->mirror
);
787 static u8
taal_get_rotate(struct omap_dss_device
*dssdev
)
789 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
793 static int taal_mirror(struct omap_dss_device
*dssdev
, bool enable
)
795 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
798 dev_dbg(&dssdev
->dev
, "mirror %d\n", enable
);
801 r
= taal_set_addr_mode(td
->rotate
, enable
);
812 static bool taal_get_mirror(struct omap_dss_device
*dssdev
)
814 struct taal_data
*td
= dev_get_drvdata(&dssdev
->dev
);
818 static int taal_run_test(struct omap_dss_device
*dssdev
, int test_num
)
823 r
= taal_dcs_read_1(DCS_GET_ID1
, &id1
);
826 r
= taal_dcs_read_1(DCS_GET_ID2
, &id2
);
829 r
= taal_dcs_read_1(DCS_GET_ID3
, &id3
);
836 static int taal_memory_read(struct omap_dss_device
*dssdev
,
837 void *buf
, size_t size
,
838 u16 x
, u16 y
, u16 w
, u16 h
)
843 unsigned buf_used
= 0;
845 if (size
< w
* h
* 3)
848 size
= min(w
* h
* 3,
849 dssdev
->panel
.timings
.x_res
*
850 dssdev
->panel
.timings
.y_res
* 3);
852 /* plen 1 or 2 goes into short packet. until checksum error is fixed,
853 * use short packets. plen 32 works, but bigger packets seem to cause
860 taal_setup_update(dssdev
, x
, y
, w
, h
);
862 r
= dsi_vc_set_max_rx_packet_size(TCH
, plen
);
866 while (buf_used
< size
) {
867 u8 dcs_cmd
= first
? 0x2e : 0x3e;
870 r
= dsi_vc_dcs_read(TCH
, dcs_cmd
,
871 buf
+ buf_used
, size
- buf_used
);
874 dev_err(&dssdev
->dev
, "read error\n");
881 dev_err(&dssdev
->dev
, "short read\n");
885 if (signal_pending(current
)) {
886 dev_err(&dssdev
->dev
, "signal pending, "
887 "aborting memory read\n");
896 dsi_vc_set_max_rx_packet_size(TCH
, 1);
901 static void taal_esd_work(struct work_struct
*work
)
903 struct taal_data
*td
= container_of(work
, struct taal_data
,
905 struct omap_dss_device
*dssdev
= td
->dssdev
;
914 r
= taal_dcs_read_1(DCS_RDDSDR
, &state1
);
916 dev_err(&dssdev
->dev
, "failed to read Taal status\n");
920 /* Run self diagnostics */
921 r
= taal_sleep_out(td
);
923 dev_err(&dssdev
->dev
, "failed to run Taal self-diagnostics\n");
927 r
= taal_dcs_read_1(DCS_RDDSDR
, &state2
);
929 dev_err(&dssdev
->dev
, "failed to read Taal status\n");
933 /* Each sleep out command will trigger a self diagnostic and flip
934 * Bit6 if the test passes.
936 if (!((state1
^ state2
) & (1 << 6))) {
937 dev_err(&dssdev
->dev
, "LCD self diagnostics failed\n");
940 /* Self-diagnostics result is also shown on TE GPIO line. We need
941 * to re-enable TE after self diagnostics */
942 if (td
->use_ext_te
&& td
->te_enabled
)
943 taal_enable_te(dssdev
, true);
947 queue_delayed_work(td
->esd_wq
, &td
->esd_work
, TAAL_ESD_CHECK_PERIOD
);
951 dev_err(&dssdev
->dev
, "performing LCD reset\n");
953 taal_disable(dssdev
);
958 queue_delayed_work(td
->esd_wq
, &td
->esd_work
, TAAL_ESD_CHECK_PERIOD
);
961 static struct omap_dss_driver taal_driver
= {
963 .remove
= taal_remove
,
965 .enable
= taal_enable
,
966 .disable
= taal_disable
,
967 .suspend
= taal_suspend
,
968 .resume
= taal_resume
,
970 .setup_update
= taal_setup_update
,
971 .enable_te
= taal_enable_te
,
972 .wait_for_te
= taal_wait_te
,
973 .set_rotate
= taal_rotate
,
974 .get_rotate
= taal_get_rotate
,
975 .set_mirror
= taal_mirror
,
976 .get_mirror
= taal_get_mirror
,
977 .run_test
= taal_run_test
,
978 .memory_read
= taal_memory_read
,
982 .owner
= THIS_MODULE
,
986 static int __init
taal_init(void)
988 omap_dss_register_driver(&taal_driver
);
993 static void __exit
taal_exit(void)
995 omap_dss_unregister_driver(&taal_driver
);
998 module_init(taal_init
);
999 module_exit(taal_exit
);
1001 MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@nokia.com>");
1002 MODULE_DESCRIPTION("Taal Driver");
1003 MODULE_LICENSE("GPL");