public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 3/3] ARM: OMAP: Expose omap tags as debugfs binary blob
Date: Tue, 22 Apr 2008 12:23:34 -0700	[thread overview]
Message-ID: <20080422192333.GG24257@atomide.com> (raw)
In-Reply-To: <1208848630-6771-3-git-send-email-Hiroshi.DOYU@nokia.com>

* Hiroshi DOYU <Hiroshi.DOYU@nokia.com> [080422 00:17]:
> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
> ---
>  arch/arm/plat-omap/common.c |   21 ++++++++++++++++++++-
>  1 files changed, 20 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
> index f80dab8..5a501e1 100644
> --- a/arch/arm/plat-omap/common.c
> +++ b/arch/arm/plat-omap/common.c
> @@ -289,7 +289,26 @@ void __init omap2_set_globals_343x(void)
>  #endif
>  
>  #ifdef CONFIG_DEBUG_FS
> +
>  struct dentry *omap_debugfs_root;
> +
> +#ifdef CONFIG_OMAP_BOOT_TAG
> +static int __init add_tag_blob(void)
> +{
> +	struct dentry *d;
> +	static struct debugfs_blob_wrapper blob;
> +
> +	blob.data = omap_bootloader_tag;
> +	blob.size = omap_bootloader_tag_len;
> +
> +	d = debugfs_create_blob("tag", 0444, omap_debugfs_root, &blob);
> +	if (IS_ERR(d))
> +		return PTR_ERR(d);
> +	return 0;
> +}
> +late_initcall(add_tag_blob);
> +#endif
> +
>  static int __init omap_debugfs_init(void)
>  {
>  	struct dentry *d;
> @@ -301,4 +320,4 @@ static int __init omap_debugfs_init(void)
>  	return 0;
>  }
>  arch_initcall(omap_debugfs_init);
> -#endif
> +#endif	/* CONFIG_DEBUG_FS */
> -- 
> 1.5.5.rc2.6.gf58d

The omap specific ATAGs are not going to mainline as discussed on
few occasions already over past few years..

We should convert all omap specific ATAGs to be arm generic ATAGs
and get rid of the rest and use data in board-*.c files. We can
add a generic ATAG_BOARD_REVISION or similar to set GPIO pins
in board-*.c files based on the board revision.

Tony

  reply	other threads:[~2008-04-22 19:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22  7:17 [PATCH 1/3] ARM: Create an ARM debugfs root Hiroshi DOYU
2008-04-22  7:17 ` [PATCH 2/3] ARM: OMAP: Create an OMAP " Hiroshi DOYU
2008-04-22  7:17   ` [PATCH 3/3] ARM: OMAP: Expose omap tags as debugfs binary blob Hiroshi DOYU
2008-04-22 19:23     ` Tony Lindgren [this message]
2008-04-22 19:18 ` [PATCH 1/3] ARM: Create an ARM debugfs root Tony Lindgren

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=20080422192333.GG24257@atomide.com \
    --to=tony@atomide.com \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    /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