gl-ar300m|\
gl-ar300|\
gl-ar750|\
- gl-x750-4g|\
gl-domino|\
gl-mifi|\
gl-usb150|\
return 0
;;
+ gl-x750-4g|\
gl-ar750s)
platform_check_image_gl_nand "$1" "$board" "$magic" && return 0
return 1
# erase firmware if booted from initramfs
[ -z "$(rootfs_type)" ] && mtd erase firmware
;;
+ gl-x750-4g|\
gl-ar750s)
platform_pre_upgrade_gl_nand "$1"
;;
#include "dev-eth.h"
#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
-#include "dev-m25p80.h"
+#include "dev-spi.h"
#include "dev-usb.h"
#include "dev-wmac.h"
#include "machtypes.h"
},
};*/
+static struct spi_board_info gl_x750_4g_spi_info[] = {
+ {
+ .bus_num = 0,
+ .chip_select = 0,
+ .max_speed_hz = 25000000,
+ .modalias = "m25p80",
+ .platform_data = NULL,
+ },
+ {
+ .bus_num = 0,
+ .chip_select = 1,
+ .max_speed_hz = 25000000,
+ .modalias = "generic-spinand-controller",
+ .platform_data = NULL,
+ }
+};
+
+static struct ath79_spi_platform_data gl_x750_4g_spi_data = {
+ .bus_num = 0,
+ .num_chipselect = 2,
+};
+
static void __init gl_x750_4g_setup(void)
{
u8 *art = (u8 *) KSEG1ADDR(0x1f050000);
- ath79_register_m25p80(NULL);
+ ath79_register_spi(&gl_x750_4g_spi_data, gl_x750_4g_spi_info, 2);
ath79_register_mdio(0, 0x0);
//ath79_register_mdio(1, 0x0);
mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro
zyx_nbg6716_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubi)
gl-ar750s_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,2048k(kernel),13052k(reserved);spi0.1:-(ubi)
+gl-x750-4g_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,2048k(kernel),13052k(reserved);spi0.1:-(ubi)
define Image/BuildKernel
cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
$(eval $(call SingleProfile,ZyXELNAND,128k,NBG6716,nbg6716,NBG6716,ttyS0,115200,NBG6716,$$(zyx_nbg6716_mtdlayout),mem=256M))
$(eval $(call SingleProfile,GLNAND,64k,GL-AR750S,gl-ar750s,GL-AR750S,ttyS0,115200,$$(gl-ar750s_mtdlayout),gl-ar750s))
+$(eval $(call SingleProfile,GLNAND,64k,GL-X750-4G,gl-x750-4g,GL-X750-4G,ttyS0,115200,$$(gl-x750-4g_mtdlayout),gl-x750-4g))
endif # ifeq ($(SUBTARGET),nand)
kmod-usb2 kmod-usb-storage
endef
LEGACY_DEVICES += GL-AR750S
+
+define LegacyDevice/GL-X750-4G
+ DEVICE_TITLE := GL-X750-4G with nand flash
+ DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 kmod-usb-core \
+ kmod-usb2 kmod-usb-storage
+endef
+LEGACY_DEVICES += GL-X750-4G
--- /dev/null
+[rootfs]
+# Volume mode (other option is static)
+mode=ubi
+# Source image
+image=root.squashfs
+# Volume ID in UBI image
+vol_id=0
+# Allow for dynamic resize
+vol_type=dynamic
+# Volume name
+vol_name=rootfs
+# Autoresize volume at first mount
+# vol_flags=autoresize
+
+[rootfs_data]
+# Volume mode (other option is static)
+mode=ubi
+# Volume ID in UBI image
+vol_id=1
+# Allow for dynamic resize
+vol_type=dynamic
+# Volume name
+vol_name=rootfs_data
+# Autoresize volume at first mount
+vol_flags=autoresize
+vol_size=1MiB
CONFIG_ATH79_MACH_WI2A_AC200I=y
CONFIG_ATH79_MACH_WNDR4300=y
CONFIG_ATH79_MACH_GL_AR750S=y
+CONFIG_ATH79_MACH_GL_X750_4G=y
CONFIG_ATH79_MACH_Z1=y
CONFIG_ATH79_NVRAM=y
CONFIG_ATH79_PCI_ATH9K_FIXUP=y