topic-miamiplus: Run CPU at 800MHz for speedgrade-2
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 18 Jan 2019 08:02:47 +0000 (09:02 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 24 Jan 2019 09:03:45 +0000 (10:03 +0100)
The miamiplus contains a speedgrade-2 device, which may run the CPU at 800MHz.
Change the PLL setting to 800MHz, and adapt the setpoints in the devicetree.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynq-topic-miamiplus.dts
board/topic/zynq/zynq-topic-miamiplus/ps7_init_gpl.c

index c0ccea90a18ffe896610227d30b66eccf66a1092..df538865296df37f5e0c8b3e0241e2bbb670e629 100644 (file)
        compatible = "topic,miamiplus", "xlnx,zynq-7000";
 };
 
+/* The miamiplus contains a speedgrade-2 device and runs at 800MHz */
+&cpu0 {
+       operating-points = <
+               /* kHz    uV */
+               800000  1000000
+               400000  1000000
+       >;
+};
+
 &qspi {
        is-dual = <1>;
 };
index c1cc1df23d96839fcf16030dfff7bbbc984f9294..fd5846aa039641ac6325cd71034e72799800a09f 100644 (file)
@@ -8,8 +8,8 @@
 
 static unsigned long ps7_pll_init_data_3_0[] = {
        EMIT_MASKWRITE(0XF8000008, 0x0000FFFFU, 0x0000DF0DU),
-       EMIT_MASKWRITE(0XF8000110, 0x003FFFF0U, 0x000FA220U),
-       EMIT_MASKWRITE(0XF8000100, 0x0007F000U, 0x00028000U),
+       EMIT_MASKWRITE(0XF8000110, 0x003FFFF0U, 0x000FA240U),
+       EMIT_MASKWRITE(0XF8000100, 0x0007F000U, 0x00030000U),
        EMIT_MASKWRITE(0XF8000100, 0x00000010U, 0x00000010U),
        EMIT_MASKWRITE(0XF8000100, 0x00000001U, 0x00000001U),
        EMIT_MASKWRITE(0XF8000100, 0x00000001U, 0x00000000U),