smdkv310.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. * Copyright (C) 2011 Samsung Electronics
  3. *
  4. * Configuration settings for the SAMSUNG SMDKV310 (EXYNOS4210) board.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. /* High Level Configuration Options */
  11. #define CONFIG_SAMSUNG 1 /* in a SAMSUNG core */
  12. #define CONFIG_S5P 1 /* S5P Family */
  13. #define CONFIG_EXYNOS4 /* EXYNOS4 Family */
  14. #define CONFIG_EXYNOS4210 1 /* which is a EXYNOS4210 SoC */
  15. #define CONFIG_SMDKV310 1 /* working with SMDKV310*/
  16. #include <asm/arch/cpu.h> /* get chip and board defs */
  17. #define CONFIG_ARCH_CPU_INIT
  18. #define CONFIG_DISPLAY_CPUINFO
  19. #define CONFIG_DISPLAY_BOARDINFO
  20. #define CONFIG_BOARD_EARLY_INIT_F
  21. /* Mach Type */
  22. #define CONFIG_MACH_TYPE MACH_TYPE_SMDKV310
  23. #define CONFIG_SYS_SDRAM_BASE 0x40000000
  24. #define CONFIG_SYS_TEXT_BASE 0x43E00000
  25. /* input clock of PLL: SMDKV310 has 24MHz input clock */
  26. #define CONFIG_SYS_CLK_FREQ 24000000
  27. #define CONFIG_SETUP_MEMORY_TAGS
  28. #define CONFIG_CMDLINE_TAG
  29. #define CONFIG_INITRD_TAG
  30. #define CONFIG_CMDLINE_EDITING
  31. /* Handling Sleep Mode*/
  32. #define S5P_CHECK_SLEEP 0x00000BAD
  33. #define S5P_CHECK_DIDLE 0xBAD00000
  34. #define S5P_CHECK_LPA 0xABAD0000
  35. /* Size of malloc() pool */
  36. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20))
  37. /* select serial console configuration */
  38. #define CONFIG_SERIAL1 1 /* use SERIAL 1 */
  39. #define CONFIG_BAUDRATE 115200
  40. #define EXYNOS4_DEFAULT_UART_OFFSET 0x010000
  41. /* SD/MMC configuration */
  42. #define CONFIG_GENERIC_MMC
  43. #define CONFIG_MMC
  44. #define CONFIG_SDHCI
  45. #define CONFIG_S5P_SDHCI
  46. /* PWM */
  47. #define CONFIG_PWM 1
  48. /* allow to overwrite serial and ethaddr */
  49. #define CONFIG_ENV_OVERWRITE
  50. /* Command definition*/
  51. #include <config_cmd_default.h>
  52. #define CONFIG_CMD_PING
  53. #define CONFIG_CMD_ELF
  54. #define CONFIG_CMD_DHCP
  55. #define CONFIG_CMD_MMC
  56. #define CONFIG_CMD_NET
  57. #define CONFIG_CMD_FAT
  58. #define CONFIG_BOOTDELAY 3
  59. #define CONFIG_ZERO_BOOTDELAY_CHECK
  60. /* MMC SPL */
  61. #define CONFIG_SPL 1
  62. #define CONFIG_SKIP_LOWLEVEL_INIT
  63. #define COPY_BL2_FNPTR_ADDR 0x00002488
  64. #define CONFIG_SPL_TEXT_BASE 0x02021410
  65. #define CONFIG_BOOTCOMMAND "fatload mmc 0 40007000 uImage; bootm 40007000"
  66. /* Miscellaneous configurable options */
  67. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  68. #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
  69. #define CONFIG_SYS_PROMPT "SMDKV310 # "
  70. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size*/
  71. #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
  72. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  73. #define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
  74. /* Boot Argument Buffer Size */
  75. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  76. /* memtest works on */
  77. #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
  78. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x6000000)
  79. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
  80. /* SMDKV310 has 4 bank of DRAM */
  81. #define CONFIG_NR_DRAM_BANKS 4
  82. #define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
  83. #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
  84. #define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
  85. #define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
  86. #define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
  87. #define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
  88. #define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
  89. #define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
  90. #define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
  91. /* FLASH and environment organization */
  92. #define CONFIG_SYS_NO_FLASH 1
  93. #undef CONFIG_CMD_IMLS
  94. #define CONFIG_IDENT_STRING " for SMDKC210/V310"
  95. #define CONFIG_CLK_1000_400_200
  96. /* MIU (Memory Interleaving Unit) */
  97. #define CONFIG_MIU_2BIT_INTERLEAVED
  98. #define CONFIG_ENV_IS_IN_MMC 1
  99. #define CONFIG_SYS_MMC_ENV_DEV 0
  100. #define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */
  101. #define RESERVE_BLOCK_SIZE (512)
  102. #define BL1_SIZE (16 << 10) /*16 K reserved for BL1*/
  103. #define CONFIG_ENV_OFFSET (RESERVE_BLOCK_SIZE + BL1_SIZE)
  104. #define CONFIG_DOS_PARTITION 1
  105. #define CONFIG_SPL_LDSCRIPT "board/samsung/common/exynos-uboot-spl.lds"
  106. #define CONFIG_SPL_MAX_FOOTPRINT (14 * 1024)
  107. #define CONFIG_SYS_INIT_SP_ADDR 0x02040000
  108. /* U-boot copy size from boot Media to DRAM.*/
  109. #define COPY_BL2_SIZE 0x80000
  110. #define BL2_START_OFFSET ((CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)/512)
  111. #define BL2_SIZE_BLOC_COUNT (COPY_BL2_SIZE/512)
  112. /* Ethernet Controllor Driver */
  113. #ifdef CONFIG_CMD_NET
  114. #define CONFIG_SMC911X
  115. #define CONFIG_SMC911X_BASE 0x5000000
  116. #define CONFIG_SMC911X_16_BIT
  117. #define CONFIG_ENV_SROM_BANK 1
  118. #endif /*CONFIG_CMD_NET*/
  119. /* Enable devicetree support */
  120. #define CONFIG_OF_LIBFDT
  121. #endif /* __CONFIG_H */