nand.h 767 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
  4. *
  5. * Environment variable definitions for NAND on TI boards.
  6. */
  7. #ifdef CONFIG_MTD_RAW_NAND
  8. #define NANDARGS \
  9. "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
  10. "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
  11. "nandargs=setenv bootargs console=${console} " \
  12. "${optargs} " \
  13. "root=${nandroot} " \
  14. "rootfstype=${nandrootfstype}\0" \
  15. "nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
  16. "nandrootfstype=ubifs rootwait=1\0" \
  17. "nandboot=echo Booting from nand ...; " \
  18. "run nandargs; " \
  19. "nand read ${fdtaddr} NAND.u-boot-spl-os; " \
  20. "nand read ${loadaddr} NAND.kernel; " \
  21. "bootz ${loadaddr} - ${fdtaddr}\0"
  22. #else
  23. #define NANDARGS ""
  24. #endif