omap3_evm_quick_nand.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. #ifndef __OMAP3_EVM_QUICK_NAND_H
  12. #define __OMAP3_EVM_QUICK_NAND_H
  13. #include <asm/arch/cpu.h>
  14. #include <asm/arch/omap.h>
  15. /* ----------------------------------------------------------------------------
  16. * Supported U-boot commands
  17. * ----------------------------------------------------------------------------
  18. */
  19. #define CONFIG_CMD_NAND
  20. /*
  21. * Board revision is detected by probing the Ethernet chip.
  22. *
  23. * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
  24. * this option can be removed. Generated binary is leaner by ~16Kbytes.
  25. */
  26. #define CONFIG_CMD_NET
  27. /* ----------------------------------------------------------------------------
  28. * Supported U-boot features
  29. * ----------------------------------------------------------------------------
  30. */
  31. #define CONFIG_SILENT_CONSOLE
  32. #define CONFIG_ENV_IS_NOWHERE
  33. /* -----------------------------------------------------------------------------
  34. * Include common board configuration
  35. * -----------------------------------------------------------------------------
  36. */
  37. #include "omap3_evm_common.h"
  38. /* -----------------------------------------------------------------------------
  39. * Default environment
  40. * -----------------------------------------------------------------------------
  41. */
  42. #define CONFIG_BOOTDELAY 0
  43. #define CONFIG_EXTRA_ENV_SETTINGS \
  44. "verify=no\0" \
  45. "silent=1"
  46. #define CONFIG_BOOTCOMMAND \
  47. "nandecc hw; " \
  48. "nand read.i 0x80000000 280000 300000; " \
  49. "bootm 0x80000000;"
  50. /*
  51. * Update the bootargs as necessary e.g. size of memory, partition and fstype
  52. */
  53. #define CONFIG_BOOTARGS \
  54. "quiet " \
  55. "console=ttyO0,115200n8 " \
  56. "mem=128M " \
  57. "noinitrd " \
  58. "root=/dev/mtdblock4 rw " \
  59. "rootfstype=jffs2 "
  60. /*
  61. * SPL
  62. */
  63. #define CONFIG_SPL_NAND_SIMPLE
  64. #define CONFIG_SPL_NAND_SUPPORT
  65. #define CONFIG_SPL_NAND_BASE
  66. #define CONFIG_SPL_NAND_DRIVERS
  67. #define CONFIG_SPL_NAND_ECC
  68. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  69. #define CONFIG_SYS_NAND_PAGE_COUNT 64
  70. #define CONFIG_SYS_NAND_PAGE_SIZE 2048
  71. #define CONFIG_SYS_NAND_OOBSIZE 64
  72. #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
  73. #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
  74. #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
  75. 10, 11, 12, 13}
  76. #define CONFIG_SYS_NAND_ECCSIZE 512
  77. #define CONFIG_SYS_NAND_ECCBYTES 3
  78. #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
  79. #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
  80. #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
  81. #endif /* __OMAP3_EVM_QUICK_NAND_H */