blob: 9e2db8e114c1cecce7e002f7b46e0e7546eb78a0 [file] [log] [blame]
Balint Dobszay550ce872022-12-15 15:28:40 +01001/*
2 * Copyright (c) 2023, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include <stdbool.h>
9#include <stdint.h>
10
11#include "config/interface/config_store.h"
12#include "crc32_discovery.h"
13
14bool crc32_armv8a_hw_available(void)
15{
16 uint32_t value = 0;
17
18 if (!config_store_query(CONFIG_CLASSIFIER_HW_FEATURE, "crc32", 0, &value, sizeof(value)))
19 return false;
20
21 return value != 0;
22}