15407f31bSThierry Reding /* 25407f31bSThierry Reding * Host1x init for Tegra114 SoCs 35407f31bSThierry Reding * 45407f31bSThierry Reding * Copyright (c) 2013 NVIDIA Corporation. 55407f31bSThierry Reding * 65407f31bSThierry Reding * This program is free software; you can redistribute it and/or modify it 75407f31bSThierry Reding * under the terms and conditions of the GNU General Public License, 85407f31bSThierry Reding * version 2, as published by the Free Software Foundation. 95407f31bSThierry Reding * 105407f31bSThierry Reding * This program is distributed in the hope it will be useful, but WITHOUT 115407f31bSThierry Reding * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 125407f31bSThierry Reding * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 135407f31bSThierry Reding * more details. 145407f31bSThierry Reding * 155407f31bSThierry Reding * You should have received a copy of the GNU General Public License 165407f31bSThierry Reding * along with this program. If not, see <http://www.gnu.org/licenses/>. 175407f31bSThierry Reding */ 185407f31bSThierry Reding 195407f31bSThierry Reding /* include hw specification */ 205407f31bSThierry Reding #include "host1x01.h" 215407f31bSThierry Reding #include "host1x01_hardware.h" 225407f31bSThierry Reding 235407f31bSThierry Reding /* include code */ 245407f31bSThierry Reding #include "cdma_hw.c" 255407f31bSThierry Reding #include "channel_hw.c" 265407f31bSThierry Reding #include "debug_hw.c" 275407f31bSThierry Reding #include "intr_hw.c" 285407f31bSThierry Reding #include "syncpt_hw.c" 295407f31bSThierry Reding 305407f31bSThierry Reding #include "../dev.h" 315407f31bSThierry Reding 325407f31bSThierry Reding int host1x02_init(struct host1x *host) 335407f31bSThierry Reding { 345407f31bSThierry Reding host->channel_op = &host1x_channel_ops; 355407f31bSThierry Reding host->cdma_op = &host1x_cdma_ops; 365407f31bSThierry Reding host->cdma_pb_op = &host1x_pushbuffer_ops; 375407f31bSThierry Reding host->syncpt_op = &host1x_syncpt_ops; 385407f31bSThierry Reding host->intr_op = &host1x_intr_ops; 395407f31bSThierry Reding host->debug_op = &host1x_debug_ops; 405407f31bSThierry Reding 415407f31bSThierry Reding return 0; 425407f31bSThierry Reding } 43