Lokesh Vutla | 3e716e2 | 2013-02-17 23:34:35 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2013 |
| 3 | * Texas Instruments Incorporated. |
| 4 | * Lokesh Vutla <lokeshvutla@ti.com> |
| 5 | * |
| 6 | * Configuration settings for the TI DRA7XX board. |
| 7 | * See omap5_common.h for omap5 common settings. |
| 8 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame^] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Lokesh Vutla | 3e716e2 | 2013-02-17 23:34:35 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __CONFIG_DRA7XX_EVM_H |
| 13 | #define __CONFIG_DRA7XX_EVM_H |
| 14 | |
Tom Rini | b3277f5 | 2013-08-09 11:22:18 -0400 | [diff] [blame] | 15 | #define CONFIG_DRA7XX |
Lokesh Vutla | 3e716e2 | 2013-02-17 23:34:35 +0000 | [diff] [blame] | 16 | |
Lokesh Vutla | f8c725e | 2013-08-23 17:27:04 +0530 | [diff] [blame] | 17 | /* MMC ENV related defines */ |
| 18 | #define CONFIG_ENV_IS_IN_MMC |
| 19 | #define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */ |
| 20 | #define CONFIG_ENV_OFFSET 0xE0000 |
| 21 | #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) |
| 22 | #define CONFIG_SYS_REDUNDAND_ENVIRONMENT |
| 23 | #define CONFIG_CMD_SAVEENV |
Lokesh Vutla | 3e716e2 | 2013-02-17 23:34:35 +0000 | [diff] [blame] | 24 | |
Tom Rini | b3277f5 | 2013-08-09 11:22:18 -0400 | [diff] [blame] | 25 | #define CONSOLEDEV "ttyO0" |
Sricharan R | 9cc5ba0 | 2013-05-30 03:19:33 +0000 | [diff] [blame] | 26 | #define CONFIG_CONS_INDEX 1 |
| 27 | #define CONFIG_SYS_NS16550_COM1 UART1_BASE |
| 28 | #define CONFIG_BAUDRATE 115200 |
Lokesh Vutla | 1652326 | 2013-05-30 03:19:38 +0000 | [diff] [blame] | 29 | |
| 30 | #define CONFIG_SYS_OMAP_ABE_SYSCK |
Dan Murphy | a6f9d15 | 2013-06-11 11:22:30 -0500 | [diff] [blame] | 31 | |
Tom Rini | b3277f5 | 2013-08-09 11:22:18 -0400 | [diff] [blame] | 32 | #include <configs/omap5_common.h> |
Dan Murphy | a6f9d15 | 2013-06-11 11:22:30 -0500 | [diff] [blame] | 33 | |
Mugunthan V N | 85ae8be | 2013-07-08 16:04:43 +0530 | [diff] [blame] | 34 | /* CPSW Ethernet */ |
Tom Rini | 243df4a | 2013-08-20 08:53:54 -0400 | [diff] [blame] | 35 | #define CONFIG_CMD_NET /* 'bootp' and 'tftp' */ |
Mugunthan V N | 85ae8be | 2013-07-08 16:04:43 +0530 | [diff] [blame] | 36 | #define CONFIG_CMD_DHCP |
Tom Rini | 243df4a | 2013-08-20 08:53:54 -0400 | [diff] [blame] | 37 | #define CONFIG_BOOTP_DNS /* Configurable parts of CMD_DHCP */ |
Mugunthan V N | 85ae8be | 2013-07-08 16:04:43 +0530 | [diff] [blame] | 38 | #define CONFIG_BOOTP_DNS2 |
| 39 | #define CONFIG_BOOTP_SEND_HOSTNAME |
| 40 | #define CONFIG_BOOTP_GATEWAY |
| 41 | #define CONFIG_BOOTP_SUBNETMASK |
Tom Rini | 243df4a | 2013-08-20 08:53:54 -0400 | [diff] [blame] | 42 | #define CONFIG_NET_RETRY_COUNT 10 |
| 43 | #define CONFIG_CMD_PING |
| 44 | #define CONFIG_CMD_MII |
| 45 | #define CONFIG_DRIVER_TI_CPSW /* Driver for IP block */ |
| 46 | #define CONFIG_MII /* Required in net/eth.c */ |
| 47 | #define CONFIG_PHY_GIGE /* per-board part of CPSW */ |
Mugunthan V N | 85ae8be | 2013-07-08 16:04:43 +0530 | [diff] [blame] | 48 | #define CONFIG_PHYLIB |
| 49 | #define CONFIG_PHY_ADDR 2 |
| 50 | |
Matt Porter | bb1a847 | 2013-10-07 15:53:03 +0530 | [diff] [blame] | 51 | /* SPI */ |
| 52 | #undef CONFIG_OMAP3_SPI |
| 53 | #define CONFIG_TI_QSPI |
| 54 | #define CONFIG_SPI_FLASH |
| 55 | #define CONFIG_SPI_FLASH_SPANSION |
| 56 | #define CONFIG_CMD_SF |
| 57 | #define CONFIG_CMD_SPI |
| 58 | #define CONFIG_TI_SPI_MMAP |
| 59 | #define CONFIG_SF_DEFAULT_SPEED 48000000 |
| 60 | #define CONFIG_DEFAULT_SPI_MODE SPI_MODE_3 |
| 61 | |
| 62 | /* SPI SPL */ |
| 63 | #define CONFIG_SPL_SPI_SUPPORT |
| 64 | #define CONFIG_SPL_SPI_LOAD |
| 65 | #define CONFIG_SPL_SPI_FLASH_SUPPORT |
| 66 | #define CONFIG_SPL_SPI_BUS 0 |
| 67 | #define CONFIG_SPL_SPI_CS 0 |
| 68 | #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000 |
| 69 | |
Lokesh Vutla | 3e716e2 | 2013-02-17 23:34:35 +0000 | [diff] [blame] | 70 | #endif /* __CONFIG_DRA7XX_EVM_H */ |