浏览代码

efElectricAgingTrendMining synchronousMemoryDatabase.c 李欣儒 commit at 2021-04-22

李欣儒 4 年之前
父节点
当前提交
05fa4c317e
共有 1 个文件被更改,包括 62 次插入0 次删除
  1. 62 0
      efElectricAgingTrendMining/analysisOfCableOverloadOperation/synchronousMemoryDatabase.c

+ 62 - 0
efElectricAgingTrendMining/analysisOfCableOverloadOperation/synchronousMemoryDatabase.c

@@ -485,3 +485,65 @@ static int __init beagle_opp_init(void)
 			pr_err("%s: failed to enable higher opp %d\n",
 				__func__, r);
 			/*
+			 * Cleanup - disable the higher freqs - we dont care
+			 * about the results
+			 */
+			opp_disable(mpu_dev, 800000000);
+			opp_disable(iva_dev, 660000000);
+		}
+	}
+	return 0;
+}
+device_initcall(beagle_opp_init);
+
+static void __init omap3_beagle_init(void)
+{
+	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
+	omap3_beagle_init_rev();
+
+	if (gpio_is_valid(beagle_config.mmc1_gpio_wp))
+		omap_mux_init_gpio(beagle_config.mmc1_gpio_wp, OMAP_PIN_INPUT);
+	mmc[0].caps = beagle_config.mmc_caps;
+	omap_hsmmc_init(mmc);
+
+	omap3_beagle_i2c_init();
+
+	gpio_buttons[0].gpio = beagle_config.usr_button_gpio;
+
+	platform_add_devices(omap3_beagle_devices,
+			ARRAY_SIZE(omap3_beagle_devices));
+	if (gpio_is_valid(beagle_config.dvi_pd_gpio))
+		omap_mux_init_gpio(beagle_config.dvi_pd_gpio, OMAP_PIN_OUTPUT);
+	omap_display_init(&beagle_dss_data);
+	omap_serial_init();
+	omap_sdrc_init(mt46h32m32lf6_sdrc_params,
+				  mt46h32m32lf6_sdrc_params);
+
+	usb_musb_init(NULL);
+	usbhs_init(&usbhs_bdata);
+	board_nand_init(omap3beagle_nand_partitions,
+			ARRAY_SIZE(omap3beagle_nand_partitions), NAND_CS,
+			NAND_BUSWIDTH_16, NULL);
+	omap_twl4030_audio_init("omap3beagle");
+
+	/* Ensure msecure is mux'd to be able to set the RTC. */
+	omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
+
+	/* Ensure SDRC pins are mux'd for self-refresh */
+	omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
+	omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
+}
+
+MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
+	/* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
+	.atag_offset	= 0x100,
+	.reserve	= omap_reserve,
+	.map_io		= omap3_map_io,
+	.init_early	= omap3_init_early,
+	.init_irq	= omap3_init_irq,
+	.handle_irq	= omap3_intc_handle_irq,
+	.init_machine	= omap3_beagle_init,
+	.init_late	= omap3_init_late,
+	.timer		= &omap3_secure_timer,
+	.restart	= omap3xxx_restart,
+MACHINE_END