From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/85xx: compare actual device addresses with the device tree
Date: Tue, 16 Nov 2010 16:16:05 -0600 [thread overview]
Message-ID: <4CE302A5.8070608@freescale.com> (raw)
In-Reply-To: <20101110211312.EFBEAB195@gemini.denx.de>
Wolfgang Denk wrote:
>
>> > If we agree that this is adebug help, then please provide a separate
>> > command to perform this operation. Make this command optional (feel
>> > free to add it to the default list, but it must be possible to disable
>> > it if wanted). Then users who want this feature can add it to their
>> > boot command sequence, and others, who are interested in fast boot
>> > times can omit it.
>>
>> Would "fdt verify" be a good place?
>
> Yes, sounds good to me.
There is one problem -- a lot of the code is 85xx-specific. I'm not sure how to
reasonably make this feature available to all fdt-capable architectures. Would
you be okay with I enclosed it in an #ifdef CONFIG_MPC85xx, like this:
U_BOOT_CMD(
fdt, 255, 0, do_fdt,
"flattened device tree utility commands",
"addr <addr> [<length>] - Set the fdt location to <addr>\n"
#ifdef CONFIG_OF_BOARD_SETUP
"fdt boardsetup - Do board-specific set up\n"
#endif
"fdt move <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active\n"
...
#ifdef CONFIG_MPC85xx
"fdt verify - Verify the addresses in the device tree\n"
#endif
"NOTE: Dereference aliases by omiting the leading '/', "
"e.g. fdt print ethernet0."
);
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2010-11-16 22:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-09 23:01 [U-Boot] [PATCH] powerpc/85xx: compare actual device addresses with the device tree Timur Tabi
2010-11-10 19:51 ` Wolfgang Denk
2010-11-10 20:10 ` Timur Tabi
2010-11-10 20:34 ` Wolfgang Denk
2010-11-10 20:54 ` Timur Tabi
2010-11-10 21:13 ` Wolfgang Denk
2010-11-10 21:15 ` Timur Tabi
2010-11-10 21:30 ` Wolfgang Denk
2010-11-16 22:16 ` Timur Tabi [this message]
2010-11-16 23:10 ` Wolfgang Denk
2010-11-16 23:12 ` Timur Tabi
2010-11-16 23:29 ` Wolfgang Denk
2010-11-17 0:21 ` Tabi Timur-B04825
2010-11-10 21:12 ` Scott Wood
2010-11-10 21:30 ` Wolfgang Denk
2010-11-10 21:49 ` Scott Wood
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=4CE302A5.8070608@freescale.com \
--to=timur@freescale.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