<commit_before>
/*
 * Copyright (c) 2018 Synopsys, Inc. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * This module provides routines to initialize and support soc-level hardware
 * for the IoT Development Kit board.
 *
 */
#include <device.h>
#include <init.h>
#include "sysconf.h"

static int arc_iot_init(struct device *dev)
{
	ARG_UNUSED(dev);

	if (arc_iot_pll_fout_config(
			CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / 1000000) < 0) {
		return -1;
	}

	return 0;
}

SYS_INIT(arc_iot_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
<commit_msg>soc: snps_arc_iot: Get CPU clock frequency from DTS<commit_after>
/*
 * Copyright (c) 2018 Synopsys, Inc. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * This module provides routines to initialize and support soc-level hardware
 * for the IoT Development Kit board.
 *
 */
#include <device.h>
#include <init.h>
#include "sysconf.h"

static int arc_iot_init(struct device *dev)
{
	ARG_UNUSED(dev);

	if (arc_iot_pll_fout_config(
			     DT_SNPS_ARCEM_0_CLOCK_FREQUENCY / 1000000) < 0) {
		return -1;
	}

	return 0;
}

SYS_INIT(arc_iot_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

{'fraction_non_alphanumeric': 0.11166666666666666, 'fraction_numerical': 0.029166666666666667, 'mean_word_length': 4.337777777777778, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6688567', 'n_tokens_mistral': 488, 'n_tokens_neox': 441, 'n_words': 109}