secomx6quq7.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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
  14. #define CONFIG_MXC_UART_BASE UART2_BASE
  15. #define CONFIG_SYS_MEMTEST_START 0x10000000
  16. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 500 * SZ_1M)
  17. /* MMC Configuration */
  18. #define CONFIG_SYS_FSL_USDHC_NUM 2
  19. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  20. /* Ethernet Configuration */
  21. #define CONFIG_FEC_MXC
  22. #define IMX_FEC_BASE ENET_BASE_ADDR
  23. #define CONFIG_FEC_XCV_TYPE RGMII
  24. #define CONFIG_ETHPRIME "FEC"
  25. #define CONFIG_FEC_MXC_PHYADDR 6
  26. #define CONFIG_EXTRA_ENV_SETTINGS \
  27. "netdev=eth0\0" \
  28. "ethprime=FEC0\0" \
  29. "netdev=eth0\0" \
  30. "ethprime=FEC0\0" \
  31. "uboot=u-boot.bin\0" \
  32. "kernel=uImage\0" \
  33. "nfsroot=/opt/eldk/arm\0" \
  34. "ip_local=10.0.0.5::10.0.0.1:255.255.255.0::eth0:off\0" \
  35. "ip_server=10.0.0.1\0" \
  36. "nfs_path=/targetfs \0" \
  37. "memory=mem=1024M\0" \
  38. "bootdev=mmc dev 0; ext2load mmc 0:1\0" \
  39. "root=root=/dev/mmcblk0p1\0" \
  40. "option=rootwait rw fixrtc rootflags=barrier=1\0" \
  41. "cpu_freq=arm_freq=996\0" \
  42. "setbootargs=setenv bootargs console=ttymxc1,115200 ${root}" \
  43. " ${option} ${memory} ${cpu_freq}\0" \
  44. "setbootargs_nfs=setenv bootargs console=ttymxc1,115200" \
  45. " root=/dev/nfs nfsroot=${ip_server}:${nfs_path}" \
  46. " nolock,wsize=4096,rsize=4096 ip=:::::eth0:dhcp" \
  47. " ${memory} ${cpu_freq}\0" \
  48. "setbootdev=setenv boot_dev ${bootdev} 10800000 /boot/uImage\0" \
  49. "bootcmd=run setbootargs; run setbootdev; run boot_dev;" \
  50. " bootm 0x10800000\0" \
  51. "stdin=serial\0" \
  52. "stdout=serial\0" \
  53. "stderr=serial\0"
  54. #define CONFIG_SYS_HZ 1000
  55. /* Physical Memory Map */
  56. #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
  57. #define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024)
  58. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  59. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  60. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  61. #define CONFIG_SYS_INIT_SP_OFFSET \
  62. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  63. #define CONFIG_SYS_INIT_SP_ADDR \
  64. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  65. /* Environment organization */
  66. #if defined(CONFIG_ENV_IS_IN_MMC)
  67. #define CONFIG_SYS_MMC_ENV_DEV 0
  68. #define CONFIG_DYNAMIC_MMC_DEVNO
  69. #endif
  70. #endif /* __CONFIG_H */