udoo.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013 Freescale Semiconductor, Inc.
  4. *
  5. * Configuration settings for Udoo board.
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #include "mx6_common.h"
  10. #include "imx6_spl.h"
  11. /* Provide the MACH_TYPE value that the vendor kernel requires. */
  12. #define CONFIG_MACH_TYPE 4800
  13. /* Size of malloc() pool */
  14. #define CONFIG_SYS_MALLOC_LEN (2 * SZ_1M)
  15. #define CONFIG_MXC_UART_BASE UART2_BASE
  16. /* SATA Configs */
  17. #define CONFIG_LBA48
  18. /* MMC Configuration */
  19. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  20. #define CONFIG_EXTRA_ENV_SETTINGS \
  21. "console=ttymxc1,115200\0" \
  22. "fdt_high=0xffffffff\0" \
  23. "initrd_high=0xffffffff\0" \
  24. "fdtfile=undefined\0" \
  25. "fdt_addr=0x18000000\0" \
  26. "fdt_addr_r=0x18000000\0" \
  27. "ip_dyn=yes\0" \
  28. "mmcdev=0\0" \
  29. "mmcrootfstype=ext4\0" \
  30. "findfdt="\
  31. "if test ${board_rev} = MX6Q; then " \
  32. "setenv fdtfile imx6q-udoo.dtb; fi; " \
  33. "if test ${board_rev} = MX6DL; then " \
  34. "setenv fdtfile imx6dl-udoo.dtb; fi; " \
  35. "if test ${fdtfile} = undefined; then " \
  36. "echo WARNING: Could not determine dtb to use; fi\0" \
  37. "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
  38. "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
  39. "ramdisk_addr_r=0x13000000\0" \
  40. "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
  41. BOOTENV
  42. #define BOOT_TARGET_DEVICES(func) \
  43. func(MMC, mmc, 0) \
  44. func(SATA, sata, 0) \
  45. func(DHCP, dhcp, na)
  46. #include <config_distro_bootcmd.h>
  47. #include <linux/stringify.h>
  48. /* Physical Memory Map */
  49. #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
  50. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  51. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  52. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  53. #define CONFIG_SYS_INIT_SP_OFFSET \
  54. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  55. #define CONFIG_SYS_INIT_SP_ADDR \
  56. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  57. /* Environment organization */
  58. #endif /* __CONFIG_H * */