[RFC PATCH v2 3/4] ARM: imx6q: using pinmux subsystem

Dong Aisheng-B29396 B29396 at freescale.com
Thu Dec 15 02:36:23 EST 2011


> -----Original Message-----
> From: Linus Walleij [mailto:linus.walleij at linaro.org]
> Sent: Thursday, December 15, 2011 2:03 AM
> To: Dong Aisheng-B29396
> Cc: linux-kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org;
> linus.walleij at stericsson.com; s.hauer at pengutronix.de; Guo Shawn-R65073;
> kernel at pengutronix.de; grant.likely at secretlab.ca; rob.herring at calxeda.com
> Subject: Re: [RFC PATCH v2 3/4] ARM: imx6q: using pinmux subsystem
> Importance: High
> 
> On Wed, Dec 14, 2011 at 5:03 PM, Dong Aisheng <b29396 at freescale.com>
> wrote:
> 
> > From: Dong Aisheng <dong.aisheng at linaro.org>
> >
> > Signed-off-by: Dong Aisheng <dong.aisheng at linaro.org>
> > Cc: Linus Walleij <linus.walleij at linaro.org>
> > Cc: Sascha Hauer <s.hauer at pengutronix.de>
> > Cc: Shawn Guo <shanw.guo at freescale.com>
> 
> Acked-by: Linus Walleij <linus.walleij at linaro.org>
> 
> > +static struct pinmux_map imx6q_pinmux_map[] = {
> > +       PINMUX_MAP_PRIMARY("usdhc4", "sd4", "219c000.usdhc"), };
> > +
> >  static void __init imx6q_init_machine(void)
> >  {
> >        of_platform_populate(NULL, of_default_bus_match_table, NULL,
> > NULL);
> > -
> > +       pinmux_register_mappings(imx6q_pinmux_map,
> > +                                ARRAY_SIZE(imx6q_pinmux_map));
> >        imx6q_pm_init();
> >  }
> 
> So ideally this bit of code should also go into the device tree and we
> should add a DT hook inside drivers/pinctrl/pinmux.c
> 
> Please make a patch for this if you have a clear idea on how it should
> work!
> 
Yes, I will try to see that and will discuss with you once got an idea.

Regards
Dong Aisheng




More information about the linux-arm-kernel mailing list