armv8.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2020 Sarah Maedel
  4. define Device/rk3308
  5. SOC := rk3308
  6. KERNEL_LOADADDR := 0x03000000
  7. endef
  8. define Device/rk3328
  9. SOC := rk3328
  10. KERNEL_LOADADDR := 0x03200000
  11. endef
  12. define Device/rk3399
  13. SOC := rk3399
  14. KERNEL_LOADADDR := 0x03200000
  15. endef
  16. define Device/rk3528
  17. SOC := rk3528
  18. KERNEL_LOADADDR := 0x03000000
  19. endef
  20. define Device/rk3566
  21. SOC := rk3566
  22. KERNEL_LOADADDR := 0x03000000
  23. endef
  24. define Device/rk3568
  25. SOC := rk3568
  26. KERNEL_LOADADDR := 0x03000000
  27. endef
  28. define Device/rk3576
  29. SOC := rk3576
  30. KERNEL_LOADADDR := 0x43000000
  31. endef
  32. define Device/rk3582
  33. SOC := rk3582
  34. KERNEL_LOADADDR := 0x03000000
  35. endef
  36. define Device/rk3588
  37. SOC := rk3588
  38. KERNEL_LOADADDR := 0x03000000
  39. endef
  40. define Device/rk3588s
  41. SOC := rk3588s
  42. KERNEL_LOADADDR := 0x03000000
  43. endef
  44. define Device/armsom_sige7
  45. $(Device/rk3588)
  46. DEVICE_VENDOR := ArmSoM
  47. DEVICE_MODEL := Sige7
  48. DEVICE_ALT0_VENDOR := Bananapi
  49. DEVICE_ALT0_MODEL := BPi-M7
  50. DEVICE_DTS := rk3588-armsom-sige7
  51. DEVICE_PACKAGES := kmod-r8169
  52. endef
  53. TARGET_DEVICES += armsom_sige7
  54. define Device/firefly_roc-rk3328-cc
  55. $(Device/rk3328)
  56. DEVICE_VENDOR := Firefly
  57. DEVICE_MODEL := ROC-RK3328-CC
  58. DEVICE_DTS := rk3328-roc-cc
  59. UBOOT_DEVICE_NAME := roc-cc-rk3328
  60. endef
  61. TARGET_DEVICES += firefly_roc-rk3328-cc
  62. define Device/friendlyarm_nanopc-t4
  63. $(Device/rk3399)
  64. DEVICE_VENDOR := FriendlyARM
  65. DEVICE_MODEL := NanoPC T4
  66. DEVICE_PACKAGES := kmod-brcmfmac brcmfmac-nvram-4356-sdio cypress-firmware-4356-sdio
  67. endef
  68. TARGET_DEVICES += friendlyarm_nanopc-t4
  69. define Device/friendlyarm_nanopc-t6
  70. $(Device/rk3588)
  71. DEVICE_VENDOR := FriendlyARM
  72. DEVICE_MODEL := NanoPC T6
  73. DEVICE_PACKAGES := kmod-r8169
  74. endef
  75. TARGET_DEVICES += friendlyarm_nanopc-t6
  76. define Device/friendlyarm_nanopi-r2c
  77. $(Device/rk3328)
  78. DEVICE_VENDOR := FriendlyARM
  79. DEVICE_MODEL := NanoPi R2C
  80. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  81. endef
  82. TARGET_DEVICES += friendlyarm_nanopi-r2c
  83. define Device/friendlyarm_nanopi-r2c-plus
  84. $(Device/rk3328)
  85. DEVICE_VENDOR := FriendlyARM
  86. DEVICE_MODEL := NanoPi R2C Plus
  87. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  88. endef
  89. TARGET_DEVICES += friendlyarm_nanopi-r2c-plus
  90. define Device/friendlyarm_nanopi-r2s
  91. $(Device/rk3328)
  92. DEVICE_VENDOR := FriendlyARM
  93. DEVICE_MODEL := NanoPi R2S
  94. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  95. endef
  96. TARGET_DEVICES += friendlyarm_nanopi-r2s
  97. define Device/friendlyarm_nanopi-r3s
  98. $(Device/rk3566)
  99. DEVICE_VENDOR := FriendlyARM
  100. DEVICE_MODEL := NanoPi R3S
  101. DEVICE_PACKAGES := kmod-r8169
  102. endef
  103. TARGET_DEVICES += friendlyarm_nanopi-r3s
  104. define Device/friendlyarm_nanopi-r4s
  105. $(Device/rk3399)
  106. DEVICE_VENDOR := FriendlyARM
  107. DEVICE_MODEL := NanoPi R4S
  108. DEVICE_VARIANT := 4GB LPDDR4
  109. DEVICE_PACKAGES := kmod-r8169
  110. endef
  111. TARGET_DEVICES += friendlyarm_nanopi-r4s
  112. define Device/friendlyarm_nanopi-r4s-enterprise
  113. $(Device/rk3399)
  114. DEVICE_VENDOR := FriendlyARM
  115. DEVICE_MODEL := NanoPi R4S Enterprise Edition
  116. DEVICE_VARIANT := 4GB LPDDR4
  117. UBOOT_DEVICE_NAME := nanopi-r4s-rk3399
  118. DEVICE_PACKAGES := kmod-r8169
  119. endef
  120. TARGET_DEVICES += friendlyarm_nanopi-r4s-enterprise
  121. define Device/friendlyarm_nanopi-r5c
  122. $(Device/rk3568)
  123. DEVICE_VENDOR := FriendlyARM
  124. DEVICE_MODEL := NanoPi R5C
  125. DEVICE_PACKAGES := kmod-r8169 kmod-rtw88-8822ce rtl8822ce-firmware wpad-basic-mbedtls
  126. endef
  127. TARGET_DEVICES += friendlyarm_nanopi-r5c
  128. define Device/friendlyarm_nanopi-r5s
  129. $(Device/rk3568)
  130. DEVICE_VENDOR := FriendlyARM
  131. DEVICE_MODEL := NanoPi R5S
  132. DEVICE_PACKAGES := kmod-r8169
  133. endef
  134. TARGET_DEVICES += friendlyarm_nanopi-r5s
  135. define Device/friendlyarm_nanopi-r6c
  136. $(Device/rk3588s)
  137. DEVICE_VENDOR := FriendlyARM
  138. DEVICE_MODEL := NanoPi R6C
  139. DEVICE_PACKAGES := kmod-r8169
  140. endef
  141. TARGET_DEVICES += friendlyarm_nanopi-r6c
  142. define Device/friendlyarm_nanopi-r6s
  143. $(Device/rk3588s)
  144. DEVICE_VENDOR := FriendlyARM
  145. DEVICE_MODEL := NanoPi R6S
  146. DEVICE_PACKAGES := kmod-r8169
  147. endef
  148. TARGET_DEVICES += friendlyarm_nanopi-r6s
  149. define Device/friendlyarm_nanopi-r76s
  150. $(Device/rk3576)
  151. DEVICE_VENDOR := FriendlyARM
  152. DEVICE_MODEL := NanoPi R76S
  153. UBOOT_DEVICE_NAME := generic-rk3576
  154. DEVICE_PACKAGES := kmod-r8169 kmod-rtw88-8822cs wpad-basic-mbedtls
  155. endef
  156. TARGET_DEVICES += friendlyarm_nanopi-r76s
  157. define Device/linkease_easepi-r1
  158. $(Device/rk3568)
  159. DEVICE_VENDOR := LinkEase
  160. DEVICE_MODEL := EasePi R1
  161. UBOOT_DEVICE_NAME := generic-rk3568
  162. DEVICE_PACKAGES := blkdiscard block-mount kmod-button-hotplug kmod-nvme kmod-r8169
  163. endef
  164. TARGET_DEVICES += linkease_easepi-r1
  165. define Device/lunzn_fastrhino-r66s
  166. $(Device/rk3568)
  167. DEVICE_VENDOR := Lunzn
  168. DEVICE_MODEL := FastRhino R66S
  169. DEVICE_PACKAGES := kmod-r8169
  170. endef
  171. TARGET_DEVICES += lunzn_fastrhino-r66s
  172. define Device/pine64_rock64
  173. $(Device/rk3328)
  174. DEVICE_VENDOR := Pine64
  175. DEVICE_MODEL := Rock64
  176. endef
  177. TARGET_DEVICES += pine64_rock64
  178. define Device/pine64_rockpro64
  179. $(Device/rk3399)
  180. DEVICE_VENDOR := Pine64
  181. DEVICE_MODEL := RockPro64
  182. SUPPORTED_DEVICES += pine64,rockpro64-v2.1
  183. endef
  184. TARGET_DEVICES += pine64_rockpro64
  185. define Device/radxa_cm3-io
  186. $(Device/rk3566)
  187. DEVICE_VENDOR := Radxa
  188. DEVICE_MODEL := CM3 IO
  189. DEVICE_DTS := rk3566-radxa-cm3-io
  190. UBOOT_DEVICE_NAME := radxa-cm3-io-rk3566
  191. endef
  192. TARGET_DEVICES += radxa_cm3-io
  193. define Device/radxa_e20c
  194. $(Device/rk3528)
  195. DEVICE_VENDOR := Radxa
  196. DEVICE_MODEL := E20C
  197. DEVICE_DTS := rk3528-radxa-e20c
  198. UBOOT_DEVICE_NAME := radxa-e20c-rk3528
  199. DEVICE_PACKAGES := kmod-r8169
  200. endef
  201. TARGET_DEVICES += radxa_e20c
  202. define Device/radxa_e25
  203. $(Device/rk3568)
  204. DEVICE_VENDOR := Radxa
  205. DEVICE_MODEL := E25
  206. DEVICE_DTS := rk3568-radxa-e25
  207. BOOT_SCRIPT := radxa-e25
  208. UBOOT_DEVICE_NAME := radxa-e25-rk3568
  209. DEVICE_PACKAGES := kmod-r8169 kmod-ata-ahci-dwc
  210. endef
  211. TARGET_DEVICES += radxa_e25
  212. define Device/radxa_e52c
  213. $(Device/rk3582)
  214. DEVICE_VENDOR := Radxa
  215. DEVICE_MODEL := E52C
  216. UBOOT_DEVICE_NAME := generic-rk3588
  217. DEVICE_DTS := rk3582-radxa-e52c
  218. DEVICE_PACKAGES := blkdiscard kmod-r8169
  219. DEVICE_COMPAT_VERSION := 1.1
  220. DEVICE_COMPAT_MESSAGE := Network interface names have been changed
  221. endef
  222. TARGET_DEVICES += radxa_e52c
  223. define Device/radxa_rock-2a
  224. $(Device/rk3528)
  225. DEVICE_VENDOR := Radxa
  226. DEVICE_MODEL := ROCK 2A
  227. UBOOT_DEVICE_NAME := rock-2-rk3528
  228. endef
  229. TARGET_DEVICES += radxa_rock-2a
  230. define Device/radxa_rock-2f
  231. $(Device/rk3528)
  232. DEVICE_VENDOR := Radxa
  233. DEVICE_MODEL := ROCK 2F
  234. UBOOT_DEVICE_NAME := rock-2-rk3528
  235. endef
  236. TARGET_DEVICES += radxa_rock-2f
  237. define Device/radxa_rock-3a
  238. $(Device/rk3568)
  239. DEVICE_VENDOR := Radxa
  240. DEVICE_MODEL := ROCK 3A
  241. SUPPORTED_DEVICES := radxa,rock3a
  242. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  243. endef
  244. TARGET_DEVICES += radxa_rock-3a
  245. define Device/radxa_rock-3b
  246. $(Device/rk3568)
  247. DEVICE_VENDOR := Radxa
  248. DEVICE_MODEL := ROCK 3B
  249. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  250. endef
  251. TARGET_DEVICES += radxa_rock-3b
  252. define Device/radxa_rock-3c
  253. $(Device/rk3566)
  254. DEVICE_VENDOR := Radxa
  255. DEVICE_MODEL := ROCK 3C
  256. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  257. endef
  258. TARGET_DEVICES += radxa_rock-3c
  259. define Device/radxa_rock-4c-plus
  260. $(Device/rk3399)
  261. DEVICE_VENDOR := Radxa
  262. DEVICE_MODEL := ROCK 4C+
  263. endef
  264. TARGET_DEVICES += radxa_rock-4c-plus
  265. define Device/radxa_rock-4d
  266. $(Device/rk3576)
  267. DEVICE_VENDOR := Radxa
  268. DEVICE_MODEL := ROCK 4D
  269. endef
  270. TARGET_DEVICES += radxa_rock-4d
  271. define Device/radxa_rock-4se
  272. $(Device/rk3399)
  273. DEVICE_VENDOR := Radxa
  274. DEVICE_MODEL := ROCK 4SE
  275. endef
  276. TARGET_DEVICES += radxa_rock-4se
  277. define Device/radxa_rock-5-itx
  278. $(Device/rk3588)
  279. DEVICE_VENDOR := Radxa
  280. DEVICE_MODEL := ROCK 5 ITX/ITX+
  281. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  282. endef
  283. TARGET_DEVICES += radxa_rock-5-itx
  284. define Device/radxa_rock-5a
  285. $(Device/rk3588s)
  286. DEVICE_VENDOR := Radxa
  287. DEVICE_MODEL := ROCK 5A
  288. UBOOT_DEVICE_NAME := rock5a-rk3588s
  289. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  290. endef
  291. TARGET_DEVICES += radxa_rock-5a
  292. define Device/radxa_rock-5b
  293. $(Device/rk3588)
  294. DEVICE_VENDOR := Radxa
  295. DEVICE_MODEL := ROCK 5B
  296. UBOOT_DEVICE_NAME := rock5b-rk3588
  297. DEVICE_PACKAGES := blkdiscard block-mount kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  298. endef
  299. TARGET_DEVICES += radxa_rock-5b
  300. define Device/radxa_rock-5b-plus
  301. $(Device/rk3588)
  302. DEVICE_VENDOR := Radxa
  303. DEVICE_MODEL := ROCK 5B+
  304. UBOOT_DEVICE_NAME := generic-rk3588
  305. DEVICE_DTS := rk3588-rock-5b-plus
  306. DEVICE_PACKAGES := blkdiscard block-mount kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  307. endef
  308. TARGET_DEVICES += radxa_rock-5b-plus
  309. define Device/radxa_rock-5c
  310. $(Device/rk3588s)
  311. DEVICE_VENDOR := Radxa
  312. DEVICE_MODEL := ROCK 5C/5C Lite
  313. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169
  314. endef
  315. TARGET_DEVICES += radxa_rock-5c
  316. define Device/radxa_rock-5t
  317. $(Device/rk3588)
  318. DEVICE_VENDOR := Radxa
  319. DEVICE_MODEL := ROCK 5T
  320. UBOOT_DEVICE_NAME := generic-rk3588
  321. DEVICE_DTS := rk3588-rock-5t
  322. DEVICE_PACKAGES := blkdiscard block-mount iwlwifi-firmware-ax210 kmod-hwmon-pwmfan kmod-iwlwifi kmod-nvme kmod-r8169 wpad-basic-mbedtls
  323. endef
  324. TARGET_DEVICES += radxa_rock-5t
  325. define Device/radxa_rock-pi-4a
  326. $(Device/rk3399)
  327. DEVICE_VENDOR := Radxa
  328. DEVICE_MODEL := ROCK Pi 4A
  329. SUPPORTED_DEVICES := radxa,rockpi4a radxa,rockpi4
  330. UBOOT_DEVICE_NAME := rock-pi-4-rk3399
  331. endef
  332. TARGET_DEVICES += radxa_rock-pi-4a
  333. define Device/radxa_rock-pi-e
  334. $(Device/rk3328)
  335. DEVICE_VENDOR := Radxa
  336. DEVICE_MODEL := ROCK Pi E
  337. endef
  338. TARGET_DEVICES += radxa_rock-pi-e
  339. define Device/radxa_rock-pi-e-v3
  340. $(Device/rk3328)
  341. DEVICE_VENDOR := Radxa
  342. DEVICE_MODEL := ROCK Pi E v3.0
  343. DEVICE_DTS := rk3328-rock-pi-e
  344. DEVICE_PACKAGES := kmod-rtw88-8723du kmod-rtw88-8821cu kmod-usb-net-cdc-ncm kmod-usb-net-rndis wpad-basic-mbedtls
  345. endef
  346. TARGET_DEVICES += radxa_rock-pi-e-v3
  347. define Device/radxa_rock-pi-s
  348. $(Device/rk3308)
  349. DEVICE_VENDOR := Radxa
  350. DEVICE_MODEL := ROCK Pi S
  351. SUPPORTED_DEVICES := radxa,rockpis
  352. BOOT_SCRIPT := rock-pi-s
  353. DEVICE_PACKAGES := kmod-rtw88-8723ds kmod-usb-net-cdc-ncm kmod-usb-net-rndis wpad-basic-mbedtls
  354. endef
  355. TARGET_DEVICES += radxa_rock-pi-s
  356. define Device/radxa_zero-3e
  357. $(Device/rk3566)
  358. DEVICE_VENDOR := Radxa
  359. DEVICE_MODEL := ZERO 3E
  360. DEVICE_DTS := rk3566-radxa-zero-3e
  361. UBOOT_DEVICE_NAME := radxa-zero-3-rk3566
  362. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  363. endef
  364. TARGET_DEVICES += radxa_zero-3e
  365. define Device/radxa_zero-3w
  366. $(Device/rk3566)
  367. DEVICE_VENDOR := Radxa
  368. DEVICE_MODEL := ZERO 3W
  369. DEVICE_DTS := rk3566-radxa-zero-3w
  370. UBOOT_DEVICE_NAME := radxa-zero-3-rk3566
  371. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  372. endef
  373. TARGET_DEVICES += radxa_zero-3w
  374. define Device/sinovoip_bpi-r2-pro
  375. $(Device/rk3568)
  376. DEVICE_VENDOR := Sinovoip
  377. DEVICE_MODEL := Bananapi-R2 Pro
  378. SUPPORTED_DEVICES := sinovoip,rk3568-bpi-r2pro
  379. DEVICE_PACKAGES := kmod-ata-ahci-dwc
  380. endef
  381. TARGET_DEVICES += sinovoip_bpi-r2-pro
  382. define Device/xunlong_orangepi-r1-plus
  383. $(Device/rk3328)
  384. DEVICE_VENDOR := Xunlong
  385. DEVICE_MODEL := Orange Pi R1 Plus
  386. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  387. endef
  388. TARGET_DEVICES += xunlong_orangepi-r1-plus
  389. define Device/xunlong_orangepi-r1-plus-lts
  390. $(Device/rk3328)
  391. DEVICE_VENDOR := Xunlong
  392. DEVICE_MODEL := Orange Pi R1 Plus LTS
  393. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  394. endef
  395. TARGET_DEVICES += xunlong_orangepi-r1-plus-lts