]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
xilinx_zynqmp_zcu102: Set QSPI clock divisor to "9"
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 29 Jul 2016 08:07:57 +0000 (10:07 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 3 Aug 2016 08:07:23 +0000 (10:07 +0200)
The zynqmp_qspi driver assumes that the QSPI clock runs at 166666666 Hz,
set the divisor such that this is true. The IOPLL runs at 1500, so a
divisor of 0x0c would results in 125MHz.

The optimal divisor for the zcu102 would be "7", which would run the
clock at 214MHz and could thus generate almost 108MHz which is the max
clock rate for the flash chips on the board.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/xilinx_zynqmp_zcu102/psu_init_gpl.c

index b6e84046412a5d2935277fa0f1e11c19328ba427..388b94ca25dcf87a227935e0cbefaada19dd9eaf 100644 (file)
@@ -1078,7 +1078,7 @@ unsigned long psu_clock_init_data() {
                PSU_CRL_APB_QSPI_REF_CTRL_DIVISOR1                                              0x1
 
                6 bit divider
-               PSU_CRL_APB_QSPI_REF_CTRL_DIVISOR0                                              0xc
+               PSU_CRL_APB_QSPI_REF_CTRL_DIVISOR0                                              0x9
 
                000 = IOPLL; 010 = RPLL; 011 = DPLL; (This signal may only be toggled after 4 cycles of the old clock and 4 cycles of the new
                clock. This is not usually an issue, but designers must be aware.)
@@ -1093,7 +1093,7 @@ unsigned long psu_clock_init_data() {
                        | 0x0000000CU << CRL_APB_QSPI_REF_CTRL_DIVISOR0_SHIFT
                        | 0x00000000U << CRL_APB_QSPI_REF_CTRL_SRCSEL_SHIFT
                        |  0 ) & RegMask); */
-               PSU_Mask_Write (CRL_APB_QSPI_REF_CTRL_OFFSET ,0x013F3F07U ,0x01010C00U);
+               PSU_Mask_Write (CRL_APB_QSPI_REF_CTRL_OFFSET ,0x013F3F07U ,0x01010900U);
        /*############################################################################################################################ */
 
                /*Register : SDIO0_REF_CTRL @ 0XFF5E006C</p>