omap3_zoom1.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2006-2008
  4. * Texas Instruments.
  5. * Richard Woodruff <r-woodruff2@ti.com>
  6. * Syed Mohammed Khasim <x0khasim@ti.com>
  7. * Nishanth Menon <nm@ti.com>
  8. *
  9. * Configuration settings for the TI OMAP3430 Zoom MDK board.
  10. */
  11. #ifndef __CONFIG_H
  12. #define __CONFIG_H
  13. #include <asm/arch/cpu.h> /* get chip and board defs */
  14. #include <asm/arch/omap.h>
  15. #include <configs/ti_omap3_common.h>
  16. /* Remove SPL boot option - we do not support that on LDP yet */
  17. /* Generic NAND definition conflicts with debug_base */
  18. #undef CONFIG_SYS_NAND_BASE
  19. #define CONFIG_REVISION_TAG 1
  20. /*
  21. * Hardware drivers
  22. */
  23. /* USB device configuration */
  24. #define CONFIG_USB_DEVICE 1
  25. #define CONFIG_USB_TTY 1
  26. /* Change these to suit your needs */
  27. #define CONFIG_USBD_VENDORID 0x0451
  28. #define CONFIG_USBD_PRODUCTID 0x5678
  29. #define CONFIG_USBD_MANUFACTURER "Texas Instruments"
  30. #define CONFIG_USBD_PRODUCT_NAME "Zoom1"
  31. #if defined(CONFIG_CMD_NAND)
  32. /* NAND: SPL falcon mode configs */
  33. #ifdef CONFIG_SPL_OS_BOOT
  34. #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
  35. #endif
  36. #endif
  37. /*
  38. * TWL4030
  39. */
  40. /*
  41. * Board NAND Info.
  42. */
  43. #define CONFIG_SYS_NAND_BASE NAND_BASE /* physical address */
  44. /* to access nand at */
  45. /* CS0 */
  46. /* Environment information */
  47. #define CONFIG_EXTRA_ENV_SETTINGS \
  48. "loadaddr=0x82000000\0" \
  49. "fdtaddr=0x80f80000\0" \
  50. "bootfile=uImage\0" \
  51. "fdtfile=omap3-ldp.dtb\0" \
  52. "bootdir=/\0" \
  53. "bootpart=0:1\0" \
  54. "usbtty=cdc_acm\0" \
  55. "console=ttyO2,115200n8\0" \
  56. "mmcdev=0\0" \
  57. "videomode=1024x768@60,vxres=1024,vyres=768\0" \
  58. "videospec=omapfb:vram:2M,vram:4M\0" \
  59. "mmcargs=setenv bootargs console=${console} " \
  60. "video=${videospec},mode:${videomode} " \
  61. "root=/dev/mmcblk0p2 rw " \
  62. "rootfstype=ext3 rootwait\0" \
  63. "nandargs=setenv bootargs console=${console} " \
  64. "video=${videospec},mode:${videomode} " \
  65. "root=/dev/mtdblock4 rw " \
  66. "rootfstype=jffs2\0" \
  67. "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
  68. "bootscript=echo Running bootscript from mmc ...; " \
  69. "source ${loadaddr}\0" \
  70. "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  71. "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  72. "loadzimage=setenv bootfile zImage; if run loadimage; then run loadfdt;fi\0"\
  73. "mmcboot=echo Booting from mmc ...; " \
  74. "run mmcargs; " \
  75. "bootm ${loadaddr}\0" \
  76. "mmczboot=echo Booting from mmc ...; " \
  77. "run mmcargs; " \
  78. "bootz ${loadaddr} - ${fdtaddr}\0" \
  79. "nandboot=echo Booting from nand ...; " \
  80. "run nandargs; " \
  81. "nand read ${loadaddr} 280000 400000; " \
  82. "bootm ${loadaddr}\0" \
  83. #define CONFIG_BOOTCOMMAND \
  84. "mmc dev ${mmcdev}; if mmc rescan; then " \
  85. "if run loadbootscript; then " \
  86. "run bootscript; " \
  87. "else " \
  88. "if run loadimage; then " \
  89. "run mmcboot; " \
  90. "else if run loadzimage; then " \
  91. "run mmczboot; " \
  92. "else run nandboot; " \
  93. "fi; fi;" \
  94. "fi; " \
  95. "else run nandboot; fi"
  96. /*
  97. * Miscellaneous configurable options
  98. */
  99. #define CONFIG_SYS_MEMTEST_START (PHYS_SDRAM_1) /* memtest */
  100. #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_2 + \
  101. 0x01F00000) /* 31MB */
  102. /*-----------------------------------------------------------------------
  103. * FLASH and environment organization
  104. */
  105. /* **** PISMO SUPPORT *** */
  106. #if defined(CONFIG_CMD_NAND)
  107. #define CONFIG_SYS_FLASH_BASE NAND_BASE
  108. #endif
  109. /* Monitor at start of flash */
  110. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  111. #define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
  112. #define ONENAND_ENV_OFFSET 0x260000 /* environment starts here */
  113. #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
  114. #endif /* __CONFIG_H */