integrator-common.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2012
  4. * Linaro
  5. * Linus Walleij <linus.walleij@linaro.org>
  6. * Common ARM Integrator configuration settings
  7. */
  8. #define CONFIG_SYS_MEMTEST_START 0x100000
  9. #define CONFIG_SYS_MEMTEST_END 0x10000000
  10. #define CONFIG_SYS_TIMERBASE 0x13000100 /* Timer1 */
  11. #define CONFIG_SYS_LOAD_ADDR 0x7fc0 /* default load address */
  12. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) /* Size of malloc() pool */
  13. #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
  14. #define CONFIG_SETUP_MEMORY_TAGS
  15. #define CONFIG_MISC_INIT_R /* call misc_init_r during start up */
  16. /*
  17. * There are various dependencies on the core module (CM) fitted
  18. * Users should refer to their CM user guide
  19. */
  20. #include "armcoremodule.h"
  21. /*
  22. * Initialize and remap the core module, use SPD to detect memory size
  23. * If CONFIG_SKIP_LOWLEVEL_INIT is not defined &
  24. * the core module has a CM_INIT register
  25. * then the U-Boot initialisation code will
  26. * e.g. ARM Boot Monitor or pre-loader is repeated once
  27. * (to re-initialise any existing CM_INIT settings to safe values).
  28. *
  29. * This is usually not the desired behaviour since the platform
  30. * will either reboot into the ARM monitor (or pre-loader)
  31. * or continuously cycle thru it without U-Boot running,
  32. * depending upon the setting of Integrator/CP switch S2-4.
  33. *
  34. * However it may be needed if Integrator/CP switch S2-1
  35. * is set OFF to boot direct into U-Boot.
  36. * In that case comment out the line below.
  37. */
  38. #define CONFIG_CM_INIT
  39. #define CONFIG_CM_REMAP
  40. #define CONFIG_CM_SPD_DETECT
  41. /*
  42. * The ARM boot monitor initializes the board.
  43. * However, the default U-Boot code also performs the initialization.
  44. * If desired, this can be prevented by defining SKIP_LOWLEVEL_INIT
  45. * - see documentation supplied with board for details of how to choose the
  46. * image to run at reset/power up
  47. * e.g. whether the ARM Boot Monitor runs before U-Boot
  48. */
  49. /* #define CONFIG_SKIP_LOWLEVEL_INIT */
  50. /*
  51. * The ARM boot monitor does not relocate U-Boot.
  52. * However, the default U-Boot code performs the relocation check,
  53. * and may relocate the code if the memory map is changed.
  54. * If necessary this can be prevented by defining SKIP_RELOCATE_UBOOT
  55. */
  56. /* #define SKIP_CONFIG_RELOCATE_UBOOT */
  57. /*
  58. * Physical Memory Map
  59. */
  60. #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
  61. #define PHYS_SDRAM_1 0x00000000 /* SDRAM Bank #1 */
  62. #define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB */
  63. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  64. #define CONFIG_SYS_INIT_RAM_SIZE PHYS_SDRAM_1_SIZE
  65. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + \
  66. CONFIG_SYS_INIT_RAM_SIZE - \
  67. GENERATED_GBL_DATA_SIZE)
  68. #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_GBL_DATA_OFFSET
  69. /*
  70. * FLASH and environment organization
  71. * Top varies according to amount fitted
  72. * Reserve top 4 blocks of flash
  73. * - ARM Boot Monitor
  74. * - Unused
  75. * - SIB block
  76. * - U-Boot environment
  77. */
  78. #define CONFIG_SYS_FLASH_CFI 1
  79. #define CONFIG_FLASH_CFI_DRIVER 1
  80. #define CONFIG_SYS_FLASH_BASE 0x24000000
  81. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  82. /* Timeout values in ticks */
  83. #define CONFIG_SYS_FLASH_ERASE_TOUT (2 * CONFIG_SYS_HZ) /* Erase Timeout */
  84. #define CONFIG_SYS_FLASH_WRITE_TOUT (2 * CONFIG_SYS_HZ) /* Write Timeout */
  85. #define CONFIG_SYS_FLASH_PROTECTION /* The devices have real protection */
  86. #define CONFIG_SYS_FLASH_EMPTY_INFO /* flinfo indicates empty blocks */