]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/davinci_dm6467evm.h
kconfig: add config option for shell prompt
[karo-tx-uboot.git] / include / configs / davinci_dm6467evm.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 TMS320DM6467 EVM board */
11 #define DAVINCI_DM6467EVM
12 #define CONFIG_SYS_USE_NAND
13 #define CONFIG_SYS_NAND_SMALLPAGE
14
15 #define CONFIG_SKIP_LOWLEVEL_INIT
16
17 /* SoC Configuration */
18
19 /* Clock rates detection */
20 #ifndef __ASSEMBLY__
21 extern unsigned int davinci_arm_clk_get(void);
22 #endif
23
24 /* 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)
28 #define CONFIG_SYS_TIMERBASE            0x01c21400      /* use timer 0 */
29
30 /* EEPROM definitions for EEPROM */
31 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN          2
32 #define CONFIG_SYS_I2C_EEPROM_ADDR              0x50
33 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS       6
34 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS   20
35
36 /* Memory Info */
37 #define CONFIG_SYS_MALLOC_LEN           (1 << 20)       /* 1 MiB */
38 #define CONFIG_SYS_MEMTEST_START        0x80000000
39 #define CONFIG_SYS_MEMTEST_END          0x81000000      /* 16MB RAM test */
40 #define CONFIG_NR_DRAM_BANKS            1
41 #define PHYS_SDRAM_1                    0x80000000      /* DDR Start */
42 #define PHYS_SDRAM_1_SIZE               (256 << 20)     /* DDR size 256MB */
43
44 /* Linux interfacing */
45 #define CONFIG_CMDLINE_TAG
46 #define CONFIG_SETUP_MEMORY_TAGS
47 #define CONFIG_SYS_BARGSIZE             1024            /* Bootarg Size */
48 #define CONFIG_SYS_LOAD_ADDR            0x80700000      /* kernel address */
49 #define CONFIG_REVISION_TAG
50
51 /* Serial Driver info */
52 #define CONFIG_SYS_NS16550
53 #define CONFIG_SYS_NS16550_SERIAL
54 #define CONFIG_SYS_NS16550_REG_SIZE     4
55 #define CONFIG_SYS_NS16550_COM1         0x01c20000
56 #define CONFIG_SYS_NS16550_CLK          24000000
57 #define CONFIG_CONS_INDEX               1
58 #define CONFIG_BAUDRATE                 115200
59
60 /* I2C Configuration */
61 #define CONFIG_SYS_I2C
62 #define CONFIG_SYS_I2C_DAVINCI
63 #define CONFIG_SYS_DAVINCI_I2C_SPEED            80000
64 #define CONFIG_SYS_DAVINCI_I2C_SLAVE            10
65
66 /* Network & Ethernet Configuration */
67 #define CONFIG_DRIVER_TI_EMAC
68 #define CONFIG_MII
69 #define CONFIG_BOOTP_DNS
70 #define CONFIG_BOOTP_DNS2
71 #define CONFIG_BOOTP_SEND_HOSTNAME
72 #define CONFIG_NET_RETRY_COUNT  10
73
74 /* Flash & Environment */
75 #define CONFIG_SYS_NO_FLASH
76 #ifdef CONFIG_SYS_USE_NAND
77 #define CONFIG_NAND_DAVINCI
78 #define CONFIG_SYS_NAND_MASK_CLE        0x80000
79 #define CONFIG_SYS_NAND_MASK_ALE        0x40000
80 #define CONFIG_SYS_NAND_CS              2
81 #undef CONFIG_ENV_IS_IN_FLASH
82 #define CONFIG_ENV_IS_IN_NAND
83 #define CONFIG_ENV_SIZE                 (16 << 10)      /* 16 KiB */
84 #define CONFIG_SYS_NAND_BASE_LIST       {0x42000000, }
85 #define CONFIG_SYS_NAND_HW_ECC
86 #define CONFIG_SYS_MAX_NAND_DEVICE      1
87 #define CONFIG_ENV_OFFSET               0
88 #else
89 #define CONFIG_ENV_IS_NOWHERE
90 #define CONFIG_ENV_SIZE                 (4 << 10)       /* 4 KiB */
91 #endif
92
93 /* U-Boot general configuration */
94 #define CONFIG_BOOTDELAY        3
95 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
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_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 #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 #define CONFIG_CMD_PING
120 #define CONFIG_CMD_DHCP
121 #ifdef CONFIG_SYS_USE_NAND
122 #define CONFIG_CMD_NAND
123 #endif
124
125 #ifdef CONFIG_CMD_BDI
126 #define CONFIG_CLOCKS
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 */