mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Define host1x_dev_ops for T186 Add API load_streamid_regs() to load streamid registers Set this API to host1x_dev_ops.load_regs so that we set streamid registers during host1x_probe() Add a static table which includes streamid mappings for all the clients Bug 1704301 Change-Id: I7aeefc43776472a7ccf868bfa18c810f3b80b52b Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1023438 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* include hw specification */
|
|
#include "host1x05.h"
|
|
#include "host1x05_hardware.h"
|
|
|
|
/* include code */
|
|
#include "cdma_hw_t186.c"
|
|
#include "channel_hw_t186.c"
|
|
#include "debug_hw_t186.c"
|
|
#include "intr_hw_t186.c"
|
|
#include "syncpt_hw_t186.c"
|
|
#include "stremid_hw_t186.c"
|
|
|
|
#include "dev.h"
|
|
|
|
int host1x05_init(struct host1x *host)
|
|
{
|
|
host->dev_op = &host1x_dev_t186_ops;
|
|
host->channel_op = &host1x_channel_t186_ops;
|
|
host->cdma_op = &host1x_cdma_t186_ops;
|
|
host->cdma_pb_op = &host1x_pushbuffer_t186_ops;
|
|
host->syncpt_op = &host1x_syncpt_t186_ops;
|
|
host->intr_op = &host1x_intr_t186_ops;
|
|
host->debug_op = &host1x_debug_t186_ops;
|
|
|
|
return 0;
|
|
}
|