net/ark: update packet director initial state
Fixes: b33ccdb17f
("net/ark: provide API for hardware modules MPU RQP and pktdir")
Cc: stable@dpdk.org
Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
This commit is contained in:
parent
6545d6c52b
commit
3b4f34f6b6
@ -321,6 +321,7 @@ eth_ark_dev_init(struct rte_eth_dev *dev)
|
||||
ark->rqpacing =
|
||||
(struct ark_rqpace_t *)(ark->bar0 + ARK_RCPACING_BASE);
|
||||
ark->started = 0;
|
||||
ark->pkt_dir_v = ARK_PKT_DIR_INIT_VAL;
|
||||
|
||||
ARK_PMD_LOG(INFO, "Sys Ctrl Const = 0x%x HW Commit_ID: %08x\n",
|
||||
ark->sysctrl.t32[4],
|
||||
|
@ -22,7 +22,7 @@ ark_pktdir_init(void *base)
|
||||
return inst;
|
||||
}
|
||||
inst->regs = (struct ark_pkt_dir_regs *)base;
|
||||
inst->regs->ctrl = 0x00110110; /* POR state */
|
||||
inst->regs->ctrl = ARK_PKT_DIR_INIT_VAL; /* POR state */
|
||||
return inst;
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define ARK_PKTDIR_BASE_ADR 0xa0000
|
||||
#define ARK_PKT_DIR_INIT_VAL 0x0110
|
||||
|
||||
typedef void *ark_pkt_dir_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user