Faiz Abbas | de304c5 | 2019-10-15 18:24:41 +0530 | [diff] [blame] | 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 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;" \ |
Nishanth Menon | 008d37a | 2020-10-07 21:47:59 -0500 | [diff] [blame] | 29 | "load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && " \ |
| 30 | "fdt apply ${dtboaddr};" \ |
Faiz Abbas | de304c5 | 2019-10-15 18:24:41 +0530 | [diff] [blame] | 31 | "done;\0" |
| 32 | |
| 33 | #endif |