blob: 6346422b498c87055b2ea39552ba0d467d99adb0 [file] [log] [blame]
Sandeep Paulraj1830bba2009-10-10 12:00:47 -04001/*
2 * Copyright (C) 2009 Texas Instruments Incorporated
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Sandeep Paulraj1830bba2009-10-10 12:00:47 -04005 */
6
7#ifndef __CONFIG_H
8#define __CONFIG_H
9
10/* Spectrum Digital TMS320DM6467 EVM board */
11#define DAVINCI_DM6467EVM
Sandeep Paulraj0f450952010-12-28 17:38:22 -050012#define CONFIG_SYS_USE_NAND
13#define CONFIG_SYS_NAND_SMALLPAGE
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040014
15#define CONFIG_SKIP_LOWLEVEL_INIT
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040016
17/* SoC Configuration */
Sandeep Paulraj0f450952010-12-28 17:38:22 -050018
19/* Clock rates detection */
20#ifndef __ASSEMBLY__
21extern unsigned int davinci_arm_clk_get(void);
22#endif
23
Sandeep Paulraj0f450952010-12-28 17:38:22 -050024/* Arm Clock frequency */
25#define CONFIG_SYS_CLK_FREQ davinci_arm_clk_get()
26/* Timer Input clock freq */
27#define CONFIG_SYS_HZ_CLOCK (CONFIG_SYS_CLK_FREQ/2)
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040028#define CONFIG_SYS_TIMERBASE 0x01c21400 /* use timer 0 */
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040029#define CONFIG_SOC_DM646X
30
31/* EEPROM definitions for EEPROM */
32#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
33#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
34#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6
35#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
36
37/* Memory Info */
38#define CONFIG_SYS_MALLOC_LEN (1 << 20) /* 1 MiB */
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040039#define CONFIG_SYS_MEMTEST_START 0x80000000
40#define CONFIG_SYS_MEMTEST_END 0x81000000 /* 16MB RAM test */
41#define CONFIG_NR_DRAM_BANKS 1
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040042#define PHYS_SDRAM_1 0x80000000 /* DDR Start */
43#define PHYS_SDRAM_1_SIZE (256 << 20) /* DDR size 256MB */
44
45/* Linux interfacing */
46#define CONFIG_CMDLINE_TAG
47#define CONFIG_SETUP_MEMORY_TAGS
48#define CONFIG_SYS_BARGSIZE 1024 /* Bootarg Size */
49#define CONFIG_SYS_LOAD_ADDR 0x80700000 /* kernel address */
Manjunath Hadlieae752b2011-11-08 08:59:57 -050050#define CONFIG_REVISION_TAG
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040051
52/* Serial Driver info */
53#define CONFIG_SYS_NS16550
54#define CONFIG_SYS_NS16550_SERIAL
55#define CONFIG_SYS_NS16550_REG_SIZE 4
56#define CONFIG_SYS_NS16550_COM1 0x01c20000
57#define CONFIG_SYS_NS16550_CLK 24000000
58#define CONFIG_CONS_INDEX 1
59#define CONFIG_BAUDRATE 115200
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040060
61/* I2C Configuration */
Vitaly Andrianovbc9cd952014-04-04 13:16:52 -040062#define CONFIG_SYS_I2C
63#define CONFIG_SYS_I2C_DAVINCI
64#define CONFIG_SYS_DAVINCI_I2C_SPEED 80000
65#define CONFIG_SYS_DAVINCI_I2C_SLAVE 10
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040066
Sandeep Paulraj0f450952010-12-28 17:38:22 -050067/* Network & Ethernet Configuration */
68#define CONFIG_DRIVER_TI_EMAC
Sandeep Paulraj0f450952010-12-28 17:38:22 -050069#define CONFIG_MII
Sandeep Paulraj0f450952010-12-28 17:38:22 -050070#define CONFIG_BOOTP_DNS
71#define CONFIG_BOOTP_DNS2
72#define CONFIG_BOOTP_SEND_HOSTNAME
73#define CONFIG_NET_RETRY_COUNT 10
Sandeep Paulraj0f450952010-12-28 17:38:22 -050074
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040075/* Flash & Environment */
76#define CONFIG_SYS_NO_FLASH
77#ifdef CONFIG_SYS_USE_NAND
78#define CONFIG_NAND_DAVINCI
Khoronzhuk, Ivan753a00a2014-06-07 04:22:52 +030079#define CONFIG_SYS_NAND_MASK_CLE 0x80000
80#define CONFIG_SYS_NAND_MASK_ALE 0x40000
Nick Thompson789c8872009-12-12 12:12:26 -050081#define CONFIG_SYS_NAND_CS 2
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040082#undef CONFIG_ENV_IS_IN_FLASH
83#define CONFIG_ENV_IS_IN_NAND
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040084#define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */
85#define CONFIG_SYS_NAND_BASE_LIST {0x42000000, }
86#define CONFIG_SYS_NAND_HW_ECC
87#define CONFIG_SYS_MAX_NAND_DEVICE 1
88#define CONFIG_ENV_OFFSET 0
89#else
90#define CONFIG_ENV_IS_NOWHERE
91#define CONFIG_ENV_SIZE (4 << 10) /* 4 KiB */
92#endif
93
94/* U-Boot general configuration */
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040095#define CONFIG_BOOTDELAY 3
96#define CONFIG_BOOTFILE "uImage" /* Boot file name */
Sandeep Paulraj1830bba2009-10-10 12:00:47 -040097#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
98#define CONFIG_SYS_PBSIZE \
99 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
100#define CONFIG_SYS_MAXARGS 16
101#define CONFIG_VERSION_VARIABLE
102#define CONFIG_AUTO_COMPLETE
103#define CONFIG_SYS_HUSH_PARSER
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400104#define CONFIG_CMDLINE_EDITING
105#define CONFIG_SYS_LONGHELP
106#define CONFIG_CRC32_VERIFY
107#define CONFIG_MX_CYCLIC
108#define CONFIG_BOOTCOMMAND "source 0x82080000; dhcp; bootm"
109#define CONFIG_BOOTARGS \
110 "mem=120M console=ttyS0,115200n8 " \
111 "root=/dev/hda1 rw noinitrd ip=dhcp"
112
113/* U-Boot commands */
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400114#define CONFIG_CMD_ASKENV
115#define CONFIG_CMD_DIAG
116#define CONFIG_CMD_I2C
117#define CONFIG_CMD_MII
118#define CONFIG_CMD_SAVES
119#define CONFIG_CMD_EEPROM
Sandeep Paulraj0f450952010-12-28 17:38:22 -0500120#define CONFIG_CMD_PING
121#define CONFIG_CMD_DHCP
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400122#ifdef CONFIG_SYS_USE_NAND
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400123#define CONFIG_CMD_NAND
124#endif
125
Hadli, Manjunath0dfccbe2012-02-06 00:30:44 +0000126#ifdef CONFIG_CMD_BDI
127#define CONFIG_CLOCKS
128#endif
129
Sandeep Paulraj5f679902010-12-11 20:38:57 -0500130#define CONFIG_MAX_RAM_BANK_SIZE (256 << 20) /* 256 MB */
131
132#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
133#define CONFIG_SYS_INIT_RAM_SIZE 0x1000
134#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + \
135 CONFIG_SYS_INIT_RAM_SIZE - \
136 GENERATED_GBL_DATA_SIZE)
137
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400138#endif /* __CONFIG_H */