blob: ddc5990cef5f09d53ab1b9983611e24936b83986 [file] [log] [blame]
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -04001/*
2 * Copyright (C) 2009 Texas Instruments Incorporated
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 */
19
20#ifndef __CONFIG_H
21#define __CONFIG_H
22
23/* Spectrum Digital TMS320DM6467 EVM board */
24#define DAVINCI_DM6467EVM
25
26#define CONFIG_SKIP_LOWLEVEL_INIT
27#define CONFIG_SKIP_RELOCATE_UBOOT
28
29/* SoC Configuration */
30#define CONFIG_ARM926EJS /* arm926ejs CPU */
31#define CONFIG_SYS_TIMERBASE 0x01c21400 /* use timer 0 */
32#define CONFIG_SYS_HZ_CLOCK 27000000
33#define CONFIG_SYS_HZ 1000
34#define CONFIG_SOC_DM646X
35
36/* EEPROM definitions for EEPROM */
37#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
38#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
39#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6
40#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
41
42/* Memory Info */
43#define CONFIG_SYS_MALLOC_LEN (1 << 20) /* 1 MiB */
44#define CONFIG_SYS_GBL_DATA_SIZE 128 /* initial data */
45#define CONFIG_SYS_MEMTEST_START 0x80000000
46#define CONFIG_SYS_MEMTEST_END 0x81000000 /* 16MB RAM test */
47#define CONFIG_NR_DRAM_BANKS 1
48#define CONFIG_STACKSIZE (256 << 10) /* 256 KiB */
49#define PHYS_SDRAM_1 0x80000000 /* DDR Start */
50#define PHYS_SDRAM_1_SIZE (256 << 20) /* DDR size 256MB */
51
52/* Linux interfacing */
53#define CONFIG_CMDLINE_TAG
54#define CONFIG_SETUP_MEMORY_TAGS
55#define CONFIG_SYS_BARGSIZE 1024 /* Bootarg Size */
56#define CONFIG_SYS_LOAD_ADDR 0x80700000 /* kernel address */
57
58/* Serial Driver info */
59#define CONFIG_SYS_NS16550
60#define CONFIG_SYS_NS16550_SERIAL
61#define CONFIG_SYS_NS16550_REG_SIZE 4
62#define CONFIG_SYS_NS16550_COM1 0x01c20000
63#define CONFIG_SYS_NS16550_CLK 24000000
64#define CONFIG_CONS_INDEX 1
65#define CONFIG_BAUDRATE 115200
66#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
67
68/* I2C Configuration */
69#define CONFIG_HARD_I2C
70#define CONFIG_DRIVER_DAVINCI_I2C
71#define CONFIG_SYS_I2C_SPEED 80000
72#define CONFIG_SYS_I2C_SLAVE 10
73
74/* Flash & Environment */
75#define CONFIG_SYS_NO_FLASH
76#ifdef CONFIG_SYS_USE_NAND
77#define CONFIG_NAND_DAVINCI
Nick Thompson97f4eb82009-12-12 12:12:26 -050078#define CONFIG_SYS_NAND_CS 2
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040079#undef CONFIG_ENV_IS_IN_FLASH
80#define CONFIG_ENV_IS_IN_NAND
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040081#define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */
82#define CONFIG_SYS_NAND_BASE_LIST {0x42000000, }
83#define CONFIG_SYS_NAND_HW_ECC
84#define CONFIG_SYS_MAX_NAND_DEVICE 1
85#define CONFIG_ENV_OFFSET 0
86#else
87#define CONFIG_ENV_IS_NOWHERE
88#define CONFIG_ENV_SIZE (4 << 10) /* 4 KiB */
89#endif
90
91/* U-Boot general configuration */
92#undef CONFIG_USE_IRQ /* No IRQ/FIQ in U-Boot */
93#define CONFIG_BOOTDELAY 3
94#define CONFIG_BOOTFILE "uImage" /* Boot file name */
95#define CONFIG_SYS_PROMPT "DM6467 EVM > " /* Monitor Command Prompt */
96#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
97#define CONFIG_SYS_PBSIZE \
98 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
99#define CONFIG_SYS_MAXARGS 16
100#define CONFIG_VERSION_VARIABLE
101#define CONFIG_AUTO_COMPLETE
102#define CONFIG_SYS_HUSH_PARSER
103#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
104#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 */
114#include <config_cmd_default.h>
115#define CONFIG_CMD_ASKENV
116#define CONFIG_CMD_DIAG
117#define CONFIG_CMD_I2C
118#define CONFIG_CMD_MII
119#define CONFIG_CMD_SAVES
120#define CONFIG_CMD_EEPROM
121#undef CONFIG_CMD_NET
122#undef CONFIG_CMD_BDI
123#undef CONFIG_CMD_FPGA
124#undef CONFIG_CMD_SETGETDCR
125#ifdef CONFIG_SYS_USE_NAND
126#undef CONFIG_CMD_FLASH
127#undef CONFIG_CMD_IMLS
128#define CONFIG_CMD_NAND
129#endif
130
131#endif /* __CONFIG_H */