183d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 274cc8b09SKipisz, Steven /* 374cc8b09SKipisz, Steven * (C) Copyright 2014 474cc8b09SKipisz, Steven * Texas Instruments Incorporated. 574cc8b09SKipisz, Steven * Felipe Balbi <balbi@ti.com> 674cc8b09SKipisz, Steven * 774cc8b09SKipisz, Steven * Configuration settings for the TI Beagle x15 board. 874cc8b09SKipisz, Steven * See ti_omap5_common.h for omap5 common settings. 974cc8b09SKipisz, Steven */ 1074cc8b09SKipisz, Steven 1174cc8b09SKipisz, Steven #ifndef __CONFIG_AM57XX_EVM_H 1274cc8b09SKipisz, Steven #define __CONFIG_AM57XX_EVM_H 1374cc8b09SKipisz, Steven 147e0b87c9SSekhar Nori #include <environment/ti/dfu.h> 1557ba8d6dSSemen Protsenko #include <linux/sizes.h> 167e0b87c9SSekhar Nori 1774cc8b09SKipisz, Steven #define CONFIG_IODELAY_RECALIBRATION 1874cc8b09SKipisz, Steven 1957ba8d6dSSemen Protsenko /* MMC ENV related defines */ 2057ba8d6dSSemen Protsenko #define CONFIG_SYS_MMC_ENV_DEV 1 /* eMMC */ 2157ba8d6dSSemen Protsenko #define CONFIG_SYS_MMC_ENV_PART 0 2257ba8d6dSSemen Protsenko #define CONFIG_ENV_SIZE SZ_128K 2357ba8d6dSSemen Protsenko #define CONFIG_ENV_OFFSET 0x260000 2457ba8d6dSSemen Protsenko #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) 2557ba8d6dSSemen Protsenko #define CONFIG_SYS_REDUNDAND_ENVIRONMENT 2674cc8b09SKipisz, Steven 2774cc8b09SKipisz, Steven #define CONSOLEDEV "ttyO2" 2874cc8b09SKipisz, Steven #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */ 2974cc8b09SKipisz, Steven #define CONFIG_SYS_NS16550_COM2 UART2_BASE /* UART2 */ 3074cc8b09SKipisz, Steven #define CONFIG_SYS_NS16550_COM3 UART3_BASE /* UART3 */ 3174cc8b09SKipisz, Steven 32a1dc980dSSimon Glass #define CONFIG_ENV_EEPROM_IS_ON_I2C 33a1dc980dSSimon Glass #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */ 34a1dc980dSSimon Glass #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 35a1dc980dSSimon Glass 3674cc8b09SKipisz, Steven #define CONFIG_SYS_OMAP_ABE_SYSCK 3774cc8b09SKipisz, Steven 38*8502fe84SBin Liu #ifdef CONFIG_SPL_DFU 39*8502fe84SBin Liu #ifndef CONFIG_SPL_BUILD 407e0b87c9SSekhar Nori #define DFUARGS \ 417e0b87c9SSekhar Nori "dfu_bufsiz=0x10000\0" \ 427e0b87c9SSekhar Nori DFU_ALT_INFO_MMC \ 437e0b87c9SSekhar Nori DFU_ALT_INFO_EMMC \ 447e0b87c9SSekhar Nori DFU_ALT_INFO_RAM \ 45*8502fe84SBin Liu DFU_ALT_INFO_QSPI 46*8502fe84SBin Liu #else 47*8502fe84SBin Liu #undef CONFIG_CMD_BOOTD 48*8502fe84SBin Liu #define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000 49*8502fe84SBin Liu #define DFUARGS \ 50*8502fe84SBin Liu "dfu_bufsiz=0x10000\0" \ 51*8502fe84SBin Liu DFU_ALT_INFO_RAM 52*8502fe84SBin Liu #endif 53*8502fe84SBin Liu #endif 547e0b87c9SSekhar Nori 5574cc8b09SKipisz, Steven #include <configs/ti_omap5_common.h> 5674cc8b09SKipisz, Steven 5774cc8b09SKipisz, Steven /* Enhance our eMMC support / experience. */ 58b52ee279SSemen Protsenko #define CONFIG_HSMMC2_8BIT 5974cc8b09SKipisz, Steven 6074cc8b09SKipisz, Steven /* CPSW Ethernet */ 6174cc8b09SKipisz, Steven #define CONFIG_BOOTP_DNS2 6274cc8b09SKipisz, Steven #define CONFIG_BOOTP_SEND_HOSTNAME 6374cc8b09SKipisz, Steven #define CONFIG_NET_RETRY_COUNT 10 6474cc8b09SKipisz, Steven #define PHY_ANEG_TIMEOUT 8000 /* PHY needs longer aneg time at 1G */ 6574cc8b09SKipisz, Steven 6674cc8b09SKipisz, Steven #define CONFIG_SUPPORT_EMMC_BOOT 6774cc8b09SKipisz, Steven 6874cc8b09SKipisz, Steven /* USB xHCI HOST */ 6974cc8b09SKipisz, Steven #define CONFIG_USB_XHCI_OMAP 7074cc8b09SKipisz, Steven 7174cc8b09SKipisz, Steven #define CONFIG_OMAP_USB3PHY1_HOST 7274cc8b09SKipisz, Steven 7374cc8b09SKipisz, Steven /* SATA */ 7474cc8b09SKipisz, Steven #define CONFIG_SCSI_AHCI_PLAT 7574cc8b09SKipisz, Steven #define CONFIG_SYS_SCSI_MAX_SCSI_ID 1 7674cc8b09SKipisz, Steven #define CONFIG_SYS_SCSI_MAX_LUN 1 7774cc8b09SKipisz, Steven #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ 7874cc8b09SKipisz, Steven CONFIG_SYS_SCSI_MAX_LUN) 7974cc8b09SKipisz, Steven 8008887ed4SVignesh R /* 8108887ed4SVignesh R * Default to using SPI for environment, etc. 8208887ed4SVignesh R * 0x000000 - 0x040000 : QSPI.SPL (256KiB) 8308887ed4SVignesh R * 0x040000 - 0x140000 : QSPI.u-boot (1MiB) 8408887ed4SVignesh R * 0x140000 - 0x1C0000 : QSPI.u-boot-spl-os (512KiB) 8508887ed4SVignesh R * 0x1C0000 - 0x1D0000 : QSPI.u-boot-env (64KiB) 8608887ed4SVignesh R * 0x1D0000 - 0x1E0000 : QSPI.u-boot-env.backup1 (64KiB) 8708887ed4SVignesh R * 0x1E0000 - 0x9E0000 : QSPI.kernel (8MiB) 8808887ed4SVignesh R * 0x9E0000 - 0x2000000 : USERLAND 8908887ed4SVignesh R */ 9008887ed4SVignesh R #define CONFIG_SYS_SPI_KERNEL_OFFS 0x1E0000 9108887ed4SVignesh R #define CONFIG_SYS_SPI_ARGS_OFFS 0x140000 9208887ed4SVignesh R #define CONFIG_SYS_SPI_ARGS_SIZE 0x80000 9308887ed4SVignesh R 9408887ed4SVignesh R /* SPI SPL */ 9508887ed4SVignesh R #define CONFIG_TI_EDMA3 9608887ed4SVignesh R #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000 9708887ed4SVignesh R 9808887ed4SVignesh R /* SPI */ 9908887ed4SVignesh R #define CONFIG_TI_SPI_MMAP 10008887ed4SVignesh R #define CONFIG_QSPI_QUAD_SUPPORT 10108887ed4SVignesh R 10274cc8b09SKipisz, Steven #endif /* __CONFIG_AM57XX_EVM_H */ 103