at91: Merge SAMA5 subtargets
[openwrt/openwrt.git] / target / linux / at91 / image / sama5.mk
1
2 define Device/default-nand
3 BLOCKSIZE := 128k
4 PAGESIZE := 2048
5 SUBPAGESIZE := 2048
6 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 2048
7 endef
8
9 define Device/at91-sama5d2_xplained
10 $(Device/evaluation-dtb)
11 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained
12 KERNEL_SIZE := 6144k
13 $(Device/evaluation-sdimage)
14 endef
15 TARGET_DEVICES += at91-sama5d2_xplained
16
17 define Device/at91-sama5d27_som1_ek
18 $(Device/evaluation-dtb)
19 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D27 SOM1 Ek
20 KERNEL_SIZE := 6144k
21 $(Device/evaluation-sdimage)
22 endef
23 TARGET_DEVICES += at91-sama5d27_som1_ek
24
25 define Device/at91-sama5d2_ptc_ek
26 $(Device/evaluation-dtb)
27 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 PTC Ek
28 KERNEL_SIZE := 6144k
29 $(Device/evaluation-sdimage)
30 endef
31 TARGET_DEVICES += at91-sama5d2_ptc_ek
32
33
34 define Device/at91-sama5d3_xplained
35 $(Device/evaluation-dtb)
36 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained
37 KERNEL_SIZE := 6144k
38 $(Device/evaluation-sdimage)
39 endef
40 TARGET_DEVICES += at91-sama5d3_xplained
41
42 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
43 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
44 define Device/wb50n
45 $(Device/evaluation-fit)
46 DEVICE_TITLE := Laird WB50N
47 DEVICE_PACKAGES := \
48 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
49 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
50 kmod-leds-gpio
51 BLOCKSIZE := 128k
52 PAGESIZE := 2048
53 SUBPAGESIZE := 2048
54 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
55 endef
56 TARGET_DEVICES += wb50n
57 endif
58 endif
59
60
61 define Device/at91-sama5d4_xplained
62 $(Device/evaluation-dtb)
63 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained
64 KERNEL_SIZE := 6144k
65 BLOCKSIZE := 256k
66 PAGESIZE := 4096
67 SUBPAGESIZE := 2048
68 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB -c 2082
69 $(Device/evaluation-sdimage)
70 endef
71 TARGET_DEVICES += at91-sama5d4_xplained