* mtd maps
@ 2005-03-15 12:22 Greg Weeks
2005-03-15 18:44 ` Mark A. Greer
0 siblings, 1 reply; 5+ messages in thread
From: Greg Weeks @ 2005-03-15 12:22 UTC (permalink / raw)
To: linuxppc-embedded
Are mtd maps still in drivers/mtd/maps or has that all moved to the
platform code? I have an mtd map for the mpc8560ads but it's in mtd/maps.
Greg W
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mtd maps
2005-03-15 12:22 mtd maps Greg Weeks
@ 2005-03-15 18:44 ` Mark A. Greer
2005-03-15 20:32 ` Matt Porter
0 siblings, 1 reply; 5+ messages in thread
From: Mark A. Greer @ 2005-03-15 18:44 UTC (permalink / raw)
To: Greg Weeks; +Cc: linuxppc-embedded
Greg Weeks wrote:
> Are mtd maps still in drivers/mtd/maps or has that all moved to the
> platform code? I have an mtd map for the mpc8560ads but it's in mtd/maps.
The mtd code has changed so that platform code can get at the routines
to set up the maps from there. arch/ppc/platforms/katana.c has its mtd
maps there and I recently posted a patch that moves it for the chestnut
as well.
I think its a good idea to move them to the platform code since the mtd
maps are platform specific anyway. Plus its one less place to add/edit
a file. But that's just my $0.02...
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mtd maps
2005-03-15 18:44 ` Mark A. Greer
@ 2005-03-15 20:32 ` Matt Porter
2005-03-16 1:33 ` Josh Boyer
0 siblings, 1 reply; 5+ messages in thread
From: Matt Porter @ 2005-03-15 20:32 UTC (permalink / raw)
To: Mark A. Greer; +Cc: linuxppc-embedded
On Tue, Mar 15, 2005 at 11:44:00AM -0700, Mark A. Greer wrote:
> Greg Weeks wrote:
>
> > Are mtd maps still in drivers/mtd/maps or has that all moved to the
> > platform code? I have an mtd map for the mpc8560ads but it's in mtd/maps.
>
>
> The mtd code has changed so that platform code can get at the routines
> to set up the maps from there. arch/ppc/platforms/katana.c has its mtd
> maps there and I recently posted a patch that moves it for the chestnut
> as well.
>
> I think its a good idea to move them to the platform code since the mtd
> maps are platform specific anyway. Plus its one less place to add/edit
> a file. But that's just my $0.02...
But keep in mind that this currently only applies in the case where
you need to map chips of the same type. Some boards have multiple
chip types and physmap doesn't yet support that.
-Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mtd maps
2005-03-15 20:32 ` Matt Porter
@ 2005-03-16 1:33 ` Josh Boyer
2005-03-21 12:38 ` Jörn Engel
0 siblings, 1 reply; 5+ messages in thread
From: Josh Boyer @ 2005-03-16 1:33 UTC (permalink / raw)
To: Matt Porter; +Cc: linuxppc-embedded
On Tue, 2005-03-15 at 13:32 -0700, Matt Porter wrote:
> On Tue, Mar 15, 2005 at 11:44:00AM -0700, Mark A. Greer wrote:
> > Greg Weeks wrote:
> >
> > > Are mtd maps still in drivers/mtd/maps or has that all moved to the
> > > platform code? I have an mtd map for the mpc8560ads but it's in mtd/maps.
> >
> >
> > The mtd code has changed so that platform code can get at the routines
> > to set up the maps from there. arch/ppc/platforms/katana.c has its mtd
> > maps there and I recently posted a patch that moves it for the chestnut
> > as well.
> >
> > I think its a good idea to move them to the platform code since the mtd
> > maps are platform specific anyway. Plus its one less place to add/edit
> > a file. But that's just my $0.02...
>
> But keep in mind that this currently only applies in the case where
> you need to map chips of the same type. Some boards have multiple
> chip types and physmap doesn't yet support that.
There is a driver in MTD CVS now called mphysmap (untested I believe),
that might be able to deal with that. Eventually.
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mtd maps
2005-03-16 1:33 ` Josh Boyer
@ 2005-03-21 12:38 ` Jörn Engel
0 siblings, 0 replies; 5+ messages in thread
From: Jörn Engel @ 2005-03-21 12:38 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-embedded
On Tue, 15 March 2005 19:33:33 -0600, Josh Boyer wrote:
>
> There is a driver in MTD CVS now called mphysmap (untested I believe),
> that might be able to deal with that. Eventually.
If someone has the need and a test machine with remote access, it
could get done rather soon.
Jörn
--
Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-21 12:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 12:22 mtd maps Greg Weeks
2005-03-15 18:44 ` Mark A. Greer
2005-03-15 20:32 ` Matt Porter
2005-03-16 1:33 ` Josh Boyer
2005-03-21 12:38 ` Jörn Engel
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).