linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Eugene Surovegin <ebs@ebshome.net>
To: Roland Dreier <rolandd@cisco.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: What is OCP_FUNC_OPB ??
Date: Fri, 14 Oct 2005 02:03:24 -0700	[thread overview]
Message-ID: <20051014090324.GB2664@gate.ebshome.net> (raw)
In-Reply-To: <5264s12nen.fsf@cisco.com>

On Thu, Oct 13, 2005 at 01:05:20PM -0700, Roland Dreier wrote:
> While merging Ruslan Sushko's fix for GPIO and IIC addresses into my
> 440SPe tree, I noticed that ocp_core[] has an entry for a function
> OCP_FUNC_OPB.  I'd like to get this correct for the 440SPe port, but I
> don't see any users in the tree.
> 
> Is this field just used to create an entry in sysfs -- if so what does
> userspace use it for??  Or is it just completely obsolete?  What is
> the .paddr member supposed to represent?  Is it just the base address
> of the whole OPB region?
> 
> Is it worth applying the patch below (according to the 440SP manual,
> the OPB region starts at 0x1 f000 0000), or should we just get rid of
> these entries entirely?
> 
> Thanks,
>   Roland
> 
> [PPC32] Correct OPB base address for PowerPC 440SP
> 
> Signed-off-by: Roland Dreier <rolandd@cisco.com>
> 
> ---
> 
> diff --git a/arch/ppc/platforms/4xx/ibm440sp.c b/arch/ppc/platforms/4xx/ibm440sp.c
> index feb17e4..0b7e462 100644
> --- a/arch/ppc/platforms/4xx/ibm440sp.c
> +++ b/arch/ppc/platforms/4xx/ibm440sp.c
> @@ -60,7 +60,7 @@ struct ocp_def core_ocp[] = {
>  	{ .vendor	= OCP_VENDOR_IBM,
>  	  .function	= OCP_FUNC_OPB,
>  	  .index	= 0,
> -	  .paddr	= 0x0000000140000000ULL,
> +	  .paddr	= 0x00000001f0000000ULL,
>  	  .irq		= OCP_IRQ_NA,
>  	  .pm		= OCP_CPM_NA,
>  	},


I think this is useless stuff. IIRC Ben added these fields when 
converting from Armin's OCP, I have no idea what he had in mind at 
the time (probably some "bus" object owning all "peripheral" objects).

I doubt anything in user/kernel-space uses it. IMHO we can safely 
remove these entries from all 4xx platform files.

-- 
Eugene

      reply	other threads:[~2005-10-14  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-13 20:05 What is OCP_FUNC_OPB ?? Roland Dreier
2005-10-14  9:03 ` Eugene Surovegin [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=20051014090324.GB2664@gate.ebshome.net \
    --to=ebs@ebshome.net \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=rolandd@cisco.com \
    /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;
as well as URLs for NNTP newsgroup(s).