aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGirish K S <girish@avatar.(none)>2012-09-25 17:13:26 +0900
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:45 -0700
commitfc89bbf1640a031d887bfc0d3d624eefdbc23fa1 (patch)
treea7be47d3a2079fbd9ef3bebd5b45d0ef103fb939
parente3314e49251a6088cfca410dd6f36e553bb641f6 (diff)
downloadu-boot-linaro-stable-fc89bbf1640a031d887bfc0d3d624eefdbc23fa1.tar.gz
board: samsung: Removed the hardcode clock values
Boards based on same Soc can you different clock values so the values are moved to config file. Signed-off-by: Girish K S <ks.giri@samsung.com)>
-rw-r--r--board/samsung/smdk5250/smdk5250_spl.c4
-rw-r--r--include/configs/smdk5250.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/board/samsung/smdk5250/smdk5250_spl.c b/board/samsung/smdk5250/smdk5250_spl.c
index 1d453cafc..1f0ce72e9 100644
--- a/board/samsung/smdk5250/smdk5250_spl.c
+++ b/board/samsung/smdk5250/smdk5250_spl.c
@@ -49,8 +49,8 @@ static struct spl_machine_param machine_param
.uboot_size = 0x100000,
.boot_source = BOOT_MODE_OM,
- .frequency_mhz = 800,
- .arm_freq_mhz = 1700,
+ .frequency_mhz = CONFIG_BUS_CLK_FREQ,
+ .arm_freq_mhz = CONFIG_ARM_CLK_FREQ,
.serial_base = 0x12c30000,
.i2c_base = 0x12c60000,
.mem_manuf = MEM_MANUF_SAMSUNG,
diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
index 3a567ff51..fd7ececae 100644
--- a/include/configs/smdk5250.h
+++ b/include/configs/smdk5250.h
@@ -45,6 +45,8 @@
/* input clock of PLL: SMDK5250 has 24MHz input clock */
#define CONFIG_SYS_CLK_FREQ 24000000
+#define CONFIG_ARM_CLK_FREQ 1700 /* in MHz*/
+#define CONFIG_BUS_CLK_FREQ 800 /* in MHz*/
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_CMDLINE_TAG