arch: imx6: Apply the imxrt_enet.c changes to imx_enet.c (1/4)
Summary:
- This commit applies the following imxrt_enet.c changes to imx_enet.c
commit 12a515ebb6
Author: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
Date: Thu Feb 4 11:27:09 2021 +0900
arch: imxrt: Introduce CONFIG_NET_GUARDSIZE to imxrt_enet.c
Impact:
- imx_enet.c
Testing:
- Tested with qemu-6.2 (defconfig will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
5d12e350da
commit
4e4ebba306
@ -256,7 +256,8 @@
|
||||
|
||||
#define BUF ((struct eth_hdr_s *)priv->dev.d_buf)
|
||||
|
||||
#define IMX_BUF_SIZE ENET_ALIGN_UP(CONFIG_NET_ETH_PKTSIZE)
|
||||
#define IMX_BUF_SIZE ENET_ALIGN_UP(CONFIG_NET_ETH_PKTSIZE + \
|
||||
CONFIG_NET_GUARDSIZE)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
@ -2244,11 +2245,13 @@ static inline int imx_initphy(struct imx_driver_s *priv, bool renogphy)
|
||||
|
||||
#ifdef CONFIG_IMX_ENETUSEMII
|
||||
rcr = ENET_RCR_CRCFWD |
|
||||
CONFIG_NET_ETH_PKTSIZE << ENET_RCR_MAX_FL_SHIFT |
|
||||
(CONFIG_NET_ETH_PKTSIZE + CONFIG_NET_GUARDSIZE)
|
||||
<< ENET_RCR_MAX_FL_SHIFT |
|
||||
ENET_RCR_MII_MODE;
|
||||
#else
|
||||
rcr = ENET_RCR_RMII_MODE | ENET_RCR_CRCFWD |
|
||||
CONFIG_NET_ETH_PKTSIZE << ENET_RCR_MAX_FL_SHIFT |
|
||||
(CONFIG_NET_ETH_PKTSIZE + CONFIG_NET_GUARDSIZE)
|
||||
<< ENET_RCR_MAX_FL_SHIFT |
|
||||
ENET_RCR_MII_MODE;
|
||||
#endif
|
||||
tcr = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user