mx6memcal.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2010-2018 Freescale Semiconductor, Inc.
  4. *
  5. * Configuration settings for the virtual mx6memcal board.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. /* SPL */
  10. #include "mx6_common.h"
  11. #include "imx6_spl.h"
  12. #undef CONFIG_MMC
  13. #undef CONFIG_SPL_MMC_SUPPORT
  14. #undef CONFIG_GENERIC_MMC
  15. #undef CONFIG_CMD_FUSE
  16. #define CONFIG_SYS_MEMTEST_START 0x10000000
  17. #define CONFIG_SYS_MEMTEST_END 0x20000000
  18. #define CONFIG_SYS_MALLOC_LEN (64 * 1024 * 1024)
  19. #define CONFIG_MXC_UART
  20. #ifdef CONFIG_SERIAL_CONSOLE_UART1
  21. #if defined(CONFIG_MX6SL)
  22. #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
  23. #else
  24. #define CONFIG_MXC_UART_BASE UART1_BASE
  25. #endif
  26. #elif defined(CONFIG_SERIAL_CONSOLE_UART2)
  27. #define CONFIG_MXC_UART_BASE UART2_BASE
  28. #else
  29. #error please define serial console (CONFIG_SERIAL_CONSOLE_UARTx)
  30. #endif
  31. #define CONFIG_BAUDRATE 115200
  32. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + 16)
  33. /* Physical Memory Map */
  34. #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
  35. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  36. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  37. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  38. #define CONFIG_SYS_INIT_SP_OFFSET \
  39. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  40. #define CONFIG_SYS_INIT_SP_ADDR \
  41. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  42. #define CONFIG_MXC_USB_PORTSC PORT_PTS_UTMI
  43. #endif /* __CONFIG_H */