lcd_htcherald.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * File: drivers/video/omap/lcd-htcherald.c
  4. *
  5. * LCD panel support for the HTC Herald
  6. *
  7. * Copyright (C) 2009 Cory Maccarrone <[email protected]>
  8. * Copyright (C) 2009 Wing Linux
  9. *
  10. * Based on the lcd_htcwizard.c file from the linwizard project:
  11. * Copyright (C) linwizard.sourceforge.net
  12. * Author: Angelo Arrifano <[email protected]>
  13. * Based on lcd_h4 by Imre Deak <[email protected]>
  14. */
  15. #include <linux/module.h>
  16. #include <linux/platform_device.h>
  17. #include "omapfb.h"
  18. /* Found on WIZ200 (miknix) and some HERA110 models (darkstar62) */
  19. static struct lcd_panel htcherald_panel_1 = {
  20. .name = "lcd_herald",
  21. .config = OMAP_LCDC_PANEL_TFT |
  22. OMAP_LCDC_INV_HSYNC |
  23. OMAP_LCDC_INV_VSYNC |
  24. OMAP_LCDC_INV_PIX_CLOCK,
  25. .bpp = 16,
  26. .data_lines = 16,
  27. .x_res = 240,
  28. .y_res = 320,
  29. .pixel_clock = 6093,
  30. .pcd = 0, /* 15 */
  31. .hsw = 10,
  32. .hfp = 10,
  33. .hbp = 20,
  34. .vsw = 3,
  35. .vfp = 2,
  36. .vbp = 2,
  37. };
  38. static int htcherald_panel_probe(struct platform_device *pdev)
  39. {
  40. omapfb_register_panel(&htcherald_panel_1);
  41. return 0;
  42. }
  43. static struct platform_driver htcherald_panel_driver = {
  44. .probe = htcherald_panel_probe,
  45. .driver = {
  46. .name = "lcd_htcherald",
  47. },
  48. };
  49. module_platform_driver(htcherald_panel_driver);
  50. MODULE_AUTHOR("Cory Maccarrone");
  51. MODULE_LICENSE("GPL");
  52. MODULE_DESCRIPTION("LCD panel support for the HTC Herald");