arm: at91: Add support for DENX MA5D4 SoM and EVK
PATCH 1/1 arm: at91: Add support for DENX MA5D4 SoM and EVK
Add support for DENX MA5D4 SoM and MA5D4EVK board, based on the Atmel SAMA5D4 SoC. The SoM contains the SoC, eMMC, SPI NOR, SPI CAN controllers and DRAM, the baseboard contains UART connectors, ethernet port, microSD slot, LCD header, 2x CAN connector and a lot of expansion headers.
--- arch/arm/mach-at91/Kconfig | 6 + board/denx/ma5d4evk/Kconfig | 12 ++ board/denx/ma5d4evk/MAINTAINERS | 6 + board/denx/ma5d4evk/Makefile | 7 + board/denx/ma5d4evk/ma5d4evk.c | 417 ++++++++++++++++++++++++++++++++++++++++ configs/ma5d4evk_defconfig | 11 ++ include/configs/ma5d4evk.h | 255 ++++++++++++++++++++++++ 7 files changed, 714 insertions(+) create mode 100644 board/denx/ma5d4evk/Kconfig create mode 100644 board/denx/ma5d4evk/MAINTAINERS create mode 100644 board/denx/ma5d4evk/Makefile create mode 100644 board/denx/ma5d4evk/ma5d4evk.c create mode 100644 configs/ma5d4evk_defconfig create mode 100644 include/configs/ma5d4evk.h
arch/arm/mach-at91/Kconfig +6 -0
@@ -96,6 +96,11 @@ config TARGET_SAMA5D4EK select CPU_V7 select SUPPORT_SPL +config TARGET_MA5D4EVK + bool "DENX MA5D4EVK Evaluation Kit" + select CPU_V7 + select SUPPORT_SPL + config TARGET_MEESC bool "Support meesc" select CPU_ARM926EJS
@@ -135,6 +140,7 @@ source "board/atmel/sama5d4_xplained/Kconfig" source "board/atmel/sama5d4ek/Kconfig" source "board/bluewater/snapper9260/Kconfig" source "board/calao/usb_a9263/Kconfig" +source "board/denx/ma5d4evk/Kconfig" source "board/egnite/ethernut5/Kconfig" source "board/esd/meesc/Kconfig" source "board/mini-box/picosam9g45/Kconfig"
board/denx/ma5d4evk/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_MA5D4EVK + +config SYS_BOARD + default "ma5d4evk" + +config SYS_VENDOR + default "denx" + +config SYS_CONFIG_NAME + default "ma5d4evk" + +endif
board/denx/ma5d4evk/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +DENX MA5D4EVK BOARD +M: Marek Vasut <[email protected]> +S: Maintained +F: board/denx/ma5d4evk/ +F: include/configs/ma5d4evk.h +F: configs/ma5d4evk_defconfig
board/denx/ma5d4evk/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# +# Copyright (C) 2015 Marek Vasut <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += ma5d4evk.o
board/denx/ma5d4evk/ma5d4evk.c new file +417 -0
417 lines not on this page · raw message
configs/ma5d4evk_defconfig new file +11 -0
@@ -0,0 +1,11 @@ +CONFIG_ARM=y +CONFIG_ARCH_AT91=y +CONFIG_TARGET_MA5D4EVK=y +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="SAMA5D4" +# CONFIG_CMD_IMI is not set +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_LOADS is not set +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_FPGA is not set +CONFIG_SPI_FLASH=y
include/configs/ma5d4evk.h new file +255 -0
255 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 1/1 arm: at91: Add support for DENX MA5D4 SoM and EVK
Hello Marek,
added Andreas to cc as he is the at91 custodian.
Am 10.02.2016 um 22:41 schrieb Marek Vasut:
Quoted 17 lines
Add support for DENX MA5D4 SoM and MA5D4EVK board, based on the Atmel SAMA5D4 SoC. The SoM contains the SoC, eMMC, SPI NOR, SPI CAN controllers and DRAM, the baseboard contains UART connectors, ethernet port, microSD slot, LCD header, 2x CAN connector and a lot of expansion headers.
Signed-off-by Marek Vasut <[email protected]>Cc Andreas Bie?mann <[email protected]>--- arch/arm/mach-at91/Kconfig | 6 + board/denx/ma5d4evk/Kconfig | 12 ++ board/denx/ma5d4evk/MAINTAINERS | 6 + board/denx/ma5d4evk/Makefile | 7 + board/denx/ma5d4evk/ma5d4evk.c | 417 ++++++++++++++++++++++++++++++++++++++++ configs/ma5d4evk_defconfig | 11 ++ include/configs/ma5d4evk.h | 255 ++++++++++++++++++++++++ 7 files changed, 714 insertions(+)
Quoted 6 lines
create mode 100644 board/denx/ma5d4evk/Kconfig create mode 100644 board/denx/ma5d4evk/MAINTAINERS create mode 100644 board/denx/ma5d4evk/Makefile create mode 100644
board/denx/ma5d4evk/ma5d4evk.ccreate mode 100644 configs/ma5d4evk_defconfig create mode 100644include/configs/ma5d4evk.h
just some nitpick ;-)
[...]
Quoted 28 lines
board/denx/ma5d4evk/ma5d4evk.c new file +22
-0@@ -0,0 +1,417 @@ +/* +* Copyright (C) 2015 Marek Vasut <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/io.h> +#include <asm/arch/at91_common.h> +#include <asm/arch/at91_pmc.h> +#include <asm/arch/at91_rstc.h> +#include <asm/arch/atmel_mpddrc.h> +#include <asm/arch/atmel_usba_udc.h> +#include <asm/arch/gpio.h> +#include <asm/arch/clk.h> +#include <asm/arch/sama5d3_smc.h> +#include <asm/arch/sama5d4.h> +#include <atmel_hlcdc.h> +#include <atmel_mci.h> +#include <lcd.h> +#include <mmc.h> +#include <net.h>
board/denx/ma5d4evk/ma5d4evk.c line 32
Quoted 10 lines
board/denx/ma5d4evk/ma5d4evk.c new file +10
-0+#include <netdev.h> +#include <spi.h> +#include <version.h> + +DECLARE_GLOBAL_DATA_PTR ; + +/* +* re h ; load 0x200000 ma5d4evk/u-boot-spl.bin BIN ; go 0x200000 +* h ; load 0x26f00000 ma5d4evk/u-boot.bin BIN ; go 0x26f00000 +*/
;-) Maybe a comment that this are the magic commands in the BDI for starting the generated images would be helpful.
And plan is to switch to CONFIG_DM for all boards (I know, I did not started with this job for "my" boards ...)... do you have plans/time for switching (or may you use it already and i just overseen it)?
Beside of this:
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH 1/1 arm: at91: Add support for DENX MA5D4 SoM and EVK
Quoted 1 line · Heiko Schocher
Hello Marek,
Hi!
Quoted 11 lines
added Andreas to cc as he is the at91 custodian.
Am 10.02.2016 um 22:41 schrieb Marek Vasut:
Quoted 8 lines
Add support for DENX MA5D4 SoM and MA5D4EVK board, based on the Atmel SAMA5D4 SoC. The SoM contains the SoC, eMMC, SPI NOR, SPI CAN controllers and DRAM, the baseboard contains UART connectors, ethernet port, microSD slot, LCD header, 2x CAN connector and a lot of expansion headers.
Signed-off-by Marek Vasut <[email protected]>Cc Andreas Bie?mann <[email protected]>
Andreas should be in Cc , see ^ , could it be that the ML is doing something funny again ?
Quoted 54 lines
Quoted 10 lines
--- arch/arm/mach-at91/Kconfig | 6 + board/denx/ma5d4evk/Kconfig | 12 ++ board/denx/ma5d4evk/MAINTAINERS | 6 + board/denx/ma5d4evk/Makefile | 7 + board/denx/ma5d4evk/ma5d4evk.c | 417 ++++++++++++++++++++++++++++++++++++++++ configs/ma5d4evk_defconfig | 11 ++ include/configs/ma5d4evk.h | 255 ++++++++++++++++++++++++ 7 files changed, 714 insertions(+)Quoted 6 lines
create mode 100644 board/denx/ma5d4evk/Kconfig create mode 100644 board/denx/ma5d4evk/MAINTAINERS create mode 100644 board/denx/ma5d4evk/Makefile create mode 100644
board/denx/ma5d4evk/ma5d4evk.ccreate mode 100644 configs/ma5d4evk_defconfig create mode 100644include/configs/ma5d4evk.hjust some nitpick ;-)
[...]
Quoted 34 lines
board/denx/ma5d4evk/ma5d4evk.c new file +27
-0@@ -0,0 +1,417 @@ +/* +* Copyright (C) 2015 Marek Vasut <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/io.h> +#include <asm/arch/at91_common.h> +#include <asm/arch/at91_pmc.h> +#include <asm/arch/at91_rstc.h> +#include <asm/arch/atmel_mpddrc.h> +#include <asm/arch/atmel_usba_udc.h> +#include <asm/arch/gpio.h> +#include <asm/arch/clk.h> +#include <asm/arch/sama5d3_smc.h> +#include <asm/arch/sama5d4.h> +#include <atmel_hlcdc.h> +#include <atmel_mci.h> +#include <lcd.h> +#include <mmc.h> +#include <net.h> +#include <netdev.h> +#include <spi.h> +#include <version.h> + +DECLARE_GLOBAL_DATA_PTR ;
Quoted 8 lines
board/denx/ma5d4evk/ma5d4evk.c line 32
Quoted 5 lines
board/denx/ma5d4evk/ma5d4evk.c new file +5
-0+ +/* +* re h ; load 0x200000 ma5d4evk/u-boot-spl.bin BIN ; go 0x200000 +* h ; load 0x26f00000 ma5d4evk/u-boot.bin BIN ; go 0x26f00000 +*/ ;-) Maybe a comment that this are the magic commands in the BDI for starting the generated images would be helpful.
Guh, nice catch, removed.
Quoted 3 lines
And plan is to switch to
CONFIG_DMfor all boards (I know, I did not started with this job for "my" boards ...)... do you have plans/time for switching (or may you use it already and i just overseen it)?
I'd like to start with MX6 when I have time, but that's not gonna happen soon I'm afraid. I'm hoping someone from Atmel will take up the job for Atmel-based boards ;-)
Quoted 5 lines
Beside of this:
Reviewed-by Heiko Schocher <[email protected]>bye,
Heiko
PATCH 1/1 arm: at91: Add support for DENX MA5D4 SoM and EVK
Dear Marek,
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 8 lines
Quoted 5 lines
+/*
+ * re h ; load0x200000ma5d4evk/u-boot-spl.bin BIN ; go0x200000
+ * h ; load0x26f00000ma5d4evk/u-boot.bin BIN ; go0x26f00000
+ */;-) Maybe a comment that this are the magic commands in the BDI for starting the generated images would be helpful.
Guh, nice catch, removed.
I think this was pretty useful information. If you don't want to have it in the code, please move it to some README, but don't drop it.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "There's only one way to have a happy marriage and as soon as I learn what it is I'll get married again." - Clint Eastwood
PATCH 1/1 arm: at91: Add support for DENX MA5D4 SoM and EVK
Quoted 9 lines · Wolfgang Denk
Dear Marek,
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 6 lines
Quoted 5 lines
+/*
+ * re h ; load0x200000ma5d4evk/u-boot-spl.bin BIN ; go0x200000
+ * h ; load0x26f00000ma5d4evk/u-boot.bin BIN ; go0x26f00000
+ */
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
;-) Maybe a comment that this are the magic commands in the BDI for starting the generated images would be helpful.
Guh, nice catch, removed.
I think this was pretty useful information. If you don't want to have it in the code, please move it to some README, but don't drop it.
It's in the BDI config file, no problem.