Skip to content

Commit d27ac2e

Browse files
commodovinodkoul
authored andcommitted
include: fpga: adi-axi-common.h: add common regs & defs header
The AXI HDL cores provided for Analog Devices reference designs all share some common base registers (e.g. version register at address 0x00). To reduce duplication for this, a common header is added to define these registers as well as bitfields & macros to work with these registers. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 7b11ef9 commit d27ac2e

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Analog Devices AXI common registers & definitions
4+
*
5+
* Copyright 2019 Analog Devices Inc.
6+
*
7+
* https://wiki.analog.com/resources/fpga/docs/axi_ip
8+
* https://wiki.analog.com/resources/fpga/docs/hdl/regmap
9+
*/
10+
11+
#ifndef ADI_AXI_COMMON_H_
12+
#define ADI_AXI_COMMON_H_
13+
14+
#define ADI_AXI_REG_VERSION 0x0000
15+
16+
#define ADI_AXI_PCORE_VER(major, minor, patch) \
17+
(((major) << 16) | ((minor) << 8) | (patch))
18+
19+
#endif /* ADI_AXI_COMMON_H_ */

0 commit comments

Comments
 (0)