mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Barry Song <21cnbao@gmail.com>
Cc: johnlinn@comcast.net, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux@arm.linux.org.uk,
	arnd@arndb.de, nicolas.pitre@linaro.org,
	John Linn <john.linn@xilinx.com>
Subject: Re: [PATCH V2] ARM: Xilinx: Adding Xilinx board support
Date: Tue, 14 Jun 2011 23:37:29 -0600	[thread overview]
Message-ID: <BANLkTinrBw1RsP09bwbmDJC9Pd5NguMEUQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=rV0K3J4rsPVKw73KRG-E2h_CE=A@mail.gmail.com>

On Tue, Jun 14, 2011 at 9:23 PM, Barry Song <21cnbao@gmail.com> wrote:
> 2011/5/18  <johnlinn@comcast.net>:
>> +static struct of_device_id zynq_of_bus_ids[] __initdata = {
>> +       { .compatible = "simple-bus", },
>> +       {}
>> +};
>> +
>> +/**
>> + * xilinx_init_machine() - System specific initialization, intended to be
>> + *                        called from board specific initialization.
>> + */
>> +void __init xilinx_init_machine(void)
>> +{
>> +#ifdef CONFIG_CACHE_L2X0
>> +       /*
>> +        * 64KB way size, 8-way associativity, parity disabled
>> +        */
>> +       l2x0_init(PL310_L2CC_BASE, 0x02060000, 0xF0F0FFFF);
>> +#endif
>> +
>> +       of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL);
>> +}
>
> it looks to me a common machine init function is calling a
> chip/board-special device probing. xilinx_init_machine  is calling
> zynq_of_bus_ids. what will happen if we add a new different with zynq?

The bus_ids are actually pretty generic.  I've got a patch in my tree
which I'll be posting soon that creates a generic bus id table that
most platforms can use.

g.

      reply	other threads:[~2011-06-15  5:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 18:31 johnlinn
2011-06-15  3:23 ` Barry Song
2011-06-15  5:37   ` Grant Likely [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=BANLkTinrBw1RsP09bwbmDJC9Pd5NguMEUQ@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=21cnbao@gmail.com \
    --cc=arnd@arndb.de \
    --cc=john.linn@xilinx.com \
    --cc=johnlinn@comcast.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=nicolas.pitre@linaro.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

all inboxes | Powered by JetHome®