ramips: correct MTC WR1201 LAN ports names
[oweals/openwrt.git] / target / linux / at91 / image / sam9x.mk
1 define Device/default-nand
2   BLOCKSIZE := 128k
3   PAGESIZE := 2048
4   SUBPAGESIZE := 512
5   MKUBIFS_OPTS := -m $$(PAGESIZE) -e 126KiB -c 2048
6 endef
7
8 define Build/at91-sdcard
9   $(if $(findstring ext4,$@), \
10   rm -f $@.boot
11   mkfs.fat -C $@.boot $(FAT32_BLOCKS)
12
13   mcopy -i $@.boot \
14         $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \
15         ::$(DEVICE_NAME)-fit.itb
16
17   mcopy -i $@.boot \
18     $(BIN_DIR)/u-boot-at91sam9x5ek_mmc/u-boot.bin \
19     ::u-boot.bin
20
21   mcopy -i $@.boot \
22     $(BIN_DIR)/at91bootstrap-at91sam9x5eksd_uboot/at91bootstrap.bin \
23     ::BOOT.bin
24
25   $(CP) uboot-env.txt $@-uboot-env.txt
26   sed -i '2d;3d' $@-uboot-env.txt
27   sed -i '2i board='"$(DEVICE_NAME)"'' $@-uboot-env.txt
28   sed -i '3i board_name='"$(DEVICE_NAME)"'' $@-uboot-env.txt
29
30   mkenvimage -s 0x4000 -o $@-uboot.env $@-uboot-env.txt
31
32   mcopy -i $@.boot $@-uboot.env ::uboot.env
33
34   ./gen_at91_sdcard_img.sh \
35       $@.img \
36       $@.boot \
37       $(KDIR)/root.ext4 \
38       $(AT91_SD_BOOT_PARTSIZE) \
39       $(CONFIG_TARGET_ROOTFS_PARTSIZE)
40
41   gzip -nc9 $@.img > $@
42
43   rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt)
44 endef
45
46 define Device/at91sam9263ek
47   $(Device/evaluation-dtb)
48   DEVICE_VENDOR := Atmel
49   DEVICE_MODEL := AT91SAM9263-EK
50 endef
51 TARGET_DEVICES += at91sam9263ek
52
53 define Device/at91sam9g15ek
54   $(Device/evaluation)
55   DEVICE_VENDOR := Atmel
56   DEVICE_MODEL := AT91SAM9G15-EK
57 endef
58 TARGET_DEVICES += at91sam9g15ek
59
60 define Device/at91sam9g20ek
61   $(Device/evaluation-dtb)
62   DEVICE_VENDOR := Atmel
63   DEVICE_MODEL := AT91SAM9G20-EK
64 endef
65 TARGET_DEVICES += at91sam9g20ek
66
67 define Device/at91sam9g20ek_2mmc
68   $(Device/evaluation-dtb)
69   DEVICE_VENDOR := Atmel
70   DEVICE_MODEL := AT91SAM9G20-EK
71   DEVICE_VARIANT := 2MMC
72 endef
73 TARGET_DEVICES += at91sam9g20ek_2mmc
74
75 define Device/at91sam9g25ek
76   $(Device/evaluation)
77   DEVICE_VENDOR := Atmel
78   DEVICE_MODEL := AT91SAM9G25-EK
79 endef
80 TARGET_DEVICES += at91sam9g25ek
81
82 define Device/at91sam9g35ek
83   $(Device/evaluation)
84   DEVICE_VENDOR := Atmel
85   DEVICE_MODEL := AT91SAM9G35-EK
86 endef
87 TARGET_DEVICES += at91sam9g35ek
88
89 define Device/at91sam9m10g45ek
90   $(Device/evaluation)
91   DEVICE_VENDOR := Atmel
92   DEVICE_MODEL := AT91SAM9M10G45-EK
93 endef
94 TARGET_DEVICES += at91sam9m10g45ek
95
96 define Device/at91sam9x25ek
97   $(Device/evaluation-dtb)
98   DEVICE_VENDOR := Atmel
99   DEVICE_MODEL := AT91SAM9X25-EK
100   $(Device/evaluation-sdimage)
101 endef
102 TARGET_DEVICES += at91sam9x25ek
103
104 define Device/at91sam9x35ek
105   $(Device/evaluation-dtb)
106   DEVICE_VENDOR := Atmel
107   DEVICE_MODEL := AT91SAM9X35-EK
108   $(Device/evaluation-sdimage)
109 endef
110 TARGET_DEVICES += at91sam9x35ek
111
112 define Device/lmu5000
113   $(Device/production)
114   DEVICE_VENDOR := CalAmp
115   DEVICE_MODEL := LMU5000
116   DEVICE_PACKAGES := kmod-rtc-pcf2123 kmod-usb-acm kmod-usb-serial \
117     kmod-usb-serial-option kmod-usb-serial-sierrawireless kmod-gpio-mcp23s08
118 endef
119 TARGET_DEVICES += lmu5000
120
121 define Device/tny_a9260
122   $(Device/production-dtb)
123   DEVICE_VENDOR := Calao
124   DEVICE_MODEL := TNYA9260
125 endef
126 TARGET_DEVICES += tny_a9260
127
128 define Device/tny_a9263
129   $(Device/production-dtb)
130   DEVICE_VENDOR := Calao
131   DEVICE_MODEL := TNYA9263
132 endef
133 TARGET_DEVICES += tny_a9263
134
135 define Device/tny_a9g20
136   $(Device/production-dtb)
137   DEVICE_VENDOR := Calao
138   DEVICE_MODEL := TNYA9G20
139 endef
140 TARGET_DEVICES += tny_a9g20
141
142 define Device/usb_a9260
143   $(Device/production-dtb)
144   DEVICE_VENDOR := Calao
145   DEVICE_MODEL := USBA9260
146 endef
147 TARGET_DEVICES += usb_a9260
148
149 define Device/usb_a9263
150   $(Device/production-dtb)
151   DEVICE_VENDOR := Calao
152   DEVICE_MODEL := USBA9263
153 endef
154 TARGET_DEVICES += usb_a9263
155
156 define Device/usb_a9g20
157   $(Device/production-dtb)
158   DEVICE_VENDOR := Calao
159   DEVICE_MODEL := USBA9G20
160 endef
161 TARGET_DEVICES += usb_a9g20
162
163 define Device/ethernut5
164   $(Device/evaluation)
165   DEVICE_VENDOR := egnite
166   DEVICE_MODEL := Ethernut 5
167   UBINIZE_OPTS := -E 5
168 endef
169 TARGET_DEVICES += ethernut5
170
171 define Device/at91-q5xr5
172   $(Device/production-dtb)
173   DEVICE_VENDOR := Exegin
174   DEVICE_MODEL := Q5XR5
175   KERNEL_SIZE := 2048k
176 endef
177 #TARGET_DEVICES += at91-q5xr5
178
179 define Device/wb45n
180   $(Device/evaluation-fit)
181   DEVICE_VENDOR := Laird
182   DEVICE_MODEL := WB45N
183   DEVICE_PACKAGES := \
184         kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
185         kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
186         kmod-leds-gpio
187   BLOCKSIZE := 128k
188   PAGESIZE := 2048
189   SUBPAGESIZE := 2048
190   MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
191 endef
192 TARGET_DEVICES += wb45n