2019-05-29 00:10:04 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2013-03-22 21:34:01 +07:00
|
|
|
/*
|
|
|
|
* Host1x init for T20 and T30 Architecture Chips
|
|
|
|
*
|
|
|
|
* Copyright (c) 2011-2013, NVIDIA Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* include hw specification */
|
2013-10-09 15:32:54 +07:00
|
|
|
#include "host1x01.h"
|
|
|
|
#include "host1x01_hardware.h"
|
2013-03-22 21:34:01 +07:00
|
|
|
|
|
|
|
/* include code */
|
2017-09-05 15:43:05 +07:00
|
|
|
#define HOST1X_HW 1
|
|
|
|
|
2013-10-09 15:32:54 +07:00
|
|
|
#include "cdma_hw.c"
|
|
|
|
#include "channel_hw.c"
|
|
|
|
#include "debug_hw.c"
|
|
|
|
#include "intr_hw.c"
|
|
|
|
#include "syncpt_hw.c"
|
2013-03-22 21:34:01 +07:00
|
|
|
|
2013-10-09 15:32:54 +07:00
|
|
|
#include "../dev.h"
|
2013-03-22 21:34:01 +07:00
|
|
|
|
|
|
|
int host1x01_init(struct host1x *host)
|
|
|
|
{
|
2013-03-22 21:34:03 +07:00
|
|
|
host->channel_op = &host1x_channel_ops;
|
|
|
|
host->cdma_op = &host1x_cdma_ops;
|
|
|
|
host->cdma_pb_op = &host1x_pushbuffer_ops;
|
2013-03-22 21:34:01 +07:00
|
|
|
host->syncpt_op = &host1x_syncpt_ops;
|
2013-03-22 21:34:02 +07:00
|
|
|
host->intr_op = &host1x_intr_ops;
|
2013-03-22 21:34:04 +07:00
|
|
|
host->debug_op = &host1x_debug_ops;
|
2013-03-22 21:34:01 +07:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|