16 Aug, 2013

1 commit

  • There are two improvements for this commit:

    - Add comparing pll lock condition after while loop. It can
    fix potential fake timeout problem caused by the code is just
    scheduled out before compare the timeout, and the time of
    scheduling out are more than one jiffies.

    - Move timeout assignment more close to compare the timeout.
    It can reduce the possibility the code is scheduled out, and
    the timeout can be more precise.

    Signed-off-by: Peter Chen
    Acked-by: Sascha Hauer
    Signed-off-by: Shawn Guo

    Peter Chen
     

17 Jun, 2013

1 commit


22 Nov, 2012

2 commits

  • Now that the additional enable bits in the enet PLL are handled
    as gates, the gate_mask is identical for all plls. Remove the
    gate_mask from the code and use the BM_PLL_ENABLE bit for
    enabling/disabling the PLL.

    Signed-off-by: Sascha Hauer
    Acked-by: Shawn Guo

    Sascha Hauer
     
  • In current code the ethernet PLL is not handled correctly. The PLL runs at 500MHz
    and has different outputs. Only the enet reference clock is implemented. This
    patch changes the PLL so that it outputs 500MHz and adds the additional outputs
    as dividers. This now matches the datasheet which says:

    > This PLL synthesizes a low jitter clock from 24 MHz reference clock.
    > The PLL outputs a 500 MHz clock. The reference clocks generated by this PLL are:
    > • Ref_PCIe = 125 MHz
    > • Ref_SATA = 100 MHz
    > • Ref_ethernet, which is configurable based on the PLL_ENET[1:0] register field.

    Signed-off-by: Sascha Hauer
    Acked-by: Shawn Guo

    Sascha Hauer
     

02 May, 2012

1 commit