lcd_palmte.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 int palmte_panel_init(struct lcd_panel *panel,
  26. struct omapfb_device *fbdev)
  27. {
  28. return 0;
  29. }
  30. static void palmte_panel_cleanup(struct lcd_panel *panel)
  31. {
  32. }
  33. static int palmte_panel_enable(struct lcd_panel *panel)
  34. {
  35. return 0;
  36. }
  37. static void palmte_panel_disable(struct lcd_panel *panel)
  38. {
  39. }
  40. static unsigned long palmte_panel_get_caps(struct lcd_panel *panel)
  41. {
  42. return 0;
  43. }
  44. struct lcd_panel palmte_panel = {
  45. .name = "palmte",
  46. .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
  47. OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
  48. OMAP_LCDC_HSVS_OPPOSITE,
  49. .data_lines = 16,
  50. .bpp = 8,
  51. .pixel_clock = 12000,
  52. .x_res = 320,
  53. .y_res = 320,
  54. .hsw = 4,
  55. .hfp = 8,
  56. .hbp = 28,
  57. .vsw = 1,
  58. .vfp = 8,
  59. .vbp = 7,
  60. .pcd = 0,
  61. .init = palmte_panel_init,
  62. .cleanup = palmte_panel_cleanup,
  63. .enable = palmte_panel_enable,
  64. .disable = palmte_panel_disable,
  65. .get_caps = palmte_panel_get_caps,
  66. };
  67. static int palmte_panel_probe(struct platform_device *pdev)
  68. {
  69. omapfb_register_panel(&palmte_panel);
  70. return 0;
  71. }
  72. static int palmte_panel_remove(struct platform_device *pdev)
  73. {
  74. return 0;
  75. }
  76. static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
  77. {
  78. return 0;
  79. }
  80. static int palmte_panel_resume(struct platform_device *pdev)
  81. {
  82. return 0;
  83. }
  84. static struct platform_driver palmte_panel_driver = {
  85. .probe = palmte_panel_probe,
  86. .remove = palmte_panel_remove,
  87. .suspend = palmte_panel_suspend,
  88. .resume = palmte_panel_resume,
  89. .driver = {
  90. .name = "lcd_palmte",
  91. },
  92. };
  93. module_platform_driver(palmte_panel_driver);