From: Ismael Luceno Cortes <ismael.luceno@silicon-gears.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] cmd: mmc: print serial number
Date: Mon, 8 Apr 2019 14:54:33 +0000 [thread overview]
Message-ID: <20190408145432.GC11826@kiki> (raw)
In-Reply-To: <20190408133841.25726-1-christian.gmeiner@gmail.com>
On 08/Apr/2019 15:38, Christian Gmeiner wrote:
> Might be useful to see the serial number.
>
> v2: add missing \n.
Seems to be still missing it...
>
> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
> ---
> cmd/mmc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/cmd/mmc.c b/cmd/mmc.c
> index 8bc3648193..df7fa77f19 100644
> --- a/cmd/mmc.c
> +++ b/cmd/mmc.c
> @@ -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)
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
--
Ismael Luceno <ismael.luceno@silicon-gears.com>
+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.=
prev parent reply other threads:[~2019-04-08 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-08 13:38 [U-Boot] [PATCH v2] cmd: mmc: print serial number Christian Gmeiner
2019-04-08 14:54 ` Ismael Luceno Cortes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190408145432.GC11826@kiki \
--to=ismael.luceno@silicon-gears.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox