vdec.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Video Decoder (VDEC) - System peripherals registers.
  3. *
  4. * Copyright (C) 2009 Hantro Products Oy.
  5. *
  6. * Based on SAMA5D4 datasheet.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or (at your option) any later version.
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef VDEC_H
  22. #define VDEC_H
  23. #define VDEC_IDR 0x00 /* ID Register (read-only) */
  24. #define VDEC_IDR_BUILD_VER 0xf /* Build Version is 0x02. */
  25. #define VDEC_IDR_MINOR_VER (0xff << 4) /* Minor Version is 0x88. */
  26. #define VDEC_IDR_MAJOR_VER (0xf << 12) /* Major Version is 0x08. */
  27. #define VDEC_IDR_PROD_ID (0xffff << 16) /* Product ID is 0x6731. */
  28. #define VDEC_DIR 0x04 /* Decoder Interrupt Register */
  29. #define VDEC_DIR_DE 1 /* 1: Enable decoder; 0: Disable decoder. */
  30. #define VDEC_DIR_ID 0x10 /* 1: Disable interrupts for decoder; 0: Enable interrupts. */
  31. #define VDEC_DIR_ABORT 0x20
  32. #define VDEC_DIR_ISET 0x100 /* Decoder Interrupt Set. 0: Clears the Decoder Interrupt. */
  33. #define VDEC_PPIR 0xF0 /* Post Processor Interrupt Register */
  34. #define VDEC_PPIR_PPE 1 /* 1: Enable post-processor; 0: Disable post-processor */
  35. #define VDEC_PPIR_ID 0x10 /* 1: Disable interrupts for post-processor; 0: Enable interrupts. */
  36. #define VDEC_PPIR_ISET 0x100 /* Post-processor Interrupt Set. 0: Clears the post-processor Interrupt. */
  37. #endif