diff options
Diffstat (limited to 'include')
25 files changed, 346 insertions, 58 deletions
| diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index a5736b7f0..2020e7f81 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -398,7 +398,6 @@  /* Network. */  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  /* NAND support */ diff --git a/include/configs/am335x_igep0033.h b/include/configs/am335x_igep0033.h index c00d54f7b..c17327fef 100644 --- a/include/configs/am335x_igep0033.h +++ b/include/configs/am335x_igep0033.h @@ -181,7 +181,6 @@  #define CONFIG_NET_RETRY_COUNT         10  #define CONFIG_NET_MULTI  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  /* NAND support */ diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index c773a1836..614857dd2 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -205,4 +205,30 @@  	"run usbboot;"  #endif + +/* CPSW Ethernet */ +#define CONFIG_CMD_NET +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_PING +#define CONFIG_CMD_MII +#define CONFIG_DRIVER_TI_CPSW +#define CONFIG_MII +#define CONFIG_BOOTP_DEFAULT +#define CONFIG_BOOTP_DNS +#define CONFIG_BOOTP_DNS2 +#define CONFIG_BOOTP_SEND_HOSTNAME +#define CONFIG_BOOTP_GATEWAY +#define CONFIG_BOOTP_SUBNETMASK +#define CONFIG_NET_RETRY_COUNT		10 +#define CONFIG_NET_MULTI +#define CONFIG_PHY_GIGE +#define CONFIG_PHYLIB + +#define CONFIG_SPL_ENV_SUPPORT +#define CONFIG_SPL_NET_VCI_STRING	"AM43xx U-Boot SPL" + +#define CONFIG_SPL_ETH_SUPPORT +#define CONFIG_SPL_NET_SUPPORT +#define CONFIG_SYS_RX_ETH_BUFFER	64 +  #endif	/* __CONFIG_AM43XX_EVM_H */ diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h index b9aa03603..48c12ea88 100644 --- a/include/configs/at91sam9263ek.h +++ b/include/configs/at91sam9263ek.h @@ -103,6 +103,7 @@  #define CONFIG_CMD_PING		1  #define CONFIG_CMD_DHCP		1  #define CONFIG_CMD_NAND		1 +#define CONFIG_CMD_MMC  #define CONFIG_CMD_USB		1  /* SDRAM */ @@ -123,6 +124,18 @@  #define DATAFLASH_TCSS			(0x1a << 16)  #define DATAFLASH_TCHS			(0x1 << 24) +/* MMC */ +#ifdef CONFIG_CMD_MMC +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_GENERIC_ATMEL_MCI +#endif + +/* FAT */ +#ifdef CONFIG_CMD_FAT +#define CONFIG_DOS_PARTITION +#endif +  /* NOR flash, if populated */  #ifdef CONFIG_SYS_USE_NORFLASH  #define CONFIG_SYS_FLASH_CFI			1 diff --git a/include/configs/bur_am335x_common.h b/include/configs/bur_am335x_common.h index 1f57bd274..7bbe5964a 100644 --- a/include/configs/bur_am335x_common.h +++ b/include/configs/bur_am335x_common.h @@ -51,7 +51,6 @@  #define CONFIG_MII			/* Required in net/eth.c */  #define CONFIG_SPL_ETH_SUPPORT  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_NATSEMI  #define CONFIG_SPL_NET_SUPPORT  #define CONFIG_SPL_ENV_SUPPORT		/* used for a fetching MAC-Address */ diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h index 56e9a8e0e..26b615b8c 100644 --- a/include/configs/cm_t335.h +++ b/include/configs/cm_t335.h @@ -114,7 +114,6 @@  /* Network. */  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_ATHEROS  /* NAND support */ diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index c67cf60c0..291c538a3 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -62,7 +62,6 @@  #define CONFIG_MII			/* Required in net/eth.c */  #define CONFIG_PHY_GIGE			/* per-board part of CPSW */  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			2  /* SPI */  #undef	CONFIG_OMAP3_SPI diff --git a/include/configs/dxr2.h b/include/configs/dxr2.h index 1e42f5c23..75f7812e7 100644 --- a/include/configs/dxr2.h +++ b/include/configs/dxr2.h @@ -26,6 +26,7 @@  #define BOARD_DFU_BUTTON_GPIO	27  #define BOARD_DFU_BUTTON_LED	64 +#define GPIO_LAN9303_NRST	88	/* GPIO2_24 = gpio88 */  #undef CONFIG_DOS_PARTITION  #undef CONFIG_CMD_FAT @@ -49,7 +50,6 @@  #undef CONFIG_MII  #undef CONFIG_PHY_GIGE -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  #define CONFIG_FACTORYSET diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index 12d8141e2..d56d5b00c 100644 --- a/include/configs/omap3_igep00x0.h +++ b/include/configs/omap3_igep00x0.h @@ -37,6 +37,11 @@  #define CONFIG_SHOW_BOOT_PROGRESS  #endif +/* GPIO banks */ +#define CONFIG_OMAP3_GPIO_3		/* GPIO64 .. 95 is in GPIO bank 3 */ +#define CONFIG_OMAP3_GPIO_5		/* GPIO128..159 is in GPIO bank 5 */ +#define CONFIG_OMAP3_GPIO_6		/* GPIO160..191 is in GPIO bank 6 */ +  /* USB */  #define CONFIG_MUSB_UDC			1  #define CONFIG_USB_OMAP3		1 diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index 6f41ee771..9af3efd4b 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -297,7 +297,6 @@  #define CONFIG_NET_MULTI  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  #endif	/* ! __CONFIG_PCM051_H */ diff --git a/include/configs/pengwyn.h b/include/configs/pengwyn.h index 5a555567d..fc25966e0 100644 --- a/include/configs/pengwyn.h +++ b/include/configs/pengwyn.h @@ -196,7 +196,6 @@  /* Network */  #define CONFIG_CMD_MII  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR		1  #define CONFIG_PHY_RESET	1  #define CONFIG_PHY_NATSEMI diff --git a/include/configs/pxm2.h b/include/configs/pxm2.h index 7722f7be2..6276d4339 100644 --- a/include/configs/pxm2.h +++ b/include/configs/pxm2.h @@ -44,7 +44,6 @@  #undef CONFIG_SPL_NET_VCI_STRING  #undef CONFIG_SPL_ETH_SUPPORT -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_ATHEROS  #define CONFIG_FACTORYSET diff --git a/include/configs/rut.h b/include/configs/rut.h index d4519f946..6bddededa 100644 --- a/include/configs/rut.h +++ b/include/configs/rut.h @@ -41,7 +41,6 @@  #undef CONFIG_SPL_NET_VCI_STRING  #undef CONFIG_SPL_ETH_SUPPORT -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_NATSEMI  #define CONFIG_FACTORYSET diff --git a/include/configs/sama5d3_xplained.h b/include/configs/sama5d3_xplained.h new file mode 100644 index 000000000..91cc7d8e5 --- /dev/null +++ b/include/configs/sama5d3_xplained.h @@ -0,0 +1,203 @@ +/* + * Configuration settings for the SAMA5D3 Xplained board. + * + * Copyright (C) 2014 Atmel Corporation + *		      Bo Shen <voice.shen@atmel.com> + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#include <asm/hardware.h> + +#define CONFIG_SYS_TEXT_BASE		0x26f00000 + +/* ARM asynchronous clock */ +#define CONFIG_SYS_AT91_SLOW_CLOCK      32768 +#define CONFIG_SYS_AT91_MAIN_CLOCK      12000000 /* from 12 MHz crystal */ +#define CONFIG_SYS_HZ		        1000 + +#define CONFIG_AT91FAMILY +#define CONFIG_ARCH_CPU_INIT +#define CONFIG_SKIP_LOWLEVEL_INIT +#define CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_DISPLAY_CPUINFO + +#define CONFIG_CMD_BOOTZ +#define CONFIG_OF_LIBFDT		/* Device Tree support */ + +/* general purpose I/O */ +#define CONFIG_AT91_GPIO + +/* serial console */ +#define CONFIG_ATMEL_USART +#define CONFIG_USART_BASE		ATMEL_BASE_DBGU +#define CONFIG_USART_ID			ATMEL_ID_DBGU + +/* + * This needs to be defined for the OHCI code to work but it is defined as + * ATMEL_ID_UHPHS in the CPU specific header files. + */ +#define ATMEL_ID_UHP			ATMEL_ID_UHPHS + +/* + * Specify the clock enable bit in the PMC_SCER register. + */ +#define ATMEL_PMC_UHP			AT91SAM926x_PMC_UHP + +#define CONFIG_BOOTDELAY		3 + +/* + * BOOTP options + */ +#define CONFIG_BOOTP_BOOTFILESIZE +#define CONFIG_BOOTP_BOOTPATH +#define CONFIG_BOOTP_GATEWAY +#define CONFIG_BOOTP_HOSTNAME + +/* No NOR flash */ +#define CONFIG_SYS_NO_FLASH + +/* + * Command line configuration. + */ +#include <config_cmd_default.h> +#undef CONFIG_CMD_FPGA +#undef CONFIG_CMD_IMI +#undef CONFIG_CMD_LOADS +#define CONFIG_CMD_PING +#define CONFIG_CMD_DHCP + +/* SDRAM */ +#define CONFIG_NR_DRAM_BANKS		1 +#define CONFIG_SYS_SDRAM_BASE           ATMEL_BASE_DDRCS +#define CONFIG_SYS_SDRAM_SIZE		0x10000000 + +#define CONFIG_SYS_INIT_SP_ADDR \ +	(CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE) + +/* NAND flash */ +#define CONFIG_CMD_NAND + +#ifdef CONFIG_CMD_NAND +#define CONFIG_NAND_ATMEL +#define CONFIG_SYS_MAX_NAND_DEVICE	1 +#define CONFIG_SYS_NAND_BASE		ATMEL_BASE_CS3 +/* our ALE is AD21 */ +#define CONFIG_SYS_NAND_MASK_ALE	(1 << 21) +/* our CLE is AD22 */ +#define CONFIG_SYS_NAND_MASK_CLE	(1 << 22) +#define CONFIG_SYS_NAND_ONFI_DETECTION +/* PMECC & PMERRLOC */ +#define CONFIG_ATMEL_NAND_HWECC +#define CONFIG_ATMEL_NAND_HW_PMECC +#define CONFIG_PMECC_CAP		4 +#define CONFIG_PMECC_SECTOR_SIZE	512 +#define CONFIG_CMD_NAND_TRIMFFS +#define CONFIG_CMD_MTDPARTS + +#define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS +#define CONFIG_RBTREE +#define CONFIG_LZO +#define CONFIG_CMD_UBI +#define CONFIG_CMD_UBIFS +#endif + +/* Ethernet Hardware */ +#define CONFIG_MACB +#define CONFIG_RMII +#define CONFIG_NET_MULTI +#define CONFIG_NET_RETRY_COUNT		20 +#define CONFIG_MACB_SEARCH_PHY +#define CONFIG_RGMII +#define CONFIG_CMD_MII +#define CONFIG_PHYLIB + +/* MMC */ +#define CONFIG_CMD_MMC + +#ifdef CONFIG_CMD_MMC +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_GENERIC_ATMEL_MCI +#define CONFIG_ATMEL_MCI_8BIT +#endif + +/* USB */ +#define CONFIG_CMD_USB + +#ifdef CONFIG_CMD_USB +#define CONFIG_USB_ATMEL +#define CONFIG_USB_ATMEL_CLK_SEL_UPLL +#define CONFIG_USB_OHCI_NEW +#define CONFIG_SYS_USB_OHCI_CPU_INIT +#define CONFIG_SYS_USB_OHCI_REGS_BASE		ATMEL_BASE_OHCI +#define CONFIG_SYS_USB_OHCI_SLOT_NAME		"SAMA5D3 Xplained" +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	2 +#define CONFIG_DOS_PARTITION +#define CONFIG_USB_STORAGE +#endif + +#if defined(CONFIG_CMD_USB) || defined(CONFIG_CMD_MMC) +#define CONFIG_CMD_FAT +#define CONFIG_FAT_WRITE +#define CONFIG_CMD_EXT4 +#define CONFIG_CMD_EXT4_WRITE +#endif + +#define CONFIG_SYS_LOAD_ADDR			0x22000000 /* load address */ + +#if CONFIG_SYS_USE_NANDFLASH +/* bootstrap + u-boot + env in nandflash */ +#define CONFIG_ENV_IS_IN_NAND +#define CONFIG_ENV_OFFSET		0xc0000 +#define CONFIG_ENV_OFFSET_REDUND	0x100000 +#define CONFIG_ENV_SIZE			0x20000 +#define CONFIG_BOOTCOMMAND	"nand read 0x21000000 0x180000 0x80000;" \ +				"nand read 0x22000000 0x200000 0x600000;" \ +				"bootz 0x22000000 - 0x21000000" +#elif CONFIG_SYS_USE_MMC +/* bootstrap + u-boot + env in sd card */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_ENV_OFFSET	0x2000 +#define CONFIG_ENV_SIZE		0x1000 +#define CONFIG_BOOTCOMMAND	"fatload mmc 0:1 0x21000000 at91-sama5d3_xplained.dtb; " \ +				"fatload mmc 0:1 0x22000000 zImage; " \ +				"bootz 0x22000000 - 0x21000000" +#define CONFIG_SYS_MMC_ENV_DEV	0 +#else +#define CONFIG_ENV_IS_NOWHERE +#endif + +#ifdef CONFIG_SYS_USE_MMC +#define CONFIG_BOOTARGS							\ +	"console=ttyS0,115200 earlyprintk "				\ +	"root=/dev/mmcblk0p2 rw rootwait" +#else +#define CONFIG_BOOTARGS							\ +	"console=ttyS0,115200 earlyprintk "				\ +	"mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,"		\ +	"256K(env),256k(evn_redundent),256k(spare),"			\ +	"512k(dtb),6M(kernel)ro,-(rootfs) "				\ +	"rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs" +#endif + +#define CONFIG_BAUDRATE			115200 + +#define CONFIG_SYS_PROMPT		"U-Boot> " +#define CONFIG_SYS_CBSIZE		256 +#define CONFIG_SYS_MAXARGS		16 +#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \ +					sizeof(CONFIG_SYS_PROMPT) + 16) +#define CONFIG_SYS_LONGHELP +#define CONFIG_CMDLINE_EDITING +#define CONFIG_AUTO_COMPLETE +#define CONFIG_SYS_HUSH_PARSER + +/* Size of malloc() pool */ +#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024) + +#endif diff --git a/include/configs/sama5d3xek.h b/include/configs/sama5d3xek.h index c34feb508..516be85fe 100644 --- a/include/configs/sama5d3xek.h +++ b/include/configs/sama5d3xek.h @@ -258,6 +258,8 @@  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_BOARD_INIT +#define CONFIG_SYS_MONITOR_LEN		(512 << 10) +  #ifdef CONFIG_SYS_USE_MMC  #define CONFIG_SPL_LDSCRIPT		arch/arm/cpu/at91-common/u-boot-spl.lds  #define CONFIG_SPL_MMC_SUPPORT @@ -267,6 +269,27 @@  #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME	"u-boot.img"  #define CONFIG_SPL_FAT_SUPPORT  #define CONFIG_SPL_LIBDISK_SUPPORT + +#elif CONFIG_SYS_USE_NANDFLASH +#define CONFIG_SPL_NAND_SUPPORT +#define CONFIG_SPL_NAND_DRIVERS +#define CONFIG_SPL_NAND_BASE +#define CONFIG_SYS_NAND_U_BOOT_OFFS	0x40000 +#define CONFIG_SYS_NAND_5_ADDR_CYCLE +#define CONFIG_SYS_NAND_PAGE_SIZE	0x800 +#define CONFIG_SYS_NAND_PAGE_COUNT	64 +#define CONFIG_SYS_NAND_OOBSIZE		64 +#define CONFIG_SYS_NAND_BLOCK_SIZE	0x20000 +#define CONFIG_SYS_NAND_BAD_BLOCK_POS	0x0 + +#elif CONFIG_SYS_USE_SERIALFLASH +#define CONFIG_SPL_SPI_SUPPORT +#define CONFIG_SPL_SPI_FLASH_SUPPORT +#define CONFIG_SPL_SPI_LOAD +#define CONFIG_SPL_SPI_BUS		0 +#define CONFIG_SPL_SPI_CS		0 +#define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8400 +  #endif  #endif diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index e1a3bbc62..76dad4e88 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -66,27 +66,63 @@  #define BOOT_TARGETS_DHCP ""  #endif +#if defined(CONFIG_CMD_DHCP) && defined(CONFIG_CMD_PXE) +#define BOOTCMDS_PXE \ +	"bootcmd_pxe=" \ +		BOOTCMD_INIT_USB \ +		"dhcp; " \ +		"if pxe get; then " \ +			"pxe boot; " \ +		"fi\0" +#define BOOT_TARGETS_PXE "pxe" +#else +#define BOOTCMDS_PXE "" +#define BOOT_TARGETS_PXE "" +#endif +  #define BOOTCMDS_COMMON \  	"rootpart=1\0" \  	\ +	"do_script_boot="                                                 \ +		"load ${devtype} ${devnum}:${rootpart} "                  \ +			"${scriptaddr} ${prefix}${script}; "              \ +		"source ${scriptaddr}\0"                                  \ +	\  	"script_boot="                                                    \ -		"if load ${devtype} ${devnum}:${rootpart} "               \ -				"${scriptaddr} ${prefix}${script}; then " \ -			"echo ${script} found! Executing ...;"            \ -			"source ${scriptaddr};"                           \ -		"fi;\0"                                                   \ +		"for script in ${boot_scripts}; do "                      \ +			"if test -e ${devtype} ${devnum}:${rootpart} "    \ +					"${prefix}${script}; then "       \ +				"echo Found U-Boot script "               \ +					"${prefix}${script}; "            \ +				"run do_script_boot; "                    \ +				"echo SCRIPT FAILED: continuing...; "     \ +			"fi; "                                            \ +		"done\0"                                                  \ +	\ +	"do_sysboot_boot="                                                \ +		"sysboot ${devtype} ${devnum}:${rootpart} any "           \ +			"${scriptaddr} ${prefix}extlinux.conf\0"          \ +	\ +	"sysboot_boot="                                                   \ +		"if test -e ${devtype} ${devnum}:${rootpart} "            \ +				"${prefix}extlinux.conf; then "           \ +			"echo Found extlinux config "                     \ +				"${prefix}extlinux.conf; "                \ +			"run do_sysboot_boot; "                           \ +			"echo SCRIPT FAILED: continuing...; "             \ +		"fi\0"                                                    \  	\  	"scan_boot="                                                      \  		"echo Scanning ${devtype} ${devnum}...; "                 \  		"for prefix in ${boot_prefixes}; do "                     \ -			"for script in ${boot_scripts}; do "              \ -				"run script_boot; "                       \ -			"done; "                                          \ -		"done;\0"                                                 \ +			"run sysboot_boot; "                              \ +			"run script_boot; "                               \ +		"done\0"                                                  \  	\  	"boot_targets=" \  		BOOT_TARGETS_MMC " " \  		BOOT_TARGETS_USB " " \ +		BOOT_TARGETS_PXE " " \  		BOOT_TARGETS_DHCP " " \  		"\0" \  	\ @@ -96,7 +132,8 @@  	\  	BOOTCMDS_MMC \  	BOOTCMDS_USB \ -	BOOTCMDS_DHCP +	BOOTCMDS_DHCP \ +	BOOTCMDS_PXE  #define CONFIG_BOOTCOMMAND \  	"set usb_need_init; " \ diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index 9247aefdb..ae786cfd7 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -29,7 +29,6 @@  #define CONFIG_DISPLAY_BOARDINFO  #define CONFIG_CMDLINE_TAG		/* enable passing of ATAGs */ -#define CONFIG_OF_LIBFDT		/* enable passing of devicetree */  /* Environment */  #define CONFIG_ENV_VARS_UBOOT_CONFIG @@ -69,33 +68,20 @@  #undef CONFIG_CMD_NET		/* network support */  /* turn on command-line edit/hist/auto */ -#define CONFIG_CMDLINE_EDITING  #define CONFIG_COMMAND_HISTORY -#define CONFIG_AUTO_COMPLETE  /* turn on commonly used storage-related commands */ - -#define CONFIG_DOS_PARTITION -#define CONFIG_EFI_PARTITION  #define CONFIG_PARTITION_UUIDS -#define CONFIG_FS_EXT4 -#define CONFIG_FS_FAT -#define CONFIG_CMD_EXT2 -#define CONFIG_CMD_FAT -#define CONFIG_CMD_FS_GENERIC  #define CONFIG_CMD_PART  #define CONFIG_SYS_NO_FLASH  #define CONFIG_CONSOLE_MUX  #define CONFIG_SYS_CONSOLE_IS_IN_ENV -#define CONFIG_BOOTDELAY	2		/* -1 to disable auto boot */  /*   * Miscellaneous configurable options   */ -#define CONFIG_SYS_LONGHELP		/* undef to save memory */ -#define CONFIG_SYS_HUSH_PARSER		/* use "hush" command parser */  #define CONFIG_SYS_PROMPT		V_PROMPT  /*   * Increasing the size of the IO buffer as default nfsargs size is more @@ -133,8 +119,6 @@  #define CONFIG_TEGRA_GPIO  #define CONFIG_CMD_GPIO  #define CONFIG_CMD_ENTERRCM -#define CONFIG_CMD_BOOTZ -#define CONFIG_SUPPORT_RAW_INITRD  /* Defines for SPL */  #define CONFIG_SPL @@ -161,4 +145,8 @@  #define CONFIG_BOUNCE_BUFFER  #define CONFIG_CRC32_VERIFY +#ifndef CONFIG_SPL_BUILD +#include <config_distro_defaults.h> +#endif +  #endif /* _TEGRA_COMMON_H_ */ diff --git a/include/configs/tegra114-common.h b/include/configs/tegra114-common.h index a4e8a5f5e..555c237cb 100644 --- a/include/configs/tegra114-common.h +++ b/include/configs/tegra114-common.h @@ -26,11 +26,6 @@   */  #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */ -/* - * High Level Configuration Options - */ -#define CONFIG_TEGRA114			/* in a NVidia Tegra114 core */ -  /* Environment information, boards can override if required */  #define CONFIG_LOADADDR		0x80408000	/* def. location for kernel */ @@ -51,6 +46,9 @@   * scriptaddr can be pretty much anywhere that doesn't conflict with something   *   else. Put it above BOOTMAPSZ to eliminate conflicts.   * + * pxefile_addr_r can be pretty much anywhere that doesn't conflict with + *   something else. Put it above BOOTMAPSZ to eliminate conflicts. + *   * kernel_addr_r must be within the first 128M of RAM in order for the   *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will   *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r @@ -68,6 +66,7 @@   */  #define MEM_LAYOUT_ENV_SETTINGS \  	"scriptaddr=0x90000000\0" \ +	"pxefile_addr_r=0x90100000\0" \  	"kernel_addr_r=0x81000000\0" \  	"fdt_addr_r=0x82000000\0" \  	"ramdisk_addr_r=0x82100000\0" @@ -83,5 +82,6 @@  /* For USB EHCI controller */  #define CONFIG_EHCI_IS_TDI  #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10 +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1  #endif /* _TEGRA114_COMMON_H_ */ diff --git a/include/configs/tegra124-common.h b/include/configs/tegra124-common.h index 0a4541bd2..61e502657 100644 --- a/include/configs/tegra124-common.h +++ b/include/configs/tegra124-common.h @@ -18,11 +18,6 @@   */  #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */ -/* - * High Level Configuration Options - */ -#define CONFIG_TEGRA124			/* is an NVIDIA Tegra124 core */ -  /* Environment information, boards can override if required */  #define CONFIG_LOADADDR		0x80408000	/* def. location for kernel */ @@ -79,5 +74,6 @@  /* For USB EHCI controller */  #define CONFIG_EHCI_IS_TDI  #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10 +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1  #endif /* _TEGRA124_COMMON_H_ */ diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h index b009a316b..21bf97717 100644 --- a/include/configs/tegra20-common.h +++ b/include/configs/tegra20-common.h @@ -24,11 +24,6 @@   */  #define V_NS16550_CLK		216000000	/* 216MHz (pllp_out0) */ -/* - * High Level Configuration Options - */ -#define CONFIG_TEGRA20				/* in a NVidia Tegra20 core */ -  /* Environment information, boards can override if required */  #define CONFIG_LOADADDR		0x00408000	/* def. location for kernel */ @@ -49,6 +44,9 @@   * scriptaddr can be pretty much anywhere that doesn't conflict with something   *   else. Put it above BOOTMAPSZ to eliminate conflicts.   * + * pxefile_addr_r can be pretty much anywhere that doesn't conflict with + *   something else. Put it above BOOTMAPSZ to eliminate conflicts. + *   * kernel_addr_r must be within the first 128M of RAM in order for the   *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will   *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r @@ -66,6 +64,7 @@   */  #define MEM_LAYOUT_ENV_SETTINGS \  	"scriptaddr=0x10000000\0" \ +	"pxefile_addr_r=0x10100000\0" \  	"kernel_addr_r=0x01000000\0" \  	"fdt_addr_r=0x02000000\0" \  	"ramdisk_addr_r=0x02100000\0" @@ -96,6 +95,7 @@   */  #define CONFIG_USB_EHCI_TXFIFO_THRESH	10  #define CONFIG_EHCI_IS_TDI +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1  /* Total I2C ports on Tegra20 */  #define TEGRA_I2C_NUM_CONTROLLERS	4 diff --git a/include/configs/tegra30-common.h b/include/configs/tegra30-common.h index b5550d7d0..443c84224 100644 --- a/include/configs/tegra30-common.h +++ b/include/configs/tegra30-common.h @@ -23,11 +23,6 @@   */  #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */ -/* - * High Level Configuration Options - */ -#define CONFIG_TEGRA30			/* in a NVidia Tegra30 core */ -  /* Environment information, boards can override if required */  #define CONFIG_LOADADDR		0x80408000	/* def. location for kernel */ @@ -48,6 +43,9 @@   * scriptaddr can be pretty much anywhere that doesn't conflict with something   *   else. Put it above BOOTMAPSZ to eliminate conflicts.   * + * pxefile_addr_r can be pretty much anywhere that doesn't conflict with + *   something else. Put it above BOOTMAPSZ to eliminate conflicts. + *   * kernel_addr_r must be within the first 128M of RAM in order for the   *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will   *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r @@ -65,6 +63,7 @@   */  #define MEM_LAYOUT_ENV_SETTINGS \  	"scriptaddr=0x90000000\0" \ +	"pxefile_addr_r=0x90100000\0" \  	"kernel_addr_r=0x81000000\0" \  	"fdt_addr_r=0x82000000\0" \  	"ramdisk_addr_r=0x82100000\0" @@ -80,5 +79,6 @@  /* For USB EHCI controller */  #define CONFIG_EHCI_IS_TDI  #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10 +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1  #endif /* _TEGRA30_COMMON_H_ */ diff --git a/include/configs/ti814x_evm.h b/include/configs/ti814x_evm.h index ba16b1c14..b51400c46 100644 --- a/include/configs/ti814x_evm.h +++ b/include/configs/ti814x_evm.h @@ -233,7 +233,6 @@  #define CONFIG_NET_MULTI  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_ET1011C  #define CONFIG_PHY_ET1011C_TX_CLK_FIX diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h index 7e9ca01cd..50c32037f 100644 --- a/include/configs/ti_am335x_common.h +++ b/include/configs/ti_am335x_common.h @@ -30,6 +30,7 @@  /* Network defines. */  #define CONFIG_CMD_NET			/* 'bootp' and 'tftp' */  #define CONFIG_CMD_DHCP +#define CONFIG_CMD_MII  #define CONFIG_BOOTP_DNS		/* Configurable parts of CMD_DHCP */  #define CONFIG_BOOTP_DNS2  #define CONFIG_BOOTP_SEND_HOSTNAME diff --git a/include/cpsw.h b/include/cpsw.h index 743cb96e7..a73843d2f 100644 --- a/include/cpsw.h +++ b/include/cpsw.h @@ -19,7 +19,7 @@  struct cpsw_slave_data {  	u32		slave_reg_ofs;  	u32		sliver_reg_ofs; -	int		phy_id; +	int		phy_addr;  	int		phy_if;  }; diff --git a/include/nand.h b/include/nand.h index 84116f493..fc735d1ec 100644 --- a/include/nand.h +++ b/include/nand.h @@ -21,10 +21,16 @@   * at the same time, so do it here.  When all drivers are   * converted, this will go away.   */ +#ifdef CONFIG_SPL_BUILD +#if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_FSL_IFC) +#define CONFIG_SYS_NAND_SELF_INIT +#endif +#else  #if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_ATMEL)\  	|| defined(CONFIG_NAND_FSL_IFC)  #define CONFIG_SYS_NAND_SELF_INIT  #endif +#endif  extern void nand_init(void); |