vic.h 815 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2015, NVIDIA Corporation.
  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 version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef TEGRA_VIC_H
  9. #define TEGRA_VIC_H
  10. /* VIC methods */
  11. #define VIC_SET_APPLICATION_ID 0x00000200
  12. #define VIC_SET_FCE_UCODE_SIZE 0x0000071C
  13. #define VIC_SET_FCE_UCODE_OFFSET 0x0000072C
  14. /* VIC registers */
  15. #define NV_PVIC_MISC_PRI_VIC_CG 0x000016d0
  16. #define CG_IDLE_CG_DLY_CNT(val) ((val & 0x3f) << 0)
  17. #define CG_IDLE_CG_EN (1 << 6)
  18. #define CG_WAKEUP_DLY_CNT(val) ((val & 0xf) << 16)
  19. /* Firmware offsets */
  20. #define VIC_UCODE_FCE_HEADER_OFFSET (6*4)
  21. #define VIC_UCODE_FCE_DATA_OFFSET (7*4)
  22. #define FCE_UCODE_SIZE_OFFSET (2*4)
  23. #endif /* TEGRA_VIC_H */