vpss.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Inc
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *
  18. * vpss - video processing subsystem module header file.
  19. *
  20. * Include this header file if a driver needs to configure vpss system
  21. * module. It exports a set of library functions for video drivers to
  22. * configure vpss system module functions such as clock enable/disable,
  23. * vpss interrupt mux to arm, and other common vpss system module
  24. * functions.
  25. */
  26. #ifndef _VPSS_H
  27. #define _VPSS_H
  28. /* selector for ccdc input selection on DM355 */
  29. enum vpss_ccdc_source_sel {
  30. VPSS_CCDCIN,
  31. VPSS_HSSIIN
  32. };
  33. /* Used for enable/diable VPSS Clock */
  34. enum vpss_clock_sel {
  35. /* DM355/DM365 */
  36. VPSS_CCDC_CLOCK,
  37. VPSS_IPIPE_CLOCK,
  38. VPSS_H3A_CLOCK,
  39. VPSS_CFALD_CLOCK,
  40. /*
  41. * When using VPSS_VENC_CLOCK_SEL in vpss_enable_clock() api
  42. * following applies:-
  43. * en = 0 selects ENC_CLK
  44. * en = 1 selects ENC_CLK/2
  45. */
  46. VPSS_VENC_CLOCK_SEL,
  47. VPSS_VPBE_CLOCK,
  48. };
  49. /* select input to ccdc on dm355 */
  50. int vpss_select_ccdc_source(enum vpss_ccdc_source_sel src_sel);
  51. /* enable/disable a vpss clock, 0 - success, -1 - failure */
  52. int vpss_enable_clock(enum vpss_clock_sel clock_sel, int en);
  53. /* wbl reset for dm644x */
  54. enum vpss_wbl_sel {
  55. VPSS_PCR_AEW_WBL_0 = 16,
  56. VPSS_PCR_AF_WBL_0,
  57. VPSS_PCR_RSZ4_WBL_0,
  58. VPSS_PCR_RSZ3_WBL_0,
  59. VPSS_PCR_RSZ2_WBL_0,
  60. VPSS_PCR_RSZ1_WBL_0,
  61. VPSS_PCR_PREV_WBL_0,
  62. VPSS_PCR_CCDC_WBL_O,
  63. };
  64. int vpss_clear_wbl_overflow(enum vpss_wbl_sel wbl_sel);
  65. #endif