Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2006-2008 |
| 4 | * Texas Instruments. |
| 5 | * Richard Woodruff <r-woodruff2@ti.com> |
| 6 | * Syed Mohammed Khasim <x0khasim@ti.com> |
| 7 | * |
| 8 | * (C) Copyright 2009 |
| 9 | * Frederik Kriewitz <frederik@kriewitz.eu> |
| 10 | * |
| 11 | * Configuration settings for the DevKit8000 board. |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef __CONFIG_H |
| 15 | #define __CONFIG_H |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 16 | |
Anthoine Bourgeois | cf84a82 | 2015-01-02 00:35:43 +0100 | [diff] [blame] | 17 | #include <configs/ti_omap3_common.h> |
Anthoine Bourgeois | e70198f | 2015-01-02 00:35:42 +0100 | [diff] [blame] | 18 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 19 | /* BOOTP/DHCP options */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 20 | |
Anthoine Bourgeois | 27243b0 | 2022-06-02 22:27:06 +0200 | [diff] [blame] | 21 | #define MEM_LAYOUT_ENV_SETTINGS \ |
| 22 | DEFAULT_LINUX_BOOT_ENV |
| 23 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 24 | /* Environment information */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 25 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Anthoine Bourgeois | 27243b0 | 2022-06-02 22:27:06 +0200 | [diff] [blame] | 26 | MEM_LAYOUT_ENV_SETTINGS \ |
Thomas Weber | f1f72f5 | 2011-09-18 22:43:58 +0000 | [diff] [blame] | 27 | "console=ttyO2,115200n8\0" \ |
Tom Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 28 | "mmcdev=0\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 29 | "vram=12M\0" \ |
| 30 | "dvimode=1024x768MR-16@60\0" \ |
| 31 | "defaultdisplay=dvi\0" \ |
| 32 | "nfsopts=hard,tcp,rsize=65536,wsize=65536\0" \ |
| 33 | "kernelopts=rw\0" \ |
| 34 | "commonargs=" \ |
| 35 | "setenv bootargs console=${console} " \ |
| 36 | "vram=${vram} " \ |
| 37 | "omapfb.mode=dvi:${dvimode} " \ |
| 38 | "omapdss.def_disp=${defaultdisplay}\0" \ |
| 39 | "mmcargs=" \ |
| 40 | "run commonargs; " \ |
| 41 | "setenv bootargs ${bootargs} " \ |
| 42 | "root=/dev/mmcblk0p2 " \ |
Andreas Bießmann | 3b88bcf | 2012-08-30 23:53:32 +0000 | [diff] [blame] | 43 | "rootwait " \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 44 | "${kernelopts}\0" \ |
| 45 | "nandargs=" \ |
| 46 | "run commonargs; " \ |
| 47 | "setenv bootargs ${bootargs} " \ |
| 48 | "omapfb.mode=dvi:${dvimode} " \ |
| 49 | "omapdss.def_disp=${defaultdisplay} " \ |
| 50 | "root=/dev/mtdblock4 " \ |
| 51 | "rootfstype=jffs2 " \ |
| 52 | "${kernelopts}\0" \ |
| 53 | "netargs=" \ |
| 54 | "run commonargs; " \ |
| 55 | "setenv bootargs ${bootargs} " \ |
| 56 | "root=/dev/nfs " \ |
| 57 | "nfsroot=${serverip}:${rootpath},${nfsopts} " \ |
| 58 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off " \ |
| 59 | "${kernelopts} " \ |
| 60 | "dnsip1=${dnsip} " \ |
| 61 | "dnsip2=${dnsip2}\0" \ |
Tom Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 62 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 63 | "bootscript=echo Running bootscript from mmc ...; " \ |
| 64 | "source ${loadaddr}\0" \ |
Tom Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 65 | "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 66 | "eraseenv=nand unlock 0x260000 0x20000; nand erase 0x260000 0x20000\0" \ |
| 67 | "mmcboot=echo Booting from mmc ...; " \ |
| 68 | "run mmcargs; " \ |
| 69 | "bootm ${loadaddr}\0" \ |
| 70 | "nandboot=echo Booting from nand ...; " \ |
| 71 | "run nandargs; " \ |
| 72 | "nand read ${loadaddr} 280000 400000; " \ |
| 73 | "bootm ${loadaddr}\0" \ |
| 74 | "netboot=echo Booting from network ...; " \ |
| 75 | "dhcp ${loadaddr}; " \ |
| 76 | "run netargs; " \ |
| 77 | "bootm ${loadaddr}\0" \ |
Andrew Bradford | e1c7c8a | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 78 | "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 79 | "if run loadbootscript; then " \ |
| 80 | "run bootscript; " \ |
| 81 | "else " \ |
| 82 | "if run loaduimage; then " \ |
| 83 | "run mmcboot; " \ |
| 84 | "else run nandboot; " \ |
| 85 | "fi; " \ |
| 86 | "fi; " \ |
| 87 | "else run nandboot; fi\0" |
| 88 | |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 89 | /* Defines for SPL */ |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 90 | |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 91 | /* NAND boot config */ |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 92 | #define CFG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 93 | 10, 11, 12, 13} |
| 94 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 95 | #define CFG_SYS_NAND_ECCSIZE 512 |
| 96 | #define CFG_SYS_NAND_ECCBYTES 3 |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 97 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 98 | #define CFG_SYS_NAND_U_BOOT_SIZE 0x200000 |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 99 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 100 | #endif /* __CONFIG_H */ |