vg_lite_hw.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /****************************************************************************
  2. *
  3. * The MIT License (MIT)
  4. *
  5. * Copyright (c) 2014 - 2020 Vivante Corporation
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. *
  25. *****************************************************************************/
  26. #ifndef _vg_lite_hw_h
  27. #define _vg_lite_hw_h
  28. #define VG_LITE_HW_CLOCK_CONTROL 0x000
  29. #define VG_LITE_HW_IDLE 0x004
  30. #define VG_LITE_INTR_STATUS 0x010
  31. #define VG_LITE_INTR_ENABLE 0x014
  32. #define VG_LITE_HW_CHIP_ID 0x020
  33. #define VG_LITE_HW_CMDBUF_ADDRESS 0x500
  34. #define VG_LITE_HW_CMDBUF_SIZE 0x504
  35. #define VG_LITE_HW_POWER_CONTROL 0x100
  36. #define VG_LITE_HW_POWER_MODULE_CONTROL 0x104
  37. #define VG_LITE_EXT_WORK_CONTROL 0x520
  38. #define VG_LITE_EXT_VIDEO_SIZE 0x524
  39. #define VG_LITE_EXT_CLEAR_VALUE 0x528
  40. #define VG_LITE_EXT_VIDEO_CONTROL 0x51C
  41. typedef struct clock_control {
  42. uint32_t reserved0 : 1;
  43. uint32_t clock_gate : 1;
  44. uint32_t scale : 7;
  45. uint32_t scale_load : 1;
  46. uint32_t reserved10 : 2;
  47. uint32_t soft_reset : 1;
  48. uint32_t reserved13 : 6;
  49. uint32_t isolate : 1;
  50. } clock_control_t;
  51. typedef union vg_lite_hw_clock_control {
  52. clock_control_t control;
  53. uint32_t data;
  54. } vg_lite_hw_clock_control_t;
  55. #define VG_LITE_HW_IDLE_STATE 0x0B05
  56. #endif /* defined(_vg_lite_hw_h) */