06 Oct, 2014

3 commits

  • Pull out functions to read frequency of Main clock VCO and
    PLL clock VCO as the code is duplicated multiple times.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Add the entire bulk of code to read out clock configuration from the SoCFPGA
    CPU registers. This is important for MMC, QSPI and UART drivers as otherwise
    they cannot determine the frequency of their upstream clock.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Fixed the L4 MP clock divider and synced the clock code with latest
    rocketboards codebase (thanks Dinh for pointing this out)

    Pavel Machek
     
  • The inlining is done by GCC when needed, there is no need to do it
    explicitly. Furthermore, the inline keyword does not force-inline
    the code, but is only a hint for the compiler. Scrub this hint.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     

30 Aug, 2014

2 commits


07 Apr, 2014

1 commit

  • Clock Manager driver will be called to reconfigure all the
    clocks setting based on user input. The input are passed to
    Preloader through handoff files

    Signed-off-by: Chin Liang See
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    CC: Pavel Machek
    Cc: Dinh Nguyen
    Acked-by: Pavel Machek

    Chin Liang See