Skip to contentSkip to conversation

cmd: mmc: print serial number

PATCH New Christian Gmeiner 2 participants 2 messages Apr 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cmd: mmc: print serial number

Might be useful to see the serial number.

v2: add missing \n.

---
 cmd/mmc.c | 1 +
 1 file changed, 1 insertion(+)
cmd/mmc.c +1 -0
index 8bc3648193..df7fa77f19 100644
@@ -23,6 +23,7 @@ static void print_mmcinfo(struct mmc *mmc)
 	printf("Name: %c%c%c%c%c \n", mmc->cid[0] & 0xff,
 			(mmc->cid[1] >> 24), (mmc->cid[1] >> 16) & 0xff,
 			(mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff);
+	printf("Serial Number: %08x", (mmc->cid[2] << 16) | (mmc->cid[3] >> 16));
 
 	printf("Bus Speed: %d\n", mmc->clock);
 #if CONFIG_IS_ENABLED(MMC_VERBOSE)
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/1 cmd: mmc: print serial number

Quoted 3 lines · Christian Gmeiner

Might be useful to see the serial number.

v2: add missing \n.

Seems to be still missing it...

Quoted 25 lines
---
 cmd/mmc.c | 1 +
 1 file changed, 1 insertion(+)
cmd/mmc.c +1 -0
index 8bc3648193..df7fa77f19 100644
@@ -23,6 +23,7 @@ static void print_mmcinfo(struct mmc *mmc)
 	printf("Name: %c%c%c%c%c \n", mmc->cid[0] & 0xff,
 			(mmc->cid[1] >> 24), (mmc->cid[1] >> 16) & 0xff,
 			(mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff);
+	printf("Serial Number: %08x", (mmc->cid[2] << 16) | (mmc->cid[3] >> 16));
 
 	printf("Bus Speed: %d\n", mmc->clock);
 #if CONFIG_IS_ENABLED(MMC_VERBOSE)
Signature · 6 lines
2.20.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
Signature · 9 lines
Ismael Luceno <[email protected]>
+34 934452260 ext. FIXME
Travessera de les Corts 302 Bajos, 08029 Barcelona, Spain

www.silicon-gears.com - https://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=www.tttech%2dauto.com&umid=91B3E3F1-8606-0305-846A-D0D55193D401&auth=f8241f1c8cf77d8be30df2a6f4bc3326a0af57ee-ecfe9445d45c61a6ce695bc4e8b86a5200a31791

Warning: This e-mail is privileged, confidential and contains private information. 
Any reading, retention, distribution or copying of this communication by any person 
other than its intended recipient is prohibited.=