xref: /kernel/linux/linux-5.10/drivers/gpu/host1x/hw/host1x07.c (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Host1x init for Tegra194 SoCs
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2018 NVIDIA Corporation.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/* include hw specification */
98c2ecf20Sopenharmony_ci#include "host1x07.h"
108c2ecf20Sopenharmony_ci#include "host1x07_hardware.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* include code */
138c2ecf20Sopenharmony_ci#define HOST1X_HW 7
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#include "cdma_hw.c"
168c2ecf20Sopenharmony_ci#include "channel_hw.c"
178c2ecf20Sopenharmony_ci#include "debug_hw.c"
188c2ecf20Sopenharmony_ci#include "intr_hw.c"
198c2ecf20Sopenharmony_ci#include "syncpt_hw.c"
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#include "../dev.h"
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciint host1x07_init(struct host1x *host)
248c2ecf20Sopenharmony_ci{
258c2ecf20Sopenharmony_ci	host->channel_op = &host1x_channel_ops;
268c2ecf20Sopenharmony_ci	host->cdma_op = &host1x_cdma_ops;
278c2ecf20Sopenharmony_ci	host->cdma_pb_op = &host1x_pushbuffer_ops;
288c2ecf20Sopenharmony_ci	host->syncpt_op = &host1x_syncpt_ops;
298c2ecf20Sopenharmony_ci	host->intr_op = &host1x_intr_ops;
308c2ecf20Sopenharmony_ci	host->debug_op = &host1x_debug_ops;
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	return 0;
338c2ecf20Sopenharmony_ci}
34

Indexes created Thu Nov 07 10:32:03 CST 2024