From ad3f241af97816fe69653727b44b87a8d671053c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 10 Mar 2023 23:24:05 +0000 Subject: [PATCH] support mt300n-v2 flash --- devices/gl-mt300n-v2/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devices/gl-mt300n-v2/default.nix b/devices/gl-mt300n-v2/default.nix index 9a98d11..82a9fe3 100644 --- a/devices/gl-mt300n-v2/default.nix +++ b/devices/gl-mt300n-v2/default.nix @@ -44,6 +44,13 @@ defaultOutput = "tftproot"; loadAddress = "0x80000000"; entryPoint = "0x80000000"; + + flash = { + address = "0xbc050000"; + size = "0xfb0000"; + }; + rootDevice = "1f05"; + dts = { src = "${openwrt}/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts"; includes = [ @@ -143,6 +150,12 @@ MTD_CMDLINE_PARTS = "y"; MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_dev + SPI = "y"; + MTD_SPI_NOR = "y"; + SPI_MT7621 = "y"; + SPI_MASTER= "y"; + SPI_MEM= "y"; + REGULATOR = "y"; REGULATOR_FIXED_VOLTAGE = "y";