ts4600.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2016 Savoir-faire Linux Inc.
  4. *
  5. * Author: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
  6. *
  7. * Derived from MX28EVK code by
  8. * Fabio Estevam <fabio.estevam@freescale.com>
  9. * Freescale Semiconductor, Inc.
  10. *
  11. * Configuration settings for the TS4600 Board
  12. */
  13. #ifndef __CONFIGS_TS4600_H__
  14. #define __CONFIGS_TS4600_H__
  15. /* U-Boot Commands */
  16. /* Memory configuration */
  17. #define PHYS_SDRAM_1 0x40000000 /* Base address */
  18. #define PHYS_SDRAM_1_SIZE 0x40000000 /* Max 1 GB RAM */
  19. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  20. /* Environment */
  21. /* Environment is in MMC */
  22. /* Boot Linux */
  23. #define CONFIG_LOADADDR 0x42000000
  24. #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
  25. /* Extra Environment */
  26. #define CONFIG_EXTRA_ENV_SETTINGS \
  27. "fdt_addr=0x41000000\0" \
  28. "loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} zImage\0" \
  29. "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} imx28-ts4600.dtb\0" \
  30. "loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot.ub\0" \
  31. "bootscript=echo Running bootscript from mmc...; " \
  32. "setenv mmcdev 0; " \
  33. "setenv mmcpart 2; " \
  34. "run loadbootscript && source ${loadaddr}; \0" \
  35. "sdboot=echo Booting from SD card ...; " \
  36. "setenv mmcdev 0; " \
  37. "setenv mmcpart 2; " \
  38. "setenv root /dev/mmcblk0p3; " \
  39. "run loadkernel && run loadfdt; \0" \
  40. "startbootsequence=run bootscript || run sdboot \0" \
  41. #define CONFIG_BOOTCOMMAND \
  42. "mmc rescan; " \
  43. "run startbootsequence; " \
  44. "setenv cmdline_append console=ttyAMA0,115200; " \
  45. "setenv bootargs root=${root} rootwait rw ${cmdline_append}; " \
  46. "bootz ${loadaddr} - ${fdt_addr}; "
  47. /* The rest of the configuration is shared */
  48. #include <configs/mxs.h>
  49. #endif /* __CONFIGS_TS4600_H__ */