1*ac1bdbf2SThierry Reding /* 2*ac1bdbf2SThierry Reding * Host1x init for Tegra194 SoCs 3*ac1bdbf2SThierry Reding * 4*ac1bdbf2SThierry Reding * Copyright (c) 2018 NVIDIA Corporation. 5*ac1bdbf2SThierry Reding * 6*ac1bdbf2SThierry Reding * This program is free software; you can redistribute it and/or modify it 7*ac1bdbf2SThierry Reding * under the terms and conditions of the GNU General Public License, 8*ac1bdbf2SThierry Reding * version 2, as published by the Free Software Foundation. 9*ac1bdbf2SThierry Reding * 10*ac1bdbf2SThierry Reding * This program is distributed in the hope it will be useful, but WITHOUT 11*ac1bdbf2SThierry Reding * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12*ac1bdbf2SThierry Reding * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13*ac1bdbf2SThierry Reding * more details. 14*ac1bdbf2SThierry Reding * 15*ac1bdbf2SThierry Reding * You should have received a copy of the GNU General Public License 16*ac1bdbf2SThierry Reding * along with this program. If not, see <http://www.gnu.org/licenses/>. 17*ac1bdbf2SThierry Reding */ 18*ac1bdbf2SThierry Reding 19*ac1bdbf2SThierry Reding /* include hw specification */ 20*ac1bdbf2SThierry Reding #include "host1x07.h" 21*ac1bdbf2SThierry Reding #include "host1x07_hardware.h" 22*ac1bdbf2SThierry Reding 23*ac1bdbf2SThierry Reding /* include code */ 24*ac1bdbf2SThierry Reding #define HOST1X_HW 7 25*ac1bdbf2SThierry Reding 26*ac1bdbf2SThierry Reding #include "cdma_hw.c" 27*ac1bdbf2SThierry Reding #include "channel_hw.c" 28*ac1bdbf2SThierry Reding #include "debug_hw.c" 29*ac1bdbf2SThierry Reding #include "intr_hw.c" 30*ac1bdbf2SThierry Reding #include "syncpt_hw.c" 31*ac1bdbf2SThierry Reding 32*ac1bdbf2SThierry Reding #include "../dev.h" 33*ac1bdbf2SThierry Reding 34*ac1bdbf2SThierry Reding int host1x07_init(struct host1x *host) 35*ac1bdbf2SThierry Reding { 36*ac1bdbf2SThierry Reding host->channel_op = &host1x_channel_ops; 37*ac1bdbf2SThierry Reding host->cdma_op = &host1x_cdma_ops; 38*ac1bdbf2SThierry Reding host->cdma_pb_op = &host1x_pushbuffer_ops; 39*ac1bdbf2SThierry Reding host->syncpt_op = &host1x_syncpt_ops; 40*ac1bdbf2SThierry Reding host->intr_op = &host1x_intr_ops; 41*ac1bdbf2SThierry Reding host->debug_op = &host1x_debug_ops; 42*ac1bdbf2SThierry Reding 43*ac1bdbf2SThierry Reding return 0; 44*ac1bdbf2SThierry Reding } 45