summaryrefslogtreecommitdiff
path: root/board/kontron/common/hw-uid.h
blob: 7eaf2cc9b6c7e8f84296bc4ca1d10cbca6e90526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2024 Kontron Electronics GmbH
 */

#ifndef _KONTRON_HW_UID_H
#define _KONTRON_HW_UID_H

#include <compiler.h>
#include <stddef.h>

enum {
	UID_OTP_FORMAT_DEC = 0,
	UID_OTP_FORMAT_HEX,
};

struct uid_otp_loc {
	u32 *addr;
	size_t len;
	unsigned int format;
	char *desc;
};

void get_serial_number(struct uid_otp_loc *locs, unsigned int num);

#endif /* _KONTRON_HW_UID_H */