lcd_palmz71.c 1.9 KB

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