omap3_evm_quick_nand.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  15. * kind, whether express or implied; without even the implied warranty
  16. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. */
  19. #ifndef __OMAP3_EVM_QUICK_NAND_H
  20. #define __OMAP3_EVM_QUICK_NAND_H
  21. #include <asm/arch/cpu.h>
  22. #include <asm/arch/omap3.h>
  23. /* ----------------------------------------------------------------------------
  24. * Supported U-boot commands
  25. * ----------------------------------------------------------------------------
  26. */
  27. #define CONFIG_CMD_NAND
  28. /*
  29. * Board revision is detected by probing the Ethernet chip.
  30. *
  31. * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
  32. * this option can be removed. Generated binary is leaner by ~16Kbytes.
  33. */
  34. #define CONFIG_CMD_NET
  35. /* ----------------------------------------------------------------------------
  36. * Supported U-boot features
  37. * ----------------------------------------------------------------------------
  38. */
  39. #define CONFIG_SILENT_CONSOLE
  40. #define CONFIG_ENV_IS_NOWHERE
  41. /* -----------------------------------------------------------------------------
  42. * Include common board configuration
  43. * -----------------------------------------------------------------------------
  44. */
  45. #include "omap3_evm_common.h"
  46. /* -----------------------------------------------------------------------------
  47. * Default environment
  48. * -----------------------------------------------------------------------------
  49. */
  50. #define CONFIG_BOOTDELAY 0
  51. #define CONFIG_EXTRA_ENV_SETTINGS \
  52. "verify=no\0" \
  53. "silent=1"
  54. #define CONFIG_BOOTCOMMAND \
  55. "nandecc hw; " \
  56. "nand read.i 0x80000000 280000 300000; " \
  57. "bootm 0x80000000;"
  58. /*
  59. * Update the bootargs as necessary e.g. size of memory, partition and fstype
  60. */
  61. #define CONFIG_BOOTARGS \
  62. "quiet " \
  63. "console=ttyO0,115200n8 " \
  64. "mem=128M " \
  65. "noinitrd " \
  66. "root=/dev/mtdblock4 rw " \
  67. "rootfstype=jffs2 "
  68. /*
  69. * SPL
  70. */
  71. #define CONFIG_SPL_NAND_SIMPLE
  72. #define CONFIG_SPL_NAND_SUPPORT
  73. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  74. #define CONFIG_SYS_NAND_PAGE_COUNT 64
  75. #define CONFIG_SYS_NAND_PAGE_SIZE 2048
  76. #define CONFIG_SYS_NAND_OOBSIZE 64
  77. #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
  78. #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
  79. #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
  80. 10, 11, 12, 13}
  81. #define CONFIG_SYS_NAND_ECCSIZE 512
  82. #define CONFIG_SYS_NAND_ECCBYTES 3
  83. #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
  84. #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
  85. #endif /* __OMAP3_EVM_QUICK_NAND_H */