fpga/clk_gen_plle2: Add support for 50Mhz->100Mhz
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 24 Sep 2021 04:24:37 +0000 (14:24 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 25 Sep 2021 08:18:32 +0000 (18:18 +1000)
50Mhz clkin, 100Mhz sys_clk, as needed for Wukon v2

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
fpga/clk_gen_plle2.vhd

index b336d6f1263b4abdddbcb414be356feba0af27b5..6b86cb0f3622e3b42b0cc408650e3a9e6ed0d070 100644 (file)
@@ -70,6 +70,18 @@ architecture rtl of clock_generator is
                 report "Unsupported output frequency" severity failure;
                 return bad_settings;
             end case;
+        when 50000000 =>
+            case output_hz is
+            when 100000000 =>
+                return (clkin_period  => 20.0,
+                        clkfbout_mult => 32,
+                        clkout_divide => 16,
+                        divclk_divide => 1,
+                        force_rst     => '0');
+            when others =>
+                report "Unsupported output frequency" severity failure;
+                return bad_settings;
+            end case;
         when others =>
             report "Unsupported input frequency" severity failure;
             return bad_settings;