]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/davinci_dm6467evm.h
Merge branch 'next' of ../next
[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
28 /* SoC Configuration */
29 #define CONFIG_ARM926EJS                                /* arm926ejs CPU */
30 #define CONFIG_SYS_TIMERBASE            0x01c21400      /* use timer 0 */
31 #define CONFIG_SYS_HZ_CLOCK             27000000
32 #define CONFIG_SYS_HZ                   1000
33 #define CONFIG_SOC_DM646X
34
35 /* EEPROM definitions for EEPROM */
36 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN          2
37 #define CONFIG_SYS_I2C_EEPROM_ADDR              0x50
38 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS       6
39 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS   20
40
41 /* Memory Info */
42 #define CONFIG_SYS_MALLOC_LEN           (1 << 20)       /* 1 MiB */
43 #define CONFIG_SYS_MEMTEST_START        0x80000000
44 #define CONFIG_SYS_MEMTEST_END          0x81000000      /* 16MB RAM test */
45 #define CONFIG_NR_DRAM_BANKS            1
46 #define CONFIG_STACKSIZE                (256 << 10)     /* 256 KiB */
47 #define PHYS_SDRAM_1                    0x80000000      /* DDR Start */
48 #define PHYS_SDRAM_1_SIZE               (256 << 20)     /* DDR size 256MB */
49
50 /* Linux interfacing */
51 #define CONFIG_CMDLINE_TAG
52 #define CONFIG_SETUP_MEMORY_TAGS
53 #define CONFIG_SYS_BARGSIZE             1024            /* Bootarg Size */
54 #define CONFIG_SYS_LOAD_ADDR            0x80700000      /* kernel address */
55
56 /* Serial Driver info */
57 #define CONFIG_SYS_NS16550
58 #define CONFIG_SYS_NS16550_SERIAL
59 #define CONFIG_SYS_NS16550_REG_SIZE     4
60 #define CONFIG_SYS_NS16550_COM1         0x01c20000
61 #define CONFIG_SYS_NS16550_CLK          24000000
62 #define CONFIG_CONS_INDEX               1
63 #define CONFIG_BAUDRATE                 115200
64 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
65
66 /* I2C Configuration */
67 #define CONFIG_HARD_I2C
68 #define CONFIG_DRIVER_DAVINCI_I2C
69 #define CONFIG_SYS_I2C_SPEED            80000
70 #define CONFIG_SYS_I2C_SLAVE            10
71
72 /* Flash & Environment */
73 #define CONFIG_SYS_NO_FLASH
74 #ifdef CONFIG_SYS_USE_NAND
75 #define CONFIG_NAND_DAVINCI
76 #define CONFIG_SYS_NAND_CS              2
77 #undef CONFIG_ENV_IS_IN_FLASH
78 #define CONFIG_ENV_IS_IN_NAND
79 #define CONFIG_ENV_SIZE                 (16 << 10)      /* 16 KiB */
80 #define CONFIG_SYS_NAND_BASE_LIST       {0x42000000, }
81 #define CONFIG_SYS_NAND_HW_ECC
82 #define CONFIG_SYS_MAX_NAND_DEVICE      1
83 #define CONFIG_ENV_OFFSET               0
84 #else
85 #define CONFIG_ENV_IS_NOWHERE
86 #define CONFIG_ENV_SIZE                 (4 << 10)       /* 4 KiB */
87 #endif
88
89 /* U-Boot general configuration */
90 #undef CONFIG_USE_IRQ                           /* No IRQ/FIQ in U-Boot */
91 #define CONFIG_BOOTDELAY        3
92 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
93 #define CONFIG_SYS_PROMPT       "DM6467 EVM > " /* Monitor Command Prompt */
94 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size  */
95 #define CONFIG_SYS_PBSIZE               \
96                         (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
97 #define CONFIG_SYS_MAXARGS              16
98 #define CONFIG_VERSION_VARIABLE
99 #define CONFIG_AUTO_COMPLETE
100 #define CONFIG_SYS_HUSH_PARSER
101 #define CONFIG_SYS_PROMPT_HUSH_PS2      "> "
102 #define CONFIG_CMDLINE_EDITING
103 #define CONFIG_SYS_LONGHELP
104 #define CONFIG_CRC32_VERIFY
105 #define CONFIG_MX_CYCLIC
106 #define CONFIG_BOOTCOMMAND              "source 0x82080000; dhcp; bootm"
107 #define CONFIG_BOOTARGS                 \
108                                         "mem=120M console=ttyS0,115200n8 " \
109                                         "root=/dev/hda1 rw noinitrd ip=dhcp"
110
111 /* U-Boot commands */
112 #include <config_cmd_default.h>
113 #define CONFIG_CMD_ASKENV
114 #define CONFIG_CMD_DIAG
115 #define CONFIG_CMD_I2C
116 #define CONFIG_CMD_MII
117 #define CONFIG_CMD_SAVES
118 #define CONFIG_CMD_EEPROM
119 #undef CONFIG_CMD_NET
120 #undef CONFIG_CMD_BDI
121 #undef CONFIG_CMD_FPGA
122 #undef CONFIG_CMD_SETGETDCR
123 #ifdef CONFIG_SYS_USE_NAND
124 #undef CONFIG_CMD_FLASH
125 #undef CONFIG_CMD_IMLS
126 #define CONFIG_CMD_NAND
127 #endif
128
129 #define CONFIG_MAX_RAM_BANK_SIZE        (256 << 20)     /* 256 MB */
130
131 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
132 #define CONFIG_SYS_INIT_RAM_SIZE        0x1000
133 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + \
134                                          CONFIG_SYS_INIT_RAM_SIZE - \
135                                          GENERATED_GBL_DATA_SIZE)
136
137 #endif /* __CONFIG_H */