/include/configs/omap3_evm_quick_mmc.h

https://gitlab.com/ubuntu-omap/u-boot-omap5 · C Header · 101 lines · 36 code · 14 blank · 51 comment · 0 complexity · 9d141248f637d65d188026436b1bc80f MD5 · raw file

  1. /*
  2. * Configuration settings for quick boot from MMC 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_MMC_H
  20. #define __OMAP3_EVM_QUICK_MMC_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_MMC
  28. #define CONFIG_CMD_FAT
  29. /*
  30. * Board revision is detected by probing the Ethernet chip.
  31. *
  32. * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
  33. * this option can be removed. Generated binary is leaner by ~16Kbytes.
  34. */
  35. #define CONFIG_CMD_NET
  36. /* ----------------------------------------------------------------------------
  37. * Supported U-boot features
  38. * ----------------------------------------------------------------------------
  39. */
  40. #define CONFIG_SILENT_CONSOLE
  41. #define CONFIG_ENV_IS_NOWHERE
  42. /* ----------------------------------------------------------------------------
  43. * Supported hardware
  44. * ----------------------------------------------------------------------------
  45. */
  46. /* MMC */
  47. #define CONFIG_MMC
  48. #define CONFIG_GENERIC_MMC
  49. #define CONFIG_OMAP_HSMMC
  50. #define CONFIG_DOS_PARTITION
  51. /* -----------------------------------------------------------------------------
  52. * Include common board configuration
  53. * -----------------------------------------------------------------------------
  54. */
  55. #include "omap3_evm_common.h"
  56. /* -----------------------------------------------------------------------------
  57. * Default environment
  58. * -----------------------------------------------------------------------------
  59. */
  60. #define CONFIG_BOOTDELAY 0
  61. #define CONFIG_EXTRA_ENV_SETTINGS \
  62. "verify=no\0" \
  63. "silent=1"
  64. #define CONFIG_BOOTCOMMAND \
  65. "mmc rescan 0; " \
  66. "fatload mmc 0 0x82000000 uImage; " \
  67. "bootm 0x82000000;"
  68. /*
  69. * Update the bootargs as necessary e.g. size of memory, partition and fstype
  70. */
  71. #define CONFIG_BOOTARGS \
  72. "quiet " \
  73. "console=ttyO0,115200n8 " \
  74. "mem=128M " \
  75. "noinitrd " \
  76. "root=/dev/mmcblk0p2 rw " \
  77. "rootfstype=ext3 rootwait"
  78. /*
  79. * SPL
  80. */
  81. #define CONFIG_SPL_MMC_SUPPORT
  82. #define CONFIG_SPL_FAT_SUPPORT
  83. #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
  84. #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
  85. #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
  86. #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
  87. #endif /* __OMAP3_EVM_QUICK_MMC_H */