]> git.sur5r.net Git - u-boot/commitdiff
EfikaMX: Adjust undocumented magic constant in config file
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 14 Sep 2011 18:16:57 +0000 (18:16 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:00 +0000 (22:01 +0200)
This magic constant with zero documentation, when it's last 8 bits are set to
0x45, configures correctly the PERCLK dividers. Therefore the I2C operates
correctly when divider computed from PERCLK.

Note: This constant is written to CBCDR register in
arch/arm/cpu/armv7/mx5/lowlevel_init.S, but it's written only once. The register
is accessed three more times in the file, with different values written to it
each time.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
include/configs/efikamx.h

index b90e34299f94d00d26284d87d2233ca2a96cecd4..fdd0a145af54ec34843cbdafec84eb8ecbff713a 100644 (file)
        (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
 
 #define CONFIG_SYS_DDR_CLKSEL          0
-#define CONFIG_SYS_CLKTL_CBCDR         0x59E35100
+#define CONFIG_SYS_CLKTL_CBCDR         0x59E35145
 
 #endif