1 /* 2 * Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its 3 * affiliates 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 #ifndef R_ETHER_PHY_CFG_H_ 8 #define R_ETHER_PHY_CFG_H_ 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT DT_PROP(DT_NODELABEL(eth), phy_type) 14 #define BOARD_PHY_REF_CLK (0) 15 16 #define ETHER_PHY_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE) 17 #ifndef ETHER_PHY_CFG_TARGET_KSZ8091RNB_ENABLE 18 #define ETHER_PHY_CFG_TARGET_KSZ8091RNB_ENABLE (0) 19 #endif 20 #ifndef ETHER_PHY_CFG_TARGET_KSZ8041_ENABLE 21 #define ETHER_PHY_CFG_TARGET_KSZ8041_ENABLE (0) 22 #endif 23 #ifndef ETHER_PHY_CFG_TARGET_DP83620_ENABLE 24 #define ETHER_PHY_CFG_TARGET_DP83620_ENABLE (0) 25 #endif 26 #ifndef ETHER_PHY_CFG_TARGET_ICS1894_ENABLE 27 #define ETHER_PHY_CFG_TARGET_ICS1894_ENABLE (0) 28 #endif 29 #ifndef ETHER_PHY_CFG_USE_CUSTOM_PHY_LSI_ENABLE 30 #define ETHER_PHY_CFG_USE_CUSTOM_PHY_LSI_ENABLE (1) 31 #endif 32 #define ETHER_PHY_CFG_USE_REF_CLK (BOARD_PHY_REF_CLK) 33 #define ETHER_PHY_CFG_INIT_PHY_LSI_AUTOMATIC (0) 34 35 #ifdef __cplusplus 36 } 37 #endif 38 #endif /* R_ETHER_PHY_CFG_H_ */ 39