blob: c522d334dcc25fd773554070dcfa46ef9e1ed2f0 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Frederik Kriewitz99396502009-08-23 12:56:42 +02002/*
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 Kriewitz99396502009-08-23 12:56:42 +020012 */
13
14#ifndef __CONFIG_H
15#define __CONFIG_H
Frederik Kriewitz99396502009-08-23 12:56:42 +020016
Anthoine Bourgeoiscf84a822015-01-02 00:35:43 +010017#include <configs/ti_omap3_common.h>
Anthoine Bourgeoise70198f2015-01-02 00:35:42 +010018
Frederik Kriewitz99396502009-08-23 12:56:42 +020019/* BOOTP/DHCP options */
Frederik Kriewitz99396502009-08-23 12:56:42 +020020
Anthoine Bourgeois27243b02022-06-02 22:27:06 +020021#define MEM_LAYOUT_ENV_SETTINGS \
22 DEFAULT_LINUX_BOOT_ENV
23
Frederik Kriewitz99396502009-08-23 12:56:42 +020024/* Environment information */
Tom Rinic9edebe2022-12-04 10:03:50 -050025#define CFG_EXTRA_ENV_SETTINGS \
Anthoine Bourgeois27243b02022-06-02 22:27:06 +020026 MEM_LAYOUT_ENV_SETTINGS \
Thomas Weberf1f72f52011-09-18 22:43:58 +000027 "console=ttyO2,115200n8\0" \
Tom Rinibde8eea2011-09-03 21:52:45 -040028 "mmcdev=0\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020029 "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ßmann3b88bcf2012-08-30 23:53:32 +000043 "rootwait " \
Frederik Kriewitz99396502009-08-23 12:56:42 +020044 "${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 Rinibde8eea2011-09-03 21:52:45 -040062 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020063 "bootscript=echo Running bootscript from mmc ...; " \
64 "source ${loadaddr}\0" \
Tom Rinibde8eea2011-09-03 21:52:45 -040065 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020066 "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 Bradforde1c7c8a2012-10-01 05:06:52 +000078 "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
Frederik Kriewitz99396502009-08-23 12:56:42 +020079 "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 Schwarz7ae359c2011-09-14 15:32:17 -040089/* Defines for SPL */
Simon Schwarz7ae359c2011-09-14 15:32:17 -040090
Simon Schwarz7ae359c2011-09-14 15:32:17 -040091/* NAND boot config */
Tom Rinib4213492022-11-12 17:36:51 -050092#define CFG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
Simon Schwarz7ae359c2011-09-14 15:32:17 -040093 10, 11, 12, 13}
94
Tom Rinib4213492022-11-12 17:36:51 -050095#define CFG_SYS_NAND_ECCSIZE 512
96#define CFG_SYS_NAND_ECCBYTES 3
Simon Schwarz7ae359c2011-09-14 15:32:17 -040097
Tom Rinib4213492022-11-12 17:36:51 -050098#define CFG_SYS_NAND_U_BOOT_SIZE 0x200000
Simon Schwarz7ae359c2011-09-14 15:32:17 -040099
Frederik Kriewitz99396502009-08-23 12:56:42 +0200100#endif /* __CONFIG_H */