blob: c6878fc08e1f0e8eb0f7ccd434cbad002b97cd40 [file] [log] [blame]
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +04001/*
2 * Copyright (C) 2011-2014 Pierrick Hascoet, Abilis Systems
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _CONFIG_TB100_H_
8#define _CONFIG_TB100_H_
9
10#include <linux/sizes.h>
11
12/*
13 * CPU configuration
14 */
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +040015#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_CLK_FREQ
16
17/*
18 * Board configuration
19 */
Alexey Brodkin7f6a6db2014-05-21 14:39:32 +040020#define CONFIG_ARCH_EARLY_INIT_R
21
22/*
23 * Memory configuration
24 */
25#define CONFIG_SYS_TEXT_BASE 0x84000000
26#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
27
28#define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
29#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
30#define CONFIG_SYS_SDRAM_SIZE SZ_128M
31
32#define CONFIG_SYS_INIT_SP_ADDR \
33 (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
34
35#define CONFIG_SYS_MALLOC_LEN SZ_128K
36#define CONFIG_SYS_BOOTM_LEN SZ_32M
37#define CONFIG_SYS_LOAD_ADDR 0x82000000
38
39#define CONFIG_SYS_NO_FLASH
40
41/*
42 * UART configuration
43 */
44#define CONFIG_CONS_INDEX 1
45#define CONFIG_SYS_NS16550
46#define CONFIG_SYS_NS16550_SERIAL
47#define CONFIG_SYS_NS16550_REG_SIZE -4
48#define CONFIG_SYS_NS16550_CLK 166666666
49#define CONFIG_SYS_NS16550_COM1 0xFF100000
50#define CONFIG_SYS_NS16550_MEM32
51
52#define CONFIG_BAUDRATE 115200
53
54/*
55 * Ethernet PHY configuration
56 */
57#define CONFIG_PHYLIB
58#define CONFIG_PHY_GIGE
59
60/*
61 * Even though the board houses Realtek RTL8211E PHY
62 * corresponding PHY driver (drivers/net/phy/realtek.c) behaves unexpectedly.
63 * In particular "parse_status" reports link is down.
64 *
65 * Until Realtek PHY driver is fixed fall back to generic PHY driver
66 * which implements all required functionality and behaves much more stable.
67 *
68 * #define CONFIG_PHY_REALTEK
69 *
70 */
71
72/*
73 * Ethernet configuration
74 */
75#define CONFIG_DESIGNWARE_ETH
76#define ETH0_BASE_ADDRESS 0xFE100000
77#define ETH1_BASE_ADDRESS 0xFE110000
78
79/*
80 * Command line configuration
81 */
82#include <config_cmd_default.h>
83
84#define CONFIG_CMD_DHCP
85#define CONFIG_CMD_ELF
86#define CONFIG_CMD_PING
87
88#define CONFIG_OF_LIBFDT
89
90#define CONFIG_AUTO_COMPLETE
91#define CONFIG_SYS_MAXARGS 16
92
93/*
94 * Environment settings
95 */
96#define CONFIG_ENV_IS_NOWHERE
97#define CONFIG_ENV_SIZE SZ_2K
98#define CONFIG_ENV_OFFSET 0
99
100/*
101 * Environment configuration
102 */
103#define CONFIG_BOOTDELAY 3
104#define CONFIG_BOOTFILE "uImage"
105#define CONFIG_BOOTARGS "console=ttyS0,115200n8"
106#define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
107
108/*
109 * Console configuration
110 */
111#define CONFIG_SYS_LONGHELP
112#define CONFIG_SYS_PROMPT "[tb100]:~# "
113#define CONFIG_SYS_CBSIZE 256
114#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
115#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
116 sizeof(CONFIG_SYS_PROMPT) + 16)
117
118#endif /* _CONFIG_TB100_H_ */