]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/davinci_dm6467evm.h
Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value
[karo-tx-uboot.git] / include / configs / davinci_dm6467evm.h
1 /*
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_MEMTEST_START        0x80000000
45 #define CONFIG_SYS_MEMTEST_END          0x81000000      /* 16MB RAM test */
46 #define CONFIG_NR_DRAM_BANKS            1
47 #define CONFIG_STACKSIZE                (256 << 10)     /* 256 KiB */
48 #define PHYS_SDRAM_1                    0x80000000      /* DDR Start */
49 #define PHYS_SDRAM_1_SIZE               (256 << 20)     /* DDR size 256MB */
50
51 /* Linux interfacing */
52 #define CONFIG_CMDLINE_TAG
53 #define CONFIG_SETUP_MEMORY_TAGS
54 #define CONFIG_SYS_BARGSIZE             1024            /* Bootarg Size */
55 #define CONFIG_SYS_LOAD_ADDR            0x80700000      /* kernel address */
56
57 /* Serial Driver info */
58 #define CONFIG_SYS_NS16550
59 #define CONFIG_SYS_NS16550_SERIAL
60 #define CONFIG_SYS_NS16550_REG_SIZE     4
61 #define CONFIG_SYS_NS16550_COM1         0x01c20000
62 #define CONFIG_SYS_NS16550_CLK          24000000
63 #define CONFIG_CONS_INDEX               1
64 #define CONFIG_BAUDRATE                 115200
65 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
66
67 /* I2C Configuration */
68 #define CONFIG_HARD_I2C
69 #define CONFIG_DRIVER_DAVINCI_I2C
70 #define CONFIG_SYS_I2C_SPEED            80000
71 #define CONFIG_SYS_I2C_SLAVE            10
72
73 /* Flash & Environment */
74 #define CONFIG_SYS_NO_FLASH
75 #ifdef CONFIG_SYS_USE_NAND
76 #define CONFIG_NAND_DAVINCI
77 #define CONFIG_SYS_NAND_CS              2
78 #undef CONFIG_ENV_IS_IN_FLASH
79 #define CONFIG_ENV_IS_IN_NAND
80 #define CONFIG_ENV_SIZE                 (16 << 10)      /* 16 KiB */
81 #define CONFIG_SYS_NAND_BASE_LIST       {0x42000000, }
82 #define CONFIG_SYS_NAND_HW_ECC
83 #define CONFIG_SYS_MAX_NAND_DEVICE      1
84 #define CONFIG_ENV_OFFSET               0
85 #else
86 #define CONFIG_ENV_IS_NOWHERE
87 #define CONFIG_ENV_SIZE                 (4 << 10)       /* 4 KiB */
88 #endif
89
90 /* U-Boot general configuration */
91 #undef CONFIG_USE_IRQ                           /* No IRQ/FIQ in U-Boot */
92 #define CONFIG_BOOTDELAY        3
93 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
94 #define CONFIG_SYS_PROMPT       "DM6467 EVM > " /* Monitor Command Prompt */
95 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size  */
96 #define CONFIG_SYS_PBSIZE               \
97                         (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
98 #define CONFIG_SYS_MAXARGS              16
99 #define CONFIG_VERSION_VARIABLE
100 #define CONFIG_AUTO_COMPLETE
101 #define CONFIG_SYS_HUSH_PARSER
102 #define CONFIG_SYS_PROMPT_HUSH_PS2      "> "
103 #define CONFIG_CMDLINE_EDITING
104 #define CONFIG_SYS_LONGHELP
105 #define CONFIG_CRC32_VERIFY
106 #define CONFIG_MX_CYCLIC
107 #define CONFIG_BOOTCOMMAND              "source 0x82080000; dhcp; bootm"
108 #define CONFIG_BOOTARGS                 \
109                                         "mem=120M console=ttyS0,115200n8 " \
110                                         "root=/dev/hda1 rw noinitrd ip=dhcp"
111
112 /* U-Boot commands */
113 #include <config_cmd_default.h>
114 #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
120 #undef CONFIG_CMD_NET
121 #undef CONFIG_CMD_BDI
122 #undef CONFIG_CMD_FPGA
123 #undef CONFIG_CMD_SETGETDCR
124 #ifdef CONFIG_SYS_USE_NAND
125 #undef CONFIG_CMD_FLASH
126 #undef CONFIG_CMD_IMLS
127 #define CONFIG_CMD_NAND
128 #endif
129
130 #endif /* __CONFIG_H */