linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Complete ccsr map for mpc8540 available?
@ 2005-05-30 15:03 Clemens Koller
  2005-05-31 15:17 ` Kumar Gala
  0 siblings, 1 reply; 5+ messages in thread
From: Clemens Koller @ 2005-05-30 15:03 UTC (permalink / raw)
  To: linuxppc-embedded

Hi, There!

I want to access the local bus controller (LBC) registers
of the mpc8540 from within a module.
Therefore I want to use similar structures as for the 8560's cpm2_immr
or the 8xx. However, I was not able to find a complete ccsr map for the 
mpc8540 in the 2.6.11.x kernels. (immap_85xx.h, 8xx_immr.h, ...)

Can someone point me to get the memc_brx / orx and friends for mpc8540?
(the complete CCSR map.) Or some code to recycle?
Or do I need to patch more into immap_85xx.h on my own? I just want to
avoid to do duplicate work.

Or is it better to extend the fsl_ocp or the platform device structures?

Thanks,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

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

* Re: Complete ccsr map for mpc8540 available?
  2005-05-30 15:03 Complete ccsr map for mpc8540 available? Clemens Koller
@ 2005-05-31 15:17 ` Kumar Gala
  2005-05-31 16:03   ` Clemens Koller
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2005-05-31 15:17 UTC (permalink / raw)
  To: Clemens Koller; +Cc: linuxppc-embedded


On May 30, 2005, at 10:03 AM, Clemens Koller wrote:

> Hi, There!
>
> I want to access the local bus controller (LBC) registers
> of the mpc8540 from within a module.
> Therefore I want to use similar structures as for the 8560's cpm2_immr
> or the 8xx. However, I was not able to find a complete ccsr map for the
> mpc8540 in the 2.6.11.x kernels. (immap_85xx.h, 8xx_immr.h, ...)
>
> Can someone point me to get the memc_brx / orx and friends for mpc8540?
> (the complete CCSR map.) Or some code to recycle?
> Or do I need to patch more into immap_85xx.h on my own? I just want to
> avoid to do duplicate work.
>
> Or is it better to extend the fsl_ocp or the platform device 
> structures?

What do you plan on doing with the local bus controller in the kernel?  
If this is only configuration of the controller for a given chip select 
that I would suggest doing something similar to how we handle PCI.  You 
can probably find a description of the localbus registers in the u-boot 
source tree.

Is this a change you want to get back into the mainline kernel tree?

- kumar

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

* Re: Complete ccsr map for mpc8540 available?
  2005-05-31 15:17 ` Kumar Gala
@ 2005-05-31 16:03   ` Clemens Koller
  2005-05-31 16:08     ` Kumar Gala
  0 siblings, 1 reply; 5+ messages in thread
From: Clemens Koller @ 2005-05-31 16:03 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

Hello, Kumar!

Yes, I want to add another Local Bus Address Range for our FPGA on
an extra CS line. I've tried to do that in U-Boot as the Code is already there.
But my modified (some old 1.1.2 (not the official release) version) U-Boot
didn't work (I guess compiling issues) and rendered my Board non-bootable, which
was really no fun!
I also want to play around with the bus-timing and GPCM/UPM configurations.
So, changing U-Boot for every little waitstate and re-booting just to get
a register changed is a showstopper for me. (Yes, I know, a BDI2000 would be fun).
So I decided to do all my stuff first in linux in a module to shorten the design
cycle by a factor of 1E+3 which works fine now, as I started this immr_t thingy
for mpc8540 on my own...

Now it seems that u-boot's immap_85xx.h is pretty much what I was looking
for, I will try to merge my stuff with it and get a immap_8540.h out of it.
So, you answered my question indirectly (get back to mainline) that there
is no code available on the linux side yet, right?

I can release my stuff, if anybody is interested... no problem.
The LBC part is verified (some others are dummys and untested) and in
a /works for me/ state.

Thanks and best greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

