support mt300n-v2 flash

This commit is contained in:
Daniel Barlow 2023-03-10 23:24:05 +00:00
parent 3efa9e0af2
commit ad3f241af9

View file

@ -44,6 +44,13 @@
defaultOutput = "tftproot"; defaultOutput = "tftproot";
loadAddress = "0x80000000"; loadAddress = "0x80000000";
entryPoint = "0x80000000"; entryPoint = "0x80000000";
flash = {
address = "0xbc050000";
size = "0xfb0000";
};
rootDevice = "1f05";
dts = { dts = {
src = "${openwrt}/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts"; src = "${openwrt}/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts";
includes = [ includes = [
@ -143,6 +150,12 @@
MTD_CMDLINE_PARTS = "y"; MTD_CMDLINE_PARTS = "y";
MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_dev 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 = "y";
REGULATOR_FIXED_VOLTAGE = "y"; REGULATOR_FIXED_VOLTAGE = "y";