]> git.sur5r.net Git - u-boot/commitdiff
colibri_vf: use same NAND clock as Linux uses
authorStefan Agner <stefan.agner@toradex.com>
Wed, 30 Nov 2016 21:41:56 +0000 (13:41 -0800)
committerStefano Babic <sbabic@denx.de>
Fri, 16 Dec 2016 08:56:38 +0000 (09:56 +0100)
Currently a divider of 6 has been used, leading to following NAND
Flash Controller (NFC) clocks:
VF61: 27.7 MHz (166.7MHz bus clock)
VF50: 22 MHz (132MHz bus clock)

The NAND Flash Memory used on VF50 allows to use clock speed of
up to 33MHz, while the Flash Memory of VF61 allows 50MHz. We can
use the same divider of 4 on both modules to configure the maximal
possible clock speeds:
VF61: 41.7 MHz
VF50: 33 MHz

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
board/toradex/colibri_vf/colibri_vf.c

index 15f263c51e866d415a0d3e7e8ae8eb574c555dcc..7b74eb7e9daa207a65f2821f59d2346dda5c46c3 100644 (file)
@@ -428,7 +428,7 @@ static void clock_init(void)
                        CCM_CSCDR2_ESDHC1_EN | CCM_CSCDR2_ESDHC1_CLK_DIV(0) |
                        CCM_CSCDR2_NFC_EN);
        clrsetbits_le32(&ccm->cscdr3, CCM_REG_CTRL_MASK,
-                       CCM_CSCDR3_NFC_PRE_DIV(5));
+                       CCM_CSCDR3_NFC_PRE_DIV(3));
        clrsetbits_le32(&ccm->cscmr2, CCM_REG_CTRL_MASK,
                        CCM_CSCMR2_RMII_CLK_SEL(2));
 }