diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2022-02-04 16:17:03 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-02-24 19:05:29 +0100 |
commit | 3e53eec58958b56c1be02d001f4b51dfb1714525 (patch) | |
tree | 3cf62b04d4318b6564e84bb630020a1cff532668 /target/linux/at91/image/sama7.mk | |
parent | e58cd453d58b20c6a6f34d3591640aa19aa14d25 (diff) | |
download | upstream-3e53eec58958b56c1be02d001f4b51dfb1714525.tar.gz upstream-3e53eec58958b56c1be02d001f4b51dfb1714525.tar.bz2 upstream-3e53eec58958b56c1be02d001f4b51dfb1714525.zip |
at91: add support for sama7g5-ek board
Add support for SAMA7G5-EK board.
Hardware:
- SoC: SAMA7G5
- RAM: Aliance Memory AS4C256M16D3LC (4 Gbit DDR3L)
- SD/MMC: 1 standard 4bit SD Card interface
- USB: 1 Micro-AB host/device, 1 Type-A host, 1 Type-C host
- CAN: 2 interfaces
- Ethernet: 10/100 port, 1Gbps port
- Wi-Fi/BT: 1 optional interface
- Audio: 1 SPDIF RX port, 1 SPDIF TX port, 4 digital microphones
- Camera: 1 RPi CSI camera interface
- Debug: 1 J-Link-OB + CDC, 1 JTAG
- LEDs: 1 RGB
- Buttons: 4 push buttons
- Expansions: 1 RPi Expansion connector, 2 mikroBUS connectors
- Power management: 1 power management IC, 1 power consumption
measurement device
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Diffstat (limited to 'target/linux/at91/image/sama7.mk')
-rw-r--r-- | target/linux/at91/image/sama7.mk | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/at91/image/sama7.mk b/target/linux/at91/image/sama7.mk new file mode 100644 index 0000000000..bf1704dfb3 --- /dev/null +++ b/target/linux/at91/image/sama7.mk @@ -0,0 +1,57 @@ + +define Device/default-nand + BLOCKSIZE := 128k + PAGESIZE := 2048 + SUBPAGESIZE := 2048 + MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 2048 +endef + +define Build/at91-sdcard + $(if $(findstring ext4,$@), \ + rm -f $@.boot + mkfs.fat -C $@.boot $(FAT32_BLOCKS) + + mcopy -i $@.boot \ + $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \ + ::$(DEVICE_NAME)-fit.itb + + mcopy -i $@.boot \ + $(BIN_DIR)/u-boot-$(DEVICE_DTS:at91-%=%)_mmc1/u-boot.bin \ + ::u-boot.bin + + mcopy -i $@.boot \ + $(BIN_DIR)/at91bootstrap-$(DEVICE_DTS:at91-%=%)sd_uboot/at91bootstrap.bin \ + ::BOOT.bin + + $(CP) uboot-env.txt $@-uboot-env.txt + sed -i '2d;3d' $@-uboot-env.txt + sed -i '2i board='"$(DEVICE_NAME)"'' $@-uboot-env.txt + sed -i '3i board_name='"$(firstword $(SUPPORTED_DEVICES))"'' $@-uboot-env.txt + + mkenvimage -s 0x4000 -o $@-uboot.env $@-uboot-env.txt + + mcopy -i $@.boot $@-uboot.env ::uboot.env + + ./gen_at91_sdcard_img.sh \ + $@.img \ + $@.boot \ + $(KDIR)/root.ext4 \ + $(AT91_SD_BOOT_PARTSIZE) \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE) + + gzip -nc9 $@.img > $@ + + rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt) +endef + +define Device/microchip_sama7g5-ek + $(Device/evaluation-dtb) + DEVICE_VENDOR := Microchip + DEVICE_MODEL := SAMA7G5-EK + DEVICE_DTS := at91-sama7g5ek + SUPPORTED_DEVICES := microchip,sama7g5ek + KERNEL_SIZE := 6144k + KERNEL_LOADADDR := 0x62000000 + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += microchip_sama7g5-ek |