lkml.org 
[lkml]   [2014]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] usb issue on imx27: 3 clocks are needed
    On Mon, Aug 18, 2014 at 05:00:59PM +0800, Peter Chen wrote:
    > On Sat, Aug 16, 2014 at 05:38:30PM +0200, Philippe Reynes wrote:
    > > Hi all,
    > >
    > > i.MX27's usb needs three clocks (usb_ipg_gate, usb_ahb_gate and usb_div)
    > > but the current chipidea driver implementation, and devicetree, provides
    > > only ipg and ahb. Consequently, if the bootloader don't enable the last
    > > one, the kernel will crash.
    > >
    > > Our approach/idea is to add a second, optionnal, clock in ci_hdrc_imx.c
    > > with 'per' name in devicetree and to add clock name 'main_clk' for mandatory clock.
    > > This approach it correct? Or an other approach seems better?
    > > Thank you very much for your point of view.
    > >
    >
    > It is ok for me to have ipg, ahb and per clocks at driver, but how can you maintain
    > DT consistent?

    Adding new clock as optional one will just maintain the DT
    compatibility.

    > Can you accept open ipg and per always on at clock.c?

    No, usb driver should manage its clocks.

    Shawn


    \
     
     \ /
      Last update: 2014-08-18 11:41    [W:4.161 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site