mediatek: mt7622: add Linux 5.10 support
[openwrt/openwrt.git] / target / linux / mediatek / image / mt7622.mk
index 1d1c2f8a8090fe3608a9e053ab5596cc4272383a..9bf4d6a97ac56d4aaf4492520bf2d450e17ef19f 100644 (file)
@@ -1,5 +1,10 @@
 DTS_DIR := $(DTS_DIR)/mediatek
 DTS_DIR := $(DTS_DIR)/mediatek
-KERNEL_LOADADDR := 0x44080000
+
+ifdef CONFIG_LINUX_5_4
+  KERNEL_LOADADDR := 0x44080000
+else
+  KERNEL_LOADADDR := 0x44000000
+endif
 
 define Device/bpi_bananapi-r64
   DEVICE_VENDOR := Bpi
 
 define Device/bpi_bananapi-r64
   DEVICE_VENDOR := Bpi