void __init macallan_sysedp_core_init(void)
{
	int r;

	macallan_sysedp_platdata.cpufreq_lim = tegra_get_system_edp_entries(
			&macallan_sysedp_platdata.cpufreq_lim_size);
	if (!macallan_sysedp_platdata.cpufreq_lim) {
		WARN_ON(1);
		return;
	}

	r = platform_device_register(&macallan_sysedp_device);
	WARN_ON(r);
}
void __init tn8_sysedp_dynamic_capping_init(void)
{
	int r;
	struct tegra_sysedp_corecap *corecap;
	unsigned int corecap_size;
	struct board_info board;


	corecap = tegra_get_sysedp_corecap(&corecap_size);
	if (!corecap) {
		WARN_ON(1);
		return;
	}
	tn8_sysedp_dynamic_capping_platdata.corecap = corecap;
	tn8_sysedp_dynamic_capping_platdata.corecap_size = corecap_size;

	tn8_sysedp_dynamic_capping_platdata.cpufreq_lim = tegra_get_system_edp_entries(
		&tn8_sysedp_dynamic_capping_platdata.cpufreq_lim_size);
	if (!tn8_sysedp_dynamic_capping_platdata.cpufreq_lim) {
		WARN_ON(1);
		return;
	}

	tegra_get_board_info(&board);

	if ((board.board_id == BOARD_P1761) &&
		(board.fab >= BOARD_FAB_A02)) {
		tn8_sysedp_dynamic_capping_platdata.cap_method =
			TEGRA_SYSEDP_CAP_METHOD_RELAX;
	}

	r = platform_device_register(&tn8_sysedp_dynamic_capping);
	WARN_ON(r);

	r = platform_device_register(&tn8_sysedp_reactive_capping_oc1);
	WARN_ON(r);
}