README.davinci-vpbe 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. VPBE V4L2 driver design
  2. ======================================================================
  3. File partitioning
  4. -----------------
  5. V4L2 display device driver
  6. drivers/media/platform/davinci/vpbe_display.c
  7. drivers/media/platform/davinci/vpbe_display.h
  8. VPBE display controller
  9. drivers/media/platform/davinci/vpbe.c
  10. drivers/media/platform/davinci/vpbe.h
  11. VPBE venc sub device driver
  12. drivers/media/platform/davinci/vpbe_venc.c
  13. drivers/media/platform/davinci/vpbe_venc.h
  14. drivers/media/platform/davinci/vpbe_venc_regs.h
  15. VPBE osd driver
  16. drivers/media/platform/davinci/vpbe_osd.c
  17. drivers/media/platform/davinci/vpbe_osd.h
  18. drivers/media/platform/davinci/vpbe_osd_regs.h
  19. Functional partitioning
  20. -----------------------
  21. Consists of the following (in the same order as the list under file
  22. partitioning):-
  23. 1. V4L2 display driver
  24. Implements creation of video2 and video3 device nodes and
  25. provides v4l2 device interface to manage VID0 and VID1 layers.
  26. 2. Display controller
  27. Loads up VENC, OSD and external encoders such as ths8200. It provides
  28. a set of API calls to V4L2 drivers to set the output/standards
  29. in the VENC or external sub devices. It also provides
  30. a device object to access the services from OSD subdevice
  31. using sub device ops. The connection of external encoders to VENC LCD
  32. controller port is done at init time based on default output and standard
  33. selection or at run time when application change the output through
  34. V4L2 IOCTLs.
  35. When connected to an external encoder, vpbe controller is also responsible
  36. for setting up the interface between VENC and external encoders based on
  37. board specific settings (specified in board-xxx-evm.c). This allows
  38. interfacing external encoders such as ths8200. The setup_if_config()
  39. is implemented for this as well as configure_venc() (part of the next patch)
  40. API to set timings in VENC for a specific display resolution. As of this
  41. patch series, the interconnection and enabling and setting of the external
  42. encoders is not present, and would be a part of the next patch series.
  43. 3. VENC subdevice module
  44. Responsible for setting outputs provided through internal DACs and also
  45. setting timings at LCD controller port when external encoders are connected
  46. at the port or LCD panel timings required. When external encoder/LCD panel
  47. is connected, the timings for a specific standard/preset is retrieved from
  48. the board specific table and the values are used to set the timings in
  49. venc using non-standard timing mode.
  50. Support LCD Panel displays using the VENC. For example to support a Logic
  51. PD display, it requires setting up the LCD controller port with a set of
  52. timings for the resolution supported and setting the dot clock. So we could
  53. add the available outputs as a board specific entry (i.e add the "LogicPD"
  54. output name to board-xxx-evm.c). A table of timings for various LCDs
  55. supported can be maintained in the board specific setup file to support
  56. various LCD displays.As of this patch a basic driver is present, and this
  57. support for external encoders and displays forms a part of the next
  58. patch series.
  59. 4. OSD module
  60. OSD module implements all OSD layer management and hardware specific
  61. features. The VPBE module interacts with the OSD for enabling and
  62. disabling appropriate features of the OSD.
  63. Current status:-
  64. A fully functional working version of the V4L2 driver is available. This
  65. driver has been tested with NTSC and PAL standards and buffer streaming.
  66. Following are TBDs.
  67. vpbe display controller
  68. - Add support for external encoders.
  69. - add support for selecting external encoder as default at probe time.
  70. vpbe venc sub device
  71. - add timings for supporting ths8200
  72. - add support for LogicPD LCD.
  73. FB drivers
  74. - Add support for fbdev drivers.- Ready and part of subsequent patches.