Skip to content
Commit ea6e4aa3 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Meng Li
Browse files

clk: agilex/stratix10: add support for the 2nd bypass

commit  258b1b3bb72cbee17ac038022e722db47a5d54a2 from
https://github.com/altera-opensource/linux-socfpga.git

[upstream commit c2c9c566]

The EMAC clocks on Stratix10/Agilex/N5X have an additional bypass that
was not being accounted for. The bypass selects between
emaca_clk/emacb_clk and boot_clk.

Because the bypass register offset is different between Stratix10 and
Agilex/N5X, it's best to create a new function to calculate the bypass.

Fixes: 80c6b7a0

 ("clk: socfpga: agilex: add clock driver for the Agilex platform")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20210611025201.118799-3-dinguyen@kernel.org
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 822f61b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment