boards: jcg-q20: fix mac address

This commit is contained in:
hanwckf
2022-01-16 17:14:11 +08:00
parent a8cecb5322
commit fdf5873dba

View File

@ -162,7 +162,7 @@ static const struct cc_t {
inline int
get_wired_mac_is_single(void)
{
#if defined (BOARD_N14U) || defined (BOARD_N11P) || defined (BOARD_MZ_R13) || defined (BOARD_MZ_R13P) || defined (BOARD_CR660x)
#if defined (BOARD_N14U) || defined (BOARD_N11P) || defined (BOARD_MZ_R13) || defined (BOARD_MZ_R13P) || defined (BOARD_CR660x) || defined (BOARD_Q20)
return 1;
#else
return 0;
@ -176,7 +176,7 @@ get_wired_mac_e2p_offset(int is_wan)
return 0x018E;
#elif defined (BOARD_MZ_R13) || defined (BOARD_MZ_R13P)
return 0xe000;
#elif defined (BOARD_CR660x)
#elif defined (BOARD_CR660x) || defined (BOARD_Q20)
return 0x3FFFA;
#else
return (is_wan) ? OFFSET_MAC_GMAC2 : OFFSET_MAC_GMAC0;