Commit 9018cc2ba39d079625c6856347c787bb8642c270
1 parent
4a5895bb20
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
5 other branches
MLK-19625 mx6ulz_evk: Disable the FEC driver and support USB2NET dongle
Since the mx6ulz don't have FEC, it needs to use USB2NET dongle to connect network. We decouple the CONFIG_FEC_MXC with CONFIG_CMD_NET. For 6ull, all defconfigs need to enable the CONFIG_FEC_MXC explicitly. Another change is adding ${usb_net_cmd} environment for usb start command in netboot scripts on 6ulz. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Showing 15 changed files with 18 additions and 4 deletions Side-by-side Diff
- board/freescale/mx6ullevk/mx6ullevk.c
- configs/mx6ull_14x14_evk_defconfig
- configs/mx6ull_14x14_evk_emmc_defconfig
- configs/mx6ull_14x14_evk_nand_defconfig
- configs/mx6ull_14x14_evk_optee_defconfig
- configs/mx6ull_14x14_evk_plugin_defconfig
- configs/mx6ull_14x14_evk_qspi1_defconfig
- configs/mx6ull_9x9_evk_defconfig
- configs/mx6ull_9x9_evk_plugin_defconfig
- configs/mx6ull_9x9_evk_qspi1_defconfig
- configs/mx6ulz_14x14_evk_defconfig
- configs/mx6ulz_14x14_evk_emmc_defconfig
- configs/mx6ulz_14x14_evk_nand_defconfig
- configs/mx6ulz_14x14_evk_qspi1_defconfig
- include/configs/mx6ullevk.h
board/freescale/mx6ullevk/mx6ullevk.c
... | ... | @@ -502,8 +502,10 @@ |
502 | 502 | else |
503 | 503 | env_set("board_rev", "14X14"); |
504 | 504 | |
505 | - if (is_cpu_type(MXC_CPU_MX6ULZ)) | |
505 | + if (is_cpu_type(MXC_CPU_MX6ULZ)) { | |
506 | 506 | env_set("fdt_file", "imx6ulz-14x14-evk.dtb"); |
507 | + env_set("usb_net_cmd", "usb start"); | |
508 | + } | |
507 | 509 | #endif |
508 | 510 | |
509 | 511 | #ifdef CONFIG_ENV_IS_IN_MMC |
configs/mx6ull_14x14_evk_defconfig
configs/mx6ull_14x14_evk_emmc_defconfig
configs/mx6ull_14x14_evk_nand_defconfig
configs/mx6ull_14x14_evk_optee_defconfig
configs/mx6ull_14x14_evk_plugin_defconfig
configs/mx6ull_14x14_evk_qspi1_defconfig
configs/mx6ull_9x9_evk_defconfig
configs/mx6ull_9x9_evk_plugin_defconfig
configs/mx6ull_9x9_evk_qspi1_defconfig
configs/mx6ulz_14x14_evk_defconfig
configs/mx6ulz_14x14_evk_emmc_defconfig
configs/mx6ulz_14x14_evk_nand_defconfig
configs/mx6ulz_14x14_evk_qspi1_defconfig
include/configs/mx6ullevk.h
... | ... | @@ -168,6 +168,7 @@ |
168 | 168 | "root=/dev/nfs " \ |
169 | 169 | "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ |
170 | 170 | "netboot=echo Booting from net ...; " \ |
171 | + "${usb_net_cmd}; " \ | |
171 | 172 | "run netargs; " \ |
172 | 173 | "if test ${ip_dyn} = yes; then " \ |
173 | 174 | "setenv get_cmd dhcp; " \ |
... | ... | @@ -298,9 +299,7 @@ |
298 | 299 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
299 | 300 | #endif |
300 | 301 | |
301 | -#ifdef CONFIG_CMD_NET | |
302 | -#define CONFIG_CMD_MII | |
303 | -#define CONFIG_FEC_MXC | |
302 | +#ifdef CONFIG_FEC_MXC | |
304 | 303 | #define CONFIG_MII |
305 | 304 | #define CONFIG_FEC_ENET_DEV 1 |
306 | 305 |