commit ad3f241af97816fe69653727b44b87a8d671053c
parent 3efa9e0af245eefae7910e0a8a1b23bd46123d8e
Author: Daniel Barlow <dan@telent.net>
Date: Fri, 10 Mar 2023 23:24:05 +0000
support mt300n-v2 flash
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git 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";