linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* plat-orion multi purpose pins problem for mv78200
@ 2011-07-01 19:14 Joey Oravec
  2011-07-01 21:56 ` Joey Oravec
  2011-07-02 12:23 ` Simon Guinot
  0 siblings, 2 replies; 16+ messages in thread
From: Joey Oravec @ 2011-07-01 19:14 UTC (permalink / raw)
  To: linux-arm-kernel

Nicola, Lennert -

There's a problem in 3.0-rc5 when calling mv78xx0_mpp_conf() on the 
MV78200 processor. This processor has 49 multi purpose pins but only 31 
GPIOs. MPP[31:0] map directly to GPIO[31:0] but the next 17 are a little 
more complex:

MPP[39:32] = GPIO[7:0]
MPP[46:40] = GPIO[23:17]
MPP[47] = GPIO[16]
MPP[48] = GPIO[8]
MPP[49] = GPIO[9]

See arch/arm/plat-orion/mpp.c. Inside orion_mpp_conf() the array gets 
processed by calling MPP_NUM() then calling orion_gpio_set_valid(). As 
demonstrated above, the MPP number and GPIO number are not 
interchangeable and on the MV78200 that's a problem when trying to setup 
any MPP > 31.

So we need to map each MPP to a given GPIO -- I don't know how the 
mapping will differ across processors. We also need to keep-clear which 
functions are called with an MPP number and which functions are called 
with a GPIO number.

Followup question -- Marvell has several SoC families, but Linux uess 
plat-orion for everything. For example MV78200 isn't an Orion it's a 
Discovery Innovation series. Would it make more sense to have separate 
plat-* code for the separate families?

-joey

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

end of thread, other threads:[~2011-07-16  3:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 19:14 plat-orion multi purpose pins problem for mv78200 Joey Oravec
2011-07-01 21:56 ` Joey Oravec
2011-07-02 12:23 ` Simon Guinot
2011-07-03 12:46   ` saeed bishara
2011-07-04 14:33     ` [PATCH v2] genirq: replace irq_gc_ack() with {set,clr}_bit variants Simon Guinot
2011-07-04 14:48       ` [PATCH v2] genirq: replace irq_gc_ack() with {set, clr}_bit variants Nicolas Pitre
2011-07-16  3:39         ` Kukjin Kim
2011-07-06 15:31       ` [PATCH v2] genirq: replace irq_gc_ack() with {set,clr}_bit variants Simon Guinot
2011-07-05 15:37     ` plat-orion multi purpose pins problem for mv78200 Joey Oravec
2011-07-06 16:18       ` Simon Guinot
2011-07-06 16:32         ` saeed bishara
2011-07-06 18:49         ` Joey Oravec
2011-07-07  6:40           ` saeed bishara
2011-07-07 13:49             ` Joey Oravec
2011-07-10 13:21               ` saeed bishara
2011-07-12 13:36                 ` Joey Oravec

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).