lkml.org 
[lkml]   [2012]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] ARM: imx: Add common imx cpuidle init functionality.
    On Sun, Apr 22, 2012 at 11:44:39PM -0500, Rob Lee wrote:
    > >> I don't think we need a cpu_is_imx6q(), but having some i.MX6 specific
    > >> hook at device_initcall time can't be too wrong. Shawn?
    > >>
    > > Yep, it works for me.
    > >
    > Sascha, Shawn, thanks for the response.
    >
    > Since device_initcall isn't platform specific, it seems I would still
    > need a cpu_is_imx6q() function or similiar functionality from a device
    > tree call. Or do you have something else in mind that I'm not seeing?
    >
    I guess Sascha is asking for something like the following.

    static int __init imx_device_init(void)
    {
    imx5_device_init();
    imx6_device_init();
    }
    device_initcall(imx_device_init)

    static int __init imx6_device_init(void)
    {
    /*
    * do whatever needs to get done in device_initcall time
    */
    }

    --
    Regards,
    Shawn


    \
     
     \ /
      Last update: 2012-04-23 07:47    [W:3.172 / U:0.228 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site