ethernet: Enables multicast reception for dw driver
Jira: ZEP-471 Change-Id: Id6a3ecbe31c055ab006abe475650c9871460f671 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
This commit is contained in:
parent
c8fbb40fd7
commit
77e09abdda
2 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,9 @@ static int eth_initialize(struct device *port)
|
|||
|
||||
net_set_mac(mac_addr.bytes, sizeof(mac_addr.bytes));
|
||||
|
||||
/* Initialize the frame filter enabling unicast messages */
|
||||
eth_write(base_addr, REG_ADDR_MAC_FRAME_FILTER, MAC_FILTER_4_PM);
|
||||
|
||||
/* Initialize transmit descriptor. */
|
||||
context->tx_desc.tdes0 = 0;
|
||||
context->tx_desc.tdes1 = 0;
|
||||
|
|
|
@ -176,6 +176,7 @@ struct eth_runtime {
|
|||
#define MAC_CONF_11_DUPLEX BIT(11)
|
||||
#define MAC_CONF_3_TX_EN BIT(3)
|
||||
#define MAC_CONF_2_RX_EN BIT(2)
|
||||
#define MAC_FILTER_4_PM BIT(4)
|
||||
|
||||
#define STATUS_NORMAL_INT BIT(16)
|
||||
#define STATUS_RX_INT BIT(6)
|
||||
|
@ -189,6 +190,7 @@ struct eth_runtime {
|
|||
#define INT_ENABLE_RX BIT(6)
|
||||
|
||||
#define REG_ADDR_MAC_CONF 0x0000
|
||||
#define REG_ADDR_MAC_FRAME_FILTER 0x0004
|
||||
#define REG_ADDR_MACADDR_HI 0x0040
|
||||
#define REG_ADDR_MACADDR_LO 0x0044
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue