exynos7420-common.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Configuration settings for the Espresso7420 board.
  3. * Copyright (C) 2016 Samsung Electronics
  4. * Thomas Abraham <thomas.ab@samsung.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __CONFIG_EXYNOS7420_COMMON_H
  9. #define __CONFIG_EXYNOS7420_COMMON_H
  10. /* High Level Configuration Options */
  11. #define CONFIG_SAMSUNG /* in a SAMSUNG core */
  12. #define CONFIG_EXYNOS7420 /* Exynos7 Family */
  13. #define CONFIG_S5P
  14. #include <asm/arch/cpu.h> /* get chip and board defs */
  15. #include <linux/sizes.h>
  16. #define CONFIG_ARCH_CPU_INIT
  17. #define CONFIG_BOARD_EARLY_INIT_F
  18. /* Size of malloc() pool before and after relocation */
  19. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 << 20))
  20. /* Miscellaneous configurable options */
  21. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  22. #define CONFIG_SYS_PBSIZE 1024 /* Print Buffer Size */
  23. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  24. /* Boot Argument Buffer Size */
  25. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  26. /* select serial console configuration */
  27. #define CONFIG_BAUDRATE 115200
  28. /* FLASH and environment organization */
  29. #define CONFIG_SYS_NO_FLASH
  30. /* Timer input clock frequency */
  31. #define COUNTER_FREQUENCY 24000000
  32. /* Device Tree */
  33. #define CONFIG_DEVICE_TREE_LIST "exynos7420-espresso7420"
  34. /* IRAM Layout */
  35. #define CONFIG_IRAM_BASE 0x02100000
  36. #define CONFIG_IRAM_SIZE 0x58000
  37. #define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE)
  38. #define CPU_RELEASE_ADDR secondary_boot_addr
  39. /* Number of CPUs available */
  40. #define CONFIG_CORE_COUNT 0x8
  41. /* select serial console configuration */
  42. #define CONFIG_BAUDRATE 115200
  43. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x3E00000)
  44. #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
  45. #define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
  46. #define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
  47. #define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
  48. #define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
  49. #define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
  50. #define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
  51. #define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
  52. #define PHYS_SDRAM_5 (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
  53. #define PHYS_SDRAM_5_SIZE SDRAM_BANK_SIZE
  54. #define PHYS_SDRAM_6 (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
  55. #define PHYS_SDRAM_6_SIZE SDRAM_BANK_SIZE
  56. #define PHYS_SDRAM_7 (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
  57. #define PHYS_SDRAM_7_SIZE SDRAM_BANK_SIZE
  58. #define PHYS_SDRAM_8 (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
  59. #define PHYS_SDRAM_8_SIZE SDRAM_BANK_SIZE
  60. /* Configuration of ENV Blocks */
  61. #define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */
  62. #define BOOT_TARGET_DEVICES(func) \
  63. func(MMC, mmc, 1) \
  64. func(MMC, mmc, 0) \
  65. #ifndef MEM_LAYOUT_ENV_SETTINGS
  66. #define MEM_LAYOUT_ENV_SETTINGS \
  67. "bootm_size=0x10000000\0" \
  68. "kernel_addr_r=0x42000000\0" \
  69. "fdt_addr_r=0x43000000\0" \
  70. "ramdisk_addr_r=0x43300000\0" \
  71. "scriptaddr=0x50000000\0" \
  72. "pxefile_addr_r=0x51000000\0"
  73. #endif
  74. #ifndef EXYNOS_DEVICE_SETTINGS
  75. #define EXYNOS_DEVICE_SETTINGS \
  76. "stdin=serial\0" \
  77. "stdout=serial\0" \
  78. "stderr=serial\0"
  79. #endif
  80. #ifndef EXYNOS_FDTFILE_SETTING
  81. #define EXYNOS_FDTFILE_SETTING
  82. #endif
  83. #define CONFIG_EXTRA_ENV_SETTINGS \
  84. EXYNOS_DEVICE_SETTINGS \
  85. EXYNOS_FDTFILE_SETTING \
  86. MEM_LAYOUT_ENV_SETTINGS
  87. #endif /* __CONFIG_EXYNOS7420_COMMON_H */