[PATCH 05/10] ARM: socfpga: add Arrow AXE5 Agilex5 board

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 4 02:48:25 PST 2024


On Tue, Oct 29, 2024 at 09:42:35AM +0100, Steffen Trumtrar wrote:
> Add the Agilex5-based Arrow AXE5-Eagle board.
> It consists among other things of:
>   - Agilex5 SoCFPGA
>   - 1 GB LPDDR4 SDRAM for HPS
>   - 1 GB LPDDR4 SDRAM for FPGA
>   - 1 Gb QSPI for configuration via SDM
>   - microSD
>   - 4-port USB hub
>   - 2x 1Gb Ethernet
>   - HDMI output
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
> ---
>  arch/arm/boards/Makefile                    |  1 +
>  arch/arm/boards/arrow-axe5-eagle/Makefile   |  3 +
>  arch/arm/boards/arrow-axe5-eagle/board.c    | 23 +++++++
>  arch/arm/boards/arrow-axe5-eagle/lowlevel.c | 58 ++++++++++++++++++
>  arch/arm/configs/socfpga-agilex5_defconfig  | 88 +++++++++++++++++++++++++++
>  arch/arm/dts/Makefile                       |  1 +
>  arch/arm/dts/socfpga_agilex5_axe5_eagle.dts | 94 +++++++++++++++++++++++++++++
>  images/Makefile.socfpga                     |  9 +++
>  8 files changed, 277 insertions(+)
> 
> diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile
> index e0dc27cb3d21cc7bc763f148595321562d65d740..bc4d3bb4ea9e5691de90cbf7e6b0fbc577076732 100644
> --- a/arch/arm/boards/Makefile
> +++ b/arch/arm/boards/Makefile
> @@ -111,6 +111,7 @@ obj-$(CONFIG_MACH_SAMA5D4_WIFX)			+= sama5d4_wifx/
>  obj-$(CONFIG_MACH_SCB9328)			+= scb9328/
>  obj-$(CONFIG_MACH_SEEED_ODYSSEY)		+= seeed-odyssey/
>  obj-$(CONFIG_MACH_SOCFPGA_ALTERA_SOCDK)		+= altera-socdk/
> +obj-$(CONFIG_MACH_SOCFPGA_ARROW_AXE5_EAGLE)	+= arrow-axe5-eagle/
>  obj-$(CONFIG_MACH_SOCFPGA_EBV_SOCRATES)		+= ebv-socrates/
>  obj-$(CONFIG_MACH_SOCFPGA_ENCLUSTRA_AA1)	+= enclustra-aa1/
>  obj-$(CONFIG_MACH_SOCFPGA_REFLEX_ACHILLES)	+= reflex-achilles/
> diff --git a/arch/arm/boards/arrow-axe5-eagle/Makefile b/arch/arm/boards/arrow-axe5-eagle/Makefile
> new file mode 100644
> index 0000000000000000000000000000000000000000..1d052d28c9fc6a82dbf806eedac60fac8a56d4f9
> --- /dev/null
> +++ b/arch/arm/boards/arrow-axe5-eagle/Makefile
> @@ -0,0 +1,3 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +lwl-y += lowlevel.o
> +obj-y += board.o
> diff --git a/arch/arm/boards/arrow-axe5-eagle/board.c b/arch/arm/boards/arrow-axe5-eagle/board.c
> new file mode 100644
> index 0000000000000000000000000000000000000000..1efea0b3d9cf0aa5ecd7c67ea9348708dcfd0b80
> --- /dev/null
> +++ b/arch/arm/boards/arrow-axe5-eagle/board.c
> @@ -0,0 +1,23 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +#include <common.h>
> +#include <init.h>
> +#include <io.h>
> +#include <bbu.h>
> +#include <mach/socfpga/soc64-regs.h>
> +
> +static int axe5_init(void)
> +{
> +	if (!of_machine_is_compatible("arrow,axe5-eagle"))
> +		return 0;
> +
> +	pr_debug("Change the pullup values on EMAC2 HPS mii signals\n");
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x224);
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x228);
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x23c);
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x234);
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x248);
> +	writel(0x14, SOCFPGA_PINMUX_ADDRESS + 0x24c);
> +
> +	return 0;
> +}
> +postcore_initcall(axe5_init);

Please convert to a board driver.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list