Merge branch '2019-06-14-master-imports'
[platform/kernel/u-boot.git] / include / configs / bav335x.h
1 /*
2  * bav335x.h
3  *
4  * Copyright (c) 2012-2014 Birdland Audio - http://birdland.com/oem
5  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation version 2.
10  *
11  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
12  * kind, whether express or implied; without even the implied warranty
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  */
16
17 #ifndef __CONFIG_BAV335X_H
18 #define __CONFIG_BAV335X_H
19
20 #include <configs/ti_am335x_common.h>
21
22 #ifndef CONFIG_SPL_BUILD
23 # define CONFIG_TIMESTAMP
24 #endif
25
26 #define CONFIG_SYS_BOOTM_LEN            (16 << 20)
27
28 #define CONFIG_MACH_TYPE                MACH_TYPE_AM335XEVM
29
30 /* Clock Defines */
31 #define V_OSCK                          24000000  /* Clock output from T2 */
32 #define V_SCLK                          (V_OSCK)
33
34 /* Always 128 KiB env size */
35 #define CONFIG_ENV_SIZE                 (128 << 10)
36
37 #ifdef CONFIG_NAND
38 #define NANDARGS \
39         "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
40         "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
41         "nandargs=setenv bootargs console=${console} " \
42                 "${optargs} " \
43                 "root=${nandroot} " \
44                 "rootfstype=${nandrootfstype}\0" \
45         "nandroot=ubi0:rootfs rw ubi.mtd=9,2048\0" \
46         "nandrootfstype=ubifs rootwait=1\0" \
47         "nandboot=echo Booting from nand ...; " \
48                 "run nandargs; " \
49                 "nand read ${fdtaddr} u-boot-spl-os; " \
50                 "nand read ${loadaddr} kernel; " \
51                 "bootz ${loadaddr} - ${fdtaddr}\0"
52 #else
53 #define NANDARGS ""
54 #endif
55
56 #ifndef CONFIG_SPL_BUILD
57 #define CONFIG_EXTRA_ENV_SETTINGS \
58 DEFAULT_LINUX_BOOT_ENV \
59 "boot_fdt=try\0" \
60 "bootpart=0:2\0" \
61 "bootdir=\0" \
62 "fdtdir=/dtbs\0" \
63 "bootfile=zImage\0" \
64 "fdtfile=undefined\0" \
65 "console=ttyO0,115200n8\0" \
66 "loadaddr=0x82000000\0" \
67 "fdtaddr=0x88000000\0" \
68 "rdaddr=0x88080000\0" \
69 "initrd_high=0xffffffff\0" \
70 "fdt_high=0xffffffff\0" \
71 "partitions=" \
72         "uuid_disk=${uuid_gpt_disk};" \
73         "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
74 "optargs=\0" \
75 "cmdline=\0" \
76 "mmcdev=0\0" \
77 "mmcpart=1\0" \
78 "mmcroot=/dev/mmcblk0p2 ro\0" \
79 "mmcrootfstype=ext4 rootwait fixrtc\0" \
80 "rootpath=/export/rootfs\0" \
81 "nfsopts=nolock\0" \
82 "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off\0" \
83 "ramroot=/dev/ram0 rw\0" \
84 "ramrootfstype=ext2\0" \
85 "mmcargs=setenv bootargs console=${console} ${optargs} " \
86         "root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline}\0" \
87 "server_ip=192.168.1.100\0" \
88 "gw_ip=192.168.1.1\0" \
89 "netmask=255.255.255.0\0" \
90 "hostname=\0" \
91 "device=eth0\0" \
92 "autoconf=off\0" \
93 "root_dir=/home/userid/targetNFS\0" \
94 "nfs_options=,vers=3\0" \
95 "nfsrootfstype=ext4 rootwait fixrtc\0" \
96 "nfsargs=setenv bootargs console=${console} ${optargs} " \
97         "root=/dev/nfs rw rootfstype=${nfsrootfstype} " \
98         "nfsroot=${nfsroot} ip=${ip} ${cmdline}\0" \
99 "netargs=setenv bootargs console=${console} " \
100         "${optargs} root=/dev/nfs " \
101         "nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp\0" \
102 "bootenv=uEnv.txt\0" \
103 "script=boot.scr\0" \
104 "scriptfile=${script}\0" \
105 "loadbootscript=load mmc ${bootpart} ${loadaddr} ${scriptfile};\0" \
106 "bootscript=echo Running bootscript from mmc${bootpart} ...; " \
107         "source ${loadaddr}\0" \
108         "loadbootenv=load mmc ${bootpart} ${loadaddr} ${bootenv}\0" \
109 "importbootenv=echo Importing environment from mmc ...; " \
110         "env import -t -r $loadaddr $filesize\0" \
111 "ramargs=setenv bootargs console=${console} " \
112         "${optargs} root=${ramroot} rootfstype=${ramrootfstype}\0" \
113 "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
114 "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
115         "loadrd=load mmc ${bootpart} ${rdaddr} " \
116         "${bootdir}/${rdfile}; setenv rdsize ${filesize}\0" \
117 "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; " \
118         "load mmc ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}\0" \
119 "mmcboot=mmc dev ${mmcdev}; " \
120         "if mmc rescan; then " \
121                 "gpio set 54;" \
122                 "setenv bootpart ${mmcdev}:1; " \
123                 "if test -e mmc ${bootpart} /etc/fstab; then " \
124                         "setenv mmcpart 1;" \
125                 "fi; " \
126                 "echo Checking for: /uEnv.txt ...;" \
127                 "if test -e mmc ${bootpart} /uEnv.txt; then " \
128                         "if run loadbootenv; then " \
129                                 "gpio set 55;" \
130                                 "echo Loaded environment from ${bootenv};" \
131                                 "run importbootenv;" \
132                         "fi;" \
133                         "echo Checking if uenvcmd is set ...;" \
134                         "if test -n ${uenvcmd}; then " \
135                                 "gpio set 56; " \
136                                 "echo Running uenvcmd ...;" \
137                                 "run uenvcmd;" \
138                         "fi;" \
139                         "echo Checking if client_ip is set ...;" \
140                         "if test -n ${client_ip}; then " \
141                                 "if test -n ${dtb}; then " \
142                                         "setenv fdtfile ${dtb};" \
143                                         "echo using ${fdtfile} ...;" \
144                                 "fi;" \
145                                 "gpio set 56; " \
146                                 "if test -n ${uname_r}; then " \
147                                         "echo Running nfsboot_uname_r ...;" \
148                                         "run nfsboot_uname_r;" \
149                                 "fi;" \
150                                 "echo Running nfsboot ...;" \
151                                 "run nfsboot;" \
152                         "fi;" \
153                 "fi; " \
154                 "echo Checking for: /${script} ...;" \
155                 "if test -e mmc ${bootpart} /${script}; then " \
156                         "gpio set 55;" \
157                         "setenv scriptfile ${script};" \
158                         "run loadbootscript;" \
159                         "echo Loaded script from ${scriptfile};" \
160                         "gpio set 56; " \
161                         "run bootscript;" \
162                 "fi; " \
163                 "echo Checking for: /boot/${script} ...;" \
164                 "if test -e mmc ${bootpart} /boot/${script}; then " \
165                         "gpio set 55;" \
166                         "setenv scriptfile /boot/${script};" \
167                         "run loadbootscript;" \
168                         "echo Loaded script from ${scriptfile};" \
169                         "gpio set 56; " \
170                         "run bootscript;" \
171                 "fi; " \
172                 "echo Checking for: /boot/uEnv.txt ...;" \
173                 "for i in 1 2 3 4 5 6 7 ; do " \
174                         "setenv mmcpart ${i};" \
175                         "setenv bootpart ${mmcdev}:${mmcpart};" \
176                         "if test -e mmc ${bootpart} /boot/uEnv.txt; then " \
177                                 "gpio set 55;" \
178                                 "load mmc ${bootpart} ${loadaddr} " \
179                                                 "/boot/uEnv.txt;" \
180                                 "env import -t ${loadaddr} ${filesize};" \
181                                 "echo Loaded environment from /boot/uEnv.txt;" \
182                                 "if test -n ${dtb}; then " \
183                                         "setenv fdtfile ${dtb};" \
184                                         "echo Using: dtb=${fdtfile} ...;" \
185                                 "fi;" \
186                                 "echo Checking if uname_r is set in " \
187                                                 "/boot/uEnv.txt...;" \
188                                 "if test -n ${uname_r}; then " \
189                                         "gpio set 56; " \
190                                         "echo Running uname_boot ...;" \
191                                         "setenv mmcroot /dev/mmcblk${mmcdev}" \
192                                                         "p${mmcpart} ro;" \
193                                         "run uname_boot;" \
194                                 "fi;" \
195                         "fi;" \
196                 "done;" \
197         "fi;\0" \
198 "netboot=echo Booting from network ...; " \
199         "setenv autoload no; " \
200         "dhcp; " \
201         "tftp ${loadaddr} ${bootfile}; " \
202         "tftp ${fdtaddr} ${fdtfile}; " \
203         "run netargs; " \
204         "bootz ${loadaddr} - ${fdtaddr}\0" \
205 "nfsboot=echo Booting from ${server_ip} ...; " \
206         "setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; " \
207         "setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}" \
208         ":${device}:${autoconf}; " \
209         "setenv autoload no; " \
210         "setenv serverip ${server_ip}; " \
211         "setenv ipaddr ${client_ip}; " \
212         "tftp ${loadaddr} ${bootfile}; " \
213         "tftp ${fdtaddr} dtbs/${fdtfile}; " \
214         "run nfsargs; " \
215         "bootz ${loadaddr} - ${fdtaddr}\0" \
216 "nfsboot_uname_r=echo Booting from ${server_ip} ...; " \
217         "setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; " \
218         "setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}" \
219                         ":${device}:${autoconf}; " \
220         "setenv autoload no; " \
221         "setenv serverip ${server_ip}; " \
222         "setenv ipaddr ${client_ip}; " \
223         "tftp ${loadaddr} vmlinuz-${uname_r}; " \
224         "tftp ${fdtaddr} dtbs/${uname_r}/${fdtfile}; " \
225         "run nfsargs; " \
226         "bootz ${loadaddr} - ${fdtaddr}\0" \
227 "ramboot=echo Booting from ramdisk ...; " \
228         "run ramargs; " \
229         "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
230 "findfdt="\
231         "if test $board_rev = B; then " \
232                 "setenv fdtfile birdland_bav335b.dtb; " \
233                 "setenv fdtbase am335x-boneblack; fi; " \
234         "if test $board_rev = A; then " \
235                 "setenv fdtfile birdland_bav335a.dtb; " \
236                 "setenv fdtbase am335x-boneblack; fi; " \
237         "if test $fdtfile = undefined; then " \
238                 "echo WARNING: Could not determine device tree to use; fi; \0" \
239 "uname_boot="\
240         "setenv bootdir /boot; " \
241         "setenv bootfile vmlinuz-${uname_r}; " \
242         "if test -e mmc ${bootpart} ${bootdir}/${bootfile}; then " \
243                 "echo loading ${bootdir}/${bootfile} ...; "\
244                 "run loadimage;" \
245                 "setenv fdtdir /boot/dtbs/${uname_r}; " \
246                 "if test -e mmc ${bootpart} ${fdtdir}/${fdtfile}; then " \
247                         "run loadfdt;" \
248                 "else " \
249                         "setenv fdtdir /lib/firmware/${uname_r}/device-tree; " \
250                         "if test -e mmc ${bootpart} ${fdtdir}/" \
251                                         "${fdtfile}; then " \
252                                 "run loadfdt;" \
253                         "else " \
254                                 "setenv fdtdir /boot/dtb-${uname_r}; " \
255                                 "if test -e mmc ${bootpart} ${fdtdir}" \
256                                                 "/${fdtfile}; then " \
257                                         "run loadfdt;" \
258                                 "else " \
259                                         "setenv fdtdir /boot/dtbs; " \
260                                         "if test -e mmc ${bootpart} ${fdtdir}" \
261                                                         "/${fdtfile}; then " \
262                                                 "run loadfdt;" \
263                                         "else " \
264                                                 "echo; echo unable to find " \
265                                                         "[${fdtfile}] " \
266                                                 "did you name it correctly?" \
267                                                 "echo booting fallback " \
268                                                         "[/boot/dtbs/" \
269                                                         "${uname_r}" \
270                                                         "/${fdtbase}.dtb]...;" \
271                                                 "setenv fdtdir /boot/dtbs/" \
272                                                         "${uname_r}; " \
273                                                 "setenv fdtfile " \
274                                                         "${fdtbase}.dtb; " \
275                                                 "run loadfdt;" \
276                                         "fi;" \
277                                 "fi;" \
278                         "fi;" \
279                 "fi;" \
280         "fi; " \
281         "setenv rdfile initrd.img-${uname_r}; " \
282         "if test -e mmc ${bootpart} ${bootdir}/${rdfile}; then " \
283                 "echo loading ${bootdir}/${rdfile} ...; "\
284                 "run loadrd;" \
285                 "if test -n ${uuid}; then " \
286                         "setenv mmcroot UUID=${uuid} ro;" \
287                 "fi;" \
288                 "run mmcargs;" \
289                 "echo debug: [${bootargs}] ... ;" \
290                 "echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} " \
291                                         "${fdtaddr}] ... ;" \
292                 "bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; " \
293         "else " \
294                 "run mmcargs;" \
295                 "echo debug: [${bootargs}] ... ;" \
296                 "echo debug: [bootz ${loadaddr} - ${fdtaddr}] ... ;" \
297                 "bootz ${loadaddr} - ${fdtaddr}; " \
298         "fi;" \
299 "fi;\0" \
300         NANDARGS \
301         DFUARGS
302 #endif
303
304 #define CONFIG_BOOTCOMMAND \
305         "gpio set 53; " \
306         "i2c mw 0x24 1 0x3e; " \
307         "run findfdt; " \
308         "setenv mmcdev 0; " \
309         "setenv bootpart 0:1; " \
310         "run mmcboot;" \
311         "gpio clear 56; " \
312         "gpio clear 55; " \
313         "gpio clear 54; " \
314         "setenv mmcdev 1; " \
315         "setenv bootpart 1:1; " \
316         "run mmcboot;"
317
318 /* NS16550 Configuration */
319 #define CONFIG_SYS_NS16550_COM1         0x44e09000      /* UART0 */
320 #define CONFIG_SYS_NS16550_COM2         0x48022000      /* UART1 */
321 #define CONFIG_SYS_NS16550_COM3         0x48024000      /* UART2 */
322 #define CONFIG_SYS_NS16550_COM4         0x481a6000      /* UART3 */
323 #define CONFIG_SYS_NS16550_COM5         0x481a8000      /* UART4 */
324 #define CONFIG_SYS_NS16550_COM6         0x481aa000      /* UART5 */
325
326 #define CONFIG_ENV_EEPROM_IS_ON_I2C
327 #define CONFIG_SYS_I2C_EEPROM_ADDR      0x50    /* Main EEPROM */
328 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN  2
329
330 /* PMIC support */
331 #define CONFIG_POWER_TPS65217
332 #define CONFIG_POWER_TPS65910
333
334 /* SPL */
335 #ifndef CONFIG_NOR_BOOT
336 /* Bootcount using the RTC block */
337 #define CONFIG_SYS_BOOTCOUNT_BE
338
339 /* USB gadget RNDIS */
340 #endif
341
342 #ifdef CONFIG_NAND
343 /* NAND: device related configs */
344 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
345 #define CONFIG_SYS_NAND_PAGE_COUNT      (CONFIG_SYS_NAND_BLOCK_SIZE / \
346                                          CONFIG_SYS_NAND_PAGE_SIZE)
347 #define CONFIG_SYS_NAND_PAGE_SIZE       2048
348 #define CONFIG_SYS_NAND_OOBSIZE         64
349 #define CONFIG_SYS_NAND_BLOCK_SIZE      (128*1024)
350 /* NAND: driver related configs */
351 #define CONFIG_SYS_NAND_BAD_BLOCK_POS   NAND_LARGE_BADBLOCK_POS
352 #define CONFIG_SYS_NAND_ECCPOS  { \
353         2, 3, 4, 5, 6, 7, 8, 9, \
354         10, 11, 12, 13, 14, 15, 16, 17, \
355         18, 19, 20, 21, 22, 23, 24, 25, \
356         26, 27, 28, 29, 30, 31, 32, 33, \
357         34, 35, 36, 37, 38, 39, 40, 41, \
358         42, 43, 44, 45, 46, 47, 48, 49, \
359         50, 51, 52, 53, 54, 55, 56, 57, }
360
361 #define CONFIG_SYS_NAND_ECCSIZE         512
362 #define CONFIG_SYS_NAND_ECCBYTES        14
363 #define CONFIG_SYS_NAND_ONFI_DETECTION
364 #define CONFIG_NAND_OMAP_ECCSCHEME      OMAP_ECC_BCH8_CODE_HW
365 #define CONFIG_SYS_NAND_U_BOOT_OFFS     0x000c0000
366 #define CONFIG_ENV_OFFSET               0x001c0000
367 #define CONFIG_ENV_OFFSET_REDUND        0x001e0000
368 #define CONFIG_SYS_ENV_SECT_SIZE        CONFIG_SYS_NAND_BLOCK_SIZE
369 /* NAND: SPL related configs */
370 #ifdef CONFIG_SPL_OS_BOOT
371 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
372 #endif
373 #endif /* !CONFIG_NAND */
374
375 /*
376  * For NOR boot, we must set this to the start of where NOR is mapped
377  * in memory.
378  */
379
380 /*
381  * USB configuration.  We enable MUSB support, both for host and for
382  * gadget.  We set USB0 as peripheral and USB1 as host, based on the
383  * board schematic and physical port wired to each.  Then for host we
384  * add mass storage support and for gadget we add both RNDIS ethernet
385  * and DFU.
386  */
387 #define CONFIG_AM335X_USB0
388 #define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
389 #define CONFIG_AM335X_USB1
390 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
391
392 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USB_ETHER)
393 /* disable host part of MUSB in SPL */
394 /* disable EFI partitions and partition UUID support */
395 #endif
396
397 /* USB Device Firmware Update support */
398 #ifndef CONFIG_SPL_BUILD
399 #define DFU_ALT_INFO_MMC \
400         "dfu_alt_info_mmc=" \
401         "boot part 0 1;" \
402         "rootfs part 0 2;" \
403         "MLO fat 0 1;" \
404         "MLO.raw raw 0x100 0x100;" \
405         "u-boot.img.raw raw 0x300 0x400;" \
406         "spl-os-args.raw raw 0x80 0x80;" \
407         "spl-os-image.raw raw 0x900 0x2000;" \
408         "spl-os-args fat 0 1;" \
409         "spl-os-image fat 0 1;" \
410         "u-boot.img fat 0 1;" \
411         "uEnv.txt fat 0 1\0"
412 #ifdef CONFIG_NAND
413 #define DFU_ALT_INFO_NAND \
414         "dfu_alt_info_nand=" \
415         "SPL part 0 1;" \
416         "SPL.backup1 part 0 2;" \
417         "SPL.backup2 part 0 3;" \
418         "SPL.backup3 part 0 4;" \
419         "u-boot part 0 5;" \
420         "u-boot-spl-os part 0 6;" \
421         "kernel part 0 8;" \
422         "rootfs part 0 9\0"
423 #else
424 #define DFU_ALT_INFO_NAND ""
425 #endif
426 #define DFU_ALT_INFO_RAM \
427         "dfu_alt_info_ram=" \
428         "kernel ram 0x80200000 0xD80000;" \
429         "fdt ram 0x80F80000 0x80000;" \
430         "ramdisk ram 0x81000000 0x4000000\0"
431 #define DFUARGS \
432         "dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \
433         DFU_ALT_INFO_MMC \
434         DFU_ALT_INFO_RAM \
435         DFU_ALT_INFO_NAND
436 #endif
437
438 /*
439  * Default to using SPI for environment, etc.
440  * 0x000000 - 0x020000 : SPL (128KiB)
441  * 0x020000 - 0x0A0000 : U-Boot (512KiB)
442  * 0x0A0000 - 0x0BFFFF : First copy of U-Boot Environment (128KiB)
443  * 0x0C0000 - 0x0DFFFF : Second copy of U-Boot Environment (128KiB)
444  * 0x0E0000 - 0x442000 : Linux Kernel
445  * 0x442000 - 0x800000 : Userland
446  */
447 #if defined(CONFIG_SPI_BOOT)
448 /* SPL related */
449 #define CONFIG_SYS_SPI_U_BOOT_OFFS      0x20000
450
451 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
452 #define CONFIG_ENV_SECT_SIZE            (4 << 10) /* 4 KB sectors */
453 #define CONFIG_ENV_OFFSET               (768 << 10) /* 768 KiB in */
454 #define CONFIG_ENV_OFFSET_REDUND        (896 << 10) /* 896 KiB in */
455 #elif defined(CONFIG_EMMC_BOOT)
456 #define CONFIG_SYS_MMC_ENV_DEV          1
457 #define CONFIG_SYS_MMC_ENV_PART         2
458 #define CONFIG_ENV_OFFSET               0x0
459 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
460 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
461 #endif
462
463 /* SPI flash. */
464
465 /* Network. */
466 #define CONFIG_PHY_SMSC
467
468 /*
469  * NOR Size = 16 MiB
470  * Number of Sectors/Blocks = 128
471  * Sector Size = 128 KiB
472  * Word length = 16 bits
473  * Default layout:
474  * 0x000000 - 0x07FFFF : U-Boot (512 KiB)
475  * 0x080000 - 0x09FFFF : First copy of U-Boot Environment (128 KiB)
476  * 0x0A0000 - 0x0BFFFF : Second copy of U-Boot Environment (128 KiB)
477  * 0x0C0000 - 0x4BFFFF : Linux Kernel (4 MiB)
478  * 0x4C0000 - 0xFFFFFF : Userland (11 MiB + 256 KiB)
479  */
480 #if defined(CONFIG_NOR)
481 #define CONFIG_SYS_MAX_FLASH_SECT       128
482 #define CONFIG_SYS_MAX_FLASH_BANKS      1
483 #define CONFIG_SYS_FLASH_BASE           (0x08000000)
484 #define CONFIG_SYS_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
485 #define CONFIG_SYS_FLASH_SIZE           0x01000000
486 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_FLASH_BASE
487 /* Reduce SPL size by removing unlikey targets */
488 #ifdef CONFIG_NOR_BOOT
489 #define CONFIG_ENV_SECT_SIZE            (128 << 10)     /* 128 KiB */
490 #define CONFIG_ENV_OFFSET               (512 << 10)     /* 512 KiB */
491 #define CONFIG_ENV_OFFSET_REDUND        (768 << 10)     /* 768 KiB */
492 #endif
493 #endif  /* NOR support */
494
495 #endif  /* ! __CONFIG_AM335X_EVM_H */