Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Host1x init for Tegra124 SoCs
0004  *
0005  * Copyright (c) 2013 NVIDIA Corporation.
0006  */
0007 
0008 /* include hw specification */
0009 #include "host1x04.h"
0010 #include "host1x04_hardware.h"
0011 
0012 /* include code */
0013 #define HOST1X_HW 4
0014 
0015 #include "cdma_hw.c"
0016 #include "channel_hw.c"
0017 #include "debug_hw.c"
0018 #include "intr_hw.c"
0019 #include "syncpt_hw.c"
0020 
0021 #include "../dev.h"
0022 
0023 int host1x04_init(struct host1x *host)
0024 {
0025     host->channel_op = &host1x_channel_ops;
0026     host->cdma_op = &host1x_cdma_ops;
0027     host->cdma_pb_op = &host1x_pushbuffer_ops;
0028     host->syncpt_op = &host1x_syncpt_ops;
0029     host->intr_op = &host1x_intr_ops;
0030     host->debug_op = &host1x_debug_ops;
0031 
0032     return 0;
0033 }