blob: bdd30a026257d6694d3de2f0ba3b92f64e06b98d [file] [log] [blame]
Khoronzhuk, Ivanfa2105a2014-09-05 19:02:48 +03001/*
2 * Multicore Navigator driver for TI Keystone 2 devices.
3 *
4 * (C) Copyright 2012-2014
5 * Texas Instruments Incorporated, <www.ti.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10#include <asm/ti-common/keystone_nav.h>
11
12#ifdef CONFIG_KSNAV_PKTDMA_NETCP
13/* NETCP Pktdma */
14struct pktdma_cfg netcp_pktdma = {
15 .global = (void *)CONFIG_KSNAV_NETCP_PDMA_CTRL_BASE,
16 .tx_ch = (void *)CONFIG_KSNAV_NETCP_PDMA_TX_BASE,
17 .tx_ch_num = CONFIG_KSNAV_NETCP_PDMA_TX_CH_NUM,
18 .rx_ch = (void *)CONFIG_KSNAV_NETCP_PDMA_RX_BASE,
19 .rx_ch_num = CONFIG_KSNAV_NETCP_PDMA_RX_CH_NUM,
20 .tx_sched = (u32 *)CONFIG_KSNAV_NETCP_PDMA_SCHED_BASE,
21 .rx_flows = (void *)CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_BASE,
22 .rx_flow_num = CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_NUM,
23 .rx_free_q = CONFIG_KSNAV_NETCP_PDMA_RX_FREE_QUEUE,
24 .rx_rcv_q = CONFIG_KSNAV_NETCP_PDMA_RX_RCV_QUEUE,
25 .tx_snd_q = CONFIG_KSNAV_NETCP_PDMA_TX_SND_QUEUE,
26};
27#endif