status of mpc52xx with arch=powerpc?
Is someone working on this already?
There are some Kconfig entries, but there seems to be no code, at least not in vanilla.
Sascha
Signature · 5 lines
Dipl.-Ing. Sascha Hauer | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9Quoted 4 lines · Sascha Hauer
Is someone working on this already?
There are some
Kconfigentries, but there seems to be no code, at least not in vanilla.
I'm slowly working on it. I've got a .dts written and I've got u-boot w/ the fdt patches running on the board. I need to port the 52xx PIC driver into arch/powerpc before I attempt to boot.
g.
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 9 lines · Grant Likely
Quoted 4 lines · Sascha Hauer
Is someone working on this already?
There are some
Kconfigentries, but there seems to be no code, at least not in vanilla.I'm slowly working on it. I've got a .dts written and I've got u-boot w/ the fdt patches running on the board. I need to port the 52xx PIC driver into
arch/powerpcbefore I attempt to boot.
Could you post your .dts?
I'm too working on it, so maybe we should stay synchronized. At the moment I have nothing but a minimal dts and some .progress() messages.
Sascha
Signature · 5 lines
Dipl.-Ing. Sascha Hauer | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9Hello,
Quoted 3 lines · Sascha Hauer
Could you post your .dts?
I'm too working on it, so maybe we should stay synchronized. At the moment I have nothing but a minimal dts and some .progress() messages.
Could you both double check e.g. with Sylvain Munaut at
There are many drivers (git heads) available already, including IDE, FEC, and so on. There's also new BestComm/FEC/IDE code from Dale Farnsworth and John Rigby (Freescale) somewhere on the net.
I've already opened my own branch using DENX 2.6 and several patches from Sylvain, Dale and John and got a first working 2.6 for the MPC5200 including DMA driven FEC and IDE. Sylvain promised to get in touch with the 2.6 maintainers to incorporate his changes into vanilla 2.6. I don't know if he still works on that since his server crashed a few months ago, that's why I didn't do anything about it.
Here's a part of a mail I got from John in 2006-05:
"Sylvain Munaut is working on a different bestcomm patch. It's much cleaner and is based on bestcomm code written by Dale Farnsworth.
You can search the mailing list for a pointer to Sylvain's git tree."
I assume that's what I have here, spinning around with 15k for a few months now.
Roman
Signature · 3 lines
Roman Fietze Telemotive AG Büro Mühlhausen Breitwiesen 73347 Mühlhausen Tel.: +49(0)7335/18493-45 http://www.telemotive.de
Quoted 11 lines · Roman Fietze
Hello,
Quoted 3 lines · Sascha Hauer
Could you post your .dts?
I'm too working on it, so maybe we should stay synchronized. At the moment I have nothing but a minimal dts and some .progress() messages.Could you both double check e.g. with Sylvain Munaut at
I have his tree here and and it does not seem to contain bits for mpc52xx with arch=powerpc (unless there are some git-secrets I'm not aware of)
Quoted 5 lines
There are many drivers (git heads) available already, including IDE, FEC, and so on. There's also new BestComm/FEC/IDE code from Dale Farnsworth and John Rigby (Freescale) somewhere on the net.
We have these drivers running already with arch=ppc. I have not looked into it deeper, but I think (well, hope) they only need minor changes like a transition from platform_device to of_device.
I just received a patch from nicolas det with a port from ppc to powerpc, I'll have a look at it. He posted it on linuxppc-dev
Sascha
Signature · 5 lines
Dipl.-Ing. Sascha Hauer | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9Quoted 1 line · Roman Fietze
Could you both double check e.g. with Sylvain Munaut at
If Sylvain is around and has available bandwidth, I'm sure he is monitoring this list.
Quoted 3 lines
There are many drivers (git heads) available already, including IDE, FEC, and so on. There's also new BestComm/FEC/IDE code from Dale Farnsworth and John Rigby (Freescale) somewhere on the net.
Yes, I'm using those patches; but they don't help with getting the mpc52xx moved over to arch/powerpc
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 6 lines · Last time I offered to help Sylvain with the migration to powerpc he said:
Frankly ... I don't know, I don't get how this new thing works ... if you figure it out, be my guest do it and explain it to me ;)
It would be great because I get this cleaned API sitting on my tree along with the IDE DMA and the FEC code that I'd really like to send ...
Unfortunately I haven't been able to work on it either.
Quoted 23 lines · Grant Likely
Quoted 1 line · Roman Fietze
Could you both double check e.g. with Sylvain Munaut at
If Sylvain is around and has available bandwidth, I'm sure he is monitoring this list.
Quoted 3 lines
There are many drivers (git heads) available already, including IDE, FEC, and so on. There's also new BestComm/FEC/IDE code from Dale Farnsworth and John Rigby (Freescale) somewhere on the net.
Yes, I'm using those patches; but they don't help with getting the mpc52xx moved over to
arch/powerpc--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 9 lines · Grant Likely
Quoted 4 lines · Sascha Hauer
Is someone working on this already?
There are some
Kconfigentries, but there seems to be no code, at least not in vanilla.I'm slowly working on it. I've got a .dts written and I've got u-boot w/ the fdt patches running on the board. I need to port the 52xx PIC driver into
arch/powerpcbefore I attempt to boot.
Can you send me your .dts ? The bplan folks are doing things for their EFIKA board and I didn't manage to get them to open up publically their device-tree until the firmware is final and in production :( But I've got them to change a few things already, and I'd like to make sure things are in sync.
Regarding devices, I want to move everything to of_platform_device. I have some patches in progress to make those easier to work with. I'll send something in the upcoming couple of days as it's all part of some Cell related work for a new southbridge.
I'm trying to make sure the bplan stuff and whatever you guys come up with don't conflict.
Ben.
Quoted 1 line · Benjamin Herrenschmidt
Can you send me your .dts ?
Here you go; for discussion purposes only! :)
This is pretty rough stuff, and it haven't even got to the point of using it to boot a kernel. But if it's a starting point to figure out what the 52xx device tree should look like then go to it!
g.
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Does Bestcomm dma belong in here somewhere?
Quoted 26 lines · Grant Likely
Quoted 1 line · Benjamin Herrenschmidt
Can you send me your .dts ?
Here you go; for discussion purposes only! :)
This is pretty rough stuff, and it haven't even got to the point of using it to boot a kernel. But if it's a starting point to figure out what the 52xx device tree should look like then go to it!
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 1 line · John Rigby
Does Bestcomm dma belong in here somewhere?
I don't think so for embedded targets; but I may be wrong. Of course; I think the kernel should be responsible for setting up the bestcomm tasks. If a spec is defined for how firmware could preload bestcomm tasks, then maybe.
g.
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 7 lines · Grant Likely
Quoted 1 line · John Rigby
Does Bestcomm dma belong in here somewhere?
I don't think so for embedded targets; but I may be wrong. Of course; I think the kernel should be responsible for setting up the bestcomm tasks. If a spec is defined for how firmware could preload bestcomm tasks, then maybe.
Yes, we discussed that on IRC.
For I got from it would be something like that :
We would use the API we worked earlier on (Dale, Andrey, John, ...). To add support of fw preloaded task :
- The bestcomm.ko module would be used when bestcomm is completely
controlled by the kernel
- A different module but with the same exported function would be used when the fw has a part to play in the init. That allows to customize a bunch of the sdma init / sram mapping ...
- All the other code (task helpers / the .h / the driver api) would be exactly
the same.
- Currently the task support code (the arch/ppc/syslib/fec.c for example in the current code) does this :
struct sdma_task *tsk;
tsk = sdma_task_alloc(queue_len, sizeof(struct sdma_fec_bd));
if (!tsk)
return NULL;To reuse the preloaded task, it would be changed to
tsk = sdma_task_find_by_name("fec", 0);
if (!tsk)
tsk = sdma_task_alloc("fec", 0, queue_len, sizeof(struct
sdma_fec_bd));
if (!tsk)
return NULL;So the bestcomm modules maintain a list with all task loaded with a name and a index attribute. (The index would be used when there is multiple device with
the same name, like "psc". We could use names like "psc1", "psc2". But that would imply string manipulation to "create" the name string ;)
In the case of the "classic" (kernel handles it all), the table of task is just
initially empty. But for the "custom" case, it's filled with whatever the fw has
passed as infos.
Sylvain
Quoted 11 lines
We would use the API we worked earlier on (Dale, Andrey, John, ...). To add support of fw preloaded task :
- The bestcomm.ko module would be used when bestcomm is completely
controlled by the kernel
- A different module but with the same exported function would be used when the fw has a part to play in the init. That allows to customize a bunch of the sdma init / sram mapping ...
- All the other code (task helpers / the .h / the driver api) would be exactly
the same.
No. Two different modules is the wrong approach. I want to be able to build everything in the kernel (no modules) and still boot machines with both types.
There should be a single implementation. I know bestcomm is fucked by design but still.
Quoted 11 lines
So the bestcomm modules maintain a list with all task loaded with a name and a index attribute. (The index would be used when there is multiple device with
the same name, like "psc". We could use names like "psc1", "psc2". But that would imply string manipulation to "create" the name string ;)In the case of the "classic" (kernel handles it all), the table of task is just
initially empty. But for the "custom" case, it's filled with whatever the fw has
passed as infos.
A single module should handle all cases though. If, for some reasons, it looks like that will cause a lot of additional code, them it can be internally split and we can have config options to enable only one way, but it should be possible to enable both.
Ben.