Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 2 | /* |
| 3 | * ti816x_evm.h |
| 4 | * |
| 5 | * Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com> |
| 6 | * Antoine Tenart, <atenart@adeneo-embedded.com> |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_TI816X_EVM_H |
| 10 | #define __CONFIG_TI816X_EVM_H |
| 11 | |
Tom Rini | 1d7f6ad | 2017-05-16 14:46:39 -0400 | [diff] [blame] | 12 | #include <configs/ti_armv7_omap.h> |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 13 | #include <asm/arch/omap.h> |
| 14 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 15 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | a331017 | 2022-06-13 22:57:36 -0400 | [diff] [blame] | 16 | DEFAULT_LINUX_BOOT_ENV |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 17 | |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 18 | /* Clock Defines */ |
| 19 | #define V_OSCK 24000000 /* Clock output from T2 */ |
| 20 | #define V_SCLK (V_OSCK >> 1) |
| 21 | |
Tom Rini | 8a897c4 | 2022-12-04 10:04:51 -0500 | [diff] [blame] | 22 | #define CFG_MAX_RAM_BANK_SIZE (2048 << 20) /* 2048MB */ |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 23 | #define CFG_SYS_SDRAM_BASE 0x80000000 |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 24 | |
| 25 | /** |
| 26 | * Platform/Board specific defs |
| 27 | */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 28 | #define CFG_SYS_TIMERBASE 0x4802E000 |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 29 | |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 30 | /* |
| 31 | * NS16550 Configuration |
| 32 | */ |
Tom Rini | 9109213 | 2022-11-16 13:10:28 -0500 | [diff] [blame] | 33 | #define CFG_SYS_NS16550_CLK (48000000) |
| 34 | #define CFG_SYS_NS16550_COM1 0x48024000 /* Base EVM has UART2 */ |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 35 | |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 36 | /* allow overwriting serial config and ethaddr */ |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 37 | |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 38 | |
Tom Rini | 77e9927 | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 39 | /* |
| 40 | * GPMC NAND block. We support 1 device and the physical address to |
| 41 | * access CS0 at is 0x8000000. |
| 42 | */ |
Tom Rini | 4e59094 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 43 | #define CFG_SYS_NAND_BASE 0x8000000 |
Tom Rini | 77e9927 | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 44 | |
| 45 | /* NAND: SPL related configs */ |
Tom Rini | 77e9927 | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 46 | |
| 47 | /* NAND: device related configs */ |
Tom Rini | 77e9927 | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 48 | /* NAND: driver related configs */ |
Tom Rini | 4e59094 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 49 | #define CFG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \ |
Tom Rini | 77e9927 | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 50 | 10, 11, 12, 13, 14, 15, 16, 17, \ |
| 51 | 18, 19, 20, 21, 22, 23, 24, 25, \ |
| 52 | 26, 27, 28, 29, 30, 31, 32, 33, \ |
| 53 | 34, 35, 36, 37, 38, 39, 40, 41, \ |
| 54 | 42, 43, 44, 45, 46, 47, 48, 49, \ |
| 55 | 50, 51, 52, 53, 54, 55, 56, 57, } |
| 56 | |
Tom Rini | 4e59094 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 57 | #define CFG_SYS_NAND_ECCSIZE 512 |
| 58 | #define CFG_SYS_NAND_ECCBYTES 14 |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 59 | |
| 60 | /* SPL */ |
| 61 | /* Defines for SPL */ |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 62 | |
TENART Antoine | 425faf7 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 63 | #endif |