1 // SPDX-License-Identifier: GPL-2.0+
3 * ufs.c - UFS specific U-boot commands
5 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
12 static int do_ufs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
17 if (!strcmp(argv[1], "init")) {
19 dev = simple_strtoul(argv[2], NULL, 10);
20 ret = ufs_probe_dev(dev);
22 return CMD_RET_FAILURE;
27 return CMD_RET_SUCCESS;
34 U_BOOT_CMD(ufs, 3, 1, do_ufs,
36 "init [dev] - init UFS subsystem\n"