[PATCH 1/2] arm: am33xx: Move function to read from Master OSC

Sascha Hauer s.hauer at pengutronix.de
Thu Jan 21 23:03:08 PST 2016


Hi Teresa,

On Tue, Jan 19, 2016 at 09:30:53AM +0100, Teresa Remmet wrote:
> From: Daniel Schultz <d.schultz at phytec.de>
> 
> Move the function to read the Master OSC speed from
> the SYSBOOT Configuration Pin for reuse.
> 
> Signed-off-by: Daniel Schultz <d.schultz at phytec.de>
> Signed-off-by: Teresa Remmet <t.remmet at phytec.de>
> ---
>  arch/arm/mach-omap/am33xx_clock.c              | 24 ++++++++++++++++++++++++
>  arch/arm/mach-omap/dmtimer.c                   | 19 ++-----------------
>  arch/arm/mach-omap/include/mach/am33xx-clock.h |  1 +
>  3 files changed, 27 insertions(+), 17 deletions(-)
> 
> diff --git a/arch/arm/mach-omap/am33xx_clock.c b/arch/arm/mach-omap/am33xx_clock.c
> index 6d8adde..19aeb59 100644
> --- a/arch/arm/mach-omap/am33xx_clock.c
> +++ b/arch/arm/mach-omap/am33xx_clock.c
> @@ -318,3 +318,27 @@ void am33xx_pll_init(int mpupll_M, int osc, int ddrpll_M)
>  	/* Enable the required peripherals */
>  	am33xx_enable_per_clocks();
>  }
> +
> +u64 am33xx_get_osc_clock(void)

Rather use a 32bit type.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list