>> Hi, There!
>>
>> I want to access the local bus controller (LBC) registers
>> of the mpc8540 from within a module.
>> Therefore I want to use similar structures as for the 8560's cpm2_immr
>> or the 8xx. However, I was not able to find a complete ccsr map for the
>> mpc8540 in the 2.6.11.x kernels. (immap_85xx.h, 8xx_immr.h, ...)
>>
>> Can someone point me to get the memc_brx / orx and friends for mpc8540?
>> (the complete CCSR map.) Or some code to recycle?
>> Or do I need to patch more into immap_85xx.h on my own? I just want to
>> avoid to do duplicate work.
>>
>> Or is it better to extend the fsl_ocp or the platform device structures?
> 
> 
> What do you plan on doing with the local bus controller in the kernel?  
> If this is only configuration of the controller for a given chip select 
> that I would suggest doing something similar to how we handle PCI.  You 
> can probably find a description of the localbus registers in the u-boot 
> source tree.
> 
> Is this a change you want to get back into the mainline kernel tree?
> 
> - kumar
> 

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

* Re: Complete ccsr map for mpc8540 available?
  2005-05-31 16:03   ` Clemens Koller
@ 2005-05-31 16:08     ` Kumar Gala
  2005-05-31 16:17       ` Clemens Koller
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2005-05-31 16:08 UTC (permalink / raw)
  To: Clemens Koller; +Cc: linuxppc-embedded


On May 31, 2005, at 11:03 AM, Clemens Koller wrote:

> Hello, Kumar!
>
> Yes, I want to add another Local Bus Address Range for our FPGA on
> an extra CS line. I've tried to do that in U-Boot as the Code is 
> already there.
> But my modified (some old 1.1.2 (not the official release) version) 
> U-Boot
> didn't work (I guess compiling issues) and rendered my Board 
> non-bootable, which
> was really no fun!
> I also want to play around with the bus-timing and GPCM/UPM 
> configurations.
> So, changing U-Boot for every little waitstate and re-booting just to 
> get
> a register changed is a showstopper for me. (Yes, I know, a BDI2000 
> would be fun).
> So I decided to do all my stuff first in linux in a module to shorten 
> the design
> cycle by a factor of 1E+3 which works fine now, as I started this 
> immr_t thingy
> for mpc8540 on my own...
>
> Now it seems that u-boot's immap_85xx.h is pretty much what I was 
> looking
> for, I will try to merge my stuff with it and get a immap_8540.h out 
> of it.
> So, you answered my question indirectly (get back to mainline) that 
> there
> is no code available on the linux side yet, right?

Yes, that was my thinking.  You can grab just the lbc bits and put them 
in immap_85xx.h and do the same ioremap thing we do for pci in 
arch/ppc/syslib/ppc85xx_setup.c.

> I can release my stuff, if anybody is interested... no problem.
> The LBC part is verified (some others are dummys and untested) and in
> a /works for me/ state.

It sounds like this is custom to your board so I wouldn't bother 
releasing it out unless it something you want to get into the standard 
kernel tree.

- kumar

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

* Re: Complete ccsr map for mpc8540 available?
  2005-05-31 16:08     ` Kumar Gala
@ 2005-05-31 16:17       ` Clemens Koller
  0 siblings, 0 replies; 5+ messages in thread
From: Clemens Koller @ 2005-05-31 16:17 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

Hello, Kumar!

 > > [...]
> Yes, that was my thinking.  You can grab just the lbc bits and put them 
> in immap_85xx.h and do the same ioremap thing we do for pci in 
> arch/ppc/syslib/ppc85xx_setup.c.

Yes, ioremap() and ioremap_nocache() works fine.
I just try to get the maximum speed out of the Local Bus Mapped dual port
SRAM in our FPGA.

>> I can release my stuff, if anybody is interested... no problem.
>> The LBC part is verified (some others are dummys and untested) and in
>> a /works for me/ state.
> 
> It sounds like this is custom to your board so I wouldn't bother 
> releasing it out unless it something you want to get into the standard 
> kernel tree.

Well, the immr is good for every mpc8540 and the other friends you know.
(more than me)

Greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

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

end of thread, other threads:[~2005-05-31 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 15:03 Complete ccsr map for mpc8540 available? Clemens Koller
2005-05-31 15:17 ` Kumar Gala
2005-05-31 16:03   ` Clemens Koller
2005-05-31 16:08     ` Kumar Gala
2005-05-31 16:17       ` Clemens Koller

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