mx53smd.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2011 Freescale Semiconductor, Inc.
  4. *
  5. * Configuration settings for the MX53SMD Freescale board.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #define CONFIG_MACH_TYPE MACH_TYPE_MX53_SMD
  10. #include <asm/arch/imx-regs.h>
  11. #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
  12. #define CONFIG_SETUP_MEMORY_TAGS
  13. #define CONFIG_INITRD_TAG
  14. #define CONFIG_REVISION_TAG
  15. #define CONFIG_SYS_FSL_CLK
  16. /* Size of malloc() pool */
  17. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
  18. #define CONFIG_MXC_UART_BASE UART1_BASE
  19. /* I2C Configs */
  20. #define CONFIG_SYS_I2C
  21. #define CONFIG_SYS_I2C_MXC
  22. #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
  23. #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
  24. #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
  25. /* MMC Configs */
  26. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  27. #define CONFIG_SYS_FSL_ESDHC_NUM 1
  28. /* Eth Configs */
  29. #define CONFIG_HAS_ETH1
  30. #define CONFIG_FEC_MXC
  31. #define IMX_FEC_BASE FEC_BASE_ADDR
  32. #define CONFIG_FEC_MXC_PHYADDR 0x1F
  33. /* Command definition */
  34. #define CONFIG_ETHPRIME "FEC0"
  35. #define CONFIG_LOADADDR 0x70800000 /* loadaddr env var */
  36. #define CONFIG_EXTRA_ENV_SETTINGS \
  37. "script=boot.scr\0" \
  38. "uimage=uImage\0" \
  39. "mmcdev=0\0" \
  40. "mmcpart=2\0" \
  41. "mmcroot=/dev/mmcblk0p3 rw\0" \
  42. "mmcrootfstype=ext3 rootwait\0" \
  43. "mmcargs=setenv bootargs console=ttymxc0,${baudrate} " \
  44. "root=${mmcroot} " \
  45. "rootfstype=${mmcrootfstype}\0" \
  46. "loadbootscript=" \
  47. "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
  48. "bootscript=echo Running bootscript from mmc ...; " \
  49. "source\0" \
  50. "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
  51. "mmcboot=echo Booting from mmc ...; " \
  52. "run mmcargs; " \
  53. "bootm\0" \
  54. "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
  55. "root=/dev/nfs " \
  56. "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
  57. "netboot=echo Booting from net ...; " \
  58. "run netargs; " \
  59. "dhcp ${uimage}; bootm\0" \
  60. #define CONFIG_BOOTCOMMAND \
  61. "mmc dev ${mmcdev}; if mmc rescan; then " \
  62. "if run loadbootscript; then " \
  63. "run bootscript; " \
  64. "else " \
  65. "if run loaduimage; then " \
  66. "run mmcboot; " \
  67. "else run netboot; " \
  68. "fi; " \
  69. "fi; " \
  70. "else run netboot; fi"
  71. #define CONFIG_ARP_TIMEOUT 200UL
  72. /* Miscellaneous configurable options */
  73. #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
  74. /* Physical Memory Map */
  75. #define PHYS_SDRAM_1 CSD0_BASE_ADDR
  76. #define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024)
  77. #define PHYS_SDRAM_2 CSD1_BASE_ADDR
  78. #define PHYS_SDRAM_2_SIZE (512 * 1024 * 1024)
  79. #define PHYS_SDRAM_SIZE (PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE)
  80. #define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM_1)
  81. #define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR)
  82. #define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE)
  83. #define CONFIG_SYS_INIT_SP_OFFSET \
  84. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  85. #define CONFIG_SYS_INIT_SP_ADDR \
  86. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  87. /* environment organization */
  88. #endif /* __CONFIG_H */