@@ -1252,7 +1252,7 @@ console_initcall(da850_evm_console_init);
static void __init da850_evm_map_io(void)
{
- da850_init();
+ da850_init(NULL);
}
MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM")
@@ -561,7 +561,7 @@ console_initcall(mityomapl138_console_init);
static void __init mityomapl138_map_io(void)
{
- da850_init();
+ da850_init(NULL);
}
MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808")
@@ -334,7 +334,7 @@ console_initcall(omapl138_hawk_console_init);
static void __init omapl138_hawk_map_io(void)
{
- da850_init();
+ da850_init(NULL);
}
MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard")
@@ -1104,10 +1104,13 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
.reset_device = &da8xx_wdt_device,
};
-void __init da850_init(void)
+void __init da850_init(struct da850_init_board_info *board)
{
unsigned int v;
+ if (board && board->ref_clk_rate)
+ ref_clk.rate = board->ref_clk_rate;
+
davinci_common_init(&davinci_soc_info_da850);
da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K);
@@ -69,8 +69,12 @@ extern unsigned int da850_max_speed;
#define DA8XX_AEMIF_CTL_BASE 0x68000000
#define DA8XX_ARM_RAM_BASE 0xffff0000
+struct da850_init_board_info {
+ unsigned long ref_clk_rate;
+};
+
void __init da830_init(void);
-void __init da850_init(void);
+void __init da850_init(struct da850_init_board_info *board);
int da830_register_edma(struct edma_rsv_info *rsv);
int da850_register_edma(struct edma_rsv_info *rsv[2]);