]> git.sur5r.net Git - u-boot/blob - include/configs/omap3_zoom1.h
Convert CONFIG_NAND_OMAP_GPMC et al and CONFIG_NAND_MXC to Kconfig
[u-boot] / include / configs / omap3_zoom1.h
1 /*
2  * (C) Copyright 2006-2008
3  * Texas Instruments.
4  * Richard Woodruff <r-woodruff2@ti.com>
5  * Syed Mohammed Khasim <x0khasim@ti.com>
6  * Nishanth Menon <nm@ti.com>
7  *
8  * Configuration settings for the TI OMAP3430 Zoom MDK board.
9  *
10  * SPDX-License-Identifier:     GPL-2.0+
11  */
12
13 #ifndef __CONFIG_H
14 #define __CONFIG_H
15
16 #define CONFIG_NR_DRAM_BANKS    2       /* CS1 may or may not be populated */
17 #include <asm/arch/cpu.h>               /* get chip and board defs */
18 #include <asm/arch/omap.h>
19 #include <configs/ti_omap3_common.h>
20
21 /* Remove SPL boot option - we do not support that on LDP yet */
22 #undef CONFIG_SPL_FRAMEWORK
23
24 /* Generic NAND definition conflicts with debug_base */
25 #undef CONFIG_SYS_NAND_BASE
26
27 #define CONFIG_MISC_INIT_R
28
29 #define CONFIG_REVISION_TAG             1
30
31 #define CONFIG_ENV_SIZE                 (128 << 10)     /* 128 KiB */
32
33 /*
34  * Hardware drivers
35  */
36
37 /* USB */
38 #define CONFIG_USB_MUSB_UDC                     1
39 #define CONFIG_USB_OMAP3                1
40 #define CONFIG_TWL4030_USB              1
41
42 /* USB device configuration */
43 #define CONFIG_USB_DEVICE               1
44 #define CONFIG_USB_TTY                  1
45 /* Change these to suit your needs */
46 #define CONFIG_USBD_VENDORID            0x0451
47 #define CONFIG_USBD_PRODUCTID           0x5678
48 #define CONFIG_USBD_MANUFACTURER        "Texas Instruments"
49 #define CONFIG_USBD_PRODUCT_NAME        "Zoom1"
50
51 #define MTDIDS_DEFAULT                  "nand0=nand"
52 #define MTDPARTS_DEFAULT                "mtdparts=nand:512k(x-loader),"\
53                                         "1920k(u-boot),128k(u-boot-env),"\
54                                         "4m(kernel),-(fs)"
55
56 #if defined(CONFIG_CMD_NAND)
57 /* NAND: SPL falcon mode configs */
58 #ifdef CONFIG_SPL_OS_BOOT
59 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
60 #endif
61 #endif
62
63 /*
64  * TWL4030
65  */
66 #define CONFIG_TWL4030_LED              1
67
68 /*
69  * Board NAND Info.
70  */
71 #define CONFIG_SYS_NAND_ADDR            NAND_BASE       /* physical address */
72                                                         /* to access nand */
73 #define CONFIG_SYS_NAND_BASE            NAND_BASE       /* physical address */
74                                                         /* to access nand at */
75                                                         /* CS0 */
76
77 /* Environment information */
78
79 #define CONFIG_EXTRA_ENV_SETTINGS \
80         "loadaddr=0x82000000\0" \
81         "fdtaddr=0x80f80000\0" \
82         "bootfile=uImage\0" \
83         "fdtfile=omap3-ldp.dtb\0" \
84         "bootdir=/\0" \
85         "bootpart=0:1\0" \
86         "usbtty=cdc_acm\0" \
87         "console=ttyO2,115200n8\0" \
88         "mmcdev=0\0" \
89         "videomode=1024x768@60,vxres=1024,vyres=768\0" \
90         "videospec=omapfb:vram:2M,vram:4M\0" \
91         "mmcargs=setenv bootargs console=${console} " \
92                 "video=${videospec},mode:${videomode} " \
93                 "root=/dev/mmcblk0p2 rw " \
94                 "rootfstype=ext3 rootwait\0" \
95         "nandargs=setenv bootargs console=${console} " \
96                 "video=${videospec},mode:${videomode} " \
97                 "root=/dev/mtdblock4 rw " \
98                 "rootfstype=jffs2\0" \
99         "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
100         "bootscript=echo Running bootscript from mmc ...; " \
101                 "source ${loadaddr}\0" \
102         "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
103         "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
104         "loadzimage=setenv bootfile zImage; if run loadimage; then run loadfdt;fi\0"\
105         "mmcboot=echo Booting from mmc ...; " \
106                 "run mmcargs; " \
107                 "bootm ${loadaddr}\0" \
108         "mmczboot=echo Booting from mmc ...; " \
109                 "run mmcargs; " \
110                 "bootz ${loadaddr} - ${fdtaddr}\0" \
111         "nandboot=echo Booting from nand ...; " \
112                 "run nandargs; " \
113                 "nand read ${loadaddr} 280000 400000; " \
114                 "bootm ${loadaddr}\0" \
115
116 #define CONFIG_BOOTCOMMAND \
117         "mmc dev ${mmcdev}; if mmc rescan; then " \
118                 "if run loadbootscript; then " \
119                         "run bootscript; " \
120                 "else " \
121                         "if run loadimage; then " \
122                                 "run mmcboot; " \
123                         "else if run loadzimage; then " \
124                                 "run mmczboot; " \
125                         "else run nandboot; " \
126                         "fi; fi;" \
127                 "fi; " \
128         "else run nandboot; fi"
129
130 /*
131  * Miscellaneous configurable options
132  */
133 #define CONFIG_SYS_MEMTEST_START        (PHYS_SDRAM_1)  /* memtest */
134 #define CONFIG_SYS_MEMTEST_END          (PHYS_SDRAM_2 + \
135                                         0x01F00000) /* 31MB */
136
137 /*-----------------------------------------------------------------------
138  * FLASH and environment organization
139  */
140
141 /* **** PISMO SUPPORT *** */
142 #if defined(CONFIG_CMD_NAND)
143 #define CONFIG_SYS_FLASH_BASE           NAND_BASE
144 #endif
145
146 /* Monitor at start of flash */
147 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_FLASH_BASE
148 #define CONFIG_SYS_ONENAND_BASE         ONENAND_MAP
149
150 #define ONENAND_ENV_OFFSET              0x260000 /* environment starts here */
151
152 #define CONFIG_SYS_ENV_SECT_SIZE        (128 << 10)     /* 128 KiB */
153 #define CONFIG_ENV_OFFSET               0x260000
154 #define CONFIG_ENV_ADDR                 0x260000
155
156 #ifdef CONFIG_CMD_NET
157 /* Ethernet (LAN9211 from SMSC9118 family) */
158 #define CONFIG_SMC911X
159 #define CONFIG_SMC911X_32_BIT
160 #define CONFIG_SMC911X_BASE             DEBUG_BASE
161
162 #endif
163
164 #endif                          /* __CONFIG_H */