11 #include <linux/kernel.h>
15 #include <linux/pci.h>
22 #include <asm/setup.h>
23 #include <asm/timex.h>
30 #include <mach/bridge-regs.h>
36 #include <plat/common.h>
68 static struct clk *tclk;
70 static struct clk __init *dove_register_gate(
const char *
name,
75 bit_idx, 0, &gating_lock);
78 static void __init dove_clk_init(
void)
81 struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *
ac97, *pdma;
82 struct clk *xor0, *xor1, *ge, *gephy;
238 static int __init dove_find_tclk(
void)
243 static void __init dove_timer_init(
void)
245 dove_tclk = dove_find_tclk();
251 .init = dove_timer_init,
286 static struct resource dove_sdio0_resources[] = {
299 .name =
"sdhci-dove",
302 .dma_mask = &sdio_dmamask,
305 .resource = dove_sdio0_resources,
306 .num_resources =
ARRAY_SIZE(dove_sdio0_resources),
314 static struct resource dove_sdio1_resources[] = {
327 .name =
"sdhci-dove",
330 .dma_mask = &sdio_dmamask,
333 .resource = dove_sdio1_resources,
334 .num_resources =
ARRAY_SIZE(dove_sdio1_resources),
344 pr_info(
"Dove 88AP510 SoC, TCLK = %d MHz.\n",
345 (dove_tclk + 499999) / 1000000);
347 #ifdef CONFIG_CACHE_TAUROS2
377 #if defined(CONFIG_MACH_DOVE_DT)
381 struct of_dev_auxdata dove_auxdata_lookup[] __initdata = {
382 OF_DEV_AUXDATA(
"marvell,orion-spi", 0xf1010600,
"orion_spi.0",
NULL),
383 OF_DEV_AUXDATA(
"marvell,orion-spi", 0xf1014600,
"orion_spi.1",
NULL),
384 OF_DEV_AUXDATA(
"marvell,orion-wdt", 0xf1020300,
"orion_wdt",
NULL),
385 OF_DEV_AUXDATA(
"marvell,mv64xxx-i2c", 0xf1011000,
"mv64xxx_i2c.0",
387 OF_DEV_AUXDATA(
"marvell,orion-sata", 0xf10a0000,
"sata_mv.0",
NULL),
388 OF_DEV_AUXDATA(
"marvell,dove-sdhci", 0xf1092000,
"sdhci-dove.0",
NULL),
389 OF_DEV_AUXDATA(
"marvell,dove-sdhci", 0xf1090000,
"sdhci-dove.1",
NULL),
397 static void __init dove_dt_init(
void)
399 pr_info(
"Dove 88AP510 SoC, TCLK = %d MHz.\n",
400 (dove_tclk + 499999) / 1000000);
402 #ifdef CONFIG_CACHE_TAUROS2
421 dove_auxdata_lookup,
NULL);
424 static const char *
const dove_dt_board_compat[] = {
434 .init_machine = dove_dt_init,
436 .dt_compat = dove_dt_board_compat,