blob: 2d9d2fd66e9a0ec74758be25f665aa7f420b3fc9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
TENART Antoine7a5eb652013-07-02 12:06:00 +02002/*
3 * ti816x_evm.h
4 *
5 * Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
6 * Antoine Tenart, <atenart@adeneo-embedded.com>
TENART Antoine7a5eb652013-07-02 12:06:00 +02007 */
8
9#ifndef __CONFIG_TI816X_EVM_H
10#define __CONFIG_TI816X_EVM_H
11
Tom Rinib05ee2f2017-05-16 14:46:39 -040012#include <configs/ti_armv7_omap.h>
TENART Antoine7a5eb652013-07-02 12:06:00 +020013#include <asm/arch/omap.h>
14
Tom Rinic9edebe2022-12-04 10:03:50 -050015#define CFG_EXTRA_ENV_SETTINGS \
Tom Rinic997d522022-06-13 22:57:36 -040016 DEFAULT_LINUX_BOOT_ENV
TENART Antoine7a5eb652013-07-02 12:06:00 +020017
TENART Antoine7a5eb652013-07-02 12:06:00 +020018/* Clock Defines */
19#define V_OSCK 24000000 /* Clock output from T2 */
20#define V_SCLK (V_OSCK >> 1)
21
TENART Antoine7a5eb652013-07-02 12:06:00 +020022#define CONFIG_MAX_RAM_BANK_SIZE (2048 << 20) /* 2048MB */
Tom Rinibb4dd962022-11-16 13:10:37 -050023#define CFG_SYS_SDRAM_BASE 0x80000000
TENART Antoine7a5eb652013-07-02 12:06:00 +020024
25/**
26 * Platform/Board specific defs
27 */
Tom Rini6a5dccc2022-11-16 13:10:41 -050028#define CFG_SYS_TIMERBASE 0x4802E000
TENART Antoine7a5eb652013-07-02 12:06:00 +020029
TENART Antoine7a5eb652013-07-02 12:06:00 +020030/*
31 * NS16550 Configuration
32 */
Tom Rinidf6a2152022-11-16 13:10:28 -050033#define CFG_SYS_NS16550_CLK (48000000)
34#define CFG_SYS_NS16550_COM1 0x48024000 /* Base EVM has UART2 */
TENART Antoine7a5eb652013-07-02 12:06:00 +020035
TENART Antoine7a5eb652013-07-02 12:06:00 +020036/* allow overwriting serial config and ethaddr */
TENART Antoine7a5eb652013-07-02 12:06:00 +020037
TENART Antoine7a5eb652013-07-02 12:06:00 +020038
Tom Rini28bfc1b2017-05-16 14:46:37 -040039/*
40 * GPMC NAND block. We support 1 device and the physical address to
41 * access CS0 at is 0x8000000.
42 */
Tom Rinib4213492022-11-12 17:36:51 -050043#define CFG_SYS_NAND_BASE 0x8000000
Tom Rini28bfc1b2017-05-16 14:46:37 -040044
45/* NAND: SPL related configs */
Tom Rini28bfc1b2017-05-16 14:46:37 -040046
47/* NAND: device related configs */
Tom Rini28bfc1b2017-05-16 14:46:37 -040048/* NAND: driver related configs */
Tom Rinib4213492022-11-12 17:36:51 -050049#define CFG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
Tom Rini28bfc1b2017-05-16 14:46:37 -040050 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 Rinib4213492022-11-12 17:36:51 -050057#define CFG_SYS_NAND_ECCSIZE 512
58#define CFG_SYS_NAND_ECCBYTES 14
TENART Antoine7a5eb652013-07-02 12:06:00 +020059
60/* SPL */
61/* Defines for SPL */
TENART Antoine7a5eb652013-07-02 12:06:00 +020062
TENART Antoine7a5eb652013-07-02 12:06:00 +020063#endif