S32K3XX EMAC MCAST support

Fix compile warning when ioctl is not enabled
This commit is contained in:
Peter van der Perk 2023-04-11 11:10:51 +02:00 committed by Alan Carvalho de Assis
parent 24f4216066
commit 0cadb0cf83
1 changed files with 7 additions and 5 deletions

View File

@ -301,7 +301,9 @@
# define BOARD_PHY_100BASET(s) 1 /* PHY only supports 100BASE-T1 */ # define BOARD_PHY_100BASET(s) 1 /* PHY only supports 100BASE-T1 */
# define BOARD_PHY_ISDUPLEX(s) 1 /* PHY only supports fullduplex */ # define BOARD_PHY_ISDUPLEX(s) 1 /* PHY only supports fullduplex */
# define CLAUSE45 1 # ifdef CONFIG_NETDEV_IOCTL
# define CLAUSE45 1
# endif
# define MMD1 1 # define MMD1 1
# define MMD1_PMA_STATUS1 1 # define MMD1_PMA_STATUS1 1
# define MMD1_PS1_RECEIVE_LINK_STATUS (1 << 2) # define MMD1_PS1_RECEIVE_LINK_STATUS (1 << 2)
@ -2276,12 +2278,12 @@ static int s32k3xx_addmac(struct net_driver_s *dev, const uint8_t *mac)
if (hashindex > 31) if (hashindex > 31)
{ {
registeraddress = S32K3XX_ENET_GAUR; registeraddress = S32K3XX_EMAC_MAC_HASH_TABLE_REG1;
hashindex -= 32; hashindex -= 32;
} }
else else
{ {
registeraddress = S32K3XX_ENET_GALR; registeraddress = S32K3XX_EMAC_MAC_HASH_TABLE_REG0;
} }
temp = getreg32(registeraddress); temp = getreg32(registeraddress);
@ -2324,12 +2326,12 @@ static int s32k3xx_rmmac(struct net_driver_s *dev, const uint8_t *mac)
if (hashindex > 31) if (hashindex > 31)
{ {
registeraddress = S32K3XX_ENET_GAUR; registeraddress = S32K3XX_EMAC_MAC_HASH_TABLE_REG1;
hashindex -= 32; hashindex -= 32;
} }
else else
{ {
registeraddress = S32K3XX_ENET_GALR; registeraddress = S32K3XX_EMAC_MAC_HASH_TABLE_REG0;
} }
temp = getreg32(registeraddress); temp = getreg32(registeraddress);