All of lore.kernel.org
 help / color / mirror / Atom feed
From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v8 4/9] davinci: McASP configuration for Omapl138-Hawkboard
Date: Mon, 15 Nov 2010 18:47:27 +0300	[thread overview]
Message-ID: <4CE1560F.6080705@mvista.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB5930234A2ACE1@dbde02.ent.ti.com>

Hello.

Nori, Sekhar wrote:

>>>> This patch defines Pin Mux configuration for MacASP
>>>> used on the Hawkboard-L138 system in order to add Audio support
>>>> Signed-off-by: Victor Rodriguez<victor.rodriguez@sasken.com>
>>>> Tested-by: Rene Gonzalez<renegs.2378@gmail.com>
>>>> diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
>>>> index 63916b9..f033a0a 100644
>>>> --- a/arch/arm/mach-davinci/da850.c
>>>> +++ b/arch/arm/mach-davinci/da850.c
>>>> @@ -591,7 +591,7 @@ const short da850_cpgmac_pins[] __initdata = {
>>>>   const short da850_mcasp_pins[] __initdata = {
>>>>        DA850_AHCLKX, DA850_ACLKX, DA850_AFSX,
>>>>        DA850_AHCLKR, DA850_ACLKR, DA850_AFSR, DA850_AMUTE,
>>>> -     DA850_AXR_11, DA850_AXR_12,
>>>> +     DA850_AXR_11, DA850_AXR_12, DA850_AXR_13, DA850_AXR_14,

>>> Looks like I missed pointing this out previously, but extending
>>> this list to take care of all boards will not be right since
>>> (for example) AXR13 and AXR14 pins could be used for different
>>> purpose on different boards.

>>     This is correct as the list in da850.c is a *generic* module's pin list.
>> If the board needs less pins (and the pins it does not use for McASP are used
>> differently), it should define its own pin list.

>>> The right way would be to make this a per-board list. Since it
>>> is marked __initdata, that wouldn't lead to bloat.

>>     This patch is correct anyway. Unless DA850 EVM board can't use these pins
>> for McASP -- but in this case the corresponding board file needs the specific
>> pin list added.

> Okay. I guess you are saying we will keep adding pins to the generic list
> as long as *all* supported boards don't get a conflict

    No, I don't care about conflicts as long as da850.c is concerned.

> and if we run into
> a conflict we will spawn separate list for the affected board.

    Yes.

> The only issue I see with this approach is it puts too much burden on the
> developer to verify that none of the supported boards break.

    That should be verified by the owners of that board. They shouldn't even 
have used the generic pin lists in the first place. The conception behind pin 
lists in da850.c was celarly misunderstood when DA850 EVM code was developed.

> Since it is highly unlikely that any board will need all the McASP pins,
> the generic list will likely remain unused.

    At least for now, Hawkboard will use all the defined pins -- I don't know if 
there are any more undefined yet...

> It might just be easier to
> start using board specific lists right away. This is especially true for
> McASP where usage of pins across boards will likely vary widely.

    Well, that depends on how complete the new generic McASP pin list is. If 
it's still not, then board specific pin list looks preferable indeed...

> Thanks,
> Sekhar

WBR, Sergei

  parent reply	other threads:[~2010-11-15 15:47 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1289601535-6746-1-git-send-email-vm.rod25@gmail.com>
2010-11-12 22:38 ` [PATCH v8 1/9] davinci: EMAC support for Omapl138-Hawkboard vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 2/9] davinci: EDMA " vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 3/9] davinci: ASoC " vm.rod25
2010-11-12 22:38 ` [PATCH v8 4/9] davinci: McASP configuration " vm.rod25 at gmail.com
2010-11-15 11:10   ` Nori, Sekhar
2010-11-15 12:16     ` Sergei Shtylyov
2010-11-15 13:07       ` Nori, Sekhar
2010-11-15 14:31         ` Victor Rodriguez
2010-11-15 15:47         ` Sergei Shtylyov [this message]
2010-11-16 15:58           ` Victor Rodriguez
2010-11-16 16:04             ` Sergei Shtylyov
2010-11-16 16:37               ` Nori, Sekhar
2010-11-16 16:45                 ` Victor Rodriguez
2010-11-16 20:42                 ` Michael Williamson
2010-11-16 21:19                   ` Victor Rodriguez
2010-11-16 21:21                   ` Victor Rodriguez
2010-11-18 16:21                   ` Nori, Sekhar
2010-11-18 16:38                     ` Victor Rodriguez
2010-11-18 16:47                       ` Nori, Sekhar
2010-11-18 23:57                     ` Kevin Hilman
2010-11-19  0:17                       ` Victor Rodriguez
2010-11-19 16:23                         ` Victor Rodriguez
2010-12-01 13:32   ` Nori, Sekhar
2010-12-01 15:20     ` Victor Rodriguez
2010-12-01 16:04       ` Nori, Sekhar
2010-12-01 16:13         ` Victor Rodriguez
2010-12-01 16:32     ` Sergei Shtylyov
2010-12-01 16:41       ` Victor Rodriguez
2010-11-12 22:38 ` [PATCH v8 5/9] davinci: Audio support " vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 6/9] davinci: MMC/SD and USB-OHCI configuration " vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 7/9] davinci: MMC/SD support " vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 8/9] davinci: USB clocks " vm.rod25 at gmail.com
2010-11-12 22:38 ` [PATCH v8 9/9] davinci: USB1.1 support " vm.rod25 at gmail.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE1560F.6080705@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.