diff options
author | Purna Chandra Mandal <purna.mandal@microchip.com> | 2016-01-28 15:30:22 +0530 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-02-01 22:14:02 +0100 |
commit | 7d514a7407756d96996960c2ae539a4b464c65bc (patch) | |
tree | 78faf17ff508a5a805c440d1fd7e6ae195c04660 /include/configs/pic32mzdask.h | |
parent | 23e7578c9b17a5af8804ee2df8e52b9324651b6d (diff) | |
download | u-boot-7d514a7407756d96996960c2ae539a4b464c65bc.tar.gz u-boot-7d514a7407756d96996960c2ae539a4b464c65bc.tar.xz u-boot-7d514a7407756d96996960c2ae539a4b464c65bc.zip |
board: Enable ethernet, tftpboot support to pic32mzdask board.
This adds ethernet, TFTP support for PIC32MZ[DA] Starter Kit. Also
custom environment variables/scripts are added to help boot from network.
Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Diffstat (limited to 'include/configs/pic32mzdask.h')
-rw-r--r-- | include/configs/pic32mzdask.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/configs/pic32mzdask.h b/include/configs/pic32mzdask.h index b25803897e..3ea11946b8 100644 --- a/include/configs/pic32mzdask.h +++ b/include/configs/pic32mzdask.h @@ -73,6 +73,25 @@ (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) #define CONFIG_CMDLINE_EDITING 1 +/*----------------------------------------------------------------------- + * Networking Configuration + */ +#define CONFIG_MII +#define CONFIG_PHY_SMSC +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#define CONFIG_NET_RETRY_COUNT 20 +#define CONFIG_ARP_TIMEOUT 500 /* millisec */ + +#define CONFIG_CMD_MII + +/* + * BOOTP options + */ +#define CONFIG_BOOTP_BOOTFILESIZE +#define CONFIG_BOOTP_BOOTPATH +#define CONFIG_BOOTP_GATEWAY +#define CONFIG_BOOTP_HOSTNAME + /* * Handover flattened device tree (dtb file) to Linux kernel */ @@ -133,7 +152,8 @@ "fi; \0" #define BOOT_TARGET_DEVICES(func) \ - func(MMC, mmc, 0) + func(MMC, mmc, 0) \ + func(DHCP, dhcp, na) #include <config_distro_bootcmd.h> |