host1x02.c 671 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Host1x init for Tegra114 SoCs
  4. *
  5. * Copyright (c) 2013 NVIDIA Corporation.
  6. */
  7. /* include hw specification */
  8. #include "host1x02.h"
  9. #include "host1x02_hardware.h"
  10. /* include code */
  11. #define HOST1X_HW 2
  12. #include "cdma_hw.c"
  13. #include "channel_hw.c"
  14. #include "debug_hw.c"
  15. #include "intr_hw.c"
  16. #include "syncpt_hw.c"
  17. #include "../dev.h"
  18. int host1x02_init(struct host1x *host)
  19. {
  20. host->channel_op = &host1x_channel_ops;
  21. host->cdma_op = &host1x_cdma_ops;
  22. host->cdma_pb_op = &host1x_pushbuffer_ops;
  23. host->syncpt_op = &host1x_syncpt_ops;
  24. host->intr_op = &host1x_intr_ops;
  25. host->debug_op = &host1x_debug_ops;
  26. return 0;
  27. }