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 | /* Hardware drivers */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 20 | /* DM9000 */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 21 | #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 Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 28 | /* TWL4030 */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 29 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 30 | /* BOOTP/DHCP options */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 31 | |
Anthoine Bourgeois | 27243b0 | 2022-06-02 22:27:06 +0200 | [diff] [blame] | 32 | #define MEM_LAYOUT_ENV_SETTINGS \ |
| 33 | DEFAULT_LINUX_BOOT_ENV |
| 34 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 35 | /* Environment information */ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 36 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Anthoine Bourgeois | 27243b0 | 2022-06-02 22:27:06 +0200 | [diff] [blame] | 37 | MEM_LAYOUT_ENV_SETTINGS \ |
Thomas Weber | f1f72f5 | 2011-09-18 22:43:58 +0000 | [diff] [blame] | 38 | "console=ttyO2,115200n8\0" \ |
Tom Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 39 | "mmcdev=0\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 40 | "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ßmann | 3b88bcf | 2012-08-30 23:53:32 +0000 | [diff] [blame] | 54 | "rootwait " \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 55 | "${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 Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 73 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 74 | "bootscript=echo Running bootscript from mmc ...; " \ |
| 75 | "source ${loadaddr}\0" \ |
Tom Rini | bde8eea | 2011-09-03 21:52:45 -0400 | [diff] [blame] | 76 | "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 77 | "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 Bradford | e1c7c8a | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 89 | "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 90 | "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 Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 100 | /* Defines for SPL */ |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 101 | |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 102 | /* NAND boot config */ |
Simon Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 103 | #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 Schwarz | 7ae359c | 2011-09-14 15:32:17 -0400 | [diff] [blame] | 109 | #define CONFIG_SYS_NAND_U_BOOT_SIZE 0x200000 |
| 110 | |
Frederik Kriewitz | 9939650 | 2009-08-23 12:56:42 +0200 | [diff] [blame] | 111 | #endif /* __CONFIG_H */ |