From 81ccd113479888d530d45309c336714ef974af5e Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 19 Feb 2023 18:10:43 +0000 Subject: [PATCH] gl-ar750: support _actual_ mtd/spi not just fake one the ath9k driver needs MTD because that's where it looks for firmware/calibration data (ART partition) --- devices/gl-ar750/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devices/gl-ar750/default.nix b/devices/gl-ar750/default.nix index 76662260..38aa73fc 100644 --- a/devices/gl-ar750/default.nix +++ b/devices/gl-ar750/default.nix @@ -102,6 +102,15 @@ MFD_SYSCON = "y"; # ethernet (compatible "syscon") AR8216_PHY = "y"; # eth1 is behind a switch + MTD_SPI_NOR = "y"; + SPI_ATH79 = "y"; # these are copied from OpenWrt. + SPI_MASTER= "y"; # At least one of them is necessary + SPI_MEM= "y"; + SPI_AR934X= "y"; + SPI_BITBANG= "y"; + SPI_GPIO= "y"; + + SPI = "y"; MTD = "y"; MTD_CMDLINE_PARTS = "y"; MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_devs