static void __init devkit8000_init_irq(void)
{
	omap_board_config = devkit8000_config;
	omap_board_config_size = ARRAY_SIZE(devkit8000_config);
	omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
			     mt46h32m32lf6_sdrc_params);
	omap_init_irq();
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(12);
#endif
	omap_gpio_init();
}
static void __init omap3_touchbook_init_irq(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	omap_board_config = omap3_touchbook_config;
	omap_board_config_size = ARRAY_SIZE(omap3_touchbook_config);
	omap_init_irq();
	omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
			     mt46h32m32lf6_sdrc_params);
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(12);
#endif
}
Example #3
0
static void __init omap_4430sdp_init_irq(void)
{
	omap_board_config = sdp4430_config;
	omap_board_config_size = ARRAY_SIZE(sdp4430_config);
	omap2_init_common_infrastructure();
	omap2_init_common_devices(NULL, NULL);
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(1);
#endif
	gic_init_irq();
	gpmc_init();
}
static void __init omap3_stalker_init_irq(void)
{
	omap_board_config = omap3_stalker_config;
	omap_board_config_size = ARRAY_SIZE(omap3_stalker_config);
	omap2_init_common_infrastructure();
	omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL);
	omap_init_irq();
	gpmc_init();
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(12);
#endif
}
Example #5
0
static void __init mapphone_init_early(void)
{
	omap2_init_common_infrastructure();
	omap2_init_common_devices(NULL, NULL);
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(1);
#endif

	if (fdt_start_address) {
		struct device_node *machine_node;
		const void *machine_prop;
		const void *cpu_tier_prop;
		void *mem;

		mem = __alloc_bootmem(fdt_size, __alignof__(int), 0);
		BUG_ON(!mem);
		memcpy(mem, (const void *)fdt_start_address, fdt_size);
		initial_boot_params = (struct boot_param_header *)mem;
		pr_info("Unflattening device tree: 0x%08x\n", (u32)mem);
		unflatten_device_tree();

		machine_node = of_find_node_by_path(DT_PATH_MACHINE);
		if (machine_node) {
			machine_prop = of_get_property(machine_node,
				DT_PROP_MACHINE_TYPE, NULL);
			if (machine_prop)
				set_machine_name((const char *)machine_prop);

			cpu_tier_prop = of_get_property(machine_node,
				DT_PROP_CPU_TIER, NULL);
			if (cpu_tier_prop)
				set_cpu_tier((const char *)cpu_tier_prop);

			of_node_put(machine_node);
		}

	}
}
Example #6
0
static void __init omap3_beagle_init_irq(void)
{
        if (cpu_is_omap3630())
        {
                omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
                                        NULL,
                                        _omap37x_mpu_rate_table,
                                        _omap37x_dsp_rate_table,
                                        _omap37x_l3_rate_table);
        }
        else
        {
                omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
                                        NULL,
                                        _omap35x_mpu_rate_table,
                                        _omap35x_dsp_rate_table,
                                        _omap35x_l3_rate_table);
        }
	omap_init_irq();
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(12);
#endif
	omap_gpio_init();
}
static void __init omap_ovation_init_early(void)
{
	struct omap_hwmod *oh;
	int i;
	char const * const hwmods[] = {
		[0] = "gpio1",
		[1] = "gpio3",
		[2] = "gpio5"
	};

	omap2_init_common_infrastructure();
	omap2_init_common_devices(NULL, NULL);
#ifdef CONFIG_OMAP_32K_TIMER
	omap2_gp_clockevent_set_gptimer(1);
#endif
	for (i = 0; i < sizeof(hwmods)/sizeof(char*); i++) {
		oh = omap_hwmod_lookup(hwmods[i]);
		if (oh) {
			if (omap_hwmod_no_setup_reset(oh))
				printk("Failed to disable reset for %s\n", hwmods[i]);
		} else
			printk("%s hwmod not found\n", hwmods[i]);
	}
}