Merge tag 'x86-pull-20230809' of https://source.denx.de/u-boot/custodians/u-boot-x86
[platform/kernel/u-boot.git] / include / env / ti / nand.h
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
8 #ifdef CONFIG_MTD_RAW_NAND
9 #define NANDARGS \
10         "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
11         "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
12         "nandargs=setenv bootargs console=${console} " \
13                 "${optargs} " \
14                 "root=${nandroot} " \
15                 "rootfstype=${nandrootfstype}\0" \
16         "nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
17         "nandrootfstype=ubifs rootwait\0" \
18         "nandboot=echo Booting from nand ...; " \
19                 "run nandargs; " \
20                 "nand read ${fdtaddr} NAND.u-boot-spl-os; " \
21                 "nand read ${loadaddr} NAND.kernel; " \
22                 "bootz ${loadaddr} - ${fdtaddr}\0"
23 #else
24 #define NANDARGS ""
25 #endif