]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: socfpga: add divider registers to the main pll outputs
authorDinh Nguyen <dinguyen@altera.com>
Mon, 12 May 2014 17:27:22 +0000 (12:27 -0500)
committerDinh Nguyen <dinguyen@altera.com>
Mon, 12 May 2014 17:27:22 +0000 (12:27 -0500)
commit0691bb1b5a1865b3bbc9b7ce6e26eff546abb1cf
tree1011296d0c0a3ec703f73880c96667be0f569eee
parentd1db0eea852497762cab43b905b879dfcd3b8987
clk: socfpga: add divider registers to the main pll outputs

The C0(mpu_clk), C1(main_clk), and C2(dbg_base_clk) outputs from the main
PLL go through a pre-divider before coming into the system. These registers
were hidden for the CycloneV platform, but are now used for the ArriaV
platform.

This patch updates the clock driver to read the div-reg property for the
socfpga-periph-clk clocks. Also moves the div_mask define to clk.h for re-use.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
drivers/clk/socfpga/clk-gate.c
drivers/clk/socfpga/clk-periph.c
drivers/clk/socfpga/clk.h