[PATCH v2 08/15] ARM: mxs: Add iomux support

Shawn Guo shawn.gsc at gmail.com
Thu Dec 9 01:15:27 EST 2010


On Wed, Dec 8, 2010 at 7:32 PM, Lothar Waßmann <LW at karo-electronics.de> wrote:
> Shawn Guo writes:
>> 2010/12/8 Uwe Kleine-König <u.kleine-koenig at pengutronix.de>:
>> > Hello,
>> >
>> > On Wed, Dec 08, 2010 at 06:52:36PM +0800, Shawn Guo wrote:
>> >> Hi Lothar,
>> >>
>> >> Thanks for the review.
>> >>
>> >> On Wed, Dec 8, 2010 at 3:25 PM, Lothar Waßmann <LW at karo-electronics.de> wrote:
>> >> > Hi,
>> >> >
>> >> > Shawn Guo writes:
>> >> >> MXS-based SoCs implements iomux functions in block PINCTRL.
>> >> >>
>> >> >> Signed-off-by: Shawn Guo <shawn.guo at freescale.com>
>> >> >> ---
>> >> >> Changes for v2:
>> >> >>  - Define iomux_cfg_t as u64
>> >> >     ^^^^^^^^^^^^^^^^^^^^^^^^^
>> >> > Really?
>> >> >
>> >> >> +typedef struct pad_desc {
>> >> >> +     unsigned bank:12;
>> >> >> +     unsigned pin:20;
>> >> >> +     unsigned muxsel:8;
>> >> >> +     unsigned ma:12;
>> >> >> +     unsigned vol:8;
>> >> >> +     unsigned pull:4;
>> >> >> +} iomux_cfg_t;
>> >> > ^^^^^^^^^^^^^^^^^
>> >> >
>> >> I did not pick the correct word.  What I meant is 64 bits.  Since this
>> >> error is in change log, I would fix it if there is v3 of the patch.
>> > the idea was to really use an u64 to have the pin definitions modifyable.
>> >
>> Ah, I misunderstood the comments.  But I did not see mxc switches to
>> u64.  Do you have example to show what you want exactly?
>>
> See:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2010-November/032202.html
>
Thanks, Lothar.

Hi Uwe,

Looking at the page Lothar gave, the patch is to facilitate adding
platform specific pad_ctrl settings to an
existing pad definition.  In this case, it might be reasonable to keep
EXPORT_SYMBOL(mxs_iomux_setup_pad), which you asked me to remove.
What do you think?

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list