secomx6quq7.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013 Seco S.r.l
  4. *
  5. * Configuration settings for the Seco Boards.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include "mx6_common.h"
  10. #define CONFIG_BOARD_REVISION_TAG
  11. /* Size of malloc() pool */
  12. #define CONFIG_SYS_MALLOC_LEN (10 * SZ_1M)
  13. #define CONFIG_MXC_UART_BASE UART2_BASE
  14. /* MMC Configuration */
  15. #define CONFIG_SYS_FSL_USDHC_NUM 2
  16. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  17. /* Ethernet Configuration */
  18. #define CONFIG_FEC_MXC
  19. #define IMX_FEC_BASE ENET_BASE_ADDR
  20. #define CONFIG_FEC_XCV_TYPE RGMII
  21. #define CONFIG_ETHPRIME "FEC"
  22. #define CONFIG_FEC_MXC_PHYADDR 6
  23. #define CONFIG_EXTRA_ENV_SETTINGS \
  24. "netdev=eth0\0" \
  25. "ethprime=FEC0\0" \
  26. "netdev=eth0\0" \
  27. "ethprime=FEC0\0" \
  28. "uboot=u-boot.bin\0" \
  29. "kernel=uImage\0" \
  30. "nfsroot=/opt/eldk/arm\0" \
  31. "ip_local=10.0.0.5::10.0.0.1:255.255.255.0::eth0:off\0" \
  32. "ip_server=10.0.0.1\0" \
  33. "nfs_path=/targetfs \0" \
  34. "memory=mem=1024M\0" \
  35. "bootdev=mmc dev 0; ext2load mmc 0:1\0" \
  36. "root=root=/dev/mmcblk0p1\0" \
  37. "option=rootwait rw fixrtc rootflags=barrier=1\0" \
  38. "cpu_freq=arm_freq=996\0" \
  39. "setbootargs=setenv bootargs console=ttymxc1,115200 ${root}" \
  40. " ${option} ${memory} ${cpu_freq}\0" \
  41. "setbootargs_nfs=setenv bootargs console=ttymxc1,115200" \
  42. " root=/dev/nfs nfsroot=${ip_server}:${nfs_path}" \
  43. " nolock,wsize=4096,rsize=4096 ip=:::::eth0:dhcp" \
  44. " ${memory} ${cpu_freq}\0" \
  45. "setbootdev=setenv boot_dev ${bootdev} 10800000 /boot/uImage\0" \
  46. "bootcmd=run setbootargs; run setbootdev; run boot_dev;" \
  47. " bootm 0x10800000\0" \
  48. "stdin=serial\0" \
  49. "stdout=serial\0" \
  50. "stderr=serial\0"
  51. #define CONFIG_SYS_HZ 1000
  52. /* Physical Memory Map */
  53. #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
  54. #define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024)
  55. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  56. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  57. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  58. #define CONFIG_SYS_INIT_SP_OFFSET \
  59. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  60. #define CONFIG_SYS_INIT_SP_ADDR \
  61. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  62. /* Environment organization */
  63. #if defined(CONFIG_ENV_IS_IN_MMC)
  64. #define CONFIG_DYNAMIC_MMC_DEVNO
  65. #endif
  66. #endif /* __CONFIG_H */