mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
d27ac2e02b
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>
19 lines
474 B
C
19 lines
474 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Analog Devices AXI common registers & definitions
|
|
*
|
|
* Copyright 2019 Analog Devices Inc.
|
|
*
|
|
* https://wiki.analog.com/resources/fpga/docs/axi_ip
|
|
* https://wiki.analog.com/resources/fpga/docs/hdl/regmap
|
|
*/
|
|
|
|
#ifndef ADI_AXI_COMMON_H_
|
|
#define ADI_AXI_COMMON_H_
|
|
|
|
#define ADI_AXI_REG_VERSION 0x0000
|
|
|
|
#define ADI_AXI_PCORE_VER(major, minor, patch) \
|
|
(((major) << 16) | ((minor) << 8) | (patch))
|
|
|
|
#endif /* ADI_AXI_COMMON_H_ */
|