Sanjeev Premi | 930b866 | 2011-10-25 06:11:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Configuration settings for quick boot from NAND on OMAP3 EVM. |
| 3 | * |
| 4 | * Copyright (C) 2006-2010 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
| 6 | * Author : |
| 7 | * Sanjeev Premi <premi@ti.com> |
| 8 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Sanjeev Premi | 930b866 | 2011-10-25 06:11:32 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __OMAP3_EVM_QUICK_NAND_H |
| 13 | #define __OMAP3_EVM_QUICK_NAND_H |
| 14 | |
| 15 | #include <asm/arch/cpu.h> |
Nishanth Menon | fa96c96 | 2015-03-09 17:12:04 -0500 | [diff] [blame] | 16 | #include <asm/arch/omap.h> |
Sanjeev Premi | 930b866 | 2011-10-25 06:11:32 +0000 | [diff] [blame] | 17 | |
| 18 | /* ---------------------------------------------------------------------------- |
| 19 | * Supported U-boot commands |
| 20 | * ---------------------------------------------------------------------------- |
| 21 | */ |
| 22 | #define CONFIG_CMD_NAND |
| 23 | |
| 24 | /* |
| 25 | * Board revision is detected by probing the Ethernet chip. |
| 26 | * |
| 27 | * When revision is statically configured via CONFIG_STATIC_BOARD_REV, |
| 28 | * this option can be removed. Generated binary is leaner by ~16Kbytes. |
| 29 | */ |
Sanjeev Premi | 930b866 | 2011-10-25 06:11:32 +0000 | [diff] [blame] | 30 | |
| 31 | /* ---------------------------------------------------------------------------- |
| 32 | * Supported U-boot features |
| 33 | * ---------------------------------------------------------------------------- |
| 34 | */ |
| 35 | #define CONFIG_SILENT_CONSOLE |
| 36 | #define CONFIG_ENV_IS_NOWHERE |
| 37 | |
| 38 | /* ----------------------------------------------------------------------------- |
| 39 | * Include common board configuration |
| 40 | * ----------------------------------------------------------------------------- |
| 41 | */ |
| 42 | #include "omap3_evm_common.h" |
| 43 | |
| 44 | /* ----------------------------------------------------------------------------- |
| 45 | * Default environment |
| 46 | * ----------------------------------------------------------------------------- |
| 47 | */ |
| 48 | #define CONFIG_BOOTDELAY 0 |
| 49 | |
| 50 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 51 | "verify=no\0" \ |
| 52 | "silent=1" |
| 53 | |
| 54 | #define CONFIG_BOOTCOMMAND \ |
| 55 | "nandecc hw; " \ |
| 56 | "nand read.i 0x80000000 280000 300000; " \ |
| 57 | "bootm 0x80000000;" |
| 58 | |
| 59 | /* |
| 60 | * Update the bootargs as necessary e.g. size of memory, partition and fstype |
| 61 | */ |
| 62 | #define CONFIG_BOOTARGS \ |
| 63 | "quiet " \ |
| 64 | "console=ttyO0,115200n8 " \ |
| 65 | "mem=128M " \ |
| 66 | "noinitrd " \ |
| 67 | "root=/dev/mtdblock4 rw " \ |
| 68 | "rootfstype=jffs2 " |
| 69 | |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 70 | /* |
| 71 | * SPL |
| 72 | */ |
| 73 | #define CONFIG_SPL_NAND_SIMPLE |
| 74 | #define CONFIG_SPL_NAND_SUPPORT |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 75 | #define CONFIG_SPL_NAND_BASE |
| 76 | #define CONFIG_SPL_NAND_DRIVERS |
| 77 | #define CONFIG_SPL_NAND_ECC |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 78 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 79 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 |
| 80 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 |
| 81 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
| 82 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) |
| 83 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 |
| 84 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ |
| 85 | 10, 11, 12, 13} |
| 86 | #define CONFIG_SYS_NAND_ECCSIZE 512 |
| 87 | #define CONFIG_SYS_NAND_ECCBYTES 3 |
pekon gupta | 3ef4973 | 2013-11-18 19:03:01 +0530 | [diff] [blame] | 88 | #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 89 | #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE |
| 90 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 |
| 91 | |
Sanjeev Premi | 930b866 | 2011-10-25 06:11:32 +0000 | [diff] [blame] | 92 | #endif /* __OMAP3_EVM_QUICK_NAND_H */ |