blob: 1aca83a9bcebe776d06b691ce0275ebe13278eb3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
TENART Antoine425faf72013-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 Antoine425faf72013-07-02 12:06:00 +02007 */
8
9#ifndef __CONFIG_TI816X_EVM_H
10#define __CONFIG_TI816X_EVM_H
11
Tom Rini1d7f6ad2017-05-16 14:46:39 -040012#include <configs/ti_armv7_omap.h>
TENART Antoine425faf72013-07-02 12:06:00 +020013#include <asm/arch/omap.h>
14
TENART Antoine425faf72013-07-02 12:06:00 +020015#define CONFIG_EXTRA_ENV_SETTINGS \
Tom Rinia3310172022-06-13 22:57:36 -040016 DEFAULT_LINUX_BOOT_ENV
TENART Antoine425faf72013-07-02 12:06:00 +020017
TENART Antoine425faf72013-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 Antoine425faf72013-07-02 12:06:00 +020022#define CONFIG_MAX_RAM_BANK_SIZE (2048 << 20) /* 2048MB */
Tom Rini1d7f6ad2017-05-16 14:46:39 -040023#define CONFIG_SYS_SDRAM_BASE 0x80000000
TENART Antoine425faf72013-07-02 12:06:00 +020024
25/**
26 * Platform/Board specific defs
27 */
TENART Antoine425faf72013-07-02 12:06:00 +020028#define CONFIG_SYS_TIMERBASE 0x4802E000
TENART Antoine425faf72013-07-02 12:06:00 +020029
TENART Antoine425faf72013-07-02 12:06:00 +020030/*
31 * NS16550 Configuration
32 */
TENART Antoine425faf72013-07-02 12:06:00 +020033#define CONFIG_SYS_NS16550_SERIAL
34#define CONFIG_SYS_NS16550_REG_SIZE (-4)
35#define CONFIG_SYS_NS16550_CLK (48000000)
36#define CONFIG_SYS_NS16550_COM1 0x48024000 /* Base EVM has UART2 */
37
TENART Antoine425faf72013-07-02 12:06:00 +020038/* allow overwriting serial config and ethaddr */
TENART Antoine425faf72013-07-02 12:06:00 +020039
TENART Antoine425faf72013-07-02 12:06:00 +020040
Tom Rini77e99272017-05-16 14:46:37 -040041/*
42 * GPMC NAND block. We support 1 device and the physical address to
43 * access CS0 at is 0x8000000.
44 */
45#define CONFIG_SYS_NAND_BASE 0x8000000
46#define CONFIG_SYS_MAX_NAND_DEVICE 1
47
48/* NAND: SPL related configs */
Tom Rini77e99272017-05-16 14:46:37 -040049
50/* NAND: device related configs */
Tom Rini77e99272017-05-16 14:46:37 -040051/* NAND: driver related configs */
Tom Rini77e99272017-05-16 14:46:37 -040052#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
53 10, 11, 12, 13, 14, 15, 16, 17, \
54 18, 19, 20, 21, 22, 23, 24, 25, \
55 26, 27, 28, 29, 30, 31, 32, 33, \
56 34, 35, 36, 37, 38, 39, 40, 41, \
57 42, 43, 44, 45, 46, 47, 48, 49, \
58 50, 51, 52, 53, 54, 55, 56, 57, }
59
60#define CONFIG_SYS_NAND_ECCSIZE 512
61#define CONFIG_SYS_NAND_ECCBYTES 14
TENART Antoine425faf72013-07-02 12:06:00 +020062
63/* SPL */
64/* Defines for SPL */
TENART Antoine425faf72013-07-02 12:06:00 +020065
TENART Antoine425faf72013-07-02 12:06:00 +020066#endif