linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Using Linux 2.6.19 with Xilinx ML405
@ 2007-04-04 15:15 Leonid
  0 siblings, 0 replies; 8+ messages in thread
From: Leonid @ 2007-04-04 15:15 UTC (permalink / raw)
  To: Peter Korsgaard, linuxppc-embedded

Take a look in 2.6.20 kernel - it's said to be supporting uartlite - u =
can port it back to 2.6.19.

-----Original Message-----
From: "Peter Korsgaard" <jacmet@sunsite.dk>
To: "linuxppc-embedded@ozlabs.org" <linuxppc-embedded@ozlabs.org>
Sent: 4/4/07 6:33 AM
Subject: Re: Using Linux 2.6.19 with Xilinx ML405

>>>>> "PM" =3D=3D Peter Mendham <petermendham@computing.dundee.ac.uk> =
writes:

Hi,

PM> Brilliant!  Thanks.  The code your patch produces expects there to
PM> be an 8250 compatible UART around.  What happens if I only have a
PM> UARTlite?  What do I need to fill in to a platform_device
PM> structure for a UARTlite?

Something like:

static struct resource myboarduartlite_resources[] =3D {
	[0] =3D {
		.start  =3D 0xa1000003,
		.end    =3D 0xa1000012,
		.flags  =3D IORESOURCE_MEM,
	},
	[1] =3D {
		.start	=3D 2,
		.end	=3D 2,
		.flags	=3D IORESOURCE_IRQ,
	},
};

static struct platform_device myboard_uartlite =3D {
	.name			=3D "uartlite",
	.id			=3D 0,
	.num_resources		=3D ARRAY_SIZE(myboarduartlite_resources),
	.resource		=3D myboarduartlite_resources,
};

static struct platform_device *myboard_devices[] __initdata =3D {
	..
	&myboard_uartlite,
        ..
};

static int __init
myboard_platform_add_devices(void)
{
	return platform_add_devices(myboard_devices,
                ARRAY_SIZE(myboard_devices));

}
arch_initcall(myboard_platform_add_devices);

Notice the +3 for the base address as the registers are accessed using
8bit I/O.

PM> I have just moved to 2.6.20 kernel in the hope of using the
PM> mainline uartlite driver - was this a stupid thing to do?

Not if you ask me ;)

PM> Do you know if I can use it for early serial in the same way as an
PM> 8250?

Unfortunately not. I started working on some patches for this some
months ago, but got stalled doing other stuff. I doubt it will get
integrated before the move to arch/powerpc.

--=20
Bye, Peter Korsgaard
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Using Linux 2.6.19 with Xilinx ML405
@ 2007-04-03 13:09 Peter Mendham
  2007-04-03 17:27 ` Andrei Konovalov
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Mendham @ 2007-04-03 13:09 UTC (permalink / raw)
  To: linuxppc-embedded

Dear all,

I am attempting to get a 2.6.19 kernel running on an ML405.  In the 
spirit of walking before I start to run, I have setup a very simple 
system with a 10/100 MAC, a UARTlite and the SystemACE controller (other 
than that, my EDK project has the DDR RAM,  some BRAM, an interrupt 
controller and the usual gubbins to get a system to work).  I am having 
some serious issues just getting the thing to compile so I was hoping to 
pick the brains of this list.  I would appreciate any tips on where I am 
going wrong.

First thing I did was to patch the kernel with the BSP from my EDK 
project (maybe this is my first mistake).  Several files #include 
config.h - I changed this to autoconf.h.  The ocp_def structure 
definition was being ignored because CONFIG_PPC_OCP was not defined - I 
altered some Kconfig files to ensure that when and an ML403 is selected 
XILINX_OCP is defined, and when that is defined PPC_OCP is also 
defined.  That solved that problem but left me with a missing definition 
for ppc_sys_platform_devices which was not present in virtex.c.  I added 
one but am a bit stuck as to what this should contain.  Another one I 
have seen lists a UART (which xilinx_ml403.c seems to depend upon).  But 
this is for a 8250-type UART.  How can I configure this for a UARTlite?  
Do I need to add an entry for the SystemACE?  I have already added an 
entry for the EMAC.

Any hints/experience would be gratefully received.

TIA,
-- 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-04-19 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 15:15 Using Linux 2.6.19 with Xilinx ML405 Leonid
  -- strict thread matches above, loose matches on Subject: below --
2007-04-03 13:09 Peter Mendham
2007-04-03 17:27 ` Andrei Konovalov
2007-04-04 11:51   ` Peter Mendham
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

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).