1*9abdd497SMikko Perttunen // SPDX-License-Identifier: GPL-2.0-only 2*9abdd497SMikko Perttunen /* 3*9abdd497SMikko Perttunen * Host1x init for Tegra234 SoCs 4*9abdd497SMikko Perttunen * 5*9abdd497SMikko Perttunen * Copyright (c) 2022 NVIDIA Corporation. 6*9abdd497SMikko Perttunen */ 7*9abdd497SMikko Perttunen 8*9abdd497SMikko Perttunen /* include hw specification */ 9*9abdd497SMikko Perttunen #include "host1x08.h" 10*9abdd497SMikko Perttunen #include "host1x08_hardware.h" 11*9abdd497SMikko Perttunen 12*9abdd497SMikko Perttunen /* include code */ 13*9abdd497SMikko Perttunen #define HOST1X_HW 8 14*9abdd497SMikko Perttunen 15*9abdd497SMikko Perttunen #include "cdma_hw.c" 16*9abdd497SMikko Perttunen #include "channel_hw.c" 17*9abdd497SMikko Perttunen #include "debug_hw.c" 18*9abdd497SMikko Perttunen #include "intr_hw.c" 19*9abdd497SMikko Perttunen #include "syncpt_hw.c" 20*9abdd497SMikko Perttunen 21*9abdd497SMikko Perttunen #include "../dev.h" 22*9abdd497SMikko Perttunen host1x08_init(struct host1x * host)23*9abdd497SMikko Perttunenint host1x08_init(struct host1x *host) 24*9abdd497SMikko Perttunen { 25*9abdd497SMikko Perttunen host->channel_op = &host1x_channel_ops; 26*9abdd497SMikko Perttunen host->cdma_op = &host1x_cdma_ops; 27*9abdd497SMikko Perttunen host->cdma_pb_op = &host1x_pushbuffer_ops; 28*9abdd497SMikko Perttunen host->syncpt_op = &host1x_syncpt_ops; 29*9abdd497SMikko Perttunen host->intr_op = &host1x_intr_ops; 30*9abdd497SMikko Perttunen host->debug_op = &host1x_debug_ops; 31*9abdd497SMikko Perttunen 32*9abdd497SMikko Perttunen return 0; 33*9abdd497SMikko Perttunen } 34