From 2145cd73f60f5877451aa52d4885f378a1d1bee7 Mon Sep 17 00:00:00 2001 From: chunyexixiaoyu <834670833@qq.com> Date: Wed, 30 Mar 2022 17:23:36 +0800 Subject: [PATCH] Ubiquitous/RT_Thread/:add ethernet feature configuration. --- .../aiit_board/xidatong/board/Kconfig | 33 +++++++++++++++++++ .../aiit_board/xidatong/board/SConscript | 3 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/RT_Thread/aiit_board/xidatong/board/Kconfig b/Ubiquitous/RT_Thread/aiit_board/xidatong/board/Kconfig index 3c2355e2b..ce132f12a 100644 --- a/Ubiquitous/RT_Thread/aiit_board/xidatong/board/Kconfig +++ b/Ubiquitous/RT_Thread/aiit_board/xidatong/board/Kconfig @@ -210,6 +210,39 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SDRAM bool "Enable SDRAM" default n + + menuconfig BSP_USING_ETH + bool "Enable Ethernet" + select RT_USING_NETDEV + default n + if BSP_USING_ETH + config BSP_USING_PHY + select RT_USING_PHY + bool "Enable ethernet phy" + default y + + if BSP_USING_PHY + config PHY_DEVICE_ADDRESS + int "Specify address of phy device" + default 0 + + config PHY_USING_8720A + bool "xidatong use LAN8720A phy" + default y + + if PHY_USING_8720A + config PHY_RESET_PORT + int "indicate port of reset" + default 1 + + config PHY_RESET_PIN + int "indicate pin of reset" + default 3 + endif + + endif + endif + endmenu diff --git a/Ubiquitous/RT_Thread/aiit_board/xidatong/board/SConscript b/Ubiquitous/RT_Thread/aiit_board/xidatong/board/SConscript index 82349a3db..5e0d423ee 100644 --- a/Ubiquitous/RT_Thread/aiit_board/xidatong/board/SConscript +++ b/Ubiquitous/RT_Thread/aiit_board/xidatong/board/SConscript @@ -11,7 +11,8 @@ MCUX_Config/pin_mux.c CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports'] CPPDEFINES = ['CPU_MIMXRT1052CVL5B', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1'] - +if GetDepend('BSP_USING_PHY') and GetDepend('PHY_USING_8720A'): + src += ['./ports/LAN8720A.c'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) Return('group')