Re: [PATCH 2/2] clk: at91: select parent if main oscillator or bypass is enabled

From: Stephen Boyd
Date: Mon Sep 16 2019 - 16:15:49 EST


Quoting Eugen.Hristev@xxxxxxxxxxxxx (2019-09-09 08:30:34)
> From: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx>
>
> Selecting the right parent for the main clock is done using only
> main oscillator enabled bit.
> In case we have this oscillator bypassed by an external signal (no driving
> on the XOUT line), we still use external clock, but with BYPASS bit set.
> So, in this case we must select the same parent as before.
> Create a macro that will select the right parent considering both bits from
> the MOR register.
> Use this macro when looking for the right parent.
>
> Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx>
> ---

Applied to clk-next