* ppc_sys.c with platform device model or create opb bus?
@ 2005-07-17 6:26 Yasushi SHOJI
2005-07-23 14:48 ` Matt Porter
2005-07-23 17:03 ` Grant Likely
0 siblings, 2 replies; 4+ messages in thread
From: Yasushi SHOJI @ 2005-07-17 6:26 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
I've been reading some posts regarding to the transition of OCP to
platform device mode while searching for a good way to implement a
device driver for our fpga base platform. And now I have one question
regarding to ppc_sys.c
should I use ppc_sys_*() for platform like fpga?
since I'm working on FPGA base platform, ppc_sys_spec seems to be too
static. that is, IMHO, having static array of device list isn't ideal
for a dynamic system like fpga.
I feel that the ppc_sys_spec is for SoC, which doesn't dynamically
change the peripherals it has. otoh, fpga based platform can have
arbitrary number of devices if you configured so.
I usually implement a device with PLB or OPB. for those bus, should I
use platform device model or create new buses for each?
regards,
--
yashi
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: ppc_sys.c with platform device model or create opb bus?
2005-07-17 6:26 ppc_sys.c with platform device model or create opb bus? Yasushi SHOJI
@ 2005-07-23 14:48 ` Matt Porter
2005-07-23 17:03 ` Grant Likely
1 sibling, 0 replies; 4+ messages in thread
From: Matt Porter @ 2005-07-23 14:48 UTC (permalink / raw)
To: Yasushi SHOJI; +Cc: linuxppc-embedded
On Sun, Jul 17, 2005 at 03:26:21PM +0900, Yasushi SHOJI wrote:
> Hi all,
>
> I've been reading some posts regarding to the transition of OCP to
> platform device mode while searching for a good way to implement a
> device driver for our fpga base platform. And now I have one question
> regarding to ppc_sys.c
>
> should I use ppc_sys_*() for platform like fpga?
>
> since I'm working on FPGA base platform, ppc_sys_spec seems to be too
> static. that is, IMHO, having static array of device list isn't ideal
> for a dynamic system like fpga.
>
> I feel that the ppc_sys_spec is for SoC, which doesn't dynamically
> change the peripherals it has. otoh, fpga based platform can have
> arbitrary number of devices if you configured so.
>
> I usually implement a device with PLB or OPB. for those bus, should I
> use platform device model or create new buses for each?
Use the platform model. When you run into a case that can't be
handled properly then the platform model should be expanded to handle
it. If you instantiate a "platform device" by configuring the FPGA
from userspace then that's a hotplug event. The platform model
should be extended to handle hotplug for these kind of cases since
they are pretty common.
-Matt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ppc_sys.c with platform device model or create opb bus?
2005-07-17 6:26 ppc_sys.c with platform device model or create opb bus? Yasushi SHOJI
2005-07-23 14:48 ` Matt Porter
@ 2005-07-23 17:03 ` Grant Likely
2005-07-23 18:34 ` Need SEC 1.0 Descriptor programmer's guide Vikas Aggarwal
1 sibling, 1 reply; 4+ messages in thread
From: Grant Likely @ 2005-07-23 17:03 UTC (permalink / raw)
To: Yasushi SHOJI; +Cc: linuxppc-embedded
On 7/17/05, Yasushi SHOJI <yashi@atmark-techno.com> wrote:
> I feel that the ppc_sys_spec is for SoC, which doesn't dynamically
> change the peripherals it has. otoh, fpga based platform can have
> arbitrary number of devices if you configured so.
>=20
> I usually implement a device with PLB or OPB. for those bus, should I
> use platform device model or create new buses for each?
ppc_sys is just a convenient wrapper around the platform device model.
You can safely ignore ppc_sys if your board setup code calls
platform_device_register() for all of your devices directly.
Besides, as ppc moves to the flattened device tree for initializing
the platform bus, the whole ppc_sys stuff will be going away and the
device tree parsing code will call platform_device_* directly.
Cheers,
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-23 19:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-17 6:26 ppc_sys.c with platform device model or create opb bus? Yasushi SHOJI
2005-07-23 14:48 ` Matt Porter
2005-07-23 17:03 ` Grant Likely
2005-07-23 18:34 ` Need SEC 1.0 Descriptor programmer's guide Vikas Aggarwal
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).