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