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