blob: d457e2030814752fe505292e71b6ca90a60f5ffc [file] [log] [blame]
Faiz Abbas13b67702019-10-15 18:24:41 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
4 *
5 * Environment variable definitions for UFS on TI boards.
6 */
7
8#ifndef __TI_UFS_H
9#define __TI_UFS_H
10
11#define DEFAULT_UFS_TI_ARGS \
12 "scsirootfstype=ext4 rootwait\0" \
13 "ufs_finduuid=part uuid scsi ${bootpart} uuid\0" \
14 "args_ufs=setenv devtype scsi;setenv bootpart 1:1;" \
15 "run ufs_finduuid;setenv bootargs console = ${console} " \
16 "${optargs}" \
17 "root=PARTUUID=${uuid} rw " \
18 "rootfstype=${scsirootfstype};" \
19 "setenv devtype scsi;" \
20 "setenv bootpart 1:1\0" \
21 "init_ufs=ufs init; scsi scan; run args_ufs\0" \
22 "get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}\0" \
23 "get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
24 "get_overlay_ufs=" \
25 "fdt address ${fdtaddr};" \
26 "fdt resize 0x100000;" \
27 "for overlay in $name_overlays;" \
28 "do;" \
29 "load scsi ${bootpart} ${overlayaddr} ${bootdir}/${overlay} && " \
30 "fdt apply ${overlayaddr};" \
31 "done;\0"
32
33#endif