]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/davinci_dm365evm.h
avr32: delete non generic board mimc200
[karo-tx-uboot.git] / include / configs / davinci_dm365evm.h
1 /*
2  * Copyright (C) 2009 Texas Instruments Incorporated
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __CONFIG_H
8 #define __CONFIG_H
9
10 /* Spectrum Digital TMS320DM365 EVM board */
11 #define DAVINCI_DM365EVM
12
13 #define CONFIG_SKIP_LOWLEVEL_INIT       /* U-Boot is a 3rd stage loader */
14 #define CONFIG_SYS_NO_FLASH             /* that is, no *NOR* flash */
15 #define CONFIG_SYS_CONSOLE_INFO_QUIET
16
17 /* SoC Configuration */
18 #define CONFIG_SYS_TIMERBASE            0x01c21400      /* use timer 0 */
19 #define CONFIG_SYS_HZ_CLOCK             24000000        /* timer0 freq */
20
21 /* Memory Info */
22 #define CONFIG_NR_DRAM_BANKS            1
23 #define PHYS_SDRAM_1                    0x80000000
24 #define PHYS_SDRAM_1_SIZE               (128 << 20)     /* 128 MiB */
25
26 /* Serial Driver info: UART0 for console  */
27 #define CONFIG_SYS_NS16550
28 #define CONFIG_SYS_NS16550_SERIAL
29 #define CONFIG_SYS_NS16550_REG_SIZE     -4
30 #define CONFIG_SYS_NS16550_COM1         0x01c20000
31 #define CONFIG_SYS_NS16550_CLK          CONFIG_SYS_HZ_CLOCK
32 #define CONFIG_CONS_INDEX               1
33 #define CONFIG_BAUDRATE                 115200
34
35 /* EEPROM definitions for EEPROM on DM365 EVM */
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 /* Network Configuration */
42 #define CONFIG_DRIVER_TI_EMAC
43 #define CONFIG_MII
44 #define CONFIG_BOOTP_DNS
45 #define CONFIG_BOOTP_DNS2
46 #define CONFIG_BOOTP_SEND_HOSTNAME
47 #define CONFIG_NET_RETRY_COUNT  10
48
49 /* I2C */
50 #define CONFIG_SYS_I2C
51 #define CONFIG_SYS_I2C_DAVINCI
52 #define CONFIG_SYS_DAVINCI_I2C_SPEED            400000
53 #define CONFIG_SYS_DAVINCI_I2C_SLAVE            0x10    /* SMBus host address */
54
55 /* NAND: socketed, two chipselects, normally 2 GBytes */
56 #define CONFIG_NAND_DAVINCI
57 #define CONFIG_SYS_NAND_CS              2
58 #define CONFIG_SYS_NAND_USE_FLASH_BBT
59 #define CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST
60 #define CONFIG_SYS_NAND_PAGE_2K
61
62 #define CONFIG_SYS_NAND_LARGEPAGE
63 #define CONFIG_SYS_NAND_BASE_LIST       { 0x02000000, }
64 /* socket has two chipselects, nCE0 gated by address BIT(14) */
65 #define CONFIG_SYS_MAX_NAND_DEVICE      1
66 #define CONFIG_SYS_NAND_MAX_CHIPS       2
67
68 /* SD/MMC */
69 #define CONFIG_MMC
70 #define CONFIG_GENERIC_MMC
71 #define CONFIG_DAVINCI_MMC
72 #define CONFIG_DAVINCI_MMC_SD1
73 #define CONFIG_MMC_MBLOCK
74
75 #define PINMUX4_USBDRVBUS_BITCLEAR       0x3000
76 #define PINMUX4_USBDRVBUS_BITSET         0x2000
77
78 /* USB Configuration */
79 #define CONFIG_USB_DAVINCI
80 #define CONFIG_MUSB_HCD
81
82 #ifdef CONFIG_USB_DAVINCI
83 #define CONFIG_CMD_USB         /* include support for usb      */
84 #define CONFIG_CMD_STORAGE     /* include support for usb      */
85 #define CONFIG_CMD_FAT         /* include support for FAT/storage*/
86 #define CONFIG_DOS_PARTITION   /* include support for FAT/storage*/
87 #endif
88
89 #ifdef CONFIG_MUSB_HCD         /* include support for usb host */
90 #define CONFIG_CMD_USB         /* include support for usb cmd */
91 #define CONFIG_USB_STORAGE     /* MSC class support */
92 #define CONFIG_CMD_STORAGE     /* inclue support for usb-storage cmd */
93 #define CONFIG_CMD_FAT         /* inclue support for FAT/storage */
94 #define CONFIG_DOS_PARTITION   /* inclue support for FAT/storage */
95
96 #ifdef CONFIG_USB_KEYBOARD     /* HID class support */
97 #define CONFIG_SYS_USB_EVENT_POLL
98
99 #define CONFIG_PREBOOT "usb start"
100 #endif /* CONFIG_USB_KEYBOARD */
101 #endif /* CONFIG_MUSB_HCD */
102
103 #ifdef CONFIG_MUSB_UDC
104 #define CONFIG_USB_DEVICE              1
105 #define CONFIG_USB_TTY                 1
106 #define CONFIG_SYS_CONSOLE_IS_IN_ENV   1
107 #define CONFIG_USBD_VENDORID           0x0451
108 #define CONFIG_USBD_PRODUCTID          0x5678
109 #define CONFIG_USBD_MANUFACTURER       "Texas Instruments"
110 #define CONFIG_USBD_PRODUCT_NAME       "DM365VM"
111 #endif /* CONFIG_MUSB_UDC */
112
113 /* U-Boot command configuration */
114 #include <config_cmd_default.h>
115
116 #undef CONFIG_CMD_BDI
117 #undef CONFIG_CMD_FLASH
118 #undef CONFIG_CMD_FPGA
119 #undef CONFIG_CMD_SETGETDCR
120
121 #define CONFIG_CMD_ASKENV
122 #define CONFIG_CMD_DHCP
123 #define CONFIG_CMD_I2C
124 #define CONFIG_CMD_PING
125 #define CONFIG_CMD_SAVES
126
127 #ifdef CONFIG_CMD_BDI
128 #define CONFIG_CLOCKS
129 #endif
130
131 #ifdef CONFIG_MMC
132 #define CONFIG_DOS_PARTITION
133 #define CONFIG_CMD_EXT2
134 #define CONFIG_CMD_FAT
135 #define CONFIG_CMD_MMC
136 #endif
137
138 #ifdef CONFIG_NAND_DAVINCI
139 #define CONFIG_CMD_MTDPARTS
140 #define CONFIG_MTD_PARTITIONS
141 #define CONFIG_MTD_DEVICE
142 #define CONFIG_CMD_NAND
143 #define CONFIG_CMD_UBI
144 #define CONFIG_RBTREE
145 #endif
146
147 #define CONFIG_CRC32_VERIFY
148 #define CONFIG_MX_CYCLIC
149
150 /* U-Boot general configuration */
151 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
152 #define CONFIG_SYS_PROMPT       "DM36x EVM # "  /* Monitor Command Prompt */
153 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size  */
154 #define CONFIG_SYS_PBSIZE                       /* Print buffer size */ \
155                 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
156 #define CONFIG_SYS_MAXARGS      16              /* max number of command args */
157 #define CONFIG_SYS_HUSH_PARSER
158 #define CONFIG_SYS_LONGHELP
159
160 #ifdef CONFIG_NAND_DAVINCI
161 #define CONFIG_ENV_SIZE         (256 << 10)     /* 256 KiB */
162 #define CONFIG_ENV_IS_IN_NAND
163 #define CONFIG_ENV_OFFSET       0x3C0000
164 #undef CONFIG_ENV_IS_IN_FLASH
165 #endif
166
167 #if defined(CONFIG_MMC) && !defined(CONFIG_ENV_IS_IN_NAND)
168 #define CONFIG_CMD_ENV
169 #define CONFIG_ENV_SIZE         (16 << 10)      /* 16 KiB */
170 #define CONFIG_ENV_OFFSET       (51 << 9)       /* Sector 51 */
171 #define CONFIG_ENV_IS_IN_MMC
172 #undef CONFIG_ENV_IS_IN_FLASH
173 #endif
174
175 #define CONFIG_BOOTDELAY        3
176 #define CONFIG_BOOTCOMMAND \
177                 "dhcp;bootm"
178 #define CONFIG_BOOTARGS \
179                 "console=ttyS0,115200n8 " \
180                 "root=/dev/mmcblk0p1 rootwait rootfstype=ext3 ro"
181
182 #define CONFIG_CMDLINE_EDITING
183 #define CONFIG_VERSION_VARIABLE
184 #define CONFIG_TIMESTAMP
185
186 /* U-Boot memory configuration */
187 #define CONFIG_SYS_MALLOC_LEN           (1 << 20)       /* 1 MiB */
188 #define CONFIG_SYS_MEMTEST_START        0x87000000      /* physical address */
189 #define CONFIG_SYS_MEMTEST_END          0x88000000      /* test 16MB RAM */
190
191 /* Linux interfacing */
192 #define CONFIG_CMDLINE_TAG
193 #define CONFIG_SETUP_MEMORY_TAGS
194 #define CONFIG_SYS_BARGSIZE     1024                    /* bootarg Size */
195 #define CONFIG_SYS_LOAD_ADDR    0x80700000              /* kernel address */
196
197
198 /* NAND configuration issocketed with two chipselects just like the DM355 EVM.
199  * It normally comes with a 2GByte SLC part with 2KB pages
200  * (and 128KB erase blocks); other
201  * 2GByte parts may have 4KB pages, 256KB erase blocks, and use MLC.  (MLC
202  * pretty much demands the 4-bit ECC support.)  You can of course swap in
203  * other parts, including small page ones.
204  */
205 #define MTDIDS_DEFAULT          "nand0=davinci_nand.0"
206
207 #ifdef CONFIG_SYS_NAND_LARGEPAGE
208 /*  Use same layout for 128K/256K blocks; allow some bad blocks */
209 #define PART_BOOT               "2m(bootloader)ro,"
210 #else
211 /* Assume 16K erase blocks; allow a few bad ones. */
212 #define PART_BOOT               "512k(bootloader)ro,"
213 #endif
214
215 #define PART_KERNEL             "4m(kernel),"   /* kernel + initramfs */
216 #define PART_REST               "-(filesystem)"
217
218 #define MTDPARTS_DEFAULT        \
219         "mtdparts=davinci_nand.0:" PART_BOOT PART_KERNEL PART_REST
220
221 #define CONFIG_MAX_RAM_BANK_SIZE        (256 << 20)     /* 256 MB */
222
223 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
224 #define CONFIG_SYS_INIT_SP_ADDR         \
225         (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
226
227 #endif /* __CONFIG_H */