Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
TENART Antoine | 7a5eb65 | 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 | 7a5eb65 | 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 | b05ee2f | 2017-05-16 14:46:39 -0400 | [diff] [blame] | 12 | #include <configs/ti_armv7_omap.h> |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 13 | #include <asm/arch/omap.h> |
| 14 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 15 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | c997d52 | 2022-06-13 22:57:36 -0400 | [diff] [blame] | 16 | DEFAULT_LINUX_BOOT_ENV |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 17 | |
TENART Antoine | 7a5eb65 | 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 | db9c39e | 2022-12-04 10:04:51 -0500 | [diff] [blame] | 22 | #define CFG_MAX_RAM_BANK_SIZE (2048 << 20) /* 2048MB */ |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 23 | #define CFG_SYS_SDRAM_BASE 0x80000000 |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 24 | |
| 25 | /** |
| 26 | * Platform/Board specific defs |
| 27 | */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 28 | #define CFG_SYS_TIMERBASE 0x4802E000 |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 29 | |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 30 | /* |
| 31 | * NS16550 Configuration |
| 32 | */ |
Tom Rini | df6a215 | 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 | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 35 | |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 36 | /* allow overwriting serial config and ethaddr */ |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 37 | |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 38 | |
Tom Rini | 28bfc1b | 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 | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 43 | #define CFG_SYS_NAND_BASE 0x8000000 |
Tom Rini | 28bfc1b | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 44 | |
| 45 | /* NAND: SPL related configs */ |
Tom Rini | 28bfc1b | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 46 | |
| 47 | /* NAND: device related configs */ |
Tom Rini | 28bfc1b | 2017-05-16 14:46:37 -0400 | [diff] [blame] | 48 | /* NAND: driver related configs */ |
Tom Rini | b421349 | 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 | 28bfc1b | 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 | b421349 | 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 | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 59 | |
| 60 | /* SPL */ |
| 61 | /* Defines for SPL */ |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 62 | |
TENART Antoine | 7a5eb65 | 2013-07-02 12:06:00 +0200 | [diff] [blame] | 63 | #endif |