nitrogen6x.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
  4. *
  5. * Configuration settings for the Boundary Devices Nitrogen6X
  6. * and Freescale i.MX6Q Sabre Lite boards.
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #include "mx6_common.h"
  11. #define CONFIG_MACH_TYPE 3769
  12. /* Size of malloc() pool */
  13. #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024)
  14. #define CONFIG_USBD_HS
  15. #define CONFIG_MXC_UART_BASE UART2_BASE
  16. /* I2C Configs */
  17. #define CONFIG_SYS_I2C
  18. #define CONFIG_SYS_I2C_MXC
  19. #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
  20. #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
  21. #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
  22. #define CONFIG_SYS_I2C_SPEED 100000
  23. #define CONFIG_I2C_EDID
  24. /* MMC Configs */
  25. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  26. #define CONFIG_SYS_FSL_USDHC_NUM 2
  27. /*
  28. * SATA Configs
  29. */
  30. #ifdef CONFIG_CMD_SATA
  31. #define CONFIG_SYS_SATA_MAX_DEVICE 1
  32. #define CONFIG_DWC_AHSATA_PORT_ID 0
  33. #define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
  34. #define CONFIG_LBA48
  35. #endif
  36. #define CONFIG_FEC_MXC
  37. #define IMX_FEC_BASE ENET_BASE_ADDR
  38. #define CONFIG_FEC_XCV_TYPE RGMII
  39. #define CONFIG_ETHPRIME "FEC"
  40. #define CONFIG_FEC_MXC_PHYADDR 6
  41. /* USB Configs */
  42. #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
  43. #define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */
  44. #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
  45. #define CONFIG_MXC_USB_FLAGS 0
  46. /* Framebuffer and LCD */
  47. #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (6 * 1024 * 1024)
  48. #define CONFIG_IMX_HDMI
  49. #define CONFIG_IMX_VIDEO_SKIP
  50. #ifdef CONFIG_CMD_MMC
  51. #define DISTRO_BOOT_DEV_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
  52. #else
  53. #define DISTRO_BOOT_DEV_MMC(func)
  54. #endif
  55. #ifdef CONFIG_CMD_SATA
  56. #define DISTRO_BOOT_DEV_SATA(func) func(SATA, sata, 0)
  57. #else
  58. #define DISTRO_BOOT_DEV_SATA(func)
  59. #endif
  60. #ifdef CONFIG_USB_STORAGE
  61. #define DISTRO_BOOT_DEV_USB(func) func(USB, usb, 0)
  62. #else
  63. #define DISTRO_BOOT_DEV_USB(func)
  64. #endif
  65. #ifdef CONFIG_CMD_PXE
  66. #define DISTRO_BOOT_DEV_PXE(func) func(PXE, pxe, na)
  67. #else
  68. #define DISTRO_BOOT_DEV_PXE(func)
  69. #endif
  70. #ifdef CONFIG_CMD_DHCP
  71. #define DISTRO_BOOT_DEV_DHCP(func) func(DHCP, dhcp, na)
  72. #else
  73. #define DISTRO_BOOT_DEV_DHCP(func)
  74. #endif
  75. #if defined(CONFIG_SABRELITE)
  76. #define FDTFILE "fdtfile=imx6q-sabrelite.dtb\0"
  77. #else
  78. /* FIXME: nitrogen6x covers multiple configs. Define fdtfile for each supported config. */
  79. #define FDTFILE
  80. #endif
  81. #define BOOT_TARGET_DEVICES(func) \
  82. DISTRO_BOOT_DEV_MMC(func) \
  83. DISTRO_BOOT_DEV_SATA(func) \
  84. DISTRO_BOOT_DEV_USB(func) \
  85. DISTRO_BOOT_DEV_PXE(func) \
  86. DISTRO_BOOT_DEV_DHCP(func)
  87. #include <config_distro_bootcmd.h>
  88. #include <linux/stringify.h>
  89. #define CONFIG_EXTRA_ENV_SETTINGS \
  90. "console=ttymxc1\0" \
  91. "fdt_high=0xffffffff\0" \
  92. "initrd_high=0xffffffff\0" \
  93. "fdt_addr_r=0x18000000\0" \
  94. FDTFILE \
  95. "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
  96. "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
  97. "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
  98. "ramdisk_addr_r=0x13000000\0" \
  99. "ramdiskaddr=0x13000000\0" \
  100. "ip_dyn=yes\0" \
  101. "usb_pgood_delay=2000\0" \
  102. BOOTENV
  103. /* Miscellaneous configurable options */
  104. /* Physical Memory Map */
  105. #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
  106. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  107. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  108. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  109. #define CONFIG_SYS_INIT_SP_OFFSET \
  110. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  111. #define CONFIG_SYS_INIT_SP_ADDR \
  112. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  113. /* Environment organization */
  114. /*
  115. * PCI express
  116. */
  117. #ifdef CONFIG_CMD_PCI
  118. #define CONFIG_PCI_SCAN_SHOW
  119. #define CONFIG_PCIE_IMX
  120. #endif
  121. #endif /* __CONFIG_H */