diff mbox series

[LEDE-DEV,LEDE-DEV,v2,04/11] at91: Add SAMA5D2 device

Message ID aae904ce544b8c9fc568ff3e6cbc2d8a2b426e90.1505328596.git.sandeepsheriker.mallikarjun@microchip.com
State Accepted
Headers show
Series [LEDE-DEV,LEDE-DEV,v2,01/11] at91: Renaming subtarget sama5d3 to sama5 | expand

Commit Message

Sandeep Sheriker Sept. 13, 2017, 6:51 p.m. UTC
Add support for SAMA5D2 with target device as at91-sama5d2_xplained
in SAMA5 subtarget and build images for SAMA5D2 Xplained board.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
---
 target/linux/at91/base-files/lib/at91.sh | 3 +++
 target/linux/at91/image/sama5.mk         | 8 ++++++++
 2 files changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh
index 0fa2ee3..84beecd 100755
--- a/target/linux/at91/base-files/lib/at91.sh
+++ b/target/linux/at91/base-files/lib/at91.sh
@@ -43,6 +43,9 @@  at91_board_detect() {
 	*"SAMA5D3 Xplained")
 		name="sama5d3_xplained"
 		;;
+	*"SAMA5D2 Xplained")
+		name="sama5d2_xplained"
+		;;
 	*"CalAmp LMU5000")
 		name="lmu5000"
 		;;
diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk
index 11d8538..1faeb4b 100644
--- a/target/linux/at91/image/sama5.mk
+++ b/target/linux/at91/image/sama5.mk
@@ -5,3 +5,11 @@  define Device/at91-sama5d3_xplained
   SUBPAGESIZE := 2048
 endef
 TARGET_DEVICES += at91-sama5d3_xplained
+
+define Device/at91-sama5d2_xplained
+  $(Device/evaluation-dtb)
+  DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained
+  KERNEL_SIZE := 6144k
+  SUBPAGESIZE := 2048
+endef
+TARGET_DEVICES += at91-sama5d2_xplained