public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* several OMAP newbie questions
@ 2009-09-01 10:34 Mike Rapoport
  2009-09-04 22:08 ` Cliff Brake
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2009-09-01 10:34 UTC (permalink / raw)
  To: linux-omap

Hi all,
I've recently started to work on adding support for a custom OMAP3 board.
Several things in the arch/arm/mach-omap2/board-* caught my attention:
1) omap_xxx_map_io and omap_xxx_init_irq are mostly the same in all board-*
files, the only difference is omap_sdrc_params passed to omap2_init_common_hw.
Probably it'd make sense to have omap_map_io_{242x,243x,343x} as the initializer
of .map_io and move the common part of omap_xxx_map_io to some common place?
2) Boards that use NAND flash have the very same NAND chip select detection
code. Is this code necessary, or, if I know for sure that NAND is connected to
nCS0 I can skip the chip select detection? And, again, if several boards use the
same code for chip select detection, wouldn't it be wise to move it to some
common place?
3) If I'm not much mistaken, board specific pin mux configuration has to deal
with arch/arm/plat-omap/include/mach/mux.h and arch/arm/mach-omap2/mux.c. For
instance, if my board uses ULPI pins that have not been defined already, I need
to patch those file with my pin mux definitions. Am I right here, or have I
missed something?

-- 
Sincerely yours,
Mike.



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

* Re: several OMAP newbie questions
  2009-09-01 10:34 several OMAP newbie questions Mike Rapoport
@ 2009-09-04 22:08 ` Cliff Brake
  2009-09-09 14:51   ` Mike Rapoport
  2009-09-10 16:09   ` Kevin Hilman
  0 siblings, 2 replies; 7+ messages in thread
From: Cliff Brake @ 2009-09-04 22:08 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: linux-omap

On Tue, Sep 1, 2009 at 6:34 AM, Mike Rapoport<mike@compulab.co.il> wrote:

> 3) If I'm not much mistaken, board specific pin mux configuration has to deal
> with arch/arm/plat-omap/include/mach/mux.h and arch/arm/mach-omap2/mux.c. For
> instance, if my board uses ULPI pins that have not been defined already, I need
> to patch those file with my pin mux definitions. Am I right here, or have I
> missed something?

It seems to me there should be a global mux configuration per CPU, but
should be configurable per board, group of boards, etc.  What I would
like is a set of routines can be used to configure the mux that is
then called by the board files (similar to PXA).  Especially once we
get into supporting multiple base boards with things like beagle and
overo, it would be nice to have have all this logic both places
(kernel/uboot), but maybe its needed there anyway.

Cliff

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

* Re: several OMAP newbie questions
  2009-09-04 22:08 ` Cliff Brake
@ 2009-09-09 14:51   ` Mike Rapoport
  2009-09-10 16:09   ` Kevin Hilman
  1 sibling, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2009-09-09 14:51 UTC (permalink / raw)
  To: Cliff Brake; +Cc: linux-omap



Cliff Brake wrote:
> On Tue, Sep 1, 2009 at 6:34 AM, Mike Rapoport<mike@compulab.co.il> wrote:
> 
>> 3) If I'm not much mistaken, board specific pin mux configuration has to deal
>> with arch/arm/plat-omap/include/mach/mux.h and arch/arm/mach-omap2/mux.c. For
>> instance, if my board uses ULPI pins that have not been defined already, I need
>> to patch those file with my pin mux definitions. Am I right here, or have I
>> missed something?
> 
> It seems to me there should be a global mux configuration per CPU, but
> should be configurable per board, group of boards, etc.  What I would
> like is a set of routines can be used to configure the mux that is
> then called by the board files (similar to PXA).

Yeah, I actually was missing pxa_mfp_config()...
The omap34xx_pins seems somewhat sparse...

> 
> Cliff
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Sincerely yours,
Mike.


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

* Re: several OMAP newbie questions
  2009-09-04 22:08 ` Cliff Brake
  2009-09-09 14:51   ` Mike Rapoport
@ 2009-09-10 16:09   ` Kevin Hilman
  2009-09-13 13:07     ` Mike Rapoport
  1 sibling, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2009-09-10 16:09 UTC (permalink / raw)
  To: Cliff Brake; +Cc: Mike Rapoport, linux-omap

Cliff Brake <cliff.brake@gmail.com> writes:

> On Tue, Sep 1, 2009 at 6:34 AM, Mike Rapoport<mike@compulab.co.il> wrote:
>
>> 3) If I'm not much mistaken, board specific pin mux configuration has to deal
>> with arch/arm/plat-omap/include/mach/mux.h and arch/arm/mach-omap2/mux.c. For
>> instance, if my board uses ULPI pins that have not been defined already, I need
>> to patch those file with my pin mux definitions. Am I right here, or have I
>> missed something?
>
> It seems to me there should be a global mux configuration per CPU, but
> should be configurable per board, group of boards, etc.  What I would
> like is a set of routines can be used to configure the mux that is
> then called by the board files (similar to PXA).  Especially once we
> get into supporting multiple base boards with things like beagle and
> overo, it would be nice to have have all this logic both places
> (kernel/uboot), but maybe its needed there anyway.

There is lots of agreement around the various shortcomings of the
current mux framework for OMAP.  All that's missing is someone to step
up and do the work. :/

I started a new wiki topic at elinux.org for linux-omap wishlist items:

  http://elinux.org/OMAP_wishlist

here I created a pin-mux section where we could start to keep track of
the important features needed in a new mux framework.  Adding pointers
summaries to some other platforms might be useful here as well.

This will help us get a start so when someone is ready to step up and
do the work, we'll have a starting point.

Kevin

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

* Re: several OMAP newbie questions
  2009-09-10 16:09   ` Kevin Hilman
