diff options
author | Tom Rini <trini@konsulko.com> | 2021-06-24 11:11:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-06-24 11:11:13 -0400 |
commit | 67edf2553f15e5148efca213af3f41cef3410680 (patch) | |
tree | c362fd9dc9446add0e24fd4d843dee32af2f299a /cmd | |
parent | 95eca8612b7ba790dfe5d72ce3269ef3a7cdae84 (diff) | |
parent | e41a2bc6b87397ef0aeda4132a8227d164cd592b (diff) | |
download | u-boot-67edf2553f15e5148efca213af3f41cef3410680.tar.gz u-boot-67edf2553f15e5148efca213af3f41cef3410680.tar.bz2 u-boot-67edf2553f15e5148efca213af3f41cef3410680.zip |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-spi into next
- SPI NOT OF partitions (Marek BehĂșn)
- Macronic SPI NAND (Jaime Liao)
- Macronix MX66UW2G345G SPI NOR (zhengxun)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mtd.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -126,6 +126,13 @@ static void mtd_show_device(struct mtd_info *mtd) printf(" - driver: %s\n", mtd->dev->driver->name); } #endif + if (IS_ENABLED(CONFIG_OF_CONTROL) && mtd->dev) { + char buf[256]; + int res; + + res = ofnode_get_path(mtd_get_ofnode(mtd), buf, 256); + printf(" - path: %s\n", res == 0 ? buf : "unavailable"); + } /* MTD device information */ printf(" - type: "); @@ -535,7 +542,7 @@ static char mtd_help_text[] = "mtd bad <name>\n" "\n" "With:\n" - "\t<name>: NAND partition/chip name\n" + "\t<name>: NAND partition/chip name (or corresponding DM device name or OF path)\n" "\t<addr>: user address from/to which data will be retrieved/stored\n" "\t<off>: offset in <name> in bytes (default: start of the part)\n" "\t\t* must be block-aligned for erase\n" |