From: Peter Mendham <petermendham@computing.dundee.ac.uk>
To: Andrei Konovalov <akonovalov@ru.mvista.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Using Linux 2.6.19 with Xilinx ML405
Date: Wed, 04 Apr 2007 12:51:36 +0100 [thread overview]
Message-ID: <46139148.1080308@computing.dundee.ac.uk> (raw)
In-Reply-To: <46128E70.50503@ru.mvista.com>
Hi Andrei,
Thanks for your reply
> CONFIG_PPC_OCP and ppc_sys_platform_devices related problems are due
> to the kernel.org tree stopped using the OCP infrastructure in favor
> of ppc_sys stuff (originally created for Freescale 8xx/8xxx SOCs).
Excellent - thanks for explaining this. I had wondered whether this was
the case but didn't want to do anything drastic without understanding
what was going on.
> What BSP vesion have you selected in the xps? As far as I can tell,
> linux_2_6_v1_00_a uses the approach similar to 2.6 kernel based
> MontaVista LSP: "manual" registration of all the devices in
> arch/ppc/platforms/4xx/virtex.c, static int __init
> xilinx_platform_init(void). The only exception are 16x50 compatible
> UARTs, that rely on struct ocp_def core_ocp[] etc.
I had selected linux_2_6_v1_00_a also, I just wasn't sure how "current"
some of the generated code was.
> At the moment I am doing some rework of our code (includes rebasing
> the patches against a more-or-less recent kernel.org tree). My plan is
> to drop both PPC_OCP and ppc_sys, and register all the devices inside
> xilinx_platform_init(). For Xilinx'es using ppc_sys adds no value but
> some unneeded complexity. And it seems ppc_sys is no longer
> used/supported after Freescale 8xx/8xxx SOCs moved to arc/powerpc?
> Having all the device registration (and references to xparameters.h as
> well!) in one place IMHO would make it easier to move Xilinx based
> boards to arc/powerpc (someday).
OK, that is also good to know. I buy your argument, so I'd like to use
the "manual" approach. However, when I tried compiling there was some
code that expected a ppc_sys_platform_devices (and a ppc_sys_specs). Am
I right in thinking that your patch sorts this out?
> Attached is the patch to get rid of both XILINX_OCP and ppc_sys for
> the Xilinx boards. With this patch applied it should be not so
> difficult to add the relevant entries to
> arch/ppc/platforms/4xx/virtex.c by copying them from the EDK generated
> linux_2_6_v1_00_a BSP. The patch is against 2.6.21-rc4 if it matters.
Brilliant! Thanks. The code your patch produces expects there to be an
8250 compatible UART around. What happens if I only have a UARTlite?
What do I need to fill in to a platform_device structure for a
UARTlite? I have just moved to 2.6.20 kernel in the hope of using the
mainline uartlite driver - was this a stupid thing to do? Do you know
if I can use it for early serial in the same way as an 8250?
Many thanks for your help,
-- Peter
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
next prev parent reply other threads:[~2007-04-04 11:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 13:09 Using Linux 2.6.19 with Xilinx ML405 Peter Mendham
2007-04-03 17:27 ` Andrei Konovalov
2007-04-04 11:51 ` Peter Mendham [this message]
2007-04-04 13:26 ` Peter Korsgaard
2007-04-19 6:28 ` David H. Lynch Jr.
2007-04-04 13:55 ` Andrei Konovalov
2007-04-04 14:30 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2007-04-04 15:15 Leonid
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=46139148.1080308@computing.dundee.ac.uk \
--to=petermendham@computing.dundee.ac.uk \
--cc=akonovalov@ru.mvista.com \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).