]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: respect CONFIG_CLKIN_HALF
authorMike Frysinger <vapier@gentoo.org>
Sun, 1 Jun 2008 05:26:29 +0000 (01:26 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 28 Jan 2009 18:26:14 +0000 (13:26 -0500)
As pointed out by Ivan Koryakovskiy, the initialization code was not
actually respecting the CONFIG_CLKIN_HALF option when configuring the
PLL_CTL register.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/initcode.c

index ffc8420f1a94cf5b93920fc171519dac1ad18243..e733dd20fd1c8653881ed5ea3b3b4bae2d6648b2 100644 (file)
@@ -158,7 +158,7 @@ static inline void serial_putc(char c)
 #endif
 
 #ifndef CONFIG_PLL_CTL_VAL
-# define CONFIG_PLL_CTL_VAL (SPORT_HYST | (CONFIG_VCO_MULT << 9))
+# define CONFIG_PLL_CTL_VAL (SPORT_HYST | (CONFIG_VCO_MULT << 9) | CONFIG_CLKIN_HALF)
 #endif
 
 #ifndef CONFIG_EBIU_RSTCTL_VAL