1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright(C) 2020 Linaro Limited. All rights reserved.
7 #include "coresight-cfg-preload.h"
8 #include "coresight-config.h"
9 #include "coresight-syscfg.h"
11 /* Basic features and configurations pre-loaded on initialisation */
13 static struct cscfg_feature_desc *preload_feats[] = {
14 #if IS_ENABLED(CONFIG_CORESIGHT_SOURCE_ETM4X)
20 static struct cscfg_config_desc *preload_cfgs[] = {
21 #if IS_ENABLED(CONFIG_CORESIGHT_SOURCE_ETM4X)
27 /* preload called on initialisation */
28 int cscfg_preload(void)
30 return cscfg_load_config_sets(preload_cfgs, preload_feats);