[U-boot,4/4] configs: mediatek: enable mt7622 ethernet support

Tom Rini trini at konsulko.com
Mon Jan 27 19:49:06 CET 2020


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);

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200127/9bf5dc26/attachment.sig>


More information about the U-Boot mailing list