Re: [U-Boot] [PATCH 15/35] arm: socfpga: clock: Add code to read clock configuration

2014-09-16 Thread Marek Vasut
On Monday, September 15, 2014 at 10:09:34 PM, Dinh Nguyen wrote: > On 09/15/2014 06:06 AM, Marek Vasut wrote: [...] > > + /* get the L4 SP clock which supplied to UART */ > > + reg = readl(&clock_manager_base->main_pll.maindiv); > > + reg = CLKMGR_MAINPLLGRP_MAINDIV_L4SPCLK_GET(reg); > > +

Re: [U-Boot] [PATCH 15/35] arm: socfpga: clock: Add code to read clock configuration

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:06 AM, Marek Vasut wrote: > From: Pavel Machek > > 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. > > Signe

[U-Boot] [PATCH 15/35] arm: socfpga: clock: Add code to read clock configuration

2014-09-15 Thread Marek Vasut
From: Pavel Machek 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: C