@ 2009-09-13 13:07     ` Mike Rapoport
  2009-09-14 15:21       ` Kevin Hilman
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2009-09-13 13:07 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: Cliff Brake, linux-omap

Hi Kevin,

Kevin Hilman wrote:
> There is lots of agreement around the various shortcomings of the
> current mux framework for OMAP.  All that's missing is someone to step
> up and do the work. :/
> 
> I started a new wiki topic at elinux.org for linux-omap wishlist items:
> 
>   http://elinux.org/OMAP_wishlist
> 
> here I created a pin-mux section where we could start to keep track of
> the important features needed in a new mux framework.  Adding pointers
> summaries to some other platforms might be useful here as well.

If you'd like to I can add a brief description of what PXA does.

> This will help us get a start so when someone is ready to step up and
> do the work, we'll have a starting point.

> Kevin
> 

-- 
Sincerely yours,
Mike.



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

* Re: several OMAP newbie questions
  2009-09-13 13:07     ` Mike Rapoport
@ 2009-09-14 15:21       ` Kevin Hilman
  2009-09-15  6:16         ` Mike Rapoport
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2009-09-14 15:21 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: Cliff Brake, linux-omap

Mike Rapoport wrote:
> Hi Kevin,
> 
> Kevin Hilman wrote:
>> There is lots of agreement around the various shortcomings of the
>> current mux framework for OMAP.  All that's missing is someone to step
>> up and do the work. :/
>>
>> I started a new wiki topic at elinux.org for linux-omap wishlist items:
>>
>>   http://elinux.org/OMAP_wishlist
>>
>> here I created a pin-mux section where we could start to keep track of
>> the important features needed in a new mux framework.  Adding pointers
>> summaries to some other platforms might be useful here as well.
> 
> If you'd like to I can add a brief description of what PXA does.
> 

Sure, could be useful.

Thanks,

Kevin


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

* Re: several OMAP newbie questions
  2009-09-14 15:21       ` Kevin Hilman
@ 2009-09-15  6:16         ` Mike Rapoport
  0 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2009-09-15  6:16 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: Cliff Brake, linux-omap



Kevin Hilman wrote:
> Mike Rapoport wrote:
>> Hi Kevin,
>>
>> Kevin Hilman wrote:
>>> There is lots of agreement around the various shortcomings of the
>>> current mux framework for OMAP.  All that's missing is someone to step
>>> up and do the work. :/
>>>
>>> I started a new wiki topic at elinux.org for linux-omap wishlist items:
>>>
>>>   http://elinux.org/OMAP_wishlist
>>>
>>> here I created a pin-mux section where we could start to keep track of
>>> the important features needed in a new mux framework.  Adding pointers
>>> summaries to some other platforms might be useful here as well.
>>
>> If you'd like to I can add a brief description of what PXA does.
>>
> 
> Sure, could be useful.

Done. :)

> Thanks,
> 
> Kevin
> 
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Sincerely yours,
Mike.


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

end of thread, other threads:[~2009-09-15  6:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 10:34 several OMAP newbie questions Mike Rapoport
2009-09-04 22:08 ` Cliff Brake
2009-09-09 14:51   ` Mike Rapoport
2009-09-10 16:09   ` Kevin Hilman
2009-09-13 13:07     ` Mike Rapoport
2009-09-14 15:21       ` Kevin Hilman
2009-09-15  6:16         ` Mike Rapoport

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