xref: /linux/drivers/gpu/host1x/hw/host1x07.c (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*9952f691SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
2ac1bdbf2SThierry Reding /*
3ac1bdbf2SThierry Reding  * Host1x init for Tegra194 SoCs
4ac1bdbf2SThierry Reding  *
5ac1bdbf2SThierry Reding  * Copyright (c) 2018 NVIDIA Corporation.
6ac1bdbf2SThierry Reding  */
7ac1bdbf2SThierry Reding 
8ac1bdbf2SThierry Reding /* include hw specification */
9ac1bdbf2SThierry Reding #include "host1x07.h"
10ac1bdbf2SThierry Reding #include "host1x07_hardware.h"
11ac1bdbf2SThierry Reding 
12ac1bdbf2SThierry Reding /* include code */
13ac1bdbf2SThierry Reding #define HOST1X_HW 7
14ac1bdbf2SThierry Reding 
15ac1bdbf2SThierry Reding #include "cdma_hw.c"
16ac1bdbf2SThierry Reding #include "channel_hw.c"
17ac1bdbf2SThierry Reding #include "debug_hw.c"
18ac1bdbf2SThierry Reding #include "intr_hw.c"
19ac1bdbf2SThierry Reding #include "syncpt_hw.c"
20ac1bdbf2SThierry Reding 
21ac1bdbf2SThierry Reding #include "../dev.h"
22ac1bdbf2SThierry Reding 
host1x07_init(struct host1x * host)23ac1bdbf2SThierry Reding int host1x07_init(struct host1x *host)
24ac1bdbf2SThierry Reding {
25ac1bdbf2SThierry Reding 	host->channel_op = &host1x_channel_ops;
26ac1bdbf2SThierry Reding 	host->cdma_op = &host1x_cdma_ops;
27ac1bdbf2SThierry Reding 	host->cdma_pb_op = &host1x_pushbuffer_ops;
28ac1bdbf2SThierry Reding 	host->syncpt_op = &host1x_syncpt_ops;
29ac1bdbf2SThierry Reding 	host->intr_op = &host1x_intr_ops;
30ac1bdbf2SThierry Reding 	host->debug_op = &host1x_debug_ops;
31ac1bdbf2SThierry Reding 
32ac1bdbf2SThierry Reding 	return 0;
33ac1bdbf2SThierry Reding }
34