blob: d45115bdf68343938612a3a9eb376b9bbd766752 [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/* Hardware drivers */
Frederik Kriewitz99396502009-08-23 12:56:42 +020020/* DM9000 */
Frederik Kriewitz99396502009-08-23 12:56:42 +020021#define CONFIG_DM9000_BASE 0x2c000000
22#define DM9000_IO CONFIG_DM9000_BASE
23#define DM9000_DATA (CONFIG_DM9000_BASE + 0x400)
24#define CONFIG_DM9000_USE_16BIT 1
25#define CONFIG_DM9000_NO_SROM 1
26#undef CONFIG_DM9000_DEBUG
27
Frederik Kriewitz99396502009-08-23 12:56:42 +020028/* TWL4030 */
Frederik Kriewitz99396502009-08-23 12:56:42 +020029
Frederik Kriewitz99396502009-08-23 12:56:42 +020030/* BOOTP/DHCP options */
Frederik Kriewitz99396502009-08-23 12:56:42 +020031
Anthoine Bourgeois27243b02022-06-02 22:27:06 +020032#define MEM_LAYOUT_ENV_SETTINGS \
33 DEFAULT_LINUX_BOOT_ENV
34
Frederik Kriewitz99396502009-08-23 12:56:42 +020035/* Environment information */
Frederik Kriewitz99396502009-08-23 12:56:42 +020036#define CONFIG_EXTRA_ENV_SETTINGS \
Anthoine Bourgeois27243b02022-06-02 22:27:06 +020037 MEM_LAYOUT_ENV_SETTINGS \
Thomas Weberf1f72f52011-09-18 22:43:58 +000038 "console=ttyO2,115200n8\0" \
Tom Rinibde8eea2011-09-03 21:52:45 -040039 "mmcdev=0\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020040 "vram=12M\0" \
41 "dvimode=1024x768MR-16@60\0" \
42 "defaultdisplay=dvi\0" \
43 "nfsopts=hard,tcp,rsize=65536,wsize=65536\0" \
44 "kernelopts=rw\0" \
45 "commonargs=" \
46 "setenv bootargs console=${console} " \
47 "vram=${vram} " \
48 "omapfb.mode=dvi:${dvimode} " \
49 "omapdss.def_disp=${defaultdisplay}\0" \
50 "mmcargs=" \
51 "run commonargs; " \
52 "setenv bootargs ${bootargs} " \
53 "root=/dev/mmcblk0p2 " \
Andreas Bießmann3b88bcf2012-08-30 23:53:32 +000054 "rootwait " \
Frederik Kriewitz99396502009-08-23 12:56:42 +020055 "${kernelopts}\0" \
56 "nandargs=" \
57 "run commonargs; " \
58 "setenv bootargs ${bootargs} " \
59 "omapfb.mode=dvi:${dvimode} " \
60 "omapdss.def_disp=${defaultdisplay} " \
61 "root=/dev/mtdblock4 " \
62 "rootfstype=jffs2 " \
63 "${kernelopts}\0" \
64 "netargs=" \
65 "run commonargs; " \
66 "setenv bootargs ${bootargs} " \
67 "root=/dev/nfs " \
68 "nfsroot=${serverip}:${rootpath},${nfsopts} " \
69 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off " \
70 "${kernelopts} " \
71 "dnsip1=${dnsip} " \
72 "dnsip2=${dnsip2}\0" \
Tom Rinibde8eea2011-09-03 21:52:45 -040073 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020074 "bootscript=echo Running bootscript from mmc ...; " \
75 "source ${loadaddr}\0" \
Tom Rinibde8eea2011-09-03 21:52:45 -040076 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
Frederik Kriewitz99396502009-08-23 12:56:42 +020077 "eraseenv=nand unlock 0x260000 0x20000; nand erase 0x260000 0x20000\0" \
78 "mmcboot=echo Booting from mmc ...; " \
79 "run mmcargs; " \
80 "bootm ${loadaddr}\0" \
81 "nandboot=echo Booting from nand ...; " \
82 "run nandargs; " \
83 "nand read ${loadaddr} 280000 400000; " \
84 "bootm ${loadaddr}\0" \
85 "netboot=echo Booting from network ...; " \
86 "dhcp ${loadaddr}; " \
87 "run netargs; " \
88 "bootm ${loadaddr}\0" \
Andrew Bradforde1c7c8a2012-10-01 05:06:52 +000089 "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
Frederik Kriewitz99396502009-08-23 12:56:42 +020090 "if run loadbootscript; then " \
91 "run bootscript; " \
92 "else " \
93 "if run loaduimage; then " \
94 "run mmcboot; " \
95 "else run nandboot; " \
96 "fi; " \
97 "fi; " \
98 "else run nandboot; fi\0"
99
Simon Schwarz7ae359c2011-09-14 15:32:17 -0400100/* Defines for SPL */
Simon Schwarz7ae359c2011-09-14 15:32:17 -0400101
Simon Schwarz7ae359c2011-09-14 15:32:17 -0400102/* NAND boot config */
Simon Schwarz7ae359c2011-09-14 15:32:17 -0400103#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
104 10, 11, 12, 13}
105
106#define CONFIG_SYS_NAND_ECCSIZE 512
107#define CONFIG_SYS_NAND_ECCBYTES 3
108
Simon Schwarz7ae359c2011-09-14 15:32:17 -0400109#define CONFIG_SYS_NAND_U_BOOT_SIZE 0x200000
110
Frederik Kriewitz99396502009-08-23 12:56:42 +0200111#endif /* __CONFIG_H */