Message ID | 20200121113200.24259-5-Mark-MC.Lee@mediatek.com |
---|---|
State | Accepted |
Commit | a536de2b20d5344f869d43810ec6dafe3db0b7b9 |
Headers | show |
Series | Add ethernet support for MT7622 | expand |
On Tue, Jan 21, 2020 at 07:32:00PM +0800, MarkLee wrote: > This patch enable mt7622 ethernet support in its defconfig > > Signed-off-by: MarkLee <Mark-MC.Lee at mediatek.com> > --- > configs/mt7622_rfb_defconfig | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_defconfig > index e1917e70e7..806087a3d6 100644 > --- a/configs/mt7622_rfb_defconfig > +++ b/configs/mt7622_rfb_defconfig > @@ -34,6 +34,10 @@ CONFIG_SPI_FLASH_SPANSION=y > CONFIG_SPI_FLASH_STMICRO=y > CONFIG_SPI_FLASH_WINBOND=y > CONFIG_DM_ETH=y > +CONFIG_PHY_FIXED=y > +CONFIG_MEDIATEK_ETH=y > +CONFIG_NET_RANDOM_ETHADDR=y > +CONFIG_CMD_PING=y > CONFIG_PINCTRL=y > CONFIG_PINCONF=y > CONFIG_PINCTRL_MT7622=y This leads to warnings in the ethernet driver: drivers/net/mtk_eth.c: In function 'mtk_eth_fifo_init': drivers/net/mtk_eth.c:856:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] flush_dcache_range((u32)pkt_base, (u32)(pkt_base + TOTAL_PKT_BUF_SIZE)); ^ drivers/net/mtk_eth.c:856:36: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] ^ drivers/net/mtk_eth.c: In function 'mtk_eth_send': drivers/net/mtk_eth.c:968:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] flush_dcache_range((u32)pkt_base, (u32)pkt_base + drivers/net/mtk_eth.c:968:36: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] drivers/net/mtk_eth.c: In function 'mtk_eth_recv': drivers/net/mtk_eth.c:994:26: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] invalidate_dcache_range((u32)pkt_base, (u32)pkt_base + ^ drivers/net/mtk_eth.c:994:41: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] ^ drivers/net/mtk_eth.c: In function 'mtk_eth_probe': drivers/net/mtk_eth.c:1026:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] priv->fe_base = (void *)iobase; ^ drivers/net/mtk_eth.c:1029:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] priv->gmac_base = (void *)(iobase + GMAC_BASE);
diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_defconfig index e1917e70e7..806087a3d6 100644 --- a/configs/mt7622_rfb_defconfig +++ b/configs/mt7622_rfb_defconfig @@ -34,6 +34,10 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y +CONFIG_PHY_FIXED=y +CONFIG_MEDIATEK_ETH=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_CMD_PING=y CONFIG_PINCTRL=y CONFIG_PINCONF=y CONFIG_PINCTRL_MT7622=y
This patch enable mt7622 ethernet support in its defconfig Signed-off-by: MarkLee <Mark-MC.Lee at mediatek.com> --- configs/mt7622_rfb_defconfig | 4 ++++ 1 file changed, 4 insertions(+)