From: Vinod Koul <vkoul@kernel.org>
To: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: dmaengine@vger.kernel.org
Subject: Re: [PATCH 1/3][V2] include: fpga: adi-axi-common.h: add common regs & defs header
Date: Mon, 27 May 2019 12:07:43 +0530 [thread overview]
Message-ID: <20190527063743.GD15118@vkoul-mobl> (raw)
In-Reply-To: <20190521141425.26176-1-alexandru.ardelean@analog.com>
On 21-05-19, 17:14, Alexandru Ardelean wrote:
> 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>
> ---
> include/linux/fpga/adi-axi-common.h | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 include/linux/fpga/adi-axi-common.h
>
> diff --git a/include/linux/fpga/adi-axi-common.h b/include/linux/fpga/adi-axi-common.h
> new file mode 100644
> index 000000000000..7966c89561b1
> --- /dev/null
> +++ b/include/linux/fpga/adi-axi-common.h
> @@ -0,0 +1,19 @@
> +// SPDX-License-Identifier: GPL-2.0
For headers this is not the style to be used.
See Documentation/process/license-rules.rst
C source: // SPDX-License-Identifier: <SPDX License Expression>
C header: /* SPDX-License-Identifier: <SPDX License Expression> */
> +/*
> + * 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_ */
> --
> 2.17.1
--
~Vinod
next prev parent reply other threads:[~2019-05-27 6:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 14:14 [PATCH 1/3][V2] include: fpga: adi-axi-common.h: add common regs & defs header Alexandru Ardelean
2019-05-21 14:14 ` [PATCH 2/3][V2] dmaengine: axi-dmac: Discover length alignment requirement Alexandru Ardelean
2019-05-21 14:14 ` [PATCH 3/3][V2] dmaengine: axi-dmac: assign `copy_align` property Alexandru Ardelean
2019-05-21 14:18 ` [PATCH 1/3][V2] include: fpga: adi-axi-common.h: add common regs & defs header Ardelean, Alexandru
2019-05-27 6:37 ` Vinod Koul [this message]
2019-05-27 6:40 ` Ardelean, Alexandru
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190527063743.GD15118@vkoul-mobl \
--to=vkoul@kernel.org \
--cc=alexandru.ardelean@analog.com \
--cc=dmaengine@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox