public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* arch/arm/mach-omap* organization
@ 2009-08-03 22:23 Ben Goska
  2009-08-04  7:05 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Goska @ 2009-08-03 22:23 UTC (permalink / raw)
  To: linux-omap

Is there a reason why omap2, omap3, and now omap4 files are all packed 
into the mach-omap2 directory?

It seems like it would make more sense for each omap version to have 
it's own directory.

-Ben Goska

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

* Re: arch/arm/mach-omap* organization
  2009-08-03 22:23 arch/arm/mach-omap* organization Ben Goska
@ 2009-08-04  7:05 ` Tony Lindgren
  2009-08-05  8:39   ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2009-08-04  7:05 UTC (permalink / raw)
  To: Ben Goska; +Cc: linux-omap

* Ben Goska <goskab@onid.oregonstate.edu> [090804 01:53]:
> Is there a reason why omap2, omap3, and now omap4 files are all packed  
> into the mach-omap2 directory?
>
> It seems like it would make more sense for each omap version to have  
> it's own directory.

Majority of the mach-omap2 code is shared across them.

For example, the initial patch to add minimal omap3 support on top of
the omap2 code was about 500 lines of diff. The situation was pretty
much the same to add minimal omap4 support on top of omap3.

If we wanted to, in the long run we could move more of the shared
code to plat-omap, and just keep board-*.c files under each mach-*
directory.

But before we start doing rearranging like that we should first
concentrate on more important things, such as getting all the
PM code into the mainline, getting clock framework up and running
for omap4, get rid of IO_ADDRESS macros and omap_read/write and so
on.

Regards,

Tony

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

* Re: arch/arm/mach-omap* organization
  2009-08-04  7:05 ` Tony Lindgren
@ 2009-08-05  8:39   ` Felipe Balbi
  0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2009-08-05  8:39 UTC (permalink / raw)
  To: ext Tony Lindgren; +Cc: Ben Goska, linux-omap@vger.kernel.org

On Tue, Aug 04, 2009 at 09:05:27AM +0200, ext Tony Lindgren wrote:
> * Ben Goska <goskab@onid.oregonstate.edu> [090804 01:53]:
> > Is there a reason why omap2, omap3, and now omap4 files are all packed  
> > into the mach-omap2 directory?
> >
> > It seems like it would make more sense for each omap version to have  
> > it's own directory.
> 
> Majority of the mach-omap2 code is shared across them.
> 
> For example, the initial patch to add minimal omap3 support on top of
> the omap2 code was about 500 lines of diff. The situation was pretty
> much the same to add minimal omap4 support on top of omap3.
> 
> If we wanted to, in the long run we could move more of the shared
> code to plat-omap, and just keep board-*.c files under each mach-*
> directory.

I guess that will start to show as a necessary change since we would be
able to remove several "if (cpu_is_omapXXX())" from platform_device
registration code and related changes.

-- 
balbi

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

end of thread, other threads:[~2009-08-05  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 22:23 arch/arm/mach-omap* organization Ben Goska
2009-08-04  7:05 ` Tony Lindgren
2009-08-05  8:39   ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox