lcd_palmte.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * LCD panel support for the Palm Tungsten E
  3. *
  4. * Original version : Romain Goyet <r.goyet@gmail.com>
  5. * Current version : Laurent Gonzalez <palmte.linux@free.fr>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. */
  21. #include <linux/module.h>
  22. #include <linux/platform_device.h>
  23. #include <linux/io.h>
  24. #include "omapfb.h"
  25. static struct lcd_panel palmte_panel = {
  26. .name = "palmte",
  27. .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
  28. OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
  29. OMAP_LCDC_HSVS_OPPOSITE,
  30. .data_lines = 16,
  31. .bpp = 8,
  32. .pixel_clock = 12000,
  33. .x_res = 320,
  34. .y_res = 320,
  35. .hsw = 4,
  36. .hfp = 8,
  37. .hbp = 28,
  38. .vsw = 1,
  39. .vfp = 8,
  40. .vbp = 7,
  41. .pcd = 0,
  42. };
  43. static int palmte_panel_probe(struct platform_device *pdev)
  44. {
  45. omapfb_register_panel(&palmte_panel);
  46. return 0;
  47. }
  48. static struct platform_driver palmte_panel_driver = {
  49. .probe = palmte_panel_probe,
  50. .driver = {
  51. .name = "lcd_palmte",
  52. },
  53. };
  54. module_platform_driver(palmte_panel_driver);
  55. MODULE_AUTHOR("Romain Goyet <r.goyet@gmail.com>, Laurent Gonzalez <palmte.linux@free.fr>");
  56. MODULE_DESCRIPTION("LCD panel support for the Palm Tungsten E");
  57. MODULE_LICENSE("GPL");