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